/* ═══════════════════════════════════════════════════════════════
   commune.css — Système de design Ma-Mairie.com
   Utilisé par : template-gratuit.html + template-premium.html
   Remplace les blocs <style> inline des deux templates.

   Structure :
     1. TOKENS + RESET          (partagé)
     2. NAVBAR                  (partagé — sticky sur gratuit, fixed sur premium)
     3. HERO GRATUIT            (page pleine)
     4. HERO PREMIUM            (compact 60vh)
     5. TOPBAR                  (gratuit uniquement)
     6. FLASH INFO              (partagé)
     7. ACCÈS RAPIDES           (gratuit uniquement)
     8. LAYOUT PREMIUM          (sidebar + contenu)
     9. SECTIONS — communs      (wrap, kicker, sh2…)
    10. ACTUALITÉS              (partagé)
    11. AGENDA                  (partagé)
    12. COMMUNE                 (gratuit uniquement)
    13. PAGE CONTENT            (premium uniquement)
    14. CONSEIL MUNICIPAL       (partagé)
    15. CONTACT                 (partagé)
    16. CARTE MAP               (partagé)
    17. LIENS UTILES            (gratuit uniquement)
    18. SERVICES DE PROXIMITÉ   (partagé)
    19. UPGRADE BANNER          (gratuit uniquement)
    20. FOOTER                  (partagé)
    21. UTILITAIRES             (partagé)
═══════════════════════════════════════════════════════════════ */


/* ═══════════════════════════════════════════════
   1. TOKENS + RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --nuit:      #1A2332;
  --nuit2:     #243040;
  --or:        #C4924A;
  --or2:       #E0AD6A;
  --or-pale:   #F7EDD8;
  --vert:      #3A6248;
  --vert2:     #4E7D5E;
  --vert-pale: #E6EFE9;
  --eau:       #6A9EB5;
  --creme:     #FAFAF5;
  --gris1:     #F2EFE8;
  --gris2:     #E4DFD5;
  --gris3:     #B8AFA0;
  --brun:      #4A3828;
  --txt:       #1A1510;
  --txt2:      #574838;
  --txt3:      #8A7A6A;
}

html { scroll-behavior: smooth; height: 100%; }
body { font-family: 'Mulish', sans-serif; background: var(--creme); color: var(--txt); overflow-x: hidden; min-height: 100%; display: flex; flex-direction: column; }
img  { display: block; max-width: 100%; }
a    { text-decoration: none; color: inherit; }


/* ═══════════════════════════════════════════════
   2. NAVBAR  (partagé)
   — position: sticky  sur le template gratuit
   — position: fixed   sur le template premium
═══════════════════════════════════════════════ */
.navbar {
  top: 0; left: 0; right: 0; width: 100%; z-index: 999;
  background: rgba(26,35,50,0.97);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(196,146,74,0.22);
}
/* Gratuit : navbar colle au scroll mais pousse le contenu */
.navbar--sticky { position: sticky; }
/* Premium  : navbar fixe au-dessus du hero */
.navbar--fixed  { position: fixed; }

.nav-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 48px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
/* Version premium : pleine largeur */
.nav-inner--full { max-width: 100%; }

