/* Site public elimu.cd — feuille unique (accueil, pages légales, 404).
   Source : maquette « landing-elimu » version 6 validée par Daniel (scratchpad/maquettes/landing-elimu), recopiée
   telle quelle ; seuls changent les polices (auto-hébergées), les styles en ligne devenus des classes (CSP sans
   'unsafe-inline') et l'ajout des pages légales en fin de fichier. Les chemins /assets/… reçoivent leur empreinte au
   build (outils/construire.mjs). */

/* Polices auto-hébergées, sous-ensemble latin (Fontsource 5.3.0, licence OFL : licences-polices/). */
@font-face {
  font-family: "Lexend"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/polices/lexend-latin-wght.b7e7538f59.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(/assets/polices/inter-latin-wght.3100e775e8.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Kalam"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(/assets/polices/kalam-latin-400.954410601a.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: "Kalam"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(/assets/polices/kalam-latin-700.252063af6a.woff2) format("woff2");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

/* Socle du document (celui que la page publiée de la maquette recevait de son hôte). */
:root { color-scheme: light; }
body { margin: 0; padding: 0; }
[hidden]:not([hidden=until-found i]) { display: none !important; }

/* Mise en page : un cahier quadrillé de maths, la parabole du cours « Fonctions du second degré » comme fil conducteur ;
   alternance texte / écran réel, une seule action par bloc (D11). Charte « Braise » (elimu-brand/tokens). */
:root {
  --bg: #FFF8F5;        /* Coquille */
  --surface: #FFFFFF;
  --peche: #FFF0EA;     /* Pêche pâle */
  --line: #F3E3DC;
  --grid: rgba(37, 99, 235, 0.07);
  --ink: #1B1420;       /* Encre prune */
  --ink-2: #5F5566;
  --brand: #EF4D48;     /* Corail Elimu */
  --accent: #D92F2A;
  --on-accent: #FFFFFF;
  --accent-text: #B3241F;
  --soleil: #FFB020;
  --ciel: #2563EB;
  --vert: #0B7A55;
  --frame: #1B1420;
  --band: #1B1420;      /* bande finale, toujours prune */
  --band-text: #F7F2EF;
  --band-text-2: #B3AABB;
  --shadow: 0 1px 2px rgba(27,20,32,.06), 0 18px 48px rgba(27,20,32,.12);
  --f-title: "Lexend", ui-sans-serif, system-ui, sans-serif;
  --f-data: "Inter", ui-sans-serif, system-ui, sans-serif;
  --wrap: 1180px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #14111A; --surface: #1E1A26; --peche: #282332; --line: rgba(255,255,255,.08);
    --grid: rgba(122, 162, 255, 0.08); --ink: #F7F2EF; --ink-2: #B3AABB; --brand: #FF6A61;
    --accent-text: #FF7A70; --ciel: #7AA2FF; --vert: #34D399; --frame: #000000; --band: #0D0B12;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #14111A; --surface: #1E1A26; --peche: #282332; --line: rgba(255,255,255,.08);
  --grid: rgba(122, 162, 255, 0.08); --ink: #F7F2EF; --ink-2: #B3AABB; --brand: #FF6A61;
  --accent-text: #FF7A70; --ciel: #7AA2FF; --vert: #34D399; --frame: #000000; --band: #0D0B12;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 18px 48px rgba(0,0,0,.45);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--f-title); font-weight: 400; font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--ciel); outline-offset: 3px; border-radius: 6px; }
.wrap {
  max-width: var(--wrap); margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}
h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; text-wrap: balance; margin: 0; }
p { margin: 0; }
.data { font-family: var(--f-data); font-variant-numeric: tabular-nums; }

/* En-tête */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--bg); }
header.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 9;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
header.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; gap: 24px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 22px; letter-spacing: -0.03em; }
.logo svg { width: 34px; height: 34px; }
.top nav { display: flex; gap: 28px; margin-left: auto; font-size: 15px; }
.top nav a { text-decoration: none; color: var(--ink-2); transition: color .15s; }
.top nav a:hover { color: var(--ink); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; text-decoration: none;
  font-weight: 600; font-size: 16px; white-space: nowrap;
  transition: transform .12s ease-out, background-color .15s, box-shadow .15s;
}
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 6px 18px rgba(217,47,42,.28); }
.btn-primary:hover { background: #C42722; }
.btn-ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); }
.top .btn { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* Héros */
.hero { position: relative; isolation: isolate; }
.hero::before { /* papier quadrillé du cahier */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 75% at 70% 40%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 80% 75% at 70% 40%, #000 30%, transparent 75%);
}
.hero .wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 56px 80px; }
.hero-text { min-width: 0; display: grid; gap: 26px; }
.eyebrow { font-size: 14px; font-weight: 500; color: var(--ink-2); letter-spacing: .02em; display: inline-flex; gap: 10px; align-items: center; }
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--soleil); }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: .98; letter-spacing: -0.045em; font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--brand); }
.hero .lead { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink-2); max-width: 30em; font-weight: 300; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 16px;
  background: var(--ink); color: var(--bg); text-decoration: none; transition: transform .12s ease-out; }
