/* ============================================================
   ODYSSÉE — ÉCOLE MONTESSORI
   Feuille de style principale
   ============================================================ */

/* ------------------------------------------------------------
   1. VARIABLES & RESET
------------------------------------------------------------ */
:root {
  /* Couleurs de la charte */
  --vert-pousse:  #5C8A4F;
  --vert-profond: #33502E;
  --bleu-doux:    #7FA8C9;
  --miel:         #E0A458;
  --creme:        #FBF8F2;
  --sable:        #F0E8D8;
  --encre:        #2B2A26;
  --encre-douce:  #7C7768;

  /* Couleurs dérivées */
  --miel-texte:   #5A3E12;
  --vert-profond-alpha: rgba(51, 80, 46, 0.08);

  /* Typographie */
  --police-titre: 'Fraunces', Georgia, serif;
  --police-texte: 'Nunito Sans', Arial, sans-serif;
  --serif: 'Fraunces', Georgia, serif; /* alias utilisé par les styles hero */

  /* Espacements */
  --espace-xs:  0.5rem;
  --espace-sm:  1rem;
  --espace-md:  1.5rem;
  --espace-lg:  2.5rem;
  --espace-xl:  4rem;
  --espace-xxl: 6rem;

  /* Mise en page */
  --largeur-max: 1100px;
  --rayon-carte: 16px;
  --rayon-btn:   999px;

  /* Transitions */
  --transition: 0.22s ease;
}

/* Reset minimal et sain */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--police-texte);
  font-size: 1rem;
  line-height: 1.7;
  color: var(--encre);
  background-color: var(--creme);
  -webkit-font-smoothing: antialiased;
}

/* Liens */
a {
  color: var(--vert-pousse);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--vert-profond); }

/* Images */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Listes */
ul, ol { list-style: none; }

