/* ===========================================================
   Benjamin Goalabré — CV augmenté
   Palette : noir chaud, bleu CV, typographie nette
   =========================================================== */

:root {
  --bg: #0e0e10;
  --bg-2: #131316;
  --surface: #18181b;
  --surface-2: #1f1f23;
  --border: #28282d;
  --border-strong: #3a3a40;
  --text: #ececea;
  --text-muted: #8a8a85;
  --text-dim: #5e5e5a;
  --accent: #2aa3dc;
  --accent-dim: #1b7eb0;
  --accent-soft: rgba(42, 163, 220, 0.14);
  --coral: #ff6a3d;
  --radius: 14px;
  --radius-sm: 8px;
  --maxw: 1280px;
  --pad-x: clamp(20px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Background grain */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(42, 163, 220, 0.07), transparent 60%),
    radial-gradient(800px 400px at -10% 80%, rgba(255, 106, 61, 0.04), transparent 60%);
  pointer-events: none;
  z-index: 0;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-feature-settings: 'tnum';
}

/* =========== NAVIGATION =========== */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(14, 14, 16, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-brand-mark {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #0e0e10;
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  font-size: 14px;
  display: grid; place-items: center;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}

.nav-link {
  padding: 8px 14px;
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: all .2s ease;
  position: relative;
}

.nav-link:hover { color: var(--text); background: var(--surface); }

.nav-link.active {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta {
  padding: 10px 18px;
  border-radius: 999px;
  white-space: nowrap;
  background: var(--accent);
  color: #0e0e10;
  font-weight: 600;
  font-size: 14px;
  transition: transform .2s ease, box-shadow .2s ease;
}

.nav-linkedin {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.6);
  transition: color 0.2s;
  padding: 4px;
}
.nav-linkedin:hover {
  color: #2AA3DC;
}

.nav-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px -8px rgba(42, 163, 220, 0.55);
}

.nav-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px; height: 40px;
  border-radius: 10px;
  cursor: pointer;
}

@media (max-width: 1000px) {
  .nav-links { display: none; }
  .nav-menu-btn { display: grid; place-items: center; }
  .nav-cta { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    padding: 16px var(--pad-x) 24px;
    gap: 4px;
    align-items: stretch;
  }
  .nav-links.open .nav-link { padding: 12px 16px; }
}

/* Contact entry injected into the mobile dropdown (hidden on desktop) */
.nav-cta-mobile { display: none; }
@media (max-width: 1000px) {
  .nav-links.open .nav-cta-mobile {
    display: block;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--border);
  }
  /* Plain accent link — not a filled pill, so it isn't mistaken for the
     active page (which uses the accent-soft background). */
  .nav-links.open .nav-cta-mobile .nav-link {
    color: var(--accent);
    background: transparent;
  }
  .nav-links.open .nav-cta-mobile .nav-link.active,
  .nav-links.open .nav-cta-mobile .nav-link:hover {
    background: var(--accent-soft);
  }
}

/* =========== CONTAINERS / SECTIONS =========== */
.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  position: relative;
  z-index: 1;
}

.section {
  padding-block: clamp(36px, 5.5vw, 72px);
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 2px;
}

.section-title {
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  max-width: 22ch;
  text-wrap: balance;
}

.section-subtitle {
  margin-top: 16px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.55;
  text-wrap: pretty;
}

/* =========== HERO (Accueil) =========== */
.hero {
  padding-top: clamp(40px, 5.5vw, 72px);
  padding-bottom: clamp(28px, 4vw, 48px);
  position: relative;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 6px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-2);
  margin-bottom: 28px;
}

.hero-tag .dot {
  width: 7px; height: 7px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--accent);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.hero-title {
  font-size: clamp(46px, 8vw, 108px);
  line-height: 0.95;
  letter-spacing: -0.035em;
  font-weight: 600;
  text-wrap: balance;
}

.hero-title .accent { color: var(--accent); font-style: italic; font-weight: 500; }

.hero-sub {
  margin-top: 28px;
  font-size: clamp(18px, 2vw, 22px);
  color: var(--text-muted);
  max-width: 60ch;
  line-height: 1.5;
}

.hero-actions {
  margin-top: 40px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 500;
  font-size: 15px;
  transition: all .2s ease;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
}