.nav-brand    { display: flex; align-items: center; gap: 12px; }
.nav-seal {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--or), var(--or2));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Libre Baskerville', serif; font-size: 15px; font-weight: 700;
  color: var(--nuit); flex-shrink: 0; overflow: hidden;
}
.nav-seal--blason { background: #fff; border: 1.5px solid rgba(196,146,74,.4); border-radius: 8px; padding: 3px; }
.nav-seal--blason img { width: 100%; height: 100%; object-fit: contain; }
.nav-name { font-family: 'Libre Baskerville', serif; font-size: 15px; color: #FAFAF5; line-height: 1.2; }
.nav-name small { display: block; font-family: 'Mulish', sans-serif; font-size: 9.5px; font-weight: 400; color: var(--or); letter-spacing: .15em; text-transform: uppercase; }
.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a { color: rgba(250,250,245,.6); font-size: 12.5px; padding: 7px 13px; border-radius: 7px; transition: all .2s; letter-spacing: .01em; }
.nav-links a:hover,
.nav-links a.active { color: #FAFAF5; background: rgba(196,146,74,.14); }
/* Bouton CTA inline nav (gratuit) */
.nav-cta a { background: var(--or) !important; color: var(--nuit) !important; font-weight: 600 !important; padding: 8px 18px !important; border-radius: 100px !important; }
.nav-cta a:hover { background: var(--or2) !important; }
/* Boutons nav premium */
.nav-right      { display: flex; align-items: center; gap: 12px; }
.nav-portail    { font-size: 11px; color: rgba(250,250,245,.4); padding: 6px 14px; border: 1px solid rgba(250,250,245,.12); border-radius: 100px; transition: all .2s; }
.nav-portail:hover { border-color: var(--or); color: var(--or); }
.nav-cta-btn    { background: var(--or); color: var(--nuit); font-size: 12.5px; font-weight: 600; padding: 8px 18px; border-radius: 100px; transition: background .2s; }
.nav-cta-btn:hover { background: var(--or2); }


/* ═══════════════════════════════════════════════
   3. HERO GRATUIT  (pleine page)
═══════════════════════════════════════════════ */
.hero {
  min-height: 100vh; position: relative;
  display: flex; flex-direction: column; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background: linear-gradient(170deg,
    #111926 0%,  #1C2D40 14%, #2E4A62 26%,
    #4A6678 36%, #7A8890 46%, #B07860 56%,
    #C88C6A 66%, #D8A878 76%, #E8C492 86%, #F0D4A8 100%
  );
}
.hero-grain {
  position: absolute; inset: 0; pointer-events: none; opacity: .28;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23n)' opacity='.4'/%3E%3C/svg%3E");
  background-size: 200px;
}
.hero-village { position: absolute; bottom: 0; left: 0; right: 0; height: 46%; pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 56px; background: #111820; z-index: 5; }
.hero-grid {
  position: absolute; inset: 0; opacity: .032; pointer-events: none;
  background-image: linear-gradient(rgba(250,250,245,1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(250,250,245,1) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-body {
  position: relative; z-index: 10; flex: 1;
  display: flex; align-items: center;
  max-width: 1360px; margin: 0 auto; width: 100%;
  padding: 96px 48px 72px; gap: 52px;
}
.hero-left  { flex: 1; max-width: 800px; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.35);
  border-radius: 100px; padding: 5px 15px 5px 8px; margin-bottom: 26px;
  animation: up .8s ease both;
}
.tag-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--or); animation: blink 2.5s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.3} }
@keyframes up { from{opacity:0;transform:translateY(22px)} to{opacity:1;transform:translateY(0)} }
.hero-tag span { font-size: 10.5px; color: #fff; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; }
.hero-h1 {
  font-family: 'Libre Baskerville', serif;
  font-size: clamp(54px, 6.5vw, 96px);
  color: #FAFAF5; line-height: .98; margin-bottom: 8px;
  text-shadow: 0 4px 40px rgba(0,0,0,.28);
  animation: up .8s .08s ease both;
}
.hero-h1 em  { font-style: italic; color: #fff; }
.hero-sub    { font-size: 11.5px; color: #fff; text-transform: uppercase; letter-spacing: .2em; font-weight: 400; margin-bottom: 28px; animation: up .8s .14s ease both; }
.hero-desc   { font-size: 15.5px; line-height: 1.82; font-weight: 300; color: rgba(250,250,245,.62); max-width: 460px; margin-bottom: 44px; animation: up .8s .2s ease both; }
.hero-btns   { display: flex; gap: 13px; flex-wrap: wrap; animation: up .8s .27s ease both; }

.btn-or {
  background: linear-gradient(135deg, var(--or), var(--or2));
  color: var(--nuit); padding: 14px 30px; border-radius: 100px;
  font-size: 13.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 22px rgba(196,146,74,.36); transition: transform .2s, box-shadow .2s;
}
.btn-or:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(196,146,74,.46); }
.btn-or svg { transition: transform .2s; }
.btn-or:hover svg { transform: translateX(3px); }
.btn-ghost { border: 1px solid rgba(250,250,245,.2); color: rgba(250,250,245,.78); padding: 14px 30px; border-radius: 100px; font-size: 13.5px; font-weight: 400; transition: all .2s; }
.btn-ghost:hover { border-color: var(--or); color: var(--or); background: rgba(196,146,74,.07); }

/* Carte info flottante (gratuit) */
.hero-card {
  background: rgba(26,35,50,.7); border: 1px solid rgba(196,146,74,.22);
  border-radius: 20px; padding: 26px 28px;
  backdrop-filter: blur(16px); min-width: 272px; flex-shrink: 0;
  animation: up .8s .33s ease both;
}
.hcard-title { font-size: 9.5px; text-transform: uppercase; letter-spacing: .16em; color: var(--or); font-weight: 600; margin-bottom: 16px; display: flex; align-items: center; gap: 9px; }
.hcard-title::before { content: ''; width: 16px; height: 1px; background: var(--or); }
.hrow { display: flex; align-items: flex-start; gap: 10px; padding: 10px 0; border-bottom: 1px solid rgba(250,250,245,.07); }
.hrow:last-child { border-bottom: none; }
.hico { width: 29px; height: 29px; background: rgba(196,146,74,.13); border-radius: 7px; display: flex; align-items: center; justify-content: center; color: var(--or); flex-shrink: 0; }
.hlbl { font-size: 9.5px; color: rgba(250,250,245,.3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1px; }
.hval { font-size: 12.5px; color: rgba(250,250,245,.82); line-height: 1.45; }
.hval a { color: var(--or2); }

/* Barre de stats hero (partagé, dimensions différentes) */
.hero-stats {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: repeat(4,1fr);
  border-top: 1px solid rgba(196,146,74,.12);
  background: rgba(26,35,50,.55); backdrop-filter: blur(12px);
}
/* Gratuit */
.hero-stats--full .hstat { padding: 22px 48px; animation: up .8s .38s ease both; }
.hero-stats--full .hstat-n { font-size: 30px; }
/* Premium */
.hero-stats--compact .hstat { padding: 18px 32px; }
.hero-stats--compact .hstat-n { font-size: 24px; }

.hstat { border-right: 1px solid rgba(196,146,74,.09); }
.hstat:last-child { border-right: none; }
.hstat-n { font-family: 'Libre Baskerville', serif; color: var(--or); line-height: 1; margin-bottom: 3px; }
.hstat-l { font-size: 10.5px; color: rgba(250,250,245,.35); text-transform: uppercase; letter-spacing: .1em; }


/* ═══════════════════════════════════════════════
   4. HERO PREMIUM  (compact ~60vh)
   Même .hero-bg, .hero-grain, .hero-village réutilisés
   avec des surcharges de dimensionnement.
═══════════════════════════════════════════════ */
.hero--compact {
  min-height: 500px;
  max-height: 500px;
  padding-top: 64px; /* compense la navbar fixe */
}
.hero--compact .hero-village { height: 52%; }
.hero--compact .hero-grain   { opacity: .22; }
.hero--compact .hero-bg {
  background: linear-gradient(160deg, #111926 0%, #1C2D40 20%, #2E4A62 40%, #4A6678 55%, #7A8890 70%, #B07860 85%, #D8A878 100%);
}
.hero--compact .hero-body {
  max-width: 100%; padding: 48px 48px 40px;
}
.hero--compact .hero-h1   { font-size: clamp(36px, 4vw, 58px); }
.hero--compact .hero-sub  { font-size: 10.5px; letter-spacing: .2em; margin-bottom: 20px; }

/* Infos contact dans hero premium */
.hero-contact-row  { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero-contact-item { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: #fff; }
.hero-contact-item svg { color: #fff; }
.hero-contact-item a   { color: #fff; }


/* ═══════════════════════════════════════════════
   5. TOPBAR  (gratuit uniquement)
═══════════════════════════════════════════════ */
.topbar {
  background: var(--or); padding: 7px 48px;
  display: flex; align-items: center; justify-content: space-between;
}
.topbar-left { font-size: 11.5px; color: var(--nuit); font-weight: 500; }
.topbar-left a { font-weight: 700; border-bottom: 1px solid rgba(26,35,50,.25); }
.topbar-right a {
  font-size: 11px; font-weight: 700; color: var(--nuit);
  background: rgba(26,35,50,.12); border-radius: 100px;
  padding: 4px 14px; border: 1px solid rgba(26,35,50,.2);
  transition: background .2s;
}
.topbar-right a:hover { background: rgba(26,35,50,.22); }


/* ═══════════════════════════════════════════════
   6. FLASH INFO  (partagé)
═══════════════════════════════════════════════ */
.flash { background: var(--or); display: flex; align-items: center; gap: 16px; }
.flash--gratuit { padding: 10px 48px; }
.flash--premium { padding: 9px 48px; }
.flash-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; color: var(--nuit); background: rgba(26,35,50,.15); border-radius: 4px; padding: 3px 8px; white-space: nowrap; flex-shrink: 0; }
.flash-text  { font-size: 13px; color: var(--nuit); font-weight: 500; }


/* ═══════════════════════════════════════════════
   7. ACCÈS RAPIDES  (gratuit uniquement)
═══════════════════════════════════════════════ */
.quick-wrap {
  display: grid; grid-template-columns: repeat(6,1fr);
  max-width: 1360px; margin: 0 auto;
  border-bottom: 1px solid var(--gris2);
}
.qcard {
  padding: 32px 28px; border-right: 1px solid var(--gris2);
  display: flex; flex-direction: column; gap: 10px;
  position: relative; overflow: hidden; transition: background .25s; cursor: pointer;
}
.qcard::after { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 2.5px; background: var(--or); transform: scaleX(0); transform-origin: left; transition: transform .3s; }
.qcard:hover { background: rgba(196,146,74,.04); }
.qcard:hover::after { transform: scaleX(1); }
.qcard:last-child { border-right: none; }
.qico { width: 40px; height: 40px; background: var(--gris1); border-radius: 11px; display: flex; align-items: center; justify-content: center; color: var(--vert); transition: background .25s, color .25s; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.qcard:hover .qico { background: var(--vert); color: white; }
.qtitle { font-size: 12.5px; font-weight: 600; color: var(--txt); line-height: 1.35; }
.qdesc  { font-size: 11.5px; color: var(--txt3); line-height: 1.5; font-weight: 300; }


/* ═══════════════════════════════════════════════
   8. LAYOUT PREMIUM  (sidebar + zone contenu)
═══════════════════════════════════════════════ */
.page-layout  { display: flex; align-items: stretch; max-width: 100%; min-height: 100vh; }
.content-area { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.content-area > footer { margin-top: auto; }

/* SIDEBAR */
.sidebar {
  width: 264px; flex-shrink: 0; position: sticky; top: 64px;
  height: calc(100vh - 64px); overflow-y: auto;
  background: var(--nuit); border-right: 1px solid rgba(196,146,74,.1);
  display: flex; flex-direction: column;
}
.sidebar::-webkit-scrollbar       { width: 4px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(196,146,74,.2); border-radius: 2px; }

.sb-head       { padding: 22px 20px 14px; border-bottom: 1px solid rgba(196,146,74,.1); }
.sb-head-label { font-size: 9px; text-transform: uppercase; letter-spacing: .18em; color: var(--or); font-weight: 700; margin-bottom: 2px; }
.sb-head-name  { font-family: 'Libre Baskerville', serif; font-size: 14px; color: #FAFAF5; }
.sb-section      { padding: 16px 12px 8px; }
.sb-section-title { font-size: 9px; text-transform: uppercase; letter-spacing: .16em; color: rgba(250,250,245,.25); font-weight: 700; padding: 0 8px; margin-bottom: 6px; }
.sb-link {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: 9px; font-size: 12.5px; font-weight: 500; color: rgba(250,250,245,.5);
  transition: all .18s; cursor: pointer; position: relative;
}
.sb-link:hover  { background: rgba(196,146,74,.1); color: rgba(250,250,245,.85); }
.sb-link.active { background: rgba(196,146,74,.18); color: #FAFAF5; }
.sb-link.active::before { content: ''; position: absolute; left: 0; top: 25%; bottom: 25%; width: 2.5px; background: var(--or); border-radius: 0 2px 2px 0; }
.sb-link svg { flex-shrink: 0; width: 15px; height: 15px; }
.sb-sublink { display: flex; align-items: center; gap: 9px; padding: 7px 10px 7px 32px; border-radius: 9px; font-size: 11.5px; font-weight: 400; color: rgba(250,250,245,.38); transition: all .18s; }
.sb-sublink:hover  { background: rgba(196,146,74,.07); color: rgba(250,250,245,.7); }
.sb-sublink.active { color: var(--or2); }

/* Menu toggle (parent non-cliquable) */
.sb-menu-toggle {
  display: flex; align-items: center; gap: 9px; padding: 9px 10px;
  border-radius: 9px; font-size: 12.5px; font-weight: 500; color: rgba(250,250,245,.5);
  transition: all .18s; cursor: pointer; position: relative; user-select: none;
}
.sb-menu-toggle:hover { background: rgba(196,146,74,.1); color: rgba(250,250,245,.85); }
.sb-menu-toggle.open  { color: rgba(250,250,245,.85); }
.sb-menu-icon { flex-shrink: 0; width: 15px; height: 15px; }
.sb-chevron {
  width: 14px; height: 14px; margin-left: auto; flex-shrink: 0;
  transition: transform .25s ease;
}
.sb-menu-toggle.open .sb-chevron { transform: rotate(180deg); }

/* Sous-menu pliable */
.sb-submenu {
  max-height: 0; overflow: hidden;
  transition: max-height .3s ease;
}
.sb-submenu.open { max-height: 800px; }

.sb-divider { height: 1px; background: rgba(196,146,74,.08); margin: 8px 12px; }

/* Mini-contact en bas de sidebar */
.sb-contact { margin: auto 12px 12px; padding: 14px; background: rgba(196,146,74,.08); border: 1px solid rgba(196,146,74,.15); border-radius: 12px; }
.sb-contact-title { font-size: 9px; text-transform: uppercase; letter-spacing: .14em; color: var(--or); font-weight: 700; margin-bottom: 10px; }
.sb-contact-row { display: flex; align-items: flex-start; gap: 8px; font-size: 11px; color: rgba(250,250,245,.48); padding: 4px 0; }
.sb-contact-row svg { color: var(--or); flex-shrink: 0; margin-top: 1px; }


/* ═══════════════════════════════════════════════
   9. SECTIONS — communs
═══════════════════════════════════════════════ */
.wrap        { max-width: 1360px; margin: 0 auto; padding: 0 48px; }
.wrap--full  { max-width: 1100px; }          /* premium (dans sidebar layout) */
.section     { padding: 80px 0; }
.section--compact { padding: 60px 0; }       /* premium */
.section-bg-alt { background: var(--gris1); }
.section-hd  { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 48px; }
.section-hd--compact { margin-bottom: 36px; }

.kicker { font-size: 10.5px; text-transform: uppercase; letter-spacing: .18em; color: var(--or); font-weight: 700; margin-bottom: 9px; display: flex; align-items: center; gap: 9px; }
.kicker::before { content: ''; width: 22px; height: 1.5px; background: var(--or); }
.sh2    { font-family: 'Libre Baskerville', serif; font-size: clamp(28px, 3vw, 42px); line-height: 1.1; color: var(--txt); }
.sh2 em { font-style: italic; color: var(--vert); }
/* Premium : sh2 plus petit dans le content-area */
.sh2--md { font-size: clamp(24px, 2.5vw, 36px); }

.see-all      { font-size: 12.5px; color: var(--txt3); border-bottom: 1px solid currentColor; padding-bottom: 2px; transition: color .2s; }
.see-all:hover { color: var(--or); }


/* ═══════════════════════════════════════════════
   10. ACTUALITÉS  (partagé)
═══════════════════════════════════════════════ */
.actu-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 18px; }
.acard { background: white; border-radius: 16px; overflow: hidden; border: 1px solid var(--gris2); transition: all .25s; }
.acard:hover { transform: translateY(-3px); box-shadow: 0 12px 36px rgba(26,35,50,.1); border-color: rgba(196,146,74,.22); }
.acard-img { height: 160px; background: var(--gris1); display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; }
.acard.main .acard-img { height: 220px; }
.acard-badge { position: absolute; top: 12px; left: 12px; font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; padding: 3px 9px; border-radius: 100px; }
.acard-badge.une     { background: var(--or); color: var(--nuit); }
.acard-badge.travaux { background: var(--gris2); color: var(--txt3); }
.acard-badge.officiel { background: var(--vert-pale); color: var(--vert); }
.acard-body  { padding: 18px 20px; }
.acard-date  { font-size: 10px; color: var(--txt3); font-weight: 300; margin-bottom: 6px; }
.acard-title { font-family: 'Libre Baskerville', serif; font-size: 16px; color: var(--txt); margin-bottom: 8px; line-height: 1.3; }
.acard.secondary .acard-title { font-size: 14px; }
.acard-desc  { font-size: 12px; color: var(--txt2); line-height: 1.65; font-weight: 300; }
.acard-link  { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--or); margin-top: 12px; font-weight: 600; transition: gap .2s; }
.acard-link:hover { gap: 8px; }


/* ═══════════════════════════════════════════════
   11. AGENDA  (partagé)
═══════════════════════════════════════════════ */
.agenda-list { display: flex; flex-direction: column; gap: 2px; }
.agenda-item { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: white; border-radius: 12px; border: 1px solid var(--gris2); transition: all .2s; }
.agenda-item:hover { border-color: rgba(196,146,74,.28); background: var(--or-pale); }
.agenda-date   { flex-shrink: 0; width: 52px; text-align: center; border: 1px solid var(--gris2); border-radius: 10px; padding: 8px 4px; background: var(--gris1); }
.agenda-date-m { font-size: 9px; text-transform: uppercase; font-weight: 700; color: var(--or); letter-spacing: .1em; }
.agenda-date-d { font-family: 'Libre Baskerville', serif; font-size: 22px; color: var(--txt); line-height: 1; }
.agenda-info   { flex: 1; min-width: 0; }
.agenda-title  { font-size: 13.5px; font-weight: 600; color: var(--txt); margin-bottom: 2px; }
.agenda-where  { font-size: 11.5px; color: var(--txt3); font-weight: 300; }
.agenda-tag    { flex-shrink: 0; font-size: 9.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 3px 10px; border-radius: 100px; }
.agenda-tag.fete    { background: rgba(196,146,74,.15); color: var(--or); }
.agenda-tag.officiel { background: var(--vert-pale); color: var(--vert); }
.agenda-tag.travaux { background: var(--gris2); color: var(--txt3); }


/* ═══════════════════════════════════════════════
   12. COMMUNE  (gratuit uniquement)
═══════════════════════════════════════════════ */
.commune-grid  { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.commune-lead  { font-size: 16.5px; line-height: 1.85; color: var(--txt2); font-weight: 300; margin-top: 22px; margin-bottom: 28px; }
.commune-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fact-card     { background: var(--gris1); border-radius: 14px; padding: 18px 20px; border: 1px solid var(--gris2); transition: border-color .2s; }
.fact-card:hover { border-color: rgba(196,146,74,.3); }
.fact-n { font-family: 'Libre Baskerville', serif; font-size: 26px; color: var(--or); margin-bottom: 2px; }
.fact-l { font-size: 11px; color: var(--txt3); text-transform: uppercase; letter-spacing: .08em; }
.source-note { display: flex; align-items: center; gap: 9px; font-size: 11.5px; color: var(--txt3); margin-top: 24px; padding: 12px 16px; background: var(--gris1); border-radius: 10px; border: 1px solid var(--gris2); }
.source-note svg { color: var(--or); flex-shrink: 0; }

/* Carte mairie contact (panneau sombre) */
.mairie-card-info { background: var(--nuit); border-radius: 22px; padding: 36px; overflow: hidden; position: relative; }
.mairie-card-info .mcrow { display: flex; align-items: flex-start; gap: 14px; padding: 12px 0; border-bottom: 1px solid rgba(250,250,245,.07); }
.mairie-card-info .mcrow:last-child { border-bottom: none; }
.mairie-card-info .mcico { width: 34px; height: 34px; background: rgba(196,146,74,.15); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--or); flex-shrink: 0; }
.mairie-card-info .mclbl { font-size: 9.5px; color: rgba(250,250,245,.3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 2px; }
.mairie-card-info .mcval { font-size: 13px; color: rgba(250,250,245,.82); line-height: 1.5; }
.mairie-card-info .mcval a { color: var(--or2); }


/* ═══════════════════════════════════════════════
   13. PAGE CONTENT  (premium uniquement)
   Styles du contenu édité via TinyMCE
═══════════════════════════════════════════════ */
.commune-desc-layout { display: flex; gap: 32px; align-items: flex-start; }
.commune-photo { width: 280px; flex-shrink: 0; border-radius: 12px; object-fit: cover; box-shadow: 0 4px 24px rgba(0,0,0,.12); }
@media (max-width: 768px) { .commune-desc-layout { flex-direction: column; } .commune-photo { width: 100%; max-height: 220px; } }
.page-content { max-width: 800px; }
.page-content h2 { font-family: 'Libre Baskerville', serif; font-size: 28px; color: var(--txt); margin: 32px 0 16px; }
.page-content h3 { font-family: 'Libre Baskerville', serif; font-size: 20px; color: var(--txt); margin: 24px 0 12px; }
.page-content p  { font-size: 15px; line-height: 1.85; color: var(--txt2); font-weight: 300; margin-bottom: 16px; }
.page-content ul { padding-left: 20px; margin-bottom: 16px; }
.page-content ul li { font-size: 15px; line-height: 1.75; color: var(--txt2); font-weight: 300; padding: 3px 0; }
.page-content strong { font-weight: 600; color: var(--txt); }
.page-content a { color: var(--vert); border-bottom: 1px solid rgba(58,98,72,.3); transition: border-color .2s; }
.page-content a:hover { border-color: var(--vert); }
/* Liste de documents (téléchargements) */
.page-content .doc-list { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.page-content .doc-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; background: var(--gris1); border-radius: 10px; border: 1px solid var(--gris2); transition: all .2s; text-decoration: none; cursor: pointer; }
a.doc-item { color: inherit; border-bottom: none !important; }
.page-content .doc-item:hover { border-color: rgba(196,146,74,.3); background: var(--or-pale); }
.page-content .doc-ico  { width: 34px; height: 34px; background: rgba(196,146,74,.12); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--or); flex-shrink: 0; }
.page-content .doc-name { font-size: 13px; font-weight: 600; color: var(--txt); }
.page-content .doc-meta { font-size: 11px; color: var(--txt3); }


/* Contenu personnalisé mairie */
.contenu-mairie { background: white; border-radius: 16px; padding: 32px 40px; border: 1px solid var(--gris2); }
.contenu-mairie img { max-width: 100%; height: auto !important; border-radius: 10px; margin: 8px 0; }
.contenu-mairie p { font-size: 15px; line-height: 1.85; color: var(--txt2); margin-bottom: 12px; }
.contenu-mairie a { color: var(--vert); text-decoration: underline; }
@media (max-width: 768px) { .contenu-mairie { padding: 20px 18px; } }

/* ═══════════════════════════════════════════════
   14. CONSEIL MUNICIPAL  (partagé)
═══════════════════════════════════════════════ */
.conseil-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 28px; }
.conseiller { display: flex; align-items: center; gap: 11px; background: var(--gris1); border-radius: 11px; padding: 13px 15px; border: 1px solid var(--gris2); transition: all .2s; }
.conseiller:hover { border-color: rgba(196,146,74,.3); background: white; }
.cav      { width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: 'Libre Baskerville', serif; font-size: 12px; font-weight: 700; color: white; }
.cav.maire { background: linear-gradient(135deg, var(--or), var(--or2)); color: var(--nuit); }
.cav.adj1  { background: var(--vert); }
.cav.adj2  { background: var(--vert2); }
.cav.cons  { background: var(--nuit2); }
.cname    { font-size: 12px; font-weight: 600; color: var(--txt); line-height: 1.25; }
.crole    { font-size: 10px; color: var(--txt3); font-weight: 300; }


/* ═══════════════════════════════════════════════
   15. CONTACT  (partagé)
═══════════════════════════════════════════════ */
.contact-grid  { display: grid; grid-template-columns: 1.1fr 1fr; gap: 60px; align-items: start; }
.contact-lead  { font-size: 15.5px; line-height: 1.8; color: var(--txt2); font-weight: 300; margin-top: 20px; margin-bottom: 32px; }
.cdetail { border-radius: 18px; overflow: hidden; border: 1px solid var(--gris2); }
.crow { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--gris2); transition: background .18s; }
.crow:last-child { border-bottom: none; }
.crow:hover { background: var(--gris1); }
.cico  { width: 34px; height: 34px; background: var(--vert-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--vert); flex-shrink: 0; }
.clbl  { font-size: 9.5px; color: var(--gris3); text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1px; }
.cval  { font-size: 13px; color: var(--txt); line-height: 1.5; }
.cval a { color: var(--or); }


/* ═══════════════════════════════════════════════
   16. CARTE MAP  (partagé)
═══════════════════════════════════════════════ */
.map-box { border-radius: 22px; overflow: hidden; background: var(--gris1); border: 1px solid var(--gris2); position: relative; }
.map-box--gratuit { height: 340px; display: flex; align-items: center; justify-content: center; }
.map-box--premium { border-radius: 18px; height: 300px; }
.map-box::before {
  content: '';  position: absolute; inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 55%, rgba(58,98,72,.14) 0%, transparent 65%),
    repeating-linear-gradient(0deg, transparent, transparent 44px, rgba(26,35,50,.04) 44px, rgba(26,35,50,.04) 45px),
    repeating-linear-gradient(90deg, transparent, transparent 44px, rgba(26,35,50,.04) 44px, rgba(26,35,50,.04) 45px);
}
.map-road-h { position: absolute; left: 0; right: 0; top: 50%; height: 6px; background: rgba(255,255,255,.6); transform: translateY(-50%); }
.map-road-v { position: absolute; top: 0; bottom: 0; left: 48%; width: 6px; background: rgba(255,255,255,.5); }
.map-pin    { position: absolute; top: 50%; left: 48%; transform: translate(-50%,-100%); display: flex; flex-direction: column; align-items: center; }
.pin-circle { width: 14px; height: 14px; background: var(--or); border-radius: 50%; border: 3px solid white; box-shadow: 0 0 0 3px rgba(196,146,74,.3), 0 4px 14px rgba(0,0,0,.2); }
.pin-stem   { width: 2px; height: 20px; background: var(--or); }
.pin-label  { background: var(--nuit); color: #FAFAF5; font-size: 11.5px; padding: 5px 12px; border-radius: 100px; margin-top: 4px; white-space: nowrap; font-weight: 500; }
.map-scale  { position: absolute; bottom: 16px; right: 18px; font-size: 10px; color: var(--txt3); background: rgba(255,255,255,.7); padding: 3px 8px; border-radius: 4px; }


/* ═══════════════════════════════════════════════
   17. LIENS UTILES  (gratuit uniquement)
═══════════════════════════════════════════════ */
.links-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.lcard { display: flex; align-items: center; gap: 12px; background: var(--gris1); border-radius: 12px; padding: 14px 16px; border: 1px solid var(--gris2); transition: all .2s; }
.lcard:hover { border-color: rgba(196,146,74,.3); background: white; transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,35,50,.07); }
.lico  { width: 34px; height: 34px; background: var(--vert-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; color: var(--vert); flex-shrink: 0; }
.ltitle { font-size: 12px; font-weight: 600; color: var(--txt); }


/* ═══════════════════════════════════════════════
   18. SERVICES DE PROXIMITÉ  (partagé)
═══════════════════════════════════════════════ */
.section--gris { background: var(--gris1); }

.equip-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}
.equip-card {
  display: flex; align-items: center; gap: 14px;
  background: white; border-radius: 14px; padding: 16px 18px;
  border: 1px solid var(--gris2); transition: all .2s;
}
.equip-card:hover { border-color: rgba(196,146,74,.3); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(26,35,50,.07); }
.equip-ico  { font-size: 26px; flex-shrink: 0; line-height: 1; }
.equip-info { min-width: 0; }
.equip-label { font-size: 13px; font-weight: 600; color: var(--txt); line-height: 1.3; margin-bottom: 2px; }
.equip-count { font-size: 11px; color: var(--txt3); font-weight: 300; }


/* ═══════════════════════════════════════════════
   19. PANEL ÉQUIPEMENTS  (partagé)
═══════════════════════════════════════════════ */
.equip-overlay {
  display: none; position: fixed; inset: 0; z-index: 1100;
  background: rgba(26,35,50,.48); backdrop-filter: blur(3px);
}
.equip-overlay.open { display: block; animation: fadeIn .2s ease; }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }

.equip-panel {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 1101;
  width: 420px; max-width: 100vw;
  background: #fff; box-shadow: -8px 0 48px rgba(26,35,50,.18);
  display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .3s cubic-bezier(.4,0,.2,1);
}
.equip-panel.open { transform: translateX(0); }

.ep-head {
  padding: 22px 24px 18px; border-bottom: 1px solid var(--gris2);
  display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  flex-shrink: 0;
}
.ep-head-left { display: flex; align-items: center; gap: 14px; }
.ep-ico   { font-size: 32px; line-height: 1; }
.ep-title { font-family: 'Libre Baskerville', serif; font-size: 18px; color: var(--txt); }
.ep-count { font-size: 11.5px; color: var(--txt3); margin-top: 2px; }
.ep-close {
  width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--gris2);
  background: var(--gris1); display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0; color: var(--txt2); transition: all .18s;
  font-size: 16px; line-height: 1;
}
.ep-close:hover { background: var(--nuit); color: white; border-color: var(--nuit); }

.ep-body { flex: 1; overflow-y: auto; padding: 16px; }
.ep-body::-webkit-scrollbar       { width: 4px; }
.ep-body::-webkit-scrollbar-track { background: transparent; }
.ep-body::-webkit-scrollbar-thumb { background: var(--gris2); border-radius: 2px; }

/* Loading */
.ep-loading {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; padding: 60px 20px; color: var(--txt3);
  gap: 14px;
}
.ep-spinner {
  width: 32px; height: 32px; border: 3px solid var(--gris2);
  border-top-color: var(--or); border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.ep-loading-text { font-size: 13px; }

/* Liste d'établissements */
.ep-list { display: flex; flex-direction: column; gap: 8px; }
.ep-item {
  background: var(--gris1); border-radius: 12px; padding: 14px 16px;
  border: 1px solid var(--gris2); transition: border-color .18s;
}
.ep-item:hover { border-color: rgba(196,146,74,.3); }
.ep-item-name  { font-size: 13.5px; font-weight: 600; color: var(--txt); margin-bottom: 3px; }
.ep-item-type  { font-size: 11px; color: var(--txt3); font-style: italic; margin-bottom: 4px; }
.ep-item-addr  { font-size: 11.5px; color: var(--txt3); font-weight: 300; display: flex; align-items: flex-start; gap: 5px; margin-bottom: 3px; }
.ep-item-row   { font-size: 11.5px; color: var(--txt2); display: flex; align-items: center; gap: 6px; margin-top: 4px; }
.ep-item-row a { color: var(--vert); }
.ep-item-row a:hover { text-decoration: underline; }
.ep-horaires   { font-size: 11px; color: var(--txt3); font-style: italic; margin-top: 3px; white-space: normal; line-height: 1.5; }
.ep-badge-osm  { font-size: 9.5px; color: var(--txt3); border: 1px solid var(--gris2); border-radius: 100px; padding: 2px 8px; display: inline-flex; align-items: center; gap: 4px; margin-top: 10px; }

/* Vide / erreur */
.ep-empty { text-align: center; padding: 48px 20px; color: var(--txt3); font-size: 13px; line-height: 1.7; }
.ep-empty strong { display: block; font-size: 24px; margin-bottom: 8px; }

@media (max-width: 480px) { .equip-panel { width: 100vw; } }

/* Bouton carte des commerces */
.btn-carte-comm {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--or);
  color: var(--or);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all .2s;
  white-space: nowrap;
}
.btn-carte-comm:hover { background: var(--or); color: #fff; }


/* ═══════════════════════════════════════════════
   20. UPGRADE BANNER  (gratuit uniquement)
═══════════════════════════════════════════════ */
.upgrade-banner {
  background: var(--nuit); border-radius: 22px; padding: 40px 44px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  border: 1px solid rgba(196,146,74,.18);
}
.upgrade-left .sh2     { color: #FAFAF5; }
.upgrade-left .sh2 em  { color: var(--or); }
.upgrade-desc { font-size: 14px; color: rgba(250,250,245,.45); font-weight: 300; margin-top: 10px; line-height: 1.7; }
.upgrade-features { display: flex; flex-direction: column; gap: 7px; margin-top: 16px; }
.upgrade-feat { font-size: 12.5px; color: rgba(250,250,245,.55); display: flex; align-items: center; gap: 8px; }
.upgrade-feat::before { content: '✓'; color: var(--or); font-weight: 700; flex-shrink: 0; }


/* ═══════════════════════════════════════════════
   20. FOOTER  (partagé)
═══════════════════════════════════════════════ */
footer { background: var(--nuit); padding: 56px 48px 26px; }
.ft       { max-width: 1360px; margin: 0 auto; }
.ft--full { max-width: 100%; }           /* premium */
.ft-top   { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr; gap: 44px; padding-bottom: 44px; border-bottom: 1px solid rgba(196,146,74,.1); }
.ft-brand-logo { display: flex; align-items: center; gap: 11px; margin-bottom: 16px; }
.ft-seal  { width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, var(--or), var(--or2)); display: flex; align-items: center; justify-content: center; font-family: 'Libre Baskerville', serif; font-size: 16px; font-weight: 700; color: var(--nuit); overflow: hidden; flex-shrink: 0; }
.ft-seal--blason { background: #fff; border: 1.5px solid rgba(196,146,74,.3); border-radius: 8px; padding: 3px; }
.ft-seal--blason img { width: 100%; height: 100%; object-fit: contain; }
.ft-brand-name { font-family: 'Libre Baskerville', serif; font-size: 15px; color: #FAFAF5; line-height: 1.2; }
.ft-brand-name small { display: block; font-family: 'Mulish', sans-serif; font-size: 10px; color: var(--or); letter-spacing: .12em; text-transform: uppercase; font-weight: 400; }
.ft-tagline { font-size: 13px; color: rgba(250,250,245,.36); line-height: 1.7; font-weight: 300; }
.ft-contact { margin-top: 18px; display: flex; flex-direction: column; gap: 7px; }
.ft-contact-row { display: flex; align-items: center; gap: 8px; font-size: 12px; color: rgba(250,250,245,.45); }
.ft-contact-row svg { color: var(--or); flex-shrink: 0; }
.ft-coltitle { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color: var(--or); font-weight: 700; margin-bottom: 16px; }
.ft-links { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.ft-links a { color: rgba(250,250,245,.44); font-size: 12.5px; font-weight: 300; transition: color .2s; }
.ft-links a:hover { color: rgba(250,250,245,.85); }
.ft-bot  { display: flex; justify-content: space-between; align-items: center; padding-top: 24px; }
.ft-copy { font-size: 11.5px; color: rgba(250,250,245,.24); }
.ft-legal { display: flex; gap: 20px; }
.ft-legal a { font-size: 11.5px; color: rgba(250,250,245,.24); transition: color .2s; }
.ft-legal a:hover { color: rgba(250,250,245,.6); }


/* ═══════════════════════════════════════════════
   21. UTILITAIRES  (partagé)
═══════════════════════════════════════════════ */
/* Révélation au scroll via IntersectionObserver */
.rv     { opacity: 0; transform: translateY(20px); transition: opacity .6s ease, transform .6s ease; }
.rv.on  { opacity: 1; transform: translateY(0); }

/* Séparateur texte */
.divider { display: flex; align-items: center; gap: 16px; margin: 0 0 36px; color: var(--gris3); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.divider::before,
.divider::after { content: ''; flex: 1; height: 1px; background: var(--gris2); }

/* ═══ DIAPORAMA ═══ */
.diaporama { max-width: 900px; margin: 0 auto; }

.diaporama-stage {
  position: relative; width: 100%; aspect-ratio: 16/10;
  background: #111820; border-radius: 16px 16px 0 0; overflow: hidden;
}

.diaporama-slide {
  position: absolute; inset: 0;
  opacity: 0; transition: opacity .8s ease;
}
.diaporama-slide.active { opacity: 1; z-index: 1; }
.diaporama-slide img { width: 100%; height: 100%; object-fit: contain; }

.diaporama-caption {
  position: absolute; bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,.7));
  color: #fff; padding: 40px 24px 16px; font-size: 14px;
  text-align: center; z-index: 2;
}

.diaporama-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.4); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s, background .2s;
}
.diaporama-stage:hover .diaporama-btn { opacity: 1; }
.diaporama-btn:hover { background: rgba(0,0,0,.7); }
.diaporama-btn--prev { left: 12px; }
.diaporama-btn--next { right: 12px; }

.diaporama-playpause {
  position: absolute; bottom: 12px; right: 12px; z-index: 3;
  width: 36px; height: 36px; border: none; border-radius: 50%;
  background: rgba(0,0,0,.4); cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
}
.diaporama-stage:hover .diaporama-playpause { opacity: 1; }
.diaporama-playpause:hover { background: rgba(0,0,0,.7); }

.diaporama-counter {
  position: absolute; bottom: 14px; left: 16px; z-index: 3;
  color: rgba(255,255,255,.8); font-size: 12px; font-weight: 600;
  opacity: 0; transition: opacity .3s;
}
.diaporama-stage:hover .diaporama-counter { opacity: 1; }

.diaporama-progress {
  height: 3px; background: var(--gris2); border-radius: 0;
}
.diaporama-progress-bar {
  height: 100%; width: 0; background: var(--or);
  transition: none;
}

.diaporama-thumbs {
  display: flex; gap: 6px; padding: 10px 0;
  overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: thin; scrollbar-color: var(--gris2) transparent;
}
.diaporama-thumb {
  flex-shrink: 0; width: 72px; height: 48px;
  border: 2px solid transparent; border-radius: 8px;
  overflow: hidden; cursor: pointer; opacity: .5;
  transition: opacity .2s, border-color .2s;
  background: none; padding: 0;
}
.diaporama-thumb:hover { opacity: .8; }
.diaporama-thumb.active { opacity: 1; border-color: var(--or); }
.diaporama-thumb img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 768px) {
  .diaporama-stage { aspect-ratio: 4/3; border-radius: 12px 12px 0 0; }
  .diaporama-btn { opacity: 1; width: 36px; height: 36px; }
  .diaporama-playpause { opacity: 1; }
  .diaporama-counter { opacity: 1; }
  .diaporama-thumb { width: 56px; height: 38px; }
}

/* ─── Compteur de visiteurs ───────────────────────────────── */
.premium-footer { padding: 2rem 0; margin-top: 3rem; border-top: 1px solid #e5e7eb; }
.footer-inner { max-width: 800px; margin: 0 auto; text-align: center; }
.footer-counter {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8eeff 100%);
  border: 1px solid #d0d9f0; border-radius: 999px;
  padding: 0.5rem 1.2rem; margin-bottom: 1rem;
}
.counter-icon { color: #4a6fa5; display: flex; align-items: center; }
.counter-number { font-family: 'Libre Baskerville', serif; font-weight: 700; font-size: 1.1rem; color: #1a3a6b; }
.counter-label { font-family: 'Mulish', sans-serif; font-size: 0.8rem; color: #6b7fa5; margin-left: 0.3rem; }
.footer-links { font-family: 'Mulish', sans-serif; font-size: 0.75rem; color: #9ca3af; }
.footer-links a { color: #6b7280; text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-sep { margin: 0 0.5rem; }
/* ─── Pages fichiers — Liste téléchargeable ──────────────── */
.page-fichiers-desc {
  font-family: 'Mulish', sans-serif;
  font-size: 0.95rem;
  color: var(--txt2, #6b5e51);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}
.fichiers-list {
  display: flex; flex-direction: column; gap: 0.5rem;
}
.fichier-item {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: var(--beige, #faf8f5);
  border: 1px solid rgba(0,0,0,0.04);
  border-radius: 12px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s, box-shadow 0.2s;
}
.fichier-item:hover {
  background: #f3efe9;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.fichier-icon {
  width: 40px; height: 40px;
  background: rgba(194, 163, 118, 0.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  color: #b8945f;
}
.fichier-info { flex: 1; min-width: 0; }
.fichier-nom {
  font-family: 'Mulish', sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--txt1, #3d3226);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.fichier-meta {
  font-family: 'Mulish', sans-serif;
  font-size: 0.75rem;
  color: var(--txt3, #a39585);
  margin-top: 2px;
}