/* ASPEI — feuille de style
   Reprend l'image de marque des affiches : dégradé turquoise et jaune,
   lettrage manuscrit, titres très gras, blocs violets arrondis,
   et les quatre pastilles du logo, une par établissement. */

@font-face { font-family: "Poppins"; src: url("../fonts/poppins-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("../fonts/poppins-800.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Lobster"; src: url("../fonts/lobster-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-400-700.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --encre: #2e1840;          /* violet d'encre : titres, pied de page */
  --texte: #332c3b;
  --texte-doux: #655d6e;
  --papier: #ffffff;
  --lavis: #f6f3f9;          /* fond des bandes alternées */
  --filet: #e3dcea;
  --reglure: rgba(110, 70, 160, .16);
  --reglure-fine: rgba(110, 70, 160, .07);
  --marge: #e0566f;          /* marge rouge du cahier */
  --violet: #8e2a8f;
  --turquoise: #0e9f96;
  --turquoise-plein: #0a7f78;  /* aplat portant du texte blanc */
  --turquoise-fonce: #0a6f69;
  --jaune: #f2b930;
  --vert: #a3bd35;

  --titre: "Poppins", "Hanken Grotesk", system-ui, sans-serif;
  --manuscrit: "Lobster", "Brush Script MT", cursive;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;

  --carreau: 2rem;           /* un grand carreau Seyès */
  --largeur: 72rem;
  --gouttiere: clamp(1.25rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--texte);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--turquoise-fonce); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { color: var(--violet); }
/* Curseur main sur tout ce qui se clique ou réagit au survol */
a, button, select, summary, label, [role="button"],
.missions > div, .etablissements li, .evenements article { cursor: pointer; }
:focus-visible { outline: 3px solid var(--turquoise); outline-offset: 3px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--titre); color: var(--encre); font-weight: 800; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); line-height: 1.12; letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 2.8vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; }
h3 { font-size: 1.25rem; line-height: 1.25; font-weight: 600; }
p { margin: 0 0 1em; max-width: 38em; }
p:last-child { margin-bottom: 0; }

