/* Omnark · feuille de styles unique.
   Mise en page : alternance de grands blocs nuit (récit) et de sections claires (preuves, calcul),
   largeur de contenu 1200 px, coins arrondis réservés aux blocs qui forment un objet. */

@font-face {
  font-family: "Inter";
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Couleurs de la charte */
  --nuit: #0b1b27;
  --nuit-2: #0f2433;
  --petrole: #173b52;
  --acier: #214d68;
  --brume: #9fb9cc;
  --glace: #f4f7fa;
  --blanc: #ffffff;
  --encre: #0f2433;
  --encre-2: #3e5263;
  --encre-3: #5a6b79;
  --clair: #e8eef3;
  --clair-2: #a9bbc9;
  --clair-3: #7d91a1;
  --trait: #e3e9ef;
  --trait-nuit: rgba(159, 185, 204, 0.18);
  --orange: #f47738;
  --orange-survol: #ff8a4f;
  --todo-fond: #fdecc8;
  --todo-texte: #6b3d00;

  --font: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --r-xl: 28px;
  --r-l: 20px;
  --r-m: 14px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
[id] { scroll-margin-top: 96px; }

body {
  margin: 0;
  background: var(--nuit);
  color: var(--clair);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

h1, h2, h3 { margin: 0; text-wrap: balance; }
[hidden] { display: none !important; }
p { margin: 0; text-wrap: pretty; }
img, video { max-width: 100%; }
a { color: inherit; text-underline-offset: 0.2em; }
:focus-visible { outline: 2px solid var(--brume); outline-offset: 3px; }
.clair :focus-visible { outline-color: var(--acier); }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; z-index: 100; background: var(--blanc); color: var(--encre); padding: 8px 14px; border-radius: 8px; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
.titre-1, .titre-2, .titre-3, .chiffre {
  font-weight: 700;
  letter-spacing: -0.045em;
  font-variant-numeric: tabular-nums;
}
.titre-1 { font-size: clamp(2.6rem, 6.4vw, 5.6rem); line-height: 0.98; }
.titre-2 { font-size: clamp(2.1rem, 4.6vw, 4rem); line-height: 1; }
.titre-3 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.06; letter-spacing: -0.03em; }
.intro { font-size: clamp(1.0625rem, 1.6vw, 1.25rem); line-height: 1.6; }
.petit { font-size: 0.9375rem; }
.clair .intro, .clair .texte { color: var(--encre-2); }
.nuit .intro, .nuit .texte { color: var(--clair-2); }
.photo-bloc .intro { color: #d3dee6; text-shadow: 0 1px 18px rgba(11, 27, 39, 0.7); }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 54px; padding: 15px 28px; border-radius: 999px;
  font: inherit; font-size: 1.0625rem; font-weight: 700; text-decoration: none; cursor: pointer;
  border: 1px solid transparent; transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  text-align: center;
}
.btn:active { transform: scale(0.98); }
.btn-principal { background: var(--orange); color: var(--encre); }
.btn-principal:hover { background: var(--orange-survol); color: var(--encre); }
.btn-fantome { color: var(--blanc); border-color: rgba(232, 238, 243, 0.22); background: transparent; font-weight: 600; }
.btn-fantome:hover { background: rgba(232, 238, 243, 0.08); border-color: rgba(232, 238, 243, 0.4); }
.btn-clair { background: var(--blanc); color: var(--encre); border-color: #d6e0e8; font-weight: 600; }
.btn-clair:hover { border-color: #b8c7d3; }
.btn-petit { min-height: 44px; padding: 10px 20px; font-size: 0.9375rem; }

/* ---------- Surfaces ---------- */
.verre {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--trait-nuit);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
/* Cartes : relief par le filet, pas par une grande ombre floue (finitions du 18/10) */
.papier {
  background: var(--blanc); color: var(--encre); border: 1px solid var(--trait);
  box-shadow: 0 1px 2px rgba(15, 36, 51, 0.05);
}
.halo { position: absolute; pointer-events: none; background: radial-gradient(50% 50% at 50% 50%, rgba(33, 77, 104, 0.85), rgba(33, 77, 104, 0) 70%); filter: blur(40px); }

.nuit { background: var(--nuit); color: var(--clair); }
.clair { background: var(--glace); color: var(--encre); }

.todo { background: var(--todo-fond); color: var(--todo-texte); padding: 0 0.35em; border-radius: 4px; font-weight: 600; }

/* ---------- En-tête ---------- */
/* Pas de flou sur .entete : il ferait de l'en-tête le cadre du menu du téléphone, qui serait coupé à sa hauteur */
.entete { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; padding: 0 var(--gutter); background: rgba(11, 27, 39, 0.96); border-bottom: 1px solid transparent; transition: border-color 0.3s ease; }
.entete-barre {
  max-width: var(--wrap); margin-inline: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 12px 0;
}
.entete-logo { display: block; line-height: 0; }
.entete-logo img { height: 30px; width: auto; }
.entete nav { display: flex; gap: 30px; font-size: 0.9375rem; font-weight: 500; }
.entete nav a { position: relative; color: var(--clair-2); text-decoration: none; transition: color 0.15s ease; }
.entete nav a:hover { color: var(--blanc); }

/* ---------- Héros ---------- */
.heros { position: relative; padding-block: clamp(36px, 5vw, 72px) clamp(80px, 9vw, 128px); }
/* Lueur ancrée en bas du héros : elle reste dedans quelle que soit sa hauteur. Placée depuis le haut, elle débordait sur
   téléphone et voilait le titre de la section suivante ; la couper laissait une limite droite. */
.heros .halo { left: 50%; bottom: 48px; width: min(1100px, 100%); height: min(700px, 80%); transform: translateX(-50%); }
.heros-contenu { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.heros h1 { max-width: 1020px; color: var(--blanc); }
.heros h1 > span { display: block; }
.heros h1 .h1-doux { color: var(--brume); }
.heros .intro { max-width: 640px; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
ul.nu, ol.nu { list-style: none; margin: 0; padding: 0; }

/* Lecteur vidéo */
.lecteur-scene { width: 100%; max-width: 1080px; margin-top: clamp(28px, 4vw, 48px); }
.lecteur { padding: 10px; border-radius: 20px; }
.lecteur-cadre { position: relative; border-radius: 12px; overflow: hidden; background: #081520; aspect-ratio: 16 / 9; }
.lecteur video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Affiche du lecteur : nom Omnark, promesse, et le bouton de lecture logé au cœur de l'emblème.
   Tailles en unités du cadre (cqw) : la composition garde ses proportions du téléphone à l'ordinateur. */
.lecteur-cadre { container-type: inline-size; }
.lecteur-lancer {
  position: absolute; inset: 0; display: block; border: 0; padding: 0; cursor: pointer;
  background: transparent; color: var(--blanc); font: inherit; text-align: left;
}
.aff-texte {
  position: absolute; left: 7.2cqw; top: 50%; transform: translateY(-50%); width: 49cqw;
  display: flex; flex-direction: column; align-items: flex-start; gap: 2.6cqw;
}
.aff-nom { display: block; height: max(13px, 2.5cqw); width: auto; opacity: 0.92; }
.aff-titre {
  display: block; white-space: nowrap; font-size: max(15px, 4.6cqw); line-height: 1.06; font-weight: 700; letter-spacing: -0.025em;
  text-shadow: 0 2px 30px rgba(6, 16, 24, 0.45);
}
.aff-action {
  display: inline-flex; align-items: center; gap: 1.4cqw; white-space: nowrap; font-size: max(12px, 1.55cqw); font-weight: 600; color: var(--blanc);
}
/* Durée présentée comme une cote de plan */
.aff-cote {
  display: inline-flex; align-items: center; gap: 0.9cqw; color: var(--brume); font-weight: 500;
  font-variant-numeric: tabular-nums; letter-spacing: 0.01em;
}
.aff-cote i {
  position: relative; width: 3.2cqw; height: 1px; background: currentColor; opacity: 0.7;
}
.aff-cote i::before { content: ""; position: absolute; top: -0.5cqw; width: 1px; height: 1cqw; background: currentColor; }
.aff-cote i:first-child::before { left: 0; }
.aff-cote i:last-child::before { right: 0; }
.aff-embleme {
  position: absolute; right: 7cqw; top: 50%; width: 37cqw; aspect-ratio: 900 / 949; transform: translateY(-50%);
}
.aff-embleme::before {
  content: ""; position: absolute; inset: -18%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 170, 200, 0.22), rgba(120, 170, 200, 0) 70%);
}
.aff-anneau {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform-origin: 50.7% 46.7%;
}
/* Emblème en blanc plein, sans halo : à 82 % d'opacité avec une lueur autour des traits, il paraissait flou */
.aff-play {
  position: absolute; left: 50.7%; top: 46.7%; width: 19%; aspect-ratio: 1; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--orange); display: grid; place-items: center;
  box-shadow: 0 0 0 0.45cqw rgba(244, 119, 56, 0.22), 0 0 3.2cqw rgba(244, 119, 56, 0.45), 0 1.2cqw 2.4cqw -0.8cqw rgba(0, 0, 0, 0.6);
  transition: transform 0.35s cubic-bezier(.2, .8, .2, 1), box-shadow 0.35s ease, background-color 0.25s ease, scale 0.75s cubic-bezier(.34, 1.56, .64, 1) 0.7s;
}
.aff-play svg { width: 34%; height: 34%; margin-left: 8%; }
/* Deux ondes orange décalées qui partent de la pastille */
.aff-play::before, .aff-play::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(244, 119, 56, 0.9); opacity: 0;
}
.lecteur-lancer:hover .aff-play, .lecteur-lancer:focus-visible .aff-play {
  transform: translate(-50%, -50%) scale(1.12); background: var(--orange-survol);
  box-shadow: 0 0 0 0.8cqw rgba(244, 119, 56, 0.25), 0 0 4.5cqw rgba(244, 119, 56, 0.6), 0 1.4cqw 2.8cqw -0.8cqw rgba(0, 0, 0, 0.6);
}
/* « Lancer la vidéo » répond aussi au survol : flèche qui glisse vers la pastille */
.aff-action::after {
  content: ""; width: 0.75em; height: 0.75em; margin-left: -0.6cqw; order: 1;
  background: currentColor; clip-path: polygon(0 15%, 55% 50%, 0 85%, 0 15%);
  transition: transform 0.3s cubic-bezier(.2, .8, .2, 1);
}
.lecteur-lancer:hover .aff-action::after { transform: translateX(0.5cqw); }
.aff-cote { order: 2; }
.lecteur-lancer:focus-visible { outline: 3px solid var(--blanc); outline-offset: -6px; border-radius: 12px; }
@media (prefers-reduced-motion: no-preference) {
  .aff-anneau { animation: aff-tour 80s linear infinite; }
  /* Les ondes ne partent qu'au survol : en boucle permanente, elles attiraient l'œil sans raison */
  .lecteur-lancer:is(:hover, :focus-visible) .aff-play::before, .lecteur-lancer:is(:hover, :focus-visible) .aff-play::after { animation: aff-onde 2.6s cubic-bezier(.2, .6, .3, 1) infinite; }
  .aff-play::after { animation-delay: 1.3s; }
}
.aff-titre-2 { color: var(--brume); }
/* Entrée de l'affiche (seulement si les animations sont permises) : le texte monte, l'emblème pivote en place, puis la pastille éclot */
.aff-texte > * { transition: opacity 0.8s cubic-bezier(.16, 1, .3, 1), translate 0.8s cubic-bezier(.16, 1, .3, 1); }
.aff-texte > :nth-child(2) { transition-delay: 0.1s; }
.aff-texte > :nth-child(3) { transition-delay: 0.22s; }
.aff-embleme { transition: opacity 1.1s ease, scale 1.6s cubic-bezier(.16, 1, .3, 1); }
.aff-anneau { transition: rotate 1.8s cubic-bezier(.16, 1, .3, 1); }
.anim .lecteur-lancer:not(.vu) .aff-texte > * { opacity: 0; translate: 0 1.6cqw; }
.anim .lecteur-lancer:not(.vu) .aff-embleme { opacity: 0; scale: 0.88; }
.anim .lecteur-lancer:not(.vu) .aff-anneau { rotate: -50deg; }
.anim .lecteur-lancer:not(.vu) .aff-play { scale: 0; }
.anim .lecteur-lancer:not(.vu) .aff-play::before, .anim .lecteur-lancer:not(.vu) .aff-play::after { animation: none; }
@keyframes aff-tour { to { transform: rotate(360deg); } }
@keyframes aff-onde { 0% { transform: scale(1); opacity: 0.85; } 100% { transform: scale(2.1); opacity: 0; } }
@media (max-width: 640px) {
  .aff-texte { left: 6cqw; width: 52cqw; gap: 3cqw; }
  .aff-embleme { right: 4.5cqw; width: 36cqw; }
  .aff-cote i { width: 2.6cqw; }
}

/* Séquence d'arrivée du héros : un seul moment orchestré */
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ligne { from { opacity: 0; transform: translateY(0.32em); clip-path: inset(-10% -6% 110% -6%); } to { opacity: 1; transform: none; clip-path: inset(-10% -6% -24% -6%); } }
.arrivee > * { animation: monte 0.8s cubic-bezier(.16, 1, .3, 1) both; }
.arrivee > h1 { animation: none; }
.arrivee > h1 > span { animation: ligne 1.1s cubic-bezier(.16, 1, .3, 1) 0.06s both; }
.arrivee > h1 > span + span { animation-delay: 0.38s; }
.arrivee > *:nth-child(3) { animation-delay: 0.5s; }
.arrivee > *:nth-child(4) { animation-delay: 0.6s; }
.arrivee > *:nth-child(5) { animation-delay: 0.72s; }
.arrivee > *:nth-child(6) { animation-delay: 0.86s; }
.arrivee > *:nth-child(7) { animation-delay: 0.94s; }

/* ---------- Sections génériques ---------- */
.section { padding-block: 0 clamp(80px, 10vw, 140px); }
.section-tete { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px 64px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-tete h2 { flex: 1 1 560px; }
.section-tete p { flex: 1 1 300px; max-width: 420px; }
.grille-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)); gap: 16px; }