/* Focus visible pour la navigation clavier */
:focus-visible {
  outline: 2.5px solid var(--vert-pousse);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ------------------------------------------------------------
   2. TYPOGRAPHIE
------------------------------------------------------------ */
h1, h2, h3, h4 {
  font-family: var(--police-titre);
  font-weight: 500;
  line-height: 1.25;
  color: var(--vert-profond);
}

h1 { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 600; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; font-weight: 600; font-family: var(--police-texte); }
h4 { font-size: 1.05rem; font-weight: 700; font-family: var(--police-texte); }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

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

em { font-style: italic; }

/* ------------------------------------------------------------
   3. BOUTONS
------------------------------------------------------------ */
.btn {
  display: inline-block;
  padding: 0.75rem 1.75rem;
  border-radius: var(--rayon-btn);
  font-family: var(--police-texte);
  font-size: 0.95rem;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  border: 2px solid transparent;
  transition: background-color var(--transition), color var(--transition),
              border-color var(--transition), transform var(--transition),
              box-shadow var(--transition);
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.btn:active { transform: translateY(0); }

/* Bouton principal — vert profond */
.btn--principal {
  background-color: var(--vert-profond);
  color: #fff;
  border-color: var(--vert-profond);
}
.btn--principal:hover {
  background-color: var(--vert-pousse);
  border-color: var(--vert-pousse);
  color: #fff;
}

/* Bouton miel — accent chaleureux */
.btn--miel {
  background-color: var(--miel);
  color: var(--miel-texte);
  border-color: var(--miel);
}
.btn--miel:hover {
  background-color: #d4943e;
  border-color: #d4943e;
  color: var(--miel-texte);
}

/* Bouton ghost — transparent avec bordure */
.btn--ghost {
  background-color: transparent;
  color: var(--vert-profond);
  border-color: var(--vert-pousse);
}
.btn--ghost:hover {
  background-color: var(--vert-profond-alpha);
  color: var(--vert-profond);
}

/* Variante petite taille */
.btn--petit {
  padding: 0.5rem 1.25rem;
  font-size: 0.875rem;
  margin-top: 0.75rem;
}

/* Bouton de soumission du formulaire */
.btn--soumettre { width: 100%; }

/* ------------------------------------------------------------
   4. MISE EN PAGE — CONTAINER & SECTIONS
------------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--espace-md);
}

.section {
  padding: var(--espace-xxl) 0;
}
.section--creme { background-color: var(--creme); }
.section--sable  { background-color: var(--sable); }

.section__entete {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--espace-lg);
}
.section__titre {
  margin-bottom: var(--espace-sm);
}

/* Titres en clair (sur fond sombre) */
.section__entete--clair { color: #fff; }
.section__titre--clair  { color: #fff; }

/* Séparateur décoratif (petite pousse) */
.separateur {
  display: flex;
  justify-content: center;
  margin-bottom: var(--espace-lg);
}

/* ------------------------------------------------------------
   5. HEADER FIXE
------------------------------------------------------------ */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background-color: rgba(251, 248, 242, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(92, 138, 79, 0.15);
  transition: box-shadow var(--transition);
}
.header.ombre { box-shadow: 0 2px 20px rgba(0,0,0,0.08); }

.header__inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--espace-md);
  height: 130px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Logo dans le header */
.header__logo {
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.header__logo img {
  height: 120px;
  width: auto;
}

/* Navigation */
.header__nav { flex: 1; min-width: 0; }
.header__nav-list {
  display: flex;
  align-items: center;
  gap: 0;
  justify-content: center;
  flex-wrap: nowrap;
}
.header__nav-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--encre);
  padding: 0.35rem 0.55rem;
  border-radius: 8px;
  white-space: nowrap;
  transition: color var(--transition), background-color var(--transition);
}
.header__nav-link:hover {
  color: var(--vert-profond);
  background-color: var(--vert-profond-alpha);
}

/* CTA du header */
.header__cta {
  flex-shrink: 0;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
}

/* Bouton hamburger */
.header__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background-color var(--transition);
  margin-left: auto;
}
.header__hamburger:hover { background-color: var(--vert-profond-alpha); }
.hamburger__barre {
  display: block;
  height: 2px;
  width: 100%;
  background-color: var(--encre);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* État ouvert du hamburger */
.header__hamburger[aria-expanded="true"] .hamburger__barre:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.header__hamburger[aria-expanded="true"] .hamburger__barre:nth-child(2) {
  opacity: 0;
}
.header__hamburger[aria-expanded="true"] .hamburger__barre:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Menu mobile */
.header__menu-mobile {
  display: none;
  background-color: var(--creme);
  border-top: 1px solid rgba(92, 138, 79, 0.15);
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.3s ease;
}
.header__menu-mobile.ouvert {
  display: block;
  max-height: 400px;
}
.menu-mobile__list {
  padding: var(--espace-md);
  display: flex;
  flex-direction: column;
  gap: var(--espace-xs);
}
.menu-mobile__lien {
  display: block;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--encre);
  border-radius: 8px;
  transition: background-color var(--transition), color var(--transition);
}
.menu-mobile__lien:hover {
  background-color: var(--vert-profond-alpha);
  color: var(--vert-profond);
}
.menu-mobile__cta {
  margin-top: 0.5rem;
  text-align: center;
}

/* Offset pour le contenu (compensate header fixe — hauteur = 130px) */
body { padding-top: 130px; }

/* ------------------------------------------------------------
   6. HERO
------------------------------------------------------------ */
.hero{display:grid;grid-template-columns:1fr 1.12fr;min-height:560px;background:var(--creme);overflow:hidden;}
.hero-text{padding:72px clamp(28px,5vw,72px);display:flex;flex-direction:column;justify-content:center;}
.hero-eyebrow{font-weight:700;font-size:13px;letter-spacing:.14em;text-transform:uppercase;color:var(--vert-pousse);margin:0 0 20px;display:inline-flex;align-items:center;gap:10px;}
.hero-eyebrow::before{content:"";width:26px;height:1.5px;background:var(--vert-pousse);}
.hero h1{font-family:var(--serif);font-weight:600;font-size:clamp(34px,4.2vw,54px);line-height:1.04;letter-spacing:-.015em;color:var(--vert-profond);margin:0 0 22px;}
.hero h1 span{display:block;}
.hero-lead{font-size:18.5px;line-height:1.6;color:var(--encre);max-width:46ch;margin:0 0 14px;}
.hero-tagline{font-family:var(--serif);font-style:italic;color:var(--vert-pousse);font-size:18px;margin:0 0 32px;}
.hero-cta{display:flex;flex-wrap:wrap;gap:14px;}
.hero-photo{position:relative;overflow:hidden;background:var(--sable);}
.hero-photo img{width:100%;height:100%;object-fit:cover;display:block;}
.hero-photo::before{content:"";position:absolute;top:0;bottom:0;left:0;width:14px;background:linear-gradient(90deg,var(--creme),transparent);z-index:1;pointer-events:none;}

/* Alias pour les classes btn du nouveau hero */
.btn-primary { background-color: var(--vert-profond); color: #fff; border-color: var(--vert-profond); }
.btn-primary:hover { background-color: var(--vert-pousse); border-color: var(--vert-pousse); color: #fff; }
.btn-ghost { background-color: transparent; color: var(--vert-profond); border-color: var(--vert-pousse); }
.btn-ghost:hover { background-color: var(--vert-profond-alpha); color: var(--vert-profond); }

/* Animation d'entrée, une fois */
.hero-text>*{opacity:0;transform:translateY(14px);}
.hero-photo img{opacity:0;transform:scale(1.04);}
@media (prefers-reduced-motion: no-preference){
  .hero-eyebrow{animation:rise .7s ease .15s forwards;}
  .hero h1{animation:rise .8s ease .26s forwards;}
  .hero-lead{animation:rise .8s ease .38s forwards;}
  .hero-tagline{animation:rise .8s ease .48s forwards;}
  .hero-cta{animation:rise .8s ease .58s forwards;}
  .hero-photo img{animation:reveal 1.1s ease .1s forwards;}
}
@media (prefers-reduced-motion: reduce){
  .hero-text>*{opacity:1;transform:none;}
  .hero-photo img{opacity:1;transform:none;}
}
@keyframes rise{to{opacity:1;transform:translateY(0);}}
@keyframes reveal{to{opacity:1;transform:scale(1);}}

@media (max-width:820px){
  .hero{grid-template-columns:1fr;}
  .hero-photo{order:-1;min-height:320px;}
  .hero-photo::before{display:none;}
  .hero-text{padding:44px 26px 52px;}
  .hero-lead{font-size:17px;}
}
@media (max-width:420px){ .hero-cta .btn{flex:1 1 auto;text-align:center;} }

/* ------------------------------------------------------------
   7. SECTION APPROCHE
------------------------------------------------------------ */
.approche__texte {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.05rem;
  color: var(--encre);
  text-align: center;
}

/* ------------------------------------------------------------
   8. SECTION SENS (fond sable)
------------------------------------------------------------ */
.sens__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--espace-lg);
  max-width: 900px;
  margin: 0 auto;
}

.sens__bloc {
  font-size: 1.05rem;
  color: var(--encre);
  padding: var(--espace-md) var(--espace-lg);
  background-color: rgba(251, 248, 242, 0.7);
  border-radius: var(--rayon-carte);
  border-left: 4px solid var(--vert-pousse);
}

/* ------------------------------------------------------------
   9. SECTION PÉDAGOGIE
------------------------------------------------------------ */
.pedagogie__intro {
  max-width: 720px;
  margin: 0 auto var(--espace-md);
  font-size: 1.05rem;
  text-align: center;
  color: var(--encre);
}

/* Badges de réassurance */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--espace-md);
  justify-content: center;
  margin: var(--espace-lg) 0;
}

