/* ============================================================
   AUDREY homepage — layout, glass, sections, motion-ready states
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  position: relative;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
ul { list-style: none; padding: 0; }

:focus-visible { outline: none; box-shadow: var(--focus); border-radius: 6px; }
[hidden] { display: none !important; }

.visually-hidden, .skip-link {
  position: absolute; width: 1px; height: 1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; top: 12px; left: 12px; width: auto; height: auto;
  clip: auto; z-index: 1000; background: var(--coral-deep); color: #fff;
  padding: 10px 16px; border-radius: 10px;
}

/* ---------------- Aurora background layers ---------------- */
#aurora {
  position: fixed; inset: 0; width: 100vw; height: 100svh;
  z-index: -2; display: block; pointer-events: none;
}
#aurora-fallback {
  position: fixed; inset: 0; z-index: -3; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 18% 12%, var(--fb-1), transparent 60%),
    radial-gradient(55vw 50vh at 82% 22%, var(--fb-3), transparent 62%),
    radial-gradient(60vw 60vh at 70% 78%, var(--fb-2), transparent 60%),
    radial-gradient(50vw 50vh at 22% 82%, var(--fb-4), transparent 60%),
    var(--bg);
}
/* show fallback when no webgl / reduced motion / static tier */
.tier-static #aurora { display: none; }
.tier-static #aurora-fallback { z-index: -2; }
.tier-full #aurora-fallback, .tier-calm #aurora-fallback { opacity: 0; }

#grain {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0.05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@media (prefers-reduced-motion: reduce) { #grain { display: none; } }

/* ---------------- Reusable atoms ---------------- */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
section[id] { scroll-margin-top: 90px; }

.kicker {
  font-family: var(--mono); font-size: var(--fs-mono);
  text-transform: uppercase; letter-spacing: 0.18em;
  color: var(--coral-deep); font-weight: 500; margin-bottom: 1.1rem;
}
.lead { font-size: var(--fs-lead); line-height: 1.5; color: var(--ink-soft); max-width: 56ch; font-weight: 400; }
.mono { font-family: var(--mono); font-size: var(--fs-mono); letter-spacing: 0.04em; }
.illus { color: var(--ink-muted); font-style: normal; }

.section-title {
  font-size: var(--fs-title); font-weight: 760; line-height: 1.04;
  letter-spacing: -0.03em; color: var(--ink); max-width: 18ch; margin-bottom: 1.4rem;
  font-variation-settings: "wght" 760;
}

.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: #16a34a; position: relative;
}
/* Ping ring on a pseudo-element via transform+opacity (compositor-only).
   The old box-shadow-spread animation repainted every frame and flashed
   white on backdrop-filtered / fixed surfaces (nav, sms cards, footer). */
.dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: rgba(22, 163, 74, 0.4);
  animation: pulse 2.4s var(--ease-out) infinite;
}
@keyframes pulse {
  0% { transform: scale(1); opacity: 1; }
  70%, 100% { transform: scale(2.75); opacity: 0; }
}

