/* ReTexto v5: accueil « luxe sobre », thème sombre bleu nuit.
   Même palette que v4 (bleu nuit, orange, blanc cassé), même police Geist.
   Formes : boutons et étiquettes en pilule, panneaux 28 px, téléphones à leurs propres rayons.
   Le verre (backdrop-filter) est une approximation web ; repli opaque si transparence réduite. */

@font-face { font-family: "Geist"; src: url("../fonts/geist-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-sans-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist"; src: url("../fonts/geist-sans-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Fallback"; src: local("Arial"), local("Helvetica"), local("Liberation Sans"); size-adjust: 104.5%; ascent-override: 88%; descent-override: 21%; line-gap-override: 0%; }

:root {
  /* palette ReTexto */
  --navy-deep: #14243d;
  --navy: #14243d;
  --navy-2: #3d5a80;
  --abyss: #14243d;            /* bleu nuit plus sombre, pour les bords et le pied de page */
  --paper: #fbf7f0;
  --ink: #14243d;
  --ink-2: #46536a;
  --ink-3: #5d6779;
  --orange: #ff6b1a;

  --text: #fbf7f0;
  --text-2: #dfe6ee;
  --text-3: #dfe6ee;
  --line: rgba(251, 247, 240, .10);
  --line-2: rgba(251, 247, 240, .18);
  --glass: rgba(251, 247, 240, .05);

  --f: "Geist", "Geist Fallback", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1180px;
  --gutter: 20px;
  --hdr: 60px;
  --sec: 96px;
  --r-panel: 28px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --spring: cubic-bezier(.3, 1.25, .4, 1);
}
@media (min-width: 768px) { :root { --gutter: 32px; --sec: 128px; } }
@media (min-width: 1024px) { :root { --gutter: 40px; --hdr: 72px; --sec: 160px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 16px); background: var(--navy-deep); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; min-height: 100vh; color: var(--text); font-family: var(--f); font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
h1, h2, h3, p, ol, ul, figure { margin: 0; }
b, strong, th, h1, h2, h3, h4, h5, h6 { font-weight: 600; }
ol, ul { padding: 0; list-style: none; }
img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.icon { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Fond vivant : trois halos de lumière (bleu acier, bleu nuit, une braise orange très faible)
   qui dérivent lentement et glissent un peu au défilement. Pas de dégradé multicolore :
   chaque halo est une seule teinte qui s'efface. Coupé si animations réduites. */
html::before, html::after, body::before { content: ""; position: fixed; z-index: -1; pointer-events: none; border-radius: 50%; will-change: transform; }
html::before { width: 95vmax; height: 95vmax; left: -35vmax; top: -40vmax; background: radial-gradient(closest-side, rgba(61, 90, 128, .42), rgba(61, 90, 128, 0) 72%); }
html::after { width: 80vmax; height: 80vmax; right: -30vmax; top: 25vh; background: radial-gradient(closest-side, rgba(61, 90, 128, .6), rgba(61, 90, 128, 0) 70%); }
body::before { width: 60vmax; height: 60vmax; left: 10vw; top: calc(100vh - 22vmax); top: calc(100lvh - 22vmax); background: radial-gradient(closest-side, rgba(255, 107, 26, .07), rgba(255, 107, 26, 0) 70%); }
body { background: transparent; }
@media (prefers-reduced-motion: no-preference) {
  html::before { animation: driftA 38s ease-in-out infinite alternate; }
  html::after { animation: driftB 46s ease-in-out infinite alternate; }
  body::before { animation: driftC 54s ease-in-out infinite alternate; }
}
@keyframes driftA { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(18vw, 10vh, 0) scale(1.08); } 100% { transform: translate3d(6vw, 26vh, 0) scale(.96); } }
@keyframes driftB { 0% { transform: translate3d(0, 0, 0) scale(1); } 50% { transform: translate3d(-16vw, -14vh, 0) scale(1.1); } 100% { transform: translate3d(-4vw, 12vh, 0) scale(.94); } }
@keyframes driftC { 0% { transform: translate3d(0, 0, 0); } 100% { transform: translate3d(40vw, -8vh, 0); } }
@keyframes slideA { to { translate: 0 30vh; } }
@keyframes slideB { to { translate: -10vw -35vh; } }

.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--paper); color: var(--ink); padding: 10px 14px; border-radius: 10px; text-decoration: none; font-weight: 600; }
.skip:focus { top: 12px; }
#top-sentinel { position: absolute; top: 0; left: 0; width: 1px; height: 40px; pointer-events: none; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Texte ---------- */
.h2 { font-size: clamp(30px, 7.6vw, 36px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; text-wrap: balance; max-width: 18em; }
@media (min-width: 768px) { .h2 { font-size: clamp(36px, 3.7vw, 46px); } }
.mute { color: var(--text-3); }
.accent { color: var(--orange); }
.eyebrow { font-size: 12.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--orange); margin-bottom: 18px; }
.fine { font-size: 14px; color: var(--text-3); }
.note { font-size: 13.5px; line-height: 1.5; color: var(--text-3); }

/* ---------- Verre ---------- */
.glass, .btn-glass, .notif, .tag, .trades a, .qi, .cookie { }
.glass { background: linear-gradient(180deg, rgba(251, 247, 240, .075), rgba(251, 247, 240, .02)); border: 1px solid var(--line); border-radius: var(--r-panel);
  box-shadow: inset 0 1px 0 rgba(251, 247, 240, .08), 0 40px 80px -40px rgba(20, 36, 61, .8); }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 44px; border-radius: 999px; text-decoration: none; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; transition: transform .25s var(--ease), background-color .25s var(--ease), border-color .25s var(--ease); -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--orange); color: var(--navy-deep); box-shadow: inset 0 1px 0 rgba(251, 247, 240, .35), 0 16px 34px -18px rgba(20, 36, 61, .9); }
.btn-lg { min-height: 58px; padding: 0 8px 0 28px; font-size: 17px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn-block { width: 100%; min-height: 56px; padding: 0 8px 0 24px; justify-content: space-between; font-size: 16.5px; }
.btn-orb { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--navy-deep); color: var(--paper); font-size: 18px; transition: transform .35s var(--ease); }
.btn-glass { background: rgba(251, 247, 240, .07); color: var(--text); border: 1px solid var(--line-2); box-shadow: inset 0 1px 0 rgba(251, 247, 240, .08); }
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #ff6b1a; }
  .btn-primary:hover .btn-orb { transform: rotate(45deg); }
  .btn-glass:hover { background: rgba(251, 247, 240, .12); border-color: rgba(251, 247, 240, .3); }
}