/* ---------- Problème ---------- */
.carte-pb { border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; justify-content: space-between; }
.carte-pb h3 { font-size: 1.375rem; color: var(--blanc); }
.carte-pb p { margin-top: 8px; color: var(--clair-2); }
.carte-pb .bulle { margin-top: 0; }
.carte-pb .bulle-eux { color: var(--encre); }
.carte-pb .bulle-vous { color: var(--blanc); }
.bulles { display: flex; flex-direction: column; gap: 10px; }
.bulle { max-width: 82%; padding: 14px 18px; font-size: 1rem; line-height: 1.4; }
.bulle small { display: block; font-size: 0.75rem; font-weight: 700; margin-bottom: 4px; }
.bulle-eux { align-self: flex-start; border-radius: 18px 18px 18px 6px; background: var(--clair); color: var(--encre); }
.bulle-eux small { color: var(--encre-3); }
.bulle-vous { align-self: flex-end; max-width: 70%; border-radius: 18px 18px 6px 18px; background: var(--acier); color: var(--blanc); }
.bulle-vous small { color: #b9c8d4; }
.horloge { display: flex; align-items: center; justify-content: center; gap: 20px; min-height: 196px; color: var(--brume); }
.horloge .chiffre { font-size: clamp(4.5rem, 9vw, 7.5rem); line-height: 1; }
.perdus { margin-top: 16px; border-radius: var(--r-l); padding: clamp(24px, 3vw, 36px); display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: center; }
.perdus > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 10px; }
.perdus h3 { color: var(--blanc); }
.perdus ul { flex: 1 1 420px; display: flex; flex-direction: column; gap: 8px; }
.perdus li { display: flex; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 12px; font-size: 0.9375rem; }
.perdus li.ok { background: rgba(255, 255, 255, 0.06); }
.perdus li.ok span:first-child { color: var(--blanc); font-weight: 600; }
.perdus li.ok span:last-child { color: var(--brume); font-weight: 700; }
.perdus li.ko { border: 1px dashed rgba(159, 185, 204, 0.25); color: var(--clair-3); }
.perdus li.ko s { text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 58% / 100% 1.5px no-repeat; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.perdus li.ko span:last-child { font-weight: 700; }
.perdus li span:last-child { white-space: nowrap; }

/* ---------- Calculateur ---------- */
.bloc-clair-arrondi { border-radius: 28px 28px 0 0; padding-block: clamp(80px, 10vw, 140px); }
.calcul { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.calcul-reglages { flex: 3 1 460px; border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 26px; }
.reglage { display: flex; flex-direction: column; gap: 6px; }
.reglage-tete { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; }
.reglage output { font-weight: 700; font-size: 1.375rem; letter-spacing: -0.02em; color: var(--petrole); font-variant-numeric: tabular-nums; white-space: nowrap; }
.reglage input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0; cursor: pointer; background: transparent; }
.reglage input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--petrole) 0 var(--p, 50%), #dde6ed var(--p, 50%) 100%); }
.reglage input[type="range"]::-moz-range-track { height: 6px; border-radius: 999px; background: #dde6ed; }
.reglage input[type="range"]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--petrole); }
.reglage input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border-radius: 50%; background: var(--blanc); border: 2px solid var(--petrole); box-shadow: 0 2px 8px rgba(15, 36, 51, 0.25); transition: transform 0.15s ease, box-shadow 0.15s ease; }
.reglage input[type="range"]::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--blanc); border: 2px solid var(--petrole); box-shadow: 0 2px 8px rgba(15, 36, 51, 0.25); }
.reglage input[type="range"]:hover::-webkit-slider-thumb, .reglage input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); }
.reglage input[type="range"]:focus-visible { outline: none; }
.reglage input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 5px rgba(33, 77, 104, 0.22), 0 2px 8px rgba(15, 36, 51, 0.25); }
.reglage input[type="range"]:focus-visible::-moz-range-thumb { box-shadow: 0 0 0 5px rgba(33, 77, 104, 0.22); }
.separateur { height: 1px; background: var(--trait); }
.calcul-resultat { flex: 2 1 360px; border-radius: 20px; padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; gap: 26px; position: relative; overflow: hidden; }
.calcul-resultat .halo { right: -40%; top: -30%; width: 120%; height: 90%; }
.calcul-resultat > *:not(.halo) { position: relative; }
.resultat { display: flex; flex-direction: column; gap: 6px; }
.resultat span { color: var(--clair-2); font-size: 0.9375rem; }
.resultat strong { color: var(--blanc); font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; }
.resultat strong.moyen { font-size: clamp(2.2rem, 4vw, 3.25rem); }
.calcul-resultat .btn { margin-top: auto; }

