/* ProxiAlerte : feuille de style unique du site (accueil et pages de texte).
   Couleurs de la charte (marque/CHARTE.md) : bleu nuit #14254F, orange alerte #E2740B, blanc. L'orange sert aux accents, aux
   grands titres et aux fonds de bouton (texte bleu nuit dessus) : jamais de texte courant en orange sur blanc (3,1 pour 1).
   Police : Barlow, celle de l'appli (licence OFL, assets/polices/OFL.txt), servie par le site lui-même : aucune ressource tierce,
   rien à déclarer dans la politique de confidentialité. Thème clair et sombre selon le téléphone, comme l'appli.
   Formes : cartes à 16 px, boutons en pilule, téléphones à 40 px. */

@font-face { font-family: "Barlow"; src: url("/assets/polices/barlow_regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/polices/barlow_semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/assets/polices/barlow_bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/assets/polices/barlowcondensed_bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --bleu-nuit: #14254F;
  --orange: #E2740B;
  --orange-clair: #F08A2A;
  --orange-fonce: #A9520A;
  --vert: #1F8A4C;

  --fond: #FFFFFF;
  --fond-teinte: #F4F6FA;
  --surface: #FFFFFF;
  --texte: #14254F;
  --texte-doux: #4A5677;
  --trait: #DCE0EA;
  --accent-texte: #A9520A;
  --rue: #E2E6EF;
  --zone: 226 116 11;
  --ombre: 20 37 79;
  --entete: rgb(255 255 255 / 0.9);
  --principe-fond: var(--bleu-nuit);
  --principe-trait: var(--bleu-nuit);
  --periode-fond: var(--bleu-nuit);
  --periode-texte: #FFFFFF;
  --pied-fond: var(--bleu-nuit);
  --pied-trait: transparent;
  /* La mascotte (logo de l'en-tête) : corps et nom, creux des yeux, pupilles */
  --m-corps: var(--bleu-nuit);
  --m-anneau: #FFFFFF;
  --m-pupille: var(--bleu-nuit);

  --largeur: 72rem;
  --rayon: 16px;
  --titres: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --courbe: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light dark;
}

:root[data-theme="clair"] { color-scheme: light; }
/* Le thème sombre : celui de l'appareil, sauf si le visiteur a choisi le clair ; ou celui qu'il a choisi (entete.js). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="clair"]) {
    --fond: #0C1631;
    --fond-teinte: #101D3F;
    --surface: #14234A;
    --texte: #EEF1F8;
    --texte-doux: #B3BDD6;
    --trait: #27386A;
    --accent-texte: #F5A04F;
    --rue: #1E2D57;
    --ombre: 0 0 0;
    --entete: rgb(12 22 49 / 0.88);
    --principe-fond: #1B2F63;
    --principe-trait: #2A4180;
    --periode-fond: var(--orange);
    --periode-texte: var(--bleu-nuit);
    --pied-fond: #081026;
    --pied-trait: var(--trait);
    --m-corps: #FFFFFF;
    --m-anneau: var(--fond);
    --m-pupille: var(--fond);
  }
}
:root[data-theme="sombre"] {
  color-scheme: dark;
  --fond: #0C1631;
  --fond-teinte: #101D3F;
  --surface: #14234A;
  --texte: #EEF1F8;
  --texte-doux: #B3BDD6;
  --trait: #27386A;
  --accent-texte: #F5A04F;
  --rue: #1E2D57;
  --ombre: 0 0 0;
  --entete: rgb(12 22 49 / 0.88);
  --principe-fond: #1B2F63;
  --principe-trait: #2A4180;
  --periode-fond: var(--orange);
  --periode-texte: var(--bleu-nuit);
  --pied-fond: #081026;
  --pied-trait: var(--trait);
  --m-corps: #FFFFFF;
  --m-anneau: var(--fond);
  --m-pupille: var(--fond);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--fond);
}

img, svg { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.12; }

a { color: inherit; text-decoration-color: var(--orange); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { color: var(--accent-texte); }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 4px; }

.contenu { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 1.25rem; }

.evitement { position: absolute; left: 1rem; top: -4rem; z-index: 30; background: var(--bleu-nuit); color: #fff; padding: 0.6rem 1rem; border-radius: 999px; }
.evitement:focus { top: 0.75rem; }

/* Boutons */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; white-space: nowrap;
  padding: 0.85rem 1.4rem; border: 2px solid var(--orange); border-radius: 999px;
  font: 700 1rem/1.2 "Barlow", system-ui, sans-serif; text-decoration: none; cursor: pointer;
  background: var(--orange); color: var(--bleu-nuit);
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.25s var(--courbe), box-shadow 0.25s var(--courbe);
}
/* Au survol le bouton se soulève, à l'appui il s'enfonce : tout ce qui se clique répond au doigt comme à la souris. */
.bouton:hover { background: var(--orange-clair); border-color: var(--orange-clair); color: var(--bleu-nuit); transform: translateY(-2px); box-shadow: 0 10px 22px -6px rgb(var(--zone) / 0.45); }
.bouton:active { transform: translateY(0) scale(0.96); box-shadow: 0 3px 8px -4px rgb(var(--zone) / 0.4); transition-duration: 0.08s; }
.bouton.contour { background: transparent; color: var(--texte); border-color: var(--trait); }
.bouton.contour:hover { border-color: var(--texte); color: var(--texte); box-shadow: 0 10px 22px -12px rgb(var(--ombre) / 0.45); }
.bouton.contour:active { box-shadow: none; }
.bouton.petit { padding: 0.55rem 1.05rem; font-size: 0.95rem; }
.boutons { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* En-tête (toutes les pages) */
.entete { position: sticky; top: 0; z-index: 20; background: var(--entete); border-bottom: 1px solid var(--trait); }
@supports (backdrop-filter: blur(8px)) { .entete { backdrop-filter: blur(10px) saturate(150%); -webkit-backdrop-filter: blur(10px) saturate(150%); } }
.entete .contenu { display: flex; align-items: center; gap: 1.5rem; min-height: 4.25rem; }
.entete .logo { display: block; margin-right: auto; }
.entete nav { display: flex; gap: 1.4rem; font-weight: 600; font-size: 0.98rem; }
/* Le trait orange sous un lien se dessine de gauche à droite. */
.entete nav a { text-decoration: none; color: var(--texte); padding: 0.3rem 0; background: linear-gradient(var(--orange), var(--orange)) 0 100% / 0 2px no-repeat; transition: background-size 0.3s var(--courbe); }
.entete nav a:hover, .entete nav a[aria-current="page"] { background-size: 100% 2px; color: var(--texte); }

/* La mascotte : le logo dessiné dans la page (outils/mascotte-site.py), aux couleurs du thème. Ses mouvements sont plus bas. */
.mascotte { display: block; width: 172px; height: auto; overflow: visible; }
.mascotte .m-corps { fill: var(--m-corps); }
.mascotte .m-orange { fill: var(--orange); }
.mascotte .m-anneau { fill: var(--m-anneau); }
.mascotte .m-blanc { fill: #FFFFFF; }
.mascotte .m-pupille { fill: var(--m-pupille); }
.mascotte .regard { transform: translate(10px, 3px); transform-box: fill-box; transform-origin: center; }
.mascotte .onde-veille { fill: rgb(var(--zone) / 0.16); stroke: var(--orange); stroke-width: 10; opacity: 0; transform-box: fill-box; transform-origin: center; }
.mascotte .boutique { transform-box: fill-box; transform-origin: 50% 100%; }

/* Le bouton du thème : un disque à moitié plein, qui fait un demi-tour à chaque bascule. */
.bascule-theme {
  display: grid; place-items: center; width: 2.6rem; height: 2.6rem; padding: 0; flex: none;
  border: 1px solid var(--trait); border-radius: 50%; background: var(--surface); color: var(--texte); cursor: pointer;
  transition: border-color 0.2s, transform 0.25s var(--courbe), box-shadow 0.25s var(--courbe);
}
.bascule-theme[hidden] { display: none; }
.bascule-theme svg { width: 1.3rem; height: 1.3rem; transition: transform 0.6s var(--courbe); }
.bascule-theme[aria-pressed="true"] svg { transform: rotate(180deg); }
.bascule-theme:hover { border-color: var(--texte); transform: translateY(-2px); box-shadow: 0 10px 22px -12px rgb(var(--ombre) / 0.45); }
.bascule-theme:active { transform: scale(0.92); transition-duration: 0.08s; }

/* Accueil : la une */
.une { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2.5rem, 5vw, 4rem); overflow: hidden; }
.une-grille { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); align-items: center; gap: 3rem; }
.surtitre { margin: 0 0 1rem; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-texte); }
.une h1 { font-family: var(--titres); font-weight: 700; font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.01em; margin: 0 0 1.25rem; max-width: 17ch; }
.une h1 .accent { color: var(--orange); }
.une-chapeau { font-size: clamp(1.1rem, 1.6vw, 1.28rem); color: var(--texte-doux); max-width: 34rem; margin: 0 0 2rem; }
.une-visuel { position: relative; display: grid; place-items: center; min-height: 26rem; }
.une-visuel .telephone { width: min(17rem, 70vw); position: relative; }
.ondes { position: absolute; width: min(34rem, 130%); inset: 50% auto auto 50%; transform: translate(-50%, -50%); overflow: visible; }
.ondes circle { fill: none; stroke: rgb(var(--zone) / 0.35); stroke-width: 1.5; }
.ondes circle:nth-child(1) { fill: rgb(var(--zone) / 0.10); stroke: rgb(var(--zone) / 0.55); }
.ondes circle:nth-child(2) { fill: rgb(var(--zone) / 0.05); }
.ondes circle:nth-child(3) { stroke-dasharray: 4 6; }

