/* ═════════════════════════════════════════════════════════════════
   Lony — accueil public. Jetons repris de docs/brand/tokens.md.
   Site statique : aucune étape de build, servi tel quel.
   ═════════════════════════════════════════════════════════════════ */

/* ── Primitives (tokens.md) ─────────────────────────────────────── */
:root {
  --encre-900: #141838;
  --encre-800: #1f2557;
  --encre-600: #3a4386;
  --encre-300: #93a0e8;
  --encre-100: #e3e6f7;
  --iris-500: #6c5ce5;
  --iris-700: #5847c9;
  --iris-100: #edeafd;
  --lagon-700: #0f7a82;
  --lagon-800: #0b6169; /* Texte sur fond lagon 100 : le 700 n'y tient que 4,45:1, sous le seuil AA (tokens.md) */
  --lagon-400: #4fc2c9;
  --lagon-100: #e2f3f4;
  --craie: #f6f5f2;
  --craie-2: #edebe5;
  --graphite-900: #1b1f2a;
  --graphite-600: #5a6072;
  --graphite-200: #d9dbe2;
  --blanc: #ffffff;
  --succes: #0f7a4a;
  --succes-fond: #e4f3ea;
  --alerte: #8a5300;
  --alerte-fond: #fbeeda;
  --danger: #b3251c;
  --danger-fond: #fbe9e7;

  --r-200: 8px;
  --r-300: 12px;
  --r-400: 16px;
  --r-600: 24px;
  --r-full: 999px;
  --ombre-2: 0 4px 12px rgba(31, 37, 87, 0.10);
  --ombre-3: 0 12px 32px rgba(31, 37, 87, 0.14);

  --police-titre: "Bricolage Grotesque", system-ui, sans-serif;
  --police-corps: "IBM Plex Sans", system-ui, sans-serif;
  --police-mono: "IBM Plex Mono", monospace;
}

/* ── Base ───────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--police-corps);
  background: var(--craie);
  color: var(--graphite-900);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--police-titre);
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: -0.01em;
}

h2 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.6rem); max-width: 20ch; }
h3 { font-size: 1.1rem; font-weight: 600; }

img, svg { display: block; }

a { color: inherit; }

.conteneur {
  max-width: 1100px;
  margin-inline: auto;
  padding-inline: 20px;
}

/* ── Sur-titre et chapeau ───────────────────────────────────────── */
.sur-titre {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--iris-700);
  margin-bottom: 12px;
}

.section-chapeau {
  color: var(--graphite-600);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-top: 16px;
}

/* ── Boutons ────────────────────────────────────────────────────── */
.bouton {
  display: inline-block;
  padding: 13px 26px;
  border-radius: var(--r-full);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background-color 0.2s ease, transform 0.15s ease;
}
.bouton:active { transform: translateY(1px); }

.bouton-principal {
  background: var(--encre-800);
  color: var(--blanc);
}
.bouton-principal:hover { background: var(--encre-900); }

.bouton-secondaire {
  background: transparent;
  color: inherit;
  border: 1.5px solid currentColor;
  opacity: 0.85;
}
.bouton-secondaire:hover { opacity: 1; }

.bouton-grand { padding: 16px 36px; font-size: 1.05rem; }

/* ── Pastilles de statut ─────────────────────────────────────────── */
.pastille {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.pastille-presente { background: var(--succes-fond); color: var(--succes); }
.pastille-absent { background: var(--danger-fond); color: var(--danger); }

/* ── En-tête ────────────────────────────────────────────────────── */
.entete {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 24px;
  background: rgba(246, 245, 242, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(31, 37, 87, 0.08);
}

.marque {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.2rem;
  font-family: var(--police-titre);
}
.marque-logo, .marque svg { width: 22px; height: 22px; fill: var(--encre-800); }

.entete-nav {
  margin-left: auto;
  display: flex;
  gap: 22px;
  font-size: 0.9rem;
  font-weight: 500;
}
.entete-nav a { text-decoration: none; color: var(--graphite-600); }
.entete-nav a:hover { color: var(--graphite-900); }

.entete-cta { padding: 9px 18px; font-size: 0.85rem; }

@media (max-width: 760px) {
  .entete-nav { display: none; }
}

/* ── Sections ───────────────────────────────────────────────────── */
.section { padding: 88px 0; }
.section > .conteneur > h2 { margin-top: 4px; }

/* ── 1 · Hero ───────────────────────────────────────────────────── */
.hero {
  background: var(--encre-800);
  color: var(--blanc);
  padding: 72px 0 96px;
  overflow: hidden;
}

.hero-grille {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.3rem, 1.6rem + 3.4vw, 3.7rem);
  font-weight: 700;
  margin: 14px 0 20px;
}
.hero h1 .texte-encre { color: var(--encre-300); }

.hero .sur-titre { color: var(--encre-300); }

.hero-sous-titre {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1.1rem;
  max-width: 46ch;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }

.hero .bouton-principal { background: var(--blanc); color: var(--encre-800); }
.hero .bouton-principal:hover { background: var(--encre-100); }

.hero-note {
  margin-top: 22px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.55);
}

