/* ==========================================================================
   CS-FAG — Complexe Scolaire Francoarabe GNIETAA
   Feuille de style unique — système de design + composants + pages
   Auteur : site institutionnel statique (HTML5 / CSS3 / JS vanille)
   Organisation :
     01. Tokens (couleurs, typo, espacements, ombres)
     02. Reset & bases
     03. Utilitaires de mise en page
     04. Typographie & titres de section
     05. Boutons & liens
     06. Header (barre info + navigation + menu mobile)
     07. Hero
     08. Cartes & grilles
     09. Sections spécifiques
     10. Formulaires
     11. Footer & WhatsApp flottant
     12. Animations au scroll
     13. Responsive
   ========================================================================== */


/* ==========================================================================
   00. POLICES — hébergées avec le site
   --------------------------------------------------------------------------
   Poppins et Nunito sont servies depuis assets/fonts/ et non depuis Google
   Fonts. Trois raisons :
     - une requête vers un serveur tiers en moins, ce qui compte sur une
       connexion mobile lente ;
     - plus de réagencement du texte au chargement (la page ne s'affiche plus
       d'abord dans la police système avec des métriques différentes) ;
     - le site reste identique même si fonts.googleapis.com est lent ou filtré.

   Sous-ensemble « latin » : couvre le français (é è à ç ô ù î), les guillemets
   « », l'apostrophe typographique ’, le tiret cadratin — et les points de
   suspension …  Les caractères hors de ce jeu (l'arabe du logo, par exemple)
   basculent glyphe par glyphe sur la police suivante de la pile.
   ========================================================================== */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/Poppins-400.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/Poppins-500.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/Poppins-600.woff2") format("woff2"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/Poppins-700.woff2") format("woff2"); }

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/Nunito-400.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600; font-display: swap;
  src: url("../fonts/Nunito-600.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 700; font-display: swap;
  src: url("../fonts/Nunito-700.woff2") format("woff2"); }


/* ==========================================================================
   01. TOKENS
   ========================================================================== */

:root {
  /* --- Couleurs de marque --- */
  --vert-900: #063D1F;   /* vert très profond — footer, survols */
  --vert-800: #0A5C2C;
  --vert-700: #0A7A3D;   /* VERT PRINCIPAL — confiance, éducation */
  --vert-600: #12924A;
  --vert-300: #B7D36B;   /* vert clair — croissance, espoir */
  --vert-100: #E8F3E4;   /* fonds de section très doux */

  /* Orange de marque. Deux déclinaisons volontairement distinctes :
     — `--orange-vif` est l'orange du logo. Très lumineux, il ne peut pas
       porter de texte blanc (contraste 2,7:1). Réservé aux aplats décoratifs.
     — `--orange-600` / `--orange-700` sont les versions qui portent du texte
       (boutons, liens, sur-titres) et respectent le contraste AA (≥ 4,5:1). */
  --orange-vif: #F57C00; /* logo & aplats purement décoratifs */
  --orange-600: #B35600; /* boutons et surfaces avec texte blanc — 4,94:1 */
  --orange-700: #8F4600; /* texte orange sur fond clair, survols — 6,90:1 */
  --orange-300: #FFB65C; /* accent clair, uniquement sur fond vert foncé */
  --orange-100: #FFF0DC;

  --or-500: #E8B429;     /* or doux — touches secondaires */

  /* --- Neutres --- */
  --blanc: #FFFFFF;
  --creme: #FFF9ED;      /* fond doux — sérénité */
  --creme-2: #FAF6EE;
  --gris-050: #F5F6F4;
  --gris-200: #E4E7E2;
  --gris-400: #9BA29A;
  --gris-600: #5F6660;
  --gris-900: #2B2F2C;   /* texte principal */

  /* --- Rôles sémantiques --- */
  --texte: var(--gris-900);
  --texte-doux: var(--gris-600);
  --fond: var(--blanc);
  --bordure: var(--gris-200);

  /* --- Typographie --- */
  --font-titre: "Poppins", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-texte: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;

  /* Échelle fluide : lisible sur mobile, généreuse sur grand écran */
  --t-xs:   0.8125rem;
  --t-sm:   0.9375rem;
  --t-base: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --t-lg:   clamp(1.075rem, 1rem + 0.35vw, 1.25rem);
  --t-xl:   clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  --t-2xl:  clamp(1.5rem, 1.3rem + 0.9vw, 2rem);
  --t-3xl:  clamp(1.875rem, 1.5rem + 1.6vw, 2.75rem);
  --t-4xl:  clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);

  /* --- Espacements --- */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.5rem;
  --sp-6: 2rem;
  --sp-7: 2.5rem;
  --sp-8: 3.5rem;
  --sp-9: 5rem;
  --section-y: clamp(3.5rem, 2.5rem + 4vw, 7rem);

  /* --- Formes --- */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* --- Ombres (très légères, jamais dramatiques) --- */
  --ombre-1: 0 1px 2px rgba(6, 61, 31, .05), 0 2px 8px rgba(6, 61, 31, .04);
  --ombre-2: 0 2px 4px rgba(6, 61, 31, .05), 0 8px 24px rgba(6, 61, 31, .07);
  --ombre-3: 0 6px 12px rgba(6, 61, 31, .07), 0 18px 44px rgba(6, 61, 31, .10);

  /* --- Mouvement --- */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --vite: 180ms var(--ease);
  --moyen: 320ms var(--ease);

  /* --- Gabarit --- */
  --largeur: 1200px;
  --largeur-texte: 68ch;
  --gouttiere: clamp(1.125rem, 0.6rem + 2.2vw, 2.5rem);
  --header-h: 76px;
}


