/* ==========================================================================
   INSTITUTION LES IRIS — Feuille de style unique
   Agadir, Maroc — Maternelle / Primaire / Collège / Lycée
   Aucune dépendance externe. Modifier les variables ci-dessous suffit
   à changer toute l'identité visuelle du site.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs de marque (échantillonnées sur le logo officiel) */
  --orange: #FF9500;
  --orange-fonce: #E07E00;
  --bleu: #007AFF;
  --bleu-fonce: #0062CC;

  /* Accents par cycle */
  --c-maternelle: #F5B301;
  --c-primaire: #E91E8C;
  --c-college: #E23B3B;
  --c-lycee: #007AFF;

  /* Neutres */
  --noir: #1D1D1F;
  --gris-900: #2B2B2B;
  --gris-700: #4A4A4F;
  --gris-500: #6E6E73;
  --gris-300: #C7C7CC;
  --gris-150: #E5E5EA;
  --gris-100: #F2F2F5;
  --gris-50: #F8F8FA;
  --blanc: #FFFFFF;

  /* Typographie — remplacer cette pile par une webfont si souhaité */
  --police: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
            "Helvetica Neue", Arial, "Noto Sans", sans-serif;

  /* Rythme */
  --largeur: 1180px;
  --gouttiere: 24px;
  --rayon: 10px;
  --rayon-lg: 16px;

  /* Ombres */
  --ombre-s: 0 1px 3px rgba(0, 0, 0, .07), 0 1px 2px rgba(0, 0, 0, .04);
  --ombre-m: 0 4px 16px rgba(0, 0, 0, .08);
  --ombre-l: 0 12px 32px rgba(0, 0, 0, .12);

  --transition: .22s cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET & BASE
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Filet de sécurité contre tout défilement horizontal accidentel (mot très
     long, tableau large…). `clip` plutôt que `hidden` : il ne crée pas de
     conteneur de défilement, l'en-tête sticky reste donc intact. */
  overflow-x: clip;
}

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

body {
  margin: 0;
  font-family: var(--police);
  font-size: 17px;
  line-height: 1.65;
  color: var(--gris-700);
  background: var(--blanc);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: var(--noir);
  line-height: 1.2;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }
h4 { font-size: 1.05rem; }

p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--bleu);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--bleu-fonce); }

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

ul, ol { margin: 0 0 1.1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }

/* Focus visible — accessibilité clavier */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--bleu);
  outline-offset: 2px;
  border-radius: 3px;
}

/* Lien d'évitement */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 999;
  padding: 12px 20px;
  background: var(--bleu);
  color: #fff;
  font-weight: 600;
}
.skip-link:focus {
  left: 8px;
  top: 8px;
  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;
}

/* --------------------------------------------------------------------------
   3. MISE EN PAGE
   -------------------------------------------------------------------------- */
.conteneur {
  width: 100%;
  max-width: var(--largeur);
  margin-inline: auto;
  padding-inline: var(--gouttiere);
}

.section { padding: clamp(48px, 7vw, 84px) 0; }
.section--gris { background: var(--gris-100); }
.section--serre { padding: clamp(32px, 4vw, 52px) 0; }

.section-titre {
  text-align: center;
  margin-bottom: clamp(28px, 4vw, 48px);
}
.section-titre h2 { margin-bottom: .35em; }
.section-titre p {
  max-width: 640px;
  margin-inline: auto;
  color: var(--gris-500);
}

/* Barre décorative sous les titres de section */
.section-titre h2::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin: .5em auto 0;
  border-radius: 2px;
  background: var(--orange);
}

.grille { display: grid; gap: clamp(20px, 3vw, 32px); }
.grille--2 { grid-template-columns: repeat(2, 1fr); }
.grille--3 { grid-template-columns: repeat(3, 1fr); }
.grille--4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .grille--3, .grille--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .grille--2, .grille--3, .grille--4 { grid-template-columns: 1fr; }
}

/* --------------------------------------------------------------------------
   4. BOUTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .55em;
  padding: 13px 26px;
  border: 2px solid transparent;
  border-radius: var(--rayon);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  letter-spacing: .01em;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
}

.btn--principal {
  background: var(--orange);
  color: #fff;
}
.btn--principal:hover {
  background: var(--orange-fonce);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ombre-m);
}

.btn--bleu {
  background: var(--bleu);
  color: #fff;
}
.btn--bleu:hover {
  background: var(--bleu-fonce);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: var(--ombre-m);
}

.btn--contour {
  background: transparent;
  border-color: var(--gris-300);
  color: var(--noir);
}
.btn--contour:hover {
  border-color: var(--bleu);
  color: var(--bleu);
}

.btn--blanc {
  background: #fff;
  color: var(--noir);
}
.btn--blanc:hover {
  background: var(--gris-100);
  color: var(--noir);
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   5. EN-TÊTE & NAVIGATION
   -------------------------------------------------------------------------- */