.btn-primary {
  background: var(--accent);
  color: #0e0e10;
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px -10px rgba(42, 163, 220, 0.6);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn-ghost:hover {
  border-color: var(--text);
  background: var(--surface);
}

.btn .arrow {
  display: inline-block;
  transition: transform .2s ease;
}
.btn:hover .arrow { transform: translateX(3px); }

/* =========== STATS =========== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 80px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.stat {
  padding: 28px 24px;
  border-right: 1px solid var(--border);
  position: relative;
}
.stat:last-child { border-right: 0; }

.stat-value {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.stat-value .unit {
  font-size: 0.55em;
  color: var(--text-muted);
  margin-left: 4px;
  font-weight: 400;
}
.stat-label {
  margin-top: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

@media (max-width: 720px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* =========== HIGHLIGHTS (cards row) =========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 900px) {
  .feature-grid { grid-template-columns: 1fr; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: border-color .25s ease, transform .25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  display: grid; place-items: center;
  margin-bottom: 18px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 600;
}

.card-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.card-text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* =========== TIMELINE (Expériences) =========== */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 56px;
}

.exp {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 200px 1fr 60px;
  gap: 32px;
  align-items: start;
  transition: background .25s ease;
}

.exp:last-child { border-bottom: 1px solid var(--border); }

.exp:hover { background: rgba(255,255,255,0.015); }

.exp-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
  padding-top: 4px;
}
.exp-period .now {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: 4px;
  font-size: 11px;
}

