/* ═══════════════════════════════════════════════════════════
   2ND MOTION — extras.css
   Chargé APRÈS styles.css (canonique, non modifié).
   1. Palette « vert technologique » — remappe les tokens du template
   2. Styles des sections ajoutées (chiffres, films, livrables,
      galerie, à propos, devis)
   Règle : le vert est un SIGNAL (chiffres, état actif, trait qui se
   remplit) — jamais plus de ~10 % de l'écran. Le reste en noir et
   blanc cassé.
   ═══════════════════════════════════════════════════════════ */

html[data-theme="dark"] {
  --ground:      #070A09;   /* fond de page */
  --surface:     #0D1211;   /* cartes, panneaux */
  --surface-2:   #141B18;   /* survol, zones actives */
  --line:        #1C2622;   /* filets, séparateurs */
  --line-2:      #2C3A34;   /* bordures marquées */
  --text:        #E9F2ED;   /* texte principal */
  --muted:       #8FA69B;   /* texte secondaire */
  --signal:      #3DF08B;   /* accent unique */
  --signal-dim:  #1FA862;   /* survol de l'accent */
  --signal-wash: #0C2418;   /* fonds teintés */
  --on-signal:   #051109;   /* texte posé sur l'accent */

  /* tokens du template → palette */
  --ink-rgb: 233, 242, 237;
  --bone: var(--ground);
  --ink: var(--text);
  --ash: var(--muted);
  --white: var(--surface);
  --lime: var(--signal);
  --lime-ink: var(--on-signal);
  --ink-faint: rgba(var(--ink-rgb), 0.16);
}

/* ── le vert comme signal ─────────────────────────────────── */
::selection { background: var(--signal); color: var(--on-signal); }
.loader-rule i { background: var(--signal); }                    /* trait qui se remplit */
.box-svg path, .pill-svg path, .cta-oval path { stroke: var(--signal); }
.fill-text.greyed .box-svg path { stroke: var(--line-2); }
.dock-link::after, .footer-mail-text::after { background: var(--signal); }
.dock-cta:hover { background: var(--signal-dim); filter: none; }
.footer-bottom { border-top-color: var(--line-2); }
.x-dot { color: var(--signal); }
.x-signal { color: var(--signal); }

/* bande devise : plein écran vert = trop de vert. Elle passe en
   surface sombre, les mots en blanc cassé, le hint en signal. */
.to-lime   { background: linear-gradient(to bottom right, transparent 49.7%, var(--surface) 50.3%); }
.from-lime { background: linear-gradient(to bottom right, var(--surface) 49.7%, transparent 50.3%); }
.s-motto .pin { background: var(--surface); }
.mw { color: var(--text); }
.motto-kicker { color: var(--muted); opacity: 1; }
.motto-hint { color: var(--signal); }

/* ═══════════ SECTIONS AJOUTÉES — socle commun ═══════════ */
.x-stats, .x-sec {
  position: relative; z-index: 2;
  background: var(--ground);
}
.x-sec { padding: 16vh var(--gutter); }
.x-head { text-align: center; margin-bottom: 8vh; }
.x-title { font-size: var(--t-heading); letter-spacing: -0.02em; line-height: 1.1; margin: 14px 0 10px; font-weight: 400; }
.x-sub { color: var(--muted); max-width: 36em; margin: 0 auto; }

/* ═══════════ CHIFFRES ═══════════ */
.x-stats { padding: 12vh var(--gutter); }
.x-stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  max-width: 1240px; margin: 0 auto;
  border-top: 1px solid var(--line);
}
.x-stat { padding: 28px 22px 0; border-right: 1px solid var(--line); }
.x-stat:last-child { border-right: 0; }
.x-num {
  font-weight: 300;
  font-size: clamp(56px, 7vw, 112px); line-height: 1; letter-spacing: -0.06em;
  color: var(--signal); font-variant-numeric: tabular-nums;
}
.x-num small { font-size: 0.42em; letter-spacing: 0; margin-left: 0.06em; color: var(--text); }
.x-lbl { color: var(--muted); margin-top: 16px; max-width: 18em; }

