/* ==========================================================================
   Le Perrier — feuille de style du site public (version 2)
   Couleurs : ardoise #3f525b · vert #9ccc48 · bleu-gris #7794a2
   Typographies : Outfit (titres) · Inter (texte) — hébergées localement
   ========================================================================== */

@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: italic; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-italic.woff2") format("woff2"); }
@font-face { font-family: "Outfit"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/outfit.woff2") format("woff2"); }

:root {
  --ardoise: #3f525b;
  --ardoise-900: #24323a;
  --ardoise-700: #33454e;
  --vert: #9ccc48;
  --vert-700: #5f8a1c;
  --vert-50: #f2f8e6;
  --bleu: #7794a2;
  --bleu-50: #eef3f5;
  --bleu-100: #e2eaee;
  --texte: #24323a;
  --texte-doux: #5a6b73;
  --ligne: #e3e9ec;
  --fond: #f7f9f9;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 28px;
  --ombre: 0 1px 2px rgba(36,50,58,.06), 0 8px 24px rgba(36,50,58,.08);
  --ombre-lg: 0 2px 6px rgba(36,50,58,.08), 0 24px 48px rgba(36,50,58,.14);
  --wrap: 1180px;
  --wrap-wide: 1400px;
  --titres: "Outfit", "Inter", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0; font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 17px; line-height: 1.7;
  color: var(--texte); background: #fff; overflow-x: hidden; -webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
svg { flex: none; }
a { color: var(--vert-700); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s, background-color .2s, box-shadow .2s, transform .2s; }
a:hover { color: var(--ardoise); }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--vert); color: var(--ardoise-900); }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 0; background: var(--ardoise); color: #fff; padding: .6em 1em; z-index: 1000; }
.skip:focus { left: 1em; top: 1em; }
.wrap { width: min(var(--wrap), 100% - 48px); margin: 0 auto; }
.wrap-wide { width: min(var(--wrap-wide), 100% - 48px); margin: 0 auto; }
.center { text-align: center; }

h1, h2, h3, h4, h5, h6 { font-family: var(--titres); color: var(--ardoise-900); line-height: 1.15; margin: 1.6em 0 .6em; font-weight: 600; letter-spacing: -.01em; }
h2 { font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.15rem); }
h2 strong { font-weight: 700; color: var(--ardoise); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }
h5 { font-size: 1rem; font-family: "Inter", sans-serif; font-weight: 700; }
p { margin: 0 0 1em; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; font: 600 .82rem/1 "Inter", sans-serif; letter-spacing: .12em; text-transform: uppercase; color: var(--vert-700); margin-bottom: 1em; }
.eyebrow::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--vert); }

/* ---------------------------------------------------------------- Boutons */
.btn, a.btn, button.btn, .bouton, a.bouton, button.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em; background: var(--ardoise); color: #fff;
  font: 600 .95rem/1.2 "Inter", sans-serif; padding: .85em 1.45em; border-radius: 999px; border: 0; text-decoration: none; cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.btn:hover, .bouton:hover { background: var(--ardoise-900); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(36,50,58,.2); }