/* ---------------- Glass ---------------- */
.glass {
  background: var(--glass-flat);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow: var(--glass-shadow), var(--glass-inset);
}
html.is-frosted .glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.72em 1.3em; min-height: 44px; border-radius: var(--radius-pill);
  font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), background 0.3s, color 0.3s;
  white-space: nowrap;
}
.btn:hover, [data-magnetic] { will-change: transform; }
.btn--lg { padding: 0.92em 1.6em; font-size: 1.05rem; }
.btn--primary {
  background: var(--coral-deep); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(194, 65, 12, 0.55);
}
/* hover gated so the lift/recolour doesn't stick after a tap on iOS (anchors don't navigate — they smooth-scroll) */
@media (hover: hover) { .btn--primary:hover { background: #a8380a; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(194, 65, 12, 0.6); } }
.btn--ghost {
  background: rgba(255, 255, 255, 0.5); color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
html.is-frosted .btn--ghost { -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
@media (hover: hover) { .btn--ghost:hover { transform: translateY(-2px); border-color: var(--coral-deep); color: var(--coral-deep); } }

/* ---------------- Chips & bubbles ---------------- */
.chip {
  display: inline-flex; align-items: center; gap: 0.4em;
  padding: 0.4em 0.85em; border-radius: var(--radius-pill);
  font-size: 0.82rem; font-weight: 500; line-height: 1;
}
.chip--ok { background: rgba(22, 163, 74, 0.12); color: #15803d; }
.chip--mail { background: rgba(194, 65, 12, 0.1); color: var(--coral-deep); }

.bubble {
  display: inline-block; max-width: 88%; padding: 0.7em 1em;
  border-radius: 18px; font-size: 0.96rem; line-height: 1.42;
  box-shadow: 0 2px 10px -4px rgba(124, 45, 18, 0.18);
}
.bubble--in {
  background: #fff; color: var(--ink); border-bottom-left-radius: 6px;
  align-self: flex-start; border: 1px solid var(--hairline);
}
.bubble--out {
  background: linear-gradient(135deg, #C2410C, #9A3412); color: #fff;
  border-bottom-right-radius: 6px; align-self: flex-end;
}
.bubble--typing {
  align-self: flex-start; background: #fff; border: 1px solid var(--hairline);
  display: inline-flex; gap: 5px; padding: 0.85em 1em; border-bottom-left-radius: 6px;
}
.bubble--typing i {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ink-muted);
  animation: typing 1.3s ease-in-out infinite;
}
.bubble--typing i:nth-child(2) { animation-delay: 0.18s; }
.bubble--typing i:nth-child(3) { animation-delay: 0.36s; }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ---------------- SMS card ---------------- */
.sms {
  width: min(380px, 100%); border-radius: var(--radius-lg);
  background: var(--glass-flat); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow), var(--glass-inset);
  padding: 1.1rem 1.1rem 1.3rem; display: flex; flex-direction: column;
}
html.is-frosted .sms { background: rgba(255, 253, 250, 0.7); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.sms__head { display: flex; align-items: center; gap: 0.7rem; padding-bottom: 0.9rem; border-bottom: 1px solid var(--hairline); margin-bottom: 1rem; }
.sms__avatar {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--coral), #EA580C); color: #fff;
  font-weight: 700; font-size: 1.2rem; box-shadow: 0 4px 12px -4px rgba(249, 115, 22, 0.6);
}
.sms__id { display: flex; flex-direction: column; line-height: 1.2; }
.sms__name { font-size: 1.02rem; font-weight: 650; }
.sms__sub { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.78rem; color: var(--ink-muted); }
.sms__body { display: flex; flex-direction: column; gap: 0.6rem; min-height: 230px; }
.sms--persona .sms__body { min-height: 150px; }
.sms__meta { font-family: var(--mono); font-size: 0.68rem; color: var(--ink-muted); align-self: flex-end; margin-top: -0.2rem; }
.sms .chip--ok { align-self: flex-end; margin-top: 0.3rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; padding: 16px var(--gutter); transition: padding 0.4s var(--ease-out), transform 0.45s var(--ease-out); isolation: isolate; }
.nav__inner {
  max-width: var(--maxw); margin-inline: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 0.55rem 0.7rem 0.55rem 1rem; border-radius: var(--radius-pill);
  background: var(--glass-flat); border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow); transition: box-shadow 0.4s, background 0.4s, padding 0.4s var(--ease-out);
}
html.is-frosted .nav__inner { background: var(--glass); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
/* Scrolled: the pill condenses and turns SOLID (no translucent glass riding
   over the text underneath). */
.nav.is-scrolled { padding-top: 9px; padding-bottom: 9px; }
.nav.is-scrolled .nav__logo { height: 26px; }
.nav.is-scrolled .nav__inner {
  padding: 0.4rem 0.6rem 0.4rem 0.9rem;
  background: #FDFAF6; border-color: var(--hairline-strong);
  box-shadow: 0 12px 34px -18px rgba(124, 45, 18, 0.30);
}
html.is-frosted .nav.is-scrolled .nav__inner { -webkit-backdrop-filter: none; backdrop-filter: none; background: #FDFAF6; }
/* Auto-hide while reading: JS adds .is-hidden on scroll-down, removes it on
   scroll-up. Never hidden when the mobile menu is open. */
.nav.is-hidden { transform: translateY(-130%); }
.nav.is-open.is-hidden { transform: none; }
.nav__brand { display: inline-flex; align-items: center; gap: 0.7rem; min-height: 44px; }
.nav__logo { height: 30px; width: auto; transition: height 0.35s var(--ease-out); }
.nav__status { display: inline-flex; align-items: center; gap: 0.4em; font-size: 0.72rem; color: var(--ink-muted); }
@media (max-width: 920px) { .nav__status { display: none; } }
.nav__links { display: flex; gap: 1.5rem; font-size: 0.92rem; font-weight: 500; }
.nav__links a { color: var(--ink-soft); position: relative; padding: 4px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%;
  background: var(--coral-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.32s var(--ease-out);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after { transform: scaleX(1); }
.nav__actions { display: flex; align-items: center; gap: 0.7rem; }
.nav__cta-mini { display: none; }

.lang-toggle {
  position: relative; display: inline-flex; padding: 3px;
  background: rgba(124, 45, 18, 0.07); border-radius: var(--radius-pill); font-size: 0.78rem; font-weight: 600;
}
.lang-toggle button { padding: 0.42em 0.82em; min-height: 44px; min-width: 44px; border-radius: var(--radius-pill); color: var(--ink-muted); position: relative; z-index: 1; transition: color 0.3s; }
.lang-toggle button.is-active { color: #fff; }
.lang-toggle__pill {
  position: absolute; top: 3px; left: 3px; height: calc(100% - 6px); width: calc(50% - 3px);
  background: var(--coral-deep); border-radius: var(--radius-pill); transition: transform 0.4s var(--ease-spring); z-index: 0;
}
.lang-toggle[data-active="en"] .lang-toggle__pill { transform: translateX(100%); }

.nav__burger { display: none; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 11px; min-width: 44px; min-height: 44px; }
.nav__burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform 0.3s, opacity 0.3s; }
.nav.is-open .nav__burger span:first-child { transform: translateY(7px) rotate(45deg); }
.nav.is-open .nav__burger span:last-child { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  margin: 10px auto 0; max-width: var(--maxw); display: flex; flex-direction: column; gap: 0.4rem;
  padding: 1rem 1.2rem; border-radius: var(--radius); background: #FDFAF6;
  border: 1px solid var(--hairline-strong); box-shadow: 0 16px 40px -16px rgba(124, 45, 18, 0.32);
}
.nav__mobile a { padding: 0.75rem 0.5rem; color: var(--ink-soft); border-bottom: 1px solid var(--hairline); }
.nav__mobile a:last-child { border: none; margin-top: 0.5rem; }
/* keep the CTA's white label — `.nav__mobile a` (0,1,1) otherwise beats `.btn--primary` (0,1,0) → dark text on coral */
.nav__mobile a.btn--primary { color: #fff; }

.nav__mobile-lang {
  display: none; align-items: center; gap: 0.5rem; padding: 0.35rem 0.5rem 0.1rem;
}
.nav__mobile-lang button {
  display: inline-flex; align-items: center; justify-content: center; min-width: 52px; min-height: 44px;
  border: 1px solid var(--hairline-strong); border-radius: var(--radius-pill); color: var(--ink-soft); font-weight: 600;
}
.nav__mobile-lang button.is-active { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }

@media (max-width: 860px) {
  .nav__inner { gap: 0.5rem; }
  .nav__actions { gap: 0.45rem; }
  .nav__links { display: none; }
  .nav__cta, .nav__login { display: none; }
  .nav__cta-mini {
    display: inline-flex; min-height: 44px; padding: 0.55em 0.9em; font-size: 0.88rem;
  }
  .nav__burger { display: flex; }
}
@media (max-width: 380px) {
  .nav__actions .lang-toggle { display: none; }
  .nav__mobile-lang { display: flex; }
}
@media (min-width: 861px) { .nav__mobile { display: none !important; } }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; }
.hero__pin { min-height: 100svh; display: flex; align-items: center; padding: 5.5rem var(--gutter) 3.5rem; }
.hero__grid {
  max-width: var(--maxw); margin-inline: auto; width: 100%;
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero__title {
  font-size: var(--fs-hero); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em;
  margin: 0.2rem 0 1.25rem; display: flex; flex-direction: column;
}
.hero__title .line { display: block; font-variation-settings: "wght" 800; text-wrap: balance; }
.hero__title .line--accent { color: var(--coral-deep); }
.hero__lead { margin-bottom: 1.5rem; }
.hero__cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero__demo { display: flex; justify-content: center; }
.hero__scrollcue {
  position: absolute; bottom: 1.6rem; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  font-family: var(--mono); font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--ink-muted);
}
.hero__scrollcue i { width: 1px; height: 34px; background: linear-gradient(var(--coral-deep), transparent); animation: cue 2s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(0.5); opacity: 0.4; transform-origin: top; } 50% { transform: scaleY(1); opacity: 1; } }

@media (max-width: 860px) {
  /* A/B 2026-09-15: the 5%-opacity grain (fixed, mix-blend-mode over the whole viewport) is
     invisible on a phone screen but costs a full-viewport blend on every frame. */
  #grain { display: none; }
  .psec { padding: 3.25rem 0; }
  .cta-final { min-height: 70svh; padding: 3.5rem var(--gutter); }
  .hero__grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .hero__pin { padding-top: 6rem; align-items: flex-start; }
  .hero__demo { order: 2; }
  .hero__scrollcue { display: none; }
}

/* ============================================================
   INTERSTITIAL
   ============================================================ */
.interstice { min-height: 42vh; display: grid; place-items: center; padding: 4rem var(--gutter); text-align: center; }
.interstice__line { font-size: clamp(1.3rem, 3vw, 2.1rem); font-weight: 400; color: var(--ink-soft); max-width: 24ch; line-height: 1.4; letter-spacing: -0.01em; }

/* ============================================================
   PROBLÈME (ghost leads)
   ============================================================ */
.probleme { padding: 4rem 0 6rem; text-align: center; }
.probleme .wrap { display: flex; flex-direction: column; align-items: center; }
.ghosts { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; margin: 1.5rem 0 3rem; min-height: 120px; }
.ghost {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0.35rem;
  padding: 1.1rem 1.3rem; border-radius: var(--radius); min-width: 210px;
  background: rgba(255, 255, 255, 0.55); border: 1px solid var(--hairline); text-align: left;
  box-shadow: 0 8px 24px -14px rgba(80, 80, 100, 0.35); color: var(--ink-soft);
}
.ghost__icon { font-size: 1.2rem; color: var(--ink-muted); }
.ghost strong { font-weight: 600; color: var(--ink); font-size: 0.98rem; }
.ghost .mono { color: var(--ink-muted); }
.probleme__title { text-align: center; max-width: 20ch; }
.probleme__text { text-align: center; margin-inline: auto; }
/* On mobile the ghost cards stack; once they fade out (JS sets display:none) the row
   collapses fully instead of reserving a desktop-row's worth of empty space. */
@media (max-width: 600px) { .ghosts { min-height: 0; margin-bottom: 2rem; } }

/* ============================================================
   COMMENT ÇA MARCHE
   ============================================================ */
.comment { padding: 5rem 0; }
.comment .kicker, .comment .section-title { text-align: center; margin-inline: auto; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; margin: 3rem 0 2.5rem; }
.step { position: relative; padding: 2rem 1.6rem; overflow: hidden; }
.step__num { color: var(--coral-deep); font-weight: 500; }
.step__watermark { position: absolute; right: 0.3rem; bottom: -1.5rem; font-size: var(--fs-watermark); font-weight: 800; color: rgba(249, 115, 22, 0.06); line-height: 1; font-family: var(--mono); pointer-events: none; }
.step h3 { font-size: 1.25rem; font-weight: 650; margin: 0.8rem 0 0.5rem; letter-spacing: -0.02em; }
.step p { color: var(--ink-soft); position: relative; z-index: 1; }
.step__thread { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 1.1rem; }
.mini-bubble { font-size: 0.82rem; padding: 0.5em 0.8em; border-radius: 12px; max-width: 92%; }
.mini-in { background: #fff; border: 1px solid var(--hairline); align-self: flex-start; border-bottom-left-radius: 4px; }
.mini-out { background: linear-gradient(135deg, #C2410C, #9A3412); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
.step__tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.1rem; }
.comment__cta { text-align: center; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }

/* ============================================================
   CAPACITÉS (bento)
   ============================================================ */
.capacites { padding: 5rem 0; }
.capacites .kicker, .capacites .section-title { text-align: center; margin-inline: auto; }
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 3rem; }
.tile { padding: 1.8rem 1.6rem; display: flex; flex-direction: column; gap: 0.5rem; position: relative; overflow: hidden; transition: transform 0.5s var(--ease-out), box-shadow 0.5s; }
.tile h3 { font-size: 1.18rem; font-weight: 640; letter-spacing: -0.02em; }
.tile p { color: var(--ink-soft); font-size: 0.98rem; }
/* Full-width accent rule pinned to the top edge of every tile — replaces the
   old emoji eyebrow. Clipped to the tile's rounded corners by `overflow:hidden`.
   Identity coral (graphics-only); brightens on hover. */
.tile::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--coral), var(--w-2));
  opacity: 0.5; transition: opacity 0.45s var(--ease-out);
}
@media (hover: hover) { .tile:hover::before { opacity: 1; } }
.tile--hero { grid-column: span 1; grid-row: span 2; justify-content: space-between; background: linear-gradient(160deg, rgba(255,253,250,0.92), rgba(253,201,136,0.22)); }
html.is-frosted .tile--hero { background: linear-gradient(160deg, rgba(255,253,250,0.6), rgba(253,201,136,0.25)); }
.tile--hero h3 { font-size: 1.5rem; }
.tile__chrono { position: relative; width: 92px; height: 92px; display: grid; place-items: center; }
.chrono__ring { position: absolute; inset: 0; border-radius: 50%; border: 3px solid rgba(249, 115, 22, 0.18); border-top-color: var(--coral); animation: spin 3.5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chrono__num { font-size: 2rem; font-weight: 700; color: var(--coral-deep); }
.chrono__num small { font-size: 1rem; }
@media (hover: hover) {
  .tile:hover { transform: translateY(-5px); }
  html.is-frosted .tile:hover { -webkit-backdrop-filter: blur(34px) saturate(160%); backdrop-filter: blur(34px) saturate(160%); }
}
@media (max-width: 920px) { .bento { grid-template-columns: repeat(2, 1fr); } .tile--hero { grid-row: span 1; grid-column: span 2; } }
@media (max-width: 600px) { .bento { grid-template-columns: 1fr; } .tile--hero { grid-column: span 1; } }

/* ============================================================
   MÉTIERS / PERSONAS
   ============================================================ */
.metiers { padding: 5rem 0; }
.metiers .kicker, .metiers .section-title, .metiers__lead { text-align: center; margin-inline: auto; }
.metiers__any { text-align: center; max-width: 46ch; margin: 2.6rem auto 0; color: var(--ink-muted); font-size: 1.02rem; }
.tablist { position: relative; display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: center; margin: 2.5rem auto; padding: 5px; border-radius: var(--radius-pill); background: rgba(124, 45, 18, 0.06); width: fit-content; max-width: 100%; }
.tab { display: inline-flex; align-items: center; min-height: 44px; padding: 0.5em 1.05em; border-radius: var(--radius-pill); font-size: 0.9rem; font-weight: 550; color: var(--ink-soft); transition: color 0.3s; white-space: nowrap; }
.tab.is-active { color: #fff; }
/* height is set by JS (refreshPill) so the pill tracks the active tab's row when the tablist wraps on mobile */
.tablist__pill { position: absolute; top: 5px; left: 5px; background: var(--coral-deep); border-radius: var(--radius-pill); transition: transform 0.45s var(--ease-spring), width 0.45s var(--ease-spring), height 0.45s var(--ease-spring); z-index: 0; }
.tab { position: relative; z-index: 1; }
.metiers__scene { display: grid; grid-template-columns: minmax(min(320px, 100%), 380px) 1fr; gap: 2.5rem; align-items: center; max-width: 920px; margin-inline: auto; }
.metiers__note { padding: 1.8rem; }
.metiers__note p { color: var(--ink-soft); font-size: 1.05rem; }
#persona-name { transition: opacity 0.25s; }
@media (max-width: 900px) { .metiers__scene { grid-template-columns: 1fr; } .sms--persona { margin-inline: auto; } }

/* ============================================================
   CONFIANCE
   ============================================================ */
.confiance { padding: 5rem 0; background: linear-gradient(var(--bg-milk), transparent); }
.confiance__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.trust-list { display: flex; flex-direction: column; gap: 1rem; margin: 1.8rem 0; }
.trust-list li { display: flex; align-items: center; gap: 0.8rem; font-size: 1.1rem; color: var(--ink); }
.trust-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(22, 163, 74, 0.13); color: #15803d; font-size: 0.9rem; flex-shrink: 0; }
.badge-qc { display: inline-flex; align-items: center; gap: 0.5em; padding: 0.55em 1.1em; border-radius: var(--radius-pill); background: rgba(249, 115, 22, 0.1); color: var(--coral-deep); font-weight: 600; font-size: 0.92rem; }
.confiance__right { padding: 2rem; }
.bilingue__label { color: var(--coral-deep); text-transform: uppercase; margin-bottom: 1.3rem; }
.bilingue { display: flex; flex-direction: column; gap: 1.2rem; }
.bilingue__col { display: flex; align-items: center; gap: 0.8rem; }
.flag { width: 34px; flex-shrink: 0; color: var(--ink-muted); font-weight: 500; }
.bilingue .bubble { align-self: auto; }
@media (max-width: 820px) { .confiance__grid { grid-template-columns: 1fr; gap: 2rem; } }

/* ============================================================
   CRÉDIBILITÉ
   ============================================================ */
.credibilite { padding: 6rem 0; text-align: center; }
.principle { font-size: clamp(1.7rem, 4vw, 3rem); font-weight: 720; line-height: 1.15; letter-spacing: -0.03em; max-width: 20ch; margin: 0 auto 3rem; }
.cred-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; max-width: 900px; margin: 0 auto; }
.cred-card { padding: 1.8rem 1.4rem; border-radius: var(--radius); border: 1px solid var(--hairline); background: rgba(255,255,255,0.4); }
.cred-card__n { display: block; font-size: 1.4rem; color: var(--coral); margin-bottom: 0.6rem; }
.cred-card p { color: var(--ink); font-size: 1.05rem; font-weight: 500; }
@media (max-width: 720px) { .cred-cards { grid-template-columns: 1fr; } }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 5rem 0; }
.faq .kicker, .faq .section-title { text-align: center; margin-inline: auto; }
.faq__list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; max-width: 980px; margin: 3rem auto 0; }
.faq__item { padding: 1.6rem 1.7rem; }
.faq__item h3 { font-size: 1.12rem; font-weight: 640; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.faq__item p { color: var(--ink-soft); font-size: 0.98rem; line-height: 1.5; }
@media (max-width: 720px) { .faq__list { grid-template-columns: 1fr; } }

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { min-height: 92svh; display: grid; place-items: center; padding: 5rem var(--gutter); position: relative; }
.cta-final__panel { max-width: 600px; width: 100%; padding: clamp(2.2rem, 5vw, 3.5rem); text-align: center; }
.cta-final__title { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 760; letter-spacing: -0.03em; margin-bottom: 1.8rem; line-height: 1.05; }
.cta-final__form { display: flex; gap: 0.7rem; flex-wrap: wrap; justify-content: center; }
.cta-final__form input {
  flex: 1 1 240px; padding: 0.92em 1.2em; border-radius: var(--radius-pill);
  border: 1px solid var(--hairline-strong); background: rgba(255, 255, 255, 0.7); font-size: 1rem; color: var(--ink);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.cta-final__form input::placeholder { color: var(--ink-muted); }
.cta-final__form input:focus { outline: none; border-color: var(--coral-deep); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.5); }
.cta-final__note { margin-top: 1.2rem; font-size: 0.85rem; color: var(--ink-muted); font-family: var(--mono); letter-spacing: 0.03em; }
.cta-final__error { margin-top: 1rem; font-size: 0.92rem; color: var(--coral-deep); font-weight: 550; }
.cta-final__success { margin-top: 1.5rem; display: flex; justify-content: center; }
.cta-final__success .bubble { font-size: 1.05rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { position: relative; background: var(--dark); color: var(--dark-text); padding: 4rem 0 2rem; margin-top: 3rem; overflow: hidden; }
.footer__hairline { position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--coral), var(--w-3), var(--w-4), transparent); background-size: 200% 100%; animation: flow 8s linear infinite; }
@keyframes flow { to { background-position: 200% 0; } }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer__logo { height: 34px; width: auto; margin-bottom: 1rem; }
.footer__baseline { color: var(--dark-soft); max-width: 26ch; margin-bottom: 1rem; }
.footer__status { display: inline-flex; align-items: center; gap: 0.5em; font-size: 0.82rem; color: var(--dark-soft); }
.footer__email { display: inline-flex; align-items: center; min-height: 44px; margin-top: 0.4rem; color: var(--coral-bright); font-weight: 500; }
.footer__email:hover { text-decoration: underline; }
.footer__col h4 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--coral-bright); margin-bottom: 1rem; font-weight: 600; }
.footer__col a { display: flex; align-items: center; min-height: 44px; color: var(--dark-soft); padding: 0; transition: color 0.25s; }
.footer__col a:hover { color: var(--dark-text); }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 2rem; font-size: 0.82rem; color: var(--dark-soft); flex-wrap: wrap; gap: 1rem; }
.footer__lang button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 0.5rem; color: var(--dark-soft); transition: color 0.25s; }
.footer__lang button:hover { color: var(--coral-bright); }
@media (max-width: 820px) { .footer__grid { grid-template-columns: 1fr 1fr; gap: 2rem; } .footer__brand { grid-column: span 2; } }
@media (max-width: 540px) { .footer__grid { grid-template-columns: 1fr; } .footer__brand { grid-column: auto; } }
@media (max-width: 600px) { .cta-final__form input, .cta-final__form .btn { width: 100%; flex: none; } }

