/* ==========================================================================
   Educato — site vitrine
   Charte reprise de l'application (EDUCATO_FRONT/src/css/quasar.variables.scss) :
   charte marine (reprise de GUESTA) : nuit #0a2540, marine #212251, bleu #3359ab, bleu du logo #35aee3,
   bleu clair #8fb0f7, fond #f3f6f9. Les noms --emeraude / --or sont gardés (rôles : action, accent) :
   --emeraude = bleu d'action, --or = bleu du logo (fonds sombres ou sous texte marine, jamais en texte sur clair).
   Les couleurs se changent ici, dans :root, et nulle part ailleurs.
   ========================================================================== */
:root {
  --nuit: #0a2540;
  --nuit-2: #10294b;
  --nuit-3: #17375f;
  --encre: #0a2540;
  --emeraude: #3359ab;
  --emeraude-vif: #35aee3;
  --emeraude-clair: #35aee3;
  --or: #35aee3;
  --or-fonce: #212251;
  --or-clair: #8fb0f7;
  --papier: #f3f6f9;
  --papier-2: #e9edf2;
  --blanc: #ffffff;
  --texte: #1d2a3e;
  --texte-doux: #56627a;
  --trait: rgba(10, 37, 64, .1);
  --rouge: #c8102e;
  --vert-bf: #009a44;
  --jaune-bf: #fcd116;
  --desactive: #8c9db6;  /* bouton inactif (connexion pas encore ouverte) */
  --bientot: #f28c28;    /* pastille « Bientôt disponible » */

  --rayon: 22px;
  --rayon-s: 14px;
  --ombre: 0 24px 60px -24px rgba(10, 37, 64, .35);
  --ombre-forte: 0 40px 90px -30px rgba(10, 37, 64, .55);
  --largeur: 1200px;
  --police-titre: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --police: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --entete: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--entete) + 12px); }
