/* ==========================================================================
   Arthur Duguet — Portfolio
   Direction : « terminal abyssal » — canvas teal profond, orbe de particules
   bioluminescentes, typographie medium à approche serrée.
   ========================================================================== */

/* ---------- Polices (hébergées avec le site, licences dans assets/fonts) ---------- */
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Satoshi';
  src: url('../fonts/satoshi-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Sous-ensembles « latin » : couvrent tout le français (accents, œ, guillemets, €) */
@font-face {
  font-family: 'JetBrains Mono';
  src: url('../fonts/jetbrains-mono-latin.woff2') format('woff2');
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Playfair Display';
  src: url('../fonts/playfair-display-500-latin.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@property --ring {
  syntax: '<length>';
  inherits: false;
  initial-value: 0px;
}

/* ---------- Tokens ---------- */
:root {
  /* Fond du site — modifiez --abyss ici : il pilote aussi le fond WebGL de l'orbe */
  --abyss: #151b29;
  --deep: #0f1420;
  /* Surfaces relevées (bleu nuit clair) : cartes, boutons, étiquettes */
  --kelp: #1f2740;
  --kelp-2: #2a3454;

  /* Texte */
  --white: #ffffff;
  --mist: #edfffe;
  --silver: #bbc7c6;
  --ash: #f2f2f2;
  --slate: #95a0b3;
  --ink: #0b1a19;

  /* Accents */
  --phosphor: #fde9ff;
  --teal: #5d7bc4;
  --aqua: #cbfffc;
  --pink: #fad1ff;

  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.18);

  --grad-bio: linear-gradient(90deg, #5d7bc4 0%, #cbfffc 100%);
  --grad-aurora: linear-gradient(90deg, #cbfffc 0%, #edfffe 26.25%, #fffdfa 47.57%, #fad1ff 88.96%);

  --font: 'Satoshi', 'Inter', ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  /* Serif du logo (même dessin que le monogramme AD) */
  --serif: 'Playfair Display', 'Didot', 'Bodoni 72', Georgia, serif;

  --r-card: 16px;
  --r-sm: 6px;
  --pad: clamp(20px, 4.4vw, 64px);
  --max: 1440px;
  --header-h: 80px;

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --ease-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--abyss);
  color-scheme: dark;
}
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--silver);
  background: var(--abyss);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-weight: 500; color: var(--white); }

::selection { background: var(--phosphor); color: var(--ink); }
:focus-visible { outline: 1px solid var(--aqua); outline-offset: 4px; border-radius: 4px; }

html.has-cursor,
html.has-cursor * { cursor: none !important; }

main,
.footer { position: relative; z-index: 2; }

/* ---------- Utilitaires ---------- */
.container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--pad);
}
.section { position: relative; padding-block: clamp(110px, 14vw, 190px); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.mono {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--silver);
}
[data-scramble] { display: inline-block; white-space: pre; }

.h2 {
  font-size: clamp(2.5rem, 5.4vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.042em;
  text-wrap: balance;
}

.split-line-mask { padding-bottom: 0.12em; margin-bottom: -0.12em; }

.skip-link {
  position: fixed; left: 16px; top: 16px; z-index: 1000;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--aqua); color: var(--ink); font-weight: 500;
  transform: translateY(-200%);
  transition: transform .3s var(--ease-out);
}
.skip-link:focus { transform: none; }

/* ---------- Préchargement ---------- */
.loader {
  position: fixed; inset: 0; z-index: 200;
  display: flex;
  background: var(--deep);
  clip-path: inset(0 0 0 0);
}
.loader__inner {
  flex: 1;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: 28px var(--pad);
}
.loader__row { display: flex; justify-content: space-between; gap: 16px; color: var(--silver); }
.loader__center { display: flex; flex-direction: column; align-items: center; gap: 28px; }
.loader__count {
  display: flex; align-items: flex-start;
  font-size: clamp(5rem, 16vw, 13rem);
  font-weight: 500; line-height: 0.9; letter-spacing: -0.05em;
  color: var(--phosphor);
}
.loader__count [data-loader-count] { display: flex; }
.loader__count [data-loader-count] span { display: inline-block; width: 0.56em; text-align: center; }
.loader__pct { font-size: 0.22em; margin: 0.35em 0 0 0.25em; color: var(--silver); letter-spacing: 0; }
.loader__bar { width: min(420px, 70vw); height: 1px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.loader__bar span { display: block; height: 100%; background: var(--grad-bio); transform-origin: left; transform: scaleX(0); }

.no-js .loader,
.is-fallback .loader { display: none; }

/* ---------- Scène WebGL ---------- */
.orb-canvas {
  position: fixed; left: 0; top: 0;
  width: 100%; height: 100vh; height: 100lvh;
  z-index: 0;
  pointer-events: none;
}
.orb-fallback {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; display: none;
  background:
    radial-gradient(circle at 50% 46%, rgba(255, 255, 255, 0.16) 0, rgba(170, 182, 205, 0.1) 16%, transparent 40%),
    var(--abyss);
}
.no-webgl .orb-canvas { display: none; }
.no-webgl .orb-fallback { display: block; }

/* ---------- Curseur ---------- */
.cursor { position: fixed; left: 0; top: 0; z-index: 150; pointer-events: none; display: none; transition: opacity .3s; }
.has-cursor .cursor { display: block; }
.cursor.is-hidden { opacity: 0; }
.cursor__dot {
  position: absolute; left: 0; top: 0;
  width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--white);
  transition: opacity .3s;
}
.cursor__ring { position: absolute; left: 0; top: 0; }
.cursor__disc {
  position: absolute; left: 0; top: 0;
  width: 38px; height: 38px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(237, 255, 254, 0.4);
  display: grid; place-items: center;
  transition: width .55s var(--ease-out), height .55s var(--ease-out), background-color .4s, border-color .4s;
}
.cursor__label {
  font: 500 11px/1 var(--font);
  letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap;
  color: var(--ink);
  opacity: 0; transform: scale(.5);
  transition: opacity .3s, transform .55s var(--ease-out);
}
.cursor.is-link .cursor__disc { width: 62px; height: 62px; background: rgba(203, 255, 252, 0.08); border-color: rgba(203, 255, 252, 0.7); }
.cursor.is-view .cursor__disc { width: 96px; height: 96px; background: var(--phosphor); border-color: var(--phosphor); }
.cursor.is-view .cursor__label { opacity: 1; transform: none; }
.cursor.is-view .cursor__dot { opacity: 0; }
.cursor.is-down .cursor__disc { width: 26px; height: 26px; }
.cursor.is-view.is-down .cursor__disc { width: 84px; height: 84px; }

/* ---------- En-tête ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 40;
  transition: transform .8s var(--ease-out), background-color .5s;
}
.header::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: rgba(21, 27, 41, 0.78);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .5s;
}
.header.is-scrolled::before { opacity: 1; }
.header.is-hidden { transform: translateY(-101%); }
.header__inner {
  max-width: var(--max); margin-inline: auto; padding-inline: var(--pad);
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
}

/* Logo : monogramme AD + nom dans la même famille de lettres (Playfair Display),
   réunis dans un encadré aux coins arrondis, de la hauteur du bouton Contact */