/* ==========================================================================
   02. RESET & BASES
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Compense le header collant lors des ancres internes */
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font-texte);
  font-size: var(--t-base);
  line-height: 1.7;
  color: var(--texte);
  background: var(--fond);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-ouvert { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: var(--vert-700); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--orange-700); }

h1, h2, h3, h4, h5 {
  font-family: var(--font-titre);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--vert-900);
  margin: 0 0 var(--sp-4);
  text-wrap: balance;
}

p { margin: 0 0 var(--sp-4); text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0 0 var(--sp-4); padding-left: 1.35rem; }
li { margin-bottom: var(--sp-2); }

strong { font-weight: 700; color: var(--vert-800); }

/* Accessibilité : focus toujours visible et lisible sur tous les fonds */
:focus-visible {
  outline: 3px solid var(--orange-600);
  outline-offset: 3px;
  border-radius: 4px;
}

/* Lien d'évitement pour la navigation au clavier */
.saut-contenu {
  position: absolute;
  left: var(--sp-4);
  top: -100px;
  z-index: 200;
  background: var(--vert-700);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: 0 0 var(--r-md) var(--r-md);
  font-weight: 700;
  transition: top var(--vite);
}
.saut-contenu:focus { top: 0; color: #fff; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}


/* ==========================================================================
   03. UTILITAIRES DE MISE EN PAGE
   ========================================================================== */

.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}
.conteneur--etroit { max-width: 860px; }

.section { padding-block: var(--section-y); }
.section--creme { background: var(--creme); }
.section--vert-clair { background: var(--vert-100); }
.section--vert {
  background: var(--vert-800);
  color: rgba(255, 255, 255, .88);
}
.section--vert h2,
.section--vert h3 { color: #fff; }

/* Bandeau décoratif : motif géométrique discret d'inspiration franco-arabe.
   Dessiné en CSS pur (aucune image) pour rester léger. */
.motif-separateur {
  height: 8px;
  background-image:
    linear-gradient(135deg, var(--vert-700) 25%, transparent 25%),
    linear-gradient(225deg, var(--vert-700) 25%, transparent 25%),
    linear-gradient(45deg,  var(--orange-vif) 25%, transparent 25%),
    linear-gradient(315deg, var(--orange-vif) 25%, transparent 25%);
  background-position: 0 0, 0 0, 8px 0, 8px 0;
  background-size: 16px 16px;
  background-repeat: repeat-x;
  opacity: .55;
}

.grille { display: grid; gap: var(--sp-5); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }

/* Bloc « média + texte » réutilisé sur toutes les pages intérieures */
.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 1rem + 4vw, 4.5rem);
  align-items: center;
}
.duo--inverse .duo__media { order: 2; }

.duo__media {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--ombre-2);
  aspect-ratio: 4 / 3;
}
.duo__media img { width: 100%; height: 100%; object-fit: cover; }

/* Petit cartouche vert posé sur l'image */
.duo__cartouche {
  position: absolute;
  left: var(--sp-5); bottom: var(--sp-5);
  background: rgba(10, 122, 61, .94);
  color: #fff;
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-md);
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: var(--t-sm);
  backdrop-filter: blur(4px);
}


/* ==========================================================================
   04. TYPOGRAPHIE & TITRES DE SECTION
   ========================================================================== */

.surtitre {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-titre);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: var(--sp-3);
}
.surtitre::before {
  content: "";
  width: 28px; height: 2px;
  background: var(--orange-600);
  border-radius: 2px;
}
.section--vert .surtitre { color: var(--orange-300); }
.section--vert .surtitre::before { background: var(--orange-300); }

.titre-section { font-size: var(--t-3xl); margin-bottom: var(--sp-4); }
.titre-page { font-size: var(--t-4xl); }

.chapeau {
  font-size: var(--t-lg);
  color: var(--texte-doux);
  max-width: var(--largeur-texte);
}
.section--vert .chapeau { color: rgba(255, 255, 255, .82); }

.entete-section { max-width: 760px; margin-bottom: var(--sp-8); }
.entete-section--centre { margin-inline: auto; text-align: center; }
.entete-section--centre .surtitre { justify-content: center; }
.entete-section--centre .chapeau { margin-inline: auto; }

/* Corps de texte long (pages éditoriales) */
.prose { max-width: var(--largeur-texte); font-size: var(--t-lg); }
.prose h2 { font-size: var(--t-2xl); margin-top: var(--sp-8); }
.prose h3 { font-size: var(--t-xl); margin-top: var(--sp-6); }
.prose > *:first-child { margin-top: 0; }


/* ==========================================================================
   05. BOUTONS & LIENS
   ========================================================================== */

.btn {
  --btn-fond: var(--vert-700);
  --btn-texte: #fff;
  --btn-bordure: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: 0.85rem 1.6rem;
  font-family: var(--font-titre);
  font-size: var(--t-sm);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  color: var(--btn-texte);
  background: var(--btn-fond);
  border: 2px solid var(--btn-bordure);
  border-radius: var(--r-full);
  cursor: pointer;
  transition: transform var(--vite), box-shadow var(--vite),
              background-color var(--vite), color var(--vite), border-color var(--vite);
}
.btn:hover {
  color: var(--btn-texte);
  transform: translateY(-2px);
  box-shadow: var(--ombre-2);
}
.btn:active { transform: translateY(0); }