.badge {
  display: flex;
  align-items: center;
  gap: var(--espace-md);
  background-color: var(--sable);
  border: 1.5px solid rgba(92, 138, 79, 0.25);
  border-radius: var(--rayon-carte);
  padding: var(--espace-md) var(--espace-lg);
  max-width: 380px;
  transition: box-shadow var(--transition);
}
.badge:hover { box-shadow: 0 4px 20px rgba(92, 138, 79, 0.12); }

.badge__icone { flex-shrink: 0; }

.badge__texte {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.badge__texte strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--vert-profond);
}
.badge__texte span {
  font-size: 0.8rem;
  color: var(--encre-douce);
}

/* Valeurs en grille */
.valeurs__titre {
  text-align: center;
  margin-bottom: var(--espace-md);
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 1.4rem;
  color: var(--vert-profond);
}

.valeurs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--espace-md);
}

.valeur-carte {
  background-color: var(--sable);
  border-radius: var(--rayon-carte);
  padding: var(--espace-md);
  text-align: center;
  transition: transform var(--transition), box-shadow var(--transition);
}
.valeur-carte:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(92, 138, 79, 0.12);
}

.valeur-carte__icone {
  display: flex;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.valeur-carte__nom {
  color: var(--vert-profond);
  font-size: 1rem;
  margin-bottom: 0.5rem;
}

.valeur-carte__texte {
  font-size: 0.875rem;
  color: var(--encre-douce);
  line-height: 1.5;
  margin-bottom: 0;
}

/* ------------------------------------------------------------
   10. SECTION ÉCOLE
------------------------------------------------------------ */
.ecole__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--espace-xl);
  align-items: start;
}