/* ═══════════ FILMS 9:16 ═══════════ */
.x-reel {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.8vw, 28px);
  max-width: 1040px; margin: 0 auto;
}
.x-film { margin: 0; }
.x-film figcaption { margin-top: 12px; }
.x-frame {
  position: relative; aspect-ratio: 9 / 16; overflow: hidden;
  border-radius: var(--radius); background: var(--surface);
  border: 1px solid var(--line);
}
.x-frame video {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: translateZ(0);   /* calque GPU dédié : pas de repeint de la page à chaque image */
  object-fit: cover; opacity: 0; transition: opacity .6s var(--ease-out);
  background: transparent;
}
.x-frame.has-poster video, .x-frame.live video { opacity: 1; }
/* habillage animé tant que le fichier manque : scanlines + balayage signal */
.x-fallback { position: absolute; inset: 0; display: grid; place-items: center; }
.x-fallback::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, rgba(var(--ink-rgb), .035) 0 1px, transparent 1px 4px);
}
.x-fallback i {
  position: absolute; left: 0; right: 0; height: 30%;
  background: linear-gradient(180deg, transparent, var(--signal-wash) 50%, transparent);
  animation: x-sweep 3.6s linear infinite;
}
.x-fallback span { position: relative; color: var(--muted); }
.x-fallback span::before {
  content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--signal); margin-right: 9px; vertical-align: 1px;
  animation: x-blink 1.4s steps(2, start) infinite;
}
/* vidéo ou affiche chargée : l'habillage animé s'arrête (plus rien à peindre en continu) */
.x-frame.has-poster .x-fallback, .x-frame.live .x-fallback { display: none; }
@keyframes x-sweep { from { transform: translateY(-100%); } to { transform: translateY(333%); } }
@keyframes x-blink { to { visibility: hidden; } }
.x-snd {
  position: absolute; right: 12px; bottom: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; padding: 0; cursor: pointer;
  display: none; align-items: center; justify-content: center;
  color: var(--text); background: rgba(7, 10, 9, .72);
  border: 1px solid var(--line-2);   /* pas de backdrop-filter : trop coûteux sur une vidéo en lecture */
  transition: background .25s, color .25s, border-color .25s;
}
.x-frame.live .x-snd { display: flex; }
.x-snd svg { width: 16px; height: 16px; }
.x-snd .on { display: none; }
.x-snd[aria-pressed="true"] { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.x-snd[aria-pressed="true"] .on { display: block; }
.x-snd[aria-pressed="true"] .off { display: none; }

/* lecture / pause : un clic sur la vidéo suffit. Aucun gros bouton :
   seule une petite icône discrète s'affiche quand la vidéo est en pause. */
.x-play {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%;
  padding: 0; border: 0; background: transparent; cursor: pointer;
}
.x-play svg {
  position: absolute; left: 12px; bottom: 12px;
  width: 26px; height: 26px; padding: 6px; border-radius: 50%;
  fill: var(--text); background: rgba(7, 10, 9, .55);
  opacity: 0; transition: opacity .25s;
}
.x-play .i-pause { display: none; }
.x-frame.paused .x-play svg { opacity: .8; }
.x-play:focus-visible { outline: 2px solid var(--signal); outline-offset: -2px; }
.x-play:focus-visible svg { opacity: .8; }

/* deux exemples : cadres plus grands, centrés */
.x-duo .x-reel { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 760px; }

/* ═══════════ VOS IDÉES LES PLUS FOLLES ═══════════ */
.x-wild-in {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 96px); align-items: center;
  max-width: 1080px; margin: 0 auto;
}
.x-wild-copy .x-title { font-size: clamp(34px, 4.8vw, 68px); line-height: 1.02; margin: 16px 0 22px; text-align: left; }
.x-wild-copy .x-sub { margin: 0; max-width: 30em; }
.x-wild-cta {
  display: inline-block; margin-top: 30px; padding: 14px 22px;
  background: var(--signal); color: var(--on-signal); border-radius: var(--radius);
  transition: background .25s;
}
.x-wild-cta:hover { background: var(--signal-dim); }

/* ═══════════ APERÇU — bande de 4 extraits ═══════════ */
.x-showreel { padding-top: 0; padding-bottom: 10vh; }
.x-strip {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(10px, 1.2vw, 18px); max-width: 1240px; margin: 0 auto;
}
.x-clip { margin: 0; }
.x-clip .x-frame { border-color: transparent; }
.x-strip-cap { text-align: center; margin-top: 18px; }

/* ═══════════ CE QUE VOUS RECEVEZ ═══════════ */
.x-deliv-in { max-width: 980px; margin: 0 auto; }
.x-deliv .x-title { margin-bottom: 5vh; }
.x-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.x-list li {
  display: flex; align-items: baseline; gap: 22px;
  padding: 20px 0; border-bottom: 1px solid var(--line);
  font-size: clamp(21px, 2.4vw, 34px); letter-spacing: -0.015em; line-height: 1.2;
}
.x-list .mono { color: var(--signal); flex: none; width: 2.4em; }

