/* LA VITRINE DE MVE (27/11) — les couleurs de l'application : la sarcelle #17353b et l'orange #ea7b1b. */
:root {
  --nuit: #0b2024;
  --nuit-2: #10292e;
  --nuit-3: #1a3c43;
  --sarcelle: #17353b;
  --orange: #ea7b1b;
  --orange-vif: #ff9a3d;
  --brume: #8fbfb8;
  --texte-nuit: #e9f1f0;
  --texte-nuit-2: #a9c2bf;
  --ligne-nuit: rgba(143, 191, 184, 0.16);

  --fond: #f1f5f4;
  --fond-2: #e7eeec;
  --papier: #ffffff;
  --encre: #0e2226;
  --encre-2: #4a5f62;
  --ligne: #d4dfdc;
  --ombre: 0 1px 2px rgba(11, 32, 36, 0.06), 0 12px 32px -12px rgba(11, 32, 36, 0.18);

  --f-titre: "Archivo", "Arial Narrow", "Helvetica Neue", sans-serif;
  --f-texte: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;

  --largeur: 1180px;
  --gouttiere: clamp(16px, 4vw, 40px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --fond: #0d1c1f;
    --fond-2: #112428;
    --papier: #15292d;
    --encre: #e6efee;
    --encre-2: #9fb4b2;
    --ligne: #24393d;
    --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 36px -14px rgba(0, 0, 0, 0.6);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --fond: #0d1c1f;
  --fond-2: #112428;
  --papier: #15292d;
  --encre: #e6efee;
  --encre-2: #9fb4b2;
  --ligne: #24393d;
  --ombre: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 36px -14px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 64px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font: 400 17px/1.6 var(--f-texte);
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-titre); font-stretch: 112%; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 6px; }
.sauter { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--orange); color: #fff; padding: 8px 14px; border-radius: 8px; }
.sauter:focus { left: 8px; }

/* ——— Boutons ——— */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 0 16px; border-radius: 10px;
  font: 600 15px/1 var(--f-texte); text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.bouton:hover { transform: translateY(-1px); }
.bouton-grand { min-height: 52px; padding: 0 24px; font-size: 16px; border-radius: 12px; }
.bouton-orange { background: var(--orange); color: #1b0e02; box-shadow: 0 8px 24px -10px rgba(234, 123, 27, .8); }
.bouton-orange:hover { background: var(--orange-vif); }
.bouton-clair { background: rgba(233, 241, 240, .08); color: var(--texte-nuit); border-color: rgba(233, 241, 240, .22); }
.bouton-clair:hover { border-color: rgba(233, 241, 240, .5); }
.bouton-fantome { color: var(--texte-nuit); border-color: rgba(233, 241, 240, .25); }
.bouton-fantome:hover { border-color: rgba(233, 241, 240, .6); }

/* ——— L'en-tête ——— */
.entete {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  color: var(--texte-nuit);
  transition: background-color .25s ease, box-shadow .25s ease, backdrop-filter .25s ease;
}
.entete.colle { background: rgba(11, 32, 36, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); box-shadow: 0 1px 0 var(--ligne-nuit); }
.entete-dedans { max-width: var(--largeur); margin: 0 auto; padding: 12px var(--gouttiere); display: flex; align-items: center; gap: 24px; }
.marque { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 21px/1 var(--f-titre); font-stretch: 118%; letter-spacing: .02em; }
.marque img { border-radius: 9px; }
.menu { display: flex; gap: 4px; margin-left: 12px; }
.menu a { text-decoration: none; font-size: 15px; color: var(--texte-nuit-2); padding: 8px 12px; border-radius: 8px; transition: color .15s, background-color .15s; }
.menu a:hover { color: var(--texte-nuit); background: rgba(233, 241, 240, .07); }
.entete-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.bouton-menu { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid rgba(233, 241, 240, .25); background: transparent; cursor: pointer; padding: 0; position: relative; }
.bouton-menu span { position: absolute; left: 11px; right: 11px; height: 2px; background: var(--texte-nuit); border-radius: 2px; transition: transform .2s ease, top .2s ease; }
.bouton-menu span:first-child { top: 16px; }
.bouton-menu span:last-child { top: 24px; }
.bouton-menu[aria-expanded="true"] span:first-child { top: 20px; transform: rotate(45deg); }
.bouton-menu[aria-expanded="true"] span:last-child { top: 20px; transform: rotate(-45deg); }
.menu-tel { display: grid; gap: 4px; padding: 8px var(--gouttiere) 20px; background: rgba(11, 32, 36, .97); }
.menu-tel[hidden] { display: none; }
.menu-tel a:not(.bouton) { text-decoration: none; padding: 12px 4px; font-size: 18px; border-bottom: 1px solid var(--ligne-nuit); }
.menu-tel .bouton { margin-top: 12px; min-height: 50px; }

/* ——— Les surtitres ——— */
.surtitre { display: inline-flex; align-items: center; gap: 10px; font: 500 13px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--orange-vif); }
.surtitre-sombre { color: #b85d0e; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .surtitre-sombre { color: var(--orange-vif); } }
:root[data-theme="dark"] .surtitre-sombre { color: var(--orange-vif); }
.point-vif { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 0 rgba(234, 123, 27, .7); animation: battement 2.4s ease-out infinite; }
@keyframes battement { 0% { box-shadow: 0 0 0 0 rgba(234, 123, 27, .7); } 70%, 100% { box-shadow: 0 0 0 10px rgba(234, 123, 27, 0); } }

/* ——— 1. L'ouverture : le radar ——— */
.ouverture {
  background:
    radial-gradient(1100px 600px at 78% 40%, rgba(23, 53, 59, .9), transparent 70%),
    radial-gradient(700px 500px at 10% 100%, rgba(234, 123, 27, .08), transparent 70%),
    var(--nuit);
  color: var(--texte-nuit);
  padding: 112px 0 0;
  position: relative;
  overflow: hidden;
}
.ouverture::before { /* le quadrillage de la carte */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(var(--ligne-nuit) 1px, transparent 1px), linear-gradient(90deg, var(--ligne-nuit) 1px, transparent 1px);
  background-size: 64px 64px; opacity: .35;
  mask-image: radial-gradient(ellipse at 70% 45%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 45%, #000 20%, transparent 75%);
}
.ouverture-dedans {
  position: relative; max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: 32px; align-items: center;
}
.ouverture-texte { display: grid; gap: 22px; padding-bottom: 24px; }
.ouverture h1 { font-size: clamp(40px, 5.4vw, 70px); line-height: 1.02; font-weight: 850; font-stretch: 116%; letter-spacing: -0.02em; }
.ouverture h1 em { font-style: normal; color: var(--orange); display: block; }
.chapeau { font-size: clamp(17px, 1.5vw, 19px); color: var(--texte-nuit-2); max-width: 34em; }
.ouverture-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 4px; }
.ouverture-promesses { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; color: var(--texte-nuit-2); }
.ouverture-promesses li { display: inline-flex; align-items: center; gap: 8px; }
.ouverture-promesses li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: rgba(234, 123, 27, .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M4 7.2l2 2 4-4.4' fill='none' stroke='%23ff9a3d' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat; }

.radar { position: relative; margin: 0; width: 100%; }
.radar canvas { width: 100%; height: auto; aspect-ratio: 971 / 926; display: block; }
.radar-ecran {
  position: absolute; right: 0; bottom: 3%;
  display: grid; gap: 4px; min-width: 210px;
  padding: 12px 14px; border-radius: 12px;
  background: rgba(11, 32, 36, .72); border: 1px solid var(--ligne-nuit);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  font: 500 12px/1.4 var(--f-mono); color: var(--texte-nuit-2);
}
.radar-ligne { display: flex; justify-content: space-between; gap: 16px; }
.radar-etiquette { color: var(--orange-vif); letter-spacing: .12em; text-transform: uppercase; }
.radar-ville { font: 800 24px/1.1 var(--f-titre); font-stretch: 118%; color: var(--texte-nuit); letter-spacing: .02em; text-transform: uppercase; transition: color .3s; }
.radar-ville.flash { color: var(--orange-vif); }

.faits {
  position: relative; list-style: none; margin: 40px auto 0; padding: 0 var(--gouttiere);
  max-width: var(--largeur);
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--ligne-nuit);
}
.faits li { padding: 26px 22px 34px 0; display: grid; gap: 6px; align-content: start; }
.faits li + li { padding-left: 22px; border-left: 1px solid var(--ligne-nuit); }
.faits strong { font: 800 26px/1.1 var(--f-titre); font-stretch: 112%; color: var(--texte-nuit); }
.faits span { font-size: 14px; color: var(--texte-nuit-2); line-height: 1.5; }

/* ——— Les têtes de section ——— */
.section-tete { max-width: var(--largeur); margin: 0 auto; padding: 0 var(--gouttiere); display: grid; gap: 14px; }
.section-tete h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 820; max-width: 18em; }
.section-tete > p:not(.surtitre) { color: var(--encre-2); max-width: 40em; font-size: 18px; }
.section-tete-claire h2 { color: var(--texte-nuit); }
.section-tete-claire > p:not(.surtitre) { color: var(--texte-nuit-2); }

