/* =====================================================================
   AmsoWeb — feuille de style principale
   Couleurs officielles : bleu #2F7DD1 · orange #FF9417 · police Plus Jakarta Sans
   ===================================================================== */

:root {
  --blue: #2f7dd1;
  --blue-hi: #5aa9ff;
  --orange: #ff9417;
  --orange-hi: #ffb04d;
  --night: #060a16;
  --grad: linear-gradient(90deg, #ff9417, #ffb04d);
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);
  --gutter: clamp(16px, 4vw, 56px);
  --max: 1360px;
  --radius: 22px;
  --nav-h: 76px;
}

body {
  --bg: #060a16;
  --fg: #eef2fb;
  --muted: #97a3bf;
  --line: rgba(238, 242, 251, .1);
  --card: rgba(255, 255, 255, .035);
  --accent: #ff9417;
}
/* la couleur de fond se fond sur son propre calque : animer les variables de couleur
   recalculerait toute la page à chaque image et ferait saccader le défilement */
html { background: #060a16; }
.tone-bg { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: -1; background: var(--bg); transition: background-color .7s linear; }
body:has(.tone-bg) { background: transparent; }
body[data-tone="light"] {
  --bg: #f3f0ea;
  --fg: #0a0f1e;
  --muted: #545c72;
  --line: rgba(10, 15, 30, .12);
  --card: #ffffff;
  --accent: #c25e00;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
html.lock { overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  min-height: 100vh;
}
img, svg, canvas, video { display: block; max-width: 100%; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--orange); color: #111; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: fixed; left: 16px; top: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: 999px; background: var(--orange); color: #111;
  font-weight: 700; text-decoration: none; transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip:focus { transform: none; }

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

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Typo ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 22px; font-size: 12.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted);
}
.kicker .dot, .kicker::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--orange);
  box-shadow: 0 0 0 4px rgba(255, 148, 23, .18);
}
.kicker .dot { display: none; }
.h-hero, .h1, .h2, .h3 { margin: 0; font-weight: 800; letter-spacing: -.045em; line-height: .98; }
.h-hero { font-size: clamp(2.7rem, 6.4vw, 6.5rem); }
.h1 { font-size: clamp(2.6rem, 7vw, 7.2rem); }
.h2 { font-size: clamp(2.2rem, 5.2vw, 5.2rem); }
.h3 { font-size: clamp(1.5rem, 2.4vw, 2.2rem); letter-spacing: -.03em; line-height: 1.08; }
.h-hero em, .h1 em, .h2 em, .h3 em, .manifesto-text em, .footer-cta em {
  font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em;
  color: var(--accent);
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.55; color: var(--muted); max-width: 40ch; margin: 26px 0 0; }
.sec-head { max-width: 980px; margin-bottom: clamp(40px, 6vw, 80px); }
.sec-lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.2rem); max-width: 56ch; margin: 22px 0 0; }

/* ---------- Boutons ---------- */
.btn {
  --b: var(--orange);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: 15.5px; letter-spacing: -.01em; text-decoration: none; white-space: nowrap;
  cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .45s var(--ease), color .35s var(--ease), border-color .35s, background-color .35s;
}
.btn::before {
  content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: var(--blue); transform: translateY(101%); transition: transform .5s var(--ease);
}
.btn:hover::before { transform: none; }
.btn-primary { background: var(--orange); color: #160c00; }
.btn-primary:hover { color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--fg); background: transparent; }
.btn-ghost::before { background: var(--fg); }
.btn-ghost:hover { color: var(--bg); border-color: var(--fg); }
.btn .arr { transition: transform .45s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: 14px; }

.link-u { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat; transition: background-size .45s var(--ease); }
.link-u:hover { background-size: 100% 1.5px; }

/* ---------- Apparitions ---------- */
.js [data-reveal] { opacity: 0; transform: translateY(36px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); transition-delay: var(--d, 0s); }
.js [data-reveal].is-in { opacity: 1; transform: none; }
.is-split .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .04em .12em; margin: 0 -.04em -.12em; }
.is-split .w > span { display: inline-block; transform: translateY(108%); transition: transform 1.15s var(--ease); transition-delay: calc(var(--i, 0) * 32ms + var(--d, 0s)); }
.is-split.is-in .w > span { transform: none; }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 900; background: var(--night); color: #eef2fb;
  display: grid; place-items: center; transition: transform 1.1s var(--ease-io);
}
.js .loader { display: grid; }
.loader-logo { width: 74px; animation: pulse 1.6s var(--ease) infinite alternate; filter: drop-shadow(0 10px 40px rgba(47, 125, 209, .45)); }
.loader-num {
  position: absolute; left: var(--gutter); bottom: 28px; font-size: clamp(64px, 14vw, 180px); font-weight: 800;
  letter-spacing: -.06em; line-height: .8; font-variant-numeric: tabular-nums;
}
.loader-num::after { content: "%"; font-size: .3em; letter-spacing: 0; margin-left: .1em; color: var(--orange); }
.loader-tag { position: absolute; right: var(--gutter); bottom: 34px; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: #97a3bf; }
.loader-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, .06); }
.loader-bar span { display: block; height: 100%; background: var(--grad); transform-origin: left; transform: scaleX(0); }
.loader.is-done { transform: translateY(-100%); }
@media (max-width: 900px), (hover: none) { .loader { display: none !important; } }
@keyframes pulse { from { transform: scale(.94); opacity: .75; } to { transform: scale(1.04); opacity: 1; } }

/* ---------- Transition de page ---------- */
.curtain { position: fixed; inset: 0; z-index: 950; pointer-events: none; }
.curtain::before, .curtain::after { content: ""; position: absolute; inset: 0; transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-io); }
.curtain::before { background: var(--orange); }
.curtain::after { background: var(--night); transition-delay: .08s; }
.is-leaving .curtain::before, .is-leaving .curtain::after { transform: scaleY(1); }
.is-entering .curtain::before, .is-entering .curtain::after { transform: scaleY(1); transition: none; }
.curtain-out .curtain::before, .curtain-out .curtain::after { transform-origin: top; }

/* ---------- Curseur ---------- */
.cursor { position: fixed; inset: 0; z-index: 990; pointer-events: none; opacity: 0; transition: opacity .3s; }
.cursor.on { opacity: 1; }
.cursor-dot, .cursor-ring { position: absolute; left: 0; top: 0; border-radius: 50%; }
.cursor-dot { width: 6px; height: 6px; margin: -3px 0 0 -3px; background: var(--orange); }
.cursor-ring {
  width: 38px; height: 38px; margin: -19px 0 0 -19px; border: 1.5px solid color-mix(in srgb, var(--fg) 45%, transparent);
  display: grid; place-items: center;
}
.cursor-ring::before { content: ""; position: absolute; inset: -1.5px; border-radius: 50%; background: var(--orange); transform: scale(0); transition: transform .45s var(--ease); }
.cursor-label { position: relative; font-size: 12px; font-weight: 800; letter-spacing: .04em; color: #160c00; opacity: 0; transform: scale(.6); transition: opacity .3s, transform .45s var(--ease); white-space: nowrap; }
.cursor-ring > * { pointer-events: none; }
.cursor.hover .cursor-ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; background: color-mix(in srgb, var(--fg) 8%, transparent); }
.cursor.label .cursor-ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; border-color: transparent; }
.cursor.label .cursor-ring::before { transform: scale(1); }
.cursor.label .cursor-label { opacity: 1; transform: none; }
.cursor.label .cursor-dot, .cursor.hide .cursor-dot { opacity: 0; }
.cursor.hide .cursor-ring { opacity: 0; }
.cursor.down .cursor-ring { scale: .85; }
.cursor-ring { transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease), background-color .3s, border-color .3s, opacity .3s, scale .2s; }
.has-cursor, .has-cursor * { cursor: none !important; }
.has-cursor input:not([type=radio]):not([type=checkbox]):not([type=range]), .has-cursor textarea, .has-cursor select { cursor: text !important; }