.bouton::after { content: "→"; transition: transform .2s; }
.bouton:hover::after { transform: translateX(3px); }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn-vert, .bouton-secondaire, a.bouton-secondaire { background: var(--vert); color: var(--ardoise-900); }
.btn-vert:hover, .bouton-secondaire:hover { background: #8bbb38; color: var(--ardoise-900); }
.btn-light { background: #fff; color: var(--ardoise-900); }
.btn-light:hover { background: var(--bleu-50); color: var(--ardoise-900); }
.btn-outline-light { background: transparent; color: #fff; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.45); }
.btn-outline-light:hover { background: rgba(255,255,255,.1); color: #fff; }
.btn-small { padding: .6em 1.1em; font-size: .88rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .4em; font-weight: 600; text-decoration: none; color: var(--ardoise); }
.link-arrow svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.link-arrow:hover svg { transform: translateX(4px); }

/* ---------------------------------------------------------------- En-tête */
.site-header { position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s; }
.site-header.compact { border-bottom-color: var(--ligne); box-shadow: 0 4px 20px rgba(36,50,58,.06); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 84px; transition: height .3s; }
.site-header.compact .header-inner { height: 68px; }
.logo { flex: none; }
.logo img { display: block; height: 52px; width: auto; transition: height .3s; }
.site-header.compact .logo img { height: 42px; }

.main-nav { margin-left: auto; }
.main-nav > ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav > ul > li { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: .3em; padding: .55em .85em; border-radius: 999px; border: 0; background: none; cursor: pointer;
  font: 500 .95rem/1.2 "Inter", sans-serif; color: var(--ardoise-900); text-decoration: none; white-space: nowrap;
}
.nav-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.2; transition: transform .2s; opacity: .6; }
.nav-link:hover, .has-sub:hover > .nav-link, .nav-link[aria-expanded="true"] { background: var(--bleu-50); color: var(--ardoise-900); }
.main-nav li.active > .nav-link { color: var(--vert-700); }
.main-nav li.active > .nav-link::after { content: ""; position: absolute; left: 50%; bottom: -2px; width: 18px; height: 3px; border-radius: 3px; background: var(--vert); transform: translateX(-50%); }
.has-sub:hover > .nav-link svg, .nav-link[aria-expanded="true"] svg { transform: rotate(180deg); }
.subnav { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 8px); padding-top: 12px; opacity: 0; visibility: hidden; transition: opacity .2s, transform .2s, visibility .2s; z-index: 10; }
.has-sub:hover > .subnav, .has-sub:focus-within > .subnav, .subnav.open { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.subnav-inner { background: #fff; border-radius: var(--r); box-shadow: var(--ombre-lg); border: 1px solid var(--ligne); padding: 10px; width: 330px; }
.subnav-head { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 14px 16px; border-radius: var(--r-sm); background: var(--ardoise); color: #fff; text-decoration: none; margin-bottom: 6px; }
.subnav-head span { font: 600 1.1rem/1.2 var(--titres); }
.subnav-head small { grid-row: 2; opacity: .75; font-size: .8rem; }
.subnav-head svg { grid-row: 1 / 3; grid-column: 2; width: 20px; height: 20px; fill: none; stroke: var(--vert); stroke-width: 2.2; transition: transform .2s; }
.subnav-head:hover { background: var(--ardoise-900); color: #fff; }
.subnav-head:hover svg { transform: translateX(3px); }
.subnav ul { list-style: none; margin: 0; padding: 0; }
.subnav li a { display: block; padding: .55em 16px; border-radius: var(--r-sm); color: var(--texte); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.subnav li a:hover, .subnav li a[aria-current] { background: var(--vert-50); color: var(--vert-700); }

.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.pill { display: inline-flex; align-items: center; gap: .45em; padding: .55em 1em; border-radius: 999px; background: var(--vert-50); color: var(--vert-700); font-weight: 600; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.pill:hover { background: var(--vert); color: var(--ardoise-900); }
.pill svg, .icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--bleu-50); color: var(--ardoise-900); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.icon-btn:hover, .icon-btn[aria-expanded="true"] { background: var(--ardoise); color: #fff; }
.menu-toggle { display: none; }

.search-panel { border-top: 1px solid var(--ligne); background: #fff; padding: 22px 0; box-shadow: 0 20px 30px rgba(36,50,58,.08); }
.search-panel[hidden] { display: none; }
.search-big { display: flex; align-items: center; gap: 10px; background: #fff; border: 2px solid var(--ligne); border-radius: 999px; padding: 6px 6px 6px 20px; transition: border-color .2s; }
.search-big:focus-within { border-color: var(--vert); }
.search-big > svg { width: 22px; height: 22px; fill: none; stroke: var(--bleu); stroke-width: 2.2; }
.search-big input { flex: 1; min-width: 0; border: 0; outline: 0; font: 400 1.05rem "Inter", sans-serif; background: transparent; color: var(--texte); padding: .6em 0; }

/* Menu mobile */
.mobile-menu { position: fixed; inset: 0; z-index: 200; background: #fff; overflow-y: auto; padding: 0 22px 40px; animation: mm-in .25s ease; }
.mobile-menu[hidden] { display: none; }
@keyframes mm-in { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.mobile-menu-head { display: flex; justify-content: space-between; align-items: center; height: 76px; }
.mobile-menu-head img { height: 42px; width: auto; }
.search-mobile { margin: 6px 0 18px; }
.mm-list { list-style: none; margin: 0; padding: 0; }
.mm-list > li { border-bottom: 1px solid var(--ligne); }
.mm-list summary, .mm-link { display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; font: 600 1.25rem/1.2 var(--titres); color: var(--ardoise-900); text-decoration: none; cursor: pointer; list-style: none; }
.mm-list summary::-webkit-details-marker { display: none; }
.mm-list summary svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; transition: transform .2s; }
.mm-list details[open] summary svg { transform: rotate(180deg); }
.mm-list details ul { list-style: none; padding: 0 0 14px; margin: 0; }
.mm-list details a { display: block; padding: 9px 14px; border-radius: var(--r-sm); color: var(--texte); text-decoration: none; }
.mm-list details a:hover { background: var(--vert-50); }
.mm-contact { display: grid; gap: 10px; margin-top: 26px; }
body.no-scroll { overflow: hidden; }

/* ---------------------------------------------------------------- En-tête de page */
.page-hero { position: relative; width: min(var(--wrap-wide), 100% - 32px); margin: 12px auto 0; min-height: 300px; border-radius: var(--r-lg); overflow: hidden; display: flex; align-items: flex-end; background: var(--ardoise) center/cover no-repeat; isolation: isolate; }
.page-hero::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(36,50,58,.05) 20%, rgba(36,50,58,.78) 100%); z-index: -1; }
.page-hero-text { width: min(var(--wrap), 100% - 48px); margin: 0 auto; padding: 90px 0 38px; color: #fff; }
.page-hero h1 { color: #fff; margin: .2em 0 0; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.2rem); font-weight: 600; max-width: 900px; text-wrap: balance; }
.breadcrumb { font-size: .88rem; display: flex; flex-wrap: wrap; gap: .35em; align-items: center; }
.breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--vert); }
.breadcrumb span[aria-hidden] { opacity: .55; }

/* ---------------------------------------------------------------- Mise en page intérieure */
.page-body { padding: 56px 0 90px; }
.page-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 56px; align-items: start; }
.section-nav { position: sticky; top: 110px; background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--r); padding: 18px; }
.section-nav p { font: 600 .78rem/1 "Inter", sans-serif; text-transform: uppercase; letter-spacing: .12em; color: var(--texte-doux); margin: 4px 8px 12px; }
.section-nav p a { color: inherit; text-decoration: none; }
.section-nav ul { list-style: none; margin: 0; padding: 0; }
.section-nav li a { display: block; padding: .55em .75em; border-radius: var(--r-sm); color: var(--texte); text-decoration: none; font-size: .95rem; line-height: 1.35; }
.section-nav li a:hover { background: #fff; color: var(--vert-700); }
.section-nav li a[aria-current] { background: var(--ardoise); color: #fff; font-weight: 600; }

/* ---------------------------------------------------------------- Contenu éditorial */
.content > :first-child { margin-top: 0; }
.content h2 { position: relative; padding-top: .7em; }
.content h2::before { content: ""; position: absolute; top: 0; left: 0; width: 40px; height: 4px; border-radius: 4px; background: var(--vert); }
.content h2[style*="center"]::before { left: 50%; transform: translateX(-50%); }
.content h2[style*="right"]::before { left: auto; right: 0; }
.content h3 { color: var(--ardoise); }
.content ul { padding-left: 1.3em; }
.content ul li { margin-bottom: .3em; }
.content ul li::marker { color: var(--vert); }
.content img { border-radius: var(--r-sm); }
.content img.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.content img.alignright { float: right; margin: .3em 0 1em 1.5em; }
.content img.aligncenter { display: block; margin: 0 auto 1em; }
.content::after, .post-body::after { content: ""; display: table; clear: both; }
.content table { border-collapse: separate; border-spacing: 0; width: 100%; margin: 1.2em 0 1.8em; font-size: .95rem; border: 1px solid var(--ligne); border-radius: var(--r-sm); overflow: hidden; }
.content th, .content td { border-bottom: 1px solid var(--ligne); padding: .7em .9em; text-align: left; vertical-align: top; }
.content tr:last-child td { border-bottom: 0; }
.content th { background: var(--bleu-50); font-weight: 600; }
.content blockquote { margin: 1.5em 0; padding: 1.2em 1.6em; border-left: 4px solid var(--vert); background: var(--vert-50); border-radius: 0 var(--r) var(--r) 0; font-size: 1.05rem; }
.content hr { border: 0; border-top: 1px solid var(--ligne); margin: 2.5em 0; }
.content iframe { border: 0; width: 100%; min-height: 360px; border-radius: var(--r); }
.content a[href$=".pdf"]:not(.bouton)::before { content: "PDF"; display: inline-block; font: 700 .62rem/1 "Inter", sans-serif; background: #c0392b; color: #fff; padding: .35em .45em; border-radius: 4px; margin-right: .45em; vertical-align: .15em; }

.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 40px; margin: 2em 0; align-items: start; }
.colonne > :first-child { margin-top: 0; }
.colonne img { display: block; border-radius: var(--r); }

.encadre { padding: 2em 2.2em; margin: 2em 0; border-radius: var(--r-lg); }
.encadre > :first-child { margin-top: 0; }
.encadre > :last-child { margin-bottom: 0; }
.encadre-gris { background: var(--bleu-50); }
.encadre-vert { background: var(--vert-50); box-shadow: inset 0 0 0 1px #dcebc0; }
.encadre-bleu { background: var(--bleu); color: #fff; }
.encadre-sombre { background: var(--ardoise); color: #fff; }
.encadre-bleu h2, .encadre-bleu h3, .encadre-bleu h4, .encadre-bleu h5, .encadre-sombre h2, .encadre-sombre h3, .encadre-sombre h4, .encadre-sombre h5,
.encadre-sombre h2 strong, .encadre-bleu h2 strong { color: #fff; }
.encadre-bleu a:not(.bouton), .encadre-sombre a:not(.bouton) { color: #fff; font-weight: 600; }
.encadre-sombre .bouton { background: var(--vert); color: var(--ardoise-900); }

figure { margin: 0 0 1em; }
figure.bandeau { margin: 3em 0; height: 260px; overflow: hidden; border-radius: var(--r-lg); }
figure.bandeau img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 0; }
.galerie { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin: 1.5em 0; }
.galerie img { width: 100%; aspect-ratio: 4/3; object-fit: cover; display: block; }

details { border: 1px solid var(--ligne); border-radius: var(--r); margin: .7em 0; background: #fff; transition: box-shadow .2s; }
details[open] { box-shadow: var(--ombre); }
details > summary { cursor: pointer; padding: 1.05em 3em 1.05em 1.3em; font-weight: 600; color: var(--ardoise-900); list-style: none; position: relative; }
details > summary::-webkit-details-marker { display: none; }
details > summary::after { content: ""; position: absolute; right: 1.2em; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--vert-700); border-bottom: 2px solid var(--vert-700); transform: translateY(-70%) rotate(45deg); transition: transform .2s; }
details[open] > summary::after { transform: translateY(-30%) rotate(-135deg); }
details > :not(summary) { padding: 0 1.3em; }
details > :not(summary):first-of-type { padding-top: .2em; }

/* Trombinoscope (page Municipalité) */
.row_title h2 { margin-top: 0; }
.conseil_first_row, .conseil_second_row { display: grid; gap: 12px; margin-bottom: 12px; }
.conseil_first_row { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.conseil_second_row { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.conseil_first_row figure, .conseil_second_row figure { margin: 0; position: relative; overflow: hidden; border-radius: var(--r); background: #fff; }
.conseil_first_row img, .conseil_second_row img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 0; transition: transform .4s; }
.conseil_first_row figure:hover img, .conseil_second_row figure:hover img { transform: scale(1.04); }
.conseil_first_row figcaption, .conseil_second_row figcaption { position: absolute; inset: auto 0 0 0; padding: 2.2em .9em .8em; background: linear-gradient(transparent, rgba(36,50,58,.88)); }
.conseil_first_row figcaption p, .conseil_second_row figcaption p { color: #fff; line-height: 1.25; margin: 0; font-size: .82rem; }
.conseil_first_row figcaption strong, .conseil_second_row figcaption strong { display: block; font-weight: 700; font-size: .95rem; }

/* ---------------------------------------------------------------- Sous-pages */
.subpages { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.subpages a { display: flex; flex-direction: column; height: 100%; background: #fff; border-radius: var(--r-lg); overflow: hidden; text-decoration: none; box-shadow: var(--ombre); border: 1px solid var(--ligne); }
.subpages a:hover { transform: translateY(-4px); box-shadow: var(--ombre-lg); }
.subpage-img { display: block; aspect-ratio: 16 / 10; background: var(--bleu-100) center/cover no-repeat; transition: transform .5s; }
.subpages a:hover .subpage-img { transform: scale(1.04); }
.subpage-label { display: flex; justify-content: space-between; align-items: center; gap: 1em; padding: 18px 22px; font: 600 1.15rem/1.25 var(--titres); color: var(--ardoise-900); background: #fff; position: relative; z-index: 1; }
.subpage-label::after { content: "→"; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--vert-50); color: var(--vert-700); display: inline-flex; align-items: center; justify-content: center; font-family: "Inter", sans-serif; transition: all .2s; }
.subpages a:hover .subpage-label::after { background: var(--vert); color: var(--ardoise-900); }

/* ---------------------------------------------------------------- Cartes d'actualités */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 2em; }
.filters a { padding: .5em 1.05em; border-radius: 999px; background: var(--bleu-50); color: var(--ardoise); text-decoration: none; font-size: .9rem; font-weight: 500; }
.filters a:hover { background: var(--bleu-100); }
.filters a.active { background: var(--ardoise); color: #fff; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 26px; }
.card { background: #fff; border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--ombre); border: 1px solid var(--ligne); transition: transform .25s, box-shadow .25s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--ombre-lg); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }
.card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(135deg, var(--bleu-100), var(--vert-50)); position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.card-noimg img { width: 64px !important; height: 64px !important; opacity: .35; object-fit: contain !important; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; gap: 8px; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .82rem; color: var(--texte-doux); }
.chip { display: inline-block; padding: .25em .7em; border-radius: 999px; background: var(--vert-50); color: var(--vert-700); font-size: .76rem; font-weight: 600; }
.chip-dark { background: var(--ardoise); color: #fff; }
.card-title { font: 600 1.2rem/1.3 var(--titres); color: var(--ardoise-900); }
.card-text { font-size: .93rem; color: var(--texte-doux); flex: 1; line-height: 1.6; }
.card-more { color: var(--vert-700); font-size: .9rem; font-weight: 600; }
.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 3em; }
.pagination a, .pagination span { min-width: 42px; height: 42px; padding: 0 .9em; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; text-decoration: none; font-weight: 500; }
.pagination a { background: var(--bleu-50); color: var(--ardoise); }
.pagination a:hover { background: var(--bleu-100); }
.pagination .current { background: var(--ardoise); color: #fff; }

/* Fiche actualité / événement */
.article { max-width: 820px; margin: 0 auto; }
.article-meta { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; color: var(--texte-doux); font-size: .92rem; margin-bottom: 2em; }
.article-image { margin: 0 0 2em; }
.article-image img { display: block; width: auto; max-width: 100%; height: auto; margin: 0 auto; border-radius: var(--r-lg); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 4em; }
.post-nav a { display: block; padding: 20px 22px; border-radius: var(--r); background: var(--fond); border: 1px solid var(--ligne); color: var(--ardoise-900); text-decoration: none; font-weight: 600; line-height: 1.35; }
.post-nav a:hover { background: #fff; box-shadow: var(--ombre); }
.post-nav small { display: block; font-weight: 500; color: var(--texte-doux); margin-bottom: .3em; font-size: .82rem; }
.post-nav .next { text-align: right; grid-column: 2; }
.back-row { margin-top: 2em; display: flex; justify-content: center; }

/* ---------------------------------------------------------------- Agenda */
.events-list { display: grid; gap: 16px; }
.event-item { display: grid; grid-template-columns: auto 1fr 170px; gap: 24px; align-items: center; background: #fff; border: 1px solid var(--ligne); border-radius: var(--r-lg); padding: 16px 16px 16px 16px; box-shadow: var(--ombre); transition: transform .2s, box-shadow .2s; position: relative; }
.event-item:hover { transform: translateY(-2px); box-shadow: var(--ombre-lg); }
.event-item h3 { margin: 0 0 .35em; font-size: 1.2rem; }
.event-item h3 a { color: var(--ardoise-900); text-decoration: none; }
.event-item h3 a::after { content: ""; position: absolute; inset: 0; }
.event-item p { margin: 0; font-size: .92rem; color: var(--texte-doux); display: flex; align-items: center; gap: .45em; }
.event-item p svg, .event-facts svg { width: 17px; height: 17px; fill: none; stroke: var(--vert-700); stroke-width: 2; }
.event-img img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); }
.date-badge { width: 84px; background: var(--ardoise); color: #fff; text-align: center; border-radius: var(--r); padding: 12px 6px; line-height: 1.05; }
.date-badge .d { display: block; font: 700 2rem/1 var(--titres); }
.date-badge .m { display: block; text-transform: uppercase; font-size: .78rem; letter-spacing: .08em; margin-top: 4px; color: var(--vert); font-weight: 700; }
.date-badge .y { display: block; font-size: .72rem; opacity: .7; margin-top: 2px; }
.event-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin-bottom: 2em; }
.event-facts > div { display: flex; gap: 12px; align-items: flex-start; background: var(--fond); border: 1px solid var(--ligne); border-radius: var(--r); padding: 16px 18px; }
.event-facts strong { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--texte-doux); }
.event-facts svg { width: 22px; height: 22px; margin-top: 2px; }

/* ---------------------------------------------------------------- Formulaires */
.contact-form label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .35em; }
.contact-form input:not([type=checkbox]), .contact-form textarea {
  width: 100%; font: inherit; font-size: 1rem; padding: .8em 1em; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); background: var(--fond); color: var(--texte); transition: border-color .2s, background .2s;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--vert); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(156,204,72,.2); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1em; }
.consent label { font-weight: 400; display: flex; gap: .7em; align-items: flex-start; font-size: .92rem; }
.consent input { margin-top: .35em; accent-color: var(--vert-700); width: 18px; height: 18px; }
.hp { position: absolute; left: -9999px; }
.notice { padding: 1.1em 1.3em; border-radius: var(--r); margin-bottom: 1.5em; }
.notice-ok { background: var(--vert-50); border: 1px solid #d3e8ac; }
.notice-err { background: #fdeeee; border: 1px solid #f3c9c4; }
.search-page-form { margin-bottom: 2em; max-width: 720px; }
.search-count { color: var(--texte-doux); }
.search-results { padding-left: 0; list-style: none; display: grid; gap: 12px; }
.search-results li { padding: 18px 22px; border: 1px solid var(--ligne); border-radius: var(--r); }
.search-results a { font: 600 1.15rem/1.3 var(--titres); color: var(--ardoise-900); text-decoration: none; }
.search-results a:hover { color: var(--vert-700); }
.search-results p { margin: .4em 0 0; font-size: .93rem; color: var(--texte-doux); }
.tag { display: inline-block; background: var(--vert-50); color: var(--vert-700); font-size: .72rem; padding: .25em .7em; border-radius: 999px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin-right: .4em; vertical-align: .2em; }
.carte iframe { width: 100%; height: 380px; border: 0; border-radius: var(--r-lg); }
.carte p { font-size: .9rem; margin-top: .6em; }
.sitemap ul { margin: .2em 0; }
.sitemap > ul > li > a { font-weight: 700; }

/* ---------------------------------------------------------------- Accueil */
.home-hero { position: relative; width: min(1600px, 100% - 32px); margin: 12px auto 0; height: min(84vh, 780px); min-height: 520px; border-radius: var(--r-lg); overflow: hidden; background: var(--ardoise) center/cover no-repeat; display: flex; align-items: flex-end; isolation: isolate; }
.home-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.home-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36,50,58,0) 30%, rgba(36,50,58,.35) 55%, rgba(36,50,58,.85) 100%), linear-gradient(90deg, rgba(36,50,58,.45), transparent 65%); }
.hero-content { width: min(var(--wrap), 100% - 48px); margin: 0 auto; padding: 0 0 130px; color: #fff; }
.hero-content .eyebrow { color: var(--vert); }
.hero-content .eyebrow::before { background: var(--vert); }
.hero-content h1 { color: #fff; font-size: clamp(2.4rem, 1.4rem + 4.2vw, 4.6rem); font-weight: 600; line-height: 1.02; letter-spacing: -.025em; margin: 0 0 .35em; max-width: 880px; text-wrap: balance; }
.hero-content .hero-sub { font-size: clamp(1.02rem, .95rem + .4vw, 1.25rem); opacity: .92; max-width: 640px; margin-bottom: 1.6em; }
.hero-search { max-width: 640px; border-color: transparent; box-shadow: 0 12px 40px rgba(0,0,0,.25); }
.hero-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.hero-chips a { padding: .45em 1em; border-radius: 999px; background: rgba(255,255,255,.14); color: #fff; text-decoration: none; font-size: .9rem; font-weight: 500; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.hero-chips a:hover { background: #fff; color: var(--ardoise-900); }

.tiles { position: relative; z-index: 3; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: -78px; }
.tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 18px; background: var(--ardoise); color: #fff; border-radius: var(--r-lg); padding: 24px 26px; text-decoration: none; box-shadow: var(--ombre-lg); position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; right: -40px; top: -40px; width: 140px; height: 140px; border-radius: 50%; background: rgba(255,255,255,.05); transition: transform .4s; }
.tile:hover { background: var(--ardoise-900); color: #fff; transform: translateY(-4px); }
.tile:hover::before { transform: scale(1.4); }
.tile img { width: 52px; height: 52px; }
.tile strong { display: block; font: 600 1.3rem/1.15 var(--titres); }
.tile small { display: block; opacity: .7; font-size: .85rem; margin-top: 3px; }
.tile .tile-arrow { width: 42px; height: 42px; border-radius: 50%; background: var(--vert); color: var(--ardoise-900); display: inline-flex; align-items: center; justify-content: center; transition: transform .2s; }
.tile .tile-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.tile:hover .tile-arrow { transform: translateX(3px); }

.section { padding: 100px 0; }
.section-tight { padding: 70px 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 2em; margin-bottom: 36px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }

.intro { display: grid; grid-template-columns: 1.25fr 1fr; gap: 70px; align-items: center; }
.intro h2 { margin-top: 0; font-size: clamp(1.8rem, 1.3rem + 1.8vw, 2.6rem); }
.intro-text { color: var(--texte-doux); font-size: 1.08rem; }
.intro-text strong { color: var(--texte); }
.stats { display: grid; gap: 14px; }
.stat { display: flex; align-items: baseline; gap: 18px; padding: 24px 28px; border-radius: var(--r-lg); background: var(--fond); border: 1px solid var(--ligne); }
.stat:nth-child(2) { background: var(--vert-50); border-color: #dcebc0; margin-left: 36px; }
.stat:nth-child(3) { background: var(--ardoise); border-color: var(--ardoise); color: #fff; }
.stat b { font: 700 clamp(2rem, 1.6rem + 1.4vw, 2.8rem)/1 var(--titres); color: var(--ardoise-900); letter-spacing: -.02em; white-space: nowrap; }
.stat:nth-child(3) b { color: var(--vert); }
.stat span { color: inherit; opacity: .85; line-height: 1.35; }

.home-news { background: var(--fond); border-radius: var(--r-lg); width: min(1600px, 100% - 32px); margin: 0 auto; }
.news-bento { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.news-feature { position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 480px; display: flex; align-items: flex-end; color: #fff; text-decoration: none; background: var(--ardoise) center/cover no-repeat; isolation: isolate; box-shadow: var(--ombre); }
.news-feature::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 35%, rgba(36,50,58,.9)); z-index: -1; }
.news-feature .nf-bg { position: absolute; inset: 0; z-index: -2; background: inherit; background-size: cover; background-position: center; transition: transform .6s; }
.news-feature:hover .nf-bg { transform: scale(1.04); }
.news-feature div { padding: 32px; }
.news-feature h3 { color: #fff; font-size: clamp(1.4rem, 1.1rem + 1vw, 2rem); margin: .5em 0 .4em; }
.news-feature p { opacity: .88; margin: 0; max-width: 560px; font-size: .97rem; }
.news-feature:hover { color: #fff; }
.news-list { display: grid; gap: 14px; align-content: start; }
.news-row { display: grid; grid-template-columns: 120px 1fr; gap: 18px; align-items: center; background: #fff; border-radius: var(--r); padding: 12px; text-decoration: none; color: var(--texte); border: 1px solid var(--ligne); }
.news-row:hover { box-shadow: var(--ombre); transform: translateX(4px); color: var(--texte); }
.news-row .nr-img { aspect-ratio: 4/3; border-radius: var(--r-sm); background: linear-gradient(135deg, var(--bleu-100), var(--vert-50)) center/cover no-repeat; }
.news-row strong { display: block; font: 600 1.05rem/1.3 var(--titres); color: var(--ardoise-900); margin-top: 4px; }
.news-row small { color: var(--texte-doux); font-size: .8rem; }

.home-agenda .events-list { grid-template-columns: repeat(3, 1fr); }
.event-card { display: flex; flex-direction: column; background: #fff; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--ligne); box-shadow: var(--ombre); text-decoration: none; color: var(--texte); transition: transform .25s, box-shadow .25s; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--ombre-lg); color: var(--texte); }
.event-card .ec-img { position: relative; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--bleu-100), var(--vert-50)) center/cover no-repeat; }
.event-card .date-badge { position: absolute; left: 16px; bottom: -26px; box-shadow: var(--ombre); }
.event-card .ec-body { padding: 40px 22px 22px; }
.event-card strong { display: block; font: 600 1.2rem/1.3 var(--titres); color: var(--ardoise-900); margin-bottom: .4em; }
.event-card small { display: block; color: var(--texte-doux); font-size: .88rem; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split.reverse .split-media { order: 2; }
.split-media { position: relative; }
.split-media img { display: block; width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--ombre-lg); }
.split-media::before { content: ""; position: absolute; inset: 28px -22px -22px 28px; border-radius: var(--r-lg); background: var(--vert); z-index: -1; }
.split.reverse .split-media::before { inset: 28px 28px -22px -22px; background: var(--bleu-100); }
.split-media { isolation: isolate; }
.split-text h2 { margin-top: 0; }
.split-text .text { color: var(--texte-doux); }
.split-text .text strong { color: var(--texte); }
.libellule-deco { width: 54px; height: auto; margin-bottom: 10px; opacity: .8; }

.newsletter { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: center; background: var(--vert); border-radius: var(--r-lg); padding: 36px 44px; color: var(--ardoise-900); position: relative; overflow: hidden; }
.newsletter::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: rgba(255,255,255,.18); }
.newsletter .nl-icon { width: 64px; height: 64px; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; }
.newsletter .nl-icon svg { width: 30px; height: 30px; fill: none; stroke: var(--ardoise); stroke-width: 2; }
.newsletter h2 { margin: 0 0 .2em; font-size: 1.6rem; }
.newsletter p { margin: 0; }
.newsletter .btn { position: relative; z-index: 1; }

/* ---------------------------------------------------------------- Pied de page */
.site-footer { background: var(--ardoise-900); color: rgba(255,255,255,.82); margin-top: 0; padding: 72px 0 0; font-size: .95rem; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: var(--vert); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1.2fr 1fr .9fr; gap: 48px; padding-bottom: 56px; }
.footer-logo { width: 190px; height: auto; display: block; margin-bottom: 22px; }
.footer-brand p { display: flex; gap: 10px; }
.site-footer svg { width: 18px; height: 18px; fill: none; stroke: var(--vert); stroke-width: 2; margin-top: 4px; }
.site-footer svg.fill, .site-footer .fill { fill: currentColor; stroke: none; }
.footer-title { font: 600 1.1rem/1.2 var(--titres); color: #fff; margin: 0 0 18px; }
.footer-list, .footer-links, .hours { list-style: none; margin: 0 0 18px; padding: 0; }
.footer-list li { margin-bottom: 10px; }
.footer-list a { display: inline-flex; gap: 10px; align-items: flex-start; }
.hours li { display: flex; justify-content: space-between; gap: 1em; padding: 6px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.hours li span:first-child { color: #fff; }
.footer-links li { margin-bottom: 8px; }
.social { display: flex; gap: 8px; margin-top: 18px; }
.social a { width: 42px; height: 42px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex; align-items: center; justify-content: center; color: #fff; }
.social a:hover { background: var(--vert); color: var(--ardoise-900); }
.social svg { margin: 0; stroke: currentColor; }
.social svg.fill { fill: currentColor; stroke: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 22px 0 28px; display: flex; justify-content: space-between; gap: 1em; flex-wrap: wrap; font-size: .85rem; }
.footer-bottom nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-bottom a { color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------------- Apparition au défilement */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.visible { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- Responsive */
@media (max-width: 1320px) { .pill-phone span { display: none; } .pill-phone { padding: 0; width: 44px; height: 44px; justify-content: center; } }
@media (max-width: 1180px) {
  .main-nav { display: none; }
  .menu-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 980px) {
  body { font-size: 16px; }
  .tiles { grid-template-columns: 1fr; gap: 10px; margin-top: -60px; }
  .tile { padding: 18px 20px; }
  .intro, .split, .news-bento { grid-template-columns: 1fr; gap: 40px; }
  .split.reverse .split-media { order: 0; }
  .stat:nth-child(2) { margin-left: 0; }
  .news-feature { min-height: 380px; }
  .home-agenda .events-list { grid-template-columns: 1fr; }
  .page-layout { grid-template-columns: 1fr; gap: 28px; }
  .section-nav { position: static; order: 2; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .event-item { grid-template-columns: auto 1fr; }
  .event-img { display: none; }
  .section { padding: 72px 0; }
  .newsletter { grid-template-columns: 1fr; padding: 30px; }
}
@media (max-width: 640px) {
  .wrap, .wrap-wide { width: calc(100% - 32px); }
  .header-inner { height: 70px; gap: 12px; }
  .logo img { height: 40px; }
  .pill-phone { display: none; }
  .home-hero { min-height: 560px; height: 86vh; border-radius: 20px; width: calc(100% - 16px); margin-top: 8px; }
  .hero-content { padding-bottom: 110px; }
  .hero-search .btn { padding: .8em 1em; font-size: .85rem; }
  .hero-search input { font-size: .95rem; }
  .page-hero { width: calc(100% - 16px); margin-top: 8px; min-height: 230px; border-radius: 20px; }
  .page-hero-text { padding: 60px 0 26px; }
  .page-body { padding: 36px 0 60px; }
  .home-news { width: calc(100% - 16px); }
  .news-row { grid-template-columns: 92px 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .post-nav { grid-template-columns: 1fr; }
  .post-nav .next { grid-column: auto; text-align: left; }
  .conseil_first_row, .conseil_second_row { grid-template-columns: repeat(2, 1fr); }
  .encadre { padding: 1.4em; border-radius: var(--r); }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .site-footer { padding-top: 50px; }
  .date-badge { width: 70px; }
  .split-media::before { inset: 16px -10px -10px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}
@media print {
  .site-header, .page-hero, .site-footer, .post-nav, .filters, .section-nav, .mobile-menu { display: none !important; }
}

/* Formulaire de contact : liste des sujets */
.contact-form select { width: 100%; font: inherit; font-size: 1rem; padding: .8em 2.6em .8em 1em; border: 1.5px solid var(--ligne); border-radius: var(--r-sm); background: var(--fond) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233f525b' stroke-width='2.2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 14px center / 18px no-repeat; color: var(--texte); appearance: none; -webkit-appearance: none; cursor: pointer; }
.contact-form select:focus { border-color: var(--vert); background-color: #fff; outline: none; box-shadow: 0 0 0 4px rgba(156,204,72,.2); }