/* ============================================================
   MOTION-READY STATES — only applied when JS enables animation.
   Content is fully visible by default (no-JS / reduced-motion safe).
   ============================================================ */
html.js-anim .reveal { opacity: 0; transform: translateY(26px); }
html.js-anim .section-title .split-line,
html.js-anim [data-split] .split-line { will-change: transform, opacity; }
html.js-anim #hero-sms [data-phase] { opacity: 0; }
html.js-anim .ghost { opacity: 0; transform: translateY(20px); }
html.js-anim .hero__title .line { opacity: 0; }
html.js-anim .hero__demo .sms { opacity: 0; }

/* Failsafe: guarantee the JS-gated hero is visible by 2.5s no matter what JS is doing
   (libs slow, aurora/Three.js slow, or main.js never loaded). Flash-free: GSAP reveals
   the same elements to opacity:1/transform:none well before 2.5s on a normal load, so
   this fires as an invisible no-op; on a slow load it reveals them itself. It targets
   only the above-the-fold hero (title, lead, CTAs, card). */
@keyframes heroFailsafe { to { opacity: 1; transform: none; } }
html.js-anim .hero__title .line,
html.js-anim .hero .reveal,
html.js-anim .hero__demo .sms { animation: heroFailsafe 0.4s ease 2.5s forwards; }
/* Calm tier (phones): the hero COPY is never JS-gated. It is the LCP element and was painting
   4-6 s late on a throttled phone. Only the SMS/scene card keeps its entrance (motion.js skips
   the copy tweens on calm so GSAP never re-hides it). */