/* ---------- Grain + progression ---------- */
.grain {
  position: fixed; inset: -100%; z-index: 800; pointer-events: none; opacity: .055;
  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");
}
.grain { inset: 0; } /* grain fixe : un calque plein écran animé coûte trop cher */
.progress { position: fixed; left: 0; top: 0; z-index: 700; width: 100%; height: 2px; background: var(--grad); transform-origin: left; transform: scaleX(0); pointer-events: none; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 600; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 var(--gutter);
  transition: transform .6s var(--ease), background-color .5s, height .5s var(--ease);
}
.nav.is-scrolled { height: 64px; background: color-mix(in srgb, var(--bg) 94%, transparent); border-bottom: 1px solid var(--line); }
.nav.is-hidden { transform: translateY(-110%); }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; font-weight: 800; font-size: 21px; letter-spacing: -.035em; }
.brand img { width: 30px; height: auto; }
.brand b { color: var(--orange); font-weight: 800; }
.nav-links { display: flex; align-items: center; gap: clamp(18px, 2.4vw, 38px); margin: 0; padding: 0; list-style: none; font-size: 14.5px; font-weight: 600; }
.nav-links a { text-decoration: none; opacity: .82; transition: opacity .3s; }
.nav-links a:hover { opacity: 1; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 26px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 22px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 22px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 590; background: var(--night); color: #eef2fb;
  display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter) 40px;
  clip-path: circle(0% at calc(100% - 44px) 38px); transition: clip-path .9s var(--ease-io); visibility: hidden;
}
.menu.is-open { clip-path: circle(150% at calc(100% - 44px) 38px); visibility: visible; }
.menu ul { list-style: none; margin: 0; padding: 0; }
.menu li { overflow: hidden; }
.menu li a { display: block; padding: 6px 0; font-size: clamp(2.4rem, 10vw, 4.2rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.05; text-decoration: none; transform: translateY(110%); transition: transform .8s var(--ease); }
.menu.is-open li a { transform: none; }
.menu li:nth-child(2) a { transition-delay: .05s; } .menu li:nth-child(3) a { transition-delay: .1s; } .menu li:nth-child(4) a { transition-delay: .15s; } .menu li:nth-child(5) a { transition-delay: .2s; } .menu li:nth-child(6) a { transition-delay: .25s; }
.menu-foot { margin-top: 40px; color: #97a3bf; font-size: 14px; display: flex; flex-wrap: wrap; gap: 10px 22px; }
.menu-foot a { text-decoration: none; }

/* ---------- Hero ---------- */
.hero { position: relative; height: 430vh; }
.hero-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(55% 55% at 74% 42%, rgba(47, 125, 209, .26), transparent 70%),
    radial-gradient(38% 42% at 10% 100%, rgba(255, 148, 23, .14), transparent 72%),
    radial-gradient(30% 30% at 90% 95%, rgba(90, 169, 255, .1), transparent 70%);
}
.hero-grid {
  position: absolute; inset: 0; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 80px 80px;
  -webkit-mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%); mask-image: radial-gradient(70% 70% at 70% 45%, #000, transparent 75%);
}
.hero-fallback { display: none; position: absolute; right: 10vw; top: 50%; width: min(30vw, 340px); transform: translateY(-55%); filter: drop-shadow(0 30px 80px rgba(47, 125, 209, .5)); }
.no-gl .hero-fallback { display: block; }
.hero-panel { position: absolute; left: var(--gutter); bottom: clamp(70px, 13vh, 150px); width: min(780px, 58vw); will-change: opacity, transform; }
.hero-panel ~ .hero-panel { opacity: 0; visibility: hidden; }
.hero-panel .num { display: block; margin-bottom: 20px; font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--orange); }
.hero-panel .h2 { font-size: clamp(2.3rem, 5vw, 5rem); }
.hero-panel p.lead { max-width: 44ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero-steps { position: absolute; right: var(--gutter); top: 50%; transform: translateY(-50%); margin: 0; padding: 0; list-style: none; display: grid; gap: 16px; }
.hero-steps li { display: flex; align-items: center; justify-content: flex-end; gap: 12px; font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .4s; }
.hero-steps li::after { content: ""; width: 22px; height: 2px; border-radius: 2px; background: currentColor; opacity: .4; transition: width .5s var(--ease), opacity .4s, background-color .4s; }
.hero-steps li.on { color: var(--fg); }
.hero-steps li.on::after { width: 46px; opacity: 1; background: var(--orange); }
.hero-scroll { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 10px; font-size: 11px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); transition: opacity .5s; }
.hero-scroll i { width: 1.5px; height: 46px; background: linear-gradient(var(--orange), transparent); transform-origin: top; animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); transform-origin: top; } 51% { transform-origin: bottom; } 100% { transform: scaleY(0); transform-origin: bottom; } }

/* ---------- Manifeste ---------- */
.manifesto { position: relative; height: 240vh; }
.manifesto-sticky { position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 100px var(--gutter); max-width: 1440px; margin: 0 auto; }
.manifesto-text { margin: 0; font-size: clamp(1.9rem, 4.6vw, 4.6rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.08; }
.manifesto-text .m { opacity: .13; transition: opacity .25s linear; }
.manifesto-text .m.on { opacity: 1; }

/* ---------- Bandeau défilant ---------- */
.marquee { padding: clamp(40px, 7vw, 90px) 0; overflow: hidden; border-block: 1px solid var(--line); }
.marquee-row { display: flex; width: max-content; will-change: transform; }
.marquee-row + .marquee-row { margin-top: 6px; }
.marquee-row span { display: inline-flex; align-items: center; gap: .5em; padding-right: .5em; font-size: clamp(3rem, 8.5vw, 8.4rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.05; white-space: nowrap; }
.marquee-row span i { font-style: normal; color: var(--orange); font-size: .45em; }
.marquee-row.outline span { color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 40%, transparent); }
.marquee-row.outline span em { -webkit-text-stroke: 0; color: var(--fg); font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.02em; }

/* ---------- Exemples (défilement horizontal) ---------- */
.demos { position: relative; }
.demos-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; display: flex; flex-direction: column; justify-content: center; gap: clamp(24px, 4vh, 48px); }
.demos-meta { color: var(--muted); }
.demos-count { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--fg); font-variant-numeric: tabular-nums; }
.demos-track { display: flex; gap: clamp(16px, 2vw, 28px); padding: 0 var(--gutter); width: max-content; will-change: transform; }
.demo-card {
  position: relative; flex: 0 0 auto; width: min(64vw, 920px); height: min(58vh, 600px); border-radius: 28px; overflow: hidden;
  text-decoration: none; color: #fff; background: #111; isolation: isolate;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, .7);
}
.demo-poster { position: absolute; inset: -6% -10%; transition: transform 1.2s var(--ease); }
.demo-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; max-width: 46%; margin: 0; padding: 0; list-style: none; }
.demo-tags li { padding: 6px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .18); white-space: nowrap; }

