/* =========================================================
   Portfolio — El Hassan AIT EL HADJ
   Identité : Navy #092536 · Teal #18A5AA · fond clair
   ========================================================= */

@property --spin { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

/* ---------- Tokens ---------- */
:root {
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --display: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --container: 1160px;
  --gutter: clamp(20px, 4vw, 28px);
  --section-y: clamp(72px, 9vw, 104px);
  --header-h: 72px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  /* Couleurs fixes de l'identité (bandeaux navy dans les deux thèmes) */
  --navy: #092536;
  --navy-2: #0d3041;
  --navy-3: #082130;
  --navy-4: #061b28;
  --teal-bright: #57cece;
  --on-navy: #ffffff;
  --on-navy-2: #c4d6dc;
  --on-navy-3: #8fa8b1;
}

:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f7fafb;
  --panel: #f1f6f7;
  --surface: #ffffff;
  --surface-2: #f0f5f6;
  --ink: #172b38;
  --heading: #092536;
  --muted: #61717a;
  --line: #dce6e8;
  --teal: #18a5aa;
  --teal-dark: #087d83;
  --teal-soft: #e5f4f3;
  --teal-line: #cce8e7;
  --shadow: 0 18px 50px rgba(9, 37, 54, .10);
  --shadow-sm: 0 8px 28px rgba(9, 37, 54, .06);
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #061823;
  --panel: #08202d;
  --surface: #0c2736;
  --surface-2: #10303f;
  --ink: #d5e4e9;
  --heading: #ffffff;
  --muted: #93abb4;
  --line: rgba(255, 255, 255, .09);
  --teal: #22b8bc;
  --teal-dark: #5fd3d1;
  --teal-soft: rgba(34, 184, 188, .12);
  --teal-line: rgba(34, 184, 188, .32);
  --shadow: 0 22px 55px rgba(0, 0, 0, .35);
  --shadow-sm: 0 8px 28px rgba(0, 0, 0, .25);
  --navy: #0a2a3c;
  --navy-3: #071c29;
  --navy-4: #04121b;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure, blockquote { margin: 0; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.2; letter-spacing: -.01em; color: var(--heading); }
button { font: inherit; color: inherit; }
::selection { background: var(--teal); color: #fff; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 6px; }
.icon { width: 18px; height: 18px; flex: none; }
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--teal); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }

/* ---------- Progress ---------- */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 150; pointer-events: none; }
.progress__bar { display: block; height: 100%; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transform-origin: 0 50%; transform: scaleX(0); box-shadow: 0 0 12px rgba(87, 206, 206, .6); }

