/* =========================================================
   Commune de Vaulion — feuille de style
   Direction : la brume du Jura sur le vallon — un matériau de
   verre clair (nav, en-tête, tuiles) posé sur un fond de lumière
   douce, au-dessus de surfaces de lecture pleines et sobres.
   Le verre est la signature du chrome, jamais du texte courant.
   Titres : Newsreader. Texte : Atkinson Hyperlegible.
   ========================================================= */
@font-face { font-family: "Newsreader"; src: url("../fonts/Newsreader.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/Atkinson-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/Atkinson-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/Atkinson-Italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

@property --mesh-a { syntax: "<percentage>"; inherits: false; initial-value: 18%; }
@property --mesh-b { syntax: "<percentage>"; inherits: false; initial-value: 78%; }

:root {
  color-scheme: light dark;
  --sapin: light-dark(#163821, #8fe3ab);
  --pre: light-dark(#0e7a38, #35c97a);
  --pre-vif: light-dark(#009539, #33d17e);
  --pre-clair: light-dark(#dcebe0, #1c3527);
  --pre-pale: light-dark(#eef6f0, #142a1e);
  --gueules: light-dark(#a8332b, #e2685a);
  --or: light-dark(#c99a1f, #e6c25a);
  --encre: light-dark(#16201a, #e7efe8);
  --pierre: light-dark(#55605a, #9fb0a2);
  --brume: light-dark(#d7e0da, rgba(255, 255, 255, .14));
  --fond: light-dark(#eef2ee, #0c150f);
  --papier: light-dark(#ffffff, #13201a);

  /* matériau verre — brume du Jura le jour, verre nocturne la nuit */
  --verre: light-dark(color-mix(in oklch, white 66%, var(--pre-pale)), rgba(255, 255, 255, .09));
  --verre-fort: light-dark(color-mix(in oklch, white 82%, var(--pre-pale)), rgba(255, 255, 255, .17));
  --verre-bord: light-dark(rgba(255, 255, 255, .65), rgba(255, 255, 255, .24));
  --verre-ombre: 0 20px 60px -24px light-dark(rgba(14, 32, 20, .35), rgba(0, 0, 0, .6)), inset 0 1px 0 light-dark(rgba(255, 255, 255, .65), rgba(255, 255, 255, .3)), inset 0 -1px 0 rgba(14, 32, 20, .05);
  --flou-s: 14px;
  --flou-m: 22px;
  --flou-l: 34px;

  --font-body: "Atkinson", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-head: "Newsreader", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --wrap: 74rem;
  --gutter: clamp(1rem, 4vw, 2.25rem);
  --measure: 42rem;
  --radius: 1.1rem;
  --radius-lg: 1.75rem;
  --radius-pill: 999px;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; font-family: var(--font-body); font-size: 1.0625rem; line-height: 1.55; color: var(--encre);
  background-color: var(--fond);
  background-repeat: no-repeat;
  background-image:
    radial-gradient(60rem 46rem at var(--mesh-a) -12%, light-dark(#dfeee2, #122619) 0%, transparent 62%),
    radial-gradient(52rem 44rem at 106% var(--mesh-b), light-dark(#e6eef4, #0f1a27) 0%, transparent 58%),
    radial-gradient(58rem 50rem at 46% 118%, light-dark(#f5efe1, #1d160d) 0%, transparent 62%);
  animation: mesh-drift 60s ease-in-out infinite alternate;
}
@keyframes mesh-drift { from { --mesh-a: 10%; --mesh-b: 70%; } to { --mesh-a: 26%; --mesh-b: 88%; } }

/* ---------- transitions de page natives ---------- */
@view-transition { navigation: auto; }
::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) {
  animation-duration: .5s; animation-timing-function: cubic-bezier(.16, 1, .3, 1);
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation-duration: 1ms !important; }
}
@media print { :root { color-scheme: light; } }

img, svg { max-width: 100%; height: auto; }
a { color: var(--pre); text-decoration-thickness: 1px; text-underline-offset: .15em; }
a:hover { color: var(--sapin); }
:focus-visible { outline: 3px solid var(--or); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); font-optical-sizing: auto; font-weight: 500; line-height: 1.12; color: var(--sapin); margin: 0; letter-spacing: -.008em; }
p { margin: 0 0 1rem; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 1rem; top: -4rem; background: var(--sapin); color: #fff; padding: .6rem 1rem; z-index: 100; border-radius: var(--radius); }
.skip:focus { top: 1rem; }
.btn { position: relative; overflow: hidden; display: inline-block; background: var(--pre); color: #fff; font-weight: 700; padding: .7rem 1.4rem; border: 0; border-radius: var(--radius); text-decoration: none; cursor: pointer; font: inherit; font-weight: 700; isolation: isolate; }
.btn::after { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .38) 46%, transparent 62%); background-size: 240% 240%; background-position: 130% 0; transition: background-position .55s ease; }
.btn:hover { background: var(--sapin); color: #fff; }
.btn:hover::after { background-position: -30% 0; }
@supports (corner-shape: squircle) { .btn { corner-shape: squircle; } }
.icon { width: 1.1em; height: 1.1em; vertical-align: -.2em; flex: none; }

/* ---------- en-tête flottant : capsule de verre ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: transparent; padding: 1rem var(--gutter) 0; transition: padding .35s ease; }
.site-header__inner {
  position: relative; isolation: isolate;
  max-width: var(--wrap); margin-inline: auto;
  display: flex; align-items: center; gap: 1rem 2rem; min-height: 3.9rem; flex-wrap: wrap;
  padding-inline: 1.35rem;
  background: var(--verre);
  -webkit-backdrop-filter: blur(var(--flou-m)) saturate(1.5);
  backdrop-filter: blur(var(--flou-m)) saturate(1.5);
  border: 1px solid var(--verre-bord);
  border-radius: var(--radius-pill);
  box-shadow: var(--verre-ombre);
  transition: background-color .4s ease, box-shadow .4s ease, border-radius .3s ease;
  view-transition-name: nav-pill;
}
@supports (corner-shape: squircle) { .site-header__inner { corner-shape: squircle; } }
.site-header__inner::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(220px 220px at var(--mx, 50%) var(--my, -20%), rgba(255, 255, 255, .55), transparent 72%);
  opacity: 0; transition: opacity .35s ease;
}
.site-header__inner:hover::before { opacity: 1; }
.site-header__inner::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(115deg, rgba(255, 190, 220, .5), rgba(190, 220, 255, .4) 35%, transparent 55%, rgba(255, 235, 180, .4) 100%);
  background-size: 220% 220%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .65; animation: rim-drift 16s ease-in-out infinite alternate;
}
@keyframes rim-drift { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
.site-header.is-scrolled .site-header__inner { background: var(--verre-fort); box-shadow: 0 26px 70px -22px rgba(14, 32, 20, .4), inset 0 1px 0 rgba(255, 255, 255, .7); }
.site-header.nav-open .site-header__inner { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
.brand { display: flex; align-items: center; gap: .75rem; color: var(--sapin); text-decoration: none; padding: .6rem 0; margin-right: auto; }
.brand__logo { width: 42px; height: 50px; object-fit: contain; }
.brand__name { font-family: var(--font-head); font-size: 1.4rem; font-weight: 500; line-height: 1; white-space: nowrap; }
.nav-toggle { display: none; align-items: center; gap: .5rem; background: none; border: 1px solid var(--verre-bord); border-radius: var(--radius-pill); padding: .5rem .9rem; font: inherit; font-weight: 700; color: var(--sapin); cursor: pointer; }
.nav-toggle__bars { display: block; width: 18px; height: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; align-items: stretch; gap: .15rem; }
.nav__item { position: static; }
.nav__link { display: flex; align-items: center; height: 100%; padding: .75rem .7rem; background: none; border: 0; border-bottom: 3px solid transparent; font: inherit; color: var(--encre); text-decoration: none; cursor: pointer; white-space: nowrap; border-radius: var(--radius); }
.nav__link:hover, .nav__item.is-active > .nav__link, .nav__item.is-open > .nav__link { color: var(--sapin); border-bottom-color: var(--pre-vif); }
.nav__item--sub > .nav__link::after { content: ""; width: .45em; height: .45em; margin-left: .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.15em) rotate(45deg); transition: transform .25s ease; }
.nav__item--sub.is-open > .nav__link::after { transform: translateY(-.05em) rotate(-135deg); }
.sub {
  display: none; position: absolute; left: 0; right: 0; top: calc(100% + .55rem);
  background: var(--verre-fort);
  -webkit-backdrop-filter: blur(var(--flou-l)) saturate(1.4);
  backdrop-filter: blur(var(--flou-l)) saturate(1.4);
  border: 1px solid var(--verre-bord); border-radius: var(--radius-lg);
  box-shadow: var(--verre-ombre);
}
@supports (corner-shape: squircle) { .sub { corner-shape: squircle; } }
.sub__inner { padding: 1.5rem 1.6rem 1.75rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 1.5rem 2.5rem; }
.sub__title { font-size: 1.05rem; font-weight: 500; margin: 0 0 .5rem; padding-bottom: .35rem; border-bottom: 1px solid var(--verre-bord); }
.sub__title a { color: var(--sapin); text-decoration: none; }
.sub__list { list-style: none; margin: 0; padding: 0; }
.sub__list li { margin: 0; }
.sub__list a { display: block; padding: .28rem 0; color: var(--encre); text-decoration: none; }
.sub__list a:hover, .sub__list a[aria-current] { color: var(--pre); text-decoration: underline; }
.nav__item--sub.is-open .sub { display: block; }
.search { display: flex; align-items: center; }
.search__input { font: inherit; font-size: .95rem; width: 9rem; padding: .45rem .7rem; border: 1px solid var(--verre-bord); border-right: 0; border-radius: var(--radius-pill) 0 0 var(--radius-pill); background: rgba(255, 255, 255, .55); }
.search__input:focus { border-color: var(--pre); outline: none; background: #fff; }
.search__btn { display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .4); border: 1px solid var(--verre-bord); border-radius: 0 var(--radius-pill) var(--radius-pill) 0; padding: .45rem .6rem; color: var(--sapin); cursor: pointer; }
.search__btn:hover { background: rgba(255, 255, 255, .75); }
.search--page { margin: 1rem 0 2rem; gap: .5rem; }
.search--page .search__input { flex: 1; width: auto; border-right: 1px solid var(--verre-bord); border-radius: var(--radius); font-size: 1.05rem; padding: .65rem .8rem; background: var(--papier); }

@media (min-width: 64em) {
  .nav__item--sub:hover .sub, .nav__item--sub:focus-within .sub { display: block; }
}
@media (max-width: 63.99em) {
  .site-header__inner { min-height: 3.6rem; }
  .brand__name { font-size: 1.2rem; }
  .nav-toggle { display: inline-flex; }
  .nav {
    display: none; width: 100%; margin-top: .6rem; padding-bottom: .5rem;
    background: var(--verre-fort);
    -webkit-backdrop-filter: blur(var(--flou-l)) saturate(1.4);
    backdrop-filter: blur(var(--flou-l)) saturate(1.4);
    border: 1px solid var(--verre-bord); border-top: 0; border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--verre-ombre);
  }
  .site-header.nav-open .nav { display: block; }
  .nav__list { flex-direction: column; gap: 0; padding-inline: .5rem; }
  .nav__link { width: 100%; text-align: left; padding: .8rem .6rem; border-bottom: 1px solid var(--verre-bord); justify-content: space-between; white-space: normal; border-radius: 0; }
  .nav__item--sub > .nav__link::after { margin-left: auto; }
  .sub { position: static; box-shadow: none; border: 0; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border-radius: 0; }
  .sub__inner { padding: .25rem .75rem 1rem 1.5rem; gap: 1rem 1.5rem; }
  .nav__item--search { padding: .75rem .6rem 0; }
  .search__input { flex: 1; width: auto; }
}

/* ---------- accueil ---------- */
.hero { position: relative; }
.hero__img { display: block; width: 100%; height: clamp(17rem, 52vh, 36rem); object-fit: cover; }
.hero__band {
  position: absolute; left: var(--gutter); right: auto; bottom: clamp(1.25rem, 5vw, 3rem);
  isolation: isolate;
  width: min(92%, 31rem);
  background: var(--verre-fort);
  -webkit-backdrop-filter: blur(var(--flou-l)) saturate(1.5);
  backdrop-filter: blur(var(--flou-l)) saturate(1.5);
  border: 1px solid var(--verre-bord); border-radius: var(--radius-lg);
  box-shadow: var(--verre-ombre);
  padding: 2rem 2.1rem;
  animation: rise-in .7s cubic-bezier(.16, 1, .3, 1) both;
  view-transition-name: hero-card;
}
@supports (corner-shape: squircle) { .hero__band { corner-shape: squircle; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.hero__band::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(260px 260px at var(--mx, 30%) var(--my, -10%), light-dark(rgba(255, 255, 255, .6), rgba(255, 255, 255, .28)), transparent 72%);
  opacity: 0; transition: opacity .35s ease;
}
.hero__band:hover::before { opacity: 1; }
.hero__band::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(115deg, rgba(255, 190, 220, .45), rgba(190, 220, 255, .35) 35%, transparent 55%, rgba(255, 235, 180, .35) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .6;
}
.hero__band .wrap { max-width: none; padding: 0; margin: 0; }
.hero__title {
  font-family: var(--font-head); font-weight: 400; font-variation-settings: "wght" 400; font-size: clamp(2.5rem, 6vw, 4.5rem); line-height: 1; color: var(--sapin); margin: 0;
  animation: type-settle .9s .15s cubic-bezier(.2, .9, .25, 1) both;
}
@keyframes type-settle { from { font-variation-settings: "wght" 230; opacity: 0; } to { font-variation-settings: "wght" 400; opacity: 1; } }
.hero__slogan { margin: .55rem 0 0; font-size: 1.05rem; color: var(--pierre); max-width: 30rem; }
.hero--nophoto { background: var(--fond); }
.hero--nophoto .hero__band { position: static; width: auto; background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; border: 0; box-shadow: none; padding: 4.5rem 0; animation: none; }
.hero--nophoto .hero__band::after { display: none; }
.hero--nophoto .hero__band .wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.welcome { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(16rem, 1fr); gap: 2.5rem; padding: 3rem 0 2rem; }
.welcome__text h2 { font-size: 1.6rem; margin-bottom: .75rem; }
.welcome__hours {
  background: var(--verre); -webkit-backdrop-filter: blur(var(--flou-s)); backdrop-filter: blur(var(--flou-s));
  border: 1px solid var(--verre-bord); border-left: 4px solid var(--pre-vif);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; align-self: start;
}
.welcome__hours-title { font-size: 1.25rem; margin-bottom: .75rem; }
.welcome__hours p:last-child { margin-bottom: 0; }
.section-title { position: relative; font-size: 1.7rem; padding-bottom: .55rem; margin-bottom: 1.35rem; border: 0; }
.section-title::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; width: 3rem; border-radius: 2px; background: linear-gradient(90deg, var(--pre-vif), var(--or)); }
.board { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 3rem; padding: 1.25rem 0 2.5rem; }
@supports (animation-timeline: view()) {
  .board { animation: rise-in .6s ease both; animation-timeline: view(); animation-range: entry 0% entry 45%; }
}
.more { margin-top: 1rem; }
.more a { font-weight: 700; }
.tiles {
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 1.1rem; padding: .5rem 0 2.75rem;
}
.tiles .tile:first-child { grid-column: span 2; grid-row: span 2; padding: 1.75rem; justify-content: flex-end; }
.tiles .tile:first-child .tile__img { width: 4.4rem; height: 4.4rem; }
.tiles .tile:first-child .tile__title { font-size: 1.4rem; }
.tile {
  position: relative; isolation: isolate;
  display: flex; flex-direction: column; align-items: flex-start; gap: .75rem;
  background: var(--verre); -webkit-backdrop-filter: blur(var(--flou-s)) saturate(1.3); backdrop-filter: blur(var(--flou-s)) saturate(1.3);
  border: 1px solid var(--verre-bord); border-bottom: 3px solid var(--pre-vif);
  border-radius: var(--radius); box-shadow: 0 12px 32px -18px rgba(14, 32, 20, .3);
  padding: 1.3rem 1.3rem 1.05rem; color: var(--sapin); text-decoration: none; font-weight: 700; font-size: 1.08rem;
  transition: transform .35s cubic-bezier(.16, 1, .3, 1), box-shadow .35s ease, background-color .35s ease;
}
@supports (corner-shape: squircle) { .tile { corner-shape: squircle; } }
.tile::before {
  content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: radial-gradient(200px 200px at var(--mx, 30%) var(--my, -10%), light-dark(rgba(255, 255, 255, .55), rgba(255, 255, 255, .22)), transparent 72%);
  opacity: 0; transition: opacity .35s ease;
}
.tile:hover::before { opacity: 1; }
.tile::after {
  content: ""; position: absolute; inset: 0; z-index: 2; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(115deg, rgba(255, 190, 220, .4), rgba(190, 220, 255, .3) 35%, transparent 55%, rgba(255, 235, 180, .3) 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: .5;
}
.tile:hover { transform: translateY(-4px); background: var(--verre-fort); box-shadow: 0 20px 44px -20px rgba(14, 32, 20, .4); }
.tile__img { width: 3.4rem; height: 3.4rem; object-fit: contain; }
@media (max-width: 40em) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tiles .tile:first-child { grid-column: span 2; grid-row: span 1; padding: 1.3rem 1.3rem 1.05rem; justify-content: flex-start; }
  .tiles .tile:first-child .tile__img { width: 3.4rem; height: 3.4rem; }
  .tiles .tile:first-child .tile__title { font-size: 1.08rem; }
}
.quicklinks { padding: 0 0 3rem; }
.quicklinks__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem 0; }
.quicklinks__list li { padding: 0 1rem 0 0; margin-right: 1rem; border-right: 1px solid var(--brume); }
.quicklinks__list li:last-child { border: 0; }

/* ---------- actualités / agenda ---------- */
.news { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: .25rem 1rem; padding: 1.1rem 0; border-bottom: 1px solid var(--brume); }
.news__date { color: var(--pierre); font-size: .95rem; padding-top: .2rem; }
.news__title { font-size: 1.25rem; margin-bottom: .35rem; }
.news__title a { color: var(--sapin); text-decoration: none; }
.news__title a:hover { text-decoration: underline; }
.news__text p:last-child { margin-bottom: 0; }
.news__links { list-style: none; margin: .6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.news-list .news:first-child { padding-top: 0; }
.event { display: grid; grid-template-columns: 3.75rem minmax(0, 1fr); gap: 1rem; padding: .95rem 0; border-bottom: 1px solid var(--brume); }
.event__date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--verre); -webkit-backdrop-filter: blur(var(--flou-s)); backdrop-filter: blur(var(--flou-s));
  border: 1px solid var(--verre-bord); border-top: 3px solid var(--gueules);
  border-radius: var(--radius); padding: .32rem 0 .38rem; line-height: 1.05;
}
@supports (corner-shape: squircle) { .event__date { corner-shape: squircle; } }
.event__day { font-family: var(--font-head); font-size: 1.6rem; color: var(--encre); }
.event__month { font-size: .8rem; color: var(--pierre); }
.event__title { font-size: 1.15rem; margin-bottom: .2rem; }
.event__title a { color: var(--sapin); text-decoration: none; }
.event__title a:hover { text-decoration: underline; }
.event__meta { margin: 0; color: var(--pierre); font-size: .95rem; }
.event__meta::first-letter { text-transform: uppercase; }
.event__text { margin-top: .5rem; }
.event-list { margin-bottom: 2.5rem; }
.event-list--past .event { opacity: .8; }
.single__date { color: var(--pierre); margin-bottom: .5rem; }
.single__date::first-letter { text-transform: uppercase; }
.single__img { display: block; margin: 1.5rem 0; border-radius: var(--radius); }
.back { margin-top: 2.5rem; padding-top: 1rem; border-top: 1px solid var(--brume); }
.pager { display: flex; align-items: center; gap: 1.5rem; margin-top: 2rem; }
.pager__info { color: var(--pierre); }

/* ---------- pages ---------- */
.page { padding: 1.5rem 0 3.5rem; }
.page--narrow { max-width: calc(var(--measure) + 2 * var(--gutter) + 8rem); }
.crumbs__list { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 0; font-size: .92rem; color: var(--pierre); }
.crumbs__list li + li::before { content: "/"; margin: 0 .5rem; color: var(--brume); }
.crumbs__list a { color: var(--pierre); }
.page__title { font-size: clamp(2rem, 4vw, 2.5rem); margin-bottom: 1.25rem; max-width: 30ch; }
.lede { font-size: 1.15rem; color: var(--pierre); max-width: var(--measure); margin-bottom: 1.5rem; }
.page__grid { display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 3.5rem; align-items: start; }
.page__grid--single { grid-template-columns: minmax(0, 1fr); }
.page__main { min-width: 0; }
.page__aside { border-top: 1px solid var(--brume); padding-top: 1.25rem; }
.aside-block { border-left: 3px solid var(--pre-vif); padding-left: 1rem; margin-bottom: 2rem; }
.aside-block__title { font-size: 1.2rem; margin-bottom: .75rem; }
.aside-block__sub { font-size: 1.05rem; margin: 1rem 0 .3rem; }
.aside-block p:last-child { margin-bottom: 0; }
.doc-list, .link-list { list-style: none; margin: 0; padding: 0; }
.doc-list li, .link-list li { margin-bottom: .6rem; }
.doc-link { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .1rem .5rem; text-decoration: none; color: var(--encre); }
.doc-link .icon { grid-row: span 2; color: var(--gueules); margin-top: .15rem; }
.doc-link__title { text-decoration: underline; text-decoration-color: var(--brume); text-underline-offset: .15em; }
.doc-link:hover .doc-link__title { color: var(--pre); text-decoration-color: currentColor; }
.doc-link__meta { font-size: .85rem; color: var(--pierre); }
.doc-link--inline { display: inline-flex; align-items: center; gap: .4rem; text-decoration: underline; text-decoration-color: var(--brume); }
.doc-link--inline:hover { color: var(--pre); }
.link-item { display: inline-flex; align-items: flex-start; gap: .4rem; }
.link-item .icon { color: var(--pierre); margin-top: .15rem; }
.embed { margin-top: 2rem; }
.embed iframe, .prose iframe { width: 100%; min-height: 34rem; border: 1px solid var(--brume); border-radius: var(--radius); background: #fff; }

/* contenu rédactionnel */
.prose { max-width: var(--measure); }
.prose > :first-child { margin-top: 0; }
.prose h2 { font-size: 1.55rem; margin: 2rem 0 .75rem; }
.prose h3 { font-size: 1.25rem; margin: 1.6rem 0 .5rem; }
.prose h4 { font-size: 1.05rem; font-family: var(--font-body); font-weight: 700; margin: 1.25rem 0 .4rem; }
.prose ul, .prose ol { margin: 0 0 1rem; padding-left: 1.4rem; }
.prose li { margin-bottom: .3rem; }
.prose li p { margin-bottom: .3rem; }
.prose hr { border: 0; border-top: 1px solid var(--brume); margin: 2rem 0; }
.prose blockquote { margin: 1.25rem 0; padding-left: 1rem; border-left: 3px solid var(--brume); color: var(--pierre); }
.prose figure { margin: 1.5rem 0; }
.prose figure img { display: block; border-radius: var(--radius); }
.prose figcaption { font-size: .9rem; color: var(--pierre); margin-top: .4rem; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.25rem 0; font-size: .97rem; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid var(--brume); }
.prose th { color: var(--sapin); font-weight: 700; border-bottom-color: var(--sapin); }
.prose tr:first-child td { border-top: 1px solid var(--brume); }
.prose td figure { margin: .25rem 0; }
.prose td img { max-height: 5rem; width: auto; }
.prose a[href$=".pdf"]::after, .prose a[href$=".PDF"]::after { content: " (PDF)"; font-size: .85em; color: var(--pierre); }
.prose strong { color: var(--encre); }

/* listes de pages */
.groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 2rem 3rem; margin-top: 1rem; }
.group__title { font-size: 1.35rem; padding-bottom: .4rem; margin-bottom: .6rem; border-bottom: 2px solid var(--sapin); }
.group__title a { color: var(--sapin); text-decoration: none; }
.group__list { list-style: none; margin: 0; padding: 0; }
.group__list a { display: block; padding: .3rem 0; color: var(--encre); text-decoration: none; border-bottom: 1px solid var(--brume); }
.group__list a:hover { color: var(--pre); }
.pagelist { list-style: none; margin: 0; padding: 0; max-width: var(--measure); }
.pagelist__item { padding: 1rem 0; border-bottom: 1px solid var(--brume); }
.pagelist__title { font-size: 1.3rem; margin-bottom: .3rem; }
.pagelist__title a { color: var(--sapin); text-decoration: none; }
.pagelist__title a:hover { text-decoration: underline; }
.pagelist__excerpt { margin: 0; color: var(--pierre); }
.results { list-style: none; margin: 0; padding: 0; }
.results__item { padding: 1rem 0; border-bottom: 1px solid var(--brume); }
.results__path { font-size: .85rem; color: var(--pierre); margin-bottom: .2rem; }
.results__title { font-size: 1.25rem; margin-bottom: .3rem; }
.results__excerpt { margin: 0; }

/* municipalité */
.members { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 2rem; }
.member__photo { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--pre-pale); border-bottom: 3px solid var(--pre-vif); border-radius: var(--radius) var(--radius) 0 0; }
.member__photo--empty { background: var(--pre-pale) linear-gradient(160deg, var(--pre-clair), var(--pre-pale)); }
.member__body { padding-top: .8rem; }
.member__name { font-size: 1.35rem; }
.member__role { margin: .1rem 0 .4rem; font-weight: 700; color: var(--pre); }
.member__dic { margin-bottom: .5rem; color: var(--pierre); font-size: .95rem; }
.member__contact { margin: 0; font-size: .95rem; }

/* formulaire */
.form { max-width: var(--measure); margin-top: 1rem; }
.form__row { margin-bottom: 1.1rem; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-weight: 700; margin-bottom: .3rem; }
.form input, .form textarea { width: 100%; font: inherit; padding: .6rem .7rem; border: 1px solid var(--pierre); border-radius: var(--radius); background: #fff; color: var(--encre); }
.form input:focus, .form textarea:focus { border-color: var(--pre); outline: 3px solid var(--pre-clair); outline-offset: 0; }
.form__trap { position: absolute; left: -9999px; }
.notice { padding: 1rem 1.25rem; margin: 1rem 0 1.5rem; border-left: 4px solid var(--pre-vif); border-radius: var(--radius); background: var(--pre-pale); max-width: var(--measure); }
.notice--error { border-left-color: var(--gueules); background: #faeeed; }
.notice p { margin: 0; }

/* ---------- pied de page ---------- */
.site-footer { background: var(--sapin); color: #dbe6dd; margin-top: 3rem; }
.site-footer a { color: #fff; }
.site-footer__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); gap: 2rem 3rem; padding: 3rem var(--gutter) 2rem; }
.site-footer__brand { display: flex; align-items: center; gap: .6rem; font-family: var(--font-head); font-size: 1.35rem; color: #fff; margin-bottom: 1rem; }
.site-footer__title { font-size: 1.15rem; color: #fff; margin-bottom: .75rem; }
.site-footer__links { list-style: none; margin: 0; padding: 0; }
.site-footer__links li { margin-bottom: .35rem; }
.site-footer__bottom { border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 1rem; padding-bottom: 1.25rem; font-size: .9rem; }
.site-footer__bottom p { margin: 0; }
body { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

/* ---------- accessibilité : verre en solide si demandé ---------- */
@media (prefers-reduced-transparency: reduce) {
  body { animation: none; background-image: none; }
  .site-header__inner, .sub, .nav, .hero__band, .welcome__hours, .tile, .event__date {
    background: var(--papier) !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important;
  }
  .hero__band { border: 1px solid var(--brume); }
  .site-header__inner::before, .site-header__inner::after,
  .hero__band::before, .hero__band::after,
  .tile::before, .tile::after { display: none; }
}
@media (prefers-contrast: more) {
  .site-header__inner, .sub, .nav, .hero__band, .welcome__hours, .tile, .event__date { background: var(--papier); backdrop-filter: none; -webkit-backdrop-filter: none; border-color: var(--sapin); }
  .site-header__inner::before, .site-header__inner::after,
  .hero__band::before, .hero__band::after,
  .tile::before, .tile::after { display: none; }
}

/* ---------- petits écrans ---------- */
@media (max-width: 52em) {
  .welcome, .board { grid-template-columns: 1fr; gap: 1.75rem; }
  .page__grid { grid-template-columns: 1fr; gap: 2rem; }
  .news { grid-template-columns: 1fr; gap: 0; }
  .form__row--2 { grid-template-columns: 1fr; }
  .hero__band { left: var(--gutter); right: var(--gutter); width: auto; }
}
@media print {
  .site-header, .site-footer, .crumbs, .skip { display: none; }
  body { background: #fff; animation: none; }
  .page__grid { grid-template-columns: 1fr; }
  .hero__band { position: static; width: auto; background: none; box-shadow: none; border: 0; }
}