.logo {
  flex: none;
  display: inline-flex; align-items: center; gap: 12px;
  padding: 5px 18px 5px 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  background: rgba(31, 39, 64, 0.55);
  color: var(--white);
  transition: border-color .5s, background-color .5s;
}
.logo:hover { border-color: rgba(203, 255, 252, 0.4); background: rgba(31, 39, 64, 0.85); }
.logo__img { width: auto; height: 30px; transition: transform .7s var(--ease-back); }
.logo:hover .logo__img { transform: rotate(-5deg) scale(1.08); }
.logo__text {
  padding-left: 13px;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  font-family: var(--serif);
  font-size: 18px; font-weight: 500; line-height: 1;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav__list { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav__link {
  position: relative;
  display: inline-flex; align-items: baseline; gap: 7px;
  padding-block: 8px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver);
  transition: color .3s;
}
.nav__idx { font-family: var(--mono); font-size: 9px; letter-spacing: 0.04em; color: var(--slate); transition: color .3s; }
.nav__link:hover,
.nav__link.is-active { color: var(--white); }
.nav__link.is-active .nav__idx,
.nav__link:hover .nav__idx { color: var(--aqua); }
.nav__link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 1px; height: 1px;
  background: var(--grad-bio);
  transform: scaleX(0); transform-origin: right;
  transition: transform .7s var(--ease-out);
}
.nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }

.header__right { display: flex; align-items: center; gap: 22px; }
.status { display: inline-flex; align-items: center; gap: 9px; color: var(--silver); white-space: nowrap; }
.status__dot { position: relative; width: 6px; height: 6px; border-radius: 50%; background: var(--aqua); }
.status__dot::after {
  content: ''; position: absolute; inset: 0; border-radius: 50%; background: var(--aqua);
  animation: ping 2.2s var(--ease-out) infinite;
}

.burger {
  display: none; position: relative;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  background: rgba(42, 52, 84, 0.6);
}
.burger__line {
  position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--white);
  transition: transform .6s var(--ease-out), top .6s var(--ease-out);
}
.burger__line:nth-child(1) { top: 18px; }
.burger__line:nth-child(2) { top: 25px; }
.is-menu-open .burger__line:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.is-menu-open .burger__line:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.progress { position: fixed; top: 0; left: 0; right: 0; z-index: 45; height: 2px; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--grad-bio); transform-origin: left; transform: scaleX(0); }

/* ---------- Menu mobile ---------- */
.menu {
  position: fixed; inset: 0; z-index: 35;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + 28px) var(--pad) 32px;
  background: var(--deep);
  clip-path: inset(0 0 100% 0);
  visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
.is-menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__nav li { overflow: hidden; border-bottom: 1px solid var(--line); }
.menu__nav a {
  display: flex; align-items: baseline; gap: 16px; padding: 14px 0;
  font-size: clamp(2.4rem, 11vw, 4.2rem); font-weight: 500; line-height: 1; letter-spacing: -0.045em;
  color: var(--white);
}
.menu__nav a > * { display: inline-block; transform: translateY(115%); transition: transform .9s var(--ease-out); }
.menu__nav .mono { color: var(--aqua); }
.is-menu-open .menu__nav a > * { transform: none; }
.is-menu-open .menu__nav li:nth-child(1) a > * { transition-delay: .25s; }
.is-menu-open .menu__nav li:nth-child(2) a > * { transition-delay: .31s; }
.is-menu-open .menu__nav li:nth-child(3) a > * { transition-delay: .37s; }
.is-menu-open .menu__nav li:nth-child(4) a > * { transition-delay: .43s; }
.is-menu-open .menu__nav li:nth-child(5) a > * { transition-delay: .49s; }
.is-menu-open .menu__nav li:nth-child(6) a > * { transition-delay: .55s; }
.menu__foot { display: flex; flex-direction: column; gap: 10px; color: var(--silver); }

/* ---------- HUD ---------- */
.hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; transition: opacity .8s; }
.hud.is-visible { opacity: 1; }
.hud__section,
.hud__depth {
  position: absolute; bottom: 18px;
  display: flex; align-items: center; gap: 10px;
  padding: 7px 11px;
  border-radius: var(--r-sm);
  background: rgba(15, 20, 32, 0.86);
  font-size: 10px; color: var(--silver);
}
.hud__section { left: calc(var(--pad) - 11px); }
.hud__depth { right: calc(var(--pad) - 11px); }
.hud__dot { width: 5px; height: 5px; border-radius: 50%; background: var(--aqua); animation: blink 2.4s steps(1) infinite; }
.hud__total { color: var(--slate); }
.hud__sep { width: 18px; height: 1px; background: rgba(255, 255, 255, 0.25); }
.hud__zone { color: var(--aqua); }
.hud__ruler {
  position: absolute; right: 16px; top: 50%;
  width: 14px; height: 36vh;
  transform: translateY(-50%);
  overflow: hidden;
  -webkit-mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(transparent, #000 25%, #000 75%, transparent);
}
.hud__ticks {
  position: absolute; left: 0; right: 0; top: -40px; bottom: -40px;
  background:
    linear-gradient(to bottom, rgba(237, 255, 254, 0.55) 1px, transparent 1px) right 0 top 0 / 12px 40px repeat-y,
    linear-gradient(to bottom, rgba(237, 255, 254, 0.22) 1px, transparent 1px) right 0 top 0 / 6px 8px repeat-y;
  will-change: transform;
}
.hud__needle { position: absolute; right: 0; top: 50%; width: 14px; height: 1px; background: var(--phosphor); }

/* ---------- Boutons & liens ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  height: 54px; padding: 0 22px 0 26px;
  border-radius: var(--r-sm);
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  transition: color .4s, background-color .4s, border-color .4s;
}
.btn--sm { height: 42px; padding: 0 14px 0 18px; gap: 10px; font-size: 12px; }

.btn--aurora {
  color: var(--ink);
  background: var(--grad-aurora);
  background-size: 220% 100%;
  background-position: 0% 50%;
  transition: background-position 1.1s var(--ease-out);
}
.btn--aurora:hover { background-position: 100% 50%; }

.btn--kelp { color: var(--white); background: var(--kelp); }
.btn--kelp:hover { background: var(--kelp-2); }

.btn--ghost { color: var(--white); border: 1px solid rgba(255, 255, 255, 0.2); }
.btn--ghost::before {
  content: ''; position: absolute; inset: -1px; z-index: -1;
  background: var(--kelp);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  transform: translateY(101%);
  transition: transform .75s var(--ease-out), border-radius .75s var(--ease-out);
}
.btn--ghost:hover { border-color: transparent; }
.btn--ghost:hover::before { transform: none; border-radius: 0; }

.btn__icon { position: relative; display: grid; place-items: center; width: 18px; height: 18px; }
.btn__icon svg { width: 16px; height: 16px; transition: transform .6s var(--ease-out); }
.btn:hover .btn__icon .i-arrow { transform: translate(2px, -2px); }
.btn:hover .btn__icon .i-arrow--down { transform: translateY(3px); }
.btn:hover .btn__icon .i-arrow--up { transform: translateY(-3px); }

.i-arrow,
.i-copy { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* Texte qui « roule » au survol */
.roll {
  position: relative;
  display: inline-flex;
  overflow: hidden;
  vertical-align: top;
  line-height: 1.15;
  padding-block: 0.16em;
  margin-block: -0.16em;
}
.roll__row { display: inline-flex; white-space: pre; }
.roll__row--b { position: absolute; left: 0; top: 0.16em; }
.roll__c { display: inline-block; transition: transform .65s var(--ease-out); transition-delay: calc(var(--i, 0) * 13ms); }
.roll__row--b .roll__c { transform: translateY(135%); }
:is(a, button):hover .roll__row--a .roll__c,
:is(a, button):focus-visible .roll__row--a .roll__c { transform: translateY(-135%); }
:is(a, button):hover .roll__row--b .roll__c,
:is(a, button):focus-visible .roll__row--b .roll__c { transform: none; }

/* Bouton flèche carré */
.arrow-btn {
  position: relative; flex: none; overflow: hidden;
  display: inline-grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: var(--r-sm);
  background: rgba(42, 52, 84, 0.6);
  color: var(--white);
  transition: background-color .5s, color .5s;
}
.arrow-btn svg { position: absolute; width: 16px; height: 16px; transition: transform .65s var(--ease-out); }
.arrow-btn svg:nth-child(2) { transform: translate(-160%, 160%); }
:is(a, button):hover .arrow-btn svg:nth-child(1),
.service.is-active .arrow-btn svg:nth-child(1) { transform: translate(160%, -160%); }
:is(a, button):hover .arrow-btn svg:nth-child(2),
.service.is-active .arrow-btn svg:nth-child(2) { transform: none; }
:is(a, button):hover .arrow-btn { background: var(--aqua); color: var(--ink); }
.arrow-btn--lg { width: 64px; height: 64px; }
.arrow-btn--lg svg { width: 26px; height: 26px; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 16px;
  margin-top: 44px;
  font-size: 13px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--white);
}