.store:hover { transform: translateY(-2px); }
.store svg { width: 24px; height: 24px; flex: none; }
.store span { display: grid; line-height: 1.15; }
.store small { font-size: 11px; opacity: .75; font-weight: 400; }
.store b { font-size: 17px; font-weight: 600; }
.web-link { font-size: 15px; color: var(--ink-2); }
.web-link a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }

.stage { position: relative; min-width: 0; aspect-ratio: 1 / 1.02; max-width: 560px; justify-self: center; width: 100%; }
.graph { position: absolute; inset: 4% 0 10% 0; width: 100%; height: 86%; overflow: visible; }
.graph .axis { stroke: var(--ink-2); stroke-width: 2; opacity: .55; }
.graph .curve { fill: none; stroke: var(--brand); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 1000; stroke-dashoffset: 0; animation: trace 1.6s cubic-bezier(.6,.05,.25,1) both .15s; }
.graph .vertex { fill: var(--soleil); transform-origin: 300px 380px; animation: pop .5s cubic-bezier(.34,1.56,.64,1) both 1.5s; }
.graph text { font-family: var(--f-data); font-size: 17px; fill: var(--ink-2); }
.graph .eq { font-size: 21px; font-weight: 600; fill: var(--ink); font-style: italic; }
@keyframes trace { from { stroke-dashoffset: 1000; } to { stroke-dashoffset: 0; } }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }

.phone { position: relative; background: var(--frame); border-radius: 46px; padding: 9px; box-shadow: var(--shadow); }
.phone img { border-radius: 38px; width: 100%; aspect-ratio: 640 / 1391; object-fit: cover; object-position: top; background: var(--peche); }
.stage .phone { position: absolute; width: 46%; left: 27%; top: 8%; transform: rotate(-3deg); }
.chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 16px;
  background: var(--surface); box-shadow: var(--shadow); font-size: 14px; line-height: 1.3; white-space: nowrap;
}
.chip b { font-weight: 600; display: block; }
.chip small { color: var(--ink-2); font-size: 12.5px; }
.chip .ring { width: 34px; height: 34px; flex: none; }
.chip.c1 { left: 0; top: 54%; }
.chip.c2 { right: 0; top: 30%; }
.chip .live-dot { background: rgba(255,77,77,.14); }
.chip .live-dot span { width: 10px; height: 10px; border-radius: 50%; background: #E5322D; animation: beat 1.6s ease-in-out infinite; }
@keyframes beat { 50% { box-shadow: 0 0 0 6px rgba(229,50,45,.18); } }
.chip .ok { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--vert) 14%, transparent); color: var(--vert); flex: none; }

/* Bandeau des matières */
.subjects { border-block: 1px solid var(--line); background: var(--surface); }
.subjects .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; padding-block: 22px; align-items: center; justify-content: center; font-size: 15px; color: var(--ink-2); }
.subjects i { font-style: normal; display: inline-flex; align-items: center; gap: 8px; }
.subjects i::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--c); }

