/* OW — feuille de style « Midnight Build »
   Design system : base UI/UX Pro Max (Developer Tool dark + Portfolio « monochrome + blue accent »,
   motion presets : Scroll Reveal Standard, Magnetic hover, Parallax subtle, Stagger text)
   Effets portés de 21st.dev en vanilla : Glowing Effect (bordure qui suit le curseur),
   Spotlight Hero (halo souris + révélation mot à mot floue → nette). */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo.woff2") format("woff2-variations"), url("../fonts/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2-variations"), url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

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

:root {
  /* Fonds : noir bleuté profond */
  --bg: #03050A;
  --bg-2: #070B14;
  --bg-3: #0C1220;
  --line: #141B2D;
  --line-2: #222C45;
  /* Texte */
  --fg: #E8EDF8;
  --fg-2: #C3CCE0;
  --muted: #8C98B3;
  /* Bleus */
  --blue: #2E62F2;      /* fond des boutons, texte blanc 5:1 */
  --blue-2: #1D47C9;
  --blue-hi: #5C8DFF;   /* accent texte sur fond sombre 6.5:1 */
  --cyan: #3EDBFF;
  --ice: #A9C4FF;
  --violet: #8B7BFF;
  --warn: #FFC24B;
  --err: #FF6B81;
  --syn-sel: #6FD3FF;
  --syn-prop: #A99BFF;
  --syn-com: #75839F;

  --grad: linear-gradient(100deg, var(--blue-hi) 0%, var(--cyan) 50%, var(--ice) 100%);
  --glow-grad:
    radial-gradient(circle, #3EDBFF 10%, #3EDBFF00 20%),
    radial-gradient(circle at 40% 40%, #8B7BFF 5%, #8B7BFF00 15%),
    radial-gradient(circle at 60% 60%, #2E62F2 10%, #2E62F200 20%),
    radial-gradient(circle at 40% 60%, #5C8DFF 10%, #5C8DFF00 20%),
    repeating-conic-gradient(from 236.84deg at 50% 50%, #2E62F2 0%, #3EDBFF 5%, #8B7BFF 10%, #5C8DFF 15%, #2E62F2 20%);

  --font: "Archivo", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --wrap: 1280px;
  --gutter: clamp(16px, 5vw, 64px);
  --space-section: clamp(88px, 11vw, 160px);
  --radius: 14px;
  --radius-lg: 22px;
  --nav-h: 76px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);        /* expo out */
  --ease-in-out: cubic-bezier(.76, 0, .24, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --t-fast: 180ms;
  --t-med: 380ms;
  --t-slow: 1000ms;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 32px); background: var(--bg); }
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;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; font-weight: 800; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blue-hi); color: #02040A; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
main:focus { outline: none; }

.mono { font-family: var(--mono); font-feature-settings: "calt" 1, "liga" 1; }
.label { font-size: .8125rem; letter-spacing: .02em; color: var(--muted); }
.c-com { color: var(--syn-com); }
.c-num { color: var(--blue-hi); font-weight: 700; }
.c-sel { color: var(--syn-sel); }
.c-prop { color: var(--syn-prop); }
.c-val { color: var(--fg); }
.c-str { color: var(--cyan); }
.c-ok { color: var(--cyan); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 3px rgba(62,219,255,.16), 0 0 12px rgba(62,219,255,.6); display: inline-block; flex: none; }

.skip {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--blue); color: #fff; padding: 12px 16px; font-weight: 700; text-decoration: none; border-radius: 10px;
}
.skip:focus { top: 16px; }

/* ---------- Calques d'ambiance ---------- */
.fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.fx__grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, rgba(92,141,255,.07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(92,141,255,.07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.12) 100%);
          mask-image: radial-gradient(520px circle at var(--mx, 50%) var(--my, 30%), #000 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.12) 100%);
}
.fx__light {
  position: absolute; left: 0; top: 0; width: 760px; height: 760px; margin: -380px 0 0 -380px;
  background: radial-gradient(closest-side, rgba(46,98,242,.16), rgba(46,98,242,.05) 55%, transparent 100%);
  transform: translate3d(50vw, 30vh, 0); opacity: 0; transition: opacity 1.2s var(--ease-out);
  will-change: transform;
}
.has-pointer .fx__light { opacity: 1; }
.fx__noise {
  position: absolute; inset: -50%; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Boutons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 14px 26px;
  background: linear-gradient(180deg, #3A6EFF, var(--blue) 55%, var(--blue-2));
  color: #fff;
  border: 1px solid rgba(169,196,255,.35); border-radius: 999px;
  font: 700 1rem/1 var(--font); font-stretch: 105%; text-decoration: none; cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 10px 30px -10px rgba(46,98,242,.8), 0 0 0 0 rgba(62,219,255,0);
  transition: box-shadow var(--t-med) var(--ease-out), border-color var(--t-med), background-color var(--t-med);
  will-change: transform;
}
.btn::before { /* reflet qui balaye au survol */
  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 .9s var(--ease-out);
}
.btn:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 16px 44px -10px rgba(46,98,242,.95), 0 0 0 4px rgba(62,219,255,.14); border-color: rgba(169,196,255,.6); }
.btn:hover::before { transform: translateX(120%); }
.btn:active { filter: brightness(.94); }
.btn__label { position: relative; }
.btn__arrow { position: relative; display: inline-flex; width: 20px; height: 20px; overflow: hidden; }
.btn__arrow .ico { position: absolute; inset: 0; width: 20px; height: 20px; transition: transform .55s var(--ease-out); }
.btn__arrow .ico + .ico { transform: translateX(-130%); }
.btn:hover .btn__arrow .ico:first-child { transform: translateX(130%); }
.btn:hover .btn__arrow .ico + .ico { transform: translateX(0); }
.btn--ghost { background: rgba(12,18,32,.55); color: var(--fg); border-color: var(--line-2); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.btn--ghost::before { background: linear-gradient(110deg, transparent 30%, rgba(92,141,255,.25) 50%, transparent 70%); }
.btn--ghost:hover { border-color: var(--blue-hi); box-shadow: 0 0 0 4px rgba(92,141,255,.12); }
.btn--small { min-height: 44px; padding: 10px 18px; font-size: .9375rem; white-space: nowrap; }
.btn--wide { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .6; cursor: progress; }

.link { color: var(--cyan); text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; padding-bottom: 2px; transition: background-size .5s var(--ease-out), color var(--t-fast); }
.link:hover { color: var(--fg); background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Barre de progression ---------- */
.buildbar { position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60; pointer-events: none; }
.buildbar__fill { display: block; height: 100%; background: var(--grad); box-shadow: 0 0 12px rgba(62,219,255,.7); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ---------- Navigation : pilule flottante ---------- */
.nav {
  position: fixed; top: 12px; left: 50%; z-index: 50;
  width: min(1240px, calc(100% - 24px));
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px;
  padding: 8px 10px 8px 18px;
  background: rgba(7, 11, 20, .62);
  -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%);
  border: 1px solid rgba(92,141,255,.14); border-radius: 18px;
  box-shadow: 0 20px 50px -24px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
  transform: translate3d(-50%, 0, 0);
  transition: transform .7s var(--ease-out), background-color .4s, border-color .4s;
}
.nav.is-hidden { transform: translate3d(-50%, calc(-100% - 24px), 0); }
.nav.is-scrolled { background: rgba(5, 8, 15, .78); border-color: rgba(92,141,255,.2); }
.anim .nav { transform: translate3d(-50%, -140%, 0); }
.anim.is-loaded .nav { transform: translate3d(-50%, 0, 0); transition-delay: .15s; }
.anim.is-loaded .nav.is-hidden { transform: translate3d(-50%, calc(-100% - 24px), 0); transition-delay: 0s; }
.nav__tabs { display: flex; align-items: center; gap: 14px; }
.nav__logo { display: inline-flex; color: var(--fg); padding: 6px 0; min-height: 44px; align-items: center; }
.nav__logo svg { width: 58px; height: 28px; transition: transform .6s var(--ease-spring); }
.nav__logo:hover svg { transform: rotate(-6deg) scale(1.06); }
.nav__file { font-size: .75rem; color: var(--muted); padding: 5px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: rgba(3,5,10,.6); position: relative; }
.nav__file::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 1px; background: var(--grad); }
.nav__status { display: inline-flex; align-items: center; gap: 8px; font-size: .75rem; color: var(--muted); min-width: 96px; font-variant-numeric: tabular-nums; }
.nav__links { position: relative; display: flex; justify-content: center; gap: 4px; }
.nav__links a { position: relative; z-index: 1; text-decoration: none; font-weight: 600; font-size: .9375rem; color: var(--muted); padding: 11px 16px; display: inline-block; border-radius: 999px; transition: color var(--t-med); }
.nav__links a:hover, .nav__links a.is-active { color: var(--fg); }
.nav__ind {
  position: absolute; z-index: 0; top: 0; left: 0; height: 100%; width: var(--w, 0px);
  border-radius: 999px; background: rgba(46,98,242,.16); border: 1px solid rgba(92,141,255,.28);
  box-shadow: 0 0 20px -4px rgba(46,98,242,.6) inset;
  transform: translate3d(var(--x, 0px), 0, 0); opacity: 0;
  transition: transform .7s var(--ease-out), width .7s var(--ease-out), opacity .4s;
  pointer-events: none;
}
.nav__ind.is-on { opacity: 1; }
.nav__actions { display: flex; align-items: center; gap: 10px; }
.inspect-toggle {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 14px;
  background: transparent; color: var(--muted); border: 1px solid var(--line-2); border-radius: 999px;
  font-size: .8125rem; cursor: pointer; transition: color var(--t-fast), border-color var(--t-fast), background-color var(--t-fast);
}
.inspect-toggle svg { width: 18px; height: 18px; }
.inspect-toggle:hover { color: var(--fg); border-color: var(--blue-hi); }
.inspect-toggle[aria-pressed="true"] { background: var(--cyan); color: #021018; border-color: var(--cyan); }

@media (max-width: 1023px) {
  :root { --nav-h: 118px; }
  .nav { grid-template-columns: 1fr auto; row-gap: 2px; padding: 8px 8px 6px 14px; }
  .nav nav { grid-column: 1 / -1; grid-row: 2; }
  .nav__links { justify-content: flex-start; }
  .nav__status { display: none; }
}
@media (max-width: 560px) {
  .nav__file, .inspect-toggle span { display: none; }
  .nav__links { justify-content: space-between; gap: 0; }
  .nav__links a { font-size: .875rem; padding: 11px 10px; }
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: calc(var(--nav-h) + clamp(48px, 7vw, 96px)) var(--gutter) clamp(72px, 9vw, 128px); overflow: hidden; }
.hero__fx { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.aurora { position: absolute; inset: -20% -10% 10%; opacity: 0; transition: opacity 2s var(--ease-out); }
.is-loaded .aurora, .no-anim .aurora, html:not(.anim) .aurora { opacity: 1; }
.aurora i { position: absolute; display: block; border-radius: 50%; will-change: transform; }
.aurora i:nth-child(1) { width: 62vw; height: 62vw; max-width: 900px; max-height: 900px; left: 38%; top: -8%; background: radial-gradient(closest-side, rgba(46,98,242,.42), rgba(46,98,242,0)); animation: drift-a 22s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 44vw; height: 44vw; max-width: 640px; max-height: 640px; left: 64%; top: 26%; background: radial-gradient(closest-side, rgba(62,219,255,.2), rgba(62,219,255,0)); animation: drift-b 26s ease-in-out infinite alternate; }
.aurora i:nth-child(3) { width: 50vw; height: 50vw; max-width: 720px; max-height: 720px; left: -12%; top: 20%; background: radial-gradient(closest-side, rgba(139,123,255,.16), rgba(139,123,255,0)); animation: drift-c 30s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(-14%, 10%, 0) scale(1.15); } }
@keyframes drift-b { to { transform: translate3d(-30%, -14%, 0) scale(.85); } }
@keyframes drift-c { to { transform: translate3d(20%, -8%, 0) scale(1.2); } }

.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 46%; perspective: 520px; overflow: hidden;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 35%, transparent 90%); mask-image: linear-gradient(to top, #000 0%, rgba(0,0,0,.6) 35%, transparent 90%); }
.floor__plane {
  position: absolute; left: -50%; right: -50%; top: 0; height: 200%;
  background-image: linear-gradient(rgba(92,141,255,.28) 1px, transparent 1px), linear-gradient(90deg, rgba(92,141,255,.22) 1px, transparent 1px);
  background-size: 72px 72px;
  transform-origin: 50% 0;
  transform: rotateX(70deg) translate3d(0, 0, 0);
  animation: floor 4s linear infinite;
}
@keyframes floor { to { transform: rotateX(70deg) translate3d(0, 72px, 0); } }

.hero__grid { position: relative; max-width: var(--wrap); margin: 0 auto; display: grid; gap: clamp(48px, 6vw, 80px); align-items: center; }
@media (min-width: 1024px) { .hero__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: calc(100svh - var(--nav-h) - 220px); } }
.hero__copy { will-change: transform; }

.hero__eyebrow { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 10px; border: 1px solid var(--line-2); border-radius: 999px; background: rgba(7,11,20,.6); }
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--cyan); animation: pulse 2.2s var(--ease-out) infinite; }
@keyframes pulse { from { transform: scale(1); opacity: .7; } to { transform: scale(3.2); opacity: 0; } }

.hero__title { margin-top: 26px; }
.hero__kicker { display: block; font-family: var(--mono); font-size: clamp(.875rem, 1.2vw, 1rem); font-weight: 500; color: var(--blue-hi); letter-spacing: .01em; margin-bottom: 18px; }
.hero__big {
  display: block;
  font-size: clamp(2.75rem, 6.6vw, 7rem);
  font-weight: 900; font-stretch: 125%;
  line-height: .92; letter-spacing: -.04em;
  text-wrap: balance;
}
.hero__big .w { display: inline-block; color: var(--fg); }
.hero__big .accent {
  background: linear-gradient(100deg, var(--fg) 0%, var(--fg) 40%, var(--blue-hi) 55%, var(--cyan) 75%, var(--ice) 100%);
  background-size: 260% 100%; background-position: 0% 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 30px rgba(46,98,242,.35));
  transition: background-position 1.6s var(--ease-out);
}
html:not(.anim) .hero__big .accent, .hero.is-accent .hero__big .accent { background-position: 100% 0; }