/* ——— 2. Le téléphone qui raconte ——— */
.histoire { padding: 112px 0 40px; }
.histoire-grille {
  max-width: var(--largeur); margin: 40px auto 0; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px;
}
.etapes { list-style: none; margin: 0; padding: 0; grid-column: 1; grid-row: 1; }
.etape { min-height: 78vh; display: grid; align-content: center; max-width: 30em; opacity: .38; transition: opacity .4s ease; }
.etape-carte { display: grid; gap: 12px; }
.etape.active { opacity: 1; }
.etape:first-child { min-height: 64vh; align-content: start; padding-top: 18vh; }
.etape:last-child { min-height: 70vh; }
.heure { font: 500 13px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--encre-2); }
.etape h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; font-weight: 800; }
.etape p:not(.heure) { color: var(--encre-2); font-size: 18px; }
.scene { grid-column: 2; grid-row: 1; position: sticky; top: calc(50vh - 330px); height: 660px; display: flex; justify-content: center; align-items: center; }

/* Le téléphone : tout son dedans se mesure en « u » (1/320e de sa largeur). */
.telephone {
  position: relative; height: 640px; aspect-ratio: 320 / 660;
  border-radius: 50px; padding: 11px;
  background: linear-gradient(145deg, #23464d, #07181b 55%, #1c3a40);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .06) inset, 0 40px 80px -30px rgba(11, 32, 36, .55), 0 18px 30px -18px rgba(11, 32, 36, .5);
  container-type: inline-size;
}
.telephone-ilot { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 30%; height: 24px; border-radius: 20px; background: #04090a; z-index: 5; }
.telephone-ecran { position: relative; height: 100%; border-radius: 40px; overflow: hidden; background: #eef2f3; }
.ecran {
  --u: calc(100cqw / 320);
  position: absolute; inset: 0; overflow: hidden;
  font: 400 calc(13 * var(--u))/1.35 "Geist", system-ui, sans-serif; color: #0f172a;
  background: #eef2f3;
  opacity: 0; transform: translateY(4%) scale(.98); visibility: hidden;
  transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .6s;
}
.telephone[data-ecran="appel"] .ecran[data-nom="appel"],
.telephone[data-ecran="notes"] .ecran[data-nom="notes"],
.telephone[data-ecran="bulletin"] .ecran[data-nom="bulletin"],
.telephone[data-ecran="parent"] .ecran[data-nom="parent"],
.telephone[data-ecran="recu"] .ecran[data-nom="recu"] { opacity: 1; transform: none; visibility: visible; transition: opacity .5s ease, transform .6s cubic-bezier(.2, .8, .2, 1), visibility 0s; }

.barre-etat { display: flex; justify-content: space-between; align-items: center; padding: 1.3em 2.2em .5em; font-weight: 600; font-size: 1em; }
.barre-etat-sombre { background: #17353b; color: #fff; }
.barre-icones { display: inline-flex; gap: .3em; align-items: flex-end; }
.barre-icones i { display: block; width: .32em; background: currentColor; border-radius: 1px; }
.barre-icones i:nth-child(1) { height: .5em; } .barre-icones i:nth-child(2) { height: .75em; } .barre-icones i:nth-child(3) { height: 1em; }
.app-barre { display: flex; align-items: center; gap: .8em; padding: .5em 1.2em; background: #fff; border-bottom: 1px solid #e2e8f0; }
.app-burger { width: 1.3em; height: .9em; border-block: 2px solid #334155; position: relative; }
.app-burger::after { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #334155; }
.app-select { border: 1px solid #cbd5e1; border-radius: .5em; padding: .3em .7em; font-size: .9em; flex: 1; max-width: 7em; }
.app-cloche { margin-left: auto; width: 1.9em; height: 1.9em; border-radius: 50%; border: 1px solid #cbd5e1; }

/* L'appel */
.appel-carte { margin: .8em .9em .5em; padding: .9em; background: #fff; border: 1px solid #e2e8f0; border-radius: .9em; display: grid; gap: .65em; }
.appel-titre { display: flex; gap: .7em; align-items: center; }
.appel-titre b { display: block; font-size: 1.3em; font-weight: 700; }
.appel-titre small { color: #64748b; font-size: .85em; }
.app-retour { width: 2em; height: 2em; display: grid; place-items: center; border: 1px solid #e2e8f0; border-radius: .5em; color: #475569; }
.onglets-app { display: flex; gap: .3em; font-size: .78em; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: #475569; }
.onglets-app span { padding: .45em .6em; border-radius: .45em; }
.onglets-app .actif { background: #fff4e8; color: #c2410c; border: 1px solid #fdba74; }
.appel-jour { display: flex; align-items: center; gap: .5em; font-size: 1.05em; }
.pastille-verte { font-size: .75em; padding: .2em .55em; border-radius: 1em; background: #dcfce7; color: #15803d; font-weight: 600; }
.segment { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid #e2e8f0; border-radius: .6em; overflow: hidden; text-align: center; font-size: .92em; }
.segment span { padding: .45em; }
.segment .actif { background: #fff4e8; color: #c2410c; font-weight: 600; }
.compteurs { display: flex; gap: .35em; font-size: .85em; }
.compteurs span { padding: .3em .6em; border-radius: 1em; border: 1px solid #e2e8f0; white-space: nowrap; transition: background-color .3s, color .3s, border-color .3s; }
.compteurs .c-vert { border-color: #86efac; color: #15803d; }
.compteurs span.change { background: #fff4e8; border-color: #fdba74; }
.appel-liste { list-style: none; margin: 0 .9em; padding: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: .9em; overflow: hidden; }
.appel-liste li { display: flex; align-items: center; gap: .55em; padding: .48em .7em; border-top: 1px solid #f1f5f9; transition: background-color .3s; }
.appel-liste li:first-child { border-top: 0; }
.appel-liste i { font-style: normal; width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; font-size: .75em; font-weight: 700; background: #fde7cf; color: #9a3412; flex: none; }
.appel-liste span { flex: 1; font-size: .95em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.appel-liste em { font-style: normal; font-size: .78em; font-weight: 700; width: 1.9em; height: 1.9em; display: grid; place-items: center; border-radius: .45em; border: 1px solid #e2e8f0; color: #94a3b8; transition: all .25s; }
.appel-liste em.pres { background: #dcfce7; border-color: #86efac; color: #15803d; }
.appel-liste li.absent { background: #fef2f2; }
.appel-liste li.absent em.pres, .appel-liste li.retard em.pres { background: transparent; border-color: #e2e8f0; color: #94a3b8; }
.appel-liste li.absent em:nth-of-type(2) { background: #dc2626; border-color: #dc2626; color: #fff; }
.appel-liste li.retard { background: #fffbeb; }
.appel-liste li.retard em:nth-of-type(3) { background: #d97706; border-color: #d97706; color: #fff; }
.app-pied { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: .6em; padding: .9em .9em 1.6em; background: rgba(255, 255, 255, .96); border-top: 1px solid #e2e8f0; }
.bouton-app { flex: 1; text-align: center; padding: .75em; border-radius: .6em; border: 1px solid #cbd5e1; font-weight: 600; background: #fff; transition: transform .15s, filter .15s; }
.bouton-app-orange { background: #ea7b1b; border-color: #ea7b1b; color: #fff; }
.bouton-app.presse { transform: scale(.95); filter: brightness(.9); }
.toast { position: absolute; left: .9em; right: .9em; bottom: 5.2em; padding: .8em .9em; border-radius: .7em; background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; font-size: .92em; font-weight: 500; opacity: 0; transform: translateY(1em); transition: opacity .35s, transform .35s; }
.toast.vu { opacity: 1; transform: none; }
.doigt { position: absolute; width: 3em; height: 3em; border-radius: 50%; background: rgba(234, 123, 27, .28); border: 2px solid rgba(234, 123, 27, .75); pointer-events: none; opacity: 0; transform: translate(-50%, -50%) scale(.6); transition: left .45s cubic-bezier(.3, .7, .2, 1), top .45s cubic-bezier(.3, .7, .2, 1), opacity .25s; z-index: 4; }
.doigt.vu { opacity: 1; }
.doigt.tape { animation: tape .35s ease-out; }
@keyframes tape { 0% { transform: translate(-50%, -50%) scale(1); } 50% { transform: translate(-50%, -50%) scale(.7); } 100% { transform: translate(-50%, -50%) scale(1); } }

/* Les notes */
.notes-tete { margin: .8em .9em .6em; padding: 1em; border-radius: .9em; background: #17353b; color: #fff; display: grid; gap: .3em; }
.notes-tete small { color: #a9c2bf; }
.notes-tete b { font-size: 1.45em; font-weight: 700; }
.notes-devoir { display: flex; gap: .4em; margin-top: .2em; }
.notes-devoir span { font-size: .8em; padding: .25em .6em; border-radius: 1em; background: rgba(255, 255, 255, .12); }
.notes-liste { list-style: none; margin: 0 .9em; padding: 0; background: #fff; border: 1px solid #e2e8f0; border-radius: .9em; overflow: hidden; }
.notes-liste li { display: flex; align-items: center; justify-content: space-between; padding: .6em .9em; border-top: 1px solid #f1f5f9; }
.notes-liste li:first-child { border-top: 0; }
.notes-liste output { min-width: 3.6em; text-align: center; padding: .35em .5em; border-radius: .5em; border: 1px solid #e2e8f0; font-family: "Geist Mono", ui-monospace, monospace; font-weight: 600; color: #94a3b8; transition: border-color .2s, background-color .2s, color .2s; }
.notes-liste output.saisie { border-color: #ea7b1b; background: #fff7ed; color: #0f172a; }
.notes-liste output.faite { color: #0f172a; }
.notes-moyenne { margin: .8em .9em; padding: .8em 1em; border-radius: .8em; background: #fff; border: 1px dashed #cbd5e1; display: flex; justify-content: space-between; align-items: center; }
.notes-moyenne b { font: 700 1.4em/1 "Geist Mono", ui-monospace, monospace; color: #c2410c; }
.bouton-large { flex: 1; }
.ecran-notes .toast { bottom: 5.2em; }

/* Le bulletin */
.ecran-bulletin { background: #d9e2e4; }
.papier { margin: .6em .8em; padding: 1em .9em .8em; background: #fffefb; border-radius: .4em; box-shadow: 0 .6em 1.6em -.6em rgba(15, 23, 42, .35); display: grid; gap: .7em; }
.papier-entete { text-align: center; display: grid; gap: .1em; border-bottom: 2px solid #17353b; padding-bottom: .55em; }
.papier-entete small { font-size: .66em; letter-spacing: .08em; color: #334155; }
.papier-entete .devise { font-style: italic; letter-spacing: 0; }
.papier-entete b { font-size: 1.08em; margin-top: .25em; }
.papier-titre { font-size: .78em; font-weight: 600; color: #c2410c; text-transform: uppercase; letter-spacing: .06em; }
.papier-eleve { display: flex; justify-content: space-between; align-items: baseline; gap: .5em; font-size: .9em; }
.papier-eleve span { color: #64748b; font-size: .85em; text-align: right; }
.papier-notes { width: 100%; border-collapse: collapse; font-size: .82em; }
.papier-notes th { text-align: left; font-size: .85em; font-weight: 600; color: #64748b; border-bottom: 1px solid #cbd5e1; padding: .25em .2em; }
.papier-notes td { padding: .3em .2em; border-bottom: 1px solid #eef2f5; font-variant-numeric: tabular-nums; }
.papier-notes th:not(:first-child), .papier-notes td:not(:first-child) { text-align: right; }
.papier-resultat { display: grid; grid-template-columns: 1fr 1fr; gap: .5em; }
.papier-resultat > div { background: #f1f5f4; border-radius: .5em; padding: .5em .6em; display: grid; line-height: 1.15; }
.papier-resultat small { font-size: .72em; color: #64748b; }
.papier-resultat b { font: 800 1.7em/1.05 "Archivo", sans-serif; font-stretch: 112%; color: #17353b; font-variant-numeric: tabular-nums; }
.papier-resultat sup { font-size: .5em; }
.papier-mention { grid-column: 1 / -1; text-align: center; font-weight: 700; color: #fff; background: #ea7b1b !important; padding: .45em !important; border-radius: .5em; letter-spacing: .02em; }
.papier-pied { display: flex; justify-content: space-between; align-items: flex-end; }
.signature small { font-size: .72em; color: #64748b; display: block; }
.signature svg { width: 6.5em; height: 2.2em; }
.signature path { fill: none; stroke: #1e3a8a; stroke-width: 2; stroke-linecap: round; stroke-dasharray: 260; stroke-dashoffset: 0; }
.qr { display: grid; justify-items: center; gap: .15em; }
.qr svg { width: 3.6em; height: 3.6em; fill: #0f172a; }
.qr small, .recu-qr small { font-size: .66em; color: #15803d; font-weight: 600; }

/* Le parent */
.ecran-parent { background: #f1f5f9; }
.parent-tete { display: flex; align-items: center; gap: .8em; padding: .6em 1.2em 1.2em; background: #17353b; color: #fff; }
.parent-tete small { color: #a9c2bf; font-size: .8em; display: block; }
.parent-tete b { font-size: 1.45em; }
.logo-ecole { width: 2.6em; height: 2.6em; border-radius: .7em; display: grid; place-items: center; background: #d5b067; color: #1f2a35; font-weight: 800; }
.initiales { margin-left: auto; width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: #21454b; font-weight: 700; font-size: .9em; }
.parent-corps { padding: .9em; display: grid; gap: .8em; }
.enfant { border-radius: 1em; padding: .9em; color: #fff; display: grid; gap: .55em; }
.enfant-orange { background: linear-gradient(160deg, #e0791d, #b4561a 70%, #8a4316); }
.enfant-violet { background: linear-gradient(160deg, #8b5cf6, #6d28d9); }
.enfant-tete { display: flex; justify-content: space-between; align-items: flex-start; }
.enfant-tete b { font-size: 1.25em; display: block; }
.enfant-tete small { opacity: .85; font-size: .82em; }
.enfant-tete > span { width: 2.4em; height: 2.4em; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .2); font-weight: 700; font-size: .85em; }
.tuile { display: flex; align-items: center; gap: .8em; background: #fff; color: #0f172a; border-radius: .7em; padding: .6em .8em; }
.tuile small { display: block; font-size: .7em; letter-spacing: .08em; text-transform: uppercase; color: #64748b; font-weight: 600; }
.tuile b { font-size: 1.15em; }
.tuile span:not(.tuile-icone) { display: block; font-size: .78em; color: #64748b; }
.anneau { width: 3em; height: 3em; transform: rotate(-90deg); flex: none; }
.anneau circle { fill: none; stroke: #e2e8f0; stroke-width: 4; }
.anneau .anneau-plein { stroke: #ea7b1b; stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: calc(100.5 * (1 - var(--part))); transition: stroke-dashoffset 1.2s cubic-bezier(.3, .7, .2, 1) .3s; }
.anneau-vert .anneau-plein { stroke: #16a34a; }
.tuile-icone { width: 3em; height: 3em; display: grid; place-items: center; border-radius: 50%; background: #ecfdf5; font-size: 1.1em; flex: none; }
.notif { position: absolute; left: .7em; right: .7em; top: 3.2em; z-index: 3; padding: .75em .9em; border-radius: 1em; background: rgba(255, 255, 255, .97); box-shadow: 0 .8em 2em -.6em rgba(15, 23, 42, .45); display: grid; gap: .15em; font-size: .9em; transform: translateY(-160%); transition: transform .55s cubic-bezier(.2, .8, .2, 1); }
.notif b { font-size: .82em; color: #c2410c; }
.notif.vu { transform: none; }
.nav-bas { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr); padding: .7em .3em 1.5em; background: #fff; border-top: 1px solid #e2e8f0; font-size: .78em; text-align: center; color: #475569; }
.nav-bas span::before { content: ""; display: block; width: 1.8em; height: 1.8em; margin: 0 auto .3em; border-radius: .5em; border: 2px solid currentColor; opacity: .7; }
.nav-bas .actif { color: #0f172a; font-weight: 700; }

/* Le reçu */
.ecran-recu { background: #17353b; }
.ecran-recu .barre-etat { color: #fff; }
.fente { margin: .8em 1.6em 0; height: .7em; border-radius: .4em; background: #07181b; box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.recu { margin: -.35em 2em 0; padding: 1.2em 1em 1em; background: #fffdf8; color: #0f172a; display: grid; gap: .75em; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform-origin: top; }
.recu-tete { display: grid; gap: .1em; text-align: center; border-bottom: 1px dashed #cbd5e1; padding-bottom: .6em; }
.recu-tete b { font-size: 1em; }
.recu-tete span { font: 600 .85em/1.3 "Geist Mono", monospace; color: #c2410c; }
.recu-tete small { color: #64748b; font-size: .75em; }
.recu dl { margin: 0; display: grid; gap: .35em; font-size: .82em; }
.recu dl div { display: flex; justify-content: space-between; gap: .6em; }
.recu dt { color: #64748b; }
.recu dd { margin: 0; font-weight: 600; text-align: right; }
.recu-montant { text-align: center; padding: .5em; border-radius: .5em; background: #fff4e8; display: grid; }
.recu-montant b { font: 800 1.45em/1.1 "Archivo", sans-serif; font-stretch: 112%; color: #17353b; }
.recu-montant span { font-size: .8em; font-style: italic; color: #9a3412; }
.recu-reste { display: flex; justify-content: space-between; font-size: .85em; }
.recu-qr { display: flex; align-items: center; gap: .7em; border-top: 1px dashed #cbd5e1; padding-top: .6em; }
.recu-qr svg { width: 3.4em; height: 3.4em; fill: #0f172a; flex: none; }
.whatsapp-ok { position: absolute; left: 1.4em; right: 1.4em; bottom: 2em; padding: .8em; border-radius: .8em; background: #25d366; color: #052e16; font-weight: 700; text-align: center; font-size: .92em; opacity: 0; transform: translateY(1em); transition: opacity .4s, transform .4s; }
.whatsapp-ok.vu { opacity: 1; transform: none; }

/* Les mouvements des écrans, quand ils jouent */
.ecran.joue .papier-notes tbody tr { animation: ligne-entre .45s cubic-bezier(.2, .8, .2, 1) both; }
.ecran.joue .papier-notes tbody tr:nth-child(1) { animation-delay: .25s; }
.ecran.joue .papier-notes tbody tr:nth-child(2) { animation-delay: .4s; }
.ecran.joue .papier-notes tbody tr:nth-child(3) { animation-delay: .55s; }
.ecran.joue .papier-notes tbody tr:nth-child(4) { animation-delay: .7s; }
.ecran.joue .papier-notes tbody tr:nth-child(5) { animation-delay: .85s; }
.ecran.joue .papier-notes tbody tr:nth-child(6) { animation-delay: 1s; }
.ecran.joue .papier-notes tbody tr:nth-child(7) { animation-delay: 1.15s; }
@keyframes ligne-entre { from { opacity: 0; transform: translateX(-12%); } to { opacity: 1; transform: none; } }
.ecran.joue .papier-resultat > div { animation: monte .5s cubic-bezier(.2, .8, .2, 1) both; }
.ecran.joue .papier-resultat > div:nth-child(1) { animation-delay: 1.4s; }
.ecran.joue .papier-resultat > div:nth-child(2) { animation-delay: 1.6s; }
.ecran.joue .papier-mention { animation: tampon .5s cubic-bezier(.2, 1.4, .4, 1) 2.6s both !important; }
@keyframes monte { from { opacity: 0; transform: translateY(40%); } to { opacity: 1; transform: none; } }
@keyframes tampon { from { opacity: 0; transform: scale(1.6) rotate(-4deg); } to { opacity: 1; transform: none; } }
.ecran.joue .signature path { animation: signe 1.3s ease-in-out 3s both; }
@keyframes signe { from { stroke-dashoffset: 260; } to { stroke-dashoffset: 0; } }
.ecran.joue .qr { animation: tampon .5s cubic-bezier(.2, 1.4, .4, 1) 4.1s both; }
.ecran.joue .recu { animation: imprime 2.2s cubic-bezier(.4, 0, .2, 1) .3s both; }
@keyframes imprime { from { clip-path: polygon(0 0, 100% 0, 100% 0, 0 0); transform: translateY(-8%); } to { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%); transform: none; } }
.ecran-parent:not(.joue) .anneau-plein { stroke-dashoffset: 100.5; transition: none; }

/* ——— 3. À chacun son écran ——— */
.roles { padding: 112px 0 96px; background: var(--fond-2); }
.roles-onglets {
  max-width: var(--largeur); margin: 36px auto 0; padding: 0 var(--gouttiere);
  display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none;
}
.roles-onglets::-webkit-scrollbar { display: none; }
.roles-onglets button {
  flex: none; font: 600 15px/1 var(--f-texte); color: var(--encre-2);
  padding: 12px 18px; border-radius: 999px; border: 1px solid var(--ligne); background: var(--papier); cursor: pointer;
  transition: color .15s, background-color .15s, border-color .15s;
}
.roles-onglets button:hover { color: var(--encre); border-color: var(--encre-2); }
.roles-onglets button[aria-selected="true"] { background: var(--sarcelle); border-color: var(--sarcelle); color: #fff; }
.role {
  max-width: var(--largeur); margin: 32px auto 0; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 48px; align-items: center;
}
.role[hidden] { display: none; }
.role-texte { display: grid; gap: 18px; }
.role-texte h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; font-weight: 800; }
.role-texte ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.role-texte li { padding-left: 28px; position: relative; color: var(--encre-2); }
.role-texte li::before { content: ""; position: absolute; left: 0; top: .5em; width: 14px; height: 8px; border-left: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(-45deg); }
.role.entre .portable, .role.entre .mini-tel { animation: apparait .55s cubic-bezier(.2, .8, .2, 1); }
@keyframes apparait { from { opacity: .2; transform: translateY(18px) scale(.985); } to { opacity: 1; transform: none; } }
.portable { width: 100%; }
.portable-ecran { border-radius: 14px 14px 0 0; padding: 10px 10px 0; background: #0c1a1d; box-shadow: var(--ombre); }
.portable-ecran img { border-radius: 6px 6px 0 0; width: 100%; height: auto; aspect-ratio: 1600 / 960; object-fit: cover; object-position: top left; background: #e9eef0; }
.portable-socle { height: 14px; margin: 0 -3%; border-radius: 0 0 14px 14px; background: linear-gradient(#c9d3d3, #9aa9aa); }
.mini-tel { justify-self: center; width: min(300px, 70vw); padding: 10px; border-radius: 42px; background: linear-gradient(145deg, #23464d, #07181b 55%, #1c3a40); box-shadow: var(--ombre); }
.mini-tel img { border-radius: 32px; width: 100%; height: auto; aspect-ratio: 600 / 1298; object-fit: cover; object-position: top; background: #eef2f3; }
.roles-note { max-width: var(--largeur); margin: 28px auto 0; padding: 0 var(--gouttiere); font-size: 14px; color: var(--encre-2); }

/* ——— 4. L'année ——— */
.annee { background: var(--nuit); color: var(--texte-nuit); padding: 112px 0; position: relative; overflow: hidden; }
.frise {
  list-style: none; max-width: var(--largeur); margin: 56px auto 0; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); position: relative;
}
.frise::before { /* le trait de l'année */
  content: ""; position: absolute; left: var(--gouttiere); right: var(--gouttiere); top: 34px; height: 2px;
  background: linear-gradient(90deg, var(--orange), var(--brume)); transform-origin: left; transform: scaleX(1);
}
.frise.attend::before { transform: scaleX(0); }
.frise.trace::before { transition: transform 2.2s cubic-bezier(.4, 0, .2, 1); transform: scaleX(1); }
.frise li { display: grid; gap: 8px; align-content: start; padding-right: 18px; position: relative; }
.frise li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; background: var(--nuit); border: 3px solid var(--orange); position: relative; z-index: 1; margin-top: 28px; margin-bottom: 6px; }
.frise-mois { order: -1; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-nuit-2); position: absolute; top: 0; }
.frise b { font: 800 21px/1.15 var(--f-titre); font-stretch: 110%; }
.frise li > span:last-child { font-size: 15px; color: var(--texte-nuit-2); line-height: 1.5; }
.frise.attend li { opacity: 0; transform: translateY(14px); }
.frise.trace li { opacity: 1; transform: none; transition: opacity .5s ease, transform .5s ease; }
.frise.trace li:nth-child(2) { transition-delay: .3s; } .frise.trace li:nth-child(3) { transition-delay: .6s; } .frise.trace li:nth-child(4) { transition-delay: .9s; } .frise.trace li:nth-child(5) { transition-delay: 1.2s; } .frise.trace li:nth-child(6) { transition-delay: 1.5s; }
.preuve {
  max-width: var(--largeur); margin: 72px auto 0; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
}
.preuve-texte { font-size: clamp(19px, 1.8vw, 23px); line-height: 1.55; color: var(--texte-nuit-2); border-left: 3px solid var(--orange); padding-left: 24px; }
.preuve-texte strong { color: var(--texte-nuit); font-weight: 600; }
.preuve-chiffres { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.preuve-chiffres div { padding: 22px 18px; border: 1px solid var(--ligne-nuit); border-radius: 14px; background: rgba(23, 53, 59, .45); display: flex; flex-direction: column-reverse; gap: 6px; }
.preuve-chiffres dd { margin: 0; font: 800 clamp(30px, 3.4vw, 44px)/1 var(--f-titre); font-stretch: 112%; color: var(--texte-nuit); font-variant-numeric: tabular-nums; }
.preuve-chiffres dt { font: 500 13px/1.3 var(--f-mono); color: var(--texte-nuit-2); letter-spacing: .04em; }

/* ——— 5. Pensé pour le Mali ——— */
.mali { padding: 112px 0 96px; }
.mali-grille {
  list-style: none; max-width: var(--largeur); margin: 40px auto 0; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0;
  border-top: 1px solid var(--ligne);
}
.mali-grille li { padding: 26px 28px 30px 0; display: grid; gap: 8px; align-content: start; border-bottom: 1px solid var(--ligne); }
.mali-grille li:not(:nth-child(3n + 1)) { padding-left: 28px; border-left: 1px solid var(--ligne); }
.mali-grille b { font: 750 20px/1.2 var(--f-titre); font-stretch: 108%; }
.mali-grille span { color: var(--encre-2); font-size: 16px; }

/* ——— 6. Les prix ——— */
.prix { padding: 104px 0 96px; background: var(--fond-2); }
.calculateur {
  max-width: var(--largeur); margin: 40px auto 0; padding: 0 var(--gouttiere);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start;
}
.calcul-choix { background: var(--papier); border: 1px solid var(--ligne); border-radius: 18px; padding: 26px; display: grid; gap: 22px; align-content: start; }
.calcul-choix fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.calcul-choix legend { font: 700 18px/1.2 var(--f-titre); font-stretch: 108%; margin-bottom: 8px; }
.calcul-choix label { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--ligne); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.calcul-choix label:hover { border-color: var(--encre-2); }
.calcul-choix input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.calcul-choix label:has(input:checked):not(.interrupteur) { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 8%, var(--papier)); }
.interrupteur { border-style: dashed !important; }
.interrupteur input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interrupteur-rail { width: 42px; height: 24px; border-radius: 12px; background: var(--ligne); position: relative; flex: none; transition: background-color .2s; }
.interrupteur-rail::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.interrupteur input:checked + .interrupteur-rail { background: var(--orange); }
.interrupteur input:checked + .interrupteur-rail::after { transform: translateX(18px); }
.interrupteur input:focus-visible + .interrupteur-rail { outline: 3px solid var(--orange); outline-offset: 2px; }
.calcul-resultat {
  background: var(--nuit); color: var(--texte-nuit); border: 1px solid var(--ligne-nuit); border-radius: 18px; padding: 30px;
  display: grid; gap: 14px; align-content: start; position: relative; overflow: hidden;
}
.calcul-resultat::after { content: ""; position: absolute; right: -120px; top: -120px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(234, 123, 27, .22), transparent 70%); pointer-events: none; }
.calcul-libelle { font: 500 13px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--texte-nuit-2); }
.calcul-mois b { font: 850 clamp(52px, 6vw, 76px)/1 var(--f-titre); font-stretch: 116%; color: var(--texte-nuit); font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.calcul-mois span { font-size: 18px; color: var(--texte-nuit-2); }
.calcul-an { color: var(--texte-nuit-2); }
.calcul-an b { color: var(--orange-vif); font-weight: 600; }
.calcul-detail { font: 400 13px/1.4 var(--f-mono); color: var(--texte-nuit-2); padding-bottom: 14px; border-bottom: 1px solid var(--ligne-nuit); }
.calcul-compris { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 9px; font-size: 15px; }
.calcul-compris li { padding-left: 26px; position: relative; }
.calcul-compris li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 7px; border-left: 2px solid var(--orange-vif); border-bottom: 2px solid var(--orange-vif); transform: rotate(-45deg); }
.calcul-resultat .bouton { justify-self: start; position: relative; z-index: 1; }
.prix-regle { max-width: var(--largeur); margin: 22px auto 0; padding: 0 var(--gouttiere); font-size: 15px; color: var(--encre-2); }

/* ——— 7. La confiance ——— */
.confiance { background: var(--sarcelle); color: var(--texte-nuit); padding: 104px 0; }
.confiance-grille { list-style: none; max-width: var(--largeur); margin: 40px auto 0; padding: 0 var(--gouttiere); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.confiance-grille li { padding: 24px 22px; border-radius: 16px; background: rgba(11, 32, 36, .45); border: 1px solid var(--ligne-nuit); display: grid; gap: 8px; align-content: start; }
.confiance-grille b { font: 750 19px/1.2 var(--f-titre); font-stretch: 108%; }
.confiance-grille span { font-size: 15px; color: var(--texte-nuit-2); }

/* ——— 8. Les questions ——— */
.questions { padding: 104px 0 96px; }
.questions-liste { max-width: 860px; margin: 36px auto 0; padding: 0 var(--gouttiere); }
.questions-liste details { border-bottom: 1px solid var(--ligne); }
.questions-liste summary { list-style: none; cursor: pointer; padding: 22px 40px 22px 0; position: relative; font: 700 19px/1.3 var(--f-titre); font-stretch: 106%; }
.questions-liste summary::-webkit-details-marker { display: none; }
.questions-liste summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -9px; border-right: 2.5px solid var(--orange); border-bottom: 2.5px solid var(--orange); transform: rotate(45deg); transition: transform .2s, margin-top .2s; }
.questions-liste details[open] summary::after { transform: rotate(-135deg); margin-top: -3px; }
.questions-liste details p { padding: 0 0 22px; color: var(--encre-2); max-width: 42em; }

/* ——— 9. Le contact ——— */
.contact {
  background: radial-gradient(800px 380px at 50% 120%, rgba(234, 123, 27, .25), transparent 70%), var(--nuit);
  color: var(--texte-nuit); text-align: center; padding: 104px var(--gouttiere); display: grid; justify-items: center; gap: 18px;
}
.contact h2 { font-size: clamp(34px, 4.6vw, 58px); line-height: 1.05; font-weight: 850; font-stretch: 116%; }
.contact p { color: var(--texte-nuit-2); max-width: 34em; font-size: 18px; }
.contact-boutons { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }
.pied { background: #071518; color: var(--texte-nuit-2); }
.pied-dedans { max-width: var(--largeur); margin: 0 auto; padding: 28px var(--gouttiere) 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; font-size: 14px; }
.pied .marque { color: var(--texte-nuit); font-size: 18px; }
.pied-petit { margin-left: auto; }

/* ——— Les entrées en douceur (seulement si le mouvement est permis) ——— */
.monte-attend { opacity: 0; transform: translateY(22px); }
.monte-vu { opacity: 1; transform: none; transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }

/* ——— Tablette ——— */
@media (max-width: 1080px) {
  .menu { display: none; }
  .faits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .faits li:nth-child(3) { padding-left: 0; border-left: 0; }
  .faits li:nth-child(n + 3) { border-top: 1px solid var(--ligne-nuit); }
  .confiance-grille { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .frise { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 36px; }
  .frise::before { display: none; }
  .frise li::before { margin-top: 26px; }
}

/* ——— Téléphone ——— */
@media (max-width: 899px) {
  body { font-size: 16px; }
  .bouton-demo-entete { display: none; }
  .bouton-menu { display: block; }
  .entete-dedans { gap: 12px; }
  .entete-actions .bouton-fantome { min-height: 42px; }
  .ouverture { padding-top: 92px; }
  /* Au téléphone, le radar vient juste sous le titre : on le voit dès l'ouverture. */
  .ouverture-dedans { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .ouverture-texte { display: contents; }
  .ouverture .surtitre { order: 1; }
  .ouverture h1 { order: 2; }
  .radar { order: 3; }
  .chapeau { order: 4; }
  .ouverture-boutons { order: 5; }
  .ouverture-promesses { order: 6; }
  .ouverture-boutons .bouton { flex: 1 1 220px; }
  .radar { width: min(100%, 52svh * 971 / 926); justify-self: center; margin: -6px 0 -4px; }
  .radar-ecran { position: static; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 4px; padding: 0; min-width: 0; background: none; border: 0; backdrop-filter: none; -webkit-backdrop-filter: none; font-size: 11px; }
  .radar-ville { font-size: 17px; order: -1; }
  .radar-ligne { gap: 10px; }
  .faits { margin-top: 20px; }
  .faits li { padding: 20px 14px 24px 0; }
  .faits li + li { padding-left: 14px; }
  .faits strong { font-size: 21px; }
  .faits span { font-size: 13px; }

  .histoire { padding-top: 80px; }
  .histoire-grille { display: block; margin-top: 24px; }
  .scene { position: sticky; top: 66px; height: 60svh; z-index: 1; pointer-events: none; }
  .telephone { height: 100%; border-radius: 40px; padding: 8px; }
  .telephone-ecran { border-radius: 32px; }
  .telephone-ilot { top: 14px; height: 18px; }
  .etapes { position: relative; z-index: 2; margin-top: 8px; }
  .etape, .etape:first-child, .etape:last-child { min-height: 66svh; padding: 0 0 5svh; align-content: end; opacity: 1; max-width: none; }
  .etape-carte { display: grid; gap: 8px; padding: 18px; border-radius: 16px; background: var(--papier); box-shadow: var(--ombre); border: 1px solid var(--ligne); }
  .etape h3 { font-size: 23px; }
  .etape p:not(.heure) { font-size: 16px; }

  .roles { padding: 80px 0 72px; }
  .roles-onglets { margin-top: 26px; }
  .role { grid-template-columns: minmax(0, 1fr); gap: 26px; margin-top: 24px; }
  .portable-ecran { padding: 6px 6px 0; border-radius: 10px 10px 0 0; }
  .portable-socle { height: 10px; }

  .annee { padding: 80px 0; }
  .frise { grid-template-columns: minmax(0, 1fr); row-gap: 0; margin-top: 36px; }
  .frise li { padding: 0 0 26px 34px; border-left: 2px solid rgba(234, 123, 27, .5); margin-left: 7px; }
  .frise li:last-child { border-left-color: transparent; }
  .frise li::before { position: absolute; left: -9px; top: 0; margin: 0; }
  .frise-mois { position: static; }
  .preuve { grid-template-columns: minmax(0, 1fr); margin-top: 40px; gap: 26px; }
  .preuve-chiffres div { padding: 16px 12px; }

  .mali { padding: 80px 0 64px; }
  .mali-grille { grid-template-columns: minmax(0, 1fr); }
  .mali-grille li, .mali-grille li:not(:nth-child(3n + 1)) { padding: 20px 0; border-left: 0; }

  .prix { padding: 80px 0 72px; }
  .calculateur { grid-template-columns: minmax(0, 1fr); }
  .calcul-choix, .calcul-resultat { padding: 20px; }
  .calcul-resultat .bouton { justify-self: stretch; }

  .confiance { padding: 80px 0; }
  .confiance-grille { grid-template-columns: minmax(0, 1fr); }
  .questions { padding: 80px 0 64px; }
  .contact { padding: 80px var(--gouttiere); }
  .contact-boutons .bouton { flex: 1 1 260px; }
  .pied-petit { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
}

/* ——— 1 bis. Toute l'école, reliée : le dôme et l'anneau des modules qui tourne ——— */
.relie { --W: min(96vw, 1040px); --marge: 44px; background: var(--fond); padding: 104px 0 0; overflow: hidden; }
.relie-tete { max-width: 1000px; margin: 0 auto; padding: 0 var(--gouttiere); display: grid; justify-items: center; gap: 16px; text-align: center; }
.pastille-relie { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; border: 1px solid rgba(234, 123, 27, .35); background: rgba(234, 123, 27, .09); color: #b85d0e; font: 600 13px/1 var(--f-texte); }
.pastille-relie::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--orange); animation: battement 2.4s ease-out infinite; }
.relie h2 { font-size: clamp(36px, 5.2vw, 66px); line-height: 1; font-weight: 850; font-stretch: 116%; letter-spacing: -0.02em; }
.relie h2 em { font-style: italic; font-weight: 500; font-stretch: 100%; color: var(--orange); }
.relie-tete > p:last-child { color: var(--encre-2); font-size: 18px; max-width: 36em; }
.dome-cadre { position: relative; height: calc(var(--W) * 0.54 + var(--marge)); margin-top: 28px; overflow: hidden; }
.dome { position: absolute; left: 50%; top: var(--marge); width: var(--W); aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; }
.dome-lueur {
  position: absolute; inset: 12%; border-radius: 50%;
  border-top: 1px solid rgba(234, 123, 27, .55);
  background: linear-gradient(to bottom, rgba(234, 123, 27, .5), rgba(234, 123, 27, .13) 32%, var(--fond) 58%);
  box-shadow: 0 -8px 44px rgba(234, 123, 27, .25), inset 0 14px 44px rgba(234, 123, 27, .16);
}
.dome-lueur::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(ellipse at 50% 0%, rgba(234, 123, 27, .3), transparent 62%); }
.dome-cercles i { position: absolute; border-radius: 50%; border: 1px solid var(--ligne); opacity: .7; }
.dome-cercles i:nth-child(1) { inset: 22%; } .dome-cercles i:nth-child(2) { inset: 31%; opacity: .55; } .dome-cercles i:nth-child(3) { inset: 40%; opacity: .4; } .dome-cercles i:nth-child(4) { inset: 47%; opacity: .3; }
.dome-balayage { position: absolute; left: 50%; top: 50%; width: 38%; height: 2px; margin-top: -1px; transform-origin: 0 50%; background: linear-gradient(to right, rgba(234, 123, 27, 0), rgba(234, 123, 27, .85)); border-radius: 2px; animation: balaie 10s linear infinite; }
@keyframes balaie { from { transform: rotate(200deg); } to { transform: rotate(560deg); } }
.dome-anneau { position: absolute; inset: 1.5%; border-radius: 50%; border: 1px solid var(--ligne); }
.modules { list-style: none; margin: 0; padding: 0; position: absolute; inset: 0; }
.modules li { position: absolute; left: 50%; top: 0; z-index: 2; }
.module-bouton {
  position: relative; display: grid; place-items: center;
  width: 64px; height: 64px; padding: 0; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--ligne); background: var(--papier); color: var(--encre);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--fond) 70%, transparent), 0 10px 24px -12px rgba(11, 32, 36, .45);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), border-color .25s, background-color .25s, color .25s;
}
.module-icone { display: grid; place-items: center; }
.module-icone svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.module-nom { position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); white-space: nowrap; font: 600 13px/1.2 var(--f-texte); color: var(--encre-2); transition: color .25s; }
.module-tag, .module-texte { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.modules li.actif .module-bouton, .module-bouton:hover, .module-bouton:focus-visible { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 12%, var(--papier)); color: #c2410c; transform: scale(1.16); }
.modules li.actif .module-nom { color: var(--encre); }
.dome-centre {
  position: absolute; left: 50%; top: 15%; width: 46%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 8px; text-align: center; z-index: 1;
}
.dome-centre img { border-radius: 14px; box-shadow: 0 10px 28px -10px rgba(234, 123, 27, .7); margin-bottom: 6px; }
.dome-tag { font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: #b85d0e; }
.dome-nom { font: 850 clamp(28px, 3.6vw, 44px)/1.05 var(--f-titre); font-stretch: 114%; color: var(--encre); }
.dome-texte { color: var(--encre-2); font-size: 17px; max-width: 26em; min-height: 3.2em; }
.dome-centre.change .dome-nom, .dome-centre.change .dome-texte, .dome-centre.change .dome-tag { animation: caption .5s cubic-bezier(.2, .8, .2, 1); }
@keyframes caption { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.defile { position: relative; z-index: 3; height: 78px; display: flex; align-items: center; overflow: hidden; background: var(--nuit); border-block: 1px solid var(--ligne-nuit); }
.defile-piste { display: flex; width: max-content; animation: defile 70s linear infinite; }
.defile:hover .defile-piste { animation-play-state: paused; }
.defile-piste > div { display: flex; align-items: center; }
.defile span { font: 700 28px/1 var(--f-titre); font-stretch: 110%; color: var(--texte-nuit); white-space: nowrap; padding: 0 26px; }
.defile i { width: 10px; height: 10px; background: var(--orange); transform: rotate(45deg); border-radius: 2px; flex: none; }
@keyframes defile { to { transform: translateX(-50%); } }

/* ——— 1 ter. La place de la vidéo ——— */
.video { background: var(--nuit); color: var(--texte-nuit); padding: 88px var(--gouttiere) 104px; }
.video-tete { max-width: var(--largeur); margin: 0 auto; display: grid; gap: 12px; justify-items: center; text-align: center; }
.video-tete h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; font-weight: 820; }
.video-cadre { max-width: 980px; margin: 36px auto 0; aspect-ratio: 16 / 9; border-radius: 22px; overflow: hidden; position: relative; border: 1px solid var(--ligne-nuit); background: radial-gradient(600px 340px at 50% 110%, rgba(234, 123, 27, .28), transparent 70%), radial-gradient(circle at 50% 50%, rgba(23, 53, 59, .9), var(--nuit-2) 70%); box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .7); }
.video-cadre::before { content: ""; position: absolute; inset: 0; background: repeating-radial-gradient(circle at 50% 50%, transparent 0 58px, rgba(143, 191, 184, .08) 58px 59px); }
.video-cadre video { position: relative; width: 100%; height: 100%; display: block; background: #000; }
.video-attente { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 18px; text-align: center; padding: 20px; }
.video-lecture { width: 88px; height: 88px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 12px rgba(234, 123, 27, .18), 0 0 0 26px rgba(234, 123, 27, .07); position: relative; animation: battement-lecture 2.6s ease-out infinite; }
.video-lecture::after { content: ""; position: absolute; left: 36px; top: 28px; border-left: 24px solid #1b0e02; border-top: 16px solid transparent; border-bottom: 16px solid transparent; }
@keyframes battement-lecture { 0% { box-shadow: 0 0 0 0 rgba(234, 123, 27, .45), 0 0 0 0 rgba(234, 123, 27, .2); } 100% { box-shadow: 0 0 0 22px rgba(234, 123, 27, 0), 0 0 0 44px rgba(234, 123, 27, 0); } }
.video-attente p { display: grid; gap: 4px; }
.video-attente b { font: 800 24px/1.2 var(--f-titre); font-stretch: 110%; }
.video-attente p span { color: var(--texte-nuit-2); }
.video-bientot { position: absolute; top: 18px; right: 18px; font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--orange-vif); border: 1px solid rgba(255, 154, 61, .4); border-radius: 999px; padding: 7px 12px; }
/* Le départ de la vidéo (28/11) : l'affiche, le grand bouton orange au milieu ; Lecture ouvre les commandes du navigateur. */
.video-depart { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; border: 0; padding: 20px; cursor: pointer; color: #fff; font: inherit; background: linear-gradient(180deg, rgba(8, 20, 22, .06), rgba(8, 20, 22, .5)); }
.video-depart .video-lecture { transition: transform .2s ease; }
.video-depart:hover .video-lecture { transform: scale(1.06); }
.video-depart:focus-visible { outline: 3px solid var(--orange-vif); outline-offset: -6px; }
.video-depart-mot { font: 700 17px/1.2 var(--f-titre); background: rgba(8, 20, 22, .74); border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; padding: 9px 16px; }

/* ——— Le contact : les coordonnées ——— */
.contact-coordonnees { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 36px; }
.contact-coordonnees li { display: grid; gap: 2px; }
.contact-coordonnees span { font: 500 12px/1.4 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--texte-nuit-2); }
.contact-coordonnees a { color: var(--texte-nuit); font-weight: 600; text-decoration-color: rgba(234, 123, 27, .6); text-underline-offset: 4px; }
.pied-contact { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.pied-contact a { color: var(--texte-nuit-2); text-decoration: none; }
.pied-contact a:hover { color: var(--texte-nuit); }

@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pastille-relie, :root:not([data-theme="light"]) .dome-tag { color: var(--orange-vif); } :root:not([data-theme="light"]) .modules li.actif .module-bouton { color: var(--orange-vif); } }
:root[data-theme="dark"] .pastille-relie, :root[data-theme="dark"] .dome-tag { color: var(--orange-vif); }

@media (max-width: 899px) {
  .relie { --marge: 30px; padding-top: 80px; }
  .relie-tete > p:last-child { font-size: 16px; }
  .module-bouton { width: 44px; height: 44px; box-shadow: 0 0 0 4px color-mix(in srgb, var(--fond) 70%, transparent), 0 8px 18px -10px rgba(11, 32, 36, .45); }
  .module-icone svg { width: 19px; height: 19px; }
  .module-nom { display: none; }
  .dome-centre { top: 13%; width: 76%; gap: 4px; }
  .dome-centre img { display: none; }
  .dome-tag { font-size: 10.5px; }
  .dome-nom { font-size: 23px; }
  .dome-texte { font-size: 13.5px; line-height: 1.4; }
  .defile { height: 58px; }
  .defile span { font-size: 19px; padding: 0 16px; }
  .defile i { width: 7px; height: 7px; }
  .video { padding: 72px var(--gouttiere) 80px; }
  .video-cadre { border-radius: 16px; margin-top: 26px; }
  .video-lecture { width: 64px; height: 64px; }
  .video-lecture::after { left: 26px; top: 20px; border-left-width: 18px; border-top-width: 12px; border-bottom-width: 12px; }
  .video-attente { gap: 12px; }
  .video-attente b { font-size: 18px; }
  .video-attente p span { font-size: 14px; }
  .video-bientot { top: 12px; right: 12px; font-size: 10px; padding: 5px 9px; }
  .video-depart { gap: 10px; }
  .video-depart-mot { font-size: 14px; padding: 7px 12px; }
  .contact-coordonnees { flex-direction: column; align-items: center; }
}