/* Écosystème : Lony au centre, la communauté autour. */
.hero-visuel { position: relative; }

.ecosysteme {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin-inline: auto;
}

.ecosysteme-liens {
  position: absolute;
  inset: 0;
}
.ecosysteme-liens svg { width: 100%; height: 100%; }
.fleche line {
  stroke: var(--encre-300);
  stroke-width: 1.5;
  stroke-dasharray: 4 7;
  stroke-linecap: round;
  opacity: 0.55;
  animation: flux 6s linear infinite;
}
.fleche-2 line, .fleche-5 line, .fleche-6 line { animation-delay: -2s; }
.fleche-3 line, .fleche-4 line { animation-delay: -4s; }
@keyframes flux { to { stroke-dashoffset: -44; } }

.ecosysteme-noeud {
  position: absolute;
  left: calc(50% - 39px);
  top: calc(50% - 39px);
  width: 78px;
  height: 78px;
  border-radius: var(--r-full);
  background: var(--blanc);
  display: grid;
  place-items: center;
  box-shadow: var(--ombre-3);
}
.ecosysteme-noeud svg { width: 40px; height: 40px; fill: var(--encre-800); }

/* --x et --y en pourcentage du carré : les pastilles suivent les bouts des
   flèches (viewBox 400) quand le carré rétrécit sur téléphone. */
.ecosysteme-acteur {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  background: var(--blanc);
  color: var(--encre-800);
  font-weight: 600;
  font-size: 0.82rem;
  padding: 8px 15px;
  border-radius: var(--r-full);
  box-shadow: var(--ombre-2);
  white-space: nowrap;
}

/* Cartes flottantes : situations réelles autour de l'écosystème. */
.carte-flottante {
  position: absolute;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--blanc);
  color: var(--graphite-900);
  border-radius: var(--r-300);
  padding: 12px 15px;
  box-shadow: var(--ombre-3);
  font-size: 0.82rem;
  line-height: 1.4;
  max-width: 240px;
}
.carte-flottante strong { display: block; font-size: 0.85rem; }
.carte-flottante-detail { color: var(--graphite-600); font-size: 0.78rem; }

.carte-presence { top: 6%; left: -6%; animation: flotte 7s ease-in-out infinite; }
.carte-notification { bottom: -16%; right: -4%; animation: flotte 7s ease-in-out infinite -3.5s; }
@keyframes flotte { 50% { transform: translateY(-9px); } }

.point {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-top: 5px;
}
.point-succes { background: var(--succes); }
.point-alerte { background: #b8730b; }

/* ── 2 · Problème ───────────────────────────────────────────────── */
.section-probleme { background: var(--blanc); }

.probleme-echantier {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}

.probleme-caisse {
  background: var(--craie);
  border-radius: var(--r-400);
  padding: 26px 22px;
}
.probleme-caisse h3 { margin: 14px 0 8px; }
.probleme-caisse p { font-size: 0.9rem; color: var(--graphite-600); }
.probleme-icone { font-size: 1.5rem; }

.probleme-pivot {
  margin-top: 52px;
  text-align: center;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: clamp(1.3rem, 1.1rem + 1vw, 1.8rem);
  color: var(--encre-800);
}

/* ── 3 · Idée centrale — scénario présence → parent ──────────────── */
.section-idee { background: var(--craie); }

.scenario {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr;
  align-items: stretch;
  gap: 8px;
  margin-top: 52px;
}

.scenario-etape h3 { margin: 18px 0 6px; }
.scenario-etape p { font-size: 0.92rem; color: var(--graphite-600); }

.scenario-fleche {
  display: grid;
  place-items: center;
}
.scenario-fleche-ligne {
  width: 100%;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--encre-300) 0 6px, transparent 6px 13px);
  position: relative;
}
.scenario-fleche-ligne::after {
  content: "";
  position: absolute;
  right: 0;
  top: -4px;
  border: 5px solid transparent;
  border-left: 7px solid var(--encre-300);
}

