/* Sites thématiques de Montere — base commune, reprise de l'habillage « Ensemble » de la démo
   (charte Odilon : bleu #0A0D60, rose #FF3B6B, fond crème, Nunito). Chaque site ajoute sa couleur
   d'accent (--site, réglée dans le back-office) et ses styles propres dans /site.css.
   Règles : pas de dégradé, pas de flou, pas de bordure colorée latérale ; boutons en capsule,
   texte blanc sur rose 600 ; surtitres seuls en capitales ; focus orange 3 px. */
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 400 1000; font-display: swap; src: url("/commun/nunito-latin.woff2") format("woff2"); }

:root {
  --bleu: #0a0d60; --bleu-fonce: #06083f; --bleu-doux: #eceaf6;
  --rose: #ff3b6b; --rose-btn: #e0204f; --rose-btn-hover: #b8143d; --rose-pale: #ffc0d0; --rose-doux: #ffe2ea;
  --creme: #faf8f2; --lilas: #f2ecf3; --blanc: #fff;
  --encre: #171936; --encre-2: #2a2c4d; --muted: #616277;
  --ligne: #e0e0e9; --ligne-forte: #c4c4d6;
  --site: #0a0d60; --site-fonce: #06083f; --site-doux: #eceaf6;
  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px; --r-2xl: 24px;
  --ombre: 0 12px 30px rgba(10, 13, 96, .12);
  --wrap: 1092px; --gouttiere: clamp(20px, 3.4vw, 44px); --sec: clamp(2.6rem, 5vw, 4rem);
  --police: "Nunito", "Trebuchet MS", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
body.s-body { margin: 0; background: var(--creme); color: var(--encre); font: 430 1rem/1.55 var(--police); }
img, svg, video { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--bleu); text-underline-offset: 3px; }
a:hover { color: var(--rose-btn-hover); }
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid #ef880e; outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--police); color: var(--bleu); font-weight: 900; letter-spacing: -0.035em; line-height: 1.12; margin: 0 0 .5em; }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); font-weight: 950; letter-spacing: -0.044em; line-height: 1.04; }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
b, strong { font-weight: 750; }
.s-wrap { width: min(100% - 2 * var(--gouttiere), var(--wrap)); margin-inline: auto; }
.s-muted { color: var(--muted); }
.sr-only, .s-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.s-skip { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--bleu); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; }
.s-skip:focus { left: 0; }
.s-ico { flex: none; vertical-align: -0.2em; }

