/* ==========================================================================
   GZB Core — Design system & styles du site vitrine
   Palette : Abysse / Carbone / Graphite / Acier / Ivoire / Noyau / Magma
   ========================================================================== */

:root {
  /* Couleurs de marque */
  --abysse: #07070a;
  --carbone: #0e0e13;
  --graphite: #17171f;
  --acier: #8e8e9c;
  --ivoire: #f3f0ea;
  --noyau: #ff5b1f;
  --magma: #ffa41b;
  --signal: #3ddc97;

  --ligne: rgba(243, 240, 234, 0.08);
  --ligne-forte: rgba(243, 240, 234, 0.15);
  --texte-doux: rgba(243, 240, 234, 0.72);
  --fusion: linear-gradient(120deg, var(--noyau) 0%, var(--magma) 100%);

  /* Typographies */
  --f-display: "Unbounded", "Arial Black", system-ui, sans-serif;
  --f-body: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;

  /* Mise en page */
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 22px;
  --section: clamp(96px, 13vw, 170px);
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--abysse);
  color: var(--ivoire);
  font-family: var(--f-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0; }
::selection { background: var(--noyau); color: var(--abysse); }
:focus-visible { outline: 2px solid var(--noyau); outline-offset: 3px; border-radius: 6px; }

/* Grain photographique très léger sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%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");
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.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;
}
.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 400;
  background: var(--noyau); color: var(--abysse); font-weight: 700;
  padding: 10px 16px; border-radius: 10px; transition: top 0.3s;
}
.skip-link:focus { top: 16px; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 12.5px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--acier);
}
.eyebrow b { color: var(--noyau); font-weight: 500; }
.h2 {
  margin: 0;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2rem, 4.3vw, 3.5rem);
  line-height: 1.06; letter-spacing: -0.04em;
  text-wrap: balance;
}
.grad {
  background: var(--fusion);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.lead { font-size: clamp(1.05rem, 1.35vw, 1.22rem); color: var(--texte-doux); max-width: 58ch; text-wrap: pretty; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 26px; border-radius: 999px;
  font-weight: 700; font-size: 15.5px; letter-spacing: -0.005em; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: background 0.3s, border-color 0.3s, color 0.3s, box-shadow 0.4s;
  will-change: transform;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform 0.45s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary {
  background: var(--noyau); color: var(--abysse);
  box-shadow: 0 12px 40px -12px rgba(255, 91, 31, 0.7);
}
.btn--primary::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--fusion); opacity: 0; transition: opacity 0.4s;
}
.btn--primary:hover::before { opacity: 1; }
.btn--primary:hover { box-shadow: 0 16px 50px -10px rgba(255, 120, 31, 0.85); }
.btn--ghost {
  border-color: var(--ligne-forte); background: rgba(243, 240, 234, 0.03);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
}
.btn--ghost:hover { border-color: rgba(243, 240, 234, 0.4); background: rgba(243, 240, 234, 0.07); }

/* ---------- Intro (chargement) ---------- */
.intro { display: none; }
.js .intro {
  display: grid; place-items: center;
  position: fixed; inset: 0; z-index: 250;
  background: var(--abysse);
  clip-path: inset(0 0 0 0);
  transition: clip-path 1s var(--ease-out);
}
.intro svg { width: 76px; height: 76px; overflow: visible; }
.intro__ring { stroke-dasharray: 240; stroke-dashoffset: 240; animation: draw 0.9s var(--ease-out) 0.1s forwards; }
.intro__core { transform-origin: 50px 50px; transform: scale(0); animation: pop 0.6s var(--ease-out) 0.65s forwards; }
.intro.is-done { clip-path: inset(0 0 100% 0); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { 60% { transform: scale(1.35); } to { transform: scale(1); } }

/* ---------- Barre de progression ---------- */
.progress {
  position: fixed; inset: 0 0 auto 0; height: 2px; z-index: 60;
  background: var(--fusion); transform-origin: 0 50%; transform: scaleX(var(--sp, 0));
  pointer-events: none;
}

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 14px; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: center; padding-inline: 12px;
  transition: transform 0.6s var(--ease);
}
.nav.is-hidden { transform: translateY(-130%); }
.nav__bar {
  width: 100%; max-width: 1200px; height: 64px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 10px 0 20px; border-radius: 999px;
  border: 1px solid transparent;
  transition: background 0.4s, border-color 0.4s;
}
.nav.is-scrolled .nav__bar {
  background: rgba(14, 14, 19, 0.7);
  border-color: var(--ligne);
  -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__mark circle { filter: drop-shadow(0 0 6px rgba(255, 91, 31, 0.9)); }
.brand__word { font-family: var(--f-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; line-height: 1; }
.brand__word span { font-weight: 300; color: var(--acier); margin-left: 0.3em; letter-spacing: 0.1em; }
.nav__links { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.nav__links a {
  display: block; padding: 8px 14px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--texte-doux);
  transition: color 0.3s, background 0.3s;
}
.nav__links a:hover, .nav__links a.is-current { color: var(--ivoire); background: rgba(243, 240, 234, 0.06); }
.nav__cta { height: 44px; padding: 0 20px; font-size: 14.5px; }
.nav__burger {
  display: none; width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid var(--ligne-forte); background: rgba(14, 14, 19, 0.6);
  place-items: center; cursor: pointer; position: relative;
}
.nav__burger span {
  position: absolute; left: 14px; right: 14px; height: 1.5px; background: var(--ivoire);
  transition: transform 0.45s var(--ease);
}
.nav__burger span:first-child { transform: translateY(-4px); }
.nav__burger span:last-child { transform: translateY(4px); }
.nav__burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.nav__burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45;
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 110px var(--gutter) 40px;
  background: rgba(7, 7, 10, 0.97);
  opacity: 0; visibility: hidden; transition: opacity 0.4s, visibility 0.4s;
}
.menu.is-open { opacity: 1; visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li a {
  display: flex; align-items: baseline; gap: 14px; padding: 8px 0;
  font-family: var(--f-display); font-size: clamp(2rem, 9vw, 2.9rem); font-weight: 500; letter-spacing: -0.04em;
  opacity: 0; transform: translateY(20px); transition: opacity 0.5s, transform 0.6s var(--ease-out);
}
.menu li a small { font-family: var(--f-mono); font-size: 12px; color: var(--noyau); letter-spacing: 0.08em; }
.menu.is-open li a { opacity: 1; transform: none; }
.menu.is-open li:nth-child(2) a { transition-delay: 0.05s; }
.menu.is-open li:nth-child(3) a { transition-delay: 0.1s; }
.menu.is-open li:nth-child(4) a { transition-delay: 0.15s; }
.menu.is-open li:nth-child(5) a { transition-delay: 0.2s; }
.menu .btn { align-self: flex-start; }

@media (max-width: 960px) {
  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: grid; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: 150px 0 clamp(200px, 30vh, 320px);
}
.hero__grid {
  position: absolute; inset: 0; z-index: -3;
  background-image:
    linear-gradient(var(--ligne) 1px, transparent 1px),
    linear-gradient(90deg, var(--ligne) 1px, transparent 1px);
  background-size: 76px 76px; background-position: center top;
  -webkit-mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 65% 55% at 50% 35%, #000 10%, transparent 75%);
  opacity: 0.55;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.js .hero__canvas { opacity: 0; transition: opacity 1.8s ease; }
.is-ready .hero__canvas { opacity: 1; }
/* Le fond « Flux » (par défaut) dessine sa propre trame ; la grille ne sert qu'à la sphère */
[data-hero="flux"] .hero__grid { display: none; }
[data-hero="flux"] .hero__veil { background: radial-gradient(ellipse 50% 40% at 50% 40%, rgba(7, 7, 10, 0.85), transparent 75%); }

/* Sélecteur de fond (mode comparaison : ?hero=…) */
.hero-switch {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 70;
  display: flex; align-items: center; gap: 4px; padding: 5px;
  border-radius: 999px; border: 1px solid var(--ligne-forte);
  background: rgba(14, 14, 19, 0.85); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.9);
}
.hero-switch span { padding: 0 10px 0 12px; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--acier); }
.hero-switch a { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--texte-doux); transition: background 0.25s, color 0.25s; }
.hero-switch a:hover { color: var(--ivoire); background: rgba(243, 240, 234, 0.07); }
.hero-switch a[aria-current] { background: var(--noyau); color: var(--abysse); }
.hero__veil {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse 46% 34% at 50% 40%, rgba(7, 7, 10, 0.7), transparent 75%);
}
.hero__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 16px 7px 12px; border-radius: 999px;
  border: 1px solid var(--ligne-forte); background: rgba(14, 14, 19, 0.6);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--texte-doux);
}
.pulse { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.pulse::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--signal);
  animation: pulse 2s var(--ease-out) infinite;
}
@keyframes pulse { to { transform: scale(3); opacity: 0; } }