/* Sections */
section.block { padding-block: 104px; }
.head { display: grid; gap: 16px; max-width: 40em; margin-bottom: 56px; }
.kicker { font-family: var(--f-data); font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-text); }
.head h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; letter-spacing: -0.035em; }
.head p { color: var(--ink-2); font-size: 18px; font-weight: 300; }

/* Parcours d'une leçon : vrais numéros de leçon du cours */
.path { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: step; }
.step { display: grid; gap: 18px; align-content: start; min-width: 0; }
.step .phone { border-radius: 36px; padding: 7px; }
.step .phone img { border-radius: 30px; }
.step:nth-child(even) { margin-top: 48px; }
.step h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.step p { color: var(--ink-2); font-size: 15.5px; line-height: 1.55; }
.step .tag { font-family: var(--f-data); font-size: 13px; color: var(--ink-2); display: inline-flex; gap: 8px; align-items: center; }
.step .tag::before { content: ""; width: 18px; height: 2px; background: var(--brand); border-radius: 2px; }

/* Rangées alternées */
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.row + .row { margin-top: 120px; }
.row.flip .media { order: 2; }
.row .copy { display: grid; gap: 20px; min-width: 0; max-width: 30em; }
.row h3 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.03em; }
.row .copy > p { color: var(--ink-2); font-size: 18px; font-weight: 300; }
.who { display: inline-flex; align-self: start; justify-self: start; padding: 6px 14px; border-radius: 999px; background: var(--peche); color: var(--accent-text); font-size: 14px; font-weight: 600; }
.facts { display: grid; gap: 12px; margin: 4px 0 0; padding: 0; list-style: none; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; font-size: 16px; }
.facts svg { width: 22px; height: 22px; color: var(--vert); margin-top: 2px; }
.media { position: relative; min-width: 0; display: grid; place-items: center; padding: 40px 0; }
.media .disc { position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: var(--peche); z-index: -1; }
.media .phone { width: min(300px, 70%); }
.media .float { position: absolute; }
.media .float.a { left: 2%; bottom: 18%; }
.media .float.b { right: 0; top: 16%; }
.media { isolation: isolate; }

/* Écran d'ordinateur */
.laptop { width: 100%; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); border: 1px solid var(--line); }
.laptop .bar { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: var(--peche); }
.laptop .bar i { width: 11px; height: 11px; border-radius: 50%; background: var(--line); }
.laptop .bar span { margin-left: 12px; font-family: var(--f-data); font-size: 12.5px; color: var(--ink-2); background: var(--surface); padding: 4px 12px; border-radius: 999px; }
.schools .row { grid-template-columns: 1.25fr 1fr; }
.schools .media { padding: 0; }

/* Écoles : trois espaces */
.spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 72px; border-top: 1px solid var(--line); }
.spaces > div { padding: 28px 28px 0 0; display: grid; gap: 10px; align-content: start; }
.spaces > div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.spaces h4 { margin: 0; font-size: 18px; font-weight: 600; }
.spaces p { color: var(--ink-2); font-size: 15.5px; }

/* Bande finale */
.final { background: var(--band); color: var(--band-text); position: relative; overflow: hidden; isolation: isolate; }
.final svg.bg { position: absolute; right: -6%; bottom: -30%; width: 62%; z-index: -1; opacity: .9; }
.final .wrap { padding-block: 112px; display: grid; gap: 28px; justify-items: start; }
.final h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.02; letter-spacing: -0.04em; max-width: 12em; }
.final p { color: var(--band-text-2); font-size: 19px; font-weight: 300; max-width: 28em; }
.final .store { background: var(--band-text); color: #1B1420; }
.final .web-link { color: var(--band-text-2); }
.final .web-link a { color: #FF7A70; }

/* Contact : coordonnées du site actuel */
.contact .wrap { padding-block: 88px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 48px; align-items: start; }
.contact .head { margin: 0; }
.ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.way { display: grid; gap: 8px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; min-width: 0; transition: border-color .15s, transform .12s ease-out; }
.way:hover { border-color: var(--ink-2); transform: translateY(-2px); }
.way .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--peche); color: var(--accent-text); }
.way .ic svg { width: 20px; height: 20px; }
.way small { color: var(--ink-2); font-size: 13.5px; }
.way b { font-family: var(--f-data); font-weight: 600; font-size: 16px; overflow-wrap: anywhere; user-select: all; }
@media (max-width: 960px) { .contact .wrap { grid-template-columns: 1fr; padding-block: 64px; } }
@media (max-width: 640px) { .ways { grid-template-columns: 1fr; } }
footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; align-items: center; padding-block: 32px; font-size: 14px; color: var(--ink-2); }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-left: auto; }
footer a { text-decoration: none; }
footer a:hover { color: var(--ink); }