body {
  margin: 0;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.65;
  color: var(--texte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
html, body { overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: var(--emeraude); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--police-titre); color: var(--encre); line-height: 1.12; margin: 0 0 .5em; font-weight: 800; letter-spacing: -.025em; }
h1 { font-size: clamp(2.4rem, 5.2vw, 4.3rem); font-weight: 800; letter-spacing: -.035em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
em.or, .or-texte { font-style: normal; color: var(--emeraude); }
.heros :is(em.or, .or-texte), .section--nuit :is(em.or, .or-texte), .section--emeraude :is(em.or, .or-texte), .appel :is(em.or, .or-texte), .pied :is(em.or, .or-texte) { color: var(--or); }
.conteneur { width: min(var(--largeur), 100% - 32px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Icônes (sprite SVG inline, voir assets/js/icones.js) ---------- */
.ico { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .6em; justify-content: center;
  padding: .95em 1.5em; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 0; cursor: pointer; transition: transform .25s, box-shadow .25s, background .25s; white-space: nowrap;
  font-family: var(--police);
}
.btn:hover { transform: translateY(-2px); }
.btn--or { background: linear-gradient(135deg, var(--or-clair), var(--or)); color: var(--nuit); box-shadow: 0 14px 30px -12px rgba(53, 174, 227, .7); }
.btn--emeraude { background: var(--emeraude); color: #fff; box-shadow: 0 14px 30px -12px rgba(51, 89, 171, .7); }
.btn--contour { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .45); }
.btn--contour:hover { background: rgba(255, 255, 255, .08); }
.btn--nuit { background: var(--nuit); color: #fff; }
.btn--lien { background: none; color: var(--emeraude); padding: .4em 0; }
.btn--petit { padding: .6em 1.1em; font-size: .88rem; }
/* Connexion pas encore ouverte (config.js : connexionOuverte) : bouton grisé, inactif, pastille orange sur son coin. */
[data-connexion] .bientot { display: none; }
html.connexion-fermee [data-connexion] {
  position: relative; overflow: visible; pointer-events: none; cursor: not-allowed;
  background: var(--desactive); color: rgba(255, 255, 255, .85); box-shadow: none; transform: none;
}
html.connexion-fermee [data-connexion] .bientot {
  display: inline; position: absolute; top: -.85em; right: -.5em;
  font-size: .68rem; font-weight: 800; line-height: 1.5; white-space: nowrap; letter-spacing: 0;
  background: var(--bientot); color: #fff; padding: .2em .7em; border-radius: 99px;
  box-shadow: 0 4px 10px -4px rgba(0, 0, 0, .35);
}

/* ---------- En-tête ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--entete);
  transition: background .35s, box-shadow .35s, height .35s;
}
.nav.defile, .nav--plein { background: rgba(10, 37, 64, .92); backdrop-filter: blur(14px); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .6); }
.nav__barre { height: 100%; display: flex; align-items: center; gap: 22px; }
/* Le bandeau fait 76 px sur tous les écrans : logo bien lisible sur téléphone, plus présent sur PC. */
.nav__logo { flex: none; }
.nav__logo img { height: 62px; width: auto; }
/* PC et tablette à l'horizontale */
@media (min-width: 1024px) { .nav__logo img { height: 60px; } }
/* Petits téléphones : logo, langue et menu tiennent sur la ligne sans déborder. */
@media (max-width: 380px) { .nav__barre { gap: 10px; } }
@media (max-width: 360px) { .nav__logo img { height: 54px; } }
@media (max-width: 340px) { .nav__logo img { height: 46px; } }
.nav__liens { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav__liens a {
  color: rgba(255, 255, 255, .82); font-weight: 600; font-size: .92rem; padding: .5em .85em; border-radius: 99px; transition: .2s;
}
.nav__liens a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav__liens a.actif { color: var(--nuit); background: var(--or-clair); }
.nav__liens .nav__connexion { display: none; }
.langue { display: flex; border-radius: 99px; background: rgba(255, 255, 255, .08); padding: 3px; }
.langue a { color: rgba(255, 255, 255, .7); font-size: .78rem; font-weight: 800; padding: .3em .7em; border-radius: 99px; }
.langue a[aria-current] { background: #fff; color: var(--nuit); }
.nav__burger { display: none; background: rgba(255,255,255,.1); border: 0; color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; }
.nav__burger .ico { width: 22px; height: 22px; }
.nav__burger .ico-fermer { display: none; }
.menu-ouvert .nav__burger .ico-menu { display: none; }
.menu-ouvert .nav__burger .ico-fermer { display: inline; }

/* Hors du menu déroulant : ni icône, ni sous-titre, ni titre, ni lien Accueil (le logo y mène). */
.nav__ico, .nav__texte small, .nav__titre, .nav__liens .nav__accueil { display: none; }

/* ==========================================================================
   Menu déroulant (≤ 1280 px) : panneau nuit en tuiles, icône + sous-titre par page (repris de KimiaCare)
   ========================================================================== */
@keyframes menu-entree { from { opacity: 0; transform: translateY(-10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes menu-tuile { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
body::after {
  content: ''; position: fixed; inset: 0; z-index: 40; pointer-events: none; opacity: 0;
  background: rgba(6, 18, 34, .55); backdrop-filter: blur(4px); transition: opacity .3s ease;
}
body.menu-ouvert { overflow: hidden; }
body.menu-ouvert::after { opacity: 1; pointer-events: auto; }

@media (max-width: 1280px) {
  .nav__barre { position: relative; }
  .nav__barre > .btn, .nav__liens { display: none; }
  .nav__burger { display: inline-grid; place-items: center; flex: none; transition: background .2s; }
  .langue { margin-left: auto; }
  .menu-ouvert .nav { background: rgba(10, 37, 64, .96); backdrop-filter: blur(14px); }
  .menu-ouvert .nav__burger { background: linear-gradient(120deg, var(--or), var(--emeraude)); box-shadow: 0 8px 22px -8px rgba(53, 174, 227, .8); }

  .menu-ouvert .nav__liens {
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0;
    position: absolute; top: calc(100% + 4px); left: 0; right: 0;
    max-height: calc(100dvh - var(--entete) - 20px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain;
    padding: 18px; border-radius: 24px; isolation: isolate;
    background: linear-gradient(160deg, var(--nuit-3) 0%, var(--nuit) 70%);
    border: 1px solid rgba(255, 255, 255, .1);
    box-shadow: 0 30px 80px -20px rgba(3, 12, 24, .8), inset 0 1px 0 rgba(255, 255, 255, .08);
    animation: menu-entree .32s cubic-bezier(.2, .8, .2, 1);
  }
  /* Halo bleu du logo dans le coin haut droit */
  .menu-ouvert .nav__liens::before {
    content: ''; position: absolute; z-index: -1; width: 280px; height: 280px; right: -90px; top: -120px;
    border-radius: 50%; background: radial-gradient(circle, rgba(53, 174, 227, .3), transparent 70%); pointer-events: none;
  }
  .menu-ouvert .nav__titre {
    display: flex; align-items: center; gap: 12px; grid-column: 1 / -1; margin: 2px 4px 6px;
    font-family: var(--police-titre); font-size: .72rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
    color: var(--or-clair);
  }
  .menu-ouvert .nav__titre::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, rgba(143, 176, 247, .5), transparent); }

  .menu-ouvert .nav__liens a {
    display: flex; align-items: center; gap: 12px; min-width: 0;
    padding: 12px; border-radius: 16px; color: #fff; font-size: 1rem;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08);
    transition: background .2s, border-color .2s, transform .2s;
    animation: menu-tuile .4s cubic-bezier(.2, .8, .2, 1) both; animation-delay: calc(var(--i, 0) * 35ms + 60ms);
  }
  .menu-ouvert .nav__ico {
    display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px;
    background: rgba(255, 255, 255, .08); color: var(--or); transition: background .2s, color .2s, box-shadow .2s;
  }
  .menu-ouvert .nav__ico .ico { width: 20px; height: 20px; }
  .menu-ouvert .nav__texte { min-width: 0; font-family: var(--police-titre); font-weight: 700; font-size: .95rem; line-height: 1.2; }
  .menu-ouvert .nav__texte small {
    display: block; margin-top: 3px; font-family: var(--police); font-weight: 500; font-size: .75rem;
    color: rgba(255, 255, 255, .6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .menu-ouvert .nav__liens a:hover, .menu-ouvert .nav__liens a:focus-visible {
    color: #fff; background: rgba(255, 255, 255, .1); border-color: rgba(143, 176, 247, .5); transform: translateY(-2px); outline: none;
  }
  .menu-ouvert .nav__liens a:hover .nav__ico, .menu-ouvert .nav__liens a:focus-visible .nav__ico,
  .menu-ouvert .nav__liens a.actif .nav__ico {
    color: #fff; background: linear-gradient(135deg, var(--or), var(--emeraude)); box-shadow: 0 8px 20px -8px rgba(53, 174, 227, .85);
  }
  .menu-ouvert .nav__liens a:active { transform: scale(.97); }
  /* Page en cours : tuile teintée et point lumineux */
  .menu-ouvert .nav__liens a.actif {
    position: relative; color: #fff;
    background: linear-gradient(120deg, rgba(53, 174, 227, .22), rgba(143, 176, 247, .08));
    border-color: rgba(143, 176, 247, .65);
  }
  .menu-ouvert .nav__liens a.actif::after {
    content: ''; position: absolute; top: 10px; right: 10px; width: 7px; height: 7px; border-radius: 50%;
    background: var(--or); box-shadow: 0 0 0 4px rgba(53, 174, 227, .2);
  }

  /* Se connecter : bouton centré sous les tuiles (grisé avec sa pastille tant que la connexion est fermée) */
  .menu-ouvert .nav__liens a.nav__connexion {
    display: inline-flex; grid-column: 1 / -1; justify-self: center; justify-content: center; gap: 10px;
    margin-top: 10px; padding: 13px 34px; border-radius: 99px; border: 0;
    font-family: var(--police-titre); font-weight: 700; font-size: .98rem;
    background: linear-gradient(120deg, var(--or), var(--emeraude));
    box-shadow: 0 12px 30px -10px rgba(53, 174, 227, .75), inset 0 1px 0 rgba(255, 255, 255, .3);
  }
  .menu-ouvert .nav__liens a.nav__connexion .ico { width: 19px; height: 19px; }
  .menu-ouvert .nav__liens a.nav__connexion:hover { transform: translateY(-2px); }
  html.connexion-fermee .menu-ouvert .nav__liens a.nav__connexion { background: var(--desactive); box-shadow: none; transform: none; }
}
@media (max-width: 420px) {
  .menu-ouvert .nav__liens { grid-template-columns: 1fr; gap: 8px; padding: 14px; }
  .menu-ouvert .nav__liens a { padding: 10px 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .menu-ouvert .nav__liens, .menu-ouvert .nav__liens a { animation: none; }
}

/* ---------- Héros (accueil) ---------- */
.heros {
  position: relative; min-height: 100vh; padding: calc(var(--entete) + 50px) 0 90px; color: #fff; overflow: hidden;
  background:
    radial-gradient(1200px 600px at 85% 10%, rgba(53, 174, 227, .28), transparent 60%),
    radial-gradient(900px 500px at 0% 100%, rgba(53, 174, 227, .18), transparent 60%),
    linear-gradient(160deg, #0a2540 0%, #0c2747 55%, #08182e 100%);
}
.quadrillage {
  position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    linear-gradient(rgba(255, 255, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse at 60% 40%, #000 30%, transparent 75%);
}
.heros__trajectoire { position: absolute; inset: auto 0 0 0; width: 100%; height: 70%; pointer-events: none; }
.heros__trajectoire path.trace { stroke-dasharray: 2600; stroke-dashoffset: 2600; animation: tracer 3.2s .4s cubic-bezier(.6, .1, .2, 1) forwards; }
.heros__trajectoire circle { opacity: 0; animation: apparaitre .5s forwards; }
@keyframes tracer { to { stroke-dashoffset: 0; } }
@keyframes apparaitre { to { opacity: 1; } }

.heros__grille { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.heros h1 { color: #fff; }
.heros h1 .or-texte { display: inline-block; }
.heros__accroche { font-size: 1.18rem; color: rgba(255, 255, 255, .8); max-width: 560px; }
.heros__actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 34px; }
.heros__atouts { display: flex; flex-wrap: wrap; gap: 10px 22px; color: rgba(255, 255, 255, .78); font-size: .92rem; font-weight: 600; }
.heros__atouts span { display: inline-flex; align-items: center; gap: .5em; }
.heros__atouts .ico { color: var(--emeraude-clair); }

.drapeau-pastille {
  display: inline-flex; align-items: center; gap: .7em; padding: .45em 1em .45em .5em; border-radius: 99px;
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); font-size: .85rem; font-weight: 600; margin-bottom: 22px;
  color: rgba(255, 255, 255, .9);
}
.drapeau-pastille .drapeau { width: 28px; height: 19px; border-radius: 4px; overflow: hidden; display: block; }

/* Composition d'écrans du héros */
.scene { position: relative; aspect-ratio: 1 / .92; perspective: 1600px; }
.ordi {
  position: absolute; left: 0; top: 6%; width: 88%;
  transform: rotateY(-14deg) rotateX(6deg) rotateZ(1deg); transform-style: preserve-3d;
  border-radius: 14px; background: #0a1628; padding: 10px 10px 14px; box-shadow: var(--ombre-forte), 0 0 0 1px rgba(255, 255, 255, .08);
}
.ordi::before { content: ''; display: block; height: 10px; background: radial-gradient(circle at 8px 5px, #ff5f57 3px, transparent 3.5px), radial-gradient(circle at 22px 5px, #febc2e 3px, transparent 3.5px), radial-gradient(circle at 36px 5px, #28c840 3px, transparent 3.5px); margin-bottom: 8px; }
.ordi img { border-radius: 6px; width: 100%; }
.mobile {
  position: absolute; width: 33%; right: 0; bottom: 0; border-radius: 30px; padding: 9px; background: #050d1a;
  box-shadow: var(--ombre-forte), 0 0 0 1px rgba(255, 255, 255, .12); transform: rotate(4deg);
}
.mobile::before { content: ''; position: absolute; top: 15px; left: 50%; width: 30%; height: 16px; margin-left: -15%; border-radius: 99px; background: #050d1a; z-index: 2; }
.mobile img { border-radius: 22px; width: 100%; aspect-ratio: 390 / 844; object-fit: cover; object-position: top; }

.carte-flottante {
  position: absolute; z-index: 3; display: flex; gap: 12px; align-items: center; padding: 12px 16px; border-radius: 16px;
  background: rgba(255, 255, 255, .96); color: var(--encre); box-shadow: var(--ombre); font-size: .82rem; line-height: 1.3;
  animation: flotter 6s ease-in-out infinite;
}
.carte-flottante strong { display: block; font-size: .95rem; }
.carte-flottante small { color: var(--texte-doux); }
.carte-flottante .rond { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.carte-flottante--sceau { left: -4%; bottom: 14%; animation-delay: -2s; }
.carte-flottante--moyenne { right: 22%; top: -2%; animation-delay: -4s; }
.carte-flottante--reussite { left: 24%; bottom: -4%; animation-delay: -1s; }
@keyframes flotter { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.heros__defiler { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border: 2px solid rgba(255,255,255,.35); border-radius: 99px; }
.heros__defiler::after { content: ''; position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 4px; background: #fff; animation: molette 1.8s infinite; }
@keyframes molette { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

@media (max-width: 960px) {
  .heros { min-height: auto; }
  .heros__grille { grid-template-columns: 1fr; }
  .scene { max-width: 620px; margin: 10px auto 0; width: 100%; }
}
@media (max-width: 560px) {
  .carte-flottante { font-size: .72rem; padding: 9px 11px; }
  .carte-flottante .rond { width: 32px; height: 32px; }
  .carte-flottante--moyenne { right: 30%; }
}

/* ---------- Bandeau défilant ---------- */
.ruban { background: var(--or); color: var(--nuit); overflow: hidden; padding: 16px 0; position: relative; z-index: 2; }
.ruban--incline { transform: rotate(-1.5deg); margin: -22px -20px 0; box-shadow: 0 20px 40px -20px rgba(0,0,0,.3); }
.ruban__piste { display: flex; gap: 46px; width: max-content; animation: defiler 40s linear infinite; font-family: var(--police-titre); font-size: 1.15rem; font-weight: 800; letter-spacing: .01em; }
.ruban__piste span { display: inline-flex; align-items: center; gap: 46px; white-space: nowrap; }
.ruban__piste span::after { content: '✦'; font-size: .8em; }
@keyframes defiler { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(70px, 10vw, 130px) 0; position: relative; }
.section--nuit { background: linear-gradient(180deg, var(--nuit) 0%, #0d2647 100%); color: rgba(255, 255, 255, .82); overflow: hidden; }
.section--nuit h2, .section--nuit h3 { color: #fff; }
.section--blanc { background: #fff; }
.section--papier2 { background: var(--papier-2); }
.section--emeraude { background: linear-gradient(135deg, #212251, #3359ab 50%, #3d68c4); color: rgba(255,255,255,.88); overflow: hidden; }
.section--emeraude h2, .section--emeraude h3 { color: #fff; }

.entete { max-width: 760px; margin-bottom: 56px; }
.entete--centre { margin-inline: auto; text-align: center; }
.entete p { font-size: 1.1rem; color: var(--texte-doux); }
.section--nuit .entete p, .section--emeraude .entete p { color: rgba(255, 255, 255, .75); }
.surtitre {
  display: inline-flex; align-items: center; gap: .6em; font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase;
  color: var(--emeraude); margin-bottom: 16px;
}
.surtitre::before { content: ''; width: 28px; height: 2px; background: currentColor; }
.section--nuit .surtitre, .section--emeraude .surtitre { color: var(--or-clair); }

/* ---------- Apparition au défilement ---------- */
.revele { opacity: 0; transform: translateY(28px); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .revele { opacity: 1; transform: none; transition: none; }
  .ruban__piste, .carte-flottante, .heros__trajectoire path.trace { animation: none; stroke-dashoffset: 0; }
  .heros__trajectoire circle { opacity: 1; }
}

/* ---------- Chiffres clés ---------- */
.chiffres { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); position: relative; z-index: 3; margin-top: -70px; }
.chiffre { padding: 34px 28px; border-right: 1px solid var(--trait); }
.chiffre:last-child { border-right: 0; }
.chiffre strong { display: block; font-family: var(--police-titre); font-size: clamp(2.4rem, 4vw, 3.3rem); color: var(--encre); line-height: 1; margin-bottom: 10px; font-weight: 800; letter-spacing: -.03em; }
.chiffre strong em { font-style: normal; color: var(--emeraude); font-size: .6em; }
.section--nuit .chiffre strong em { color: var(--or); }
.chiffre > span { color: var(--texte-doux); font-size: .93rem; display: block; }
@media (max-width: 860px) { .chiffres { grid-template-columns: 1fr 1fr; } .chiffre:nth-child(2) { border-right: 0; } .chiffre:nth-child(-n+2) { border-bottom: 1px solid var(--trait); } }
@media (max-width: 460px) { .chiffre { padding: 24px 18px; } }

/* ---------- Grilles génériques ---------- */
.grille-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.grille-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grille-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
@media (max-width: 960px) { .grille-2 { grid-template-columns: 1fr; gap: 40px; } .grille-3, .grille-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .grille-3, .grille-4 { grid-template-columns: 1fr; } }
.inverse > :first-child { order: 2; }
@media (max-width: 960px) { .inverse > :first-child { order: 0; } }

/* ---------- Cartes ---------- */
.carte {
  background: #fff; border-radius: var(--rayon); padding: 30px; box-shadow: 0 1px 0 var(--trait), 0 18px 40px -30px rgba(10, 37, 64, .4);
  border: 1px solid var(--trait); transition: transform .35s, box-shadow .35s; position: relative; overflow: hidden;
}
.carte:hover { transform: translateY(-6px); box-shadow: var(--ombre); }
.carte h3 { margin-top: 18px; }
.carte p { color: var(--texte-doux); font-size: .97rem; margin: 0; }
.pictogramme { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: rgba(51, 89, 171, .1); color: var(--emeraude); }
.pictogramme .ico { width: 28px; height: 28px; }
.pictogramme--or { background: rgba(53, 174, 227, .14); color: var(--or-fonce); }
.pictogramme--nuit { background: rgba(10, 37, 64, .08); color: var(--nuit); }
.pictogramme--rouge { background: rgba(200, 16, 46, .08); color: var(--rouge); }
.section--nuit .carte { background: rgba(255, 255, 255, .05); border-color: rgba(255, 255, 255, .1); box-shadow: none; backdrop-filter: blur(6px); }
.section--nuit .carte p { color: rgba(255, 255, 255, .7); }
.section--nuit .pictogramme { background: rgba(53, 174, 227, .12); color: var(--emeraude-clair); }
.section--nuit .pictogramme--or { background: rgba(143, 176, 247, .12); color: var(--or-clair); }
.carte__numero { position: absolute; top: 18px; right: 24px; font-family: var(--police-titre); font-size: 3.4rem; font-weight: 700; color: rgba(10, 37, 64, .06); line-height: 1; }
.section--nuit .carte__numero { color: rgba(255,255,255,.07); }

/* ---------- Liste à coches ---------- */
.coches { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.coches li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; align-items: start; }
.coches li::before {
  content: ''; width: 26px; height: 26px; border-radius: 50%; margin-top: 1px;
  background: var(--emeraude) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.coches b { color: var(--encre); }
.section--nuit .coches b, .section--emeraude .coches b { color: #fff; }
.section--emeraude .coches li::before { background-color: var(--or); }

/* ---------- Écrans (captures) ---------- */
.ecran {
  position: relative; border-radius: 16px; background: #0a1628; padding: 8px; box-shadow: var(--ombre-forte);
}
.ecran img { border-radius: 10px; width: 100%; }
.ecran--clair { background: #fff; border: 1px solid var(--trait); }
.ecran__legende { position: absolute; left: 22px; bottom: -18px; background: var(--or); color: var(--nuit); font-weight: 800; font-size: .78rem; padding: .5em 1em; border-radius: 99px; letter-spacing: .02em; box-shadow: var(--ombre); }
.duo-ecrans { position: relative; padding-right: 18%; padding-bottom: 8%; }
.duo-ecrans .mobile { width: 30%; right: 0; bottom: 0; transform: rotate(3deg); }
.mobile--seul { position: relative; width: min(330px, 80%); margin-inline: auto; transform: none; right: auto; bottom: auto; }
.mobile--penche { transform: rotate(-4deg); }
.trio-mobiles { display: flex; justify-content: center; align-items: flex-end; gap: 0; padding: 20px 0; }
.trio-mobiles .mobile { position: relative; right: auto; bottom: auto; width: 31%; }
.trio-mobiles .mobile:nth-child(1) { transform: rotate(-7deg) translate(18%, 6%); z-index: 1; }
.trio-mobiles .mobile:nth-child(2) { transform: translateY(-4%); z-index: 2; width: 34%; }
.trio-mobiles .mobile:nth-child(3) { transform: rotate(7deg) translate(-18%, 6%); z-index: 1; }

/* ---------- Boucle de confiance (étapes interactives) ---------- */
.boucle { display: grid; grid-template-columns: 420px minmax(0, 1fr); gap: 56px; align-items: center; }
.boucle__etapes { display: grid; gap: 10px; counter-reset: etape; }
.etape {
  text-align: left; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; padding: 18px 20px; border-radius: 18px;
  background: transparent; border: 1px solid rgba(255, 255, 255, .1); color: rgba(255, 255, 255, .7); cursor: pointer; font: inherit; transition: .3s;
}
.etape:hover { background: rgba(255, 255, 255, .04); }
.etape b { display: block; color: #fff; font-family: var(--police-titre); font-size: 1.08rem; font-weight: 800; margin-bottom: 2px; }
.etape small { font-size: .9rem; display: block; line-height: 1.5; }
.etape__num { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .07); color: var(--or-clair); font-family: var(--police-titre); font-weight: 700; font-size: 1.2rem; }
.etape[aria-selected="true"] { background: rgba(255, 255, 255, .08); border-color: var(--or); box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .6); }
.etape[aria-selected="true"] .etape__num { background: var(--or); color: var(--nuit); }
.etape .barre { grid-column: 2; height: 3px; background: rgba(255,255,255,.1); border-radius: 3px; overflow: hidden; margin-top: 10px; display: none; }
.etape[aria-selected="true"] .barre { display: block; }
.etape .barre i { display: block; height: 100%; width: 0; background: var(--or); }
.etape[aria-selected="true"] .barre i { animation: progression var(--duree, 6s) linear forwards; }
@keyframes progression { to { width: 100%; } }
.boucle__vue { position: relative; min-height: 460px; }
.boucle__panneau { position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(.98); transition: .6s cubic-bezier(.2, .8, .2, 1); pointer-events: none; display: grid; place-items: center; }
.boucle__panneau.actif { opacity: 1; transform: none; pointer-events: auto; }
.boucle__panneau .ecran { width: 100%; }
.boucle__panneau .mobile { position: relative; right: auto; bottom: auto; width: min(300px, 70%); transform: none; }
@media (max-width: 1020px) {
  .boucle { grid-template-columns: 1fr; }
  .boucle__vue { min-height: 0; aspect-ratio: 16 / 11; }
}
@media (max-width: 620px) { .boucle__vue { aspect-ratio: 3 / 4; } }

/* ---------- Vidéo ---------- */
.video { display: grid; grid-template-columns: minmax(0, 1fr) 290px; gap: 24px; align-items: stretch; }
.video__cadre { position: relative; border-radius: var(--rayon); overflow: hidden; background: #050d1a; box-shadow: var(--ombre-forte), 0 0 0 1px rgba(255,255,255,.1); aspect-ratio: 16 / 9; }
.video__cadre video { width: 100%; height: 100%; display: block; object-fit: cover; background: #050d1a; }
.video__attente {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px;
  background: radial-gradient(circle at 30% 20%, rgba(53,174,227,.35), transparent 55%), radial-gradient(circle at 80% 90%, rgba(53,174,227,.3), transparent 50%), linear-gradient(135deg, #0a2540, #0e2d52);
  color: #fff;
}
.video__attente .quadrillage { opacity: .6; }
.video__lecture { width: 92px; height: 92px; border-radius: 50%; background: var(--or); color: var(--nuit); display: grid; place-items: center; margin: 0 auto 18px; position: relative; box-shadow: 0 0 0 14px rgba(143, 176, 247, .15), 0 0 0 30px rgba(143, 176, 247, .07); }
.video__lecture .ico { width: 36px; height: 36px; fill: currentColor; stroke: none; margin-left: 5px; }
.video__attente h3 { color: #fff; font-size: 1.6rem; margin-bottom: .3em; position: relative; }
.video__attente p { color: rgba(255,255,255,.7); position: relative; margin: 0; }
.video__chapitres { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: var(--rayon); padding: 20px; display: flex; flex-direction: column; gap: 6px; }
.video__titre { color: var(--or-clair); font-weight: 800; font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; display: flex; gap: .6em; align-items: center; }
.chapitre { display: flex; gap: 12px; align-items: center; text-align: left; background: none; border: 0; color: rgba(255,255,255,.8); padding: 10px 12px; border-radius: 12px; cursor: pointer; font: inherit; font-size: .92rem; }
.chapitre:hover, .chapitre.actif { background: rgba(255,255,255,.07); color: #fff; }
.chapitre .ico { color: var(--emeraude-clair); }
.chapitre small { display: block; color: rgba(255,255,255,.5); font-size: .78rem; }
@media (max-width: 960px) { .video { grid-template-columns: 1fr; } }

/* ---------- Onglets par acteur ---------- */
.acteurs__onglets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 44px; }
.acteurs__onglets button {
  display: inline-flex; align-items: center; gap: .55em; padding: .75em 1.3em; border-radius: 99px; border: 1px solid var(--trait); background: #fff;
  font: inherit; font-weight: 700; font-size: .93rem; color: var(--encre); cursor: pointer; transition: .25s;
}
.acteurs__onglets button[aria-selected="true"] { background: var(--nuit); color: #fff; border-color: var(--nuit); box-shadow: var(--ombre); }
.acteurs__onglets button .ico { color: var(--emeraude); }
.acteurs__onglets button[aria-selected="true"] .ico { color: var(--or-clair); }
.acteurs__panneau { display: none; }
.acteurs__panneau.actif { display: grid; animation: entrer .6s cubic-bezier(.2, .8, .2, 1); }
@keyframes entrer { from { opacity: 0; transform: translateY(16px); } }

/* ---------- Graphiques ---------- */
.tableau-bord { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.tuile { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); border-radius: var(--rayon); padding: 24px; color: rgba(255,255,255,.8); position: relative; overflow: hidden; }
.section--blanc .tuile, .section--papier .tuile, .tuile--claire { background: #fff; border: 1px solid var(--trait); color: var(--texte); box-shadow: 0 18px 40px -32px rgba(10,37,64,.4); }
.tuile h3 { font-family: var(--police); font-size: .82rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--or-clair); margin: 0 0 4px; }
.tuile--claire h3 { color: var(--emeraude); }
.tuile .valeur { font-family: var(--police-titre); font-size: 2.4rem; color: #fff; line-height: 1.1; font-weight: 800; letter-spacing: -.03em; }
.tuile--claire .valeur { color: var(--encre); }
.tuile .tendance { font-size: .85rem; font-weight: 700; color: var(--emeraude-clair); }
.tuile--claire .tendance { color: var(--emeraude); }
.tuile .note { font-size: .78rem; opacity: .6; margin-top: 8px; }
.t-3 { grid-column: span 3; } .t-4 { grid-column: span 4; } .t-5 { grid-column: span 5; } .t-6 { grid-column: span 6; } .t-7 { grid-column: span 7; } .t-8 { grid-column: span 8; } .t-12 { grid-column: span 12; }
@media (max-width: 960px) { .t-3, .t-4, .t-5 { grid-column: span 6; } .t-6, .t-7, .t-8 { grid-column: span 12; } }
@media (max-width: 560px) { .t-3, .t-4, .t-5 { grid-column: span 12; } }

.courbe { width: 100%; height: auto; overflow: visible; }
.courbe .grille-axe line { stroke: rgba(255,255,255,.1); }
.tuile--claire .courbe .grille-axe line { stroke: var(--trait); }
.courbe text { fill: rgba(255,255,255,.55); font-size: 11px; font-family: var(--police); }
.tuile--claire .courbe text { fill: var(--texte-doux); }
.courbe .ligne { fill: none; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.courbe .aire { opacity: .25; }
.anime .courbe .ligne { stroke-dasharray: 1400; stroke-dashoffset: 1400; transition: stroke-dashoffset 2.2s cubic-bezier(.6, .1, .2, 1); }
.anime.vu .courbe .ligne { stroke-dashoffset: 0; }

.barres { display: grid; gap: 12px; margin-top: 14px; }
.barre-ligne { display: grid; grid-template-columns: 120px 1fr 52px; gap: 12px; align-items: center; font-size: .86rem; }
.barre-ligne .piste { height: 12px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; }
.tuile--claire .barre-ligne .piste { background: var(--papier-2); }
.barre-ligne .piste i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, var(--emeraude), var(--emeraude-clair)); width: 0; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.vu .barre-ligne .piste i { width: var(--v); }
.barre-ligne b { text-align: right; color: #fff; }
.tuile--claire .barre-ligne b { color: var(--encre); }
.barre-ligne--or .piste i { background: linear-gradient(90deg, var(--or-fonce), var(--or-clair)); }

.anneau { position: relative; width: 170px; height: 170px; margin: 10px auto; }
.anneau svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.anneau circle { fill: none; stroke-width: 16; }
.anneau .fond { stroke: rgba(255,255,255,.1); }
.tuile--claire .anneau .fond { stroke: var(--papier-2); }
.anneau .arc { stroke-linecap: round; stroke-dasharray: 0 999; transition: stroke-dasharray 1.8s cubic-bezier(.2, .8, .2, 1); }
.anneau .centre { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.anneau .centre b { font-family: var(--police-titre); font-size: 1.8rem; font-weight: 800; color: #fff; line-height: 1; }
.tuile--claire .anneau .centre b { color: var(--encre); }
.anneau .centre small { font-size: .75rem; opacity: .7; }
.legende { display: flex; justify-content: center; gap: 18px; font-size: .82rem; flex-wrap: wrap; }
.legende i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

.entonnoir { display: grid; gap: 8px; margin-top: 12px; }
.entonnoir div { height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; font-size: .85rem; font-weight: 700; color: #fff; margin-inline: auto; width: 0; transition: width 1.4s cubic-bezier(.2, .8, .2, 1); white-space: nowrap; overflow: hidden; background: linear-gradient(90deg, var(--emeraude), #3d68c4); }
.vu .entonnoir div { width: var(--v); }
.entonnoir div:nth-child(2) { transition-delay: .15s; } .entonnoir div:nth-child(3) { transition-delay: .3s; } .entonnoir div:nth-child(4) { transition-delay: .45s; } .entonnoir div:nth-child(5) { transition-delay: .6s; }

.colonnes { display: flex; align-items: flex-end; gap: 10px; height: 170px; margin-top: 16px; }
.colonnes div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; font-size: .72rem; }
.colonnes i { display: block; width: 100%; border-radius: 8px 8px 3px 3px; background: linear-gradient(180deg, var(--or-clair), var(--or-fonce)); height: 0; transition: height 1.4s cubic-bezier(.2, .8, .2, 1); }
.vu .colonnes i { height: var(--v); }
.colonnes div:nth-child(even) i { background: linear-gradient(180deg, var(--emeraude-clair), var(--emeraude)); }
.colonnes b { font-size: .78rem; order: 2; min-height: 1.2em; }
.mention-illustration { font-size: .78rem; opacity: .6; text-align: center; margin-top: 22px; }

/* ---------- Sceau / vérification ---------- */
.sceau-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.verdict { border-radius: var(--rayon); padding: 26px; display: grid; gap: 10px; color: #fff; position: relative; overflow: hidden; }
.verdict--ok { background: linear-gradient(135deg, #212251, #3d68c4); }
.verdict--ko { background: linear-gradient(135deg, #7d0f20, #b4192a); }
.verdict .ico { width: 44px; height: 44px; }
.verdict b { font-family: var(--police-titre); font-size: 1.3rem; font-weight: 800; }
.verdict small { opacity: .8; }
.cachet {
  width: 150px; height: 150px; border-radius: 50%; display: grid; place-items: center; text-align: center; color: var(--or-fonce);
  border: 3px double var(--or); font-family: var(--police-titre); font-weight: 700; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; transform: rotate(-12deg);
  background: radial-gradient(circle, rgba(53,174,227,.12), transparent 70%);
}

/* ---------- Galerie de flyers ---------- */
.flyers { display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 4px 30px; scrollbar-width: thin; }
.flyers figure { margin: 0; flex: 0 0 min(320px, 78%); scroll-snap-align: start; }
.flyers img { border-radius: 18px; box-shadow: var(--ombre); transition: transform .35s; cursor: zoom-in; aspect-ratio: 1080 / 1350; object-fit: cover; }
.flyers img:hover { transform: translateY(-6px) rotate(-.6deg); }
.flyers figcaption { font-size: .86rem; color: var(--texte-doux); margin-top: 10px; font-weight: 600; }
.section--nuit .flyers figcaption { color: rgba(255,255,255,.65); }
.defilement-boutons { display: flex; gap: 10px; justify-content: flex-end; margin-top: -20px; margin-bottom: 20px; }
.defilement-boutons button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--trait); background: #fff; cursor: pointer; display: grid; place-items: center; color: var(--encre); }
.section--nuit .defilement-boutons button { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }

/* ---------- Galerie de captures ---------- */
.filtres { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 36px; }
.filtres button { padding: .6em 1.2em; border-radius: 99px; border: 1px solid var(--trait); background: #fff; font: inherit; font-weight: 700; font-size: .88rem; cursor: pointer; color: var(--encre); }
.filtres button[aria-pressed="true"] { background: var(--emeraude); color: #fff; border-color: var(--emeraude); }
.galerie { columns: 3 320px; column-gap: 22px; }
.galerie figure { break-inside: avoid; margin: 0 0 22px; background: #fff; border-radius: 18px; padding: 10px; border: 1px solid var(--trait); box-shadow: 0 18px 40px -32px rgba(10,37,64,.5); }
.galerie figure.cache { display: none; }
.galerie img { border-radius: 10px; cursor: zoom-in; width: 100%; }
.galerie figure.tel img { max-width: 260px; margin-inline: auto; }
.galerie figcaption { padding: 12px 8px 4px; font-size: .9rem; }
.galerie figcaption b { display: block; color: var(--encre); font-family: var(--police-titre); font-size: 1rem; font-weight: 800; }
.galerie figcaption span { color: var(--texte-doux); }
.etiquette { display: inline-block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--emeraude); background: rgba(51,89,171,.08); padding: .25em .7em; border-radius: 99px; margin-bottom: 6px; }

/* Visionneuse plein écran */
.visionneuse { position: fixed; inset: 0; z-index: 100; background: rgba(5, 13, 26, .92); display: none; place-items: center; padding: 60px 16px 24px; backdrop-filter: blur(6px); }
.visionneuse.ouverte { display: grid; }
.visionneuse img { max-width: min(1300px, 100%); max-height: 86vh; border-radius: 12px; box-shadow: var(--ombre-forte); }
.visionneuse p { color: rgba(255,255,255,.8); text-align: center; margin: 14px 0 0; }
.visionneuse button { position: absolute; top: 16px; right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255,255,255,.12); color: #fff; cursor: pointer; display: grid; place-items: center; }

/* ---------- En-tête des pages intérieures ---------- */
.bandeau {
  position: relative; padding: calc(var(--entete) + 70px) 0 110px; color: #fff; overflow: hidden;
  background: radial-gradient(900px 500px at 90% 0%, rgba(53, 174, 227, .3), transparent 60%), radial-gradient(700px 400px at 0% 100%, rgba(53, 174, 227, .2), transparent 60%), linear-gradient(160deg, #0a2540, #0c2747 60%, #08182e);
}
.bandeau h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); max-width: 900px; }
.bandeau p { color: rgba(255,255,255,.78); font-size: 1.15rem; max-width: 700px; }
.bandeau .grille-2 { align-items: center; }
.fil { font-size: .85rem; color: rgba(255,255,255,.6); margin-bottom: 18px; }
.fil a { color: var(--or-clair); }
.bandeau__visuel { position: relative; }
.bandeau__visuel .ecran { transform: rotate(-2deg); }
.bandeau--court { padding-bottom: 80px; }

/* ---------- Citation ---------- */
.citation { font-family: var(--police-titre); font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.3; color: var(--encre); font-weight: 700; max-width: 920px; margin: 0 auto; text-align: center; position: relative; }
.citation::before { content: '“'; display: block; font-size: 5rem; line-height: .5; color: var(--or); margin-bottom: 20px; font-style: normal; }
.section--nuit .citation { color: #fff; }
.citation + .auteur { text-align: center; color: var(--texte-doux); margin-top: 22px; font-weight: 700; }

/* ---------- Parcours CP1 → Terminale (frise) ---------- */
.frise { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 20px; }
.frise::before { content: ''; position: absolute; left: 4%; right: 4%; top: 34px; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--emeraude), var(--or)); }
.jalon { position: relative; text-align: center; }
.jalon .point { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 16px; background: #fff; border: 4px solid var(--emeraude); color: var(--emeraude); position: relative; z-index: 1; box-shadow: var(--ombre); }
.jalon:nth-child(n+3) .point { border-color: #3389c9; }
.jalon:nth-child(n+4) .point { border-color: var(--or); color: var(--or-fonce); }
.jalon .point .ico { width: 30px; height: 30px; }
.jalon b { font-family: var(--police-titre); font-size: 1.08rem; font-weight: 800; color: var(--encre); display: block; }
.jalon small { color: var(--texte-doux); font-size: .88rem; display: block; line-height: 1.45; margin-top: 4px; }
.section--nuit .jalon b { color: #fff; } .section--nuit .jalon small { color: rgba(255,255,255,.65); }
.section--nuit .jalon .point { background: var(--nuit); }
@media (max-width: 860px) {
  .frise { grid-template-columns: 1fr; gap: 22px; }
  .frise::before { left: 34px; right: auto; top: 10px; bottom: 10px; width: 4px; height: auto; }
  .jalon { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; text-align: left; align-items: center; }
  .jalon .point { margin: 0; grid-row: span 2; }
  .jalon b, .jalon small { grid-column: 2; align-self: end; }
  .jalon small { align-self: start; margin-top: 2px; }
}

/* ---------- Appel à l'action ---------- */
.appel {
  position: relative; border-radius: 32px; padding: clamp(40px, 6vw, 72px); color: #fff; overflow: hidden;
  background: radial-gradient(600px 300px at 100% 0%, rgba(143,176,247,.3), transparent 60%), linear-gradient(135deg, #212251, #3359ab 45%, #0a2540);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; box-shadow: var(--ombre-forte);
}
.appel h2 { color: #fff; }
.appel p { color: rgba(255,255,255,.82); font-size: 1.1rem; }
.appel__actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.appel .embleme { position: absolute; right: -60px; bottom: -80px; width: 340px; opacity: .1; pointer-events: none; }
@media (max-width: 860px) { .appel { grid-template-columns: 1fr; } }

/* ---------- Illustrations ---------- */
.illustration { width: 100%; height: auto; }
.illustration--cadre { background: #fff; border-radius: var(--rayon); box-shadow: var(--ombre); }

/* ---------- Formulaire ---------- */
.formulaire { display: grid; gap: 16px; background: #fff; border-radius: var(--rayon); padding: clamp(24px, 4vw, 40px); box-shadow: var(--ombre); }
.formulaire label { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; color: var(--encre); }
.formulaire input, .formulaire select, .formulaire textarea {
  font: inherit; font-weight: 400; padding: .85em 1em; border-radius: 12px; border: 1.5px solid var(--trait); background: var(--papier); color: var(--texte); width: 100%;
}
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: none; border-color: var(--emeraude); background: #fff; box-shadow: 0 0 0 4px rgba(51,89,171,.12); }
.formulaire .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .formulaire .duo { grid-template-columns: 1fr; } }
.formulaire__message { padding: 14px 16px; border-radius: 12px; font-weight: 600; display: none; }
.formulaire__message.ok { display: block; background: rgba(51,89,171,.1); color: var(--emeraude); }
.formulaire__message.ko { display: block; background: rgba(200,16,46,.08); color: var(--rouge); }
.coordonnees { display: grid; gap: 16px; }
.coordonnee { display: flex; gap: 16px; align-items: center; padding: 20px; border-radius: 18px; background: #fff; border: 1px solid var(--trait); color: var(--texte); }
.coordonnee b { display: block; color: var(--encre); }

/* ---------- Pied de page ---------- */
.pied { background: #071427; color: rgba(255, 255, 255, .65); padding: 80px 0 30px; font-size: .93rem; position: relative; overflow: hidden; }
.pied::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--rouge) 0 48%, var(--jaune-bf) 48% 52%, var(--vert-bf) 52%); opacity: .9; }
.pied__grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; }
.pied img.logo { height: 44px; width: auto; margin-bottom: 18px; }
.pied h4 { color: #fff; font-family: var(--police); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pied a { color: rgba(255,255,255,.72); }
.pied a:hover { color: var(--or-clair); }
.pied__bas { border-top: 1px solid rgba(255,255,255,.08); margin-top: 50px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }
@media (max-width: 860px) { .pied__grille { grid-template-columns: 1fr 1fr; } .pied__grille > :first-child { grid-column: 1 / -1; } }

/* ---------- Divers ---------- */
.badge-or { display: inline-flex; align-items: center; gap: .5em; background: rgba(53,174,227,.14); color: var(--or-fonce); font-weight: 800; font-size: .78rem; padding: .4em .9em; border-radius: 99px; letter-spacing: .04em; }
.section--nuit .badge-or { color: var(--or-clair); background: rgba(143,176,247,.1); }
.texte-centre { text-align: center; }
.mt-0 { margin-top: 0; } .mt-l { margin-top: 48px; } .mb-0 { margin-bottom: 0; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.liste-points { display: grid; gap: 18px; }
.point-fort { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.point-fort h3 { margin: 4px 0 4px; font-size: 1.2rem; }
.point-fort p { color: var(--texte-doux); margin: 0; font-size: .97rem; }
.section--nuit .point-fort p { color: rgba(255,255,255,.7); }
.separateur-vague { display: block; width: 100%; height: 60px; margin-top: -1px; }
.encart {
  border-radius: var(--rayon); padding: 28px 30px; background: linear-gradient(135deg, rgba(53,174,227,.12), rgba(53,174,227,.04)); border: 1px solid rgba(53,174,227,.3);
}
.encart b { color: var(--encre); }
.tableau-comparatif { width: 100%; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); font-size: .95rem; }
.tableau-comparatif th, .tableau-comparatif td { padding: 16px 20px; text-align: left; border-bottom: 1px solid var(--trait); }
.tableau-comparatif thead th { background: var(--nuit); color: #fff; font-weight: 700; }
.tableau-comparatif thead th:last-child { background: var(--emeraude); }
.tableau-comparatif td:last-child { font-weight: 700; color: var(--emeraude); background: rgba(51,89,171,.04); }
.tableau-comparatif tr:last-child td { border-bottom: 0; }
.defilement-tableau { overflow-x: auto; border-radius: var(--rayon); }
.page-404 { min-height: 100vh; display: grid; place-items: center; text-align: center; }

/* ==========================================================================
   Tailles de police selon l'écran
   Les titres et grands chiffres gardent leur taille sur PC (≥ 1024 px) ; ils se réduisent sur tablette
   (600 à 1023 px) et sur téléphone (< 600 px), où ils prenaient trop de place et cassaient en trop de lignes.
   ========================================================================== */
.titre-acteur { font-size: 2rem; margin-top: 16px; }
.tuile .valeur.valeur--mot { font-size: 1.6rem; }

@media (max-width: 1023.98px) {
  h1 { font-size: clamp(2.2rem, 5.2vw, 3.2rem); }
  h2 { font-size: clamp(1.8rem, 3.8vw, 2.4rem); }
  .bandeau h1 { font-size: clamp(2.1rem, 5vw, 3rem); }
  .titre-acteur { font-size: 1.7rem; }
  .chiffre strong { font-size: 2.2rem; }
  .tuile .valeur { font-size: 2.1rem; }
  .citation { font-size: 1.8rem; }
}

@media (max-width: 599.98px) {
  body { font-size: 16px; }
  h1, .bandeau h1 { font-size: 2rem; letter-spacing: -.03em; }
  h2 { font-size: 1.6rem; }
  h3 { font-size: 1.15rem; }
  .titre-acteur { font-size: 1.45rem; }
  .heros__accroche, .bandeau p { font-size: 1.02rem; }
  .ruban__piste { font-size: 1rem; }
  .chiffre strong { font-size: 2rem; }
  .carte__numero { font-size: 2.6rem; }
  .etape__num { font-size: 1.05rem; }
  .video__attente h3 { font-size: 1.3rem; }
  .tuile .valeur { font-size: 1.8rem; }
  .tuile .valeur.valeur--mot { font-size: 1.3rem; }
  .anneau .centre b { font-size: 1.5rem; }
  .verdict b { font-size: 1.12rem; }
  .citation { font-size: 1.3rem; }
  .citation::before { font-size: 3.6rem; }
  .point-fort h3 { font-size: 1.08rem; }
}