.hero__title {
  margin: 30px 0 0;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.25rem, 5.9vw, 4.6rem);
  line-height: 1.04; letter-spacing: -0.045em;
}
.line { display: block; overflow: hidden; padding: 0.06em 0.04em 0.1em; }
.line > span { display: inline-block; text-wrap: balance; }
.js .line > span { transform: translateY(110%); transition: transform 1.2s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms + 150ms); }
.is-ready .line > span { transform: none; }

.hero__lead { margin-top: 26px; max-width: 54ch; }
.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.hero__proof {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
  margin: 44px 0 0; padding: 0; list-style: none;
  font-family: var(--f-mono); font-size: 12.5px; color: var(--acier); letter-spacing: 0.04em;
}
.hero__proof li { display: inline-flex; align-items: center; gap: 8px; }
.hero__proof svg { width: 14px; height: 14px; color: var(--noyau); }
.js .hero-fade { opacity: 0; transform: translateY(16px); transition: opacity 1s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 110ms + 300ms); }
.is-ready .hero-fade { opacity: 1; transform: none; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--acier);
}
.scroll-cue i { width: 1px; height: 44px; background: linear-gradient(var(--ligne-forte), transparent); position: relative; overflow: hidden; }
.scroll-cue i::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 1px; height: 40%; background: var(--noyau);
  animation: cue 2.2s var(--ease) infinite;
}
@keyframes cue { to { top: 110%; } }

