/* =====================================================================
   ScreenAds — page d'accueil
   Dépend de base.css (jetons, boutons, révélations).
   Les tailles de la scène du héros et de la démo « Fonctionnement »
   sont en em : on agrandit/réduit tout l'ensemble via font-size.
   ===================================================================== */

section { position: relative; }

/* =========================== HÉROS =========================== */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  padding: calc(var(--header-h) + 28px) 0 64px;
  display: flex; align-items: center;
  overflow: hidden;
}
.hero-in { display: grid; gap: 40px; align-items: center; }
.hero-text { max-width: 680px; position: relative; z-index: 2; }
.hero-tag { font-size: 14px; }
.hero-titre { margin-top: 22px; font-size: clamp(58px, 7.6vw, 118px); }
.hero-lead { margin-top: 26px; }
.hero-cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.hero-meta li { border: 2px solid var(--encre); border-radius: 999px; padding: 3px 12px; font-size: 13.5px; font-weight: 600; }

.hero-stage-wrap { position: relative; display: flex; justify-content: center; }
.stage-par { position: relative; z-index: 1; perspective: 1600px; will-change: transform; }

/* soleil moutarde découpé derrière l'écran */
.hero-disc {
  position: absolute; z-index: 0; left: 40%; top: 50%;
  width: min(92%, 640px); aspect-ratio: 1; margin-left: max(-46%, -320px); transform: translateY(-50%);
  background: var(--moutarde);
  clip-path: polygon(100.0% 50.0%, 94.6% 55.9%, 98.3% 62.9%, 91.6% 67.2%, 93.3% 75.0%, 85.7% 77.4%, 85.4% 85.4%, 77.4% 85.7%, 75.0% 93.3%, 67.2% 91.6%, 62.9% 98.3%, 55.9% 94.6%, 50.0% 100.0%, 44.1% 94.6%, 37.1% 98.3%, 32.8% 91.6%, 25.0% 93.3%, 22.6% 85.7%, 14.6% 85.4%, 14.3% 77.4%, 6.7% 75.0%, 8.4% 67.2%, 1.7% 62.9%, 5.4% 55.9%, 0.0% 50.0%, 5.4% 44.1%, 1.7% 37.1%, 8.4% 32.8%, 6.7% 25.0%, 14.3% 22.6%, 14.6% 14.6%, 22.6% 14.3%, 25.0% 6.7%, 32.8% 8.4%, 37.1% 1.7%, 44.1% 5.4%, 50.0% 0.0%, 55.9% 5.4%, 62.9% 1.7%, 67.2% 8.4%, 75.0% 6.7%, 77.4% 14.3%, 85.4% 14.6%, 85.7% 22.6%, 93.3% 25.0%, 91.6% 32.8%, 98.3% 37.1%, 94.6% 44.1%);
  animation: soleil 60s linear infinite;
}
@keyframes soleil { to { transform: translateY(-50%) rotate(360deg); } }

/* tampon tournant (touche piment) */
.tampon {
  position: absolute; z-index: 3; right: -3%; top: -44px;
  width: clamp(92px, 12vw, 140px); aspect-ratio: 1;
  color: var(--piment);
}
.tampon svg { width: 100%; height: 100%; animation: tourne 18s linear infinite; }
.tampon text { font-family: var(--font-titre); font-weight: 800; font-size: 19px; letter-spacing: 1.5px; fill: currentColor; }
.tampon span {
  position: absolute; inset: 24%; border-radius: 50%; background: var(--piment); color: var(--creme);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: var(--font-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(14px, 1.7vw, 20px); line-height: .9;
  transform: rotate(-12deg);
}

/* annotation manuscrite + flèche */
.hero-annot { position: absolute; z-index: 3; left: -4%; top: -1%; display: flex; flex-direction: column; align-items: flex-start; pointer-events: none; }
.hero-annot .note { font-size: clamp(22px, 2.2vw, 30px); transform: rotate(-6deg); color: var(--encre); }
.hero-annot svg { width: clamp(70px, 8vw, 110px); margin-left: 40%; }
.hero-annot path { stroke: var(--encre); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

@media (min-width: 1024px) {
  .hero-in { grid-template-columns: minmax(0, 1fr) auto; gap: 32px; }
}
@media (max-width: 639px) {
  .hero-annot { display: none; }
  .tampon { right: 0; top: -24px; }
}

.hero-scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--encre); }
.hero-scroll span { font-family: var(--font-main); font-size: 22px; line-height: 1; }
.hero-scroll i { width: 2px; height: 34px; background: var(--trait); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ""; position: absolute; left: 0; top: 0; width: 2px; height: 14px; background: var(--encre); animation: goutte 1.8s var(--ease-io) infinite; }
@keyframes goutte { from { transform: translateY(-14px); } to { transform: translateY(34px); } }
@media (max-width: 1023px) { .hero-scroll { display: none; } .hero { padding-bottom: 48px; } }

/* ---------- Scène : TV + téléphone ---------- */
.stage {
  position: relative;
  width: 52em; height: 66em;
  font-size: calc((100vw - 2 * var(--gutter)) / 53);
  transform-style: preserve-3d;
  transition: transform .8s var(--ease);
}
@media (min-width: 640px) { .stage { font-size: min(10px, calc((100vw - 2 * var(--gutter)) / 53)); } }
@media (min-width: 1024px) {
  .stage { font-size: max(7px, min(10.5px, calc((100vh - 150px) / 67), calc((50vw - 60px) / 53))); }
}

/* faisceau + paquets */
.beam { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; overflow: visible; pointer-events: none; }
.beam-path { fill: none; stroke: var(--encre); stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 1 9; animation: flux 1s linear infinite; }
@keyframes flux { to { stroke-dashoffset: -20; } }
.packets { position: absolute; inset: 0; z-index: 6; pointer-events: none; }
.packets i {
  position: absolute; left: 0; top: 0; width: 1.4em; height: 1.4em; margin: -.7em 0 0 -.7em; border-radius: 50%;
  background: var(--moutarde); border: .22em solid var(--encre);
  opacity: 0; will-change: transform, opacity;
}