.scenario-visuel {
  border-radius: var(--r-400);
  padding: 20px;
  min-height: 190px;
  display: grid;
  place-items: center;
}
.scenario-visuel-enseignant { background: var(--blanc); box-shadow: var(--ombre-2); }
.scenario-visuel-systeme { background: var(--encre-800); }
.scenario-visuel-parent { background: var(--blanc); box-shadow: var(--ombre-2); }

/* Maquettes d'interface : des situations crédibles, en pur CSS. */
.maquette-appel { width: 100%; max-width: 230px; }
.maquette-titre {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--graphite-600);
  margin-bottom: 10px;
}
.maquette-ligne {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 0.82rem;
  padding: 6px 0;
  border-bottom: 1px solid rgba(31, 37, 87, 0.08);
}
.maquette-ligne:last-child { border-bottom: none; }
.maquette-ligne-attente {
  border-bottom: none;
  margin-top: 8px;
}
.clignote {
  display: block;
  width: 100%;
  height: 10px;
  border-radius: var(--r-full);
  background: var(--craie-2);
  animation: clignote 1.6s ease-in-out infinite;
}
@keyframes clignote { 50% { opacity: 0.35; } }

.maquette-noeud { text-align: center; color: var(--blanc); }
.maquette-noeud svg { width: 44px; height: 44px; fill: var(--encre-300); margin: 0 auto 14px; }
.maquette-noeud-texte { font-size: 0.88rem; color: rgba(255, 255, 255, 0.85); max-width: 26ch; margin-inline: auto; }

.maquette-whatsapp {
  width: 100%;
  max-width: 250px;
  background: var(--lagon-100);
  border-radius: var(--r-300);
  overflow: hidden;
}
.maquette-whatsapp-entete {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--lagon-800);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(15, 122, 130, 0.15);
}
.maquette-whatsapp-message {
  font-size: 0.82rem;
  padding: 12px;
  background: var(--blanc);
  margin: 10px;
  border-radius: 10px;
}
.maquette-whatsapp-horaire {
  font-family: var(--police-mono);
  font-size: 0.68rem;
  color: var(--graphite-600);
  text-align: right;
  padding: 0 12px 10px;
}

/* ── 4 · Profils ─────────────────────────────────────────────────── */
.section-profils { background: var(--blanc); }

.profils-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 52px;
}

.profil {
  border-top: 3px solid var(--encre-300);
  padding-top: 20px;
}
.profil:nth-child(2) { border-top-color: var(--lagon-400); }
.profil:nth-child(3) { border-top-color: var(--iris-500); }
.profil:nth-child(4) { border-top-color: var(--lagon-700); }

.profil-role {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--graphite-600);
}
.profil-verbe {
  font-family: var(--police-titre);
  font-size: 1.5rem;
  margin: 6px 0 10px;
}
.profil p:last-child { font-size: 0.9rem; color: var(--graphite-600); }

/* ── 5 · Une donnée, plusieurs usages ───────────────────────────── */
.section-donnee { background: var(--craie); }

.flux {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

.flux-carte {
  position: sticky;
  top: 96px;
  background: var(--blanc);
  border-radius: var(--r-400);
  box-shadow: var(--ombre-2);
  padding: 26px;
  text-align: center;
}
.flux-carte svg { width: 42px; height: 42px; fill: var(--encre-800); margin: 0 auto 12px; }
.flux-carte-titre { font-family: var(--police-titre); font-weight: 600; font-size: 1.05rem; }
.flux-carte-detail { font-size: 0.82rem; color: var(--graphite-600); margin-top: 4px; }

.flux-embranchement { height: 34px; }
.flux-ligne {
  display: block;
  height: 100%;
  background:
    linear-gradient(90deg, var(--encre-300) 0 0) 0 0 / 2px 50% no-repeat,
    linear-gradient(90deg, var(--encre-300) 0 0) 0 100% / 2px 50% no-repeat,
    linear-gradient(90deg, var(--encre-300) 0 0) 0 50% / 100% 2px no-repeat;
}

.flux-usages {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
}
.flux-usage {
  background: var(--blanc);
  border-radius: var(--r-300);
  padding: 18px;
}
.flux-usage h3 { font-size: 0.98rem; margin-bottom: 6px; }
.flux-usage p { font-size: 0.85rem; color: var(--graphite-600); }

.flux-conclusion {
  margin-top: 44px;
  text-align: center;
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 1.25rem;
  color: var(--encre-800);
}

/* ── Sections double (texte + visuel) ────────────────────────────── */
.section-double {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.section-double.inverse .section-double-texte { order: 2; }
.section-double.inverse .section-double-visuel { order: 1; }

.liste-benefices {
  list-style: none;
  margin-top: 28px;
  display: grid;
  gap: 12px;
}
.liste-benefices li {
  padding-left: 30px;
  position: relative;
  font-size: 0.95rem;
  color: var(--graphite-600);
}
.liste-benefices li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--encre-100);
  box-shadow: inset 0 0 0 3.5px var(--encre-300);
}

