/* ═══════════════════════════════════════════════
   MAIRIE DE SAINT-MARTIN-DE-NIGELLES
   Feuille de style principale
   ═══════════════════════════════════════════════ */

/* ── RESET & VARIABLES ──────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:   oklch(26% 0.055 242);
  --navy2:  oklch(34% 0.055 242);
  --green:  oklch(42% 0.09 158);
  --green2: oklch(55% 0.09 158);
  --greenl: oklch(72% 0.08 158);
  --sand:   oklch(92% 0.015 90);
  --bg:     oklch(98.5% 0.004 242);
  --surface:oklch(96% 0.008 242);
  --border: oklch(88% 0.012 242);
  --text:   oklch(20% 0.025 242);
  --muted:  oklch(52% 0.02 242);
  --ff-display: 'Cormorant Garamond', Georgia, serif;
  --ff-body:    'Plus Jakarta Sans', system-ui, sans-serif;
  --radius: 12px;
  --radius-lg: 16px;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--ff-body);
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.6;
}

a { color: inherit; }
img { display: block; max-width: 100%; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── LAYOUT ─────────────────────────────────────── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 72px 0; }
.section--surface { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section--navy { background: var(--navy); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.grid-auto-sm { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }

/* ── TYPOGRAPHIE ────────────────────────────────── */
.section-label {
  color: var(--green);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
}

.section-title {
  font-family: var(--ff-display);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 0;
  line-height: 1.15;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 36px;
}

/* ── BOUTONS ────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 14px;
  padding: 12px 24px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, opacity 0.2s;
}
.btn-primary    { background: var(--navy);  color: white; }
.btn-primary:hover { background: var(--navy2); }
.btn-green      { background: var(--green); color: white; }
.btn-green:hover { background: oklch(35% 0.09 158); }
.btn-outline    { background: transparent; color: var(--navy); border: 1px solid var(--border); }
.btn-outline:hover { background: var(--surface); }
.btn-ghost-white { background: oklch(100% 0 0 / 0.08); color: white; border: 1px solid oklch(100% 0 0 / 0.2); }
.btn-ghost-white:hover { background: oklch(100% 0 0 / 0.15); }
.btn-white      { background: white; color: var(--navy); }
.btn-white:hover { background: var(--greenl); }
.btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }
.btn-pill { border-radius: 20px; }

/* ── HEADER ─────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  transition: background 0.4s, box-shadow 0.4s;
}

/* État transparent (home avant scroll) */
.site-header--home { background: transparent; box-shadow: none; }
/* État navy (inner pages ou home après scroll) */
.site-header--navy { background: var(--navy); box-shadow: 0 2px 16px oklch(0% 0 0 / 0.18); }

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.header-logo {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  flex-shrink: 0;
  line-height: 1;
}
.header-logo__name {
  font-family: var(--ff-display);
  color: white;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.1;
}
.header-logo__sub {
  color: oklch(80% 0.04 242);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-top: 2px;
}

.header-nav {
  display: flex;
  gap: 2px;
  flex: 1;
  justify-content: center;
}
.header-nav__link {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  color: oklch(78% 0.04 242);
  font-family: var(--ff-body);
  font-size: 13.5px;
  font-weight: 400;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  transition: color 0.2s;
}
.header-nav__link:hover { color: white; }
.header-nav__link.is-active {
  color: white;
  font-weight: 600;
  border-bottom-color: var(--greenl);
}

.header-actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }

.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: white;
  padding: 4px;
  align-items: center;
}

/* Mobile menu drawer */
.mobile-menu {
  display: none;
  position: fixed;
  inset: 0;
  top: 64px;
  z-index: 99;
  background: var(--navy);
  padding: 20px 0;
  flex-direction: column;
}
.mobile-menu.is-open { display: flex; }
.mobile-menu__link {
  background: none;
  border: none;
  border-bottom: 1px solid oklch(100% 0 0 / 0.08);
  cursor: pointer;
  color: white;
  font-family: var(--ff-body);
  font-size: 17px;
  font-weight: 400;
  padding: 14px 24px;
  text-align: left;
  text-decoration: none;
  display: block;
}
.mobile-menu__link.is-active { color: var(--greenl); font-weight: 700; }
.mobile-menu__cta {
  margin: 16px 24px 0;
  background: var(--green) !important;
  border-radius: 9px !important;
  border: none !important;
  font-weight: 700 !important;
  text-align: center;
}

/* ── HERO (HOME) ────────────────────────────────── */
.hero {
  position: relative;
  background: var(--navy);
  min-height: 480px;
  display: flex;
  align-items: center;
  overflow: hidden;
  /* Le header sticky est au-dessus, donc on compense avec margin-top négatif */
  margin-top: -64px;
  padding-top: 64px;
}

.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}
.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    oklch(20% 0.06 242 / 0.92) 0%,
    oklch(22% 0.06 230 / 0.82) 40%,
    oklch(24% 0.05 200 / 0.55) 70%,
    oklch(18% 0.04 180 / 0.3) 100%
  );
  z-index: 1;
}