.entete {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--gris-150);
}

.entete__barre {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.logo { flex-shrink: 0; }
.logo img {
  width: 268px;
  max-width: 58vw;
  height: auto;
}

/* --- Navigation principale --- */
.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-inline-start: auto;
}

.nav__liste {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav__item { position: relative; }

.nav__lien {
  display: flex;
  align-items: center;
  gap: .35em;
  padding: 10px 13px;
  border-radius: 8px;
  color: var(--gris-700);
  font-size: .95rem;
  font-weight: 500;
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
  cursor: pointer;
  transition: all var(--transition);
}
.nav__lien:hover { background: var(--gris-100); color: var(--noir); }
.nav__lien[aria-current="page"] { color: var(--orange); font-weight: 600; }

.nav__chevron {
  width: 9px; height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform var(--transition);
  flex-shrink: 0;
}

/* --- Sous-menus --- */
.sous-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 216px;
  padding: 8px;
  margin: 0;
  list-style: none;
  background: #fff;
  border: 1px solid var(--gris-150);
  border-radius: var(--rayon);
  box-shadow: var(--ombre-l);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: all var(--transition);
}

.nav__item:hover > .sous-menu,
.nav__item:focus-within > .sous-menu,
.sous-menu.est-ouvert {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav__item:hover > .nav__lien .nav__chevron {
  transform: rotate(-135deg) translate(-3px, -3px);
}

.sous-menu li { margin: 0; }
.sous-menu a {
  display: block;
  padding: 10px 14px;
  border-radius: 7px;
  color: var(--gris-700);
  font-size: .93rem;
  font-weight: 500;
}
.sous-menu a:hover { background: var(--gris-100); color: var(--bleu); }
.sous-menu a[aria-current="page"] { color: var(--orange); font-weight: 600; }

/* --- Réseaux sociaux --- */
.reseaux {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
}

.reseaux a {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--gris-100);
  color: var(--gris-500);
  transition: all var(--transition);
}
.reseaux a:hover {
  background: var(--bleu);
  color: #fff;
  transform: translateY(-2px);
}
.reseaux svg { width: 17px; height: 17px; fill: currentColor; }

/* --- Bouton burger --- */
.burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px; height: 44px;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 24px; height: 2px;
  margin-inline: auto;
  background: var(--noir);
  border-radius: 2px;
  transition: all var(--transition);
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* --- Bascule mobile --- */
@media (max-width: 1040px) {
  .burger { display: flex; }
  .entete__barre { min-height: 66px; }

  .nav {
    position: fixed;
    inset: 66px 0 0 auto;
    width: min(340px, 86vw);
    padding: 16px var(--gouttiere) 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-left: 1px solid var(--gris-150);
    box-shadow: var(--ombre-l);
    overflow-y: auto;
    /* Fermé : display:none, et non un translateX hors écran. Un élément
       position:fixed échappe au rognage de <html> ; le laisser hors champ
       rendait toute la page défilable latéralement sur mobile (340 px de vide). */
    display: none;
  }
  .nav.est-ouvert {
    display: flex;
    animation: nav-glisse .22s cubic-bezier(.4, 0, .2, 1);
  }

  .nav__liste { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__lien { width: 100%; justify-content: space-between; padding: 13px 12px; font-size: 1rem; }

  .sous-menu {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    min-width: 0;
    margin: 2px 0 6px 12px;
    padding: 4px;
    border: 0;
    border-left: 2px solid var(--gris-150);
    border-radius: 0;
    box-shadow: none;
  }
  .sous-menu.est-ouvert { display: block; }
  .nav__item:hover > .sous-menu { display: none; }
  .nav__item:hover > .sous-menu.est-ouvert { display: block; }

  .nav__lien[aria-expanded="true"] .nav__chevron {
    transform: rotate(-135deg) translate(-3px, -3px);
  }

  .reseaux { display: none; }
  .nav .reseaux {
    display: flex;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--gris-150);
  }
}

@keyframes nav-glisse {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}