/* ── 6 · Expérience parent ──────────────────────────────────────── */
.section-parent { background: var(--blanc); }

.telephone {
  width: min(300px, 82%);
  margin-inline: auto;
  border: 10px solid var(--graphite-900);
  border-radius: 36px;
  overflow: hidden;
  box-shadow: var(--ombre-3);
}
.telephone-ecran { background: var(--craie); padding: 14px; display: grid; gap: 12px; }

.telephone-notif {
  background: rgba(255, 255, 255, 0.95);
  border-left: 3px solid #25d366; /* vert WhatsApp, purement décoratif */
  border-radius: var(--r-200);
  padding: 10px 12px;
}
.telephone-notif-source {
  font-size: 0.68rem;
  color: var(--graphite-600);
  margin-bottom: 2px;
}
.telephone-notif-texte { font-size: 0.82rem; }

.telephone-apercu { background: var(--blanc); border-radius: var(--r-300); padding: 14px; }
.telephone-apercu-titre {
  font-family: var(--police-titre);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.telephone-bloc { padding: 9px 0; border-top: 1px solid rgba(31, 37, 87, 0.08); }
.telephone-bloc-etiquette { font-size: 0.72rem; color: var(--graphite-600); }
.telephone-bloc-valeur { font-size: 0.88rem; margin-top: 2px; }

/* ── 7 · Expérience enseignant ──────────────────────────────────── */
.section-enseignant { background: var(--craie); }

.grille-outils {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.outil {
  background: var(--blanc);
  border-radius: var(--r-300);
  padding: 16px;
}
.outil-large { grid-column: 1 / -1; }
.outil-etiquette {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--graphite-600);
  margin-bottom: 10px;
}
.outil-texte { font-size: 0.85rem; color: var(--graphite-600); }
.outil-texte strong { color: var(--graphite-900); }

/* ── 8 · Administration & direction ─────────────────────────────── */
.section-administration { background: var(--blanc); }

.administration-grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 48px;
}
.administration-bloc {
  background: var(--craie);
  border-radius: var(--r-400);
  padding: 30px;
}
.administration-bloc h3 { font-size: 1.2rem; margin-bottom: 10px; }
.administration-bloc p { font-size: 0.95rem; color: var(--graphite-600); }

.pilotage {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
.tuile {
  border: 1px solid rgba(31, 37, 87, 0.12);
  border-radius: var(--r-400);
  padding: 22px;
}
.tuile-etiquette { font-size: 0.78rem; color: var(--graphite-600); }
.tuile-valeur {
  font-family: var(--police-mono);
  font-size: 1.9rem;
  font-weight: 500;
  color: var(--encre-800);
  margin: 6px 0 4px;
}
.tuile-detail { font-size: 0.8rem; color: var(--graphite-600); }

/* ── 9 · Écosystème des services ────────────────────────────────── */
.section-services { background: var(--encre-800); color: var(--blanc); }
.section-services .sur-titre { color: var(--encre-300); }
.section-services .section-chapeau { color: rgba(255, 255, 255, 0.75); }
.section-services h2 { color: var(--blanc); }

.hub {
  position: relative;
  width: 100%;
  max-width: 640px;
  aspect-ratio: 600 / 560;
  margin: 56px auto 0;
}

.hub-liens { position: absolute; inset: 0; }
.hub-liens svg { width: 100%; height: 100%; }

.hub-centre {
  position: absolute;
  left: calc(50% - 52px);
  top: calc(50% - 52px);
  width: 104px;
  height: 104px;
  border-radius: var(--r-full);
  background: var(--blanc);
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: var(--ombre-3);
}
.hub-centre svg { width: 34px; height: 34px; fill: var(--encre-800); margin: 0 auto 2px; }
.hub-centre p { font-family: var(--police-titre); font-weight: 700; font-size: 0.9rem; color: var(--encre-800); }

.hub-service {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--blanc);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 8px 14px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.hub-service-secondaire { font-size: 0.72rem; opacity: 0.85; }

/* ── 10 · Simplicité ─────────────────────────────────────────────── */
.section-simplicite { background: var(--craie); }

.simplicite-grille {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.simplicite-grille h3 { margin-bottom: 8px; }
.simplicite-grille p { font-size: 0.88rem; color: var(--graphite-600); }

/* ── 11 · Confiance ─────────────────────────────────────────────── */
.section-confiance { background: var(--blanc); }

.confiance-grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 48px;
}
.confiance-grille > div {
  background: var(--craie);
  border-radius: var(--r-400);
  padding: 26px;
}
.confiance-grille h3 { margin-bottom: 8px; }
.confiance-grille p { font-size: 0.9rem; color: var(--graphite-600); }

/* ── 12 · CTA final ─────────────────────────────────────────────── */
.section-finale {
  background: var(--encre-800);
  color: var(--blanc);
  text-align: center;
  padding: 110px 0;
}
.finale-logo { width: 46px; height: 46px; fill: var(--encre-300); margin: 0 auto 20px; }
.section-finale h2 { color: var(--blanc); margin-inline: auto; max-width: 26ch; }
.section-finale .section-chapeau { color: rgba(255, 255, 255, 0.75); margin-inline: auto; }
.section-finale .bouton-principal {
  background: var(--blanc);
  color: var(--encre-800);
  margin-top: 36px;
}
.section-finale .bouton-principal:hover { background: var(--encre-100); }

/* ── Pied ───────────────────────────────────────────────────────── */
.pied {
  background: var(--encre-900);
  color: rgba(255, 255, 255, 0.65);
  padding: 44px 0 32px;
  font-size: 0.85rem;
}
.pied-grille {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}
.pied-marque {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--blanc);
  font-family: var(--police-titre);
  font-weight: 700;
}
.pied-marque svg { width: 20px; height: 20px; fill: var(--encre-300); }
.pied-nav { margin-left: auto; display: flex; gap: 20px; }
.pied-nav a { text-decoration: none; color: rgba(255, 255, 255, 0.65); }
.pied-nav a:hover { color: var(--blanc); }
.pied-mention { margin-top: 26px; }