.enveloppe { width: min(100% - 2 * var(--gouttiere), var(--largeur)); margin-inline: auto; }
.lien-evitement { position: absolute; left: -999rem; top: 0; background: var(--encre); color: #fff; padding: .75rem 1rem; z-index: 100; }
.lien-evitement:focus { left: 0; color: #fff; }

/* ---------- Haut de page ----------
   La barre des établissements reste en haut de page, opaque.
   Le menu, lui, est une gélule de verre : il colle en haut et la page défile dessous. */
.haut { display: contents; }
main { margin-top: calc(-1 * var(--haut-h, 5rem)); }
main > .cahier .feuille, main > .cahier.accueil .feuille { padding-top: calc(var(--haut-h, 5rem) + var(--carreau) * 2); }

/* Barre d'accès par établissement */
.barre { position: relative; z-index: 51; background: var(--encre); color: #d9cfe6; font-size: .9375rem; }
.barre .enveloppe { display: flex; align-items: center; gap: 1.5rem; min-height: 2.5rem; }
.barre p { margin: 0; color: #fff; font-weight: 600; white-space: nowrap; }
.barre ul { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; margin: 0; padding: 0; }
.barre .reseaux { margin-left: auto; }
.barre a { color: #e9e2f0; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; padding: .35rem 0; }
.barre a:hover { color: #fff; text-decoration: underline; }
.barre .pastille { width: .7rem; height: .7rem; }

/* Couleurs : une par établissement, reprises du logo */
.pastille { display: inline-block; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--c); flex: none; }
.c-violet { --c: var(--violet); --fond: var(--violet); --sur: #fff; }
.c-turquoise { --c: var(--turquoise); --fond: var(--turquoise-plein); --sur: #fff; }
.c-jaune { --c: var(--jaune); --fond: var(--jaune); --sur: var(--encre); }
.c-vert { --c: var(--vert); --fond: var(--vert); --sur: var(--encre); }

/* ---------- En-tête ----------
   Une gélule de verre dépoli qui flotte au-dessus de la page : elle reprend
   les formes arrondies du logo, et s'opacifie dès que l'on fait défiler. */
.entete { position: sticky; top: 0; z-index: 50; padding-block: .75rem; pointer-events: none; }
.entete .enveloppe {
  position: relative; pointer-events: auto;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 4rem; padding: .45rem .5rem .45rem 1.35rem; border-radius: 999px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .86), rgba(255, 255, 255, .7));
  border: 1px solid rgba(255, 255, 255, .75);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 1px 2px rgba(30, 12, 48, .08), 0 10px 30px rgba(30, 12, 48, .14);
  -webkit-backdrop-filter: blur(18px) saturate(170%); backdrop-filter: blur(18px) saturate(170%);
  transition: background-color .25s, box-shadow .25s;
}
.entete.defile .enveloppe {
  background-color: rgba(255, 255, 255, .92);
  box-shadow: inset 0 1px 0 #fff, 0 1px 2px rgba(30, 12, 48, .1), 0 14px 36px rgba(30, 12, 48, .2);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .entete .enveloppe { background: rgba(255, 255, 255, .96); } }
.marque { display: flex; align-items: center; }
.marque img { height: 2.9rem; width: auto; }
.nav ul { display: flex; align-items: center; gap: clamp(.1rem, .6vw, .5rem); list-style: none; margin: 0; padding: 0; }
.nav a { display: block; color: var(--encre); text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2; padding: .65rem 1rem; border-radius: 999px; transition: background-color .15s, color .15s; }
.nav a:hover { background: rgba(142, 42, 143, .1); color: var(--violet); }
.nav a[aria-current="page"] { background: var(--encre); color: #fff; }
.nav a.bouton { color: #fff; padding: .8rem 1.5rem; margin-left: .5rem; border: 1.5px solid var(--violet); background: var(--violet); }
.nav a.bouton:hover { color: #fff; background: var(--encre); border-color: var(--encre); transform: none; }
.bascule { display: none; background: var(--encre); border: 0; border-radius: 999px; padding: .7rem 1.25rem; font: 600 1rem/1.2 var(--sans); color: #fff; cursor: pointer; }

/* ---------- Boutons ---------- */
.bouton { display: inline-block; padding: .85rem 1.6rem; border-radius: 999px; font: 700 1rem/1.2 var(--sans); text-decoration: none; border: 1.5px solid var(--violet); background: var(--violet); color: #fff; cursor: pointer; transition: background-color .15s, color .15s, transform .15s; }
.bouton:hover { background: var(--encre); border-color: var(--encre); color: #fff; transform: translateY(-2px); }
.bouton.secondaire { background: #fff; color: var(--encre); border-color: var(--encre); }
.bouton.secondaire:hover { background: var(--encre); color: #fff; }
.bouton.clair { background: var(--jaune); color: var(--encre); border-color: var(--jaune); }
.bouton.clair:hover { background: #fff; border-color: #fff; color: var(--encre); }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }

/* ---------- Bandeau au dégradé de l'affiche (accueil et têtes de page) ---------- */
.cahier { position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(60% 90% at 88% 0%, rgba(242, 201, 76, .95) 0%, rgba(190, 196, 90, .55) 40%, rgba(190, 196, 90, 0) 75%),
    linear-gradient(155deg, #14938d 0%, #0d7f7d 55%, #0a6a6f 100%); }
.cahier .enveloppe { position: relative; }
.cahier .feuille { position: relative; padding-block: calc(var(--carreau) * 2.5); }
.cahier h1 { color: #fff; text-shadow: 2px 3px 0 rgba(6, 60, 66, .35); }
.cahier .chapeau { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.55; color: #f1fbf9; margin-top: 1.5rem; max-width: 32em; }
.cahier .lieu { position: relative; display: inline-block; font-weight: 700; color: var(--encre); background: var(--jaune); padding: .3rem .9rem; border-radius: 999px; margin: 0 0 1.25rem; font-size: .9375rem; }
.cahier .bouton.secondaire { border-color: #fff; }
.manuscrit { display: block; font-family: var(--manuscrit); font-weight: 400; font-size: 1.75em; line-height: 1; letter-spacing: 0; color: var(--jaune); text-shadow: 3px 4px 0 rgba(6, 60, 66, .35); transform: rotate(-4deg); transform-origin: left bottom; margin-bottom: .15em; }
.eclats { position: absolute; width: 2.75rem; height: 2.75rem; left: calc(100% - .35rem); bottom: 45%; color: var(--jaune); }

/* Têtes des pages intérieures : trois pastilles qui débordent à droite */
.cahier:not(.accueil)::after {
  content: ""; position: absolute; right: -4rem; top: 50%; width: 26rem; height: 26rem; transform: translateY(-50%); pointer-events: none;
  background:
    radial-gradient(circle at 62% 30%, var(--jaune) 0 26%, transparent 26.3%),
    radial-gradient(circle at 34% 62%, rgba(142, 42, 143, .9) 0 30%, transparent 30.3%),
    radial-gradient(circle at 70% 68%, rgba(255, 255, 255, .9) 0 32%, transparent 32.3%);
}
.cahier:not(.accueil) .feuille { max-width: 46rem; }

/* Accueil : texte à gauche, emblème à droite */
.cahier.accueil .enveloppe { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.cahier.accueil .feuille { padding-block: calc(var(--carreau) * 3); }
.cahier.accueil h1 { font-size: clamp(1.9rem, 3.9vw, 3.1rem); line-height: 1.12; }
.embleme { position: relative; }
.embleme img { position: relative; width: 100%; max-width: 30rem; margin-inline: auto; }
.bulle { position: absolute; border-radius: 50%; }
.b1 { width: 22%; aspect-ratio: 1; background: #fff; opacity: .9; left: -4%; bottom: 6%; }
.b2 { width: 12%; aspect-ratio: 1; background: var(--violet); right: 2%; top: 4%; }
.b3 { width: 8%; aspect-ratio: 1; background: var(--jaune); right: 14%; bottom: -2%; }
@media (prefers-reduced-motion: no-preference) {
  .embleme img { animation: arrivee .9s cubic-bezier(.2, .8, .2, 1.15) both; }
  .bulle { animation: flotte 7s ease-in-out infinite alternate; }
  .b2 { animation-duration: 9s; animation-delay: -3s; }
  .b3 { animation-duration: 6s; animation-delay: -1.5s; }
  @keyframes arrivee { from { opacity: 0; transform: scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
  @keyframes flotte { from { transform: translateY(-10px); } to { transform: translateY(14px); } }
}

/* ---------- Chiffres : quatre aplats ---------- */
.chiffres ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); margin-block: 0; }
.chiffres { background: linear-gradient(to right, var(--violet) 50%, var(--vert) 50%); }
.chiffres li { background: var(--fond); color: var(--sur); padding: 1.75rem 1.5rem; font-weight: 600; line-height: 1.35; }
.chiffres strong { display: block; font-family: var(--titre); font-weight: 800; letter-spacing: -.02em; font-size: clamp(1.9rem, 3.4vw, 2.75rem); line-height: 1.1; margin-bottom: .25rem; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section.lavis { background: var(--lavis); }
.section > .enveloppe > h2 { margin-bottom: 1rem; }
h2::after { content: ""; display: block; width: 3.5rem; height: .35rem; border-radius: 999px; background: var(--jaune); margin-top: .9rem; }
.intro { font-size: 1.125rem; color: var(--texte-doux); max-width: 36em; margin-bottom: 2.5rem; }
.deux-colonnes { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.deux-colonnes h2 { margin-bottom: 1.25rem; }
.deux-colonnes.egales { grid-template-columns: 1fr 1fr; }
.suite { margin-top: 1.75rem; }

/* Missions : mosaïque de quatre tuiles */
.missions { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.missions > div { background: var(--fond); color: var(--sur); padding: 1.75rem; border-radius: 1.25rem; transition: transform .2s; }
.missions > div:nth-child(1) { border-top-left-radius: 4rem; }
.missions > div:nth-child(4) { border-bottom-right-radius: 4rem; }
.missions > div:hover { transform: translateY(-4px) rotate(-.6deg); }
.missions dt { font-family: var(--titre); font-size: 1.3rem; font-weight: 600; line-height: 1.2; }
.missions dd { margin: .6rem 0 0; }
.icone { display: block; width: 2.75rem; height: 2.75rem; margin-bottom: 1rem; }

/* Parcours : de la maternelle au collège, les pastilles grandissent avec l'enfant */
.parcours { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; align-items: end; }
.parcours li { position: relative; }
.parcours .ages { display: grid; place-items: center; width: var(--taille); aspect-ratio: 1; border-radius: 50%; background: var(--fond); color: var(--sur); font-weight: 700; font-size: 1.0625rem; text-align: center; margin: 0 0 1.25rem; }
.parcours li:nth-child(1) { --taille: 6.5rem; }
.parcours li:nth-child(2) { --taille: 8rem; }
.parcours li:nth-child(3) { --taille: 9.5rem; }
.parcours li:not(:last-child)::after { content: ""; position: absolute; left: calc(var(--taille) + 1rem); right: -1rem; top: calc(var(--taille) / 2); border-top: 3px dotted #b9aec6; }
.parcours p { color: var(--texte-doux); margin-top: .6rem; }
.parcours li > p:last-child { min-height: 5em; }

/* Établissements : une carte par couleur */
.etablissements { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.etablissements li { display: flex; flex-direction: column; gap: .6rem; background: #fff; border: 2px solid var(--c); border-radius: 1.25rem; padding: 1.5rem; scroll-margin-top: calc(var(--haut-h, 5rem) + 1rem); transition: transform .2s, box-shadow .2s; }
.etablissements li:hover, .etablissements li:target { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(30, 12, 48, .12); }
.etablissements .pastille { width: 3rem; height: 3rem; margin-bottom: .25rem; }
.etablissements address { font-style: normal; color: var(--texte-doux); line-height: 1.45; }
.etablissements .tel { font-weight: 700; color: var(--encre); text-decoration: none; }
.etablissements .tel:hover { text-decoration: underline; }
.etablissements .referent { font-weight: 700; margin-top: auto; padding-top: .75rem; }

/* Événements : trois cartes, la photo se fond dans la couleur */
.evenements { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.evenements.deux { grid-template-columns: repeat(2, 1fr); }
.evenements article { position: relative; display: flex; flex-direction: column; overflow: hidden; background: var(--fond); color: var(--sur); border-radius: 1.75rem; box-shadow: 0 10px 28px rgba(30, 12, 48, .12); transition: transform .25s, box-shadow .25s; }
.evenements article:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(30, 12, 48, .2); }
.vignette { position: relative; overflow: hidden; background: var(--fond); margin-bottom: -2px; }
.vignette img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; transition: transform .5s; transform-origin: 50% 30%; }
.evenements.deux .vignette img { aspect-ratio: 16 / 7; }
.evenements article:hover .vignette img { transform: scale(1.06); }
.vignette::after { content: ""; position: absolute; inset: 0 0 -1px 0; background: linear-gradient(to bottom, transparent 45%, var(--fond) 94%); }
.evenements .corps { position: relative; background: var(--fond); display: flex; flex-direction: column; flex: 1; padding: .25rem 1.75rem 1.75rem; }
.evenements h3 { color: var(--sur); font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.evenements h3 a { color: inherit; text-decoration: none; }
.evenements h3 a::after { content: ""; position: absolute; inset: 0; }
.evenements h3 a:focus-visible { outline: none; }
.evenements article:focus-within { outline: 3px solid var(--encre); outline-offset: 3px; }
.evenements .corps > p { margin-top: .6rem; }
.evenements .edition { background: color-mix(in srgb, var(--sur) 14%, transparent); border-radius: .9rem; padding: .8rem 1rem; margin-top: 1rem; font-size: .9375rem; }
.evenements .corps > .pied-tuile { display: flex; flex-wrap: nowrap; white-space: nowrap; align-items: center; justify-content: space-between; gap: .75rem; margin-top: auto; padding-top: 1.5rem; max-width: none; }
.evenements .public { background: color-mix(in srgb, var(--sur) 16%, transparent); border-radius: 999px; padding: .3rem .85rem; font-weight: 600; font-size: .875rem; }
.evenements .voir { font-weight: 700; text-decoration: underline; text-underline-offset: .2em; }
.missions dt { color: var(--sur); }

/* Page d'un événement */
.cahier.evenement::after { display: none; }
.cahier.evenement .enveloppe { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.cahier.evenement .affiche { margin-top: calc(var(--haut-h, 5rem) - 1rem); }
.photo.affiche { margin-bottom: 0; transform: rotate(3deg); border: 5px solid #fff; border-radius: 2rem 2rem 2rem 5rem; box-shadow: 0 18px 40px rgba(6, 60, 66, .35); }
.photo.affiche img { aspect-ratio: 4 / 3; }
.infos { margin: 0; max-width: 44rem; border-top: 2px solid var(--encre); }
.infos > div { display: grid; grid-template-columns: 12rem 1fr; gap: .25rem 1.5rem; padding: .9rem 0; border-bottom: 1px solid var(--filet); }
.infos dt { font-weight: 700; color: var(--encre); }
.infos dd { margin: 0; }
.tarifs { border-collapse: collapse; width: 100%; max-width: 24rem; }
.tarifs th, .tarifs td { padding: .7rem 1rem; text-align: left; border-bottom: 1px solid var(--filet); }
.tarifs th { font-weight: 600; color: var(--encre); }
.tarifs td { text-align: right; font-family: var(--titre); font-weight: 800; color: var(--violet); font-variant-numeric: tabular-nums; }
.tarifs tr:last-child td { color: var(--turquoise-fonce); }

/* Appel à adhérer */
.appel { position: relative; overflow: hidden; background: var(--violet); color: #f6e9f6; }
.appel::before, .appel::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; }
.appel::before { width: 22rem; height: 22rem; right: -5rem; top: -9rem; background: var(--turquoise); opacity: .85; }
.appel::after { width: 12rem; height: 12rem; right: 9rem; bottom: -7rem; background: var(--jaune); opacity: .9; }
.appel .enveloppe { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 2rem; }
.appel h2 { color: #fff; max-width: 14em; }
.appel h2::after { display: none; }
.appel p { margin-top: .75rem; max-width: 30em; }

/* Photos : coin arrondi de l'affiche et voile aux couleurs de la marque */
.photo { position: relative; margin: 2.5rem 0 0; border-radius: 1.5rem 1.5rem 1.5rem 5rem; overflow: hidden; box-shadow: 0 18px 40px rgba(30, 12, 48, .16); }
.photo img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.photo.haute img { aspect-ratio: 4 / 3.4; }
.photo::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(140deg, rgba(242, 185, 48, .28), rgba(14, 159, 150, .3) 70%, rgba(142, 42, 143, .28)); mix-blend-mode: soft-light; }
.avec-photo { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.avec-photo .photo { margin-top: 0; position: sticky; top: calc(var(--haut-h, 5rem) + 1.5rem); transform: rotate(1.5deg); border: 4px solid #fff; }

/* Texte courant des pages intérieures */
.prose h2 { margin: 3rem 0 1.25rem; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 2rem 0 .5rem; }
.prose ul { padding-left: 0; max-width: 38em; list-style: none; }
.prose li { margin-bottom: .6rem; padding-left: 1.75rem; position: relative; }
.prose li::before { content: ""; position: absolute; left: 0; top: .45em; width: .8rem; height: .8rem; border-radius: 50%; background: var(--violet); }
.prose li:nth-child(4n+2)::before { background: var(--turquoise); }
.prose li:nth-child(4n+3)::before { background: var(--jaune); }
.prose li:nth-child(4n+4)::before { background: var(--vert); }
.encadre { border-radius: 1.25rem; background: var(--jaune); color: var(--encre); padding: 1.5rem 1.75rem; margin: 2.5rem 0 0; max-width: 40em; }
.encadre a { color: var(--encre); font-weight: 700; }
.a-completer { background: #fff4c9; padding: 0 .3em; border-radius: 2px; }

/* Formulaire d'adhésion */
.carte-formulaire { background: var(--lavis); border-radius: 1.5rem; padding: clamp(1.5rem, 3vw, 2.5rem); }
.formulaire { display: grid; gap: 1.1rem; margin-top: 1.5rem; }
.formulaire label { display: grid; gap: .35rem; font-weight: 600; color: var(--encre); }
.formulaire .aide { font-weight: 400; color: var(--texte-doux); font-size: .9375rem; }
.formulaire input, .formulaire select, .formulaire textarea { font: 400 1rem/1.4 var(--sans); color: var(--texte); padding: .75rem .9rem; border: 1.5px solid #b9aec6; border-radius: .6rem; background: #fff; width: 100%; }
.formulaire input:focus, .formulaire select:focus, .formulaire textarea:focus { outline: 3px solid var(--turquoise); outline-offset: 1px; border-color: var(--turquoise-fonce); }
.formulaire .bouton { justify-self: start; }

/* ---------- Pied de page ---------- */
.pied { background: var(--encre); color: #cfc5da; padding-block: 3.5rem 2rem; font-size: 1rem; }
.pied .enveloppe { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2.5rem; }
.pied .identite { display: flex; align-items: center; gap: 1.1rem; margin-bottom: 1.25rem; }
.pied .logo { flex: none; transition: transform .15s; }
.pied .logo:hover { transform: translateY(-2px); }
.pied .logo img { height: 6rem; width: auto; }
.pied .nom { font-family: var(--titre); font-weight: 600; font-size: 1.2rem; color: #fff; line-height: 1.3; max-width: 16em; margin: 0; }
.pied h2 { font: 700 1rem var(--sans); color: #fff; letter-spacing: 0; margin-bottom: .75rem; }
.pied h2::after { display: none; }
.pied ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; }
.pied a { color: #cfc5da; text-decoration: none; }
.pied a:hover { color: #fff; text-decoration: underline; }
.pied .bas { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,.14); padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9375rem; }
.pied .bas p { max-width: none; margin: 0; }

/* ---------- Écrans moyens et petits ---------- */
@media (max-width: 64rem) {
  .etablissements { grid-template-columns: 1fr 1fr; }
  .chiffres ul { grid-template-columns: 1fr 1fr; }
  .cahier:not(.accueil)::after { opacity: .35; }
}
@media (max-width: 56rem) {
  .deux-colonnes, .deux-colonnes.egales { grid-template-columns: 1fr; }
  .avec-photo { grid-template-columns: 1fr; }
  .avec-photo .photo { position: static; transform: none; }
  .evenements, .evenements.deux { grid-template-columns: 1fr; }
  .cahier.evenement .enveloppe { grid-template-columns: 1fr; }
  .cahier.evenement .affiche { margin: 0 auto 2.5rem; max-width: 18rem; }
  .infos > div { grid-template-columns: 1fr; }
  .parcours { grid-template-columns: 1fr; align-items: start; }
  .parcours li:not(:last-child)::after { display: none; }
  .parcours li > p:last-child { min-height: 0; }
  .pied .enveloppe { grid-template-columns: 1fr; }
  .cahier.accueil .enveloppe { grid-template-columns: 1fr; }
  .embleme { max-width: 18rem; margin: 0 auto 2.5rem; }
}
@media (max-width: 50rem) {
  .barre p, .barre .reseaux { display: none; }
  .barre .enveloppe { padding-block: .35rem; }
  .bascule { display: inline-block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: calc(100% + .6rem); background: #fff; border-radius: 1.75rem; box-shadow: 0 14px 40px rgba(30, 12, 48, .2); padding: .75rem; }
  .nav.ouverte { display: block; }
  .nav ul { flex-direction: column; align-items: stretch; gap: .15rem; }
  .nav a.bouton { margin: .5rem 0 0; text-align: center; }
  .entete .enveloppe { min-height: 3.5rem; padding-left: 1.1rem; }
  .marque img { height: 2.5rem; }
  .cahier .feuille, .cahier.accueil .feuille { padding-block: calc(var(--carreau) * 2); }
  .eclats { display: none; }
}
@media (max-width: 34rem) {
  .missions, .etablissements { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .barre, .entete, .appel, .pied { display: none; } }
