/* ============================================================================
   Mairie d'Andert-et-Condon, Feuille de style principale
   Style : institutionnel, sobre, éditorial et élégant (WCAG AA+)
   ========================================================================== */

/* ------------------------------------------------------------------ Tokens */
:root {
  /* Couleurs, palette forêt / village */
  --ink:        #14271B;   /* vert forêt très sombre, titres, texte fort */
  --ink-2:      #34453B;   /* texte secondaire (vert-gris) */
  --ink-3:      #5F7065;   /* texte discret */
  --blue:       #2E7D4F;   /* vert principal, liens, CTA */
  --blue-dark:  #1E5C39;
  --blue-700:   #163F28;
  --blue-light: #DDEFDF;
  --green:      #2E7D4F;
  --green-soft: #EAF4EA;
  --moss:       #7BA25C;   /* vert mousse, décor secondaire */
  --paper:      #F4F8F0;   /* fond général légèrement verdâtre */
  --paper-2:    #FFFFFF;   /* cartes */
  --sand:       #EFE9DB;   /* fond chaud alterné (bois / terroir) */
  --sand-line:  #E1D8C4;
  --accent:     #C0873A;   /* ambre chaud / bois, chaleur village */
  --accent-dark:#94652A;
  --line:       #DFE7DB;   /* filets, bordures verdâtres */
  --line-strong:#C4D2C1;
  --danger:     #B91C1C;
  --ok:         #15803D;

  /* Typographie */
  --font-display: 'Libre Bodoni', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* Rythme */
  --container: 1200px;
  --container-wide: 1360px;
  --radius: 4px;
  --radius-lg: 10px;
  --radius-xl: 18px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06), 0 1px 3px rgba(15,23,42,.05);
  --shadow-md: 0 10px 30px -12px rgba(15,23,42,.18);
  --shadow-lg: 0 30px 60px -20px rgba(15,23,42,.28);
  --ease: cubic-bezier(.22,.61,.36,1);
  --nav-h: 76px;

  /* z-index scale */
  --z-nav: 100;
  --z-menu: 200;
  --z-top: 300;
}

/* --------------------------------------------------------------- Base reset */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 14px); /* les ancres ne passent pas sous la nav fixe */
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;      /* 17px */
  line-height: 1.7;
  color: var(--ink-2);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--blue); text-decoration: none; transition: color .2s var(--ease); }
a:hover { color: var(--blue-dark); }
ul, ol { margin: 0; padding: 0; }
button { font-family: inherit; cursor: pointer; }
:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Skip link (accessibilité) */
.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); z-index: var(--z-top);
  transition: top .2s var(--ease); font-weight: 600;
}
.skip-link:focus { top: 12px; color:#fff; }

/* --------------------------------------------------------------- Typographie */
h1,h2,h3,h4 { font-family: var(--font-display); color: var(--ink); font-weight: 600; line-height: 1.12; margin: 0 0 .5em; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); line-height: 1.2; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1.1em; }
p:last-child { margin-bottom: 0; }
strong { color: var(--ink); font-weight: 600; }

.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-body);
  font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--blue); margin: 0 0 1.1rem;
}
.kicker::before {
  content: ""; width: 30px; height: 2px; background: var(--accent); display: inline-block;
}
.kicker.is-light { color: #C6E7CE; }
.kicker.is-light::before { background: #C6E7CE; }

.lead { font-size: clamp(1.1rem, 1.6vw, 1.32rem); line-height: 1.6; color: var(--ink-2); }
.section-title { max-width: 40ch; }
.text-center { text-align: center; }
.muted { color: var(--ink-3); }

/* ------------------------------------------------------------------- Layout */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: clamp(1.25rem, 4vw, 2.5rem); }
.container.wide { max-width: var(--container-wide); }
.section { padding-block: clamp(4rem, 9vw, 8rem); position: relative; }
.section.tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section--sand { background: var(--sand); }
.section--ink { background: var(--ink); color: #C4D5C7; }
.section--ink h2, .section--ink h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2.2rem, 4vw, 3.4rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.grid { display: grid; gap: clamp(1.2rem, 2.5vw, 2rem); }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }

/* --------------------------------------------------------------- Boutons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  padding: .85rem 1.5rem; border-radius: 999px; font-weight: 600; font-size: 1rem;
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .22s var(--ease), color .22s var(--ease), border-color .22s var(--ease), box-shadow .22s var(--ease), transform .1s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 1.1em; height: 1.1em; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--blue-dark); color:#fff; box-shadow: 0 10px 26px -8px rgba(46,125,79,.55); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); background: rgba(15,23,42,.03); }
.btn--on-dark { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.4); backdrop-filter: blur(6px); }
.btn--on-dark:hover { background: #fff; color: var(--ink); border-color:#fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--blue-light); color: var(--blue-700); }
.btn--sm { padding: .55rem 1rem; font-size: .9rem; }

/* --------------------------------------------------------- Navigation */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: var(--z-nav);
  height: var(--nav-h); display: flex; align-items: center;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
  border-bottom: 1px solid transparent;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; width:100%; }
.nav.is-scrolled { background: rgba(248,250,252,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); box-shadow: 0 4px 20px -14px rgba(15,23,42,.5); }
/* Sur pages intérieures, la nav est solide dès le départ */
.nav.is-solid { background: rgba(248,250,252,.9); backdrop-filter: saturate(180%) blur(14px); border-bottom-color: var(--line); }