.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tags li {
  padding: 6px 10px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.05);
  font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--silver);
  transition: background-color .4s, color .4s;
}

/* Projecteur qui suit le pointeur */
.spot { --mx: 50%; --my: 50%; }
.spot::before {
  content: ''; position: absolute; inset: 0; z-index: 3;
  border-radius: inherit; pointer-events: none;
  background: radial-gradient(460px circle at var(--mx) var(--my), rgba(203, 255, 252, 0.09), transparent 45%);
  opacity: 0; transition: opacity .5s;
}
.spot:hover::before { opacity: 1; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--header-h) + 40px) var(--pad) 130px;
  text-align: center;
}
.hero__content { position: relative; isolation: isolate; display: flex; flex-direction: column; align-items: center; max-width: 1200px; will-change: transform; }
/* Voile de la couleur du fond : atténue les particules derrière le texte sans se voir */
.hero__content::before {
  content: '';
  position: absolute; inset: -10% -6%; z-index: -1;
  pointer-events: none;
  background: radial-gradient(closest-side,
    color-mix(in srgb, var(--abyss) 72%, transparent) 0%,
    color-mix(in srgb, var(--abyss) 50%, transparent) 60%,
    transparent 100%);
}

/* Portrait avec anneau orbital */
.hero__avatar { position: relative; width: 92px; height: 92px; margin-bottom: 30px; }
.hero__avatar img {
  position: relative; z-index: 1;
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  transition: transform .8s var(--ease-back);
}
.hero__avatar:hover img { transform: scale(1.07); }
.hero__avatar-ring,
.hero__avatar-orbit { position: absolute; inset: -9px; border-radius: 50%; pointer-events: none; }
.hero__avatar-ring { border: 1px solid rgba(203, 255, 252, 0.4); transition: inset .8s var(--ease-out), border-color .5s; }
.hero__avatar:hover .hero__avatar-ring { inset: -14px; border-color: var(--aqua); }
.hero__avatar-orbit { animation: spin 8s linear infinite; }
.hero__avatar-orbit i {
  position: absolute; top: -3.5px; left: 50%;
  width: 7px; height: 7px; margin-left: -3.5px;
  border-radius: 50%;
  background: var(--phosphor);
}
.hero__avatar::after {
  content: ''; position: absolute; inset: -9px; border-radius: 50%;
  border: 1px solid var(--aqua);
  opacity: 0;
  animation: avatarPing 3.2s var(--ease-out) infinite;
}

.hero__eyebrow {
  display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  margin-bottom: 30px;
  color: var(--mist);
}
.hero__eyebrow-sep { width: 28px; height: 1px; background: var(--grad-bio); }
.hero__title {
  max-width: 11.5em;
  font-size: clamp(2.8rem, 7vw, 6.9rem);
  line-height: 1;
  letter-spacing: -0.046em;
  text-wrap: balance;
}
.hero__title .char {
  display: inline-block;
  will-change: transform;
  color: color-mix(in srgb, var(--aqua) calc(var(--p, 0) * 100%), var(--white));
}
.hero__sub {
  max-width: 34em; margin-top: 30px;
  font-size: clamp(1rem, 1.2vw, 1.125rem); line-height: 1.5;
  color: var(--silver);
  text-wrap: pretty;
}
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 42px; }
.hero__foot {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  padding: 0 var(--pad) 28px;
  color: var(--silver);
}
.hero__foot > * { white-space: nowrap; }
.hero__scroll { display: inline-flex; align-items: center; gap: 14px; }
.hero__scroll-line { position: relative; width: 1px; height: 44px; background: rgba(255, 255, 255, 0.15); overflow: hidden; }
.hero__scroll-line::after {
  content: ''; position: absolute; left: 0; top: 0; width: 100%; height: 40%;
  background: var(--aqua);
  animation: scrollLine 2.2s var(--ease-io) infinite;
}
.hero__hint { color: var(--slate); }

/* ---------- Bandeau cinétique ---------- */
.marquee { position: relative; padding-block: clamp(40px, 8vw, 120px); overflow: hidden; }
.marquee__row { display: flex; white-space: nowrap; }
.marquee__track { display: flex; align-items: center; flex: none; will-change: transform; }
.marquee__item {
  padding-inline: 0.16em;
  font-size: clamp(3.75rem, 11.5vw, 11.5rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.046em;
  color: var(--white);
  transition: color .8s, -webkit-text-stroke-color .8s;
}
.marquee__item:hover { color: var(--aqua); transition-duration: .15s; }
.marquee__row--outline .marquee__item { color: transparent; -webkit-text-stroke: 1px rgba(237, 255, 254, 0.42); }
.marquee__row--outline .marquee__item:hover { color: var(--phosphor); -webkit-text-stroke-color: var(--phosphor); }
.marquee__orb {
  flex: none; width: clamp(30px, 4.2vw, 66px); height: auto; margin-inline: 0.25em;
  fill: var(--aqua); stroke: var(--aqua);
  animation: spin 9s linear infinite;
}
.marquee__row--outline .marquee__orb { fill: var(--phosphor); stroke: var(--phosphor); }

/* ---------- À propos ---------- */
.about__main { max-width: min(780px, 50vw); }
.about__lead {
  margin-top: 28px;
  font-size: clamp(1.65rem, 3.3vw, 3rem);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.032em;
  color: var(--mist);
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
/* Mots « en ligne » (et non en blocs) pour que la justification et la coupure fonctionnent */
.about__lead .hl-word { display: inline !important; }
/* Paragraphes justifiés, avec coupure des mots en français pour éviter les trous */
.about__cols p,
.work__intro,
.service__text,
.step__text {
  text-align: justify;
  -webkit-hyphens: auto;
  hyphens: auto;
}
.about__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-top: 52px; max-width: 720px; }
.about__cols p { color: var(--silver); }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: clamp(90px, 11vw, 150px); }
.stat { position: relative; padding-top: 30px; }
.stat__line { position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--line-2); transform-origin: left; }
.stat__num {
  display: flex; align-items: flex-start;
  font-size: clamp(3.6rem, 6.2vw, 5.4rem);
  font-weight: 500; line-height: 1; letter-spacing: -0.046em;
  color: var(--phosphor);
}
.stat__unit { font-size: 0.5em; margin: 0.1em 0 0 0.06em; opacity: .6; }
.stat__label { margin-top: 14px; font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mist); }