/* ---------- Bandeau défilant ---------- */
.marquee {
  overflow: hidden; padding: 28px 0;
  border-block: 1px solid var(--ligne);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee__track { display: flex; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.marquee__item {
  font-family: var(--f-display); font-weight: 400; white-space: nowrap;
  font-size: clamp(1.25rem, 2.4vw, 2rem); letter-spacing: -0.03em;
}
.marquee__item--o { color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 234, 0.45); }
.marquee__star { width: 18px; height: 18px; color: var(--noyau); flex: none; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section); }
.section-head { display: grid; gap: 22px; margin-bottom: clamp(48px, 7vw, 84px); max-width: 860px; }
.section-head--split { max-width: none; grid-template-columns: 1.55fr 1fr; align-items: end; gap: 28px 64px; }
@media (max-width: 900px) { .section-head--split { grid-template-columns: 1fr; } }

/* ---------- Services (bento) ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.card {
  --mx: 50%; --my: -30%;
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column;
  min-height: 300px; padding: clamp(24px, 2.8vw, 36px);
  border-radius: var(--radius); border: 1px solid var(--ligne);
  background: linear-gradient(180deg, rgba(243, 240, 234, 0.035), rgba(243, 240, 234, 0.01));
  transition: border-color 0.4s;
}
.card::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(520px circle at var(--mx) var(--my), rgba(255, 91, 31, 0.13), transparent 45%);
  opacity: 0; transition: opacity 0.5s;
}
.card::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: radial-gradient(260px circle at var(--mx) var(--my), rgba(255, 150, 70, 0.8), transparent 60%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.5s;
}
.card:hover::before, .card:hover::after { opacity: 1; }
.card__icon {
  width: 46px; height: 46px; flex: none; border-radius: 13px;
  display: grid; place-items: center; color: var(--noyau);
  background: rgba(255, 91, 31, 0.09); border: 1px solid rgba(255, 91, 31, 0.24);
}
.card__icon svg { width: 22px; height: 22px; }
.card h3 {
  margin: 22px 0 10px;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.15; letter-spacing: -0.035em;
}
.card p { color: var(--texte-doux); font-size: 15.5px; max-width: 46ch; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: auto 0 0; padding: 24px 0 0; }
.tags li {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.03em; color: var(--acier);
  padding: 6px 11px; border-radius: 999px; border: 1px solid var(--ligne-forte);
}
.card--a { grid-column: span 4; display: grid; grid-template-columns: 1fr 1.15fr; gap: 32px; align-items: stretch; }
.card--a .card__text { display: flex; flex-direction: column; }
.card--b { grid-column: span 2; grid-row: span 2; }
.card--c, .card--d { grid-column: span 2; }
.card--e, .card--f { grid-column: span 3; }
@media (max-width: 1080px) {
  .bento { grid-template-columns: repeat(2, 1fr); }
  .card--a { grid-column: span 2; }
  .card--b { grid-column: span 1; grid-row: span 2; }
  .card--c, .card--d, .card--e, .card--f { grid-column: span 1; }
}
@media (max-width: 720px) {
  .bento { grid-template-columns: 1fr; }
  .card--a, .card--b, .card--c, .card--d, .card--e, .card--f { grid-column: auto; grid-row: auto; }
  .card--a { grid-template-columns: 1fr; }
}

/* Visuel : mini application */
.mock {
  align-self: center; width: 100%;
  border-radius: 14px; border: 1px solid var(--ligne-forte); overflow: hidden;
  background: #0b0b10; box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8);
  font-family: var(--f-mono); font-size: 10.5px; color: var(--acier);
}
.mock__bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--ligne); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: #2a2a33; }
.mock__bar i:first-child { background: var(--noyau); }
.mock__bar span { margin-left: 8px; opacity: 0.7; }
.mock__body { display: grid; grid-template-columns: 38px 1fr; min-height: 196px; }
.mock__side { border-right: 1px solid var(--ligne); padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.mock__side b { width: 16px; height: 16px; border-radius: 5px; background: rgba(243, 240, 234, 0.08); }
.mock__side b:first-child { background: rgba(255, 91, 31, 0.5); }
.mock__main { padding: 12px; display: grid; gap: 10px; }
.mock__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock__kpis div { border: 1px solid var(--ligne); border-radius: 8px; padding: 7px 8px; }
.mock__kpis strong { display: block; color: var(--ivoire); font-size: 13px; font-weight: 600; margin-top: 2px; }
.mock__kpis em { font-style: normal; color: var(--signal); font-size: 9.5px; }
.mock__chart { display: flex; align-items: flex-end; gap: 5px; height: 64px; padding: 0 2px; border-bottom: 1px solid var(--ligne); }
.mock__chart span {
  flex: 1; height: var(--h); border-radius: 3px 3px 0 0;
  background: linear-gradient(180deg, rgba(255, 91, 31, 0.9), rgba(255, 91, 31, 0.15));
  transform: scaleY(0); transform-origin: bottom;
  transition: transform 1.1s var(--ease-out); transition-delay: calc(var(--i) * 60ms);
}
.mock__chart span:nth-child(3n) { background: linear-gradient(180deg, rgba(255, 164, 27, 0.85), rgba(255, 164, 27, 0.12)); }
.is-in .mock__chart span { transform: scaleY(1); }
.mock__rows { display: grid; gap: 6px; }
.mock__rows span {
  height: 8px; border-radius: 4px; width: var(--w, 100%);
  background: linear-gradient(90deg, rgba(243, 240, 234, 0.06) 0%, rgba(243, 240, 234, 0.16) 50%, rgba(243, 240, 234, 0.06) 100%);
  background-size: 200% 100%; animation: shimmer 2.4s linear infinite;
}
@keyframes shimmer { to { background-position: -200% 0; } }

/* Visuel : conversation IA */
.chat { margin-top: auto; padding-top: 30px; display: grid; gap: 10px; font-size: 14px; line-height: 1.5; }
.msg { max-width: 92%; padding: 12px 15px; border-radius: 16px; opacity: 0; }
.msg--user { justify-self: end; background: rgba(243, 240, 234, 0.08); border-bottom-right-radius: 5px; }
.msg--ai {
  justify-self: start; position: relative; min-height: 44px;
  background: rgba(255, 91, 31, 0.1); border: 1px solid rgba(255, 91, 31, 0.25); border-bottom-left-radius: 5px;
}
.msg--ai b { color: var(--magma); font-weight: 600; }
.typing { position: absolute; left: 16px; top: 18px; display: flex; gap: 4px; opacity: 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--noyau); animation: bounce 1s infinite; }
.typing i:nth-child(2) { animation-delay: 0.15s; }
.typing i:nth-child(3) { animation-delay: 0.3s; }
.msg__text { display: block; opacity: 0; }
.chat__src {
  justify-self: start; display: inline-flex; align-items: center; gap: 7px; opacity: 0;
  font-family: var(--f-mono); font-size: 11px; color: var(--acier);
  padding: 5px 10px; border: 1px dashed var(--ligne-forte); border-radius: 8px;
}
.chat__src svg { width: 13px; height: 13px; color: var(--noyau); }
.is-in .msg--user { animation: chatUser 9s var(--ease) infinite; }
.is-in .msg--ai { animation: chatAi 9s var(--ease) infinite; }
.is-in .typing { animation: chatTyping 9s infinite; }
.is-in .msg__text { animation: chatText 9s infinite; }
.is-in .chat__src { animation: chatSrc 9s var(--ease) infinite; }
@keyframes chatUser { 0% { opacity: 0; transform: translateY(10px); } 5%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chatAi { 0%, 12% { opacity: 0; transform: translateY(10px); } 17%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes chatTyping { 0%, 15% { opacity: 0; } 17%, 34% { opacity: 1; } 36%, 100% { opacity: 0; } }
@keyframes chatText { 0%, 35% { opacity: 0; } 39%, 90% { opacity: 1; } 97%, 100% { opacity: 0; } }
@keyframes chatSrc { 0%, 42% { opacity: 0; transform: translateY(6px); } 47%, 90% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes bounce { 0%, 60%, 100% { transform: none; opacity: 0.5; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Visuel : flux d'automatisation */
.flow { margin-top: 26px; width: 100%; height: auto; overflow: visible; }
.flow__path { fill: none; stroke: var(--ligne-forte); stroke-width: 1.5; stroke-dasharray: 4 5; }
.is-in .flow__path { animation: dash 1.2s linear infinite; }
.flow__node rect { fill: #0b0b10; stroke: var(--ligne-forte); }
.flow__node--core rect { stroke: var(--noyau); fill: rgba(255, 91, 31, 0.1); }
.flow__node text { fill: var(--ivoire); font-family: var(--f-mono); font-size: 10.5px; text-anchor: middle; }
.flow__dot { fill: var(--noyau); filter: drop-shadow(0 0 4px var(--noyau)); }
@keyframes dash { to { stroke-dashoffset: -18; } }

/* Visuel : courbe data */
.spark { margin-top: 22px; width: 100%; height: 70px; overflow: visible; }
.spark__area { fill: url(#sparkFill); opacity: 0; transition: opacity 1.2s 0.8s; }
.spark__line { fill: none; stroke: var(--noyau); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 600; stroke-dashoffset: 600; transition: stroke-dashoffset 2s var(--ease-out); }
.spark__dot { fill: var(--magma); opacity: 0; transition: opacity 0.4s 1.8s; }
.is-in .spark__line { stroke-dashoffset: 0; }
.is-in .spark__area, .is-in .spark__dot { opacity: 1; }

/* ---------- Cas d'usage ---------- */
.usecases { display: grid; grid-template-columns: 1fr 1.3fr; gap: 20px; align-items: stretch; }
@media (max-width: 900px) { .usecases { grid-template-columns: 1fr; } }
.uc-tabs { display: grid; gap: 10px; align-content: start; }
.uc-tab {
  position: relative; overflow: hidden; text-align: left; cursor: pointer;
  display: grid; grid-template-columns: auto 1fr; gap: 4px 16px; align-items: start;
  padding: 20px 22px; border-radius: 18px;
  border: 1px solid var(--ligne); background: transparent;
  transition: background 0.35s, border-color 0.35s;
}
.uc-tab:hover { border-color: var(--ligne-forte); }
.uc-tab[aria-selected="true"] { background: rgba(243, 240, 234, 0.045); border-color: var(--ligne-forte); }
.uc-tab__num { grid-row: span 2; font-family: var(--f-mono); font-size: 12px; color: var(--acier); padding-top: 4px; }
.uc-tab[aria-selected="true"] .uc-tab__num { color: var(--noyau); }
.uc-tab strong { font-weight: 700; font-size: 16.5px; letter-spacing: -0.01em; }
.uc-tab span:last-of-type { color: var(--acier); font-size: 14.5px; line-height: 1.5; }
.uc-tab__bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--fusion); transform: scaleX(0); transform-origin: 0 50%; }
.uc-tab[aria-selected="true"] .uc-tab__bar { animation: ucbar var(--uc-dur, 10s) linear forwards; }
.uc-paused .uc-tab__bar { animation: none !important; transform: scaleX(0) !important; }
@keyframes ucbar { to { transform: scaleX(1); } }

.terminal {
  display: flex; flex-direction: column; min-height: 440px;
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--ligne-forte); background: #0a0a0e;
  box-shadow: 0 50px 120px -50px rgba(255, 91, 31, 0.35);
}
.terminal__bar {
  display: flex; align-items: center; gap: 7px; padding: 14px 18px;
  border-bottom: 1px solid var(--ligne);
  font-family: var(--f-mono); font-size: 12px; color: var(--acier);
}
.terminal__bar i { width: 11px; height: 11px; border-radius: 50%; background: #25252e; }
.terminal__bar span { margin-left: 10px; }
.terminal__bar em { margin-left: auto; font-style: normal; font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; border: 1px solid var(--ligne-forte); }
.terminal__body { flex: 1; padding: 22px 24px 26px; font-family: var(--f-mono); font-size: 13.5px; line-height: 1.9; overflow: hidden; }
.t-line { white-space: pre-wrap; word-break: break-word; min-height: 1.9em; }
.t-muted { color: var(--acier); }
.t-ok { color: var(--signal); }
.t-warn { color: var(--magma); }
.t-accent { color: var(--noyau); font-weight: 600; }
.caret { display: inline-block; width: 8px; height: 1.05em; margin-left: 2px; vertical-align: -0.18em; background: var(--noyau); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ---------- Méthode ---------- */
.method { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 7vw, 110px); }
.method__head { position: sticky; top: 130px; align-self: start; display: grid; gap: 22px; }
@media (max-width: 900px) { .method { grid-template-columns: 1fr; } .method__head { position: static; } }
.steps { position: relative; list-style: none; margin: 0; padding: 0; }
.steps__line { position: absolute; left: 27px; top: 28px; bottom: 90px; width: 1px; background: var(--ligne-forte); }
.steps__line span {
  position: absolute; left: 0; top: 0; width: 1px; height: 100%;
  background: linear-gradient(var(--noyau), var(--magma));
  box-shadow: 0 0 12px var(--noyau);
  transform-origin: top; transform: scaleY(var(--p, 0));
}
.step { display: grid; grid-template-columns: 56px 1fr; gap: 28px; padding-bottom: clamp(48px, 7vw, 76px); }
.step:last-child { padding-bottom: 0; }
.step__num {
  position: relative; z-index: 1;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--f-mono); font-size: 14px; color: var(--acier);
  background: var(--abysse); border: 1px solid var(--ligne-forte);
  transition: color 0.5s, border-color 0.5s, box-shadow 0.5s;
}
.step.is-active .step__num { color: var(--noyau); border-color: var(--noyau); box-shadow: 0 0 0 6px rgba(255, 91, 31, 0.08), 0 0 30px rgba(255, 91, 31, 0.35); }
.step h3 { margin: 12px 0 10px; font-family: var(--f-display); font-weight: 500; font-size: clamp(1.25rem, 2vw, 1.65rem); letter-spacing: -0.035em; line-height: 1.2; }
.step p { color: var(--texte-doux); max-width: 50ch; }
.step__meta { margin-top: 16px; display: inline-flex; gap: 8px; align-items: center; font-family: var(--f-mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acier); }
.step__meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--noyau); }

/* ---------- Calculateur ---------- */
.calc { display: grid; grid-template-columns: 1.1fr 1fr; gap: 16px; }
@media (max-width: 900px) { .calc { grid-template-columns: 1fr; } }
.calc__panel { padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius); border: 1px solid var(--ligne); background: rgba(243, 240, 234, 0.02); }
.range + .range { margin-top: 36px; }
.range__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 16px; }
.range label { font-weight: 600; }
.range output { font-family: var(--f-mono); font-size: 15px; white-space: nowrap; }
.range input {
  -webkit-appearance: none; appearance: none; width: 100%; height: 6px; margin: 0;
  border-radius: 99px; outline: none; cursor: pointer; background: transparent;
}
.range input::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(90deg, var(--noyau) var(--p, 50%), rgba(243, 240, 234, 0.1) var(--p, 50%));
}
.range input::-moz-range-track { height: 6px; border-radius: 99px; background: rgba(243, 240, 234, 0.1); }
.range input::-moz-range-progress { height: 6px; border-radius: 99px; background: var(--noyau); }
.range input::-webkit-slider-thumb {
  -webkit-appearance: none; width: 24px; height: 24px; margin-top: -9px; border-radius: 50%;
  background: var(--ivoire); border: 6px solid var(--noyau);
  box-shadow: 0 0 0 7px rgba(255, 91, 31, 0.15); transition: transform 0.2s, box-shadow 0.2s;
}
.range input::-moz-range-thumb {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--ivoire); border: 6px solid var(--noyau); box-shadow: 0 0 0 7px rgba(255, 91, 31, 0.15);
}
.range input:active::-webkit-slider-thumb { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 91, 31, 0.2); }
.range input:focus-visible::-webkit-slider-thumb { outline: 2px solid var(--ivoire); outline-offset: 3px; }
.range__scale { display: flex; justify-content: space-between; margin-top: 10px; font-family: var(--f-mono); font-size: 11px; color: var(--acier); }

