/* ==========================================================================
   COUZE-ET-SAINT-FRONT — Maquette V2 « Moderne premium »
   Salem Creative — feuille de style unique
   Parti pris : le standard d'une métropole, appliqué à un village de 737 hab.
   Clair, net, photos plein écran, typo XXL, mouvements soignés.
   ========================================================================== */

/* --------------------------------------------------------------- 1. TOKENS */
:root {
  --blanc:  #FFFFFF;
  --fond:   #F9F6F8;
  --sable:  #F2EBEF;
  --bord:   #E4D9E0;

  --ink:    #121014;   /* 18,9:1 sur blanc */
  --gris:   #58505A;   /*  7,8:1 sur blanc */


  /* Charte de la commune — les couleurs de son logo (mairie, 01/10/2026).
     Seul le pourpre peut porter du texte ; les deux autres ne servent que
     d'aplats, avec un texte foncé dessus. */
  --pourpre:       #B51C75;   /* fond pourpre du logo — 6,2:1 sur blanc */
  --pourpre-fonce: #92175E;   /* texte blanc dessus — 8,4:1 */
  --pourpre-clair: #EA76B9;   /* survols sur fond sombre — 7,0:1 sur --ink */
  --coulobre:      #FFF2B2;   /* coulobre / roue de moulin — aplat seulement */
  --dordogne:      #75B2DD;   /* la Dordogne et la Couze — aplat seulement */

  /* Couleurs fonctionnelles : elles disent un état, pas l'identité.
     Un voyant « ouvert » en pourpre n'informerait personne. */
  --alerte: #B4530A;
  --ouvert: #1E7A3E;
  --ferme:  #A69AA1;

  --display: "Bricolage Grotesque", "Segoe UI", sans-serif;
  --texte:   "Instrument Sans", -apple-system, "Segoe UI", sans-serif;

  --max: 1280px;
  --r:   16px;
  --rs:  10px;
  --ombre: 0 24px 60px -28px rgba(11, 20, 22, .22);
}

/* --------------------------------------------------------------- 2. RESET */
*, *::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 {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
body {
  margin: 0;
  font-family: var(--texte);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--blanc);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--pourpre); text-underline-offset: .22em; text-decoration-thickness: 1px; }
a:hover { color: var(--pourpre-fonce); }
:focus-visible { outline: 3px solid var(--pourpre); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--display); margin: 0; line-height: 1.04; font-weight: 650; letter-spacing: -.025em; }
p { margin: 0 0 1em; }
:where(ul, ol).nu { list-style: none; margin: 0; padding: 0; }
::selection { background: var(--pourpre); color: #fff; }

/* ------------------------------------------------------- 3. UTILITAIRES */
.wrap { width: min(100% - 3rem, var(--max)); margin-inline: auto; }
.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;
}
.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 300;
  background: var(--ink); color: #fff;
  padding: .75rem 1.25rem; font-weight: 600; text-decoration: none; border-radius: 8px;
  transition: top .2s;
}
.skip:focus { top: 1rem; color: #fff; }

.cote {
  font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pourpre); display: flex; align-items: center; gap: .7rem;
}
.cote::after { content: none; }

