:root {
  --bleu: #1A3A5C;
  --bleu-clair: #2E6DA4;
  --bleu-pale: #A4C0CE;
  --bleu-fonce: #1E2D3D;
  --vert: #4A9B6F;
  --ocre: #D4832A;
  --gradient-ocre: linear-gradient(180deg, #FFD508, #EC9408);
  --rouge-alerte: #C0392B;
  --ocre-clair: #f5ede5;
  --gris-fonce: #2c2c2a;
  --gris-moyen: #555F6E;
  --gris-pale: #f5f4f0;
  --blanc: #ffffff;
  --border: rgba(0,0,0,0.1);
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --font-titre: 'Playfair Display', Georgia, serif;
  --font-corps: 'Source Sans 3', sans-serif;
  --radius: 8px;
  --radius-lg: 14px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-corps);
  color: var(--gris-fonce);
  background: var(--blanc);
  line-height: 1.65;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }

/* ── BANNIÈRE ALERTE ── */
.alerte {
  background: var(--gris-fonce);
  color: #fff;
  text-align: center;
  padding: 10px 1rem;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.alerte a { color: #ffe8d6; text-decoration: underline; }

@media (max-width: 980px) {
  .alerte {padding-bottom: 1.75rem}
}

/* ── HEADER ── */
header {
  background: var(--bleu);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  gap: 2rem;
  height: 68px;
  overflow: visible;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0;
  flex-shrink: 0;
}
.logo-icon {
  width: 250px;
  height: 250px;
  background: transparent;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.5s ease, border-radius 0.5s ease, width 0.5s ease, height 0.5s ease;
}
.logo-icon svg { width: 24px; height: 24px; fill: #fff; }
.logo-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: width 0.5s ease, height 0.5s ease, object-fit 0.5s ease;
}
.header-inner.is-scrolled .logo-icon {
  width: 126px;
  height: 126px;
}
.header-inner.is-scrolled .logo-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-text { line-height: 1.1; }
.logo-nom { font-family: var(--font-titre); font-size: 18px; color: #fff; font-weight: 700; }
.logo-sous { font-size: 11px; color: rgba(255,255,255,0.7); letter-spacing: 0.08em; text-transform: uppercase; }

/* Navigation principale */
nav { flex: 1; display: flex; justify-content: flex-end; }

.nav-links {
  display: flex;
  list-style: none;
  gap: 0;
  align-items: center;
}

.nav-links > li {
  position: static;
}

.nav-links > li > a,
.nav-links > li > button {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 14px;
  height: 68px;
  color: rgba(255,255,255,0.88);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font-corps);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
  letter-spacing: 0.01em;
}

.nav-links > li > a:hover,
.nav-links > li > button:hover,
.nav-links > li > a.active,
.nav-links > li.mega-open > button {
  color: #fff;
  background: rgba(255,255,255,0.1);
}

.chevron { font-size: 10px; opacity: 0.7; transition: transform 0.2s; }
.nav-links > li:hover .chevron,
.nav-links > li.mega-open .chevron { transform: rotate(180deg); }

/* ── MEGA MENU ── */
.mega-menu {
  display: none;
  position: absolute;
  top: 68px;
  left: 0;
  right: 0;
  background: #fff;
  box-shadow: 0 12px 40px rgba(0,0,0,0.18);
  border-top: 3px solid var(--bleu-clair);
  z-index: 200;
  animation: megaFadeIn 0.2s ease;
}

@keyframes megaFadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.nav-links > li:hover .mega-menu,
.nav-links > li.mega-open .mega-menu {
  display: block;
}

.mega-menu-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: grid;
  gap: 2rem;
}

.mega-village .mega-menu-inner { grid-template-columns: repeat(4, 1fr); }
.mega-conseil .mega-menu-inner { grid-template-columns: repeat(4, 1fr); }
.mega-services .mega-menu-inner { grid-template-columns: repeat(5, 1fr); }

.mega-col {
  display: flex;
  flex-direction: column;
}

.mega-col-title {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--bleu-clair);
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border);
}

.mega-link {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  margin: 0 -12px;
  border-radius: var(--radius);
  transition: background 0.15s;
}

.mega-link:hover { background: var(--bleu-pale); }

.mega-link-icon {
  width: 36px;
  height: 36px;
  background: var(--bleu-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
  transition: background 0.15s;
}

.mega-link:hover .mega-link-icon { background: var(--bleu); }
.mega-link:hover .mega-link-icon svg { fill: #fff; }

.mega-link-icon svg {
  width: 18px;
  height: 18px;
  fill: var(--bleu);
  transition: fill 0.15s;
}

.mega-link-text { flex: 1; }

.mega-link-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--gris-fonce);
  display: block;
  margin-bottom: 2px;
}