/* Bandeau supérieur, alertes, en-tête */
.s-top { background: var(--bleu); color: #fff; font-size: .75rem; letter-spacing: .02em; padding: 8px 0; }
.s-top a { color: #fff; font-weight: 800; }
.s-top a:hover { color: var(--rose-pale); }
.s-top-in { display: flex; justify-content: space-between; gap: 16px; }
@media (max-width: 560px) { .s-top-r { display: none; } }
.s-alerte, .s-bandeau { font-size: .9rem; border-bottom: 1px solid #f3d8b0; background: #fff0d9; color: #553606; }
.s-alerte--urgence { background: #8a1c15; color: #fff; border-color: #8a1c15; }
.s-alerte--urgence a { color: #fff; }
.s-bandeau { background: var(--site-doux); color: var(--encre); border-color: var(--ligne); }
.s-alerte-in { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; padding: 10px 0; }
.s-alerte a { color: inherit; font-weight: 800; }
.s-header { background: #fff; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 var(--ligne); }
.s-header-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.s-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--bleu); min-width: 0; }
.s-mark { display: grid; place-items: center; position: relative; flex: none; width: 42px; height: 46px; border-radius: 5px 5px 19px 19px; background: var(--site); color: #fff; font: 950 26px/1 var(--police); }
.s-mark::after { content: ""; position: absolute; right: 7px; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); }
.s-mark--clair { background: #fff; color: var(--bleu); }
.s-brand-txt strong { display: block; font-size: 1.3rem; font-weight: 850; letter-spacing: -0.035em; line-height: 1.1; }
.s-brand-txt span { display: block; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.s-nav { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.s-nav a { padding: .5rem .6rem; font-size: .92rem; font-weight: 800; color: var(--bleu); text-decoration: none; border-radius: var(--r-md); }
.s-nav a:hover { color: #ca1948; }
.s-nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--rose); border-radius: 0; }
.s-nav .s-btn { margin-left: 8px; color: #fff; padding: .55rem 1.1rem; border-radius: 999px; box-shadow: none; }
.s-nav .s-btn:hover { color: #fff; }
.s-burger { display: none; align-items: center; gap: 6px; border: 1px solid var(--ligne); background: #fff; color: var(--bleu); border-radius: var(--r-md); padding: 8px 12px; font: 800 .9rem var(--police); cursor: pointer; }
@media (max-width: 900px) {
  .s-burger { display: inline-flex; }
  .s-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: 8px var(--gouttiere) 18px; box-shadow: 0 12px 20px rgba(10, 13, 96, .08); }
  .s-nav.ouvert { display: flex; }
  .s-nav a { padding: .8rem .4rem; border-bottom: 1px solid var(--ligne); border-radius: 0; }
  .s-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--rose); padding-left: .8rem; }
  .s-nav .s-btn { margin: 12px 0 0; text-align: center; border-bottom: 0; }
  .s-header-in { position: relative; }
  .s-brand-txt strong { font-size: 1.1rem; }
}

/* Boutons et liens */
.s-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 46px; padding: .7rem 1.4rem; border: 0; border-radius: 999px; background: var(--rose-btn); color: #fff; font: 850 .95rem/1.2 var(--police); text-decoration: none; cursor: pointer; }
.s-btn:hover { background: var(--rose-btn-hover); color: #fff; }
.s-btn--petit { min-height: 38px; padding: .45rem 1rem; font-size: .88rem; }
.s-btn--bleu { background: var(--bleu); }
.s-btn--bleu:hover { background: var(--bleu-fonce); }
.s-btn--site { background: var(--site); }
.s-btn--site:hover { background: var(--site-fonce); }
.s-btn--contour { background: transparent; color: var(--bleu); box-shadow: inset 0 0 0 1.5px var(--bleu); }
.s-btn--contour:hover { background: var(--bleu); color: #fff; }
.s-btn--clair { background: #fff; color: var(--bleu); }
.s-btn--clair:hover { background: var(--rose-pale); color: var(--bleu); }
.s-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.4rem; }
.s-lien { font-weight: 850; font-size: .92rem; color: var(--bleu); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.s-lien::after { content: " →"; }
.s-lien:hover { color: #ca1948; }

/* Accroche */
.s-hero { padding: clamp(2.4rem, 5vw, 3.6rem) 0 clamp(2rem, 4vw, 3rem); }
.s-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 4vw, 48px); align-items: center; }
@media (max-width: 860px) { .s-hero-grid { grid-template-columns: 1fr; } }
.s-surtitre { margin: 0 0 14px; font: 900 .75rem/1.4 var(--police); letter-spacing: .13em; text-transform: uppercase; color: var(--site); }
.s-hero h1 em, .s-titre em { position: relative; z-index: 0; display: inline-block; font-style: normal; }
.s-hero h1 em::after, .s-titre em::after { content: ""; position: absolute; z-index: -1; left: -2px; right: -5px; bottom: 2px; height: 11px; background: var(--rose-pale); transform: rotate(-2deg); }
.s-hero-intro { max-width: 32rem; color: var(--muted); font-size: 1.05rem; }
.s-hero-media { position: relative; margin: 0; overflow: hidden; border-radius: 12px 12px 56px 12px; background: var(--site-doux); aspect-ratio: 4 / 3; }
.s-hero-media img { width: 100%; height: 100%; object-fit: cover; }
.s-hero-media figcaption { position: absolute; left: 14px; bottom: 14px; background: rgba(10, 13, 96, .86); color: #fff; font-size: .78rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; }

/* En-tête de page intérieure */
.s-page-head { padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.4rem, 3vw, 2rem); }
.s-page-head p { max-width: 40rem; color: var(--muted); font-size: 1.05rem; }
.s-fil { font-size: .82rem; font-weight: 700; color: var(--muted); margin: 0 0 1rem; }
.s-fil a { color: var(--muted); }

/* Sections */
.s-section { padding: var(--sec) 0; }
.s-section--blanc { background: #fff; }
.s-section--lilas { background: var(--lilas); }
.s-section--site { background: var(--site-doux); }
.s-section--bleu { background: var(--bleu); color: #fff; }
.s-section--bleu h2, .s-section--bleu h3 { color: #fff; }
.s-section--bleu a:not(.s-btn) { color: #fff; }
.s-section--bleu .s-surtitre { color: var(--rose-pale); }
.s-sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 1.6rem; }
.s-sec-head h2 { margin: 0; }
.s-sec-head p { margin: .4rem 0 0; color: var(--muted); max-width: 38rem; }
.s-trait { display: block; width: 44px; height: 6px; border-radius: 999px; background: var(--rose); margin: 0 0 16px; }

/* Grilles et cartes */
.s-grille { display: grid; gap: clamp(14px, 2vw, 22px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.s-grille--2 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); }
.s-grille--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.s-carte { position: relative; display: flex; flex-direction: column; gap: .5rem; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 22px; color: var(--encre); text-decoration: none; }
a.s-carte:hover, .s-carte:has(a.s-carte-lien:hover) { border-color: var(--bleu); box-shadow: var(--ombre); }
.s-carte h3 { margin: 0; }
.s-carte p { margin: 0; color: var(--muted); font-size: .95rem; }
.s-carte-lien { color: var(--bleu); text-decoration: none; }
.s-carte-lien::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.s-carte-media { margin: -22px -22px 6px; overflow: hidden; border-radius: var(--r-lg) var(--r-lg) 0 0; aspect-ratio: 16 / 10; background: var(--site-doux); }
.s-carte-media img, .s-carte-media svg { width: 100%; height: 100%; object-fit: cover; }
.s-carte--lilas { background: var(--lilas); border-color: transparent; }
.s-carte--site { background: var(--site); border-color: transparent; color: #fff; }
.s-carte--site h3, .s-carte--site p, .s-carte--site a { color: #fff; }
.s-pastille { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 999px; background: var(--site-doux); color: var(--site-fonce); font-size: .75rem; font-weight: 850; }
.s-pastille--rose { background: var(--rose-doux); color: #8f1235; }
.s-pastille--vert { background: #e3f4ec; color: #1a794f; }
.s-pictos { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: .4rem 0 0; padding: 0; list-style: none; color: var(--muted); font-size: .88rem; font-weight: 700; }
.s-pictos li { display: inline-flex; align-items: center; gap: 6px; }

/* Chiffres clés */
.s-chiffres { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin: 0; padding: 0; list-style: none; }
.s-chiffres li { background: #fff; border-radius: var(--r-lg); padding: 20px; border: 1px solid var(--ligne); }
.s-chiffres strong { display: block; font-size: clamp(1.9rem, 3.4vw, 2.6rem); font-weight: 950; letter-spacing: -0.04em; color: var(--site); line-height: 1; margin-bottom: 6px; }
.s-chiffres span { color: var(--muted); font-size: .9rem; font-weight: 650; }
.s-section--bleu .s-chiffres li { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .18); }
.s-section--bleu .s-chiffres strong { color: #fff; }
.s-section--bleu .s-chiffres span { color: #d8d9ef; }

/* Agenda */
.s-agenda { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.s-agenda li { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: center; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 14px 18px; }
.s-date { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 12px; background: var(--lilas); color: var(--bleu); text-align: center; line-height: 1; }
.s-date b { display: block; font-size: 1.6rem; font-weight: 950; }
.s-date small { display: block; font-size: .68rem; font-weight: 900; letter-spacing: .08em; margin-top: 3px; }
.s-agenda h3 { font-size: 1.05rem; margin: 0 0 2px; }
.s-agenda p { margin: 0; color: var(--muted); font-size: .9rem; }

/* Tableaux de tarifs, horaires */
.s-table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--ligne); background: #fff; }
.s-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.s-table caption { text-align: left; padding: 14px 18px 0; font-weight: 900; color: var(--bleu); }
.s-table th, .s-table td { padding: 12px 18px; text-align: left; border-bottom: 1px solid var(--ligne); vertical-align: top; }
.s-table thead th { font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.s-table tbody tr:last-child > * { border-bottom: 0; }
.s-table td.s-prix { font-weight: 850; color: var(--bleu); white-space: nowrap; }
.s-horaires { margin: 0; display: grid; gap: 6px; }
.s-horaires div { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px dashed var(--ligne-forte); }
.s-horaires dt { font-weight: 800; }
.s-horaires dd { margin: 0; text-align: right; }
.s-horaires--compact div { padding: 3px 0; border-color: rgba(255, 255, 255, .2); font-size: .9rem; }
.s-horaires-note { font-size: .88rem; margin-top: .6rem; }

/* Bloc d'appel (rose) */
.s-appel { background: var(--rose-doux); border-radius: var(--r-2xl); padding: clamp(24px, 4vw, 44px); display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.s-appel h2 { margin: 0 0 .3rem; }
.s-appel p { margin: 0; color: var(--encre-2); }
@media (max-width: 700px) { .s-appel { grid-template-columns: 1fr; } }

/* Texte courant */
.s-prose { max-width: 44rem; font-size: 1.04rem; }
.s-prose h2 { margin-top: 1.6em; font-size: 1.6rem; }
.s-prose h3 { margin-top: 1.4em; }
.s-prose ul { padding-left: 1.2em; }
.s-prose li { margin-bottom: .35em; }
.s-encadre { background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 20px 22px; }
.s-encadre--site { background: var(--site-doux); border-color: transparent; }
.s-liste-check { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.s-liste-check li { position: relative; padding-left: 30px; }
.s-liste-check li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; border-radius: 50%; background: var(--site-doux) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230a0d60' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 13px no-repeat; }
.s-deux-col { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
@media (max-width: 860px) { .s-deux-col { grid-template-columns: 1fr; } }

/* Formulaires */
.s-form { display: grid; gap: 16px; }
.s-champ { display: grid; gap: 6px; }
.s-champ label { font-weight: 800; color: var(--bleu); font-size: .92rem; }
.s-champ input, .s-champ select, .s-champ textarea { font: inherit; padding: 11px 14px; border: 1px solid var(--ligne-forte); border-radius: 10px; background: #fff; color: var(--encre); }
.s-champ input:focus, .s-champ select:focus, .s-champ textarea:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px var(--bleu-doux); }
.s-champs-ligne { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }

/* Onglets / filtres simples */
.s-filtres { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.4rem; padding: 0; list-style: none; }
.s-filtres button, .s-filtres a { border: 1px solid var(--ligne-forte); background: #fff; color: var(--bleu); border-radius: 999px; padding: 7px 14px; font: 800 .88rem var(--police); cursor: pointer; text-decoration: none; }
.s-filtres [aria-pressed="true"], .s-filtres [aria-current="page"] { background: var(--bleu); color: #fff; border-color: var(--bleu); }

/* Pied de page */
.s-footer { background: var(--bleu); color: #d8d9ef; padding: 48px 0 0; margin-top: 0; font-size: .92rem; }
.s-footer a { color: #fff; }
.s-footer a:hover { color: var(--rose-pale); }
.s-footer-grid { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 32px; padding-bottom: 36px; }
@media (max-width: 800px) { .s-footer-grid { grid-template-columns: 1fr; } }
.s-footer-nom { display: flex; align-items: center; gap: 12px; color: #fff; font-size: 1.2rem; font-weight: 900; letter-spacing: -0.02em; margin-bottom: 18px; }
.s-footer-titre { color: #fff; font-weight: 900; font-size: .75rem; letter-spacing: .13em; text-transform: uppercase; margin-bottom: 12px; }
.s-footer-contact, .s-footer-sites { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.s-footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.s-footer-contact .s-ico { margin-top: 2px; color: var(--rose-pale); }
.s-footer dt { color: #fff; }
.s-footer-bas { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding: 18px 0 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: .8rem; }

/* Site en pause */
.s-pause { min-height: 70vh; display: grid; place-content: center; justify-items: center; text-align: center; gap: 12px; max-width: 34rem; }

/* Apparition douce au défilement (désactivée si mouvement réduit) */
.s-apparait { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.s-apparait.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .s-apparait { opacity: 1; transform: none; } }
.s-footer .s-muted { color: #c9cae6; }
.s-page-head .s-surtitre { color: var(--site); font-size: .75rem; max-width: none; margin-bottom: 14px; }
ul.s-grille, ol.s-grille, ul.s-chiffres, ul.s-agenda { list-style: none; padding: 0; margin: 0; }
[hidden] { display: none !important; }
.s-sec-head .s-surtitre { color: var(--site); }