.ecole__texte { font-size: 1.05rem; }

.ecole__photos { /* contient la galerie */ }

/* Galerie de 3 photos portrait côte à côte */
.galerie-photos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--espace-sm);
}

.galerie-photos__img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rayon-carte);
  display: block;
}

/* Zone réservée générique (conservée pour les sections sans photo encore) */
.photo-placeholder {
  background: linear-gradient(135deg, var(--creme) 0%, rgba(92, 138, 79, 0.1) 100%);
  border-radius: var(--rayon-carte);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--espace-sm);
  border: 2px dashed rgba(92, 138, 79, 0.3);
  color: var(--encre-douce);
  font-size: 0.85rem;
  font-style: italic;
}
.photo-placeholder--grand { min-height: 240px; }
.photo-placeholder--petit { min-height: 120px; }

/* ------------------------------------------------------------
   10b. SECTION PÉDAGOGIE — layout avec photo
------------------------------------------------------------ */

/* Surtitre réutilisable (eyebrow) */
.section__surtitre {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-pousse);
  margin-bottom: var(--espace-xs);
}

/* Intro pédagogie sur 2 colonnes avec la photo */
.pedagogie__avec-photo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--espace-xl);
  align-items: center;
  margin-bottom: var(--espace-lg);
}

.pedagogie__intro { margin-bottom: var(--espace-sm); }
.pedagogie__intro:last-child { margin-bottom: 0; }

.pedagogie__photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rayon-carte);
  display: block;
}

/* ------------------------------------------------------------
   10c. SECTION ÉQUIPE
------------------------------------------------------------ */
.equipe__grille {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--espace-xl);
  align-items: center;
}

.equipe__titre {
  text-align: left;
  margin-bottom: var(--espace-md);
}

.equipe__texte p { font-size: 1.05rem; }

/* Badge AMI en mode "inline" (sous le texte, pas centré) */
.badge--inline {
  margin-top: var(--espace-md);
  max-width: 420px;
  background-color: var(--creme);  /* contraste sur fond sable */
}

.equipe__photo-img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--rayon-carte);
  display: block;
}

/* ------------------------------------------------------------
   11. SECTION INFOS PRATIQUES
------------------------------------------------------------ */
.infos__grille {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--espace-md);
}

.info-carte {
  background-color: var(--sable);
  border-radius: var(--rayon-carte);
  padding: var(--espace-md) var(--espace-md);
  transition: box-shadow var(--transition);
}
.info-carte:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.07); }

.info-carte__icone {
  margin-bottom: 0.75rem;
}

.info-carte__titre {
  font-size: 1rem;
  font-weight: 700;
  color: var(--vert-profond);
  margin-bottom: 0.5rem;
  font-family: var(--police-texte);
}