html.tier-calm .hero__title .line, html.tier-calm .hero .reveal,
html.tier-calm .phero__title .line, html.tier-calm .phero .reveal { opacity: 1; transform: none; animation: none; }
/* EN visitor: <main> stays unpainted (layout still happens, so no shift) until i18n.js has
   rewritten the French literal, then the class is removed. Failsafe: painted at 2.5 s regardless. */
html.lang-pending main { visibility: hidden; animation: langFailsafe 0s linear 2.5s forwards; }
@keyframes langFailsafe { to { visibility: visible; } }

/* When the variable font is unavailable, weight stays static (handled in JS). */

/* FR/EN cross-fade */
main, .nav__inner, .footer__grid { transition: opacity 0.18s var(--ease-out), filter 0.18s var(--ease-out); }
body.lang-fade main, body.lang-fade .nav__inner, body.lang-fade .footer__grid { opacity: 0.35; filter: blur(3px); }

/* ============================================================
   REDUCED MOTION — kill all movement, keep everything legible
   ============================================================ */
@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; }
  .dot, .chrono__ring, .footer__hairline, .bubble--typing i, .hero__scrollcue i { animation: none !important; }
  .dot::after { display: none !important; }
  html.js-anim .reveal, html.js-anim #hero-sms [data-phase], html.js-anim .ghost,
  html.js-anim .hero__title .line, html.js-anim .hero__demo .sms { opacity: 1; transform: none; }
}