.btn--orange { --btn-fond: var(--orange-600); }
.btn--orange:hover { --btn-fond: var(--orange-700); }

.btn--contour {
  --btn-fond: transparent;
  --btn-texte: var(--vert-700);
  --btn-bordure: var(--vert-700);
}
.btn--contour:hover { --btn-fond: var(--vert-700); --btn-texte: #fff; }

.btn--blanc {
  --btn-fond: #fff;
  --btn-texte: var(--vert-800);
}
.btn--contour-blanc {
  --btn-fond: transparent;
  --btn-texte: #fff;
  --btn-bordure: rgba(255, 255, 255, .55);
}
.btn--contour-blanc:hover { --btn-fond: #fff; --btn-texte: var(--vert-800); --btn-bordure: #fff; }

.btn--grand { padding: 1.05rem 2rem; font-size: var(--t-base); }
.btn--bloc { width: 100%; }

.btn svg { width: 18px; height: 18px; flex: none; }

/* Lien « flèche » discret utilisé dans les cartes */
.lien-fleche {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-family: var(--font-titre);
  font-weight: 600;
  font-size: var(--t-sm);
  text-decoration: none;
  color: var(--vert-700);
}
.lien-fleche svg { transition: transform var(--vite); width: 16px; height: 16px; }
.lien-fleche:hover svg { transform: translateX(4px); }

.groupe-btn { display: flex; flex-wrap: wrap; gap: var(--sp-3); }


/* ==========================================================================
   06. HEADER
   ========================================================================== */

/* --- 6a. Barre d'informations pratiques (au-dessus du header) --- */
.barre-info {
  background: var(--vert-900);
  color: rgba(255, 255, 255, .82);
  font-size: var(--t-xs);
}
.barre-info__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-5);
  min-height: 42px;
  flex-wrap: wrap;
}
.barre-info__liste {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  list-style: none;
  margin: 0; padding: 0;
  flex-wrap: wrap;
}
.barre-info__liste li { margin: 0; }
.barre-info a, .barre-info__item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: inherit;
  text-decoration: none;
  transition: color var(--vite);
}
.barre-info a:hover { color: var(--orange-300); }
.barre-info svg { width: 14px; height: 14px; flex: none; opacity: .8; }

.barre-info__reseaux { display: flex; gap: var(--sp-3); }
.barre-info__reseaux a { opacity: .8; }
.barre-info__reseaux a:hover { opacity: 1; }

/* --- 6b. Header principal --- */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--bordure);
  transition: box-shadow var(--moyen);
}
.header.est-colle { box-shadow: var(--ombre-2); }

.header__inner {
  display: flex;
  align-items: center;
  gap: var(--sp-5);
  min-height: var(--header-h);
}

/* Marque : emblème + bloc texte */
.marque {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  flex: none;
}
.marque__embleme { width: 46px; height: 46px; flex: none; }
.marque__texte { display: flex; flex-direction: column; line-height: 1.1; }
.marque__nom {
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: 1.0625rem;
  letter-spacing: .01em;
  color: var(--vert-800);
}
.marque__nom span { color: var(--orange-600); }
.marque__baseline {
  font-size: 0.6875rem;
  color: var(--texte-doux);
  letter-spacing: .04em;
}

/* --- 6c. Navigation desktop --- */
.nav { margin-left: auto; }
.nav__liste {
  display: flex;
  align-items: center;
  gap: var(--sp-1);
  list-style: none;
  margin: 0; padding: 0;
}
.nav__liste li { margin: 0; }
.nav__lien {
  display: block;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-titre);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gris-900);
  text-decoration: none;
  border-radius: var(--r-sm);
  position: relative;
  transition: color var(--vite), background-color var(--vite);
}
.nav__lien:hover { color: var(--vert-700); background: var(--vert-100); }

/* Soulignement animé de la page active */
.nav__lien[aria-current="page"] { color: var(--vert-700); font-weight: 600; }
.nav__lien[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 0.75rem; right: 0.75rem; bottom: 0.25rem;
  height: 2px;
  background: var(--orange-600);
  border-radius: 2px;
}

.header__cta { flex: none; margin-left: var(--sp-3); }

/* Le libellé court ne sert qu'en dessous de 940px (voir § 13) */
.header__cta .cta-court { display: none; }

/* --- 6d. Bouton hamburger --- */
.hamburger {
  display: none;
  margin-left: auto;
  width: 46px; height: 46px;
  padding: 0;
  background: var(--vert-100);
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.hamburger__barres { position: relative; width: 20px; height: 14px; }
.hamburger__barres span {
  position: absolute;
  left: 0;
  width: 100%; height: 2px;
  background: var(--vert-800);
  border-radius: 2px;
  transition: transform var(--moyen), opacity var(--vite);
}
.hamburger__barres span:nth-child(1) { top: 0; }
.hamburger__barres span:nth-child(2) { top: 6px; }
.hamburger__barres span:nth-child(3) { top: 12px; }

.hamburger[aria-expanded="true"] .hamburger__barres span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.hamburger[aria-expanded="true"] .hamburger__barres span:nth-child(2) { opacity: 0; }
.hamburger[aria-expanded="true"] .hamburger__barres span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* --- 6e. Panneau mobile --- */
.panneau-mobile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: var(--blanc);
  padding: calc(var(--header-h) + 1.5rem) var(--gouttiere) var(--sp-7);
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity var(--moyen), transform var(--moyen), visibility var(--moyen);
}
.panneau-mobile.est-ouvert { opacity: 1; visibility: visible; transform: none; }

