/* Base commune à tous les templates : remise à zéro, galerie, cartes, visionneuse, menu mobile.
   Chaque template redéfinit les couleurs et la mise en page par-dessus. */
/* Polices hébergées avec le site (14/11, plus d'appel à Google Fonts) : Baloo 2 et Nunito, licence SIL OFL, sous-ensemble
   « latin » de Google Fonts (accents français, œ, « », ’, …, €), polices variables : une seule par famille pour toutes les graisses */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400 800; font-display: swap; src: url("polices/baloo2-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("polices/nunito-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.6; }
img { max-width: 100%; display: block; }
/* Images avec dimensions (site public, 14/11) : la hauteur suit la largeur ; specificite nulle, toute regle de modele l'emporte */
:where(img[width][height]) { height: auto; }
[hidden] { display: none !important; }
a { color: inherit; }

/* Menu : ul imbriqués, sous-menus en survol sur grand écran */
[data-nav] ul { list-style: none; margin: 0; padding: 0; }
[data-nav] a { text-decoration: none; display: block; }
/* Le 3e niveau du menu (ex. chaque sortie scolaire) est accessible par les cartes de la page parente */
[data-nav] ul ul ul { display: none !important; }
.burger { display: none; background: none; border: 0; font-size: 1.8rem; cursor: pointer; color: inherit; padding: .2rem .5rem; }

/* Contenu */
[data-contenu] h2, [data-contenu] h3 { line-height: 1.25; }
[data-contenu] table { border-collapse: collapse; width: 100%; margin: 1rem 0; }
[data-contenu] td, [data-contenu] th { border: 1px solid rgba(0,0,0,.12); padding: .4rem .6rem; text-align: left; }
[data-contenu] a { word-break: break-word; }

/* Galerie */
[data-galerie] { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: .8rem; margin: 2rem 0; }
[data-galerie] figure { margin: 0; cursor: zoom-in; overflow: hidden; }
[data-galerie] img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .3s; }
[data-galerie] figure:hover img { transform: scale(1.04); }
[data-galerie] figcaption { font-size: .8rem; padding: .3rem 0; opacity: .75; }