/* ═══════════ EMPLACEMENTS PHOTOS ═══════════ */
/* tant que le fichier manque : un cadre nommé (fichier + dimensions) */
.x-ph {
  position: relative; margin: 0; overflow: hidden;
  border-radius: var(--radius); background: var(--surface);
  border: 1px dashed var(--line-2);
}
.x-ph::before, .x-ph::after {
  position: absolute; left: 0; right: 0; text-align: center;
  font-family: var(--mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase;
}
.x-ph::before { content: attr(data-file); top: calc(50% - 1.3em); color: var(--text); }
.x-ph::after  { content: attr(data-dim);  top: calc(50% + 0.3em); color: var(--muted); }
.x-ph img {
  position: absolute; inset: 0; z-index: 1;
  width: 100%; height: 100%; object-fit: cover; border-radius: 0;
}
.x-ph:has(img) { border-color: transparent; }   /* photo présente : plus de cadre pointillé */
.x-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px); max-width: 1240px; margin: 0 auto;
}

/* ═══════════ DEVIS ═══════════ */
.x-form, .x-done { max-width: 820px; margin: 0 auto; }
.x-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 22px; }
.x-field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.x-field label { font-family: var(--mono); font-size: 12px; letter-spacing: .03em; text-transform: uppercase; color: var(--text); }
.x-field input, .x-field select, .x-field textarea {
  font: inherit; font-size: 17px; color: var(--text);
  background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius);
  padding: 13px 14px; width: 100%;
  transition: border-color .25s, background .25s;
}
.x-field textarea { resize: vertical; min-height: 7.5em; }
.x-field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(-45deg, transparent 50%, var(--muted) 50%); background-position: calc(100% - 20px) 55%, calc(100% - 15px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.x-field input:hover, .x-field select:hover, .x-field textarea:hover { background-color: var(--surface-2); }
.x-field input:focus, .x-field select:focus, .x-field textarea:focus { outline: none; border-color: var(--signal); }
.x-field [aria-invalid="true"] { border-color: #ff6b5a; }
.x-err { color: #ff8b7d; font-size: 14px; min-height: 0; }
.x-err:empty { display: none; }
.x-consent { flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.x-consent input { width: 20px; height: 20px; flex: none; margin: 2px 0 0; accent-color: var(--signal); padding: 0; }
.x-consent label { flex: 1; text-transform: none; font-family: var(--sans); font-size: 15px; letter-spacing: 0; color: var(--muted); }
.x-consent .x-err { flex-basis: 100%; }
.x-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.x-submit {
  font: inherit; font-size: 17px; cursor: pointer;
  background: var(--signal); color: var(--on-signal);
  border: 0; border-radius: var(--radius); padding: 15px 24px; margin-top: 6px;
  transition: background .25s;
}
.x-submit:hover { background: var(--signal-dim); }
.x-submit:disabled { opacity: .6; cursor: progress; }
.x-submit:focus-visible, .x-snd:focus-visible, .x-consent input:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
.x-status { margin-top: 14px; color: var(--muted); font-size: 15px; }
.x-status a { color: var(--signal); text-decoration: underline; }
.x-done { text-align: center; padding: 6vh 0; outline: none; }

/* ═══════════ SIGNATURE 2ND MOTION — sortir du look « modèle » ═══════════ */

/* typographie « impact condensé » : Anton en majuscules pour les titres et
   grands textes (style affiche de film / légendes TikTok) ; Geist pour la
   lecture ; Geist Mono pour les étiquettes. Le logo reste en minuscules. */
html[data-theme="dark"] {
  --display: 'Anton', 'Impact', 'Arial Narrow', sans-serif;
  --sans: 'Geist', ui-sans-serif, system-ui, sans-serif;
  --geo: var(--display);
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}
.hero-title, .spot-intro, .night-line, .x-title, .coll-title, .final-text,
.pstep h3, .mw, .x-num {
  font-family: var(--display); font-weight: 400;
  text-transform: uppercase; letter-spacing: -0.005em; line-height: .98;
}
.footer-name { font-family: var(--display); font-weight: 400; letter-spacing: -0.01em; }
.fill-text { letter-spacing: -0.035em; }                     /* manifeste : reste en Geist, plus lisible */
.x-list li { letter-spacing: -0.02em; }
.loader-wordmark, .dock-wordmark { font-family: var(--sans); font-weight: 600; letter-spacing: -0.05em; }

/* Anton est étroite : les titres peuvent être grands */
.hero-title { font-size: clamp(40px, 6.2vw, 92px); }
.spot-intro { font-size: clamp(34px, 5vw, 76px); }
.night-line { font-size: clamp(38px, 5.4vw, 82px); }
.x-title, .coll-title { font-size: clamp(38px, 5.6vw, 84px); }
.final-text { font-size: clamp(38px, 5.4vw, 80px); line-height: 1.02; }
.pstep h3 { font-size: clamp(44px, 5.6vw, 84px); }
.x-num { font-size: clamp(64px, 8vw, 128px); letter-spacing: 0; }
.footer-name { font-size: clamp(60px, 14vw, 280px); }
.x-wild-copy .x-title { font-size: clamp(44px, 5.6vw, 88px); line-height: .95; }

/* mots clés : en gras, soulignés d'un trait vert qui se trace au scroll */
.boxed, .pill { font-weight: 600; }
.box-svg path, .pill-svg path, .cta-oval path { stroke-width: 3; stroke-linecap: round; }

/* titres : au survol, un reflet vert léger balaie les lettres, une seule fois */
.x-title, .coll-title {
  background: linear-gradient(100deg, var(--text) 44%, var(--signal) 50%, var(--text) 56%);
  background-size: 260% 100%; background-position: 100% 0;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.x-title:hover, .coll-title:hover { animation: x-tscan 1.2s var(--ease-inout) forwards; }
@keyframes x-tscan { from { background-position: 100% 0; } to { background-position: 0 0; } }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) { .x-title:hover, .coll-title:hover { animation: none; } }

/* chargement : le nom en grand (il rétrécit ensuite en volant jusqu'à la barre) */
.loader-wordmark { font-size: clamp(34px, 5.6vw, 84px); letter-spacing: -0.045em; font-weight: 500; line-height: 1; }
.loader-rule { width: clamp(120px, 12vw, 190px); }

/* logo 2M */
.x-logo { display: block; width: auto; max-width: none; border-radius: 0; }
.dock-wordmark .x-logo { height: 24px; }
.loader-wordmark .x-logo { height: clamp(64px, 10vw, 128px); }
@media (max-width: 900px) { .dock-wordmark .x-logo { height: 22px; } }

/* séquence de démarrage (pendant le chargement) */
.x-boot {
  position: absolute; left: var(--gutter); bottom: clamp(24px, 6vh, 56px);
  margin: 0; font-family: var(--mono); font-size: 12px; line-height: 1.7;
  color: var(--muted); white-space: pre; text-align: left;
  transition: opacity .35s var(--ease-out);
}
.x-boot b { color: var(--signal); font-weight: 400; }
.loader.done .x-boot { opacity: 0; }

/* grain de pellicule : calque fixe et IMMOBILE (plus d'animation : un calque
   plein écran qui bouge en continu coûtait des images par seconde) */
.x-grain {
  position: fixed; inset: 0; z-index: 250; pointer-events: none;
  opacity: .075;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* nuage d'ouverture : la vidéo du métro (9:16, plus haute que la photo
   d'origine) recouvrait le 6e visuel juste en dessous → retiré */
.floaters .fl:nth-child(6) { display: none; }

/* nuage d'ouverture : mini-vidéos */
.fl video { display: block; width: 100%; aspect-ratio: 9 / 16; object-fit: cover; border-radius: var(--radius); transform: scale(1.3); transition: transform 1.7s var(--ease-out); transition-delay: calc(var(--fi, 0) * 90ms + .15s); }
body.is-ready .fl video { transform: scale(1); }
/* 1er visuel (gauche) : cadre raccourci pour ne pas toucher le titre */
.floaters .fl:nth-child(1) video { aspect-ratio: 3 / 4; }


/* bouton « Réserver mon appel » (scène Démarche) : le moteur ne le montre
   qu'à la toute fin de la scène → il clignotait. extras.js pose .x-cta-on
   dès que les étapes sont affichées : il reste alors visible et cliquable.
   Invisible, il ne capte plus les appuis. */
.steps-cta { pointer-events: none; }
.steps-cta a { pointer-events: auto; touch-action: manipulation; }
.steps-cta:not(.x-cta-on) a { pointer-events: none; }
.steps-cta.x-cta-on { opacity: 1 !important; transform: translate(-50%, 0) !important; transition: opacity .4s var(--ease-out); }
/* animations réduites : pas de scène, le bouton est un simple lien toujours cliquable */
body.static .steps-cta a { pointer-events: auto; }
/* animations réduites : les visuels de bord du nuage débordaient à droite
   (défilement horizontal) — on les coupe au cadre */
body.static .floaters { overflow: hidden; }
/* animations réduites : « Quatre étapes, cinq jours. » peut passer à la ligne */
body.static .night-line { white-space: normal; flex-wrap: wrap; justify-content: center; text-align: center; padding: 0 var(--gutter); row-gap: .1em; }

/* ═══════════ OFFRES — 3 formules ═══════════ */
.x-offer-grid {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 20px); max-width: 1120px; margin: 0 auto; align-items: stretch;
}
.x-offer {
  position: relative; display: flex; flex-direction: column; gap: 18px;
  padding: clamp(24px, 2.6vw, 34px); border-radius: 14px;
  background: var(--surface); border: 1px solid var(--line);
  transition: border-color .3s, transform .5s var(--ease-out);
}
.x-offer:hover { border-color: var(--line-2); transform: translateY(-4px); }
.x-offer-hot { border-color: rgba(61, 240, 139, .55); box-shadow: 0 24px 60px -34px rgba(61, 240, 139, .5); }
.x-offer-hot:hover { border-color: var(--signal); }
.x-offer-badge {
  position: absolute; top: -11px; left: clamp(24px, 2.6vw, 34px);
  padding: 4px 10px; border-radius: 999px; font-size: 10px; letter-spacing: .12em;
  background: var(--signal); color: var(--on-signal);
}
.x-offer-name { color: var(--muted); letter-spacing: .18em; }
.x-offer-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; line-height: 1; }
.x-offer-price span { font-family: var(--display); font-size: clamp(44px, 4.6vw, 64px); letter-spacing: -0.01em; color: var(--text); }
.x-offer-hot .x-offer-price span { color: var(--signal); }
.x-offer-price small { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.x-offer-list { list-style: none; margin: 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.x-offer-list li { position: relative; padding-left: 18px; font-size: 16px; line-height: 1.35; color: var(--text); }
.x-offer-list li::before { content: ''; position: absolute; left: 0; top: .55em; width: 7px; height: 2px; background: var(--signal); }
.x-offer-cta {
  margin-top: auto; text-align: center; padding: 13px 16px; border-radius: 10px;
  border: 1px solid var(--line-2); color: var(--text); transition: background .25s, color .25s, border-color .25s;
}
.x-offer-cta:hover { border-color: var(--signal); color: var(--signal); }
.x-offer-hot .x-offer-cta { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.x-offer-hot .x-offer-cta:hover { background: var(--signal-dim); color: var(--on-signal); }
.x-offer-note { text-align: center; margin-top: 22px; }
@media (max-width: 900px) {
  .x-offer-grid { grid-template-columns: 1fr; max-width: 460px; gap: 22px; }
  .x-offer-hot { order: -1; }   /* au téléphone, l'offre phare en premier */
}

/* ═══════════ BOUTON WHATSAPP FLOTTANT ═══════════ */
.x-wa {
  position: fixed; right: calc(18px + env(safe-area-inset-right, 0px)); bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  z-index: 95; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--signal); color: var(--on-signal);
  box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .7), 0 0 0 0 rgba(61, 240, 139, .5);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out), background .25s;
}
.x-wa.on { opacity: 1; transform: none; pointer-events: auto; animation: x-wa-pulse 2.8s ease-out 1.2s 3; }
.x-wa:hover { background: var(--signal-dim); }
.x-wa:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.x-wa svg { width: 28px; height: 28px; }
@keyframes x-wa-pulse { 0% { box-shadow: 0 12px 30px -10px rgba(0,0,0,.7), 0 0 0 0 rgba(61,240,139,.5); } 70% { box-shadow: 0 12px 30px -10px rgba(0,0,0,.7), 0 0 0 16px rgba(61,240,139,0); } 100% { box-shadow: 0 12px 30px -10px rgba(0,0,0,.7), 0 0 0 0 rgba(61,240,139,0); } }
@media (max-width: 900px) { .x-wa { width: 52px; height: 52px; } }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) { .x-wa.on { animation: none; } }

/* ═══════════ SÉLECTEUR DE LANGUE (barre du haut, à droite) ═══════════ */
.x-lang {
  display: flex; align-items: center; gap: 1px;
  margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(var(--ink-rgb), .12);
}
.x-lang a {
  font-family: var(--mono); font-size: 11px; letter-spacing: .06em;
  padding: 8px 6px; color: var(--muted); border-radius: var(--radius);
  transition: color .25s, background .25s;
}
.x-lang a:hover { color: var(--text); }
.x-lang a[aria-current] { color: var(--signal); }
.x-lang a:focus-visible { outline: 2px solid var(--signal); outline-offset: 1px; }
@media (max-width: 900px) {
  .x-lang { margin-left: 4px; padding-left: 4px; }
  .x-lang a { padding: 8px 4px; font-size: 10.5px; }
}

/* ═══════════ BARRE DE PROGRESSION ═══════════ */
.x-progress {
  position: fixed; left: 0; top: 0; width: 100%; height: 3px;
  z-index: 150; pointer-events: none; background: rgba(var(--ink-rgb), .14);
}
.x-progress i {
  display: block; width: 100%; height: 100%;
  background: var(--signal); box-shadow: 0 0 10px rgba(61, 240, 139, .7);
  /* un petit départ visible dès l'arrivée : on voit tout de suite le principe */
  transform: scaleX(.015); transform-origin: left; will-change: transform;
  transition: transform .12s linear;
}

/* ═══════════ INDICATEUR DE DÉFILEMENT ═══════════
   Le geste universel, lisible au premier coup d'œil :
   ordinateur → souris dont la molette (verte) descend + flèches qui clignotent ;
   téléphone → doigt qui glisse vers le haut. Texte explicite en français.
   Centré en bas, au-dessus de la barre Safari sur mobile. */
.x-hint {
  position: fixed; left: 50%; bottom: calc(26px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 10px); z-index: 90; pointer-events: none;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 22px 12px; border-radius: 22px;
  background: rgba(7, 10, 9, .82); border: 1px solid rgba(61, 240, 139, .35);
  box-shadow: 0 10px 40px -12px rgba(0, 0, 0, .8), 0 0 24px -8px rgba(61, 240, 139, .35);
  color: var(--text);
  opacity: 0; transition: opacity .6s var(--ease-out), transform .6s var(--ease-out);
}
.x-hint.show { opacity: 1; transform: translate(-50%, 0); animation: x-hint-float 2.4s var(--ease-inout) .6s infinite; }
.x-hint-ico { width: 26px; height: 41px; display: block; overflow: visible; }
.x-wheel { animation: x-wheel 1.5s var(--ease-inout) infinite; }
.x-finger { animation: x-finger 1.7s var(--ease-inout) infinite; }
.x-chev { display: flex; flex-direction: column; align-items: center; margin-top: -2px; }
.x-chev i {
  display: block; width: 9px; height: 9px; margin-top: -3px;
  border-right: 2px solid var(--signal); border-bottom: 2px solid var(--signal);
  transform: rotate(45deg); opacity: .2;
  animation: x-chev 1.5s var(--ease-inout) infinite;
}
.x-chev i:nth-child(2) { animation-delay: .2s; }
.x-hint-txt {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: .24em; text-indent: .24em; white-space: nowrap; color: var(--text);
}
@keyframes x-wheel { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(12px); opacity: 0; } 100% { transform: translateY(0); opacity: 0; } }
@keyframes x-finger { 0% { transform: translateY(0); opacity: 0; } 20% { opacity: 1; } 80% { transform: translateY(-22px); opacity: 1; } 100% { transform: translateY(-26px); opacity: 0; } }
@keyframes x-chev { 0%, 100% { opacity: .15; } 50% { opacity: 1; } }
@keyframes x-hint-float { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -5px); } }
@media (max-width: 900px) {
  /* au-dessus du bouton WhatsApp (bas à droite), sans le toucher */
  .x-hint { bottom: calc(84px + env(safe-area-inset-bottom, 0px)); padding: 12px 18px 11px; }
  .x-hint-txt { font-size: 10px; letter-spacing: .2em; text-indent: .2em; }
}
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .x-hint.show, .x-wheel, .x-finger, .x-chev i { animation: none; }
  .x-chev i { opacity: .8; }
}