.panneau-mobile__liste { list-style: none; margin: 0 0 var(--sp-6); padding: 0; }
.panneau-mobile__liste li { margin: 0; border-bottom: 1px solid var(--bordure); }
.panneau-mobile__lien {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0.25rem;
  font-family: var(--font-titre);
  font-size: 1.0625rem;
  font-weight: 500;
  color: var(--vert-900);
  text-decoration: none;
}
.panneau-mobile__lien[aria-current="page"] { color: var(--orange-700); font-weight: 700; }
.panneau-mobile__contact {
  margin-top: var(--sp-6);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--bordure);
  font-size: var(--t-sm);
  color: var(--texte-doux);
}
.panneau-mobile__contact a { color: var(--vert-700); text-decoration: none; font-weight: 600; }


/* ==========================================================================
   07. HERO
   ========================================================================== */

.hero {
  position: relative;
  display: grid;
  align-items: center;
  min-height: min(78vh, 680px);
  padding-block: clamp(3.5rem, 2rem + 8vw, 7rem);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero__fond {
  position: absolute;
  inset: 0;
  z-index: -2;
}
.hero__fond img { width: 100%; height: 100%; object-fit: cover; }

/* Voile vert : garantit un contraste texte/image AA quelle que soit la photo */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Voile allege : la banniere porte desormais une photographie reelle de
     l'etablissement, qui doit rester lisible. Le degrade reste dense a gauche
     (contraste du texte) et s'efface a droite pour degager le batiment. */
  background:
    linear-gradient(100deg, rgba(6, 61, 31, .90) 0%, rgba(6, 61, 31, .74) 40%, rgba(10, 92, 44, .38) 72%, rgba(10, 92, 44, .14) 100%);
}

.hero__contenu { max-width: 720px; }

/* Pastille « Ouverture — Rentrée 2026-2027 » */
.pastille {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.45rem 1rem 0.45rem 0.6rem;
  margin-bottom: var(--sp-5);
  background: rgba(255, 255, 255, .13);
  border: 1px solid rgba(255, 255, 255, .3);
  border-radius: var(--r-full);
  font-family: var(--font-titre);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: #fff;
  backdrop-filter: blur(6px);
}
.pastille__point {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--orange-vif);
  box-shadow: 0 0 0 4px rgba(245, 124, 0, .3);
  animation: pulsation 2.4s ease-in-out infinite;
}
@keyframes pulsation {
  0%, 100% { box-shadow: 0 0 0 3px rgba(255, 182, 92, .28); }
  50%      { box-shadow: 0 0 0 8px rgba(255, 182, 92, 0); }
}

.hero__titre {
  font-size: var(--t-4xl);
  color: #fff;
  margin-bottom: var(--sp-4);
}
.hero__titre em { font-style: normal; color: var(--orange-300); }

.hero__sous-titre {
  font-size: var(--t-lg);
  color: rgba(255, 255, 255, .9);
  max-width: 58ch;
  margin-bottom: var(--sp-6);
}

/* Bandeau de repères sous le hero */
.hero__reperes {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .2);
}
.hero__repere { display: flex; align-items: center; gap: var(--sp-3); }
.hero__repere svg { width: 22px; height: 22px; color: var(--orange-300); flex: none; }
.hero__repere-texte { font-size: var(--t-sm); line-height: 1.35; }
.hero__repere-texte b { display: block; font-family: var(--font-titre); color: #fff; }
.hero__repere-texte span { color: rgba(255, 255, 255, .7); }

/* --- Hero secondaire des pages intérieures --- */
.hero-page {
  position: relative;
  padding-block: clamp(3rem, 2rem + 6vw, 5.5rem);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
}
.hero-page__fond { position: absolute; inset: 0; z-index: -2; }
.hero-page__fond img { width: 100%; height: 100%; object-fit: cover; }
.hero-page::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(6, 61, 31, .94) 0%, rgba(6, 61, 31, .8) 55%, rgba(10, 92, 44, .55) 100%);
}
.hero-page__titre { color: #fff; font-size: var(--t-4xl); margin-bottom: var(--sp-3); }
.hero-page__chapeau { font-size: var(--t-lg); color: rgba(255, 255, 255, .87); max-width: 60ch; }

/* Fil d'Ariane */
.ariane { font-size: var(--t-xs); margin-bottom: var(--sp-4); color: rgba(255, 255, 255, .7); }
.ariane ol { display: flex; flex-wrap: wrap; gap: var(--sp-2); list-style: none; margin: 0; padding: 0; }
.ariane li { margin: 0; display: flex; align-items: center; gap: var(--sp-2); }
.ariane li + li::before { content: "›"; opacity: .6; }
.ariane a { color: rgba(255, 255, 255, .85); text-decoration: none; }
.ariane a:hover { color: var(--orange-300); text-decoration: underline; }
.ariane [aria-current="page"] { color: #fff; font-weight: 600; }


/* ==========================================================================
   08. CARTES & GRILLES
   ========================================================================== */

.carte {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-6);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-1);
  transition: transform var(--moyen), box-shadow var(--moyen), border-color var(--moyen);
}
.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-3);
  border-color: rgba(10, 122, 61, .25);
}
.carte h3 { font-size: var(--t-xl); margin-bottom: var(--sp-3); }
.carte p { color: var(--texte-doux); }
.carte__pied { margin-top: auto; padding-top: var(--sp-4); }