/* Affiches générées en CSS (aucune image externe) */
.p-fornella { background: radial-gradient(70% 70% at 50% 92%, #ffd27a 0%, #ff7a2b 12%, #c8321c 26%, #5a170c 46%, #1d0d08 66%, #120a07 80%); }
.p-fornella::after { content: ""; position: absolute; inset: 0; background: radial-gradient(40% 30% at 50% 100%, rgba(255, 190, 90, .55), transparent 70%); animation: flicker 2.4s ease-in-out infinite alternate; }
@keyframes flicker { 0% { opacity: .5; } 30% { opacity: .9; } 55% { opacity: .65; } 100% { opacity: 1; } }
.p-fornella .t { position: absolute; left: 50%; top: 40%; transform: translate(-50%, -50%); font-family: "Fraunces", serif; font-style: italic; font-weight: 500; font-size: clamp(4rem, 10vw, 9.5rem); letter-spacing: -.04em; color: #f6e7cf; text-shadow: 0 0 60px rgba(255, 120, 40, .5); white-space: nowrap; }
.p-fornella .s { position: absolute; left: 50%; top: 58%; transform: translateX(-50%); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: #f6e7cf; opacity: .75; white-space: nowrap; }

.p-nervure { background: #efe7da; }
.p-nervure .wood { position: absolute; inset: 0 0 0 46%; background:
  repeating-linear-gradient(94deg, rgba(90, 52, 20, .0) 0 7px, rgba(90, 52, 20, .16) 8px 9px, rgba(90, 52, 20, 0) 10px 19px),
  repeating-radial-gradient(ellipse 140% 40% at 20% 50%, #c08a52 0 6px, #ad7643 7px 14px, #c99561 15px 22px),
  #b98048; clip-path: polygon(14% 0, 100% 0, 100% 100%, 0 100%); }
.p-nervure .bp { position: absolute; inset: 0; background-image: linear-gradient(rgba(46, 74, 107, .16) 1px, transparent 1px), linear-gradient(90deg, rgba(46, 74, 107, .16) 1px, transparent 1px); background-size: 28px 28px; }
.p-nervure .cab { position: absolute; left: 17%; top: 28%; width: 26%; height: 40%; border: 2px solid #2e4a6b; }
.p-nervure .cab::before, .p-nervure .cab::after { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px dashed #2e4a6b; }
.p-nervure .cab::after { left: 0; right: 0; top: 33%; bottom: auto; border-left: 0; border-top: 2px dashed #2e4a6b; }
.p-nervure .t { position: absolute; left: 17%; top: 15%; font-weight: 800; font-size: clamp(1.6rem, 3vw, 2.8rem); letter-spacing: -.04em; text-transform: uppercase; color: #1d1a17; }
.p-nervure .dim { position: absolute; left: 17%; top: 70%; width: 26%; text-align: center; font: 600 12px/1 ui-monospace, Consolas, monospace; color: #2e4a6b; border-top: 1px solid #2e4a6b; padding-top: 8px; }

.p-petalune { background: radial-gradient(70% 70% at 50% 40%, #fde7e3 0%, #f4c6c4 45%, #d99aa3 100%); }
.p-petalune svg { position: absolute; left: 50%; top: 36%; width: 34%; transform: translate(-50%, -50%); animation: spin 40s linear infinite; }
.p-petalune .t { position: absolute; left: 0; right: 0; top: 52%; text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(3rem, 7vw, 6.4rem); color: #2b1d22; letter-spacing: -.02em; line-height: 1; }
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.p-rivelle { background: radial-gradient(80% 80% at 50% 30%, #0f6f86 0%, #08394b 50%, #041820 100%); }
.p-rivelle i { position: absolute; left: 50%; top: 45%; width: 60px; height: 60px; margin: -30px 0 0 -30px; border-radius: 50%; border: 2px solid rgba(160, 240, 255, .7); animation: ripple 3.6s cubic-bezier(.2, .6, .3, 1) infinite; }
.p-rivelle i:nth-child(2) { animation-delay: 1.2s; } .p-rivelle i:nth-child(3) { animation-delay: 2.4s; }
@keyframes ripple { from { transform: scale(.2); opacity: 1; } to { transform: scale(9); opacity: 0; } }
.p-rivelle .t { position: absolute; left: 50%; top: 45%; transform: translate(-50%, -50%); font-weight: 800; font-size: clamp(3.4rem, 8vw, 7.6rem); letter-spacing: -.06em; color: #e6f7f9; white-space: nowrap; }

.demo-card--you { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 22px; padding: clamp(28px, 4vw, 60px); width: min(44vw, 620px); background: var(--card); color: var(--fg); border: 1.5px dashed color-mix(in srgb, var(--fg) 25%, transparent); box-shadow: none; }
.demo-card--you .h3 { font-size: clamp(1.8rem, 3vw, 3rem); }
.demo-card--you p { margin: 0; color: var(--muted); }
.demos-note { padding: 0 var(--gutter); margin: 0; font-size: 13px; color: var(--muted); }

/* ---------- Qui sommes-nous ---------- */
.team { padding: clamp(100px, 13vw, 170px) 0 clamp(40px, 6vw, 80px); }
.team-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 100px); align-items: center; }
.team-intro .sec-lead + .sec-lead { margin-top: 14px; }
.team-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.member { margin: 0; }
.member:nth-child(2) { margin-top: 56px; }
.avatar {
  position: relative; aspect-ratio: 4 / 5; max-width: 100%; border-radius: 26px; overflow: hidden;
  background: radial-gradient(90% 70% at 30% 20%, rgba(90, 169, 255, .55), transparent 60%), radial-gradient(80% 60% at 85% 95%, rgba(255, 148, 23, .5), transparent 60%), #0d1530;
  border: 1px solid var(--line);
}
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar .mono { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--serif); font-style: italic; font-size: clamp(6rem, 13vw, 11rem); line-height: 1; color: #eef2fb; text-shadow: 0 20px 60px rgba(0, 0, 0, .35); }
.avatar.has-photo .mono { display: none; }
.avatar .place { position: absolute; left: 14px; bottom: 14px; padding: 6px 11px; border-radius: 999px; background: rgba(6, 10, 22, .6); color: #eef2fb; font-size: 12px; font-weight: 700; letter-spacing: .06em; }
.member figcaption { display: grid; gap: 2px; padding: 14px 4px 0; }
.member figcaption b { font-size: 1.3rem; letter-spacing: -.02em; }
.member figcaption span { color: var(--muted); font-size: 14.5px; }

/* ---------- WhatsApp ---------- */
.hero-note { margin: 14px 0 0; font-size: 14px; color: var(--muted); }
.btn-wa { margin-top: 30px; background: #25d366; color: #052e16; }
.btn-wa::before { background: #eef2fb; }
.btn-wa svg, .wa-fab svg { width: 22px; height: 22px; flex: none; }
.wa-fab {
  position: fixed; z-index: 580; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 18px 0 14px; border-radius: 999px;
  background: #25d366; color: #052e16; font-weight: 800; font-size: 15px; text-decoration: none;
  box-shadow: 0 16px 40px -14px rgba(37, 211, 102, .65); transition: transform .4s var(--ease);
}
.wa-fab:hover { transform: translateY(-3px); }

/* ---------- Avant / Après ---------- */
.ba { padding: clamp(100px, 14vw, 180px) 0; }
.ba-frame { border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #0d1222; box-shadow: 0 60px 120px -60px rgba(0, 0, 0, .8); }
.ba-bar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; background: #141a2d; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.ba-bar i { width: 11px; height: 11px; border-radius: 50%; background: #39405a; }
.ba-bar span { margin-left: 14px; padding: 5px 14px; border-radius: 8px; background: #0b1020; font-size: 12.5px; color: #8b95b0; }
.ba-stage { position: relative; aspect-ratio: 16 / 9.4; container-type: inline-size; overflow: hidden; user-select: none; touch-action: pan-y; }
.ba-old, .ba-new { position: absolute; inset: 0; }
.ba-new { clip-path: inset(0 0 0 var(--pos, 50%)); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--pos, 50%); width: 0; z-index: 3; pointer-events: none; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .4); }
.ba-handle span { position: absolute; top: 50%; left: 0; width: 58px; height: 58px; margin: -29px 0 0 -29px; border-radius: 50%; background: var(--orange); color: #160c00; display: grid; place-items: center; font-size: 22px; font-weight: 800; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.ba-range { position: absolute; inset: 0; z-index: 4; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; }
.ba-range:focus-visible + .ba-focus { opacity: 1; }
.ba-focus { position: absolute; inset: 6px; border: 2px solid var(--orange); border-radius: 14px; opacity: 0; pointer-events: none; z-index: 5; }
.ba-labels { position: absolute; inset: auto 14px 14px; display: flex; justify-content: space-between; z-index: 3; pointer-events: none; }
.ba-labels b { padding: 6px 12px; border-radius: 999px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.ba-labels b:last-child { background: var(--orange); color: #160c00; }
.ba-note { margin: 0; padding: 14px 18px; font-size: 13px; color: #8b95b0; border-top: 1px solid rgba(255, 255, 255, .06); background: #0d1222; }

/* — l'ancien site (volontairement daté) — */
.ba-old { background: #fffbb0; color: #000080; font-family: "Comic Sans MS", "Comic Sans", "Chalkboard SE", cursive; font-size: 1.7cqw; padding: 1.6cqw 2.4cqw; overflow: hidden; }
.ba-old .o-title { text-align: center; font-family: "Times New Roman", serif; font-size: 4.6cqw; color: #d40000; text-decoration: underline; margin: 0; text-shadow: 2px 2px 0 #ffd400; }
.ba-old .o-marq { margin: 1.4cqw 0; background: #000080; color: #ffff00; padding: .6cqw 0; font-family: "Courier New", monospace; font-weight: 700; font-size: 1.6cqw; white-space: nowrap; overflow: hidden; }
.ba-old .o-marq span { display: inline-block; animation: oldmarq 9s linear infinite; }
@keyframes oldmarq { from { transform: translateX(100%); } to { transform: translateX(-100%); } }
.ba-old .o-cols { display: grid; grid-template-columns: 24% 1fr; gap: 2cqw; }
.ba-old .o-menu { background: #c0c0c0; border: 3px outset #fff; padding: 1cqw; font-family: Arial, sans-serif; font-size: 1.5cqw; }
.ba-old .o-menu a { display: block; color: #0000ee; text-decoration: underline; margin: .5cqw 0; }
.ba-old .o-main p { margin: 0 0 1cqw; line-height: 1.3; }
.ba-old .o-build { display: inline-block; margin: 1cqw 0; padding: 1cqw 2cqw; background: repeating-linear-gradient(45deg, #ffd400 0 1.2cqw, #000 1.2cqw 2.4cqw); }
.ba-old .o-build b { background: #fff; color: #d40000; padding: .3cqw .8cqw; font-family: Impact, sans-serif; letter-spacing: .1em; font-size: 2cqw; }
.ba-old .o-foot { position: absolute; left: 0; right: 0; bottom: 1.2cqw; text-align: center; font-family: "Times New Roman", serif; font-size: 1.25cqw; color: #555; }
.ba-old .o-count { display: inline-block; background: #000; color: #0f0; font-family: "Courier New", monospace; padding: .2cqw .8cqw; letter-spacing: .2em; }

/* — le nouveau site — */
.ba-new { background: #f6efe4; color: #2a1b10; font-family: var(--font); }
.ba-new .n-nav { display: flex; align-items: center; justify-content: space-between; padding: 2.2cqw 4cqw; font-size: 1.35cqw; font-weight: 600; }
.ba-new .n-logo { font-family: "Fraunces", serif; font-style: italic; font-weight: 600; font-size: 2.4cqw; letter-spacing: -.02em; }
.ba-new .n-links { display: flex; gap: 2.6cqw; opacity: .75; }
.ba-new .n-btn { padding: 1cqw 2cqw; border-radius: 99px; background: #2a1b10; color: #f6efe4; font-weight: 700; }
.ba-new .n-hero { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 2cqw; padding: 2cqw 4cqw; }
.ba-new .n-kick { font-size: 1.15cqw; letter-spacing: .2em; text-transform: uppercase; color: #b4622a; font-weight: 700; }
.ba-new h4 { margin: 1.2cqw 0 0; font-family: "Fraunces", serif; font-weight: 600; font-size: 5.2cqw; line-height: .98; letter-spacing: -.035em; }
.ba-new h4 em { font-style: italic; font-weight: 400; color: #b4622a; }
.ba-new .n-p { margin: 1.8cqw 0 0; font-size: 1.45cqw; line-height: 1.5; opacity: .75; max-width: 34ch; }
.ba-new .n-ctas { display: flex; gap: 1.2cqw; margin-top: 2.4cqw; }
.ba-new .n-ctas span { padding: 1.3cqw 2.4cqw; border-radius: 99px; font-size: 1.35cqw; font-weight: 700; background: #b4622a; color: #fff; }
.ba-new .n-ctas span + span { background: transparent; color: #2a1b10; border: 1.5px solid rgba(42, 27, 16, .3); }
.ba-new .n-chips { display: flex; gap: 1cqw; margin-top: 2.6cqw; font-size: 1.15cqw; }
.ba-new .n-chips span { padding: .7cqw 1.3cqw; border-radius: 99px; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .05); }
.ba-new .n-chips span::before { content: "●"; color: #2fa24a; margin-right: .5em; }
.ba-new .n-art { position: relative; aspect-ratio: 1; border-radius: 3cqw; background: radial-gradient(70% 70% at 50% 40%, #f1c48b, #d98f4b 60%, #b5652c); overflow: hidden; }
.ba-new .loaf { position: absolute; left: 14%; top: 22%; width: 72%; height: 56%; border-radius: 50%; background: radial-gradient(60% 55% at 45% 35%, #e9b26a 0%, #c9803c 45%, #94501f 85%, #6e3814 100%); box-shadow: 0 3cqw 4cqw -1cqw rgba(70, 30, 5, .55), inset 0 -1.5cqw 3cqw rgba(60, 25, 5, .4); transform: rotate(-8deg); }
.ba-new .loaf i { position: absolute; top: 18%; width: 9%; height: 64%; border-radius: 50%; background: linear-gradient(90deg, #f6d9a8, #e2b37a); transform: rotate(28deg); opacity: .9; }
.ba-new .loaf i:nth-child(1) { left: 26%; } .ba-new .loaf i:nth-child(2) { left: 45%; } .ba-new .loaf i:nth-child(3) { left: 64%; }
.ba-new .n-tag { position: absolute; right: 6%; bottom: 7%; padding: 1cqw 1.6cqw; border-radius: 1.4cqw; background: #fff; font-size: 1.2cqw; font-weight: 700; box-shadow: 0 1cqw 2cqw rgba(0, 0, 0, .12); }
.ba-new .n-tag small { display: block; font-weight: 500; opacity: .6; }

/* ---------- Offres ---------- */
.offer { padding: clamp(110px, 14vw, 190px) 0 clamp(60px, 8vw, 110px); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: clamp(26px, 2.6vw, 38px); border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: transform .6s var(--ease), box-shadow .6s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(10, 15, 30, .25); }
.plan h3 { margin: 0; font-size: 1.7rem; letter-spacing: -.035em; }
.plan .for { margin: 6px 0 24px; color: var(--muted); }
.plan ul { list-style: none; margin: 0 0 30px; padding: 0; display: grid; gap: 12px; font-size: 15.5px; }
.plan li { display: flex; gap: 12px; align-items: flex-start; line-height: 1.45; }
.plan li::before { content: ""; flex: 0 0 18px; height: 18px; margin-top: 2px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan--featured { background: #0a0f1e; color: #eef2fb; border-color: transparent; }
.plan--featured .for { color: #a3aec8; }
.plan--featured li::before { background-color: var(--orange); }
.plan--featured .btn-ghost { color: #eef2fb; border-color: rgba(255, 255, 255, .25); }
.plan--featured .btn-ghost::before { background: #eef2fb; }
.plan--featured .btn-ghost:hover { color: #0a0f1e; }
.plan .tag { position: absolute; top: 22px; right: 22px; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.plans-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 30px; margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line); }
.plans-price { margin: 0; font-weight: 700; font-size: 1.1rem; }
.included { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.included li { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; }

/* ---------- Méthode ---------- */
.method { padding: clamp(60px, 8vw, 110px) 0 clamp(110px, 14vw, 190px); }
.method-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(40px, 6vw, 110px); }
.method-side { position: sticky; top: 120px; align-self: start; }
.steps { position: relative; margin: 0; padding: 0 0 0 46px; list-style: none; }
.steps::before, .steps::after { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: var(--line); }
.steps::after { background: var(--grad); transform-origin: top; transform: scaleY(var(--fill, 0)); }
.step { position: relative; padding: 0 0 clamp(50px, 7vw, 90px); }
.step:last-child { padding-bottom: 0; }
.step::before { content: ""; position: absolute; left: -43px; top: 6px; width: 18px; height: 18px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line); transition: border-color .5s, background-color .5s; }
.step.on::before { border-color: var(--orange); background: var(--orange); box-shadow: 0 0 0 6px rgba(255, 148, 23, .15); }
.step .n { font-size: clamp(3.2rem, 6vw, 5.6rem); font-weight: 800; line-height: .9; letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1.5px color-mix(in srgb, var(--fg) 30%, transparent); }
.step h3 { margin: 14px 0 10px; font-size: clamp(1.4rem, 2.2vw, 2rem); letter-spacing: -.03em; }
.step p { margin: 0; color: var(--muted); max-width: 48ch; }
.step .get { display: inline-block; margin-top: 16px; padding: 8px 14px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* ---------- Test / audit ---------- */
.audit { padding: clamp(110px, 14vw, 190px) 0; position: relative; overflow: hidden; }
.audit::before { content: ""; position: absolute; width: 900px; height: 900px; right: -300px; top: -200px; background: radial-gradient(circle, rgba(47, 125, 209, .22), transparent 65%); pointer-events: none; }
.audit-grid { position: relative; display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(40px, 6vw, 100px); align-items: start; }
.audit-card { border-radius: 26px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); padding: clamp(18px, 2.4vw, 32px); }
.q { border: 0; margin: 0; padding: 16px 0; display: flex; align-items: center; justify-content: space-between; gap: 18px; border-bottom: 1px solid var(--line); }
.q legend { float: left; max-width: 62%; padding: 0; font-weight: 600; font-size: 15.5px; line-height: 1.4; }
.q legend span { color: var(--orange); font-weight: 800; margin-right: 8px; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; flex: 0 0 auto; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; cursor: pointer; transition: background-color .3s, color .3s; }
.seg input:checked + label { background: var(--fg); color: var(--bg); }
.seg input[value="non"]:checked + label { background: #ff5a6e; color: #fff; }
.seg input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }
.audit-result { display: grid; grid-template-columns: 120px 1fr; gap: 24px; align-items: center; margin-top: 24px; }
.ring { position: relative; width: 120px; height: 120px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bgc { stroke: var(--line); }
.ring .fgc { stroke: url(#ringGrad); stroke-linecap: round; stroke-dasharray: 327; stroke-dashoffset: 327; transition: stroke-dashoffset 1.2s var(--ease); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.audit-msg h3 { margin: 0 0 6px; font-size: 1.3rem; letter-spacing: -.02em; }
.audit-msg p { margin: 0; color: var(--muted); font-size: 15px; }
.audit-msg ul { margin: 10px 0 0; padding-left: 18px; color: var(--muted); font-size: 14.5px; }
.audit-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.audit-none { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; font-size: 14px; }

/* ---------- FAQ ---------- */
.faq { padding: clamp(90px, 12vw, 160px) 0; }
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 6vw, 100px); }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 700; letter-spacing: -.02em; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary i { position: relative; flex: 0 0 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line); transition: transform .5s var(--ease), background-color .3s, border-color .3s; }
.faq summary i::before, .faq summary i::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: currentColor; border-radius: 2px; }
.faq summary i::after { transform: rotate(90deg); transition: transform .5s var(--ease); }
.faq details[open] summary i { background: var(--orange); border-color: var(--orange); color: #160c00; transform: rotate(180deg); }
.faq details[open] summary i::after { transform: rotate(0deg); }
.faq-a { padding: 0 0 26px; color: var(--muted); max-width: 64ch; }
.faq-a p { margin: 0 0 10px; }
.faq details[open] .faq-a { animation: faqIn .6s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- Contact ---------- */
.contact { padding: clamp(100px, 13vw, 180px) 0; position: relative; overflow: hidden; }
.contact::before { content: ""; position: absolute; width: 1100px; height: 1100px; left: -400px; bottom: -600px; background: radial-gradient(circle, rgba(255, 148, 23, .14), transparent 62%); pointer-events: none; }
.contact-grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); }
.contact-direct { display: grid; gap: 14px; margin-top: 40px; }
.contact-direct a { display: inline-flex; align-items: center; gap: 14px; font-size: clamp(1.1rem, 1.7vw, 1.5rem); font-weight: 700; text-decoration: none; letter-spacing: -.02em; width: fit-content; }
.contact-direct a span.ic { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; border: 1.5px solid var(--line); font-size: 18px; }
.socials { margin-top: 34px; padding: 18px 20px; border-radius: 18px; border: 1px dashed var(--line); color: var(--muted); font-size: 15px; }
.socials b { color: var(--fg); }
.socials nav { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.socials nav a { padding: 7px 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; font-weight: 700; font-size: 14px; color: var(--fg); }
.form { display: grid; gap: 14px; padding: clamp(22px, 3vw, 40px); border-radius: 26px; background: rgba(255, 255, 255, .035); border: 1px solid var(--line); }
.form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { position: relative; display: grid; gap: 7px; }
.field label, .fs-legend { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .02em; }
.field input, .field textarea { width: 100%; padding: 14px 16px; border-radius: 14px; border: 1.5px solid var(--line); background: rgba(0, 0, 0, .18); outline: none; transition: border-color .3s, background-color .3s; font-size: 16px; }
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--orange); background: rgba(0, 0, 0, .28); }
.field input[aria-invalid="true"] { border-color: #ff5a6e; }
.chips { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips .fs-legend { width: 100%; margin-bottom: 4px; padding: 0; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label { padding: 10px 16px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14.5px; font-weight: 600; cursor: pointer; transition: background-color .3s, color .3s, border-color .3s; }
.chips input:checked + label { background: var(--orange); border-color: var(--orange); color: #160c00; }
.chips input:focus-visible + label { outline: 2px solid var(--orange); outline-offset: 2px; }
.form-legal { margin: 2px 0 0; font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-legal a { color: var(--fg); }
.form .btn { justify-self: start; }
.form-status { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--orange-hi); min-height: 1.4em; }
.opt { font-weight: 500; opacity: .7; }

/* ---------- Pied de page ---------- */
.footer { position: relative; padding: clamp(80px, 10vw, 130px) 0 28px; border-top: 1px solid var(--line); overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.3fr 2fr; gap: 50px; }
.footer-cta .h3 { font-size: clamp(2rem, 3.6vw, 3.4rem); max-width: 12ch; }
.footer-cta .btn { margin-top: 28px; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.footer-cols h4 { margin: 0 0 16px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-weight: 600; font-size: 15px; }
.footer-cols a { text-decoration: none; }
.footer-word { margin: clamp(50px, 8vw, 100px) 0 0; font-size: min(18.4vw, 17rem); font-weight: 800; letter-spacing: -.075em; line-height: .78; text-align: center; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; user-select: none; white-space: nowrap; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.footer-bottom a { text-decoration: none; }

/* =====================================================================
   Couche immersive : le monde de particules, les quatre mondes des démos,
   les scènes au défilement.
   ===================================================================== */
.world { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; z-index: 0; pointer-events: none; }
main, .footer { position: relative; z-index: 1; }
[tabindex="-1"]:focus { outline: 0; }

/* Ambiances des démos : toute la page prend la couleur du monde traversé */
body[data-tone="fornella"] { --bg: #120c09; --fg: #f4e6cf; --muted: #c9b8a0; --line: rgba(244, 230, 207, .16); --card: rgba(244, 230, 207, .05); --accent: #ff6a2b; }
body[data-tone="nervure"] { --bg: #f2ece2; --fg: #1d1a17; --muted: #5f574e; --line: rgba(29, 26, 23, .16); --card: #fff; --accent: #8f5c2a; }
body[data-tone="petalune"] { --bg: #fbe9e4; --fg: #2b1d22; --muted: #6d585b; --line: rgba(43, 29, 34, .14); --card: #fff; --accent: #a8485b; }
body[data-tone="rivelle"] { --bg: #031820; --fg: #e6f7f9; --muted: #a5c4c9; --line: rgba(230, 247, 249, .16); --card: rgba(230, 247, 249, .05); --accent: #19c3d6; }

/* Portail vers une démo */
.portal { position: fixed; inset: 0; z-index: 960; display: grid; place-items: center; clip-path: circle(0 at var(--px, 50%) var(--py, 50%)); transition: clip-path .78s var(--ease-io); pointer-events: none; }
.portal.is-open { clip-path: circle(150vmax at var(--px, 50%) var(--py, 50%)); }
.portal span { font-size: clamp(3rem, 11vw, 9rem); font-weight: 700; letter-spacing: -.04em; opacity: 0; transform: translateY(24px); transition: opacity .5s .2s, transform .7s .2s var(--ease); }
.portal.is-open span { opacity: 1; transform: none; }

/* Menu ouvert sur une section claire : la barre reste lisible */
.menu-open .nav, .menu-open .nav.is-scrolled { color: #eef2fb; background: transparent; border-bottom-color: transparent; }
.menu-open .burger { border-color: rgba(238, 242, 251, .25); }

/* Mots des titres : espacement rétabli, léger basculement à l'entrée */
.is-split { word-spacing: .09em; }
.is-split .w > span { transform: translateY(108%) rotate(4deg); transform-origin: 0 100%; }

/* ---------- Héros : les indices qui racontent la morphose ---------- */
.hero { height: 410vh; }
.hero-hud { position: absolute; inset: 0; pointer-events: none; }
.hud-chip { position: absolute; left: 70%; top: 76%; transform: translate(-50%, 16px) scale(.94); display: inline-flex; align-items: center; gap: 10px; padding: 11px 18px; border-radius: 999px; background: rgba(10, 15, 30, .78); border: 1px solid rgba(238, 242, 251, .16); color: #eef2fb; font-size: 14.5px; font-weight: 700; white-space: nowrap; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .5s, visibility .5s, transform .7s var(--ease); }
.hud-chip.on { opacity: 1; visibility: visible; pointer-events: auto; transform: translate(-50%, 0) scale(1); }
.hud-chip small { font-size: 11px; font-weight: 600; color: #97a3bf; }
.hud-call i { width: 10px; height: 10px; border-radius: 50%; background: #3ee08f; box-shadow: 0 0 0 0 rgba(62, 224, 143, .6); animation: hudPing 1.6s var(--ease) infinite; }
.hud-book i { width: 18px; height: 18px; border-radius: 50%; background: var(--orange) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23160c00' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; }
.hud-search b { width: 2px; height: 1.1em; margin-left: -6px; background: var(--orange); animation: hudCaret 1s steps(1) infinite; }
.hud-search svg { color: #97a3bf; }
@keyframes hudPing { to { box-shadow: 0 0 0 12px rgba(62, 224, 143, 0); } }
@keyframes hudCaret { 50% { opacity: 0; } }

/* ---------- Exemples : quatre pièces qu'on traverse ---------- */
.demos-sticky { justify-content: stretch; gap: 0; }
.demos-track { flex: 1; min-height: 0; gap: 0; padding: 0; align-items: stretch; }
.demo-intro { flex: 0 0 auto; width: min(66vw, 900px); padding: 0 clamp(30px, 6vw, 90px) 0 var(--gutter); display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.demo-intro .h2 { font-size: clamp(2.6rem, 6vw, 6.2rem); }
.demos-meta { text-align: left; margin: 24px 0 0; font-size: clamp(1rem, 1.25vw, 1.2rem); max-width: 40ch; }
.demos-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--orange); }
.demos-go i { font-style: normal; animation: goNudge 1.6s var(--ease) infinite; }
@keyframes goNudge { 50% { transform: translateX(8px); } }

.demo-card[data-room] {
  width: 100vw; height: auto; border-radius: 0; overflow: visible; background: transparent; box-shadow: none; color: var(--fg); isolation: auto;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(20px, 3vw, 50px); padding: 80px var(--gutter) 40px;
}
.room-text { position: relative; z-index: 2; translate: calc(var(--mid, 0) * 16vw) 0; opacity: .18; transition: opacity .7s var(--ease); will-change: translate; }
.demo-card.is-active .room-text { opacity: 1; }
.room-tag { display: flex; align-items: center; gap: 12px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.room-tag b { color: var(--accent); }
.room-name { margin: 18px 0 18px; font-size: clamp(3.4rem, 8.6vw, 9rem); line-height: .9; letter-spacing: -.05em; font-weight: 800; }
.n-fornella { font-family: "Fraunces", serif; font-style: italic; font-weight: 500; letter-spacing: -.045em; }
.n-nervure { text-transform: uppercase; font-size: clamp(2.9rem, 6.8vw, 7rem); letter-spacing: -.055em; }
.n-petalune { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.025em; font-size: clamp(3.2rem, 7.6vw, 8rem); }
.room-text p { margin: 0; max-width: 40ch; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.2rem); }
.demo-card[data-room] .demo-tags { justify-content: flex-start; max-width: none; margin-top: 22px; }
.demo-card[data-room] .demo-tags li { background: var(--card); border-color: var(--line); color: var(--fg); }
.room-go { display: inline-flex; align-items: center; gap: 12px; margin-top: 30px; padding: 15px 24px; border-radius: 999px; background: var(--fg); color: var(--bg); font-weight: 800; font-size: 15px; transition: gap .4s var(--ease), background-color .4s; }
.demo-card[data-room]:hover .room-go { gap: 20px; background: var(--accent); }
.room-go i { font-style: normal; }
.room-stage { position: relative; display: grid; place-items: center; height: 100%; min-height: 0; perspective: 1400px; }
.phone {
  --ty: 0deg; --tx: 0deg;
  position: relative; height: min(76vh, 720px); aspect-ratio: 393 / 852; padding: 10px; border-radius: 46px; background: #0b0c10;
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .14), 0 50px 90px -30px rgba(0, 0, 0, .65);
  transform: rotateY(calc(var(--ty) + var(--mid, 0) * -34deg)) rotateX(var(--tx)) translate3d(calc(var(--mid, 0) * 9vw), 0, 0);
  will-change: transform;
}
.phone::before { content: ""; position: absolute; left: 50%; top: 20px; z-index: 3; width: 26%; height: 22px; margin-left: -13%; border-radius: 999px; background: #0b0c10; }
.phone-screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; container-type: inline-size; background: #111; transform: translateZ(0); }
.phone-screen iframe { position: absolute; left: 0; top: 0; z-index: 2; width: 393px; height: 852px; border: 0; transform: scale(var(--fs, 1)); transform-origin: 0 0; pointer-events: none; opacity: 0; transition: opacity .8s; }
.phone-screen.is-live iframe { opacity: 1; }
.phone-screen .demo-poster { position: absolute; inset: 0; height: auto; }
.demo-card:hover .demo-poster { transform: none; }
/* affiches : tailles relatives au téléphone */
.phone-screen .p-fornella .t { font-size: 22cqw; top: 36%; }
.phone-screen .p-fornella .s { font-size: 3.2cqw; top: 50%; letter-spacing: .3em; }
.phone-screen .p-nervure .t { left: 8%; top: 8%; font-size: 8.4cqw; line-height: 1; }
.phone-screen .p-nervure .cab { left: 8%; top: 22%; width: 42%; height: 34%; }
.phone-screen .p-nervure .dim { left: 8%; top: 58%; width: 42%; font-size: 3cqw; }
.phone-screen .p-nervure .wood { inset: 52% 0 0 0; clip-path: none; }
.phone-screen .p-petalune svg { width: 78%; top: 36%; }
.phone-screen .p-petalune .t { top: 62%; font-size: 21cqw; }
.phone-screen .p-rivelle .t { font-size: 22cqw; }
.demo-card--you { width: 100vw; height: auto; padding: 80px clamp(30px, 12vw, 200px) 40px; background: transparent; border: 0; border-radius: 0; color: var(--fg); justify-content: center; gap: 26px; }
.demo-card--you .h1 { font-size: clamp(2.8rem, 6.6vw, 7rem); max-width: 16ch; }
.demo-card--you p { font-size: clamp(1rem, 1.3vw, 1.25rem); max-width: 44ch; }
.demos-foot { position: absolute; left: var(--gutter); right: var(--gutter); bottom: 20px; z-index: 3; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.demos-note { padding: 0; font-size: 12.5px; }
.demos-count { display: inline-flex; align-items: center; gap: 12px; margin: 0; white-space: nowrap; }
.demos-bar { display: inline-block; width: 110px; height: 2px; border-radius: 2px; background: var(--line); overflow: hidden; }
.demos-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: left; }

/* ---------- Qui sommes-nous ---------- */
.member { --ty: 0deg; --tx: 0deg; perspective: 900px; }
.member .avatar { transform: rotateY(var(--ty)) rotateX(var(--tx)); transition: transform .5s var(--ease); clip-path: inset(100% 0 0 0 round 26px); }
.member.is-in .avatar { clip-path: inset(0 0 0 0 round 26px); transition: transform .5s var(--ease), clip-path 1.4s var(--ease) var(--d, 0s); }
.js .member[data-reveal] { transform: none; }
.member .mono { transition: transform 1.4s var(--ease); transform: scale(1.3); }
.member.is-in .mono { transform: none; }

/* ---------- Avant / après ---------- */
.ba .wrap { perspective: 1600px; }
.ba-frame { --enter: 1; transform: rotateX(calc((1 - var(--enter)) * 16deg)) scale(calc(.92 + var(--enter) * .08)); transform-origin: 50% 100%; transition: opacity 1s var(--ease); }
.js .ba-frame[data-reveal], .js .ba-frame[data-reveal].is-in { transform: rotateX(calc((1 - var(--enter)) * 16deg)) scale(calc(.92 + var(--enter) * .08)); }
.ba-stage { cursor: ew-resize; }
.ba-range { pointer-events: none; }
.ba-handle span { translate: var(--kx, 0px) 0; transition: scale .4s var(--ease); }
.ba-stage.is-drag .ba-handle span { scale: 1.12; }
.ba-handle em { position: absolute; top: calc(50% + 40px); left: 0; translate: calc(-50% + var(--kx, 0px)) 0; padding: 4px 10px; border-radius: 999px; background: rgba(0, 0, 0, .7); color: #fff; font-style: normal; font-size: 12px; font-weight: 700; white-space: nowrap; transition: opacity .4s; }
.ba-stage.is-touched .ba-handle em { opacity: 0; }
.ba-labels b { transition: opacity .35s; }
.ba-stage.at-new .ba-labels b:first-child, .ba-stage.at-old .ba-labels b:last-child { opacity: 0; }
/* l'ancien site a le grain d'un vieil écran */
.ba-old::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .07) 0 1px, transparent 1px 3px); }

/* ---------- Offres : le paquet qui s'ouvre, le reflet qui suit la souris ---------- */
.plans { --fan: 1; }
.plan { --ty: 0deg; --tx: 0deg; --sx: 50%; --sy: 0%; }
.js .plans .plan[data-reveal], .js .plans .plan[data-reveal].is-in {
  transition: opacity .8s var(--ease), translate .6s var(--ease), box-shadow .6s var(--ease);
  transform: perspective(1200px) translate3d(calc((1 - var(--fan)) * var(--fx, 0%)), calc((1 - var(--fan)) * 40px), 0) rotate(calc((1 - var(--fan)) * var(--fr, 0deg))) rotateY(var(--ty)) rotateX(var(--tx));
}
.plan:nth-child(1) { --fx: 104%; --fr: -7deg; }
.plan:nth-child(3) { --fx: -104%; --fr: 7deg; }
.plan--featured { z-index: 2; }
.plan:hover { translate: 0 -6px; transform: none; }
.plan::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(320px circle at var(--sx) var(--sy), rgba(255, 148, 23, .13), transparent 70%); opacity: 0; transition: opacity .4s; }
.plan:hover::after { opacity: 1; }
.plan .tag { background: var(--orange); color: #160c00; }

/* ---------- Méthode : un écran où le chantier avance ---------- */
.method-left { position: sticky; top: 100px; align-self: start; display: grid; gap: 34px; }
.method-side { position: static; }
.mock { --m-ink: #0a0f1e; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: 0 30px 70px -40px rgba(10, 15, 30, .45); color: var(--m-ink); }
.mock-bar { display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 12px; background: #eceae4; }
.mock-bar > i { width: 9px; height: 9px; border-radius: 50%; background: #c9c5bc; }
.mock-url { display: inline-flex; align-items: center; gap: 6px; margin-left: 8px; padding: 4px 10px; border-radius: 7px; background: #fff; font-size: 11.5px; font-weight: 600; color: #545c72; opacity: .35; transition: opacity .5s; min-width: 0; overflow: hidden; white-space: nowrap; }
.mock[data-s="3"] .mock-url { opacity: 1; }
.mock-lock { width: 9px; height: 8px; border-radius: 2px; background: #2fa24a; flex: none; }
.mock-state { position: relative; margin-left: auto; height: 20px; min-width: 96px; font-size: 11px; font-weight: 800; text-align: right; }
.mock-state b { position: absolute; right: 0; top: 0; line-height: 20px; white-space: nowrap; opacity: 0; transform: translateY(6px); transition: opacity .4s, transform .5s var(--ease); color: #545c72; }
.mock[data-s="0"] .st0, .mock[data-s="1"] .st1, .mock[data-s="2"] .st2, .mock[data-s="3"] .st3 { opacity: 1; transform: none; }
.mock[data-s="3"] .st3 { color: #1d8a3a; }
.mock-body { position: relative; height: clamp(200px, 25vh, 260px); overflow: hidden; }
.mock-chat { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 18px; font-size: 13.5px; font-weight: 600; transition: opacity .5s, transform .7s var(--ease); }
.mock-chat span { max-width: 76%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; background: #eceae4; }
.mock-chat span:nth-child(2) { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: var(--orange); color: #160c00; }
.mock[data-s]:not([data-s="0"]) .mock-chat { opacity: 0; transform: translateY(-20px); }
.mock-site { position: absolute; inset: 0; padding: 14px 16px; opacity: 0; transform: translateY(20px); transition: opacity .6s, transform .8s var(--ease); }
.mock[data-s]:not([data-s="0"]) .mock-site { opacity: 1; transform: none; }
.mock-site b, .mock-site i, .mock-site u { display: block; border-radius: 4px; background: #d8d6cf; transition: background-color .7s, border-radius .7s; text-decoration: none; }
.mk-nav { display: flex; align-items: center; gap: 8px; }
.mk-nav b { width: 54px; height: 11px; margin-right: auto; }
.mk-nav i { width: 28px; height: 6px; }
.mk-nav u { width: 44px; height: 16px; border-radius: 99px; }
.mk-hero { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; margin-top: 14px; }
.mk-hero b { height: 13px; margin-bottom: 6px; } .mk-hero b + b { width: 74%; }
.mk-hero i { width: 86%; height: 6px; margin-top: 10px; }
.mk-hero u { width: 72px; height: 20px; margin-top: 12px; border-radius: 99px; }
.mk-img { height: 76px; border-radius: 10px; background: #d8d6cf; transition: background .7s; }
.mk-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.mk-cards i { height: 34px; border-radius: 8px; }
/* étape 3 : la maquette prend ses couleurs ; étape 4 : le site est en ligne */
.mock[data-s="2"] .mk-nav b, .mock[data-s="3"] .mk-nav b, .mock[data-s="2"] .mk-hero b, .mock[data-s="3"] .mk-hero b { background: var(--m-ink); }
.mock[data-s="2"] .mk-nav u, .mock[data-s="3"] .mk-nav u, .mock[data-s="2"] .mk-hero u, .mock[data-s="3"] .mk-hero u { background: var(--orange); }
.mock[data-s="2"] .mk-img, .mock[data-s="3"] .mk-img { background: linear-gradient(135deg, #2f7dd1, #0a0f1e); }
.mock[data-s="3"] .mk-cards i { background: #f3e2c9; }
.mock-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: #eceae4; }
.mock-progress i { display: block; height: 100%; background: var(--orange); transform: scaleX(.06); transform-origin: left; transition: transform 1s var(--ease); }
.mock[data-s="1"] .mock-progress i { transform: scaleX(.34); } .mock[data-s="2"] .mock-progress i { transform: scaleX(.72); } .mock[data-s="3"] .mock-progress i { transform: scaleX(1); background: #2fa24a; }
.step { transition: opacity .5s; }
.step:not(.now) { opacity: .5; }
.step .n { transition: color .6s, -webkit-text-stroke-color .6s; }
.step.now .n { color: var(--accent); -webkit-text-stroke-color: transparent; }
.steps::after { background: var(--orange); }

/* ---------- Le test du pouce : une carte à la fois ---------- */
.audit-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; margin-bottom: 14px; }
.audit-pos { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.audit-back, .audit-redo { background: none; border: 0; padding: 4px 0; color: var(--muted); cursor: pointer; font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.audit-redo { display: none; }
.audit-card.is-done .audit-redo { display: inline-block; }
.audit-card.is-done .audit-top, .audit-card.is-done .audit-form { display: none; }
.audit-form.is-stack { position: relative; height: 262px; }
.is-stack .q { position: absolute; inset: 0; flex-direction: column; align-items: stretch; justify-content: space-between; gap: 16px; padding: clamp(20px, 2.4vw, 30px); border-radius: 20px; border: 1px solid var(--line); background: #10172c; touch-action: pan-y; user-select: none; -webkit-user-select: none; opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .4s, visibility .4s; }
.is-stack .q.is-current { opacity: 1; visibility: visible; z-index: 2; cursor: grab; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7); }
.is-stack .q.is-next { opacity: .5; visibility: visible; z-index: 1; transform: translateY(12px) scale(.96); }
.is-stack .q.is-flying { visibility: visible; z-index: 3; transition: transform .46s var(--ease), opacity .46s; }
.is-stack .q.is-drag { transition: none; cursor: grabbing; }
.is-stack .q legend { float: left; width: 100%; max-width: none; font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.22; }
.is-stack .q legend span { display: block; margin-bottom: 6px; font-size: 13px; }
.is-stack .seg { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 0; background: none; border: 0; }
.is-stack .seg label { grid-row: 1; padding: 15px 10px; text-align: center; border: 1.5px solid var(--line); font-size: 15.5px; transition: background-color .2s, color .2s, border-color .2s, transform .3s var(--ease); }
.is-stack .seg label[for$="o"] { grid-column: 2; background: color-mix(in srgb, #2fa24a calc(var(--yes, 0) * 100%), transparent); }
.is-stack .seg label[for$="n"] { grid-column: 1; background: color-mix(in srgb, #ff5a6e calc(var(--no, 0) * 100%), transparent); }
.is-stack .seg label:hover { border-color: var(--fg); }
.ring .fgc { stroke: var(--orange); }
.audit-card.is-done .audit-result { margin-top: 0; animation: faqIn .8s var(--ease); }

/* ---------- Aperçu en direct ---------- */
.live { --lv-bg: #0a0f1e; --lv-fg: #eef2fb; --lv-ac: #ff9417; --lv-font: var(--font); display: flex; align-items: center; gap: 22px; margin-top: 40px; padding: 16px; border-radius: 22px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); }
.lv-phone { flex: 0 0 auto; width: 136px; padding: 5px; border-radius: 24px; background: #0b0c10; box-shadow: 0 0 0 1px rgba(255, 255, 255, .14), 0 24px 50px -24px rgba(0, 0, 0, .7); }
.live.is-pop .lv-phone { animation: lvPop .7s var(--ease); }
@keyframes lvPop { 40% { transform: translateY(-6px) rotate(-2deg) scale(1.03); } }
.lv-screen { position: relative; aspect-ratio: 9 / 18; border-radius: 19px; overflow: hidden; background: var(--lv-bg); color: var(--lv-fg); transition: background-color .7s, color .7s; display: flex; flex-direction: column; }
.lv-nav { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 9px 6px; }
.lv-logo { font-family: var(--lv-font); font-size: 8px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lv-nav i { flex: none; width: 12px; height: 7px; border-block: 1.5px solid currentColor; }
.lv-hero { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 6px; padding: 0 9px; min-height: 0; }
.lv-kick { font-size: 6px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--lv-ac); }
.lv-name { font-family: var(--lv-font); font-size: 15px; line-height: 1.02; letter-spacing: -.03em; font-weight: 700; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lv-line { font-size: 7.5px; line-height: 1.3; opacity: .75; }
.lv-cta { margin-top: 2px; padding: 5px 8px; border-radius: 99px; background: var(--lv-ac); color: var(--lv-bg); font-size: 7px; font-weight: 800; transition: background-color .7s; }
.lv-blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 0 9px 10px; }
.lv-blocks i { height: 30px; border-radius: 6px; background: color-mix(in srgb, var(--lv-ac) 26%, transparent); transition: background-color .7s; }
.lv-note { display: grid; gap: 6px; font-size: 14px; line-height: 1.45; color: var(--muted); }
.lv-note b { font-size: 1.1rem; color: var(--fg); letter-spacing: -.02em; }
.lv-on { display: none; } .live.has-name .lv-on { display: block; } .live.has-name .lv-idle { display: none; }
.live-slot:empty { display: none; }
.field-err { font-size: 13px; font-weight: 600; color: #ff8a98; }
.field input, .field textarea { transition: border-color .3s, background-color .3s, box-shadow .3s; }
.field input:focus, .field textarea:focus { box-shadow: 0 0 0 4px rgba(255, 148, 23, .14); }

/* ---------- Pied de page : le nom aux couleurs de la marque, qui se lève ---------- */
.footer-word { --rise: 0; background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--fg); overflow: hidden; padding-bottom: .1em; }
.footer-word b { color: var(--orange); font-weight: 800; }
.footer-word span span, .footer-word b span { display: inline-block; transform: translateY(calc((1 - clamp(0, var(--rise) * 1.9 - var(--i) * .07, 1)) * 105%)); }

/* ---------- Bouton d'appel de la barre de navigation ---------- */
.nav-tel { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 14px; border-radius: 999px; border: 1.5px solid var(--line); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; transition: border-color .3s, color .3s; }
.nav-tel:hover { border-color: var(--orange); color: var(--orange); }
.nav-tel svg { width: 16px; height: 16px; flex: none; }
/* moins de place : les boutons gardent leur icône, et le son cède sa place à l'appel et à l'e-mail */
@media (max-width: 1400px) {
  .nav-tel { width: 42px; padding: 0; justify-content: center; }
  .nav-tel-num { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (max-width: 1180px) { .nav .sound { display: none; } }
@media (max-width: 900px) { .nav-tel { width: 46px; height: 46px; } .nav-tel svg { width: 18px; height: 18px; } .nav .sound { display: inline-flex; } }
@media (max-width: 480px) { .nav .sound { display: none; } .nav-right { gap: 8px; } }
@media (max-width: 360px) { .nav-tel, .burger { width: 42px; height: 42px; } .nav-right { gap: 6px; } .burger span { left: 11px; right: 11px; } .burger span:nth-child(1) { top: 16px; } .burger span:nth-child(2) { top: 24px; } .burger[aria-expanded="true"] span:nth-child(1), .burger[aria-expanded="true"] span:nth-child(2) { top: 20px; } }

/* ---------- Bouton du son ---------- */
.sound { display: inline-flex; align-items: center; justify-content: center; gap: 2.5px; width: 42px; height: 42px; padding: 0; border-radius: 50%; border: 1.5px solid var(--line); background: transparent; cursor: pointer; transition: border-color .3s; }
.sound:hover { border-color: var(--fg); }
.sound i { display: block; width: 2.5px; height: 14px; border-radius: 2px; background: currentColor; transform: scaleY(.22); transition: transform .4s var(--ease); }
.sound.is-on { border-color: var(--orange); color: var(--orange); }
.sound.is-on i { animation: soundBar 1.1s ease-in-out infinite alternate; }
.sound.is-on i:nth-child(2) { animation-delay: -.4s; } .sound.is-on i:nth-child(3) { animation-delay: -.8s; } .sound.is-on i:nth-child(4) { animation-delay: -.2s; }
@keyframes soundBar { from { transform: scaleY(.3); } to { transform: scaleY(1); } }
@media (max-width: 900px) { .sound { width: 46px; height: 46px; } }

/* ---------- Badge de l'hébergeur (coin bas droit) : il ne recouvre rien ---------- */
html:has(#nl-badge-frame) .demos-foot { padding-right: 190px; }
html:has(#nl-badge-frame) .footer { padding-bottom: 76px; }
html:has(#nl-badge-frame) .wa-fab { bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }
@media (max-width: 900px) { html:has(#nl-badge-frame) .demos-foot { padding-right: var(--gutter); } }

/* ---------- Pour les démos affichées dans le téléphone ---------- */
.is-embed .cursor, .is-embed .curtain { display: none !important; }

/* ---------- Placeholders à compléter ---------- */
.todo { background: rgba(255, 214, 10, .22); color: inherit; border-radius: 4px; padding: 0 4px; box-shadow: inset 0 -2px 0 rgba(255, 214, 10, .7); }

/* ---------- Pages légales ---------- */
.legal-hero { padding: calc(var(--nav-h) + clamp(60px, 9vw, 120px)) 0 clamp(40px, 6vw, 70px); border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.legal-hero::before { content: ""; position: absolute; width: 800px; height: 800px; right: -250px; top: -350px; background: radial-gradient(circle, rgba(47, 125, 209, .25), transparent 65%); }
.legal-hero .wrap { position: relative; }
.legal-hero p.meta { margin: 24px 0 0; color: var(--muted); font-size: 14.5px; }
.legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: clamp(30px, 6vw, 90px); padding: clamp(50px, 7vw, 90px) 0 clamp(80px, 10vw, 130px); }
.toc { position: sticky; top: 100px; align-self: start; font-size: 14px; }
.toc b { display: block; margin-bottom: 12px; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; counter-reset: t; }
.toc li { counter-increment: t; }
.toc a { display: block; padding: 6px 0 6px 14px; border-left: 2px solid var(--line); text-decoration: none; color: var(--muted); transition: color .3s, border-color .3s; }
.toc a:hover, .toc a.on { color: var(--fg); border-color: var(--orange); }
.prose { max-width: 760px; font-size: 16.5px; }
.prose h2 { margin: 56px 0 14px; font-size: clamp(1.4rem, 2.2vw, 1.8rem); letter-spacing: -.03em; line-height: 1.2; scroll-margin-top: 100px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 28px 0 8px; font-size: 1.1rem; letter-spacing: -.01em; }
.prose p, .prose li { color: color-mix(in srgb, var(--fg) 82%, transparent); }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--blue-hi); text-underline-offset: 3px; }
.prose dl { display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; margin: 18px 0; padding: 22px 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.prose dt { font-weight: 700; color: var(--muted); font-size: 14.5px; }
.prose dd { margin: 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.callout { margin: 22px 0; padding: 18px 22px; border-radius: 16px; border: 1px solid rgba(255, 148, 23, .35); background: rgba(255, 148, 23, .07); font-size: 15px; }
.callout b { color: var(--orange-hi); }

/* ---------- 404 ---------- */
.notfound { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: 120px var(--gutter) 60px; position: relative; overflow: hidden; }
.notfound .big { font-size: clamp(8rem, 30vw, 24rem); font-weight: 800; letter-spacing: -.08em; line-height: .8; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  /* les 4 étapes du héros deviennent une fine jauge sous la barre de navigation */
  .hero-steps { left: var(--gutter); right: var(--gutter); top: calc(var(--nav-h) + 2px); transform: none; display: flex; gap: 6px; }
  .hero-steps li { flex: 1; font-size: 0; gap: 0; }
  .hero-steps li::after, .hero-steps li.on::after { width: 100%; height: 3px; }
}
@media (max-width: 1080px) {
  .plans { grid-template-columns: 1fr; max-width: 640px; }
  /* les cartes s'empilent en défilant, comme un paquet qu'on referme */
  .plan { position: sticky; top: 76px; box-shadow: 0 -18px 40px -26px rgba(10, 15, 30, .35); }
  .plan:nth-child(2) { top: 92px; }
  .plan:nth-child(3) { top: 108px; }
  .footer-top { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav .btn { display: none; }
  .burger { display: inline-block; }
  .method-grid, .audit-grid, .faq-grid, .contact-grid, .team-grid { grid-template-columns: 1fr; }
  .member:nth-child(2) { margin-top: 28px; }
  .method-side { position: static; }
  .legal-layout { grid-template-columns: 1fr; }
  .toc { position: static; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); }
  /* exemples : on descend de monde en monde, le téléphone au-dessus du texte */
  .demos { height: auto !important; padding: 0; }
  .demos-sticky { position: relative; height: auto; overflow: visible; display: block; }
  .demos-track { flex-direction: column; width: auto; transform: none !important; }
  .demo-intro { width: auto; padding: 110px var(--gutter) 30px; }
  .demo-card[data-room] { display: flex; flex-direction: column; justify-content: center; gap: 22px; width: 100%; min-height: 100vh; min-height: 100svh; padding: 76px var(--gutter) 44px; }
  .room-stage { order: -1; flex: 0 0 auto; height: auto; }
  .phone { height: clamp(300px, 46vh, 430px); padding: 6px; border-radius: 30px; transform: rotateY(calc(var(--mid, 0) * -26deg)) rotateX(calc(var(--mid, 0) * 10deg)) translate3d(0, calc(var(--mid, 0) * -36px), 0); }
  .phone::before { top: 11px; height: 12px; }
  .phone-screen { border-radius: 25px; }
  .room-text { translate: 0 0; }
  .room-name { margin: 12px 0 12px; font-size: clamp(3rem, 15.5vw, 6.4rem); }
  .n-nervure { font-size: clamp(2.5rem, 12.4vw, 5.4rem); }
  .n-petalune { font-size: clamp(2.9rem, 14vw, 6rem); }
  .room-go { margin-top: 22px; }
  .demo-card[data-room] .demo-tags { margin-top: 16px; }
  .demo-card--you { width: 100%; min-height: 80vh; padding: 60px var(--gutter); }
  .demos-foot { position: static; display: block; padding: 0 var(--gutter) 40px; }
  .demos-count { display: none; }
  /* méthode : l'écran du chantier reste en haut pendant qu'on lit les étapes */
  .method-left { display: contents; }
  .mock { position: sticky; top: 10px; z-index: 3; }
  .mock-body { height: 132px; }
  .mock-chat { padding: 10px 14px; gap: 5px; font-size: 12px; }
  .mock-chat span { padding: 6px 10px; }
  .mock-site { padding: 10px 12px; }
  .mk-hero { margin-top: 8px; gap: 10px; }
  .mk-img { height: 62px; }
  .mk-cards { display: none; }
  .mock-state { min-width: 84px; }
  /* aperçu en direct : entre les champs, là où le doigt se trouve */
  .live { margin: 2px 0; padding: 12px; gap: 14px; }
  .lv-phone { width: 104px; }
  .lv-name { font-size: 12px; }
  .lv-note { font-size: 13px; }
}
@media (max-width: 820px) {
  .hero-panel { width: auto; right: var(--gutter); bottom: clamp(32px, 5vh, 60px); }
  .hero-scroll { display: none; }
  .hero-panel .lead { font-size: 1rem; }
  .hud-chip { left: 50%; top: 39%; font-size: 13.5px; padding: 9px 15px; }
  .hero-fallback { right: 50%; top: 26%; width: 46vw; transform: translate(50%, -50%); }
  .ba-stage { aspect-ratio: 4 / 4.2; }
  .ba-old { font-size: 3cqw; }
  .ba-old .o-title { font-size: 7cqw; } .ba-old .o-marq { font-size: 2.8cqw; } .ba-old .o-menu { font-size: 2.6cqw; } .ba-old .o-foot { font-size: 2.2cqw; } .ba-old .o-build b { font-size: 3.4cqw; }
  .ba-old .o-cols { grid-template-columns: 34% 1fr; }
  .ba-new .n-links { display: none; }
  .ba-new .n-nav { font-size: 2.6cqw; padding: 4cqw 5cqw; } .ba-new .n-logo { font-size: 4.4cqw; } .ba-new .n-btn { padding: 1.8cqw 3.4cqw; }
  .ba-new .n-hero { grid-template-columns: 1fr; padding: 2cqw 5cqw; }
  .ba-new .n-kick { font-size: 2.3cqw; } .ba-new h4 { font-size: 9cqw; } .ba-new .n-p { font-size: 2.8cqw; }
  .ba-new .n-ctas span { font-size: 2.7cqw; padding: 2.4cqw 4cqw; } .ba-new .n-chips { font-size: 2.3cqw; }
  .ba-new .n-art { position: absolute; right: 5cqw; bottom: 13cqw; width: 34cqw; }
  .ba-new .n-tag { font-size: 2.2cqw; }
  .form .row2 { grid-template-columns: 1fr; }
  .q { flex-direction: column; align-items: flex-start; gap: 10px; }
  .q legend { max-width: none; float: none; }
  .audit-result { grid-template-columns: 1fr; justify-items: start; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .hero-cta .btn, .team-cta .btn { width: 100%; }
  .hero-note { display: none; }
  .wa-fab { padding: 0; width: 56px; justify-content: center; }
  .wa-fab span { display: none; }
  .footer-cols { grid-template-columns: 1fr; }
  .prose dl { grid-template-columns: 1fr; gap: 2px 0; }
  .prose dd { margin-bottom: 10px; }
}

/* ---------- Animations réduites (préférence système respectée) ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .hero, .manifesto { height: auto; }
  .hero-sticky { position: relative; height: auto; min-height: 100vh; padding: calc(var(--nav-h) + 30vh) 0 80px; }
  .hero-panel { position: relative; left: auto; bottom: auto; width: auto; max-width: 780px; margin: 0 var(--gutter) 70px; opacity: 1 !important; visibility: visible !important; transform: none !important; }
  .world { position: absolute; }
  .hero-steps, .hero-scroll, .hero-hud { display: none; }
  .demos { height: auto !important; }
  .demos-sticky { position: relative; height: auto; overflow: visible; display: block; }
  .demos-track { flex-direction: column; width: auto; transform: none !important; }
  .demo-intro, .demo-card--you { width: auto; padding-block: 60px; }
  .demo-card[data-room] { width: 100%; padding-block: 40px; }
  .room-text { opacity: 1 !important; translate: none; }
  .phone { transform: none; }
  .demos-foot { position: static; padding-bottom: 40px; }
  .member .avatar, .member.is-in .avatar { clip-path: none; }
  .member .mono { transform: none; }
  .footer-word span span, .footer-word b span { transform: none; }
  .demos-go i { animation: none; }
  .manifesto-sticky { position: relative; }
  .manifesto-text .m { opacity: 1; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .is-split .w > span { transform: none; }
  .grain { display: none; }
}