/* ═══════════ SURVOL DES PHOTOS — scan vert ═══════════
   Galerie + cartes des secteurs. Au survol : une ligne de scan balaie
   l'image une fois, un liseré signal apparaît, la photo se resserre.
   Sobre : un seul passage, pas de boucle. */
.x-ph:has(img)::before { content: none; }
.x-ph:has(img)::after, .card-img::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; z-index: 2;
  height: 36%; pointer-events: none;
  /* version discrète : voile quasi invisible + une ligne fine, blanche teintée de vert */
  background:
    linear-gradient(180deg, transparent 0%, rgba(233, 242, 237, .02) 60%, rgba(61, 240, 139, .07) 94%, rgba(210, 255, 228, .55) 99.4%, transparent 100%);
  transform: translateY(-105%); opacity: 0;
  mix-blend-mode: screen;
}
.x-ph:has(img):hover::after, .card:hover .card-img::after { animation: x-scan 1.4s var(--ease-inout) forwards; }
@keyframes x-scan {
  0%   { transform: translateY(-105%); opacity: 1; }
  80%  { opacity: .9; }
  100% { transform: translateY(285%); opacity: 0; }
}
.x-ph img, .card-img img { transition: transform .9s var(--ease-out), filter .6s var(--ease-out); }
.x-ph:has(img):hover img, .card:hover .card-img img { transform: scale(1.03); filter: contrast(1.04); }
.x-ph:has(img), .card-img { transition: box-shadow .5s var(--ease-out); }
.x-ph:has(img):hover, .card:hover .card-img { box-shadow: 0 0 0 1px rgba(233, 242, 237, .14); }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .x-ph:has(img):hover::after, .card:hover .card-img::after { animation: none; }
}