/* ---------- En-tête ---------- */
.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 30; height: var(--hdr); transition: background-color .35s var(--ease), border-color .35s var(--ease); border-bottom: 1px solid transparent; }
.hdr.is-solid { background: rgba(20, 36, 61, .9); border-bottom-color: var(--line); }
.hdr-in { height: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; --logo-ink: #fbf7f0; --wm-texto: #fbf7f0; }
.brand-glyph { width: 22px; height: 21.5px; flex: none; }
.brand-word { width: 103px; height: 20px; flex: none; }
.hdr-nav { display: none; gap: 36px; font-size: 14.5px; }
.hdr-nav a { text-decoration: none; color: var(--text-2); transition: color .2s; }
.hdr-nav a:hover { color: var(--text); }
@media (min-width: 900px) { .hdr-nav { display: flex; } }
@media (max-width: 380px) { .brand-word { width: 88px; height: 17px; } .brand-glyph { width: 19px; height: 18.5px; } .hdr .btn-sm { padding: 0 14px; font-size: 13.5px; } }

/* ---------- Hero : un titre, le téléphone, une phrase dessous ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; }
.hero-media { position: absolute; inset: 0; z-index: -1; background: var(--abyss) url("../../media/hero-blur-poster-mobile.jpg") center / cover no-repeat; }
.hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08); }
.hero-media::after { content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 50% 40%, transparent 35%, rgba(20, 36, 61, .7) 100%),
    linear-gradient(180deg, rgba(20, 36, 61, .7) 0%, rgba(20, 36, 61, .35) 35%, rgba(20, 36, 61, .5) 70%, rgba(20, 36, 61, 0) 100%); }
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 160px; z-index: -1; pointer-events: none; background: linear-gradient(180deg, rgba(20, 36, 61, 0), var(--navy-deep)); }
.hero-in { display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(var(--hdr) + 22px) var(--gutter) 72px; }
.tag { display: inline-flex; align-items: center; min-height: 30px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(251, 247, 240, .06); font-size: 12.5px; color: var(--text-2); letter-spacing: .01em; }
.hero-title { margin-top: 16px; font-size: clamp(34px, 9.6vw, 46px); line-height: 1.04; font-weight: 600; letter-spacing: -.04em; text-wrap: balance; max-width: 10em; }
.hero-title .accent { white-space: nowrap; }
.hero-phone { position: relative; margin-top: 28px; display: flex; flex-direction: column; align-items: center; }
.hero-phone .tilt { width: min(84vw, 340px); }
.hero-sub { margin-top: 28px; font-size: 16.5px; line-height: 1.5; color: var(--text-2); max-width: 21em; text-wrap: balance; }
.hero-cta { display: none; }
@media (min-width: 600px) { .hero-title { font-size: 52px; } .hero-phone .tilt { width: 360px; } .hero-sub { font-size: 18px; } }
@media (min-width: 1024px) {
  .hero-in { padding: calc(var(--hdr) + 28px) var(--gutter) 96px; }
  .hero-title { font-size: clamp(46px, 4.4vw, 60px); max-width: none; }
  .hero-phone { margin-top: 40px; }
  .hero-phone .tilt { width: auto; }
  /* grand téléphone : il dépasse sous la ligne de flottaison, la phrase arrive au défilement */
  .hero-phone .ph { height: clamp(600px, calc(100svh - 110px), 780px); width: auto; }
  .hero-phone .tilt::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -26px; height: 36px; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(20, 36, 61, .7), transparent); filter: blur(6px); }
  .hero-sub { margin-top: 40px; }
  .hero-cta { display: inline-flex; margin-top: 28px; }
}

/* Inclinaison au pointeur (ordinateur), ≤ 6° */
.tilt { --bx: 3deg; --by: -9deg; --bz: 1deg;
  transform: perspective(1400px) rotateX(calc(var(--bx) + var(--rx, 0deg))) rotateY(calc(var(--by) + var(--ry, 0deg))) rotateZ(var(--bz));
  transition: transform .6s var(--ease); will-change: transform; }
@media (min-width: 1024px) { .tilt { --bx: 4deg; --by: 9deg; --bz: -1deg; } }

/* ---------- Téléphone (dessin) ----------
   Le cadre utilise des % ; l'intérieur des unités cqi (1cqi = 1 % de la largeur du téléphone). */