/* Icône ronde en tête de carte */
.carte__icone {
  display: grid;
  place-items: center;
  width: 56px; height: 56px;
  margin-bottom: var(--sp-5);
  background: var(--vert-100);
  color: var(--vert-700);
  border-radius: var(--r-md);
  transition: background-color var(--moyen), color var(--moyen);
}
.carte__icone svg { width: 26px; height: 26px; }
.carte:hover .carte__icone { background: var(--vert-700); color: #fff; }

.carte--orange .carte__icone { background: var(--orange-100); color: var(--orange-700); }
.carte--orange:hover .carte__icone { background: var(--orange-600); color: #fff; }

/* --- Cartes « valeurs » --- */
.valeur {
  position: relative;
  padding: var(--sp-7) var(--sp-6);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  text-align: center;
  overflow: hidden;
  transition: transform var(--moyen), box-shadow var(--moyen);
}
/* Filet coloré révélé au survol */
.valeur::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--vert-700), var(--orange-vif));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--moyen);
}
.valeur:hover { transform: translateY(-5px); box-shadow: var(--ombre-3); }
.valeur:hover::before { transform: scaleX(1); }

.valeur__icone {
  display: grid;
  place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto var(--sp-5);
  background: var(--vert-100);
  color: var(--vert-700);
  border-radius: 50%;
}
.valeur__icone svg { width: 30px; height: 30px; }
.valeur h3 {
  font-size: var(--t-lg);
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: var(--sp-3);
}
.valeur p { font-size: var(--t-sm); color: var(--texte-doux); margin: 0; }

/* --- Cartes « niveaux » avec photo --- */
.niveau {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--ombre-1);
  transition: transform var(--moyen), box-shadow var(--moyen);
}
.niveau:hover { transform: translateY(-5px); box-shadow: var(--ombre-3); }
.niveau__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.niveau__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 600ms var(--ease);
}
.niveau:hover .niveau__media img { transform: scale(1.05); }

.niveau__age {
  position: absolute;
  top: var(--sp-4); left: var(--sp-4);
  padding: 0.35rem 0.85rem;
  background: var(--orange-600);
  color: #fff;
  border-radius: var(--r-full);
  font-family: var(--font-titre);
  font-size: var(--t-xs);
  font-weight: 700;
  letter-spacing: .03em;
}
.niveau__corps { display: flex; flex-direction: column; flex: 1; padding: var(--sp-6); }
.niveau__corps h3 { font-size: var(--t-xl); margin-bottom: var(--sp-3); }
.niveau__corps p { color: var(--texte-doux); font-size: var(--t-sm); }
.niveau__pied { margin-top: auto; padding-top: var(--sp-5); }

/* --- Liste à puces cochées --- */
.liste-check { list-style: none; margin: 0; padding: 0; }
.liste-check li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: var(--sp-3);
}
.liste-check li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--vert-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230A7A3D' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.section--vert .liste-check li::before { background-color: rgba(255, 255, 255, .16); }

/* Liste des interdits — ton pédagogique, pas punitif */
.liste-interdit { list-style: none; margin: 0; padding: 0; }
.liste-interdit li { position: relative; padding-left: 2rem; margin-bottom: var(--sp-3); }
.liste-interdit li::before {
  content: "";
  position: absolute;
  left: 0; top: .45em;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--orange-100) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D96A00' stroke-width='3' stroke-linecap='round'%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3C/svg%3E") center / 11px no-repeat;
}


/* ==========================================================================
   09. SECTIONS SPÉCIFIQUES
   ========================================================================== */

/* --- Bandeau d'appel à l'action (mi-page) --- */
.bandeau-cta {
  position: relative;
  padding-block: clamp(3rem, 2rem + 5vw, 5rem);
  color: #fff;
  isolation: isolate;
  overflow: hidden;
  text-align: center;
}
.bandeau-cta__fond { position: absolute; inset: 0; z-index: -2; }
.bandeau-cta__fond img { width: 100%; height: 100%; object-fit: cover; }
.bandeau-cta::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(6, 61, 31, .93), rgba(10, 92, 44, .9));
}
.bandeau-cta h2 { color: #fff; font-size: var(--t-3xl); }
.bandeau-cta p { color: rgba(255, 255, 255, .85); max-width: 60ch; margin-inline: auto; margin-bottom: var(--sp-6); }
.bandeau-cta .groupe-btn { justify-content: center; }

/* --- Citation / message de la directrice --- */
.citation {
  position: relative;
  padding: var(--sp-8) var(--sp-7);
  background: var(--creme);
  border-left: 4px solid var(--orange-vif);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  font-family: var(--font-titre);
  font-size: var(--t-xl);
  font-weight: 500;
  font-style: italic;
  line-height: 1.5;
  color: var(--vert-900);
}
.citation__auteur {
  display: block;
  margin-top: var(--sp-5);
  font-size: var(--t-sm);
  font-style: normal;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--orange-700);
}