/* ═══════════ RESPONSIVE ═══════════ */
@media (max-width: 900px) {
  /* Méthode : textes d'étape plus longs → le bloc descend sous le chiffre géant */
  .psteps { top: 58%; }
  /* bouton de la Démarche : remonté hors de la zone de la barre Safari
     (un appui tout en bas de l'écran ouvre la barre au lieu de cliquer) */
  .steps-cta { bottom: calc(15vh + env(safe-area-inset-bottom, 0px)); }
  .steps-cta a { padding: 0.5em 0.7em; }
  /* Anton au téléphone */
  .hero-title { font-size: clamp(34px, 10.5vw, 52px); }
  .spot-intro { font-size: clamp(28px, 8.4vw, 42px); }
  .night-line { font-size: clamp(30px, 9vw, 46px); }
  .x-title, .coll-title { font-size: clamp(32px, 9.6vw, 48px); }
  .x-wild-copy .x-title { font-size: clamp(36px, 10.4vw, 52px); }
  .final-text { font-size: clamp(30px, 8.8vw, 44px); }
  .pstep h3 { font-size: clamp(36px, 10.4vw, 52px); }
  .mw { font-size: clamp(56px, 17vw, 96px); }
  .x-num { font-size: clamp(54px, 15vw, 84px); }
  .footer-name { font-size: clamp(40px, 13vw, 80px); }
  /* nuage d'ouverture : la vidéo n° 7 (9:16) touchait le visuel n° 10 */
  .floaters .fl:nth-child(10) { left: 66%; }
  .x-sec { padding: 10vh var(--gutter); }
  .x-stats { padding: 8vh var(--gutter); }
  .x-stats-grid { grid-template-columns: 1fr 1fr; }
  .x-stat { padding: 22px 16px 22px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .x-stat:nth-child(odd) { padding-right: 16px; border-right: 1px solid var(--line); }
  .x-stat:nth-child(even) { padding-left: 16px; }
  .x-num { font-size: clamp(52px, 15vw, 84px); }
  .x-lbl { font-size: 11px; }
  /* films : défilement horizontal avec aimantation */
  .x-reel {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
    -webkit-overflow-scrolling: touch;
  }
  .x-film { flex: none; width: min(68vw, 300px); scroll-snap-align: center; }
  .x-strip {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter)); padding: 0 var(--gutter) 8px;
  }
  .x-clip { flex: none; width: min(42vw, 200px); scroll-snap-align: start; }
  .x-grid { grid-template-columns: 1fr 1fr; }
  .x-wild-in { grid-template-columns: 1fr; }
  .x-wild-film { width: min(78vw, 340px); margin: 0 auto; }
    .x-row { grid-template-columns: 1fr; }
  .x-list li { gap: 14px; padding: 16px 0; }
}