/* ---------- Buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  min-height: 46px; padding: 0 20px; border-radius: 10px; border: 1px solid transparent;
  font: 700 14px/1 var(--font); cursor: pointer; white-space: nowrap; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), background-color .25s, border-color .25s, color .25s, box-shadow .25s;
}
.btn .icon { transition: transform .3s var(--spring); }
.btn:hover { transform: translateY(-2px); }
.btn:hover .icon { transform: translateX(3px); }
.btn:hover .icon:first-child:not(:last-child) { transform: translateY(2px); }
.btn--primary { background: var(--teal); color: #fff; box-shadow: 0 8px 24px rgba(24, 165, 170, .28); }
.btn--primary::after { /* reflet qui balaie le bouton */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, .35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .7s var(--ease);
}
.btn--primary:hover::after { transform: translateX(120%); }
.btn--primary:hover { background: var(--teal-dark); box-shadow: 0 12px 30px rgba(24, 165, 170, .38); }
:root[data-theme="dark"] .btn--primary:hover { background: #18a5aa; }
.btn--outline { border-color: rgba(255, 255, 255, .32); color: #fff; }
.btn--outline:hover { border-color: var(--teal-bright); background: rgba(87, 206, 206, .08); }
.btn--text { padding-inline: 8px; color: var(--on-navy-2); }
.btn--text:hover { color: var(--teal-bright); }
.btn--sm { min-height: 38px; padding: 0 15px; font-size: 13px; border-radius: 8px; }
.btn--block { width: 100%; }

.icon-btn {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .16); background: transparent; color: #fff; transition: border-color .2s, background-color .2s, transform .3s var(--spring);
}
.icon-btn:hover { border-color: var(--teal-bright); background: rgba(87, 206, 206, .1); }
.theme-toggle:hover { transform: rotate(20deg); }

/* ---------- Header (navy, comme la référence) ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  background: rgba(9, 37, 54, .0); border-bottom: 1px solid transparent;
  transition: background-color .35s, border-color .35s, height .35s var(--ease);
}
.header.is-scrolled { background: rgba(9, 37, 54, .96); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom-color: rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .header.is-scrolled { background: rgba(4, 18, 27, .94); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; color: #fff; }
.brand__mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; font: 800 13px/1 var(--font);
  background: linear-gradient(145deg, #22aeb1, #0b6675); border: 2px solid rgba(93, 218, 214, .5);
  transition: transform .5s var(--spring);
}
.brand:hover .brand__mark { transform: rotate(-8deg) scale(1.06); }
.brand__text { font-family: var(--display); font-weight: 800; letter-spacing: .08em; font-size: 14px; white-space: nowrap; }
.brand__text span { color: var(--teal-bright); }

.nav__list { display: flex; align-items: center; gap: 4px; }
.nav__link { position: relative; display: block; padding: 8px 11px; font-size: 14px; font-weight: 600; color: #d7e5e9; transition: color .2s; }
.nav__link::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 1px; height: 2px; border-radius: 2px; background: var(--teal-bright);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--teal-bright); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); }
.nav__cta-item { margin-left: 10px; }
.header__actions { display: flex; gap: 8px; }
.menu-toggle { display: none; }
.theme-toggle .icon--sun, .menu-toggle .icon--close { display: none; }
:root[data-theme="dark"] .theme-toggle .icon--sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon--moon { display: none; }
.menu-open .menu-toggle .icon--close { display: block; }
.menu-open .menu-toggle .icon--menu { display: none; }

/* ---------- Typo commune ---------- */
.kicker { color: var(--teal-dark); font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.section { position: relative; padding-block: var(--section-y); }
.section--panel { background: var(--panel); }
.section__head { display: flex; justify-content: space-between; align-items: end; gap: 28px; margin-bottom: clamp(32px, 5vw, 48px); }
.section__title { margin-top: 8px; font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.2; letter-spacing: -.02em; max-width: 680px; }
.section__desc { max-width: 440px; color: var(--muted); font-size: 16px; line-height: 1.65; }
.sub-title { font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 16px; }
.lead { font-size: 18px; line-height: 1.65; color: var(--ink); }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(24px, 3vw, 32px); box-shadow: var(--shadow); }
.card--navy { background: linear-gradient(160deg, var(--navy), var(--navy-2)); border-color: transparent; color: #fff; }

.pills, .tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { background: var(--teal-soft); color: var(--teal-dark); border: 1px solid var(--teal-line); border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 700; transition: transform .3s var(--spring), background-color .2s; }
.pills li:hover { transform: translateY(-2px); }
.tags li { background: var(--surface-2); color: var(--muted); border-radius: 6px; padding: 5px 9px; font-size: 12.5px; font-weight: 600; }

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative; overflow: hidden; color: #fff;
  background: radial-gradient(circle at 85% 15%, rgba(24, 165, 170, .24), transparent 30%),
              radial-gradient(circle at 10% 90%, rgba(24, 165, 170, .10), transparent 30%),
              linear-gradient(120deg, var(--navy), #0b2d40 72%, #0d3b4a);
}
:root[data-theme="dark"] .hero { background: radial-gradient(circle at 85% 15%, rgba(24, 165, 170, .2), transparent 30%), linear-gradient(120deg, #04121b, #072233 72%, #0a2f3d); }
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .9; }
.hero__rings {
  position: absolute; width: 460px; height: 460px; border-radius: 50%; right: -140px; bottom: -150px; pointer-events: none;
  border: 1px solid rgba(91, 210, 208, .13);
  box-shadow: 0 0 0 40px rgba(91, 210, 208, .035), 0 0 0 85px rgba(91, 210, 208, .025);
  animation: breathe 8s ease-in-out infinite;
}
@keyframes breathe { 50% { transform: scale(1.06); } }

.hero__inner {
  position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .9fr);
  gap: clamp(36px, 5vw, 64px); align-items: center;
  padding-top: calc(var(--header-h) + clamp(44px, 7vw, 84px)); padding-bottom: clamp(56px, 7vw, 80px);
}
.hero__eyebrow { color: #62d4d1; font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; line-height: 1.6; }
.hero__title { margin: 18px 0 16px; color: #fff; font-family: var(--display); font-size: clamp(42px, 6vw, 68px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.hero__title span {
  display: block;
  background: linear-gradient(90deg, #57cece, #9be7e5, #57cece); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: -200% 0; } }
.hero__role { font-family: var(--display); font-size: 16px; color: #e2eef1; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; }
.hero__typed { margin-top: 22px; min-height: 1.6em; font-family: var(--display); font-size: clamp(19px, 2vw, 23px); font-weight: 600; color: #fff; }
.typed { color: var(--teal-bright); }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 3px; vertical-align: -3px; background: var(--teal-bright); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { margin: 16px 0 32px; max-width: 640px; color: var(--on-navy-2); font-size: 17px; line-height: 1.7; }
.hero__lead strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Visuel : photo + orbites */
.hero__visual { position: relative; display: grid; place-items: center; aspect-ratio: 1 / 1; max-width: 460px; width: 100%; justify-self: center; }
.orbit { position: absolute; inset: 0; }
.orbit__ring { position: absolute; inset: var(--inset); border-radius: 50%; container-type: size; animation: spin var(--dur) linear infinite; }
.orbit__ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(91, 210, 208, .35); }
.orbit__ring--1 { --inset: 0%; --dur: 48s; }
.orbit__ring--2 { --inset: 17%; --dur: 34s; animation-direction: reverse; }
@keyframes spin { to { --spin: 360deg; } }
.orbit__chip {
  position: absolute; left: 50%; top: 50%; white-space: nowrap;
  transform: translate(-50%, -50%) rotate(calc(var(--a) + var(--spin))) translateX(50cqw) rotate(calc(-1 * (var(--a) + var(--spin))));
  padding: 6px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 700; color: #e9f7f7;
  background: rgba(9, 37, 54, .82); border: 1px solid rgba(91, 210, 208, .4); box-shadow: 0 6px 20px rgba(0, 0, 0, .25);
  backdrop-filter: blur(6px);
}
.hero__photo {
  position: relative; width: 56%; aspect-ratio: 1 / 1; border-radius: 50%; padding: 6px;
  background: conic-gradient(from var(--spin), #18a5aa, #57cece, transparent 40%, #18a5aa 70%, #57cece);
  animation: spin 10s linear infinite; box-shadow: 0 25px 60px rgba(0, 0, 0, .35);
}
.hero__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; border: 4px solid var(--navy); }
.hero__card {
  position: absolute; left: -6%; bottom: 2%; min-width: 220px; padding: 14px 16px; border-radius: 14px;
  background: rgba(9, 37, 54, .78); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 20px 45px rgba(0, 0, 0, .3); animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.hero__status { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: #34d399; }
.dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: #34d399; animation: ping 1.8s ease-out infinite; }
@keyframes ping { to { transform: scale(2.8); opacity: 0; } }
.hero__card dl { display: grid; gap: 5px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hero__card dl div { display: flex; justify-content: space-between; gap: 14px; font-size: 12px; }
.hero__card dt { color: #83a7b1; text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; font-weight: 700; padding-top: 2px; }
.hero__card dd { color: #f0f7f8; text-align: right; }

/* Bandeau d'indicateurs */
.stats-wrap { position: relative; z-index: 1; background: rgba(8, 33, 48, .92); border-top: 1px solid rgba(255, 255, 255, .08); }
:root[data-theme="dark"] .stats-wrap { background: rgba(4, 16, 24, .9); }
.stats { display: grid; grid-template-columns: repeat(5, 1fr); }
.stat { padding: 22px 20px; border-right: 1px solid rgba(255, 255, 255, .1); display: flex; align-items: center; gap: 13px; transition: background-color .3s; }
.stat:hover { background: rgba(87, 206, 206, .06); }
.stat:first-child { padding-left: 0; }
.stat:last-child { border-right: 0; }
.stat strong { font-family: var(--display); color: #fff; font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; min-width: 2.2ch; }
.stat > span { color: #b3c8cf; font-size: 11.5px; line-height: 1.4; text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }

/* =========================================================
   CLIENTS — défilé de logos
   ========================================================= */
/* Bandeau minimaliste : titre à gauche, logos sans cadre à droite.
   Espacement généreux et défilement lent pour viser facilement un logo à la souris. */
.clients { padding: 30px 0; background: var(--surface); border-bottom: 1px solid var(--line); }
.clients__inner { display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 32px; }
.clients__head { padding-right: 28px; border-right: 1px solid var(--line); }
.clients__head .kicker { line-height: 1.5; }
.clients__sub { margin-top: 6px; color: var(--muted); font-size: 13px; }
.marquee {
  overflow: hidden; padding: 10px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee__track { display: flex; width: max-content; background: var(--surface); animation: marquee 70s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee__group { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.logo-tile { position: relative; display: flex; align-items: center; justify-content: center; height: 58px; cursor: default; }
.logo-tile img {
  filter: grayscale(1) contrast(1.15); mix-blend-mode: multiply; opacity: .62; transition: filter .3s, opacity .3s;
}
.logo-tile:hover img { filter: none; opacity: 1; }
.marquee:hover .logo-tile:not(:hover) img { opacity: .3; }
/* Mode sombre : logos en clair sur fond sombre (le fond blanc des images disparaît) */
:root[data-theme="dark"] .logo-tile img { filter: grayscale(1) invert(1) brightness(1.15); mix-blend-mode: screen; opacity: .6; }
:root[data-theme="dark"] .logo-tile:hover img { opacity: 1; }

/* =========================================================
   ABOUT
   ========================================================= */
.about { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 26px; }
.about__story p + p { margin-top: 15px; }
.about__story p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.about__story .lead { color: var(--ink); }
.about__story strong { color: var(--heading); font-weight: 700; }
.vision {
  position: relative; margin: 26px 0 24px; padding: 18px 22px 18px 54px; border-radius: 14px;
  background: var(--teal-soft); border: 1px solid var(--teal-line); color: var(--heading); font-family: var(--display); font-size: 17px; font-weight: 600; line-height: 1.55;
}
.vision::before { content: "“"; position: absolute; left: 16px; top: 2px; font-size: 56px; line-height: 1; color: var(--teal); font-family: Georgia, serif; }

.about__aside h3 { color: #fff; font-size: 19px; margin-bottom: 12px; }
.value-list li { display: flex; gap: 14px; padding: 13px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.value-list b { color: #5dd0ce; font-size: 12px; min-width: 22px; padding-top: 2px; }
.value-list strong { display: block; font-family: var(--display); font-size: 15px; font-weight: 700; color: #fff; }
.value-list small { color: #b3c8cf; font-size: 13.5px; line-height: 1.55; }
.value-list li { transition: transform .3s var(--ease); }
.value-list li:hover { transform: translateX(4px); }
.sectors__title { margin-top: 22px; font-size: 11px !important; letter-spacing: .16em; text-transform: uppercase; color: #83a7b1 !important; }
.sectors { display: flex; flex-wrap: wrap; gap: 7px; }
.sectors li { padding: 5px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 500; color: #d7e9ec; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); }

/* Architecture animée */
.arch { margin-top: 26px; }
.arch__caption { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; margin-bottom: 24px; }
.arch__caption strong { font-size: 18px; color: var(--heading); letter-spacing: -.01em; }
.arch__flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 30px; }
.arch__stage {
  position: relative; display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 14px;
  background: var(--surface-2); border: 1px solid var(--line); transition: transform .35s var(--spring), border-color .3s, box-shadow .3s;
}
.arch__stage:hover { transform: translateY(-4px); border-color: var(--teal-line); box-shadow: var(--shadow-sm); }
.arch__stage:not(:last-child)::after { /* flux de données animé entre les étapes */
  content: ""; position: absolute; top: 50%; right: -27px; width: 24px; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 5px, transparent 5px 9px); background-size: 18px 3px;
  animation: flow-x .9s linear infinite;
}
@keyframes flow-x { to { background-position: 18px 0; } }
.arch__stage--core { background: linear-gradient(160deg, var(--navy), var(--navy-2)); border-color: transparent; }
.arch__stage--core .arch__name { color: #fff; }
.arch__stage--core .arch__tech { color: #b9cfd6; }
.arch__stage--core .arch__step { color: var(--teal-bright); }
.arch__step { font: 600 11px/1 var(--mono); color: var(--teal-dark); }
.arch__name { font-family: var(--display); font-weight: 700; font-size: 16px; color: var(--heading); }
.arch__tech { font-size: 13.5px; color: var(--muted); line-height: 1.55; }
.arch__gov {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 22px; padding: 13px 16px; border-radius: 12px;
  border: 1.5px dashed var(--teal-line); font-size: 13.5px; color: var(--muted);
}
.arch__gov span { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }

/* =========================================================
   EXPERTISE
   ========================================================= */
.skills { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.spot { position: relative; isolation: isolate; }
.spot::before { /* halo qui suit la souris */
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; opacity: 0; transition: opacity .3s;
  background: radial-gradient(380px circle at var(--mx, 50%) var(--my, 50%), rgba(24, 165, 170, .14), transparent 45%);
}
.spot:hover::before { opacity: 1; }
.skill {
  display: flex; flex-direction: column; padding: 26px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line);
  transition: transform .4s var(--spring), box-shadow .3s, border-color .3s;
}
.skill:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-line); }
.skill--featured { border-color: var(--teal-line); box-shadow: inset 0 3px 0 var(--teal); }
.skill__icon {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--teal-soft); color: var(--teal-dark);
  transition: transform .5s var(--spring), background-color .3s, color .3s;
}
.skill__icon .icon { width: 22px; height: 22px; }
.skill:hover .skill__icon { transform: rotate(-10deg) scale(1.1); background: var(--teal); color: #fff; }
.skill h3 { margin: 16px 0 14px; font-size: 18px; font-weight: 700; }
.skill__points { display: grid; gap: 8px; margin-bottom: 22px; }
.skill__points li { position: relative; padding-left: 16px; font-size: 14.5px; color: var(--muted); line-height: 1.55; }
.skill__points li::before { content: ""; position: absolute; left: 0; top: .55em; width: 6px; height: 6px; border-radius: 2px; background: var(--teal); opacity: .7; }
.skill .tags { margin-top: auto; }

.stack { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 28px; margin-top: 36px; }
.stack > div { padding: 18px 0; border-top: 1px solid var(--line); }
.stack h3 { font-family: var(--font); font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); margin-bottom: 6px; }
.stack p { font-size: 14.5px; color: var(--ink); }

/* =========================================================
   EXPÉRIENCE — frise animée
   ========================================================= */
.timeline { position: relative; padding-left: 40px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 6px; bottom: 6px; width: 2px; background: var(--line); border-radius: 2px; }
.timeline__fill {
  position: absolute; left: 8px; top: 6px; width: 2px; height: calc((100% - 12px) * var(--p, 0)); border-radius: 2px;
  background: linear-gradient(180deg, var(--teal-bright), var(--teal)); box-shadow: 0 0 10px rgba(24, 165, 170, .5);
}
.timeline__fill::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 5px var(--teal-soft); }
.job { position: relative; padding-bottom: 40px; }
.job:last-child { padding-bottom: 0; }
.job::before {
  content: ""; position: absolute; left: -38px; top: 4px; width: 14px; height: 14px; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--line); transition: border-color .4s, background-color .4s, transform .5s var(--spring);
}
.job.is-passed::before { border-color: var(--teal); background: var(--surface); transform: scale(1.15); }
.job__date { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--teal-dark); font-size: 13px; font-weight: 700; letter-spacing: .06em; }
.badge { padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; background: var(--teal-soft); color: var(--teal-dark); border: 1px solid var(--teal-line); }
.badge--live { background: rgba(52, 211, 153, .12); color: #0f9f6e; border-color: rgba(52, 211, 153, .35); }
:root[data-theme="dark"] .badge--live { color: #34d399; }
.job h3 { margin: 6px 0 2px; font-size: clamp(18px, 2vw, 21px); font-weight: 700; }
.job__company { color: var(--teal-dark); font-size: 15px; font-weight: 500; }
.job__summary { margin-top: 12px; color: var(--muted); font-size: 15.5px; line-height: 1.65; max-width: 780px; }

.missions { display: grid; gap: 10px; margin-top: 16px; }
.mission { margin-top: 16px; padding: 18px 20px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.missions .mission { margin-top: 0; }
.mission__head { display: flex; align-items: center; gap: 14px; }
.mission__head p { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 14px; flex: 1; }
.mission__head strong { font-family: var(--display); color: var(--heading); font-size: 16px; font-weight: 700; }
.mission__head span:not(.mini-logo) { font-size: 13.5px; color: var(--muted); }
.mini-logo {
  flex: none; display: grid; place-items: center; width: 52px; height: 40px; padding: 5px; border-radius: 9px;
  background: #fff; border: 1px solid #e3ecee; transition: transform .4s var(--spring);
}
.mini-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.mission:hover .mini-logo { transform: scale(1.08) rotate(-3deg); }
.mission__title { margin-top: 12px; font-weight: 600; color: var(--heading); font-size: 15.5px; }
.mission ul { display: grid; gap: 5px; margin-top: 10px; }
.mission li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.mission li::before { content: "›"; position: absolute; left: 2px; color: var(--teal); font-weight: 900; }
.env { margin-top: 12px; padding: 9px 12px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: 13px; }
.env b { color: var(--heading); }

.mission--fold { padding: 0; box-shadow: none; transition: border-color .3s, box-shadow .3s; }
.mission--fold:hover { border-color: var(--teal-line); }
.mission--fold[open] { border-color: var(--teal-line); box-shadow: var(--shadow-sm); }
.mission--fold summary { position: relative; padding: 12px 48px 12px 14px; cursor: pointer; list-style: none; }
.mission--fold summary::-webkit-details-marker { display: none; }
.mission--fold summary::after {
  content: "+"; position: absolute; right: 16px; top: 50%; width: 24px; height: 24px; margin-top: -12px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: var(--teal-dark); background: var(--teal-soft); transition: transform .35s var(--spring);
}
.mission--fold[open] summary::after { transform: rotate(45deg); }
.mission--fold > :not(summary) { padding-inline: 20px; }
.mission--fold > :last-child { margin-bottom: 18px; }
.mission--fold .mission__title { margin-top: 4px; }
.mission--fold[open] > :not(summary) { animation: unfold .45s var(--ease); }
@keyframes unfold { from { opacity: 0; transform: translateY(-6px); } }

/* =========================================================
   PROJETS
   ========================================================= */
.projects { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.project {
  display: flex; flex-direction: column; border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-sm); transition: transform .45s var(--ease), box-shadow .35s, border-color .3s; transform-style: preserve-3d;
}
.project:hover { box-shadow: var(--shadow); border-color: var(--teal-line); }
.project__top {
  position: relative; display: flex; align-items: center; gap: 16px; height: 128px; padding: 20px; overflow: hidden; color: #fff;
  background: linear-gradient(130deg, var(--navy), #125266);
}
.project__top::before, .project__top::after {
  content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(91, 210, 208, .25); transition: transform .7s var(--ease);
}
.project__top::before { width: 150px; height: 150px; right: -40px; top: 20px; box-shadow: 0 0 0 18px rgba(91, 210, 208, .05); }
.project__top::after { width: 70px; height: 70px; right: 70px; top: -30px; border-color: rgba(91, 210, 208, .15); }
.project:hover .project__top::before { transform: scale(1.25) translate(-10px, -6px); }
.project:hover .project__top::after { transform: scale(1.4) translate(-8px, 10px); }
.project__logo {
  position: relative; z-index: 1; flex: none; display: grid; place-items: center; width: 84px; height: 84px; padding: 10px; border-radius: 16px;
  background: #fff; box-shadow: 0 10px 26px rgba(0, 0, 0, .25); transition: transform .55s var(--spring);
}
.project__logo img { max-width: 100%; max-height: 100%; object-fit: contain; }
.project:hover .project__logo { transform: rotate(-6deg) scale(1.06); }
.project__top > div { position: relative; z-index: 1; display: grid; gap: 4px; }
.project__sector { color: #65d2d0; font-size: 11.5px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.project__period { font: 600 12px/1 var(--mono); color: #c4d6dc; }
.project__body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 22px; }
.project__body h3 { font-size: 18px; font-weight: 700; line-height: 1.35; }
.project__body > p { margin: 10px 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.project__body .tags { margin-top: auto; }
.project__open {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; padding: 0; border: 0; background: none; cursor: pointer;
  font-weight: 700; font-size: 14.5px; color: var(--teal-dark); align-self: flex-start;
}
.project__open::before { content: ""; position: absolute; inset: 0; z-index: 2; }
.project__open .icon { transition: transform .35s var(--spring); }
.project:hover .project__open .icon { transform: translateX(5px); }

/* Fenêtre étude de cas */
.case {
  width: min(900px, calc(100% - 28px)); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 20px;
  background: var(--surface); color: var(--ink); box-shadow: 0 40px 120px rgba(0, 0, 0, .45); overflow: hidden;
}
.case::backdrop { background: rgba(4, 18, 27, .62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.case[open] { animation: case-in .5s var(--spring); }
.case[open]::backdrop { animation: fade .35s ease; }
@keyframes case-in { from { opacity: 0; transform: translateY(30px) scale(.96); } }
@keyframes fade { from { opacity: 0; } }
.case__inner { position: relative; max-height: inherit; overflow-y: auto; overscroll-behavior: contain; }
.case__close { position: absolute; top: 18px; right: 18px; z-index: 3; background: rgba(255, 255, 255, .08); }
.case__band {
  position: relative; display: grid; grid-template-columns: auto 1fr; gap: 22px; align-items: center; overflow: hidden;
  padding: clamp(26px, 4vw, 40px); padding-right: 70px; color: #fff; background: linear-gradient(125deg, var(--navy), #125266);
}
.case__band::after { content: ""; position: absolute; width: 260px; height: 260px; right: -80px; bottom: -150px; border-radius: 50%; border: 1px solid rgba(91, 210, 208, .25); box-shadow: 0 0 0 30px rgba(91, 210, 208, .05); }
.case__band .project__logo { width: 96px; height: 96px; animation: pop .6s var(--spring) both .1s; }
@keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } }
.case__eyebrow { color: #65d2d0; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.case__title { margin-top: 8px; color: #fff; font-size: clamp(23px, 3vw, 31px); font-weight: 700; }
.case__meta { margin-top: 8px; color: #c4d6dc; font-size: 14px; }
.case__meta strong { color: #fff; }
.case__body { padding: 6px clamp(24px, 4vw, 40px) 0; }
.case__body > h3 { margin: 30px 0 12px; font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.case__body > p { color: var(--muted); font-size: 16px; line-height: 1.65; }
.case__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 26px; }
.case__grid section { padding: 20px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); }
.case__grid h3 { margin-bottom: 10px; font-family: var(--font); font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--teal-dark); }
.case__grid p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.case__grid ul, .case__list, .case__results { display: grid; gap: 7px; }
.case__grid li, .case__list li { position: relative; padding-left: 16px; color: var(--muted); font-size: 15px; line-height: 1.6; }
.case__grid li::before, .case__list li::before { content: "›"; position: absolute; left: 2px; color: var(--teal); font-weight: 900; }
.case__results li { display: flex; gap: 12px; padding: 12px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 600; background: var(--teal-soft); border: 1px solid var(--teal-line); color: var(--heading); }
.case__results li::before { content: "✓"; color: var(--teal); font-weight: 900; }
.case__note { margin-top: 12px; font-size: 13.5px !important; }
.case__footer { display: flex; justify-content: flex-end; padding: 26px clamp(24px, 4vw, 40px) clamp(26px, 4vw, 36px); }
.case .reveal-in { animation: rise .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 50ms + .15s); }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }

.flow { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 28px; }
.flow li { position: relative; padding: 13px 14px; border-radius: 10px; border: 1px solid var(--teal-line); background: var(--surface); font-weight: 700; font-size: 13.5px; color: var(--heading); }
.flow small { display: block; margin-top: 4px; font: 600 11.5px/1.4 var(--mono); color: var(--teal-dark); }
.flow li:not(:last-child)::after {
  content: ""; position: absolute; top: 50%; right: -24px; width: 20px; height: 3px; margin-top: -1.5px; border-radius: 3px;
  background: repeating-linear-gradient(90deg, var(--teal) 0 5px, transparent 5px 9px); background-size: 18px 3px; animation: flow-x .9s linear infinite;
}

/* =========================================================
   CERTIFICATIONS
   ========================================================= */
.certs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.cert {
  position: relative; overflow: hidden; display: flex; flex-direction: column; padding: 20px; border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line); transition: transform .4s var(--spring), box-shadow .3s, border-color .3s;
}
.cert::after { /* brillance au survol */
  content: ""; position: absolute; inset: -50% auto -50% -60%; width: 40%; transform: rotate(20deg) translateX(-200%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transition: transform .9s var(--ease);
}
:root[data-theme="dark"] .cert::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .12), transparent); }
.cert:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--teal-line); }
.cert:hover::after { transform: rotate(20deg) translateX(650%); }
.cert__code { align-self: flex-start; background: var(--navy); color: #fff; border-radius: 7px; padding: 6px 9px; font: 600 12px/1 var(--mono); letter-spacing: .04em; }
:root[data-theme="dark"] .cert__code { background: #133a4e; }
.cert small { display: block; margin-top: 16px; color: var(--teal-dark); font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.cert strong { display: block; margin-top: 6px; font-family: var(--display); color: var(--heading); font-size: 16.5px; font-weight: 700; line-height: 1.35; }
.cert__by { margin-top: auto; padding-top: 14px; font-size: 13px; color: var(--muted); }
.cert--expert { background: linear-gradient(150deg, var(--navy), #125266); border-color: transparent; }
.cert--expert .cert__code { background: var(--teal); }
.cert--expert small { color: var(--teal-bright); }
.cert--expert strong { color: #fff; }
.cert--expert .cert__by { color: #b9cfd6; }

.edu-wrap { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 26px; margin-top: 40px; align-items: start; }
.education-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.education { padding: 16px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.education:hover { border-color: var(--teal-line); transform: translateY(-3px); }
.education .year { color: var(--teal-dark); font: 600 12px/1 var(--mono); }
.education strong { display: block; font-family: var(--display); color: var(--heading); font-size: 15.5px; font-weight: 700; line-height: 1.35; margin: 6px 0 4px; }
.education > span:last-child { color: var(--muted); font-size: 13.5px; }
.edu-side { box-shadow: none; }
.edu-side .sub-title:not(:first-child) { margin-top: 24px; }
.langs { display: grid; gap: 8px; }
.langs div { display: flex; justify-content: space-between; font-size: 14px; padding-bottom: 8px; border-bottom: 1px dashed var(--line); }
.langs div:last-child { border: 0; padding: 0; }
.langs dt { font-weight: 700; color: var(--heading); }
.langs dd { color: var(--muted); }

/* =========================================================
   APPROCHE (navy)
   ========================================================= */
.section--navy { color: #fff; background: radial-gradient(circle at 90% 10%, rgba(24, 165, 170, .18), transparent 32%), linear-gradient(120deg, var(--navy), #0b2d40 70%, #0d3b4a); overflow: hidden; }
:root[data-theme="dark"] .section--navy { background: radial-gradient(circle at 90% 10%, rgba(24, 165, 170, .14), transparent 32%), linear-gradient(120deg, #04121b, #072233); }
.section--navy .kicker, .contact .kicker { color: #62d4d1; }
.section--navy .section__title, .contact .section__title { color: #fff; }
.section--navy .section__desc, .contact .section__desc { color: var(--on-navy-2); }
.section--navy .sub-title { color: #62d4d1; }

.steps-wrap { position: relative; }
.steps__line { position: absolute; left: 27px; right: calc((100% - 72px) / 5 - 27px); top: 26px; height: 2px; background: rgba(255, 255, 255, .12); }
.steps__line span { position: absolute; inset: 0; background: linear-gradient(90deg, var(--teal), var(--teal-bright)); transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease); box-shadow: 0 0 12px rgba(87, 206, 206, .6); }
.steps-wrap.is-visible .steps__line span { transform: scaleX(1); }
.steps { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.step { display: flex; flex-direction: column; }
.step__num {
  display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; margin-bottom: 18px;
  font: 600 15px/1 var(--mono); color: var(--teal-bright); background: var(--navy); border: 2px solid rgba(87, 206, 206, .5);
  transition: background-color .3s, color .3s, transform .4s var(--spring);
}
.step:hover .step__num { background: var(--teal); color: #fff; transform: scale(1.1); }
.step h3 { color: #fff; font-size: 17px; font-weight: 700; }
.step p { margin-top: 8px; color: #b3c8cf; font-size: 14.5px; line-height: 1.6; }
.step .step__out { margin-top: auto; padding-top: 14px; color: #e9f5f6; font-size: 13px; font-weight: 600; }
.step .step__out::before { content: "→ "; color: var(--teal-bright); }
.js .step { opacity: 0; transform: translateY(24px); transition: opacity .6s var(--ease), transform .6s var(--spring); }
.js .steps-wrap.is-visible .step { opacity: 1; transform: none; }
.steps-wrap.is-visible .step:nth-child(2) { transition-delay: .25s; }
.steps-wrap.is-visible .step:nth-child(3) { transition-delay: .5s; }
.steps-wrap.is-visible .step:nth-child(4) { transition-delay: .75s; }
.steps-wrap.is-visible .step:nth-child(5) { transition-delay: 1s; }

.offers { margin-top: 56px; }
.offers__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.offers__list li {
  display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); transition: background-color .3s, border-color .3s, transform .35s var(--spring);
}
.offers__list li:hover { background: rgba(87, 206, 206, .1); border-color: rgba(87, 206, 206, .4); transform: translateY(-3px); }
.offers__list strong { font-family: var(--display); color: #fff; font-size: 16px; font-weight: 700; }
.offers__list span { color: #b3c8cf; font-size: 14px; }

/* =========================================================
   CONTACT (navy)
   ========================================================= */
.contact { color: #fff; background: linear-gradient(120deg, var(--navy), #0d3d4e); overflow: hidden; }
:root[data-theme="dark"] .contact { background: linear-gradient(120deg, #04121b, #0a2f3d); }
.contact::before { content: ""; position: absolute; width: 520px; height: 520px; left: -200px; bottom: -280px; border-radius: 50%; border: 1px solid rgba(91, 210, 208, .13); box-shadow: 0 0 0 45px rgba(91, 210, 208, .03), 0 0 0 95px rgba(91, 210, 208, .02); animation: breathe 9s ease-in-out infinite; }
.contact__inner { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(36px, 5vw, 64px); align-items: start; }
.contact .section__desc { max-width: 520px; margin-top: 16px; }
.contact__links { display: grid; gap: 10px; margin: 28px 0; max-width: 440px; }
.contact__links a, .contact__links li > span {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 10px; font-size: 14px; color: #e8f5f6;
  border: 1px solid rgba(255, 255, 255, .16); transition: border-color .25s, background-color .25s, transform .3s var(--spring); word-break: break-word;
}
.contact__links a:hover { border-color: var(--teal-bright); background: rgba(87, 206, 206, .08); transform: translateX(4px); }
.contact__ico { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 8px; background: rgba(87, 206, 206, .14); color: var(--teal-bright); }
.contact__ico .icon { width: 16px; height: 16px; }

.form { display: grid; gap: 16px; padding: clamp(24px, 3vw, 34px); border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 30px 70px rgba(0, 0, 0, .3); }
.form__title { font-size: 22px; font-weight: 700; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--heading); }
.optional { color: var(--muted); font-weight: 500; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2);
  color: var(--ink); font: 400 15px/1.4 var(--font); transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { resize: vertical; min-height: 120px; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%);
  background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--teal); background: var(--surface); box-shadow: 0 0 0 4px var(--teal-soft); }
.field.is-invalid input, .field.is-invalid textarea { border-color: #e5484d; animation: shake .4s; }
@keyframes shake { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.field__error { font-size: 12.5px; color: #e5484d; }
.field__error:empty { display: none; }
.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__status { font-size: 14px; color: var(--muted); }
.form__status:empty { display: none; }
.form__status.is-success { color: #0f9f6e; }
.form__status.is-error { color: #e5484d; }
.form button[disabled] { opacity: .7; cursor: progress; }

/* ---------- Footer ---------- */
.footer { background: var(--navy-4); color: var(--on-navy-3); padding: 22px 0; font-size: 13px; }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.footer__links { display: flex; align-items: center; gap: 16px; }
.footer__links a { display: inline-flex; color: #c4d6dc; transition: color .2s; }
.footer__links a:hover { color: var(--teal-bright); }

/* =========================================================
   Révélations au défilement
   ========================================================= */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal--left { transform: translateX(-34px); }
.js .reveal--right { transform: translateX(34px); }
.js .reveal--zoom { transform: scale(.9); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal, .js .step { opacity: 1; transform: none; }
  .marquee__track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee { -webkit-mask-image: none; mask-image: none; }
  .marquee__group { flex-wrap: wrap; justify-content: center; padding-inline: var(--gutter); }
  .marquee__group[aria-hidden] { display: none; }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1100px) {
  .nav__link { padding: 8px 8px; font-size: 12.5px; }
  .stats { grid-template-columns: repeat(5, auto); justify-content: space-between; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-grid; }
  .header { background: rgba(9, 37, 54, .96); }
  :root[data-theme="dark"] .header { background: rgba(4, 18, 27, .96); }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto 0; padding: 8px var(--gutter) 24px; background: var(--navy);
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    opacity: 0; visibility: hidden; transform: translateY(-10px); transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  :root[data-theme="dark"] .nav { background: #04121b; }
  .menu-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__link { padding: 14px 2px; font-size: 15px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
  .nav__link::after { display: none; }
  .nav__cta-item { margin: 18px 0 0; }
  .nav__cta-item .btn { width: 100%; min-height: 46px; }

  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 400px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .stat { border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .stat:nth-child(3) { border-right: 0; }
  .stat:nth-child(4) { padding-left: 0; }
  .stat:nth-child(n+4) { border-bottom: 0; }

  .section__head { display: block; }
  .section__desc { margin-top: 14px; }
  .about, .edu-wrap, .contact__inner { grid-template-columns: 1fr; }
  .arch__flow { grid-template-columns: 1fr; gap: 22px; }
  .arch__stage { flex-direction: row; flex-wrap: wrap; align-items: baseline; column-gap: 10px; }
  .arch__tech { flex-basis: 100%; }
  .arch__stage:not(:last-child)::after {
    top: auto; bottom: -21px; right: auto; left: 26px; width: 3px; height: 20px; margin: 0;
    background: repeating-linear-gradient(180deg, var(--teal) 0 5px, transparent 5px 9px); background-size: 3px 18px; animation-name: flow-y;
  }
  @keyframes flow-y { to { background-position: 0 18px; } }
  .skills, .projects { grid-template-columns: repeat(2, 1fr); }
  .certs { grid-template-columns: repeat(2, 1fr); }
  .stack, .offers__list { grid-template-columns: repeat(2, 1fr); }

  .steps-wrap { padding-left: 0; }
  .steps__line { left: 26px; right: auto; top: 10px; bottom: 10px; width: 2px; height: auto; }
  .steps__line span { transform: scaleY(0); transform-origin: top; }
  .steps-wrap.is-visible .steps__line span { transform: scaleY(1); }
  .steps { grid-template-columns: 1fr; gap: 26px; }
  .step { display: grid; grid-template-columns: 54px 1fr; column-gap: 20px; }
  .step__num { grid-row: span 3; margin: 0; }
  .step .step__out { margin-top: 8px; padding-top: 0; }
}

@media (max-width: 640px) {
  :root { --header-h: 64px; }
  .brand__text { font-size: 12px; }
  .hero__title { font-size: clamp(38px, 11vw, 50px); }
  .hero__actions .btn { flex: 1 1 auto; }
  .hero__actions .btn--text { flex-basis: 100%; justify-content: flex-start; }
  .hero__visual { max-width: 340px; }
  .orbit__chip { font-size: 10.5px; padding: 5px 9px; }
  .hero__card { left: 0; right: 0; bottom: -6%; min-width: 0; }
  .hero__inner { padding-bottom: 80px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat, .stat:nth-child(n) { padding: 16px 12px; border-right: 1px solid rgba(255, 255, 255, .1); border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .stat:nth-child(even) { border-right: 0; }
  .stat:last-child { grid-column: 1 / -1; border-bottom: 0; border-right: 0; }
  .stat strong { font-size: 26px; }

  .clients__inner { grid-template-columns: 1fr; gap: 14px; }
  .clients__head { padding: 0; border: 0; }
  .logo-tile { height: 46px; }
  .marquee__group { gap: 44px; padding-right: 44px; }
  .skills, .projects, .certs, .stack, .offers__list, .education-grid, .case__grid, .form__row { grid-template-columns: 1fr; }
  .timeline { padding-left: 30px; }
  .timeline::before, .timeline__fill { left: 4px; }
  .job::before { left: -32px; }
  .mission__head p { display: block; }
  .mission__head span:not(.mini-logo) { display: block; }
  .mini-logo { width: 46px; height: 36px; }
  .mission, .mission--fold > :not(summary) { padding-inline: 16px; }
  .mission--fold summary { padding-left: 12px; }

  .case__band { grid-template-columns: 1fr; gap: 14px; padding-right: 26px; }
  .case__band .project__logo { width: 72px; height: 72px; }
  .flow { grid-auto-flow: row; gap: 24px; }
  .flow li:not(:last-child)::after {
    top: auto; bottom: -22px; right: auto; left: 22px; width: 3px; height: 20px; margin: 0;
    background: repeating-linear-gradient(180deg, var(--teal) 0 5px, transparent 5px 9px); background-size: 3px 18px; animation-name: flow-y;
  }
  .case__footer .btn { width: 100%; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
}

/* Après apparition : transitions courtes pour les interactions */
.js .reveal.is-settled { transition: opacity .8s var(--ease), transform .45s var(--ease), box-shadow .35s, border-color .3s; }
.js .project.is-settled { transition: transform .2s ease-out, box-shadow .35s, border-color .3s; }

/* =========================================================
   Logos — taille visuelle homogène
   Les fichiers sont rognés au plus près du dessin (fond transparent).
   Chaque <img> porte --k = ratio^-0.45 (ratio = largeur / hauteur) :
   un logo large est donc moins haut qu'un logo carré, pour que tous
   occupent une surface visuelle comparable.
   Hauteur affichée = --logo-base × --k, plafonnée par la case.
   ========================================================= */
.logo-tile, .project__logo, .org-logo { --logo-base: 52px; }
.logo-tile img, .project__logo img, .org-logo img {
  display: block; width: auto; height: calc(var(--logo-base) * var(--k, 1));
  max-width: 100%; object-fit: contain;
}
.logo-tile { --logo-base: 54px; width: 150px; }

/* Cartes projets et fenêtre d'étude de cas : même case pour tous */
.project__logo { --logo-base: 54px; display: grid; place-items: center; width: 132px; height: 84px; padding: 12px 14px; }
.case__band .project__logo { --logo-base: 64px; width: 156px; height: 100px; }

/* Parcours : case logo de l'employeur (logo réel ou monogramme) */
.org-logo {
  --logo-base: 50px; flex: none; display: grid; place-items: center; width: 112px; height: 68px; padding: 10px;
  border-radius: 14px; background: #fff; border: 1px solid #e3ecee; box-shadow: var(--shadow-sm);
  transition: transform .45s var(--spring);
}
.org-logo--mono { background: linear-gradient(145deg, var(--navy), #125266); border-color: transparent; }
.org-logo--mono span { font: 800 19px/1 var(--display); letter-spacing: .04em; color: #fff; }
.org-logo--mono span::first-letter { color: var(--teal-bright); }
.job:hover .org-logo { transform: rotate(-4deg) scale(1.05); }

/* Parcours : en-tête et carte de poste */
.job__head { display: flex; align-items: center; gap: 18px; }
.job__head h3 { margin-top: 6px; }
.job__card { margin-top: 16px; padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm); transition: border-color .3s; }
.job:hover .job__card { border-color: var(--teal-line); }
.job__focus { font-weight: 600; color: var(--heading); font-size: 15.5px; }
.job__card ul { display: grid; gap: 6px; margin-top: 10px; }
.job__card li { position: relative; padding-left: 16px; font-size: 14.5px; line-height: 1.6; color: var(--muted); }
.job__card li::before { content: "›"; position: absolute; left: 2px; color: var(--teal); font-weight: 900; }
.job::before { top: 27px; }

@media (max-width: 640px) {
  .logo-tile { --logo-base: 44px; width: 128px; }
  .org-logo { --logo-base: 40px; width: 88px; height: 56px; padding: 8px; }
  .org-logo--mono span { font-size: 16px; }
  .job__head { align-items: flex-start; gap: 14px; }
  .job::before { top: 19px; }
  .job__card { padding: 16px; }
  .case__band .project__logo { --logo-base: 54px; width: 132px; height: 84px; }
}

/* Logo OB Consulting : bandeau plein, coins adoucis */
.org-logo img[src$="ob-consulting-logo.png"] { border-radius: 5px; }

/* =========================================================
   Marque ODATAVIZ
   ========================================================= */
.brand__logo { display: block; width: auto; height: 30px; transition: transform .5s var(--spring), filter .3s; }
.brand:hover .brand__logo { transform: translateY(-1px) scale(1.03); filter: drop-shadow(0 0 10px rgba(87, 206, 206, .35)); }
@media (max-width: 640px) { .brand__logo { height: 26px; } }

/* =========================================================
   Sélecteur de langue FR / EN
   ========================================================= */
.lang-switch {
  display: inline-flex; align-items: center; height: 40px; padding: 3px; gap: 2px; border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, .16);
}
.lang-switch a {
  display: grid; place-items: center; min-width: 34px; height: 100%; padding: 0 8px; border-radius: 7px;
  font: 700 12px/1 var(--font); letter-spacing: .06em; color: #c4d6dc; transition: color .2s, background-color .2s;
}
.lang-switch a:hover { color: var(--teal-bright); }
.lang-switch a[aria-current="true"] { color: #fff; background: linear-gradient(135deg, #22b4b8, #0d7c88); box-shadow: 0 4px 12px rgba(24, 165, 170, .3); }

/* =========================================================
   Dégradés : touches discrètes sur la palette navy / teal
   ========================================================= */
:root { --grad-teal: linear-gradient(135deg, #22b4b8 0%, #12949f 55%, #0b7480 100%); --grad-line: linear-gradient(90deg, #18a5aa, #57cece 60%, #9be7e5); }

/* Boutons principaux */
.btn--primary { background: var(--grad-teal); }
.btn--primary:hover, :root[data-theme="dark"] .btn--primary:hover { background: linear-gradient(135deg, #1aa6ab 0%, #0e7f8b 60%, #08626d 100%); }

/* Titres de section : kicker précédé d'un filet dégradé */
.section__head .kicker, .contact__intro .kicker { display: inline-flex; align-items: center; gap: 10px; }
.section__head .kicker::before, .contact__intro .kicker::before { content: ""; width: 26px; height: 2px; border-radius: 2px; background: var(--grad-line); }

/* Chiffres clés */
.stat strong { background: linear-gradient(180deg, #ffffff 30%, #9be7e5); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* Fonds de section très légèrement dégradés */
.section--panel { background: linear-gradient(180deg, var(--panel), var(--bg)); }
#about, #experience, #certifications { background: radial-gradient(900px 420px at 100% 0%, rgba(24, 165, 170, .06), transparent 70%), var(--bg); }
:root[data-theme="dark"] #about, :root[data-theme="dark"] #experience, :root[data-theme="dark"] #certifications { background: radial-gradient(900px 420px at 100% 0%, rgba(34, 184, 188, .07), transparent 70%), var(--bg); }

/* Cartes : liseré supérieur dégradé au survol */
.skill, .cert, .job__card { position: relative; }
.skill::after, .job__card::after {
  content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px;
  background: var(--grad-line); opacity: 0; transform: scaleX(.4); transition: opacity .35s, transform .5s var(--ease);
}
.skill:hover::after, .job:hover .job__card::after { opacity: 1; transform: none; }
.skill--featured { box-shadow: none; }
.skill--featured::after { opacity: 1; transform: none; left: 0; right: 0; height: 3px; border-radius: 16px 16px 0 0; }

/* Icônes et badges */
.skill__icon { background: linear-gradient(145deg, var(--teal-soft), rgba(24, 165, 170, .2)); }
.skill:hover .skill__icon { background: var(--grad-teal); }
.cert__code { background: linear-gradient(135deg, var(--navy), #125266); }
.cert--expert .cert__code { background: var(--grad-teal); }
.step:hover .step__num { background: var(--grad-teal); }
.timeline__fill { background: linear-gradient(180deg, #9be7e5, var(--teal) 40%, #0b7480); }

/* Bandeaux navy : profondeur légère */
.project__top { background: linear-gradient(130deg, var(--navy) 0%, #0f3e52 55%, #14606f 100%); }
.card--navy { background: radial-gradient(420px 260px at 100% 0%, rgba(87, 206, 206, .16), transparent 70%), linear-gradient(160deg, var(--navy), var(--navy-2)); }

/* Pied de page : filet dégradé */
.footer { position: relative; }
.footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(87, 206, 206, .55), transparent); }

/* =========================================================
   Barre de défilement aux couleurs du site
   ========================================================= */
html { scrollbar-width: thin; scrollbar-color: var(--teal) var(--panel); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--panel); }
::-webkit-scrollbar-thumb { background: linear-gradient(180deg, #57cece, #18a5aa 50%, #0b7480); border-radius: 10px; border: 2px solid var(--panel); }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(180deg, #6fdada, #12949f 50%, #08626d); }
.case__inner { scrollbar-color: var(--teal) transparent; }

/* =========================================================
   En-tête plus compact (boutons de droite)
   ========================================================= */
.header__actions { gap: 6px; align-items: center; }
.header__actions .icon-btn { width: 34px; height: 34px; border-radius: 8px; }
.header__actions .icon-btn .icon { width: 17px; height: 17px; }
.lang-switch { height: 34px; padding: 2px; border-radius: 8px; }
.lang-switch a { min-width: 30px; padding: 0 7px; border-radius: 6px; font-size: 11.5px; }
@media (min-width: 961px) {
  .nav__link { padding: 8px 10px; font-size: 13.5px; }
  .nav__link::after { left: 10px; right: 10px; }
  .nav__cta-item { margin-left: 6px; }
  .nav__cta-item .btn--sm { min-height: 34px; padding: 0 14px; font-size: 12.5px; border-radius: 8px; gap: 7px; }
}

/* =========================================================
   Responsive : ajustements fins
   ========================================================= */
/* Tablette paysage / petits portables : le menu complet doit tenir */
@media (min-width: 961px) and (max-width: 1140px) {
  .header__inner { gap: 14px; }
  .nav__link { padding: 8px 7px; font-size: 13px; }
  .nav__link::after { left: 7px; right: 7px; }
  .brand__logo { height: 26px; }
}
/* Mobile : en-tête serré */
@media (max-width: 640px) {
  .header__inner { gap: 10px; }
  .project__top > div { min-width: 0; }
  .project__sector { overflow-wrap: anywhere; }
}
/* Très petits écrans (≤ 380 px) */
@media (max-width: 380px) {
  :root { --gutter: 16px; }
  .brand__logo { height: 22px; }
  .header__actions { gap: 4px; }
  .lang-switch a { min-width: 26px; padding: 0 5px; }
  .stat, .stat:nth-child(n) { padding: 14px 8px; gap: 8px; }
  .stat strong { font-size: 22px; min-width: 0; }
  .stat > span { font-size: 10px; letter-spacing: .04em; }
  .project__top { gap: 12px; padding: 16px; }
  .project__logo { width: 104px; padding: 10px; }
  .hero__title { font-size: 34px; }
  .btn { white-space: normal; text-align: center; }
}
/* Visuel du hero : les pastilles en orbite restent dans l'écran */
@media (max-width: 640px) {
  .hero__visual { aspect-ratio: auto; display: block; max-width: none; }
  .hero__visual .orbit, .hero__visual .hero__photo { width: min(300px, calc(100vw - 2 * var(--gutter) - 100px)); }
  .orbit { position: absolute; inset: 0 auto auto 50%; aspect-ratio: 1 / 1; transform: translateX(-50%); }
  .hero__photo { margin: 0 auto; transform: scale(.56); transform-origin: center; }
  .hero__card { position: relative; left: auto; right: auto; bottom: auto; margin: 14px auto 0; max-width: 340px; }
  .orbit__chip { font-size: 10px; padding: 4px 8px; }
}