.calc__result {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(24px, 3.5vw, 44px); border-radius: var(--radius);
  border: 1px solid rgba(255, 91, 31, 0.28);
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(255, 91, 31, 0.32), transparent 55%),
    radial-gradient(80% 60% at 0% 100%, rgba(255, 164, 27, 0.12), transparent 60%),
    #0f0d0e;
}
.calc__label { font-family: var(--f-mono); font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--texte-doux); }
.calc__big { margin-top: 12px; font-family: var(--f-display); font-weight: 500; font-size: clamp(2.5rem, 5.4vw, 4.2rem); line-height: 1; letter-spacing: -0.05em; font-variant-numeric: tabular-nums; }
.calc__sub { margin-top: 12px; color: var(--texte-doux); font-size: 15px; }
.calc__save { padding-top: 26px; border-top: 1px solid rgba(243, 240, 234, 0.12); }
.calc__save .calc__big { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
.calc__note { font-size: 12.5px; color: var(--acier); }

/* ---------- Engagements ---------- */
.values { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--ligne); }
.value { padding: 36px 28px 8px 0; }
.value + .value { padding-left: 28px; border-left: 1px solid var(--ligne); }
.value svg { width: 26px; height: 26px; color: var(--noyau); }
.value h3 { margin: 22px 0 10px; font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.value p { color: var(--texte-doux); font-size: 15px; }
@media (max-width: 980px) {
  .values { grid-template-columns: 1fr 1fr; }
  .value:nth-child(3) { padding-left: 0; border-left: 0; }
  .value:nth-child(n + 3) { border-top: 1px solid var(--ligne); margin-top: 28px; }
}
@media (max-width: 560px) {
  .values { grid-template-columns: 1fr; }
  .value, .value + .value { padding-left: 0; border-left: 0; }
  .value:nth-child(n + 2) { border-top: 1px solid var(--ligne); margin-top: 8px; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: 1fr 1.5fr; gap: clamp(32px, 6vw, 90px); }
@media (max-width: 900px) { .faq { grid-template-columns: 1fr; } }
.faq__list { border-top: 1px solid var(--ligne); }
.faq details { border-bottom: 1px solid var(--ligne); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 26px 0; font-weight: 600; font-size: clamp(1.05rem, 1.45vw, 1.2rem); letter-spacing: -0.01em;
  transition: color 0.3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: #fff; }
.plus {
  position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--ligne-forte);
  transition: transform 0.45s var(--ease), background 0.3s, border-color 0.3s, color 0.3s;
}
.plus::before, .plus::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px;
  background: currentColor; transform: translate(-50%, -50%);
}
.plus::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.45s var(--ease); }
details[open] .plus { background: var(--noyau); border-color: var(--noyau); color: var(--abysse); transform: rotate(180deg); }
details[open] .plus::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq__answer p { padding: 0 60px 28px 0; color: var(--texte-doux); max-width: 66ch; }
@supports (interpolate-size: allow-keywords) {
  .faq { interpolate-size: allow-keywords; }
  .faq details::details-content {
    height: 0; overflow: hidden;
    transition: height 0.5s var(--ease), content-visibility 0.5s allow-discrete;
  }
  .faq details[open]::details-content { height: auto; }
}

