/* =============================================================
   CSP LA PROMESSE — Design System
   Palette : verts de la marque + jaune soleil, style chaleureux
   et professionnel adapté à une école de la maternelle au lycée.
   ============================================================= */

:root {
  /* Couleurs de marque */
  --green-950: #0c3d20;
  --green-900: #10502a;
  --green-800: #156534;
  --green-700: #1a7a3d;   /* vert principal */
  --green-600: #229447;
  --green-100: #e3f2e6;
  --green-50:  #f1f8f2;
  --lime:      #8dc63f;   /* vert lime du logo */
  --lime-dark: #649423;   /* lime accessible sur fond clair */
  --lime-100:  #eef7dd;
  --yellow:    #f7c500;
  --yellow-100:#fdf3cc;
  --red:       #e2413e;

  /* Neutres */
  --cream:  #f9fbf6;
  --white:  #ffffff;
  --ink:    #1e2b23;
  --muted:  #56685c;
  --border: #dfe9e0;

  /* Typographie */
  --font-heading: 'Fredoka', system-ui, sans-serif;
  --font-body: 'Nunito', system-ui, sans-serif;

  /* Rayons & ombres */
  --radius-sm: 10px;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 2px 8px rgba(16, 80, 42, .08);
  --shadow: 0 8px 24px rgba(16, 80, 42, .12);
  --shadow-lg: 0 16px 48px rgba(16, 80, 42, .16);

  /* Espacement de section */
  --section-y: clamp(56px, 9vw, 96px);
}

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 600;
  line-height: 1.2;
  color: var(--green-900);
}

a { color: var(--green-700); }

:focus-visible {
  outline: 3px solid var(--lime-dark);
  outline-offset: 2px;
  border-radius: 4px;
}

.container {
  width: min(1160px, 100% - 2.5rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--green-900);
  color: #fff;
  padding: .75rem 1.25rem;
  z-index: 200;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  font-family: var(--font-body);
  font-weight: 800;
  font-size: 1rem;
  padding: .8rem 1.7rem;
  border-radius: 999px;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--green-700); color: #fff; }
.btn-primary:hover { background: var(--green-600); }

.btn-accent { background: var(--yellow); color: var(--green-950); }
.btn-accent:hover { background: #ffd21f; }

.btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.btn-outline:hover { background: rgba(255,255,255,.12); border-color: #fff; }

.btn-outline-green { background: transparent; color: var(--green-700); border-color: var(--green-700); }
.btn-outline-green:hover { background: var(--green-50); }

.btn-sm { padding: .55rem 1.2rem; font-size: .92rem; }

/* ---------- Topbar ---------- */
.topbar {
  background: var(--green-950);
  color: #d7ecd9;
  font-size: .85rem;
  padding: .45rem 0;
}
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.topbar-info { display: flex; gap: 1.5rem; flex-wrap: wrap; align-items: center; }
.topbar-info span { display: inline-flex; align-items: center; gap: .4rem; }
.topbar-social { display: flex; gap: .35rem; }
.topbar-social a {
  color: #d7ecd9;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  transition: background .15s;
}
.topbar-social a:hover { background: rgba(255,255,255,.15); color: #fff; }
@media (max-width: 640px) { .topbar-address { display: none; } }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem 0;
}
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand-logo { width: 54px; height: 54px; object-fit: contain; }
.brand-badge {
  width: 50px; height: 50px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--green-700), var(--lime));
  color: #fff;
  font-family: var(--font-heading);
  font-weight: 700;
  border-radius: 50%;
  font-size: .95rem;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-family: var(--font-heading); color: var(--green-900); font-size: 1.15rem; font-weight: 600; }
.brand-text small { color: var(--lime-dark); font-weight: 700; font-size: .78rem; }