/* Signature manuscrite en fin de message */
.signature {
  margin-top: var(--sp-7);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--bordure);
}
.signature__nom {
  font-family: var(--font-titre);
  font-size: var(--t-xl);
  font-weight: 700;
  color: var(--vert-800);
  margin: 0;
}
.signature__role { font-size: var(--t-sm); color: var(--texte-doux); margin: 0; }

/* --- Tarifs --- */
.tarif {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: var(--sp-7) var(--sp-6);
  background: var(--blanc);
  border: 2px solid var(--bordure);
  border-radius: var(--r-lg);
  text-align: center;
  transition: transform var(--moyen), box-shadow var(--moyen), border-color var(--moyen);
}
.tarif:hover { transform: translateY(-4px); box-shadow: var(--ombre-3); border-color: var(--vert-300); }
.tarif__niveau {
  font-family: var(--font-titre);
  font-size: var(--t-sm);
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange-700);
  margin-bottom: var(--sp-2);
}
.tarif__age { font-size: var(--t-sm); color: var(--texte-doux); margin-bottom: var(--sp-5); }
.tarif__montant {
  font-family: var(--font-titre);
  font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem);
  font-weight: 700;
  line-height: 1;
  color: var(--vert-800);
}
.tarif__devise { display: block; font-size: var(--t-sm); font-weight: 600; color: var(--texte-doux); margin-top: var(--sp-2); }
.tarif__note {
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: 1px solid var(--bordure);
  font-size: var(--t-sm);
  color: var(--texte-doux);
}

/* --- Étapes numérotées (parcours d'inscription) --- */
.etapes { counter-reset: etape; list-style: none; margin: 0; padding: 0; }
.etape {
  position: relative;
  padding: 0 0 var(--sp-7) 4rem;
  margin: 0;
}
/* Trait vertical reliant les étapes */
.etape::after {
  content: "";
  position: absolute;
  left: 1.4rem; top: 3rem; bottom: 0;
  width: 2px;
  background: var(--bordure);
}
.etape:last-child { padding-bottom: 0; }
.etape:last-child::after { display: none; }
.etape::before {
  counter-increment: etape;
  content: counter(etape);
  position: absolute;
  left: 0; top: 0;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  background: var(--vert-700);
  color: #fff;
  border-radius: 50%;
  font-family: var(--font-titre);
  font-weight: 700;
  font-size: var(--t-lg);
}
.etape h3 { font-size: var(--t-lg); margin-bottom: var(--sp-2); padding-top: 0.5rem; }
.etape p { color: var(--texte-doux); margin: 0; }

/* --- Bloc « documents à fournir » --- */
.document {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding: var(--sp-5);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-md);
  transition: border-color var(--moyen), box-shadow var(--moyen);
}
.document:hover { border-color: var(--vert-300); box-shadow: var(--ombre-1); }
.document__icone {
  display: grid; place-items: center;
  width: 42px; height: 42px; flex: none;
  background: var(--vert-100);
  color: var(--vert-700);
  border-radius: var(--r-sm);
}
.document__icone svg { width: 20px; height: 20px; }
.document h3 { font-size: var(--t-base); margin-bottom: 0.15rem; }
.document p { font-size: var(--t-sm); color: var(--texte-doux); margin: 0; }

/* --- Encart d'information --- */
.encart {
  display: flex;
  gap: var(--sp-4);
  padding: var(--sp-5) var(--sp-6);
  background: var(--orange-100);
  border-left: 4px solid var(--orange-vif);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.encart--vert { background: var(--vert-100); border-left-color: var(--vert-700); }
.encart svg { width: 22px; height: 22px; flex: none; color: var(--orange-700); margin-top: 3px; }
.encart--vert svg { color: var(--vert-700); }
.encart p { margin: 0; font-size: var(--t-sm); }
.encart strong { display: block; margin-bottom: 0.15rem; font-family: var(--font-titre); }

/* --- Coordonnées (page contact) --- */
.coord {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
  padding-bottom: var(--sp-5);
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--bordure);
}
.coord:last-child { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }
.coord__icone {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  background: var(--vert-100);
  color: var(--vert-700);
  border-radius: var(--r-md);
}
.coord__icone svg { width: 20px; height: 20px; }
.coord h3 { font-size: var(--t-base); margin-bottom: 0.2rem; }
.coord p, .coord a { font-size: var(--t-sm); color: var(--texte-doux); margin: 0; text-decoration: none; display: block; }
.coord a:hover { color: var(--orange-700); }

/* --- Carte Google Maps --- */
.carte-maps {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--ombre-2);
  border: 1px solid var(--bordure);
  aspect-ratio: 16 / 9;
}
.carte-maps iframe { width: 100%; height: 100%; border: 0; display: block; }


/* ==========================================================================
   10. FORMULAIRES
   ========================================================================== */

.formulaire {
  padding: clamp(1.5rem, 1rem + 2vw, 2.75rem);
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-lg);
  box-shadow: var(--ombre-2);
}

.champs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-4) var(--sp-5); }
.champ { display: flex; flex-direction: column; gap: 0.4rem; }
.champ--large { grid-column: 1 / -1; }

.champ label {
  font-family: var(--font-titre);
  font-size: var(--t-sm);
  font-weight: 600;
  color: var(--vert-900);
}
.champ label .requis { color: var(--orange-700); }