/* ============================================================
   V2 — multi-page additions (nav dropdowns, page hero, scenes, sector template)
   Same tokens, same atoms: .glass / .tile / .sms / .bubble / .kicker / .section-title
   ============================================================ */

/* ---- Nav dropdowns (desktop) ---- */
.nav__links { align-items: center; }
.nav__dd { position: relative; }
.nav__dd::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; } /* hover bridge to the panel */
.nav__dd-btn {
  display: inline-flex; align-items: center; gap: 0.35em; padding: 4px 0;
  color: var(--ink-soft); font-size: inherit; font-weight: inherit; position: relative; transition: color 0.25s;
}
.nav__dd-btn i { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform 0.3s var(--ease-out); opacity: 0.7; }
.nav__dd.is-open .nav__dd-btn i, .nav__dd:hover .nav__dd-btn i { transform: translateY(1px) rotate(225deg); }
.nav__dd-btn::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: calc(100% - 14px);
  background: var(--coral-deep); transform: scaleX(0); transform-origin: left; transition: transform 0.32s var(--ease-out);
}
.nav__dd:hover .nav__dd-btn, .nav__dd.is-open .nav__dd-btn, .nav__dd[aria-current="page"] .nav__dd-btn { color: var(--ink); }
.nav__dd:hover .nav__dd-btn::after, .nav__dd[aria-current="page"] .nav__dd-btn::after { transform: scaleX(1); }
.dd-panel {
  position: absolute; top: calc(100% + 16px); left: -0.75rem; z-index: 5; display: none;
  grid-template-columns: 1fr 1fr; gap: 0.2rem 0.6rem; padding: 0.8rem; width: min(500px, calc(100vw - 2 * var(--gutter)));
  border-radius: 18px; background: #FDFAF6;
}
html.is-frosted .dd-panel { background: rgba(253, 250, 246, 0.92); }
#dd-sect { grid-template-columns: 1fr; width: 280px; }
.nav__dd.is-open .dd-panel, .nav__dd:hover .dd-panel, .nav__dd:focus-within .dd-panel { display: grid; }
.dd-panel a { display: grid; gap: 0.1rem; padding: 0.55rem 0.7rem; border-radius: 12px; color: var(--ink); font-size: 0.92rem; font-weight: 600; line-height: 1.25; transition: background 0.2s; }
.dd-panel a small { color: var(--ink-soft); font-weight: 400; font-size: 0.8rem; }
.dd-panel a:hover, .dd-panel a:focus-visible { background: rgba(194, 65, 12, 0.07); }
.dd-panel__all { grid-column: 1 / -1; margin-top: 0.3rem; border-top: 1px solid var(--hairline); border-radius: 0 0 12px 12px !important; padding-top: 0.75rem !important; color: var(--coral-deep) !important; }

/* ---- Mobile menu groups (native <details>) ---- */
.nav__group { border-bottom: 1px solid var(--hairline); }
.nav__group summary { list-style: none; display: flex; justify-content: space-between; align-items: center; padding: 0.7rem 0.5rem; color: var(--ink-soft); font-weight: 500; cursor: pointer; min-height: 44px; }
.nav__group summary::-webkit-details-marker { display: none; }
.nav__group summary::after { content: ""; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); transition: transform 0.3s var(--ease-out); margin-right: 4px; }
.nav__group[open] summary::after { transform: rotate(225deg); }
.nav__group[open] summary { color: var(--ink); }
.nav__mobile .nav__group a { padding: 0.55rem 0.5rem 0.55rem 1.3rem; font-size: 0.95rem; border-bottom: none; }
.nav__mobile .nav__group a:last-child { margin: 0 0 0.4rem; }

/* ---- Channel band (home, under the hero) ---- */
.canaux { padding: 0 var(--gutter); }
.canaux__inner {
  max-width: var(--maxw); margin-inline: auto; display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 0.35rem 0.75rem; padding: 1rem 0; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline);
  font-size: 0.98rem; color: var(--ink-soft); text-align: center;
}
.canaux b { color: var(--ink); font-weight: 600; }
.canaux b a { color: var(--coral-deep); padding-block: 0.75em; }
.canaux b a:hover { text-decoration: underline; }
.canaux .sep { color: var(--hairline-strong); }

