/* Educ Elec, V4 du 29/11/2026 (passe Impeccable sur la V3 du 28/11).
   Famille de style : les grandes marques de l'énergie et du matériel électrique (Enedis, EDF, Megger).
   Un bleu de marque, un marine, Public Sans, de vraies images de Jean-Marc.
   Signature : les trois fils (phase rouge, neutre bleu, terre vert et jaune). Le fil sort de la vidéo,
   relie les étapes et ferme la page.
   Formes : panneaux 24 px, cartes 16 px, petits blocs 10 px, boutons en pilule.
   Tailles de texte : 14, 15, 16, 18, 22, puis les titres. Écrit pour le téléphone d'abord. */

@font-face {
  font-family: "Public Sans";
  src: url("fonts/public-sans.woff2") format("woff2"), url("fonts/public-sans.woff") format("woff");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --encre: #0b1633;
  --texte-2: #4b5675;
  --marine: #0b1e4f;
  --bleu: #1f4fe0;
  --bleu-fonce: #173db8;
  --bleu-clair: #eaf0fd;
  --bleu-trait: #c9d6fa;
  --ciel: #a9bdff;
  --sur-marine: #c9d4f2;
  --fond: #eaf0fd;
  --trait: #dce2ec;
  --jaune: #ffc21a;
  --phase: #c8372d;
  --terre-v: #2e9e4f;
  --terre-j: #e8b800;
  --wa: #128540;
  --wa-fonce: #0f7a3b;
  --rayon-panneau: 24px;
  --rayon: 16px;
  --rayon-s: 10px;
  --ombre: 0 1px 2px rgba(11, 30, 79, .05), 0 10px 30px rgba(11, 30, 79, .07);
  --ombre-forte: 0 2px 4px rgba(11, 30, 79, .06), 0 24px 48px rgba(11, 30, 79, .12);
  --largeur: 1200px;
  --marge: max(16px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --doux: cubic-bezier(.23, 1, .32, 1);
  --t-h1: clamp(1.6rem, 7.5vw, 2.5rem);
  --t-h2: clamp(1.75rem, 1.32rem + 1.9vw, 2.625rem);
  --t-h3: 1.25rem;
  /* Le fil, couché : trois traits de 2 px séparés de 2 px */
  --fil: linear-gradient(var(--phase), var(--phase)) 0 0 / 100% 2px no-repeat,
         linear-gradient(var(--bleu), var(--bleu)) 0 4px / 100% 2px no-repeat,
         repeating-linear-gradient(90deg, var(--terre-v) 0 12px, var(--terre-j) 12px 24px) 0 8px / 100% 2px no-repeat;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding: 20px 0 84px; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body {
  margin: 0;
  font-family: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--encre);
  background: var(--marine);
  accent-color: var(--bleu);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--bleu); color: #fff; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
h1, h2, h3 { margin: 0; font-weight: 650; color: var(--encre); text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol, dl, dd { margin: 0; padding: 0; list-style: none; }
svg { flex: none; }
figure { margin: 0; }
a, button, summary { touch-action: manipulation; }
.btn, button, summary, .projet { -webkit-user-select: none; user-select: none; }
:focus-visible { outline: 3px solid var(--bleu); outline-offset: 3px; border-radius: 6px; }
.entete :focus-visible, .accueil :focus-visible, .bandeau :focus-visible, .sombre :focus-visible, .apercu :focus-visible, .pied :focus-visible { outline-color: #fff; }
.cache { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.evitement { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: 999px; background: #fff; color: var(--marine); font-weight: 600; box-shadow: var(--ombre-forte); }
.evitement:focus { top: 12px; }

.conteneur { width: min(var(--largeur), 100% - 2 * var(--marge)); margin-inline: auto; }
main { background: #fff; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font: inherit; font-weight: 600; line-height: 1; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, transform .16s var(--doux);
}
.btn svg { width: 20px; height: 20px; }
.btn:active { transform: scale(.97); }
.btn-petit { min-height: 44px; padding: 0 20px; }
.btn-bleu { background: var(--bleu); color: #fff; }
.btn-contour { border-color: var(--bleu-trait); color: var(--bleu); background: #fff; }
/* Tous les boutons qui ouvrent WhatsApp : le même, vert, avec le logo officiel */
.btn-wa { background: var(--wa); color: #fff; font-weight: 700; }
.btn.btn-wa svg { width: 21px; height: 21px; }

/* ---------- Bandeau des garanties (ordinateur) ---------- */
.bandeau { display: none; }
.garanties li { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--sur-marine); }
.garanties svg { width: 16px; height: 16px; color: var(--jaune); }

/* ---------- En-tête ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-size: 1.25rem; font-weight: 800; letter-spacing: -.035em; color: var(--marine); white-space: nowrap; }
.logo svg { width: 28px; height: 28px; }
.logo b { font-weight: 800; color: var(--bleu); }
.logo-anse { stroke: var(--logo-anse, #0b1e4f); }
.logo-corps { fill: var(--logo-corps, #1f4fe0); }
.logo-eclair { fill: var(--logo-eclair, #ffc21a); }
.logo-clair, .entete { --logo-anse: #fff; --logo-corps: #fff; --logo-eclair: var(--bleu); }
.logo-clair, .entete .logo { color: #fff; }
.logo-clair b, .entete .logo b { color: var(--ciel); }
.entete { background: var(--marine); padding-top: env(safe-area-inset-top); }
.entete .conteneur { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.entete .btn { background: #fff; color: var(--marine); border-color: transparent; }
.menu { display: none; }

/* ---------- Haut de page : titre, sous-titre, vidéo ---------- */
.accueil { background: var(--marine); color: #fff; overflow: hidden; overflow: clip; }
.panneau-haut { display: flex; flex-direction: column; align-items: center; padding-top: 10px; text-align: center; }
.accueil h1 { color: #fff; font-size: var(--t-h1); line-height: 1.1; letter-spacing: -.03em; }
br.ordi { display: none; }
.sous-titre { max-width: 34em; margin: 12px auto 0; font-size: 1rem; line-height: 1.5; color: var(--sur-marine); text-wrap: balance; }
.accueil-video { width: 100%; max-width: 760px; margin-top: 22px; }

/* La vidéo : un aperçu muet tourne en boucle, le bouton posé sur le fil lance la vidéo avec le son */
.film { position: relative; container-type: inline-size; }
.film-cadre { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 2px 6px rgba(3, 10, 32, .3), 0 20px 50px rgba(3, 10, 32, .45); }
.film-cadre video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #fff; }
.film-cadre { cursor: pointer; }
.film.en-lecture .film-cadre { cursor: auto; }
.film-cadre .film-apercu { z-index: 1; background: none; opacity: 0; transition: opacity .3s ease; }
.film-cadre .film-apercu.tourne { opacity: 1; }
/* Le fil de la page prolonge celui de la vidéo : même hauteur, mêmes épaisseurs, mêmes tirets (mesurés sur le film en 1920 × 1080) */
.film-fil { position: absolute; top: 90.556%; height: 2.778%; pointer-events: none; --u: calc(100cqw / 1920); }
.film-fil-g { right: 100%; width: var(--bord-g, 100vw); background:
  linear-gradient(var(--phase), var(--phase)) 0 0 / 100% 20% no-repeat,
  linear-gradient(var(--bleu), var(--bleu)) 0 50% / 100% 20% no-repeat,
  repeating-linear-gradient(270deg, var(--terre-j) 0 calc(16 * var(--u)), var(--terre-v) calc(16 * var(--u)) calc(52 * var(--u)), var(--terre-j) calc(52 * var(--u)) calc(72 * var(--u))) 0 100% / 100% 20% no-repeat; }
.film-fil-d { left: 100%; width: var(--bord-d, 100vw); background:
  linear-gradient(var(--phase), var(--phase)) 0 0 / 100% 20% no-repeat,
  linear-gradient(var(--bleu), var(--bleu)) 0 50% / 100% 20% no-repeat,
  repeating-linear-gradient(90deg, var(--terre-v) 0 calc(8 * var(--u)), var(--terre-j) calc(8 * var(--u)) calc(44 * var(--u)), var(--terre-v) calc(44 * var(--u)) calc(72 * var(--u))) 0 100% / 100% 20% no-repeat; }
.film-lire {
  position: absolute; z-index: 2; left: 4%; top: 91.94%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 5px 18px 5px 5px;
  border: 0; border-radius: 999px; background: var(--bleu); color: #fff; font: inherit; cursor: pointer;
  box-shadow: 0 2px 4px rgba(11, 30, 79, .2), 0 10px 24px rgba(11, 30, 79, .3);
  transition: transform .16s var(--doux), background-color .18s ease;
}
.film-lire[hidden], .film-muet[hidden] { display: none; }
.film-lire:focus-visible { outline-color: var(--marine); }
.film-video:focus-visible { outline-offset: -3px; border-radius: 14px; }
.film-lire:active { transform: translateY(-50%) scale(.97); }
.film-lire::before, .film-lire::after { content: ""; position: absolute; inset: 0; border-radius: inherit; border: 2px solid var(--bleu); pointer-events: none; opacity: 0; }
.film-rond { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: #fff; color: var(--bleu); }
.film-rond svg { width: 16px; height: 16px; margin-left: 2px; }
.film-mots { display: grid; text-align: left; line-height: 1.2; }
.film-mots strong { font-size: .9375rem; font-weight: 650; }
.film-duree { font-size: .875rem; font-weight: 500; color: #dbe4ff; }
.film-son { display: none; }
.film-muet { position: absolute; z-index: 2; left: 10px; top: 10px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(11, 30, 79, .72); color: #fff; pointer-events: none; }
.film-muet svg { width: 16px; height: 16px; }
.film.en-lecture .film-lire, .film.en-lecture .film-muet { display: none; }
.film-fil { transition: opacity .4s ease; }
.film.en-lecture .film-fil { opacity: 0; }
.film-auteur { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; font-size: .9375rem; color: var(--sur-marine); }
.film-auteur img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 2px rgba(255, 255, 255, .85); }
.film-erreur { position: absolute; z-index: 3; inset: 12px 12px auto 12px; margin: 0; padding: 10px 14px; border-radius: var(--rayon-s); background: #fff; color: var(--encre); font-size: .875rem; text-align: left; box-shadow: var(--ombre); }

/* Les trois projets : quelle offre pour quel chantier */
.projets { display: grid; gap: 10px; margin-top: 30px; }
.projet { display: flex; flex-direction: column; padding: 16px 18px 14px; background: #fff; border-radius: var(--rayon); color: var(--encre); text-decoration: none; text-align: left; transition: transform .2s var(--doux), box-shadow .2s ease; }
.projet:active { transform: scale(.985); }
/* Deux anneaux : visible sur le marine comme sur le blanc */
.projets .projet:focus-visible { outline: 3px solid #fff; outline-offset: 0; box-shadow: 0 0 0 6px var(--bleu); }
.projet strong { font-size: 1.125rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.projet-txt { margin-top: 2px; font-size: .9375rem; line-height: 1.45; color: var(--texte-2); }
.projet-pied { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--trait); font-weight: 600; color: var(--bleu); }
.projet-pied svg { width: 18px; height: 18px; transition: transform .2s var(--doux); }
.projet.principal { box-shadow: inset 0 0 0 2px var(--bleu); }
.projet .projet-bouton { margin-top: 12px; padding: 0 12px; gap: 8px; }

/* Les garanties qui défilent (téléphone) */
.defilant { display: flex; margin-top: 26px; padding: 14px 0; overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .14); }
.defilant .garanties { display: flex; flex: none; gap: 28px; padding-right: 28px; white-space: nowrap; animation: defile 28s linear infinite; }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-100%); } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; }
.fond { background: var(--fond); }
.teinte { background: var(--bleu-clair); }
.sombre { background: var(--marine); color: #fff; }
.tete h2, .appel h2 { font-size: var(--t-h2); line-height: 1.12; letter-spacing: -.022em; }
.tete p { max-width: 34em; margin-top: 12px; font-size: 1.125rem; line-height: 1.55; color: var(--texte-2); }
.sombre h2, .sombre h3 { color: #fff; }
.sombre .tete p, .sombre p { color: var(--sur-marine); }

/* ---------- Économies ---------- */
.economies .conteneur { display: grid; gap: 28px; }
.comparatif { display: grid; gap: 12px; }
.eco { padding: 20px 20px 22px; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); }
.eco h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.eco dl { display: grid; gap: 16px; margin-top: 14px; }
.eco-ligne { display: grid; gap: 2px; }
.eco dt { font-size: .9375rem; color: var(--texte-2); }
.eco dd { display: contents; }
.eco-montant { font-size: 1.125rem; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.eco-barre { width: var(--part); margin-top: 6px; min-width: 8px; height: 10px; border-radius: 5px; background: #c3cce0; transform-origin: left; }
.eco-jm dt { color: var(--encre); font-weight: 600; }
.eco-jm .eco-montant { font-size: 1.75rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; color: var(--bleu); }
.eco-jm .eco-montant small { font-size: .875rem; font-weight: 600; letter-spacing: 0; color: var(--texte-2); }
.eco-jm .eco-barre { background: var(--bleu); }
/* De 3 000 à 5 000 € : la partie claire est la fourchette */
.eco-plage { background: linear-gradient(90deg, #c3cce0 60%, #dde3ef 60%); }
.eco-note { font-size: .875rem; color: var(--texte-2); }
.droit h3 { display: flex; align-items: center; gap: 10px; font-size: 1.125rem; letter-spacing: -.01em; }
.droit h3 svg { width: 24px; height: 24px; color: var(--bleu); }
.droit p { max-width: 34em; margin-top: 8px; color: var(--texte-2); }

/* ---------- Comment ça se passe : le fil relie les étapes ---------- */
.parcours { display: flex; flex-direction: column; }
.parcours-intro { display: contents; }
.etapes { order: 1; display: grid; margin-top: 32px; }
.parcours-wa { order: 2; max-width: 34em; margin-top: 4px; padding-top: 20px; border-top: 1px solid var(--trait); color: var(--texte-2); }
.etape { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; padding-bottom: 30px; }
.etape:last-child { padding-bottom: 24px; }
.etape:not(:last-child)::before {
  content: ""; position: absolute; left: 17px; top: 50px; bottom: 6px; width: 10px; transform-origin: top;
  background:
    linear-gradient(var(--phase), var(--phase)) 0 0 / 2px 100% no-repeat,
    linear-gradient(var(--bleu), var(--bleu)) 4px 0 / 2px 100% no-repeat,
    repeating-linear-gradient(180deg, var(--terre-v) 0 12px, var(--terre-j) 12px 24px) 8px 0 / 2px 100% no-repeat;
}
.noeud { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--marine); border: 2px solid var(--marine); color: #fff; font-weight: 700; font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.qui { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu-fonce); font-size: .875rem; font-weight: 700; }
.qui-jm { padding-left: 2px; background: var(--marine); color: #fff; }
.qui img { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.etape h3 { margin-top: 8px; font-size: var(--t-h3); letter-spacing: -.015em; line-height: 1.3; }
.etape p { max-width: 34em; margin-top: 4px; color: var(--texte-2); }

/* ---------- Ce que vous recevez ---------- */
.recevez .conteneur { display: grid; gap: 32px; }
.livrables { margin-top: 24px; border-top: 1px solid var(--trait); }
.livrables li { padding: 16px 0; border-bottom: 1px solid var(--trait); }
.livrables h3 { font-size: 1.125rem; letter-spacing: -.01em; line-height: 1.35; }
.livrables p { max-width: 34em; margin-top: 2px; color: var(--texte-2); }
.plan { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre-forte); overflow: hidden; }
.plan-tete { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px; }
.plan-titre { display: inline-flex; align-items: center; gap: 10px; }
.plan-titre svg { width: 22px; height: 22px; color: var(--bleu); }
.plan-titre strong { font-weight: 650; }
.plan-exemple { padding: 2px 10px; border-radius: 999px; border: 1px solid var(--trait); font-size: .875rem; font-weight: 600; color: var(--texte-2); }
.groupe-tete { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; padding: 10px 16px; background: var(--bleu-clair); font-size: .9375rem; font-weight: 650; color: var(--marine); }
.groupe-tete span { font-weight: 500; color: var(--texte-2); }
.groupe table { width: 100%; border-collapse: collapse; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.groupe th { padding: 10px 16px 6px; text-align: left; font-size: .875rem; font-weight: 600; color: var(--texte-2); }
.groupe td { padding: 10px 16px; border-top: 1px solid var(--trait); }
.groupe td:nth-child(n+2), .groupe th:nth-child(n+2) { text-align: right; white-space: nowrap; }
.groupe td:nth-child(2) { font-weight: 650; color: var(--marine); }

/* ---------- Programme ---------- */
.apercu { display: grid; margin-top: 28px; background: var(--marine); border-radius: 20px; overflow: hidden; }
.apercu-video { position: relative; background: #000; }
.apercu-video img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.apercu-badge { position: absolute; left: 12px; top: 12px; padding: 5px 12px; border-radius: 999px; background: #fff; color: var(--marine); font-size: .875rem; font-weight: 650; }
.apercu-texte { display: flex; flex-direction: column; justify-content: center; padding: 22px 20px 24px; }
.apercu-module { font-size: .875rem; font-weight: 600; color: var(--ciel); }
.apercu-texte h3 { margin-top: 6px; color: #fff; font-size: 1.375rem; line-height: 1.2; letter-spacing: -.02em; }
.apercu-texte p { margin-top: 10px; color: var(--sur-marine); }
.apercu-infos { display: grid; gap: 10px; margin-top: 20px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .14); }
.apercu-infos li { display: flex; align-items: center; gap: 10px; font-size: .9375rem; color: var(--sur-marine); }
.apercu-infos svg { width: 18px; height: 18px; color: var(--ciel); }

.programme { display: grid; gap: 10px; margin-top: 14px; }
.modules { display: grid; gap: 10px; align-content: start; }
.module { background: #fff; border: 1px solid var(--trait); border-radius: 14px; transition: border-color .2s ease; }
.module[open] { border-color: var(--bleu-trait); }
.module summary { display: grid; grid-template-columns: 48px minmax(0, 1fr) 20px; align-items: center; gap: 14px; min-height: 72px; padding: 12px 16px 12px 12px; border-radius: 14px; cursor: pointer; list-style: none; }
.module summary::-webkit-details-marker, .questions summary::-webkit-details-marker { display: none; }
.module-ico { width: 48px; height: 48px; }
.module-num { display: block; font-size: .875rem; font-weight: 600; color: var(--bleu); }
.module-titre { display: grid; font-size: 1rem; font-weight: 400; }
.module-nom { font-size: 1.125rem; font-weight: 650; letter-spacing: -.01em; line-height: 1.3; }
.module summary svg { width: 20px; height: 20px; color: var(--texte-2); transition: transform .25s var(--doux); }
.module[open] summary svg { transform: rotate(180deg); }
.lecons { padding: 0 16px 12px 74px; }
.lecons li { padding: 8px 0; border-top: 1px solid var(--trait); font-size: .9375rem; line-height: 1.4; color: var(--texte-2); }
.lecons .ouverte { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--encre); font-weight: 600; }
.lecons em { padding: 2px 10px; border-radius: 999px; background: var(--bleu-clair); color: var(--bleu-fonce); font-style: normal; font-size: .875rem; font-weight: 650; white-space: nowrap; }
.lecons .lecons-plus { font-size: .875rem; }

/* ---------- Jean-Marc ---------- */
.jm { display: grid; gap: 28px; }
.jm-photo { border-radius: var(--rayon); overflow: hidden; background: #060f2c; }
.jm-photo img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; object-position: 50% 8%; }
.audience { display: grid; gap: 10px; margin-top: 22px; }
.audience li { display: flex; align-items: center; gap: 12px; font-size: 1.125rem; color: var(--sur-marine); }
.audience svg { width: 24px; height: 24px; color: var(--ciel); }
.audience b { font-weight: 700; color: #fff; font-variant-numeric: tabular-nums; }
.video { margin-top: 26px; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 16 / 9; background: #000; }
.video iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-bouton { position: relative; display: block; width: 100%; height: 100%; background: #000; color: #fff; text-decoration: none; }
.video-bouton img { width: 100%; height: 100%; object-fit: cover; }
.video-bouton::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5, 12, 32, 0) 45%, rgba(5, 12, 32, .88)); }
.video-bouton .lire { position: absolute; left: 50%; top: 34%; z-index: 1; display: grid; place-items: center; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: #fff; color: var(--bleu); box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .2s var(--doux); }
.video-bouton .lire svg { width: 22px; height: 22px; margin-left: 3px; }
.video-bouton:active .lire { transform: scale(.94); }
.legende-video { position: absolute; left: 16px; right: 16px; bottom: 12px; z-index: 1; }
.legende-video strong { display: block; font-size: 1rem; font-weight: 650; line-height: 1.3; letter-spacing: -.01em; }
.legende-video span { display: block; margin-top: 2px; font-size: .875rem; color: rgba(255, 255, 255, .85); }

/* ---------- Réalisation ---------- */
.realisations .conteneur { display: grid; gap: 28px; }
.realisation { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.realisation figure { position: relative; border-radius: var(--rayon); overflow: hidden; background: var(--fond); box-shadow: var(--ombre); }
.realisation img { width: 100%; aspect-ratio: 4 / 7; object-fit: cover; }
.realisation figcaption { position: absolute; left: 8px; top: 8px; padding: 4px 10px; white-space: nowrap; border-radius: 999px; background: #fff; color: var(--marine); font-size: .875rem; font-weight: 700; }
.realisation figcaption.fini { background: var(--marine); color: #fff; }

/* ---------- Offres ---------- */
.conteneur.offres { width: min(960px, 100% - 2 * var(--marge)); }
.offres-grille { display: grid; gap: 16px; margin-top: 36px; }
.offre { position: relative; display: flex; flex-direction: column; padding: 28px 22px 16px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); }
.offre.phare { border-color: var(--bleu); box-shadow: 0 0 0 1px var(--bleu), var(--ombre-forte); }
.etiquette { position: absolute; top: -14px; left: 22px; padding: 4px 14px; border-radius: 999px; background: var(--bleu); color: #fff; font-size: .875rem; font-weight: 600; }
.offre h3 { font-size: 1.375rem; letter-spacing: -.02em; }
.pour { margin-top: 6px; color: var(--texte-2); }
.prix { display: flex; align-items: baseline; gap: 8px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--trait); }
.prix b { font-size: clamp(2.875rem, 2.4rem + 2vw, 3.25rem); font-weight: 700; letter-spacing: -.04em; line-height: 1; color: var(--marine); font-variant-numeric: tabular-nums; }
.prix span { font-size: .9375rem; font-weight: 600; color: var(--texte-2); }
.prix-2x { margin-top: 8px; font-size: .9375rem; color: var(--texte-2); }
.inclus { display: grid; align-content: start; gap: 12px; flex: 1; margin: 20px 0 26px; }
.inclus li { display: flex; gap: 10px; line-height: 1.45; }
.inclus svg { width: 18px; height: 18px; margin-top: 3px; color: var(--bleu); }
.offre .btn { width: 100%; }
.lien-2x { display: flex; align-items: center; justify-content: center; min-height: 48px; margin-top: 4px; font-size: .9375rem; font-weight: 600; color: var(--bleu); text-decoration: underline; }
.offre-mini { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin-top: 16px; padding: 18px 20px; background: #fff; border: 1px solid var(--trait); border-radius: var(--rayon); }
.offre-mini-texte { grid-column: 1 / -1; }
.offre-mini h3 { font-size: 1.125rem; letter-spacing: -.01em; }
.offre-mini p { margin-top: 4px; font-size: .9375rem; color: var(--texte-2); }
.offre-mini p strong { color: var(--marine); }
.offre-mini-prix b { font-size: 1.75rem; color: var(--marine); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.offre-mini-prix span { font-size: .875rem; font-weight: 600; color: var(--texte-2); }
.hesite { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; gap: 14px 16px; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--trait); }
.hesite img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.hesite p { font-size: .9375rem; color: var(--texte-2); }
.hesite strong { display: block; font-size: 1.125rem; font-weight: 650; letter-spacing: -.01em; color: var(--encre); }
.hesite .btn { grid-column: 1 / -1; }
.rassurance { display: grid; gap: 8px; margin-top: 24px; }
.rassurance li { display: flex; gap: 10px; font-size: .875rem; line-height: 1.45; color: var(--texte-2); }
.rassurance svg { width: 18px; height: 18px; margin-top: 1px; color: var(--bleu); }
.tete p a { color: var(--bleu); font-weight: 600; }

/* ---------- Questions ---------- */
.faq { display: grid; gap: 24px; }
.questions { border-top: 1px solid var(--trait); }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 16px 0; font-size: 1.125rem; font-weight: 600; letter-spacing: -.01em; line-height: 1.35; cursor: pointer; list-style: none; }
.questions summary svg { width: 22px; height: 22px; color: var(--bleu); transition: transform .25s var(--doux); }
.questions details[open] summary svg { transform: rotate(45deg); }
.reponse { display: grid; gap: 10px; max-width: 34em; padding: 0 0 20px; color: var(--texte-2); }

/* ---------- Un doute avant de vous lancer ---------- */
.appel .conteneur { display: grid; justify-items: center; gap: 20px; text-align: center; }
.appel img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; object-position: 50% 20%; box-shadow: 0 0 0 3px #fff; }
.appel p { max-width: 30em; margin: 12px auto 0; font-size: 1.125rem; line-height: 1.55; }
.appel-actions { display: grid; justify-items: center; gap: 12px; width: 100%; }
.appel-actions .btn { width: min(100%, 360px); }
.appel-tel { font-size: .875rem; color: var(--sur-marine); font-variant-numeric: tabular-nums; }

/* ---------- Pied de page ---------- */
.pied { background: var(--marine); color: var(--sur-marine); font-size: .9375rem; }
.fil-pied { height: 14px; border: solid #fff; border-width: 2px 0; background: var(--fil), #fff; }
.pied-haut { display: grid; gap: 28px; padding: 44px 0 32px; }
.pied-marque p { max-width: 34ch; margin-top: 14px; line-height: 1.6; }
.pied-col { display: flex; flex-direction: column; align-items: flex-start; }
/* Le titre de colonne a la hauteur du logo voisin : ils tombent sur la même ligne */
.pied-col strong { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 650; }
.pied-col a, .pied-col span { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.reseaux { display: flex; gap: 10px; margin-top: 20px; }
.reseaux a { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .22); color: #fff; transition: background-color .2s ease; }
.reseaux svg { width: 20px; height: 20px; }
summary:active, .lien-2x:active, .pied-col a:active, .reseaux a:active, .tete p a:active { opacity: .65; }
.pied-bas { display: flex; flex-direction: column; gap: 4px; padding: 20px 0 calc(28px + env(safe-area-inset-bottom)); border-top: 1px solid rgba(255, 255, 255, .12); font-size: .875rem; }

/* ---------- Barre d'action en bas de l'écran (téléphone et tablette) ---------- */
.barre-mobile {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; justify-content: center; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--marine);
  transform: translateY(110%); visibility: hidden; transition: transform .28s var(--doux), visibility 0s .28s;
}
.barre-mobile.visible { transform: none; visibility: visible; transition-delay: 0s; }
.barre-mobile .btn { flex: 1 1 0; min-width: 0; max-width: 300px; min-height: 48px; padding: 0 10px; }
.barre-mobile .btn-wa { flex-grow: 1.3; gap: 8px; }
/* Marine comme le bas de l'écran de Safari : la barre et le navigateur ne font qu'un. Le bouton des offres passe en blanc */
.barre-mobile .btn-bleu { background: #fff; color: var(--marine); }
.barre-mobile :focus-visible { outline-color: #fff; }

@media (max-width: 359px) {
  .groupe th, .groupe td, .groupe-tete, .plan-tete { padding-inline: 10px; }
  .realisation figcaption { white-space: normal; border-radius: 12px; line-height: 1.25; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .panneau-haut .accueil-video { width: min(100%, calc((100svh - 40px) * 1.7778)); }
}
@media (max-width: 379px) {
  .barre-mobile { gap: 8px; padding-inline: 12px; }
  .barre-mobile .btn { font-size: .9375rem; }
  .barre-mobile .btn-wa { flex-grow: 1.6; }
  .video-bouton .lire { width: 48px; height: 48px; margin: -24px 0 0 -24px; }
  .video-bouton .lire svg { width: 20px; height: 20px; }
}

/* ---------- Pages de texte (mentions, CGV, confidentialité, merci) ---------- */
.texte { padding: 48px 0 72px; }
.texte .conteneur { max-width: 760px; }
.texte h1 { font-size: var(--t-h2); letter-spacing: -.025em; line-height: 1.1; }
.texte h2 { margin-top: 40px; font-size: 1.375rem; letter-spacing: -.015em; }
.texte p, .texte li { margin-top: 12px; color: var(--texte-2); }
.texte ul { list-style: disc; padding-left: 22px; }
.texte a:not(.btn) { color: var(--bleu); }
.texte .btn { margin-top: 28px; }
.texte .maj { font-size: .875rem; }
/* Ce qui n'est pas encore connu reste repérable (jamais sur l'accueil : construire.py le refuse) */
.a-completer { -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 2px 8px; border-radius: 6px; background: #fff3c4; border: 1px dashed #b98f00; color: #5c4700; font-size: .9em; font-weight: 600; }

/* ---------- Le mouvement, seulement si le visiteur ne l'a pas réduit ---------- */
@media (prefers-reduced-motion: no-preference) {
  /* À l'arrivée : le fil court du bord de l'écran jusqu'à la vidéo, le bouton se pose dessus, puis le fil ressort */
  .js .film-fil-g { animation: fil-court .7s var(--doux) .2s both; }
  .js .film-fil-d { animation: fil-court .7s var(--doux) .85s both; }
  .film-lire { animation: bouton-arrive .5s var(--doux) .15s both; }
  /* Le bouton de la vidéo bat : deux anneaux qui partent de la pilule */
  .film-lire::before, .film-lire::after { animation: pouls 2s ease-out 1.2s infinite; }
  .film-lire::after { animation-delay: 2.2s; }
  /* Le courant passe d'une étape à la suivante quand on descend */
  .js .noeud { background: #fff; color: var(--marine); transition: background-color .45s ease, color .45s ease; }
  .js .etape::before { transform: scaleY(0); transition: transform .8s var(--doux) .15s; }
  .js .etape.passe .noeud { background: var(--marine); color: #fff; }
  .js .etape.passe::before { transform: scaleY(1); }
  /* Les barres des économies se remplissent une fois */
  .js .eco-barre { transform: scaleX(0); transition: transform 1s var(--doux); }
  .js .eco-jm .eco-barre { transition-delay: .35s; }
  .js .eco.vu .eco-barre { transform: scaleX(1); }
  /* Les modules et les questions s'ouvrent en douceur, là où le navigateur le permet */
  @supports selector(::details-content) {
    :root { interpolate-size: allow-keywords; }
    .module::details-content, .questions details::details-content { block-size: 0; overflow: clip; transition: block-size .3s var(--doux), content-visibility .3s allow-discrete; }
    .module[open]::details-content, .questions details[open]::details-content { block-size: auto; }
  }
}
@keyframes fil-court { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes bouton-arrive { from { opacity: 0; transform: translateY(-50%) scale(.9); } to { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes pouls { from { opacity: .85; transform: scale(1); } to { opacity: 0; transform: scale(1.18, 1.7); } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
  .defilant { justify-content: center; }
  .defilant .garanties { flex: 1 1 100%; flex-wrap: wrap; justify-content: center; gap: 8px 22px; padding: 0 16px; white-space: normal; animation: none; }
  .defilant .copie { display: none; }
}

/* ---------- Le survol, seulement avec une souris ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn-bleu:hover { background: var(--bleu-fonce); }
  .btn-contour:hover { border-color: var(--bleu); background: var(--bleu-clair); }
  .btn-wa:hover { background: var(--wa-fonce); }
  .entete .btn:hover, .barre-mobile .btn-bleu:hover { background: var(--bleu-clair); }
  .film-lire:hover { background: var(--bleu-fonce); }
  .projet:hover { transform: translateY(-3px); box-shadow: var(--ombre-forte); }
  .projet.principal:hover { box-shadow: inset 0 0 0 2px var(--bleu), var(--ombre-forte); }
  .projet:hover .projet-pied svg { transform: translateX(3px); }
  .module summary:hover .module-nom, .questions summary:hover { color: var(--bleu); }
  .video-bouton:hover .lire { transform: scale(1.06); }
  .lien-2x:hover { text-decoration-thickness: 2px; }
  .pied-col a:hover { color: #fff; text-decoration: underline; }
  .reseaux a:hover { background: rgba(255, 255, 255, .1); }
  .defilant:hover .garanties { animation-play-state: paused; }
}

/* ---------- Tablette ---------- */
@media (min-width: 700px) {
  :root { --marge: max(24px, env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); --t-h3: 1.375rem; }
  .section { padding: 72px 0; }
  .accueil-video { width: 100%; margin-top: 28px; }
  .film-cadre { border-radius: var(--rayon); }
  .sous-titre { font-size: 1.125rem; }
  .film-lire { min-height: 56px; padding: 6px 22px 6px 6px; gap: 12px; animation-delay: .7s; }
  .film-rond { width: 44px; height: 44px; }
  .film-rond svg { width: 18px; height: 18px; }
  .film-mots strong { font-size: 1rem; }
  .film-son { display: inline; }
  .film-muet { left: 14px; top: 14px; }
  .projets { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 36px; }
  .projet { padding: 20px 20px 18px; }
  .projet-pied, .projet .projet-bouton { margin-top: auto; }
  .projet-txt { padding-bottom: 16px; }
  /* Assez de place : les garanties ne défilent plus */
  .defilant { justify-content: center; margin-top: 32px; }
  .defilant .garanties { flex: 0 1 auto; flex-wrap: wrap; justify-content: center; gap: 8px 28px; max-width: 600px; padding: 0 24px; white-space: normal; animation: none; }
  .defilant .copie { display: none; }
  .comparatif { grid-template-columns: 1fr 1fr; gap: 16px; }
  .eco-note { grid-column: 1 / -1; }
  .eco { padding: 24px; }
  .apercu { margin-top: 36px; border-radius: var(--rayon-panneau); }
  .apercu-texte { padding: 32px; }
  .apercu-badge { left: 18px; top: 18px; }
  .jm-photo img { aspect-ratio: 4 / 3; object-position: 50% 10%; }
  .audience { display: flex; flex-wrap: wrap; gap: 10px 36px; }
  .video-bouton .lire { top: 42%; width: 72px; height: 72px; margin: -36px 0 0 -36px; }
  .video-bouton .lire svg { width: 28px; height: 28px; margin-left: 4px; }
  .legende-video { left: 24px; right: 24px; bottom: 20px; }
  .legende-video strong { font-size: 1.125rem; }
  .realisation { gap: 20px; max-width: 560px; }
  .realisation figcaption { left: 12px; top: 12px; }
  .offres-grille { grid-template-columns: 1.1fr 1fr; gap: 0 20px; }
  /* Les deux offres partagent leurs rangées : prix, listes et boutons tombent sur les mêmes lignes */
  @supports (grid-template-rows: subgrid) {
    .offre { display: grid; grid-template-rows: subgrid; grid-row: span 7; }
  }
  .offre { padding: 32px 28px 18px; }
  .etiquette { left: 28px; }
  .offre-mini { grid-template-columns: 1fr auto auto; gap: 24px; padding: 20px 28px; }
  .offre-mini-texte { grid-column: auto; }
  .hesite { grid-template-columns: 56px minmax(0, 1fr) auto; }
  .hesite .btn { grid-column: auto; }
  .rassurance { display: flex; flex-wrap: wrap; gap: 8px 28px; }
  .pied-haut { grid-template-columns: 1fr 1fr; gap: 36px 48px; padding: 56px 0 44px; }
  .pied-marque { grid-column: 1 / -1; }
  .pied-bas { flex-direction: row; justify-content: space-between; gap: 16px; }
  .texte { padding: 72px 0 112px; }
}

@media (min-width: 900px) {
  .programme { grid-template-columns: 1fr 1fr; gap: 10px 20px; align-items: start; }
  .economies .conteneur { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-areas: "tete comp" "droit comp"; gap: 28px 64px; align-content: center; }
  .economies .tete { grid-area: tete; align-self: end; }
  .economies .comparatif { grid-area: comp; align-self: center; }
  .economies .droit { grid-area: droit; align-self: start; }
  .apercu { grid-template-columns: 1.35fr .65fr; }
  .recevez .conteneur { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
  /* La réalisation : un cartel de la hauteur des photos, titre en haut, légende en bas */
  .realisations .conteneur { grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: stretch; }
  .realisations .tete { display: flex; flex-direction: column; justify-content: space-between; max-width: none; padding: 36px; border-radius: var(--rayon); background: var(--bleu-clair); }
  .realisation { width: 560px; }
  .jm { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
  .jm-photo img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
  .faq { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .parcours { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 64px; align-items: start; }
  .parcours-intro { display: block; }
  .etapes { margin-top: 4px; }
  .parcours-wa { margin-top: 28px; }
  .plan-tete { padding: 18px 22px; }
  .groupe-tete, .groupe th, .groupe td { padding-inline: 22px; }
}

/* ---------- Ordinateur ---------- */
@media (min-width: 1100px) {
  :root { --marge: 32px; --t-h1: clamp(2.75rem, 3.6vw, 3.375rem); }
  html { scroll-padding: 100px 0 0; }
  .section { padding: 96px 0; }
  .bandeau { display: block; background: var(--marine); }
  .bandeau .garanties { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 40px; }
  .entete { position: sticky; top: 0; z-index: 50; padding-top: 0; background: #fff; border-bottom: 1px solid var(--trait); --logo-anse: #0b1e4f; --logo-corps: #1f4fe0; --logo-eclair: #ffc21a; }
  .entete .conteneur { min-height: 76px; gap: 40px; }
  .entete .logo { color: var(--marine); font-size: 1.375rem; }
  .entete .logo svg { width: 32px; height: 32px; }
  .entete .logo b { color: var(--bleu); }
  .entete .btn { background: var(--bleu); color: #fff; }
  .entete :focus-visible { outline-color: var(--bleu); }
  .menu { display: flex; gap: 30px; margin-left: auto; }
  .menu a { position: relative; display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; font-weight: 500; color: var(--encre); transition: color .18s ease; }
  .menu a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 2px; background: var(--bleu); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--doux); }
  .menu a[aria-current="true"] { color: var(--bleu); }
  .menu a[aria-current="true"]::after { transform: scaleX(1); }
  .barre-mobile { display: none; }

  /* Le haut de page redevient un panneau marine posé sur la page blanche */
  .accueil { padding: 24px 0 48px; background: none; overflow: visible; }
  .panneau-haut { padding: 52px 56px 124px; background: var(--marine); border-radius: var(--rayon-panneau); overflow: hidden; }
  .accueil h1 { line-height: 1.06; }
  br.ordi { display: inline; }
  .sous-titre { max-width: 46em; margin-top: 16px; font-size: 1.125rem; line-height: 1.55; }
  /* La vidéo prend la place qu'il reste dans l'écran, sans jamais passer sous le pli */
  .accueil-video { width: clamp(560px, (100svh - 478px) * 1.7778, 880px); max-width: 100%; margin-top: 36px; }
  .projets { position: relative; z-index: 2; grid-template-columns: 1.2fr 1fr 1fr; gap: 16px; margin: -88px 44px 0; }
  .projet { padding: 22px 24px 20px; border: 1px solid var(--trait); box-shadow: var(--ombre-forte); }
  .projet.principal { box-shadow: inset 0 0 0 2px var(--bleu), var(--ombre-forte); border-color: transparent; }
  .defilant { display: none; }
  .apercu-texte { padding: 40px; }
  .apercu-texte h3 { font-size: 1.75rem; }
  .jm { gap: 72px; }
  .jm-photo { position: sticky; top: 108px; }
  .parcours-intro, .faq .tete { position: sticky; top: 116px; }
  .parcours, .faq, .recevez .conteneur { gap: 72px; }
  .appel img { width: 112px; height: 112px; }
  .pied-haut { grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 48px; padding: 64px 0 52px; }
  .pied-marque { grid-column: auto; }
  .pied-col a, .pied-col span { min-height: 36px; }
}
/* Petits écrans d'ordinateur portable : le bouton de la vidéo reste au-dessus du pli */
@media (min-width: 1100px) and (max-height: 760px) {
  .bandeau { display: none; }
  .accueil { padding-top: 16px; }
  .panneau-haut { padding-top: 36px; }
  .accueil h1 { font-size: 2.5rem; }
  .sous-titre { margin-top: 12px; }
  .accueil-video { margin-top: 24px; width: clamp(420px, (100svh - 376px) * 1.7778, 880px); }
}
@media (min-width: 1100px) and (hover: hover) and (pointer: fine) {
  .entete .btn:hover { background: var(--bleu-fonce); }
  .menu a:hover { color: var(--bleu); }
  .menu a:hover::after { transform: scaleX(1); }
}