.champ input,
.champ select,
.champ textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  font-family: var(--font-texte);
  font-size: var(--t-base);
  color: var(--texte);
  background: var(--gris-050);
  border: 1px solid var(--bordure);
  border-radius: var(--r-sm);
  transition: border-color var(--vite), box-shadow var(--vite), background-color var(--vite);
}
.champ textarea { resize: vertical; min-height: 130px; }
.champ select { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235F6660' stroke-width='2.5' stroke-linecap='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.85rem center;
  background-size: 16px;
  padding-right: 2.5rem;
}

.champ input:focus,
.champ select:focus,
.champ textarea:focus {
  outline: none;
  background: var(--blanc);
  border-color: var(--vert-700);
  box-shadow: 0 0 0 3px rgba(10, 122, 61, .14);
}

.champ__erreur {
  font-size: var(--t-xs);
  color: #B3261E;
  min-height: 1rem;
}
.champ input[aria-invalid="true"],
.champ select[aria-invalid="true"],
.champ textarea[aria-invalid="true"] {
  border-color: #B3261E;
  background: #FDF3F2;
}

.formulaire__pied { margin-top: var(--sp-6); }
.formulaire__mention { font-size: var(--t-xs); color: var(--texte-doux); margin-top: var(--sp-4); }

/* Message affiché après validation côté client (aucun envoi réel) */
.formulaire__retour {
  display: none;
  gap: var(--sp-3);
  padding: var(--sp-5);
  margin-top: var(--sp-5);
  background: var(--vert-100);
  border-left: 4px solid var(--vert-700);
  border-radius: 0 var(--r-md) var(--r-md) 0;
  font-size: var(--t-sm);
}
.formulaire__retour.est-visible { display: flex; }
.formulaire__retour svg { width: 22px; height: 22px; flex: none; color: var(--vert-700); margin-top: 2px; }


/* ==========================================================================
   11. FOOTER & WHATSAPP FLOTTANT
   ========================================================================== */

/* Rappel admission juste avant le footer */
.rappel-admission {
  background: var(--orange-600);
  color: #fff;
  padding-block: var(--sp-5);
}
.rappel-admission__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--sp-4) var(--sp-6);
  text-align: center;
}
.rappel-admission p {
  margin: 0;
  font-family: var(--font-titre);
  font-size: var(--t-lg);
  font-weight: 600;
}
.rappel-admission .btn { --btn-fond: #fff; --btn-texte: var(--orange-700); }

.footer {
  background: var(--vert-900);
  color: rgba(255, 255, 255, .72);
  padding-block: var(--sp-9) var(--sp-6);
  font-size: var(--t-sm);
}
.footer h3 {
  color: #fff;
  font-size: var(--t-base);
  letter-spacing: .06em;
  text-transform: uppercase;
  margin-bottom: var(--sp-5);
}
.footer__grille {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: var(--sp-7) var(--sp-6);
}
.footer a { color: rgba(255, 255, 255, .72); text-decoration: none; transition: color var(--vite); }
.footer a:hover { color: var(--orange-300); }

.footer__marque { display: flex; align-items: center; gap: 0.7rem; margin-bottom: var(--sp-4); }
.footer__marque img { width: 52px; height: 52px; }
.footer__nom { font-family: var(--font-titre); font-weight: 700; color: #fff; line-height: 1.25; }
.footer__devise {
  display: inline-block;
  margin-top: var(--sp-3);
  padding: 0.3rem 0.85rem;
  background: rgba(255, 255, 255, .08);
  border-radius: var(--r-full);
  font-family: var(--font-titre);
  font-size: var(--t-xs);
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--orange-300);
}

.footer__liste { list-style: none; margin: 0; padding: 0; }
.footer__liste li { margin-bottom: var(--sp-3); }

.footer__contact li {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.footer__contact svg { width: 16px; height: 16px; flex: none; margin-top: 4px; color: var(--orange-300); }

.footer__reseaux { display: flex; gap: var(--sp-3); margin-top: var(--sp-5); }
.footer__reseaux a {
  display: grid; place-items: center;
  width: 38px; height: 38px;
  background: rgba(255, 255, 255, .08);
  border-radius: 50%;
  transition: background-color var(--vite), transform var(--vite);
}
.footer__reseaux a:hover { background: var(--orange-600); transform: translateY(-2px); }
.footer__reseaux svg { width: 17px; height: 17px; color: #fff; }

.footer__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-top: var(--sp-8);
  padding-top: var(--sp-5);
  border-top: 1px solid rgba(255, 255, 255, .12);
  font-size: var(--t-xs);
  color: rgba(255, 255, 255, .5);
}

/* --- Bouton WhatsApp flottant --- */
.whatsapp-flottant {
  position: fixed;
  right: clamp(1rem, 2vw, 1.75rem);
  bottom: clamp(1rem, 2vw, 1.75rem);
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.8rem 1.15rem;
  background: #25D366;
  color: #fff;
  border-radius: var(--r-full);
  box-shadow: 0 6px 20px rgba(37, 211, 102, .38);
  font-family: var(--font-titre);
  font-size: var(--t-sm);
  font-weight: 600;
  text-decoration: none;
  transition: transform var(--vite), box-shadow var(--vite);
}
.whatsapp-flottant:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37, 211, 102, .5);
}
.whatsapp-flottant svg { width: 22px; height: 22px; flex: none; }