.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(oklch(100% 0 0 / 0.03) 1px, transparent 1px),
    linear-gradient(90deg, oklch(100% 0 0 / 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 1;
}

.hero__body {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.hero__eyebrow-bar {
  width: 3px;
  height: 40px;
  background: var(--greenl);
  border-radius: 2px;
}
.hero__eyebrow-text {
  color: var(--greenl);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero__title {
  font-family: var(--ff-display);
  color: white;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: 20px;
  max-width: 600px;
}
.hero__title em {
  font-style: italic;
  color: var(--greenl);
}

.hero__subtitle {
  color: oklch(80% 0.03 242);
  font-size: 17px;
  max-width: 480px;
  margin-bottom: 40px;
  line-height: 1.7;
}

.hero__actions { display: flex; gap: 14px; flex-wrap: wrap; }

.hero__stats {
  margin-top: 56px;
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}
.hero__stat {
  border-left: 1px solid oklch(100% 0 0 / 0.15);
  padding-left: 16px;
}
.hero__stat-label {
  color: var(--greenl);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 500;
}
.hero__stat-value {
  color: white;
  font-size: 17px;
  font-family: var(--ff-display);
  font-weight: 600;
}

/* ── PAGE HERO (pages intérieures) ──────────────── */
.page-hero {
  background: var(--navy);
  padding: 56px 0 64px;
}
.page-hero__label {
  color: var(--greenl);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.page-hero__title {
  font-family: var(--ff-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: white;
  line-height: 1.1;
}
.page-hero__intro {
  color: oklch(78% 0.04 242);
  font-size: 15px;
  max-width: 560px;
  margin-top: 14px;
  line-height: 1.7;
}

/* Quand les onglets sont présents : supprimer le padding-bottom du hero */
.page-hero:has(.page-hero__tabs) {
  padding-bottom: 0;
}

/* Onglets sur fond navy (Vie Municipale) */
.page-hero__tabs {
  display: flex;
  gap: 4px;
  border-bottom: 1px solid oklch(100% 0 0 / 0.12);
  margin-top: 24px;
}
.page-hero__tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: var(--ff-body);
  font-size: 15px;
  font-weight: 400;
  color: oklch(70% 0.04 242);
  padding: 12px 20px;
  transition: color 0.2s;
  text-decoration: none;
}
.page-hero__tab:hover { color: white; }
.page-hero__tab.is-active {
  color: white;
  font-weight: 600;
  border-bottom-color: var(--greenl);
}

/* ── BREADCRUMB ─────────────────────────────────── */
.breadcrumb {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
}
.breadcrumb__inner {
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 13px;
  color: var(--muted);
}
.breadcrumb__link { color: var(--green); text-decoration: none; }
.breadcrumb__link:hover { text-decoration: underline; }
.breadcrumb__sep { color: var(--border); }
.breadcrumb__current { color: var(--text); font-weight: 500; }

/* ── ACTUALITÉS CARD ────────────────────────────── */
.actu-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}
.actu-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px oklch(0% 0 0 / 0.09);
}

.actu-card__img {
  height: 148px;
  overflow: hidden;
  background: var(--surface);
}
.actu-card__img img { width: 100%; height: 100%; object-fit: cover; }

.actu-card__body {
  padding: 0px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.actu-card__meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.actu-card__cat {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* Couleurs catégories – à compléter selon vos catégories */
.cat-travaux  { background: #c84b2f22; color: #c84b2f; }
.cat-vie      { background: #2d6a4f22; color: #2d6a4f; }
.cat-ecole    { background: #1a527622; color: #1a5276; }
.cat-env      { background: #1e844922; color: #1e8449; }
.cat-urba     { background: #6c348322; color: #6c3483; }
.cat-asso     { background: #b7770d22; color: #b7770d; }

.actu-card__date { color: var(--muted); font-size: 12px; }
.actu-card__title {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  margin-bottom: 8px;
  color: var(--text);
}
.actu-card__excerpt {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.6;
  flex: 1;
}
.actu-card__more {
  margin-top: 10px;
  margin-bottom: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
}

/* ── GAZETTE SECTION ────────────────────────────── */
.gazette-section {
  background: var(--navy);
  padding: 64px 0;
}
.gazette-inner {
  display: flex;
  gap: 48px;
  align-items: center;
}
.gazette-cover {
  flex-shrink: 0;
  width: 200px;
  height: 270px;
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px oklch(0% 0 0 / 0.3);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transform: rotate(-2deg);
}
.gazette-cover__header {
  background: var(--green);
  padding: 14px 16px;
}
.gazette-cover__title {
  color: white;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.gazette-cover__sub {
  color: oklch(85% 0.06 158);
  font-size: 11px;
  font-weight: 500;
}
.gazette-cover__body {
  flex: 1;
  background: oklch(96% 0.008 242);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
}
.gazette-cover__body img { width: 100%; height: 100%; object-fit: cover; }
.gazette-cover__foot {
  padding: 10px 16px;
  text-align: center;
  background: white;
}
.gazette-cover__num {
  font-family: var(--ff-display);
  font-size: 13px;
  color: var(--navy);
  font-weight: 600;
}

.gazette-content { flex: 1; }
.gazette-content__label {
  color: var(--greenl);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
.gazette-content__title {
  font-family: var(--ff-display);
  font-size: 40px;
  font-weight: 700;
  color: white;
  line-height: 1.1;
  margin-bottom: 16px;
}
.gazette-content__title em { font-style: italic; color: var(--greenl); }
.gazette-content__desc {
  color: oklch(78% 0.03 242);
  font-size: 15px;
  line-height: 1.7;
  max-width: 420px;
  margin-bottom: 28px;
}
.gazette-content__actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── AGENDA ─────────────────────────────────────── */
.agenda-list { display: flex; flex-direction: column; gap: 12px; }

/* Carte événement */
.agenda-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;          /* date | content | thumb */
  align-items: stretch;   /* chaque colonne prend la pleine hauteur */
}
.agenda-item--conseil {
  background: var(--navy);
  border-color: var(--navy);
}

/* Colonne date (navy gauche) */
.agenda-item__date {
  width: 72px;
  flex-shrink: 0;
  background: var(--navy);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 16px 8px;
  gap: 2px;
}
.agenda-item--conseil .agenda-item__date {
  background: oklch(100% 0 0 / 0.07);
  border-right: 1px solid oklch(100% 0 0 / 0.1);
}
.agenda-item__day {
  color: white;
  font-family: var(--ff-display);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
}
.agenda-item__month {
  color: var(--greenl);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* Zone texte (flex-1, colonne) */
.agenda-item__content {
  flex: 1;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;           /* empêche le débordement texte */
}
.agenda-item--conseil .agenda-item__content { padding: 18px 22px; }

.agenda-item__badge {
  background: var(--greenl);
  color: var(--navy);
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: inline-block;
  margin-bottom: 8px;
  align-self: flex-start;
}

.agenda-item__title {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
  color: var(--text);
  line-height: 1.35;
}
.agenda-item--conseil .agenda-item__title {
  color: white;
  font-family: var(--ff-display);
  font-size: 17px;
}

.agenda-item__meta {
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 10px;
}
.agenda-item--conseil .agenda-item__meta { color: oklch(75% 0.04 242); }

.agenda-item__desc {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.65;
  margin: 0;
}
.agenda-item--conseil .agenda-item__desc { color: oklch(72% 0.03 242); }

/* Affiche / photo (colonne droite, pleine hauteur) */
.agenda-item__thumb {
  width: 190px;
  flex-shrink: 0;
  align-self: stretch;    /* s'étire à la hauteur de la carte */
  overflow: hidden;
  border-left: 1px solid var(--border);
}
.agenda-item__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* ── Responsive agenda ─────────────────────────── */
@media (max-width: 640px) {
  /* Sur mobile : on masque l'image — le texte prime */
  .agenda-item__thumb { display: none; }

  .agenda-item__date { width: 60px; }
  .agenda-item__day  { font-size: 22px; }

  .agenda-item__content { padding: 14px 16px; }
  .agenda-item__title   { font-size: 14px; }

  .agenda-item__desc { font-size: 13px; }
}

/* ── PROCHAIN CONSEIL MUNICIPAL ─────────────────── */
.prochain-conseil {
  display: flex;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 40px;
  box-shadow: 0 4px 20px oklch(0% 0 0 / 0.06);
}
.prochain-conseil__date {
  background: var(--navy);
  width: 190px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 4px;
  text-align: center;
}
.prochain-conseil__label {
  background: var(--greenl);
  color: var(--navy);
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  white-space: nowrap;
}
.prochain-conseil__weekday {
  color: var(--greenl);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.prochain-conseil__day {
  color: white;
  font-family: var(--ff-display);
  font-size: 72px;
  font-weight: 700;
  line-height: 1;
  margin: 4px 0 2px;
}
.prochain-conseil__month {
  color: white;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 600;
  text-transform: capitalize;
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.prochain-conseil__year {
  font-size: 14px;
  color: oklch(75% 0.04 242);
  font-family: var(--ff-body);
  font-weight: 400;
}
.prochain-conseil__time {
  margin-top: 14px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: oklch(100% 0 0 / 0.1);
  color: white;
  font-size: 13px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}
.prochain-conseil__lieu {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: oklch(68% 0.03 242);
  font-size: 11.5px;
}
.prochain-conseil__body {
  flex: 1;
  padding: 28px 32px;
}
.prochain-conseil__title {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border);
}
.prochain-conseil__odj ul { list-style: none; padding: 0; margin: 0; }
.prochain-conseil__odj li {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.55;
}
.prochain-conseil__odj li:last-child { border-bottom: none; }
.prochain-conseil__odj li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
  margin-top: 6px;
}
.prochain-conseil__odj p { font-size: 14.5px; color: var(--body); line-height: 1.65; margin-bottom: 8px; }
@media (max-width: 680px) {
  .prochain-conseil { flex-direction: column; }
  .prochain-conseil__date {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 20px;
    padding: 20px 24px;
  }
  .prochain-conseil__label { order: -1; flex-basis: 100%; }
  .prochain-conseil__weekday { display: none; }
  .prochain-conseil__day { font-size: 48px; }
  .prochain-conseil__body { padding: 20px 22px; }
}

/* ── SECTION COMMUNICATION ──────────────────────── */
.comm-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.comm-form { display: flex; gap: 10px; }
.comm-input {
  flex: 1;
  padding: 11px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  background: white;
  outline: none;
}
.comm-input:focus { border-color: var(--green); }

.pp-row {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}
.pp-logo {
  width: 72px;
  height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 14px;
  box-shadow: 0 2px 10px oklch(0% 0 0 / 0.1);
}
.pp-actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.pp-link-text { color: var(--muted); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

/* ── CARTES STATISTIQUES ────────────────────────── */
.stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
}
.stat-card__icon { font-size: 28px; margin-bottom: 10px; }
.stat-card__value { font-family: var(--ff-display); font-size: 26px; font-weight: 700; margin-bottom: 4px; }
.stat-card__label { color: var(--muted); font-size: 13px; }

/* ── ELU CARDS ──────────────────────────────────── */
.maire-card {
  background: var(--navy);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateZ(0);     /* force GPU — corrige overflow+border-radius */
  display: flex;
  align-items: stretch;
  margin-bottom: 32px;
}
/* Enveloppe photo : s'étire sur toute la hauteur grâce à align-items:stretch */
.maire-card__photo-wrap {
  width: 220px;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
  min-height: 200px;
}
.maire-card__photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}
.maire-card__body {
  padding: 32px;
  color: white;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.maire-card__label {
  color: var(--greenl);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.maire-card__name {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 6px;
}
.maire-card__contact {
  color: oklch(78% 0.04 242);
  font-size: 14px;
  margin-bottom: 16px;
}
.maire-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-pill {
  background: oklch(100% 0 0 / 0.1);
  border: 1px solid oklch(100% 0 0 / 0.2);
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.tag-pill--light {
  background: var(--surface);
  border-color: var(--border);
  color: var(--navy);
}

.elu-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateZ(0);     /* force GPU — corrige overflow+border-radius */
  display: flex;
  flex-direction: column;
}
.elu-card__photo {
  height: 220px;
  flex-shrink: 0;
  position: relative;           /* ancre l'image en absolu */
  overflow: hidden;
  background: oklch(82% 0.04 242);
}
.elu-card__photo img {
  position: absolute;           /* élimine tout décalage de ligne de base */
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;  /* montre la zone visage plutôt que le haut du cadre */
  display: block;
}
.elu-card__body { padding: 16px 18px 18px; flex: 1; display: flex; flex-direction: column; }
.elu-card__name { font-family: var(--ff-display); font-weight: 700; font-size: 17px; margin-bottom: 3px; }
.elu-card__role { color: var(--muted); font-size: 12.5px; line-height: 1.4; margin-bottom: 12px; }
.elu-card__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* ── ASSOCIATIONS LIST ──────────────────────────── */
.asso-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.asso-item__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  flex-shrink: 0;
}
.asso-item__name { font-size: 14px; font-weight: 500; }

/* ── PAGE ASSOCIATIONS ──────────────────────────── */

.asso-main { padding: 48px 0 80px; }

.asso-intro-text { margin-bottom: 40px; }

/* Barre de filtres */
.asso-filters {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.asso-filters__cats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.asso-filter-btn {
  border: 1px solid var(--border);
  background: white;
  color: var(--body);
  font-size: 13px;
  font-weight: 500;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  line-height: 1;
}
.asso-filter-btn:hover  { border-color: var(--green); color: var(--green); }
.asso-filter-btn.is-active { background: var(--green); border-color: var(--green); color: white; }

/* Champ de recherche */
.asso-filters__search { position: relative; }
.asso-search__icon {
  position: absolute;
  left: 11px; top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
.asso-search-input {
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 7px 14px 7px 32px;
  font-size: 13px;
  font-family: var(--ff-body);
  outline: none;
  width: 240px;
  transition: border-color 0.15s, box-shadow 0.15s;
  background: white;
}
.asso-search-input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px oklch(42% 0.09 158 / 0.12);
}
.asso-search-input::placeholder { color: var(--muted); }

/* Compteur */
.asso-result-count { font-size: 13px; color: var(--muted); margin-bottom: 20px; min-height: 1.4em; }

/* Message vide */
.asso-empty {
  text-align: center;
  padding: 48px 24px;
  color: var(--muted);
  font-size: 15px;
  grid-column: 1 / -1;
}

/* Grille : 2 colonnes larges — align-items:stretch (défaut) → hauteurs égales par ligne */
.asso-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

/* ── Carte association ──────────────────────────── */
.asso-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* En-tête : avatar + nom + catégorie */
.asso-card__header {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

/* Avatar carré arrondi */
.asso-card__avatar {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  color: white;
  letter-spacing: -0.01em;
  flex-shrink: 0;
  position: relative;
  text-transform: uppercase;
  user-select: none;
}
.asso-card__avatar-dot {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--green);
  border: 2px solid white;
}

/* Avatar avec logo : fond blanc, image centrée */
.asso-card__avatar--logo {
  background: white;
  border: 1px solid var(--border);
  padding: 6px;
}
.asso-card__avatar-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 8px;
}

/* Couleurs fond avatar par catégorie */
.cat-bg-sport      { background: oklch(24% 0.06 230); }
.cat-bg-culture    { background: oklch(24% 0.06 255); }
.cat-bg-enfance    { background: oklch(24% 0.07 175); }
.cat-bg-loisirs    { background: oklch(22% 0.055 155); }
.cat-bg-solidarite { background: oklch(24% 0.06 15); }
.cat-bg-autre      { background: oklch(24% 0.02 240); }

/* Nom + badge */
.asso-card__header-info { flex: 1; min-width: 0; }
.asso-card__name {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.25;
  margin: 0 0 8px;
}

/* Badge catégorie : ● NOM */
.asso-card__cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  padding: 3px 10px 3px 8px;
  border-radius: 20px;
}
.asso-cat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* Couleurs badge catégorie */
.cat-sport      { background: oklch(36% 0.08 230 / 0.10); color: oklch(28% 0.07 230); }
.cat-culture    { background: oklch(38% 0.09 255 / 0.10); color: oklch(28% 0.08 255); }
.cat-enfance    { background: oklch(42% 0.09 180 / 0.10); color: oklch(30% 0.08 180); }
.cat-loisirs    { background: #b7770d18;                   color: #7a4e08; }
.cat-solidarite { background: oklch(42% 0.09 158 / 0.10); color: var(--green); }
.cat-autre      { background: oklch(50% 0 0 / 0.08);       color: oklch(38% 0 0); }

/* Description complète — flex:1 pousse adhésion+contacts vers le bas */
.asso-card__desc {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.7;
  flex: 1;
}
.asso-card__desc p { margin: 0 0 10px; }
.asso-card__desc p:last-child { margin-bottom: 0; }

/* Bloc adhésion */
.asso-card__adhesion {
  border-left: 3px solid var(--green);
  padding: 10px 16px;
  background: oklch(42% 0.09 158 / 0.05);
  border-radius: 0 8px 8px 0;
}
.asso-card__adhesion-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: 4px;
}
.asso-card__adhesion-prices {
  font-size: 14px;
  color: var(--body);
}
.asso-card__adhesion-prices strong { font-weight: 700; }

/* Zone contacts */
.asso-card__contacts {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.asso-contact-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.asso-contact-row__icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
}
.asso-contact-row__content {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.asso-contact-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.2;
}
.asso-contact-value {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: color 0.15s;
}
a.asso-contact-value:hover { color: var(--green); }

/* Screen-reader only */
.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;
}

/* ── Responsive associations ────────────────────── */
@media (max-width: 900px) {
  .asso-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .asso-filters { flex-direction: column; align-items: stretch; }
  .asso-filters__search { width: 100%; }
  .asso-search-input { width: 100%; box-sizing: border-box; }
  .asso-card { padding: 18px; }
  .asso-card__avatar { width: 60px; height: 60px; font-size: 18px; }
  .asso-card__name { font-size: 17px; }
}

/* ── SERVICES GRID (Home) ───────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
  margin-top: 36px;
}
.service-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 18px;
  text-align: center;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.2s, box-shadow 0.2s;
  display: block;
}
.service-card:hover { transform: translateY(-2px); box-shadow: 0 6px 20px oklch(0% 0 0 / 0.08); }
.service-card__icon { font-size: 28px; margin-bottom: 10px; }
.service-card__label { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.service-card__desc { font-size: 12px; color: var(--muted); line-height: 1.4; }

/* ── DEMARCHES TABLE ────────────────────────────── */
.demarches-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
}
.demarches-table thead tr { background: var(--navy); }
.demarches-table th {
  color: white;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 14px 20px;
  text-align: left;
}
.demarches-table td {
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.demarches-table tr:last-child td { border: none; }
.demarches-table tr:hover td { background: var(--surface); }
.badge-online {
  background: oklch(42% 0.09 158 / 0.12);
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
}
.badge-offline {
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 20px;
}

/* ── CONTACT PAGE ───────────────────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}
.contact-form { display: flex; flex-direction: column; gap: 20px; }
.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-control {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: var(--ff-body);
  font-size: 14px;
  background: var(--bg);
  outline: none;
  transition: border-color 0.2s;
}
.form-control:focus { border-color: var(--green); background: white; }
.form-control.is-error { border-color: oklch(55% 0.12 25); }
.form-error { color: oklch(55% 0.12 25); font-size: 12px; margin-top: 4px; }

.contact-infos { display: flex; flex-direction: column; gap: 16px; }
.contact-info-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.contact-info-card__head {
  background: var(--navy);
  padding: 12px 18px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.contact-info-card__body { padding: 16px 18px; }
.contact-info-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
}
.contact-info-row:last-child { border: none; }
.contact-info-row a { color: var(--green); text-decoration: none; }
.contact-info-row a:hover { text-decoration: underline; }

/* ── BLOC CONTACT MAIRIE ────────────────────────── */
.mairie-contact-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mairie-contact-block {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 24px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 0.2s, transform 0.18s, border-color 0.2s;
  cursor: pointer;
}
.mairie-contact-block:hover {
  box-shadow: 0 8px 28px oklch(0% 0 0 / 0.09);
  border-color: var(--green);
  transform: translateY(-3px);
}

.mairie-contact-block__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: oklch(42% 0.09 158 / 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--green);
  margin-bottom: 4px;
  transition: background 0.2s;
}
.mairie-contact-block:hover .mairie-contact-block__icon {
  background: oklch(42% 0.09 158 / 0.18);
}

.mairie-contact-block__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}

.mairie-contact-block__value {
  font-family: var(--ff-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  line-height: 1.45;
}

.mairie-contact-block__hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

@media (max-width: 700px) {
  .mairie-contact-strip { grid-template-columns: 1fr; }
  .mairie-contact-block { flex-direction: row; text-align: left; padding: 20px; gap: 16px; }
  .mairie-contact-block__icon { flex-shrink: 0; width: 48px; height: 48px; margin-bottom: 0; }
  .mairie-contact-block__label,
  .mairie-contact-block__value,
  .mairie-contact-block__hint { display: block; }
}

/* ── COMPTES-RENDUS TABLE ───────────────────────── */
.cr-table {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.cr-table__head {
  background: var(--navy);
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.cr-table__head span { font-size: 14px; font-weight: 600; color: white; }
.cr-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border);
}
.cr-row:last-child { border: none; }
.cr-row:hover { background: var(--surface); }
.cr-icon {
  width: 36px;
  height: 40px;
  background: oklch(95% 0.01 25);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 18px;
}
.cr-name { font-size: 14px; font-weight: 600; color: var(--text); }
.cr-date { font-size: 12px; color: var(--muted); }
.cr-dl {
  margin-left: auto;
  background: oklch(42% 0.09 158 / 0.1);
  color: var(--green);
  border: none;
  border-radius: 20px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--ff-body);
  text-decoration: none;
  white-space: nowrap;
}
.cr-dl:hover { background: oklch(42% 0.09 158 / 0.18); }

/* ── TEMPLATE ARTICLE ───────────────────────────── */

/*  Conteneur centré étroit (800px) pour la lisibilité  */
.article-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Bandeau hero navy — se termine avec un arrondi en bas */
.article-hero-band {
  background: var(--navy);
  padding: 36px 0 48px;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: oklch(65% 0.04 242);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.article-back:hover { color: white; }

.article-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.article-hero-date {
  color: oklch(60% 0.04 242);
  font-size: 13px;
}
.article-hero-title {
  font-family: var(--ff-display);
  font-size: clamp(30px, 4vw, 52px);
  font-weight: 700;
  color: white;
  line-height: 1.1;
}
.article-hero-intro {
  margin-top: 18px;
  color: oklch(80% 0.04 242);
  font-size: 1.05rem;
  line-height: 1.6;
  max-width: 680px;
}

/* Zone de contenu */
.article-main {
  padding: 0 0 80px;   /* pas de padding-top — l'image remonte */
}

/* Image principale : remonte légèrement sur le bandeau navy */
.article-img-main {
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateZ(0);
  margin-top: -24px;          /* remonte sur le bas du bandeau */
  margin-bottom: 36px;
  box-shadow: 0 8px 32px oklch(0% 0 0 / 0.14);
}
.article-img-main img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: cover;
  display: block;
}

/* Chapeau italique (introtext) */
.article-lead {
  font-family: var(--ff-display);
  font-size: 20px;
  font-style: italic;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}

/* Corps de l'article */
.article-content { font-size: 16px; color: var(--text); }
.article-content p  { line-height: 1.85; margin-bottom: 18px; color: var(--muted); }
.article-content h2 { font-family: var(--ff-display); font-size: 26px; font-weight: 700; margin: 36px 0 12px; color: var(--text); }
.article-content h3 { font-family: var(--ff-display); font-size: 20px; font-weight: 600; margin: 28px 0 10px; }
.article-content ul, .article-content ol { margin: 0 0 18px 22px; }
.article-content li { line-height: 1.8; margin-bottom: 6px; color: var(--muted); }
.article-content strong { color: var(--text); }
.article-content a  { color: var(--green); }
.article-content img {
  border-radius: var(--radius);
  margin: 24px 0;
  max-width: 100%;
  box-shadow: 0 2px 12px oklch(0% 0 0 / 0.06);
}
.article-content blockquote {
  border-left: 4px solid var(--green);
  background: oklch(42% 0.09 158 / 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 16px 20px;
  margin: 24px 0;
  font-family: var(--ff-display);
  font-style: italic;
  font-size: 18px;
  color: var(--navy);
  line-height: 1.6;
}

/* Pied article */
.article-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border);
  padding-top: 28px;
  margin-top: 48px;
}
.article-footer-source { font-size: 13px; color: var(--muted); }

/* Section "À lire aussi" */
.article-related {
  margin-top: 56px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}
.article-related__title {
  font-family: var(--ff-display);
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 24px;
}

/* Responsive */
@media (max-width: 600px) {
  .article-container { padding: 0 16px; }
  .article-hero-band { padding: 28px 0 40px; }
  .article-img-main { margin-top: -16px; border-radius: var(--radius); }
  .article-lead { font-size: 17px; }
  .article-footer { flex-direction: column; gap: 12px; align-items: flex-start; }
}

/* ── GAZETTES LISTE ─────────────────────────────── */
.gazette-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 28px;
}

/* Carte gazette */
.gazette-card-item {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transform: translateZ(0);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.gazette-card-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px oklch(0% 0 0 / 0.09);
}

/* Couverture miniature */
.gazette-card-item__cover-wrap {
  padding: 20px 20px 0;
  display: flex;
  justify-content: center;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.gazette-cover-mini {
  width: 160px;
  background: white;
  border-radius: 6px 6px 0 0;
  overflow: hidden;
  box-shadow: 0 4px 16px oklch(0% 0 0 / 0.12);
  display: flex;
  flex-direction: column;
}
.gazette-cover-mini__header {
  padding: 10px 12px 8px;
}
.gazette-cover-mini__name {
  font-family: var(--ff-display);
  font-size: 15px;
  font-weight: 700;
  color: white;
  letter-spacing: 0.02em;
  line-height: 1;
}
.gazette-cover-mini__commune {
  font-size: 7px;
  color: oklch(90% 0.04 158);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-top: 2px;
}
.gazette-cover-mini__body {
  flex: 1;
  background: white;
  padding: 10px 12px 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.gazette-cover-mini__theme {
  font-family: var(--ff-display);
  font-size: 13px;
  font-style: italic;
  font-weight: 600;
  color: var(--text);
  line-height: 1.3;
  white-space: pre-line;
}
.gazette-cover-mini__img {
  height: 64px;
  border-radius: 3px;
  overflow: hidden;
}
.gazette-cover-mini__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gazette-cover-mini__img--placeholder { background: var(--surface); }
.gazette-cover-mini__lines {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}
.gazette-cover-mini__lines span {
  display: block;
  height: 4px;
  background: var(--border);
  border-radius: 2px;
}
.gazette-cover-mini__lines span:nth-child(1) { width: 90%; }
.gazette-cover-mini__lines span:nth-child(2) { width: 70%; }
.gazette-cover-mini__lines span:nth-child(3) { width: 50%; }
.gazette-cover-mini__foot {
  padding: 6px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.gazette-cover-mini__num {
  font-family: var(--ff-display);
  font-size: 11px;
  font-weight: 700;
  color: white;
}
.gazette-cover-mini__period {
  font-family: var(--ff-display);
  font-size: 10px;
  font-style: italic;
  color: white;
  opacity: 0.85;
}

/* Infos sous la couverture */
.gazette-card-item__body {
  padding: 18px 20px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gazette-card-item__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Badge saison */
.gazette-saison-badge {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 3px 10px;
  border-radius: 20px;
}
.gazette-saison-badge[data-saison="Printemps"] { background: oklch(42% 0.09 158 / 0.12); color: var(--green); }
.gazette-saison-badge[data-saison="Été"]        { background: oklch(72% 0.12 80 / 0.15);  color: oklch(48% 0.1 72); }
.gazette-saison-badge[data-saison="Automne"]    { background: oklch(65% 0.1 45 / 0.15);   color: oklch(42% 0.09 42); }
.gazette-saison-badge[data-saison="Hiver"]      { background: oklch(26% 0.055 242 / 0.1); color: var(--navy); }

.gazette-card-item__ref {
  font-size: 12px;
  color: var(--muted);
}
.gazette-card-item__title {
  font-family: var(--ff-display);
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--text);
  margin: 0;
}
.gazette-card-item__title em {
  font-style: italic;
  color: var(--green);
}
.gazette-card-item__desc {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
  flex: 1;
}

/* Stats pages + poids */
.gazette-card-item__stats {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.gazette-stat {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: var(--muted);
}
.gazette-stat svg { flex-shrink: 0; }

/* Actions télécharger / feuilleter */
.gazette-card-item__actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}
.gazette-action {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  padding: 0;
}
.gazette-action--dl  { color: var(--navy); }
.gazette-action--dl:hover  { color: var(--green); }
.gazette-action--view { color: var(--muted); }
.gazette-action--view:hover { color: var(--navy); }
.gazette-action__sep { color: var(--border); }

/* ── FOOTER ─────────────────────────────────────── */
.site-footer { background: var(--navy); color: white; }
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding: 48px 0 40px;
}
.footer-brand__name {
  font-family: var(--ff-display);
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 8px;
}
.footer-brand__desc {
  color: oklch(70% 0.04 242);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 16px;
}
.footer-brand__contact { font-size: 13px; color: oklch(70% 0.04 242); line-height: 1.8; }
.footer-col__heading {
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
  color: var(--greenl);
}
.footer-col__link {
  display: block;
  margin-bottom: 8px;
  color: oklch(72% 0.04 242);
  font-size: 13px;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--ff-body);
  padding: 0;
  transition: color 0.2s;
}
.footer-col__link:hover { color: white; }
.footer-bottom {
  border-top: 1px solid oklch(100% 0 0 / 0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-bottom__copy { color: oklch(55% 0.03 242); font-size: 12px; }
.footer-bottom__links { display: flex; gap: 16px; }
.footer-bottom__link {
  color: oklch(55% 0.03 242);
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}
.footer-bottom__link:hover { color: white; }

/* ── RICH TEXT CONTENT (zone [[*content]]) ──────── */
.rich-content h2 {
  font-family: var(--ff-display);
  font-size: 32px;
  font-weight: 700;
  margin: 36px 0 16px;
  color: var(--text);
}
.rich-content h3 {
  font-family: var(--ff-display);
  font-size: 24px;
  font-weight: 700;
  margin: 28px 0 12px;
}
.rich-content p { margin-bottom: 16px; line-height: 1.8; color: var(--muted); }
.rich-content ul, .rich-content ol { margin: 0 0 16px 24px; }
.rich-content li { line-height: 1.8; color: var(--muted); margin-bottom: 4px; }
.rich-content a { color: var(--green); text-decoration: underline; }
.rich-content img { border-radius: var(--radius); margin: 0px 0; max-width: 100%; }
.rich-content strong { color: var(--text); }

.rich-content a.btn {
    color: white;
    text-decoration: underline;
}

.actu-card__body a { color: var(--green); text-decoration: underline; }

/* Tables dans rich-content (TinyMCE) */
.rich-content table { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rich-content thead th {
  background: var(--navy);
  color: white;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 12px 16px;
  text-align: left;
  white-space: nowrap;
}
.rich-content thead th:first-child { border-radius: var(--radius) 0 0 0; }
.rich-content thead th:last-child  { border-radius: 0 var(--radius) 0 0; }
.rich-content tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.rich-content tbody tr:last-child { border-bottom: none; }
.rich-content tbody tr:hover { background: oklch(42% 0.09 158 / 0.04); }
.rich-content tbody td { padding: 11px 16px; color: var(--body); vertical-align: top; line-height: 1.55; }
.rich-content tbody tr:nth-child(even) td { background: var(--surface); }

/* ── CLASSE .table (usage hors rich-content) ──────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius);
  box-shadow: 0 0 0 1px var(--border);
}
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: white;
}
.table thead th {
  background: var(--navy);
  color: white;
  font-family: var(--ff-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 13px 18px;
  text-align: left;
  white-space: nowrap;
}
.table thead th:first-child { border-radius: var(--radius) 0 0 0; }
.table thead th:last-child  { border-radius: 0 var(--radius) 0 0; }
.table tbody tr { border-bottom: 1px solid var(--border); transition: background 0.15s; }
.table tbody tr:last-child { border-bottom: none; }
.table tbody tr:hover { background: oklch(42% 0.09 158 / 0.04); }
.table tbody td { padding: 12px 18px; color: var(--body); vertical-align: top; line-height: 1.6; }
.table--striped tbody tr:nth-child(even) td { background: var(--surface); }
.table--compact thead th { padding: 9px 14px; font-size: 12px; }
.table--compact tbody td { padding: 8px 14px; font-size: 13px; }
.table th.num, .table td.num { text-align: right; font-variant-numeric: tabular-nums; }
.table td.highlight { font-weight: 600; color: var(--navy); }
.table .cell-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: oklch(42% 0.09 158 / 0.1);
  color: var(--green);
}

/* ── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .contact-grid { grid-template-columns: 1fr; }
  .comm-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 768px) {
  .header-nav, .header-actions .btn { display: none; }
  .hamburger { display: flex; }
  .section { padding: 48px 0; }
  .section-title { font-size: 28px; }
  .section-header { flex-direction: column; align-items: flex-start; gap: 16px; }
  .grid-2 { grid-template-columns: 1fr; gap: 28px; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .hero__body { padding: 48px 20px 64px; }
  .hero__stats { gap: 16px; }
  .hero__title { font-size: 40px; }
  .gazette-inner { flex-direction: column; gap: 28px; }
  .gazette-cover { width: 140px; height: 190px; }
  .gazette-content__title { font-size: 32px; }
  .maire-card { flex-direction: column; }
  .maire-card__photo-wrap { width: 100%; height: 220px; position: relative; }
  .maire-card__photo { position: absolute; inset: 0; width: 100%; height: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .page-hero { padding: 36px 0 44px; }
  .container { padding: 0 20px; }
}