/* ---------- Projets ---------- */
.work { position: relative; }
.work__pin {
  position: relative;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(22px, 4vh, 44px);
  padding-top: calc(var(--header-h) * 0.6);
  padding-bottom: 64px;
  overflow: hidden;
}
.work__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; }
.work__head .eyebrow { margin-bottom: 18px; }
.work__intro { max-width: 330px; color: var(--silver); }
.work__count { margin-left: 4px; color: var(--aqua); }
.work__viewport { position: relative; }
.work__track {
  display: flex; gap: clamp(16px, 2vw, 28px);
  width: max-content;
  padding-left: max(var(--pad), calc((100vw - var(--max)) / 2 + var(--pad)));
  padding-right: var(--pad);
  will-change: transform;
}

.project {
  --card-w: clamp(300px, min(34vw, calc((100svh - 300px) * 0.95)), 520px);
  flex: none;
  width: var(--card-w);
}
.project__link {
  position: relative;
  display: flex; flex-direction: column;
  height: 100%;
  padding: 14px;
  border-radius: var(--r-card);
  background: var(--kelp);
  will-change: transform;
}
.project__media {
  position: relative; isolation: isolate; overflow: hidden;
  aspect-ratio: 2.2 / 1;
  border-radius: var(--r-sm);
  background: var(--deep);
}
/* Photos des lieux d'expérience */
.project__media::after {
  content: ''; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(to top, rgba(15, 20, 32, 0.65), transparent 55%);
}
.art--photo {
  inset: 0 auto auto -10%;
  width: 120%; height: 100%;
  object-fit: cover;
  filter: saturate(0.8) brightness(0.88);
  transition: scale 1.2s var(--ease-out), filter .8s;
}
.project__link:hover .art--photo { scale: 1.06; filter: saturate(1) brightness(1); }
.media-credit {
  position: absolute; top: 10px; right: 12px;
  font-size: 8.5px; letter-spacing: 0.04em; text-transform: none;
  color: rgba(237, 255, 254, 0.72);
}
.footer__credits { padding-bottom: 22px; font-size: 10px; line-height: 1.6; color: var(--slate); }
.footer__credits a { text-decoration: underline; text-underline-offset: 2px; }
.footer__credits a:hover { color: var(--mist); }

.project__meta { display: flex; flex-direction: column; gap: 10px; padding: 20px 8px 8px; }
.project__period { font-size: 10px; color: var(--aqua); }
.project__title { font-size: clamp(1.45rem, 2vw, 2rem); line-height: 1.02; letter-spacing: -0.035em; }
.project__role { font-size: 15px; font-weight: 500; color: var(--mist); }
.project__missions { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.project__missions li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.4; color: var(--silver); }
.project__missions li::before {
  content: ''; position: absolute; left: 0; top: 0.5em;
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--aqua);
  transition: background-color .4s, transform .5s var(--ease-back);
}
.project__link:hover .project__missions li::before { background: var(--aqua); transform: scale(1.2); }
.project__link:hover .project__missions li:nth-child(2)::before { transition-delay: .07s; }
.project__link:hover .project__missions li:nth-child(3)::before { transition-delay: .14s; }

.project--end { --card-w: clamp(260px, 26vw, 420px); }
.project__end {
  position: relative;
  height: 100%;
  display: flex; flex-direction: column; justify-content: space-between; gap: 40px;
  padding: 36px;
  border-radius: var(--r-card);
  background: rgba(15, 20, 32, 0.6);
}
.project__end-title {
  font-size: clamp(1.9rem, 2.8vw, 2.9rem);
  font-weight: 500; line-height: 1.04; letter-spacing: -0.038em;
  color: var(--white);
}

.media-hud {
  --c: rgba(237, 255, 254, 0.75);
  position: absolute; inset: 14px; z-index: 2;
  display: flex; justify-content: space-between; align-items: flex-end;
  padding: 10px 12px;
  font-size: 10px; color: rgba(237, 255, 254, 0.82);
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) left top / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left top / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right top / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) left bottom / 1px 14px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 14px 1px no-repeat,
    linear-gradient(var(--c), var(--c)) right bottom / 1px 14px no-repeat;
  transition: inset .9s var(--ease-out);
}
.project__link:hover .media-hud { inset: 26px; }

/* Visuels génératifs (à remplacer par vos images si besoin) */
.art { position: absolute; inset: 0 -10%; overflow: hidden; will-change: transform; }
.art > span { position: absolute; display: block; }
.project__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.project__link:hover .project__media > img { transform: scale(1.06); }