/* Apparition douce au défilement (l'état de repos reste visible) */
.reveal { transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.below { transform: translateY(28px); }


/* Classes à distance : reconstitution illustrée de l'écran d'appel réel (web et mobile) */
.live { background: var(--peche); border-top: 1px solid var(--line); }
.call-scene { position: relative; padding-right: 200px; }
.callwin { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 22px; display: grid; gap: 16px; }
.callwin .crumbs { font-size: 14px; color: var(--ink-2); display: flex; gap: 8px; align-items: center; }
.callwin .ctitle { font-size: clamp(20px, 2.2vw, 28px); font-weight: 700; letter-spacing: -0.02em; }
.call { display: grid; grid-template-columns: minmax(0, 1fr) 21%; gap: 8px; background: #050506; border-radius: 18px; padding: 10px; aspect-ratio: 16 / 9.2; }
.call .main { position: relative; border-radius: 10px; overflow: hidden; min-width: 0; background: #1E3A2C; }
.call .main svg.board { position: absolute; inset: 0; width: 100%; height: 100%; }
.pill { position: absolute; left: 50%; top: 12px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px;
  background: rgba(0,0,0,.62); color: #fff; border-radius: 8px; padding: 6px 12px; font: 500 12.5px/1.2 var(--f-data); white-space: nowrap; }
.pill .rec { width: 8px; height: 8px; border-radius: 50%; background: #FF4D4D; box-shadow: 0 0 0 3px rgba(255,77,77,.25); }
.label { position: absolute; left: 50%; bottom: 64px; transform: translateX(-50%); background: rgba(0,0,0,.66); color: #fff; padding: 4px 10px; border-radius: 6px; font: 500 12.5px var(--f-data); white-space: nowrap; }
.toolbar { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; border-radius: 10px; background: rgba(20,20,22,.92); }
.toolbar span { width: 38px; height: 34px; display: grid; place-items: center; border-radius: 7px; color: #fff; }
.toolbar span.on { background: #3D7CF5; }
.toolbar svg { width: 20px; height: 20px; }
.toast { position: absolute; left: 12px; bottom: 12px; display: flex; gap: 10px; align-items: center; background: #fff; color: #1B1420; border-radius: 8px; padding: 9px 12px;
  border-left: 4px solid #3D7CF5; font: 500 13px/1.3 var(--f-data); box-shadow: 0 6px 18px rgba(0,0,0,.3); }
.toast b { font-weight: 600; }
.strip { display: grid; grid-template-rows: repeat(4, minmax(0, 1fr)); gap: 8px; min-width: 0; }
.tile { position: relative; border-radius: 8px; overflow: hidden; background: #2A2A30; }
.tile svg.pp { position: absolute; inset: 0; width: 100%; height: 100%; }
.tile .nm { position: absolute; left: 6px; bottom: 6px; display: flex; gap: 5px; align-items: center; background: rgba(0,0,0,.6); color: #fff; font: 600 11.5px var(--f-data); padding: 3px 7px; border-radius: 5px; white-space: nowrap; max-width: calc(100% - 12px); overflow: hidden; text-overflow: ellipsis; }
.tile .nm svg { width: 12px; height: 12px; flex: none; }
.tile.speaking { box-shadow: inset 0 0 0 3px #3D7CF5; }
.tile .hand { position: absolute; right: 6px; top: 6px; width: 24px; height: 24px; border-radius: 6px; background: #F5B400; display: grid; place-items: center; }
.tile .hand svg { width: 15px; height: 15px; }
.tile.more { display: grid; place-items: center; color: #fff; font: 600 15px var(--f-data); background: #1C1C21; }
.callfoot { display: flex; align-items: center; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
.callfoot .who-n { margin-right: auto; font-size: 14px; color: var(--ink-2); font-family: var(--f-data); }
.fake-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.fake-btn.red { background: var(--accent); color: var(--on-accent); }
.fake-btn.out { border: 1.5px solid var(--line); color: var(--ink); }
.callphone { position: absolute; right: 0; bottom: -40px; width: 224px; }
.mcall { aspect-ratio: 640 / 1391; border-radius: 38px; overflow: hidden; background: #FFF8F5; color: #1B1420; display: grid; grid-template-rows: auto auto 1fr auto auto; }
.callphone .mcall { border-radius: 30px; }
.mcall .sb { display: flex; justify-content: space-between; padding: 12px 20px 0; font: 600 11px var(--f-data); }
.mcall .mh { padding: 14px 16px 10px; border-bottom: 1px solid #F3E3DC; }
.mcall .mh b { display: block; font-size: 16px; font-weight: 700; letter-spacing: -0.02em; }
.mcall .mh small { color: #5F5566; font-size: 11.5px; }
.mcall .mv { position: relative; background: #050506; overflow: hidden; }
.mcall .mv svg.pp { position: absolute; inset: 0; width: 100%; height: 100%; }
.mcall .pip { position: absolute; right: 8px; top: 8px; width: 34%; aspect-ratio: 3/4; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1.5px rgba(255,255,255,.5); }
.mcall .pip svg { width: 100%; height: 100%; display: block; }
.mcall .mnm { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); background: rgba(0,0,0,.6); color: #fff; font: 500 11px var(--f-data); padding: 3px 9px; border-radius: 5px; white-space: nowrap; }
.mcall .mt { display: flex; justify-content: space-around; background: #141416; color: #fff; padding: 12px 6px; }
.mcall .mt svg { width: 19px; height: 19px; }
.mcall .mr { padding: 10px 12px 18px; }
.mcall .mr span { display: block; text-align: center; background: #D92F2A; color: #fff; border-radius: 999px; padding: 10px 0; font-weight: 600; font-size: 13px; }
.live .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 80px; gap: 16px 32px; }
.live .facts li { font-size: 15.5px; }
.live .facts b { display: block; font-weight: 600; }
.live .facts span { color: var(--ink-2); }


/* La suite : huit modules, une seule plateforme */
.suite-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.mod { padding: 28px 24px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 10px; align-content: start; min-width: 0; background: var(--bg); transition: background-color .2s; }
.mod:hover { background: var(--surface); }
.mod .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--peche); color: var(--accent-text); }
.mod .ic svg { width: 22px; height: 22px; }
.mod h3 { font-size: 18px; font-weight: 600; letter-spacing: -0.01em; }
.mod p { color: var(--ink-2); font-size: 15px; line-height: 1.5; }
@media (max-width: 960px) { .suite-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .mod { padding: 20px 16px; } .mod h3 { font-size: 16px; } .mod p { font-size: 14px; } }

@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; padding-block: 32px 56px; gap: 24px; }
  .stage { max-width: 460px; }
  .path { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .step:nth-child(even) { margin-top: 0; }
  .row, .schools .row { grid-template-columns: 1fr; gap: 32px; }
  .row.flip .media { order: 0; }
  .row + .row { margin-top: 88px; }
  .spaces { grid-template-columns: 1fr; }
  .spaces > div, .spaces > div + div { padding: 22px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  section.block { padding-block: 72px; }
  .top nav { display: none; }
  .call-scene { padding-right: 0; }
  .callphone { position: relative; right: auto; bottom: auto; width: min(260px, 70%); margin: 32px auto 0; }
  .live .facts { grid-template-columns: 1fr; margin-top: 40px; }
  .top .btn { margin-left: auto; }
}
@media (max-width: 520px) {
  .path { grid-template-columns: 1fr 1fr; gap: 16px; }
  .step .phone { border-radius: 26px; padding: 5px; }
  .step .phone img { border-radius: 22px; }
  .chip { padding: 9px 12px; font-size: 12.5px; }
  .chip small { font-size: 11.5px; }
  .chip .ring { width: 26px; height: 26px; }
  .store { min-height: 52px; }
  .media .float { display: none; }
  .callwin { padding: 12px; border-radius: 18px; }
  .call { grid-template-columns: 1fr; grid-template-rows: auto auto; aspect-ratio: auto; padding: 6px; }
  .call .main { aspect-ratio: 16 / 10.5; }
  .strip { grid-template-rows: none; grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tile { aspect-ratio: 4 / 3; }
  .toast { display: none; }
  .label { bottom: 54px; }
  .toolbar span { width: 30px; height: 28px; }
  .toolbar svg { width: 16px; height: 16px; }
  .tile .nm { font-size: 9.5px; padding: 2px 5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .graph .curve, .graph .vertex, .chip .live-dot span { animation: none; }
  .reveal, .reveal.below { transition: none; transform: none; }
}

/* Anciens styles en ligne de la maquette, devenus des classes (même rendu). */
.sprite { position: absolute; }
.subjects i.sj-1 { --c: #2563EB; } .subjects i.sj-2 { --c: #EF4D48; } .subjects i.sj-3 { --c: #0891B2; } .subjects i.sj-4 { --c: #DB2777; }
.subjects i.sj-5 { --c: #0E9F6E; } .subjects i.sj-6 { --c: #D97706; } .subjects i.sj-7 { --c: #7C3AED; } .subjects i.sj-8 { --c: #65A30D; }
.toast > svg { color: #F5B400; }
.tile .hand svg { color: #1B1420; }
#parents { padding-top: 0; }
#ecoles { background: var(--surface); border-top: 1px solid var(--line); }
footer .logo { font-size: 18px; }
footer .logo svg { width: 26px; height: 26px; }

/* Lien d'évitement : invisible tant qu'il n'a pas le focus clavier. */
.evitement { position: absolute; left: 12px; top: -64px; z-index: 20; padding: 10px 16px; border-radius: 999px;
  background: var(--ink); color: var(--bg); font-weight: 600; text-decoration: none; }
.evitement:focus { top: 12px; }

/* Pages légales et 404 : mêmes jetons, une colonne de lecture. */
.legal { padding-block: 64px 104px; }
.legal .wrap { max-width: calc(46em + 40px); }
.legal .kicker { display: block; margin-bottom: 16px; }
.legal h1 { font-size: clamp(32px, 4vw, 48px); line-height: 1.05; letter-spacing: -0.035em; }
.legal .maj { margin-top: 16px; font-family: var(--f-data); font-size: 14px; color: var(--ink-2); }
.legal .intro { margin-top: 28px; font-size: 19px; font-weight: 300; color: var(--ink-2); }
.legal h2 { margin: 48px 0 14px; font-size: 22px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; }
.legal p + p, .legal p + ul, .legal ul + p, .legal p + ol, .legal ol + p { margin-top: 14px; }
.legal ul, .legal ol { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.legal li::marker { color: var(--accent-text); }
.legal a { color: var(--accent-text); font-weight: 500; text-underline-offset: 3px; }
.legal b { font-weight: 600; }
.legal .encart { margin-top: 48px; padding: 22px 24px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); }
.legal .encart h2 { margin-top: 0; }
.legal .ctas { margin-top: 32px; }
/* Passage à compléter par Daniel : laissé visible exprès. */
.a-completer { background: color-mix(in srgb, var(--soleil) 30%, transparent); color: inherit; padding: 0 .2em; border-radius: 4px; }