/* ---- Page hero (13 sub-pages, non-pinned, content visible at rest) ---- */
.phero { position: relative; padding: 7.5rem var(--gutter) 2.5rem; }
.phero__grid { max-width: var(--maxw); margin-inline: auto; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.phero__title { font-size: clamp(2.1rem, 4.2vw, 3.4rem); font-weight: 800; line-height: 1.04; letter-spacing: -0.035em; margin: 0.2rem 0 1.2rem; display: flex; flex-direction: column; }
.phero__title .line { display: block; text-wrap: balance; }
.phero__title .line--accent { color: var(--coral-deep); }
.phero__lead { margin-bottom: 1.4rem; }
.phero__cta { display: flex; gap: 0.8rem; flex-wrap: wrap; }
.phero__scene { display: flex; justify-content: center; }
.phero--center .phero__grid { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.phero--center .phero__title { align-items: center; max-width: 22ch; }
.phero--center .phero__lead { margin-inline: auto; }
.phero--center .phero__cta { justify-content: center; }
@media (max-width: 860px) {
  .phero { padding-top: 6rem; }
  .phero__grid { grid-template-columns: 1fr; gap: 2.2rem; }
  .phero__scene { order: 2; }
}

/* ---- Page sections ---- */
.psec { padding: 4.5rem 0; }
.psec--milk { background: linear-gradient(var(--bg-milk), transparent); }
.psec .kicker, .psec .section-title, .psec__lead { text-align: center; margin-inline: auto; }
.psec .section-title { font-size: clamp(1.7rem, 3.2vw, 2.6rem); max-width: 26ch; margin-bottom: 1rem; }
.psec__lead { max-width: 58ch; color: var(--ink-soft); font-size: 1.05rem; }
.link { color: var(--coral-deep); font-weight: 600; padding-block: 0.7em; }
.link:hover { text-decoration: underline; }
.xlinks { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 2.2rem; }

/* ---- Tiles: link tiles, lists, 3-up grids, wide closing tile ---- */
a.tile { color: inherit; }
.tile ul { list-style: disc; padding-left: 1.05rem; display: grid; gap: 0.3rem; margin-top: 0.3rem; color: var(--ink-soft); font-size: 0.95rem; }
.tile__go { margin-top: auto; padding-top: 0.7rem; font-weight: 600; font-size: 0.9rem; color: var(--coral-deep); }
a.tile__go { display: inline-flex; align-items: center; min-height: 44px; } /* standalone link (split cards): 44px tap target; the span variant lives inside an <a class="tile"> */
.tile__go::after { content: " →"; }
.tile--sm { padding: 1.4rem 1.3rem; }
.tile--sm h3 { font-size: 1.05rem; }
.tile--sm p { font-size: 0.93rem; }
.bento--3 { grid-template-columns: repeat(3, 1fr); margin-top: 2.5rem; }
.bento--2 { grid-template-columns: repeat(2, 1fr); margin-top: 2.5rem; }
.tile--wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.5fr) auto; align-items: center; gap: 1rem 2rem; }
.tile--wide .tile__go { margin: 0; padding: 0; white-space: nowrap; }
@media (max-width: 920px) { .bento--3 { grid-template-columns: repeat(2, 1fr); } .tile--wide { display: flex; } }
@media (max-width: 600px) { .bento--3, .bento--2 { grid-template-columns: 1fr; } }

/* ---- Toolbox (hub: named engine actions in customer words) ---- */
.toolbox { display: flex; flex-wrap: wrap; gap: 0.55rem; justify-content: center; margin: 2.2rem auto 0; max-width: 900px; }
.tool { display: inline-flex; align-items: center; gap: 0.55em; padding: 0.55em 1em; border-radius: var(--radius-pill); background: rgba(255, 255, 255, 0.72); border: 1px solid var(--hairline); font-size: 0.93rem; font-weight: 500; }
.tool i { width: 6px; height: 6px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }
.tool--gated { border-style: dashed; color: var(--ink-soft); }
.tool--gated i { background: var(--cool-2); }
.toolbox__legend { text-align: center; margin-top: 1.1rem; font-size: 0.86rem; color: var(--ink-muted); }