/* Téléphone : cadre autour d'une vraie capture de l'appli */
.telephone {
  aspect-ratio: 600 / 1305; border-radius: 40px; padding: 9px; background: #0E1A3A;
  box-shadow: 0 1px 0 rgb(255 255 255 / 0.08) inset, 0 30px 60px -20px rgb(var(--ombre) / 0.45), 0 10px 24px -12px rgb(var(--ombre) / 0.35);
  position: relative;
}
.telephone img { display: block; width: 100%; height: 100%; border-radius: 31px; object-fit: cover; }

/* Bandeau sous la une */
.bandeau { border-block: 1px solid var(--trait); background: var(--fond-teinte); }
.bandeau-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.bandeau p { margin: 0; padding: 1.1rem 1.25rem 1.1rem 0; color: var(--texte-doux); font-size: 0.98rem; }
.bandeau p + p { padding-left: 1.25rem; border-left: 1px solid var(--trait); }
.bandeau strong { color: var(--texte); }

/* Sections */
.section { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.section.teinte { background: var(--fond-teinte); }
.titre-section { font-family: var(--titres); font-weight: 700; font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; margin: 0 0 0.75rem; }
.chapeau { color: var(--texte-doux); max-width: 40rem; margin: 0 0 2.5rem; font-size: 1.12rem; }
.note { color: var(--texte-doux); font-size: 0.95rem; }

/* Signaler, prévenir, réagir : le téléphone reste à l'écran pendant qu'on lit les trois temps */
.deroule { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 4rem; align-items: start; }
.deroule-ecran { position: sticky; top: 6.5rem; display: grid; place-items: center; }
.deroule-ecran .telephone { width: min(17.5rem, 100%); }
.deroule-ecran img { position: absolute; inset: 9px; width: calc(100% - 18px); height: calc(100% - 18px); opacity: 0; transition: opacity 0.5s var(--courbe), transform 0.5s var(--courbe); transform: scale(0.985); }
.deroule-ecran img.actif { opacity: 1; transform: none; }
.etapes { list-style: none; margin: 0; padding: 0; }
.etape { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; padding: 1rem 0 1rem 1.5rem; border-left: 3px solid var(--trait); transition: border-color 0.4s, opacity 0.4s; }
.js .etape { opacity: 0.45; }
.js .etape.actif { opacity: 1; border-left-color: var(--orange); }
.etape .verbe { font-family: var(--titres); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; color: var(--accent-texte); margin: 0 0 0.3rem; }
.etape h3 { font-size: clamp(1.45rem, 2.5vw, 1.9rem); font-weight: 700; margin: 0 0 0.75rem; }
.etape p { margin: 0 0 0.75rem; color: var(--texte-doux); max-width: 34rem; }
.etape-ecran { display: none; }

/* La zone d'alerte */
.zone-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 3.5rem; align-items: center; }
.zone-carte { margin: 0; background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1rem; box-shadow: 0 20px 40px -28px rgb(var(--ombre) / 0.35); }
.zone-carte figcaption { font-size: 0.85rem; color: var(--texte-doux); padding: 0.5rem 0.25rem 0; }
.carte { display: block; width: 100%; height: auto; font-family: var(--titres); }
.carte .rues polyline { fill: none; stroke: var(--rue); stroke-width: 15; stroke-linecap: round; stroke-linejoin: round; }
.carte .zone { stroke: var(--orange); stroke-width: 1.5; transform-box: view-box; transform-origin: 300px 222px; }
.carte .zone.z1 { fill: rgb(var(--zone) / 0.24); }
.carte .zone.z2 { fill: rgb(var(--zone) / 0.13); stroke-opacity: 0.7; }
.carte .zone.z3 { fill: rgb(var(--zone) / 0.06); stroke-dasharray: 5 6; stroke-opacity: 0.6; }
.carte .commerce rect { fill: var(--surface); stroke: var(--texte-doux); stroke-width: 1.5; }
.carte .commerce.z1 rect, .carte .commerce.z2 rect, .carte .commerce.z3 rect { fill: var(--orange); stroke: var(--orange-fonce); }
.carte .coche { fill: var(--vert); stroke: var(--surface); stroke-width: 1.5; }
.carte .coche-trait { fill: none; stroke: #fff; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.carte .origine rect { fill: var(--texte); }
.carte .onde { fill: none; stroke: var(--orange); stroke-width: 2; opacity: 0; }
.carte .etiquettes text { fill: var(--accent-texte); font-size: 15px; font-weight: 700; }
.legende { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 1.1rem; }
.legende li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.75rem; align-items: start; }
.legende p { margin: 0.15rem 0 0; color: var(--texte-doux); }
.legende .pastille { width: 1.4rem; height: 1.4rem; border-radius: 6px; border: 1.5px solid var(--orange); margin-top: 0.15rem; }
.l-z1 .pastille { background: rgb(var(--zone) / 0.45); }
.l-z2 .pastille { background: rgb(var(--zone) / 0.22); }
.l-z3 .pastille { background: rgb(var(--zone) / 0.08); border-style: dashed; }
.rejouer { margin-top: 0.5rem; }