.info-carte p { font-size: 0.925rem; }

/* Carte large (occupe 2 colonnes) */
.info-carte--large { grid-column: span 2; }

/* ------------------------------------------------------------
   12. SECTION CONTACT
------------------------------------------------------------ */
.contact {
  background: var(--sable);
  padding: var(--espace-xxl) 0;
}

.contact-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--espace-md);
}

/* Eyebrow réutilisable (même motif que .section__surtitre) */
.eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--vert-pousse);
  margin-bottom: var(--espace-xs);
}

.contact-inner > h2 {
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--vert-profond);
  margin-bottom: var(--espace-sm);
}

.contact-inner > .intro {
  font-size: 1.05rem;
  color: var(--encre);
  max-width: 680px;
  margin-bottom: var(--espace-xl);
  line-height: 1.7;
}

/* Grille 2 colonnes : coordonnées + formulaire */
.contact .grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: var(--espace-lg);
  align-items: start;
}

/* Bloc coordonnées — fond vert profond, texte clair */
.contact .coords {
  background: var(--vert-profond);
  border-radius: var(--rayon-carte);
  padding: var(--espace-lg);
  color: rgba(255,255,255,0.9);
}

.contact .coords h3 {
  color: #fff;
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: var(--espace-md);
}

.contact .coords p {
  font-size: 0.95rem;
  margin-bottom: var(--espace-md);
  line-height: 1.65;
}

.contact .coords strong {
  display: block;
  color: var(--miel);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-bottom: 0.2rem;
}

.contact .coords a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}
.contact .coords a:hover { color: var(--miel); }

.contact .coords .note {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
  font-style: italic;
  margin-bottom: 0;
}

/* Carte formulaire — fond crème, ombre douce */
.contact .form-card {
  background: var(--creme);
  border-radius: var(--rayon-carte);
  padding: var(--espace-lg);
  box-shadow: 0 4px 32px rgba(0,0,0,0.08);
}

.contact .form-card h3 {
  color: var(--vert-profond);
  font-family: var(--police-titre);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.4rem;
}

.contact .form-card .sub {
  font-size: 0.9rem;
  color: var(--encre-douce);
  margin-bottom: var(--espace-lg);
}

/* Paires de champs côte à côte */
.contact .row2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--espace-sm);
  margin-bottom: var(--espace-sm);
}

.contact .field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: var(--espace-sm);
}

.contact .row2 .field { margin-bottom: 0; }

.contact .field label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--encre);
}

.contact .opt {
  font-weight: 400;
  color: var(--encre-douce);
  font-size: 0.8rem;
}

.contact .field input,
.contact .field textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  background: #fff;
  border: 1.5px solid rgba(43,42,38,0.18);
  border-radius: 10px;
  font-family: var(--police-texte);
  font-size: 0.95rem;
  color: var(--encre);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.contact .field input:focus,
.contact .field textarea:focus {
  outline: none;
  border-color: var(--vert-pousse);
  box-shadow: 0 0 0 3px rgba(92,138,79,0.2);
}

.contact .field textarea {
  resize: vertical;
  min-height: 130px;
}

/* Honeypot anti-spam : hors écran */
.contact .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Bouton d'envoi */
.contact .submit {
  display: block;
  width: 100%;
  padding: 0.8rem 1.75rem;
  margin-top: var(--espace-md);
  background: var(--vert-profond);
  color: #fff;
  border: none;
  border-radius: var(--rayon-btn);
  font-family: var(--police-texte);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition), box-shadow var(--transition);
}
.contact .submit:hover {
  background: var(--vert-pousse);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.contact .submit:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
  box-shadow: none;
}

/* Mention confidentialité */
.contact .privacy {
  font-size: 0.75rem;
  color: var(--encre-douce);
  margin-top: 0.75rem;
  margin-bottom: 0;
  text-align: center;
}