/* ═══════════ MODE STATIQUE / RÉDUIT ═══════════ */
body.static .x-stats { margin-top: 0; }
@media (prefers-reduced-motion: reduce) and (max-width: 0px) {
  .x-fallback i { animation: none; top: 35%; }
  .x-fallback span::before { animation: none; }
}

/* ═══════════ BOUTON WHATSAPP EN LIGNE (offres, devis, pied de page) ═══════════ */
.x-wa-row { display: flex; justify-content: center; margin-top: 28px; }
.x-wa-cta {
  display: inline-grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 14px; align-items: center;
  padding: 14px 26px 14px 18px; border-radius: 999px; text-decoration: none;
  background: #25D366; color: #06140c; box-shadow: 0 14px 34px -14px rgba(37, 211, 102, .7);
  transition: transform .25s var(--ease-out), box-shadow .25s, background .25s;
}
.x-wa-cta:hover { transform: translateY(-2px); background: #2fe673; box-shadow: 0 18px 40px -14px rgba(37, 211, 102, .85); }
.x-wa-cta:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }
.x-wa-cta svg { grid-row: 1 / 3; width: 30px; height: 30px; }
.x-wa-cta span { font-family: var(--sans); font-weight: 700; font-size: 16px; line-height: 1.15; text-align: left; }
.x-wa-cta small { font-size: 11px; letter-spacing: .08em; opacity: .75; text-align: left; }
.x-head .x-wa-row { justify-content: flex-start; margin-top: 22px; }
@media (max-width: 600px) { .x-wa-cta { padding: 12px 20px 12px 14px; } .x-wa-cta span { font-size: 15px; } }