/* ── Révélation au défilement ───────────────────────────────────── */
.revelation {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.revelation.visible { opacity: 1; transform: none; }

/* ── Responsive : les grilles multi-colonnes tombent en colonne ──── */
@media (max-width: 920px) {
  .probleme-echantier,
  .profils-grille,
  .simplicite-grille,
  .confiance-grille { grid-template-columns: repeat(2, 1fr); }

  .hero-grille,
  .section-double { grid-template-columns: 1fr; }

  .section-double.inverse .section-double-texte { order: 1; }
  .section-double.inverse .section-double-visuel { order: 2; }

  .scenario { grid-template-columns: 1fr; }
  .scenario-fleche { height: 44px; padding: 18px 30%; }
  .scenario-fleche-ligne {
    width: 2px;
    height: 100%;
    background: repeating-linear-gradient(180deg, var(--encre-300) 0 6px, transparent 6px 13px);
  }
  .scenario-fleche-ligne::after {
    right: -4px;
    top: auto;
    bottom: 0;
    border: 5px solid transparent;
    border-top: 7px solid var(--encre-300);
  }

  .flux { grid-template-columns: 1fr; }
  .flux-carte { position: static; }
  .flux-embranchement { display: none; }

  .carte-presence { left: 0; }
  .carte-notification { right: 0; }

  /* Le hub circulaire devient une grille lisible sur petit écran. */
  .hub {
    aspect-ratio: auto;
    max-width: none;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .hub-liens { display: none; }
  .hub-centre {
    grid-column: 1 / -1;
    position: static;
    transform: none;
    width: auto;
    height: auto;
    padding: 16px;
    border-radius: var(--r-300);
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .hub-centre svg { margin: 0; }
  .hub-service { position: static; transform: none; text-align: center; }
}

@media (max-width: 560px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 72px; }
  .probleme-echantier,
  .profils-grille,
  .pilotage,
  .administration-grille,
  .simplicite-grille,
  .confiance-grille { grid-template-columns: 1fr; }
  .grille-outils { grid-template-columns: 1fr; }
  .hub { grid-template-columns: 1fr; }
  .entete { gap: 14px; padding-inline: 16px; }
  .entete-cta { margin-left: auto; }
  /* Le carré n'a plus la place des cartes : elles passent dessous plutôt
     que de couvrir les pastilles. */
  .carte-flottante { position: static; max-width: none; margin-top: 12px; animation: none; }
  /* Pastilles plus étroites : « Enseignants » tient encore à 360 px. */
  .ecosysteme-acteur { font-size: 0.74rem; padding: 6px 11px; }
}

/* ── Mouvement réduit : tout se tient, rien ne bouge ────────────── */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fleche line { animation: none; }
  .carte-presence, .carte-notification { animation: none; }
  .clignote { animation: none; }
  .revelation { transition: none; opacity: 1; transform: none; }
}