/* Révélation mot à mot (21st « kinetic typography ») */
.anim .hero__big .w { opacity: 0; filter: blur(14px); transform: translate3d(0, 34%, 0) rotate(2deg); transition: opacity .9s var(--ease-out), filter 1s var(--ease-out), transform 1.1s var(--ease-out), background-position 1.6s var(--ease-out); transition-delay: calc(80ms + var(--i, 0) * 90ms); }
.anim .hero.is-in .hero__big .w { opacity: 1; filter: blur(0); transform: none; }
.anim .hero.is-in .hero__big .accent { filter: blur(0) drop-shadow(0 0 30px rgba(46,98,242,.35)); }
.anim .hero__kicker, .anim .hero__eyebrow, .anim .hero__lead, .anim .hero__ctas, .anim .hero__meta { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .9s var(--ease-out), transform 1s var(--ease-out); }
.anim .hero.is-in .hero__eyebrow { opacity: 1; transform: none; transition-delay: 0s; }
.anim .hero.is-in .hero__kicker { opacity: 1; transform: none; transition-delay: .05s; }
.anim .hero.is-in .hero__lead { opacity: 1; transform: none; transition-delay: .55s; }
.anim .hero.is-in .hero__ctas { opacity: 1; transform: none; transition-delay: .68s; }
.anim .hero.is-in .hero__meta { opacity: 1; transform: none; transition-delay: .8s; }