/* Confiance : mosaïque de six tuiles */
.mosaique { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.tuile { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.6rem; transition: transform 0.25s var(--courbe), box-shadow 0.25s, border-color 0.25s; }
.tuile:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -20px rgb(var(--ombre) / 0.45); }
.tuile h3 { margin: 0 0 0.5rem; font-size: 1.2rem; }
.tuile p { margin: 0; color: var(--texte-doux); }
.tuile.principe { grid-column: span 2; grid-row: span 2; background: var(--principe-fond); border-color: var(--principe-trait); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; padding: clamp(1.6rem, 3vw, 2.6rem); position: relative; overflow: hidden; }
.tuile.principe::before { content: ""; position: absolute; right: -4rem; top: -4rem; width: 16rem; height: 16rem; border-radius: 50%; border: 2px solid rgb(var(--zone) / 0.55); box-shadow: 0 0 0 2.2rem rgb(var(--zone) / 0.10), 0 0 0 4.4rem rgb(var(--zone) / 0.05); }
.tuile.principe h3 { font-family: var(--titres); font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1.02; margin-bottom: 1rem; max-width: 14ch; }
.tuile.principe p { color: #D6DCEB; font-size: 1.1rem; max-width: 36rem; }
.tuile.chaude { background: rgb(var(--zone) / 0.10); border-color: rgb(var(--zone) / 0.35); }
.tuile a { font-weight: 600; }

/* Les jours calmes */
.affluence-grille { display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 4rem; align-items: center; }
.affluence-ecran { display: grid; place-items: center; }
.affluence-ecran .telephone { width: min(16.5rem, 100%); transform: rotate(-2deg); }
.atouts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 2rem; margin: 0; }
.atouts div { border-top: 2px solid var(--orange); padding-top: 0.9rem; }
.atouts dt { font-weight: 700; font-size: 1.12rem; margin-bottom: 0.3rem; }
.atouts dd { margin: 0; color: var(--texte-doux); }

