/* =====================================================================
   Sites des mairies (kit « mairie ») — complète assets/css/vitrine.css (ambiances, boutons, cartes).
   Préfixe « m- ». Couleurs : nuancier du site (--pal-primary-*, --pal-accent-*), encre = --club-navy.
   Mobile d'abord ; accessibilité : contrastes AA, focus visibles, animations réduites si demandé.
   ===================================================================== */

[data-sector="mairie"] {
  --m-ink: rgb(var(--v-ink));
  /* 700 : contraste AA (4,5:1) du texte coloré et du texte blanc sur fond coloré, quelle que soit la palette */
  --m-primary: rgb(var(--pal-primary-700));
  --m-primary-dark: rgb(var(--pal-primary-800));
  --m-soft: rgb(var(--pal-primary-50));
  --m-radius: var(--v-radius);
  --m-shadow-lg: 0 24px 60px -24px rgb(var(--v-ink) / .35);
  --m-header-h: 76px;
  scroll-padding-top: calc(var(--nav-h, 76px) + 16px);
}
[data-sector="mairie"] body { background: var(--v-bg); }
[data-sector="mairie"] :focus-visible { outline: 3px solid rgb(var(--pal-primary-400)); outline-offset: 2px; border-radius: 4px; }
[data-sector="mairie"] a { text-underline-offset: .18em; }
.m-muted { color: rgb(var(--v-muted)); }
.m-hl { color: rgb(var(--pal-primary-700)); font-weight: 600; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ------------------------------------------------------------------ En-tête */
.m-header { position: sticky; top: 0; z-index: 50; background: #fff; transition: box-shadow .25s ease; }
.m-header.is-scrolled { box-shadow: 0 1px 0 rgb(var(--v-line)), 0 10px 30px -18px rgb(15 23 42 / .35); }
/* Accueil avec photo pleine largeur : la barre principale est transparente au-dessus de la photo (texte blanc),
   puis redevient blanche dès que l'on fait défiler la page ou qu'un grand menu s'ouvre. */
body:has(.m-portail--photo.has-photo) .m-header[data-variant="home"]:not(.is-scrolled) { background: transparent; }
body:has(.m-portail--photo.has-photo) .m-header[data-variant="home"]:not(.is-scrolled):not(:has(.m-nav.has-mega)) .m-mainbar { background: transparent; border-bottom-color: rgb(255 255 255 / .18); }
body:has(.m-portail--photo.has-photo) .m-header[data-variant="home"]:not(.is-scrolled):not(:has(.m-nav.has-mega)) :is(.m-brand, .m-brand__kicker, .m-brand small, .m-nav__btn, .m-actions .m-iconbtn) { color: #fff; }
body:has(.m-portail--photo.has-photo) .m-header[data-variant="home"]:not(.is-scrolled):not(:has(.m-nav.has-mega)) .m-brand__kicker { color: rgb(var(--pal-accent-300)); }
body:has(.m-portail--photo.has-photo) .m-header[data-variant="home"]:not(.is-scrolled):not(:has(.m-nav.has-mega)) :is(.m-brand, .m-nav__btn) { text-shadow: 0 1px 10px rgb(0 0 0 / .35); }
body:has(.m-portail--photo.has-photo) .m-header[data-variant="home"]:not(.is-scrolled):not(:has(.m-nav.has-mega)) .m-nav__btn::after { background: #fff; }
body:has(.m-portail--photo.has-photo) .m-header[data-variant="home"]:not(.is-scrolled):not(:has(.m-nav.has-mega)) .m-iconbtn:hover { background: rgb(255 255 255 / .14); }
body:has(.m-portail--photo.has-photo) .m-header[data-variant="home"] :is(.m-mainbar, .m-brand, .m-nav__btn, .m-iconbtn) { transition: background .25s ease, color .25s ease, border-color .25s ease; }
body:has(.m-header[data-variant="home"]) .m-portail--photo.has-photo { margin-top: calc(-1 * var(--m-header-h) - 1px); padding-top: var(--m-header-h); }

/* Alertes */
.m-alertes:empty { display: none; }
.m-alert { font-size: .92rem; line-height: 1.4; }
.m-alert__row { display: flex; align-items: center; gap: .75rem; padding-top: .6rem; padding-bottom: .6rem; }
@media (min-width: 768px) { .m-alert__row { padding-top: .4rem; padding-bottom: .4rem; } .m-alert__text { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } }
.m-alert__icon { flex: none; display: inline-flex; }
.m-alert__text { flex: 1; min-width: 0; }
.m-alert__level { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: .15rem .45rem; border-radius: .35rem; margin-right: .35rem; background: rgb(255 255 255 / .2); vertical-align: 1px; }
.m-alert__more { opacity: .92; }
.m-alert__link { flex: none; display: inline-flex; align-items: center; gap: .3rem; font-weight: 700; text-decoration: underline; white-space: nowrap; }
.m-alert__close { flex: none; width: 2rem; height: 2rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; opacity: .8; }
.m-alert__close:hover { opacity: 1; background: rgb(255 255 255 / .18); }
.m-alert--rouge { background: #b91c1c; color: #fff; }
.m-alert--orange { background: #f59e0b; color: #1c1300; }
.m-alert--orange .m-alert__level { background: rgb(0 0 0 / .12); }
.m-alert--jaune { background: #fef08a; color: #1c1a00; }
.m-alert--jaune .m-alert__level { background: rgb(0 0 0 / .08); }
.m-alert--info { background: rgb(var(--pal-primary-800)); color: #fff; }
.m-alert--vert { background: #047857; color: #fff; }
/* Téléphone : une alerte = une ligne compacte (titre sur 2 lignes au plus, flèche vers le détail) */
@media (max-width: 639px) {
  .m-alert { font-size: .85rem; }
  .m-alert__row { gap: .55rem; padding-top: .45rem; padding-bottom: .45rem; }
  .m-alert__more, .m-alert__level { display: none; }
  .m-alert__text { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .m-alert__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
  .m-alert__link { width: 2rem; height: 2rem; justify-content: center; border-radius: 999px; background: rgb(255 255 255 / .18); text-decoration: none; }
  .m-alert--orange .m-alert__link, .m-alert--jaune .m-alert__link { background: rgb(0 0 0 / .1); }
}

/* Bandeau d'information */
.m-topbar { background: rgb(var(--v-ink)); color: rgb(255 255 255 / .82); font-size: .82rem; }
.m-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 2.4rem; }
.m-topbar__status { display: flex; align-items: center; gap: .5rem; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-topbar__status svg { flex: none; opacity: .8; }
.m-topbar__status span { overflow: hidden; text-overflow: ellipsis; }
.m-topbar__status::before { content: ''; flex: none; width: .5rem; height: .5rem; border-radius: 999px; background: #94a3b8; order: -1; }
.m-topbar__status.is-open::before { background: #34d399; box-shadow: 0 0 0 4px rgb(52 211 153 / .2); }
.m-topbar__links { display: flex; align-items: center; gap: .25rem; flex: none; }
.m-topbar__links a, .m-topbar__links button { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .55rem; border-radius: .5rem; color: inherit; }
.m-topbar__links a:hover, .m-topbar__links button:hover { color: #fff; background: rgb(255 255 255 / .1); }
@media (max-width: 639px) { .m-topbar__links a span { display: none; } }

/* Barre principale */
.m-mainbar { position: relative; background: #fff; border-bottom: 1px solid rgb(var(--v-line)); }
.m-mainbar__row { display: flex; align-items: center; gap: 1.25rem; min-height: var(--m-header-h); }
.m-brand { display: flex; align-items: center; gap: .8rem; min-width: 0; flex: 0 1 auto; color: var(--m-ink); }
.m-brand__logo { width: auto; max-width: 3.6rem; height: 3.4rem; object-fit: contain; flex: none; }
.m-brand__mono { width: 2.9rem; height: 2.9rem; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: .9rem .9rem 1.4rem 1.4rem; background: linear-gradient(160deg, rgb(var(--pal-primary-600)), rgb(var(--pal-primary-800))); color: #fff; font-family: var(--v-display); font-weight: 800; font-size: 1.1rem; letter-spacing: .02em; box-shadow: inset 0 -3px 0 rgb(var(--pal-accent-500)); }
.m-brand__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.1; }
.m-brand__kicker { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--pal-primary-700)); }
.m-brand__name { font-family: var(--v-display); font-weight: 800; font-size: 1.45rem; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-brand small { font-size: .74rem; color: rgb(var(--v-muted)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: .1rem; }
.m-nav { display: none; flex: 1; justify-content: center; }
.m-nav__list { display: flex; align-items: stretch; gap: .1rem; }
.m-nav__item { position: static; }
.m-nav__btn { display: inline-flex; align-items: center; gap: .3rem; height: var(--m-header-h); padding: 0 .7rem; font-weight: 600; font-size: .95rem; color: var(--m-ink); position: relative; white-space: nowrap; }
.m-nav__btn svg { opacity: .55; transition: transform .2s ease; }
.m-nav__btn::after { content: ''; position: absolute; left: .7rem; right: .7rem; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--m-primary); transform: scaleX(0); transition: transform .2s ease; }
.m-nav__item:hover .m-nav__btn::after, .m-nav__item.is-open .m-nav__btn::after { transform: scaleX(1); }
.m-nav__item.is-open .m-nav__btn { color: var(--m-primary); }
.m-nav__item.is-open .m-nav__btn svg { transform: rotate(180deg); opacity: 1; }
.m-mega { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-top: 1px solid rgb(var(--v-line)); box-shadow: 0 30px 60px -30px rgb(15 23 42 / .35); padding: 2rem 0 2.25rem; animation: m-drop .18s ease-out; }
@keyframes m-drop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.m-mega__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.6fr); gap: 2.5rem; }
.m-mega__label { display: flex; align-items: center; gap: .5rem; font-family: var(--v-display); font-weight: 800; font-size: 1.3rem; color: var(--m-ink); }
.m-mega__label svg { color: var(--m-primary); }
.m-mega__text { margin-top: .6rem; color: rgb(var(--v-muted)); font-size: .93rem; line-height: 1.6; }
.m-mega__links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .35rem 1rem; align-content: start; }
.m-mega__link { display: flex; gap: .75rem; padding: .65rem .75rem; border-radius: .75rem; color: var(--m-ink); transition: background .15s ease; }
.m-mega__link:hover { background: var(--v-surface); }
.m-mega__link b { display: block; font-weight: 600; font-size: .94rem; line-height: 1.3; }
.m-mega__link small { display: block; font-size: .8rem; color: rgb(var(--v-muted)); line-height: 1.4; margin-top: .15rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.m-mega__ico { flex: none; width: 2rem; height: 2rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--pal-primary-50)); color: rgb(var(--pal-primary-700)); }
.m-actions { display: flex; align-items: center; gap: .5rem; margin-left: auto; flex: none; }
.m-iconbtn { width: 2.75rem; height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .8rem; color: var(--m-ink); transition: background .15s ease; }
.m-iconbtn:hover { background: var(--v-surface); }
.m-actions__cta { padding: .8rem 1.15rem !important; }
@media (max-width: 767px) { .m-actions__cta { display: none !important; } }
@media (min-width: 1180px) { .m-nav { display: flex; } .m-burger { display: none; } }
@media (min-width: 1180px) and (max-width: 1320px) { .m-nav__btn { padding: 0 .5rem; font-size: .9rem; } .m-brand small { display: none; } }
/* Nom de commune très long : même menu resserré sur grand écran, pour que le nom garde une taille lisible (navbar.js, fitBrand) */
@media (min-width: 1180px) { [data-brand-tight] .m-nav__btn { padding: 0 .5rem; font-size: .9rem; } [data-brand-tight] .m-brand small { display: none; } }

/* Menu mobile */
.m-drawer { position: fixed; inset: 0; z-index: 70; background: #fff; display: flex; flex-direction: column; overflow-y: auto; transform: translateX(100%); visibility: hidden; transition: transform .3s cubic-bezier(.2,.8,.2,1), visibility .3s; }
.m-drawer.is-open { transform: none; visibility: visible; }
.m-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem 1.25rem; border-bottom: 1px solid rgb(var(--v-line)); }
.m-drawer__search { margin: 1rem 1.25rem 0; display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border-radius: .9rem; background: var(--v-surface); color: rgb(var(--v-muted)); }
.m-drawer__search input { flex: 1; min-width: 0; padding: .9rem 0; background: transparent; outline: none; font-size: 1rem; color: var(--m-ink); }
.m-drawer__nav { padding: .75rem 1.25rem; }
.m-drawer__home, .m-drawer__group summary { display: flex; align-items: center; gap: .75rem; padding: 1rem .25rem; font-family: var(--v-display); font-weight: 700; font-size: 1.15rem; color: var(--m-ink); border-bottom: 1px solid rgb(var(--v-line)); cursor: pointer; list-style: none; }
.m-drawer__group summary::-webkit-details-marker { display: none; }
.m-drawer__home svg, .m-drawer__group summary > svg:first-child { color: var(--m-primary); }
.m-drawer__group summary span { flex: 1; }
.m-drawer__chev { transition: transform .2s ease; opacity: .5; }
.m-drawer__group[open] .m-drawer__chev { transform: rotate(180deg); }
.m-drawer__group ul { padding: .4rem 0 .8rem 2.3rem; }
.m-drawer__group li a { display: block; padding: .55rem 0; color: rgb(var(--v-ink) / .85); }
.m-drawer__all { font-weight: 600; color: var(--m-primary) !important; }
.m-drawer__foot { margin-top: auto; padding: 1.25rem; display: grid; gap: .6rem; border-top: 1px solid rgb(var(--v-line)); }
.m-drawer__account { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .5rem; font-size: .9rem; color: rgb(var(--v-muted)); }

/* Recherche instantanée */
.m-searchdlg { position: fixed; inset: 0; z-index: 80; background: rgb(var(--v-ink) / .55); backdrop-filter: blur(4px); padding: 8vh 1rem 2rem; overflow-y: auto; }
.m-searchdlg[hidden] { display: none; }
.m-searchdlg__panel { max-width: 46rem; margin: 0 auto; background: #fff; border-radius: 1.25rem; box-shadow: var(--m-shadow-lg); overflow: hidden; animation: m-drop .18s ease-out; }
.m-searchdlg__form { display: flex; align-items: center; gap: .75rem; padding: .75rem .75rem .75rem 1.25rem; border-bottom: 1px solid rgb(var(--v-line)); }
.m-searchdlg__form input { flex: 1; min-width: 0; font-size: 1.15rem; padding: .7rem 0; outline: none; color: var(--m-ink); }
.m-searchdlg__results { padding: .75rem; max-height: 65vh; overflow-y: auto; }
.m-searchdlg__hint, .m-searchdlg__none { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; padding: 1rem; color: rgb(var(--v-muted)); font-size: .95rem; }
.m-searchdlg__none a { color: var(--m-primary); text-decoration: underline; }
.m-results { display: grid; gap: .15rem; }
.m-result { display: flex; gap: .85rem; padding: .75rem .85rem; border-radius: .8rem; color: var(--m-ink); }
.m-result:hover, .m-result:focus-visible { background: var(--v-surface); outline: none; }
.m-result__icon { flex: none; width: 2.1rem; height: 2.1rem; border-radius: .6rem; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--pal-primary-50)); color: rgb(var(--pal-primary-700)); }
.m-result__kind { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--v-muted)); }
.m-result__title { display: block; font-weight: 600; line-height: 1.35; }
.m-result__text { display: block; font-size: .85rem; color: rgb(var(--v-muted)); margin-top: .15rem; line-height: 1.45; }
.m-results mark { background: rgb(var(--pal-accent-100)); color: inherit; border-radius: .2rem; padding: 0 .1rem; }

/* ------------------------------------------------------------------ Bannière d'accueil (portail) */
.m-portail { position: relative; overflow: hidden; isolation: isolate; color: #fff; }
.m-portail__bg { position: absolute; inset: 0; z-index: -1; }
.m-portail__bg img { width: 100%; height: 100%; object-fit: cover; }
.m-portail.has-photo .m-portail__bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(var(--v-ink) / .35) 0%, rgb(var(--v-ink) / .55) 55%, rgb(var(--v-ink) / .8) 100%); }
.m-portail__bg--art { background: radial-gradient(120% 90% at 85% 0%, rgb(var(--pal-primary-500) / .55), transparent 60%), radial-gradient(90% 80% at 0% 100%, rgb(var(--pal-accent-500) / .35), transparent 60%), linear-gradient(160deg, rgb(var(--pal-primary-900)), rgb(var(--v-ink))); }
.m-portail__sun { position: absolute; right: 10%; top: 18%; width: clamp(8rem, 18vw, 15rem); aspect-ratio: 1; border-radius: 999px; background: radial-gradient(circle at 40% 40%, rgb(255 255 255 / .35), rgb(255 255 255 / .06) 60%, transparent 70%); }
.m-portail__inner { position: relative; padding-top: clamp(4rem, 9vw, 7rem); padding-bottom: clamp(7rem, 12vw, 10rem); max-width: 1180px; }
.m-portail__eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: rgb(255 255 255 / .85); }
.m-portail__eyebrow::before { content: ''; width: 1.75rem; height: 2px; background: rgb(var(--pal-accent-400)); border-radius: 2px; }
.m-portail__title { margin-top: 1rem; max-width: 18ch; font-family: var(--v-display); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; font-size: clamp(2.5rem, 6vw, 4.6rem); text-wrap: balance; }
.m-portail__title .v-italic { font-style: normal; color: rgb(var(--pal-accent-300)); }
.m-portail__lead { margin-top: 1.25rem; max-width: 40rem; font-size: clamp(1.05rem, 1.5vw, 1.2rem); line-height: 1.65; color: rgb(255 255 255 / .88); }
.m-portail__chips { margin-top: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; font-size: .85rem; color: rgb(255 255 255 / .75); }
.m-portail__chips a { padding: .35rem .8rem; border-radius: 999px; background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .2); color: #fff; transition: background .15s ease; }
.m-portail__chips a:hover { background: rgb(255 255 255 / .22); }
.m-portail__ridge { position: absolute; left: 0; right: 0; bottom: -1px; color: var(--v-bg); }
/* Pleine largeur (photo ou diaporama) : grande image, voile dégradé, texte centré */
.m-portail--photo { min-height: clamp(32rem, 74vh, 48rem); display: flex; align-items: center; }
.m-portail--photo .m-portail__inner { width: 100%; }
.m-portail__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.4s ease; transform: scale(1.04); }
.m-portail__slide.is-on { opacity: 1; animation: m-zoom 14s ease-out both; }
@keyframes m-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }
/* Bannière modifiée depuis la génération de la page : l'ancienne photo reste dessous le temps que la nouvelle se charge, puis fondu */
.m-portail__bg--ghost { pointer-events: none; }
.m-portail__bg.is-entering { opacity: 0; }
.m-portail__bg.is-fading { transition: opacity .9s ease; }
@media (prefers-reduced-motion: reduce) { .m-portail__bg.is-fading { transition: none; } }
.m-portail.has-photo .m-portail__bg::after { background: radial-gradient(70% 60% at 50% 45%, rgb(var(--v-ink) / .35), transparent 75%), linear-gradient(180deg, rgb(var(--v-ink) / .55) 0%, rgb(var(--v-ink) / .25) 35%, rgb(var(--v-ink) / .45) 70%, rgb(var(--v-ink) / .85) 100%); }
.m-portail--center .m-portail__inner { display: flex; flex-direction: column; align-items: center; text-align: center; }
.m-portail--center .m-portail__title { max-width: 20ch; font-size: clamp(2.75rem, 7.5vw, 5.75rem); text-shadow: 0 2px 30px rgb(0 0 0 / .25); }
.m-portail--center .m-portail__eyebrow::after { content: ''; width: 1.75rem; height: 2px; background: rgb(var(--pal-accent-400)); border-radius: 2px; }
.m-portail--center .m-portail__lead { margin-left: auto; margin-right: auto; text-shadow: 0 1px 12px rgb(0 0 0 / .3); }
.m-portail--center .m-search { width: min(100%, 46rem); margin-left: auto; margin-right: auto; }
.m-portail--center .m-portail__chips { justify-content: center; }
.m-portail--photo.has-photo .m-search { box-shadow: 0 20px 50px -18px rgb(0 0 0 / .55); }
.m-portail--photo .m-portail__chips a { backdrop-filter: blur(6px); }
.m-portail--photo .m-status { backdrop-filter: blur(6px); }
.m-portail__pause { position: absolute; right: clamp(1rem, 3vw, 2rem); bottom: clamp(7.5rem, 11vw, 9.5rem); z-index: 2; width: 2.5rem; height: 2.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: rgb(0 0 0 / .3); border: 1px solid rgb(255 255 255 / .35); backdrop-filter: blur(6px); }
.m-portail__pause:hover { background: rgb(0 0 0 / .5); }
@media (prefers-reduced-motion: reduce) { .m-portail__slide, .m-portail__slide.is-on { animation: none; transition: none; transform: none; } }
.m-portail--split { color: var(--m-ink); background: linear-gradient(180deg, var(--v-surface), var(--v-bg)); }
.m-portail--split .m-portail__grid { display: grid; gap: 2.5rem; align-items: center; padding-top: clamp(3rem, 7vw, 5rem); padding-bottom: clamp(7rem, 11vw, 9rem); }
.m-portail--split .m-portail__eyebrow { color: rgb(var(--pal-primary-700)); }
.m-portail--split .m-portail__title .v-italic { color: rgb(var(--pal-primary-600)); }
.m-portail--split .m-portail__lead { color: rgb(var(--v-muted)); }
.m-portail--split .m-portail__chips { color: rgb(var(--v-muted)); }
.m-portail--split .m-portail__chips a { background: #fff; border-color: rgb(var(--v-line)); color: var(--m-ink); }
.m-portail--split .m-portail__chips a:hover { border-color: var(--m-primary); color: var(--m-primary); }
.m-portail--split .m-portail__ridge { color: var(--v-bg); opacity: 1; }
.m-portail__visual { position: relative; }
.m-portail__visual .v-photo { border-radius: 1.75rem; }
@media (min-width: 1024px) { .m-portail--split .m-portail__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 4rem; } }
.m-credit { margin-top: .5rem; font-size: .72rem; color: rgb(var(--v-muted)); text-align: right; }
.m-credit--abs { position: absolute; right: 1rem; bottom: 4.5rem; color: rgb(255 255 255 / .7); }

/* Champ de recherche */
.m-search { margin-top: 2rem; display: flex; align-items: center; gap: .5rem; max-width: 40rem; background: #fff; border-radius: 1.1rem; padding: .45rem .45rem .45rem 1.1rem; box-shadow: 0 20px 50px -20px rgb(0 0 0 / .45); color: var(--m-ink); }
.m-search__icon { flex: none; color: rgb(var(--v-muted)); }
.m-search input { flex: 1; min-width: 0; padding: .85rem 0; font-size: 1.05rem; background: transparent; outline: none; color: var(--m-ink); }
.m-search input:focus, .m-search input:focus-visible { outline: none; box-shadow: none; border: 0; }
.m-search:focus-within { box-shadow: 0 0 0 3px rgb(var(--pal-primary-300)), 0 20px 50px -20px rgb(0 0 0 / .45); }
.m-search--page { max-width: 48rem; margin-top: 0; border: 1px solid rgb(var(--v-line)); box-shadow: var(--v-shadow); }
.m-searchhints { margin-top: 1.75rem; }
.m-searchhints p { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: rgb(var(--v-muted)); margin-bottom: .6rem; }
.m-searchhints ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.m-searchhints a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: var(--v-surface); font-size: .9rem; font-weight: 600; color: var(--m-ink); }
.m-searchhints a:hover { background: rgb(var(--pal-primary-50)); color: var(--m-primary); }
.m-search input::placeholder { color: rgb(var(--v-muted) / .85); }
.m-search .v-btn { padding: .9rem 1.4rem; }
.m-portail--split .m-search { box-shadow: 0 1px 0 rgb(var(--v-line)), var(--v-shadow); border: 1px solid rgb(var(--v-line)); }
.m-search--page { margin-top: 0; max-width: none; box-shadow: none; border: 1.5px solid rgb(var(--v-line)); }
.m-search--page:focus-within { border-color: var(--m-primary); box-shadow: 0 0 0 4px rgb(var(--pal-primary-100)); }

/* Pastille ouvert / fermé */
.m-status { margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .75rem; border-radius: 999px; font-size: .88rem; font-weight: 600; background: rgb(255 255 255 / .14); border: 1px solid rgb(255 255 255 / .22); }
.m-status[hidden] { display: none; }
.m-status__dot { width: .55rem; height: .55rem; border-radius: 999px; background: #f87171; }
.m-status.is-open .m-status__dot { background: #34d399; box-shadow: 0 0 0 4px rgb(52 211 153 / .25); }
.m-portail--split .m-status, .m-status--sm { background: var(--v-surface); border-color: rgb(var(--v-line)); color: var(--m-ink); }
.m-status--sm { margin-top: 0; font-size: .8rem; padding: .3rem .75rem .3rem .6rem; }

/* ------------------------------------------------------------------ Accès rapides */
.m-acces { position: relative; z-index: 2; padding: 2.5rem 0 1rem; }
/* Juste sous la bannière et sans titre visible : les tuiles chevauchent le bas de la bannière */
[data-section="portail"] + .m-acces--overlap { margin-top: -6.5rem; padding-top: 0; }
[data-section="portail"].m-portail--photo + .m-acces--overlap .m-tile { box-shadow: 0 18px 40px -20px rgb(15 23 42 / .45); }
.m-acces__head { margin-bottom: 1.25rem; }
.m-acces__head .m-head { margin-bottom: 0; }
.m-acces__head .m-title { font-size: clamp(1.35rem, 2.2vw, 1.7rem); }
.m-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@media (min-width: 640px) { .m-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .m-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; } .m-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .m-tiles--5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } .m-tiles--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.m-tile { position: relative; height: 100%; display: flex; flex-direction: column; gap: .35rem; padding: 1.15rem 1.15rem 1.25rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1.1rem; box-shadow: var(--v-shadow); color: var(--m-ink); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.m-tile:hover { transform: translateY(-3px); border-color: rgb(var(--pal-primary-300)); box-shadow: var(--m-shadow-lg); }
.m-tile__icon { width: 3rem; height: 3rem; border-radius: .9rem; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--pal-primary-50)); color: rgb(var(--pal-primary-700)); margin-bottom: .4rem; transition: background .2s ease, color .2s ease; }
.m-tile:hover .m-tile__icon { background: var(--m-primary); color: #fff; }
.m-tile__label { font-family: var(--v-display); font-weight: 700; font-size: 1.02rem; line-height: 1.25; }
.m-tile__text { font-size: .82rem; color: rgb(var(--v-muted)); line-height: 1.45; }
.m-tile__ext { position: absolute; top: 1rem; right: 1rem; color: rgb(var(--v-muted)); }

/* ------------------------------------------------------------------ Rubriques de l'accueil */
.m-section--surface { background: var(--v-surface); }
.m-section--ink { background: rgb(var(--v-ink)); color: rgb(255 255 255 / .86); }
.m-head { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2.25rem; }
@media (min-width: 768px) { .m-head { flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.m-head--center { text-align: center; align-items: center; justify-content: center; }
.m-title { font-family: var(--v-display); font-weight: var(--v-title-weight); letter-spacing: var(--v-title-tracking); line-height: 1.1; font-size: clamp(1.85rem, 3.6vw, 2.75rem); color: rgb(var(--v-ink)); text-wrap: balance; }
.m-title .v-italic { font-style: normal; color: var(--m-primary); }
.m-section--ink .m-title .v-italic { color: rgb(var(--pal-accent-300)); }
.m-lead { margin-top: .75rem; max-width: 46rem; font-size: 1.05rem; line-height: 1.65; color: rgb(var(--v-muted)); }
.m-more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .95rem; color: var(--m-primary); white-space: nowrap; }
.m-more:hover { text-decoration: underline; }
.m-more svg { transition: transform .2s ease; }
.m-more:hover svg { transform: translateX(3px); }

/* Agenda */
.m-events { display: grid; gap: 1rem; }
@media (min-width: 768px) { .m-events { grid-template-columns: repeat(2, minmax(0, 1fr)); } .m-events--full { grid-template-columns: 1fr; } }
.m-event { --evt: var(--m-primary); display: flex; gap: 1.1rem; padding: 1.15rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1.1rem; scroll-margin-top: calc(var(--nav-h, 76px) + 24px); }
.m-event:target { box-shadow: 0 0 0 3px rgb(var(--pal-primary-300)); }
.m-date { flex: none; width: 4.4rem; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: .55rem .25rem .6rem; border-radius: .9rem; background: var(--evt); color: #fff; line-height: 1; text-align: center; }
.m-date__wd { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.m-date__d { font-family: var(--v-display); font-weight: 800; font-size: 1.85rem; margin: .2rem 0; }
.m-date__m { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.m-event__body { min-width: 0; flex: 1; }
.m-event__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .75rem; font-size: .8rem; color: rgb(var(--v-muted)); }
.m-event__meta span { display: inline-flex; align-items: center; gap: .25rem; }
.m-event__cat { font-weight: 700; color: var(--evt) !important; text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }
.m-event__title { margin-top: .3rem; font-family: var(--v-display); font-weight: 700; font-size: 1.1rem; line-height: 1.3; color: var(--m-ink); }
.m-event__place { margin-top: .35rem; display: flex; align-items: flex-start; gap: .35rem; font-size: .88rem; color: rgb(var(--v-muted)); }
.m-event__place svg { flex: none; margin-top: .15rem; }
.m-event__excerpt { margin-top: .45rem; font-size: .9rem; color: rgb(var(--v-muted)); line-height: 1.55; }
.m-event__text { margin-top: .6rem; font-size: .95rem; }
.m-event__actions { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.m-event__img { flex: none; width: 11rem; border-radius: .9rem; overflow: hidden; display: none; }
.m-event__img img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 768px) { .m-event--full .m-event__img { display: block; } .m-event--full { padding: 1.4rem; } }
.m-month + .m-month { margin-top: 2.5rem; }
.m-month__title { font-family: var(--v-display); font-weight: 800; font-size: 1.35rem; text-transform: capitalize; color: var(--m-ink); margin-bottom: 1rem; display: flex; align-items: center; gap: .75rem; }
.m-month__title::after { content: ''; flex: 1; height: 1px; background: rgb(var(--v-line)); }
.m-regular { margin-top: 3rem; }
.m-regular__list { display: grid; gap: .75rem; }
@media (min-width: 768px) { .m-regular__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-past { margin-top: 3rem; border-top: 1px solid rgb(var(--v-line)); padding-top: 1.25rem; }
.m-past summary { cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; color: rgb(var(--v-muted)); }
.m-past[open] summary { margin-bottom: 1.5rem; }
.m-past .m-event { opacity: .8; }

/* Mot du maire */
.m-maire { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 1024px) { .m-maire { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 4.5rem; } }
.m-maire__photo { max-width: 26rem; width: 100%; margin: 0 auto; position: relative; }
.m-maire__photo .v-photo { border-radius: 1.75rem; box-shadow: var(--m-shadow-lg); }
.m-maire__name { position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem; padding: .85rem 1.1rem; border-radius: 1rem; background: rgb(255 255 255 / .92); backdrop-filter: blur(6px); box-shadow: var(--v-shadow); }
.m-maire__name b { display: block; font-family: var(--v-display); font-size: 1.1rem; color: var(--m-ink); }
.m-maire__name span { display: block; font-size: .82rem; color: rgb(var(--v-muted)); }
.m-quote { position: relative; margin-top: 2rem; padding-left: 1.5rem; border-left: 3px solid rgb(var(--pal-accent-500)); isolation: isolate; }
.m-quote__mark { position: absolute; left: 1rem; top: -1.4rem; color: rgb(var(--pal-primary-100)); z-index: -1; width: 3.25rem; height: 3.25rem; }
.m-quote .m-prose { font-size: 1.08rem; }
/* Sans portrait : carte « lettre » */
.m-maire--letter { align-items: start; padding: 2rem 1.5rem; border-radius: 1.75rem; background: linear-gradient(135deg, rgb(var(--pal-primary-50)), var(--v-surface) 55%); border: 1px solid rgb(var(--v-line)); }
@media (min-width: 768px) { .m-maire--letter { padding: 3rem; } }
@media (min-width: 1024px) { .m-maire--letter { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 4rem; padding: 3.5rem 4rem; } }
.m-maire--letter .m-quote { margin-top: .25rem; }
.m-maire--letter .m-quote__mark { display: none; }
.m-sign { margin-top: 2rem; display: flex; align-items: center; gap: .9rem; }
.m-sign__mono { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: linear-gradient(160deg, rgb(var(--pal-primary-600)), rgb(var(--pal-primary-800))); color: #fff; font-family: var(--v-display); font-weight: 800; font-size: 1.1rem; box-shadow: 0 0 0 4px #fff, 0 0 0 5px rgb(var(--pal-accent-400)); }
.m-sign b { display: block; font-family: var(--v-display); font-size: 1.1rem; color: var(--m-ink); line-height: 1.2; }
.m-sign b + span { display: block; font-size: .85rem; color: rgb(var(--v-muted)); }

/* Démarches */
.m-demgrid { display: grid; gap: 1rem; }
@media (min-width: 768px) { .m-demgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .m-demgrid:not(.m-demgrid--page):not(.m-demgrid--embedded) { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.m-demgroup { background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1.1rem; padding: 1.25rem; scroll-margin-top: calc(var(--nav-h, 76px) + 24px); }
.m-demgroup__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.m-demgroup__head h3 { font-family: var(--v-display); font-weight: 700; font-size: 1.1rem; color: var(--m-ink); line-height: 1.25; }
.m-demgroup__intro { font-size: .93rem; margin-bottom: .75rem; }
.m-dems { display: grid; gap: .15rem; }
.m-dem { display: flex; align-items: center; gap: .75rem; padding: .65rem .7rem; margin: 0 -.7rem; border-radius: .75rem; color: var(--m-ink); transition: background .15s ease; }
a.m-dem:hover { background: var(--v-surface); }
.m-dem__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-dem__label { font-weight: 600; font-size: .95rem; line-height: 1.35; }
.m-dem__text { font-size: .83rem; color: rgb(var(--v-muted)); line-height: 1.45; margin-top: .1rem; }
.m-dem__where { display: inline-flex; align-items: center; gap: .25rem; margin-top: .3rem; font-size: .72rem; font-weight: 600; color: rgb(var(--pal-primary-700)); }
.m-dem__go { flex: none; color: rgb(var(--v-muted)); }
a.m-dem:hover .m-dem__go { color: var(--m-primary); }
.m-ico { flex: none; width: 2.75rem; height: 2.75rem; border-radius: .85rem; display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--pal-primary-50)); color: rgb(var(--pal-primary-700)); font-size: 1rem; }
.m-toc { margin-bottom: 2rem; }
.m-toc ul { display: flex; flex-wrap: wrap; gap: .5rem; }
.m-toc a { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; background: var(--v-surface); font-size: .9rem; font-weight: 600; color: var(--m-ink); }
.m-toc a:hover { background: rgb(var(--pal-primary-50)); color: var(--m-primary); }

/* Découvrir la commune */
.m-commune { display: grid; gap: 3rem; align-items: center; }
@media (min-width: 1024px) { .m-commune { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4.5rem; } }
.m-commune__side { position: relative; }
.m-commune__side .v-photo { border-radius: 1.75rem; }
.m-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 1rem; }
@media (min-width: 640px) { .m-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .m-stats { position: relative; margin: -3.5rem 1.25rem 0; } }
.m-stat { background: #fff; color: var(--m-ink); border-radius: 1rem; padding: 1rem; box-shadow: var(--m-shadow-lg); }
.m-stat dd { display: flex; flex-direction: column; gap: .15rem; }
.m-stat__icon { color: var(--m-primary); margin-bottom: .3rem; }
.m-stat__value { font-family: var(--v-display); font-weight: 800; font-size: 1.45rem; line-height: 1.1; letter-spacing: -0.02em; }
.m-stat__label { font-size: .78rem; color: rgb(var(--v-muted)); line-height: 1.3; }
.m-prose.m-prose--light { color: rgb(255 255 255 / .85); }
.m-prose.m-prose--light a, .m-prose.m-prose--light strong { color: #fff; }

/* Kiosque */
.m-mags { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
@media (min-width: 768px) { .m-mags { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.m-mag { display: flex; flex-direction: column; gap: .35rem; color: var(--m-ink); }
.m-mag__cover { aspect-ratio: 3/4; border-radius: .9rem; overflow: hidden; background: #fff; border: 1px solid rgb(var(--v-line)); box-shadow: var(--v-shadow); transition: transform .2s ease; display: block; }
.m-mag:hover .m-mag__cover { transform: translateY(-4px) rotate(-.6deg); }
.m-mag__cover img { width: 100%; height: 100%; object-fit: cover; }
.m-mag__placeholder { position: relative; height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; padding: 1.1rem 1.1rem 0; overflow: hidden; background: linear-gradient(170deg, rgb(var(--pal-primary-700)), rgb(var(--pal-primary-900))); color: #fff; font-family: var(--v-display); }
.m-mag__brand { font-size: clamp(.95rem, 1.6vw, 1.2rem); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; padding-bottom: .55rem; border-bottom: 3px solid rgb(var(--pal-accent-400)); }
.m-mag__num { margin-top: .6rem; font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.m-mag__when { font-family: var(--v-body); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; opacity: .8; }
.m-mag__ridge { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; color: rgb(var(--pal-accent-400)); }
.m-mag:nth-child(4n+2) .m-mag__placeholder { background: linear-gradient(170deg, rgb(var(--pal-accent-600)), rgb(var(--pal-accent-800))); }
.m-mag:nth-child(4n+2) .m-mag__brand { border-color: #fff; }
.m-mag:nth-child(4n+2) .m-mag__ridge { color: #fff; }
.m-mag:nth-child(4n+3) .m-mag__placeholder { background: linear-gradient(170deg, rgb(var(--v-ink)), rgb(var(--pal-primary-800))); }
.m-mag__title { margin-top: .5rem; font-weight: 700; line-height: 1.3; }
.m-mag__date { font-size: .82rem; color: rgb(var(--v-muted)); text-transform: capitalize; }
.m-mag__soon { font-size: .75rem; color: rgb(var(--v-muted)); }

/* Infos pratiques */
.m-infos { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .m-infos { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 1.5rem; } }
.m-card { background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1.25rem; padding: 1.5rem; }
@media (min-width: 768px) { .m-card { padding: 1.85rem; } }
.m-card__title { display: flex; align-items: center; gap: .55rem; font-family: var(--v-display); font-weight: 800; font-size: 1.2rem; color: var(--m-ink); margin-bottom: 1rem; }
.m-subtitle { font-weight: 700; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--v-muted)); margin-bottom: .5rem; }
.m-hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.m-hours th, .m-hours td { padding: .6rem 0; border-bottom: 1px dashed rgb(var(--v-line)); text-align: left; font-weight: 500; }
.m-hours td { text-align: right; color: rgb(var(--v-muted)); }
.m-hours tr.is-today th, .m-hours tr.is-today td { color: var(--m-ink); font-weight: 700; }
.m-hours tr.is-today th::before { content: ''; display: inline-block; width: .45rem; height: .45rem; border-radius: 999px; background: var(--m-primary); margin-right: .5rem; vertical-align: 2px; }
.m-hours--compact { font-size: .85rem; }
.m-hours--compact th, .m-hours--compact td { padding: .35rem 0; }
.m-note { display: flex; gap: .5rem; margin-top: .9rem; font-size: .88rem; color: rgb(var(--v-muted)); line-height: 1.5; }
.m-contactlist { margin-top: 1.25rem; display: grid; gap: .7rem; }
.m-contactlist li { display: flex; align-items: flex-start; gap: .75rem; }
.m-contactlist svg { flex: none; color: var(--m-primary); margin-top: .1rem; }
.m-contactlist a { color: var(--m-ink); font-weight: 600; }
.m-contactlist a:hover { color: var(--m-primary); text-decoration: underline; }
.m-infos__side { display: grid; gap: 1rem; align-content: start; }
.m-services { display: grid; gap: .75rem; }
@media (min-width: 640px) { .m-services { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-services--grid { grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.m-service { background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1rem; padding: 1.1rem; }
.m-service__name { display: flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--m-ink); line-height: 1.3; }
.m-service__name a:hover { color: var(--m-primary); text-decoration: underline; }
.m-service__hours { margin-top: .5rem; font-size: .88rem; color: rgb(var(--v-ink) / .85); line-height: 1.55; }
.m-service__note { margin-top: .35rem; font-size: .8rem; color: rgb(var(--v-muted)); }
.m-service__tel a { margin-top: .5rem; display: inline-flex; align-items: center; gap: .35rem; font-size: .88rem; font-weight: 600; color: var(--m-primary); }
.m-urgences { border-radius: 1rem; padding: 1.1rem 1.25rem; background: #fff1f2; border: 1px solid #fecdd3; }
.m-urgences__title { display: flex; align-items: center; gap: .5rem; font-weight: 800; color: #9f1239; margin-bottom: .6rem; }
.m-urgences ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .5rem; }
.m-urgences a { display: flex; align-items: center; gap: .6rem; padding: .45rem .6rem; border-radius: .7rem; background: #fff; color: #4c0519; }
.m-urgences a:hover { box-shadow: 0 0 0 2px #fda4af; }
.m-urgences b { font-family: var(--v-display); font-size: 1.15rem; color: #be123c; white-space: nowrap; }
.m-urgences span { font-size: .78rem; line-height: 1.2; }

/* Liens utiles */
.m-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: .75rem; }
.m-linkcard { position: relative; display: flex; align-items: center; gap: .85rem; padding: 1rem 2.4rem 1rem 1rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1rem; color: var(--m-ink); height: 100%; transition: border-color .15s ease, transform .15s ease; }
.m-linkcard:hover { border-color: rgb(var(--pal-primary-300)); transform: translateY(-2px); }
.m-linkcard__logo { width: 2.75rem; height: 2.75rem; object-fit: contain; flex: none; }
.m-linkcard__mono { width: 2.75rem; height: 2.75rem; flex: none; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; background: var(--v-surface); color: rgb(var(--pal-primary-700)); }
.m-linkcard b { display: block; font-size: .95rem; line-height: 1.3; }
.m-linkcard span span { display: block; font-size: .8rem; color: rgb(var(--v-muted)); line-height: 1.35; margin-top: .15rem; }
.m-linkcard__ext { position: absolute; top: 1rem; right: .9rem; color: rgb(var(--v-muted)); }

/* ------------------------------------------------------------------ Pied de page */
.m-footer { position: relative; background: rgb(var(--v-ink)); color: rgb(255 255 255 / .75); margin-top: 4rem; font-size: .92rem; }
.m-footer__ridge { position: absolute; left: 0; right: 0; bottom: 100%; color: rgb(var(--v-ink)); height: clamp(40px, 6vw, 90px); width: 100%; }
.m-footer__grid { display: grid; gap: 2.5rem; padding-top: 3.5rem; padding-bottom: 3rem; }
@media (min-width: 768px) { .m-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .m-footer__grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.1fr) minmax(0, .9fr) minmax(0, .9fr); } }
.m-footer__logo { display: block; height: 4.25rem; width: auto; margin-bottom: .85rem; }
.m-footer__name { font-family: var(--v-display); font-size: 1.05rem; color: rgb(255 255 255 / .7); }
.m-footer__name b { display: block; font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.02em; line-height: 1.1; }
.m-footer__tagline { margin-top: .75rem; max-width: 26rem; line-height: 1.6; }
.m-footer__contact { margin-top: 1.25rem; display: grid; gap: .55rem; }
.m-footer__contact li { display: flex; gap: .6rem; align-items: flex-start; }
.m-footer__contact svg { flex: none; margin-top: .2rem; color: rgb(var(--pal-accent-300)); }
.m-footer a:hover { color: #fff; text-decoration: underline; }
.m-footer__social { margin-top: 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.m-footer__follow { width: 100%; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.m-footer__social a { min-height: 2.4rem; padding: 0 1rem 0 .85rem; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); font-weight: 600; font-size: .9rem; transition: background .15s ease, border-color .15s ease; }
.m-footer__social a:hover { background: rgb(255 255 255 / .12); border-color: rgb(255 255 255 / .45); text-decoration: none; }
.m-footer__head { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .5); margin-bottom: .9rem; }
.m-footer .m-hours th, .m-footer .m-hours td { border-color: rgb(255 255 255 / .12); color: rgb(255 255 255 / .75); }
.m-footer .m-hours tr.is-today th, .m-footer .m-hours tr.is-today td { color: #fff; }
.m-footer .m-hours tr.is-today th::before { background: rgb(var(--pal-accent-400)); }
.m-footer__note { margin-top: .6rem; font-size: .8rem; color: rgb(255 255 255 / .55); }
.m-footer__nav ul { display: grid; gap: .5rem; }
.m-footer__bottom { border-top: 1px solid rgb(255 255 255 / .1); }
.m-footer__bottomrow { display: flex; flex-direction: column; gap: .75rem; padding-top: 1.25rem; padding-bottom: 1.5rem; font-size: .8rem; color: rgb(255 255 255 / .55); }
@media (min-width: 900px) { .m-footer__bottomrow { flex-direction: row; align-items: center; justify-content: space-between; } }
.m-footer__legal { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }

/* ------------------------------------------------------------------ Pages intérieures */
.m-pagehero { position: relative; overflow: hidden; isolation: isolate; background: radial-gradient(80% 120% at 100% 0%, rgb(var(--pal-primary-100) / .9), transparent 60%), linear-gradient(180deg, var(--v-surface), var(--v-surface)); padding: 1.5rem 0 4.5rem; }
.m-pagehero--photo { color: #fff; background: rgb(var(--v-ink)); }
.m-pagehero__bg { position: absolute; inset: 0; z-index: -1; }
.m-pagehero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .45; }
.m-pagehero__row { display: flex; align-items: flex-start; gap: 1.1rem; margin-top: 1.25rem; }
.m-pagehero__icon { flex: none; width: 3.5rem; height: 3.5rem; border-radius: 1rem; display: none; align-items: center; justify-content: center; background: var(--m-primary); color: #fff; box-shadow: 0 12px 24px -12px rgb(var(--pal-primary-700)); }
@media (min-width: 640px) { .m-pagehero__icon { display: inline-flex; } }
.m-pagehero__title { font-family: var(--v-display); font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; font-size: clamp(1.9rem, 4.5vw, 3.1rem); color: var(--m-ink); text-wrap: balance; max-width: 22ch; }
.m-pagehero--photo .m-pagehero__title { color: #fff; }
.m-pagehero__title .v-italic { font-style: normal; color: var(--m-primary); }
.m-pagehero__lead { margin-top: .8rem; max-width: 46rem; font-size: 1.08rem; line-height: 1.65; color: rgb(var(--v-muted)); }
.m-pagehero--photo .m-pagehero__lead { color: rgb(255 255 255 / .85); }
.m-pagehero__meta { margin-top: .9rem; display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: rgb(var(--v-muted)); }
.m-pagehero--photo .m-pagehero__meta { color: rgb(255 255 255 / .8); }
.m-pagehero__actions { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.m-pagehero__ridge { position: absolute; left: 0; right: 0; bottom: -1px; height: 48px; width: 100%; color: var(--v-bg); }
.m-crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; font-size: .84rem; color: rgb(var(--v-muted)); }
.m-crumbs li { display: inline-flex; align-items: center; gap: .5rem; }
.m-crumbs li + li::before { content: '›'; opacity: .6; }
.m-crumbs a { color: inherit; text-decoration: underline; text-decoration-color: rgb(var(--v-muted) / .4); }
.m-crumbs a:hover { color: var(--m-primary); }
.m-crumbs [aria-current] { color: var(--m-ink); font-weight: 600; }
.m-pagehero--photo .m-crumbs ol, .m-pagehero--photo .m-crumbs [aria-current] { color: rgb(255 255 255 / .85); }

.m-layout { display: grid; gap: 3rem; padding-top: 2.5rem; padding-bottom: 2rem; }
@media (min-width: 1024px) { .m-layout { grid-template-columns: minmax(0, 1fr) 20rem; gap: 4rem; } .m-layout--full { grid-template-columns: minmax(0, 1fr); } }
.m-article { min-width: 0; max-width: 50rem; }
.m-layout--full .m-article { max-width: none; }
.m-block { margin-bottom: 2.75rem; }
.m-block:last-child { margin-bottom: 0; }
.m-block__title { display: flex; align-items: center; gap: .6rem; font-family: var(--v-display); font-weight: 800; font-size: 1.35rem; letter-spacing: -0.015em; color: var(--m-ink); margin-bottom: 1rem; }
.m-block__title::before { content: ''; width: .3rem; height: 1.3rem; border-radius: 3px; background: linear-gradient(var(--m-primary), rgb(var(--pal-accent-500))); flex: none; }
.m-block__title svg { color: var(--m-primary); }

/* Texte des pages */
.m-prose { color: rgb(var(--v-ink) / .9); line-height: 1.75; font-size: 1.02rem; }
.m-prose > * + * { margin-top: 1em; }
.m-prose h3 { font-family: var(--v-display); font-weight: 700; font-size: 1.2rem; color: var(--m-ink); margin-top: 1.6em; line-height: 1.3; }
.m-prose h4 { font-weight: 700; font-size: 1.02rem; color: var(--m-ink); margin-top: 1.4em; }
.m-prose ul { padding-left: 0; display: grid; gap: .45em; }
.m-prose ul li { position: relative; padding-left: 1.4em; }
.m-prose ul li::before { content: ''; position: absolute; left: .2em; top: .68em; width: .45em; height: .45em; border-radius: 999px; background: var(--m-primary); }
.m-prose ol { padding-left: 1.4em; list-style: decimal; display: grid; gap: .45em; }
.m-prose ol li::marker { color: var(--m-primary); font-weight: 700; }
.m-prose a { color: rgb(var(--pal-primary-700)); text-decoration: underline; text-decoration-thickness: 1px; font-weight: 500; overflow-wrap: anywhere; }
.m-prose a:hover { color: rgb(var(--pal-primary-900)); text-decoration-thickness: 2px; }
.m-prose strong { color: var(--m-ink); font-weight: 650; }
.m-intro { margin-bottom: 2rem; max-width: 50rem; }

/* Encadrés */
.m-callout { display: flex; gap: .9rem; padding: 1.1rem 1.25rem; border-radius: 1rem; border: 1px solid; }
.m-callout__icon { flex: none; width: 2.2rem; height: 2.2rem; border-radius: .7rem; display: inline-flex; align-items: center; justify-content: center; }
.m-callout__title { font-weight: 700; margin-bottom: .25rem; color: var(--m-ink); }
.m-callout .m-prose { font-size: .96rem; }
.m-callout--info { background: rgb(var(--pal-primary-50)); border-color: rgb(var(--pal-primary-200)); }
.m-callout--info .m-callout__icon { background: rgb(var(--pal-primary-600)); color: #fff; }
.m-callout--alerte { background: #fffbeb; border-color: #fcd34d; }
.m-callout--alerte .m-callout__icon { background: #f59e0b; color: #fff; }
.m-callout--conseil { background: #ecfdf5; border-color: #a7f3d0; }
.m-callout--conseil .m-callout__icon { background: #059669; color: #fff; }
.m-callout--succes { background: #f0fdf4; border-color: #bbf7d0; }
.m-callout--succes .m-callout__icon { background: #16a34a; color: #fff; }

/* Étapes */
.m-steps { display: grid; gap: 0; counter-reset: s; }
.m-step { position: relative; display: flex; gap: 1rem; padding-bottom: 1.5rem; }
.m-step:not(:last-child)::before { content: ''; position: absolute; left: 1.05rem; top: 2.4rem; bottom: .2rem; width: 2px; background: rgb(var(--v-line)); }
.m-step__n { flex: none; width: 2.15rem; height: 2.15rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--m-primary); color: #fff; font-weight: 800; font-size: .95rem; position: relative; }
.m-step__title { font-weight: 700; color: var(--m-ink); padding-top: .25rem; }
.m-step .m-prose { font-size: .96rem; margin-top: .25rem; }

/* Contacts */
.m-contacts { display: grid; gap: .9rem; }
@media (min-width: 640px) { .m-contacts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-contact { background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1rem; padding: 1.15rem 1.2rem; }
.m-contact__name { font-family: var(--v-display); font-weight: 700; font-size: 1.05rem; color: var(--m-ink); line-height: 1.3; }
.m-contact__role { font-size: .82rem; color: rgb(var(--pal-primary-700)); font-weight: 600; margin-top: .15rem; }
.m-contact__text { margin-top: .5rem; font-size: .92rem; }
.m-contact__list { margin-top: .75rem; display: grid; gap: .4rem; font-size: .9rem; }
.m-contact__list li { display: flex; gap: .5rem; align-items: flex-start; }
.m-contact__list svg { flex: none; margin-top: .2rem; color: rgb(var(--v-muted)); }
.m-contact__list a { color: var(--m-ink); font-weight: 500; overflow-wrap: anywhere; }
.m-contact__list a:hover { color: var(--m-primary); text-decoration: underline; }

/* Tableaux */
.m-tablewrap { overflow-x: auto; border: 1px solid rgb(var(--v-line)); border-radius: 1rem; background: #fff; }
.m-table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.m-table th, .m-table td { padding: .8rem 1rem; text-align: left; border-bottom: 1px solid rgb(var(--v-line)); vertical-align: top; }
.m-table thead th { background: var(--v-surface); font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: rgb(var(--v-muted)); }
.m-table tbody th { font-weight: 600; color: var(--m-ink); }
.m-table tbody th small { display: block; font-weight: 400; font-size: .8rem; color: rgb(var(--v-muted)); margin-top: .15rem; }
.m-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.m-table tr:last-child th, .m-table tr:last-child td { border-bottom: 0; }
.m-table tr.is-group th { background: rgb(var(--pal-primary-50)); color: rgb(var(--pal-primary-800)); }
.m-table--compact th, .m-table--compact td { padding: .55rem .8rem; font-size: .88rem; }

/* Documents */
.m-docs { display: grid; gap: .5rem; }
.m-doc { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: .9rem; color: var(--m-ink); transition: border-color .15s ease, box-shadow .15s ease; }
a.m-doc:hover { border-color: rgb(var(--pal-primary-300)); box-shadow: var(--v-shadow); }
.m-doc__type { flex: none; width: 2.6rem; height: 2.9rem; border-radius: .5rem; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: .05rem; background: #fef2f2; color: #b91c1c; }
.m-doc__type b { font-size: .6rem; letter-spacing: .04em; }
.m-doc.is-off .m-doc__type { background: var(--v-surface); color: rgb(var(--v-muted)); }
.m-doc__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.m-doc__label { font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.m-doc__meta { font-size: .8rem; color: rgb(var(--v-muted)); margin-top: .1rem; }
.m-doc__dl { flex: none; display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; font-weight: 700; color: var(--m-primary); }
.m-doc.is-off .m-doc__dl { font-weight: 500; font-size: .78rem; }

/* Liens (pages) */
.m-weblinks { display: grid; gap: .5rem; }
.m-weblink { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: .9rem; background: var(--v-surface); color: var(--m-ink); transition: background .15s ease; }
.m-weblink:hover { background: rgb(var(--pal-primary-50)); color: rgb(var(--pal-primary-800)); }
.m-weblink b { display: block; font-weight: 600; line-height: 1.35; }
.m-weblink small { display: block; font-size: .82rem; color: rgb(var(--v-muted)); margin-top: .1rem; }

/* Photos */
.m-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 768px) { .m-gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-gallery--one { grid-template-columns: 1fr !important; }
.m-gallery__item button { display: block; width: 100%; aspect-ratio: 4/3; border-radius: .9rem; overflow: hidden; background: var(--v-surface-2); cursor: zoom-in; }
.m-gallery--one .m-gallery__item button { aspect-ratio: 16/9; }
.m-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.m-gallery__item button:hover img { transform: scale(1.04); }
.m-gallery__item figcaption { margin-top: .4rem; font-size: .82rem; color: rgb(var(--v-muted)); }

/* Chiffres */
.m-figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr)); gap: .75rem; }
.m-figures > div { display: flex; flex-direction: column-reverse; gap: .2rem; padding: 1rem 1.1rem; border-radius: 1rem; background: var(--v-surface); }
.m-figures dt { font-size: .82rem; color: rgb(var(--v-muted)); line-height: 1.35; }
.m-figures dd { font-family: var(--v-display); font-weight: 800; font-size: 1.5rem; color: var(--m-ink); letter-spacing: -0.02em; }
.m-faq { border-top: 1px solid rgb(var(--v-line)); }

/* Colonne latérale */
.m-aside { display: grid; gap: 1rem; align-content: start; }
@media (min-width: 1024px) { .m-aside { position: sticky; top: calc(var(--nav-h, 76px) + 1.5rem); } }
.m-aside__card { background: var(--v-surface); border-radius: 1.1rem; padding: 1.15rem 1.2rem; }
.m-aside__title { display: flex; align-items: center; gap: .45rem; font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: rgb(var(--v-muted)); margin-bottom: .7rem; }
.m-aside__nav { display: grid; gap: .1rem; }
.m-aside__nav a { display: block; padding: .5rem .7rem; margin: 0 -.7rem; border-radius: .6rem; font-size: .92rem; color: var(--m-ink); line-height: 1.35; }
.m-aside__nav a:hover { background: #fff; }
.m-aside__nav a[aria-current] { background: #fff; color: var(--m-primary); font-weight: 700; box-shadow: inset 3px 0 0 var(--m-primary); }
.m-aside__big { display: flex; align-items: center; gap: .5rem; font-family: var(--v-display); font-weight: 800; font-size: 1.25rem; color: var(--m-ink); }
.m-aside__link { display: flex; align-items: center; gap: .5rem; margin-top: .4rem; font-size: .88rem; color: var(--m-ink); overflow-wrap: anywhere; }
.m-aside__big:hover, .m-aside__link:hover { color: var(--m-primary); }
.m-aside__status { margin-top: .75rem; font-size: .85rem; color: rgb(var(--v-muted)); }
.m-aside__status.is-open { color: #047857; font-weight: 600; }
.m-aside__tools { display: flex; gap: .5rem; }
.m-tool { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; padding: .65rem; border-radius: .8rem; border: 1px solid rgb(var(--v-line)); font-size: .85rem; font-weight: 600; color: var(--m-ink); background: #fff; }
.m-tool:hover { border-color: var(--m-primary); color: var(--m-primary); }

/* Sommaire de rubrique */
.m-rubgrid-wrap { padding-top: 2.5rem; padding-bottom: 1rem; }
.m-rubgrid { display: grid; gap: 1rem; }
@media (min-width: 640px) { .m-rubgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .m-rubgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-rubcard { position: relative; height: 100%; display: flex; flex-direction: column; gap: .5rem; padding: 1.35rem 1.35rem 1.5rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1.2rem; color: var(--m-ink); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.m-rubcard:hover { transform: translateY(-3px); border-color: rgb(var(--pal-primary-300)); box-shadow: var(--m-shadow-lg); }
.m-rubcard .m-ico { margin-bottom: .35rem; }
.m-rubcard__title { font-family: var(--v-display); font-weight: 700; font-size: 1.12rem; line-height: 1.3; padding-right: 1.5rem; }
.m-rubcard__text { font-size: .9rem; color: rgb(var(--v-muted)); line-height: 1.5; }
.m-rubcard__go { position: absolute; top: 1.35rem; right: 1.25rem; color: rgb(var(--v-muted)); transition: transform .2s ease, color .2s ease; }
.m-rubcard:hover .m-rubcard__go { color: var(--m-primary); transform: translateX(3px); }

/* Pages des modules */
.m-modpage { padding-top: 2.5rem; padding-bottom: 1rem; }
.m-toolbar { display: flex; flex-direction: column; gap: .9rem; margin-bottom: 1.25rem; }
@media (min-width: 900px) { .m-toolbar { flex-direction: row; align-items: center; flex-wrap: wrap; } }
.m-searchfield { flex: 1 1 18rem; display: flex; align-items: center; gap: .6rem; padding: 0 1rem; border-radius: .9rem; border: 1.5px solid rgb(var(--v-line)); background: #fff; color: rgb(var(--v-muted)); }
.m-searchfield:focus-within { border-color: var(--m-primary); box-shadow: 0 0 0 4px rgb(var(--pal-primary-100)); }
.m-searchfield input { flex: 1; min-width: 0; padding: .8rem 0; outline: none; background: transparent; color: var(--m-ink); font-size: .98rem; }
.m-select select { padding: .8rem 2.5rem .8rem 1rem; border-radius: .9rem; border: 1.5px solid rgb(var(--v-line)); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center; appearance: none; font-size: .95rem; color: var(--m-ink); }
.m-select select:focus { outline: none; border-color: var(--m-primary); box-shadow: 0 0 0 4px rgb(var(--pal-primary-100)); }
.m-filters { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: 1.25rem; }
.m-toolbar .m-filters { margin-bottom: 0; }
.m-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .5rem .9rem; border-radius: 999px; border: 1px solid rgb(var(--v-line)); background: #fff; font-size: .88rem; font-weight: 600; color: rgb(var(--v-ink) / .85); transition: all .15s ease; }
.m-chip span { font-size: .75rem; font-weight: 700; color: rgb(var(--v-muted)); }
.m-chip:hover { border-color: var(--m-primary); color: var(--m-primary); }
.m-chip.is-on { background: rgb(var(--v-ink)); border-color: rgb(var(--v-ink)); color: #fff; }
.m-chip.is-on span { color: rgb(255 255 255 / .7); }
.m-count { font-size: .88rem; color: rgb(var(--v-muted)); margin-bottom: 1rem; min-height: 1.2em; }
.m-empty { display: flex; flex-direction: column; align-items: center; gap: .75rem; padding: 3rem 1rem; text-align: center; color: rgb(var(--v-muted)); border: 1.5px dashed rgb(var(--v-line)); border-radius: 1.25rem; }
.m-empty[hidden] { display: none; }
.m-legal { display: flex; gap: .5rem; margin-top: 2rem; font-size: .82rem; color: rgb(var(--v-muted)); line-height: 1.5; }
.m-badge { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .6rem; border-radius: 999px; font-size: .74rem; font-weight: 700; }
.m-badge--rose { background: #ffe4e6; color: #9f1239; }

/* Annuaire */
.m-entries { display: grid; gap: 1rem; }
@media (min-width: 768px) { .m-entries { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .m-entries { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-entry { display: flex; flex-direction: column; gap: .75rem; padding: 1.25rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1.1rem; }
.m-entry[hidden] { display: none; }
.m-entry__head { display: flex; gap: .85rem; align-items: center; }
.m-entry__name { font-family: var(--v-display); font-weight: 700; font-size: 1.08rem; color: var(--m-ink); line-height: 1.25; }
.m-entry__sub { font-size: .82rem; color: rgb(var(--v-muted)); margin-top: .1rem; line-height: 1.35; }
.m-entry__tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.m-entry__tags span { font-size: .74rem; font-weight: 600; padding: .2rem .55rem; border-radius: 999px; background: var(--v-surface); color: rgb(var(--v-ink) / .8); }
.m-entry__list { display: grid; gap: .4rem; font-size: .9rem; }
.m-entry__list li { display: flex; gap: .55rem; align-items: flex-start; }
.m-entry__list svg { flex: none; margin-top: .2rem; color: rgb(var(--v-muted)); }
.m-entry__list a { color: var(--m-ink); }
.m-entry__list a:hover { color: var(--m-primary); text-decoration: underline; }
.m-entry__more { border-top: 1px solid rgb(var(--v-line)); padding-top: .6rem; margin-top: auto; }
.m-entry__more summary { cursor: pointer; display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 700; color: var(--m-primary); list-style: none; }
.m-entry__more summary::-webkit-details-marker { display: none; }
.m-entry__more[open] summary svg { transform: rotate(180deg); }
.m-entry__more .m-prose { margin-top: .6rem; font-size: .92rem; line-height: 1.65; }

/* Actes */
.m-actes { display: grid; gap: .5rem; }
.m-acte { display: flex; align-items: center; gap: 1rem; padding: .9rem 1rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: .9rem; }
.m-acte[hidden] { display: none; }
.m-acte__type { flex: none; width: 7.5rem; font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: rgb(var(--pal-primary-700)); }
@media (max-width: 639px) { .m-acte { flex-wrap: wrap; gap: .3rem .75rem; } .m-acte__type { width: auto; } .m-acte__main { flex-basis: 100%; order: 3; } }
.m-acte__main { flex: 1; min-width: 0; }
.m-acte__title { font-weight: 600; color: var(--m-ink); line-height: 1.4; }
.m-acte__title a:hover { color: var(--m-primary); text-decoration: underline; }
.m-acte__meta { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .2rem; font-size: .8rem; color: rgb(var(--v-muted)); }
.m-acte__meta span { display: inline-flex; align-items: center; gap: .25rem; }
.m-acte__dl { flex: none; width: 2.4rem; height: 2.4rem; display: inline-flex; align-items: center; justify-content: center; border-radius: .7rem; background: rgb(var(--pal-primary-50)); color: rgb(var(--pal-primary-700)); margin-left: auto; }
.m-acte__dl.is-off { background: var(--v-surface); color: rgb(var(--v-muted)); }

/* Conseil municipal */
.m-elus__lead { display: grid; gap: 1rem; }
@media (min-width: 640px) { .m-elus__lead { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .m-elus__lead { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-elu { display: flex; gap: 1rem; align-items: center; padding: 1.1rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1.1rem; }
.m-elu--big { background: linear-gradient(150deg, rgb(var(--pal-primary-700)), rgb(var(--v-ink))); border: 0; color: #fff; }
@media (min-width: 1024px) { .m-elu--big { grid-column: span 1; } }
.m-avatar { flex: none; width: 4rem; height: 4rem; border-radius: 999px; object-fit: cover; }
.m-avatar__ini { display: inline-flex; align-items: center; justify-content: center; background: rgb(var(--pal-primary-50)); color: rgb(var(--pal-primary-800)); font-family: var(--v-display); font-weight: 800; font-size: 1.15rem; }
.m-elu--big .m-avatar__ini { background: rgb(255 255 255 / .15); color: #fff; }
.m-avatar--sm { width: 2.5rem; height: 2.5rem; font-size: .85rem; }
.m-elu__role { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgb(var(--pal-primary-700)); }
.m-elu--big .m-elu__role { color: rgb(var(--pal-accent-300)); }
.m-elu__name { font-family: var(--v-display); font-weight: 800; font-size: 1.1rem; line-height: 1.25; color: var(--m-ink); margin-top: .1rem; }
.m-elu--big .m-elu__name { color: #fff; font-size: 1.3rem; }
.m-elu__deleg { font-size: .85rem; color: rgb(var(--v-muted)); line-height: 1.45; margin-top: .25rem; }
.m-elu--big .m-elu__deleg { color: rgb(255 255 255 / .8); }
.m-council { display: grid; gap: .5rem; grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr)); }
.m-council li { display: flex; align-items: center; gap: .7rem; padding: .6rem .75rem; border-radius: .9rem; background: var(--v-surface); }
.m-council b { display: block; font-weight: 600; font-size: .94rem; color: var(--m-ink); }
.m-council small { display: block; font-size: .78rem; color: rgb(var(--v-muted)); line-height: 1.35; }
.m-commissions { display: grid; gap: .9rem; }
@media (min-width: 768px) { .m-commissions { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-commission { padding: 1.15rem 1.25rem; border-radius: 1rem; background: #fff; border: 1px solid rgb(var(--v-line)); }
.m-commission h3 { font-weight: 700; color: var(--m-ink); line-height: 1.35; }
.m-commission__pres { display: flex; align-items: center; gap: .4rem; margin-top: .5rem; font-size: .88rem; color: rgb(var(--v-muted)); }
.m-commission__pres svg { color: rgb(var(--pal-accent-500)); }
.m-commission__pres b { color: var(--m-ink); }
.m-commission__members { display: flex; gap: .4rem; margin-top: .4rem; font-size: .86rem; color: rgb(var(--v-muted)); line-height: 1.5; }

/* Formulaires */
.m-formpage { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .m-formpage { grid-template-columns: minmax(0, 1fr) 21rem; gap: 3rem; align-items: start; } .m-formpage__side { position: sticky; top: calc(var(--nav-h, 76px) + 1.5rem); } }
.m-form { display: grid; gap: 1.1rem; }
.m-fieldset { display: grid; gap: 1rem; padding: 1.4rem; border-radius: 1.2rem; background: #fff; border: 1px solid rgb(var(--v-line)); }
.m-legend { display: flex; align-items: center; gap: .6rem; font-family: var(--v-display); font-weight: 800; font-size: 1.1rem; color: var(--m-ink); padding: 0; margin-bottom: .25rem; float: left; width: 100%; }
.m-legend + * { clear: both; }
.m-legend span { width: 1.9rem; height: 1.9rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--m-primary); color: #fff; font-size: .9rem; }
.m-row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .m-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-field { display: grid; gap: .35rem; }
.m-label { font-size: .9rem; font-weight: 600; color: var(--m-ink); }
.m-label span { color: #be123c; }
.m-input { width: 100%; border-radius: .8rem; border: 1.5px solid rgb(var(--v-line)); background: #fff; padding: .75rem .95rem; font-size: .98rem; color: var(--m-ink); outline: none; transition: border-color .15s ease, box-shadow .15s ease; }
.m-input:focus { border-color: var(--m-primary); box-shadow: 0 0 0 4px rgb(var(--pal-primary-100)); }
.m-input:user-invalid { border-color: #e11d48; }
select.m-input { appearance: none; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center; padding-right: 2.5rem; }
.m-help { font-size: .82rem; color: rgb(var(--v-muted)); line-height: 1.45; }
.m-help a { color: var(--m-primary); text-decoration: underline; }
.m-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
@media (min-width: 768px) { .m-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.m-choice { position: relative; }
.m-choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.m-choice span { height: 100%; display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; padding: .9rem; border-radius: .9rem; border: 1.5px solid rgb(var(--v-line)); background: #fff; color: rgb(var(--v-ink) / .85); transition: all .15s ease; }
.m-choice span svg { color: var(--m-primary); }
.m-choice b { font-size: .88rem; line-height: 1.3; font-weight: 600; }
.m-choice input:hover + span { border-color: rgb(var(--pal-primary-300)); }
.m-choice input:checked + span { border-color: var(--m-primary); background: rgb(var(--pal-primary-50)); box-shadow: inset 0 0 0 1px var(--m-primary); color: var(--m-ink); }
.m-choice input:focus-visible + span { outline: 3px solid rgb(var(--pal-primary-300)); outline-offset: 2px; }
.m-consent { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; color: rgb(var(--v-muted)); line-height: 1.5; }
.m-consent input { margin-top: .25rem; width: 1.05rem; height: 1.05rem; accent-color: rgb(var(--pal-primary-600)); flex: none; }
.m-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.m-formstatus { display: inline-flex; align-items: center; gap: .5rem; font-size: .9rem; color: rgb(var(--v-muted)); }
.m-formstatus:empty { display: none; }
.m-formstatus.is-error { color: #be123c; font-weight: 600; }
.m-formstatus.is-ok { color: #047857; font-weight: 600; }
.m-success { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .75rem; padding: 2.5rem 1.5rem; border-radius: 1.25rem; background: #f0fdf4; border: 1px solid #bbf7d0; color: #065f46; }
.m-success[hidden] { display: none; }
.m-success h2 { font-family: var(--v-display); font-weight: 800; font-size: 1.4rem; color: #064e3b; }
.m-ref { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.15rem; padding: .2rem .6rem; border-radius: .5rem; background: #fff; border: 1px solid #a7f3d0; }

/* Salles */
.m-salles__list { display: grid; gap: 1.5rem; }
.m-salle { display: grid; gap: 1.25rem; padding: 1.25rem; background: #fff; border: 1px solid rgb(var(--v-line)); border-radius: 1.25rem; }
@media (min-width: 900px) { .m-salle { grid-template-columns: 22rem minmax(0, 1fr); gap: 2rem; padding: 1.5rem; } }
.m-salle.is-closed { background: var(--v-surface); }
.m-salle__photo .v-photo { border-radius: 1rem; }
.m-salle__name { font-family: var(--v-display); font-weight: 800; font-size: 1.4rem; color: var(--m-ink); }
.m-salle__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: .4rem 0 .9rem; font-size: .9rem; color: rgb(var(--v-muted)); }
.m-salle__meta > span { display: inline-flex; align-items: center; gap: .35rem; }
.m-tags { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.m-tags li { display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .65rem; border-radius: 999px; background: var(--v-surface); font-size: .8rem; color: rgb(var(--v-ink) / .85); }
.m-tags svg { color: #059669; }
.m-booking__grid { display: grid; gap: 1.25rem; }
@media (min-width: 1024px) { .m-booking__grid { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: start; } }
.m-cal__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; text-transform: capitalize; }
.m-cal__grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .3rem; text-align: center; }
.m-cal__grid b { font-size: .72rem; color: rgb(var(--v-muted)); padding: .3rem 0; }
.m-cal__d { padding: .55rem 0; border-radius: .55rem; font-size: .88rem; font-variant-numeric: tabular-nums; }
.m-cal__d.is-free { background: #ecfdf5; color: #065f46; }
.m-cal__d.is-option { background: #fef3c7; color: #92400e; }
.m-cal__d.is-busy { background: #ffe4e6; color: #9f1239; text-decoration: line-through; }
/* Jours passés : gris lisible (contraste AA, 4,5:1 au moins) ; les jours à venir se distinguent par leur fond coloré */
.m-cal__d.is-past { color: rgb(var(--v-muted)); }
.m-cal__legend { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; font-size: .78rem; color: rgb(var(--v-muted)); }
.m-cal__legend span::before { content: ''; display: inline-block; width: .7rem; height: .7rem; border-radius: .2rem; margin-right: .35rem; vertical-align: -1px; }
.m-cal__legend .is-free::before { background: #a7f3d0; } .m-cal__legend .is-option::before { background: #fde68a; } .m-cal__legend .is-busy::before { background: #fda4af; }
/* Jour partagé (salles) : matin | après-midi | soirée, chaque tiers coloré selon son état */
.m-cal__d.is-split { --m1: #d1fae5; --m2: #d1fae5; --m3: #d1fae5; color: #1e293b; font-weight: 600;
  background: linear-gradient(90deg, var(--m1) 0 calc(33.33% - 1px), transparent calc(33.33% - 1px) calc(33.33% + 1px), var(--m2) calc(33.33% + 1px) calc(66.67% - 1px), transparent calc(66.67% - 1px) calc(66.67% + 1px), var(--m3) calc(66.67% + 1px)); }
.m-cal__d.m1-option { --m1: #fde68a; } .m-cal__d.m2-option { --m2: #fde68a; } .m-cal__d.m3-option { --m3: #fde68a; }
.m-cal__d.m1-busy { --m1: #fda4af; } .m-cal__d.m2-busy { --m2: #fda4af; } .m-cal__d.m3-busy { --m3: #fda4af; }
.m-cal__split-help { display: flex; align-items: center; gap: .65rem; margin-top: .65rem; font-size: .78rem; line-height: 1.4; color: rgb(var(--v-muted)); }
.m-cal__split-help .m-cal__d { flex: none; width: 2.6rem; text-align: center; }

/* Contact */
.m-contactpage { display: grid; gap: 2rem; }
@media (min-width: 1024px) { .m-contactpage { grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 2.5rem; align-items: start; } }

/* Numéros d'urgence (page) */
.m-numbers { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.m-number { display: flex; align-items: center; gap: .9rem; padding: .9rem 1rem; border-radius: 1rem; background: #fff; border: 1px solid rgb(var(--v-line)); color: var(--m-ink); }
.m-number:hover { border-color: #fda4af; }
.m-number__n { flex: none; min-width: 3.4rem; text-align: center; font-family: var(--v-display); font-weight: 800; font-size: 1.35rem; color: #be123c; }
.m-number b { display: block; font-size: .92rem; line-height: 1.3; }
.m-number small { display: block; font-size: .78rem; color: rgb(var(--v-muted)); line-height: 1.35; margin-top: .1rem; }
.m-number > span:nth-child(2) { flex: 1; }

/* Plan du site */
.m-sitemap { display: grid; gap: 2rem; }
@media (min-width: 768px) { .m-sitemap { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .m-sitemap { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-sitemap h2 { display: flex; align-items: center; gap: .5rem; font-family: var(--v-display); font-weight: 800; font-size: 1.15rem; color: var(--m-ink); margin-bottom: .6rem; }
.m-sitemap h2 svg { color: var(--m-primary); }
.m-sitemap ul { display: grid; gap: .35rem; padding-left: 1.75rem; }
.m-sitemap a:hover { color: var(--m-primary); text-decoration: underline; }

/* Illustration de remplacement (mairies) */
.m-art { background: linear-gradient(160deg, rgb(var(--pal-primary-100)), rgb(var(--pal-primary-50)) 55%, var(--v-surface-2)); }
.m-art__ridge { position: absolute; left: 0; right: 0; bottom: 0; height: 30%; width: 100%; color: rgb(var(--pal-primary-600) / .45); }
.m-ridge { display: block; pointer-events: none; }

/* Pages communes (actualités, mentions légales…) dans l'habillage des mairies */
[data-sector="mairie"] .v-nav { display: none; }

/* Impression : contenu seul */
@media print {
  .m-header, .m-footer, .m-aside, .m-pagehero__ridge, .m-portail__ridge, [data-admin-toolbar], .m-alertes { display: none !important; }
  .m-pagehero { padding: 0 0 1rem; background: none; }
  .m-layout { display: block; padding: 0; }
  .m-prose a::after { content: ' (' attr(href) ')'; font-size: .8em; color: #555; }
}
@media (prefers-reduced-motion: reduce) {
  .m-tile, .m-rubcard, .m-mag__cover, .m-gallery__item img, .m-mega, .m-searchdlg__panel, .m-drawer { transition: none !important; animation: none !important; }
}

/* Actualités sans photo : illustration au format des photos (cartes alignées), icône selon le sujet,
   teinte selon la rubrique (t0 principale, t1 secondaire, t2 sombre), forme décorative du site en bas */
.news-art { position: relative; isolation: isolate; display: block; overflow: hidden; color: #fff; background: linear-gradient(150deg, rgb(var(--pal-primary-600)), rgb(var(--pal-primary-800))); }
.news-art--t1 { background: linear-gradient(150deg, rgb(var(--pal-accent-600)), rgb(var(--pal-accent-800))); }
.news-art--t2 { background: linear-gradient(150deg, rgb(var(--club-navy-light)), rgb(var(--club-navy))); }
.news-art__orb { position: absolute; border-radius: 999px; z-index: -1; pointer-events: none; }
.news-art__orb--a { width: 62%; aspect-ratio: 1; right: -14%; top: -30%; background: radial-gradient(circle at 40% 40%, rgb(255 255 255 / .28), rgb(255 255 255 / .06) 62%, transparent 72%); }
.news-art__orb--b { width: 46%; aspect-ratio: 1; left: -12%; bottom: -26%; background: radial-gradient(circle at 60% 40%, rgb(255 255 255 / .16), transparent 70%); }
.news-art__icon { position: absolute; left: 50%; top: 42%; width: 34%; max-width: 7.5rem; aspect-ratio: 1; transform: translate(-50%, -50%); color: rgb(255 255 255 / .92); filter: drop-shadow(0 6px 14px rgb(0 0 0 / .18)); transition: transform .5s ease; }
.news-art__label { position: absolute; left: .9rem; top: .8rem; padding: .2rem .55rem; border-radius: 999px; background: rgb(0 0 0 / .28); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #fff; }
.news-art__shape { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 26%; color: #fff; }
.group:hover .news-art__icon { transform: translate(-50%, -50%) scale(1.06); }
@media (prefers-reduced-motion: reduce) { .news-art__icon { transition: none; } }

/* Questions fréquentes (accueil) */
.m-faqhome { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .m-faqhome { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 4rem; align-items: start; } }
.m-faq .v-faq__a { max-width: none; }
.m-faq .v-faq__a p + p { margin-top: .6rem; }

/* En-têtes des rubriques partagées avec les sites vitrines (actualités) : même typographie que les rubriques des mairies */
[data-sector="mairie"] .v-title { font-size: clamp(1.85rem, 3.6vw, 2.75rem); line-height: 1.1; text-wrap: balance; }
[data-sector="mairie"] .v-title .v-italic { font-style: normal; color: var(--m-primary); }

/* Bannière pleine largeur sur téléphone : 3 recherches fréquentes au plus, bouton pause en haut à droite */
@media (max-width: 639px) {
  .m-portail__chips a:nth-of-type(n+4) { display: none; }
  .m-portail--photo .m-portail__pause { top: calc(var(--m-header-h) + .75rem); bottom: auto; }
}
.m-maire--letter .m-title { font-size: clamp(1.7rem, 2.6vw, 2.3rem); }

/* ------------------------------------------------------------------ Accessibilité : contrastes AA (RGAA 3.2) */
/* Composants communs avec les sites vitrines, assombris d'une nuance sur les sites de mairie */
[data-sector="mairie"] .v-accent { color: rgb(var(--pal-primary-700)); }
[data-sector="mairie"] .v-btn--primary { background: rgb(var(--pal-primary-700)); }
/* Jours fermés des horaires dans le pied de page (fond sombre) */
.m-footer .m-hours .m-muted { color: rgb(255 255 255 / .62); }
/* Étiquette du niveau « Information » sur le bandeau d'alerte (fond de la couleur du site) */
.m-alert--info .m-alert__level { background: rgb(0 0 0 / .28); }

/* Tableaux défilants (petits écrans) atteignables au clavier : focus visible */
.m-tablewrap:focus-visible { outline: 3px solid rgb(var(--pal-primary-600)); outline-offset: 2px; }
/* Page « Actualités » (module commun avec les clubs) : couleur d'accent lisible sur fond clair */
[data-sector="mairie"] :is(.text-club-pink, .hover\:text-club-pink:hover) { color: rgb(var(--pal-primary-700)); }

/* =====================================================================
   Options du 09/10/2026 (sans effet sur les sites qui ne les activent pas) :
   bandeau « maquette », « La commune aujourd'hui », « La commune en images », habillage « alpin »
   ===================================================================== */

/* ------------------------------------------------------------------ Bandeau « Maquette non officielle » */
.m-maquette { position: relative; background: repeating-linear-gradient(135deg, #111827 0 18px, #1f2937 18px 36px); color: #f9fafb; font-size: .86rem; line-height: 1.4; }
.m-maquette__row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .9rem; padding-top: .5rem; padding-bottom: .5rem; }
.m-maquette__badge { display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .55rem; border-radius: .4rem; background: #fbbf24; color: #1c1300; font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.m-maquette__text { flex: 1 1 22rem; min-width: 0; }
.m-maquette a { color: #fde68a; font-weight: 700; text-decoration: underline; }
.m-maquette a:hover { color: #fff; }
.m-maquette__privacy { font-size: .8rem; font-weight: 600 !important; white-space: nowrap; }
.m-maquette :focus-visible { outline-color: #fde68a; }

/* Diaporama de la bannière : bouton pause masqué tant qu'une seule photo est de saison */
.m-portail__pause[hidden] { display: none; }

/* ------------------------------------------------------------------ La commune aujourd'hui (météo, neige, liens de saison) */
.m-station { background: linear-gradient(180deg, var(--v-bg), var(--v-surface)); padding-top: clamp(3rem, 7vw, 5.5rem); padding-bottom: clamp(3rem, 7vw, 5.5rem); }
.m-station__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }
.m-station__season { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: #fff; border: 1px solid rgb(var(--v-line)); font-size: .85rem; font-weight: 700; color: var(--m-ink); box-shadow: var(--v-shadow); }
.m-station[data-season="hiver"] .m-station__season svg { color: #0369a1; }
.m-station[data-season="ete"] .m-station__season svg { color: #b45309; }
.m-station__grid { display: grid; gap: 1.5rem; }
@media (min-width: 1024px) { .m-station__grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: start; gap: 2rem; } }
.m-station__meteo[hidden] + .m-station__links { grid-column: 1 / -1; }
@media (min-width: 1024px) { .m-station__meteo[hidden] + .m-station__links { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-station__meteo { position: relative; overflow: hidden; isolation: isolate; border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2rem); color: #fff; background: radial-gradient(120% 90% at 100% 0%, rgb(var(--pal-primary-600) / .55), transparent 60%), linear-gradient(160deg, rgb(var(--pal-primary-900)), rgb(var(--v-ink))); box-shadow: var(--m-shadow-lg); }
.m-station__meteo::after { content: ''; position: absolute; inset: auto -10% -35% 30%; height: 70%; z-index: -1; background: radial-gradient(closest-side, rgb(255 255 255 / .08), transparent); }
.m-station__points { display: grid; gap: 1rem; }
@media (min-width: 640px) { .m-station__points { grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); } }
.m-point { padding: 1rem 1.1rem; border-radius: 1.1rem; background: rgb(255 255 255 / .07); border: 1px solid rgb(255 255 255 / .12); }
.m-point__name { font-weight: 700; font-size: .95rem; color: rgb(255 255 255 / .92); }
.m-point__name span { font-weight: 600; color: rgb(255 255 255 / .7); font-size: .82rem; }
.m-point__now { display: flex; align-items: center; gap: .6rem; margin-top: .35rem; }
.m-point__icon { display: inline-flex; color: #fde68a; }
.m-station[data-season="hiver"] .m-point__icon { color: #bae6fd; }
.m-point__temp { font-family: var(--v-display); font-weight: 700; font-size: clamp(2.2rem, 4vw, 2.8rem); line-height: 1; letter-spacing: -0.02em; }
.m-point__sky { margin-top: .2rem; font-size: .9rem; color: rgb(255 255 255 / .82); }
.m-point__facts { margin-top: .8rem; display: grid; gap: .3rem; font-size: .86rem; }
.m-point__facts div { display: flex; justify-content: space-between; gap: 1rem; padding-top: .3rem; border-top: 1px solid rgb(255 255 255 / .1); }
.m-point__facts dt { color: rgb(255 255 255 / .72); }
.m-point__facts dd { font-weight: 700; text-align: right; }
.m-station__days { margin-top: 1.25rem; }
.m-station__dtitle { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .7); margin-bottom: .6rem; }
.m-station__drow { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; }
.m-day { display: grid; justify-items: center; gap: .2rem; padding: .75rem .4rem; border-radius: .9rem; background: rgb(255 255 255 / .06); text-align: center; }
.m-day__name { font-size: .8rem; font-weight: 700; color: rgb(255 255 255 / .85); }
.m-day__sky { font-size: .74rem; color: rgb(255 255 255 / .72); line-height: 1.2; }
.m-day__temp { font-weight: 700; font-size: .95rem; }
.m-station__credit { margin-top: 1rem; font-size: .76rem; color: rgb(255 255 255 / .68); }
.m-station__links { display: grid; gap: .75rem; }
@media (min-width: 640px) and (max-width: 1023px) { .m-station__links { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.m-station__links > li[hidden] { display: none; }
.m-station__link { display: flex; align-items: center; gap: .9rem; height: 100%; padding: .85rem 1rem; border-radius: 1rem; background: #fff; border: 1px solid rgb(var(--v-line)); color: var(--m-ink); box-shadow: var(--v-shadow); transition: border-color .2s ease, transform .2s ease; }
.m-station__link:hover { border-color: var(--m-primary); transform: translateY(-2px); }
.m-station__ico { flex: none; width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: inline-flex; align-items: center; justify-content: center; background: var(--m-soft); color: var(--m-primary); }
.m-station__ltext { flex: 1; min-width: 0; display: grid; }
.m-station__ltext b { font-weight: 700; line-height: 1.25; }
.m-station__ltext small { font-size: .84rem; color: rgb(var(--v-muted)); line-height: 1.35; }
.m-station__ext { flex: none; color: rgb(var(--v-muted)); }
@media (prefers-reduced-motion: reduce) { .m-station__link { transition: none; } .m-station__link:hover { transform: none; } }

/* ------------------------------------------------------------------ La commune en images (mosaïque) */
.m-galerie .m-mosaic { margin-top: 2.25rem; display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 9.5rem; grid-auto-flow: dense; }
@media (min-width: 768px) { .m-galerie .m-mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 12.5rem; gap: 1rem; } }
@media (min-width: 1280px) { .m-galerie .m-mosaic { grid-auto-rows: 14rem; } }
.m-mosaic__item:first-child { grid-column: span 2; grid-row: span 2; }
@media (min-width: 768px) {
  /* 4 colonnes : la 1re photo occupe 2×2, les rangées suivantes sont complétées selon le nombre de photos */
  .m-mosaic--1 .m-mosaic__item:first-child, .m-mosaic--6 .m-mosaic__item:nth-child(6) { grid-column: 1 / -1; }
  .m-mosaic--2 .m-mosaic__item:nth-child(2) { grid-column: span 2; grid-row: span 2; }
  .m-mosaic--3 .m-mosaic__item:nth-child(n+2), .m-mosaic--4 .m-mosaic__item:nth-child(2), .m-mosaic--7 .m-mosaic__item:nth-child(n+6), .m-mosaic--8 .m-mosaic__item:nth-child(6) { grid-column: span 2; }
}
@media (max-width: 767px) { .m-mosaic__item:last-child:nth-child(even) { grid-column: span 2; } }
.m-mosaic__item figure { position: relative; height: 100%; margin: 0; border-radius: 1.1rem; overflow: hidden; background: var(--v-surface); }
.m-mosaic__item button { display: block; width: 100%; height: 100%; cursor: zoom-in; }
.m-mosaic__item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.m-mosaic__item button:hover img, .m-mosaic__item button:focus-visible img { transform: scale(1.04); }
.m-mosaic__item button:focus-visible { outline: 3px solid rgb(var(--pal-primary-400)); outline-offset: -3px; }
.m-mosaic__zoom { position: absolute; top: .65rem; right: .65rem; width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: rgb(0 0 0 / .45); color: #fff; opacity: 0; transition: opacity .2s ease; }
.m-mosaic__item button:hover .m-mosaic__zoom, .m-mosaic__item button:focus-visible .m-mosaic__zoom { opacity: 1; }
.m-mosaic__item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 2.25rem .9rem .7rem; pointer-events: none; color: #fff; font-size: .86rem; font-weight: 600; line-height: 1.3; background: linear-gradient(180deg, transparent, rgb(0 0 0 / .78)); display: grid; gap: .1rem; }
.m-mosaic__item figcaption small { font-size: .72rem; font-weight: 500; color: rgb(255 255 255 / .85); }
.m-mosaic__item:first-child figcaption { font-size: 1rem; padding: 3rem 1.25rem 1rem; }
@media (max-width: 767px) { .m-mosaic__item figcaption small { display: none; } }
@media (prefers-reduced-motion: reduce) { .m-mosaic__item img, .m-mosaic__zoom { transition: none; } .m-mosaic__item button:hover img { transform: none; } }

/* ------------------------------------------------------------------ Habillage « alpin » (theme.motif = 'alpin') :
   titres à empattements (Fraunces) pour les communes de montagne au riche patrimoine, mots en valeur en italique. */
[data-sector="mairie"][data-motif="alpin"] { --v-display: 'Fraunces', Georgia, 'Times New Roman', serif; --v-title-weight: 600; --v-title-tracking: -0.01em; }
[data-motif="alpin"] :is(.m-portail__title, .m-title, .m-pagehero__title, .v-title, .m-brand__name) { font-weight: 600; letter-spacing: -0.012em; }
[data-motif="alpin"] .m-portail__title { line-height: 1.04; }
[data-motif="alpin"] :is(.m-portail__title, .m-title, .m-pagehero__title, .v-title) .v-italic { font-style: italic; font-weight: 400; }
[data-motif="alpin"] .m-brand__name { font-size: 1.55rem; letter-spacing: 0; }
[data-motif="alpin"] .m-brand__kicker { letter-spacing: .14em; }
[data-motif="alpin"] .m-point__temp { font-weight: 600; }

/* ------------------------------------------------------------------ Habillage « vigne » (theme.motif = 'vigne') :
   communes viticoles. Titres à empattements, feuille de vigne devant les surtitres, sarment souple sous les titres de rubrique,
   grands rameaux en filigrane dans les fonds, grappe dans le pied de page. Les couleurs suivent la saison du vigneron
   (<html data-vigne>, core/vigne.js) : sarments bruns l'hiver, vert tendre au printemps, vert profond l'été, or des vendanges,
   or et rouille à l'automne. Les ornements sont des masques (assets/img/vigne/) : leur couleur vient des variables. */
[data-sector="mairie"][data-motif="vigne"] {
  --v-display: 'Fraunces', Georgia, 'Times New Roman', serif; --v-title-weight: 600; --v-title-tracking: -0.015em;
  --vigne-feuille: #4f7a2b; --vigne-sarment: #6d5236; --vigne-fruit: #7a9a35; --vigne-filigrane: rgb(var(--pal-primary-700));
  --vigne-accent: rgb(var(--pal-accent-600));
}
[data-motif="vigne"][data-vigne="hiver"] { --vigne-feuille: #7b5f47; --vigne-sarment: #5d4532; --vigne-fruit: #8c7056; }
[data-motif="vigne"][data-vigne="printemps"] { --vigne-feuille: #6e9f34; --vigne-fruit: #9bc35a; }
[data-motif="vigne"][data-vigne="ete"] { --vigne-feuille: #4f7a2b; --vigne-fruit: #7a9a35; }
[data-motif="vigne"][data-vigne="vendanges"] { --vigne-feuille: #7d8a2a; --vigne-fruit: #b8902a; }
[data-motif="vigne"][data-vigne="automne"] { --vigne-feuille: #b9761f; --vigne-fruit: #a8572b; }
[data-motif="vigne"] :is(.m-portail__title, .m-title, .m-pagehero__title, .v-title, .m-brand__name) { font-weight: 600; letter-spacing: -0.015em; }
[data-motif="vigne"] :is(.m-portail__title, .m-title, .m-pagehero__title, .v-title) .v-italic { font-style: italic; font-weight: 400; }
[data-motif="vigne"] .m-title .v-italic { color: var(--vigne-accent); }
[data-motif="vigne"] .m-section--ink .m-title .v-italic { color: rgb(var(--pal-accent-200)); }
[data-motif="vigne"] ::selection { background: rgb(var(--pal-accent-100)); color: rgb(var(--pal-accent-900)); }

/* Surtitre : une feuille de vigne à la place du filet */
[data-motif="vigne"] .v-eyebrow::before, [data-motif="vigne"] .v-eyebrow--center::after { width: 1.2rem; height: 1.2rem; opacity: 1; background: var(--vigne-feuille); -webkit-mask: url(../img/vigne/feuille.svg) center / contain no-repeat; mask: url(../img/vigne/feuille.svg) center / contain no-repeat; }
[data-motif="vigne"] .v-eyebrow--center::after { transform: scaleX(-1); }
[data-motif="vigne"] .m-section--ink .v-eyebrow::before { background: rgb(var(--pal-accent-200)); }

/* Titre de rubrique : un sarment souple dessous */
[data-motif="vigne"] .m-head .m-title::after { content: ''; display: block; width: 7rem; height: 1.05rem; margin-top: .7rem; background: var(--vigne-accent); opacity: .85; -webkit-mask: url(../img/vigne/vrille.svg) left center / contain no-repeat; mask: url(../img/vigne/vrille.svg) left center / contain no-repeat; }
[data-motif="vigne"] .m-head--center .m-title::after { margin-inline: auto; -webkit-mask-position: center; mask-position: center; }

/* Grands rameaux en filigrane : rubriques sur fond teinté, lettre du maire, bandeau des pages, pied de page */
[data-motif="vigne"] :is(.m-section--surface, .m-maire--letter, .m-pagehero, .m-footer) { position: relative; isolation: isolate; }
/* (Bento citoyen et Riviera dessinent déjà quelque chose dans la lettre du maire et le haut du pied de page : on ne les remplace pas) */
[data-motif="vigne"] :is(.m-section--surface, .m-pagehero)::before, [data-motif="vigne"]:not([data-identite="bento"]) .m-maire--letter::before, [data-motif="vigne"]:not([data-identite="riviera"]) .m-footer::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: clamp(16rem, 30vw, 27rem); aspect-ratio: 480 / 420; background: var(--vigne-filigrane); opacity: .055; -webkit-mask: url(../img/vigne/rameau.svg) center / contain no-repeat; mask: url(../img/vigne/rameau.svg) center / contain no-repeat; }
[data-motif="vigne"] .m-section--surface::before { top: -1.5rem; right: -3rem; transform: rotate(-8deg); }
[data-motif="vigne"] .m-section--surface:nth-of-type(even)::before { right: auto; left: -4rem; transform: scaleX(-1) rotate(-6deg); }
[data-motif="vigne"] .m-maire--letter { overflow: hidden; }
[data-motif="vigne"]:not([data-identite="bento"]) .m-maire--letter::before { right: -4rem; bottom: -5rem; width: clamp(14rem, 26vw, 22rem); opacity: .07; transform: rotate(168deg); }
[data-motif="vigne"] .m-pagehero::before { right: max(-2rem, calc(50% - 46rem)); top: -1rem; width: clamp(14rem, 28vw, 24rem); background: currentColor; opacity: .08; transform: rotate(-6deg); }
[data-motif="vigne"]:not([data-identite="riviera"]) .m-footer::before { left: max(-3rem, calc(50% - 50rem)); top: 2.5rem; background: rgb(var(--pal-accent-200)); opacity: .06; transform: scaleX(-1) rotate(-4deg); }

/* Pied de page : une grappe au-dessus du nom de la commune */
[data-motif="vigne"] .m-footer__name::before { content: ''; display: block; width: 1.6rem; height: 2.1rem; margin-bottom: .6rem; background: var(--vigne-fruit); -webkit-mask: url(../img/vigne/grappe.svg) center / contain no-repeat; mask: url(../img/vigne/grappe.svg) center / contain no-repeat; }
[data-motif="vigne"][data-vigne="hiver"] .m-footer__name::before { -webkit-mask-image: url(../img/vigne/feuille.svg); mask-image: url(../img/vigne/feuille.svg); }
/* Avec un logo (blason) au-dessus du nom : pas de seconde vignette */
[data-motif="vigne"] .m-footer__logo + .m-footer__name::before { content: none; }

/* Blason absent : initiale dans un médaillon vert vigne et lie-de-vin, comme une étiquette */
[data-motif="vigne"] .m-brand__mono { background: radial-gradient(120% 120% at 30% 20%, rgb(var(--pal-primary-600)), rgb(var(--pal-primary-800)) 70%); font-family: var(--v-display); font-style: italic; font-weight: 600; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .2), 0 0 0 2px rgb(var(--pal-accent-600)); }

/* Listes : puces lie-de-vin ; encadrés : liseré du vert de la vigne */
[data-motif="vigne"] .m-prose ul > li::marker { color: var(--vigne-accent); }
[data-motif="vigne"] .m-quote__mark { color: var(--vigne-accent); }

/* Chiffres clés : le chiffre en italique, comme sur une étiquette de cru */
[data-motif="vigne"] :is(.m-stat__value, .m-figures dd) { font-family: var(--v-display); font-variant-numeric: oldstyle-nums proportional-nums; }

@media print { [data-motif="vigne"] :is(.m-section--surface, .m-maire--letter, .m-pagehero, .m-footer)::before { display: none; } }

/* ------------------------------------------------------------------ Habillage « lac » (theme.motif = 'lac') :
   communes riveraines d'un lac (Annecy, Léman, Bourget…). Grands titres à empattements (Cormorant Garamond), deux vaguelettes devant
   les surtitres, un sillage effilé sous les titres de rubrique, le lac et ses montagnes dessinés au trait en filigrane dans les
   fonds, un voilier au-dessus du nom dans le pied de page (sauf si un blason y est déjà). Les ornements sont des masques
   (assets/img/lac/) : leur couleur vient des variables (eau = couleur principale, accent = couleur d'accent). */
[data-sector="mairie"][data-motif="lac"] {
  --lac-serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --lac-eau: rgb(var(--pal-primary-600)); --lac-accent: rgb(var(--pal-accent-600)); --lac-filigrane: rgb(var(--pal-primary-800));
}
/* La police à empattements est réservée aux grands titres (elle manque de lisibilité aux petites tailles : cartes, listes) */
[data-motif="lac"] :is(.m-portail__title, .m-title, .m-pagehero__title, .v-title, .m-brand__name, .m-footer__name) { font-family: var(--lac-serif); font-weight: 600; letter-spacing: -0.005em; }
[data-motif="lac"] :is(.m-portail__title, .m-title, .m-pagehero__title, .v-title) .v-italic { font-style: italic; font-weight: 500; }
[data-motif="lac"] .m-portail__title { line-height: 1; }
[data-motif="lac"] .m-title { line-height: 1.08; }
[data-motif="lac"] .m-title .v-italic { color: var(--lac-accent); }
[data-motif="lac"] .m-section--ink .m-title .v-italic { color: rgb(var(--pal-accent-200)); }
[data-motif="lac"] .m-brand__name { letter-spacing: 0; }
[data-motif="lac"] .m-brand__kicker { letter-spacing: .16em; }
[data-motif="lac"] ::selection { background: rgb(var(--pal-primary-100)); color: rgb(var(--pal-primary-900)); }

/* Surtitre : deux vaguelettes à la place du filet */
[data-motif="lac"] .v-eyebrow::before, [data-motif="lac"] .v-eyebrow--center::after { width: 1.45rem; height: .9rem; opacity: 1; background: var(--lac-eau); -webkit-mask: url(../img/lac/onde.svg) center / contain no-repeat; mask: url(../img/lac/onde.svg) center / contain no-repeat; }
[data-motif="lac"] .v-eyebrow--center::after { transform: scaleX(-1); }
[data-motif="lac"] .m-section--ink .v-eyebrow::before { background: rgb(var(--pal-primary-200)); }

/* Titre de rubrique : un sillage effilé dessous */
[data-motif="lac"] .m-head .m-title::after { content: ''; display: block; width: 7.5rem; height: .95rem; margin-top: .65rem; background: var(--lac-eau); opacity: .8; -webkit-mask: url(../img/lac/sillage.svg) left center / contain no-repeat; mask: url(../img/lac/sillage.svg) left center / contain no-repeat; }
[data-motif="lac"] .m-head--center .m-title::after { margin-inline: auto; -webkit-mask-position: center; mask-position: center; }
[data-motif="lac"] .m-section--ink .m-head .m-title::after { background: rgb(var(--pal-primary-200)); }

/* Le lac et ses montagnes au trait, en filigrane : rubriques sur fond teinté, lettre du maire, bandeau des pages, pied de page */
[data-motif="lac"] :is(.m-section--surface, .m-maire--letter, .m-pagehero, .m-footer) { position: relative; isolation: isolate; }
/* (Bento citoyen et Riviera dessinent déjà quelque chose dans la lettre du maire et le haut du pied de page : on ne les remplace pas) */
[data-motif="lac"] :is(.m-section--surface, .m-pagehero)::before, [data-motif="lac"]:not([data-identite="bento"]) .m-maire--letter::before, [data-motif="lac"]:not([data-identite="riviera"]) .m-footer::before { content: ''; position: absolute; z-index: -1; pointer-events: none; width: clamp(18rem, 34vw, 31rem); aspect-ratio: 560 / 320; background: var(--lac-filigrane); opacity: .06; -webkit-mask: url(../img/lac/rive.svg) center / contain no-repeat; mask: url(../img/lac/rive.svg) center / contain no-repeat; }
[data-motif="lac"] .m-section--surface::before { right: -2rem; bottom: -.5rem; }
[data-motif="lac"] .m-section--surface:nth-of-type(even)::before { right: auto; left: -3rem; transform: scaleX(-1); }
[data-motif="lac"] .m-maire--letter { overflow: hidden; }
[data-motif="lac"]:not([data-identite="bento"]) .m-maire--letter::before { right: -3rem; bottom: -2.5rem; width: clamp(15rem, 28vw, 24rem); opacity: .07; }
[data-motif="lac"] .m-pagehero::before { right: max(-2rem, calc(50% - 46rem)); bottom: 0; width: clamp(15rem, 30vw, 27rem); background: currentColor; opacity: .09; }
[data-motif="lac"]:not([data-identite="riviera"]) .m-footer::before { left: max(-3rem, calc(50% - 50rem)); top: 3rem; background: rgb(var(--pal-primary-200)); opacity: .06; }

/* Pied de page : un voilier au-dessus du nom de la commune (pas de seconde vignette sous un blason) */
[data-motif="lac"] .m-footer__name::before { content: ''; display: block; width: 1.75rem; height: 2rem; margin-bottom: .6rem; background: rgb(var(--pal-primary-300)); -webkit-mask: url(../img/lac/voile.svg) center / contain no-repeat; mask: url(../img/lac/voile.svg) center / contain no-repeat; }
[data-motif="lac"] .m-footer__logo + .m-footer__name::before { content: none; }

/* Sans blason : initiale dans un médaillon aux couleurs du lac */
[data-motif="lac"] .m-brand__mono { background: radial-gradient(120% 120% at 30% 20%, rgb(var(--pal-primary-500)), rgb(var(--pal-primary-800)) 72%); font-family: var(--lac-serif); font-style: italic; font-weight: 600; box-shadow: inset 0 0 0 2px rgb(255 255 255 / .22); }

/* Listes et citations : la couleur d'accent ; chiffres clés dans la police des titres */
[data-motif="lac"] .m-prose ul > li::marker { color: var(--lac-eau); }
[data-motif="lac"] .m-quote__mark { color: var(--lac-accent); }
[data-motif="lac"] :is(.m-stat__value, .m-figures dd) { font-family: var(--lac-serif); font-weight: 600; font-variant-numeric: lining-nums proportional-nums; }

@media print { [data-motif="lac"] :is(.m-section--surface, .m-maire--letter, .m-pagehero, .m-footer)::before { display: none; } }

/* Agenda de l'accueil (option homeRegular) : une manifestation annoncée + les rendez-vous réguliers à côté */
.m-events__label { font-size: .72rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: rgb(var(--v-muted)); margin-bottom: .6rem; }
.m-regular__list--stack { grid-template-columns: 1fr !important; }

/* Agenda : un seul rendez-vous + la liste « Toute l’année » → la carte garde sa hauteur naturelle */
.m-events:has(> .m-events__regular) { align-items: start; }
.m-point__name span { white-space: nowrap; }
/* Crédit photo de la bannière : petite icône « i » à côté du bouton pause, le texte s'ouvre au clic (ou au toucher) */
.m-credit-pop { position: absolute; z-index: 3; right: calc(clamp(1rem, 3vw, 2rem) + 3rem); bottom: clamp(7.5rem, 11vw, 9.5rem); }
.m-credit-pop__btn { list-style: none; cursor: pointer; width: 2.5rem; height: 2.5rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; color: rgb(255 255 255 / .85); background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .25); backdrop-filter: blur(6px); transition: background .15s ease, color .15s ease; }
.m-credit-pop__btn::-webkit-details-marker { display: none; }
.m-credit-pop__btn:hover, .m-credit-pop[open] .m-credit-pop__btn { color: #fff; background: rgb(0 0 0 / .45); }
.m-credit-pop__btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.m-credit-pop__text { position: absolute; right: 0; bottom: calc(100% + .5rem); width: max-content; max-width: min(18rem, calc(100vw - clamp(1rem, 3vw, 2rem) - 4rem)); padding: .55rem .75rem; border-radius: .7rem; background: rgb(15 23 42 / .88); color: rgb(255 255 255 / .92); font-size: .75rem; line-height: 1.4; box-shadow: 0 10px 30px -12px rgb(0 0 0 / .6); }
@media (max-width: 767px) {
  .m-portail--photo .m-credit-pop { top: calc(var(--m-header-h) + .75rem); bottom: auto; }
  .m-portail--photo .m-credit-pop__text { bottom: auto; top: calc(100% + .5rem); }
}

/* --------------------------------------------------------------------------
   Réservations : suivi d'une demande, notification, gestion par la mairie sur la page (booking-common.js)
   -------------------------------------------------------------------------- */
.m-suivi { padding: 1.1rem 1.25rem; border-radius: 1rem; border: 1px solid rgb(var(--v-line)); background: #fff; display: grid; gap: .35rem; }
.m-suivi__status { display: flex; align-items: center; gap: .5rem; font-size: 1.05rem; }
.m-suivi--confirmee { border-color: #a7f3d0; background: #f0fdf4; } .m-suivi--confirmee .m-suivi__status { color: #065f46; }
.m-suivi--refusee, .m-suivi--annulee { border-color: #fecdd3; background: #fff1f2; } .m-suivi--refusee .m-suivi__status, .m-suivi--annulee .m-suivi__status { color: #9f1239; }
.m-suivi--demande { border-color: #fcd34d; background: #fffbeb; } .m-suivi--demande .m-suivi__status { color: #92400e; }
.m-suivi__reply span { font-weight: 700; }
.m-follow { margin-top: .75rem; }
.m-follow .m-help svg { display: inline; vertical-align: -.15em; }
.m-staff { border: 2px dashed rgb(var(--pal-primary-300)); background: rgb(var(--pal-primary-50)); }
.m-staff__title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; color: var(--m-ink); }
.m-staff__list { margin-top: 1rem; display: grid; gap: .75rem; }
.m-staff__item { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-start; padding: 1rem; border-radius: .9rem; background: #fff; border: 1px solid rgb(var(--v-line)); }
.m-staff__body { flex: 1 1 14rem; min-width: 0; display: grid; gap: .2rem; }
.m-staff__body a { text-decoration: underline; }

/* ------------------------------------------------------------------ « La commune aujourd'hui » : présentation vivante (option station.look = 'vivant')
   Le ciel de la carte suit l'heure (data-sky) et le temps qu'il fait (data-wx), écrits par le navigateur ; --wx-p : avancement du jour.
   Fonds toujours assez sombres pour le texte blanc (contraste AA). Sans cette option, rien ne change. */
.m-wx { --wx-1: #1f5fa8; --wx-2: #3f86c9; --wx-3: #6aa6d6; --wx-glow: 255 236 190; --wx-p: .5; padding: 0; background: linear-gradient(180deg, var(--wx-1) 0%, var(--wx-2) 58%, var(--wx-3) 100%); box-shadow: 0 30px 60px -34px rgb(10 20 40 / .65); transition: background 1s ease; }
.m-wx::after { display: none; }
.m-wx[data-sky="matin"] { --wx-1: #34528c; --wx-2: #8f5470; --wx-3: #a85a44; --wx-glow: 255 200 150; }
.m-wx[data-sky="soir"] { --wx-1: #2b3470; --wx-2: #7c3f62; --wx-3: #9a4a34; --wx-glow: 255 160 100; }
.m-wx[data-sky="nuit"] { --wx-1: #050a1e; --wx-2: #101c40; --wx-3: #22335f; --wx-glow: 150 175 235; }
.m-wx:is([data-wx="couvert"], [data-wx="pluie"], [data-wx="brouillard"], [data-wx="neige"]):not([data-sky="nuit"]) { --wx-1: #46586b; --wx-2: #5f7386; --wx-3: #7c8e9f; --wx-glow: 230 236 244; }
.m-wx[data-wx="orage"] { --wx-1: #161b2b; --wx-2: #2c3446; --wx-3: #4a5263; --wx-glow: 200 210 230; }
.m-wx > :not(.m-wx__sky) { position: relative; }
.m-wx__sky { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.m-wx__sky > i { position: absolute; display: block; }
.m-wx__orb { left: calc(12% + var(--wx-p) * 76%); top: calc(1.4rem + (var(--wx-p) - .5) * (var(--wx-p) - .5) * 9rem); width: 4.2rem; aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%); background: radial-gradient(circle, #fffdf0 0%, #ffe9b0 60%); box-shadow: 0 0 0 1rem rgb(var(--wx-glow) / .16), 0 0 0 2.4rem rgb(var(--wx-glow) / .08), 0 0 90px 30px rgb(var(--wx-glow) / .4); animation: m-wx-pulse 7s ease-in-out infinite alternate; }
.m-wx[data-sky="nuit"] .m-wx__orb { left: 82%; top: 1.5rem; width: 3rem; background: radial-gradient(circle at 36% 34%, #fffdf2 0%, #f1ecd8 55%, #c9c4ae 100%); box-shadow: 0 0 40px 8px rgb(var(--wx-glow) / .35), 0 0 110px 36px rgb(var(--wx-glow) / .14); animation: none; }
.m-wx:is([data-wx="couvert"], [data-wx="pluie"], [data-wx="brouillard"], [data-wx="neige"], [data-wx="orage"]) .m-wx__orb { opacity: 0; }
.m-wx__stars { inset: 0 0 45% 0; opacity: 0; transition: opacity 1s ease; background-image: radial-gradient(1.4px 1.4px at 8% 22%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 21% 54%, #fff 50%, transparent 51%), radial-gradient(1.6px 1.6px at 37% 16%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 49% 62%, #fff 50%, transparent 51%), radial-gradient(1.3px 1.3px at 61% 28%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 71% 70%, #fff 50%, transparent 51%), radial-gradient(1.2px 1.2px at 93% 44%, #fff 50%, transparent 51%), radial-gradient(1px 1px at 29% 84%, #fff 50%, transparent 51%); }
.m-wx[data-sky="nuit"]:is([data-wx="clair"], [data-wx="nuageux"]) .m-wx__stars { opacity: .9; animation: m-wx-twinkle 5s ease-in-out infinite alternate; }
.m-wx__clouds { inset: -1rem -30% auto -30%; height: 11rem; opacity: 0; transition: opacity 1s ease; background: radial-gradient(18% 44% at 14% 52%, rgb(255 255 255 / .34), transparent 72%), radial-gradient(14% 36% at 26% 36%, rgb(255 255 255 / .28), transparent 72%), radial-gradient(20% 48% at 50% 30%, rgb(255 255 255 / .32), transparent 72%), radial-gradient(13% 34% at 63% 50%, rgb(255 255 255 / .26), transparent 72%), radial-gradient(19% 46% at 86% 44%, rgb(255 255 255 / .32), transparent 72%); animation: m-wx-drift 80s linear infinite alternate; }
.m-wx:is([data-wx="nuageux"], [data-wx="couvert"], [data-wx="pluie"], [data-wx="neige"], [data-wx="orage"], [data-wx="brouillard"]) .m-wx__clouds { opacity: 1; }
.m-wx[data-wx="nuageux"] .m-wx__clouds { opacity: .6; }
.m-wx:is([data-sky="nuit"], [data-wx="orage"]) .m-wx__clouds { filter: brightness(.45); }
.m-wx__fx { inset: -20% -10% 0; opacity: 0; }
.m-wx:is([data-wx="pluie"], [data-wx="orage"]) .m-wx__fx { opacity: .3; background-image: repeating-linear-gradient(101deg, transparent 0 22px, rgb(226 236 248 / .6) 22px 23px, transparent 23px 47px); background-size: 140px 180px; animation: m-wx-rain .55s linear infinite; -webkit-mask-image: linear-gradient(180deg, #000 0, #000 40%, transparent 85%); mask-image: linear-gradient(180deg, #000 0, #000 40%, transparent 85%); }
.m-wx[data-wx="neige"] .m-wx__fx { opacity: .85; background-image: radial-gradient(2.2px 2.2px at 20px 30px, #fff 50%, transparent 52%), radial-gradient(1.6px 1.6px at 90px 110px, #fff 50%, transparent 52%), radial-gradient(2.6px 2.6px at 150px 60px, #fff 50%, transparent 52%), radial-gradient(1.8px 1.8px at 60px 170px, #fff 50%, transparent 52%); background-size: 190px 210px; animation: m-wx-snow 11s linear infinite; }
@keyframes m-wx-pulse { from { transform: translateX(-50%) scale(1); } to { transform: translateX(-50%) scale(1.06); } }
@keyframes m-wx-twinkle { from { opacity: .5; } to { opacity: .95; } }
@keyframes m-wx-drift { from { transform: translateX(-5%); } to { transform: translateX(5%); } }
@keyframes m-wx-rain { from { background-position: 0 0; } to { background-position: -35px 180px; } }
@keyframes m-wx-snow { from { background-position: 0 0; } to { background-position: 40px 210px; } }
@media (prefers-reduced-motion: reduce) { .m-wx__orb, .m-wx__stars, .m-wx__clouds, .m-wx__fx { animation: none !important; } .m-wx__fx { opacity: 0 !important; } }

.m-wx__now { padding: clamp(1.25rem, 3vw, 2rem) clamp(1.25rem, 3vw, 2rem) 0; }
.m-wx__place { display: flex; align-items: center; gap: .45rem; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: rgb(255 255 255 / .86); }
.m-wx__time { margin-left: auto; letter-spacing: .04em; font-variant-numeric: tabular-nums; padding: .2rem .6rem; border-radius: 999px; background: rgb(0 0 0 / .24); }
.m-wx__time:empty { display: none; }
.m-wx__temp { margin-top: 1.6rem; display: flex; align-items: center; gap: 1rem; font-family: var(--v-display); font-weight: 600; font-size: clamp(4.2rem, 10vw, 6.5rem); line-height: .9; letter-spacing: -0.04em; text-shadow: 0 2px 24px rgb(0 0 0 / .25); }
.m-wx__icon { display: inline-flex; color: #ffe7ae; filter: drop-shadow(0 4px 14px rgb(0 0 0 / .3)); }
.m-wx[data-sky="nuit"] .m-wx__icon { color: #dbe6ff; }
.m-wx__label { margin-top: .7rem; font-size: 1.1rem; font-weight: 600; }
.m-wx__label::first-letter { text-transform: uppercase; }
.m-wx__facts { margin-top: 1.25rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .5rem; }
@media (min-width: 640px) { .m-wx__facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.m-wx__facts li { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: .9rem; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .14); backdrop-filter: blur(6px); }
.m-wx__facts svg { flex: none; opacity: .85; }
.m-wx__facts span { display: grid; min-width: 0; }
.m-wx__facts small { font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; color: rgb(255 255 255 / .78); }
.m-wx__facts b { font-weight: 700; font-size: .95rem; font-variant-numeric: tabular-nums; }
.m-wx__arc { margin: 1.25rem clamp(1.25rem, 3vw, 2rem) 0; padding: .9rem 1rem .8rem; border-radius: 1.1rem; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .14); }
.m-wx__arc > svg { display: block; width: min(100%, 17rem); margin: 0 auto -1.1rem; }
.m-wx__arcrow { display: flex; align-items: flex-end; justify-content: space-between; gap: .75rem; font-size: .85rem; }
.m-wx__arcrow > span:not(.m-wx__arcmid) { display: grid; justify-items: center; gap: .05rem; }
.m-wx__arcrow b { font-variant-numeric: tabular-nums; }
.m-wx__arcrow small { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .78); }
.m-wx__arcmid { text-align: center; font-weight: 600; color: rgb(255 255 255 / .92); padding-bottom: .15rem; }
.m-wx__block { margin: 1.25rem clamp(1.25rem, 3vw, 2rem) 0; }
.m-wx__hrow { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(3.9rem, 1fr); gap: .45rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; scrollbar-color: rgb(255 255 255 / .4) transparent; scroll-snap-type: x proximity; }
.m-wx__hrow:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: .9rem; }
.m-wx__hrow li { scroll-snap-align: start; display: grid; justify-items: center; gap: .3rem; padding: .7rem .3rem .55rem; border-radius: .9rem; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .12); }
.m-wx__hrow li:first-child { background: rgb(255 255 255 / .2); border-color: rgb(255 255 255 / .3); }
.m-wx__h { font-size: .76rem; font-weight: 700; color: rgb(255 255 255 / .85); font-variant-numeric: tabular-nums; }
.m-wx__hrow b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.m-wx__hrow small { font-size: .7rem; font-weight: 700; color: #bfe0ff; font-variant-numeric: tabular-nums; }
.m-wx__drows { display: grid; gap: .1rem; border-radius: 1.1rem; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .14); padding: .35rem 1rem; }
.m-wx__drows li { display: grid; grid-template-columns: minmax(5.2rem, 1.1fr) 1.5rem minmax(0, 1.4fr) 2.4rem minmax(3rem, 1.6fr) 2.4rem; align-items: center; gap: .6rem; padding: .55rem 0; font-size: .92rem; }
.m-wx__drows li + li { border-top: 1px solid rgb(255 255 255 / .12); }
.m-wx__dname { font-weight: 700; }
.m-wx__dsky { color: rgb(255 255 255 / .85); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-wx__dmin { text-align: right; color: rgb(255 255 255 / .8); font-variant-numeric: tabular-nums; }
.m-wx__dmax { font-weight: 700; font-variant-numeric: tabular-nums; }
.m-wx__bar { position: relative; height: .4rem; border-radius: 999px; background: rgb(255 255 255 / .16); }
.m-wx__bar i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: linear-gradient(90deg, #8fd3ff, #ffe08a 60%, #ffb36b); }
@media (max-width: 520px) { .m-wx__drows li { grid-template-columns: minmax(5.6rem, 1fr) 1.4rem 2.1rem minmax(2rem, 1.2fr) 2.1rem; gap: .4rem; font-size: .88rem; } .m-wx__dsky { display: none; } }
.m-wx__alt { margin: 1rem clamp(1.25rem, 3vw, 2rem) 0; display: grid; gap: .5rem; }
.m-wx__alt li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .15rem .75rem; padding: .7rem 1rem; border-radius: 1rem; background: rgb(0 0 0 / .22); border: 1px solid rgb(255 255 255 / .14); }
.m-wx__alt li > span:nth-child(2) { display: grid; }
.m-wx__alt small { font-size: .78rem; color: rgb(255 255 255 / .8); }
.m-wx__alttemp { font-family: var(--v-display); font-size: 1.5rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.m-wx__altsky { grid-column: 2 / -1; font-size: .82rem; color: rgb(255 255 255 / .82); }
.m-wx .m-station__credit { margin: 1rem clamp(1.25rem, 3vw, 2rem) 0; padding-bottom: clamp(1.1rem, 2.5vw, 1.5rem); }
.m-wx .m-station__dtitle { color: rgb(255 255 255 / .82); }
/* Présentation vivante, format compact (11/11/2026) : l'essentiel sur une carte de la hauteur des liens voisins */
.m-wx { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; }
.m-wx__now { padding: 1.1rem 1.25rem 0; }
.m-wx__temp { margin-top: .5rem; font-size: clamp(3rem, 6vw, 3.9rem); gap: .7rem; }
.m-wx__icon svg { width: 2.4rem; height: 2.4rem; }
.m-wx__label { margin-top: .3rem; font-size: 1rem; }
.m-wx__facts { margin-top: .8rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.m-wx__facts li { padding: .35rem .65rem; border-radius: 999px; gap: .4rem; }
.m-wx__facts span { display: inline-flex; align-items: baseline; gap: .35rem; }
.m-wx__facts small { font-size: .66rem; }
.m-wx__facts b { font-size: .84rem; }
.m-wx__arc { margin: .9rem 1.25rem 0; padding: .5rem .8rem .55rem; }
.m-wx__arc > svg { width: min(100%, 10.5rem); margin-bottom: -.9rem; }
.m-wx__arcrow { font-size: .78rem; }
.m-wx__arcmid { font-size: .76rem; font-weight: 500; }
.m-wx__block { margin: .9rem 1.25rem 0; }
.m-wx .m-station__dtitle { margin-bottom: .4rem; font-size: .66rem; }
.m-wx__hrow { grid-auto-columns: minmax(3.2rem, 1fr); gap: .35rem; }
.m-wx__hrow li { padding: .45rem .2rem .4rem; gap: .15rem; border-radius: .7rem; }
.m-wx__hrow li svg { width: 1.25rem; height: 1.25rem; }
.m-wx__hrow b { font-size: .92rem; }
.m-wx__hrow small { font-size: .64rem; line-height: 1; }
.m-wx__drows { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: .3rem .25rem; }
.m-wx__drows li, .m-wx__drows li + li { display: grid; grid-template-columns: 1fr; justify-items: center; gap: .1rem; padding: .35rem .15rem; border-top: 0; font-size: .82rem; text-align: center; }
.m-wx__drows li + li { border-left: 1px solid rgb(255 255 255 / .12); }
.m-wx__dname { font-size: .72rem; font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-wx__dsky, .m-wx__bar { display: none; }
.m-wx__dmin { order: 5; text-align: center; font-size: .76rem; }
.m-wx__dmax { order: 4; }
.m-wx__alt { margin: .7rem 1.25rem 0; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.m-wx__alt li { padding: .45rem .8rem; }
.m-wx__alttemp { font-size: 1.15rem; }
.m-wx__altsky { display: none; }
.m-wx .m-station__credit { margin: .7rem 1.25rem 0; padding-bottom: .9rem; font-size: .7rem; }
@media (min-width: 640px) {
  .m-wx { grid-template-columns: minmax(0, 1fr) minmax(0, 13.5rem); }
  .m-wx__now { grid-column: 1; }
  .m-wx__arc { grid-column: 2; grid-row: 1; align-self: end; margin: 1.1rem 1.25rem 0 0; }
  .m-wx__block, .m-wx__alt, .m-wx .m-station__credit { grid-column: 1 / -1; }
}
@media (min-width: 640px) { .m-wx__arcmid { display: none; } .m-wx__arcrow { justify-content: space-around; } }