.exp-main {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.exp-role {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.exp-company {
  font-size: 15px;
  color: var(--text-muted);
}
.exp-company .sep { margin: 0 8px; color: var(--text-dim); }
.exp-company .place { color: var(--text-dim); }

.exp-summary {
  margin-top: 14px;
  color: var(--text);
  font-size: 15.5px;
  line-height: 1.6;
}

.exp-list {
  margin-top: 14px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.exp-list li {
  padding-left: 22px;
  position: relative;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.55;
}

.exp-list li::before {
  content: '';
  position: absolute;
  left: 0; top: 9px;
  width: 10px; height: 1px;
  background: var(--accent);
}

.exp-list li strong {
  color: var(--text);
  font-weight: 500;
}

.exp-kpis {
  margin-top: 16px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  vertical-align: top;
}
.exp-kpi {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

.exp-tags {
  margin-top: 16px;
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  vertical-align: top;
}
.exp-kpis + .exp-tags {
  margin-left: 8px;
}
.exp-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--accent);
}

.exp-index {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-dim);
  text-align: right;
}

@media (max-width: 820px) {
  .exp {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .exp-index { display: none; }
  .exp-period { padding-top: 0; }
}

/* =========== PROJECTS GRID =========== */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 56px;
}

@media (max-width: 820px) {
  .projects-grid { grid-template-columns: 1fr; }
}

.project {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .3s ease, border-color .3s ease;
  display: flex;
  flex-direction: column;
}

.project:hover {
  transform: translateY(-3px);
  border-color: var(--accent);
}

.project-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.project-body {
  padding: 24px 26px 26px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.project-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.project-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
}
.project-status.archive { background: var(--surface-2); color: var(--text-muted); }

.project-title {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.project-desc {
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.55;
  flex: 1;
}

.project-stack {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.project-tag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--text-muted);
}

.project-links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.project-link {
  font-size: 14px;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color .2s;
}

.project-link:hover { color: var(--accent); }

.project-link .arrow {
  transition: transform .2s ease;
  display: inline-block;
}
.project-link:hover .arrow { transform: translate(2px, -2px); }

/* Project visual placeholders — CSS art per project */
.viz {
  position: absolute; inset: 0;
  display: grid;
  place-items: center;
  padding: 28px;
}

/* Kanban viz */
.viz-kanban {
  background: linear-gradient(135deg, #1a1a1f 0%, #14141a 100%);
}
.viz-kanban-board {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  width: 100%; height: 100%;
}
.viz-kanban-col {
  background: rgba(255,255,255,0.025);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.viz-kanban-col-h {
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.05em;
  padding: 2px 4px;
}
.viz-kanban-card {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 6px 8px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 9px;
  color: var(--text-muted);
}
.viz-kanban-card.accent {
  border-left: 2px solid var(--accent);
  color: var(--text);
}
.viz-kanban-card .bar {
  display: block;
  height: 3px;
  background: var(--border-strong);
  border-radius: 2px;
  margin-top: 4px;
  width: 70%;
}

/* Map viz */
.viz-map {
  background:
    radial-gradient(circle at 30% 40%, rgba(212, 255, 62, 0.08), transparent 30%),
    linear-gradient(135deg, #1a1a1f 0%, #14141a 100%);
}
.viz-map svg { width: 100%; height: 100%; max-width: 320px; }

/* Crete viz */
.viz-crete {
  background:
    radial-gradient(circle at 30% 40%, rgba(42, 163, 220, 0.12), transparent 50%),
    linear-gradient(135deg, #1a1a1f 0%, #14141a 100%);
  padding: 0;
  display: block;
  position: relative;
}
.viz-crete .photo-grid {
  position: absolute;
  inset: 14px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(3, 1fr);
  gap: 6px;
}
.viz-crete .photo {
  border-radius: 4px;
  background: linear-gradient(135deg, #5b88a8, #1f3a4d);
  opacity: 0.55;
  border: 1px solid rgba(255,255,255,0.04);
}
.viz-crete .photo:nth-child(2) { background: linear-gradient(160deg, #c98a5e, #5d3a26); }
.viz-crete .photo:nth-child(3) { background: linear-gradient(135deg, #6ba8b5, #2a4f5c); }
.viz-crete .photo:nth-child(4) { background: linear-gradient(150deg, #d4b582, #6d5836); }
.viz-crete .photo:nth-child(5) { background: linear-gradient(135deg, #98b4c8, #3a4d5c); }
.viz-crete .photo:nth-child(6) { background: linear-gradient(165deg, #b58a64, #4d3520); }
.viz-crete .photo:nth-child(7) { background: linear-gradient(135deg, #4d7c8f, #1a2e36); }
.viz-crete .photo:nth-child(8) { background: linear-gradient(150deg, #c4a472, #5c4528); }
.viz-crete .photo:nth-child(9) { background: linear-gradient(135deg, #8aa8b8, #2d4a55); }
.viz-crete .photo:nth-child(10) { background: linear-gradient(160deg, #d4965e, #6d4220); }
.viz-crete .photo:nth-child(11) { background: linear-gradient(135deg, #7a9ba8, #2a3e48); }
.viz-crete .photo:nth-child(12) { background: linear-gradient(150deg, #c08858, #5c3820); }
.viz-crete .map-pin {
  position: absolute;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--accent);
  z-index: 2;
}
.viz-crete .map-pin:nth-of-type(1) { top: 30%; left: 20%; }
.viz-crete .map-pin:nth-of-type(2) { top: 60%; left: 50%; }
.viz-crete .map-pin:nth-of-type(3) { top: 35%; left: 75%; }

/* =========== SKILLS =========== */
.skills-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}

@media (max-width: 900px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.skill-block-title {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  margin-bottom: 18px;
}

.skill-list {
  list-style: none;
  display: flex;
  flex-direction: column;
}

.skill-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 15px;
}
.skill-list li:last-child { border-bottom: 0; }

.skill-level {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.skill-bar {
  display: flex;
  gap: 3px;
}
.skill-bar .dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--border-strong);
}
.skill-bar .dot.on { background: var(--accent); }

.certifs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .certifs { grid-template-columns: 1fr; }
}

.certif {
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 14px;
}

.certif-badge {
  width: 44px; height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), var(--accent-dim));
  color: #0e0e10;
  display: grid; place-items: center;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  flex-shrink: 0;
}

.certif-name {
  font-weight: 600;
  font-size: 14.5px;
  margin-bottom: 2px;
}
.certif-issuer {
  font-size: 12.5px;
  color: var(--text-muted);
  font-family: 'JetBrains Mono', monospace;
}

/* =========== EDUCATION =========== */
.edu-list {
  display: flex;
  flex-direction: column;
  margin-top: 48px;
}

.edu-item {
  padding: 28px 0;
  border-top: 1px solid var(--border);
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 32px;
  align-items: center;
}
.edu-item:last-child { border-bottom: 1px solid var(--border); }

.edu-period {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: var(--text-muted);
}
.edu-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.edu-school {
  font-size: 14.5px;
  color: var(--text-muted);
  margin-top: 4px;
}
.edu-flag {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--accent);
}

@media (max-width: 720px) {
  .edu-item { grid-template-columns: 1fr; gap: 8px; }
  .edu-flag { display: none; }
}

/* =========== CONTACT =========== */
.contact-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: clamp(28px, 4vw, 56px);
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  position: relative;
  overflow: hidden;
}

.contact-card::before {
  content: '';
  position: absolute;
  top: -120px; right: -120px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}

@media (max-width: 820px) {
  .contact-card { grid-template-columns: 1fr; gap: 32px; }
}

.contact-h {
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 600;
  margin-bottom: 18px;
}

.contact-sub {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.6;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
}

.contact-line {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.contact-line:last-child { border-bottom: 0; padding-bottom: 0; }

.contact-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.contact-value {
  font-size: 18px;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--text);
  transition: color .2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.contact-value:hover { color: var(--accent); }

/* =========== FOOTER =========== */
.footer {
  border-top: 1px solid var(--border);
  margin-top: 80px;
  padding: 36px 0 28px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--text-muted);
}

.footer-inner a:hover { color: var(--accent); }

/* =========== REVEAL ANIMATIONS =========== */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .8s ease, transform .8s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 80ms; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 160ms; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 240ms; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 320ms; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* =========== PAGE HEADER (for non-home pages) =========== */
.page-header {
  padding: clamp(48px, 7vw, 96px) 0 clamp(32px, 4vw, 56px);
  border-bottom: 1px solid var(--border);
}
.page-header .section-title { max-width: none; }


/* =========== I18N =========== */
html[lang="fr"] [data-lang="en"],
html[lang="en"] [data-lang="fr"] {
  display: none !important;
}

/* The language switcher buttons carry data-lang too — never hide them. */
.lang-switch button[data-lang] {
  display: inline-block !important;
}

/* Language switcher */
.lang-switch {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--bg-2);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  margin-right: 4px;
}
.lang-switch button {
  background: transparent;
  border: 0;
  color: var(--text-muted);
  padding: 6px 12px;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  letter-spacing: 0.04em;
  transition: color .2s ease, background .2s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
  background: var(--accent);
  color: #0a1a23;
  font-weight: 600;
}

@media (max-width: 1000px) {
  .lang-switch { order: 2; }
}

/* =========== Approach card sub-experiences =========== */
.card-exp-section {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--border);
}
.card-exp-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 10px;
}
.card-exp-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.card-exp-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  font-size: 13px;
  color: var(--text);
  transition: border-color .2s, background .2s, transform .2s;
}
.card-exp-list a:hover {
  border-color: var(--accent);
  background: rgba(42, 163, 220, 0.06);
  transform: translateX(2px);
}
.card-exp-list a .exp-link-co {
  color: var(--text-muted);
  font-size: 11.5px;
  font-family: 'JetBrains Mono', monospace;
}
.card-exp-list a .arrow {
  color: var(--accent);
  opacity: 0;
  transition: opacity .2s;
  font-size: 12px;
}
.card-exp-list a:hover .arrow { opacity: 1; }

/* =========== Certif redirect (link version) =========== */
.certif-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color .2s, transform .2s;
}
.certif-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.certif-arrow {
  margin-left: auto;
  color: var(--accent);
  opacity: 0.6;
  transition: opacity .2s, transform .2s;
}
.certif-link:hover .certif-arrow {
  opacity: 1;
  transform: translate(2px, -2px);
}

/* =========== Project cards — visible links =========== */
.project-cta-row {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
  align-items: center;
}
/* In <project-card>, the buttons live inside the slotted <div slot="cta">,
   which is a plain block — so they'd flow inline and align by text baseline
   (the filled "primary" button ends up a few px lower than the icon ones).
   Make that slotted container a flex row so every button shares one baseline. */
[slot="cta"] {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.project-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 14px;
  box-sizing: border-box;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  line-height: 1;
  transition: all .2s ease;
  border: 1px solid var(--border-strong);
  background: var(--bg-2);
  color: var(--text);
}
.project-cta .arrow {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  font-size: 14px;
}
.project-cta:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}
.project-cta.primary {
  background: var(--accent);
  color: #0a1a23;
  border-color: var(--accent);
  font-weight: 600;
}
.project-cta.primary:hover {
  color: #0a1a23;
  box-shadow: 0 6px 18px -6px rgba(42, 163, 220, 0.55);
}
.project-cta-icon {
  width: 14px; height: 14px;
  flex: 0 0 auto;
  display: inline-block;
}

/* =========== Highlight (vision keywords) =========== */
.hl { color: var(--accent); font-weight: 500; }

/* =========== Company logo (text mark) =========== */
.exp-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px; height: 56px;
  border-radius: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  overflow: hidden;
  padding: 4px;
  text-align: center;
  line-height: 1.05;
}
.exp-logo img {
  width: 100%; height: 100%;
  object-fit: contain;
}

/* Add a logo column to experiences */
.exp-with-logo {
  grid-template-columns: 180px 56px 1fr 60px;
  gap: 24px;
}
@media (max-width: 820px) {
  .exp-with-logo {
    grid-template-columns: 56px 1fr;
    gap: 14px 16px;
  }
  .exp-with-logo .exp-period {
    grid-column: 1 / -1;
  }
  .exp-with-logo .exp-main {
    grid-column: 2 / -1;
  }
  .exp-with-logo .exp-index { display: none; }
}

/* =========== Project detail page =========== */
.project-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  margin-top: 32px;
}
@media (max-width: 900px) {
  .project-hero { grid-template-columns: 1fr; gap: 24px; }
}
.project-hero-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  position: relative;
  overflow: hidden;
}
.project-hero-content h2 {
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: 14px;
}
.project-hero-content p.lede {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 22px;
}

.project-readme {
  margin-top: 56px;
  padding: 40px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.project-readme h3 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 28px 0 12px;
}
.project-readme h3:first-child { margin-top: 0; }
.project-readme p {
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 14px;
}
.project-readme ul {
  list-style: none;
  margin: 12px 0 20px;
  padding: 0;
}
.project-readme ul li {
  padding-left: 22px;
  position: relative;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 8px;
}
.project-readme ul li::before {
  content: '';
  position: absolute;
  left: 0; top: 11px;
  width: 10px; height: 1px;
  background: var(--accent);
}
.project-readme strong { color: var(--text); font-weight: 500; }
.project-readme code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.88em;
  background: var(--bg-2);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--accent);
}

/* Highlight reached exp (anchor target) */
.exp:target,
.exp.is-anchor {
  background: rgba(42, 163, 220, 0.05);
  box-shadow: inset 3px 0 0 var(--accent);
}

/* Hide chips that we no longer want — keep selectors stable */
.is-hidden { display: none !important; }

/* Tweak: blue keyword highlight in vision text */
.vision-card p {
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 14px;
}
.vision-card p:last-child { margin-bottom: 0; }
.vision-card h4 {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  margin: 18px 0 8px;
  color: var(--text);
}
.vision-card h4:first-child { margin-top: 0; }


/* =========== Approach cards: align exp-sections + discreet CTA =========== */
.feature-grid .card { display: flex; flex-direction: column; }
/* Bottom-pin the exp-section; uniform 2-line list rows keep every section the
   same height, so the labels line up across all three cards at any width. */
.feature-grid .card .card-exp-section { margin-top: auto; }
.feature-grid .card .card-cta { margin-top: 16px; }
.feature-grid .card-exp-list a {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 2px;
  position: relative;
  padding-right: 26px;
  min-height: 44px;
}
.feature-grid .card-exp-list a .arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
}
.feature-grid .card-exp-list a:hover .arrow { transform: translateY(-50%) translateX(2px); }

.card-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 12.5px;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  align-self: flex-start;
  transition: color .2s ease, gap .2s ease;
}
.card-cta:hover { color: var(--accent); gap: 9px; }
.card-cta .arrow { transition: transform .2s ease; display: inline-block; }
.card-cta:hover .arrow { transform: translateX(2px); }

/* =========== Image-slot inside project media =========== */
.project-media image-slot,
.project-hero-media image-slot {
  width: 100%;
  height: 100%;
  display: block;
}
.project-hero-media { padding: 0; }