/* Tarifs */
.periode { display: inline-flex; border: 1px solid var(--trait); border-radius: 999px; padding: 0.3rem; margin: 0 0 1.75rem; background: var(--surface); }
.periode legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.periode input { position: absolute; opacity: 0; pointer-events: none; }
.periode label { padding: 0.5rem 1.1rem; border-radius: 999px; font-weight: 600; cursor: pointer; color: var(--texte-doux); transition: background-color 0.25s, color 0.25s, transform 0.2s var(--courbe); }
.periode label:hover { color: var(--texte); }
.periode label:active { transform: scale(0.95); }
.periode input:checked + label { background: var(--periode-fond); color: var(--periode-texte); }
.periode input:focus-visible + label { outline: 3px solid var(--orange); outline-offset: 2px; }
.offres { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 1.25rem; align-items: stretch; }
.offre { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.5rem, 3vw, 2.25rem); }
.offre h3 { font-size: 1.3rem; margin: 0 0 0.5rem; }
.offre .prix { margin: 0; color: var(--texte-doux); font-weight: 600; }
.offre .montant { font-family: var(--titres); font-size: 3rem; line-height: 1.05; color: var(--texte); margin-right: 0.25rem; }
.offre .pour { color: var(--texte-doux); margin: 0.25rem 0 1.25rem; }
.offre.premium { border: 2px solid var(--orange); box-shadow: 0 24px 50px -30px rgb(var(--zone) / 0.55); }
.offre.premium .pour:last-child { margin: 1.25rem 0 0; font-weight: 600; color: var(--texte); }
.liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.liste li { position: relative; padding-left: 1.7rem; }
.liste li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 1.05rem; height: 0.6rem; border-left: 2.5px solid var(--vert); border-bottom: 2.5px solid var(--vert); transform: rotate(-45deg) scale(0.8); transform-origin: 30% 50%; }
.prix-an { display: none; }
.section:has(#a-l-annee:checked) .prix-mois { display: none; }
.section:has(#a-l-annee:checked) .prix-an { display: block; }
.mention { color: var(--texte-doux); font-size: 0.93rem; max-width: 52rem; margin: 1.5rem 0 0; }

/* Disponibilité et questions */
.dispo-grille { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 4rem; align-items: start; }
.dispo-appel { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: clamp(1.6rem, 3vw, 2.4rem); position: sticky; top: 6.5rem; }
.dispo-appel p { color: var(--texte-doux); margin: 0 0 1.5rem; }
.dispo-appel .note { margin: 1.25rem 0 0; font-size: 0.9rem; }
.magasins { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; margin: 0 0 0.5rem; }
.magasins img { display: block; width: auto; }
.magasins a[href*="apple"] img { height: 48px; }
.magasins a[href*="google"] img { height: 70px; margin: -11px 0; }
/* Les mêmes boutons en haut de l'accueil, sous « Comment ça marche » : on télécharge sans descendre jusqu'à la disponibilité. */
.une-magasins { margin: 1.5rem 0 0; }
.questions details { border-bottom: 1px solid var(--trait); }
.questions summary { cursor: pointer; list-style: none; font-weight: 700; font-size: 1.08rem; padding: 1.05rem 2.2rem 1.05rem 0; position: relative; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: ""; position: absolute; right: 0.4rem; top: 50%; width: 0.6rem; height: 0.6rem; border-right: 2px solid var(--accent-texte); border-bottom: 2px solid var(--accent-texte); transform: translateY(-70%) rotate(45deg); transition: transform 0.25s var(--courbe); }
.questions details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.questions details p { margin: 0 0 1.1rem; color: var(--texte-doux); max-width: 40rem; }

/* Pages de texte (conditions, confidentialité, assistance…) */
.page { padding: 2.5rem 0 3.5rem; }
.page .contenu { max-width: 46rem; }
.page h1 { font-family: var(--titres); font-size: clamp(2.1rem, 4.5vw, 2.8rem); line-height: 1.08; margin: 0 0 0.5rem; }
.page h2 { font-size: 1.35rem; margin: 2.2rem 0 0.5rem; }
.page h3 { font-size: 1.1rem; margin: 1.5rem 0 0.4rem; }
.page .maj { color: var(--texte-doux); font-size: 0.95rem; margin: 0 0 2rem; }
.page table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: 0.95rem; display: block; overflow-x: auto; }
.page th, .page td { text-align: left; vertical-align: top; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--trait); }
.page th { background: var(--fond-teinte); }
.encadre { background: var(--fond-teinte); border: 1px solid var(--trait); border-radius: 0.8rem; padding: 1rem 1.2rem; margin: 1.2rem 0; }
.encadre.important { border-left: 5px solid var(--orange); }
.page details { border-bottom: 1px solid var(--trait); padding: 0.8rem 0; }
.page summary { cursor: pointer; font-weight: 700; }
.page details p, .page details ul { color: var(--texte-doux); }