/* ==========================================================================
   12. ANIMATIONS AU SCROLL
   ========================================================================== */

/* Les éléments marqués [data-anim] sont révélés par IntersectionObserver.
   L'état initial n'est appliqué QUE si JS est actif (classe .js sur <html>),
   afin que le contenu reste visible sans JavaScript. */
.js [data-anim] {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 620ms var(--ease), transform 620ms var(--ease);
}
.js [data-anim].est-visible { opacity: 1; transform: none; }

/* Décalage en cascade pour les grilles */
.js [data-anim-delai="1"] { transition-delay: 90ms; }
.js [data-anim-delai="2"] { transition-delay: 180ms; }
.js [data-anim-delai="3"] { transition-delay: 270ms; }
.js [data-anim-delai="4"] { transition-delay: 360ms; }

/* Respect absolu de la préférence système : aucune animation imposée. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .js [data-anim] { opacity: 1; transform: none; }
}



/* --- Galerie « Notre cadre » : photographies reelles de l'etablissement ---
   Les vignettes sont volontairement petites : les sources font 528 px de large,
   ce format les garde nettes sur ecran haute densite. */
.galerie-cadre {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-4);
}
.galerie-cadre figure {
  margin: 0;
  background: var(--blanc);
  border: 1px solid var(--bordure);
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--ombre-1);
  transition: transform var(--moyen), box-shadow var(--moyen);
}
.galerie-cadre figure:hover { transform: translateY(-4px); box-shadow: var(--ombre-3); }
.galerie-cadre img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.galerie-cadre figcaption {
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-titre);
  font-size: var(--t-xs);
  font-weight: 500;
  color: var(--texte-doux);
}
@media (max-width: 940px) { .galerie-cadre { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .galerie-cadre { grid-template-columns: 1fr; } }


/* ==========================================================================
   13. RESPONSIVE
   ========================================================================== */

/* --- Grand tablette / petit portable --- */
@media (max-width: 1080px) {
  .footer__grille { grid-template-columns: 1fr 1fr; }
  .nav__lien { padding: 0.6rem 0.55rem; font-size: 0.85rem; }
  .marque__baseline { display: none; }
}

/* --- Bascule vers le menu mobile --- */
@media (max-width: 940px) {
  .nav { display: none; }
  .hamburger { display: flex; margin-left: var(--sp-3); }

  /* Le bouton Admission NE disparaît PAS sur mobile : l'inscription doit rester
     accessible en un geste, sans ouvrir le menu. Il passe simplement en libellé
     court pour tenir à côté du hamburger. */
  .header__cta { display: inline-flex; margin-left: auto; padding: 0.62rem 1rem; font-size: 0.8125rem; min-height: 42px; }
  .header__cta .cta-long  { display: none; }
  .header__cta .cta-court { display: inline; }

  .grille--4 { grid-template-columns: repeat(2, 1fr); }
  .grille--3 { grid-template-columns: repeat(2, 1fr); }

  .duo { grid-template-columns: 1fr; }
  .duo--inverse .duo__media { order: 0; }

  .barre-info__liste--secondaire { display: none; }
}

/* --- Tablette --- */
@media (max-width: 760px) {
  :root { --header-h: 68px; }

  .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; }

  .hero { min-height: auto; }
  .hero__reperes { gap: var(--sp-4); flex-direction: column; }

  .champs { grid-template-columns: 1fr; }

  .footer__grille { grid-template-columns: 1fr; gap: var(--sp-6); }
  .footer__bas { justify-content: center; text-align: center; }

  .citation { padding: var(--sp-6) var(--sp-5); font-size: var(--t-lg); }
  .rappel-admission__inner { flex-direction: column; }
}

/* --- Mobile --- */
@media (max-width: 520px) {
  .barre-info__inner { justify-content: center; min-height: 0; padding-block: 0.4rem; }
  .barre-info__liste { gap: var(--sp-4); justify-content: center; }
  .barre-info__liste--secondaire { display: none; }

  .marque__embleme { width: 38px; height: 38px; }
  .marque__nom { font-size: 0.95rem; }

  /* Très petits écrans : on resserre encore pour garder logo + CTA + menu sur une ligne */
  .header__cta { padding: 0.55rem 0.8rem; font-size: 0.75rem; }
  .hamburger { width: 42px; height: 42px; margin-left: var(--sp-2); }

  .groupe-btn { flex-direction: column; align-items: stretch; }
  .groupe-btn .btn { width: 100%; }

  .carte, .valeur, .tarif { padding: var(--sp-5); }
  .etape { padding-left: 3.25rem; }
  .etape::before { width: 38px; height: 38px; font-size: var(--t-base); }
  .etape::after { left: 1.15rem; top: 2.6rem; }

  /* Le bouton WhatsApp se réduit à sa pastille pour ne pas gêner la lecture */
  .whatsapp-flottant { padding: 0.85rem; }
  .whatsapp-flottant span { display: none; }
}

/* --- Impression --- */
@media print {
  .barre-info, .header, .panneau-mobile, .whatsapp-flottant,
  .bandeau-cta, .rappel-admission, .hero__fond { display: none !important; }
  body { color: #000; font-size: 11pt; }
  .hero, .hero-page { color: #000; padding-block: 1rem; }
  .hero::before, .hero-page::before { display: none; }
  .hero__titre, .hero-page__titre { color: #000; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
}