.main-nav { display: flex; align-items: center; gap: .25rem; }
.main-nav a:not(.btn) {
  text-decoration: none;
  color: var(--ink);
  font-weight: 700;
  font-size: .98rem;
  padding: .5rem .85rem;
  border-radius: 999px;
  transition: background .15s, color .15s;
}
.main-nav a:not(.btn):hover { background: var(--green-50); color: var(--green-700); }
.main-nav a.active { background: var(--green-100); color: var(--green-800); }
.nav-cta { margin-left: .6rem; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 0;
  padding: .6rem;
  cursor: pointer;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: var(--green-900);
  border-radius: 3px;
  transition: transform .2s, opacity .2s;
}
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--white);
    flex-direction: column;
    align-items: stretch;
    padding: 1rem 1.25rem 1.4rem;
    gap: .3rem;
    box-shadow: var(--shadow);
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a:not(.btn) { padding: .8rem 1rem; border-radius: var(--radius-sm); }
  .nav-cta { margin: .5rem 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(141, 198, 63, .45), transparent 55%),
    radial-gradient(ellipse 55% 50% at 0% 100%, rgba(247, 197, 0, .18), transparent 50%),
    linear-gradient(
      135deg,
      #0a3018 0%,
      var(--green-950) 22%,
      var(--green-900) 48%,
      var(--green-700) 78%,
      #2d9a4a 100%
    );
  color: #fff;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 3rem;
  align-items: center;
  padding: clamp(3.5rem, 7vw, 5.5rem) 0 clamp(4.5rem, 8vw, 6.5rem);
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.25);
  color: #eaf6dd;
  font-weight: 800;
  font-size: .85rem;
  padding: .4rem 1rem;
  border-radius: 999px;
  margin-bottom: 1.2rem;
}
.hero h1 {
  color: #fff;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero h1 .hl { color: var(--yellow); }
.hero p { color: #e2f0e2; font-size: 1.1rem; max-width: 54ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; }

.hero-media { position: relative; }
.hero-media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  aspect-ratio: 4 / 3.4;
  object-fit: cover;
  width: 100%;
}

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; gap: 2.5rem; }
}

/* ---------- Sections génériques ---------- */
.section { padding: var(--section-y) 0; }
.section-alt { background: var(--white); }

.section-head { max-width: 640px; margin: 0 auto 3rem; text-align: center; }
.section-head.left { margin-inline: 0; text-align: left; }
.split-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}
.split-head h2 { margin: .35rem 0 0; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.eyebrow {
  display: inline-block;
  color: var(--lime-dark);
  background: var(--lime-100);
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: .35rem 1rem;
  border-radius: 999px;
  margin-bottom: .9rem;
}
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); margin-bottom: .7rem; }
.section-head p { color: var(--muted); }