.hero__badge {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 24px;
  padding: 7px 14px; border: 1px solid rgba(62,219,255,.4); border-radius: 999px; color: var(--cyan); font-size: .8125rem; background: rgba(62,219,255,.06);
}
.anim .hero__badge { opacity: 0; transform: translate3d(0, 8px, 0) scale(.96); transition: opacity .6s var(--ease-out), transform .8s var(--ease-spring); }
.anim .hero.is-badge .hero__badge { opacity: 1; transform: none; }
.hero__lead { margin-top: 24px; max-width: 56ch; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); color: var(--fg-2); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 30px; font-size: .8125rem; color: var(--muted); }
.hero__meta li::before { content: "+ "; color: var(--cyan); }

.hero__visual { position: relative; will-change: transform; }
.anim .hero__visual { opacity: 0; transform: translate3d(0, 60px, 0) scale(.94); transition: opacity 1.2s var(--ease-out) .3s, transform 1.6s var(--ease-out) .3s; }
.anim .hero.is-in .hero__visual { opacity: 1; transform: none; }
.hero__chip {
  position: absolute; z-index: 2; padding: 8px 14px; font-size: .75rem; color: var(--fg-2);
  background: rgba(7,11,20,.8); border: 1px solid var(--line-2); border-radius: 999px;
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -14px rgba(0,0,0,.9);
  animation: float 6s ease-in-out infinite;
}
.hero__chip--a { left: -18px; bottom: 18%; }
.hero__chip--b { right: -10px; top: -18px; animation-delay: -3s; }
@keyframes float { 50% { transform: translate3d(0, -10px, 0); } }
@media (max-width: 640px) { .hero__chip--a { left: 8px; bottom: -18px; } .hero__chip--b { right: 8px; } }