/* Messages retour (succès / erreur) */
.contact .msg { margin-top: var(--espace-sm); font-size: 0.9rem; border-radius: 8px; }
.contact .msg.ok {
  background: rgba(92,138,79,0.12);
  color: var(--vert-profond);
  border: 1px solid rgba(92,138,79,0.3);
  padding: 0.85rem 1rem;
}
.contact .msg.err {
  background: rgba(180,50,50,0.08);
  color: #7a2020;
  border: 1px solid rgba(180,50,50,0.2);
  padding: 0.85rem 1rem;
}

/* Responsive contact */
@media (max-width: 780px) {
  .contact .grid { grid-template-columns: 1fr; }
}
@media (max-width: 430px) {
  .contact .row2 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   13. FOOTER
------------------------------------------------------------ */
.footer {
  background-color: var(--vert-profond);
  color: rgba(255,255,255,0.8);
  padding: var(--espace-xl) 0 0;
}

.footer__inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  padding: 0 var(--espace-md) var(--espace-lg);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--espace-xl);
  align-items: start;
}

/* Logo du footer */
.footer__logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer__logo-texte {
  font-family: var(--police-titre);
  font-size: 1.1rem;
  font-weight: 500;
  color: #fff;
  white-space: nowrap;
}

/* Coordonnées du footer */
.footer__coordonnees {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.footer__lien {
  color: rgba(255,255,255,0.8);
  transition: color var(--transition);
}
.footer__lien:hover { color: var(--miel); }

/* Liens utiles */
.footer__liens { text-align: right; }
.footer__lien-ancre {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  transition: color var(--transition);
}
.footer__lien-ancre:hover { color: var(--miel); }

/* Bas du footer */
.footer__bas {
  background-color: rgba(0,0,0,0.15);
  text-align: center;
  padding: var(--espace-sm) var(--espace-md);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}

/* ------------------------------------------------------------
   14. ANIMATIONS & ÉTATS DE CHARGEMENT
------------------------------------------------------------ */

/* Apparition au scroll */
.apparait {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.apparait.visible {
  opacity: 1;
  transform: translateY(0);
}

/* État de chargement du bouton d'envoi */
.btn--chargement {
  opacity: 0.7;
  cursor: wait;
}

/* ------------------------------------------------------------
   15. RESPONSIVE — TABLETTE (≤ 900px)
------------------------------------------------------------ */
@media (max-width: 900px) {
  /* Cacher la nav desktop, afficher le hamburger */
  .header__nav,
  .header__cta { display: none; }
  .header__hamburger { display: flex; }

  /* Valeurs en 2 colonnes */
  .valeurs { grid-template-columns: repeat(2, 1fr); }

  /* École en colonne */
  .ecole__grille { grid-template-columns: 1fr; }

  /* Galerie école en colonne : 3 photos côte à côte sur tablette */
  .galerie-photos { grid-template-columns: repeat(3, 1fr); }

  /* Équipe en colonne */
  .equipe__grille { grid-template-columns: 1fr; }
  .equipe__photo { order: -1; }       /* photo en premier sur mobile/tablette */
  .equipe__photo-img { aspect-ratio: 4 / 3; } /* paysage sur petits écrans pour gagner de la hauteur */
  .equipe__titre { text-align: center; }
  .equipe__texte p { text-align: center; }
  .badge--inline { margin: var(--espace-md) auto 0; }

  /* Pédagogie avec photo en colonne */
  .pedagogie__avec-photo { grid-template-columns: 1fr; }
  .pedagogie__intro-photo { order: -1; }
  .pedagogie__photo-img { aspect-ratio: 16 / 9; } /* bannière sur tablette */

  /* Infos en 2 colonnes */
  .infos__grille { grid-template-columns: repeat(2, 1fr); }
  .info-carte--large { grid-column: span 2; }

  /* Footer en colonne */
  .footer__inner { grid-template-columns: 1fr; gap: var(--espace-md); }
  .footer__liens { text-align: left; }

  /* Sens en colonne */
  .sens__grille { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------
   16. RESPONSIVE — MOBILE (≤ 600px)
------------------------------------------------------------ */
@media (max-width: 600px) {
  :root {
    --espace-xl: 3rem;
    --espace-xxl: 4rem;
  }

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

  .badges { flex-direction: column; align-items: stretch; }
  .badge { max-width: 100%; }

  .infos__grille { grid-template-columns: 1fr; }
  .info-carte--large { grid-column: span 1; }

  /* Galerie école : 2 photos sur mobile pour ne pas être trop petits */
  .galerie-photos { grid-template-columns: repeat(2, 1fr); }
  .galerie-photos > div:last-child { display: none; } /* masque la 3e sur très petit écran */
}

/* ------------------------------------------------------------
   17. RESPONSIVE — TRÈS PETIT (≤ 380px)
------------------------------------------------------------ */
@media (max-width: 380px) {
  .valeurs { grid-template-columns: 1fr; }

  h1 { font-size: 1.8rem; }
  h2 { font-size: 1.4rem; }
}

/* ------------------------------------------------------------
   18. SECTION TÉMOIGNAGES
   Fond crème (la section Infos précédente est sable)
------------------------------------------------------------ */
.temoignages {
  background: var(--creme);
  padding: var(--espace-xxl) var(--espace-md);
}

.tem-inner {
  max-width: var(--largeur-max);
  margin: 0 auto;
  text-align: center;
}

.tem-inner .eyebrow {
  font-family: var(--police-texte);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--vert-pousse);
  margin-bottom: 0.6rem;
}

.tem-inner h2 {
  font-family: var(--police-titre);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  color: var(--vert-profond);
  margin-bottom: 0.75rem;
}

.tem-intro {
  font-family: var(--police-texte);
  font-size: 1rem;
  color: var(--encre-douce);
  max-width: 600px;
  margin: 0 auto 3rem;
  line-height: 1.7;
}

/* Grille 4 colonnes desktop, 2 tablette, 1 mobile */
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 3rem;
  text-align: left;
}

.card {
  background: #fff;
  border-radius: var(--rayon-carte);
  box-shadow: 0 2px 16px rgba(51, 80, 46, 0.08);
  padding: 2rem 1.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  position: relative;
}

.quote-mark {
  font-family: var(--police-titre);
  font-size: 5rem;
  line-height: 1;
  color: var(--vert-pousse);
  opacity: 0.18;
  position: absolute;
  top: 0.75rem;
  left: 1.25rem;
  pointer-events: none;
  user-select: none;
}

.card blockquote {
  font-family: var(--police-titre);
  font-style: italic;
  font-size: 0.97rem;
  color: var(--vert-profond);
  line-height: 1.75;
  margin: 0;
  padding: 0;
  padding-top: 1.5rem;
  flex: 1;
}

.card .who {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-top: 1px solid var(--sable);
  padding-top: 1.1rem;
  margin-top: auto;
}

.card .dot {
  flex-shrink: 0;
  display: flex;
}

.card .nm {
  font-family: var(--police-texte);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--vert-profond);
}

.card .role {
  font-family: var(--police-texte);
  font-size: 0.8rem;
  color: var(--encre-douce);
  margin-top: 0.1rem;
}

.tem-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.tem-cta p {
  font-family: var(--police-texte);
  font-size: 1rem;
  color: var(--encre-douce);
  margin: 0;
}

/* Tablette : 2 colonnes */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
}

/* Mobile : 1 colonne */
@media (max-width: 560px) {
  .cards { grid-template-columns: 1fr; }
  .temoignages { padding: var(--espace-xl) var(--espace-sm); }
}

/* ------------------------------------------------------------
   19. RÉSEAUX SOCIAUX (footer)
------------------------------------------------------------ */
.socials {
  display: flex;
  gap: 14px;
  margin: 10px 0 0;
}

.socials a {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, .08);
  color: var(--creme);
  border: 1px solid rgba(255, 255, 255, .18);
  transition: background var(--transition), color var(--transition), transform var(--transition);
}

.socials a:hover {
  background: var(--miel);
  color: #5A3E12;
  transform: translateY(-2px);
  border-color: transparent;
}

.socials svg {
  width: 22px;
  height: 22px;
  display: block;
}
