/* ==========================================================================
   Thème « commune » de Pandao CMS : la base graphique des sites de communes
   (maquette v9.2 de Taden, 17 novembre 2026), construite par
   tools/build-css.py depuis tools/css/ : ne pas modifier ce fichier à la main.

   Une dominante, un accent et l'encre (Réglages du site et de l'extension,
   écrits dans <style id="commune-colors">) : c'est tout ce qui change d'une
   commune à l'autre, avec --len (longueur du nom).

   Règles du système (à respecter pour toute nouvelle section) :
   - Arrondis : l'arche est la signature, deux usages seulement (photo du
     hero, photo de la une ; leurs trois autres coins : --r-lg).
     --r-lg pour toute image (actus, lieux, carte) ; --r-card pour les cartes
     d'accès rapide ; --r-md pour les documents du kiosque et les petits éléments.
     Pilule pour ce qui se clique comme un bouton (boutons, recherche,
     puces). Les bandes, sections et le pied de page ont des bords droits.
     La vague n'existe que sur la bande agenda.
   - Boutons : .button (plein, dominante), .button-light (blanc, sur une
     bande de couleur), .button-ghost (contour), .button-icon (rond), et
     .link-arrow pour « voir tout ». Rien d'autre.
   - Pictos : bicolores (trait encre, aplat accent adouci) pour les accès
     rapides uniquement ; partout ailleurs, Phosphor simple, couleur du texte.
   - Cartes : seulement les accès rapides. Ailleurs, l'image et la typo
     portent la hiérarchie.
   - Survol : ce qui est un objet (carte, couverture) monte ; une image
     zoome dans son cadre ; un titre lié passe à l'accent foncé.
   - Nom de la commune : Prompt 500 (proche du logo), ou Fraunces (réglage).
   - Titres : Fraunces, empattements arrondis (axe SOFT à 100, WONK à 0) ;
     un mot en italique accent pour le rythme (entre astérisques dans
     l'administration). Quatre tailles (t-xxl, t-xl, t-l, t-m), jamais deux
     sections consécutives à la même taille.
   Polices sous licence SIL OFL 1.1 (fonts/OFL-*.txt), icônes Phosphor (MIT).
   ========================================================================== */