/* TV */
.tv {
  position: absolute; left: 16em; top: 0; width: 36em; height: 64em; z-index: 1;
  padding: .8em .8em 1.5em; border-radius: .6em;
  background: var(--ardoise);
  border: .25em solid var(--encre);
  box-shadow: 1.4em 1.4em 0 var(--encre);
}
.tv-screen { position: relative; width: 100%; height: 100%; overflow: hidden; border-radius: .2em; background: #000; }
.tv-bar { position: absolute; left: 1.2em; right: 1.2em; bottom: .55em; height: .25em; background: rgba(244, 237, 225, .15); overflow: hidden; }
.tv-bar i { display: block; height: 100%; width: 100%; background: var(--moutarde); transform-origin: left; transform: scaleX(0); }
.tv-label {
  position: absolute; left: 16em; top: 65.6em; width: 36em; text-align: center;
  font-family: var(--font-main); font-size: max(15px, 2em); line-height: 1; color: var(--encre);
}
.tv-label .live { display: inline-block; width: .4em; height: .4em; border-radius: 50%; background: #2F9E5B; margin-right: .4em; vertical-align: .1em; animation: pouls 1.6s ease-in-out infinite; }
@keyframes pouls { 50% { opacity: .3; } }
.tv-flash { position: absolute; inset: 0; z-index: 5; pointer-events: none; background: var(--moutarde); opacity: 0; mix-blend-mode: multiply; }
.tv.is-receiving .tv-flash { animation: flash .7s var(--ease) both; }
@keyframes flash { 0% { opacity: 0; } 20% { opacity: .5; } 100% { opacity: 0; } }

/* Diapos (contenu fictif affiché sur la TV) */
.slide {
  position: absolute; inset: 0; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 4.6em 2.8em 2.6em;
  visibility: hidden;
}
.slide.is-cur { visibility: visible; z-index: 2; }
.slide.is-prev { visibility: visible; z-index: 1; }
.slide .r { opacity: 0; }
.slide.is-cur .r { animation: monte .8s var(--ease) both; animation-delay: calc(.45s + var(--d, 0) * .11s); }
@keyframes monte { from { opacity: 0; transform: translateY(1.6em); } to { opacity: 1; transform: none; } }

.s-or.is-cur    { animation: tr-glisse 1s var(--ease-io) both; }
.s-midi.is-cur  { animation: tr-volet 1.1s var(--ease-io) both; }
.s-promo.is-cur { animation: tr-rideau 1s var(--ease-io) both; }
.s-soir.is-cur  { animation: tr-zoom 1.1s var(--ease) both; }
.slide.is-prev  { animation: tr-sort 1s var(--ease-io) both; }
@keyframes tr-glisse { from { transform: translateX(100%); } to { transform: none; } }
@keyframes tr-volet  { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes tr-rideau { from { clip-path: inset(0 50% 0 50%); } to { clip-path: inset(0 0 0 0); } }
@keyframes tr-zoom   { from { transform: scale(1.2); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes tr-sort   { from { transform: none; opacity: 1; } to { transform: translateX(-30%); opacity: .2; } }
.no-intro .slide.is-cur, .no-intro .slide.is-cur .r { animation: none; opacity: 1; }

.s-kicker { font-family: var(--font-texte); font-weight: 700; font-size: 1.15em; letter-spacing: .12em; text-transform: uppercase; }
.s-title { font-family: var(--font-titre); font-weight: 900; text-transform: uppercase; line-height: .86; }
.s-title em { font-style: normal; }
.s-sub { font-family: var(--font-texte); font-style: italic; font-size: 1.55em; line-height: 1.25; }
.s-price { font-family: var(--font-main); font-size: 5em; line-height: 1; }

/* 1. Noir & Or */
.s-or { background: #111110; color: #F2EBDD; gap: 1.2em; }
.s-or .s-kicker { color: #C9A45C; margin-top: .6em; }
.s-or .s-title { font-size: 6.4em; font-weight: 800; }
.s-or .s-sub { color: #BDB4A4; }
.s-or .s-price { color: #C9A45C; }
.s-foot { margin-top: auto; font-size: 1em; letter-spacing: .25em; text-transform: uppercase; color: #8C8577; }
.s-ring { position: relative; width: 16em; height: 16em; color: #C9A45C; flex: none; }
.s-ring svg { width: 100%; height: 100%; animation: tourne 28s linear infinite; }
.s-ring text { font-family: var(--font-titre); font-weight: 700; font-size: 15px; letter-spacing: 3px; fill: currentColor; }
.s-ring-in { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-main); font-size: 3.6em; color: #F2EBDD; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* 2. Formule midi : ardoise à la craie */
.s-midi { background: #23302B; color: #E8E2D0; padding-top: 5.4em; gap: .9em; }
.s-midi .s-title { font-family: var(--font-main); text-transform: none; font-weight: 400; font-size: 6.4em; line-height: .9; }
.s-midi .s-title em { color: #F2B630; }
.s-midi .s-kicker { color: #F2B630; font-size: 1em; }
.s-menu { width: 100%; margin-top: 2.4em; display: flex; flex-direction: column; gap: 1.8em; text-align: left; }
.s-menu li { display: flex; align-items: baseline; gap: .6em; font-size: 1.7em; }
.s-menu li i { flex: 1; border-bottom: 2px dotted #6B7C74; transform: translateY(-.25em); }
.s-menu li b { font-family: var(--font-main); font-weight: 400; font-size: 1.25em; color: #F2B630; }
.s-box { margin-top: auto; width: 100%; border: 2px dashed #E8E2D0; padding: .7em; font-family: var(--font-main); font-size: 2em; }
.s-clock { position: absolute; top: 1.6em; right: 1.6em; width: 3em; height: 3em; border: 2px solid #6B7C74; border-radius: 50%; }
.s-clock i { position: absolute; left: 50%; bottom: 50%; width: 2px; margin-left: -1px; background: #F2B630; transform-origin: bottom; }
.s-clock i:nth-child(1) { height: 1em; animation: tourne 6s linear infinite; }
.s-clock i:nth-child(2) { height: .7em; animation: tourne 72s linear infinite; }

/* 3. Promo */
.s-promo { background: #F2B630; color: #13362B; justify-content: center; gap: 1.3em; }
.s-promo .s-title { font-size: 11.5em; line-height: .8; }
.s-promo .s-title em { color: #D9432B; }
.s-hours { font-family: var(--font-titre); font-weight: 800; font-size: 3em; letter-spacing: .02em; background: #13362B; color: #F2B630; padding: .05em .4em; }
.s-promo .s-sub { font-size: 1.7em; max-width: 12em; }
.s-promo .s-kicker { font-size: 1.05em; }
.s-stripes { display: flex; gap: .8em; width: 100%; height: 1.2em; overflow: hidden; }
.s-stripes i { flex: none; width: 4em; height: 100%; background: #13362B; animation: bande 2.4s linear infinite; }
@keyframes bande { from { transform: translateX(-4.8em) skewX(-30deg); } to { transform: translateX(0) skewX(-30deg); } }
.s-badge {
  position: absolute; top: 2.4em; right: 2em; width: 7.5em; height: 7.5em; border-radius: 50%; background: #D9432B; color: #F4EDE1;
  display: flex; align-items: center; justify-content: center; font-family: var(--font-main); font-size: 1.6em;
  animation: tampon 4s var(--ease) infinite;
}
@keyframes tampon { 0%, 100% { transform: rotate(-14deg) scale(1); } 50% { transform: rotate(-4deg) scale(1.08); } }

/* 4. Menu du soir */
.s-soir { background: #14192C; color: #EDE6D6; gap: 1.2em; padding-top: 7em; }
.s-soir .s-kicker { color: #A9B4D8; font-size: 1em; }
.s-soir .s-title { font-size: 7.4em; }
.s-soir .s-title em { color: #E9C77B; }
.s-courses { display: flex; flex-direction: column; gap: 1.3em; margin-top: 1.4em; }
.s-courses li { font-family: var(--font-texte); font-style: italic; font-size: 1.9em; line-height: 1.1; display: flex; flex-direction: column; gap: .15em; }
.s-courses small { font-style: normal; font-weight: 700; font-size: .5em; letter-spacing: .2em; text-transform: uppercase; color: #8C93AE; }
.s-soir .s-price { margin-top: auto; color: #E9C77B; font-size: 4.4em; }
.s-moon { position: absolute; top: 2em; left: 2.2em; width: 3.6em; height: 3.6em; border-radius: 50%; box-shadow: inset -1em .4em 0 0 #E9C77B; transform: rotate(-20deg); }
.s-stars i { position: absolute; width: .35em; height: .35em; border-radius: 50%; background: #EDE6D6; animation: scintille 3s ease-in-out infinite; }
.s-stars i:nth-child(1) { top: 3em; left: 70%; }
.s-stars i:nth-child(2) { top: 6em; left: 86%; animation-delay: .6s; }
.s-stars i:nth-child(3) { top: 9em; left: 22%; animation-delay: 1.2s; }
.s-stars i:nth-child(4) { top: 2em; left: 45%; animation-delay: 1.8s; }
.s-stars i:nth-child(5) { top: 12em; left: 92%; animation-delay: .3s; }
.s-stars i:nth-child(6) { top: 14em; left: 8%; animation-delay: 2.1s; }
.s-stars i:nth-child(7) { top: 5em; left: 12%; animation-delay: 1.5s; }
@keyframes scintille { 0%, 100% { opacity: .2; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.2); } }

/* Téléphone */
.phone {
  position: absolute; left: 0; top: 34em; width: 14em; height: 28em; z-index: 5;
  padding: .55em; border-radius: 2em;
  background: var(--encre);
  box-shadow: .9em .9em 0 var(--piment);
}
.phone-in {
  height: 100%; border-radius: 1.5em; background: var(--creme); color: var(--encre); overflow: hidden;
  padding: 1.6em 1em 1em; display: flex; flex-direction: column;
}
.phone-top { display: flex; justify-content: space-between; align-items: baseline; }
.phone-top > span:first-child { font-family: var(--font-titre); font-weight: 900; font-size: 1.15em; text-transform: uppercase; }
.phone-top b { color: var(--piment); }
.phone-time { font-weight: 600; font-size: .8em; font-variant-numeric: tabular-nums; }
.phone-h { font-family: var(--font-titre); font-weight: 900; font-size: 2.6em; line-height: 1; margin-top: .4em; text-transform: uppercase; }
.phone-list { margin-top: .6em; border-top: 2px solid var(--encre); }
.phone-list li {
  position: relative; display: flex; align-items: center; gap: .6em;
  padding: .5em .35em; border-bottom: 1px solid var(--trait);
  font-size: .85em; font-weight: 600; color: var(--encre-doux); white-space: nowrap;
  transition: color .3s, background-color .3s;
}
.phone-list li span { overflow: hidden; text-overflow: ellipsis; }
.phone-list li i { flex: none; width: 1.7em; height: 2.4em; border-radius: .15em; border: 1px solid var(--encre); }
.phone-list li.is-cur { color: var(--encre); background: var(--moutarde); }
.phone-send {
  margin-top: auto; height: 2.8em; border-radius: .4em;
  background: var(--moutarde); color: var(--encre); border: .15em solid var(--encre); box-shadow: .25em .25em 0 var(--encre);
  display: flex; align-items: center; justify-content: center; gap: .4em;
  font-size: .9em; font-weight: 700; white-space: nowrap;
}
.phone-send svg { width: 1.1em; height: 1.1em; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.phone-send.is-press { animation: appui .5s var(--ease); }
@keyframes appui { 35% { transform: translate(.25em, .25em); box-shadow: 0 0 0 var(--encre); } }
.phone-wave { position: absolute; left: 9.8em; top: .2em; width: 0; height: 0; }
.phone-wave i { position: absolute; left: -2em; top: -2em; width: 4em; height: 4em; border-radius: 50%; border: .2em solid var(--encre); opacity: 0; }
.phone.is-sending .phone-wave i { animation: onde 1.1s cubic-bezier(.2, .6, .3, 1) both; }
.phone.is-sending .phone-wave i:nth-child(2) { animation-delay: .16s; }
.phone.is-sending .phone-wave i:nth-child(3) { animation-delay: .32s; }
@keyframes onde { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(1.8); opacity: 0; } }

/* =========================== BANDEAUX D'ENSEIGNE =========================== */
.bandeaux { position: relative; padding: 46px 0 52px; overflow: hidden; }
.marquee { position: relative; width: 112%; margin-left: -6%; border-top: 3px solid var(--encre); border-bottom: 3px solid var(--encre); overflow: hidden; }
.marquee-a { z-index: 2; background: var(--encre); color: var(--creme); transform: rotate(-2.2deg); }
.marquee-b { z-index: 1; margin-top: -10px; background: var(--moutarde); color: var(--encre); transform: rotate(1.6deg); }
.marquee-track { display: flex; width: max-content; animation: defile 34s linear infinite; }
.marquee-b .marquee-track { animation-direction: reverse; animation-duration: 42s; }
.marquee-row { display: flex; align-items: center; flex: none; padding: 12px 0; transform: skewX(var(--sk, 0deg)); transition: transform .4s var(--ease); }
.marquee-row span { font-family: var(--font-titre); font-weight: 900; text-transform: uppercase; font-size: clamp(34px, 5.2vw, 70px); line-height: 1; white-space: nowrap; }
.marquee-row i { font-style: normal; flex: none; margin: 0 .7em; font-size: clamp(20px, 2.6vw, 34px); }
.marquee-a i { color: var(--moutarde); }
.marquee-b i { color: var(--piment); font-size: clamp(12px, 1.4vw, 18px); }
.marquee-b .marquee-row span { font-size: clamp(26px, 3.6vw, 48px); }
@keyframes defile { to { transform: translateX(-50%); } }
@media (hover: hover) { .bandeaux:hover .marquee-track { animation-play-state: paused; } }

/* =========================== MANIFESTE =========================== */
.manif { padding: clamp(90px, 16vh, 200px) 0; }
.manif-note { font-size: clamp(26px, 2.6vw, 36px); transform: rotate(-3deg); transform-origin: left; display: inline-block; }
.js .manif-note[data-reveal].is-in { transform: rotate(-3deg); }
.manif-text { margin-top: 18px; font-size: clamp(46px, 8vw, 128px); line-height: .9; max-width: 13em; }
.js .manif-text.is-scrub .wi { opacity: .12; transition: opacity .3s linear; }
.js .manif-text.is-scrub .wi.on { opacity: 1; }

/* =========================== FONCTIONNEMENT (ardoise) =========================== */
.how-track { height: 340vh; }
.how-sticky { position: sticky; top: 0; height: 100vh; height: 100svh; display: flex; align-items: center; overflow: hidden; }
.how-in {
  display: grid; width: 100%;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "head" "vis" "steps" "prog";
  gap: 18px;
}
.how-head { grid-area: head; }
.how-titre { font-size: clamp(44px, 6.4vw, 100px); }
.how-visual { grid-area: vis; }
.how-steps { grid-area: steps; display: grid; }
.how-progress { grid-area: prog; height: 6px; background: rgba(244, 237, 225, .12); overflow: hidden; }
.how-progress i { display: block; height: 100%; background: var(--moutarde); transform-origin: left; transform: scaleX(var(--p, 0)); }

.how-step { grid-area: 1 / 1; display: flex; gap: 16px; opacity: 0; transform: translateY(18px); transition: opacity .5s var(--ease), transform .6s var(--ease); pointer-events: none; }
.how-step.is-active { opacity: 1; transform: none; pointer-events: auto; }
.how-num { font-family: var(--font-main); font-size: 46px; line-height: .8; color: var(--moutarde); flex: none; min-width: 1em; }
.how-step h3 { font-family: var(--font-titre); font-weight: 800; text-transform: uppercase; font-size: clamp(28px, 3vw, 42px); line-height: .95; }
.how-step p { margin-top: 10px; color: rgba(244, 237, 225, .78); font-size: 16px; max-width: 30em; }

@media (min-width: 960px) {
  .how-in {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas: "head vis" "steps vis" "prog vis";
    column-gap: clamp(40px, 6vw, 110px); row-gap: 36px;
    align-items: center;
  }
  .how-steps { display: flex; flex-direction: column; }
  .how-step {
    grid-area: auto; opacity: .35; transform: none; pointer-events: auto; cursor: pointer;
    padding: 18px 0; border-top: 2px solid rgba(244, 237, 225, .15);
    transition: opacity .5s var(--ease);
  }
  .how-step p { max-height: 0; overflow: hidden; opacity: 0; margin-top: 0; transition: max-height .6s var(--ease), opacity .5s var(--ease), margin .6s var(--ease); }
  .how-step.is-active { opacity: 1; }
  .how-step.is-active p { max-height: 8em; opacity: 1; margin-top: 10px; }
  .how-num { transition: transform .5s var(--ressort); }
  .how-step.is-active .how-num { transform: rotate(-8deg) scale(1.15); }
}

/* démonstration animée, style dessin à la craie */
.how-visual {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 1.4em;
  font-size: min(calc((100vw - 2 * var(--gutter)) / 44), calc(34vh / 32));
  font-size: min(calc((100vw - 2 * var(--gutter)) / 44), calc(34svh / 32));
}
@media (min-width: 960px) { .how-visual { font-size: min(12px, calc(60vh / 34), calc((50vw - 80px) / 44)); } }

.hv-phone { width: 13em; height: 26em; padding: .5em; border-radius: 1.8em; border: .2em solid var(--craie); flex: none; }
.hv-phone-in { position: relative; height: 100%; border-radius: 1.3em; background: #26362F; overflow: hidden; }
.hv-tv { position: relative; width: 18em; height: 32em; padding: .6em; border-radius: .5em; border: .2em solid var(--craie); flex: none; }
.hv-tv-in { position: relative; height: 100%; background: #111A17; overflow: hidden; }
.hv-p, .hv-t {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1em;
  padding: 1.6em 1.2em; opacity: 0; transform: translateY(1.4em) scale(.98);
  transition: opacity .45s var(--ease), transform .6s var(--ease);
}
.how-visual[data-step="1"] .hv-p1, .how-visual[data-step="1"] .hv-t1,
.how-visual[data-step="2"] .hv-p2, .how-visual[data-step="2"] .hv-t2,
.how-visual[data-step="3"] .hv-p3, .how-visual[data-step="3"] .hv-t3 { opacity: 1; transform: none; transition-delay: .15s; }

.hv-mono { font-family: var(--font-main); font-size: 1.6em; line-height: 1; color: var(--craie); text-align: center; }
.hv-icon { width: 4.4em; height: 7em; }
.hv-icon path { fill: none; stroke: var(--craie); stroke-width: 6; }
.hv-icon circle { fill: var(--moutarde); }
.hv-name { font-family: var(--font-titre); font-weight: 900; font-size: 1.8em; text-transform: uppercase; }
.hv-bar { display: block; width: 8em; height: .5em; background: rgba(244, 237, 225, .15); overflow: hidden; }
.hv-bar i { display: block; height: 100%; background: var(--moutarde); transform-origin: left; transform: scaleX(0); }
.how-visual[data-step="1"] .hv-p1 .hv-bar i { animation: remplit 2s .5s var(--ease-io) forwards; }
.hv-ok { opacity: 0; color: var(--moutarde); }
.how-visual[data-step="1"] .hv-ok { animation: apparait .5s 2.5s var(--ressort) forwards; }
@keyframes remplit { to { transform: scaleX(1); } }
@keyframes apparait { from { opacity: 0; transform: translateY(.5em) scale(.8); } to { opacity: 1; transform: none; } }

.hv-radar { position: relative; width: 8em; height: 8em; }
.hv-radar i { position: absolute; inset: 0; border-radius: 50%; border: .2em solid var(--moutarde); animation: onde-radar 2.4s cubic-bezier(.2, .6, .3, 1) infinite; }
.hv-radar i:nth-child(2) { animation-delay: .8s; }
.hv-radar i:nth-child(3) { animation-delay: 1.6s; }
.hv-radar b { position: absolute; inset: 36%; border-radius: 50%; background: var(--craie); }
@keyframes onde-radar { 0% { transform: scale(.3); opacity: 1; } 100% { transform: scale(1); opacity: 0; } }
.hv-found { font-weight: 700; font-size: 1.1em; }
.hv-found small { opacity: .7; font-weight: 400; }

.hv-p3 { align-items: stretch; justify-content: flex-start; padding-top: 2.4em; gap: .8em; }
.hv-p3 .hv-mono { text-align: left; }
.hv-line { display: block; height: .6em; background: rgba(244, 237, 225, .2); }
.hv-line.w80 { width: 80%; } .hv-line.w60 { width: 60%; } .hv-line.w70 { width: 70%; }
.hv-swatches { display: flex; gap: .5em; margin-top: .6em; }
.hv-swatches i { width: 2em; height: 2em; border-radius: 50%; background: #3B5A4D; border: .15em solid var(--craie); }
.hv-swatches i:nth-child(2) { background: #111110; border-color: var(--moutarde); }
.hv-swatches i:nth-child(3) { background: var(--moutarde); }
.hv-send { margin-top: auto; height: 2.6em; border-radius: .35em; background: var(--moutarde); color: var(--encre); font-weight: 700; font-size: .95em; display: flex; align-items: center; justify-content: center; }
.how-visual[data-step="3"] .hv-send { animation: tape 2s 1s var(--ease) infinite; }
@keyframes tape { 0%, 30%, 100% { transform: none; } 15% { transform: scale(.92); } }

.hv-link { display: flex; gap: .7em; flex: none; }
.hv-link i { width: .7em; height: .7em; border-radius: 50%; background: rgba(244, 237, 225, .25); }
.how-visual[data-step="2"] .hv-link i, .how-visual[data-step="3"] .hv-link i { animation: lien 1.1s linear infinite; }
.hv-link i:nth-child(2) { animation-delay: .14s !important; }
.hv-link i:nth-child(3) { animation-delay: .28s !important; }
.hv-link i:nth-child(4) { animation-delay: .42s !important; }
@keyframes lien { 0%, 100% { background: rgba(244, 237, 225, .25); transform: scale(1); } 30% { background: var(--moutarde); transform: scale(1.6); } }

.hv-standby { width: .9em; height: .9em; border-radius: 50%; background: var(--piment); animation: pouls 2.4s ease-in-out infinite; }
.hv-dialog { width: 100%; background: var(--craie); color: var(--encre); padding: 1.2em 1em 1em; display: flex; flex-direction: column; gap: 1.1em; box-shadow: .4em .4em 0 var(--moutarde); }
.how-visual[data-step="2"] .hv-dialog { animation: pop .6s .4s var(--ressort) both; }
@keyframes pop { from { opacity: 0; transform: scale(.7) rotate(-4deg); } to { opacity: 1; transform: none; } }
.hv-dq { font-size: 1.15em; font-weight: 700; line-height: 1.2; }
.hv-db { display: flex; justify-content: flex-end; gap: .6em; font-size: .9em; font-weight: 600; }
.hv-db span { padding: .45em .8em; color: var(--encre-doux); }
.hv-db .hv-allow { color: var(--encre); background: var(--moutarde); outline: .15em solid var(--encre); }
.how-visual[data-step="2"] .hv-allow { animation: focus-ok 1.4s 1s ease-in-out infinite; }
@keyframes focus-ok { 50% { transform: scale(1.08); } }
.hv-inst { display: flex; flex-direction: column; align-items: center; gap: .5em; font-size: 1.2em; opacity: 0; }
.how-visual[data-step="2"] .hv-inst { animation: apparait .5s 1.8s var(--ease) forwards; }
.how-visual[data-step="2"] .hv-inst .hv-bar i { animation: remplit 2.4s 2.1s var(--ease-io) forwards; }

.hv-t3 { background: #23302B; color: #E8E2D0; justify-content: flex-start; padding-top: 2.6em; gap: 1.1em; }
.hv-ttl { font-family: var(--font-main); font-size: 3.2em; line-height: .95; margin-bottom: .2em; }
.hv-ttl em { font-style: normal; color: var(--moutarde); }
.hv-row { width: 100%; display: flex; justify-content: space-between; border-bottom: 2px dotted #6B7C74; padding-bottom: .3em; font-size: 1em; }
.hv-row b { font-family: var(--font-main); font-weight: 400; font-size: 1.3em; color: var(--moutarde); }
.hv-box { margin-top: auto; width: 100%; text-align: center; border: 2px dashed #E8E2D0; padding: .5em; font-family: var(--font-main); font-size: 1.3em; }
.how-visual[data-step="3"] .hv-t3 > * { animation: apparait .55s var(--ease) both; }
.how-visual[data-step="3"] .hv-t3 > :nth-child(1) { animation-delay: .4s; }
.how-visual[data-step="3"] .hv-t3 > :nth-child(2) { animation-delay: .5s; }
.how-visual[data-step="3"] .hv-t3 > :nth-child(3) { animation-delay: .6s; }
.how-visual[data-step="3"] .hv-t3 > :nth-child(4) { animation-delay: .7s; }
.how-visual[data-step="3"] .hv-t3 > :nth-child(5) { animation-delay: .8s; }

.hv-remote { position: absolute; right: -1.8em; bottom: -2em; width: 3.4em; height: 7.6em; border-radius: 1.7em; background: var(--ardoise); border: .2em solid var(--craie); opacity: 0; transform: translateY(1em) rotate(8deg); transition: opacity .5s var(--ease), transform .6s var(--ressort); }
.hv-remote i { position: absolute; left: 50%; top: 1.3em; width: 1.6em; height: 1.6em; margin-left: -.8em; border-radius: 50%; background: var(--moutarde); }
.how-visual[data-step="2"] .hv-remote { opacity: 1; transform: rotate(8deg); }
.how-visual[data-step="2"] .hv-remote i { animation: focus-ok 1.4s 1s ease-in-out infinite; }

/* =========================== IA =========================== */
.ia { padding: clamp(90px, 15vh, 170px) 0; }
.ia-head { max-width: 960px; }
.ia-titre { margin: 22px 0 26px; font-size: clamp(46px, 7vw, 108px); }
.ia-grid { margin-top: 60px; display: grid; gap: 48px; }
@media (min-width: 960px) { .ia-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 72px; } }

.ia-demo { display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ia-demo { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ia-caption { grid-column: 1 / -1; } }
.ia-carte {
  position: relative; overflow: hidden;
  background: #FFFBF3; color: var(--encre);
  border: 2px solid var(--encre);
  padding: 26px 22px 30px; display: flex; flex-direction: column; gap: 14px;
  transform: rotate(-2deg);
  box-shadow: 8px 8px 0 var(--encre);
}
.ic-t { font-family: var(--font-titre); font-weight: 900; text-transform: uppercase; font-size: 42px; line-height: 1; margin-bottom: 4px; }
.ic-l { display: flex; justify-content: space-between; gap: 10px; font-size: 16px; line-height: 1.2; border-bottom: 2px dotted rgba(19, 54, 43, .3); padding-bottom: 6px; }
.ic-l b { font-family: var(--font-main); font-weight: 400; font-size: 21px; line-height: .9; }
.ia-scan {
  position: absolute; left: 0; right: 0; top: 0; height: 64px;
  background: linear-gradient(180deg, transparent, rgba(242, 182, 48, .4) 80%, var(--moutarde) 80%, var(--moutarde) 100%);
  transform: translateY(-70px); mix-blend-mode: multiply;
}
.ia-demo.is-playing .ia-scan { animation: scan 3.2s var(--ease-io) infinite alternate; }
@keyframes scan { from { transform: translateY(-64px); } to { transform: translateY(330px); } }
.ia-corners i { position: absolute; width: 18px; height: 18px; border: 3px solid var(--piment); }
.ia-corners i:nth-child(1) { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.ia-corners i:nth-child(2) { top: 7px; right: 7px; border-left: 0; border-bottom: 0; }
.ia-corners i:nth-child(3) { bottom: 7px; left: 7px; border-right: 0; border-top: 0; }
.ia-corners i:nth-child(4) { bottom: 7px; right: 7px; border-left: 0; border-top: 0; }

.ia-out { display: flex; flex-direction: column; gap: 9px; justify-content: center; }
.ia-tag { font-family: var(--font-titre); font-weight: 900; text-transform: uppercase; font-size: 24px; line-height: 1; margin-bottom: 4px; }
.io-r {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  background: var(--creme-2); border: 2px solid var(--encre); border-radius: 4px;
  padding: 8px 12px; font-size: 14.5px; font-weight: 600;
}
.io-r b { font-family: var(--font-main); font-weight: 400; font-size: 20px; line-height: 1; white-space: nowrap; background: var(--moutarde); padding: 1px 8px; border-radius: 3px; }
.ia-demo.is-playing .io-r { animation: extrait 6.4s var(--ease) infinite both; }
.io-r:nth-child(3) { animation-delay: .35s !important; }
.io-r:nth-child(4) { animation-delay: .7s !important; }
.io-r:nth-child(5) { animation-delay: 1.05s !important; }
.io-r:nth-child(6) { animation-delay: 1.4s !important; }
@keyframes extrait {
  0% { opacity: 0; transform: translateX(-18px) rotate(-2deg); }
  10%, 82% { opacity: 1; transform: none; }
  92%, 100% { opacity: 0; transform: translateX(12px); }
}
.ia-caption .note { font-size: 24px; color: var(--encre-doux); }

.ia-list { display: flex; flex-direction: column; }
.ia-list li { display: flex; gap: 20px; padding: 24px 0; border-top: 2px solid var(--encre); }
.ia-list li:last-child { border-bottom: 2px solid var(--encre); }
.ia-n { flex: none; width: 42px; height: 42px; border: 2px solid var(--encre); border-radius: 4px; background: var(--moutarde); display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-weight: 900; font-size: 24px; transition: transform .4s var(--ressort), background-color .3s; }
.ia-list h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.ia-list p { margin-top: 6px; color: var(--encre-doux); font-size: 15.5px; }
@media (hover: hover) { .ia-list li:hover .ia-n { transform: rotate(-12deg) scale(1.1); background: var(--piment); color: var(--creme); } }

.ia-promise {
  margin-top: 80px; display: grid; gap: 32px; align-items: center;
  padding: clamp(26px, 4.5vw, 64px);
  background: var(--encre); color: var(--creme);
  border-radius: var(--rayon);
  box-shadow: 10px 10px 0 var(--moutarde);
}
@media (min-width: 760px) { .ia-promise { grid-template-columns: auto minmax(0, 1fr); gap: 56px; } }
.ia-cut { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.ia-cut svg { width: min(220px, 60vw); height: auto; border: 2px solid var(--creme); }
.ia-cut .note { font-size: 24px; color: var(--moutarde); transform: rotate(-3deg); }
.cut-shape { fill: #3E6B58; }
.cut-line { fill: none; stroke: var(--moutarde); stroke-width: 3; stroke-dasharray: 8 6; }
.ia-cut.is-playing .cut-line { animation: fourmis .9s linear infinite; }
.ia-cut.is-playing .cut-shape { animation: respire 4s ease-in-out infinite; transform-origin: 100px 100px; }
@keyframes fourmis { to { stroke-dashoffset: -28; } }
@keyframes respire { 50% { transform: scale(1.04); } }
.ia-promise-text .titre { font-size: clamp(46px, 6.6vw, 104px); }
.ia-promise-text .lead { margin-top: 20px; color: rgba(244, 237, 225, .8); }
.entoure { position: relative; display: inline-block; color: var(--moutarde); }
.entoure svg { position: absolute; left: -14%; top: -18%; width: 128%; height: 136%; overflow: visible; pointer-events: none; }
.entoure path { stroke: var(--moutarde); stroke-width: 4; stroke-linecap: round; }

/* =========================== FONCTIONNALITÉS =========================== */
.feat { padding: clamp(80px, 13vh, 150px) 0; background: var(--creme-2); border-top: 3px solid var(--encre); border-bottom: 3px solid var(--encre); }
.feat-titre { font-size: clamp(46px, 7vw, 108px); }
.feat-grid { margin-top: 56px; display: grid; gap: 22px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; } }

.card {
  --cv-bg: var(--creme); --cv-bd: var(--encre);
  position: relative;
  padding: 22px 22px 28px;
  background: var(--creme); color: var(--encre);
  border: 2px solid var(--encre); border-radius: var(--rayon);
  box-shadow: 6px 6px 0 var(--encre);
}
.card:nth-child(2) { background: var(--moutarde); }
.card:nth-child(3) { background: var(--encre); color: var(--creme); --cv-bg: var(--ardoise); --cv-bd: var(--creme); }
.card:nth-child(4) { background: var(--creme); }
.card:nth-child(5) { background: var(--ardoise); color: var(--creme); --cv-bg: #26362F; --cv-bd: var(--creme); }
.card:nth-child(6) { background: var(--moutarde); }
.card:nth-child(3) p, .card:nth-child(5) p { color: rgba(244, 237, 225, .8); }
.card.is-done { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
@media (hover: hover) { .card.is-done:hover { transform: translate(-4px, -4px) rotate(-.6deg); box-shadow: 10px 10px 0 var(--encre); } }
.card h3 { font-family: var(--font-titre); font-weight: 900; text-transform: uppercase; font-size: 30px; line-height: .95; }
.card p { margin-top: 10px; color: var(--encre-doux); font-size: 15.5px; }
.card-vis { position: relative; height: 128px; margin-bottom: 20px; background: var(--cv-bg); border: 2px solid var(--cv-bd); border-radius: 4px; overflow: hidden; display: flex; align-items: center; justify-content: center; }

/* thèmes */
.th { position: absolute; width: 58px; height: 94px; border-radius: 3px; border: 2px solid var(--encre); display: flex; align-items: center; justify-content: center; font-family: var(--font-titre); font-weight: 900; font-size: 28px; box-shadow: 3px 3px 0 var(--encre); }
.th1 { background: #111110; color: #C9A45C; z-index: 3; transform: none; }
.th2 { background: #23302B; color: #E8E2D0; z-index: 2; transform: translateX(-46px) rotate(-10deg); }
.th3 { background: var(--piment); color: var(--creme); z-index: 1; transform: translateX(46px) rotate(10deg); }
.vis-themes.is-playing .th1 { animation: eventail1 6s var(--ressort) infinite; }
.vis-themes.is-playing .th2 { animation: eventail2 6s var(--ressort) infinite; }
.vis-themes.is-playing .th3 { animation: eventail3 6s var(--ressort) infinite; }
@keyframes eventail1 { 0%, 28% { transform: none; z-index: 3; } 33%, 61% { transform: translateX(46px) rotate(10deg); z-index: 1; } 66%, 95% { transform: translateX(-46px) rotate(-10deg); z-index: 2; } 100% { transform: none; z-index: 3; } }
@keyframes eventail2 { 0%, 28% { transform: translateX(-46px) rotate(-10deg); z-index: 2; } 33%, 61% { transform: none; z-index: 3; } 66%, 95% { transform: translateX(46px) rotate(10deg); z-index: 1; } 100% { transform: translateX(-46px) rotate(-10deg); z-index: 2; } }
@keyframes eventail3 { 0%, 28% { transform: translateX(46px) rotate(10deg); z-index: 1; } 33%, 61% { transform: translateX(-46px) rotate(-10deg); z-index: 2; } 66%, 95% { transform: none; z-index: 3; } 100% { transform: translateX(46px) rotate(10deg); z-index: 1; } }

/* plages horaires */
.vis-plages { flex-direction: column; align-items: stretch; padding: 0 20px; gap: 10px; }
.pl-axis { position: relative; height: 36px; background: var(--creme-2); border: 2px solid var(--encre); }
.pl-seg { position: absolute; top: 0; bottom: 0; display: flex; align-items: center; justify-content: center; background: transparent; color: var(--encre); font-weight: 700; font-size: 12px; border-left: 2px solid var(--encre); border-right: 2px solid var(--encre); }
.pl-midi { left: 47.9%; width: 12.5%; }
.pl-soir { left: 77%; width: 17%; }
.pl-now { position: absolute; top: -8px; bottom: -8px; left: 0; width: 3px; margin-left: -1.5px; background: var(--piment); }
.pl-hours { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; }
.vis-plages.is-playing .pl-now { animation: heure 8s linear infinite; }
.vis-plages.is-playing .pl-midi { animation: plage-midi 8s linear infinite; }
.vis-plages.is-playing .pl-soir { animation: plage-soir 8s linear infinite; }
@keyframes heure { from { left: 0; } to { left: 100%; } }
@keyframes plage-midi { 0%, 47.8% { background: transparent; } 48%, 60.3% { background: var(--moutarde); } 60.5%, 100% { background: transparent; } }
@keyframes plage-soir { 0%, 76.8% { background: transparent; } 77%, 93.8% { background: var(--moutarde); } 94%, 100% { background: transparent; } }

/* allumage / extinction */
.vis-power { gap: 22px; }
.pw-screen { width: 46px; height: 78px; background: #0A100E; border: 3px solid var(--creme); position: relative; overflow: hidden; }
.pw-screen i { position: absolute; inset: 0; background: var(--moutarde); opacity: 0; }
.pw-screen i::after { content: ""; position: absolute; left: 22%; right: 22%; top: 36%; height: 4px; background: var(--encre); box-shadow: 0 10px 0 var(--encre), 0 20px 0 var(--encre); }
.pw-times { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.pw-times b { display: block; font-family: var(--font-titre); font-weight: 800; font-size: 26px; line-height: 1; }
.vis-power.is-playing .pw-screen i { animation: allume 5s var(--ease) infinite; }
.vis-power.is-playing .pw-times span:nth-child(1) b { animation: hl-on 5s linear infinite; }
.vis-power.is-playing .pw-times span:nth-child(2) b { animation: hl-off 5s linear infinite; }
@keyframes allume { 0%, 12% { opacity: 0; transform: scaleY(.03); } 20%, 80% { opacity: 1; transform: none; } 88%, 100% { opacity: 0; transform: scaleY(.03); } }
@keyframes hl-on { 0%, 8% { color: inherit; } 12%, 22% { color: var(--moutarde); } 26%, 100% { color: inherit; } }
@keyframes hl-off { 0%, 76% { color: inherit; } 80%, 90% { color: var(--moutarde); } 94%, 100% { color: inherit; } }

/* plusieurs écrans */
.vis-multi { gap: 16px; }
.mu { width: 40px; height: 70px; background: #0A100E; border: 3px solid var(--encre); position: relative; }
.mu::after { content: ""; position: absolute; left: 50%; bottom: -15px; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: var(--encre-doux); }
.mu i { position: absolute; inset: 0; opacity: .12; }
.mu:nth-child(1) i { background: #23302B; }
.mu:nth-child(2) i { background: var(--moutarde); }
.mu:nth-child(3) i { background: var(--piment); }
.vis-multi.is-playing .mu i { animation: mu-on 4.5s var(--ease) infinite; }
.vis-multi.is-playing .mu::after { animation: mu-led 4.5s var(--ease) infinite; }
.vis-multi.is-playing .mu:nth-child(2) i, .vis-multi.is-playing .mu:nth-child(2)::after { animation-delay: .4s; }
.vis-multi.is-playing .mu:nth-child(3) i, .vis-multi.is-playing .mu:nth-child(3)::after { animation-delay: .8s; }
@keyframes mu-on { 0%, 8% { opacity: .12; } 18%, 85% { opacity: 1; } 95%, 100% { opacity: .12; } }
@keyframes mu-led { 0%, 8% { background: var(--encre-doux); } 18%, 85% { background: #2F9E5B; } 95%, 100% { background: var(--encre-doux); } }

/* tout en local */
.vis-local svg { width: 170px; height: auto; overflow: visible; }
.lo-cloud { fill: none; stroke: rgba(244, 237, 225, .5); stroke-width: 2.4; stroke-linejoin: round; }
.lo-cross { fill: none; stroke: var(--piment); stroke-width: 4; stroke-linecap: round; stroke-dasharray: 80; stroke-dashoffset: 80; }
.lo-wifi { fill: none; stroke: var(--moutarde); stroke-width: 3.4; stroke-linecap: round; }
.lo-dot { fill: var(--moutarde); }
.vis-local.is-playing .lo-cross { animation: barre 4s var(--ease) infinite; }
.vis-local.is-playing .lo-wifi { animation: pouls 1.6s ease-in-out infinite; }
@keyframes barre { 0%, 10% { stroke-dashoffset: 80; } 35%, 85% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -80; } }

/* mises à jour */
.vis-maj { gap: 22px; }
.vis-maj svg { width: 60px; height: 60px; }
.mj-arc, .mj-head { fill: none; stroke: var(--encre); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.vis-maj.is-playing svg { animation: tourne 2.6s var(--ease-io) infinite; }
.mj-ver { display: flex; flex-direction: column; gap: 8px; }
.mj-ver span { position: relative; font-weight: 700; font-size: 14px; padding-left: 24px; }
.mj-ver span::before { content: ""; position: absolute; left: 0; top: 50%; width: 14px; height: 14px; margin-top: -7px; border: 2px solid var(--encre); }
.vis-maj.is-playing .mj-ver span::before { animation: coche 2.6s var(--ease) infinite; }
.vis-maj.is-playing .mj-ver span:nth-child(2)::before { animation-delay: .3s; }
@keyframes coche { 0%, 40% { background: transparent; } 55%, 90% { background: var(--moutarde); } 100% { background: transparent; } }

/* =========================== CHIFFRES =========================== */
.stats { background: var(--moutarde); border-bottom: 3px solid var(--encre); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat { padding: 36px 0 32px; display: flex; flex-direction: column; gap: 8px; border-bottom: 2px solid var(--encre); }
.stat:first-child { grid-column: 1 / -1; }
.stat:nth-child(3) { padding-left: 20px; border-left: 2px solid var(--encre); }
.stat:nth-child(n+2) { border-bottom: 0; }
.stat:nth-child(4) { grid-column: 1 / -1; border-top: 2px solid var(--encre); }
.stat-n { font-family: var(--font-titre); font-weight: 900; font-size: clamp(68px, 9vw, 140px); line-height: .85; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-n small { font-size: .55em; margin: 0 .06em; vertical-align: .25em; }
.stat-n em { color: var(--piment); font-style: normal; }
.stat-l { font-weight: 700; font-size: 15px; }
@media (min-width: 900px) {
  .stats-grid { grid-template-columns: 2.1fr 1fr 1fr 1fr; }
  .stat:first-child, .stat:nth-child(4) { grid-column: auto; border-top: 0; }
  .stat { border-bottom: 0; padding: 52px 0 48px; }
  .stat + .stat { padding-left: 32px; border-left: 2px solid var(--encre); }
}

/* =========================== QUESTIONS =========================== */
.faq { padding: clamp(90px, 15vh, 170px) 0; }
.faq-in { display: grid; gap: 40px; }
.faq-titre { font-size: clamp(50px, 7.4vw, 116px); }
.faq-note { margin-top: 14px; font-size: 28px; transform: rotate(-3deg); transform-origin: left; display: inline-block; }
.js .faq-note[data-reveal].is-in { transform: rotate(-3deg); }
@media (min-width: 960px) {
  .faq-in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 80px; align-items: start; }
  .faq-head { position: sticky; top: calc(var(--header-h) + 40px); }
}
.qa { border-bottom: 2px solid var(--encre); }
.qa:first-child { border-top: 2px solid var(--encre); }
.qa summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 22px 0; font-size: clamp(17px, 1.6vw, 21px); font-weight: 700; letter-spacing: -.01em;
  transition: padding .4s var(--ease), background-color .3s;
}
.qa summary::-webkit-details-marker { display: none; }
@media (hover: hover) { .qa summary:hover { padding-left: 12px; background: rgba(242, 182, 48, .35); } }
.qa-ico { position: relative; flex: none; width: 34px; height: 34px; border: 2px solid var(--encre); border-radius: 4px; transition: background-color .3s, transform .5s var(--ressort); }
.qa-ico::before, .qa-ico::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2.5px; margin: -1.25px 0 0 -7px; background: var(--encre); transition: transform .45s var(--ease); }
.qa-ico::after { transform: rotate(90deg); }
.qa[open] .qa-ico { background: var(--moutarde); transform: rotate(180deg); }
.qa[open] .qa-ico::after { transform: rotate(0deg); }
.qa-body { overflow: hidden; }
.qa-body p { padding: 0 52px 24px 0; color: var(--encre-doux); font-size: 16.5px; }

/* =========================== APPEL FINAL =========================== */
.final { --ombre-c: var(--creme); padding: clamp(110px, 20vh, 220px) 0; overflow: hidden; text-align: center; background: var(--encre); color: var(--creme); }
.final .titre em { color: var(--moutarde); background: none; }
.final-ring { position: absolute; left: 50%; top: 50%; width: min(150vw, 1000px); aspect-ratio: 1; transform: translate(-50%, -50%) rotate(calc(var(--p, 0) * 160deg)); pointer-events: none; }
.final-ring svg { width: 100%; height: 100%; }
.final-ring text { font-family: var(--font-titre); font-weight: 900; font-size: 22px; letter-spacing: 4px; fill: rgba(244, 237, 225, .09); }
.final-in { position: relative; display: flex; flex-direction: column; align-items: center; }
.final-titre { font-size: clamp(56px, 10vw, 168px); max-width: 9em; }
.final-cta { margin-top: 44px; }
.final-note { margin-top: 22px; }
.final-note .note { font-size: 26px; color: var(--moutarde); }

/* =========================== MOUVEMENT RÉDUIT =========================== */
@media (prefers-reduced-motion: reduce) {
  .slide .r, .hv-ok, .hv-inst, .io-r { opacity: 1 !important; }
  .hv-bar i { transform: scaleX(1) !important; }
  .packets, .beam-path { display: none; }
  .final-ring { transform: translate(-50%, -50%); }
  .hero-disc { transform: translateY(-50%); }
}