.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .95rem 1.9rem; border-radius: 10px;
  font-family: var(--texte); font-size: .95rem; font-weight: 600; text-decoration: none;
  color: #fff; background: var(--pourpre); border: 1.5px solid var(--pourpre);
  cursor: pointer; transition: transform .25s, background .25s, border-color .25s, color .25s;
}
.btn:hover { background: var(--pourpre-fonce); border-color: var(--pourpre-fonce); color: #fff; transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--bord); }
.btn--ghost:hover { background: var(--sable); border-color: var(--bord); color: var(--ink); }
.btn--blanc { background: #fff; color: var(--ink); border-color: #fff; }
.btn--blanc:hover { background: var(--sable); border-color: var(--sable); color: var(--ink); }
.btn--verre { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn--verre:hover { background: rgba(255,255,255,.26); border-color: #fff; color: #fff; }
.btn svg { width: 1.05em; height: 1.05em; flex: none; }

/* ------------------------------------------------------------ 4. EN-TÊTE */
.tete {
  position: fixed; inset: 0 0 auto; z-index: 100;
  transition: background .3s, box-shadow .3s, color .3s;
  color: #fff;
}
.tete__in { display: flex; align-items: center; gap: 1.5rem; padding: .8rem 0; }
.tete.est-solide, .tete--page {
  color: var(--ink);
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  box-shadow: 0 1px 0 rgba(11,20,22,.07);
}
.tete.est-solide .tete__in, .tete--page .tete__in { padding: .55rem 0; }

.marque { display: flex; align-items: center; gap: .85rem; text-decoration: none; color: inherit; }
/* Le tampon officiel de la commune — Coulobre d'or sur les vagues de la Couze */
.marque img { height: 66px; width: auto; flex: none; }
.pied .marque img { height: 88px; }
@media (max-width: 560px) { .marque img { height: 54px; } }
.marque b { display: block; font-family: var(--display); font-size: 1.16rem; font-weight: 650; line-height: 1.1; letter-spacing: -.015em; }
.marque span { display: block; font-size: .68rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; opacity: .75; }

.nav { margin-left: auto; }
.nav ul { display: flex; gap: .35rem; list-style: none; margin: 0; padding: 0; align-items: center; }
.nav a {
  font-size: .92rem; font-weight: 600; color: inherit; text-decoration: none;
  padding: .55rem 1rem; border-radius: 8px; transition: background .2s;
}
.tete:not(.est-solide):not(.tete--page) .nav a:hover { background: rgba(255,255,255,.16); }
.est-solide .nav a:hover, .tete--page .nav a:hover { background: var(--sable); }
.nav a[aria-current="page"] { background: rgba(255,255,255,.18); }
.est-solide .nav a[aria-current="page"], .tete--page .nav a[aria-current="page"] { background: var(--ink); color: #fff; }
.nav .nav__cta a { background: #fff; color: var(--ink); margin-left: .5rem; }
.est-solide .nav .nav__cta a, .tete--page .nav .nav__cta a { background: var(--pourpre); color: #fff; }

.burger {
  display: none; margin-left: auto; background: none; cursor: pointer; font: inherit;
  font-size: .85rem; font-weight: 600; color: inherit;
  border: 1.5px solid currentColor; border-radius: 8px; padding: .5rem 1.1rem;
}
@media (max-width: 940px) {
  .burger { display: block; }
  .nav {
    position: fixed; inset: 0 0 0 auto; width: min(86vw, 360px);
    background: #fff; color: var(--ink); padding: 6rem 2rem 2rem;
    transform: translateX(105%); transition: transform .35s cubic-bezier(.3,.8,.3,1); z-index: 95;
  }
  .nav[data-open="true"] { transform: none; box-shadow: -30px 0 80px rgba(11,20,22,.25); }
  .nav ul { flex-direction: column; align-items: stretch; gap: .4rem; }
  .nav a { font-size: 1.1rem; padding: .8rem 1.1rem; }
  .nav a:hover { background: var(--sable) !important; }
  .nav a[aria-current="page"] { background: var(--ink) !important; color: #fff; }
  .nav .nav__cta a { background: var(--pourpre) !important; color: #fff; margin: .5rem 0 0; }
}

/* --------------------------------------------------------- 5. ALERTE */
.cachet {
  position: fixed; z-index: 80; right: 1.25rem; bottom: 1.25rem;
  width: min(92vw, 400px);
  display: flex; gap: .9rem; align-items: flex-start;
  background: #fff; border-radius: var(--rs);
  border: 1px solid var(--bord); border-left: 4px solid var(--alerte);
  box-shadow: var(--ombre);
  padding: 1rem 1.1rem;
}
.cachet__pic { flex: none; width: 24px; height: 24px; color: var(--alerte); margin-top: .1rem; }
.cachet b { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--alerte); }
.cachet p { margin: .25rem 0 0; font-size: .88rem; line-height: 1.5; }
.cachet time { display: block; font-size: .72rem; color: var(--gris); margin-top: .3rem; font-variant-numeric: tabular-nums; }
.cachet__close { flex: none; background: none; border: 0; cursor: pointer; color: var(--gris); font-size: 1.3rem; line-height: 1; padding: 0 .2rem; }
.cachet__close:hover { color: var(--ink); }

/* ------------------------------------------------------------- 6. HÉRO */
.hero { position: relative; min-height: 100svh; display: flex; align-items: flex-end; color: #fff; isolation: isolate; }
.hero__img { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 42%; animation: heroZoom 3.2s cubic-bezier(.2,.6,.3,1) both; }
@keyframes heroZoom { from { transform: scale(1.09); } to { transform: scale(1); } }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(200deg, rgba(7,50,44,.14) 0%, rgba(5,18,16,.42) 55%, rgba(5,18,16,.80) 100%);
}
/* Voile haut : garantit la lisibilité de l'en-tête blanc, même sur un ciel clair */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 300px; z-index: -1;
  background: linear-gradient(180deg, rgba(5,18,16,.62) 0%, rgba(5,18,16,.34) 50%, rgba(5,18,16,.14) 78%, transparent);
}
.hero__in { width: min(100% - 3rem, var(--max)); margin-inline: auto; padding: 9rem 0 clamp(3.5rem, 7vh, 6rem); }
.hero__kicker {
  display: flex; align-items: center; gap: .8rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase;
  margin-bottom: 1.6rem;
}
.hero__kicker::before { content: ""; width: 44px; height: 2px; background: currentColor; opacity: .7; }
.hero h1 {
  font-size: clamp(3.2rem, 10.5vw, 8.2rem);
  font-weight: 700; line-height: .96; letter-spacing: -.035em;
  margin: 0 0 1.4rem; text-wrap: balance;
}
.hero h1 span { display: block; }
.hero__chapo { font-size: clamp(1.05rem, 1.8vw, 1.35rem); max-width: 52ch; margin-bottom: 2.2rem; color: rgba(255,255,255,.92); }
.hero__chapo strong { color: #fff; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-bottom: clamp(2.5rem, 6vh, 4.5rem); }

.hero__stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem;
  border-top: 1px solid rgba(255,255,255,.35); padding-top: 1.5rem;
  /* bornées à gauche : l'encart d'alerte occupe le bas à droite */
  max-width: min(100%, 900px);
}
.hero__stats > div { border-left: 1px solid rgba(255,255,255,.3); padding-left: 1.3rem; }
.hero__stats > div:first-child { border-left: 0; padding-left: 0; }
.hero__stats b { display: block; font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hero__stats span { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.8); }
@media (max-width: 760px) {
  .hero__stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem; }
  .hero__stats > div:nth-child(odd) { border-left: 0; padding-left: 0; }
}

/* ------------------------------------------------------------ 7. SECTIONS */
.sec { padding: clamp(4rem, 9vw, 7.5rem) 0; }
.sec--fond { background: var(--fond); }
.sec__head { max-width: 62ch; margin-bottom: clamp(2.2rem, 4.5vw, 3.6rem); }
.sec__head .cote { margin-bottom: 1rem; }
.sec h2 { font-size: clamp(2.1rem, 4.8vw, 3.6rem); }
.sec__intro { margin-top: 1.1rem; color: var(--gris); font-size: 1.08rem; }
.sec__head--split { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.sec__head--split > div { max-width: 62ch; }

/* --------------------------------------------------------- 8. DÉMARCHES */
.demarches { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.dem {
  background: #fff; border: 1px solid var(--bord); border-radius: var(--r);
  padding: 1.8rem 1.6rem 1.6rem; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: .5rem;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.dem:hover { transform: translateY(-6px); box-shadow: var(--ombre); border-color: transparent; }
.dem__pic { color: var(--pourpre); margin-bottom: .7rem; display: block; }
.dem__pic svg { width: 28px; height: 28px; }
.dem b { font-family: var(--display); font-size: 1.28rem; font-weight: 650; letter-spacing: -.015em; }
.dem span { font-size: .92rem; color: var(--gris); line-height: 1.55; }
.dem i {
  font-style: normal; font-size: .85rem; font-weight: 700; color: var(--pourpre);
  margin-top: auto; padding-top: 1rem; display: inline-flex; align-items: center; gap: .4rem;
}
.dem i::after { content: "→"; transition: transform .25s; }
.dem:hover i::after { transform: translateX(5px); }
@media (max-width: 900px) { .demarches { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .demarches { grid-template-columns: 1fr; } }

/* Bandeau contact express */
.express {
  margin-top: 1.1rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem;
}
.express > * {
  border-radius: var(--r); padding: 1.4rem 1.6rem; text-decoration: none; color: inherit;
  background: var(--sable); display: flex; flex-direction: column; gap: .15rem;
  transition: background .25s;
}
.express a:hover { background: var(--bord); }
.express b { font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); }
.express strong { font-family: var(--display); font-size: 1.3rem; font-weight: 650; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.express span { font-size: .85rem; color: var(--gris); }
@media (max-width: 820px) { .express { grid-template-columns: 1fr; } }

/* -------------------------------------------------------- 9. ACTUALITÉS */
.actus { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.1rem; }
.actu {
  background: #fff; border: 1px solid var(--bord); border-radius: var(--r);
  padding: 1.7rem 1.6rem; display: flex; flex-direction: column;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.actu__img {
  margin: -1.7rem -1.6rem 1.2rem; border-radius: var(--r) var(--r) 0 0;
  width: calc(100% + 3.2rem); max-width: none;
  aspect-ratio: 16/9; object-fit: cover;
}
.actu:hover { transform: translateY(-6px); box-shadow: var(--ombre); border-color: transparent; }
.actu__meta { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.actu__tag {
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  background: var(--dordogne); color: var(--ink); border-radius: 4px; padding: .3rem .7rem;
}
.actu time { font-size: .8rem; color: var(--gris); font-variant-numeric: tabular-nums; }
.actu h3 { font-size: 1.42rem; font-weight: 650; letter-spacing: -.02em; margin-bottom: .7rem; }
.actu p { font-size: .93rem; color: var(--gris); margin-bottom: 1.3rem; }
.actu a { margin-top: auto; font-size: .9rem; font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: .45rem; }
.actu a::after { content: "→"; transition: transform .25s; }
.actu a:hover::after { transform: translateX(5px); }
@media (max-width: 900px) { .actus { grid-template-columns: 1fr; } }

/* ------------------------------------------------- 10. BANDE DE CHIFFRES */
.chiffres { background: var(--pourpre-fonce); color: #fff; }
.chiffres__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1.5rem, 3vw, 2.5rem); }
.chiffre b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: clamp(2.8rem, 6.5vw, 5rem); letter-spacing: -.03em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.chiffre b sup { font-size: .45em; font-weight: 650; color: var(--pourpre-clair); }
.chiffre span { display: block; margin-top: .5rem; font-size: .92rem; color: rgba(255,255,255,.78); max-width: 22ch; }
@media (max-width: 820px) { .chiffres__grid { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------- 11. PATRIMOINE */
.galerie {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(76vw, 460px);
  gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .4rem .2rem 1.4rem;
  scrollbar-width: thin; scrollbar-color: var(--bord) transparent;
}
.galerie::-webkit-scrollbar { height: 6px; }
.galerie::-webkit-scrollbar-thumb { background: var(--bord); border-radius: 3px; }
.oeuvre { scroll-snap-align: start; margin: 0; position: relative; border-radius: var(--r); overflow: hidden; background: var(--ink); }
.oeuvre img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.oeuvre:hover img { transform: scale(1.05); }
.oeuvre::after {
  content: ""; position: absolute; inset: 40% 0 0;
  background: linear-gradient(180deg, transparent, rgba(5,18,16,.82));
  pointer-events: none;
}
.oeuvre figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 1;
  padding: 1.3rem 1.4rem; color: #fff;
}
.oeuvre figcaption b { display: block; font-family: var(--display); font-size: 1.3rem; font-weight: 650; letter-spacing: -.015em; }
.oeuvre figcaption span { font-size: .8rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: rgba(255,255,255,.75); }

/* ---------------------------------------------------------- 12. CONSEIL */
.registre { width: 100%; border-collapse: collapse; font-size: 1rem; }
.registre caption { text-align: left; font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gris); padding-bottom: 1rem; }
.registre th, .registre td { text-align: left; padding: .95rem 1rem .95rem 0; border-bottom: 1px solid var(--bord); vertical-align: baseline; }
.registre thead th { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); font-weight: 700; }
.registre tbody th { font-weight: 500; color: var(--gris); font-size: .88rem; width: 13rem; }
.registre td { font-family: var(--display); font-weight: 650; font-size: 1.15rem; letter-spacing: -.01em; }
.registre tr:first-child td { color: var(--pourpre); font-size: 1.45rem; }
@media (max-width: 560px) {
  .registre tbody th { display: block; width: auto; border: 0; padding-bottom: .1rem; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
  .registre tbody td { display: block; padding-top: 0; }
}

/* --------------------------------------------------- 12b. ÉVÉNEMENTS */
/* Barre de filtres, sur sa propre ligne : elle se lit comme un vrai filtre */
.filtres {
  display: flex; flex-wrap: wrap; gap: .5rem; align-items: center;
  padding-bottom: 1.4rem; margin-bottom: 1.8rem; border-bottom: 1px solid var(--bord);
}
.filtres__lbl { font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); margin-right: .5rem; }
.filtre {
  font: inherit; font-size: .88rem; font-weight: 600; cursor: pointer;
  color: var(--ink); background: #fff; border: 1px solid var(--bord);
  border-radius: 8px; padding: .5rem 1.05rem;
  transition: background .2s, color .2s, border-color .2s;
}
.filtre:hover { background: var(--sable); }
.filtre[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Pastille de date, commune à la une et aux lignes */
.ag-jour {
  flex: none; display: block; text-align: center; margin: 0;
  background: var(--coulobre); border-radius: 10px; padding: .6rem .2rem .5rem; width: 68px;
}
.ag-jour b {
  display: block; font-family: var(--display); font-weight: 700;
  font-size: 1.75rem; line-height: 1; letter-spacing: -.02em; color: var(--pourpre);
  font-variant-numeric: tabular-nums;
}
.ag-jour span { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); margin-top: .15rem; }
.ag-cat { display: block; font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pourpre); }

/* L'événement à la une — photo à gauche, colonne de texte réellement remplie */
.ag-une {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  background: #fff; border: 1px solid var(--bord); border-radius: var(--r);
  overflow: hidden; margin-bottom: 1.1rem;
}
.ag-une[hidden] { display: none; }
.ag-une > figure { margin: 0; }
.ag-une > figure img { width: 100%; height: 100%; min-height: 300px; object-fit: cover; }
.ag-une__corps {
  padding: clamp(1.6rem, 3vw, 2.6rem);
  display: flex; flex-direction: column; justify-content: center; gap: .8rem;
}
.ag-une__tete { display: flex; align-items: center; gap: 1rem; }
.ag-une h3 { font-size: clamp(1.6rem, 2.8vw, 2.3rem); font-weight: 700; letter-spacing: -.025em; }
.ag-une p { font-size: .97rem; color: var(--gris); margin: 0; max-width: 46ch; }
.ag-une__meta {
  display: flex; flex-wrap: wrap; gap: .5rem 1.4rem;
  padding-top: .9rem; border-top: 1px solid var(--bord);
  font-size: .88rem; font-weight: 600;
}
.ag-une__meta span { display: inline-flex; align-items: center; gap: .45rem; }
.ag-une__meta svg { width: 1.05em; height: 1.05em; color: var(--pourpre); flex: none; }
@media (max-width: 880px) {
  .ag-une { grid-template-columns: 1fr; }
  .ag-une > figure img { min-height: 0; aspect-ratio: 16/9; }
}

/* Les autres rendez-vous — une liste, pas des cartes rivales de la une */
.ag-liste { border-top: 1px solid var(--bord); }
.ag-ligne {
  display: grid; grid-template-columns: 68px minmax(0, 1fr) auto;
  gap: 1.4rem; align-items: center;
  padding: 1.15rem .9rem; border-bottom: 1px solid var(--bord);
  transition: background .25s;
}
.ag-ligne:hover { background: var(--fond); }
.ag-ligne[hidden] { display: none; }
.ag-ligne h3 { font-size: 1.2rem; font-weight: 650; letter-spacing: -.015em; margin-top: .2rem; }
.ag-ligne__info { text-align: right; font-size: .88rem; font-weight: 600; color: var(--ink); }
.ag-ligne__info small { display: block; font-size: .8rem; font-weight: 400; color: var(--gris); margin-top: .15rem; }
@media (max-width: 680px) {
  .ag-ligne { grid-template-columns: 68px minmax(0, 1fr); gap: 1rem; }
  .ag-ligne__info { grid-column: 2; text-align: left; margin-top: .3rem; }
}
.ag-vide { padding: 2.5rem .9rem; color: var(--gris); font-style: italic; border-bottom: 1px solid var(--bord); }

/* ------------------------------------------------------------ 13. AGENDA */
.agenda { display: grid; border-top: 1px solid var(--bord); }
.evt {
  display: grid; grid-template-columns: 11rem 1fr auto; gap: 1.5rem; align-items: center;
  padding: 1.3rem .4rem; border-bottom: 1px solid var(--bord);
  text-decoration: none; color: inherit; border-radius: var(--rs);
  transition: background .25s, padding .25s;
}
a.evt:hover { background: var(--sable); padding-inline: 1rem; }
.evt__date {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--pourpre); font-variant-numeric: tabular-nums;
}
.evt__t { font-family: var(--display); font-size: 1.25rem; font-weight: 650; letter-spacing: -.015em; }
.evt__l { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); }
@media (max-width: 680px) { .evt { grid-template-columns: 1fr; gap: .45rem; } .evt__date { justify-self: start; } }

/* ----------------------------------------------------------- 14. CHIPS */
.repertoire { display: flex; flex-wrap: wrap; gap: .6rem; padding: 0; }
.repertoire li {
  display: inline-flex; align-items: baseline; gap: .55rem;
  border: 1px solid var(--bord); border-radius: 8px;
  padding: .55rem 1.1rem; font-size: .92rem; font-weight: 500;
  background: #fff; transition: border-color .2s, background .2s;
}
.repertoire li:hover { background: var(--sable); }
.repertoire li span { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pourpre); }

/* ------------------------------------------------------ 15. BANDE PHOTO */
.bande { position: relative; margin: 0 auto; width: min(100% - 3rem, var(--max)); border-radius: var(--r); overflow: hidden; }
.bande img { width: 100%; height: clamp(300px, 46vw, 560px); object-fit: cover; }
.bande figcaption {
  position: absolute; left: 1.2rem; bottom: 1.2rem; right: 1.2rem;
  display: inline-block; width: fit-content; max-width: min(90%, 520px);
  background: rgba(255,255,255,.92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-radius: var(--rs); padding: .9rem 1.3rem;
  font-size: .88rem; font-weight: 500; color: var(--ink);
}

/* -------------------------------------------------------------- 16. PIED */
.pied { background: var(--ink); color: #B4AAB0; margin-top: clamp(4rem, 8vw, 7rem); border-radius: var(--r) var(--r) 0 0; }
.pied a { color: #fff; }
.pied a:hover { color: var(--pourpre-fonce); }
.pied__appel { padding: clamp(3rem, 6vw, 4.5rem) 0 0; }
.pied__appel h2 { color: #fff; font-size: clamp(1.9rem, 4vw, 3rem); max-width: 26ch; }
.pied__tel {
  display: inline-block; margin-top: 1.4rem;
  font-family: var(--display); font-weight: 700; letter-spacing: -.01em;
  font-size: clamp(1.8rem, 4vw, 2.8rem); font-variant-numeric: tabular-nums;
  color: #fff !important; text-decoration: none;
  border-bottom: 3px solid var(--pourpre-clair); padding-bottom: .2rem;
}
.pied__tel:hover { color: var(--pourpre-clair) !important; }
.pied__appel p { color: #B4AAB0; font-size: .95rem; margin: 1rem 0 0; }
.pied__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: clamp(1.5rem, 3vw, 3rem); padding: clamp(3rem, 6vw, 4.5rem) 0 2.5rem; }
@media (max-width: 900px) { .pied__grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .pied__grid { grid-template-columns: 1fr; } }
.pied h3 { font-size: .72rem; font-family: var(--texte); font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #8A7C84; margin-bottom: 1.1rem; }
.pied ul { list-style: none; margin: 0; padding: 0; }
.pied li { padding: .28rem 0; font-size: .95rem; }
.pied li a, .pied__bas a { display: inline-block; padding: .2rem 0; text-decoration: none; }
.pied .marque { color: #fff; margin-bottom: 1.2rem; }
.pied dl { margin: 0; font-size: .95rem; }
.pied dt { color: #8A7C84; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-top: .9rem; }
.pied dd { margin: .15rem 0 0; font-variant-numeric: tabular-nums; }
.pied__bas {
  border-top: 1px solid rgba(255,255,255,.12); padding: 1.4rem 0 2rem;
  display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
  font-size: .82rem;
}
.pied__bas ul { display: flex; flex-wrap: wrap; gap: .2rem 1.6rem; }
.pied__bas li { padding: 0; }
.conforme {
  margin-left: auto; display: inline-flex; align-items: center; gap: .55rem;
  border: 1px solid rgba(255,255,255,.25); border-radius: 6px; padding: .5rem 1.1rem;
  font-size: .74rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
}
.conforme svg { width: 1rem; height: 1rem; color: var(--pourpre-clair); }

/* ==================== 17. PAGES INTÉRIEURES ==================== */
.fil { font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); padding: 0 0 1.4rem; }
.fil a { color: var(--gris); text-decoration: none; }
.fil a:hover { color: var(--pourpre); }
.fil span[aria-hidden] { margin: 0 .5rem; }

.chapeau { background: var(--fond); padding: 8.5rem 0 clamp(3rem, 6vw, 4.5rem); border-radius: 0 0 var(--r) var(--r); }
.chapeau__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.chapeau__grid > figure { margin: 0; border-radius: var(--r); overflow: hidden; }
.chapeau__grid > figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
@media (max-width: 820px) { .chapeau__grid { grid-template-columns: 1fr; } }
.chapeau h1 { font-size: clamp(2.8rem, 7.5vw, 5.6rem); font-weight: 700; letter-spacing: -.035em; margin-bottom: 1.2rem; }
.chapeau__chapo { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--gris); max-width: 56ch; margin: 0; }
.chapeau .hero__kicker { color: var(--pourpre); }

.sommaire { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; padding: 1.8rem 0 .4rem; }
.sommaire .cote { margin-right: .6rem; }
.sommaire ul { display: contents; }
.sommaire a {
  display: inline-block; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1px solid var(--bord); border-radius: 8px; padding: .5rem 1.05rem;
  transition: background .2s, border-color .2s;
}
.sommaire a:hover { background: var(--sable); }

/* Fiche démarche */
.fiche { display: grid; grid-template-columns: minmax(0, 17rem) 1fr; gap: 1.2rem clamp(2rem, 4vw, 4rem); padding: clamp(2.4rem, 4.5vw, 3.5rem) 0; border-bottom: 1px solid var(--bord); scroll-margin-top: 6.5rem; }
.fiche__t { display: flex; align-items: baseline; gap: 1rem; }
.fiche__n {
  flex: none; font-size: .82rem; font-weight: 700; color: var(--pourpre);
  font-variant-numeric: tabular-nums;
}
.fiche h3 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); font-weight: 650; letter-spacing: -.025em; }
.fiche__c { max-width: 66ch; }
.fiche__c > p:last-child { margin-bottom: 0; }
.fiche__cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 1.5rem 0; }
@media (max-width: 820px) { .fiche { grid-template-columns: 1fr; } }

/* Dépliants */
.pliage { border: 1px solid var(--bord); border-radius: var(--rs); margin: 1rem 0; background: #fff; }
.pliage + .pliage { margin-top: .6rem; }
.pliage summary {
  cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.2rem; position: relative;
  font-weight: 650; font-size: .96rem; border-radius: var(--rs);
}
.pliage summary::-webkit-details-marker { display: none; }
.pliage summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--pourpre); border-bottom: 2px solid var(--pourpre);
  transform: translateY(-70%) rotate(45deg); transition: transform .25s;
}
.pliage[open] summary::after { transform: translateY(-20%) rotate(-135deg); }
.pliage summary:hover { color: var(--pourpre); }
.pliage > :not(summary) { font-size: .94rem; color: var(--gris); padding: 0 1.2rem; }
.pliage > p:last-child { padding-bottom: 1.1rem; margin-bottom: 0; }

/* Repères pratiques */
.repere {
  display: grid; grid-template-columns: minmax(0, 7.5rem) 1fr; gap: .1rem 1.2rem;
  margin: 1.6rem 0 0; padding: 1.2rem 1.4rem;
  background: var(--fond); border-radius: var(--rs); font-size: .93rem;
}
.repere dt { font-size: .68rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gris); padding-top: .45rem; }
.repere dd { margin: 0; padding: .3rem 0; }
@media (max-width: 560px) { .repere { grid-template-columns: 1fr; } .repere dd { padding-bottom: .8rem; } }

/* Pièces à fournir */
.pieces { counter-reset: p; list-style: none; margin: 1.3rem 0; padding: 0; display: grid; gap: .5rem; }
.pieces li {
  counter-increment: p; position: relative; padding: .8rem 1rem .8rem 3.2rem;
  background: #fff; border: 1px solid var(--bord); border-radius: var(--rs); font-size: .94rem;
}
.pieces li::before {
  content: counter(p); position: absolute; left: .8rem; top: 50%; transform: translateY(-50%);
  width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  background: var(--pourpre); color: #fff; font-size: .78rem; font-weight: 700; border-radius: 50%;
}

/* Encarts */
.encart { margin-top: 2rem; padding: 1.6rem 1.8rem; background: var(--fond); border-radius: var(--rs); border-left: 4px solid var(--alerte); }
.encart--eau { border-left-color: var(--pourpre); }
.encart p { font-size: .95rem; margin-bottom: .6rem; }
.encart p:last-child { margin-bottom: 0; }
.signature { font-weight: 650; color: var(--gris); text-align: right; }
.note { font-size: .86rem; color: var(--gris); font-style: italic; }

/* Formulaire */
.formulaire { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1.4rem; margin-top: 1.5rem; }
.champ { display: flex; flex-direction: column; gap: .4rem; margin: 0; }
.champ--large { grid-column: 1 / -1; }
.champ label { font-size: .74rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.oblig { color: var(--alerte); }
.champ input, .champ select, .champ textarea {
  font: inherit; font-size: .96rem; color: var(--ink);
  background: #fff; border: 1.5px solid var(--bord); border-radius: var(--rs);
  padding: .8rem 1rem; width: 100%;
}
.champ input::placeholder, .champ textarea::placeholder { color: #A69AA1; }
.champ input:focus, .champ select:focus, .champ textarea:focus { border-color: var(--pourpre); outline: none; }
.champ textarea { resize: vertical; }
.champ .btn { align-self: start; }
@media (max-width: 620px) { .formulaire { grid-template-columns: 1fr; } }

/* Cartes d'association */
.cartes { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 1.1rem; }
.carte {
  padding: 1.6rem 1.5rem; border: 1px solid var(--bord); border-radius: var(--r); background: #fff;
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s, border-color .3s;
}
.carte:hover { transform: translateY(-5px); box-shadow: var(--ombre); border-color: transparent; }
.carte__cat {
  display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--pourpre); background: var(--sable); border-radius: 4px; padding: .28rem .65rem; margin-bottom: .8rem;
}
.carte h3 { font-size: 1.26rem; font-weight: 650; letter-spacing: -.015em; margin-bottom: .5rem; }
.carte p { font-size: .9rem; color: var(--gris); margin-bottom: .4rem; }
.carte--vide { background: var(--fond); border-style: dashed; }

/* Colonnes de listes */
.colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem); }
.liste li { padding: .55rem 0; border-bottom: 1px solid var(--bord); font-size: .94rem; }
.colonnes .cote { margin-bottom: .8rem; }

/* Dossiers patrimoine */
.dossiers { display: grid; gap: clamp(2.5rem, 5vw, 4.5rem); }
.dossier { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.dossier--inv { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.dossier--inv > figure { order: 2; }
.dossier figure { margin: 0; border-radius: var(--r); overflow: hidden; }
.dossier figure img { width: 100%; aspect-ratio: 4/3; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.3,1); }
.dossier--inv figure img { aspect-ratio: 3/4; }
.dossier figure:hover img { transform: scale(1.04); }
.dossier figcaption { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gris); padding: .7rem .2rem 0; }
.dossier h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 650; letter-spacing: -.025em; margin: .6rem 0 .9rem; }
.dossier p { font-size: .97rem; color: var(--gris); max-width: 56ch; }
@media (max-width: 820px) {
  .dossier, .dossier--inv { grid-template-columns: 1fr; }
  .dossier--inv > figure { order: 0; }
  .dossier--inv figure img { aspect-ratio: 4/3; }
}

/* --------------------------------------------------- 18. APPARITION SCROLL */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.7,.3,1); }
.js .reveal.vu { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; } }

/* ------------------------------------------------------------ 19. IMPRESSION */
@media print {
  .tete, .burger, .cachet, .hero__cue { display: none !important; }
  .hero { min-height: auto; color: var(--ink); }
  .hero::after, .hero__img { display: none; }
}

/* ==================== 20. MENU DÉROULANT (arborescence 2026-09) ==================== */
.nav__item { position: relative; }
.nav .nav__sub {
  display: block; position: absolute; top: 100%; left: 0; z-index: 110;
  min-width: 250px; margin: 0; padding: .45rem; list-style: none;
  background: #fff; color: var(--ink);
  border: 1px solid var(--bord); border-radius: var(--rs); box-shadow: var(--ombre);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: opacity .2s, transform .2s, visibility .2s;
}
.nav__item:last-child .nav__sub { left: auto; right: 0; }
.nav__item:hover > .nav__sub,
.nav__item:focus-within > .nav__sub { opacity: 1; visibility: visible; transform: none; }
.tete .nav .nav__item .nav__sub a {
  display: block; margin: 0; padding: .55rem .8rem; border-radius: 6px;
  font-size: .9rem; font-weight: 500; color: var(--ink); background: transparent;
}
.tete .nav .nav__item .nav__sub a:hover,
.tete .nav .nav__item .nav__sub a:focus-visible { background: var(--sable); color: var(--ink); }
.tete .nav .nav__item .nav__sub a[aria-current="page"] { background: var(--sable); color: var(--pourpre); font-weight: 700; }

@media (max-width: 940px) {
  .nav { overflow-y: auto; }
  .nav .nav__sub {
    position: static; min-width: 0; padding: 0 0 .5rem 1rem;
    border: 0; box-shadow: none; background: transparent;
    opacity: 1; visibility: visible; transform: none;
  }
  .tete .nav .nav__item .nav__sub a { font-size: .95rem; padding: .45rem .9rem; }
}

/* ==================== 21. PAGES SQUELETTE (structure à valider) ==================== */
.squelette {
  max-width: 760px; padding: clamp(1.4rem, 3vw, 2.2rem);
  background: var(--fond); border: 1.5px dashed var(--bord); border-radius: var(--r);
}
.squelette h2 { font-size: 1.35rem; margin-bottom: .9rem; }
.squelette ul { margin: 0 0 1.2rem; padding-left: 1.2rem; }
.squelette li { padding: .25rem 0; }
.squelette .note { margin: 0; }
.voisins { margin-top: clamp(2rem, 4vw, 3rem); }
.voisins h2 { font-size: .74rem; font-family: var(--texte); font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--pourpre); margin-bottom: .8rem; }
.voisins ul { display: flex; flex-wrap: wrap; gap: .6rem; }
.voisins a {
  display: inline-block; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--ink);
  border: 1px solid var(--bord); border-radius: 8px; padding: .5rem 1.05rem;
}
.voisins a:hover { background: var(--sable); }
.voisins a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Resserre le blanc entre le chapeau de page et le premier bloc de contenu */
.chapeau + .sec { padding-top: clamp(2rem, 4vw, 3rem); }

/* Sur le pied de page, presque noir, le liséré pourpre serait peu visible :
   on prend la couleur claire de la charte (16,8:1 sur ce fond). */
.pied :focus-visible { outline-color: var(--coulobre); }