/* ---------- Cartes atouts ---------- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.4rem;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.8rem 1.5rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.feature-icon {
  width: 62px; height: 62px;
  margin: 0 auto 1.1rem;
  border-radius: 20px;
  display: grid; place-items: center;
  font-size: 1.7rem;
}
.feature-icon.c1 { background: var(--yellow-100); }
.feature-icon.c2 { background: var(--lime-100); }
.feature-icon.c3 { background: var(--green-100); }
.feature-icon.c4 { background: #fde5e4; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: .5rem; }
.feature-card p { color: var(--muted); font-size: .97rem; }

/* ---------- Cartes sections (maternelle / primaire / collège / lycée) ---------- */
.container-levels {
  width: min(1320px, calc(100% - 2rem));
  margin-inline: auto;
}
.levels-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.65rem;
}
@media (max-width: 1100px) {
  .levels-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
}
@media (max-width: 560px) {
  .levels-grid { grid-template-columns: 1fr; }
}
.level-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.level-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.level-banner {
  padding: 1.75rem 1.6rem 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .75rem;
  min-height: 8.5rem;
}
.level-banner.maternelle { background: linear-gradient(135deg, var(--lime-dark), var(--lime)); }
.level-banner.primaire { background: linear-gradient(135deg, var(--green-900), var(--green-600)); }
.level-banner.college { background: linear-gradient(135deg, #1a5c38, #2d8a55); }
.level-banner.lycee { background: linear-gradient(135deg, #0c3d20, #1f6b3a); }
.level-banner .emoji { font-size: 2rem; line-height: 1; }
.level-banner h3 { color: #fff; font-size: 1.4rem; margin-bottom: .2rem; }
.level-banner small {
  color: rgba(255,255,255,.88);
  font-weight: 700;
  font-size: .88rem;
  line-height: 1.35;
  display: block;
}
.level-body {
  padding: 1.75rem 1.6rem 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.15rem;
  flex: 1;
}
.level-body p {
  color: var(--muted);
  flex: 1;
  font-size: 1rem;
  line-height: 1.65;
}
.level-tags { display: flex; flex-wrap: wrap; gap: .55rem; }
.level-tags span {
  background: var(--green-50);
  color: var(--green-800);
  font-size: .82rem;
  font-weight: 800;
  padding: .35rem .85rem;
  border-radius: 999px;
}

/* ---------- Bande statistiques ---------- */
.stats-band {
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
  border-radius: var(--radius-lg);
  padding: clamp(2rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1.5rem;
  color: #fff;
  text-align: center;
}
.stat-item strong {
  display: block;
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  color: var(--yellow);
}
.stat-item span { color: #dcecd9; font-weight: 700; font-size: .95rem; }

/* ---------- Galerie ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.2rem;
}
.gallery-item {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3;
  background: var(--green-100);
}
.gallery-item .gallery-open {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.gallery-item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .3s ease;
}
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(transparent, rgba(12,61,32,.85));
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
  padding: 1.6rem .9rem .7rem;
}
.gallery-empty {
  text-align: center;
  color: var(--muted);
  padding: 3rem 1rem;
  background: var(--white);
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
}

/* Filtres galerie */
.filter-bar { display: flex; justify-content: center; flex-wrap: wrap; gap: .5rem; margin-bottom: 2rem; }
.filter-bar button {
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--muted);
  font-weight: 800;
  font-size: .9rem;
  padding: .45rem 1.2rem;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s;
}
.filter-bar button:hover { border-color: var(--green-600); color: var(--green-700); }
.filter-bar button.active { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* ---------- Actualités ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.6rem;
}
.news-home { background: var(--cream); }
.news-feature {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 0;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 1.5rem;
}
.news-feature-media {
  display: block;
  min-height: 280px;
  background: linear-gradient(135deg, var(--green-100), var(--lime-100));
  text-decoration: none;
}
.news-feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  min-height: 280px;
  transition: transform .45s ease;
}
.news-feature:hover .news-feature-media img { transform: scale(1.04); }
.news-feature-body {
  padding: clamp(1.5rem, 3vw, 2.4rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .75rem;
}
.news-feature-body time {
  color: var(--lime-dark);
  font-weight: 800;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.news-feature-body h3 {
  font-size: clamp(1.35rem, 2.6vw, 1.9rem);
  line-height: 1.2;
}
.news-feature-body h3 a { text-decoration: none; color: var(--green-900); }
.news-feature-body h3 a:hover { color: var(--green-600); }
.news-feature-body p { color: var(--muted); margin: 0 0 .4rem; }
.news-grid-home { grid-template-columns: repeat(3, 1fr); }
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, box-shadow .25s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-thumb {
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--green-100), var(--lime-100));
  display: grid;
  place-items: center;
  overflow: hidden;
  text-decoration: none;
}
.news-thumb img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.news-card:hover .news-thumb img { transform: scale(1.05); }
.news-body { padding: 1.25rem 1.35rem 1.45rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.news-date {
  color: var(--lime-dark);
  font-weight: 800;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.news-body h3 { font-size: 1.1rem; line-height: 1.25; }
.news-body h3 a { text-decoration: none; color: var(--green-900); }
.news-body h3 a:hover { color: var(--green-600); }
.news-body p { color: var(--muted); font-size: .94rem; flex: 1; margin: 0; }
.news-more {
  font-weight: 800;
  text-decoration: none;
  font-size: .92rem;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.news-more:hover { color: var(--green-900); }
@media (max-width: 980px) {
  .news-feature { grid-template-columns: 1fr; }
  .news-feature-media img { min-height: 220px; }
  .news-grid-home { grid-template-columns: 1fr; }
}

/* Article seul */
.article-content { max-width: 760px; margin-inline: auto; }
.article-content img { border-radius: var(--radius); margin-bottom: 2rem; }
.article-content p { margin-bottom: 1.1rem; }
.article-meta { color: var(--muted); font-weight: 700; margin-bottom: 1.5rem; }

/* ---------- Bande CTA ---------- */
.cta-band {
  background:
    radial-gradient(500px 300px at 90% 0%, rgba(247,197,0,.25), transparent 55%),
    linear-gradient(135deg, var(--green-900), var(--green-700));
  border-radius: var(--radius-lg);
  color: #fff;
  padding: clamp(2.5rem, 5vw, 4rem);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2.1rem); margin-bottom: .5rem; }
.cta-band p { color: #dcecd9; max-width: 50ch; }

/* ---------- Page hero (pages internes) ---------- */
.page-hero {
  background:
    radial-gradient(600px 300px at 90% -20%, rgba(141,198,63,.35), transparent 60%),
    linear-gradient(140deg, var(--green-900), var(--green-700));
  color: #fff;
  padding: clamp(2.8rem, 6vw, 4.5rem) 0;
  text-align: center;
}
.page-hero h1 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.7rem); margin-bottom: .5rem; }
.page-hero p { color: #dcecd9; max-width: 60ch; margin-inline: auto; }
.breadcrumb {
  display: inline-flex;
  gap: .5rem;
  font-size: .9rem;
  font-weight: 700;
  color: #bcd9bd;
  margin-bottom: 1rem;
}
.breadcrumb a { color: #eaf6dd; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- À propos ---------- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.about-grid .media img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.mv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.6rem; }
.mv-card {
  background: var(--green-50);
  border-left: 5px solid var(--lime);
  border-radius: var(--radius-sm);
  padding: 1.2rem 1.3rem;
}
.mv-card h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.mv-card p { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) {
  .about-grid { grid-template-columns: 1fr; }
  .mv-grid { grid-template-columns: 1fr; }
}

/* ---------- Formulaires ---------- */
.form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  padding: clamp(1.6rem, 4vw, 2.6rem);
  max-width: 760px;
  margin-inline: auto;
  position: relative;
}
.form-intro {
  color: var(--muted);
  margin-bottom: 1.4rem;
  font-size: .98rem;
}
.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.info-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}
.info-panel {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.6rem;
  box-shadow: var(--shadow-sm);
}
.info-panel h2 {
  font-size: 1.15rem;
  margin-bottom: .85rem;
  display: flex;
  align-items: center;
  gap: .4rem;
}
.info-panel p { color: var(--muted); margin-bottom: .65rem; }
@media (max-width: 760px) {
  .info-panels { grid-template-columns: 1fr; }
}

/* ---------- Tableau frais scolarité ---------- */
.fees-table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}
.fees-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: .95rem;
}
.fees-table thead th {
  background: var(--green-900);
  color: #fff;
  text-align: left;
  padding: .95rem 1rem;
  font-weight: 800;
  font-size: .82rem;
  letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.fees-table tbody td {
  padding: .85rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--ink);
  vertical-align: top;
}
.fees-table tbody tr:nth-child(even) { background: var(--green-50); }
.fees-table tbody tr:hover { background: var(--lime-100); }
.fees-extras {
  list-style: none;
  margin-top: 1.25rem;
  display: grid;
  gap: .65rem;
}
.fees-extras li {
  background: var(--white);
  border-left: 4px solid var(--lime);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-left-color: var(--lime);
  border-radius: var(--radius-sm);
  padding: .85rem 1.1rem;
  color: var(--muted);
  font-weight: 700;
}
@media (max-width: 700px) {
  .fees-table { min-width: 0; }
  .fees-table thead { display: none; }
  .fees-table tr {
    display: block;
    margin-bottom: .9rem;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
  }
  .fees-table tbody td {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    border-top: 1px solid var(--border);
  }
  .fees-table tbody td::before {
    content: attr(data-label);
    font-weight: 800;
    color: var(--green-800);
    flex: 0 0 42%;
  }
}

/* ---------- Accueil : aperçu frais ---------- */
.fees-home { background: var(--white); }
.fees-home-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
}
.fees-home-card {
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.1rem 1.45rem;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.fees-home-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.fees-home-card h3 {
  font-size: 1.05rem;
  margin-bottom: .25rem;
  color: var(--green-900);
}
.fees-home-meta {
  color: var(--muted);
  font-size: .82rem;
  font-weight: 700;
  margin-bottom: .9rem;
}
.fees-home-price span {
  display: block;
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--lime-dark);
  margin-bottom: .2rem;
}
.fees-home-price strong {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.55rem;
  color: var(--green-900);
  line-height: 1.1;
}
.fees-home-price small {
  display: block;
  margin-top: .25rem;
  color: var(--muted);
  font-weight: 700;
  font-size: .8rem;
}
.fees-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  justify-content: center;
  margin-top: 1.75rem;
}
@media (max-width: 1024px) {
  .fees-home-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  .fees-home-grid { grid-template-columns: 1fr 1fr; }
}

/* ---------- Témoignages ---------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.4rem 1.35rem;
  margin: 0;
  box-shadow: var(--shadow-sm);
}
.testimonial-card p {
  color: var(--ink);
  font-style: italic;
  line-height: 1.55;
  margin-bottom: 1.1rem;
}
.testimonial-card footer {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.testimonial-card strong { color: var(--green-900); font-size: .95rem; }
.testimonial-card span { color: var(--lime-dark); font-size: .82rem; font-weight: 800; }
@media (max-width: 900px) {
  .testimonials-grid { grid-template-columns: 1fr; }
}

/* ---------- Calendrier ---------- */
.calendar-band {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 2rem;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.6rem, 4vw, 2.4rem);
  box-shadow: var(--shadow-sm);
}
.calendar-band h2 { margin-bottom: .9rem; }
.calendar-list p { color: var(--muted); margin-bottom: .45rem; }
.calendar-actions { display: flex; flex-direction: column; gap: .7rem; }
@media (max-width: 800px) {
  .calendar-band { grid-template-columns: 1fr; }
  .calendar-actions { flex-direction: row; flex-wrap: wrap; }
}

/* ---------- Lightbox ---------- */
.gallery-open {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.gallery-open img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(8, 40, 24, .88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.lightbox[hidden] { display: none !important; }
.lightbox-figure { max-width: min(960px, 100%); margin: 0; text-align: center; }
.lightbox-figure img {
  max-width: 100%;
  max-height: 78vh;
  border-radius: 12px;
  object-fit: contain;
}
.lightbox-figure figcaption {
  color: #e8f5d4;
  margin-top: .75rem;
  font-weight: 700;
}
.lightbox-close,
.lightbox-prev,
.lightbox-next {
  position: absolute;
  border: 0;
  background: rgba(255,255,255,.12);
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.6rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.lightbox-close { top: 1rem; right: 1rem; font-size: 1.8rem; }
.lightbox-prev { left: 1rem; }
.lightbox-next { right: 1rem; }
.lightbox-prev:hover,
.lightbox-next:hover,
.lightbox-close:hover { background: rgba(255,255,255,.22); }

.team-note {
  text-align: center;
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 2rem;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.form-group { display: flex; flex-direction: column; gap: .35rem; }
.form-group.full { grid-column: 1 / -1; }
.form-group label { font-weight: 800; font-size: .93rem; color: var(--green-900); }
.form-group .req { color: var(--red); }
.form-group input,
.form-group select,
.form-group textarea {
  font-family: var(--font-body);
  font-size: 1rem;
  padding: .75rem 1rem;
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--cream);
  color: var(--ink);
  transition: border-color .15s, background .15s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--green-600);
  background: var(--white);
}
.form-group textarea { resize: vertical; min-height: 120px; }
.form-actions { margin-top: 1.5rem; text-align: center; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }

/* ---------- Alertes ---------- */
.alert {
  padding: 1rem 1.3rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  margin-bottom: 1.5rem;
  border: 1px solid transparent;
}
.alert-success { background: var(--green-100); color: var(--green-900); border-color: #bcdcbf; }
.alert-error { background: #fdeaea; color: #9c2321; border-color: #f3c2c1; }

/* ---------- Contact ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 2.5rem;
  align-items: start;
}
.contact-info-card {
  background: linear-gradient(150deg, var(--green-900), var(--green-700));
  color: #fff;
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.contact-info-card h2 { color: #fff; font-size: 1.4rem; }
.contact-line { display: flex; gap: .9rem; align-items: flex-start; }
.contact-line .ico {
  flex: none;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.15);
  display: grid; place-items: center;
  color: var(--yellow);
}
.contact-line strong { display: block; font-size: .95rem; }
.contact-line span { color: #dcecd9; font-size: .93rem; }
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); margin-top: 2.5rem; }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-950); color: #cfe3d0; margin-top: var(--section-y); }
.footer-wave { color: var(--green-950); margin-top: calc(var(--section-y) * -1); line-height: 0; }
.footer-wave svg { width: 100%; height: 70px; display: block; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.1fr 1fr;
  gap: 2.5rem;
  padding: 3rem 0 2.5rem;
}
.footer-brand { display: flex; align-items: center; gap: .8rem; margin-bottom: 1rem; }
.footer-brand img { background: #fff; border-radius: 50%; padding: 3px; }
.footer-brand strong { font-family: var(--font-heading); color: #fff; font-size: 1.15rem; }
.footer-col h3 { color: var(--lime); font-size: 1.02rem; margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .55rem; }
.footer-col a { color: #cfe3d0; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col p { font-size: .95rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; font-size: .95rem; }
.footer-contact svg { flex: none; margin-top: .25rem; color: var(--lime); }
.footer-hours { margin-bottom: 1.2rem; }
.footer-social { display: flex; gap: .6rem; margin-top: 1.1rem; }
.footer-social a {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  color: #fff;
  border-radius: 50%;
  transition: background .15s;
}
.footer-social a:hover { background: var(--lime-dark); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 1.1rem 0;
  font-size: .88rem;
  text-align: center;
}
.footer-bottom-inner {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 1.5rem;
  justify-content: center;
  align-items: center;
}
.footer-bottom a { color: #cfe3d0; text-decoration: none; }
.footer-bottom a:hover { color: #fff; text-decoration: underline; }
.topbar-info a, .contact-line a, .footer-contact a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.topbar-info a:hover, .contact-line a:hover { opacity: .9; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed;
  right: 1.1rem;
  bottom: 1.1rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  background: #25d366;
  color: #fff !important;
  text-decoration: none !important;
  font-weight: 800;
  font-size: .92rem;
  padding: .75rem 1.05rem .75rem .85rem;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 211, 102, .4);
  transition: transform .2s ease, box-shadow .2s ease;
}
.wa-float:hover { transform: translateY(-3px); box-shadow: 0 14px 32px rgba(37, 211, 102, .5); color: #fff; }
.wa-float span { letter-spacing: .01em; }
@media (max-width: 560px) {
  .wa-float span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .wa-float { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; }
}

/* ---------- Mentions légales ---------- */
.legal-content { max-width: 820px; }
.legal-content article { margin-bottom: 2.2rem; }
.legal-content h2 { font-size: 1.25rem; margin-bottom: .7rem; color: var(--green-800); }
.legal-content p, .legal-content li { color: var(--muted); line-height: 1.7; }
.legal-content ul { margin: .6rem 0 0 1.2rem; display: flex; flex-direction: column; gap: .35rem; }
.legal-content a { color: var(--green-700); font-weight: 700; }

.map-wrap {
  margin-top: 2.5rem;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.map-wrap iframe { display: block; width: 100%; min-height: 380px; }

/* ---------- Icônes SVG (Lucide) ---------- */
svg { flex: none; }
.btn svg { margin: 0 -2px; }
.alert svg { vertical-align: -3px; margin-right: .2rem; }
.article-meta svg { vertical-align: -2px; margin-right: .2rem; color: var(--lime-dark); }
.h-ico { vertical-align: -3px; margin-right: .3rem; color: var(--green-700); }
.section-head .h-ico { color: var(--green-700); }

.feature-icon.c1 { color: #a16207; }
.feature-icon.c2 { color: var(--lime-dark); }
.feature-icon.c3 { color: var(--green-700); }
.feature-icon.c4 { color: #c0392b; }

.level-banner .emoji { display: grid; place-items: center; color: rgba(255,255,255,.95); }
.contact-line .ico svg { display: block; }

.thumb-icon { display: grid; place-items: center; color: var(--green-600); opacity: .5; }
.news-more svg { vertical-align: -2px; }
.empty-ico { display: flex; justify-content: center; color: var(--green-600); opacity: .55; margin-bottom: .8rem; }

.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .7rem;
  color: var(--muted);
}
.check-list li { display: flex; align-items: flex-start; gap: .55rem; }
.check-list svg { color: var(--green-600); margin-top: .2rem; }

/* ---------- Équipe pédagogique ---------- */
.team-section { margin-bottom: 3.5rem; }
.team-section:last-child { margin-bottom: 0; }
.team-heading {
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  margin-bottom: 1.5rem;
  padding-bottom: .7rem;
  border-bottom: 3px solid var(--lime);
  display: inline-flex;
  align-items: center;
  gap: .5rem;
}
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.4rem;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-align: center;
  transition: transform .2s ease, box-shadow .2s ease;
}
.team-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.team-photo {
  aspect-ratio: 1;
  background: linear-gradient(150deg, var(--green-100), var(--lime-100));
  display: grid;
  place-items: center;
}
.team-photo img { width: 100%; height: 100%; object-fit: cover; }
.team-placeholder { color: var(--green-600); opacity: .5; }
.team-body { padding: 1.2rem 1.2rem 1.4rem; }
.team-body h3 { font-size: 1.08rem; margin-bottom: .25rem; }
.team-role { color: var(--lime-dark); font-weight: 800; font-size: .88rem; margin-bottom: .5rem; }
.team-bio { color: var(--muted); font-size: .9rem; }

/* ---------- Animations d'apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }
