/* =====================================================================
   Prépa BEPC-BAC Excellence — feuille de style du site
   Direction artistique validée le 03/11/2026 (planche Studia v1),
   aux couleurs réelles d'Excellence (affiches) : bleu marine + vert, titres Montserrat.
   ===================================================================== */
:root {
  --marine: #0E2257; --marine-2: #1A3F9C; --marine-3: #2A55B5; --marine-pale: #E8EEFA;
  --or: #1A8F38; --or-2: #33B556; --or-pale: #E6F5EA;
  --brume: #F3F6F5; --blanc: #fff;
  --encre: #142033; --texte: #334155; --doux: #5B6B7F; --trait: #E2E8E6; --trait-fort: #CBD5D1;
  --ok: #15803D; --ok-pale: #E6F6EC; --alerte: #B45309; --alerte-pale: #FEF3E2;
  --police: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --titres: "Montserrat", "Inter", system-ui, sans-serif;
  --r: 12px; --r-l: 16px; --r-xl: 22px;
  --ombre-1: 0 1px 2px rgba(14,34,87,.06), 0 1px 1px rgba(14,34,87,.04);
  --ombre-2: 0 6px 20px -6px rgba(14,34,87,.16), 0 2px 4px rgba(14,34,87,.05);
  --ombre-3: 0 24px 48px -16px rgba(14,34,87,.28);
  --vite: 180ms cubic-bezier(.2,.7,.2,1);
  --largeur: 1240px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 var(--police); color: var(--texte); background: var(--blanc); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--marine-2); }
h1, h2, h3, h4 { color: var(--encre); margin: 0; letter-spacing: -.015em; line-height: 1.2; }
h1, h2 { font-family: var(--titres); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }
p { margin: 0 0 1em; }
.conteneur { width: 100%; max-width: var(--largeur); margin: 0 auto; padding: 0 24px; }
.lucide { width: 20px; height: 20px; stroke-width: 1.9; flex: none; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--marine-2) 35%, transparent); outline-offset: 2px; border-radius: 6px; }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 11px;
  font: 600 15px var(--police); border: 1px solid transparent; cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background var(--vite), box-shadow var(--vite), transform var(--vite), border-color var(--vite), filter var(--vite); }
.btn .lucide { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px); }
.btn-primaire { background: var(--marine-2); color: #fff; box-shadow: 0 1px 2px rgba(14,34,87,.2), inset 0 1px 0 rgba(255,255,255,.12); }
.btn-primaire:hover { filter: brightness(1.1); box-shadow: 0 8px 20px -8px var(--marine-2); }
.btn-or { background: var(--or); color: #fff; box-shadow: 0 1px 2px rgba(14,34,87,.15); }
.btn-or:hover { background: #157A2F; box-shadow: 0 8px 22px -8px rgba(26,143,56,.7); }
.btn-second { background: #fff; color: var(--encre); border-color: var(--trait-fort); box-shadow: var(--ombre-1); }
.btn-second:hover { border-color: var(--doux); }
.btn-clair { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.35); }
.btn-clair:hover { background: rgba(255,255,255,.18); }
.btn-wa { background: #1FA855; color: #fff; }
.btn-wa:hover { filter: brightness(1.07); }
.btn-grand { min-height: 54px; padding: 0 26px; font-size: 16px; border-radius: 13px; }
.btn-plein { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

/* ---------- En-tête ---------- */
.bandeau-haut { background: var(--marine); color: #C9D6EE; font-size: 13px; }
.bandeau-haut .conteneur { display: flex; justify-content: space-between; align-items: center; min-height: 38px; gap: 16px; }
.bandeau-haut a { color: #fff; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.bandeau-haut .lucide { width: 15px; height: 15px; color: var(--or-2); }
.bandeau-haut .tels { display: flex; gap: 18px; }
.entete { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color var(--vite), box-shadow var(--vite); }
.entete.defile { border-bottom-color: var(--trait); box-shadow: 0 6px 20px -14px rgba(14,34,87,.35); }
.entete .conteneur { display: flex; align-items: center; gap: 20px; height: 74px; }
.marque { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); flex: none; }
.monogramme { width: 44px; height: 44px; border-radius: 12px; background: var(--marine); color: var(--or-2); display: grid; place-items: center; font: 700 22px var(--titres); box-shadow: inset 0 0 0 2px rgba(26,143,56,.35); }
.marque b { display: block; font: 700 17px/1.1 var(--titres); letter-spacing: -.01em; }
.marque small { display: block; font-size: 11.5px; color: var(--doux); letter-spacing: .06em; text-transform: uppercase; font-weight: 600; margin-top: 3px; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { color: var(--texte); text-decoration: none; font-size: 14.5px; font-weight: 500; white-space: nowrap; padding: 8px 10px; border-radius: 9px; transition: background var(--vite), color var(--vite); }
.nav a:hover { background: var(--brume); color: var(--encre); }
.nav a[aria-current="page"] { color: var(--marine-2); font-weight: 600; background: var(--marine-pale); }
.entete .btn { min-height: 42px; }
.burger { display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 11px; border: 1px solid var(--trait-fort); background: #fff; align-items: center; justify-content: center; cursor: pointer; color: var(--encre); }
@media (max-width: 1240px) {
  .burger { display: inline-flex; }
  .entete .btn-inscrire { display: none; }
  .nav { display: none; position: fixed; inset: 74px 0 0 0; background: #fff; flex-direction: column; align-items: stretch; gap: 4px; padding: 16px 20px 32px; overflow-y: auto; margin: 0; }
  .nav.ouvert { display: flex; animation: apparait .2s ease both; }
  .nav a { font-size: 17px; padding: 14px 14px; border-bottom: 1px solid var(--trait); border-radius: 10px; }
  .nav .btn-nav-mobile { display: flex; margin-top: 16px; }
}
.nav .btn-nav-mobile { display: none; }
@media (min-width: 1241px) { .nav .lien-accueil { display: none; } }
@media (max-width: 640px) {
  .bandeau-haut .masque-mobile { display: none; }
  .bandeau-haut .tels a:not(:first-child) { display: none; }
  .marque small { display: none; }
  .marque b { font-size: 15.5px; }
}
@keyframes apparait { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- Héros d'accueil ---------- */
.heros { position: relative; color: #fff; overflow: hidden; background: var(--marine); }
.heros::before { content: ""; position: absolute; inset: 0;
  background: radial-gradient(900px 500px at 85% 10%, rgba(42,78,143,.9), transparent 60%),
              radial-gradient(520px 340px at 0% 100%, rgba(26,143,56,.08), transparent 70%),
              repeating-linear-gradient(135deg, rgba(255,255,255,.035) 0 2px, transparent 2px 26px); }
.heros .conteneur { position: relative; display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; padding-top: 84px; padding-bottom: 96px; }
.etiquette { display: inline-flex; align-items: center; gap: 8px; background: rgba(26,143,56,.14); color: var(--or-2); border: 1px solid rgba(26,143,56,.35); font-size: 13px; font-weight: 600; padding: 6px 13px; border-radius: 99px; }
.etiquette .lucide { width: 15px; height: 15px; }
.heros h1 { color: #fff; font-size: clamp(36px, 5.2vw, 60px); line-height: 1.06; margin: 20px 0 18px; letter-spacing: -.025em; }
.heros h1 em { font-style: normal; color: var(--or-2); }
.heros .accroche { font-size: 18px; color: #D3DDEF; max-width: 560px; margin-bottom: 30px; }
.heros .actions { display: flex; gap: 12px; flex-wrap: wrap; }
.heros .reperes { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; font-size: 14px; color: #C9D6EE; }
.heros .reperes span { display: inline-flex; gap: 8px; align-items: center; }
.heros .reperes .lucide { width: 17px; height: 17px; color: var(--or-2); }
.carte-heros { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-xl); padding: 26px; backdrop-filter: blur(6px); box-shadow: var(--ombre-3); }
.carte-heros h2 { color: #fff; font-size: 22px; margin-bottom: 4px; }
.carte-heros > p { color: #C9D6EE; font-size: 14px; }
.ligne-exam { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); margin-top: 10px; color: #fff; text-decoration: none; transition: background var(--vite), transform var(--vite); }
.ligne-exam:hover { background: rgba(255,255,255,.12); transform: translateX(3px); }
.ligne-exam .pastille-exam { width: 52px; height: 52px; border-radius: 13px; background: var(--or); color: #fff; display: grid; place-items: center; font: 800 14px var(--police); flex: none; }
.ligne-exam b { display: block; font-size: 15.5px; }
.ligne-exam small { color: #C9D6EE; font-size: 13px; }
.ligne-exam .lucide { margin-left: auto; color: var(--or-2); }
@media (max-width: 960px) {
  .heros .conteneur { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 60px; }
  .heros .accroche { font-size: 16.5px; }
}
@media (max-width: 480px) { .heros .actions .btn { width: 100%; } }

/* ---------- En-tête de page intérieure ---------- */
.tete-page { background: var(--marine); color: #D3DDEF; position: relative; overflow: hidden; }
.tete-page::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 360px at 90% 0%, rgba(42,78,143,.95), transparent 60%), repeating-linear-gradient(135deg, rgba(255,255,255,.03) 0 2px, transparent 2px 26px); }
.tete-page .conteneur { position: relative; padding-top: 56px; padding-bottom: 60px; }
.fil { font-size: 13px; color: #A9B9D6; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.fil a { color: #A9B9D6; text-decoration: none; }
.fil a:hover { color: #fff; }
.tete-page h1 { color: #fff; font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -.02em; }
.tete-page p { max-width: 680px; font-size: 17.5px; margin: 14px 0 0; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.grise { background: var(--brume); }
.section.marine { background: var(--marine); color: #D3DDEF; }
.section.marine h2, .section.marine h3 { color: #fff; }
@media (max-width: 720px) { .section { padding: 60px 0; } }
.surtitre { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--marine-2); margin-bottom: 12px; }
.surtitre::before { content: ""; width: 22px; height: 2px; background: var(--or); border-radius: 2px; }
.section.marine .surtitre { color: var(--or-2); }
.titre-section { font-size: clamp(28px, 3.4vw, 40px); max-width: 760px; }
.chapo { font-size: 17.5px; color: var(--doux); max-width: 720px; margin-top: 14px; }
.section.marine .chapo { color: #C9D6EE; }
.entete-section { margin-bottom: 44px; }
.entete-section.centre { text-align: center; }
.entete-section.centre .titre-section, .entete-section.centre .chapo { margin-left: auto; margin-right: auto; }
.entete-section.ligne { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.grille { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 680px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }

/* ---------- Cartes ---------- */
.carte { background: #fff; border: 1px solid var(--trait); border-radius: var(--r-l); padding: 26px; box-shadow: var(--ombre-1); transition: box-shadow var(--vite), transform var(--vite), border-color var(--vite); }
a.carte { text-decoration: none; color: inherit; display: block; }
a.carte:hover, .carte.survolable:hover { box-shadow: var(--ombre-2); transform: translateY(-3px); border-color: #D3DCE8; }
.carte h3 { margin-bottom: 8px; }
.carte p:last-child { margin-bottom: 0; }
.icone { width: 48px; height: 48px; border-radius: 13px; background: var(--marine-pale); color: var(--marine-2); display: grid; place-items: center; margin-bottom: 18px; }
.icone .lucide { width: 23px; height: 23px; }
.icone.or { background: var(--or-pale); color: #8A6400; }
.section.marine .carte { background: rgba(255,255,255,.05); border-color: rgba(255,255,255,.12); box-shadow: none; color: #C9D6EE; }
.section.marine .carte .icone { background: rgba(26,143,56,.14); color: var(--or-2); }
.lien-fleche { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--marine-2); text-decoration: none; font-size: 14.5px; margin-top: 14px; }
.lien-fleche .lucide { width: 17px; height: 17px; transition: transform var(--vite); }
a:hover > .lien-fleche .lucide, .lien-fleche:hover .lucide { transform: translateX(4px); }

/* Carte de formation */
.formation { display: flex; flex-direction: column; }
.formation .haut { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.code { min-width: 58px; height: 58px; padding: 0 12px; border-radius: 15px; background: var(--marine); color: var(--or-2); display: grid; place-items: center; font: 700 19px var(--titres); }
.pastille { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 11px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--marine-pale); color: var(--marine-2); white-space: nowrap; }
.pastille.or { background: var(--or-pale); color: #14632B; }
.pastille.grise { background: #EEF2F1; color: var(--doux); }
.puces-matieres { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.puces-matieres span { font-size: 12.5px; padding: 4px 10px; border-radius: 8px; background: var(--brume); color: var(--texte); border: 1px solid var(--trait); }

/* Liste à coches */
.coches { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.coches li { display: flex; gap: 11px; align-items: flex-start; }
.coches li .lucide { width: 19px; height: 19px; color: var(--ok); margin-top: 3px; }
.section.marine .coches li .lucide { color: var(--or-2); }

/* Méthode : étapes numérotées */
.methode { counter-reset: etape; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.etape { position: relative; padding: 24px 22px 22px; border-radius: var(--r-l); background: #fff; border: 1px solid var(--trait); box-shadow: var(--ombre-1); }
.etape::before { counter-increment: etape; content: counter(etape, decimal-leading-zero); font: 700 15px var(--titres); color: var(--or-2); background: var(--marine); width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 14px; }
.etape h3 { font-size: 17px; margin-bottom: 6px; }
.etape p { font-size: 14.5px; color: var(--doux); margin: 0; }
@media (max-width: 1000px) { .methode { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .methode { grid-template-columns: 1fr; } }

/* Bloc à compléter (contenu attendu de la prépa) */
.a-completer { border: 1.5px dashed #C7D2E3; background: repeating-linear-gradient(135deg, #F8FAFD 0 10px, #F3F6FB 10px 20px); border-radius: var(--r-l); padding: 22px; color: var(--doux); font-size: 14.5px; }
.a-completer b { color: var(--encre); display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.a-completer b .lucide { width: 18px; height: 18px; color: var(--alerte); }

/* Emplacement photo */
.photo { position: relative; border-radius: var(--r-l); overflow: hidden; background: linear-gradient(160deg, var(--marine-2), var(--marine)); aspect-ratio: 4 / 3; display: grid; place-items: center; color: #A9B9D6; text-align: center; font-size: 13.5px; }
.photo::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(135deg, rgba(255,255,255,.04) 0 2px, transparent 2px 22px); }
.photo span { position: relative; display: grid; gap: 8px; justify-items: center; padding: 16px; }
.photo .lucide { width: 28px; height: 28px; color: var(--or-2); }
.photo.portrait { aspect-ratio: 1 / 1; }

/* Profil enseignant */
.prof .photo { margin-bottom: 18px; }
.prof .matiere { font-size: 13px; font-weight: 600; color: var(--marine-2); text-transform: uppercase; letter-spacing: .06em; }
.prof h3 { margin: 4px 0 10px; }
.prof dl { margin: 0; display: grid; gap: 6px; font-size: 14px; }
.prof dt { font-weight: 600; color: var(--encre); }
.prof dd { margin: 0 0 6px; color: var(--doux); }

/* Onglets */
.onglets { display: inline-flex; flex-wrap: wrap; gap: 6px; padding: 6px; background: #fff; border: 1px solid var(--trait); border-radius: 14px; box-shadow: var(--ombre-1); margin-bottom: 24px; }
.onglets button { border: 0; background: transparent; font: 600 14.5px var(--police); color: var(--doux); padding: 10px 16px; border-radius: 10px; cursor: pointer; transition: background var(--vite), color var(--vite); }
.onglets button:hover { color: var(--encre); background: var(--brume); }
.onglets button[aria-selected="true"] { background: var(--marine-2); color: #fff; }
[role="tabpanel"][hidden] { display: none; }

/* Tableau (emploi du temps) */
.cadre-tab { background: #fff; border: 1px solid var(--trait); border-radius: var(--r-l); overflow: auto; box-shadow: var(--ombre-1); }
table.tab { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 680px; }
.tab th { text-align: left; font-size: 12.5px; font-weight: 600; color: var(--doux); padding: 12px 16px; background: #F8FAF9; border-bottom: 1px solid var(--trait); }
.tab td { padding: 14px 16px; border-bottom: 1px solid #EEF2F1; vertical-align: top; }
.tab tr:last-child td { border-bottom: 0; }
.tab td.vide { color: #94A3B8; }

/* Chiffres clés */
.chiffre { text-align: left; }
.chiffre .v { font: 700 44px/1 var(--titres); color: var(--encre); letter-spacing: -.02em; }
.section.marine .chiffre .v { color: var(--or-2); }
.chiffre .l { margin-top: 10px; font-size: 14.5px; }

/* Bande d'appel */
.appel { position: relative; overflow: hidden; border-radius: var(--r-xl); background: var(--marine); color: #D3DDEF; padding: 52px; display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: center; }
.appel::after { content: ""; position: absolute; right: -140px; top: -140px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(26,143,56,.28), transparent 65%); }
.appel h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); }
.appel p { margin: 10px 0 0; font-size: 17px; }
.appel .actions { position: relative; z-index: 1; display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .appel { grid-template-columns: 1fr; padding: 34px 26px; } .appel .actions .btn { flex: 1; } }

/* Actualités */
.actu .date { font-size: 13px; color: var(--doux); display: flex; gap: 8px; align-items: center; margin-bottom: 10px; }
.actu h3 { font-family: var(--titres); font-size: 21px; }

/* Centres */
.centre-carte .ville { font-size: 13px; color: var(--doux); font-weight: 500; }
.centre-carte h3 { font: 700 23px var(--titres); margin: 2px 0 14px; }
.infos { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 10px; font-size: 14.5px; }
.infos li { display: flex; gap: 10px; align-items: flex-start; }
.infos .lucide { width: 18px; height: 18px; color: var(--marine-2); margin-top: 2px; }

/* ---------- Formulaires ---------- */
.formulaire { background: #fff; border: 1px solid var(--trait); border-radius: var(--r-xl); padding: 32px; box-shadow: var(--ombre-2); }
.formulaire h2 { font-size: 26px; }
.formulaire fieldset { border: 0; padding: 0; margin: 26px 0 0; }
.formulaire legend { font-weight: 700; color: var(--encre); font-size: 15px; display: flex; align-items: center; gap: 10px; margin-bottom: 14px; padding: 0; }
.formulaire legend .num { width: 26px; height: 26px; border-radius: 8px; background: var(--marine); color: var(--or-2); font: 700 13px var(--police); display: grid; place-items: center; }
.champs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.champs .large { grid-column: 1 / -1; }
@media (max-width: 640px) { .champs { grid-template-columns: 1fr; } .formulaire { padding: 22px 18px; } }
.champ { display: grid; gap: 6px; align-content: start; }
.champ label { font-size: 13.5px; font-weight: 600; color: var(--encre); }
.champ label .facultatif { font-weight: 400; color: var(--doux); }
.saisie { width: 100%; min-height: 48px; padding: 0 14px; border-radius: 11px; border: 1px solid var(--trait-fort); background: #fff; font: 15.5px var(--police); color: var(--encre); transition: border-color var(--vite), box-shadow var(--vite); }
textarea.saisie { padding: 12px 14px; min-height: 110px; resize: vertical; line-height: 1.5; }
select.saisie { appearance: none; padding-right: 40px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' fill='none' stroke='%235B6B7F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7 4 4 4-4'/%3E%3C/svg%3E") no-repeat right 12px center; }
.saisie::placeholder { color: #94A3B8; }
.saisie:focus { outline: 0; border-color: var(--marine-2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marine-2) 15%, transparent); }
.saisie[aria-invalid="true"] { border-color: #B42318; box-shadow: 0 0 0 4px #FDECEA; }
.aide { font-size: 12.5px; color: var(--doux); }
.erreur-champ { font-size: 12.5px; color: #B42318; }
.note-envoi { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--doux); margin-top: 16px; }
.note-envoi .lucide { width: 18px; height: 18px; color: #1FA855; margin-top: 2px; }
.confirmation { display: none; text-align: center; padding: 20px 0 6px; }
.confirmation.visible { display: block; animation: apparait .3s ease both; }
.confirmation .rond { width: 70px; height: 70px; border-radius: 50%; background: var(--ok-pale); color: var(--ok); display: grid; place-items: center; margin: 0 auto 16px; }
.confirmation .rond .lucide { width: 34px; height: 34px; stroke-width: 2.4; }

/* Tarifs */
.tarif { text-align: left; }
.tarif .montant { font: 700 34px var(--titres); color: var(--encre); margin: 6px 0 2px; }
.tarif .montant small { font: 500 14px var(--police); color: var(--doux); }

/* Contact : numéros */
.numero { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 14px; background: #fff; border: 1px solid var(--trait); text-decoration: none; color: var(--encre); font-weight: 600; font-size: 18px; transition: border-color var(--vite), box-shadow var(--vite); font-variant-numeric: tabular-nums; }
.numero:hover { border-color: var(--marine-2); box-shadow: var(--ombre-2); }
.numero .icone { margin: 0; width: 42px; height: 42px; }
.numero small { display: block; font-weight: 500; font-size: 12.5px; color: var(--doux); }

/* ---------- Pied de page ---------- */
.pied { background: #0A1E44; color: #A9B9D6; padding: 64px 0 28px; font-size: 14.5px; }
.pied .colonnes { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 36px; }
.pied h4 { color: #fff; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 16px; }
.pied ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.pied a { color: #C9D6EE; text-decoration: none; }
.pied a:hover { color: #fff; }
.pied .marque { color: #fff; margin-bottom: 16px; }
.pied .marque small { color: #A9B9D6; }
.pied .slogan { font: italic 600 17px var(--titres); color: var(--or-2); }
.pied .bas { border-top: 1px solid rgba(255,255,255,.1); margin-top: 44px; padding-top: 22px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 13px; }
@media (max-width: 900px) { .pied .colonnes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied .colonnes { grid-template-columns: 1fr; } }

/* Bouton WhatsApp flottant */
.wa-flottant { position: fixed; right: 18px; bottom: 18px; z-index: 60; width: 58px; height: 58px; border-radius: 50%; background: #1FA855; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 26px -8px rgba(31,168,85,.7); transition: transform var(--vite); }
.wa-flottant:hover { transform: scale(1.06); }
.wa-flottant svg { width: 30px; height: 30px; }

/* Apparition au défilement */
.revele { opacity: 0; transform: translateY(14px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.revele.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .revele { opacity: 1; transform: none; }
}
.deux-col { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.deux-col.haut { align-items: start; }
@media (max-width: 900px) { .deux-col { grid-template-columns: 1fr; gap: 32px; } }
.texte-riche p { font-size: 16.5px; }
.citation { font: italic 600 22px/1.4 var(--titres); color: var(--encre); border-left: 3px solid var(--or); padding-left: 20px; margin: 0; }

/* ---------- Page unique : en-tête connexion / inscription ---------- */
.acces { margin-left: auto; display: flex; gap: 10px; }
@media (max-width: 520px) { .acces { gap: 8px; } .acces .btn { padding: 0 13px; font-size: 14px; min-height: 40px; } .entete .conteneur { gap: 10px; } }
@media (max-width: 440px) { .entete .marque > span:last-child { display: none; } }

/* ---------- Récit au défilement : une partie se fixe, ses points défilent sur place ---------- */
.recit { position: relative; background: #fff; }
.recit.grise { background: var(--brume); }
.recit.marine { background: var(--marine); color: #D3DDEF; }
.recit.marine h2, .recit.marine h3 { color: #fff; }
.recit.marine .surtitre { color: var(--or-2); }
.recit-scene { padding: 72px 0; }
.recit-grille { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.recit-points { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.recit-points button { all: unset; box-sizing: border-box; cursor: pointer; display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 14px; border-radius: 12px; font-size: 15.5px; font-weight: 600; color: var(--doux); transition: background var(--vite), color var(--vite); }
.recit-points button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--trait-fort); flex: none; transition: background var(--vite), transform var(--vite); }
.recit-points button:focus-visible { outline: 2px solid var(--marine-2); outline-offset: 2px; }
.recit-points button[aria-current="true"] { background: #fff; color: var(--encre); box-shadow: var(--ombre-1); }
.recit-points button[aria-current="true"]::before { background: var(--or); transform: scale(1.3); }
.recit.grise .recit-points button[aria-current="true"] { background: #fff; }
.recit.marine .recit-points button { color: #A9B9D6; }
.recit.marine .recit-points button::before { background: rgba(255,255,255,.25); }
.recit.marine .recit-points button[aria-current="true"] { background: rgba(255,255,255,.08); color: #fff; box-shadow: none; }
.recit-pile { display: grid; gap: 18px; }
.recit-item { background: #fff; border: 1px solid var(--trait); border-radius: var(--r-xl); padding: 34px; box-shadow: var(--ombre-2); }
.recit.marine .recit-item { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); box-shadow: none; color: #C9D6EE; }
.recit-item h3 { font-size: clamp(22px, 2.4vw, 30px); margin: 14px 0 8px; }
.recit-item p { font-size: 16.5px; color: var(--texte); margin: 0; }
.recit.marine .recit-item p { color: #C9D6EE; }
.recit-code { width: 74px; height: 74px; border-radius: 18px; background: var(--marine); color: var(--or-2); display: grid; place-items: center; font: 700 26px var(--titres); margin-bottom: 18px; }
.recit-item .pastille { vertical-align: middle; }
.recit-icone { width: 64px; height: 64px; border-radius: 18px; background: var(--marine-pale); color: var(--marine-2); display: grid; place-items: center; margin-bottom: 16px; }
.recit-icone.or { background: var(--or-pale); color: var(--or); }
.recit.marine .recit-icone.or { background: rgba(51,181,86,.16); color: var(--or-2); }
.recit-icone .lucide { width: 30px; height: 30px; }
.recit-num { font: 700 14px var(--titres); color: var(--or-2); background: var(--marine); padding: 4px 10px; border-radius: 8px; }
.recit-item .photo { aspect-ratio: 16 / 9; margin-bottom: 6px; }
.recit-item .lien-fleche { margin-top: 14px; color: var(--or-2); }
.recit-barre { display: none; }
.contacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 28px; align-items: stretch; }
.contacts .btn { height: 100%; }
@media (max-width: 1000px) { .contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .contacts { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .recit-grille { grid-template-columns: 1fr; gap: 22px; }
  .recit-item { padding: 24px; }
}

/* Mode animé (activé par le script, jamais si l'appareil a coupé les animations) */
.anime .recit { height: calc(var(--n) * 62vh + 100vh); }
.anime .recit-scene { position: sticky; top: 74px; height: calc(100vh - 74px); height: calc(100svh - 74px); padding: 0; display: flex; align-items: center; overflow: hidden; }
.anime .recit-scene > .conteneur { width: 100%; }
.anime .recit-pile { gap: 0; }
.anime .recit-item { grid-area: 1 / 1; opacity: 0; transform: translateY(48px) scale(.97); pointer-events: none; visibility: hidden; transition: opacity .5s cubic-bezier(.2,.7,.2,1), transform .5s cubic-bezier(.2,.7,.2,1), visibility 0s .5s; }
.anime .recit-item.passe { transform: translateY(-48px) scale(.97); }
.anime .recit-item.actif { opacity: 1; transform: none; pointer-events: auto; visibility: visible; transition-delay: 0s; }
.anime .recit-barre { display: block; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(14,34,87,.08); }
.anime .recit.marine .recit-barre { background: rgba(255,255,255,.1); }
.anime .recit-barre span { display: block; height: 100%; width: 100%; background: var(--or); transform-origin: left; transform: scaleX(0); }
@media (max-width: 900px) {
  .anime .recit { height: calc(var(--n) * 55vh + 100vh); }
  .anime .recit-scene { align-items: flex-start; padding-top: 28px; }
  .anime .recit .titre-section { font-size: 26px; }
  .anime .recit-points { display: flex; gap: 8px; margin-top: 16px; }
  .anime .recit-points button { padding: 0; width: 34px; height: 6px; border-radius: 99px; background: var(--trait-fort); font-size: 0; }
  .anime .recit-points button::before { display: none; }
  .anime .recit-points button[aria-current="true"] { background: var(--or); box-shadow: none; }
  .anime .recit.marine .recit-points button { background: rgba(255,255,255,.22); }
  .anime .recit.marine .recit-points button[aria-current="true"] { background: var(--or); }
}

/* Logo réel (toque + livre), à la place du monogramme */
.logo { width: 46px; height: 40px; flex: none; }
.pied .logo { background: #fff; border-radius: 10px; padding: 4px; width: 54px; height: 48px; }

/* ---------- Vitrine : vrais contenus (affiches et photos de la prépa) ---------- */
.heros-photo { position: relative; margin: 0; }
.heros-photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; object-position: 50% 72%; border-radius: var(--r-xl); box-shadow: var(--ombre-3); border: 1px solid rgba(255,255,255,.18); }
.heros-badge { position: absolute; left: -22px; bottom: -22px; background: #fff; color: var(--encre); border-radius: 16px; padding: 14px 18px; box-shadow: var(--ombre-3); display: flex; align-items: center; gap: 12px; max-width: 290px; }
.heros-badge b { font: 800 28px var(--titres); color: var(--or); white-space: nowrap; }
.heros-badge span { font-size: 13.5px; line-height: 1.35; font-weight: 600; }
@media (max-width: 960px) { .heros-badge { left: 12px; bottom: -18px; } }
.resultats { background: var(--marine); border-top: 1px solid rgba(255,255,255,.08); padding: 40px 0 46px; }
.resultats-titre { text-align: center; color: #A9B9D6; font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 18px; }
.resultats-grille { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; max-width: 860px; margin: 0 auto; }
.resultat { text-align: center; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r-l); padding: 20px 10px; }
.resultat b { display: block; font: 800 clamp(30px, 5vw, 46px)/1 var(--titres); color: var(--or-2); }
.resultat span { display: block; margin-top: 8px; color: #fff; font-weight: 600; font-size: 15px; }
@media (max-width: 520px) { .resultats-grille { gap: 8px; } .resultat { padding: 14px 4px; } .resultat span { font-size: 13px; } }
.recit-item.avec-photo { padding-top: 0; overflow: hidden; }
.recit-item.avec-photo img { width: calc(100% + 68px); margin: 0 -34px 22px; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
@media (max-width: 900px) { .recit-item.avec-photo img { width: calc(100% + 48px); margin: 0 -24px 18px; aspect-ratio: 2 / 1; } }
.tarif-centre { display: grid; gap: 2px; margin: 4px 0 16px; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.tarif-centre span { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--or-2); }
.tarif-centre b { color: #fff; font-size: 15.5px; font-weight: 600; }
.nuit-grille { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.nuit-texte { font-size: 17px; margin: 0 0 18px; }
.nuit-photo { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r-xl); box-shadow: var(--ombre-2); }
@media (max-width: 900px) { .nuit-grille { grid-template-columns: 1fr; gap: 28px; } }
.tarifs { max-width: 760px; background: #fff; border: 1px solid var(--trait); border-radius: var(--r-l); overflow: hidden; box-shadow: var(--ombre-1); }
.tarifs .tab { width: 100%; border-collapse: collapse; }
.tarifs .droite { text-align: right; font-variant-numeric: tabular-nums; }
.tarifs .aide { padding: 12px 16px; margin: 0; border-top: 1px solid var(--trait); }
@media (max-width: 520px) { .tarifs .tab th, .tarifs .tab td { padding: 12px 10px; font-size: 14px; } }
.galerie { padding: 8px 0 72px; }
.galerie-bande { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: 14px; overflow-x: auto; padding: 0 max(24px, calc((100vw - var(--largeur)) / 2 + 24px)); scroll-snap-type: x mandatory; }
.galerie-bande img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--r-l); scroll-snap-align: start; }
.numero.principal { border-color: var(--or); box-shadow: 0 0 0 3px var(--or-pale); }
.numero.principal small { color: var(--or); font-weight: 700; }

/* ---------- Cartes de la page d'accueil (remplacent le défilement pas à pas) ---------- */
.carte.formation { display: flex; flex-direction: column; }
.carte.formation .recit-code { width: 58px; height: 58px; font-size: 20px; border-radius: 15px; margin-bottom: 14px; }
.carte.formation h3 { font-size: 19px; margin: 12px 0 6px; }
.carte.formation p { font-size: 15px; }
.carte.formation .puces-matieres { margin-top: auto; padding-top: 14px; }
.carte.atout { padding: 0; overflow: hidden; }
.carte.atout img { width: 100%; max-width: none; height: auto; aspect-ratio: 4 / 3; object-fit: cover; margin: 0; }
.carte.atout .recit-num { display: inline-block; margin: 20px 24px 0; }
.carte.atout h3 { margin: 12px 24px 6px; font-size: 20px; }
.carte.atout p { margin: 0 24px 24px; font-size: 15.5px; }
.carte.centre-carte h3 { font-size: 22px; margin: 4px 0 4px; color: #fff; }
.carte.centre-carte .recit-icone { width: 52px; height: 52px; border-radius: 14px; margin-bottom: 14px; background: rgba(51,181,86,.16); color: var(--or-2); }
.carte.centre-carte .lien-fleche { color: var(--or-2); }
.tarifs { margin-left: auto; margin-right: auto; }
.tarifs + .aide, .tarifs .aide { text-align: center; }
.galerie .entete-section { margin-bottom: 28px; }
.slogan { white-space: normal; text-wrap: balance; }
.carte.formation .pastille { align-self: flex-start; }
.carte.centre-carte p { min-height: 2.9em; }
@media (max-width: 600px) { .tarifs .tab th, .tarifs .tab td { padding: 11px 10px; font-size: 13.5px; white-space: normal; } .tarifs .tab th { font-size: 11.5px; } }
.par-mois { color: var(--doux); font-weight: 400; }
@media (max-width: 600px) { .par-mois { display: block; font-size: 11.5px; } }
.tarifs table.tab { min-width: 0; }