.hero__scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; font-size: .6875rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 8px; }
@media (min-width: 1200px) and (min-height: 940px) { .hero__scroll { display: inline-flex; } }
.hero__mouse { width: 22px; height: 34px; border: 1.5px solid var(--line-2); border-radius: 12px; position: relative; }
.hero__mouse i { position: absolute; left: 50%; top: 6px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--cyan); animation: wheel 1.8s var(--ease-out) infinite; }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Cartes + effet « Glowing » (port 21st.dev) ---------- */
.card { position: relative; border-radius: var(--radius-lg); }
.glow {
  position: absolute; inset: -1px; border-radius: inherit; pointer-events: none; z-index: 3;
  --start: 0; --active: 0; --spread: 44; --bw: 1.5px;
  opacity: var(--active); transition: opacity .6s var(--ease-out);
  -webkit-mask-image: conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), transparent 0deg, #000 calc(var(--spread) * 1deg), transparent calc(var(--spread) * 2deg));
          mask-image: conic-gradient(from calc((var(--start) - var(--spread)) * 1deg), transparent 0deg, #000 calc(var(--spread) * 1deg), transparent calc(var(--spread) * 2deg));
}
.glow::before, .glow::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: var(--bw);
  background: var(--glow-grad); background-attachment: fixed;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.glow::before { padding: 3px; filter: blur(8px); opacity: .7; }

/* Halo interne qui suit le pointeur */
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 0;
  background: radial-gradient(420px circle at var(--px, 50%) var(--py, 0%), rgba(92,141,255,.11), transparent 60%);
  opacity: 0; transition: opacity .6s var(--ease-out);
}
.card:hover::after { opacity: 1; }
.card > *:not(.glow) { position: relative; z-index: 1; }
[data-tilt] { transform-style: preserve-3d; will-change: transform; }

/* ---------- Éditeur ---------- */
.editor {
  margin: 0;
  background: linear-gradient(180deg, rgba(12,18,32,.92), rgba(7,11,20,.96));
  border: 1px solid var(--line-2);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.95), 0 0 0 1px rgba(255,255,255,.02) inset, 0 30px 120px -40px rgba(46,98,242,.55);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.editor__bar, .term__bar { display: flex; align-items: center; gap: 14px; padding: 13px 18px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.editor__dots { display: inline-flex; gap: 7px; }
.editor__dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-2); display: block; }
.editor__dots i:first-child { background: var(--blue-hi); box-shadow: 0 0 10px rgba(92,141,255,.8); }
.editor__name { padding: 3px 10px; border: 1px solid var(--line); background: rgba(3,5,10,.7); border-radius: 8px; }
.editor__branch { margin-left: auto; font-size: .75rem; color: var(--syn-com); }
.editor__branch::before { content: "⎇ "; color: var(--blue-hi); }
.editor__code { margin: 0; padding: 20px 0; font-size: clamp(.8125rem, 1.05vw, .9375rem); line-height: 1.85; overflow-x: auto; counter-reset: ln; white-space: pre; }
.editor__code code { font: inherit; display: block; white-space: normal; }
.ln { display: block; white-space: pre; padding: 0 20px 0 0; counter-increment: ln; position: relative; }
.ln::before { content: counter(ln); display: inline-block; width: 3.2em; padding-right: 1.2em; text-align: right; color: #3A4562; }
.anim .ln { clip-path: inset(0 100% 0 0); }
.anim .ln.typed { clip-path: inset(0 0 0 0); transition: clip-path var(--d, .3s) steps(var(--n, 20), end); }
.ln.is-cur { background: linear-gradient(90deg, rgba(46,98,242,.16), transparent 70%); }
.editor__foot { display: flex; align-items: center; gap: 10px; padding: 11px 18px; border-top: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.editor__pos { margin-left: auto; font-variant-numeric: tabular-nums; }
.anim .editor:not(.is-done) .editor__foot .dot { background: var(--warn); box-shadow: 0 0 0 3px rgba(255,194,75,.18), 0 0 12px rgba(255,194,75,.6); }

/* ---------- Ticker ---------- */
.ticker { position: relative; border-block: 1px solid var(--line); overflow: hidden; background: linear-gradient(180deg, rgba(7,11,20,.9), rgba(3,5,10,.9)); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 12%; z-index: 2; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg), transparent); }
.ticker__row { overflow: hidden; will-change: transform; }
.ticker__track { display: flex; width: max-content; padding: 16px 0; font-size: clamp(.9375rem, 1.4vw, 1.125rem); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); will-change: transform; }
.ticker__track span { padding: 0 28px; position: relative; }
.ticker__track span::after { content: "/"; position: absolute; right: -4px; color: var(--blue-hi); }
.ticker__row--alt { border-top: 1px solid var(--line); }
.ticker__row--alt .ticker__track { padding: 18px 0; font-size: clamp(1.75rem, 4vw, 3.25rem); font-weight: 900; font-stretch: 125%; letter-spacing: -.02em; text-transform: none; color: transparent; -webkit-text-stroke: 1px rgba(169,196,255,.35); }
.ticker__row--alt .ticker__track span::after { content: "✦"; -webkit-text-stroke: 0; color: var(--blue); font-size: .5em; top: 50%; transform: translateY(-50%); right: -8px; }
.ticker__row--alt .ticker__track span:nth-child(3n+2) { color: var(--fg); -webkit-text-stroke: 0; }
html:not(.anim) .ticker__track { animation: none; }