/* Pied de page (toujours bleu nuit : logo en version inverse) */
.pied { background: var(--pied-fond); border-top: 1px solid var(--pied-trait); color: #C4CBDD; padding: 2.75rem 0; font-size: 0.95rem; }
.pied .contenu { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); align-items: start; }
.pied img { width: 170px; display: block; }
.pied a { color: #fff; }
.pied a:hover { color: var(--orange-clair); }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { margin: 0.3rem 0; }
.pied p { margin: 0.3rem 0; }

/* Mouvement : seulement si le visiteur ne demande pas à le réduire. Sans script, tout est déjà affiché. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-revele] { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--courbe), transform 0.7s var(--courbe); }
  .js [data-revele].visible { opacity: 1; transform: none; }
  .mosaique [data-revele]:nth-child(2), .atouts [data-revele]:nth-child(2), .offres [data-revele]:nth-child(2) { transition-delay: 0.08s; }
  .mosaique [data-revele]:nth-child(3), .atouts [data-revele]:nth-child(3) { transition-delay: 0.16s; }
  .mosaique [data-revele]:nth-child(n+4), .atouts [data-revele]:nth-child(4) { transition-delay: 0.22s; }

  .une-visuel .telephone { animation: monte 1s 0.15s var(--courbe) both; }
  .ondes circle { transform-box: fill-box; transform-origin: center; animation: onde 1.6s var(--courbe) both; }
  .ondes circle:nth-child(1) { animation-delay: 0.5s; }
  .ondes circle:nth-child(2) { animation-delay: 0.75s; }
  .ondes circle:nth-child(3) { animation-delay: 1s; }

  /* La carte : l'état final est le dessin par défaut ; .attente le cache, .joue le déroule (site.js). */
  .carte.attente .zone, .carte.attente .coche, .carte.attente .coche-trait, .carte.attente .etiquettes text { opacity: 0; }
  .carte.attente .commerce rect { fill: var(--surface); stroke: var(--texte-doux); }
  .zone-texte:has(.carte.attente) .legende li, .zone-grille:has(.carte.attente) .legende li { opacity: 0.4; }

  .carte.joue .onde { animation: pulsation 1.3s ease-out 2 both; }
  .carte.joue .zone { animation: deploie 0.9s var(--courbe) both; }
  .carte.joue .zone.z1 { animation-delay: 0.5s; }
  .carte.joue .zone.z2 { animation-delay: 2.1s; }
  .carte.joue .zone.z3 { animation-delay: 4.3s; }
  .carte.joue .et-z1 { animation: apparait 0.4s 0.9s both; }
  .carte.joue .et-z2 { animation: apparait 0.4s 2.5s both; }
  .carte.joue .et-z3 { animation: apparait 0.4s 4.7s both; }
  .carte.joue .commerce.z1 rect { animation: allume 0.35s calc(0.9s + var(--i) * 0.12s) both; }
  .carte.joue .commerce.z2 rect { animation: allume 0.35s calc(2.5s + var(--i) * 0.1s) both; }
  .carte.joue .commerce.z3 rect { animation: allume 0.35s calc(4.7s + var(--i) * 0.05s) both; }
  .carte.joue .coche, .carte.joue .coche-trait { transform-box: fill-box; transform-origin: center; animation: confirme 0.45s var(--courbe) both; }
  .carte.joue .coche, .carte.joue .coche-trait { animation-delay: 3.5s; }
  .zone-grille:has(.carte.joue) .l-z1 { animation: eclaire 0.5s 0.5s both; }
  .zone-grille:has(.carte.joue) .l-z2 { animation: eclaire 0.5s 2.1s both; }
  .zone-grille:has(.carte.joue) .l-z3 { animation: eclaire 0.5s 4.3s both; }

  /* La mascotte veille sur le quartier, en boucle de 8 s : elle regarde à gauche, à droite, puis se redresse, les yeux grands
     ouverts, et deux ondes orange partent d'elle comme la zone d'alerte ; elle cligne des yeux et reprend sa garde. Au survol, elle
     salue et lance ses ondes. Avec une souris, ses yeux suivent le pointeur (classe .suit, entete.js). */
  .mascotte .regard { animation: ronde 8s 1s ease-in-out infinite; }
  .mascotte .oeil { transform-box: fill-box; transform-origin: center; animation: cligne 8s 1s infinite; }
  .mascotte .boutique { animation: garde 8s 1s var(--courbe) infinite; }
  .mascotte .store { transform-box: fill-box; transform-origin: 50% 100%; animation: leve 8s 1s var(--courbe) infinite; }
  .mascotte .onde-veille { animation: protege 8s 1s ease-out infinite; }
  .mascotte .onde-veille + .onde-veille { animation-delay: 1.45s; }
  .logo.suit .regard { animation: none; transform: translate(var(--px, 10px), var(--py, 3px)); transition: transform 0.2s ease-out; }
  .logo:hover .store { animation: salue 0.7s var(--courbe); }
  .logo:hover .onde-veille { animation: protege-vite 1.1s ease-out; }
  .logo:hover .onde-veille + .onde-veille { animation-delay: 0.3s; }
  .logo:active .mascotte { transform: scale(0.96); transition: transform 0.08s; }
}