/* Voile derrière le menu mobile */
.voile {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(0, 0, 0, .35);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.voile.est-ouvert { opacity: 1; visibility: visible; }

/* --------------------------------------------------------------------------
   6. HERO (accueil)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(400px, 62vh, 580px);
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--gris-900);
  text-align: center;
}

.hero__diapos { position: absolute; inset: 0; }

.hero__diapo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 1.1s ease-in-out;
}
.hero__diapo.est-active { opacity: 1; }

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.5) 0%, rgba(0,0,0,.42) 45%, rgba(0,0,0,.62) 100%);
}

.hero__contenu {
  position: relative;
  z-index: 2;
  padding: 60px var(--gouttiere);
  max-width: 780px;
}

.hero__sur-titre {
  display: inline-block;
  margin-bottom: 14px;
  padding: 6px 16px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .16);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.hero__titre {
  margin-bottom: .35em;
  color: #fff;
  font-size: clamp(2rem, 5.6vw, 3.4rem);
  text-shadow: 0 2px 24px rgba(0, 0, 0, .3);
}
.hero__titre span { color: var(--orange); }

.hero__texte {
  margin-bottom: 1.9em;
  color: rgba(255, 255, 255, .93);
  font-size: clamp(1rem, 2vw, 1.18rem);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* Puces du carrousel */
.hero__puces {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  gap: 10px;
}
.hero__puce {
  width: 10px; height: 10px;
  padding: 0;
  border: 2px solid #fff;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  transition: all var(--transition);
}
.hero__puce.est-active { background: #fff; transform: scale(1.25); }

/* --------------------------------------------------------------------------
   7. BANNIÈRE DES PAGES INTÉRIEURES
   -------------------------------------------------------------------------- */
.banniere {
  position: relative;
  padding: clamp(52px, 8vw, 96px) 0;
  background: var(--gris-900) center/cover no-repeat;
  color: #fff;
  text-align: center;
  overflow: hidden;
}
.banniere::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.52), rgba(0,0,0,.66));
}
.banniere .conteneur { position: relative; z-index: 2; }
.banniere h1 { color: #fff; margin-bottom: .3em; }
.banniere p {
  max-width: 660px;
  margin-inline: auto;
  color: rgba(255, 255, 255, .92);
  font-size: 1.05rem;
}

/* Fil d'Ariane */
.fil {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .5em;
  margin-top: 1.1em;
  list-style: none;
  padding: 0;
  font-size: .88rem;
}
.fil li { margin: 0; color: rgba(255, 255, 255, .72); }
.fil li + li::before { content: "›"; margin-right: .5em; }
.fil a { color: rgba(255, 255, 255, .92); }
.fil a:hover { color: #fff; text-decoration: underline; }

/* --------------------------------------------------------------------------
   8. CARTES
   -------------------------------------------------------------------------- */
.carte {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--gris-150);
  border-radius: var(--rayon-lg);
  overflow: hidden;
  transition: all var(--transition);
}
.carte:hover {
  transform: translateY(-4px);
  box-shadow: var(--ombre-l);
  border-color: transparent;
}

.carte__media {
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--gris-100);
}
.carte__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.carte:hover .carte__media img { transform: scale(1.05); }

.carte__corps { padding: 20px; flex-grow: 1; }
.carte__corps h3 { margin-bottom: .35em; font-size: 1.1rem; }
.carte__corps p { color: var(--gris-500); font-size: .94rem; }

.carte__etiquette {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 12px;
  border-radius: 100px;
  background: rgba(255, 255, 255, .94);
  color: var(--noir);
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   9. CYCLES (4 niveaux)
   -------------------------------------------------------------------------- */
.cycles { background: var(--gris-900); }

.cycle {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 22px;
  border-radius: var(--rayon-lg);
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09);
  color: #fff;
  transition: all var(--transition);
}
.cycle:hover {
  background: rgba(255, 255, 255, .1);
  color: #fff;
  transform: translateY(-4px);
}

.cycle__num {
  display: grid;
  place-items: center;
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 12px;
  background: var(--accent, var(--orange));
  color: #fff;
  font-size: 1.35rem;
  font-weight: 800;
}