/* ---------- Chapitres ---------- */
.chapter { position: relative; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: var(--space-section) var(--gutter); }
.chapter + .chapter::before { content: ""; position: absolute; top: 0; left: var(--gutter); right: var(--gutter); height: 1px; background: linear-gradient(90deg, transparent, var(--line-2) 20%, var(--line-2) 80%, transparent); }
.chapter__head { display: grid; gap: 20px; margin-bottom: clamp(44px, 6vw, 80px); max-width: 980px; align-content: start; }
.h2 { font-size: clamp(2.25rem, 5.6vw, 5rem); font-stretch: 118%; font-weight: 850; line-height: .98; letter-spacing: -.035em; text-wrap: balance; }
.h2 em { font-style: normal; color: transparent; -webkit-text-stroke: 1.5px var(--ice); }
.h2 em .wd__i { background: var(--grad); -webkit-background-clip: text; background-clip: text; -webkit-text-stroke: 0; }
.chapter__intro { max-width: 60ch; color: var(--fg-2); font-size: 1.125rem; }
.minicta { display: inline-flex; margin-top: 44px; color: var(--cyan); text-decoration: none; font-size: .9375rem; padding: 10px 0; }
.minicta span { background: linear-gradient(currentColor, currentColor) 100% 100% / 0 1px no-repeat; padding-bottom: 3px; transition: background-size .6s var(--ease-out), color var(--t-fast), transform .5s var(--ease-out); }
.minicta:hover span { color: var(--fg); background-size: 100% 1px; background-position: 0 100%; transform: translateX(6px); }
.chapter__head .minicta { margin-top: 12px; justify-self: start; }

/* Découpage des titres en mots (masque + glissement) */
.wd { display: inline-block; overflow: hidden; vertical-align: top; padding: .08em .02em .1em; margin: -.08em -.02em -.1em; }
.wd__i { display: inline-block; }
.anim [data-split] .wd__i { transform: translate3d(0, 110%, 0) rotate(4deg); transform-origin: 0 100%; transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--wi, 0) * 55ms); }
.anim [data-split].in .wd__i { transform: none; }

/* Console (problème) */
.console { background: linear-gradient(180deg, rgba(12,18,32,.75), rgba(7,11,20,.85)); border: 1px solid var(--line); overflow: visible; }
.console__head { display: flex; justify-content: space-between; padding: 14px clamp(16px, 3vw, 32px); border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--syn-com); text-transform: uppercase; letter-spacing: .08em; }
.console__row { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: baseline; padding: 24px clamp(16px, 3vw, 32px); border-bottom: 1px dashed var(--line); font-size: clamp(1.0625rem, 1.6vw, 1.375rem); line-height: 1.4; transition: background-color .5s var(--ease-out); }
.console__row:hover { background: rgba(46,98,242,.05); }
.console__row:last-child { border-bottom: 0; }
.tag { display: inline-block; text-align: center; padding: 4px 8px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; border: 1px solid; border-radius: 6px; }
.tag--warn { color: var(--warn); border-color: rgba(255,194,75,.45); background: rgba(255,194,75,.06); }
.tag--err { color: var(--err); border-color: rgba(255,107,129,.45); background: rgba(255,107,129,.06); }
@media (max-width: 560px) { .console__row { grid-template-columns: 1fr; gap: 10px; } .tag { justify-self: start; } }

/* Méthode : titre collant + git log qui se trace au défilement */
@media (min-width: 1024px) {
  .chapter--split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 72px; align-items: start; }
  .chapter__head--sticky { position: sticky; top: calc(var(--nav-h) + 48px); margin-bottom: 0; }
}
.gitlog__counter { font-size: .875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.gitlog__n { color: var(--cyan); font-size: 1.5rem; font-weight: 700; margin-right: 4px; }
.gitlog { position: relative; display: grid; }
.gitlog__rail { position: absolute; left: 9px; top: 14px; bottom: 14px; width: 2px; background: var(--line); border-radius: 2px; overflow: hidden; }
.gitlog__fill { position: absolute; inset: 0; background: linear-gradient(var(--cyan), var(--blue)); transform-origin: 50% 0; transform: scaleY(var(--g, 0)); box-shadow: 0 0 14px rgba(62,219,255,.7); }
html:not(.anim) .gitlog__fill { transform: none; }
.commit { position: relative; display: grid; gap: 6px; padding: 0 0 48px 52px; }
.commit:last-child { padding-bottom: 0; }
.commit::before { content: ""; position: absolute; left: 0; top: 6px; width: 20px; height: 20px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line-2); transition: border-color .5s, box-shadow .5s, background-color .5s, transform .6s var(--ease-spring); }
.commit.on::before, html:not(.anim) .commit::before { border-color: var(--cyan); background: var(--blue); box-shadow: 0 0 0 5px rgba(62,219,255,.12), 0 0 18px rgba(62,219,255,.7); transform: scale(1.05); }
.commit__hash { font-size: .8125rem; color: var(--syn-com); transition: color .5s; }
.commit.on .commit__hash { color: var(--cyan); }
.commit h3 { font-size: clamp(1.375rem, 2.4vw, 2rem); font-stretch: 112%; line-height: 1.15; letter-spacing: -.01em; transition: color .5s; }
.anim .commit:not(.on) h3 { color: var(--muted); }
.commit p { color: var(--fg-2); max-width: 56ch; margin-top: 6px; }