/* ---------- Photo métier ---------- */
.photo-bloc { position: relative; border-radius: var(--r-xl); overflow: hidden; min-height: 720px; display: flex; align-items: flex-end; background: linear-gradient(135deg, var(--petrole) 0%, var(--nuit-2) 45%, var(--nuit) 100%); }
.photo-bloc img.photo { position: absolute; top: 0; right: 0; height: 100%; width: auto; max-width: 100%; aspect-ratio: 1 / 1; object-fit: cover; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 30%); mask-image: linear-gradient(90deg, transparent 0%, #000 30%); }
.photo-bloc::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(11, 27, 39, 0.92) 0%, rgba(11, 27, 39, 0.6) 24%, rgba(11, 27, 39, 0) 46%), linear-gradient(90deg, rgba(11, 27, 39, 0.35) 0%, rgba(11, 27, 39, 0) 45%); }
.photo-texte { position: relative; z-index: 1; padding: clamp(32px, 5vw, 64px); max-width: 700px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; color: var(--blanc); }
.photo-texte h2 { text-shadow: 0 2px 30px rgba(11, 27, 39, 0.5); }
/* Le trait d'union d'Inter garde de larges approches : avec l'interlettrage serré des grands titres, « Concentrez-vous » se lisait « Concentrez - vous ». */
.trait-union { margin-inline: -0.14em; }
.photo-texte p { color: #d3dee6; max-width: 540px; }

/* ---------- Solution ---------- */
.solution { border-radius: var(--r-xl); overflow: hidden; position: relative; }
.solution-tete { display: flex; flex-wrap: wrap; align-items: center; }
.solution-tete > div:first-child { flex: 1 1 540px; padding: clamp(36px, 5vw, 72px); display: flex; flex-direction: column; gap: 20px; position: relative; z-index: 1; }
.solution-tete h2 { color: var(--blanc); font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.solution-tete .accroche { font-size: 1.125rem; color: var(--brume); font-weight: 600; }
.chantier-zone { flex: 1 1 400px; min-height: 420px; position: relative; }
.chantier-zone .halo { inset: 0; }
.chantier-zone canvas { position: relative; display: block; width: 100%; height: 100%; min-height: 420px; cursor: grab; touch-action: pan-y; }
.chantier-zone canvas:active { cursor: grabbing; }
.chantier-zone small { position: absolute; right: 24px; bottom: 18px; color: var(--clair-2); font-size: 0.8125rem; }
.etapes { padding: 0 clamp(20px, 4vw, 56px) clamp(36px, 5vw, 64px); display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.onglets { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.onglet {
  position: relative; overflow: hidden; text-align: left; font: inherit; color: inherit; cursor: pointer;
  padding: 20px 22px; border-radius: 14px; border: 1px solid transparent; background: transparent;
  display: flex; gap: 16px; align-items: flex-start; transition: background-color 0.2s ease, border-color 0.2s ease;
}
.onglet:hover { background: rgba(255, 255, 255, 0.05); }
.onglet[aria-selected="true"] { background: rgba(255, 255, 255, 0.07); border-color: rgba(159, 185, 204, 0.25); }
.onglet .num { font-size: 1.625rem; line-height: 1; font-weight: 700; letter-spacing: -0.04em; color: #5f7686; min-width: 22px; }
.onglet[aria-selected="true"] .num { color: var(--brume); }
.onglet strong { display: block; font-size: 1.125rem; color: #c9d6e0; }
.onglet[aria-selected="true"] strong { color: var(--blanc); }
.onglet .desc { display: block; margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: var(--clair-2); }
.onglet .barre { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--brume); transform: scaleX(0); transform-origin: left; }
.onglet[aria-selected="true"] .barre.court { animation: progression 7s linear forwards; }
@keyframes progression { to { transform: scaleX(1); } }
.etapes.en-pause .onglet .barre.court { animation-play-state: paused; }
.ecran { flex: 2 1 560px; min-width: 0; align-self: center; border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; }
.ecran-barre { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--trait); background: #fbfcfd; }
.ecran-barre i { width: 10px; height: 10px; border-radius: 50%; background: #d6e0e8; }
.ecran-barre span { margin-left: 10px; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.8125rem; font-weight: 600; color: var(--encre-3); }
.panneau { padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.panneau-capture { padding: 0; flex: 1; background: var(--glace); }
.panneau-capture picture, .panneau-capture img { display: block; width: 100%; height: auto; }
.panneau-capture:focus-visible { outline-offset: -3px; }
/* ---------- Résultats ---------- */
.qui { margin-top: 16px; border-radius: 20px; padding: clamp(24px, 3vw, 40px); display: flex; flex-wrap: wrap; gap: 32px clamp(32px, 5vw, 72px); align-items: flex-start; }
.qui > div:first-child { flex: 1 1 340px; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.qui-resume { font-size: 1.125rem; line-height: 1.5; font-weight: 600; max-width: 400px; }
.bascule { display: inline-flex; padding: 5px; border-radius: 999px; background: #e6eef4; }
.bascule button { font: inherit; cursor: pointer; border: 0; min-height: 44px; padding: 10px 22px; border-radius: 999px; font-size: 0.9375rem; font-weight: 700; background: transparent; color: var(--encre-2); transition: background-color 0.2s ease, color 0.2s ease; }
.bascule button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.taches { flex: 1 1 440px; min-width: 0; }
.taches li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 4px; border-bottom: 1px solid #eef2f5; font-weight: 600; }
.taches li[data-etat="disparu"] span:first-child { color: var(--encre-3); text-decoration: line-through; }
.qui-tag { flex-shrink: 0; padding: 6px 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 700; background: #e6eef4; color: var(--encre); transition: background-color 0.35s ease, color 0.35s ease; }
li[data-etat="omnark"] .qui-tag { background: var(--petrole); color: var(--blanc); }
li[data-etat="disparu"] .qui-tag { background: #f1f4f7; color: var(--encre-3); }
.main { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-top: 28px; padding-top: 28px; border-top: 1px solid #dfe7ee; }
.main p { font-size: clamp(1.375rem, 2.4vw, 1.875rem); font-weight: 700; letter-spacing: -0.02em; line-height: 1.2; max-width: 560px; }
.main ul { display: flex; flex-wrap: wrap; gap: 12px 32px; }
.main li { display: inline-flex; align-items: center; gap: 10px; font-size: 1rem; font-weight: 700; }
.main svg { color: var(--petrole); }

/* ---------- Pastille du logo client (héros) ---------- */

/* ---------- Tarif ---------- */
.tarif { display: flex; flex-wrap: wrap; gap: 16px; align-items: stretch; }
.tarif-offre { flex: 3 1 460px; border-radius: 20px; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 22px; }
.tarif-prix { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.tarif-offre li { display: flex; gap: 12px; align-items: flex-start; padding: 8px 0; font-weight: 600; }
.tarif-offre li svg { flex-shrink: 0; margin-top: 4px; color: var(--acier); }
.tarif-comparer { flex: 2 1 340px; border-radius: 20px; padding: clamp(28px, 3vw, 44px); display: flex; flex-direction: column; gap: 16px; position: relative; overflow: hidden; }
.tarif-comparer .halo { left: -30%; bottom: -40%; width: 120%; height: 90%; }
.tarif-comparer > *:not(.halo) { position: relative; }
.tarif-comparer strong { color: var(--blanc); font-size: clamp(2.2rem, 4vw, 3.25rem); line-height: 1; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin-inline: auto; }
.faq h2 { text-align: center; margin-bottom: 28px; }
.faq-liste { border-radius: var(--r-l); padding: 6px 26px; }
.faq details { border-bottom: 1px solid #eef2f5; }
.faq details:last-child { border-bottom: 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 64px; padding: 18px 0; font-size: 1.0625rem; font-weight: 700; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex-shrink: 0; color: var(--acier); transition: transform 0.2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { padding: 0 32px 20px 0; color: var(--encre-2); }

/* ---------- Démo ---------- */
.demo { border-radius: 28px; overflow: hidden; position: relative; display: flex; flex-wrap: wrap; }
.demo .halo { left: 30%; top: -40%; width: 90%; height: 100%; }
.demo-texte { position: relative; flex: 1 1 420px; padding: clamp(32px, 5vw, 64px); display: flex; flex-direction: column; gap: 24px; }
.demo-texte h2 { color: var(--blanc); font-size: clamp(2.1rem, 3.6vw, 3.1rem); }
.demo-etapes { display: flex; flex-direction: column; gap: 16px; counter-reset: etape; }
.demo-etapes li { display: flex; gap: 16px; align-items: flex-start; color: #c9d6e0; }
.demo-etapes li::before { counter-increment: etape; content: counter(etape); flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(159, 185, 204, 0.35); display: grid; place-items: center; font-weight: 700; color: var(--blanc); font-size: 0.9375rem; }
.demo-contact { color: var(--clair-2); font-size: 0.9375rem; }
.demo-contact a { color: var(--blanc); font-weight: 600; }
.demo-form { position: relative; flex: 1 1 440px; margin: clamp(16px, 3vw, 32px); border-radius: 20px; padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; gap: 16px; }
.demo-form h3 { font-size: 1.375rem; letter-spacing: -0.02em; }
.champs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px; }
.champ { display: flex; flex-direction: column; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--encre-2); }
.champ.large { grid-column: 1 / -1; }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: 1rem; font-weight: 500; color: var(--encre); background: var(--blanc);
  border: 1px solid #cdd8e1; border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%;
}
.champ textarea { min-height: 96px; resize: vertical; }
.champ [aria-invalid="true"] { border-color: #b4532a; background: #fff8f4; }
.champ input:focus, .champ select:focus, .champ textarea:focus { outline: 2px solid var(--acier); outline-offset: 1px; border-color: var(--acier); }
.case { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--encre-2); }
.case input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--acier); }
.form-erreur { color: #a3261a; font-weight: 600; font-size: 0.9375rem; }
/* Le champ piège : hors de la vue et du clavier, seul un robot le remplit. */
.piege { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.btn-petrole { background: var(--blanc); color: var(--petrole); border: 2px solid var(--petrole); }
.btn-petrole:hover { background: var(--petrole); color: var(--blanc); }
/* Réservation en ligne sous les étapes, calée en bas de la colonne avec le contact : les deux colonnes de la démo
   finissent à la même hauteur, au lieu d'un texte en haut à gauche face à un formulaire qui descendait seul */
.demo-rdv { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding-top: 8px; }
.demo-rdv-note { font-size: 0.875rem; font-weight: 600; color: var(--brume); }
.demo-form-intro { margin-top: -8px; color: var(--encre-2); font-size: 0.9375rem; }
.envoi { display: flex; flex-direction: column; gap: 14px; }
#envoi-ok { margin-block: auto; align-items: center; text-align: center; }
.envoi pre { margin: 0; white-space: pre-wrap; font: inherit; font-size: 0.9375rem; line-height: 1.5; background: #f4f7fa; border: 1px solid var(--trait); border-radius: 12px; padding: 14px 16px; max-height: 260px; overflow: auto; }
.envoi .actions { justify-content: flex-start; }
.adresse { font-weight: 700; user-select: all; }

/* ---------- Pied de page ---------- */
.pied { padding-block: 0 40px; }
.pied-barre { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 32px; padding-top: 28px; border-top: 1px solid #dfe7ee; font-size: 0.875rem; color: var(--encre-2); }
.pied-barre nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.pied-barre a { color: var(--encre-2); }
.pied-barre .securite { display: flex; align-items: center; gap: 10px; }
.pied-barre .securite svg { color: var(--acier); }

/* ---------- Pages de texte (mentions légales, confidentialité) ---------- */
.doc { padding-block: clamp(40px, 6vw, 80px) clamp(64px, 8vw, 112px); }
.doc .wrap { max-width: 820px; }
.doc-carte { border-radius: var(--r-l); padding: clamp(24px, 4vw, 48px); }
.doc h1 { font-size: clamp(2rem, 4.5vw, 2.75rem); letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 16px; }
.doc .intro { margin-bottom: 32px; color: var(--encre-2); }
.doc h2 { font-size: 1.25rem; letter-spacing: -0.015em; margin: 36px 0 14px; padding-top: 22px; border-top: 1px solid var(--trait); }
.doc dl { display: grid; grid-template-columns: 13em minmax(0, 1fr); gap: 10px 24px; margin: 0 0 1em; }
.doc dt { font-weight: 600; }
.doc dd { margin: 0; color: var(--encre-2); }
.doc p, .doc li { color: var(--encre-2); }
.doc p { margin-bottom: 1em; }
.doc ul { padding-left: 1.2em; margin: 0 0 1em; }
.doc li { margin-bottom: 6px; }
.doc strong { color: var(--encre); }
.retour { display: inline-flex; margin-bottom: 20px; font-weight: 600; color: var(--acier); }

/* ---------- Petits écrans ---------- */
@media (max-width: 960px) {
  .entete nav { display: none; }
  .chantier-zone { display: none; }
}
@media (max-width: 640px) {
  .photo-bloc { min-height: 640px; }
  .photo-bloc img.photo { width: 100%; height: 62%; -webkit-mask-image: linear-gradient(0deg, transparent 0%, #000 35%); mask-image: linear-gradient(0deg, transparent 0%, #000 35%); }
  .doc dl { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .doc dd { margin-bottom: 12px; }
  .entete-logo img { height: 26px; }
  .entete .btn-petit { padding: 9px 14px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- Pages légales ---------- */
.doc-tete { position: relative; overflow: hidden; padding-bottom: clamp(48px, 7vw, 88px); }
.doc-tete .halo { width: 900px; height: 600px; left: -240px; top: -260px; }
.doc-tete .wrap { position: relative; max-width: 820px; padding-top: clamp(32px, 5vw, 64px); }
.doc-tete h1 { font-size: clamp(2.25rem, 5vw, 3.25rem); letter-spacing: -0.045em; line-height: 1.02; color: var(--blanc); }
.doc-tete p { margin-top: 14px; color: var(--clair-2); max-width: 60ch; }
.doc-retour { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 22px; font-size: 0.875rem; font-weight: 600; color: var(--brume); text-decoration: none; }
.doc-retour:hover { color: var(--blanc); }
.doc.clair { padding-block: 0 clamp(64px, 8vw, 112px); }
.doc .doc-carte { margin-top: clamp(-40px, -4vw, -24px); position: relative; }
.doc .doc-carte > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.doc .maj { margin-top: 32px; font-size: 0.875rem; color: var(--encre-2); }

/* ---------- Avis client : une carte mise en avant ---------- */
.avis { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.surtitre { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acier); }
.surtitre::before { content: ""; width: 28px; height: 2px; background: currentColor; }
/* Surtitre du héros, sur fond sombre et centré : un filet de chaque côté, là où une pastille en capsule faisait gabarit */
.surtitre-heros { justify-content: center; margin-bottom: 0; color: var(--brume); }
.surtitre-heros::after { content: ""; width: 28px; height: 2px; background: currentColor; }
/* iPhone (390 px) : avec ses deux filets, le surtitre passait sur deux lignes */
@media (max-width: 440px) { .surtitre-heros::before, .surtitre-heros::after { display: none; } }
.avis-tete .intro { margin-top: 24px; max-width: 34ch; }
/* Le chiffre d'Iso Habitat dans l'unité du simulateur (heures par dossier) : une journée à deux = 2 × 7 h (base de 35 h
   du simulateur, la plus basse) ; « une à deux heures » pris à sa borne haute. Ses termes restent écrits en dessous. */
.avis-chiffre { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--trait); }
.avis-chiffre-titre { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--encre-2); }
.avis-chiffre-valeur { margin-top: 10px; font-size: clamp(2.75rem, 4.6vw, 3.75rem); font-weight: 700; line-height: 1; letter-spacing: -0.045em; color: var(--encre); font-variant-numeric: tabular-nums; }
.avis-chiffre-avant { color: var(--encre-3); font-weight: 500; }
.avis-chiffre-fleche { color: var(--acier); font-weight: 400; margin-inline: 0.1em; }
.avis-chiffre-detail { margin-top: 12px; max-width: 40ch; font-size: 0.9375rem; line-height: 1.5; color: var(--encre-2); }
.avis-carte { margin: 0; filter: drop-shadow(0 12px 0 #cfdbe4); }
.avis-face { aspect-ratio: 1 / 1; padding: clamp(28px, 4.2vw, 56px); display: flex; flex-direction: column; gap: 26px; background: var(--petrole); color: var(--blanc); clip-path: polygon(0 0, calc(100% - 64px) 0, 100% 64px, 100% 100%, 0 100%); }
.avis-logo { display: grid; place-items: center; width: 64px; height: 64px; flex-shrink: 0; background: var(--blanc); box-shadow: 5px 5px 0 rgba(159, 185, 204, 0.4); }
.avis-logo img { width: 52px; height: 52px; object-fit: contain; }
.avis-face blockquote { margin: 0; display: flex; flex-direction: column; gap: 20px; }
.avis-citation { font-size: clamp(1.875rem, 3.4vw, 2.75rem); line-height: 1.08; font-weight: 700; letter-spacing: -0.04em; color: var(--blanc); text-wrap: balance; }
.avis-face blockquote p:not(.avis-citation) { font-size: 1.125rem; line-height: 1.65; color: #c9d6e0; max-width: 46ch; }
.avis-auteur { margin-top: auto; display: flex; flex-direction: column; gap: 2px; padding-top: 22px; border-top: 1px solid rgba(159, 185, 204, 0.25); }
.avis-auteur b { font-size: 1.0625rem; color: var(--blanc); }
.avis-auteur span { font-size: 0.9375rem; color: var(--clair-2); }
@media (max-width: 900px) {
  .avis { grid-template-columns: minmax(0, 1fr); }
  .avis-face { aspect-ratio: auto; }
}
@media (max-width: 640px) {
  .avis-face { clip-path: polygon(0 0, calc(100% - 40px) 0, 100% 40px, 100% 100%, 0 100%); }
}

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

.tarif-sous { margin: -8px 0 4px; color: var(--encre-2); font-size: 1.0625rem; }

/* ---------- Les trois formules ---------- */
.formules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.formule { border-radius: var(--r-l); padding: clamp(24px, 2.6vw, 36px); display: flex; flex-direction: column; gap: 6px; }
.formule-phare { background-color: var(--petrole); }
.formule-nom { font-size: 1.25rem; font-weight: 700; letter-spacing: -0.02em; }
.formule-dossiers { color: var(--encre-2); font-weight: 600; }
.formule-prix { margin-top: 18px; font-size: clamp(2.4rem, 4vw, 3.25rem); line-height: 1; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; }
.formule-prix small { font-size: 1rem; font-weight: 600; letter-spacing: 0; color: var(--encre-2); }
.formule-avant { color: var(--encre-2); }
.formule-note { margin-top: auto; padding-top: 18px; color: var(--encre-2); font-size: 0.9375rem; }
.formule-phare .formule-dossiers, .formule-phare .formule-avant, .formule-phare .formule-note, .formule-phare .formule-prix small { color: var(--clair-2); }
.formule-phare .formule-prix { color: var(--blanc); }
.tarif-offre .tarif-sous:last-of-type { margin: 0; }
@media (max-width: 900px) { .formules { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Barre de réservation fixe (téléphone) ---------- */
.barre-mobile { display: none; }
@media (max-width: 640px) {
  .barre-mobile {
    position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom, 0px)); z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 10px 10px 10px 18px; border-radius: 999px;
    background: rgba(11, 27, 39, 0.92); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid var(--trait-nuit); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, 0.6);
    transform: translateY(calc(100% + 40px)); visibility: hidden; transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), visibility 0s linear 0.35s;
  }
  .barre-mobile.visible { transform: none; visibility: visible; transition: transform 0.35s cubic-bezier(.2, .7, .2, 1), visibility 0s; }
  .barre-mobile > span { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
  .barre-mobile b { font-size: 0.9375rem; color: var(--blanc); }
  .barre-mobile > span span { font-size: 0.8125rem; color: var(--clair-2); }
  .barre-mobile .btn { flex-shrink: 0; box-shadow: none; }
  body.avec-barre .pied { padding-bottom: 96px; }
  body.barre-active .entete .btn-petit { opacity: 0; pointer-events: none; transition: opacity 0.2s ease; }
}

/* ================= Finitions premium (12/10/2026) ================= */

/* Résultats : liste éditoriale */
.resultats { border-top: 1px solid #d6e0e8; }
.resultats li { display: grid; grid-template-columns: 72px minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px 40px; align-items: baseline; padding: clamp(26px, 3.4vw, 44px) 0; border-bottom: 1px solid #d6e0e8; }
.res-num { font-size: 0.9375rem; font-weight: 700; color: var(--acier); font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.resultats h3 { font-size: clamp(1.75rem, 3.4vw, 2.75rem); line-height: 1.04; letter-spacing: -0.04em; color: var(--encre); text-wrap: balance; }
.resultats p { font-size: 1.125rem; line-height: 1.6; color: var(--encre-2); max-width: 44ch; }
.resultats + .qui { margin-top: clamp(40px, 5vw, 64px); }
@media (max-width: 760px) {
  .resultats li { grid-template-columns: minmax(0, 1fr); gap: 10px; }
}

/* Pour qui : deux colonnes sans cadre */
.pq { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); }
.pq-col h3 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.04em; line-height: 1; padding-bottom: 22px; border-bottom: 2px solid var(--encre); }
.pq-non h3 { color: var(--encre-2); border-bottom-color: #c9d6e0; }
.pq-col li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 0; border-bottom: 1px solid #dfe7ee; font-size: 1.125rem; line-height: 1.5; color: var(--encre); }
.pq-non li { color: var(--encre-2); }
.pq-marque { flex-shrink: 0; width: 28px; height: 28px; margin-top: -1px; border-radius: 50%; display: grid; place-items: center; background: var(--petrole); color: var(--blanc); }
.pq-non .pq-marque { background: transparent; border: 1.5px solid #b8c7d3; color: var(--encre-3); }
@media (max-width: 760px) { .pq { grid-template-columns: minmax(0, 1fr); } }

/* Tarif : carte de droite resserrée */
.tarif-comparer { justify-content: flex-start; }
.tarif-mois { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 6px; padding-top: 18px; border-top: 1px solid var(--trait-nuit); color: var(--clair-2); }
.tarif-mois b { font-size: 1.75rem; color: var(--blanc); letter-spacing: -0.03em; }
.tarif-comparer .btn { margin-top: auto; }

/* Grand pied de page */
.pied-grand { position: relative; overflow: hidden; padding-block: clamp(64px, 8vw, 112px) 32px; }
.pied-grand .halo { width: 900px; height: 640px; right: -260px; top: -180px; -webkit-mask-image: linear-gradient(180deg, transparent 22%, #000 55%); mask-image: linear-gradient(180deg, transparent 22%, #000 55%); }
.pied-grand .wrap { position: relative; }
.pied-haut { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 40px; padding-bottom: clamp(40px, 5vw, 64px); }
.pied-marque img { height: 44px; width: auto; }
.pied-marque p { margin-top: 18px; max-width: 36ch; color: var(--clair-2); font-size: 1rem; }
.pied-col { display: flex; flex-direction: column; gap: 12px; font-size: 0.9375rem; }
.pied-col b { color: var(--blanc); font-size: 0.875rem; margin-bottom: 4px; }
.pied-col a { color: var(--clair-2); text-decoration: none; transition: color 0.15s ease; }
.pied-col a:hover { color: var(--blanc); }
.pied-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; padding-top: 24px; border-top: 1px solid var(--trait-nuit); font-size: 0.875rem; color: var(--clair-2); }
.pied-bas .securite { display: flex; align-items: center; gap: 10px; }
.pied-bas .securite svg { color: var(--brume); }
@media (max-width: 860px) { .pied-haut { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pied-marque { grid-column: 1 / -1; } }
@media (max-width: 640px) { body.avec-barre .pied-grand { padding-bottom: 104px; } }

/* Apparition douce des blocs au défilement (activée par app.js, coupée si animations réduites) */
.anim [data-anim] { opacity: 0; transform: translateY(18px); transition: opacity 0.7s cubic-bezier(.2, .7, .2, 1), transform 0.7s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); }
.anim [data-anim].vu { opacity: 1; transform: none; }
.tarif-comparer strong { font-size: clamp(3rem, 5.6vw, 4.5rem); letter-spacing: -0.05em; }
.tarif-comparer { justify-content: center; }
.tarif-comparer .btn { margin-top: 12px; }
.pied-marque img { height: 52px; }

/* Calculateur : groupes et précisions */
.reglage-groupe { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--acier); margin-bottom: -10px; }
.reglage-tete small { display: block; margin-top: 2px; font-size: 0.8125rem; font-weight: 500; color: var(--encre-2); }

/* Pastille du héros : passage à la ligne propre sur téléphone */

/* ================= Passe premium 2 (14/10/2026) ================= */
::selection { background: #cfe0ec; color: var(--nuit); }
.ligne { display: block; }
.h-doux { color: var(--brume); }

/* Solution sur téléphone et tablette : l'écran d'abord, puis les étapes en version compacte */
@media (max-width: 960px) {
  .etapes { flex-direction: column; flex-wrap: nowrap; gap: 16px; }
  .ecran { order: -1; align-self: stretch; flex: none; }
  .onglets { flex: none; gap: 4px; }
  .onglet { padding: 14px 16px; gap: 14px; }
  .onglet .num { font-size: 1.25rem; }
  .onglet strong { font-size: 1.0625rem; }
  .onglet:not([aria-selected="true"]) .desc { display: none; }
}
/* Téléphone (19/10) : les étapes empilées avec leur capture, à la place des onglets. On voit les quatre écrans en
   descendant normalement, sans toucher les onglets ni détourner le défilement. */
.etapes-pile { display: none; }
@media (max-width: 640px) {
  .etapes { display: none; }
  .solution .etapes-pile { display: flex; flex-direction: column; gap: 36px; padding: 0 20px 40px; }
  .etapes-pile .etape-tete { display: flex; align-items: baseline; gap: 12px; }
  .etapes-pile .num { font-size: 1.25rem; line-height: 1; font-weight: 700; color: var(--brume); }
  .etapes-pile strong { font-size: 1.125rem; color: var(--blanc); }
  .etapes-pile .desc { margin-top: 6px; font-size: 0.9375rem; line-height: 1.55; color: var(--clair-2); }
  /* Le haut de chaque écran suffit à le reconnaître : en entier, les quatre captures doublaient la hauteur de la section */
  .etapes-pile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: top; margin-top: 16px; border-radius: 14px; border: 1px solid var(--trait-nuit); background: var(--glace); }
  .etapes-pile img.paysage { aspect-ratio: auto; }
}

/* Grain très léger sur les surfaces sombres : de la matière, et des dégradés sans bandes */
body, .nuit, .avis-face { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 .07 0 0 0 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23g)'/%3E%3C/svg%3E"); }

/* En-tête : un filet apparaît au défilement, point sous le lien de la section en cours */
.entete-barre { position: relative; z-index: 2; }
.entete.defile { border-bottom-color: var(--trait-nuit); }
.entete nav a::after { content: ""; position: absolute; left: 50%; bottom: -10px; width: 4px; height: 4px; border-radius: 50%; background: var(--brume); transform: translateX(-50%) scale(0); transition: transform 0.25s ease; }
.entete nav a[aria-current] { color: var(--blanc); }
.entete nav a[aria-current]::after { transform: translateX(-50%) scale(1); }
.entete-actions { display: flex; align-items: center; gap: 8px; }
.menu-bouton { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--trait-nuit); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.menu-bouton i { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--blanc); transition: transform 0.3s cubic-bezier(.2, .7, .2, 1); }
.menu-bouton i:first-of-type { top: 17px; }
.menu-bouton i:last-of-type { top: 25px; }
.menu-bouton[aria-expanded="true"] i:first-of-type { transform: translateY(4px) rotate(45deg); }
.menu-bouton[aria-expanded="true"] i:last-of-type { transform: translateY(-4px) rotate(-45deg); }
.menu-mobile { position: fixed; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; padding: calc(112px + env(safe-area-inset-top, 0px)) var(--gutter) calc(32px + env(safe-area-inset-bottom, 0px)); background: rgba(11, 27, 39, 0.97); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); overflow-y: auto; opacity: 0; transition: opacity 0.3s ease; }
.menu-mobile.ouvert { opacity: 1; }
.menu-mobile nav { display: flex; flex-direction: column; }
.menu-mobile nav a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--trait-nuit); font-size: clamp(1.75rem, 8vw, 2.5rem); font-weight: 700; letter-spacing: -0.04em; line-height: 1.1; color: var(--blanc); text-decoration: none; opacity: 0; transform: translateY(14px); transition: opacity 0.45s ease, transform 0.6s cubic-bezier(.16, 1, .3, 1); }
.menu-mobile.ouvert nav a { opacity: 1; transform: none; }
.menu-mobile nav a:nth-child(2) { transition-delay: 0.04s; }
.menu-mobile nav a:nth-child(3) { transition-delay: 0.08s; }
.menu-mobile nav a:nth-child(4) { transition-delay: 0.12s; }
.menu-mobile nav a:nth-child(5) { transition-delay: 0.16s; }
.menu-mobile nav small { font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.04em; color: var(--brume); font-variant-numeric: tabular-nums; }
.menu-pied { display: flex; flex-direction: column; gap: 6px; font-size: 0.9375rem; color: var(--clair-2); }
.menu-pied a { color: var(--blanc); font-weight: 600; }
@media (max-width: 960px) { .menu-bouton { display: block; } }
@media (min-width: 961px) { .menu-mobile { display: none !important; } }
body.menu-ouvert .barre-mobile { visibility: hidden; }
body.menu-ouvert .entete .btn-petit { opacity: 1; pointer-events: auto; }


/* Problème : les messages arrivent l'un après l'autre, les marchés se raturent un à un */
.carte-pb .bulle { transition: opacity 0.5s ease, transform 0.7s cubic-bezier(.16, 1, .3, 1); transition-delay: 0.3s; }
.carte-pb .bulle:nth-child(2) { transition-delay: 1s; }
.carte-pb .bulle:nth-child(3) { transition-delay: 1.7s; }
.anim .carte-pb:not(.vu) .bulle { opacity: 0; transform: translateY(14px) scale(0.97); }
.perdus li.ko s { transition: background-size 0.55s cubic-bezier(.65, 0, .35, 1); }
.perdus li.ko:nth-child(2) s { transition-delay: 0.7s; }
.perdus li.ko:nth-child(3) s { transition-delay: 1.05s; }
.perdus li.ko:nth-child(4) s { transition-delay: 1.4s; }
.anim .perdus:not(.vu) li.ko s { background-size: 0% 1.5px; }
.horloge svg { transition: opacity 0.8s ease 0.2s, transform 1.2s cubic-bezier(.16, 1, .3, 1) 0.2s; }
.anim .carte-pb:not(.vu) .horloge svg { opacity: 0; transform: rotate(-40deg) scale(0.8); }

/* Calculateur : l'année en 52 semaines (13 colonnes, une ligne par trimestre) */
.annee { display: flex; flex-direction: column; gap: 14px; }
.annee-grille { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 5px; max-width: 420px; }
.annee-grille i { aspect-ratio: 1; border-radius: 4px; background: rgba(159, 185, 204, 0.14); transition: background-color 0.35s ease, box-shadow 0.35s ease; }
.annee-grille i.plein { background: var(--brume); box-shadow: 0 0 14px -4px rgba(159, 185, 204, 0.8); }
.annee-legende { font-size: 0.9375rem; color: var(--clair-2); }
.annee-legende b { color: var(--blanc); }

/* Boutons : un léger enfoncement à l'appui ; plus de lueur orange au survol, elle faisait gabarit */
.btn-principal:active { transform: scale(0.98); }

/* FAQ : la réponse s'ouvre et se referme en douceur (activé par app.js) */
.faq details.fermeture summary svg { transform: none; }


/* Bouton de l'en-tête toujours en contour : l'orange reste aux boutons de la page, et l'en-tête ne change plus d'aspect
   au défilement (il s'allumait et s'éteignait selon les sections). Menu du téléphone ouvert : c'est la seule action, il passe en orange. */
.entete .btn-fantome { transition: background-color 0.35s ease, color 0.35s ease, border-color 0.35s ease, opacity 0.2s ease; }
body.menu-ouvert .entete .btn-fantome { background: var(--orange); color: var(--encre); border-color: transparent; }
/* Téléphone : la section photo arrive juste après le bouton du calculateur, pas de second bouton orange */
@media (max-width: 640px) { .photo-texte .btn { display: none; } }