.cycle__texte strong {
  display: block;
  font-size: 1.06rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.cycle__texte span {
  font-size: .87rem;
  color: rgba(255, 255, 255, .62);
}

/* Accents par cycle — appliqués via la classe sur l'élément */
.est-maternelle { --accent: var(--c-maternelle); }
.est-primaire   { --accent: var(--c-primaire); }
.est-college    { --accent: var(--c-college); }
.est-lycee      { --accent: var(--c-lycee); }

/* --------------------------------------------------------------------------
   10. LIGNES ALTERNÉES (texte + image)
   -------------------------------------------------------------------------- */
.ligne {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  margin-bottom: clamp(44px, 6vw, 76px);
}
.ligne:last-child { margin-bottom: 0; }
.ligne--inverse .ligne__media { order: -1; }

.ligne__media img {
  width: 100%;
  border-radius: var(--rayon-lg);
  box-shadow: var(--ombre-m);
}

.ligne__texte h3 {
  margin-bottom: .55em;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}
.ligne__texte h3::before {
  content: "";
  display: block;
  width: 44px; height: 4px;
  margin-bottom: .55em;
  border-radius: 2px;
  background: var(--accent, var(--orange));
}

@media (max-width: 820px) {
  .ligne { grid-template-columns: 1fr; }
  .ligne--inverse .ligne__media { order: 0; }
}

/* --------------------------------------------------------------------------
   11. ENCADRÉ / CITATION
   -------------------------------------------------------------------------- */
.encadre {
  padding: clamp(22px, 3.5vw, 34px);
  border-left: 4px solid var(--bleu);
  border-radius: 0 var(--rayon) var(--rayon) 0;
  background: var(--gris-100);
}
.encadre--orange { border-left-color: var(--orange); }
.encadre p { color: var(--gris-700); }
.encadre__signature {
  margin-top: 1.2em;
  font-weight: 600;
  color: var(--noir);
}

/* --------------------------------------------------------------------------
   12. LISTE DE POINTS CLÉS
   -------------------------------------------------------------------------- */
.points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(20px, 3vw, 32px);
  list-style: none;
  margin: 0;
  padding: 0;
}
@media (max-width: 700px) { .points { grid-template-columns: 1fr; } }

.points li {
  position: relative;
  margin: 0;
  padding-left: 44px;
}
.points li::before {
  content: "";
  position: absolute;
  left: 0; top: 3px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent, var(--orange));
  opacity: .16;
}
.points li::after {
  content: "";
  position: absolute;
  left: 10px; top: 12px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent, var(--orange));
}
.points strong {
  display: block;
  margin-bottom: .2em;
  color: var(--noir);
  font-size: 1.02rem;
}
.points span { color: var(--gris-500); font-size: .95rem; }

/* --------------------------------------------------------------------------
   13. ONGLETS (page inscription)
   -------------------------------------------------------------------------- */
.onglets__boutons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 28px;
  padding: 6px;
  border-radius: var(--rayon);
  background: var(--gris-100);
}

.onglet-btn {
  flex: 1 1 auto;
  padding: 12px 22px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--gris-500);
  font: inherit;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
}
.onglet-btn:hover { color: var(--noir); }
.onglet-btn[aria-selected="true"] {
  background: #fff;
  color: var(--bleu);
  box-shadow: var(--ombre-s);
}

.onglet-panneau[hidden] { display: none; }

/* Étapes numérotées */
.etapes {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: etape;
}
.etapes li {
  position: relative;
  margin-bottom: 18px;
  padding: 18px 22px 18px 68px;
  border: 1px solid var(--gris-150);
  border-radius: var(--rayon);
  background: #fff;
  counter-increment: etape;
}
.etapes li::before {
  content: counter(etape);
  position: absolute;
  left: 20px; top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bleu);
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   14. TÉLÉCHARGEMENTS
   -------------------------------------------------------------------------- */
.telechargement {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--gris-150);
  border-radius: var(--rayon);
  background: #fff;
  transition: all var(--transition);
}
.telechargement:hover {
  border-color: var(--bleu);
  box-shadow: var(--ombre-m);
  transform: translateY(-2px);
}
.telechargement__icone {
  display: grid;
  place-items: center;
  width: 44px; height: 44px;
  flex-shrink: 0;
  border-radius: 9px;
  background: rgba(226, 59, 59, .1);
  color: var(--c-college);
}
.telechargement__icone svg { width: 22px; height: 22px; fill: currentColor; }
.telechargement__texte { flex-grow: 1; }
.telechargement__texte strong { display: block; color: var(--noir); font-size: .98rem; }
.telechargement__texte span { color: var(--gris-500); font-size: .85rem; }

/* --------------------------------------------------------------------------
   15. HORAIRES
   -------------------------------------------------------------------------- */