/* ---------- Contact ---------- */
.contact { overflow: hidden; }
.contact::before {
  content: ""; position: absolute; z-index: -1; pointer-events: none;
  width: 900px; height: 900px; left: -300px; top: 10%;
  background: radial-gradient(circle, rgba(255, 91, 31, 0.16), transparent 60%);
}
.contact__grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
@media (max-width: 960px) { .contact__grid { grid-template-columns: 1fr; } }
.contact__title {
  margin: 22px 0 0; font-family: var(--f-display); font-weight: 500;
  font-size: clamp(2.5rem, 5.6vw, 4.6rem); line-height: 1.02; letter-spacing: -0.05em;
}
.contact__intro { margin-top: 26px; }
.contact-list { list-style: none; margin: 40px 0 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; align-items: center; gap: 14px; }
.contact-list .ic {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none;
  border: 1px solid var(--ligne-forte); color: var(--noyau);
}
.contact-list .ic svg { width: 18px; height: 18px; }
.contact-list small { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--acier); }
.contact-list a:hover { color: var(--noyau); }

.form {
  position: relative; padding: clamp(22px, 3.4vw, 40px); border-radius: 28px;
  border: 1px solid var(--ligne-forte);
  background: linear-gradient(180deg, rgba(243, 240, 234, 0.045), rgba(243, 240, 234, 0.015));
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }
.field { position: relative; margin-bottom: 14px; }
.field input, .field textarea, .field select {
  width: 100%; display: block; outline: none;
  padding: 25px 16px 9px; border-radius: 14px; font-size: 16px;
  background: rgba(7, 7, 10, 0.55); border: 1px solid var(--ligne-forte);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.field textarea { min-height: 150px; resize: vertical; line-height: 1.55; }
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 44px; }
.field select option { background: var(--carbone); color: var(--ivoire); }
.field--select::after {
  content: ""; position: absolute; right: 18px; top: 50%; width: 8px; height: 8px; pointer-events: none;
  border-right: 1.5px solid var(--acier); border-bottom: 1.5px solid var(--acier); transform: translateY(-70%) rotate(45deg);
}
.field label {
  position: absolute; left: 17px; top: 17px; pointer-events: none;
  color: var(--acier); font-size: 15.5px; line-height: 1.3;
  transition: top 0.25s var(--ease), font-size 0.25s var(--ease), color 0.25s, letter-spacing 0.25s;
}
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--noyau); background: rgba(7, 7, 10, 0.8);
  box-shadow: 0 0 0 4px rgba(255, 91, 31, 0.14);
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field--select label {
  top: 8px; font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase;
}
.field input:focus + label, .field textarea:focus + label, .field select:focus + label { color: var(--noyau); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: #ff6b6b; }
.field__error { display: block; margin-top: 6px; font-size: 13px; color: #ff8f8f; }

.chips { border: 0; margin: 4px 0 18px; padding: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 12px; font-size: 14px; color: var(--acier); }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none;
  padding: 9px 15px; border-radius: 999px; font-size: 14px; font-weight: 600;
  border: 1px solid var(--ligne-forte); background: rgba(7, 7, 10, 0.4);
  transition: background 0.25s, border-color 0.25s, transform 0.25s var(--ease);
}
.chip span::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  border: 1.5px solid var(--acier); transition: background 0.25s, border-color 0.25s;
}
.chip span:hover { border-color: rgba(243, 240, 234, 0.35); }
.chip input:checked + span { background: rgba(255, 91, 31, 0.13); border-color: var(--noyau); }
.chip input:checked + span::before { background: var(--noyau); border-color: var(--noyau); box-shadow: 0 0 8px var(--noyau); }
.chip input:focus-visible + span { outline: 2px solid var(--noyau); outline-offset: 2px; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin: 6px 0 22px; font-size: 13.5px; color: var(--acier); line-height: 1.5; cursor: pointer; }
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 20px; height: 20px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--ligne-forte); background: rgba(7, 7, 10, 0.55); display: grid; place-items: center;
  transition: background 0.2s, border-color 0.2s;
}
.consent input::after { content: ""; width: 5px; height: 10px; border: solid var(--abysse); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); margin-top: -2px; transition: transform 0.2s var(--ease); }
.consent input:checked { background: var(--noyau); border-color: var(--noyau); }
.consent input:checked::after { transform: rotate(45deg) scale(1); }
.consent a { color: var(--ivoire); text-decoration: underline; text-underline-offset: 3px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form .btn { width: 100%; height: 58px; font-size: 16px; }
.btn.is-loading { pointer-events: none; }
.btn.is-loading .btn__label::after { content: "…"; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(7, 7, 10, 0.3); border-top-color: var(--abysse); animation: spin 0.7s linear infinite; display: none; }
.btn.is-loading .spinner { display: block; }
.btn.is-loading .btn__arrow { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.form__status { margin-top: 14px; font-size: 14px; color: #ff8f8f; min-height: 1.4em; text-align: center; }
.form__fine { margin-top: 14px; font-size: 12.5px; color: var(--acier); text-align: center; }

.form__success {
  position: absolute; inset: 0; border-radius: inherit;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 16px;
  padding: 40px; background: rgba(12, 12, 16, 0.96);
  opacity: 0; visibility: hidden; transition: opacity 0.6s, visibility 0.6s;
}
.form.is-sent .form__success { opacity: 1; visibility: visible; }
.form__success svg { width: 84px; height: 84px; }
.form__success circle { stroke: var(--noyau); stroke-dasharray: 260; stroke-dashoffset: 260; }
.form__success path { stroke: var(--ivoire); stroke-dasharray: 60; stroke-dashoffset: 60; }
.form.is-sent .form__success circle { animation: draw 0.9s var(--ease-out) 0.2s forwards; }
.form.is-sent .form__success path { animation: draw 0.5s var(--ease-out) 0.9s forwards; }
.form__success h3 { margin: 8px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 1.7rem; letter-spacing: -0.04em; }
.form__success p { color: var(--texte-doux); max-width: 38ch; }

/* ---------- Footer ---------- */
.footer { position: relative; border-top: 1px solid var(--ligne); padding: 72px 0 28px; overflow: hidden; }
.footer__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 40px; }
.footer__tagline { margin-top: 18px; color: var(--acier); max-width: 36ch; font-size: 15px; }
.footer__cols { display: flex; flex-wrap: wrap; gap: 56px; }
.footer__col h4 { margin: 0 0 16px; font-family: var(--f-mono); font-size: 11.5px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--acier); }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 15px; }
.footer__col a { color: var(--texte-doux); transition: color 0.3s; }
.footer__col a:hover { color: var(--noyau); }
.footer__word {
  --fx: 50%; --fy: 50%;
  margin: clamp(48px, 8vw, 90px) 0 0; text-align: center; white-space: nowrap; user-select: none;
  font-family: var(--f-display); font-weight: 700; letter-spacing: -0.06em; line-height: 0.82;
  font-size: min(12rem, calc((100vw - 2 * var(--gutter)) / 6.1));
  color: transparent; -webkit-text-stroke: 1px rgba(243, 240, 234, 0.16);
  background: radial-gradient(380px circle at var(--fx) var(--fy), rgba(255, 91, 31, 0.95), rgba(255, 164, 27, 0.4) 40%, transparent 70%);
  -webkit-background-clip: text; background-clip: text;
}
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px;
  margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--ligne);
  font-family: var(--f-mono); font-size: 12px; color: var(--acier);
}
.footer__bottom a:hover { color: var(--ivoire); }

/* ---------- Apparitions au scroll ---------- */
.js .reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Pages simples (mentions légales, 404) ---------- */
.page { padding: 160px 0 100px; }
.page h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.045em; line-height: 1.05; margin: 18px 0 40px; }
.page h2 { font-family: var(--f-display); font-weight: 500; font-size: 1.3rem; letter-spacing: -0.03em; margin: 48px 0 14px; }
.page p, .page li { color: var(--texte-doux); max-width: 72ch; }
.page p + p { margin-top: 12px; }
.page a { color: var(--noyau); }
.todo { background: rgba(255, 164, 27, 0.14); color: var(--magma); padding: 1px 6px; border-radius: 5px; font-family: var(--f-mono); font-size: 0.88em; }

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .marquee__track { animation: none; }
  .msg, .typing, .msg__text, .chat__src { opacity: 1 !important; animation: none !important; }
  .typing { display: none; }
}