/* Formules */
.plans { display: grid; gap: 28px; perspective: 1400px; }
@media (min-width: 900px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan { display: flex; flex-direction: column; padding: clamp(26px, 3.4vw, 46px); background: linear-gradient(180deg, rgba(12,18,32,.9), rgba(7,11,20,.95)); border: 1px solid var(--line-2); }
.plan--hot { border-color: transparent; background: linear-gradient(180deg, rgba(16,26,52,.95), rgba(7,11,20,.98)) padding-box, conic-gradient(from var(--ang), var(--blue) 0%, var(--cyan) 20%, var(--line-2) 35%, var(--line-2) 65%, var(--violet) 80%, var(--blue) 100%) border-box; border: 1.5px solid transparent; box-shadow: 0 40px 100px -40px rgba(46,98,242,.65); animation: spin-border 6s linear infinite; }
@keyframes spin-border { to { --ang: 360deg; } }
.plan__file { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--muted); padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan__flag { background: var(--blue); color: #fff; padding: 4px 10px; font-weight: 700; font-size: .75rem; border-radius: 999px; box-shadow: 0 0 20px rgba(46,98,242,.7); }
.plan__name { margin-top: 26px; font-size: clamp(2.5rem, 4.8vw, 4.25rem); font-stretch: 125%; font-weight: 900; line-height: 1; letter-spacing: -.035em; }
.plan--hot .plan__name { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.plan__price { margin-top: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.plan__from { font-family: var(--mono); font-size: .8125rem; color: var(--muted); }
.plan__price strong { font-size: clamp(1.75rem, 2.6vw, 2.25rem); font-weight: 800; font-stretch: 110%; letter-spacing: -.02em; color: var(--fg); font-variant-numeric: tabular-nums; }
.plan--hot .plan__price strong { color: var(--cyan); text-shadow: 0 0 24px rgba(62,219,255,.35); }
.plan__pitch { margin-top: 14px; color: var(--fg-2); font-size: 1.125rem; }
.plan__list { margin-top: 26px; display: grid; gap: 14px; flex: 1; }
.plan__list li { display: grid; grid-template-columns: 28px 1fr; align-items: baseline; }
.plan__list li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; transform: translateY(2px); background: rgba(62,219,255,.12) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%233EDBFF' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 16px no-repeat; box-shadow: inset 0 0 0 1px rgba(62,219,255,.35); }
.plan__json { margin-top: 30px; padding-top: 16px; border-top: 1px dashed var(--line-2); font-size: .875rem; }
.cron { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; margin-top: 28px; padding: 26px clamp(20px, 3vw, 34px); border: 1px dashed var(--line-2); background: rgba(7,11,20,.6); }
.cron__expr { color: var(--cyan); font-size: 1.125rem; white-space: nowrap; }
.cron p { color: var(--fg-2); }
.cron strong { color: var(--fg); }
@media (max-width: 640px) { .cron { grid-template-columns: 1fr; gap: 10px; } }

/* Réalisations */
.works { display: grid; gap: 28px; }
@media (min-width: 900px) { .works { grid-template-columns: 1.3fr 1fr; } }
.work { background: linear-gradient(180deg, rgba(12,18,32,.9), rgba(7,11,20,.95)); border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.work__frame { border-bottom: 1px solid var(--line); border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; }
.work__bar { display: flex; align-items: center; gap: 7px; padding: 11px 16px; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted); }
.work__bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.work__bar span { margin-left: 10px; padding: 2px 12px; background: rgba(3,5,10,.7); border: 1px solid var(--line); border-radius: 999px; }
.work__shot { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.work__shot--cjt { background: linear-gradient(135deg, #1B2A2F, #23353A 55%, #2E2A22); transition: transform 1.2s var(--ease-out); }
.work:hover .work__shot--cjt { transform: scale(1.04); }
.cjt__a, .cjt__b, .cjt__c { position: absolute; border-radius: 50%; transition: transform 1.4s var(--ease-out); }
.cjt__a { width: 46%; aspect-ratio: 1; right: -8%; top: -18%; background: #E7B24A; opacity: .85; }
.cjt__b { width: 24%; aspect-ratio: 1; left: 8%; bottom: -10%; background: #5FB7A8; opacity: .8; }
.cjt__c { width: 12%; aspect-ratio: 1; left: 46%; top: 54%; background: #F2F0EA; opacity: .9; }
.work:hover .cjt__a { transform: translate3d(-6%, 8%, 0); }
.work:hover .cjt__b { transform: translate3d(10%, -12%, 0); }
.work:hover .cjt__c { transform: translate3d(-30%, -20%, 0) scale(1.2); }
.cjt__title { position: absolute; left: 8%; top: 18%; font-size: clamp(1.5rem, 3.4vw, 2.75rem); font-weight: 900; font-stretch: 112%; line-height: 1; color: #F2F0EA; max-width: 60%; }
.work__body { padding: clamp(22px, 3vw, 34px); display: grid; gap: 10px; }
.work__body h3 { font-size: 1.625rem; font-stretch: 112%; }
.work__body p { color: var(--fg-2); }
.work__body .link { justify-self: start; margin-top: 6px; padding: 10px 0 2px; }
.work--slot { justify-content: center; gap: 18px; padding: clamp(28px, 4vw, 48px); background: rgba(7,11,20,.4); border: 1px dashed var(--line-2); text-decoration: none; min-height: 300px; transition: background-color .6s var(--ease-out), border-color .6s; }
.work--slot:hover { background: rgba(46,98,242,.07); border-color: rgba(92,141,255,.5); }
.slot__prompt { color: var(--cyan); font-size: .9375rem; }
.slot__cta { font-size: clamp(2rem, 3.6vw, 3.25rem); font-weight: 900; font-stretch: 120%; line-height: 1; letter-spacing: -.025em; }
.slot__cta em { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slot__plus { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--blue-hi); transition: transform .8s var(--ease-spring), background-color .5s, color .5s, border-color .5s; }
.slot__plus svg { width: 24px; height: 24px; }
.work--slot:hover .slot__plus { transform: rotate(90deg) scale(1.08); background: var(--blue); color: #fff; border-color: var(--blue); }
.caret { display: inline-block; width: .6em; height: 1.1em; margin-left: 4px; vertical-align: -.18em; background: var(--cyan); animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); max-width: 980px; }
.faq details { border-bottom: 1px solid var(--line-2); position: relative; }
.faq details::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .9s var(--ease-out); }
.faq details.is-open::before, .faq details[open]::before { transform: scaleX(1); }
.faq summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 40px; gap: 16px; align-items: center;
  padding: 26px 0; font-size: clamp(1.125rem, 1.8vw, 1.375rem); font-weight: 700; line-height: 1.3; min-height: 44px;
  transition: color var(--t-med), padding-left .6s var(--ease-out);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2);
  background: linear-gradient(var(--blue-hi), var(--blue-hi)) center / 14px 2px no-repeat, linear-gradient(var(--blue-hi), var(--blue-hi)) center / 2px 14px no-repeat;
  transition: transform .7s var(--ease-spring), background-color .4s, border-color .4s;
}
.faq details.is-open summary::after, html:not(.anim) .faq details[open] summary::after { transform: rotate(135deg); border-color: var(--blue); background-color: rgba(46,98,242,.2); }
.faq summary:hover { color: #fff; padding-left: 8px; }
.faq__a { overflow: hidden; }
.faq__a p { padding: 0 56px 28px 0; color: var(--fg-2); max-width: 72ch; }

/* Contact / formulaire terminal */
.chapter--contact { isolation: isolate; }
.contact__halo { position: absolute; z-index: -1; left: 50%; top: 30%; width: min(1100px, 100vw); aspect-ratio: 1; transform: translate(-50%, -20%); background: radial-gradient(closest-side, rgba(46,98,242,.22), rgba(46,98,242,.06) 50%, transparent 72%); pointer-events: none; }
.chapter--contact .chapter__head { margin-bottom: 52px; }
.term { max-width: 860px; background: linear-gradient(180deg, rgba(10,15,28,.92), rgba(5,8,15,.96)); border: 1px solid var(--line-2); box-shadow: 0 50px 120px -50px rgba(46,98,242,.6); padding-bottom: clamp(22px, 3vw, 34px); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.term > .field, .term > .term__row, .term > .rgpd, .term > .btn, .term > .term__status { margin-inline: clamp(20px, 3vw, 34px); }
.term__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 clamp(20px, 3vw, 32px); }
@media (max-width: 640px) { .term__row { grid-template-columns: 1fr; } }
.term > .btn { width: calc(100% - 2 * clamp(20px, 3vw, 34px)); }
.card > .hp { position: absolute; }
.term__bar { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.field { position: relative; display: grid; gap: 6px; margin-top: 28px; border: 0; padding: 0; min-width: 0; }
.field label, .field legend { font-size: .875rem; color: var(--muted); padding: 0; transition: color var(--t-med); }
.field:focus-within label { color: var(--fg); }
.opt { color: var(--syn-com); }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field textarea {
  width: 100%; background: transparent; color: var(--fg); border: 0; border-bottom: 1px solid var(--line-2); border-radius: 0;
  font: 400 1.125rem/1.5 var(--font); padding: 10px 0; min-height: 48px; caret-color: var(--cyan);
}
.field textarea { resize: vertical; min-height: 140px; }
.field__line { position: absolute; left: 0; right: 0; height: 2px; margin-top: -2px; background: var(--grad); transform: scaleX(0); transform-origin: 0 50%; transition: transform .8s var(--ease-out); pointer-events: none; box-shadow: 0 0 12px rgba(62,219,255,.6); }
.field input + .field__line { top: auto; }
.field input:focus, .field textarea:focus { outline: none; }
.field input:focus + .field__line, .field textarea:focus + .field__line { transform: scaleX(1); }
.field input:focus-visible, .field textarea:focus-visible { outline: none; }
.field [aria-invalid="true"] { border-bottom-color: var(--err); }
.err { color: var(--err); font-size: .8125rem; }
.err:empty { display: none; }
.help { font-size: .875rem; color: var(--syn-com); margin-top: 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 999px; font-weight: 600; transition: background-color var(--t-med) var(--ease-out), color var(--t-med), border-color var(--t-med), box-shadow var(--t-med), transform .5s var(--ease-spring); }
.chip:hover span { border-color: var(--blue-hi); }
.chip input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue-hi); box-shadow: 0 8px 24px -8px rgba(46,98,242,.9); }
.chip input:active + span { transform: scale(.96); }
.chip input:focus-visible + span { outline: 2px solid var(--cyan); outline-offset: 3px; }
.rgpd { margin-top: 28px; font-size: .875rem; color: var(--muted); }
.rgpd a, .direct a { color: var(--fg); }
.term .btn { margin-top: 22px; }
.term__status { margin-top: 14px; font-size: .875rem; color: var(--cyan); }
.term__status.is-error { color: var(--err); }
.direct { margin-top: 30px; color: var(--muted); }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; border-top: 1px solid var(--line); padding: 72px var(--gutter) 32px; background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.foot__grid { max-width: var(--wrap); margin: 0 auto; display: grid; gap: 40px; }
@media (min-width: 900px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot p { color: var(--muted); max-width: 44ch; }
.foot .label { margin-bottom: 12px; }
.foot__logo svg { width: 84px; height: 41px; }
.foot__logo { margin-bottom: 16px; }
.foot__nap a, .foot__links a { color: var(--fg); }
.foot__links { display: grid; gap: 2px; }
.foot__links a { display: inline-block; padding: 6px 0; text-decoration: none; color: var(--muted); transition: color var(--t-fast), transform .5s var(--ease-out); }
.foot__links a:hover { color: var(--fg); transform: translateX(6px); }
.foot__mega { max-width: 980px; margin: 64px auto 0; color: rgba(169,196,255,.14); }
.foot__mega svg { width: 100%; height: auto; overflow: visible; }
.foot__mega polyline { opacity: .45; filter: drop-shadow(0 0 24px rgba(62,219,255,.35)); }
.foot__mega circle, .foot__mega polyline { stroke-dasharray: 400; stroke-dashoffset: 0; }
.anim .foot__mega circle, .anim .foot__mega polyline { stroke-dashoffset: 400; transition: stroke-dashoffset 2.4s var(--ease-out); }
.anim .foot__mega polyline { transition-delay: .3s; }
.anim .foot__mega.in circle, .anim .foot__mega.in polyline { stroke-dashoffset: 0; }
.foot .foot__end { max-width: var(--wrap); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: .8125rem; color: var(--muted); }

/* ---------- Apparition au défilement ---------- */
.anim .reveal { opacity: 0; filter: blur(8px); transform: translate3d(0, 40px, 0) scale(.985); transition: opacity 1s var(--ease-out), transform 1.2s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.anim .reveal.in { opacity: 1; filter: blur(0); transform: none; }
.anim .reveal.in.done { filter: none; transition-delay: 0s; }

/* ---------- Mode inspecteur ---------- */
.inspect [data-tag] { outline: 1px dashed rgba(62,219,255,.7); outline-offset: -1px; }
.inspect [data-tag]:not(header):not(.nav):not(.card) { position: relative; }
.inspect [data-tag]::before { content: attr(data-tag); position: absolute; top: 0; left: 0; z-index: 40; pointer-events: none; font: 600 11px/1 var(--mono); background: var(--cyan); color: #021018; padding: 4px 6px; white-space: nowrap; border-radius: 0 0 6px 0; }
.inspect header.nav[data-tag]::before { top: auto; bottom: -19px; left: 18px; }
.inspect .card[data-tag]::before { z-index: 5; border-radius: var(--radius-lg) 0 6px 0; }
.inspect .ln { outline: 1px dotted rgba(111,211,255,.25); }

/* ---------- Pages secondaires ---------- */
.page { max-width: 860px; margin: 0 auto; padding: calc(var(--nav-h) + 56px) var(--gutter) clamp(56px, 8vw, 112px); }
.page h1 { font-size: clamp(2rem, 5.2vw, 4rem); font-stretch: 112%; overflow-wrap: break-word; hyphens: auto; font-weight: 900; line-height: .95; letter-spacing: -.03em; margin: 18px 0 40px; }
.page h2 { font-size: 1.5rem; font-stretch: 110%; margin: 48px 0 12px; }
.page p, .page li { color: var(--fg-2); }
.page p + p { margin-top: 12px; }
.page ul { list-style: none; display: grid; gap: 6px; margin-top: 12px; }
.page ul li::before { content: "+ "; color: var(--cyan); font-family: var(--mono); }
.page a { color: var(--fg); }
.todo { background: rgba(255, 194, 75, .14); color: var(--warn); padding: 0 4px; font-family: var(--mono); font-size: .9em; }
.center { min-height: 100svh; display: grid; align-content: center; gap: 16px; padding-bottom: 56px; }
.center h1 { margin: 8px 0 8px; }
.center .btn { justify-self: start; margin-top: 24px; }
.page h1 em, .grad { font-style: normal; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page .label { display: flex; align-items: center; gap: 10px; }
.page strong { color: var(--fg); }
.nav--sub { grid-template-columns: 1fr auto; }
@media (max-width: 1023px) { .nav--sub { padding: 8px 8px 8px 14px; } }
.foot--sub { padding-top: 8px; }
.foot--sub .foot__end { margin-top: 0; }
.foot--sub a { color: var(--fg); }
.updated { margin-top: 48px; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0ms !important; }
  .ticker__track { flex-wrap: wrap; width: auto; justify-content: center; }
  .ticker__track span:nth-child(n+7) { display: none; }
  .ticker__row--alt .ticker__track span:nth-child(n+6) { display: none; }
  .fx__light { display: none; }
}
@media print {
  .nav, .buildbar, .ticker, .term, .editor, .fx, .hero__fx { display: none; }
  body { background: #fff; color: #000; }
}