.horaires {
  border: 1px solid var(--gris-150);
  border-radius: var(--rayon-lg);
  background: #fff;
  overflow: hidden;
}
.horaires__titre {
  padding: 18px 24px;
  border-bottom: 1px solid var(--gris-150);
  background: var(--gris-50);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--noir);
  margin: 0;
}
.horaires table {
  width: 100%;
  border-collapse: collapse;
}
.horaires th,
.horaires td {
  padding: 14px 24px;
  border-bottom: 1px solid var(--gris-150);
  font-size: .95rem;
  text-align: left;
}
.horaires th { font-weight: 600; color: var(--noir); }
.horaires td { text-align: right; color: var(--gris-500); white-space: nowrap; }
.horaires tr:last-child th,
.horaires tr:last-child td { border-bottom: 0; }

/* --------------------------------------------------------------------------
   16. GALERIE + VISIONNEUSE
   -------------------------------------------------------------------------- */
.filtres {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
}
.filtre-btn {
  padding: 9px 20px;
  border: 1px solid var(--gris-150);
  border-radius: 100px;
  background: #fff;
  color: var(--gris-500);
  font: inherit;
  font-size: .9rem;
  font-weight: 500;
  cursor: pointer;
  transition: all var(--transition);
}
.filtre-btn:hover { border-color: var(--bleu); color: var(--bleu); }
.filtre-btn[aria-pressed="true"] {
  background: var(--bleu);
  border-color: var(--bleu);
  color: #fff;
}

.galerie {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
}

.galerie__item {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--rayon);
  overflow: hidden;
  background: var(--gris-100);
  cursor: zoom-in;
  border: 0;
  padding: 0;
}
.galerie__item img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}
.galerie__item:hover img { transform: scale(1.07); }
.galerie__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 122, 255, 0);
  transition: background var(--transition);
}
.galerie__item:hover::after { background: rgba(0, 122, 255, .18); }
.galerie__item[hidden] { display: none; }

/* Visionneuse */
.visionneuse {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .92);
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition);
}
.visionneuse.est-ouverte { opacity: 1; visibility: visible; }

.visionneuse img {
  max-width: 100%;
  max-height: 84vh;
  border-radius: var(--rayon);
  box-shadow: var(--ombre-l);
}

.visionneuse__legende {
  margin-top: 14px;
  color: rgba(255, 255, 255, .8);
  font-size: .92rem;
  text-align: center;
}

.visionneuse__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px; height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .13);
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition);
}
.visionneuse__btn:hover { background: rgba(255, 255, 255, .26); }
.visionneuse__fermer { top: 20px; right: 20px; }
.visionneuse__prec { left: 20px; top: 50%; transform: translateY(-50%); }
.visionneuse__suiv { right: 20px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .visionneuse__prec { left: 10px; }
  .visionneuse__suiv { right: 10px; }
}

/* --------------------------------------------------------------------------
   17. FORMULAIRE
   -------------------------------------------------------------------------- */
.formulaire {
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--gris-150);
  border-radius: var(--rayon-lg);
  background: #fff;
  box-shadow: var(--ombre-s);
}

.champ { margin-bottom: 20px; }
.champ label {
  display: block;
  margin-bottom: 7px;
  color: var(--noir);
  font-size: .92rem;
  font-weight: 600;
}
.champ .requis { color: var(--c-college); }

.champ input,
.champ textarea,
.champ select {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--gris-300);
  border-radius: var(--rayon);
  background: var(--gris-50);
  font: inherit;
  font-size: .97rem;
  color: var(--noir);
  transition: all var(--transition);
}
.champ input:focus,
.champ textarea:focus,
.champ select:focus {
  border-color: var(--bleu);
  background: #fff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 122, 255, .14);
}
.champ textarea { min-height: 148px; resize: vertical; }

.champ__erreur {
  display: none;
  margin-top: 6px;
  color: var(--c-college);
  font-size: .85rem;
}
.champ.a-une-erreur input,
.champ.a-une-erreur textarea { border-color: var(--c-college); }
.champ.a-une-erreur .champ__erreur { display: block; }

.formulaire__note {
  margin-bottom: 20px;
  color: var(--gris-500);
  font-size: .87rem;
}

.formulaire__retour {
  display: none;
  padding: 14px 18px;
  margin-bottom: 20px;
  border-radius: var(--rayon);
  font-size: .93rem;
}
.formulaire__retour.est-visible { display: block; }
.formulaire__retour.est-succes {
  background: rgba(52, 199, 89, .12);
  color: #1B7F3B;
}
.formulaire__retour.est-echec {
  background: rgba(226, 59, 59, .1);
  color: #B02525;
}