@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-full-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("../fonts/fraunces-latin-full-italic.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Prompt"; src: url("../fonts/prompt-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Public Sans"; src: url("../fonts/public-sans-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* Couleurs du thème : celles de la maquette de Taden. --main-color et --highlight-color sont lues par le cœur
   (couleurs des Réglages laissées vides) ; la page les remplace par celles de la commune (#commune-colors). */
:root {
  --main-color: #005c73;
  --highlight-color: #d13d60;
  --c-dominant: #005c73;
  --c-ink-base: #13303f;
  --c-accent: #d13d60;
  --c-accent-deep: #99243f;
  --c-tint: #fbe9ed;
  --c-water: #96d2f0;
  --c-night: var(--c-ink-base);

  --c-ink: var(--c-ink-base);
  --c-accent-on-dark: color-mix(in srgb, var(--c-accent) 28%, #fff);
  --c-accent-soft: color-mix(in srgb, var(--c-accent) 42%, #fff);
  --c-muted: #46525c;
  --c-line: #e3e6e9;
  --c-field: #7a858e; /* bord d'un champ : 3,8:1 sur le blanc, 3,5:1 sur le beige */
  --c-paper: #faf6f0;

  --f-title: "Fraunces", Georgia, serif;
  --f-name: "Prompt", var(--f-body);
  --f-body: "Public Sans", system-ui, sans-serif;
  --r-md: .75rem; --r-lg: 1.75rem; --r-card: 2rem; --r-pill: 999px;
  --r-arch: 7rem;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --shadow-lift: 0 1px 2px rgba(10,30,40,.06), 0 1.25rem 2.5rem -1rem rgba(10,30,40,.32);

  --bs-body-font-family: var(--f-body);
  --bs-body-color: var(--c-ink);
  --bs-body-bg: #fff;
  --bs-link-color-rgb: 153, 36, 63;
  --bs-link-hover-color-rgb: 10, 30, 40;
}
@media (min-width: 992px) { :root { --r-arch: 12rem; --r-lg: 3rem; --r-card: 3.75rem; } }
html.name-fraunces { --f-name: var(--f-title); }
html.name-fraunces .hero-name { font-weight: 450; letter-spacing: -.035em; }


/* ---------- Base ---------- */
html { scroll-padding-top: 6rem; font-variation-settings: "SOFT" 100, "WONK" 0; }
html, body { overflow-x: clip; }
body { font-size: 1.0625rem; line-height: 1.6; }
h1, h2, h3 { font-family: var(--f-title); color: inherit; font-weight: 450; }
h3 { letter-spacing: -.01em; line-height: 1.15; }
:where(h2, h3) { text-wrap: balance; }
a { text-underline-offset: .22em; text-decoration-thickness: .07em; }
:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; border-radius: .4rem; }
#contenu:focus, #contenu:focus-visible { outline: none; box-shadow: none; }
.on-dark :focus-visible, .band :focus-visible, .kiosque :focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px var(--c-ink); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }
.skip-links a { position: absolute; left: 1rem; top: -10rem; z-index: 2000; background: var(--c-ink); color: #fff; padding: .75rem 1.25rem; border-radius: var(--r-pill); font-weight: 600; }
.skip-links a:focus { top: 1rem; }
.meta { font-size: .9375rem; color: var(--c-muted); letter-spacing: .005em; }
.cat { margin: 0 0 .45rem; font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-deep); }

/* ---------- Titres : quatre tailles, un mot en italique accent ---------- */
.title { font-family: var(--f-title); font-weight: 450; letter-spacing: -.015em; line-height: 1; margin: 0; }
.title em { font-style: italic; color: var(--c-accent); padding-right: .04em; }
.t-xxl { font-size: clamp(4.5rem, 14vw, 10.5rem); line-height: .82; letter-spacing: -.035em; }
.t-xl  { font-size: clamp(3.2rem, 8vw, 6.5rem); line-height: .9; letter-spacing: -.03em; }
.news .t-xl { font-weight: 550; } /* un cran plus gras : le titre des actus ressort */
.t-l   { font-size: clamp(2.6rem, 5.6vw, 4.4rem); line-height: .95; letter-spacing: -.025em; }
.t-m   { font-size: clamp(2.2rem, 4vw, 3.2rem); letter-spacing: -.02em; }
.sec-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2.25rem; }
@media (min-width: 992px) { .sec-head { margin-bottom: 3rem; } }

/* ---------- Boutons : quatre variantes, toutes en pilule ---------- */
.button { --b-bg: var(--c-dominant); --b-fg: #fff; --b-bd: var(--b-bg);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 48px; padding: .7rem 1.3rem; border-radius: var(--r-pill);
  border: 2px solid var(--b-bd); background: var(--b-bg); color: var(--b-fg); font-weight: 700; line-height: 1.1; text-decoration: none; flex: none;
  transition: background-color .2s, color .2s, border-color .2s; }
.button i { font-size: 1.25rem; }
.button:hover { --b-bg: var(--c-accent-deep); color: #fff; }
.button-light { --b-bg: #fff; --b-fg: var(--c-ink); }
.button-light:hover { --b-bg: var(--c-ink); --b-fg: #fff; }
.button-ghost { --b-bg: transparent; --b-fg: var(--c-dominant); --b-bd: var(--c-dominant); }
.button-ghost:hover { --b-bg: var(--c-dominant); --b-bd: var(--c-dominant); --b-fg: #fff; }
.button-icon { width: 48px; height: 48px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; font-size: 1.35rem; color: inherit; border: 2px solid currentColor; text-decoration: none; transition: background-color .2s, color .2s; }
.on-dark .button-icon:hover { background: #fff; color: var(--c-ink); border-color: #fff; }

/* « Voir tout » : texte + flèche dans un rond qui se remplit au survol.
   Le même rond (.arrow) sert d'indice de lien sur la une. */
.arrow { flex: none; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid currentColor; display: inline-grid; place-items: center; font-size: 1.15rem; transition: background-color .25s, border-color .25s, color .25s, transform .35s var(--ease); }
.link-arrow { display: inline-flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--c-accent-deep); text-decoration: none; padding-block: .3rem; }
.link-arrow:hover { color: var(--c-ink); }
.link-arrow:hover .arrow, .une:hover .arrow { background: var(--c-accent-deep); border-color: var(--c-accent-deep); color: #fff; transform: translateX(.25rem); }
.band .link-arrow, .on-dark .link-arrow { color: #fff; }
.band .link-arrow:hover .arrow { background: #fff; border-color: #fff; color: var(--c-dominant); }
.on-dark .link-arrow:hover .arrow { background: #fff; border-color: #fff; color: var(--c-ink); }

/* ---------- Alerte ---------- */
.notice-bar { background: var(--c-tint); font-size: .9375rem; letter-spacing: .01em; }
.notice-bar .container-xl { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem 1.25rem; padding-block: .6rem; }
.notice-bar p { margin: 0; flex: 1 1 18rem; }
.notice-bar .flag { color: var(--c-ink); text-transform: uppercase; font-size: .8125rem; letter-spacing: .08em; margin-right: .5rem; }
.notice-bar a { font-weight: 700; color: var(--c-ink); }

/* ---------- En-tête ---------- */
.site-header { position: relative; z-index: 1030; padding: .9rem 0; }
.header-bar { display: flex; align-items: center; gap: .5rem; }
.brand { flex: 0 1 auto; min-width: 0; }
.brand img { height: 2.75rem; width: auto; max-width: 100%; display: block; }
@media (min-width: 992px) { .header-bar { gap: 1rem; } .brand img { height: 3.25rem; } }
/* Sans logo exploitable : nom en texte, emplacement du logo à gauche */
.brand-text { display: flex; align-items: center; gap: .6rem; color: var(--c-ink); text-decoration: none; font-family: var(--f-title); font-weight: 550; font-size: 1.15rem; line-height: 1.05; }
.brand-mark { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 50%; background: var(--c-dominant); }
@media (max-width: 575.98px) {
  .hd-collapse { width: 48px; padding: 0; }
  .hd-collapse .hd-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Hero : le nom chevauche le haut de la photo ----------
   La taille du nom dépend de sa longueur (--len) : l'effet tient pour
   « Taden » comme pour « Saint-Samson-sur-Rance » (sur deux lignes).
   La bande beige des accès rapides commence sous la photo (.hero-band) :
   la photo et la recherche mordent dessus. */
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); container-type: inline-size; --fit: .55; }
.hero-grid { --name: min(8rem, calc(96cqw / (var(--len) * var(--fit)))); }
.hero-grid > * { grid-column: 1; }
.hero-band { grid-column: 1 / -1; grid-row: 4 / 6; margin: 1.5rem calc(50% - 50vw) 0; background: var(--c-paper); }
.hero-name { grid-row: 1; position: relative; z-index: 2; margin: .25rem 0 0 -.04em; font-family: var(--f-name); font-weight: 500; letter-spacing: -.045em; line-height: .82;
  font-size: var(--name); margin-bottom: calc(var(--name) * -.26); }
.hero-name .l { display: block; }
.tagline { grid-row: 4; position: relative; margin: 3rem 0 0; font-family: var(--f-title); font-weight: 400; font-size: 1.6rem; line-height: 1.15; letter-spacing: -.015em; color: var(--c-ink); text-wrap: balance; }
.tagline em { font-style: italic; color: var(--c-accent); }
.hero-photo { grid-row: 2; position: relative; z-index: 1; margin: 0; height: 21rem; border-radius: var(--r-arch) var(--r-lg) var(--r-lg) var(--r-lg); overflow: hidden; background: var(--c-paper); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; display: block; }
/* Crédits photo : pas affichés dans la maquette ; composants gardés pour les sites qui doivent créditer (.photo-credit, .meta .credit, .photo-note) */
.photo-credit { position: absolute; left: .75rem; bottom: 2.4rem; font-size: .75rem; color: #fff; background: rgba(10,30,40,.72); padding: .15rem .6rem; border-radius: var(--r-pill); margin: 0; }
.open-now { grid-row: 5; position: relative; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; margin: 1rem 0 0; font-size: .9375rem; letter-spacing: .01em; color: var(--c-muted); }
.open-now .dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-accent); }
.open-now a { color: var(--c-ink); font-weight: 700; flex-basis: 100%; padding-left: 1.15rem; }
.hero-search { grid-row: 3; position: relative; z-index: 2; margin: -1.75rem 0 0; }
.search-pill { display: flex; align-items: center; gap: .5rem; background: #fff; border-radius: var(--r-pill); padding: .35rem .35rem .35rem 1.1rem; box-shadow: 0 0 0 1px var(--c-field), 0 .5rem 1.75rem -.25rem rgba(10,30,40,.18); }
.search-pill > i { font-size: 1.35rem; color: var(--c-muted); }
.search-pill input { flex: 1; border: 0; background: transparent; color: var(--c-ink); font-size: 1rem; min-width: 0; padding: .7rem 0; }
.search-pill input:focus-visible { outline: none; box-shadow: none; }
.search-pill:focus-within { outline: 3px solid var(--c-ink); outline-offset: 3px; box-shadow: 0 0 0 6px #fff; }
.search-pill input::placeholder { color: var(--c-muted); opacity: 1; }
.search-pill button { flex: none; border: 0; background: var(--c-dominant); color: #fff; border-radius: var(--r-pill); height: 3rem; min-width: 3.5rem; padding: 0 1.25rem; font-weight: 700; transition: background-color .2s; }
.search-pill button:hover { background: var(--c-accent-deep); }
@media (max-width: 575.98px) { .search-pill button { padding: 0 1rem; font-size: .9375rem; } }
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 34fr) minmax(0, 66fr); grid-template-rows: auto auto auto 1fr auto 4.5rem; }
  .hero-grid { --name: min(15rem, calc(66cqw / (var(--len) * var(--fit)))); }
  .hero-band { grid-row: 6; margin-top: 0; }
  .hero-name { grid-column: 1 / -1; grid-row: 1; margin-top: 2.25rem; margin-bottom: calc(var(--name) * -.3); }
  /* la photo remonte à côté du nom (env. 150 px pour « Taden ») ; pas pour un nom sur deux lignes (--lines: 2) */
  .hero-photo { grid-column: 2; grid-row: 2 / 7; height: auto; min-height: 30rem; margin-top: calc(var(--name) * -.6 * (2 - var(--lines, 1))); }
  .hero-photo img { position: absolute; inset: 0; }
  .tagline { grid-column: 1; grid-row: 2; align-self: start; margin: calc(var(--name) * .3 + 1.75rem) 2.5rem 0 0; font-size: clamp(1.9rem, 2.6vw, 2.6rem); line-height: 1.08; color: var(--c-ink); }
  .open-now { grid-column: 1; grid-row: 3; align-self: start; margin: 1.75rem 2rem 2.5rem 0; color: var(--c-muted); }
  .hero-search { grid-column: 1 / -1; grid-row: 5; align-self: end; margin: 0 0 2rem; width: min(36rem, 34% + 12rem); }
  .photo-credit { left: auto; right: 1.25rem; bottom: 1.25rem; }
}
/* La photo file jusqu'au bord droit de l'écran (plafonnée au-delà de 1920 px) */
.hero-photo { --bleed: .75rem; margin-right: calc(-1 * var(--bleed)); }
@media (min-width: 1200px) { .hero-photo { --bleed: calc((100vw - 1140px) / 2 + .75rem); } }
@media (min-width: 1400px) { .hero-photo { --bleed: calc((100vw - 1320px) / 2 + .75rem); } }
@media (min-width: 1921px) { .hero-photo { --bleed: calc((1920px - 1320px) / 2 + .75rem); } }

/* ---------- Accès rapides : cartes blanches sur la bande beige ----------
   Au repos, un liseré à peine visible (comme la recherche) détache la carte du beige. */
.quick { background: var(--c-paper); padding: 1.5rem 0 3rem; }
.quick ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: .6rem; list-style: none; margin: 0; padding: 0; }
.quick a { display: flex; flex-direction: column; align-items: center; gap: .6rem; height: 100%; padding: 1.1rem .4rem 1.05rem; background: #fff; border-radius: var(--r-card); color: var(--c-ink); text-decoration: none; text-align: center; font-weight: 700; font-size: .9375rem; line-height: 1.2; box-shadow: 0 0 0 1px rgba(10,30,40,.05); transition: box-shadow .3s, transform .35s var(--ease); }
.quick i { font-size: 2.6rem; line-height: 1; }
.quick .ph-duotone::before, .quick .ph-duotone::after { display: inline-block; }
.quick .ph-duotone::before { color: var(--c-accent-soft); opacity: 1; transform: translate(.07em, .07em); transition: transform .35s var(--ease); }
.quick .ph-duotone::after { position: relative; color: var(--c-ink); }
.quick a:hover { transform: translateY(-5px); box-shadow: 0 0 0 1px rgba(10,30,40,.05), 0 1.25rem 2rem -1rem rgba(10,30,40,.22); }
.quick a:hover .ph-duotone::before { transform: translate(.13em, .13em); }
@media (min-width: 768px) {
  .quick ul { grid-template-columns: repeat(6, 1fr); gap: 1rem; }
  .quick a { padding: 1.6rem .6rem 1.4rem; gap: .85rem; font-size: 1rem; }
  .quick i { font-size: 3rem; }
}
@media (min-width: 992px) { .quick { padding: 2.25rem 0 4rem; } } /* un espace sous la photo, qui mord sur la bande */

/* ---------- Visuels : jamais recadrés, fond = l'image floutée ---------- */
.media { position: relative; overflow: hidden; background: var(--c-paper); border-radius: var(--r-lg); isolation: isolate; }
.media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .6s var(--ease); }
.media img.media-bg { object-fit: cover; filter: blur(40px) saturate(.9); opacity: .85; transform: scale(1.5); }
article:hover .media img:not(.media-bg) { transform: scale(1.04); }
.media-arch { border-top-left-radius: var(--r-arch); }

/* titre lié : toute la zone est cliquable, le titre passe à l'accent foncé */
.une h3 a, .brief h3 a, .place h3 a, .cover-title a, .event h3 a { color: inherit; text-decoration: none; transition: color .25s; }
.une h3 a::after, .brief h3 a::after, .place h3 a::after, .cover-title a::after, .event h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
:is(.une, .brief, .place, .cover, .event) h3 a:focus-visible { outline: none; box-shadow: none; }
:is(.une, .brief, .place):hover h3 a { color: var(--c-accent-deep); }
:is(.une, .brief, .place, .cover, .event):focus-within { outline: 3px solid var(--c-ink); outline-offset: 6px; border-radius: var(--r-lg); }

/* ---------- Actualités : la une, puis trois brèves, sans cartes ---------- */
.news { padding-block: 4rem 4.5rem; }
.une { position: relative; display: grid; }
.une .media { aspect-ratio: 3 / 2; }
.une-text { padding-top: 1.5rem; }
.une h3 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1.02; letter-spacing: -.03em; margin: 0 0 1rem; }
.une-text > p:not(.cat) { max-width: 46ch; font-size: 1.125rem; }
.une-foot { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; color: var(--c-accent-deep); }
@media (min-width: 992px) {
  .news { padding-block: 6rem 6rem; }
  .une { grid-template-columns: 7fr 5fr; align-items: end; column-gap: 3.5rem; }
  .une-text { padding: 0 0 .25rem; }
  .une-foot { margin-top: 2rem; }
}

/* Défilement à aimantation sur mobile (on voit l'élément suivant), grille sur grand écran */
.snap-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .75rem; margin: 0 -.75rem; padding: 0 .75rem .75rem; scrollbar-width: thin; }
.briefs, .cover-row, .places { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; gap: 1.25rem; }
.briefs > li, .cover-row > li, .places > li { scroll-snap-align: start; }
.briefs { grid-auto-columns: 78%; margin-top: 3rem; }
.brief { position: relative; }
.brief .media { aspect-ratio: 3 / 2; margin-bottom: 1.1rem; }
.brief h3 { font-size: 1.55rem; line-height: 1.1; margin: 0 0 .5rem; }
/* Crédit photo (licence libre) : sous la date, jamais sur l'image */
.meta .credit { display: block; font-size: .8125rem; margin-top: .2rem; }
@media (min-width: 768px) {
  .snap-scroll { overflow: visible; margin: 0; padding: 0; }
  .briefs { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 2rem; margin-top: 4.5rem; }
}

/* ---------- Agenda : bande pétrole, bords en vague, texte seul ---------- */
.band { position: relative; background: var(--c-dominant); color: #fff; padding: 2rem 0 1.25rem; margin-block: 3.5rem 5.5rem; isolation: isolate; }
.band-edge { position: absolute; left: 0; width: 100%; height: 3rem; color: var(--c-dominant); pointer-events: none; }
.band-edge.top { bottom: calc(100% - 1px); }
.band-edge.bottom { top: calc(100% - 1px); }
@media (min-width: 992px) { .band { padding: 2.5rem 0 2rem; } .band-edge { height: 4.5rem; } }
.band .title em { color: var(--c-accent-on-dark); }
/* ronds dans l'eau : cercles concentriques, cadrés par leur bloc */
.ripples-clip { position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none; }
.ripples { position: absolute; pointer-events: none; width: 30rem; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, transparent 0 4.6rem, var(--ring) 4.6rem 5.1rem, transparent 5.1rem 8.6rem, var(--ring) 8.6rem 9.1rem, transparent 9.1rem 12.1rem, var(--ring) 12.1rem 12.6rem, transparent 12.6rem 14.6rem, var(--ring) 14.6rem 15rem, transparent 15rem); }
.band .ripples { --ring: rgba(255,255,255,.07); right: -6rem; top: 50%; transform: translateY(-50%); }
@media (max-width: 767.98px) { .band .ripples { width: 22rem; right: -9rem; top: 3rem; transform: none; } }

.river-scroll { overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: .75rem; margin: 0 -.75rem; padding: 0 .75rem 1rem; }
.river { position: relative; width: max-content; min-width: 100%; }
/* le fil de l'eau passe sous les dates, d'un bord de l'écran à l'autre */
.river-line { position: absolute; left: -.75rem; right: -.75rem; top: 6.05rem; height: 2px; background: rgba(255,255,255,.35); }
.events { display: grid; grid-auto-flow: column; grid-auto-columns: 15rem; gap: 1.5rem; padding: 0; margin: 0; list-style: none; position: relative; }
.events > li { scroll-snap-align: start; display: flex; }
@media (min-width: 1200px) {
  .river-scroll { overflow: visible; }
  .river { width: 100%; }
  .river-line { left: calc(50% - 50vw); right: calc(50% - 50vw); }
  .events { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); gap: 2.5rem; }
}
.event { position: relative; width: 100%; }
.event .date { display: flex; align-items: flex-end; gap: .6rem; height: 5.4rem; }
.event .day { font-family: var(--f-title); font-weight: 400; font-size: 5.2rem; line-height: .74; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.event .dm { display: flex; flex-direction: column; padding-bottom: .1rem; line-height: 1.15; }
.event .wd { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.event .month { font-family: var(--f-title); font-style: italic; font-size: 1.5rem; color: var(--c-accent-on-dark); }
.event .knot { display: block; width: .95rem; height: .95rem; border-radius: 50%; background: var(--c-accent); box-shadow: 0 0 0 4px var(--c-dominant); margin: .2rem 0 1.4rem .3rem; position: relative; transition: transform .35s var(--ease); }
.event .cat { color: #fff; }
.event h3 { font-size: 1.75rem; line-height: 1.05; letter-spacing: -.02em; margin: 0 0 .6rem; }
.event .meta { display: flex; align-items: center; gap: .4rem; color: #fff; }
.event:hover .knot { transform: scale(1.6); }
.event:hover h3 a { color: var(--c-accent-on-dark); }
.event:focus-within { outline-color: #fff; }

/* ---------- Kiosque : bande rose pleine largeur, les couvertures débordent ----------
   Blanc sur rose 4,6:1 : grands textes seulement. Petits textes sur blanc. */
.kiosque { position: relative; isolation: isolate; background: var(--c-accent); color: #fff; margin-top: 9rem; }
.kiosque .ripples { --ring: rgba(255,255,255,.12); left: -14rem; bottom: -15rem; }
.kiosque .title em { color: inherit; }
.kiosque-grid { display: grid; gap: 1.5rem; padding-bottom: 2.75rem; }
.kiosque-head { order: 2; }
.kiosque h2 { color: #fff; margin: 0 0 1.25rem -.04em; }
.kiosque-intro { font-family: var(--f-title); font-size: 1.6rem; line-height: 1.2; letter-spacing: -.01em; margin: 0 0 1.75rem; max-width: 20ch; }
.kiosque-covers { order: 1; margin-top: -6rem; }
.cover-row { grid-auto-columns: 62%; }
.cover { position: relative; }
.cover-img { aspect-ratio: 600 / 848; margin-bottom: 1rem; border-radius: var(--r-md); overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(10,30,40,.12), 0 1.25rem 2.5rem -.75rem rgba(10,30,40,.45); transition: box-shadow .35s, transform .35s var(--ease); }
.cover-img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cover-title { font-size: 1.5rem; line-height: 1.1; margin: 0 0 .75rem; }
.cover:hover .cover-img { transform: translateY(-8px); box-shadow: 0 1px 2px rgba(10,30,40,.12), 0 2rem 3.5rem -1rem rgba(10,30,40,.5); }
.cover:focus-within { outline-color: #fff; }
.cover .dl { position: relative; z-index: 2; display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .45rem 1rem; border-radius: var(--r-pill); background: #fff; color: var(--c-ink); font-weight: 700; font-size: .9375rem; text-decoration: none; transition: background-color .25s, color .25s; }
.cover .dl:hover { background: var(--c-ink); color: #fff; }
@media (min-width: 768px) { .cover-row { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
@media (min-width: 992px) {
  .kiosque { margin-top: 11rem; }
  .kiosque-grid { grid-template-columns: 4fr 7fr; align-items: end; gap: 3.5rem; padding-bottom: 4rem; }
  .kiosque-head { order: 1; padding-top: 4rem; }
  .kiosque-covers { order: 2; margin-top: -8rem; }
}

/* ---------- Découvrir : lieux en photo, en quinconce ---------- */
.discover { position: relative; isolation: isolate; margin-top: 0; padding-block: 3.5rem 3rem; } /* collée au kiosque : rose puis beige, sans bande blanche entre les deux */
/* fond beige commun : il réunit l'intro, l'annuaire, les lieux et la carte */
.discover::before { content: ""; position: absolute; z-index: -1; left: calc(50% - 50vw); right: calc(50% - 50vw); top: 0; bottom: 0; background: var(--c-paper); }
.discover .chips a { background: #fff; }
.discover-grid { display: grid; gap: 2.5rem; }
.lead-text { font-size: 1.2rem; line-height: 1.5; max-width: 34ch; margin: 1.25rem 0 1.75rem; }
.discover-sub { font-size: 1.5rem; margin: 2.5rem 0 .9rem; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.chips a { display: inline-flex; align-items: center; gap: .45rem; border-radius: var(--r-pill); padding: .55rem 1.05rem; min-height: 48px; text-decoration: none; color: var(--c-ink); font-weight: 600; background: var(--c-paper); transition: background-color .2s, color .2s; }
.chips i { font-size: 1.25rem; }
.chips a:hover { background: var(--c-dominant); color: #fff; }
.places { grid-auto-columns: 78%; position: relative; }
/* Parcours des lieux : un chemin sinueux en tirets (pas une frise).
   Mobile : il serpente sous les photos, un nœud rose par lieu.
   Grand écran : le script trace une courbe qui passe derrière les photos (svg.trail). */
.place .knot { display: block; position: relative; height: 0; margin: 1.15rem 0 1.5rem; }
.place .knot::before { content: ""; position: absolute; left: 0; right: -1.25rem; top: -6px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='12'%3E%3Cpath d='M0 6 C 8 0 16 0 24 6 S 40 12 48 6' fill='none' stroke='%230a1e28' stroke-width='2' stroke-dasharray='6.2 6.6'/%3E%3C/svg%3E") repeat-x 0 0 / 48px 12px; }
.place .knot::after { content: ""; position: absolute; left: .3rem; top: -.6rem; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--c-accent); border: 3px solid var(--c-paper); transition: transform .35s var(--ease); }
.place:hover .knot::after { transform: scale(1.3); }
.places-scroll { position: relative; isolation: isolate; }
.trail { display: none; }
.place { position: relative; }
.place .media { aspect-ratio: 3 / 2; margin-bottom: 1rem; }
.map-tile { background: #fff; box-shadow: inset 0 0 0 1px var(--c-line); }
.map-tile svg { display: block; width: 100%; height: 100%; }
/* La commune dessinée (TownMap) : sa silhouette parmi ses voisines, son eau, et les lieux de la carte épinglés ou
   regroupés comme sur la carte. Traits d'épaisseur fixe, quelle que soit la taille de la tuile. */
.tm-land { fill: color-mix(in srgb, var(--c-ink) 6%, var(--c-paper)); }
.tm-neighbors, .tm-brooks, .tm-rivers, .tm-outline { fill: none; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.tm-neighbors { stroke: color-mix(in srgb, var(--c-ink) 18%, transparent); stroke-width: 1px; }
.tm-town { fill: #fff; }
.tm-water { fill: var(--c-water); fill-rule: evenodd; }
.tm-brooks, .tm-rivers { stroke: var(--c-water); }
.tm-brooks { stroke-width: 1px; }
.tm-rivers { stroke-width: 2.5px; }
.tm-outline { stroke: var(--c-accent); stroke-width: 2.5px; }
.tm-credit { font-family: var(--f-body); font-size: 17px; font-weight: 600; fill: var(--c-muted); }
.tm-pin, .tm-group { position: absolute; }
.tm-pin .map-pin-shape { position: absolute; left: -13px; top: -31px; width: 26px; height: 26px; border-width: 2px; box-shadow: 0 .2rem .5rem -.15rem rgba(10,30,40,.45); }
.tm-pin .map-pin-shape i { font-size: .8rem; }
.tm-group { display: grid; place-items: center; width: 32px; height: 32px; margin: -16px 0 0 -16px; border-radius: 50%; background: color-mix(in srgb, var(--c-dominant) 25%, transparent); }
.tm-group b { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c-dominant); color: #fff; font-family: var(--f-body); font-size: .75rem; font-weight: 800; box-shadow: 0 0 0 2px #fff; }
.m-land { fill: #fff; } .m-water { fill: none; stroke: var(--c-water); stroke-width: 60; stroke-linecap: round; }
.m-path { fill: none; stroke: var(--c-ink); stroke-width: 4; stroke-dasharray: 2 12; stroke-linecap: round; }
.m-road path { fill: none; stroke: var(--c-tint); stroke-width: 7; stroke-linecap: round; }
.m-labels { font-family: var(--f-body); font-weight: 700; font-size: 25px; fill: var(--c-ink); }
 .m-town { fill: var(--c-ink); }
.m-pin { fill: var(--c-accent); stroke: #fff; stroke-width: 3; }
.m-river { font-family: var(--f-title); font-style: italic; font-weight: 500; font-size: 36px; }
.place h3 { font-size: 1.6rem; line-height: 1.05; margin: 0 0 .3rem; }
@media (min-width: 768px) { .place h3 { margin-top: 0; } }
.photo-note { margin: 0; font-size: .8125rem; }
@media (min-width: 768px) {
  .places { grid-auto-flow: row; grid-template-columns: 1fr 1fr; gap: 2.5rem 4rem; }
  /* sur grand écran, la courbe (svg.trail, tracée par le script) passe derrière les photos */
  .place .knot { display: none; }
  .trail { display: block; position: absolute; left: 0; top: 0; z-index: -1; overflow: visible; pointer-events: none; }
  .trail path { fill: none; stroke: var(--c-ink); stroke-width: 2; stroke-dasharray: 7 7; }
  .places > li:nth-child(even) { transform: translateY(5rem); }
  .places { padding-bottom: 5rem; }
}
@media (min-width: 992px) {
  .discover { padding-block: 5.5rem 4.5rem; }
  .discover-grid { grid-template-columns: 4fr 7fr; gap: 4rem; align-items: start; }
  .discover-head { position: sticky; top: 2rem; padding-top: 1rem; }
  .photo-note { grid-column: 2; text-align: right; margin-top: -2rem; }
}

/* ---------- Partenaires ---------- */
.partners-wrap { padding-block: 4.5rem 1.5rem; }
.partners { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 2rem 3.5rem; list-style: none; padding: 0; margin: 0; }
.partners a { display: block; padding: .5rem; border-radius: var(--r-md); transition: transform .35s var(--ease); }
.partners a:hover { transform: translateY(-3px); }
.partners img { display: block; height: 3rem; width: auto; }
.partners img.logo-square { height: 4.25rem; }
@media (min-width: 992px) { .partners { gap: 2rem 5rem; } .partners img { height: 3.5rem; } .partners img.logo-square { height: 5rem; } }

/* ---------- Pied de page : un seul fond, quatre colonnes typographiques ----------
   Titres en Fraunces (un mot en italique), contenus en Public Sans, bords droits. */
.site-footer { background: var(--c-night); color: #fff; margin-top: 4rem; padding: 3.5rem 0 1.5rem; }
.foot-top { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin-bottom: 2.75rem; }
.foot-logo { display: block; height: 3.5rem; width: auto; filter: brightness(0) invert(1); }
.foot-grid { display: grid; gap: 2.5rem; }
.foot-h { font-family: var(--f-title); font-weight: 400; font-size: 1.75rem; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 1.1rem; }
.foot-h em { font-style: italic; color: var(--c-accent-on-dark); }
.site-footer address { margin: 0 0 .9rem; line-height: 1.55; }
.foot-phone { display: flex; align-items: center; gap: .55rem; margin: 0 0 1.25rem; font-size: 1.125rem; font-weight: 700; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.foot-phone i { font-size: 1.3rem; }
.foot-phone a { color: #fff; text-decoration: none; }
.foot-phone a:hover { color: var(--c-accent-on-dark); }
.hours { margin: 0; display: grid; gap: .5rem; }
.hours > div { display: grid; grid-template-columns: 6.6rem 1fr; gap: .1rem 1rem; }
.hours dt { font-weight: 700; display: flex; align-items: center; gap: .5rem; }
.hours dd { margin: 0; display: flex; flex-wrap: wrap; column-gap: 1.1rem; font-variant-numeric: tabular-nums; }
.hours .is-today dt::before { content: ""; flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-accent); }
.hours .is-today dd { font-weight: 700; }
.hours .today { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.foot-note { margin: 1rem 0 0; font-size: .9375rem; }
.foot-links ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.foot-links a { display: inline-flex; align-items: center; min-height: 40px; color: #fff; font-weight: 600; text-decoration: none; transition: color .2s, transform .3s var(--ease); }
.foot-links a:hover { color: var(--c-accent-on-dark); transform: translateX(.2rem); }
.legal { display: flex; flex-wrap: wrap; gap: .5rem 1.75rem; list-style: none; padding: 0; margin: 4rem 0 0; font-size: .875rem; }
.legal a { color: #fff; text-underline-offset: .2em; text-decoration-color: rgba(255,255,255,.5); }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1fr 1fr; gap: 2.75rem 3rem; } }
@media (min-width: 992px) {
  .site-footer { padding-top: 4.5rem; }
  .foot-top { margin-bottom: 3.5rem; }
  .foot-logo { height: 4rem; }
  .foot-grid { grid-template-columns: 3fr 3fr 4.6fr 2fr; gap: 3rem; }
  .legal { margin-top: 5rem; }
}

/* ---------- Panneaux latéraux : menu et réglages ---------- */
.panel-side { --bs-offcanvas-width: min(30rem, 100vw); }
.panel-side .offcanvas-header { padding: 1.5rem 1.5rem 1rem; gap: 1rem; }
.panel-side .offcanvas-title { font-family: var(--f-title); font-weight: 450; font-size: clamp(2rem, 7vw, 2.6rem); letter-spacing: -.03em; min-width: 0; overflow-wrap: anywhere; }
.panel-side .offcanvas-header .button { margin-left: auto; }
.panel-side .offcanvas-body { padding: 0 1.5rem 2rem; }
.menu-groups { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem; }
.menu-groups h3 { font-size: 1.5rem; margin: 0 0 .4rem; color: var(--c-accent-deep); }
.menu-groups ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .1rem; }
.menu-groups ul a { display: block; padding: .5rem .75rem; margin-inline: -.75rem; border-radius: var(--r-md); color: var(--c-ink); font-weight: 500; text-decoration: none; }
.menu-groups ul a:hover { background: var(--c-tint); }
.setting { border: 0; padding: 0; margin: 0 0 1.5rem; }
.setting legend { font-family: var(--f-title); font-weight: 450; font-size: 1.4rem; margin-bottom: .6rem; }
.seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: .25rem; background: var(--c-paper); border-radius: var(--r-pill); padding: .25rem; }
.seg button { border: 0; background: none; border-radius: var(--r-pill); min-height: 44px; font-weight: 600; color: var(--c-ink); }
.seg button[aria-pressed="true"] { background: var(--c-ink); color: #fff; }
.setting-list { display: grid; gap: .5rem; }
.switch { display: flex; align-items: center; gap: .75rem; width: 100%; text-align: left; border: 1px solid var(--c-line); background: #fff; border-radius: var(--r-md); padding: .8rem 1rem; font-weight: 600; color: var(--c-ink); }
.switch i { font-size: 1.5rem; color: var(--c-dominant); }
.switch span { flex: 1; }
.switch::after { content: "Non"; font-size: .875rem; font-weight: 700; padding: .15rem .7rem; border-radius: var(--r-pill); background: var(--c-paper); }
.switch[aria-pressed="true"] { border-color: var(--c-ink); }
.switch[aria-pressed="true"]::after { content: "Oui"; background: var(--c-ink); color: #fff; }


/* ==========================================================================
   Ajouts du thème aux sections de la maquette : en-tête et pied de page
   dynamiques, pages intérieures, pages de l'extension, formulaires, cookies.
   ========================================================================== */

/* ---------- En-tête et pied de page, cas du site réel ---------- */
.brand img { max-width: min(16rem, 52vw); object-fit: contain; object-position: left center; }
.hd-lang .dropdown-menu { border-radius: var(--r-md); border-color: var(--c-line); }
.foot-logo-own { filter: none; }
.foot-name { display: flex; align-items: center; gap: .6rem; margin: 0; color: #fff; font-family: var(--f-title); font-weight: 550; font-size: 1.6rem; line-height: 1.05; }
.foot-name .brand-mark { background: #fff; }
.foot-socials { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.site-footer address { font-style: normal; }
.legal li { color: rgba(255,255,255,.88); }
.switch::after { content: var(--switch-no, "Non"); }
.switch[aria-pressed="true"]::after { content: var(--switch-yes, "Oui"); }
/* Le Oui ou le Non dessiné n'entre pas dans le nom du bouton : son état enfoncé le dit déjà. */
@supports (content: "x" / "") {
  .switch::after { content: var(--switch-no, "Non") / ""; }
  .switch[aria-pressed="true"]::after { content: var(--switch-yes, "Oui") / ""; }
}
/* Titre des panneaux : jamais coupé en plein mot, même en grande taille de texte sur un téléphone */
.panel-side .offcanvas-title { font-size: clamp(1.6rem, 7vw, 2.6rem); overflow-wrap: normal; }
.menu-search { margin: 0 0 1.75rem; }
/* Le haut du panneau qui défile laisse la place au bord de la pilule de recherche et à son focus. */
.panel-side .offcanvas-body { padding-top: .4rem; }
.menu-search .search-pill { box-shadow: 0 0 0 1px var(--c-field); }
/* L'accueil et une rubrique qui est un lien : pleine largeur et arrondis comme les autres liens du menu, sans décaler le texte. */
.menu-home a { display: flex; align-items: center; gap: .5rem; font-family: var(--f-title); font-size: 1.5rem; color: var(--c-accent-deep); text-decoration: none; }
.menu-home a, .menu-groups h3 a { padding: .3rem .75rem; margin: -.3rem -.75rem; border-radius: var(--r-md); }
.menu-groups h3 a { display: block; }
.menu-home a:hover { background: var(--c-tint); }
.menu-groups h3 a { color: inherit; text-decoration: none; }
.menu-groups h3 a:hover { text-decoration: underline; }
.menu-groups a[aria-current="page"] { background: var(--c-tint); }
/* Le troisième niveau du menu, en retrait sous son parent. */
.menu-groups .menu-sub { margin: .1rem 0 .35rem .75rem; padding-left: .75rem; border-left: 2px solid var(--c-line); }
.menu-groups .menu-sub a { margin-inline: 0; font-size: .9375rem; }
.open-now.is-closed .dot { background: var(--c-muted); }

/* ---------- Accueil ---------- */
.hero-photo.is-empty { background: linear-gradient(135deg, var(--c-paper), color-mix(in srgb, var(--c-dominant) 12%, #fff)); }
@media (min-width: 768px) { .quick ul:not(.count-6) { grid-template-columns: repeat(auto-fit, minmax(8.5rem, 1fr)); } }
.home-text { padding-block: 3rem 0; }
.home-text .content { max-width: 46rem; margin-inline: auto; font-size: 1.125rem; }
.media-empty { display: grid; place-items: center; aspect-ratio: 3 / 2; color: var(--c-accent-deep); font-size: 3rem; background: var(--c-paper); }
.map-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.map-tile .m-labels text { paint-order: stroke; stroke: #fff; stroke-width: 6px; stroke-linejoin: round; }
.widget-text { padding-block: 2.5rem; }
.cover .cat { margin-bottom: .3rem; }
.kiosque .cover .cat { color: #fff; }

/* Une couverture sans image : une page dessinée, le type et le titre du document */
.cover-paper { display: flex; flex-direction: column; gap: .7rem; padding: 1.1rem 1.1rem 1.3rem; color: var(--c-ink); }
.paper-head { display: flex; justify-content: space-between; gap: .5rem; font-size: .5625rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-muted); }
.paper-kind { font-size: .6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--c-accent-deep); margin-top: .5rem; }
.paper-title { font-family: var(--f-title); font-size: 1.15rem; line-height: 1.1; font-weight: 550; }
.paper-lines { flex: 1; margin-top: .4rem; background: repeating-linear-gradient(to bottom, var(--c-line) 0 3px, transparent 3px 11px); opacity: .9;
  -webkit-mask: linear-gradient(to right, #000 0 88%, transparent 88% 100%) top / 100% 33px repeat-y; mask: linear-gradient(to right, #000 0 88%, transparent 88% 100%) top / 100% 33px repeat-y; }

/* ---------- Pages intérieures : en-tête (fil d'Ariane, titre) ---------- */
.crumbs ol { display: flex; flex-wrap: wrap; gap: .25rem .5rem; list-style: none; margin: 0 0 1.5rem; padding: 0; font-size: .9375rem; color: var(--c-muted); }
.crumbs li + li::before { content: "/"; margin-right: .5rem; color: var(--c-line); }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-accent-deep); }
.page-title { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -.03em; max-width: 18ch; }
.page-lead { margin: 1.25rem 0 0; font-family: var(--f-title); font-size: clamp(1.3rem, 2.2vw, 1.75rem); line-height: 1.25; max-width: 40ch; color: var(--c-ink); }

/* ---------- Pages intérieures : en-tête aux couleurs de la commune ----------
   L'écho de l'accueil : la bande beige et ses ronds dans l'eau, le nom de la rubrique en accent au-dessus du titre,
   la photo de la page qui mord sur la bande et file jusqu'au bord droit de l'écran (coins --r-lg : l'arche reste à
   l'accueil). Sans photo, la bande seule. */
.page-head { position: relative; isolation: isolate; background: var(--c-paper); padding-block: 1.25rem 2.5rem; margin-bottom: 3rem; }
.page-head .ripples { --ring: color-mix(in srgb, var(--c-dominant) 9%, transparent); right: -9rem; top: -8rem; }
.page-head-grid { display: grid; gap: 2rem; }
.page-head .crumbs ol { margin-bottom: 1.75rem; }
.page-head .crumbs li + li::before { color: color-mix(in srgb, var(--c-ink) 30%, transparent); }
.page-head-text { position: relative; }
.page-eyebrow { margin: 0 0 .75rem; }
.page-meta { margin: 1.1rem 0 0; font-size: .9375rem; color: var(--c-muted); }
.page-jump { margin: 1.25rem 0 0; }
.page-jump .arrow { width: 2.25rem; height: 2.25rem; }
.page-head-photo { position: relative; margin: 0 -.75rem -5rem 0; aspect-ratio: 16 / 10; border-radius: var(--r-lg) 0 0 var(--r-lg); overflow: hidden; background: #fff; box-shadow: 0 1.5rem 3rem -1.5rem rgba(10,30,40,.35); }
.page-head-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.page-head-photo.media img:not(.media-bg) { object-fit: contain; }
.page-head.has-photo { margin-bottom: 7.5rem; }
@media (min-width: 768px) { .page-head-photo { margin-right: calc(-1 * var(--bleed, .75rem)); } }
@media (min-width: 992px) {
  .page-head { padding-block: 2rem 3.5rem; margin-bottom: 4rem; }
  .page-head .ripples { right: -6rem; top: 50%; transform: translateY(-50%); }
  /* The photo is as tall as the title and its lines, never taller than they need: the band ends with the text, the
     photo bites on the white below it. */
  .page-head.has-photo .page-head-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 6fr); align-items: stretch; gap: 3.5rem; }
  .page-head.has-photo .page-head-photo { margin-top: 3.25rem; margin-bottom: -7rem; aspect-ratio: auto; min-height: clamp(17rem, 19vw, 23rem); }
  .page-head.has-photo { margin-bottom: 7rem; }
  .page-head.has-photo .page-title { font-size: clamp(2.6rem, 4.6vw, 4.2rem); }
}
.page-head-photo { --bleed: .75rem; }
@media (min-width: 1200px) { .page-head-photo { --bleed: calc((100vw - 1140px) / 2 + .75rem); } }
@media (min-width: 1400px) { .page-head-photo { --bleed: calc((100vw - 1320px) / 2 + .75rem); } }
/* To the right edge of the screen at every width (unlike the photo of the home page, held to 1920 px by the mock-up). */
@media (min-width: 992px) { .page-jump { display: none; } }

/* ---------- Colonne d'une page : contacts et rubrique ---------- */
.page-body.has-aside { display: grid; gap: 3rem; }
.page-aside { display: grid; gap: 1.5rem; align-content: start; }
@media (min-width: 992px) {
  .page-body.has-aside { grid-template-columns: minmax(0, 1fr) 21rem; gap: 4rem; }
  .page-aside { position: sticky; top: 1.5rem; }
}
.aside-block { padding: 1.5rem 1.6rem 1.6rem; border-radius: var(--r-lg); background: var(--c-paper); }
.aside-title { font-family: var(--f-title); font-weight: 450; font-size: 1.75rem; line-height: 1.05; letter-spacing: -.015em; margin: 0 0 1rem; }
.aside-title em { font-style: italic; color: var(--c-accent); }
.aside-title a { color: inherit; text-decoration: none; }
.aside-title a:hover { color: var(--c-accent-deep); }
.contact-entry + .contact-entry { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid color-mix(in srgb, var(--c-ink) 14%, transparent); }
.contact-entry h3 { font-size: 1.3rem; line-height: 1.12; margin: 0 0 .35rem; }
.contact-person { margin: 0 0 .6rem; font-size: .9375rem; color: var(--c-muted); }
.contact-entry ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .4rem; font-size: .9375rem; }
.contact-entry li { display: flex; gap: .55rem; align-items: baseline; overflow-wrap: anywhere; }
.contact-entry li i { color: var(--c-accent-deep); position: relative; top: .12em; }
.contact-entry a { color: var(--c-ink); font-weight: 700; }
.contact-entry a[href^="tel:"] { font-variant-numeric: tabular-nums; letter-spacing: .02em; text-decoration: none; }
.contact-note { margin: .6rem 0 0; font-size: .875rem; color: var(--c-muted); }
.rubric-nav .cat { margin-bottom: .35rem; }
.rubric-nav ul { list-style: none; margin: 0; padding: 0; }
.rubric-nav li + li { border-top: 1px solid color-mix(in srgb, var(--c-ink) 12%, transparent); }
.rubric-nav li a { display: flex; align-items: center; justify-content: space-between; gap: .75rem; min-height: 44px; padding: .55rem 0; color: var(--c-ink); font-weight: 600; text-decoration: none; }
.rubric-nav li a i { color: var(--c-accent-deep); transition: transform .3s var(--ease); }
.rubric-nav li a:hover { color: var(--c-accent-deep); }
.rubric-nav li a:hover i { transform: translateX(.2rem); }
.rubric-nav li a[aria-current="page"] { color: var(--c-accent-deep); }
.rubric-nav li a[aria-current="page"]::before { content: ""; flex: none; order: -1; width: .55rem; height: .55rem; border-radius: 50%; background: var(--c-accent); }
.rubric-nav li a[aria-current="page"] i { display: none; }
.rubric-nav li a[aria-current="page"] { justify-content: flex-start; gap: .6rem; }

/* ---------- Bandeau « Dans la rubrique » avant le pied de page ---------- */
.rubric-band { position: relative; isolation: isolate; background: var(--c-paper); padding-block: 3rem; margin-top: 2rem; }
.rubric-band .ripples { --ring: color-mix(in srgb, var(--c-dominant) 9%, transparent); left: -14rem; bottom: -16rem; }
.rubric-band-grid { display: grid; gap: 1.25rem 3rem; align-items: center; }
.rubric-band .title { margin: 0; }
.rubric-band .title a { color: inherit; text-decoration: none; }
.rubric-band .chips a { background: #fff; }
.rubric-band .chips a[aria-current="page"] { background: var(--c-dominant); color: #fff; }
@media (min-width: 992px) { .rubric-band { padding-block: 4rem; } .rubric-band-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); } }
.rubric-band + .site-footer, main:has(> .rubric-band:last-child) + .site-footer { margin-top: 0; }

/* ---------- Pages intérieures : corps ---------- */
.page-body { padding-bottom: 4.5rem; }
.page-main { min-width: 0; }
.page-main.narrow, .page-main:only-child:not(.article-main) { max-width: 52rem; }
.article-main { max-width: 52rem; }
.page-intro { max-width: 46rem; margin-bottom: 2.5rem; font-size: 1.125rem; }
.page-figure { margin: 0 0 2.5rem; aspect-ratio: 16 / 9; }
.back-link { margin: 3rem 0 0; }
.link-arrow .arrow:first-child { order: -1; }
.link-arrow:hover .arrow.ph-arrow-left { transform: translateX(-.25rem); }
.empty { padding: 2rem; border-radius: var(--r-lg); background: var(--c-paper); font-size: 1.125rem; max-width: 46rem; }
.more { padding-block: 1rem 5rem; }
.more .title { margin-bottom: 2rem; }
.more .briefs { margin-top: 0; }

/* Texte écrit dans l'éditeur */
.content { font-size: 1.0625rem; line-height: 1.7; overflow-wrap: break-word; }
.content > :first-child { margin-top: 0; }
.content h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.08; letter-spacing: -.02em; margin: 2.75rem 0 1rem; }
.content h3 { font-size: 1.55rem; margin: 2.25rem 0 .75rem; }
.content h4, .content h5, .content h6 { font-family: var(--f-body); font-weight: 700; font-size: 1.0625rem; margin: 1.75rem 0 .5rem; }
.content p, .content ul, .content ol, .content table, .content blockquote { margin-bottom: 1.25rem; }
.content ul, .content ol { padding-left: 1.4rem; }
.content li { margin-bottom: .35rem; }
.content ul li::marker { color: var(--c-accent); }
.content a { color: var(--c-accent-deep); font-weight: 600; }
.content a:hover { color: var(--c-ink); }
.content img { border-radius: var(--r-md); height: auto; }
.content blockquote { margin-inline: 0; padding: 1.25rem 1.5rem; border-left: 4px solid var(--c-accent); background: var(--c-paper); border-radius: 0 var(--r-md) var(--r-md) 0; font-family: var(--f-title); font-size: 1.25rem; line-height: 1.4; }
.content table { width: 100%; border-collapse: collapse; font-size: .9375rem; display: block; overflow-x: auto; }
.content th, .content td { padding: .6rem .75rem; border-bottom: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.content th { font-weight: 700; background: var(--c-paper); }
.content hr { border: 0; height: 1px; background: var(--c-line); margin: 2.5rem 0; opacity: 1; }
.content .btn { border-radius: var(--r-pill); font-weight: 700; padding: .65rem 1.25rem; }
.content .btn-primary { --bs-btn-bg: var(--c-dominant); --bs-btn-border-color: var(--c-dominant); --bs-btn-hover-bg: var(--c-accent-deep); --bs-btn-hover-border-color: var(--c-accent-deep); --bs-btn-active-bg: var(--c-accent-deep); color: #fff; }
.content .btn-primary:hover { color: #fff; }
.content iframe { max-width: 100%; border: 0; border-radius: var(--r-md); }

/* Photos et documents d'une page */
.gallery { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.gallery .media { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.gallery .media img { object-fit: cover; }
@media (min-width: 992px) { .gallery { grid-template-columns: repeat(3, 1fr); gap: 1.5rem; } }
.downloads { list-style: none; padding: 0; margin: 2.5rem 0 0; display: grid; gap: .6rem; }
.downloads a { display: flex; align-items: center; gap: .9rem; padding: .9rem 1.2rem; border-radius: var(--r-md); background: var(--c-paper); color: var(--c-ink); text-decoration: none; font-weight: 600; transition: background-color .2s; }
.downloads a:hover { background: var(--c-tint); }
.downloads i { font-size: 1.6rem; color: var(--c-accent-deep); }
.downloads .dl-name { flex: 1; }
.downloads .dl-meta { font-size: .875rem; font-weight: 500; color: var(--c-muted); white-space: nowrap; }

/* Listes : filtres et pages */
.filters { display: grid; gap: .75rem; margin-bottom: 2.75rem; }
.filters .chips a[aria-current="true"] { background: var(--c-dominant); color: #fff; }
.chips-small a { min-height: 40px; padding: .35rem .9rem; font-size: .9375rem; }
.pager ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; list-style: none; margin: 3.5rem 0 0; padding: 0; }
.pager a { display: inline-grid; place-items: center; min-width: 48px; height: 48px; padding: 0 .75rem; border-radius: var(--r-pill); background: var(--c-paper); color: var(--c-ink); font-weight: 700; text-decoration: none; }
.pager a[aria-current="page"], .pager a:hover { background: var(--c-dominant); color: #fff; }
.news-list { grid-auto-flow: row; grid-template-columns: 1fr; margin-top: 0; gap: 2.5rem 2rem; }
.news-list .brief h2 { font-size: 1.55rem; line-height: 1.1; margin: 0 0 .5rem; }
.news-list .brief h2 a { color: inherit; text-decoration: none; transition: color .25s; }
.news-list .brief h2 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.news-list .brief h2 a:focus-visible { outline: none; box-shadow: none; }
.news-list .brief:hover h2 a { color: var(--c-accent-deep); }
.news-list .brief:focus-within { outline: 3px solid var(--c-ink); outline-offset: 6px; border-radius: var(--r-lg); }
.news-list .summary { margin: 0 0 .5rem; color: var(--c-ink); }
@media (min-width: 768px) { .news-list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 992px) { .news-list { grid-template-columns: repeat(3, 1fr); } }
.month-title { font-family: var(--f-title); font-weight: 450; font-size: clamp(1.9rem, 3vw, 2.4rem); letter-spacing: -.02em; margin: 0 0 1.25rem; padding-bottom: .75rem; border-bottom: 2px solid var(--c-ink); }
.t-s { font-size: 1.75rem; line-height: 1.05; letter-spacing: -.015em; }

/* ---------- Agenda ---------- */
.agenda-month, .agenda-past { margin-bottom: 3.5rem; }
.agenda-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .25rem; }
.agenda-item { position: relative; display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); gap: 1.25rem; align-items: start; padding: 1.25rem 0; border-bottom: 1px solid var(--c-line); }
.agenda-item.has-thumb { grid-template-columns: 5.5rem minmax(0, 1fr); }
.agenda-item .date { display: flex; flex-direction: column; color: var(--c-ink); }
.agenda-item .day { font-family: var(--f-title); font-size: 3.2rem; line-height: .85; letter-spacing: -.04em; font-variant-numeric: lining-nums; }
.agenda-item .wd { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin-top: .35rem; }
.agenda-item .month { font-family: var(--f-title); font-style: italic; color: var(--c-accent-deep); line-height: 1.1; }
.agenda-item .dm { display: flex; flex-direction: column; }
.agenda-item h3 { font-size: 1.55rem; line-height: 1.1; margin: 0 0 .5rem; }
.agenda-item h3 a { color: inherit; text-decoration: none; transition: color .25s; }
.agenda-item h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.agenda-item:hover h3 a { color: var(--c-accent-deep); }
.agenda-item:focus-within { outline: 3px solid var(--c-ink); outline-offset: 4px; border-radius: var(--r-md); }
.agenda-item h3 a:focus-visible { outline: none; box-shadow: none; }
.agenda-item .meta { display: flex; flex-wrap: wrap; gap: .25rem 1.1rem; }
.agenda-item .meta span { display: inline-flex; align-items: center; gap: .35rem; }
.agenda-thumb { display: none; }
@media (min-width: 768px) {
  .agenda-item.has-thumb { grid-template-columns: 6.5rem minmax(0, 1fr) 11rem; }
  .agenda-thumb { display: block; aspect-ratio: 4 / 3; border-radius: var(--r-md); }
  .agenda-thumb img { object-fit: cover; }
}
.agenda-list.is-past .agenda-thumb img { filter: grayscale(1); opacity: .7; }
.event-grid { display: grid; gap: 2.5rem; }
.event-facts { align-self: start; padding: 1.75rem; border-radius: var(--r-lg); background: var(--c-paper); }
.event-facts .date { display: flex; align-items: flex-end; gap: .6rem; margin-bottom: 1.5rem; color: var(--c-ink); }
.event-facts .day { font-family: var(--f-title); font-size: 4.6rem; line-height: .74; letter-spacing: -.04em; }
.event-facts .dm { display: flex; flex-direction: column; line-height: 1.15; }
.event-facts .wd { font-size: .8125rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.event-facts .month { font-family: var(--f-title); font-style: italic; font-size: 1.5rem; color: var(--c-accent-deep); }
.facts { margin: 0 0 1.5rem; display: grid; gap: .9rem; }
.facts > div { display: grid; grid-template-columns: 1.6rem 1fr; gap: .5rem; }
.facts dt i { font-size: 1.3rem; color: var(--c-accent-deep); }
.facts dd { margin: 0; font-weight: 600; }
.facts dd .meta { font-weight: 400; }
@media (min-width: 992px) {
  .event-grid { grid-template-columns: 20rem minmax(0, 1fr); gap: 4rem; }
  .event-facts { position: sticky; top: 2rem; }
}

/* ---------- Documents ---------- */
.cover-grid { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); gap: 2.5rem 1.25rem; }
.cover-grid .cover-title { font-size: 1.3rem; }
@media (min-width: 768px) { .cover-grid { grid-template-columns: repeat(3, 1fr); gap: 3rem 2rem; } }
@media (min-width: 1200px) { .cover-grid { grid-template-columns: repeat(4, 1fr); } }
.cover-grid .cover .dl { background: var(--c-paper); }
.cover-grid .cover .dl:hover { background: var(--c-ink); color: #fff; }
.cover-grid .cover-img { box-shadow: 0 0 0 1px var(--c-line), 0 1rem 2rem -1rem rgba(10,30,40,.3); }

/* ---------- Annuaire ---------- */
/* Les contacts d'une page qui en liste plus de trois : des fiches sous son texte, deux par ligne au plus. */
.page-contacts { margin-top: 2.5rem; }
.page-contacts .title { margin-bottom: 1.25rem; }
@media (min-width: 1200px) { .page-contacts .directory-list { grid-template-columns: repeat(2, 1fr); } }
.directory-group { margin-bottom: 3.5rem; }
.directory-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; }
@media (min-width: 768px) { .directory-list { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; } }
@media (min-width: 1200px) { .directory-list { grid-template-columns: repeat(3, 1fr); } }
.entry { height: 100%; padding: 1.5rem; border-radius: var(--r-lg); background: var(--c-paper); }
.entry h3 { font-size: 1.45rem; line-height: 1.1; margin: 0 0 .6rem; }
.entry-logo { float: right; width: 4.5rem; height: 4.5rem; object-fit: contain; margin: 0 0 .5rem 1rem; border-radius: var(--r-md); background: #fff; }
.entry-descr { margin: 0 0 .9rem; }
.entry-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; font-size: .9375rem; }
.entry-contact li { display: flex; gap: .5rem; align-items: baseline; overflow-wrap: anywhere; }
.entry-contact i { color: var(--c-accent-deep); position: relative; top: .1em; }
.entry-contact a { color: var(--c-ink); font-weight: 600; }

/* ---------- Découvrir : la carte de la commune ----------
   Sur ordinateur, le panneau à gauche (filtres, recherche, liste) et la carte à droite, à la hauteur de l'écran ;
   sur téléphone, les filtres, la carte, puis la liste. Repères en épingle au pictogramme de la catégorie ; un
   regroupement est un rond plein qui dit combien de lieux il contient et s'ouvre au zoom. */
.map-app { display: grid; grid-template-areas: "controls" "stage" "list"; gap: 1.25rem; margin-bottom: 4.5rem; }
.map-controls { grid-area: controls; display: grid; gap: .9rem; min-width: 0; }
.map-stage { grid-area: stage; position: relative; min-width: 0; }
.map-list { grid-area: list; list-style: none; margin: 0; padding: 0; min-width: 0; }
.map-filters { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-inline: -.75rem; padding-inline: .75rem; scrollbar-width: thin; }
.map-chip { flex: none; display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; padding: .45rem .95rem; border: 0; border-radius: var(--r-pill); background: var(--c-paper); color: var(--c-ink); font-weight: 600; font-size: .9375rem; transition: background-color .2s, color .2s; }
.map-chip i { font-size: 1.2rem; }
.map-chip .count { font-size: .8125rem; font-weight: 700; min-width: 1.6rem; padding: .05rem .4rem; border-radius: var(--r-pill); background: #fff; color: var(--c-ink); text-align: center; }
.map-chip:hover { background: var(--c-tint); }
.map-chip[aria-pressed="true"] { background: var(--c-dominant); color: #fff; }
.map-chip[aria-pressed="true"] .count { background: rgba(255,255,255,.16); color: #fff; }
.commune-map .leaflet-control-attribution a { color: var(--c-ink); }
.map-search { box-shadow: 0 0 0 1px var(--c-field); padding-right: 1rem; }
.map-count { margin: 0; font-size: .9375rem; font-weight: 700; color: var(--c-muted); }
.commune-map { height: min(62vh, 30rem); border-radius: var(--r-lg); overflow: hidden; background: var(--c-paper); z-index: 0; }
.map-layers { position: absolute; z-index: 500; top: .75rem; right: .75rem; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .35rem; max-width: calc(100% - 4.5rem); }
.map-layers button { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: .3rem .8rem; border: 0; border-radius: var(--r-pill); background: #fff; color: var(--c-ink); font-weight: 700; font-size: .8125rem; box-shadow: 0 1px 2px rgba(10,30,40,.15), 0 .4rem 1rem -.4rem rgba(10,30,40,.35); }
.map-layers button[aria-pressed="true"] { background: var(--c-ink); color: #fff; }
.map-layers button:focus-visible, .map-chip:focus-visible { outline: 3px solid var(--c-ink); outline-offset: 2px; box-shadow: 0 0 0 5px #fff; }
@media (min-width: 992px) {
  .map-app { grid-template-columns: 24rem minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); grid-template-areas: "controls stage" "list stage"; height: min(84vh, 50rem); gap: 1rem 2rem; }
  .map-filters { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  .commune-map { height: 100%; }
  .map-list { overflow-y: auto; overflow-x: hidden; margin-left: -.75rem; padding-left: .75rem; padding-right: 1.25rem; scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--c-ink) 25%, transparent) transparent; }
}
.map-item { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .85rem; padding: 1rem .75rem; margin-inline: -.75rem; border-bottom: 1px solid var(--c-line); border-radius: var(--r-md); transition: background-color .2s; }
.map-item.is-active { background: var(--c-tint); }
.map-item-icon { display: grid; place-items: center; width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--c-paper); color: var(--c-dominant); font-size: 1.3rem; }
.map-item.is-active .map-item-icon { background: var(--c-accent); color: #fff; }
.map-item .cat { margin-bottom: .2rem; font-size: .75rem; }
.map-item h3, .map-popup h3 { font-size: 1.3rem; line-height: 1.12; margin: 0 0 .3rem; }
.map-item-detail { margin: 0 0 .35rem; font-size: .9375rem; color: var(--c-muted); }
.map-item-line { display: flex; gap: .45rem; align-items: baseline; margin: 0 0 .25rem; font-size: .9375rem; }
.map-item-line i { color: var(--c-accent-deep); position: relative; top: .12em; }
.map-item-line a { color: var(--c-ink); font-weight: 700; text-decoration: none; }
.map-item-actions { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin: .5rem 0 0; }
.map-item-actions a, .map-item-actions button { display: inline-flex; align-items: center; gap: .35rem; min-height: 36px; padding: 0; border: 0; background: none; color: var(--c-accent-deep); font-weight: 700; font-size: .9375rem; text-decoration: none; }
.map-item-actions a:hover, .map-item-actions button:hover { color: var(--c-ink); text-decoration: underline; }
.map-empty { padding: 1.5rem; border-radius: var(--r-md); background: var(--c-paper); }
/* Repères et regroupements */
.map-pin { background: none; border: 0; }
.map-pin-shape { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: #fff; border: 3px solid var(--c-dominant); box-shadow: 0 .35rem .8rem -.2rem rgba(10,30,40,.45); transition: transform .2s var(--ease); }
.map-pin-shape i { transform: rotate(45deg); font-size: 1.2rem; color: var(--c-dominant); }
.map-pin:hover .map-pin-shape { transform: rotate(-45deg) scale(1.1); }
.map-pin.is-active .map-pin-shape { background: var(--c-accent); border-color: #fff; }
.map-pin.is-active .map-pin-shape i { color: #fff; }
.map-pin:focus-visible { outline: none; }
.map-pin:focus-visible .map-pin-shape { box-shadow: 0 0 0 3px #fff, 0 0 0 6px var(--c-ink); }
.map-cluster { background: none; border: 0; }
.map-cluster span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: color-mix(in srgb, var(--c-dominant) 25%, transparent); }
.map-cluster b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--c-dominant); color: #fff; font-weight: 800; font-size: .9375rem; box-shadow: 0 0 0 2px #fff; }
/* Limites de la commune : un trait d'accent sur un liseré blanc, un voile sur ce qui l'entoure */
.map-mask { fill: var(--c-paper); }
.map-boundary { stroke: var(--c-accent); }
.leaflet-cluster-anim .leaflet-marker-icon, .leaflet-cluster-anim .leaflet-marker-shadow { transition: transform .3s ease-out, opacity .3s ease-in; }
.leaflet-cluster-spider-leg { transition: stroke-dashoffset .3s ease-out, stroke-opacity .3s ease-in; }
/* Fenêtre d'un lieu */
.leaflet-popup-content-wrapper { border-radius: var(--r-md); box-shadow: 0 1rem 2rem -1rem rgba(10,30,40,.45); }
.leaflet-popup-content { margin: 1rem 1.1rem; font-family: var(--f-body); font-size: .9375rem; line-height: 1.45; }
.map-popup .cat { margin-bottom: .2rem; font-size: .75rem; }
.map-popup p { margin: 0 0 .25rem; }
.map-popup .map-item-actions { margin-top: .4rem; }
.leaflet-container a.leaflet-popup-close-button { width: 32px; height: 32px; font-size: 22px; }
html.a11y-still .leaflet-fade-anim .leaflet-tile, html.a11y-still .leaflet-zoom-anim .leaflet-zoom-animated { transition: none !important; }

/* Les lieux à découvrir, en photos, sous la carte */
.discover-places .title { margin-bottom: 2rem; }
.places-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.5rem 2rem; }
@media (min-width: 768px) { .places-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1200px) { .places-grid { grid-template-columns: repeat(3, 1fr); } }
.places-grid .place .media { margin-bottom: 1.1rem; }
.places-grid .place h3 { font-size: 1.6rem; line-height: 1.05; margin: 0 0 .3rem; }
.places-grid .place h3 a { color: inherit; text-decoration: none; }
.places-grid .place:hover h3 a { color: var(--c-accent-deep); }
.places-grid .place .link-arrow { position: relative; z-index: 2; }
.link-button { border: 0; background: none; padding: .3rem 0; font: inherit; font-weight: 700; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2.5rem; }
.contact-card { align-self: start; padding: 1.75rem; border-radius: var(--r-lg); background: var(--c-paper); }
.contact-card address { font-style: normal; margin: 1rem 0; line-height: 1.6; }
.contact-phone { display: flex; align-items: center; gap: .5rem; font-size: 1.125rem; font-weight: 700; }
.contact-phone a { color: var(--c-ink); text-decoration: none; }
.contact-sub { font-size: 1.3rem; margin: 1.75rem 0 .75rem; }
.hours-light > div { grid-template-columns: 6.6rem 1fr; }
@media (min-width: 992px) { .contact-grid { grid-template-columns: 22rem minmax(0, 1fr); gap: 4rem; } .contact-card { position: sticky; top: 2rem; } }

/* ---------- Formulaires ---------- */
.form-label { font-weight: 600; margin-bottom: .35rem; }
.form-control, .form-select { min-height: 48px; border-radius: var(--r-md); border: 1px solid var(--c-field); padding: .65rem .9rem; color: var(--c-ink); }
.form-control:focus, .form-select:focus { border-color: var(--c-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-dominant) 30%, transparent); }
.form-check-input { width: 1.25rem; height: 1.25rem; margin-top: .2rem; border-color: #8a959e; }
.form-check-input:checked { background-color: var(--c-dominant); border-color: var(--c-dominant); }
.form-check { display: flex; gap: .75rem; padding-left: 0; }
.form-check .form-check-input { float: none; margin-left: 0; flex: none; }
.field-notice { display: none; margin-top: .35rem; font-size: .9375rem; font-weight: 600; color: #a1182f; }
.alert { border-radius: var(--r-md); }
/* Le message d'un formulaire envoyé reçoit le focus ; la liste des champs à corriger mène à chacun d'eux. */
.alert:focus { outline: 3px solid var(--c-ink); outline-offset: 2px; }
.alert ul { margin: .5rem 0 0; padding-left: 1.25rem; }
.alert ul a { color: inherit; font-weight: 600; text-decoration: underline; }
.content form .btn, .form-commune .button { margin-top: .25rem; }

/* ---------- Recherche, plan du site, accessibilité ---------- */
.search-page-form { margin-bottom: 2.5rem; }
.search-page-form .search-pill { box-shadow: 0 0 0 1px var(--c-field), 0 .5rem 1.75rem -.5rem rgba(10,30,40,.18); }
.search-count { font-weight: 600; color: var(--c-muted); }
.search-results { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.search-results li { padding: 1.4rem 0; border-bottom: 1px solid var(--c-line); }
.search-results h2 { font-size: 1.5rem; line-height: 1.1; margin: 0 0 .5rem; }
.search-results h2 a { color: var(--c-ink); text-decoration: none; }
.search-results h2 a:hover { color: var(--c-accent-deep); text-decoration: underline; }
.search-results p { margin: 0; color: var(--c-muted); }
.sitemap ul { list-style: none; margin: 0 0 2rem; padding: 0; }
.sitemap > ul > li { margin-bottom: 1.5rem; }
.sitemap > ul > li > a, .sitemap > ul > li > span { font-family: var(--f-title); font-size: 1.5rem; color: var(--c-ink); }
.sitemap ul ul { margin: .5rem 0 0; padding-left: 1.1rem; border-left: 2px solid var(--c-line); }
.sitemap ul ul li { padding: .2rem 0; }
.sitemap a { color: var(--c-accent-deep); font-weight: 600; }
.status-card { display: flex; align-items: center; gap: .9rem; margin: 0 0 2.5rem; padding: 1.25rem 1.5rem; border-radius: var(--r-lg); background: var(--c-paper); font-family: var(--f-title); font-size: 1.4rem; line-height: 1.2; }
.status-card i { font-size: 2rem; color: var(--c-accent-deep); }

/* ---------- Cookies ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1080; padding-block: 1.25rem; background: var(--c-ink); color: #fff; box-shadow: 0 -1rem 2rem -1rem rgba(10,30,40,.4); }
.cookie-banner p { margin: 0 0 1rem; max-width: 60rem; }
.cookie-banner a { color: #fff; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.button-ghost-light { --b-bg: transparent; --b-fg: #fff; --b-bd: #fff; }
.button-ghost-light:hover { --b-bg: #fff; --b-fg: var(--c-ink); }
.cookie-modal { position: fixed; inset: 0; z-index: 1090; display: grid; place-items: center; padding: 1rem; background: rgba(10,30,40,.55); }
.cookie-modal-panel { width: min(34rem, 100%); max-height: 90vh; overflow-y: auto; padding: 2rem; border-radius: var(--r-lg); background: #fff; }
.cookie-modal-panel h2 { font-size: 2rem; margin: 0 0 1.25rem; }
.cookie-choice { display: grid; grid-template-columns: auto 1fr; gap: .1rem .75rem; margin-bottom: 1rem; font-weight: 700; }
.cookie-choice input { width: 1.2rem; height: 1.2rem; margin-top: .2rem; accent-color: var(--c-dominant); }
.cookie-choice small { grid-column: 2; font-weight: 400; color: var(--c-muted); }
.cookie-open { position: fixed; left: 1rem; bottom: 1rem; z-index: 1070; border: 0; border-radius: var(--r-pill); padding: .45rem 1rem; background: var(--c-ink); color: #fff; font-weight: 700; font-size: .875rem; }

/* ---------- Maintenance ---------- */
.maintenance { min-height: 100vh; display: grid; align-content: center; gap: 1.5rem; max-width: 46rem; }
.maintenance-name { display: flex; align-items: center; gap: .7rem; margin: 0; font-family: var(--f-title); font-size: clamp(2.4rem, 7vw, 4rem); line-height: 1; letter-spacing: -.03em; }
.maintenance-name .brand-mark { width: 3rem; height: 3rem; }
.maintenance-msg { font-size: 1.25rem; }

/* ---------- Impression ---------- */
@media print {
  .skip-links, .notice-bar, .site-header .button, .panel-side, .cookie-banner, .cookie-open, .band-edge, .ripples-clip, .trail { display: none !important; }
  .band, .kiosque, .site-footer { background: none !important; color: #000 !important; }
}

/* ---------- Effets des réglages d'accessibilité ---------- */
html.a11y-lg { font-size: 112.5%; }
html.a11y-xl { font-size: 125%; }
html.a11y-spacing body { line-height: 1.9; letter-spacing: .03em; word-spacing: .12em; }
html.a11y-plainfont { --f-title: Verdana, Arial, sans-serif; --f-body: Verdana, Arial, sans-serif; --f-name: Verdana, Arial, sans-serif; }
html.a11y-plainfont :is(h1, h2, h3, .title) { letter-spacing: 0; }
html.a11y-still *, html.a11y-still *::before, html.a11y-still *::after { transition: none !important; animation: none !important; }
html.a11y-contrast { --c-night: #0a1e28; --c-ink: #0a1e28; --c-tint: #fff; --c-paper: #fff; --c-muted: #0a1e28; --c-accent: #7c1d33; --c-accent-deep: #7c1d33; --c-accent-on-dark: #fff; --c-line: #0a1e28; --c-field: #0a1e28; }
/* Contraste renforcé : le nom ne chevauche plus la photo (au lieu de pâlir l'image) */
html.a11y-contrast .hero-name { margin-bottom: .75rem; }
html.a11y-contrast .hero-photo { margin-top: 0; }
@media (min-width: 992px) { html.a11y-contrast .tagline { margin-top: 1.75rem; } }
html.a11y-contrast .notice-bar, html.a11y-contrast .chips a, html.a11y-contrast .entry, html.a11y-contrast .event-facts, html.a11y-contrast .contact-card, html.a11y-contrast .empty { outline: 2px solid var(--c-ink); }