.brand { display: flex; align-items: center; gap: .7rem; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand__mark { width: 42px; height: 42px; flex: 0 0 auto; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; letter-spacing: -.01em; }
.brand__sub { font-size: .68rem; text-transform: uppercase; letter-spacing: .22em; color: var(--ink-3); margin-top: 3px; }
.nav.is-transparent .brand, .nav.is-transparent .brand__name { color: #fff; }
.nav.is-transparent .brand__sub { color: rgba(255,255,255,.75); }

.nav__links { display: flex; align-items: center; gap: .35rem; list-style: none; }
.nav__link {
  position: relative; padding: .5rem .85rem; border-radius: var(--radius); color: var(--ink-2);
  font-weight: 500; font-size: .97rem;
}
.nav__link::after {
  content:""; position:absolute; left: .85rem; right: .85rem; bottom: .35rem; height: 2px;
  background: var(--blue); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__link:hover, .nav__link[aria-current="page"] { color: var(--ink); }
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }
.nav.is-transparent .nav__link { color: rgba(255,255,255,.86); }
.nav.is-transparent .nav__link:hover, .nav.is-transparent .nav__link[aria-current="page"] { color:#fff; }
.nav__actions { display: flex; align-items: center; gap: .75rem; }

/* Sous-menu déroulant (Événements) */
.nav__item--has-sub { position: relative; align-self: stretch; display: flex; align-items: center; }
.nav__caret { display: inline-flex; align-items: center; margin-left: .28rem; opacity: .6; }
.nav__caret svg { width: .8em; height: .8em; }
.nav__sub {
  position: absolute; top: 100%; left: 0; min-width: 235px; list-style: none; margin: 0; padding: .4rem;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-md);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), visibility .18s; z-index: 20;
}
.nav__item--has-sub:hover .nav__sub,
.nav__item--has-sub:focus-within .nav__sub { opacity: 1; visibility: visible; transform: none; }
.nav__sub a { display: block; padding: .58rem .85rem; border-radius: var(--radius); color: var(--ink-2); font-size: .95rem; font-weight: 500; }
.nav__sub a::after { display: none; } /* pas de soulignement animé ici */
.nav__sub a:hover { background: var(--green-soft); color: var(--green-dark); }
.mobile-menu__links a.mobile-menu__sub { font-size: clamp(1.05rem, 4.5vw, 1.45rem); opacity: .82; padding-left: 1.4rem; }

.nav__toggle { display: none; width: 44px; height: 44px; align-items:center; justify-content:center; background: transparent; border: 1px solid var(--line-strong); border-radius: var(--radius); color: var(--ink); }
.nav.is-transparent .nav__toggle { color:#fff; border-color: rgba(255,255,255,.4); }
.nav__toggle svg { width: 22px; height: 22px; }

/* Menu mobile plein écran */
.mobile-menu {
  position: fixed; inset: 0; z-index: var(--z-menu); background: var(--ink); color: #fff;
  display: flex; flex-direction: column; padding: clamp(1.25rem,4vw,2rem);
  transform: translateY(-100%); transition: transform .45s var(--ease); visibility: hidden;
}
.mobile-menu.is-open { transform: translateY(0); visibility: visible; }
.mobile-menu__head { display:flex; align-items:center; justify-content: space-between; }
.mobile-menu__close { width:44px; height:44px; display:grid; place-items:center; background:transparent; border:1px solid rgba(255,255,255,.3); border-radius: var(--radius); color:#fff; }
.mobile-menu__links { list-style:none; margin: auto 0; display:flex; flex-direction: column; gap: .25rem; }
.mobile-menu__links a { color:#fff; font-family: var(--font-display); font-size: clamp(1.8rem, 8vw, 2.6rem); padding: .35rem 0; display:block; border-bottom: 1px solid rgba(255,255,255,.1); }
.mobile-menu__links a:hover { color: #A9DCB4; padding-left: .5rem; transition: padding .2s var(--ease), color .2s var(--ease); }
.mobile-menu__foot { display:flex; flex-wrap:wrap; gap: 1rem 2rem; color: rgba(255,255,255,.7); font-size:.95rem; }
.mobile-menu__foot a { color: rgba(255,255,255,.9); }

body.no-scroll { overflow: hidden; }

/* --------------------------------------------------------------- Hero */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; overflow: hidden; color: #fff; }
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media-inner { position: absolute; inset: 0; will-change: transform; }
.hero__media video, .hero__media img { width:100%; height:120%; object-fit: cover; }
.hero__media img { animation: kenburns 26s ease-in-out infinite alternate; transform-origin: 60% 40%; }
@keyframes kenburns { from { transform: scale(1.03); } to { transform: scale(1.15) translateX(-1.5%); } }
@media (prefers-reduced-motion: reduce) { .hero__media img { animation: none; } }
.hero__media::after {
  content:""; position:absolute; inset:0;
  background:
    linear-gradient(to top, rgba(10,28,17,.78) 0%, rgba(12,30,19,.30) 34%, rgba(12,30,19,.02) 58%, rgba(12,30,19,.12) 100%),
    linear-gradient(105deg, rgba(10,26,16,.40) 0%, rgba(10,26,16,0) 52%);
}
.hero__inner { position: relative; z-index: 1; width:100%; padding-bottom: clamp(3.5rem, 8vh, 7rem); padding-top: calc(var(--nav-h) + 2rem); }
.hero__content { max-width: 780px; }
.hero__title { font-size: clamp(2.9rem, 8.5vw, 6.2rem); color: #fff; line-height: 1; margin-bottom: .35em; letter-spacing: -.02em; }
.hero__subtitle { font-family: var(--font-body); font-weight: 500; font-size: clamp(1.05rem, 2.2vw, 1.45rem); color:#e2e8f0; margin-bottom: 1rem; }
.hero__accroche { font-size: clamp(1rem, 1.5vw, 1.18rem); color: rgba(255,255,255,.82); max-width: 60ch; margin-bottom: 2rem; }
.hero__cta { display:flex; flex-wrap: wrap; gap: .9rem; }
.hero__scroll {
  position:absolute; left:50%; bottom: 1.4rem; transform: translateX(-50%); z-index: 1;
  display:flex; flex-direction: column; align-items:center; gap:.5rem; color: rgba(255,255,255,.7);
  font-size:.72rem; letter-spacing:.2em; text-transform: uppercase;
}
.hero__scroll .mouse { width: 26px; height: 42px; border:2px solid rgba(255,255,255,.5); border-radius: 14px; position: relative; }
.hero__scroll .mouse::after { content:""; position:absolute; left:50%; top:8px; width:4px; height:8px; background:#fff; border-radius:2px; transform: translateX(-50%); animation: scrollDot 1.8s var(--ease) infinite; }
@keyframes scrollDot { 0%{opacity:0; transform: translate(-50%,0);} 30%{opacity:1;} 100%{opacity:0; transform: translate(-50%,14px);} }

/* Bandeau infos rapides sous le hero */
.quickbar { background: var(--ink); color: #C4D5C7; }
.quickbar__grid { display:grid; grid-template-columns: repeat(3, 1fr); }
.quickbar__item { display:flex; gap: 1rem; align-items:flex-start; padding: clamp(1.4rem,3vw,2.2rem); border-left: 1px solid rgba(255,255,255,.08); }
.quickbar__item:first-child { border-left: 0; }
.quickbar__item svg { width: 26px; height:26px; color: #A9DCB4; flex:0 0 auto; margin-top: 2px; }
.quickbar__item h3 { color:#fff; font-family: var(--font-body); font-size: .82rem; text-transform: uppercase; letter-spacing:.1em; margin-bottom:.35rem; font-weight:700; }
.quickbar__item p { margin:0; font-size: .98rem; color:#C4D5C7; }
.quickbar__item a { color: #fff; }

/* --------------------------------------------------------------- Commune */
.commune__grid { display:grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4.5rem); align-items:center; }
.commune__figure { position: relative; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 4/5; }
.commune__figure img { width:100%; height:100%; object-fit: cover; }
.stats { display:grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; margin-top: 2rem; }
.stat { background: var(--paper-2); padding: 1.4rem 1.5rem; }
.stat__value { font-family: var(--font-display); font-size: clamp(1.7rem, 3vw, 2.3rem); color: var(--ink); line-height:1; }
.stat__label { font-size:.85rem; color: var(--ink-3); margin-top:.4rem; text-transform: uppercase; letter-spacing:.06em; }

/* --------------------------------------------------------------- Services */
.services__grid { grid-template-columns: repeat(4, 1fr); }
.service {
  background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius-lg);
  padding: 1.8rem 1.6rem; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.service:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-4px); }
.service__icon { width: 52px; height:52px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display:grid; place-items:center; margin-bottom: 1.1rem; }
.service__icon svg { width: 26px; height:26px; }
.service h3 { margin-bottom: .5rem; }
.service p { font-size:.97rem; margin:0; }

/* --------------------------------------------------- Carrousel horizontal */
.hscroll-head { display:flex; align-items:flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.hscroll-controls { display:flex; gap:.6rem; }
.hscroll-btn { width:48px; height:48px; border-radius:999px; border:1.5px solid var(--line-strong); background: var(--paper-2); color: var(--ink); display:grid; place-items:center; transition: all .2s var(--ease); }
.hscroll-btn:hover:not(:disabled) { background: var(--ink); color:#fff; border-color: var(--ink); }
.hscroll-btn:disabled { opacity:.35; cursor: not-allowed; }
.hscroll-btn svg { width:20px; height:20px; }

.hscroll {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(84vw, 380px);
  gap: clamp(1rem, 2vw, 1.6rem); overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem clamp(1.25rem,4vw,2.5rem) 1.5rem; margin-inline: calc(-1 * clamp(1.25rem,4vw,2.5rem));
  scrollbar-width: thin; scroll-behavior: smooth;
}
.hscroll > * { scroll-snap-align: start; }
.hscroll::-webkit-scrollbar { height: 8px; }
.hscroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 999px; }
.hscroll.grabbing { cursor: grabbing; scroll-behavior: auto; }

/* --------------------------------------------------- Carte collaborateur */
.person {
  background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius-xl);
  overflow: hidden; display:flex; flex-direction: column; height:100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.person:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.person__photo { aspect-ratio: 4/3.4; overflow: hidden; background: linear-gradient(135deg, var(--ink) 0%, var(--blue-700) 100%); position: relative; }
.person__photo img { width:100%; height:100%; object-fit: cover; }
.person__monogram { position:absolute; inset:0; display:grid; place-items:center; font-family: var(--font-display); font-size: 3.2rem; color: rgba(255,255,255,.85); }
.person__body { padding: 1.4rem 1.5rem 1.6rem; display:flex; flex-direction: column; flex:1; }
.person__role { font-size:.72rem; font-weight:700; letter-spacing:.12em; text-transform: uppercase; color: var(--blue); margin-bottom:.5rem; }
.person__name { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height:1.1; margin-bottom:.6rem; }
.person__mission { font-size:.95rem; color: var(--ink-2); flex:1; }
.person__contact { display:flex; flex-wrap:wrap; gap:.4rem .9rem; margin-top: 1.1rem; padding-top: 1.1rem; border-top:1px solid var(--line); font-size:.9rem; }
.person__contact a { display:inline-flex; align-items:center; gap:.4rem; color: var(--ink-2); }
.person__contact a:hover { color: var(--blue); }
.person__contact svg { width:16px; height:16px; color: var(--ink-3); }

/* --------------------------------------------------- Carte événement */
.event {
  background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius-xl);
  overflow:hidden; display:flex; flex-direction:column; height:100%; position: relative;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.event:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.event__media { aspect-ratio: 16/10; position: relative; overflow:hidden; background: var(--sand); }
.event__media img { width:100%; height:100%; object-fit:cover; transition: transform .5s var(--ease); }
.event:hover .event__media img { transform: scale(1.05); }
.event__media--placeholder { background: linear-gradient(135deg, var(--sand) 0%, var(--sand-line) 100%); display:grid; place-items:center; }
.event__media--placeholder svg { width: 46px; height:46px; color: var(--accent); opacity:.55; }
.event__date {
  position:absolute; top: 12px; left: 12px; background: var(--paper-2); border-radius: var(--radius);
  padding: .5rem .7rem; text-align:center; line-height:1; box-shadow: var(--shadow-sm); min-width: 58px;
}
.event__date .d { font-family: var(--font-display); font-size: 1.5rem; color: var(--ink); }
.event__date .m { font-size:.68rem; text-transform: uppercase; letter-spacing:.1em; color: var(--blue); font-weight:700; margin-top:2px; }
.event__tag { position:absolute; top:14px; right:12px; background: rgba(15,23,42,.82); color:#fff; font-size:.7rem; font-weight:600; letter-spacing:.05em; padding:.3rem .6rem; border-radius: 999px; backdrop-filter: blur(4px); }
.event__body { padding: 1.3rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.event__title { font-size:1.25rem; margin-bottom:.5rem; }
.event__meta { display:flex; flex-wrap:wrap; gap:.3rem 1rem; font-size:.85rem; color: var(--ink-3); margin-bottom:.8rem; }
.event__meta span { display:inline-flex; align-items:center; gap:.35rem; }
.event__meta svg { width:15px; height:15px; }
.event__desc { font-size:.95rem; color: var(--ink-2); margin:0; }
.badge-une { position:absolute; top:0; left:0; background: var(--accent); color:#fff; font-size:.68rem; font-weight:700; letter-spacing:.08em; text-transform: uppercase; padding:.3rem .8rem; border-bottom-right-radius: var(--radius-lg); z-index:2; }

/* ---------------------------------------------- Section horizontale épinglée */
.pinwrap { position: relative; }
.pin { position: sticky; top: 0; height: 100svh; display:flex; align-items:center; overflow:hidden; }
.pin__track { display:flex; gap: clamp(1.2rem, 2.5vw, 2rem); padding-inline: clamp(1.25rem,6vw,6rem); will-change: transform; }
.pin__intro { flex: 0 0 min(80vw, 460px); display:flex; flex-direction:column; justify-content:center; padding-right: 2rem; }
.pin__cards { display: contents; }
.pin__track .event { flex: 0 0 min(82vw, 360px); }
.pin__progress { position:absolute; left: clamp(1.25rem,6vw,6rem); right: clamp(1.25rem,6vw,6rem); bottom: 4vh; height: 3px; background: var(--line); border-radius:999px; overflow:hidden; }
.pin__progress i { display:block; height:100%; width:0; background: var(--blue); }
@media (prefers-reduced-motion: reduce) {
  .pin { position: static; height:auto; }
  .pin__track { overflow-x:auto; scroll-snap-type:x mandatory; }
}

/* --------------------------------------------------------------- Horaires */
.hours { border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; background: var(--paper-2); }
.hours__row { display:flex; justify-content: space-between; gap:1rem; padding: .85rem 1.25rem; border-top:1px solid var(--line); }
.hours__row:first-child { border-top:0; }
.hours__row.is-open { background: rgba(46,125,79,.05); }
.hours__row.is-today { background: var(--blue-light); }
.hours__day { font-weight:600; color: var(--ink); }
.hours__slots { text-align:right; color: var(--ink-2); }
.hours__slots .closed { color: var(--ink-3); }

/* --------------------------------------------------------------- Déchetterie */
.decheterie__grid { grid-template-columns: 1fr 1fr; align-items:start; }
.chips { display:flex; flex-direction:column; gap: .9rem; }
.chip {
  display:flex; gap:1rem; align-items:flex-start; padding: 1.1rem 1.3rem; border-radius: var(--radius-lg);
  background: var(--paper-2); border:1px solid var(--line);
}
.chip__icon { width:44px; height:44px; border-radius:10px; display:grid; place-items:center; flex:0 0 auto; }
.chip__icon svg { width:22px; height:22px; }
.chip--ok .chip__icon { background:#dcfce7; color: var(--ok); }
.chip--no .chip__icon { background:#fee2e2; color: var(--danger); }
.chip--info .chip__icon { background: var(--blue-light); color: var(--blue); }
.chip h4 { margin:0 0 .25rem; font-family: var(--font-body); font-size:.98rem; }
.chip p { margin:0; font-size:.93rem; color: var(--ink-2); }
.collecte { list-style:none; display:grid; gap:.7rem; }
.collecte li { display:flex; justify-content: space-between; gap:1rem; padding:.9rem 1.2rem; background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius); }
.collecte .type { font-weight:600; color: var(--ink); }
.collecte .jour { color: var(--blue); font-weight:600; white-space:nowrap; }
.collecte .note { display:block; font-size:.85rem; color: var(--ink-3); font-weight:400; }

/* --------------------------------------------------- Grille des élus */
.people__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 900px) { .people__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people__grid { grid-template-columns: 1fr; } }

/* --------------------------------------------------------------- Actualités */
.news__grid { grid-template-columns: repeat(3, 1fr); }
.news-card { background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; display:flex; flex-direction:column; transition: box-shadow .3s var(--ease), transform .3s var(--ease); }
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.news-card__media { aspect-ratio: 16/9; background: var(--sand); overflow:hidden; }
.news-card__media img { width:100%; height:100%; object-fit:cover; }
.news-card__body { padding: 1.3rem 1.4rem 1.5rem; display:flex; flex-direction:column; flex:1; }
.news-card__date { font-size:.8rem; color: var(--accent-dark); font-weight:600; letter-spacing:.03em; margin-bottom:.5rem; }
.news-card__title { font-size:1.2rem; margin-bottom:.5rem; }
.news-card__excerpt { font-size:.94rem; color: var(--ink-2); flex:1; }

/* --------------------------------------------------------------- Contact */
.contact__grid { grid-template-columns: 1fr 1fr; gap: clamp(2rem,4vw,3.5rem); align-items:start; }
.info-list { list-style:none; display:grid; gap: 1.3rem; }
.info-list li { display:flex; gap:1rem; align-items:flex-start; }
.info-list .ico { width:44px; height:44px; border-radius:10px; background: var(--blue-light); color:var(--blue); display:grid; place-items:center; flex:0 0 auto; }
.info-list .ico svg { width:22px; height:22px; }
.info-list dt { font-size:.78rem; text-transform:uppercase; letter-spacing:.1em; color: var(--ink-3); font-weight:700; margin-bottom:.2rem; }
.info-list dd { margin:0; color: var(--ink); font-weight:500; }
.map-frame { border:1px solid var(--line); border-radius: var(--radius-lg); overflow:hidden; box-shadow: var(--shadow-sm); aspect-ratio: 4/3; background: var(--sand); }
.map-frame iframe { width:100%; height:100%; border:0; }

/* Formulaire */
.field { margin-bottom: 1.1rem; }
.field label { display:block; font-weight:600; color: var(--ink); font-size:.92rem; margin-bottom:.4rem; }
.field .req { color: var(--danger); }
.field input, .field textarea, .field select {
  width:100%; padding:.8rem 1rem; border:1.5px solid var(--line-strong); border-radius: var(--radius);
  font-family: inherit; font-size:1rem; color: var(--ink); background:#fff; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field textarea:focus, .field select:focus { outline:none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(46,125,79,.16); }
.field textarea { resize: vertical; min-height: 140px; }
.form-note { font-size:.85rem; color: var(--ink-3); }

/* --------------------------------------------------------------- Urgences */
.urgences { display:flex; flex-wrap:wrap; gap:.8rem; }
.urgence { display:flex; align-items:center; gap:.7rem; padding:.7rem 1.1rem; background: var(--paper-2); border:1px solid var(--line); border-radius:999px; }
.urgence .num { font-family: var(--font-display); font-weight:700; font-size:1.2rem; color: var(--danger); }
.urgence .lbl { font-size:.9rem; color: var(--ink-2); }

/* --------------------------------------------------------------- Liens utiles */
.links__grid { grid-template-columns: repeat(2,1fr); }
.link-card { display:flex; align-items:center; justify-content: space-between; gap:1rem; padding:1.3rem 1.5rem; background:var(--paper-2); border:1px solid var(--line); border-radius: var(--radius-lg); transition: border-color .2s var(--ease), transform .2s var(--ease); }
.link-card:hover { border-color: var(--blue); transform: translateX(4px); }
.link-card h4 { margin:0 0 .2rem; font-family: var(--font-body); font-size:1.02rem; color: var(--ink); }
.link-card p { margin:0; font-size:.9rem; color: var(--ink-3); }
.link-card .arrow { color: var(--blue); flex:0 0 auto; }
.link-card .arrow svg { width:22px; height:22px; }

/* --------------------------------------------------------------- Footer */
.footer { background: var(--ink); color: #9BAF9F; padding-block: clamp(3rem,6vw,4.5rem) 2rem; }
.footer__grid { display:grid; grid-template-columns: 1.4fr 1fr 1fr; gap: clamp(2rem,4vw,3rem); }
.footer__brand { display:flex; gap:.8rem; align-items:center; margin-bottom:1.2rem; }
.footer__brand .brand__name { color:#fff; }
.footer__brand .brand__sub { color: #7C8F80; }
.footer h4 { color:#fff; font-family: var(--font-body); font-size:.8rem; text-transform:uppercase; letter-spacing:.12em; margin-bottom:1rem; }
.footer ul { list-style:none; display:grid; gap:.6rem; }
.footer a { color:#C4D5C7; }
.footer a:hover { color:#fff; }
.footer__devise { display:inline-flex; align-items:center; gap:.5rem; font-style:italic; color:#A9DCB4; margin-top:1rem; font-family: var(--font-display); }
.footer__bottom { display:flex; flex-wrap:wrap; gap:1rem; justify-content: space-between; align-items:center; margin-top: 2.5rem; padding-top:1.5rem; border-top:1px solid rgba(255,255,255,.1); font-size:.85rem; }
.footer__bottom a { color:#9BAF9F; }

/* --------------------------------------------------------------- Page header (pages intérieures) */
.pagehead { position:relative; padding-top: calc(var(--nav-h) + clamp(2.5rem,6vw,4.5rem)); padding-bottom: clamp(2.5rem,5vw,4rem); background: var(--ink); color:#C4D5C7; overflow:hidden; }
.pagehead::before { content:""; position:absolute; inset:0; background: radial-gradient(1200px 440px at 82% -12%, rgba(123,162,92,.34), transparent 62%); }
.pagehead__inner { position:relative; }
.pagehead h1 { color:#fff; font-size: clamp(2.2rem,5vw,3.6rem); margin-bottom:.5rem; }
.pagehead p { max-width: 60ch; color: rgba(255,255,255,.8); }
.breadcrumb { display:flex; gap:.5rem; align-items:center; font-size:.85rem; color: rgba(255,255,255,.6); margin-bottom:1.2rem; }
.breadcrumb a { color: rgba(255,255,255,.8); }
.breadcrumb svg { width:14px; height:14px; opacity:.6; }

/* --------------------------------------------------------------- Reveal */
[data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
[data-reveal].is-visible { opacity:1; transform: none; }
[data-reveal][data-reveal="left"] { transform: translateX(-30px); }
[data-reveal][data-reveal="right"] { transform: translateX(30px); }
[data-reveal].is-visible { transform: none; }
[data-reveal-delay="1"] { transition-delay: .08s; }
[data-reveal-delay="2"] { transition-delay: .16s; }
[data-reveal-delay="3"] { transition-delay: .24s; }
[data-reveal-delay="4"] { transition-delay: .32s; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity:1 !important; transform:none !important; transition:none !important; }
  .hero__media img, .hero__media video { height:100% !important; }
}

/* --------------------------------------------------------------- Utilitaires */
.section-label-count { color: var(--ink-3); font-size:.9rem; }
.empty-note { padding: 2rem; text-align:center; color: var(--ink-3); border:1px dashed var(--line-strong); border-radius: var(--radius-lg); }
.tag-pill { display:inline-block; padding:.25rem .7rem; border-radius:999px; background: var(--sand); color: var(--accent-dark); font-size:.78rem; font-weight:600; }
.toast { position: fixed; left:50%; bottom: 24px; transform: translate(-50%, 120%); background: var(--ink); color:#fff; padding:.9rem 1.4rem; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); z-index: var(--z-top); transition: transform .4s var(--ease); font-size:.95rem; }
.toast.show { transform: translate(-50%, 0); }
.toast.ok { background: var(--ok); }
.toast.err { background: var(--danger); }

/* --------------------------------------------------------------- Responsive */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .news__grid { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: grid; }
  .commune__grid { grid-template-columns: 1fr; }
  .commune__figure { aspect-ratio: 16/11; order: -1; }
  .decheterie__grid, .contact__grid, .links__grid { grid-template-columns: 1fr; }
  .quickbar__grid { grid-template-columns: 1fr; }
  .quickbar__item { border-left:0; border-top:1px solid rgba(255,255,255,.08); }
  .quickbar__item:first-child { border-top:0; }
}
@media (max-width: 560px) {
  .services__grid, .news__grid { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero { min-height: 92svh; }
}

/* ============================================================================
   MODERNISATION, profondeur, verre, textures organiques, mouvement
   ========================================================================== */
:root { --radius-lg: 14px; --radius-xl: 24px; --shadow-lg: 0 34px 64px -24px rgba(20,39,27,.34); --green-dark: #1E5C39; }

/* Halos verts doux sur les grandes sections claires */
.section--soft {
  background:
    radial-gradient(1000px 560px at 8% -5%, var(--green-soft), transparent 55%),
    radial-gradient(820px 520px at 105% 108%, #f2ecda, transparent 55%),
    var(--paper);
}
.section--ink { background: radial-gradient(1100px 500px at 85% -10%, rgba(123,162,92,.22), transparent 60%), var(--ink); }

/* ---- Hero enrichi ---- */
.hero__badge {
  display:inline-flex; align-items:center; gap:.55rem; padding:.42rem .95rem; border-radius:999px;
  background: rgba(255,255,255,.13); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  border:1px solid rgba(255,255,255,.32); color:#fff; font-size:.8rem; font-weight:600; letter-spacing:.02em; margin-bottom:1.3rem;
}
.hero__badge .dot { width:8px; height:8px; border-radius:50%; background:#a8d29a; box-shadow:0 0 0 4px rgba(168,210,154,.25); }
.hero__inner { padding-bottom: clamp(5.5rem, 13vh, 9.5rem); }
.hero__scroll { display:none; }
.hero__title { text-shadow: 0 2px 30px rgba(8,22,14,.4); }
.hero__accroche { text-shadow: 0 1px 14px rgba(8,22,14,.5); }
.hero .kicker.is-light { text-shadow: 0 1px 10px rgba(8,22,14,.45); }

/* ---- Barre d'infos flottante (chevauche le hero) ---- */
.quickbar { background: transparent; margin-top: clamp(-72px, -6vw, -46px); position: relative; z-index: 4; padding-top: 0; }
.quickbar__grid {
  background: var(--paper-2); border:1px solid var(--line); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.quickbar__item { border-left: 1px solid var(--line); border-top: 0; }
.quickbar__item:first-child { border-left: 0; }
.quickbar__item svg { color: var(--green); }
.quickbar__item h3 { color: var(--ink-3); }
.quickbar__item p { color: var(--ink); }
.quickbar__item a { color: var(--green); font-weight:600; }
.quickbar__item a:hover { color: var(--green-dark, var(--blue-dark)); }
@media (max-width: 860px) {
  .quickbar { margin-top: -40px; }
  .quickbar__item { border-left: 0; border-top: 1px solid var(--line); }
  .quickbar__item:first-child { border-top: 0; }
}

/* ---- Bandeau défilant (marquee) ---- */
.marquee { background: var(--ink); overflow: hidden; }
.marquee__track { display:flex; align-items:center; gap:2.6rem; width:max-content; padding:.95rem 0; animation: marquee 34s linear infinite; }
.marquee__item { display:inline-flex; align-items:center; gap:2.6rem; font-family: var(--font-display); font-size:1.15rem; color:#dfeadb; white-space:nowrap; }
.marquee__item::after { content:""; width:7px; height:7px; border-radius:50%; background: var(--moss); flex:0 0 auto; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; } }

/* ---- Icônes de services en dégradé + accent au survol ---- */
.service { position: relative; overflow: hidden; }
.service::after { content:""; position:absolute; left:0; top:0; height:4px; width:100%; transform: scaleX(0); transform-origin:left;
  background: linear-gradient(90deg, var(--green), var(--moss)); transition: transform .4s var(--ease); }
.service:hover::after { transform: scaleX(1); }
.service__icon { background: linear-gradient(140deg, var(--green) 0%, #409a63 100%); color:#fff; box-shadow: 0 12px 24px -12px rgba(46,125,79,.65); }

/* ---- Cartes plus profondes & modernes ---- */
.person, .event, .news-card, .link-card { border-radius: var(--radius-xl); }
.person__photo { background: linear-gradient(150deg, #1f5c39 0%, #2e7d4f 55%, #4f9a63 100%); }

/* ---- Image de la commune : cadre décoratif + puce flottante ---- */
.commune__figure { overflow: visible; box-shadow: none; }
.commune__figure img { border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.commune__figure::before {
  content:""; position:absolute; top:-16px; right:-16px; width:128px; height:128px;
  border-top:3px solid var(--accent); border-right:3px solid var(--accent); border-top-right-radius: 24px; opacity:.7;
}
.commune__figure::after {
  content:""; position:absolute; left:-16px; bottom:-16px; width:96px; height:96px;
  border-bottom:3px solid var(--moss); border-left:3px solid var(--moss); border-bottom-left-radius: 24px; opacity:.6;
}
.commune__chip {
  position:absolute; left:-22px; bottom:32px; z-index:2; background: var(--paper-2); border:1px solid var(--line);
  border-radius:16px; padding:.85rem 1.15rem; box-shadow: var(--shadow-lg); display:flex; align-items:center; gap:.85rem;
}
.commune__chip .ic { width:44px; height:44px; border-radius:12px; background: var(--green-soft); color:var(--green); display:grid; place-items:center; flex:0 0 auto; }
.commune__chip .ic svg { width:22px; height:22px; }
.commune__chip b { font-family: var(--font-display); color: var(--ink); font-size:1.15rem; display:block; line-height:1; }
.commune__chip small { font-size:.78rem; color: var(--ink-3); }
@media (max-width: 860px) { .commune__chip { left:12px; bottom:12px; } .commune__figure::before,.commune__figure::after{ display:none; } }

/* ---- Éclat vert derrière la section équipe ---- */
#equipe { background: radial-gradient(700px 400px at 100% 0%, var(--green-soft), transparent 60%); }

/* ---- Puces de statistiques modernisées ---- */
.stat { position: relative; transition: background .25s var(--ease); }
.stat:hover { background: var(--green-soft); }
.stat__value { color: var(--green-dark, var(--blue-dark)); }

/* ---- Boutons : léger relief ---- */
.btn--primary { box-shadow: 0 10px 22px -12px rgba(46,125,79,.6); }
.btn--light { box-shadow: 0 10px 30px -14px rgba(8,22,14,.5); }

/* ---- Titres de section : filet décoratif sous les grands titres centrés ---- */
.section-head.center h2::after {
  content:""; display:block; width:56px; height:3px; margin:1rem auto 0;
  background: linear-gradient(90deg, var(--green), var(--accent)); border-radius:3px;
}

/* ============================================================================
   CARTES CLIQUABLES · BADGE « À LA UNE » · CARTE « VOIR PLUS »
   ========================================================================== */
.event[data-ev-id], .news-card[data-actu-id], .person[data-collab-id] { cursor: pointer; }
.event[data-ev-id]:focus-visible, .news-card[data-actu-id]:focus-visible, .person[data-collab-id]:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

/* Correctif : la date descend sous le ruban « À la une » (plus de chevauchement) */
.badge-une { z-index: 3; border-bottom-right-radius: 14px; padding:.32rem .85rem; }
.event--une .event__date { top: 46px; }

.event__more { display:inline-flex; align-items:center; gap:.35rem; margin-top:1.1rem; color: var(--green); font-weight:600; font-size:.9rem; }
.event__more svg { width:1em; height:1em; transition: transform .2s var(--ease); }
.event:hover .event__more svg { transform: translateX(4px); }

/* Carte « voir plus » en fin de piste */
.event--more { display:flex; flex-direction:column; align-items:flex-start; justify-content:center; gap:.55rem;
  padding: clamp(1.6rem,3vw,2.2rem); background: linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%);
  color:#fff; text-decoration:none; border:0; }
.event--more:hover { color:#fff; }
.event--more__ic { width:56px; height:56px; border-radius:16px; background: rgba(255,255,255,.16); display:grid; place-items:center; margin-bottom:.3rem; }
.event--more__ic svg { width:28px; height:28px; color:#fff; }
.event--more h3 { color:#fff; font-size:1.5rem; margin:0; }
.event--more p { color: rgba(255,255,255,.85); font-size:.95rem; margin:0; }
.event--more__cta { display:inline-flex; align-items:center; gap:.4rem; margin-top:.6rem; font-weight:600;
  background:#fff; color:var(--green-dark); padding:.5rem 1.05rem; border-radius:999px; transition: gap .2s var(--ease); }
.event--more:hover .event--more__cta { gap:.7rem; }
.event--more__cta svg { width:1em; height:1em; }

/* ============================================================================
   MODALE
   ========================================================================== */
.modal { position: fixed; inset: 0; z-index: 500; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(10,24,16,.55); backdrop-filter: blur(5px); animation: mfade .25s ease; }
@keyframes mfade { from { opacity: 0; } }
.modal__panel { position: relative; max-width: 640px; width: calc(100% - 2rem); max-height: 90vh; margin: 5vh auto;
  background: var(--paper-2); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; animation: mIn .32s var(--ease); }
@keyframes mIn { from { opacity: 0; transform: translateY(24px) scale(.985); } }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 42px; height: 42px; border-radius: 999px;
  border: 0; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-sm); }
.modal__close:hover { background: #fff; }
.modal__close svg { width: 20px; height: 20px; }
.modal__content { overflow-y: auto; }
.modal__media { aspect-ratio: 16/9; background: var(--sand); flex: 0 0 auto; }
.modal__media img { width: 100%; height: 100%; object-fit: cover; }
.modal__media--ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--sand), var(--sand-line)); }
.modal__media--ph svg { width: 56px; height: 56px; color: var(--accent); opacity: .6; }
.modal__media--mono { display: grid; place-items: center; background: linear-gradient(150deg, #1f5c39, #2e7d4f 55%, #4f9a63); }
.modal__media--mono span { font-family: var(--font-display); font-size: 4rem; color: rgba(255,255,255,.92); }
.modal__body { padding: clamp(1.4rem, 3vw, 2.3rem); }
.modal__eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green); margin-bottom: .5rem; }
.modal__title { font-size: clamp(1.5rem, 3vw, 2.05rem); margin: .3rem 0 1rem; }
.modal__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.3rem; margin-bottom: 1.2rem; color: var(--ink-3); font-size: .93rem; }
.modal__meta span { display: inline-flex; align-items: center; gap: .4rem; }
.modal__meta svg { width: 16px; height: 16px; color: var(--green); }
.modal__text { color: var(--ink-2); line-height: 1.75; }
.modal__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.6rem; }
.tag-pill--une { background: var(--accent); color: #fff; margin-left: .4rem; }

/* ============================================================================
   FORMULAIRE « PROPOSER UN ÉVÉNEMENT »
   ========================================================================== */
.propose-card { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(1.5rem, 3.5vw, 2.6rem); box-shadow: var(--shadow-md); max-width: 820px; }
.propose-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.2rem; }
.propose-grid .full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.filepick { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; }
.filepick input[type="file"] { display: none; }
.filepick__btn { display: inline-flex; align-items: center; gap: .5rem; padding: .7rem 1.1rem; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius); color: var(--ink); cursor: pointer; font-weight: 600; font-size: .92rem; transition: border-color .2s var(--ease), background .2s var(--ease); }
.filepick__btn:hover { border-color: var(--green); background: var(--green-soft); }
.filepick__btn svg { width: 18px; height: 18px; }
.filepick__name { font-size: .88rem; color: var(--ink-3); }
.propose-status { margin-top: 1.2rem; padding: .85rem 1.1rem; border-radius: var(--radius); font-size: .93rem; }
.propose-status:empty { display: none; padding: 0; margin: 0; }
.propose-status.ok { background: #DCFCE7; color: var(--ok); }
.propose-status.err { background: #FEE2E2; color: var(--danger); }
@media (max-width: 640px) { .propose-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   COOKIES (RGPD), bannière, bouton flottant, panneau de préférences
   ========================================================================== */
.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 400; max-width: 720px; margin-inline: auto;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg);
  padding: 1.3rem 1.5rem; animation: cookieIn .45s var(--ease) both;
}
.cookie-banner.is-hiding { animation: cookieOut .4s var(--ease) forwards; }
@keyframes cookieIn { from { transform: translateY(160%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cookieOut { from { transform: none; opacity: 1; } to { transform: translateY(160%); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cookie-banner { animation: none; } }
.cookie-banner h3 { font-family: var(--font-body); font-size: 1.05rem; margin-bottom: .35rem; color: var(--ink); }
.cookie-banner p { font-size: .9rem; color: var(--ink-2); margin: 0 0 1rem; }
.cookie-banner p a { color: var(--green); text-decoration: underline; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.cookie-actions .btn { flex: 1 1 auto; }
@media (max-width: 520px) { .cookie-actions .btn { flex: 1 1 100%; } }

.cookie-fab {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 350; width: 46px; height: 46px; border-radius: 999px;
  background: var(--ink); color: #fff; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-md);
  transition: transform .2s var(--ease), background .2s var(--ease);
}
.cookie-fab:hover { transform: scale(1.07); background: var(--green-dark); }
.cookie-fab svg { width: 22px; height: 22px; }

.cookie-panel { position: fixed; inset: 0; z-index: 600; display: none; }
.cookie-panel.show { display: block; }
.cookie-panel__ov { position: absolute; inset: 0; background: rgba(10,24,16,.55); backdrop-filter: blur(5px); animation: mfade .25s ease; }
.cookie-panel__box {
  position: relative; max-width: 560px; width: calc(100% - 2rem); margin: 6vh auto; background: var(--paper-2);
  border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); max-height: 88vh; overflow-y: auto;
  padding: clamp(1.4rem, 3vw, 2rem); animation: mIn .32s var(--ease);
}
.cookie-panel__box h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: .3rem; }
.cookie-panel__box .sub { color: var(--ink-3); font-size: .92rem; margin-bottom: 1.4rem; }
.cookie-cat { border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 1rem 1.2rem; margin-bottom: .9rem; display: flex; gap: 1rem; justify-content: space-between; align-items: flex-start; }
.cookie-cat h4 { font-family: var(--font-body); font-size: 1rem; margin-bottom: .25rem; color: var(--ink); }
.cookie-cat p { font-size: .85rem; color: var(--ink-2); margin: 0; }
.cookie-panel__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.2rem; }
.cookie-panel__actions .btn { flex: 1 1 auto; }

.switch { position: relative; width: 46px; height: 26px; flex: 0 0 auto; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider { position: absolute; inset: 0; background: var(--line-strong); border-radius: 999px; transition: background .2s var(--ease); pointer-events: none; }
.switch .slider::before { content: ""; position: absolute; width: 20px; height: 20px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: transform .2s var(--ease); box-shadow: var(--shadow-sm); }
.switch input:checked + .slider { background: var(--green); }
.switch input:checked + .slider::before { transform: translateX(20px); }
.switch input:disabled { cursor: not-allowed; }
.switch input:disabled + .slider { background: var(--green); opacity: .5; }

.map-consent { height: 100%; min-height: 240px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .8rem; text-align: center; padding: 1.5rem; background: linear-gradient(135deg, var(--sand), var(--sand-line)); color: var(--ink-2); }
.map-consent svg { width: 36px; height: 36px; color: var(--green); }
.map-consent p { font-size: .9rem; max-width: 42ch; margin: 0; }

/* ============================================================================
   Photos réelles de la commune : élus, équipe, patrimoine, vie locale
   ========================================================================== */

/* ---- Portraits des élus : cadrage vertical, 4 colonnes sur grand écran ---- */
.person__photo { aspect-ratio: 4/5; }
.person__photo img { object-position: center 22%; }
.people__grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .people__grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px)  { .people__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px)  { .people__grid { grid-template-columns: 1fr; } }

/* ---- Photo de groupe du conseil municipal ---- */
.team-photo { margin: 0 0 clamp(2rem, 4vw, 3rem); }
.team-photo img {
  width: 100%; height: auto; display: block; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
}
.team-photo figcaption {
  margin-top: .9rem; font-size: .9rem; color: var(--ink-3); text-align: center;
}

/* ---- Commissions ---- */
.commissions__grid { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 780px) { .commissions__grid { grid-template-columns: 1fr; } }
.commission {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(1.3rem, 2.4vw, 1.8rem);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.commission:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-3px); }
.commission h3 { font-size: 1.2rem; margin-bottom: .7rem; }
.commission__vp {
  display: flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--ink-2);
  margin: 0 0 .9rem; padding-bottom: .9rem; border-bottom: 1px solid var(--line);
}
.commission__vp svg { width: 18px; height: 18px; color: var(--blue); flex: 0 0 auto; }
.commission__membres { list-style: none; display: flex; flex-wrap: wrap; gap: .45rem; margin: 0; padding: 0; }
.commission__membres li {
  font-size: .88rem; color: var(--ink-2); background: var(--green-soft);
  border-radius: 999px; padding: .3rem .8rem;
}

/* ---- Patrimoine ---- */
.heritage__grid { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .heritage__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .heritage__grid { grid-template-columns: 1fr; } }
.heritage {
  margin: 0; background: var(--paper-2); border: 1px solid var(--line);
  border-radius: var(--radius-xl); overflow: hidden; display: flex; flex-direction: column; height: 100%;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.heritage:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.heritage__media { aspect-ratio: 4/3; overflow: hidden; background: var(--sand); }
.heritage__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.heritage:hover .heritage__media img { transform: scale(1.05); }
.heritage figcaption { padding: 1.2rem 1.3rem 1.5rem; }
.heritage h3 { font-size: 1.12rem; margin-bottom: .45rem; }
.heritage p { font-size: .93rem; margin: 0; }
.heritage__list {
  list-style: none; display: flex; flex-wrap: wrap; justify-content: center;
  gap: .6rem 1.4rem; margin: 2rem 0 0; padding: 0;
}
.heritage__list li { display: inline-flex; align-items: center; gap: .5rem; font-size: .95rem; color: var(--ink-2); }
.heritage__list svg { width: 17px; height: 17px; color: var(--green); flex: 0 0 auto; }

/* ---- Vie locale : associations, traditions, lieux ---- */
.assoc__grid { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 950px) { .assoc__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .assoc__grid { grid-template-columns: 1fr; } }
.assoc {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-xl);
  padding: clamp(1.3rem, 2.4vw, 1.7rem); display: flex; flex-direction: column; height: 100%;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), transform .3s var(--ease);
}
.assoc:hover { box-shadow: var(--shadow-md); border-color: var(--line-strong); transform: translateY(-4px); }
.assoc h3 { font-size: 1.18rem; margin: .8rem 0 .55rem; }
.assoc p { font-size: .95rem; margin: 0; flex: 1; }
.assoc__contact {
  display: flex; align-items: flex-start; gap: .5rem; flex: 0 0 auto;
  margin-top: 1.1rem; padding-top: 1.1rem; border-top: 1px solid var(--line);
  font-size: .88rem; color: var(--ink-2);
}
.assoc__contact svg { width: 16px; height: 16px; color: var(--blue); flex: 0 0 auto; margin-top: .15rem; }

/* ---- Déchetteries : un bloc d'horaires par site ---- */
.dech-sites { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 2vw, 1.6rem); }
@media (max-width: 950px) { .dech-sites { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .dech-sites { grid-template-columns: 1fr; } }
.dech-site h3 { font-size: 1.1rem; margin-bottom: .6rem; }
.dech-site__adr { display: flex; align-items: center; gap: .45rem; font-size: .9rem; color: var(--ink-3); margin: 0 0 .8rem; }
.dech-site__adr svg { width: 16px; height: 16px; flex: 0 0 auto; }
.dech-site .hours__row { padding-block: .55rem; }
.dech-site .hours__day, .dech-site .hours__slots { font-size: .88rem; }

/* ---- Pastilles d'information empilées ---- */
.chips--stack { display: grid; gap: 1rem; }

/* Portraits basse définition : cartes plus étroites dans le carrousel d'accueil */
#collab-track { grid-auto-columns: min(72vw, 280px); }

/* Lien mis en avant sur une carte de vie locale */
.assoc__lien { margin: 1.1rem 0 0; flex: 0 0 auto; }
.assoc__lien .btn { gap: .45rem; }
.assoc__lien svg { width: 15px; height: 15px; }

/* ============================================================================
   Nouvelles rubriques : CMJ, publications, enfance & scolarité, salle communale
   ========================================================================== */

/* Texte réservé aux lecteurs d'écran */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- Menu principal : jamais de retour à la ligne. Version resserrée, puis
   menu mobile dès que la place manque (mesuré : 1 103 px de large pour le menu
   complet, 1 054 px pour la version resserrée). ---- */
.nav__link, .brand__name { white-space: nowrap; }
@media (max-width: 1140px) {
  .nav__links { gap: .1rem; }
  .nav__link { padding-inline: .6rem; font-size: .93rem; }
  .nav__link::after { left: .6rem; right: .6rem; }
}
@media (max-width: 1080px) {
  .nav__links, .nav__actions .btn { display: none; }
  .nav__toggle { display: grid; }
}

/* ---- Navigation : rubrique parente de la page courante, sous-menus groupés ---- */
.nav__link[aria-current="true"] { color: var(--ink); }
.nav__link[aria-current="true"]::after { transform: scaleX(1); }
.nav.is-transparent .nav__link[aria-current="true"] { color: #fff; }
.nav__sub a[aria-current="page"] { background: var(--green-soft); color: var(--green-dark); }
.nav__sub-group { border-top: 1px solid var(--line); margin-top: .3rem; padding-top: .3rem; }

/* Menu mobile : davantage d'entrées, défilement sur les petits écrans */
.mobile-menu { overflow-y: auto; overscroll-behavior: contain; }
.mobile-menu__links a { line-height: 1.25; }
.mobile-menu.is-open ~ .cookie-fab { display: none; } /* ne masque plus le téléphone en bas du menu */

/* ---- Accès rapides dans l'en-tête des pages intérieures ---- */
.pagehead__links { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.pagehead__links a {
  display: inline-flex; align-items: center; padding: .42rem .95rem; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff;
  font-size: .88rem; font-weight: 600; transition: background .2s var(--ease), border-color .2s var(--ease);
}
.pagehead__links a:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.55); color: #fff; }

/* ---- Pastilles : version pleine largeur et lien d'action ---- */
.chip--wide { margin-top: clamp(1.5rem, 3vw, 2.2rem); max-width: 900px; }
.chip__action { margin-top: .8rem !important; }
.chip__action .btn { gap: .45rem; white-space: normal; }
.chip--wide > div { min-width: 0; }
.chip__action svg { width: 15px; height: 15px; }
.section-head__action { margin-top: 1.2rem; }
.section-head__action .btn { white-space: normal; }
.section-head__action [data-icon] { display: inline-flex; }
.section-head__action svg { width: 15px; height: 15px; }

/* Rangée de boutons */
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Liens utiles sur trois colonnes */
.links__grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 950px) { .links__grid--3 { grid-template-columns: 1fr; } }

/* ---- Carte d'appel à l'action (inscription CMJ, réservation de salle) ---- */
.cta-card {
  background: linear-gradient(155deg, var(--green) 0%, var(--green-dark) 100%); color: rgba(255,255,255,.88);
  border-radius: var(--radius-xl); padding: clamp(1.5rem, 3vw, 2.1rem); box-shadow: var(--shadow-lg);
}
.cta-card h3 { color: #fff; margin-bottom: .6rem; }
.cta-card p { color: rgba(255,255,255,.88); font-size: .97rem; }
.cta-card__icon { width: 52px; height: 52px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; margin-bottom: 1.1rem; }
.cta-card__icon svg { width: 26px; height: 26px; color: #fff; }
.cta-card__actions { display: flex; flex-direction: column; align-items: flex-start; gap: .6rem; margin-top: 1.3rem; }
.cta-card__actions .btn { white-space: normal; text-align: left; }
.cta-card__actions svg { width: 1em; height: 1em; }
.cta-card__note { font-size: .88rem !important; margin: 1.2rem 0 0 !important; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,.18); }

/* ---- Conseil municipal jeunes ---- */
.cmj__grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.cmj__text { margin-top: 1.4rem; }
.cmj__subtitle { font-size: 1.2rem; margin: 2rem 0 .9rem; }
.cmj__projets { list-style: none; display: grid; gap: .6rem; }
.cmj__projets li {
  display: flex; gap: .7rem; align-items: flex-start; padding: .8rem 1.05rem; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg); color: var(--ink); font-weight: 500;
}
.cmj__projets svg { width: 20px; height: 20px; color: var(--green); flex: 0 0 auto; margin-top: .2rem; }
.cmj__aside { display: grid; gap: 1.2rem; position: sticky; top: calc(var(--nav-h) + 1.5rem); }
.cmj__photo { margin: 0; }
.cmj__photo img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.cmj__photo figcaption { margin-top: .7rem; font-size: .88rem; color: var(--ink-3); text-align: center; }
@media (max-width: 860px) {
  .cmj__grid { grid-template-columns: 1fr; }
  .cmj__aside { position: static; }
}

/* ---- Publications : listes de documents ---- */
.doclist { list-style: none; display: grid; gap: .8rem; max-width: 920px; }
.doc {
  display: flex; gap: 1rem; align-items: center; padding: 1.05rem 1.25rem; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.doc:hover { border-color: var(--line-strong); box-shadow: var(--shadow-sm); }
.doc__icon { width: 46px; height: 46px; border-radius: 12px; background: var(--blue-light); color: var(--blue); display: grid; place-items: center; flex: 0 0 auto; }
.doc__icon svg { width: 22px; height: 22px; }
.doc__body { flex: 1; min-width: 0; }
.doc__body .tag-pill { margin-bottom: .35rem; }
.doc__title { display: block; font-weight: 600; color: var(--ink); line-height: 1.35; }
.doc__meta { display: block; font-size: .85rem; color: var(--ink-3); margin-top: .15rem; }
.doc__desc { font-size: .92rem; margin: .35rem 0 0; }
.doc__btn { flex: 0 0 auto; gap: .45rem; }
.doc__btn svg { width: 15px; height: 15px; }
.doclist__year {
  font-family: var(--font-body); font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); margin: 2.2rem 0 .9rem;
}
.doclist__year:first-child { margin-top: 0; }
.docs__more { margin-top: 1.6rem; }
@media (max-width: 560px) {
  .doc { flex-wrap: wrap; }
  .doc__btn { width: 100%; }
}

/* ---- Publications : bulletins municipaux ---- */
.bulletins__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: clamp(1.2rem, 2.5vw, 2rem); }
.bulletin {
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-xl); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.bulletin:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.bulletin__cover { display: block; aspect-ratio: 3 / 4; overflow: hidden; background: linear-gradient(135deg, var(--sand), var(--sand-line)); border-bottom: 1px solid var(--line); }
.bulletin__cover img { width: 100%; height: 100%; object-fit: cover; object-position: top; transition: transform .5s var(--ease); }
.bulletin:hover .bulletin__cover img { transform: scale(1.03); }
.bulletin__ph { width: 100%; height: 100%; display: grid; place-items: center; color: var(--accent); }
.bulletin__ph svg { width: 54px; height: 54px; opacity: .55; }
.bulletin__body { padding: 1.2rem 1.35rem 1.45rem; display: flex; flex-direction: column; align-items: flex-start; gap: .45rem; flex: 1; }
.bulletin__date { font-size: .8rem; color: var(--accent-dark); font-weight: 600; letter-spacing: .03em; }
.bulletin__title { font-size: 1.2rem; margin: 0; }
.bulletin__desc { font-size: .93rem; margin: 0; flex: 1; }
.bulletin .btn { margin-top: .6rem; gap: .45rem; white-space: normal; }
.bulletin .btn svg { width: 15px; height: 15px; }
.bulletin__meta { font-weight: 400; opacity: .85; }
.tag-pill--accent { background: var(--accent); color: #fff; }
/* Dernier numéro mis en avant sur toute la largeur */
.bulletin--une { grid-column: 1 / -1; flex-direction: row; }
.bulletin--une .bulletin__cover { flex: 0 0 clamp(170px, 26%, 260px); border-bottom: 0; border-right: 1px solid var(--line); }
.bulletin--une .bulletin__body { justify-content: center; padding: clamp(1.4rem, 3.5vw, 2.6rem); }
.bulletin--une .bulletin__title { font-size: clamp(1.45rem, 2.6vw, 1.95rem); }
.bulletin--une .bulletin__desc { flex: 0 0 auto; max-width: 60ch; font-size: 1rem; }
@media (max-width: 620px) {
  .bulletin--une { flex-direction: column; }
  .bulletin--une .bulletin__cover { flex: none; border-right: 0; border-bottom: 1px solid var(--line); }
}

/* ---- Enfance & scolarité : lignes de transport scolaire ---- */
.lignes__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(1.2rem, 2.5vw, 2rem); }
@media (max-width: 860px) { .lignes__grid { grid-template-columns: 1fr; } }
.ligne { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.3rem, 2.4vw, 1.8rem); }
.ligne__head { display: flex; gap: .95rem; align-items: flex-start; margin-bottom: 1.1rem; }
.ligne__icon { width: 48px; height: 48px; border-radius: 12px; background: linear-gradient(140deg, var(--green) 0%, #409a63 100%); color: #fff; display: grid; place-items: center; flex: 0 0 auto; }
.ligne__icon svg { width: 24px; height: 24px; }
.ligne h3 { font-size: 1.25rem; margin: 0 0 .25rem; }
.ligne__etab { font-size: .93rem; color: var(--ink-3); margin: 0 0 .4rem; }
.ligne__vide { margin: 0; padding: 1.1rem; text-align: center; color: var(--ink-3); font-size: .93rem; border: 1px dashed var(--line-strong); border-radius: var(--radius); }
.ligne__note { font-size: .9rem; color: var(--ink-2); margin: 1rem 0 0; padding: .75rem .95rem; background: var(--green-soft); border-radius: var(--radius); }
.horaires-bus, .tarifs { width: 100%; border-collapse: collapse; font-size: .95rem; }
.horaires-bus th, .horaires-bus td, .tarifs th, .tarifs td { padding: .6rem .65rem; border-bottom: 1px solid var(--line); text-align: left; }
.horaires-bus thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); font-weight: 700; border-bottom-color: var(--line-strong); }
.horaires-bus tbody th, .tarifs th { font-weight: 600; color: var(--ink); }
.horaires-bus td { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; color: var(--ink); }
.horaires-bus thead th:not(:first-child) { text-align: right; }
.horaires-bus tr:last-child > *, .tarifs tr:last-child > * { border-bottom: 0; }

/* ---- Enfance & scolarité : assistantes maternelles et relais petite enfance ---- */
.am__lieu { display: flex; align-items: center; gap: .45rem; font-size: .92rem; color: var(--ink-3); flex: 0 0 auto !important; }
.am__lieu svg { width: 16px; height: 16px; flex: 0 0 auto; }
.am__contact { display: flex; flex-direction: column; gap: .35rem; margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .92rem; }
.am__contact a { display: inline-flex; align-items: center; gap: .45rem; color: var(--ink-2); }
.am__contact a:hover { color: var(--blue); }
.am__contact svg { width: 16px; height: 16px; color: var(--blue); flex: 0 0 auto; }
.rpe { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(1.4rem, 3vw, 2.2rem); max-width: 900px; }
.rpe h3 { font-size: 1.35rem; }
.rpe .info-list { margin-top: 1.4rem; }
.rpe__lien { margin: 1.5rem 0 0; }
.rpe__lien .btn { gap: .45rem; }
.rpe__lien svg { width: 15px; height: 15px; }

/* Renvoi vers une autre rubrique */
.teaser {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.6rem); max-width: 900px; padding: clamp(1.3rem, 3vw, 1.9rem);
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-xl); color: var(--ink-2);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.teaser:hover { border-color: var(--green); box-shadow: var(--shadow-md); transform: translateY(-2px); color: var(--ink-2); }
.teaser__icon { width: 56px; height: 56px; border-radius: 16px; background: var(--green-soft); color: var(--green); display: grid; place-items: center; flex: 0 0 auto; }
.teaser__icon svg { width: 28px; height: 28px; }
.teaser__body { display: flex; flex-direction: column; gap: .2rem; flex: 1; }
.teaser__kicker { font-size: .75rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.teaser__title { font-family: var(--font-display); font-size: 1.35rem; color: var(--ink); line-height: 1.2; }
.teaser__text { font-size: .95rem; }
.teaser__arrow { color: var(--green); flex: 0 0 auto; }
.teaser__arrow svg { width: 24px; height: 24px; transition: transform .2s var(--ease); }
.teaser:hover .teaser__arrow svg { transform: translateX(4px); }

/* ---- Salle communale ---- */
.salle__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.salle__grid--solo { grid-template-columns: minmax(0, 760px); }
.salle__text { margin-top: 1.2rem; }
.salle__photo { margin: 0; }
.salle__photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.salle__photo figcaption { margin-top: .7rem; font-size: .88rem; color: var(--ink-3); text-align: center; }
.salle__subtitle { margin: 0 0 1rem; }
#salle-conditions-wrap, #salle-docs-wrap { margin-top: 2.2rem; }
.salle__conditions { color: var(--ink-2); }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; margin: 1.8rem 0 0; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.fact { background: var(--paper-2); padding: 1rem 1.2rem; }
.fact dt { font-size: .75rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-3); font-weight: 700; }
.fact dd { margin: .25rem 0 0; color: var(--ink); font-weight: 600; }
.tarifs { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius-lg); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.tarifs th, .tarifs td { padding: .85rem 1.1rem; }
.tarifs td { text-align: right; font-weight: 600; color: var(--blue-dark); white-space: nowrap; }
@media (max-width: 860px) {
  .salle__grid { grid-template-columns: 1fr; }
  .salle__photo { order: -1; }
}
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; } }

/* ---------------------------------------------------- Événements récurrents */
.event__meta .event__rec { color: var(--green); font-weight: 600; flex-basis: 100%; }
.modal__dates { margin-top: 1.4rem; padding: 1rem 1.2rem; border-radius: 12px; background: var(--sand); font-size: .93rem; }
.modal__dates b { display: block; margin-bottom: .4rem; }
.modal__dates ul { margin: 0; padding-left: 1.1rem; }
.modal__dates li::first-letter { text-transform: uppercase; }

/* ---------------------------------------------------- Alertes de la mairie */
.alerte + .alerte { border-top: 1px solid var(--sand-line); }
.alerte__media { aspect-ratio: auto; max-height: 50vh; }
.alerte__media img { max-height: 50vh; object-fit: contain; background: var(--sand); }
.alerte__badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px;
  font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; background: #e6f0ea; color: var(--green); }
.alerte__badge svg { width: 15px; height: 15px; }
.alerte--important .alerte__badge { background: #fbeedb; color: #8a5a17; }
.alerte--urgent .alerte__badge { background: #fbe3e1; color: #a12a1f; }
.alerte--urgent { border-top: 5px solid #c0392b; }
.alerte--important { border-top: 5px solid var(--accent); }

/* ---------------------------------------------------- Cartes d'événements : aperçu court */
/* Le titre et le résumé sont limités à 3 lignes : le texte complet est dans la fenêtre de détail. */
.event__desc { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.event__meta span { align-items: flex-start; }
.event__meta span svg { flex: 0 0 auto; margin-top: .15em; }
.event__title { display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Image entière, quel que soit son format (affiche 9:16, paysage…) */
.event__media--fit .event__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: blur(18px) brightness(.85); transform: scale(1.15); }
.event__media--fit .event__img { position: relative; object-fit: contain; }
.event:hover .event__media--fit .event__img { transform: none; }
.event:hover .event__media--fit .event__bg { transform: scale(1.2); }
.modal__media--fit { aspect-ratio: auto; display: flex; justify-content: center; background: var(--sand); }
.modal__media--fit img { width: auto; max-width: 100%; height: auto; max-height: 75vh; object-fit: contain; }