/* --------------------------------------------------------------------------
   18. BLOC CONTACT / INFOS
   -------------------------------------------------------------------------- */
.infos { list-style: none; margin: 0; padding: 0; }
.infos li {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.infos__icone {
  display: grid;
  place-items: center;
  width: 40px; height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(0, 122, 255, .1);
  color: var(--bleu);
}
.infos__icone svg { width: 18px; height: 18px; fill: currentColor; }
.infos strong { display: block; color: var(--noir); font-size: .88rem; }
.infos a, .infos span { color: var(--gris-700); font-size: .97rem; }

/* Carte Google */
.carte-geo {
  border: 0;
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--rayon-lg);
  filter: grayscale(.15);
}

/* --------------------------------------------------------------------------
   19. STATISTIQUE / RÉSULTAT
   -------------------------------------------------------------------------- */
.jauge { margin-bottom: 18px; }
.jauge__entete {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-size: .93rem;
  font-weight: 600;
  color: var(--noir);
}
.jauge__piste {
  height: 10px;
  border-radius: 5px;
  background: var(--gris-150);
  overflow: hidden;
}
.jauge__valeur {
  height: 100%;
  border-radius: 5px;
  background: linear-gradient(90deg, var(--orange), var(--c-maternelle));
  transition: width 1.1s cubic-bezier(.4, 0, .2, 1);
}

/* --------------------------------------------------------------------------
   20. PIED DE PAGE
   -------------------------------------------------------------------------- */
.pied { background: var(--gris-100); color: var(--gris-700); }

.pied__haut {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.5fr;
  gap: clamp(24px, 4vw, 48px);
  padding: clamp(40px, 6vw, 64px) 0;
}

@media (max-width: 960px) { .pied__haut { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pied__haut { grid-template-columns: 1fr; } }

.pied h4 {
  margin-bottom: 1em;
  color: var(--noir);
  font-size: .87rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pied__logo { width: 210px; margin-bottom: 18px; }
.pied p { font-size: .93rem; color: var(--gris-500); }

.pied__liens { list-style: none; margin: 0; padding: 0; }
.pied__liens li { margin-bottom: .6em; }
.pied__liens a { color: var(--gris-500); font-size: .93rem; }
.pied__liens a:hover { color: var(--bleu); }

/* Colonne contacts, fond sombre */
.pied__contacts {
  padding: clamp(24px, 3vw, 32px);
  border-radius: var(--rayon-lg);
  background: var(--gris-900);
}
.pied__contacts h4 { color: #fff; }
.pied__contacts ul { list-style: none; margin: 0; padding: 0; }
.pied__contacts li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin-bottom: 13px;
  font-size: .91rem;
  color: rgba(255, 255, 255, .72);
}
.pied__contacts a { color: rgba(255, 255, 255, .72); }
.pied__contacts a:hover { color: #fff; }
.pied__contacts svg {
  width: 16px; height: 16px;
  flex-shrink: 0;
  margin-top: 3px;
  fill: var(--orange);
}

.pied__bas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0;
  border-top: 1px solid var(--gris-150);
  font-size: .87rem;
  color: var(--gris-500);
}

/* --------------------------------------------------------------------------
   21. UTILITAIRES
   -------------------------------------------------------------------------- */
.texte-centre { text-align: center; }
.mb-0 { margin-bottom: 0; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }

.lead {
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  color: var(--gris-500);
}

.chapeau {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--orange);
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

/* Apparition au défilement */
.anim {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .6s ease, transform .6s ease;
}
.anim.est-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .anim { opacity: 1; transform: none; }
}

/* Bouton retour en haut */
.haut {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 90;
  display: grid;
  place-items: center;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: var(--bleu);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  box-shadow: var(--ombre-m);
  transition: all var(--transition);
}
.haut.est-visible { opacity: 1; visibility: visible; }
.haut:hover { background: var(--bleu-fonce); transform: translateY(-3px); }
.haut svg { width: 19px; height: 19px; fill: currentColor; }

/* --------------------------------------------------------------------------
   22. IMPRESSION
   -------------------------------------------------------------------------- */
@media print {
  .entete, .pied__contacts, .haut, .burger, .hero__puces, .reseaux { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .hero, .banniere { min-height: 0; padding: 20px 0; background: none; color: #000; }
  .hero::after, .banniere::after { display: none; }
  .hero__titre, .banniere h1 { color: #000; text-shadow: none; }
}