.mega-link-desc {
  font-size: 12px;
  color: var(--gris-moyen);
  line-height: 1.4;
}

/* Featured card in mega menu */
.mega-featured {
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
}

.mega-featured-tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.2);
  padding: 4px 10px;
  border-radius: 20px;
  width: fit-content;
  margin-bottom: 0.75rem;
}

.mega-featured h4 {
  font-family: var(--font-titre);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.mega-featured p {
  font-size: 13px;
  opacity: 0.85;
  line-height: 1.5;
}

.mega-featured-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  color: var(--bleu);
  padding: 8px 16px;
  border-radius: var(--radius);
  font-size: 13px;
  font-weight: 600;
  margin-top: auto;
  width: fit-content;
  transition: background 0.15s;
}

.mega-featured-btn:hover { background: var(--bleu-pale); }

.mega-list { list-style: none; }

.mega-list li a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  color: var(--gris-fonce);
  border-bottom: 1px solid var(--border);
  transition: color 0.15s, padding-left 0.15s;
}

.mega-list li:last-child a { border-bottom: none; }

.mega-list li a:hover {
  color: var(--bleu-clair);
  padding-left: 6px;
}

/* Bouton menu mobile */
.btn-menu {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: #fff;
  margin-left: auto;
}
.btn-menu span {
  display: block;
  width: 24px;
  height: 2px;
  background: currentColor;
  margin: 5px 0;
  transition: all 0.2s;
}

/* Menu mobile overlay */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  background: var(--bleu);
  z-index: 999;
  padding: 5rem 2rem 2rem;
  overflow-y: auto;
  flex-direction: column;
  gap: 0;
}
.mobile-nav.ouvert { display: flex; }
.mobile-nav-fermer {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}
.mobile-nav a, .mobile-nav details summary {
  display: block;
  color: rgba(255,255,255,0.9);
  font-size: 18px;
  padding: 14px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.mobile-nav details[open] summary { color: #fff; }
.mobile-nav details .mobile-sous { padding-left: 1rem; }
.mobile-nav details .mobile-sous a {
  font-size: 15px;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  padding: 10px 0;
}

/* ── HERO ── */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--bleu);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1);
  transition: opacity 1.4s ease, transform 8s linear;
}
.hero-slide.is-active {
  opacity: 1;
  transform: scale(1.04);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(180deg, rgba(4,45,62,0.15) 0%, rgba(4,45,62,0.05) 35%, rgba(4,45,62,0.85) 100%),
    linear-gradient(90deg, rgba(4,45,62,0.75) 0%, rgba(4,45,62,0.35) 45%, rgba(4,45,62,0.1) 80%);
}

.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 4;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  border-radius: 5px;
  background: rgba(255,255,255,0.55);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s ease;
}
.hero-dots button.is-active {
  width: 28px;
  background: var(--ocre, #FFC32F);
}

.hero-caption {
  position: absolute;
  bottom: 24px;
  right: 32px;
  z-index: 4;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.8);
}

@media (max-width: 980px) {
  .hero-caption {display: none}
}

.hero-contenu {
  position: relative;
  z-index: 3;
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem 3.5rem;
  width: 100%;
}

.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.18);
  color: rgba(255,255,255,0.9);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 1rem;
  border: 1px solid rgba(255,255,255,0.25);
}

.hero h1 {
  font-family: var(--font-titre);
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  line-height: 1.15;
  max-width: 640px;
  margin-bottom: 1.2rem;
  font-weight: 700;
}