/* ---- Chips / bubbles additions ---- */
.chip--cool { background: rgba(92, 115, 160, 0.14); color: #3F5480; }
.sms .chip--cool { align-self: flex-start; }
.bubble--sys { align-self: center; background: transparent; box-shadow: none; color: var(--ink-muted); font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.04em; padding: 0.2em 0.6em; }
.sms--wide { width: min(430px, 100%); }
.sms__body--auto { min-height: 0; }

/* ---- Call journal (BDC scene) — fixed row heights, no CLS ---- */
.journal { width: min(440px, 100%); border-radius: var(--radius-lg); background: var(--glass-flat); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-inset); padding: 1.2rem 1.3rem 1rem; display: flex; flex-direction: column; }
html.is-frosted .journal { background: rgba(255, 253, 250, 0.7); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.journal__head { display: flex; justify-content: space-between; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding-bottom: 0.7rem; border-bottom: 1px solid var(--hairline); margin-bottom: 0.4rem; }
.journal__head b { font-size: 0.98rem; font-weight: 650; }
.journal .sms__meta { margin-top: 0.6rem; }
.evt { display: grid; grid-template-columns: 3.1rem 14px 1fr; gap: 0.6rem; align-items: start; padding: 0.42rem 0; min-height: 3.5rem; }
.evt .t { font-family: var(--mono); font-size: 0.7rem; color: var(--ink-muted); padding-top: 0.3em; }
.evt .p { width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--cool-2); background: #fff; margin-top: 0.4em; position: relative; }
.evt .p::after { content: ""; position: absolute; left: 2px; top: 12px; width: 2px; height: 2.6rem; background: var(--hairline-strong); }
.evt:last-of-type .p::after { display: none; }
.evt .p--call { border-color: var(--coral-deep); background: var(--coral-deep); }
.evt .p--sms { border-color: var(--coral); background: var(--w-3); }
.evt .p--ok { border-color: #15803d; background: #15803d; }
.evt .d { font-size: 0.92rem; line-height: 1.35; font-weight: 550; }
.evt .d small { display: block; color: var(--ink-muted); font-size: 0.8rem; font-weight: 400; margin-top: 0.1rem; }

/* ---- Dashboard mock (morning queue, no real data) ---- */
.dash { width: min(440px, 100%); border-radius: var(--radius-lg); background: var(--glass-flat); border: 1px solid var(--glass-border); box-shadow: var(--glass-shadow), var(--glass-inset); padding: 1.2rem 1.3rem; display: flex; flex-direction: column; }
html.is-frosted .dash { background: rgba(255, 253, 250, 0.7); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.dash__head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 0.7rem; border-bottom: 1px solid var(--hairline); margin-bottom: 0.3rem; font-weight: 650; }
.dash__row { display: grid; grid-template-columns: 1fr auto; gap: 0.6rem; align-items: center; padding: 0.65rem 0; border-bottom: 1px solid var(--hairline); min-height: 3.6rem; }
.dash__row:last-of-type { border-bottom: none; }
.dash__row b { font-size: 0.95rem; font-weight: 600; display: block; }
.dash__row small { display: block; color: var(--ink-muted); font-size: 0.8rem; }

/* ---- Split (two glass columns) ---- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; margin-top: 2.2rem; }
.split .glass { padding: 1.7rem 1.6rem; }
.split .glass--muted { background: rgba(255, 255, 255, 0.4); }
.split h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 0.7rem; letter-spacing: -0.01em; }
.split ul { list-style: disc; padding-left: 1.1rem; display: grid; gap: 0.4rem; color: var(--ink-soft); font-size: 0.97rem; }
@media (max-width: 760px) { .split { grid-template-columns: 1fr; } }

/* ---- FAQ, 3 up ---- */
.faq__list--3 { grid-template-columns: repeat(3, 1fr); max-width: none; }
@media (max-width: 900px) { .faq__list--3 { grid-template-columns: 1fr; } }

/* ---- Sector hub cards (two bubbles each) ---- */
.sect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; margin-top: 2.5rem; }
.sect { padding: 1.4rem; display: grid; gap: 0.6rem; align-content: start; color: inherit; position: relative; overflow: hidden; transition: transform 0.5s var(--ease-out); }
.sect::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, var(--coral), var(--w-2)); opacity: 0.5; }
@media (hover: hover) { .sect:hover { transform: translateY(-5px); } .sect:hover::before { opacity: 1; } }
.sect h3 { font-size: 1.12rem; font-weight: 650; letter-spacing: -0.01em; }
.sect .who { font-size: 0.85rem; color: var(--ink-muted); }
.sect .bubble { max-width: 100%; justify-self: start; font-size: 0.9rem; }
.sect .bubble--out { justify-self: end; }
.sect .illus { justify-self: end; font-size: 0.68rem; }
.sect .go { color: var(--coral-deep); font-weight: 600; font-size: 0.9rem; margin-top: 0.2rem; }
.sect .go::after { content: " →"; }
.sect--any { background: linear-gradient(160deg, rgba(255,253,250,0.92), rgba(199,207,224,0.35)); align-content: center; gap: 0.7rem; }
.sect--any .who { font-size: 0.95rem; color: var(--ink-soft); }
@media (max-width: 900px) { .sect-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sect-grid { grid-template-columns: 1fr; } }

/* ---- Sector page: qualification axes + "never" panel ---- */
.axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9rem; margin-top: 2.2rem; }
.axe { padding: 1.2rem 1.25rem; display: grid; gap: 0.25rem; align-content: start; }
.axe__n { font-family: var(--mono); font-size: 0.72rem; color: var(--coral-deep); letter-spacing: 0.06em; }
.axe b { font-size: 1.02rem; font-weight: 650; }
.axe span { font-size: 0.92rem; color: var(--ink-soft); }
@media (max-width: 900px) { .axes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 540px) { .axes { grid-template-columns: 1fr; } }
.never { max-width: var(--maxw); margin: 0 auto; padding: clamp(1.5rem, 3vw, 2.4rem); display: grid; grid-template-columns: 1fr 1.3fr; gap: 2rem; align-items: center; background: var(--bg-milk); border-radius: var(--radius); border: 1px solid var(--hairline); }
.never .kicker { margin-bottom: 0.6rem; }
.never .section-title { font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 16ch; margin: 0; }
.never ul { display: grid; gap: 0.85rem; color: var(--ink-soft); font-size: 0.98rem; }
.never li { display: flex; gap: 0.7rem; align-items: flex-start; }
.never li::before { content: "✕"; color: var(--coral-deep); font-weight: 700; flex-shrink: 0; line-height: 1.5; }
.never li b { color: var(--ink); font-weight: 600; }
@media (max-width: 820px) { .never { grid-template-columns: 1fr; gap: 1.2rem; } }

/* ---- Motion-ready states for the page hero (js-anim only; visible by default) ---- */
html.js-anim .phero__title .line, html.js-anim .phero__scene > *, html.js-anim .phero__scene [data-beat] { opacity: 0; }
html.js-anim .phero__title .line, html.js-anim .phero .reveal, html.js-anim .phero__scene > *, html.js-anim .phero__scene [data-beat] { animation: heroFailsafe 0.4s ease 2.5s forwards; }
@media (prefers-reduced-motion: reduce) {
  html.js-anim .phero__title .line, html.js-anim .phero__scene > *, html.js-anim .phero__scene [data-beat] { opacity: 1; transform: none; }
}

/* split cards: link at the bottom is a block */
.split .tile__go { display: inline-block; margin-top: 0.9rem; padding-top: 0; }
.nav__mobile .nav__group a { display: block; }

/* ========================= SPEED TO LEAD: race card (partial @race) ========================= */
.race { width: min(560px, 100%); padding: 1.4rem 1.5rem 1.1rem; display: grid; gap: 1rem; }
.race__kicker { font-size: var(--fs-mono); color: var(--ink-muted); letter-spacing: 0.04em; text-transform: uppercase; }
.race__row { display: grid; grid-template-columns: 10.5rem 1fr; align-items: center; gap: 0.3rem 1rem; }
.race__who { font-weight: 650; font-size: 0.95rem; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.race__who small { display: block; font-weight: 400; color: var(--ink-muted); font-size: 0.76rem; margin-top: 0.15rem; }
.race__track { position: relative; height: 6px; border-radius: 999px; background: rgba(22, 26, 32, 0.08); }
.race__wait { position: absolute; left: 0; top: 0; height: 100%; width: var(--at); border-radius: inherit; background: rgba(22, 26, 32, 0.16); }
.race__dot { position: absolute; top: 50%; left: var(--at); width: 14px; height: 14px; border-radius: 50%; translate: -50% -50%; background: var(--cool-2); border: 2px solid #fff; box-shadow: 0 2px 8px -2px rgba(22, 26, 32, 0.35); }
.race__row--audrey .race__dot { background: var(--coral); }
.race__row--audrey .race__time { color: var(--coral-deep); font-weight: 500; }
.race__time { grid-column: 2; font-family: var(--mono); font-size: 0.74rem; color: var(--ink-muted); }
.race__legend { font-size: 0.72rem; color: var(--ink-muted); }
html.js-anim .race__wait, html.js-anim .race__dot { transition: width 2.2s var(--ease-out), left 2.2s var(--ease-out); }
html.js-anim .race:not(.is-run) .race__wait { width: 0; }
html.js-anim .race:not(.is-run) .race__dot { left: 0; }
html.js-anim .race__row--slow .race__wait, html.js-anim .race__row--slow .race__dot { transition-duration: 3.2s; transition-delay: 0.2s; }
html.js-anim .race.is-run .race__row--audrey .race__dot { animation: racePulse 2.4s ease-out infinite; }
@keyframes racePulse { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0.45); } 70% { box-shadow: 0 0 0 12px rgba(249, 115, 22, 0); } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0); } }
@media (max-width: 480px) { .race__row { grid-template-columns: 1fr; } .race__time { grid-column: 1; } }