@keyframes ronde {
  0%, 8% { transform: translate(10px, 3px); }
  14%, 24% { transform: translate(-12px, 2px); }
  30%, 40% { transform: translate(12px, 2px); }
  46%, 68% { transform: translate(0, 0) scale(1.18); }
  76%, 100% { transform: translate(10px, 3px); }
}
@keyframes cligne { 0%, 72%, 80%, 100% { transform: scaleY(1); } 76% { transform: scaleY(0.08); } }
@keyframes garde { 0%, 42%, 70%, 100% { transform: none; } 47% { transform: translateY(-9px) scaleY(1.04); } 53%, 64% { transform: translateY(-4px); } }
@keyframes leve { 0%, 42%, 70%, 100% { transform: none; } 47% { transform: translateY(-14px) rotate(-2deg); } 53%, 64% { transform: translateY(-6px); } }
@keyframes protege { 0%, 46% { opacity: 0; transform: scale(0.95); } 49% { opacity: 1; transform: scale(1.02); } 74%, 100% { opacity: 0; transform: scale(2.1); } }
@keyframes protege-vite { 0% { opacity: 1; transform: scale(1.02); } 100% { opacity: 0; transform: scale(2.1); } }
@keyframes salue { 0% { transform: none; } 30% { transform: translateY(-10px) rotate(-3deg); } 60% { transform: translateY(-3px) rotate(2deg); } 100% { transform: none; } }
@keyframes monte { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes onde { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes pulsation { 0% { opacity: 0.9; transform: scale(1); } 100% { opacity: 0; transform: scale(3.2); } }
@keyframes deploie { from { opacity: 0; transform: scale(0.25); } to { opacity: 1; transform: none; } }
@keyframes apparait { from { opacity: 0; } to { opacity: 1; } }
@keyframes allume { from { fill: var(--surface); stroke: var(--texte-doux); } to { fill: var(--orange); stroke: var(--orange-fonce); } }
@keyframes confirme { from { opacity: 0; transform: scale(0.2); } to { opacity: 1; transform: none; } }
@keyframes eclaire { from { opacity: 0.4; } to { opacity: 1; } }

/* Tablette */
@media (max-width: 960px) {
  .une-grille, .zone-grille, .affluence-grille, .dispo-grille { grid-template-columns: 1fr; gap: 2.5rem; }
  .une-visuel { min-height: 0; padding: 1rem 0 2rem; }
  .deroule { grid-template-columns: 1fr; gap: 0; }
  .deroule-ecran { display: none; }
  .etape { min-height: 0; padding: 0 0 2.5rem 1.25rem; }
  .js .etape { opacity: 1; }
  .etape-ecran { display: block; width: min(15rem, 70%); margin: 0.75rem 0 0; border-radius: 28px; border: 7px solid #0E1A3A; box-shadow: 0 20px 40px -24px rgb(var(--ombre) / 0.5); }
  .affluence-ecran { order: 2; }
  .mosaique { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tuile.principe { grid-row: auto; }
  .mosaique .tuile:last-child { grid-column: span 2; }
  .offres { grid-template-columns: 1fr; }
  .dispo-appel { position: static; }
}

/* Téléphone */
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .contenu { padding: 0 1rem; }
  .entete .contenu { flex-wrap: wrap; gap: 0.25rem 1rem; padding-top: 0.6rem; padding-bottom: 0.35rem; min-height: 0; }
  .mascotte { width: 150px; }
  .entete nav { order: 3; width: 100%; gap: 1.1rem; overflow-x: auto; font-size: 0.93rem; padding-bottom: 0.2rem; scrollbar-width: none; }
  .entete nav a { white-space: nowrap; }
  html { scroll-padding-top: 7rem; }
  .bandeau-grille { grid-template-columns: 1fr; }
  .bandeau p, .bandeau p + p { padding: 0.8rem 0; border-left: 0; }
  .bandeau p + p { border-top: 1px solid var(--trait); }
  .mosaique { grid-template-columns: 1fr; }
  .tuile.principe, .mosaique .tuile:last-child { grid-column: auto; }
  .atouts { grid-template-columns: 1fr; }
  .boutons .bouton { flex: 1 1 auto; }
  .offre .montant { font-size: 2.5rem; }
  .une-visuel .telephone { width: min(14.5rem, 64vw); }
}

/* Petit téléphone : la confidentialité reste dans le pied de page */
@media (max-width: 400px) {
  .entete nav a[href="/confidentialite/"] { display: none; }
}

/* Moins de mouvement demandé : plus de fondus ni de défilement doux */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* Le film d'animation (section « Une alerte, du début à la fin ») : une bande bleu nuit, la vidéo en 16:9 */
.section.film { background: var(--bleu-nuit); color: #FFFFFF; }
.section.film .titre-section { color: #FFFFFF; }
.section.film .chapeau, .section.film .mention { color: #C9D1E4; }
.section.film a { color: #FFFFFF; }
.film-video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 14px; background: #0E1A3A; box-shadow: 0 18px 50px rgb(0 0 0 / 0.35); }