/* ═══════════ PIED DE PAGE PLUS AFFICHÉ ═══════════ */
.footer-kicker {
  font-family: var(--display); text-transform: uppercase; color: var(--text) !important;
  font-size: clamp(40px, 7.4vw, 112px); line-height: .95; letter-spacing: 0; font-weight: 400;
  max-width: 14ch; margin: 0 auto 30px;
}
.footer-kicker .x-dot { color: var(--signal); }
.footer .footer-mail { font-size: clamp(17px, 2vw, 24px); color: var(--muted); }
.footer .footer-mail:hover { color: var(--text); }
.footer-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 30px auto 0; max-width: 900px; padding: 0; list-style: none; }
.footer-chips li {
  font-family: var(--mono); font-size: clamp(12px, 1.2vw, 15px); letter-spacing: .08em; text-transform: uppercase;
  padding: 11px 18px; border-radius: 999px; border: 1px solid var(--line-2); color: var(--text); background: var(--surface);
}
.footer-chips li:first-child { background: var(--signal); color: var(--on-signal); border-color: var(--signal); }
.footer .x-wa-row { margin-top: 30px; }
@media (max-width: 900px) { .footer .footer-mail { font-size: 17px; } }

/* ═══════════ CARTES UNIVERS CLIQUABLES ═══════════ */
.coll-grid .card.x-link { cursor: pointer; }
.coll-grid .card.x-link figcaption .mono::after {
  content: '  →'; white-space: pre; color: var(--signal); display: inline-block; transition: transform .25s var(--ease-out);
}
.coll-grid .card.x-link:hover figcaption .mono::after { transform: translateX(5px); }
.coll-grid .card.x-link:hover .card-img img { transform: scale(1.04); }
.coll-grid .card-img img { transition: transform .6s var(--ease-out); }
.coll-grid .card.x-link:focus-visible { outline: 2px solid var(--signal); outline-offset: 4px; }