/* Cartes (rubriques, sous-pages) */
[data-rubriques], [data-sous-pages] { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.2rem; }
.carte { text-decoration: none; display: flex; flex-direction: column; overflow: hidden; }
.carte-img { display: block; aspect-ratio: 4/3; background: #ddd center/cover; }
.carte-titre { display: block; padding: .7rem .9rem; font-weight: 600; }

/* Visionneuse */
.visionneuse { position: fixed; inset: 0; background: rgba(0,0,0,.92); z-index: 1000; display: flex; align-items: center; justify-content: center; }
.visionneuse img { max-width: 92vw; max-height: 88vh; object-fit: contain; }
.visionneuse button { position: absolute; background: none; border: 0; color: #fff; font-size: 3rem; cursor: pointer; padding: 1rem; line-height: 1; }
.v-fermer { top: 0; right: 0; }
.v-prec { left: 0; top: 50%; transform: translateY(-50%); }
.v-suiv { right: 0; top: 50%; transform: translateY(-50%); }

/* ===== Série 4 (body.s4) : mise en page commune des blocs rendus par moteur.js ; chaque modèle règle les variables
   --a1..--a5 (couleurs vives), --encre, --doux, --fond, --carte, --rayon, --ombre, --titre (police des titres), --cote (fond du menu). */
.s4 { --a1: #f05a28; --a2: #2fa84f; --a3: #2f7fd8; --a4: #e85d9c; --a5: #fdbb1f; --encre: #2f2a24; --doux: #6f655a; --fond: #fffdf7; --carte: #fff;
  --rayon: 22px; --ombre: 0 6px 20px rgba(60,40,10,.10); --titre: inherit; --cote: var(--a5);
  background: var(--fond); color: var(--encre); font-size: 17px; display: grid; grid-template-columns: 280px 1fr; min-height: 100vh; }
.s4 h1, .s4 h2, .s4 h3, .s4 .b-titre, .s4 [data-nav] > ul > li > a, .s4 .b-chiffres strong, .s4 .b-heure, .s4 .b-annee, .s4 .b-tarif strong, .s4 .b-num { font-family: var(--titre); }
.s4 .cote { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--cote); padding: 1.4rem 1.2rem; display: flex; flex-direction: column; gap: 1rem; z-index: 5; }
.s4 .marque { display: block; align-self: center; }
.s4 .marque img { width: 140px; height: auto; }
.s4 [data-nav] > ul > li > a { font-size: 1.2rem; padding: .45rem .9rem; border-radius: 999px; }
.s4 .coord { margin-top: auto; border-radius: 18px; padding: .8rem 1rem; font-size: .86rem; line-height: 1.4; background: var(--carte); color: var(--encre); }
.s4 .coord p { margin: .35rem 0; }
.s4 .coord small, .s4 .b-coord small { display: block; color: var(--doux); padding-left: 1.5rem; }
.s4 .coord a, .s4 .b-coord a { text-decoration: none; font-weight: 800; overflow-wrap: anywhere; color: var(--a1); }
.s4 .coord .c-mail a { font-size: .78rem; }
.s4 .principal { min-width: 0; }
.s4 .hero { position: relative; min-height: 78vh; background: center 72% / cover; display: flex; align-items: flex-end; }
.s4 .hero-texte { margin: 2rem; padding: 1.5rem 2rem; max-width: 600px; background: var(--carte); border-radius: var(--rayon); box-shadow: var(--ombre); }
.s4 .hero h1 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.08; margin: 0 0 .5rem; color: var(--a1); }
.s4 .hero p { margin: 0 0 1rem; font-size: 1.1rem; }
.s4 .tete-page { padding: 2.5rem 3rem 0; max-width: 1140px; margin: 0 auto; }
.s4 .tete-page h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; margin: 0; color: var(--a1); }
.s4 [data-blocs] { padding: 1rem 3rem 3rem; max-width: 1140px; margin: 0 auto; }
.s4 .bloc { margin: 0 0 2.2rem; }
.s4 .bloc-titre { margin: 2.6rem 0 1rem; }
.s4 .b-titre { font-size: 2rem; line-height: 1.15; margin: 0; color: var(--a2); }
.s4 .b-sous { margin: .3rem 0 0; color: var(--doux); }
.s4 .b-intro { font-size: 1.3rem; line-height: 1.5; max-width: 760px; margin: 1rem 0 0; }
.s4 .b-note { color: var(--doux); font-size: .95rem; margin: 1rem 0 0; }
.s4 .b-bouton { display: inline-block; background: var(--a2); color: #fff; padding: .6rem 1.3rem; border-radius: 999px; text-decoration: none; font-weight: 800; white-space: nowrap; }
.s4 .b-bouton.second { background: var(--a3); }
.s4 .b-photo { display: block; background: #e7efe0 center / cover; }
/* bandeau, chiffres, aperçu */
.s4 .b-bandeau { display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap; justify-content: space-between; background: var(--a5); color: var(--encre); border-radius: var(--rayon); padding: 1rem 1.4rem; margin-top: 1.5rem; }
.s4 .b-bandeau p { margin: 0; font-size: 1.15rem; }
.s4 .b-chiffres { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.s4 .b-chiffres li { background: var(--carte); border-radius: var(--rayon); padding: 1.1rem 1rem; text-align: center; box-shadow: var(--ombre); }
.s4 .b-chiffres strong { display: block; font-size: 2.6rem; line-height: 1; color: var(--a1); }
.s4 .b-chiffres li:nth-child(2) strong { color: var(--a2); } .s4 .b-chiffres li:nth-child(3) strong { color: var(--a3); } .s4 .b-chiffres li:nth-child(4) strong { color: var(--a4); }
.s4 .b-chiffres span { display: block; margin-top: .4rem; color: var(--doux); line-height: 1.3; }
.s4 .b-apercu { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.2rem; margin-top: 1rem; }
.s4 .b-apercu-carte { display: grid; grid-template-columns: 42% 1fr; background: var(--carte); border-radius: var(--rayon); overflow: hidden; text-decoration: none; color: inherit; box-shadow: var(--ombre); transition: transform .2s; }
.s4 .b-apercu-carte:hover { transform: translateY(-3px); }
.s4 .b-apercu-carte .b-photo { min-height: 170px; }
.s4 .b-txt { padding: 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }
.s4 .b-txt strong { font-family: var(--titre); font-size: 1.45rem; color: var(--a1); }
.s4 .b-apercu-carte:nth-child(2) strong { color: var(--a2); } .s4 .b-apercu-carte:nth-child(3) strong { color: var(--a3); } .s4 .b-apercu-carte:nth-child(4) strong { color: var(--a4); }
.s4 .b-txt em { margin-top: auto; font-style: normal; font-weight: 800; color: var(--doux); }
/* équipe, dates, cartes, repli */
.s4 .b-equipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1.2rem; }
.s4 .b-personne { margin: 0; display: grid; grid-template-columns: 130px 1fr; gap: 1.1rem; align-items: start; background: var(--carte); border-radius: var(--rayon); padding: 1.1rem; box-shadow: var(--ombre); }
.s4 .b-personne img { width: 130px; height: 150px; object-fit: cover; border-radius: calc(var(--rayon) * .7); }
.s4 .b-personne strong { display: block; font-family: var(--titre); font-size: 1.4rem; color: var(--a1); }
.s4 .b-role { display: block; color: var(--a2); font-weight: 800; font-size: .92rem; }
.s4 .b-personne p { margin: .5rem 0 0; }
.s4 .b-dates { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; position: relative; }
.s4 .b-dates::before { content: ""; position: absolute; left: 0; right: 0; top: 1.4rem; height: 4px; background: var(--a5); border-radius: 2px; }
.s4 .b-dates li { position: relative; }
.s4 .b-annee { position: relative; display: inline-block; background: var(--a1); color: #fff; font-size: 1.3rem; padding: .3rem .9rem; border-radius: 999px; }
.s4 .b-dates li:nth-child(5n+2) .b-annee { background: var(--a2); } .s4 .b-dates li:nth-child(5n+3) .b-annee { background: var(--a3); }
.s4 .b-dates li:nth-child(5n+4) .b-annee { background: var(--a4); } .s4 .b-dates li:nth-child(5n+5) .b-annee { background: var(--a5); color: var(--encre); }
.s4 .b-dates p { margin: .6rem 0 0; font-size: .95rem; line-height: 1.45; }
.s4 .b-cartes, .s4 .b-schema { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.2rem; }
.s4 .b-cartes:has(> :nth-child(4):last-child) { grid-template-columns: repeat(auto-fit, minmax(max(220px, 40%), 1fr)); } /* 4 cartes : 2 x 2 plutot que 3 + 1 */
.s4 .b-carte, .s4 .b-schema-pas { background: var(--carte); border-radius: var(--rayon); padding: 1.3rem; box-shadow: var(--ombre); border-top: 7px solid var(--a1); }
.s4 .b-carte:nth-child(2), .s4 .b-schema-pas:nth-child(2) { border-color: var(--a2); } .s4 .b-carte:nth-child(3), .s4 .b-schema-pas:nth-child(3) { border-color: var(--a3); }
.s4 .b-icone { font-size: 2rem; line-height: 1; }
.s4 .b-carte h3 { margin: .5rem 0 .3rem; font-size: 1.35rem; }
.s4 .b-carte p, .s4 .b-schema-pas p { margin: 0; }
.s4 .b-schema-pas p { margin-top: .5rem; font-size: 1.05rem; }
.s4 .b-replie { background: var(--carte); border-radius: var(--rayon); padding: .9rem 1.3rem; box-shadow: var(--ombre); }
.s4 .b-replie summary { cursor: pointer; font-weight: 800; font-size: 1.1rem; color: var(--a3); }
.s4 .b-replie a { color: var(--a1); }
/* âges, domaines */
.s4 .b-ages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.s4 .b-age { background: var(--carte); border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre); }
.s4 .b-age .b-photo { aspect-ratio: 16/9; }
.s4 .b-age-txt { padding: 1.2rem 1.4rem 1.4rem; }
.s4 .b-age-nom { display: inline-block; font-family: var(--titre); font-size: 1.2rem; background: var(--a1); color: #fff; padding: .2rem .9rem; border-radius: 999px; }
.s4 .b-age:nth-child(2) .b-age-nom { background: var(--a3); }
.s4 .b-age blockquote { margin: .7rem 0 .4rem; font-family: var(--titre); font-size: 1.6rem; line-height: 1.2; color: var(--a1); }
.s4 .b-age:nth-child(2) blockquote { color: var(--a3); }
.s4 .b-age p { margin: 0; }
.s4 .b-mots { list-style: none; padding: 0; margin: .9rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.s4 .b-mots li { background: var(--fond); border: 2px solid var(--a5); border-radius: 999px; padding: .1rem .7rem; font-size: .9rem; font-weight: 700; }
.s4 .b-domaines-choix { display: grid; grid-template-columns: repeat(5, 1fr); gap: .8rem; }
.s4 .b-domaine { position: relative; border: 0; padding: 0; cursor: pointer; border-radius: var(--rayon); overflow: hidden; aspect-ratio: 1; background: var(--carte); box-shadow: var(--ombre); font: inherit; outline-offset: 3px; }
.s4 .b-domaine .b-photo { position: absolute; inset: 0; transition: transform .3s; }
.s4 .b-domaine:hover .b-photo { transform: scale(1.06); }
.s4 .b-domaine .b-nom { position: absolute; left: 0; right: 0; bottom: 0; padding: .5rem .6rem; background: var(--a1); color: #fff; font-family: var(--titre); font-weight: 700; font-size: 1.05rem; line-height: 1.15; }
.s4 .b-domaine:nth-child(2) .b-nom { background: var(--a2); } .s4 .b-domaine:nth-child(3) .b-nom { background: var(--a3); }
.s4 .b-domaine:nth-child(4) .b-nom { background: var(--a4); } .s4 .b-domaine:nth-child(5) .b-nom { background: var(--a5); color: var(--encre); }
.s4 .b-domaine.actif { box-shadow: 0 0 0 5px var(--encre); }
.s4 .b-domaine-panneau { margin-top: 1.2rem; background: var(--carte); border-radius: var(--rayon); padding: 1.2rem 1.4rem; box-shadow: var(--ombre); }
.s4 .b-domaine-panneau h3 { margin: 0; font-size: 1.5rem; color: var(--a2); }
.s4 .b-domaine-panneau p { margin: .4rem 0 0; max-width: 720px; }
/* galeries */
.s4 .b-galerie { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); margin: 1.2rem 0 0; }
.s4 .b-galerie img { border-radius: calc(var(--rayon) * .6); }
.s4 .b-galerie-courte figure:nth-child(n+5) { display: none; }
.s4 .b-galerie-mini { grid-template-columns: repeat(4, 1fr); gap: .5rem; }
.s4 .b-galerie-mini figcaption { display: none; }
.s4 .b-classe { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1.2rem; }
.s4 .b-classe figcaption { font-weight: 800; opacity: 1; color: var(--a1); min-height: 1.5em; }
/* journée */
.s4 .b-frise { list-style: none; padding: 0 0 0 0; margin: 1.5rem 0 0; position: relative; }
.s4 .b-frise::before { content: ""; position: absolute; left: 6.2rem; top: .5rem; bottom: .5rem; width: 5px; border-radius: 3px; background: linear-gradient(var(--a5), var(--a1), var(--a2), var(--a3)); }
.s4 .b-frise li { display: grid; grid-template-columns: 5.4rem 1fr; gap: 1.8rem; align-items: center; margin-bottom: 1rem; position: relative; }
.s4 .b-frise li::before { content: ""; position: absolute; left: 5.85rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; background: var(--carte); border: 4px solid var(--a1); }
.s4 .b-heure { text-align: right; font-size: 1.15rem; line-height: 1.15; color: var(--a1); font-weight: 700; }
.s4 .b-frise-carte { display: grid; grid-template-columns: 150px 1fr; gap: 1.1rem; align-items: center; background: var(--carte); border-radius: var(--rayon); padding: .7rem; box-shadow: var(--ombre); }
.s4 .b-frise-carte .b-photo { aspect-ratio: 4/3; border-radius: calc(var(--rayon) * .6); }
.s4 .b-frise-carte h3 { margin: 0; font-size: 1.3rem; color: var(--a2); }
.s4 .b-frise-carte p { margin: .2rem 0 0; }
.s4 .b-rythmes { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 1.2rem; }
.s4 .b-rythme { background: var(--carte); border-radius: var(--rayon); padding: 1.2rem; box-shadow: var(--ombre); }
.s4 .b-rythme h3 { margin: 0; font-size: 1.4rem; color: var(--a3); }
.s4 .b-rythme p { margin: .4rem 0 0; }
/* nous rejoindre */
.s4 .b-etapes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; counter-reset: e; }
.s4 .b-etapes li { background: var(--carte); border-radius: var(--rayon); padding: 1.3rem; box-shadow: var(--ombre); position: relative; }
.s4 .b-num { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--a1); color: #fff; font-size: 1.6rem; }
.s4 .b-etapes li:nth-child(2) .b-num { background: var(--a2); } .s4 .b-etapes li:nth-child(3) .b-num { background: var(--a3); }
.s4 .b-quand { display: block; margin-top: .7rem; color: var(--doux); font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; }
.s4 .b-etapes h3 { margin: .2rem 0 .3rem; font-size: 1.35rem; }
.s4 .b-etapes p { margin: 0; }
.s4 .b-tarifs { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 1rem; align-items: stretch; }
.s4 .b-tarif { background: var(--carte); border-radius: var(--rayon); padding: 1.2rem; box-shadow: var(--ombre); display: flex; flex-direction: column; gap: .2rem; }
.s4 .b-tarif strong { font-size: 2.2rem; line-height: 1; color: var(--a2); }
.s4 .b-tarif span { font-weight: 800; }
.s4 .b-tarif small { color: var(--doux); font-size: .88rem; margin-top: auto; padding-top: .5rem; }
.s4 .b-tarif.avant { background: var(--a1); color: #fff; }
.s4 .b-tarif.avant strong { color: #fff; font-size: 2.8rem; }
.s4 .b-tarif.avant small { color: rgba(255,255,255,.88); }
.s4 .b-faq { display: grid; gap: .7rem; max-width: 860px; }
.s4 .b-faq details { background: var(--carte); border-radius: calc(var(--rayon) * .7); padding: .9rem 1.2rem; box-shadow: var(--ombre); }
.s4 .b-faq summary { cursor: pointer; font-weight: 800; font-size: 1.08rem; }
.s4 .b-faq summary::marker { color: var(--a1); }
.s4 .b-faq p { margin: .5rem 0 0; }
.s4 .b-faq a { color: var(--a1); }
.s4 .b-contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.2rem; }
.s4 .b-coord, .s4 .b-acces { background: var(--carte); border-radius: var(--rayon); padding: 1.2rem 1.4rem; box-shadow: var(--ombre); }
.s4 .b-coord p { margin: .4rem 0; }
.s4 .b-acces p { margin: 0 0 1rem; }
.s4 .b-acces .b-itineraire { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; } /* boutons carte, Google Maps et Waze (12/11) */
.s4 .pied { display: none; background: var(--encre); color: #fff; padding: 1.5rem 1rem; }
.s4 .pied a { color: var(--a5); }
.s4 .pied p { margin: .3rem 0; }
/* 14/11 : pied de page (téléphone), la précision sous le numéro (« de 12 h à 14 h les jours d'école ») passe à la ligne au lieu d'être collée au numéro */
.s4 .pied small { display: block; opacity: .85; padding-left: 1.5rem; }
@media (max-width: 1100px) {
  .s4 .b-dates { grid-template-columns: 1fr; gap: .8rem; }
  .s4 .b-dates::before { left: 2.4rem; right: auto; top: 0; bottom: 0; width: 4px; height: auto; }
  .s4 .b-dates li { display: grid; grid-template-columns: 5rem 1fr; gap: 1rem; align-items: start; }
  .s4 .b-annee { text-align: center; }
  .s4 .b-dates p { margin: .2rem 0 0; }
  .s4 .b-tarifs { grid-template-columns: repeat(2, 1fr); }
  .s4 .b-apercu { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .s4 { display: block; }
  .s4 .cote { height: auto; max-height: 100vh; flex-direction: row; flex-wrap: wrap; align-items: center; padding: .5rem 1rem; gap: .4rem; }
  .s4 .cote .marque img { width: 48px; }
  .s4 .cote .marque { padding: 3px; margin: 0; transform: none; border-width: 2px; box-shadow: none; }
  .s4 .burger { margin-left: auto; }
  .s4 [data-nav] { width: 100%; }
  .s4 .cote .coord { display: none; }
  .s4.menu-ouvert .cote .coord { display: block; width: 100%; margin-bottom: .5rem; }
  .s4 .hero { min-height: 64vh; }
  .s4 .hero-texte { margin: 1rem; padding: 1.1rem 1.2rem; }
  .s4 .tete-page { padding: 1.6rem 1rem 0; }
  .s4 [data-blocs] { padding: .5rem 1rem 2rem; }
  .s4 .b-titre { font-size: 1.7rem; }
  .s4 .b-intro { font-size: 1.15rem; }
  .s4 .b-chiffres { grid-template-columns: repeat(2, 1fr); }
  .s4 .b-apercu-carte { grid-template-columns: 1fr; }
  .s4 .b-apercu-carte .b-photo { min-height: 150px; }
  .s4 .b-personne { grid-template-columns: 90px 1fr; }
  .s4 .b-personne img { width: 90px; height: 110px; }
  .s4 .b-ages, .s4 .b-etapes, .s4 .b-contact { grid-template-columns: 1fr; }
  .s4 .b-domaines-choix { grid-template-columns: repeat(3, 1fr); }
  .s4 .b-domaine .b-nom { font-size: .85rem; }
  .s4 .b-frise::before { left: 1rem; }
  .s4 .b-frise li { grid-template-columns: 1fr; gap: .3rem; padding-left: 2.4rem; }
  .s4 .b-frise li::before { left: .6rem; top: .9rem; margin-top: 0; }
  .s4 .b-heure { text-align: left; }
  .s4 .b-frise-carte { grid-template-columns: 96px 1fr; }
  .s4 .b-tarifs { grid-template-columns: 1fr; }
  .s4 .pied { display: block; }
}

/* ===== Série 5 (body.s4.s5) : corrections d'après les remarques de Maman sur 21-25 — photo d'accueil jamais recouverte,
   tarif mis en avant en bleu (--tarif), écriture plus fine et moins grosse, photos arrondies, menu toujours visible sur téléphone. */
.s4.s5 h1, .s4.s5 h2, .s4.s5 h3, .s4.s5 .b-titre { font-weight: var(--graisse, 700); }
.s4.s5 .rapide { display: none; }
.s4.s5 .accueil { padding: 1.5rem 1.5rem 0 2rem; }
.s4.s5 .hero-photo { height: min(64vh, 620px); min-height: 320px; border-radius: 28px; background: #e7efe0 center 72% / cover; box-shadow: var(--ombre); }
.s4.s5 .accroche { max-width: 1140px; margin: 0 auto; padding: 1.6rem 1.5rem 0; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.s4.s5 .accroche > div:first-child { flex: 1 1 480px; }
.s4.s5 .accroche h1 { font-size: clamp(1.8rem, 3vw, 2.5rem); line-height: 1.15; margin: 0; color: var(--a1); }
.s4.s5 .accroche p { margin: .5rem 0 0; font-size: 1.1rem; color: var(--doux); }
.s4.s5 .boutons { display: flex; flex-wrap: wrap; gap: .5rem; }
.s4.s5 .tete-page h1 { font-size: clamp(2rem, 4vw, 2.6rem); }
.s4.s5 .b-titre { font-size: 1.7rem; }
.s4.s5 .b-intro { font-size: 1.2rem; }
.s4.s5 .b-chiffres strong { font-size: 2.2rem; }
.s4.s5 .b-txt strong, .s4.s5 .b-personne strong { font-size: 1.3rem; }
.s4.s5 .b-age blockquote { font-size: 1.4rem; }
.s4.s5 .b-tarif strong { font-size: 2rem; color: var(--tarif, #3b7be0); }
.s4.s5 .b-tarif.avant { background: var(--tarif, #3b7be0); color: #fff; }
.s4.s5 .b-tarif.avant strong { color: #fff; font-size: 2.4rem; }
.s4.s5 .b-galerie img, .s4.s5 .b-personne img, .s4.s5 .b-frise-carte .b-photo, .s4.s5 .b-age .b-photo, .s4.s5 .b-apercu-carte .b-photo { border-radius: 22px; }
.s4.s5 .b-age .b-photo, .s4.s5 .b-apercu-carte .b-photo { margin: .6rem; }
.s4.s5 .b-apercu-carte { grid-template-columns: 40% 1fr; }
.s4.s5 .b-domaine { border-radius: 26px; }
@media (max-width: 860px) {
  .s4.s5 { font-size: 16px; }
  .s4.s5 .cote { position: relative; padding: .5rem .8rem .6rem; gap: .5rem; }
  .s4.s5 [data-nav] > ul > li > a::before { display: none; }
  .s4.s5 .rapide { display: flex; gap: .5rem; margin-left: auto; }
  .s4.s5 .rapide a { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--carte); text-decoration: none; font-size: 1.2rem; box-shadow: var(--ombre); }
  .s4.s5 [data-nav] { display: block; width: 100%; }
  .s4.s5 [data-nav] > ul { display: flex; flex-wrap: wrap; gap: .35rem; padding: .1rem 0 .2rem; }
  .s4.s5 [data-nav] > ul > li > a { white-space: nowrap; font-size: .9rem; padding: .3rem .75rem; background: var(--puce, rgba(255,255,255,.75)); }
  .s4.s5 .cote .coord, .s4.s5 .burger { display: none !important; }
  .s4.s5 .accueil { padding: .8rem .8rem 0; }
  .s4.s5 .hero-photo { height: 42vh; min-height: 220px; border-radius: 22px; }
  .s4.s5 .accroche { padding: 1rem .4rem 0; }
  .s4.s5 .accroche h1 { font-size: 1.6rem; }
  .s4.s5 .accroche p { font-size: 1rem; }
  .s4.s5 .tete-page h1 { font-size: 1.7rem; }
  .s4.s5 .b-titre { font-size: 1.35rem; }
  .s4.s5 .b-intro { font-size: 1.05rem; }
  .s4.s5 .b-chiffres strong { font-size: 1.8rem; }
  .s4.s5 .b-tarif strong { font-size: 1.7rem; }
  .s4.s5 .b-tarif.avant strong { font-size: 2rem; }
  .s4.s5 .b-age blockquote { font-size: 1.2rem; }
  .s4.s5 .b-apercu-carte { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .burger { display: block; }
  [data-nav] { display: none; }
  body.menu-ouvert [data-nav] { display: block; }
  [data-nav] ul ul { display: block !important; position: static !important; box-shadow: none !important; padding-left: 1rem !important; background: none !important; min-width: 0 !important; }
}