.hero p {
  color: rgba(255,255,255,0.85);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 2rem;
  font-weight: 300;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn-primaire {
  background: var(--gradient-ocre);
  color: #fff;
  border: none;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-corps);
  transition: background 0.15s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-primaire:hover { background: #EC9408; transform: translateY(-1px); }

.btn-secondaire {
  background: rgba(255,255,255,0.15);
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
  padding: 13px 26px;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font-corps);
  transition: background 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.btn-secondaire:hover { background: rgba(255,255,255,0.25); }

/* ── ACCÈS RAPIDES ── */
.acces-rapides {
  background: var(--blanc);
  border-bottom: 1px solid var(--border);
}

.acces-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.acces-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 1.4rem 1rem;
  text-align: center;
  border-right: 1px solid var(--border);
  transition: background 0.15s;
  cursor: pointer;
}
.acces-item:last-child { border-right: none; }
.acces-item:hover { background: var(--bleu-pale); }

.acces-icone {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bleu-pale);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: background 0.15s;
}
.acces-item:hover .acces-icone { background: var(--bleu); }
.acces-item:hover .acces-icone svg { fill: #fff; }

.acces-icone svg { width: 22px; height: 22px; fill: var(--bleu); transition: fill 0.15s; }

.acces-label { font-size: 13px; font-weight: 600; color: var(--gris-fonce); line-height: 1.2; }

/* ── SECTIONS ── */
.section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-titre {
  font-family: var(--font-titre);
  font-size: clamp(1.5rem, 3vw, 2rem);
  color: var(--bleu);
  margin-bottom: 0.4rem;
}

.section-sous-titre {
  font-size: 15px;
  color: var(--gris-moyen);
  margin-bottom: 2rem;
}

.section-entete {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.lien-tout {
  font-size: 14px;
  font-weight: 600;
  color: var(--bleu-clair);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.15s;
  white-space: nowrap;
}
.lien-tout:hover { color: var(--bleu); }
.lien-tout::after { content: '→'; }

/* ── ÉVÉNEMENTS ── */
#evenements { background: var(--gris-pale); }
#evenements .section { padding-top: 4rem; padding-bottom: 4rem; }

.grille-evenements {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.carte-evenement {
  background: var(--blanc);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.carte-evenement:hover {
  box-shadow: var(--shadow);
  transform: translateY(-3px);
}

.carte-evenement-date {
  background: var(--vert);
  color: #fff;
  text-align: center;
  padding: 12px;
  font-family: var(--font-titre);
}
.carte-evenement-date .jour { font-size: 28px; font-weight: 700; line-height: 1; }
.carte-evenement-date .mois { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; margin-top: 2px; }

.carte-evenement-corps { padding: 1.1rem 1.25rem 1.25rem; }

.evenement-categorie {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 20px;
  margin-bottom: 10px;
}
.cat-conseil { background: #eef4ec; color: var(--bleu); }
.cat-loisirs { background: #f5ede5; color: var(--ocre); }
.cat-collecte { background: #e8f4fd; color: #1a6fa0; }
.cat-avis { background: #fef3e8; color: #b56c00; }
.cat-culture { background: #f3eeff; color: #6b48c7; }

.carte-evenement h3 {
  font-family: var(--font-titre);
  font-size: 16px;
  color: var(--gris-fonce);
  margin-bottom: 6px;
  line-height: 1.3;
}

.carte-evenement .heure {
  font-size: 13px;
  color: var(--gris-moyen);
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 6px;
}

.carte-evenement p {
  font-size: 14px;
  color: var(--gris-moyen);
  line-height: 1.5;
}

/* ── JOURNAL + AVIS ── */
.grille-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.journal-card {
  background: var(--bleu);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  min-height: 280px;
}

.journal-card::before {
  content: '';
  position: absolute;
  right: -30px;
  top: -30px;
  width: 180px;
  height: 180px;
  background: rgba(255,255,255,0.06);
  border-radius: 50%;
}

.journal-card::after {
  content: '';
  position: absolute;
  right: 40px;
  bottom: -50px;
  width: 120px;
  height: 120px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
}

.journal-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.15);
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  width: fit-content;
}

.journal-card h2 {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
}

.journal-card p {
  font-size: 15px;
  opacity: 0.8;
  font-weight: 300;
}

.btn-journal {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--bleu);
  border: none;
  padding: 12px 22px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-corps);
  transition: background 0.15s;
  width: fit-content;
  margin-top: auto;
}
.btn-journal:hover { background: var(--bleu-pale); }

/* Avis publics */
.avis-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.avis-card h3 {
  font-family: var(--font-titre);
  font-size: 1.3rem;
  color: var(--gris-fonce);
}

.avis-liste { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.avis-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.12s;
}
.avis-item:hover { background: var(--gris-pale); }

.avis-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--vert);
  flex-shrink: 0;
  margin-top: 4px;
}

.avis-texte strong { font-size: 14px; display: block; margin-bottom: 2px; }
.avis-texte span { font-size: 13px; color: var(--gris-moyen); }

/* ── SERVICES ── */
#services { background: var(--bleu-pale); }

.grille-services {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.service-card {
  background: var(--blanc);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.75rem 1.5rem;
  transition: box-shadow 0.2s, transform 0.2s;
  cursor: pointer;
}
.service-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.service-icone {
  width: 48px;
  height: 48px;
  background: var(--bleu-pale);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--vert);
}
.service-icone svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.service-card h3 {
  font-size: 15px;
  font-weight: 600;
  color: var(--gris-fonce);
  margin-bottom: 6px;
}

.service-card p {
  font-size: 13px;
  color: var(--gris-moyen);
  line-height: 1.5;
}

/* ── PAGE INTÉRIEURE (template page.php) ── */
.page-entete {
  background: linear-gradient(135deg, var(--bleu) 0%, var(--bleu-clair) 100%);
  color: #fff;
  padding: 3.5rem 1.5rem 2.5rem;
}

.page-entete-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.fil-ariane {
  font-size: 13px;
  color: rgba(255,255,255,0.75);
  margin-bottom: 0.75rem;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.fil-ariane a { color: rgba(255,255,255,0.85); }
.fil-ariane a:hover { color: #fff; text-decoration: underline; }
.fil-ariane span.sep { opacity: 0.5; }
.fil-ariane span.courant { color: #fff; font-weight: 600; }

.page-entete h1 {
  font-family: var(--font-titre);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.page-entete .page-resume {
  font-size: 16px;
  color: rgba(255,255,255,0.85);
  max-width: 720px;
  font-weight: 300;
  line-height: 1.6;
}

.page-corps {
  max-width: 880px;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
  font-size: 16px;
  line-height: 1.75;
  color: var(--gris-fonce);
}

.page-corps > * + * { margin-top: 1.2rem; }

.page-corps h2 {
  font-family: var(--font-titre);
  font-size: 1.6rem;
  color: var(--bleu);
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
  line-height: 1.25;
}

.page-corps h3 {
  font-family: var(--font-titre);
  font-size: 1.25rem;
  color: var(--bleu-fonce);
  margin-top: 2rem;
  margin-bottom: 0.4rem;
}

.page-corps p { color: var(--gris-fonce); }

.page-corps a {
  color: var(--bleu-clair);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.page-corps a:hover { color: var(--bleu); }

.page-corps ul, .page-corps ol {
  padding-left: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.page-corps blockquote {
  border-left: 3px solid var(--ocre);
  background: var(--ocre-clair);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-style: italic;
  color: var(--gris-fonce);
  border-radius: 0 var(--radius) var(--radius) 0;
}

.page-corps .encadre {
  background: var(--gris-pale);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
}

.page-corps img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
}

.page-corps table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.page-corps table th,
.page-corps table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
.page-corps table th {
  background: var(--gris-pale);
  font-weight: 600;
  color: var(--bleu);
}

/* ── FOOTER ── */
footer {
  background: var(--bleu-fonce);
  color: rgba(255,255,255,0.75);
  padding: 3.5rem 1.5rem 1.5rem;
}

.footer-grille {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

.footer-col p {
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 8px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.footer-col ul a {
  font-size: 14px;
  color: rgba(255,255,255,0.65);
  transition: color 0.15s;
}
.footer-col ul a:hover { color: #fff; }

.footer-bas {
  max-width: 1200px;
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grille-services { grid-template-columns: repeat(2, 1fr); }
  .footer-grille { grid-template-columns: 1fr 1fr; }
  .acces-inner { grid-template-columns: repeat(5, 1fr); }

  .mega-village .mega-menu-inner,
  .mega-conseil .mega-menu-inner { grid-template-columns: repeat(2, 1fr); }
  .mega-services .mega-menu-inner { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 980px) {
  .nav-links { display: none; }
  .btn-menu { display: block; }

  .grille-evenements { grid-template-columns: 1fr; }
  .grille-2col { grid-template-columns: 1fr; }
  .grille-services { grid-template-columns: repeat(2, 1fr); }
  .footer-grille { grid-template-columns: 1fr; gap: 2rem; }
  .acces-inner { grid-template-columns: repeat(3, 1fr); }
  .footer-bas { flex-direction: column; text-align: center; }

  .hero { min-height: 400px; }
  .hero-ctas { flex-direction: column; }
  .btn-primaire, .btn-secondaire { width: 100%; justify-content: center; }

  .mega-menu { display: none !important; }
}

@media (max-width: 480px) {
  .acces-inner { grid-template-columns: repeat(2, 1fr); }
  .grille-services { grid-template-columns: 1fr; }
  .page-corps { padding: 2rem 1.25rem 3rem; }
  .page-entete { padding: 2.5rem 1.25rem 2rem; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-contenu { animation: fadeUp 0.6s ease both; }