/* ========================= VITESSE section (home + hub) ========================= */
.vitesse { padding: 4rem 0 3.5rem; }
.vitesse .kicker, .vitesse .section-title, .vitesse__lead { text-align: center; margin-inline: auto; }
.vitesse__lead { max-width: 62ch; }
.vitesse .section-title { max-width: 32ch; }
.vitesse__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; margin-top: 2.6rem; }
.vitesse__pts { list-style: none; display: grid; gap: 1.2rem; }
.vitesse__pts li { display: grid; grid-template-columns: 2.2rem 1fr; gap: 0.2rem 0.8rem; }
.vitesse__pts .mono { color: var(--coral-deep); font-weight: 500; grid-row: span 2; padding-top: 0.2rem; }
.vitesse__pts strong { font-weight: 650; letter-spacing: -0.01em; font-size: 1.05rem; }
.vitesse__pts p { color: var(--ink-soft); font-size: 0.97rem; }
.vitesse__more { margin-top: 1.7rem; }
.vitesse__scene { display: flex; justify-content: center; }
@media (max-width: 860px) { .vitesse__grid { grid-template-columns: 1fr; } }

/* ========================= /demo : 3-step funnel (.qf) ========================= */
.phero--short { padding-bottom: 0; min-height: 0; }
.demo { padding: 0 var(--gutter) 5rem; }
.demo__wrap { max-width: 720px; margin-inline: auto; }
.qf { padding: clamp(1.5rem, 4vw, 2.6rem); scroll-margin-top: 100px; }
.qf fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.qf-progress { display: flex; gap: 8px; margin-bottom: 0.5rem; }
.qf-progress__seg { height: 4px; flex: 1; border-radius: 999px; background: rgba(22, 26, 32, 0.1); transition: background 0.3s; }
.qf-progress__seg.is-done { background: var(--coral); }
.qf-progress__label { font-family: var(--mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 1.4rem; }
.qf-draft { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; margin-bottom: 1.2rem; padding: 0.7rem 0.9rem; border-radius: 12px; background: rgba(249, 115, 22, 0.08); color: var(--ink-soft); font-size: 0.9rem; }
.qf-draft[hidden] { display: none; }
.qf-draft button { margin-left: auto; background: none; border: 0; color: var(--coral-deep); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.qf-step { display: none; }
.qf-step.is-active { display: block; animation: qfIn 0.28s ease both; }
@keyframes qfIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .qf-step.is-active { animation: none; } }
.qf-step__title { font-size: clamp(1.45rem, 2.6vw, 1.9rem); font-weight: 760; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.qf-step__hint { color: var(--ink-soft); font-size: 0.97rem; margin-bottom: 1.3rem; }
.qf-step__hint.is-error { color: var(--coral-deep); font-weight: 550; }
.qf-chips { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-bottom: 1.4rem; }
.qf-chip { padding: 0.75em 1.1em; border-radius: var(--radius-pill); border: 1px solid var(--hairline-strong); background: rgba(255, 255, 255, 0.7); color: var(--ink); font: inherit; font-size: 0.95rem; font-weight: 550; cursor: pointer; min-height: 44px; transition: border-color 0.25s, background 0.25s, color 0.25s; }
@media (hover: hover) { .qf-chip:hover { border-color: var(--coral-deep); } }
.qf-chip.is-active { background: var(--coral-deep); border-color: var(--coral-deep); color: #fff; }
.qf-chip:focus-visible { outline: 2px solid var(--coral-deep); outline-offset: 2px; }
.qf-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.9rem; margin-bottom: 0.9rem; }
.qf-row--full { grid-template-columns: 1fr; }
.qf-field label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--ink-soft); margin-bottom: 0.35rem; }
.qf-field input, .qf-field select, .qf-field textarea { width: 100%; padding: 0.8em 1em; border-radius: 14px; border: 1px solid var(--hairline-strong); background: rgba(255, 255, 255, 0.7); font: inherit; font-size: 1rem; color: var(--ink); transition: border-color 0.3s, box-shadow 0.3s; }
.qf-field textarea { min-height: 96px; resize: vertical; }
.qf-field input::placeholder, .qf-field textarea::placeholder { color: var(--ink-muted); }
.qf-field input:focus, .qf-field select:focus, .qf-field textarea:focus { outline: none; border-color: var(--coral-deep); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.35); }
.qf-field [aria-invalid="true"] { border-color: var(--coral-deep); box-shadow: 0 0 0 3px rgba(194, 65, 12, 0.18); }
.qf-field small { display: block; margin-top: 0.3rem; font-size: 0.78rem; color: var(--ink-muted); }
.qf-nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-top: 0.6rem; }
.qf-back, .qf-skip { background: none; border: 0; color: var(--ink-soft); font: inherit; font-size: 0.92rem; cursor: pointer; padding: 0.4em 0; text-decoration: underline; text-underline-offset: 3px; }
.qf-back { margin-bottom: 0.9rem; }
.qf-submit { width: 100%; justify-content: center; margin-top: 0.4rem; }
.qf-consent { margin-top: 0.9rem; font-size: 0.82rem; color: var(--ink-muted); text-align: center; }
.qf-error { margin-top: 0.9rem; color: var(--coral-deep); font-weight: 550; font-size: 0.92rem; text-align: center; }
.qf-success { text-align: center; padding: 1rem 0; }
.qf-success .bubble { font-size: 1.05rem; display: inline-block; max-width: 100%; }
.qf-success p { margin-top: 1rem; color: var(--ink-soft); }
.qf__foot { margin-top: 1.2rem; text-align: center; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.03em; color: var(--ink-muted); }
@media (max-width: 560px) { .qf-row { grid-template-columns: 1fr; } .qf { scroll-margin-top: 80px; } }

/* ---- Mobile legibility floor (last so it wins over the per-component sizes above) ----
   0.68-0.74rem mono/meta text measured at 10.9-11.8px on a 390px phone -> 12px minimum. */
@media (max-width: 860px) {
  .sms__meta, .sect .illus, .axe__n, .race__time, .race__legend, .qf-progress__label, .bubble--sys, .evt .t { font-size: 0.75rem; }
}