.ph { position: relative; aspect-ratio: 300 / 628; width: 100%; container-type: inline-size; border-radius: 16% / 7.6%;
  background: linear-gradient(150deg, #5d6779 0%, #14243d 26%, #14243d 58%, #46536a 100%);
  box-shadow: inset 0 0 0 1px rgba(251, 247, 240, .2), inset 0 0 0 4px #14243d, 0 60px 110px -40px rgba(20, 36, 61, .9), 0 24px 44px -24px rgba(20, 36, 61, .7); }
.ph::before, .ph::after { content: ""; position: absolute; width: 1.1%; border-radius: 2px; background: linear-gradient(90deg, #14243d, #5d6779); }
.ph::before { left: -.8%; top: 22%; height: 9%; }
.ph::after { right: -.8%; top: 28%; height: 13%; }
.ph-screen { position: absolute; inset: 1.7% 3.6%; border-radius: 13.2% / 6.3%; overflow: hidden; background: #14243d; color: var(--text); font-size: 4.3cqi; line-height: 1.35; text-align: left; }
.ph-screen::before { content: ""; position: absolute; z-index: 5; top: 3.2cqi; left: 50%; width: 29cqi; height: 8.4cqi; transform: translateX(-50%); border-radius: 99px; background: #14243d; }
.ph-screen::after { content: ""; position: absolute; z-index: 6; left: 50%; bottom: 2.4cqi; width: 34cqi; height: 1.3cqi; transform: translateX(-50%); border-radius: 99px; background: rgba(251, 247, 240, .75); pointer-events: none; }
.ph-wall { background: #14243d url("../../media/ph-wall.jpg") center / cover; }
.ph-wall::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(180deg, rgba(20, 36, 61, .2), rgba(20, 36, 61, .45)); pointer-events: none; }
.ph-wall > * { position: relative; z-index: 1; }
.sb { display: flex; justify-content: space-between; align-items: center; height: 14.5cqi; padding: 1cqi 8.5cqi 0; font-size: 4.6cqi; font-weight: 600; }
.sb-sys { display: inline-flex; gap: 1cqi; align-items: flex-end; }
.sb-sys i { display: block; width: 1.3cqi; background: currentColor; border-radius: 1px; }
.sb-sys i:nth-child(1) { height: 1.8cqi; } .sb-sys i:nth-child(2) { height: 2.6cqi; } .sb-sys i:nth-child(3) { height: 3.4cqi; }
.lock-date { margin-top: 3cqi; text-align: center; font-size: 4.8cqi; font-weight: 500; color: #fbf7f0; }
.lock-time { text-align: center; font-size: 22cqi; line-height: 1; font-weight: 600; letter-spacing: -.035em; color: #fbf7f0; }
.notifs { display: flex; flex-direction: column; gap: 2.6cqi; margin: 7cqi 3.4cqi 0; }

.notif { padding: 3.8cqi 4.2cqi 4cqi; border-radius: 7cqi; background: rgba(20, 36, 61, .58); border: 1px solid rgba(251, 247, 240, .1); box-shadow: inset 0 1px 0 rgba(251, 247, 240, .06); }
.n-head { display: flex; align-items: center; gap: 2cqi; font-size: 3.6cqi; color: #dfe6ee; }
.n-head b { color: #fbf7f0; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.n-head span:last-child { margin-left: auto; }
.app { display: grid; place-items: center; width: 6cqi; height: 6cqi; border-radius: 1.6cqi; font-size: 3.6cqi; color: #fbf7f0; }
.app-sms, .app-call { background: #3d5a80; }
.app-call { background: #46536a; }
.app-rt { background: var(--navy-deep); --logo-ink: #fbf7f0; }
.app-rt svg { width: 3.9cqi; height: 3.8cqi; }
.n-title { margin-top: 1.6cqi; font-size: 4.6cqi; font-weight: 600; }
.n-body { margin-top: .6cqi; font-size: 4.2cqi; line-height: 1.38; color: #fbf7f0; }
.lnk { text-decoration: underline; text-underline-offset: .18em; }

/* ---------- Les chiffres ---------- */
.sec { position: relative; padding: var(--sec) 0; }
.numbers .h2 { margin-bottom: 48px; }
.nb-grid { display: grid; gap: 20px; }
.nb-main { padding: 32px 28px 30px; position: relative; overflow: hidden; }
.nb-main::before { content: ""; position: absolute; left: 28px; right: 28px; top: 0; height: 1px; background: linear-gradient(90deg, var(--orange), rgba(255, 107, 26, 0) 70%); }
.nb-big { display: flex; align-items: baseline; font-size: clamp(88px, 26vw, 112px); line-height: .9; font-weight: 600; letter-spacing: -.06em; font-variant-numeric: tabular-nums; }
.nb-big .pct { font-size: .42em; color: var(--orange); letter-spacing: -.02em; margin-left: .06em; }
.nb-lead { margin-top: 20px; font-size: 19px; line-height: 1.4; font-weight: 500; max-width: 18em; }
.nb-main .note { margin-top: 18px; max-width: 30em; }
.nb-facts li { padding: 22px 4px; border-top: 1px solid var(--line); }
.nb-facts li:first-child { border-top: 0; }
@media (max-width: 899px) {
  .nb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 8px; }
  .nb-facts li, .nb-facts li:first-child { padding: 18px 0 0; border-top: 1px solid var(--line-2); }
  .nb-num { font-size: 26px; }
  .nb-txt { font-size: 13.5px; }
}
.nb-num { font-size: 30px; line-height: 1; font-weight: 600; letter-spacing: -.035em; white-space: nowrap; }
.nb-txt { margin-top: 8px; color: var(--text-3); font-size: 15px; line-height: 1.4; }
@media (min-width: 900px) {
  .numbers .h2 { margin-bottom: 72px; }
  .nb-grid { grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: center; }
  .nb-main { padding: 56px 52px 48px; }
  .nb-main::before { left: 52px; right: 52px; }
  .nb-big { font-size: 148px; }
  .nb-lead { font-size: 21px; }
  .nb-facts li { padding: 28px 0; }
  .nb-num { font-size: 44px; }
  .nb-txt { font-size: 16px; }
}

/* ---------- Comment ça marche ---------- */
.how { padding-bottom: 0; overflow-x: clip; }
.how::before { content: ""; position: absolute; left: 50%; top: 22%; width: min(1100px, 100vw); height: 70%; transform: translateX(-50%); z-index: -1; pointer-events: none; background: radial-gradient(closest-side, rgba(61, 90, 128, .55), transparent); }
.how-head { margin-bottom: 0; }
.how-scroller { --H: 72svh; position: relative; }
.js .how-scroller { height: calc(100svh + 3 * var(--H)); }
.how-marks i { position: absolute; left: 0; width: 1px; height: var(--H); pointer-events: none; }
.how-marks i:nth-child(1) { top: 0; } .how-marks i:nth-child(2) { top: var(--H); } .how-marks i:nth-child(3) { top: calc(2 * var(--H)); } .how-marks i:nth-child(4) { top: calc(3 * var(--H)); }
.how-stage { display: flex; flex-direction: column; padding: 24px var(--gutter) 40px; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; }
.js .how-stage { position: sticky; top: 0; height: 100svh; padding-top: calc(var(--hdr) + 18px); padding-bottom: 24px; }

.how-steps { display: grid; gap: 28px; }
.hs-time { font-size: 14px; font-weight: 600; color: var(--orange); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.hs-title { margin-top: 8px; font-size: 24px; line-height: 1.2; font-weight: 600; letter-spacing: -.025em; text-wrap: balance; }
.hs-text { margin-top: 8px; color: var(--text-2); font-size: 15.5px; line-height: 1.5; max-width: 26em; }
.js .how-steps { position: relative; display: block; min-height: 96px; }
.js .hs { position: absolute; inset: 0 0 auto; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .7s var(--ease); pointer-events: none; }
.js .hs.is-past { transform: translateY(-18px); }
.js .hs.is-on { opacity: 1; transform: none; transition-delay: .12s; }
.how-prog { display: none; }
.js .how-prog { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.how-prog button { position: relative; min-height: 32px; padding-top: 12px; text-align: left; font-size: 12.5px; color: var(--text-3); transition: color .3s; }
.how-prog button::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; border-radius: 2px; background: var(--line-2); transition: background-color .4s var(--ease); }
.how-prog button.is-past::before { background: rgba(255, 107, 26, .45); }
.how-prog button.is-on { color: var(--text); }
.how-prog button.is-on::before { background: var(--orange); }
@media (max-width: 599px) { .how-prog span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }

/* Les deux téléphones */
.duo { --phH: min(460px, calc(100svh - var(--hdr) - 230px), calc((100vw - 24px) * 1.3)); position: relative; flex: 1; min-height: calc(var(--phH) + 40px); margin-top: 18px; }
.duo-ph { position: absolute; top: 0; left: 50%; display: flex; flex-direction: column; align-items: center; transition: transform .9s var(--ease); }
.duo-ph .ph { height: var(--phH); width: auto; }
.ph-dim { position: absolute; inset: 0; border-radius: inherit; background: rgba(20, 36, 61, .62); opacity: 0; transition: opacity .7s var(--ease); pointer-events: none; }
.duo-cap { margin-top: 12px; font-size: 13px; color: var(--text-3); transition: opacity .5s; }
/* mobile : téléphones superposés, celui qui agit passe devant */
.duo-pro { transform: translateX(-80%) scale(var(--s-pro, 1)); transform-origin: 50% 40%; z-index: var(--z-pro, 2); }
.duo-cli { transform: translateX(-20%) scale(var(--s-cli, .86)); transform-origin: 50% 40%; z-index: var(--z-cli, 1); }
.how-stage[data-step="2"], .how-stage[data-step="3"] { --s-pro: .86; --s-cli: 1; --z-pro: 1; --z-cli: 2; }
.how-stage[data-step="1"] .duo-cli .ph-dim, .how-stage[data-step="4"] .duo-cli .ph-dim,
.how-stage[data-step="2"] .duo-pro .ph-dim, .how-stage[data-step="3"] .duo-pro .ph-dim { opacity: 1; }
@media (max-width: 1023px) {
  .how-stage[data-step="1"] .duo-cli .duo-cap, .how-stage[data-step="4"] .duo-cli .duo-cap,
  .how-stage[data-step="2"] .duo-pro .duo-cap, .how-stage[data-step="3"] .duo-pro .duo-cap { opacity: 0; }
}
.flow, .flow-label { display: none; }
/* tablette : les deux téléphones côte à côte, le texte reste au-dessus */
@media (min-width: 700px) and (max-width: 1023px) {
  .duo { --phH: min(520px, calc(100svh - var(--hdr) - 300px)); }
  .duo-pro { transform: translateX(-122%) scale(var(--s-pro, 1)); }
  .duo-cli { transform: translateX(22%) scale(var(--s-cli, .9)); }
  .how-stage[data-step="2"], .how-stage[data-step="3"] { --s-pro: .9; --s-cli: 1; }
  .how-stage .duo-cap { opacity: 1 !important; }
  .hs-title { font-size: 28px; }
}

@media (min-width: 1024px) {
  .how-head { text-align: left; }
  .js .how-stage { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: center; padding-top: var(--hdr); padding-bottom: 0; }
  .how-stage { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 48px; align-items: center; }
  .hs-time { font-size: 15px; }
  .hs-title { font-size: 36px; line-height: 1.1; margin-top: 12px; max-width: 11em; }
  .hs-text { font-size: 17.5px; margin-top: 14px; }
  .js .how-steps { min-height: 150px; }
  .js .how-prog { margin-top: 36px; }
  .how-prog button { font-size: 13px; }
  .duo { --phH: min(540px, calc(100svh - var(--hdr) - 170px), 40vw); --phW: calc(var(--phH) * .4777); height: calc(var(--phH) + 110px); flex: none; margin: 0; align-self: center; }
  .duo-ph { top: 70px; }
  .duo-pro { transform: translateX(-122%) scale(var(--s-pro, 1)); }
  .duo-cli { transform: translateX(22%) scale(var(--s-cli, .9)); }
  .how-stage[data-step="2"], .how-stage[data-step="3"] { --s-pro: .9; --s-cli: 1; }
  /* arc au-dessus des deux téléphones : d'un centre d'écran à l'autre */
  .flow { display: block; position: absolute; left: 50%; top: 22px; width: calc(var(--phW) * 1.44); height: 44px; transform: translateX(-50%); overflow: visible; }
  .flow path { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
  .flow-base { stroke: var(--line-2); stroke-dasharray: 3 5; }
  .flow-run { stroke: var(--orange); stroke-width: 2 !important; stroke-dasharray: 14 200; stroke-dashoffset: 14; stroke-linecap: round; }
  .flow-label { display: block; position: absolute; left: 50%; top: 0; height: 20px; transform: translateX(-50%); white-space: nowrap; font-size: 12.5px; color: var(--text-2); }
  .flow-label span { position: absolute; left: 50%; transform: translate(-50%, 6px); opacity: 0; transition: opacity .4s, transform .5s var(--ease); }
  .how-stage[data-step="1"] [data-l="1"], .how-stage[data-step="2"] [data-l="2"], .how-stage[data-step="3"] [data-l="3"], .how-stage[data-step="4"] [data-l="4"] { opacity: 1; transform: translate(-50%, 0); }
}
@media (min-width: 1200px) { .js .how-stage, .how-stage { grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 64px; } }

/* Écrans des téléphones de la démo */
.scr { position: absolute; inset: 0; opacity: 0; transition: opacity .45s var(--ease); }
.how-stage[data-step="1"] .scr-ring, .how-stage[data-step="2"] .scr-ring, .how-stage[data-step="3"] .scr-ring,
.how-stage[data-step="4"] .scr-pro,
.how-stage[data-step="1"] .scr-dial, .how-stage[data-step="2"] .scr-chat,
.how-stage[data-step="3"] .scr-form, .how-stage[data-step="4"] .scr-sent { opacity: 1; }

.scr-ring, .scr-dial { background: radial-gradient(120% 70% at 50% 0%, #14243d, #14243d 70%); text-align: center; }
.call-top { margin-top: 16cqi; }
.call-state { position: relative; height: 6cqi; font-size: 4.6cqi; color: #dfe6ee; }
.call-state span { position: absolute; left: 0; right: 0; }
.st-in { opacity: 0; }
.st-miss { color: #ff6b1a; }
.scr-dial .st-miss { color: #dfe6ee; }
.call-num { margin-top: 2cqi; font-size: 9cqi; font-weight: 500; letter-spacing: -.02em; }
.call-where { font-size: 4.2cqi; color: #dfe6ee; }
.rings { position: absolute; left: 50%; top: 52%; width: 22cqi; height: 22cqi; transform: translate(-50%, -50%); }
.rings i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(251, 247, 240, .25); opacity: 0; }
.call-actions { position: absolute; left: 13cqi; right: 13cqi; bottom: 15cqi; display: flex; justify-content: space-between; }
.call-actions.one { justify-content: center; }
.ca { display: grid; place-items: center; width: 21cqi; height: 21cqi; border-radius: 50%; font-size: 8cqi; color: #fbf7f0; }
.ca.decline { background: #ff6b1a; }
.ca.decline .icon { transform: rotate(135deg); }
.ca.accept { background: #3d5a80; }

.scr-chat { background: #14243d; }
.chat-head { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4cqi; padding: 1cqi 5cqi 3.4cqi; border-bottom: 1px solid rgba(251, 247, 240, .08); }
.chat-head .icon { position: absolute; left: 4cqi; top: 4cqi; font-size: 6cqi; color: #dfe6ee; }
.avatar { display: inline-grid; place-items: center; width: 12cqi; height: 12cqi; border-radius: 50%; background: linear-gradient(180deg, #3d5a80, #5d6779); color: #fbf7f0; font-size: 4.4cqi; font-weight: 600; }
.chat-name { font-size: 3.8cqi; color: #fbf7f0; }
.chat-body { position: relative; padding: 4cqi 4cqi; }
.sysline { display: flex; align-items: center; justify-content: center; gap: 1.4cqi; font-size: 3.5cqi; color: #dfe6ee; margin-bottom: 4cqi; }
.sysline .icon { color: #ff6b1a; }
.typing { position: absolute; left: 4cqi; top: 12cqi; display: inline-flex; gap: 1.4cqi; padding: 3.4cqi 4cqi; border-radius: 6cqi; background: #14243d; opacity: 0; }
.typing i { width: 1.9cqi; height: 1.9cqi; border-radius: 50%; background: rgba(251, 247, 240, .6); }
.bubble { max-width: 84%; padding: 3.2cqi 4.2cqi; border-radius: 6cqi 6cqi 6cqi 1.6cqi; background: #14243d; font-size: 4.1cqi; line-height: 1.38; transform-origin: 0 100%; }
.link-card { width: 84%; margin-top: 2cqi; border-radius: 4.5cqi; overflow: hidden; background: #14243d; border: 1px solid rgba(251, 247, 240, .06); }
.link-card span { display: block; padding: 0 3.6cqi; }
.lc-top { padding-top: 2.6cqi !important; font-size: 3.2cqi; color: #dfe6ee; }
.lc-title { padding-bottom: 2.8cqi !important; font-size: 3.8cqi; font-weight: 600; }

.scr-form, .scr-sent { background: var(--paper); color: var(--ink); }
.scr-form .sb, .scr-sent .sb { color: var(--ink); }
.url-bar { margin: 0 5cqi; padding: 1.8cqi; border-radius: 3cqi; background: rgba(20, 36, 61, .07); font-size: 3.5cqi; text-align: center; color: var(--ink-2); }
.wf { padding: 3.6cqi 6cqi; }
.wf-brand { display: flex; align-items: center; gap: 2cqi; font-size: 3.8cqi; font-weight: 600; }
.wf-brand .avatar { width: 7cqi; height: 7cqi; font-size: 2.8cqi; }
.wf-title { margin-top: 2.6cqi; font-size: 6.4cqi; font-weight: 600; letter-spacing: -.02em; }
.wf-label { margin: 3cqi 0 1.4cqi; font-size: 3.4cqi; font-weight: 600; color: var(--ink-3); }
.chips { display: flex; flex-wrap: wrap; gap: 1.4cqi; }
.chips span { padding: 1.5cqi 3cqi; border-radius: 99px; border: 1px solid rgba(20, 36, 61, .16); font-size: 3.5cqi; }
.chips .pick { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.wf-input { min-height: 8.6cqi; padding: 2.2cqi 3cqi; border: 1px solid rgba(20, 36, 61, .16); border-radius: 2.6cqi; background: #fbf7f0; font-size: 3.8cqi; }
.wf-input.tall { min-height: 13cqi; }
.typed { display: inline-block; }
.wf-btn { margin-top: 3.6cqi; padding: 2.8cqi; border-radius: 99px; background: var(--orange); color: var(--navy-deep); text-align: center; font-size: 4.2cqi; font-weight: 600; }
.sent { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 26cqi 9cqi 0; }
.sent-ico { display: grid; place-items: center; width: 17cqi; height: 17cqi; border-radius: 50%; background: var(--orange); color: var(--navy-deep); font-size: 8cqi; }
.sent-title { margin-top: 5cqi; font-size: 6.4cqi; font-weight: 600; letter-spacing: -.02em; }
.sent-text { margin-top: 2cqi; font-size: 4cqi; line-height: 1.45; color: var(--ink-2); }

.scr-pro .notif { margin: 8cqi 3.4cqi 0; }
.rt-line { display: flex; justify-content: space-between; gap: 2cqi; margin-top: 1.4cqi; font-size: 4cqi; }
.rt-line span { color: #dfe6ee; }
.rt-line .hot { color: var(--orange); }
.n-rt .n-title { margin-bottom: 1cqi; }
.rt-quote { margin-top: 2.4cqi; font-size: 3.9cqi; color: #fbf7f0; }
.rt-btn { display: inline-flex; align-items: center; gap: 1.6cqi; margin-top: 3.4cqi; padding: 2.2cqi 4.4cqi; border-radius: 99px; background: var(--orange); color: var(--navy-deep); font-size: 3.9cqi; font-weight: 600; }

.how-cta { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; padding-top: 40px; padding-bottom: var(--sec); }
@media (min-width: 1024px) { .how-cta { padding-top: 24px; } }

/* ---------- Questions ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq-intro { margin-top: 16px; color: var(--text-2); }
.faq-intro a { color: var(--text); text-underline-offset: .2em; }
.trades { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.trades a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: rgba(251, 247, 240, .04); text-decoration: none; font-size: 14px; color: var(--text-2); transition: color .2s, border-color .2s; }
.trades a:hover { color: var(--text); border-color: rgba(251, 247, 240, .34); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 64px; padding: 18px 0; cursor: pointer; list-style: none; font-size: 17.5px; font-weight: 500; letter-spacing: -.01em; }
.faq-list summary::-webkit-details-marker { display: none; }
.qi { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(251, 247, 240, .04); font-size: 16px; transition: transform .4s var(--ease), background-color .3s, color .3s; }
details[open] .qi { transform: rotate(45deg); background: var(--orange); border-color: var(--orange); color: var(--navy-deep); }
.qa { padding: 0 52px 24px 0; color: var(--text-2); font-size: 16px; line-height: 1.6; max-width: 40em; }
.qa a { color: var(--text); text-underline-offset: .2em; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: 360px minmax(0, 1fr); gap: 96px; align-items: start; }
  .faq-side { position: sticky; top: calc(var(--hdr) + 48px); }
  .faq-list summary { font-size: 19px; min-height: 76px; }
}

/* ---------- Pied de page ---------- */
.foot { position: relative; padding: 0 0 calc(32px + env(safe-area-inset-bottom)); }
.foot::before { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; background: linear-gradient(180deg, transparent, rgba(20, 36, 61, .9) 30%); }
/* dernier appel : on retrouve l'ambiance floutée du hero, dans un panneau */
.foot-cta { position: relative; isolation: isolate; overflow: hidden; display: grid; gap: 32px; margin-bottom: 64px; padding: 56px 28px; border-radius: var(--r-panel); border: 1px solid var(--line); background: var(--abyss) url("../../media/hero-blur-poster.jpg") center / cover no-repeat; box-shadow: inset 0 1px 0 rgba(251, 247, 240, .08), 0 50px 100px -50px rgba(20, 36, 61, .9); }
.foot-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(110% 120% at 0% 100%, rgba(20, 36, 61, .35), rgba(20, 36, 61, .82) 70%), linear-gradient(180deg, rgba(20, 36, 61, .35), rgba(20, 36, 61, .6)); }
.foot-cta-act { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
@media (min-width: 1024px) { .foot-cta { grid-template-columns: 1.7fr 1fr; align-items: end; gap: 64px; padding: 88px 72px; } .foot-cta-act { align-items: flex-end; text-align: right; } }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.foot-contact { display: flex; flex-wrap: wrap; gap: 10px; font-size: 14.5px; color: var(--text-2); }
.foot-contact a { text-decoration: none; }
.foot-contact a:hover { color: var(--text); }
.foot-pages { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 28px; font-size: 14px; }
.foot-pages a { color: var(--text-2); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.foot-pages a:hover { color: var(--text); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; font-size: 13px; color: var(--text-3); }
.foot-legal nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.foot-legal a { color: var(--text-3); text-underline-offset: .2em; min-height: 32px; display: inline-flex; align-items: center; }
.foot-legal a:hover { color: var(--text); }

/* ---------- Barre mobile ---------- */
.mbar { position: fixed; z-index: 25; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); transform: translateY(140%); transition: transform .5s var(--ease); }
.mbar.show { transform: none; }
html.cookie-open .mbar { transform: translateY(140%); }
@media (min-width: 1024px) { .mbar { display: none; } }

/* ---------- Bannière cookies (consent.js) ---------- */
.cookie { position: fixed; z-index: 40; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: 440px; padding: 20px; border-radius: 22px; background: rgba(20, 36, 61, .82); border: 1px solid var(--line-2); color: var(--text); box-shadow: inset 0 1px 0 rgba(251, 247, 240, .08), 0 30px 60px -24px rgba(20, 36, 61, .8); font-size: 14px; line-height: 1.5; }
.cookie[hidden] { display: none; }
.cookie h2 { margin-bottom: 6px; font-size: 15.5px; font-weight: 600; }
.cookie p { color: var(--text-2); }
.cookie a { color: var(--text); }
.cookie-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.cookie .btn { min-height: 48px; font-size: 15px; background: rgba(251, 247, 240, .06); color: var(--text); border: 1px solid var(--line-2); }
.cookie .btn:hover { border-color: rgba(251, 247, 240, .4); }
@media (min-width: 600px) { .cookie { left: 20px; right: auto; bottom: 20px; } }

/* ---------- Apparitions ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }
.nb-facts .reveal:nth-child(2) { transition-delay: .08s; } .nb-facts .reveal:nth-child(3) { transition-delay: .16s; }

/* ---------- Mouvement (désactivé si l'utilisateur réduit les animations) ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* hero : le téléphone monte, l'appel manqué arrive, puis la demande du client */
  .js .hero-in > .tag, .js .hero-title { animation: rise 1.1s var(--ease) both; }
  .js .hero-title { animation-delay: .08s; }
  .js .hero-sub, .js .hero-cta { animation: rise 1s var(--ease) 1.6s both; }
  .js .ph-hero { animation: phoneIn 1.4s var(--ease) .15s both; }
  .js .ph-hero .n-call { animation: notifIn .7s var(--spring) .9s both; }
  .js .ph-hero .n-new { animation: notifIn .8s var(--spring) 1.7s both; }

  /* étape 1 : ça sonne chez vous, le client attend, personne ne décroche */
  .how-stage[data-step="1"] .st-in { animation: hold 1.9s steps(1, end) both; }
  .how-stage[data-step="1"] .st-miss { animation: fadeIn .4s 1.9s both; }
  .how-stage[data-step="1"] .rings i { animation: ring 1s ease-out 2 both; }
  .how-stage[data-step="1"] .rings i:nth-child(2) { animation-delay: .3s; }
  .how-stage[data-step="1"] .rings i:nth-child(3) { animation-delay: .6s; }
  /* étape 2 : « en train d'écrire », puis le SMS et sa carte de lien */
  .how-stage[data-step="2"] .typing { animation: hold 1s steps(1, end) .25s both; }
  .how-stage[data-step="2"] .bubble { animation: pop .5s var(--spring) 1.25s both; }
  .how-stage[data-step="2"] .link-card { animation: rise .6s var(--ease) 1.7s both; }
  /* étape 3 : choix, saisie, envoi */
  .how-stage[data-step="3"] .c1 .pick { animation: pick .3s .7s both; }
  .how-stage[data-step="3"] .c2 .pick { animation: pick .3s 1.2s both; }
  .how-stage[data-step="3"] .typed { animation: type .6s steps(8, end) 1.6s both; }
  .how-stage[data-step="3"] .typed.t2 { animation: type 1.1s steps(18, end) 2.2s both; }
  .how-stage[data-step="3"] .wf-btn { animation: press .4s 3.4s both; }
  /* étape 4 : la demande arrive chez vous */
  .how-stage[data-step="4"] .n-rt { animation: notifIn .8s var(--spring) .35s both; }
  .how-stage[data-step="4"] .sent-ico { animation: pop .5s var(--spring) .2s both; }
  /* le trait orange suit le sens de l'échange : client vers vous (1, 4), vous vers le client (2) */
  .how-stage .flow-run { animation: flowBack 1.8s var(--ease) .2s infinite; }
  .how-stage[data-step="2"] .flow-run { animation-name: flow; }
  .how-stage[data-step="3"] .flow-run { animation: none; opacity: 0; }
}
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes phoneIn { from { opacity: 0; transform: translateY(70px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes notifIn { from { opacity: 0; transform: translateY(-14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes hold { 0% { opacity: 1; } 100% { opacity: 0; } }
@keyframes ring { 0% { opacity: .9; transform: scale(.6); } 100% { opacity: 0; transform: scale(2.4); } }
@keyframes pop { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes pick { from { background: transparent; color: var(--ink); border-color: rgba(20, 36, 61, .16); } to { background: var(--navy); color: var(--paper); border-color: var(--navy); } }
@keyframes type { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes press { 0%, 100% { transform: none; } 50% { transform: scale(.95); filter: brightness(.92); } }
@keyframes flow { from { stroke-dashoffset: 14; } to { stroke-dashoffset: -100; } }
@keyframes flowBack { from { stroke-dashoffset: -100; } to { stroke-dashoffset: 14; } }

@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .tilt, .duo-ph, .js .hs { transition: none; }
  .flow-run { stroke-dashoffset: -43; }
}
@media (prefers-reduced-transparency: reduce) {
  .glass, .notif, .cookie, .hdr.is-solid, .btn-glass, .tag { background: var(--navy); }
}

/* ---------- Ordinateur : compositions moins linéaires (accueil) ---------- */
.faq-more { margin-top: 28px; color: var(--text-3); font-size: 15px; }
.faq-more a { color: var(--text); text-underline-offset: .2em; }
@media (min-width: 1024px) {

  /* Questions : grand titre, liste dans un panneau en verre */
  .faq-side .h2 { font-size: clamp(48px, 5vw, 68px); line-height: 1; }
  .faq-list { padding: 8px 44px; border-radius: 36px; border: 1px solid var(--line); background: rgba(251, 247, 240, .035); box-shadow: inset 0 1px 0 rgba(251, 247, 240, .06), 0 40px 90px -50px rgba(20, 36, 61, .8); }
  .faq-list details:last-child { border-bottom: 0; }
  .faq-more { padding-top: 24px; border-top: 1px solid var(--line); }
}
@media (prefers-reduced-transparency: reduce) { .faq-list { background: rgba(20, 36, 61, .9); } }

/* ---------- Ordinateur : hero en deux colonnes, titre à gauche, téléphone à droite (mobile inchangé) ---------- */
@media (min-width: 1024px) {
  .hero-in { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); grid-template-rows: 1fr auto auto auto auto 1fr; column-gap: 72px;
    justify-items: start; align-items: start; text-align: left; width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; min-height: 100svh; padding: calc(var(--hdr) + 24px) var(--gutter) 56px; }
  .hero-phone { display: contents; }
  .hero-in .tag { grid-column: 1; grid-row: 2; }
  .hero-title { grid-column: 1; grid-row: 3; margin-top: 24px; font-size: clamp(54px, 5.6vw, 84px); line-height: 1.02; max-width: 8.6em; text-wrap: balance; }
  .hero-sub { grid-column: 1; grid-row: 4; margin-top: 28px; max-width: 24em; font-size: 19px; text-align: left; }
  .hero-cta { grid-column: 1; grid-row: 5; margin-top: 36px; }
  .hero-phone .tilt { grid-column: 2; grid-row: 1 / -1; justify-self: center; align-self: center; }
  .hero-phone .ph { height: clamp(600px, calc(100svh - 150px), 800px); }
}

/* ---------- Avatar ReTexto (SMS reçu par le client) ---------- */
.avatar-rt { background: var(--navy-deep); box-shadow: inset 0 0 0 1px rgba(251, 247, 240, .14); --logo-ink: #fbf7f0; }
.avatar-rt svg { width: 5.8cqi; height: 5.65cqi; }

/* ---------- Mouvement (léger : uniquement opacité et translation, rien qui force à recalculer le flou) ---------- */
:root { interpolate-size: allow-keywords; }

/* Feuilles : une grande section remonte par-dessus la précédente */
.sheet { position: relative; z-index: 2; margin-top: -48px; padding-top: calc(var(--sec) * .62 + 24px); border-radius: 32px 32px 0 0; border-top: 1px solid rgba(251, 247, 240, .1); box-shadow: 0 -40px 90px -30px rgba(20, 36, 61, .85); }
.sheet-solid { background: linear-gradient(180deg, #14243d 0, #14243d 160px, #14243d calc(100% - 220px), rgba(20, 36, 61, 0) 100%); }
.faq.sheet { background: linear-gradient(180deg, rgba(20, 36, 61, .92) 0, rgba(20, 36, 61, .6) 240px, rgba(20, 36, 61, 0) 100%); }
@media (min-width: 1024px) { .sheet { margin-top: -72px; padding-top: calc(var(--sec) * .62 + 32px); border-radius: 56px 56px 0 0; } }

/* Titres : légère montée, sans flou */
.faq-list details::details-content { block-size: 0; overflow: clip; transition: block-size .4s var(--ease), content-visibility .4s allow-discrete; }
.faq-list details[open]::details-content { block-size: auto; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes sheetUp { from { translate: 0 140px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
    @keyframes panelUp { from { translate: 0 90px; opacity: 0; } to { translate: 0 0; opacity: 1; } }
    @keyframes heroFade { from { opacity: 1; translate: 0 0; } to { opacity: 0; translate: 0 -9svh; } }
    @keyframes heroDim { 0% { opacity: 1; } 78% { opacity: .14; } 100% { opacity: 0; } }
    /* fondu complet AVANT de masquer le hero : plus de saut de fond à la fin de la superposition */
    @keyframes heroGone { 0%, 78% { opacity: 1; visibility: visible; } 99% { opacity: 0; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
    .faq.sheet { animation: sheetUp linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
    .foot-cta { animation: panelUp linear both; animation-timeline: view(); animation-range: entry 0% entry 60%; }
  }
}

/* Ordinateur assez haut : le hero reste en place, la feuille des chiffres glisse par-dessus et l'éteint */
@media (min-width: 1024px) and (min-height: 720px) {
  .stack { position: relative; }
  .hero { position: sticky; top: 0; height: 100svh; }
  .hero-in { height: 100%; min-height: 0; padding-top: calc(var(--hdr) + 12px); padding-bottom: 40px; }
  .hero-phone .ph { height: clamp(540px, calc(100svh - 190px), 800px); }
  .sheet-solid { margin-top: 0; min-height: 100svh; box-shadow: none; }
}
@media (prefers-reduced-motion: no-preference) and (min-width: 1024px) and (min-height: 720px) {
  @supports (animation-timeline: scroll()) {
    .hero-in { animation: heroFade linear both; animation-timeline: scroll(root); animation-range: 0 90svh; }
    .hero-media { animation: heroDim linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
    .hero { animation: heroGone linear both; animation-timeline: scroll(root); animation-range: 0 100svh; }
  }
}
/* Mobile et petits écrans : la feuille remonte avec un léger fondu à l'entrée */
@media (prefers-reduced-motion: no-preference) and (max-width: 1023px), (prefers-reduced-motion: no-preference) and (max-height: 719px) {
  @supports (animation-timeline: view()) {
    .sheet-solid { animation: sheetUp linear both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
  }
}

/* Entrée de page et transition entre les pages : un simple fondu, le plus léger possible */
@media (prefers-reduced-motion: no-preference) {
  @keyframes pageIn { from { opacity: 0; } to { opacity: 1; } }
  main { animation: pageIn .3s ease-out backwards; }
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: .2s; }
  ::view-transition-old(root) { animation: .15s ease-in both vtFadeOut; }
  ::view-transition-new(root) { animation: .2s ease-out both vtFadeIn; }
  @keyframes vtFadeOut { to { opacity: 0; } }
  @keyframes vtFadeIn { from { opacity: 0; } }
}
@media (prefers-reduced-transparency: reduce) { .faq-list { background: rgba(20, 36, 61, .9); } }
.sheet-solid { padding-bottom: calc(var(--sec) * .55); }

/* Pendant le défilement, le fond arrête de dériver : fluidité maximale, il repart à l'arrêt */
html.is-scrolling::before, html.is-scrolling::after, html.is-scrolling body::before { animation-play-state: paused; }

/* ---------- Questions sur fond crème + photo alignée sur la liste ---------- */
.faq.sheet { background: var(--paper); color: var(--ink); border-top: 0; border-radius: 32px; box-shadow: 0 -30px 80px -30px rgba(20, 36, 61, .6); padding-bottom: calc(var(--sec) * .62); margin-bottom: 32px; }
.faq .h2, .faq summary { color: var(--ink); }
.faq-intro, .faq .qa { color: var(--ink-2); }
.faq .qa a, .faq .faq-more a, .faq .faq-intro a { color: var(--ink); }
.faq .faq-more { color: var(--ink-3); border-top-color: rgba(20, 36, 61, .12); }
.faq .trades a { background: #fbf7f0; border-color: rgba(20, 36, 61, .14); color: var(--ink-2); }
.faq .trades a:hover { color: var(--ink); border-color: rgba(20, 36, 61, .4); }
.faq .faq-list details { border-bottom-color: rgba(20, 36, 61, .12); }
.faq .qi { background: #fbf7f0; border-color: rgba(20, 36, 61, .16); color: var(--ink); }
.faq details[open] .qi { background: var(--orange); border-color: var(--orange); color: var(--navy-deep); }
.faq-photo { position: relative; margin-top: 40px; border-radius: 24px; overflow: hidden; background: #dfe6ee; box-shadow: 0 30px 60px -34px rgba(20, 36, 61, .55); }
.faq-photo img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 38% 50%; }
@media (min-width: 1024px) {
  .faq.sheet { border-radius: 56px; margin-bottom: 48px; }
  .faq-grid { align-items: stretch; }
  .faq-side { position: static; display: flex; flex-direction: column; }
  .faq-photo { flex: 1 1 auto; min-height: 240px; max-height: 560px; }
  .faq-photo img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto; }
  .faq-list { background: #fbf7f0; border-color: rgba(20, 36, 61, .08); box-shadow: 0 30px 70px -45px rgba(20, 36, 61, .35); }
}
@media (max-width: 1023px) {
  /* Mobile : titre, métiers, contact, puis les questions, et la photo en dernier */
  .faq-grid { row-gap: 0; }
  .faq-side { display: contents; }
  .faq-list { margin-top: 40px; order: 2; }
  .faq-photo { margin-top: 40px; order: 3; }
}
@media (prefers-reduced-transparency: reduce) { .faq-list { background: #fbf7f0; } }

/* ---------- Mobile : bannière cookies compacte (le texte légal reste complet) ---------- */
@media (max-width: 599px) {
  .cookie { left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); padding: 12px 14px 14px; border-radius: 18px; font-size: 12.5px; line-height: 1.4; }
  .cookie h2 { margin-bottom: 3px; font-size: 13.5px; }
  .cookie-actions { gap: 8px; margin-top: 10px; }
  .cookie .btn { min-height: 40px; font-size: 14px; }
}

/* Chiffres : 76 % et 10 en orange, le reste en blanc */
.nb-big > span:first-child { color: var(--orange); }
.nb-facts li:nth-child(3) .nb-num { color: var(--orange); }
.nb-txt { color: var(--text); }

/* ---------- Mobile : barre « Réserver ma place » collée au bas de l'écran, pareille sur tous les téléphones ----------
   Avant : bouton flottant décalé de 12 px + zone de sécurité, masqué par translateY(140 %) : sur les iPhone à barre
   d'accueil, une partie dépassait encore. Maintenant : barre pleine largeur, zone de sécurité DANS la barre,
   masquée par translateY(100 %) + visibility (jamais à moitié visible). */
@media (max-width: 1023px) {
  .mbar { left: 0; right: 0; bottom: 0; transform: translateY(100%); visibility: hidden; transition: transform .35s var(--ease), visibility 0s linear .35s; }
  .mbar.show { transform: none; visibility: visible; transition: transform .35s var(--ease), visibility 0s; }
  html.cookie-open .mbar { transform: translateY(100%); visibility: hidden; }
  .mbar .btn-block { min-height: 0; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)) 24px; border-radius: 20px 20px 0 0; font-size: 17px; box-shadow: inset 0 1px 0 rgba(251, 247, 240, .35), 0 -14px 34px -16px rgba(20, 36, 61, .85); }
  .mbar .btn-block:active { transform: none; background: #ff6b1a; }
}

/* ---------- Mobile : « Comment ça marche » se pilote aussi en glissant (gauche / droite) ou avec les flèches ---------- */
.how-nav { display: none; }
@media (max-width: 1023px) {
  .js .how-stage { touch-action: pan-y; }
  .js .how-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
  .how-arrow { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); background: rgba(251, 247, 240, .05); color: var(--text); font-size: 18px; transition: opacity .3s, background-color .2s; }
  .how-arrow:active { background: rgba(251, 247, 240, .14); }
  .how-arrow:disabled { opacity: .3; }
  .how-arrow-next .icon { transform: scaleX(-1); }
  .how-hint { font-size: 13px; color: var(--text-3); text-align: center; }
  .js .how-prog button { min-height: 28px; }
  .duo { --phH: min(460px, calc(100svh - var(--hdr) - 290px), calc((100vw - 24px) * 1.3)); translate: var(--drag, 0px) 0; transition: translate .5s var(--spring); }
  .how-stage.is-dragging .duo { transition: none; }
}

/* Mobile : pas de boutons métiers dans les Questions (les liens sont déjà dans « C'est pour mon métier ? ») */
@media (max-width: 1023px) { .faq .trades { display: none; } }

/* Fondu de sortie (navigateurs sans transition native, voir la fin de v5.js / main.js) */
html.is-leaving body { opacity: 0; transition: opacity .14s ease-in; }