/* galerie de 3 images : une seule rangée, aussi au téléphone */
.x-grid.x-grid-3 { max-width: 1000px; }
@media (max-width: 900px) { .x-grid.x-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } }

/* ═══════════ DEVISE · GÉNÉRIQUE DE FILM (extras.js) ═══════════ */
.s-motto.x-mt-on .motto-track { visibility: hidden; }          /* l'ancien train de lettres reste mesuré par le moteur, mais invisible */
.x-mt { position: absolute; inset: 0; pointer-events: none; }
.x-mt-word {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -54%);
  display: flex; flex-direction: column; align-items: center; visibility: hidden;
}
.x-mt-line {
  display: block; overflow: hidden; white-space: nowrap;
  padding: .14em .04em 0;                                        /* place pour les accents (É) */
  font-family: var(--display); text-transform: uppercase; font-weight: 400;
  font-size: clamp(84px, 17vw, 290px); line-height: .92; letter-spacing: .01em; color: var(--text);
}
.x-mt-line i { display: inline-block; font-style: normal; will-change: transform; transform: translate3d(0, 105%, 0); }
.x-mt-bar {
  display: block; width: 100%; height: clamp(4px, .55vw, 9px); margin-top: .6vw;
  background: var(--signal); transform: scaleX(0); transform-origin: left center;
  box-shadow: 0 0 22px rgba(61, 240, 139, .45);
}
.x-mt-count {
  position: absolute; left: 50%; top: calc(50% + clamp(70px, 11vw, 190px)); transform: translateX(-50%);
  color: var(--signal); letter-spacing: .3em;
}
@media (max-width: 600px) {
  .x-mt-line { font-size: 17vw; }
  .x-mt-count { top: calc(50% + 21vw); }
}
/* téléphone : la phrase sous le mot passe au-dessus de l'indicateur « glissez » */
@media (max-width: 600px) { .s-motto .motto-hint { bottom: auto; top: calc(50% + 34vw); } }