.art--1 { background: radial-gradient(110% 80% at 50% 110%, #2c3d6e 0%, #1a2238 45%, #0f1420 100%); }
.art--1 .art__glow { inset: 0; background: radial-gradient(40% 35% at 72% 24%, rgba(250, 209, 255, 0.3), transparent 70%); transition: transform 1.4s var(--ease-out); }
.art--1 .art__rings {
  inset: -10%;
  background: repeating-radial-gradient(circle at 50% 58%,
    transparent calc(var(--ring) - 30px),
    rgba(220, 230, 255, 0.26) calc(var(--ring) - 29px),
    transparent calc(var(--ring) - 28px),
    transparent var(--ring));
  -webkit-mask-image: radial-gradient(circle at 50% 58%, #000 8%, transparent 56%);
  mask-image: radial-gradient(circle at 50% 58%, #000 8%, transparent 56%);
  animation: sonar 3.2s linear infinite;
  transition: transform 1.4s var(--ease-out);
}
.art--1 .art__core {
  left: 50%; top: 58%; width: 30%; aspect-ratio: 1; margin: -15% 0 0 -15%;
  border-radius: 50%;
  background: radial-gradient(circle at 36% 32%, #ffffff 0%, #dbe6ff 16%, #5d7bc4 46%, rgba(93, 123, 196, 0) 70%);
  transition: transform 1.3s var(--ease-back);
}
.project__link:hover .art--1 .art__core { transform: scale(1.18); }
.project__link:hover .art--1 .art__rings { transform: scale(1.08); }
.project__link:hover .art--1 .art__glow { transform: translate(-8%, 6%); }

.art--2 { background: linear-gradient(160deg, #26345f 0%, #151b29 70%); }
.art--2 .art__ripples {
  inset: -20%;
  background: repeating-radial-gradient(ellipse 120% 80% at 15% 115%,
    transparent calc(var(--ring) - 22px),
    rgba(220, 230, 255, 0.22) calc(var(--ring) - 21px),
    transparent calc(var(--ring) - 20px),
    transparent var(--ring));
  animation: ripple 3.6s linear infinite;
}
.art--2 .art__glow { inset: 0; background: radial-gradient(45% 40% at 78% 22%, rgba(250, 209, 255, 0.34), transparent 70%); transition: transform 1.4s var(--ease-out); }
.art--2 .art__bars {
  left: 14%; right: 14%; bottom: 16%; height: 44%;
  background: repeating-linear-gradient(90deg, rgba(237, 255, 254, 0.85) 0 2px, transparent 2px 13px);
  -webkit-mask-image: linear-gradient(to top, #000 10%, transparent);
  mask-image: linear-gradient(to top, #000 10%, transparent);
  transform-origin: bottom;
  transform: scaleY(.55);
  transition: transform 1.1s var(--ease-back);
}
.project__link:hover .art--2 .art__bars { transform: scaleY(1); }
.project__link:hover .art--2 .art__glow { transform: translate(-10%, 8%) scale(1.1); }

.art--3 { background: radial-gradient(90% 70% at 50% 100%, #2e3f73 0%, #151b29 60%, #0f1420 100%); }
.art--3 .art__grid {
  inset: -10%;
  background-image: radial-gradient(rgba(220, 230, 255, 0.4) 1px, transparent 1.6px);
  background-size: 18px 18px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 60%, #000 30%, transparent 75%);
  mask-image: radial-gradient(70% 60% at 50% 60%, #000 30%, transparent 75%);
  transition: transform 1.6s var(--ease-out);
}
.art--3 .art__planet {
  left: 50%; top: 64%; width: 46%; aspect-ratio: 1; margin: -23% 0 0 -23%;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #ffffff 0%, #fde9ff 13%, #fad1ff 28%, #5468a6 62%, #1f2740 80%);
  transition: transform 1.4s var(--ease-out);
}
.art--3 .art__glow { inset: 0; background: radial-gradient(34% 24% at 50% 30%, rgba(203, 255, 252, 0.16), transparent 70%); }
.project__link:hover .art--3 .art__planet { transform: translateY(-9%) scale(1.06); }
.project__link:hover .art--3 .art__grid { transform: scale(1.14) rotate(4deg); }

.art--4 { background: #151b29; }
.art--4 .art__mesh {
  inset: -35%;
  background: conic-gradient(from 200deg at 50% 50%, #4a64b0, #dbe6ff 16%, #fde9ff 28%, #1f2740 46%, #4a64b0 64%, #151b29 82%, #4a64b0);
  filter: blur(42px);
  opacity: .85;
  animation: spin 24s linear infinite;
  will-change: transform;
}
.art--4 .art__frame {
  inset: 22% 26%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-sm);
  background: rgba(15, 20, 32, 0.38);
  transition: inset 1s var(--ease-out);
}
.art--4 .art__frame::before { content: ''; position: absolute; left: 12%; right: 42%; top: 16%; height: 9%; border-radius: 3px; background: rgba(255, 255, 255, 0.8); }
.art--4 .art__frame::after { content: ''; position: absolute; left: 12%; right: 12%; bottom: 14%; height: 38%; border-radius: 4px; background: rgba(255, 255, 255, 0.14); }
.project__link:hover .art--4 .art__frame { inset: 17% 21%; }

.art--5 { background: radial-gradient(80% 70% at 50% 50%, #29386a 0%, #151b29 60%, #0f1420 100%); perspective: 600px; }
.art--5 .art__orbits { inset: 0; transform-style: preserve-3d; transform: rotateX(66deg) rotateZ(-16deg); }
.art--5 .art__orbits i {
  position: absolute; left: 50%; top: 50%;
  aspect-ratio: 1;
  border: 1px solid rgba(220, 230, 255, 0.5);
  border-radius: 50%;
  animation: spin 9s linear infinite;
}
.art--5 .art__orbits i:nth-child(1) { width: 40%; margin: -20% 0 0 -20%; }
.art--5 .art__orbits i:nth-child(2) { width: 62%; margin: -31% 0 0 -31%; animation-duration: 14s; }
.art--5 .art__orbits i:nth-child(3) { width: 84%; margin: -42% 0 0 -42%; animation-duration: 21s; animation-direction: reverse; }
.art--5 .art__orbits i::after {
  content: ''; position: absolute; top: -4px; left: 50%;
  width: 8px; height: 8px; margin-left: -4px; border-radius: 50%;
  background: var(--phosphor);
}
.art--5 .art__core {
  left: 50%; top: 50%; width: 18%; aspect-ratio: 1; margin: -9% 0 0 -9%;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, #dbe6ff 25%, #4a64b0 72%);
}

/* Arcs concentriques (Fondation Arc-en-Ciel) */
.art--6 { background: radial-gradient(90% 80% at 50% 0%, #26345f 0%, #151b29 60%, #0f1420 100%); }
.art--6 .art__arcs { inset: 0; }
.art--6 .art__arcs i {
  position: absolute; left: 50%; bottom: 0;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 2px solid;
  transform: translate(-50%, 50%);
  transition: transform 1.1s var(--ease-back);
}
.art--6 .art__arcs i:nth-child(1) { width: 92%; border-color: rgba(93, 123, 196, 0.9); }
.art--6 .art__arcs i:nth-child(2) { width: 74%; border-color: rgba(220, 230, 255, 0.75); transition-delay: .05s; }
.art--6 .art__arcs i:nth-child(3) { width: 56%; border-color: rgba(250, 209, 255, 0.75); transition-delay: .1s; }
.art--6 .art__arcs i:nth-child(4) { width: 38%; border-color: rgba(253, 233, 255, 0.95); transition-delay: .15s; }
.art--6 .art__glow { inset: 0; background: radial-gradient(40% 50% at 50% 100%, rgba(250, 209, 255, 0.28), transparent 70%); }
.project__link:hover .art--6 .art__arcs i { transform: translate(-50%, 46%) scale(1.06); }

.work__progress { display: flex; align-items: center; gap: 16px; color: var(--silver); }
.work__bar { position: relative; flex: 1; height: 1px; background: rgba(255, 255, 255, 0.12); overflow: hidden; }
.work__bar span { position: absolute; inset: 0; background: var(--grad-bio); transform-origin: left; transform: scaleX(0); }

/* Formation */
.formation .section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.formation__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 2vw, 28px); }
.school .project__link { height: 100%; }
.school .project__media { aspect-ratio: 2 / 1; }
.school .project__meta { flex: 1; }
.school .archive__badge { align-self: flex-start; margin-top: auto; }
/* Diplôme visé (pas encore obtenu) : contour pointillé et accents roses */
.school--future .project__link { background: rgba(31, 39, 64, 0.55); outline: 1px dashed rgba(203, 255, 252, 0.32); outline-offset: -1px; }
.school--future .project__period { color: var(--phosphor); }
.school--future .archive__badge { background: rgba(253, 233, 255, 0.1); color: var(--phosphor); }
.project__place { font-size: 14px; color: var(--silver); }
.archive__list { border-top: 1px solid var(--line); }
.archive__item { border-bottom: 1px solid var(--line); }
.archive__row {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto auto;
  grid-template-areas: "year name type badge";
  align-items: center; gap: 28px;
  padding: 30px 16px;
  transition: opacity .5s;
}
.archive__fill { position: absolute; inset: 0; z-index: -1; background: var(--kelp); transform: translateY(101%); }
.archive__year { grid-area: year; color: var(--slate); transition: color .4s; }
.archive__name {
  grid-area: name;
  font-size: clamp(1.6rem, 3.2vw, 2.9rem);
  font-weight: 500; line-height: 1.05; letter-spacing: -0.042em;
  color: var(--white);
  transition: transform .8s var(--ease-out);
}
.archive__type { grid-area: type; font-size: 14px; color: var(--silver); transition: transform .8s var(--ease-out), color .4s; }
.archive__badge {
  grid-area: badge;
  padding: 6px 10px; border-radius: var(--r-sm);
  background: rgba(203, 255, 252, 0.08);
  font-size: 10px; color: var(--aqua); white-space: nowrap;
}
.archive__row:hover .archive__name { transform: translateX(16px); }
.archive__row:hover .archive__type { transform: translateX(-12px); color: var(--mist); }
.archive__row:hover .archive__year { color: var(--aqua); }
.archive__list:hover .archive__row:not(:hover) { opacity: .38; }

.preview {
  position: fixed; left: 0; top: 0; z-index: 25;
  width: clamp(240px, 22vw, 340px); aspect-ratio: 4 / 3;
  border-radius: var(--r-sm);
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  background: var(--deep);
  will-change: transform, opacity;
}
.preview__inner { position: absolute; inset: 0; will-change: transform; }
.preview__slot { position: relative; width: 100%; height: 100%; overflow: hidden; }
.preview .art { inset: 0; }

/* ---------- Expertise ---------- */
.section-head { display: flex; flex-direction: column; gap: 22px; margin-bottom: clamp(48px, 7vw, 100px); }
.expertise__grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.services { display: flex; flex-direction: column; }
.service {
  position: relative; isolation: isolate;
  display: block;
  padding: 48px 36px;
  border-radius: var(--r-card);
  transition: background-color .6s var(--ease-out);
}
.service:hover,
.service.is-active { background: var(--kelp); }
.service__line { position: absolute; left: 36px; right: 36px; top: 0; height: 1px; background: var(--line-2); transform-origin: left; transition: opacity .4s; }
.service:hover .service__line,
.service.is-active .service__line,
.service:hover + .service .service__line,
.service.is-active + .service .service__line { opacity: 0; }
.service__head { display: flex; align-items: center; gap: 20px; }
.service__num { min-width: 24px; color: var(--aqua); }
.service__title { flex: 1; font-size: clamp(1.6rem, 2.6vw, 2.25rem); line-height: 1; letter-spacing: -0.035em; transition: transform .8s var(--ease-out); }
.service:hover .service__title,
.service.is-active .service__title { transform: translateX(10px); }
.service__text { max-width: 52ch; margin: 18px 0 20px 44px; color: var(--silver); transition: color .4s; }
.service:hover .service__text,
.service.is-active .service__text { color: var(--mist); }
.service .tags { margin-left: 44px; }
.service:hover .tags li,
.service.is-active .tags li { background: rgba(203, 255, 252, 0.1); color: var(--mist); }
.service.is-active .arrow-btn { background: var(--aqua); color: var(--ink); }

.expertise__visual { position: sticky; top: calc(var(--header-h) + 5vh); }
.molecule { position: relative; }
.molecule svg { width: 100%; height: auto; overflow: visible; }
.molecule__caption { display: flex; justify-content: space-between; gap: 16px; margin-top: 14px; color: var(--slate); }
.molecule__caption [data-molecule-status] { color: var(--aqua); }

.m-edge { stroke: rgba(255, 255, 255, 0.22); stroke-width: 1; transition: stroke .5s; }
.m-edge.is-active { stroke: rgba(203, 255, 252, 0.9); }
.m-node { cursor: pointer; }
.m-dot { fill: var(--white); transition: fill .5s; }
.m-node--minor .m-dot { fill: var(--silver); }
.m-node--core .m-dot { fill: var(--aqua); }
.m-node.is-active .m-dot { fill: var(--phosphor); }
.m-halo { fill: none; stroke: rgba(255, 255, 255, 0.2); stroke-width: 1; transition: stroke .5s; }
.m-node.is-active .m-halo { stroke: rgba(253, 233, 255, 0.7); }
.m-orbit { fill: none; stroke: rgba(203, 255, 252, 0.3); stroke-width: 1; stroke-dasharray: 2 5; }
.m-ping { fill: none; stroke: var(--phosphor); stroke-width: 1; opacity: 0; transform-box: fill-box; transform-origin: center; }
.m-node.is-active .m-ping { animation: mping 1.8s var(--ease-out) infinite; }
.m-label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; fill: var(--silver); transition: fill .4s; }
.m-node.is-active .m-label { fill: var(--white); }
.m-packet { fill: var(--aqua); }

.tools { display: flex; flex-direction: column; gap: 20px; margin-top: clamp(70px, 9vw, 130px); }
.interests { display: flex; flex-direction: column; gap: 16px; margin-top: 52px; }
.tools__list { display: flex; flex-wrap: wrap; gap: 8px; }
.tools__list li {
  padding: 12px 16px; border-radius: var(--r-sm);
  background: rgba(31, 39, 64, 0.85);
  font-size: 14px; color: var(--mist);
  transition: transform .5s var(--ease-back), background-color .4s, color .4s;
}
.tools__list li:hover { transform: translateY(-5px) rotate(-2deg); background: var(--aqua); color: var(--ink); }

/* ---------- Méthode ---------- */
.process__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 100px); }
.process__aside { position: relative; }
.process__sticky {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between;
  padding-block: calc(var(--header-h) + 28px) 70px;
}
.process__sticky .eyebrow { margin-bottom: 22px; }
.process__counter {
  height: 1em; overflow: hidden;
  font-size: clamp(6rem, 15vw, 14rem);
  font-weight: 500; line-height: 1; letter-spacing: -0.05em;
  color: var(--phosphor);
}
.process__digits { display: flex; flex-direction: column; will-change: transform; }
.process__digits span { display: block; height: 1em; }
.process__current { color: var(--silver); }
.process__current span { color: var(--white); }
.process__steps { position: relative; padding-left: 44px; }
.process__rail { position: absolute; left: 4px; top: 0; bottom: 0; width: 1px; background: rgba(255, 255, 255, 0.1); }
.process__rail span { position: absolute; inset: 0; background: linear-gradient(to bottom, #5d7bc4, #cbfffc); transform-origin: top; transform: scaleY(0); }
.step {
  position: relative;
  min-height: 46vh;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
  /* étape inactive atténuée, mais lisible : contraste du texte au moins 4,5:1 */
  opacity: .65;
  transition: opacity .7s;
}
.step::before {
  content: ''; position: absolute; left: -44px; top: 50%;
  width: 9px; height: 9px; margin-top: -4.5px;
  border-radius: 50%;
  background: var(--abyss);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background-color .5s, border-color .5s, transform .6s var(--ease-back);
}
.step.is-active { opacity: 1; }
.step.is-active::before { background: var(--aqua); border-color: var(--aqua); transform: scale(1.3); }
.step__num { color: var(--aqua); }
.step__title { font-size: clamp(2.1rem, 4.2vw, 3.8rem); line-height: 1; letter-spacing: -0.042em; }
.step__text { max-width: 44ch; font-size: clamp(1rem, 1.3vw, 1.2rem); color: var(--silver); }

/* ---------- Contact ---------- */
.contact { padding-bottom: clamp(80px, 10vw, 140px); }
.contact__card {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; align-items: center;
  padding: clamp(70px, 9vw, 120px) clamp(24px, 6vw, 96px);
  border-radius: var(--r-card);
  /* fond plein plutôt qu'un flou : l'orbe animée derrière n'oblige plus à recalculer un grand flou à chaque image */
  background: rgba(15, 20, 32, 0.8);
  text-align: center;
}
.contact__title {
  max-width: 11em; margin-top: 28px;
  font-size: clamp(2.6rem, 7vw, 6.4rem);
  line-height: 1; letter-spacing: -0.046em;
  text-wrap: balance;
}
.contact__dim { color: var(--silver); }
.contact__text { max-width: 34em; margin-top: 26px; font-size: clamp(1rem, 1.2vw, 1.1rem); color: var(--silver); text-wrap: pretty; }
/* Deux canaux côte à côte : e-mail et LinkedIn */
.channels {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 20px);
  width: 100%; max-width: 1120px;
  margin-top: clamp(44px, 5vw, 64px);
  text-align: left;
}
.channel {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; gap: clamp(20px, 2.4vw, 36px);
  padding: clamp(24px, 2.8vw, 40px);
  border-radius: var(--r-card);
  background: rgba(31, 39, 64, 0.5);
  border: 1px solid var(--line);
  transition: background-color .6s var(--ease-out), border-color .6s;
}
.channel:hover { background: rgba(31, 39, 64, 0.8); border-color: var(--line-2); }
.channel__body { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; }
.channel__label {
  display: flex; align-items: center; gap: 12px;
  font-size: 12px; font-weight: 500; line-height: 1.3;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--silver);
}
.channel__badge {
  display: grid; place-items: center; flex: none;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--aqua);
  transition: transform .7s var(--ease-back), border-color .5s;
}
.channel:hover .channel__badge { transform: rotate(-8deg) scale(1.08); border-color: rgba(203, 255, 252, 0.4); }
.channel__icon { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.channel__icon-dot { fill: currentColor; stroke: none; }
.channel__title {
  position: relative; margin-top: 26px;
  font-size: clamp(1.3rem, 1.85vw, 1.75rem);
  font-weight: 500; line-height: 1.1; letter-spacing: -0.025em;
  color: var(--white);
}
.channel__mail::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 1px;
  background: var(--grad-bio);
  transform: scaleX(.2); transform-origin: left;
  transition: transform .9s var(--ease-out);
}
.channel__mail:hover::after,
.channel__mail:focus-visible::after { transform: scaleX(1); }
.channel__text {
  margin-top: 18px;
  font-size: 15px; color: var(--silver);
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
.channel__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: auto; padding-top: 30px; }

/* QR code en points, façon particules : pastille claire pour une lecture fiable */
.qr {
  position: relative; z-index: 4; flex: none;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
  width: clamp(136px, 12vw, 176px);
  margin: 0;
}
.qr__tile { display: block; width: 100%; aspect-ratio: 1; border-radius: 10px; }
.qr__tile:focus-visible { outline: 2px solid var(--aqua); outline-offset: 4px; }
.qr__svg { display: block; width: 100%; height: 100%; overflow: visible; }
.qr__bg { fill: #eef3ff; }
.qr__dots,
.qr__eyes { fill: #151b29; }
.qr__caption {
  font-family: var(--mono); font-size: 10px; line-height: 1.5;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-align: center; color: var(--slate);
}

/* ---------- Pied de page ---------- */
.footer { background: var(--abyss); border-top: 1px solid var(--line); overflow: hidden; }
.footer__inner { padding-top: 120px; }
.footer__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 40px; }
.footer__col ul { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.footer__col a { font-size: 15px; color: var(--mist); }
.footer__col--end { display: flex; align-items: flex-start; justify-content: flex-end; }
.footer__clock { color: var(--silver); }
.footer__giant {
  margin-top: clamp(70px, 10vw, 150px);
  padding-inline: var(--pad);
  font-size: 13vw;
  font-weight: 500; line-height: 0.86; letter-spacing: -0.055em;
  white-space: nowrap; text-align: center;
  color: #263047;
  overflow: hidden;
  padding-bottom: 0.05em;
  user-select: none;
}
.footer__giant .char {
  display: inline-block;
  background: linear-gradient(180deg, #2e3954 0%, #232b40 55%, rgba(35, 43, 64, 0.25) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: color 1.6s;
}
.footer__giant .char:hover { color: var(--aqua); transition-duration: 0s; }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px;
  padding-block: 24px 28px;
  border-top: 1px solid var(--line);
  color: var(--slate);
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 160;
  padding: 12px 16px; border-radius: var(--r-sm);
  background: var(--aqua); color: var(--ink);
  opacity: 0; transform: translate(-50%, 150%);
  transition: transform .6s var(--ease-out), opacity .4s;
  pointer-events: none;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ping { 0% { transform: scale(1); opacity: .7; } 80%, 100% { transform: scale(3.2); opacity: 0; } }
@keyframes mping { 0% { transform: scale(1); opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes avatarPing { 0% { transform: scale(1); opacity: .7; } 70%, 100% { transform: scale(1.45); opacity: 0; } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
@keyframes scrollLine { 0% { transform: translateY(-100%); } 100% { transform: translateY(260%); } }
@keyframes sonar { from { --ring: 0px; } to { --ring: 30px; } }
@keyframes ripple { from { --ring: 0px; } to { --ring: 22px; } }

/* États initiaux des révélations (appliqués seulement si le JS tourne) */
.js [data-reveal] { opacity: 0; }
.is-fallback [data-reveal],
.is-fallback [data-hero-content] > *,
.is-fallback [data-hero-foot] { opacity: 1 !important; transform: none !important; visibility: visible !important; }

/* ---------- Page Mentions légales (sans JavaScript) ---------- */
.legal-page {
  background:
    radial-gradient(900px 520px at 50% -180px, rgba(93, 123, 196, 0.18), transparent 70%),
    var(--abyss);
}
.legal-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(21, 27, 41, 0.72);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.legal-back { padding: 0 18px 0 14px; }
.btn:hover .btn__icon .i-arrow--back { transform: translateX(-3px); }
.legal {
  max-width: 820px; margin-inline: auto;
  padding: clamp(56px, 9vw, 110px) var(--pad) clamp(70px, 10vw, 130px);
}
.legal__title { margin-top: 22px; font-size: clamp(2.6rem, 7vw, 5rem); line-height: 1; letter-spacing: -0.045em; }
.legal__updated { margin-top: 20px; color: var(--slate); }
.legal__intro {
  margin-top: 36px;
  font-size: clamp(1.05rem, 1.4vw, 1.2rem); line-height: 1.5; color: var(--mist);
  text-align: justify; -webkit-hyphens: auto; hyphens: auto;
}
.legal__block { margin-top: clamp(44px, 6vw, 64px); padding-top: 28px; border-top: 1px solid var(--line); }
.legal__block h2 {
  display: flex; align-items: baseline; gap: 14px;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem); line-height: 1.1; letter-spacing: -0.03em;
}
.legal__num { color: var(--aqua); }
.legal__block p { margin-top: 16px; line-height: 1.6; text-align: justify; -webkit-hyphens: auto; hyphens: auto; }
.legal__list {
  display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 14px 32px;
  margin: 24px 0 0; padding: 22px 24px;
  border-radius: var(--r-card);
  background: rgba(31, 39, 64, 0.5);
  border: 1px solid var(--line);
}
.legal__list dt {
  align-self: center;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--slate);
}
.legal__list dd { margin: 0; color: var(--white); overflow-wrap: anywhere; }
.legal__link {
  color: var(--white);
  text-decoration: underline; text-decoration-color: rgba(203, 255, 252, 0.4);
  text-underline-offset: 3px;
  transition: text-decoration-color .3s;
}
.legal__link:hover { text-decoration-color: var(--aqua); }
.footer__legal { color: var(--silver); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.25); text-underline-offset: 3px; transition: color .3s, text-decoration-color .3s; }
.footer__legal:hover { color: var(--white); text-decoration-color: var(--aqua); }
.legal-footer { max-width: 820px; }
.footer__legals { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.legal__bullets { margin-top: 12px; padding-left: 1.3em; list-style: disc; }
.legal__bullets li { margin-top: 6px; line-height: 1.6; }
.legal__bullets li::marker { color: var(--aqua); }

/* ---------- Page 404 ---------- */
.notfound-page {
  background:
    radial-gradient(circle at 12% 22%, rgba(255, 255, 255, 0.7) 0 1px, transparent 1.6px),
    radial-gradient(circle at 26% 68%, rgba(255, 255, 255, 0.45) 0 1px, transparent 1.6px),
    radial-gradient(circle at 41% 36%, rgba(255, 255, 255, 0.6) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 58% 82%, rgba(255, 255, 255, 0.4) 0 1px, transparent 1.6px),
    radial-gradient(circle at 71% 18%, rgba(255, 255, 255, 0.65) 0 1px, transparent 1.6px),
    radial-gradient(circle at 84% 58%, rgba(255, 255, 255, 0.5) 0 1.2px, transparent 1.8px),
    radial-gradient(circle at 93% 30%, rgba(255, 255, 255, 0.6) 0 1px, transparent 1.6px),
    radial-gradient(900px 520px at 50% -180px, rgba(93, 123, 196, 0.22), transparent 70%),
    var(--abyss);
}
.notfound {
  min-height: calc(100svh - 160px);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: clamp(48px, 8vw, 96px) var(--pad);
  text-align: center;
}
.notfound__code {
  margin-top: 10px;
  font-size: clamp(7rem, 24vw, 15rem); font-weight: 500; line-height: 0.9; letter-spacing: -0.06em;
  background: linear-gradient(180deg, #eef3ff 0%, #8ea3d8 55%, rgba(93, 123, 196, 0.15) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound__title { margin-top: 18px; font-size: clamp(1.6rem, 3.4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.notfound__text { max-width: 30em; margin-top: 16px; color: var(--silver); line-height: 1.6; text-wrap: pretty; }
.notfound__cta { margin-top: 36px; }

/* ---------- Responsive ---------- */
/* En-tête : sous 1300 px, la place manque pour l'encadré du logo, le menu,
   « En alternance » et Contact sur une ligne */
@media (max-width: 1300px) {
  .status { display: none; }
}

@media (max-width: 1240px) {
  .about__main { max-width: 600px; }
  .about__cols { grid-template-columns: 1fr; gap: 20px; max-width: 520px; }
}

@media (max-width: 1180px) {
  .nav,
  .header__right .btn { display: none; }
  .burger { display: block; }
}

@media (max-width: 1100px) {
  .hud__ruler { display: none; }
  .channels { grid-template-columns: minmax(0, 1fr); max-width: 760px; }
}

@media (max-width: 1000px) {
  .hero__hint { display: none; }
}

@media (max-width: 900px) {
  :root { --header-h: 68px; }

  .about__cols { grid-template-columns: 1fr; gap: 20px; }

  .work__pin { height: auto; padding-top: clamp(100px, 16vw, 140px); overflow: visible; gap: 40px; }
  .work__head { flex-direction: column; align-items: flex-start; gap: 20px; }
  .work__track { flex-direction: column; width: auto; padding-inline: var(--pad); gap: 20px; }
  .project,
  .project--end { --card-w: 100%; }
  .project__end { min-height: 260px; }
  .work__progress { display: none; }

  .expertise__grid { grid-template-columns: 1fr; }
  .formation__grid { grid-template-columns: 1fr; }
  .expertise__visual { position: relative; top: 0; width: 100%; max-width: 460px; margin: 24px auto 0; }

  .process__grid { grid-template-columns: 1fr; }
  .process__sticky { position: relative; height: auto; padding: 0 0 32px; gap: 28px; }
  .process__counter { font-size: clamp(5rem, 26vw, 9rem); }
  .step { min-height: 0; padding-block: 44px; }

  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__col--end { grid-column: 1 / -1; justify-content: flex-start; }

  /* Sur téléphone, on est déjà sur l'appareil qui scannerait : le bouton suffit */
  .qr { display: none; }
}

@media (max-width: 640px) {
  .hero__hint,
  .hero__meta { display: none; }
  .hero__foot { padding-bottom: 22px; }
  .hero__cta { width: 100%; flex-direction: column; align-items: stretch; }
  .stats { grid-template-columns: 1fr; gap: 40px; }
  .service { padding: 36px 18px; }
  .service__line { left: 18px; right: 18px; }
  .service__text,
  .service .tags { margin-left: 0; }
  .hero__avatar { width: 76px; height: 76px; margin-bottom: 24px; }
  .archive__row {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "year badge" "name name" "type type";
    gap: 10px 12px;
    padding: 24px 8px;
  }
  .archive__type { font-size: 13px; }
  .hud { display: none; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__inner { padding-top: 90px; }
  .legal-back { width: 42px; padding: 0; }
  .legal-back__label { display: none; }
  .legal__list { grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 18px; }
  .legal__list dd + dt { margin-top: 14px; }
  .channel { padding: 26px 20px 22px; }
  .channel__title { margin-top: 22px; font-size: 1.2rem; }
  .channel__actions { width: 100%; padding-top: 26px; }
  .channel__actions .btn { flex: 1 1 auto; }
}

@media (hover: none) {
  .preview,
  .qr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
