/* ================================================================
   LACHAPELLE-SOUS-CHAUX — Design System officiel
   Inspiré du DSFR (Design Système de l'État Français)
   Conformité RGAA 4.1 / WCAG 2.1 AA
   ================================================================ */

/* ─── GOOGLE FONTS ──────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Marianne:wght@300;400;500;700;800&family=Spectral:ital,wght@0,400;0,600;1,400&display=swap');

/* ─── DESIGN TOKENS ─────────────────────────────────────────── */
:root {
  /* Couleurs DSFR officielles */
  --blue-france:        #000091;
  --blue-france-hover:  #1212ff;
  --blue-france-sun:    #6a6af4;
  --blue-france-light:  #e3e3fd;
  --blue-france-lighter:#f5f5fe;

  --red-marianne:       #e1000f;
  --red-marianne-hover: #b60009;

  /* Couleurs DSFR / République (Remplacement du vert) */
  --primary:            #000091;  /* Bleu France */
  --primary-dark:       #00006d;
  --primary-light:      #1212ff;
  --primary-bg:         #e3e3fd;
  --primary-bg-light:   #f5f5fe;

  --gold:               #D4AF37;  /* Metallic Gold - Blason */
  --gold-light:         #FAF3E0;
  --gold-dark:          #A67C00;
  --gold-vibrant:       #FFD700;
  --gold-soft:          #F9F1DC;

  /* Neutrals */
  --grey-950:   #161616;
  --grey-900:   #212121;
  --grey-800:   #3a3a3a;
  --grey-700:   #6a6a6a;
  --grey-600:   #777777;
  --grey-500:   #999999;
  --grey-400:   #cecece;
  --grey-300:   #dddddd;
  --grey-200:   #ededed;
  --grey-100:   #f6f6f6;
  --grey-50:    #f9f9f9;
  --white:      #ffffff;

  /* Focus ring RGAA */
  --focus-ring: 3px solid #0a76f6;
  --focus-offset: 2px;

  /* Typographie - Marianne (police officielle DSFR/République) */
  --font-main:     'Marianne', 'Helvetica Neue', Arial, sans-serif;
  --font-serif:    'Spectral', Georgia, serif;
  --font-mono:     'Courier New', Courier, monospace;

  /* Tailles typographiques */
  --text-xs:   0.6875rem; /* 11px */
  --text-sm:   0.75rem;   /* 12px */
  --text-base: 1rem;      /* 16px */
  --text-md:   1.125rem;  /* 18px */
  --text-lg:   1.25rem;   /* 20px */
  --text-xl:   1.5rem;    /* 24px */
  --text-2xl:  2rem;      /* 32px */
  --text-3xl:  2.5rem;    /* 40px */
  --text-4xl:  3rem;      /* 48px */

  /* Espacements */
  --sp-1: 0.25rem;
  --sp-2: 0.5rem;
  --sp-3: 0.75rem;
  --sp-4: 1rem;
  --sp-5: 1.25rem;
  --sp-6: 1.5rem;
  --sp-8: 2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;

  /* Bordures officielles */
  --border-subtle:  1px solid #e5e5e5;
  --border-medium:  1px solid #c9c9c9;
  --border-strong:  2px solid #3a3a3a;

  /* Arrondis */
  --r-sm:   0.125rem;
  --r-md:   0.25rem;
  --r-lg:   0.5rem;
  --r-xl:   0.75rem;
  --r-2xl:  1rem;
  --r-full: 9999px;

  /* Ombres Premium */
  --shadow-sm:  0 1px 4px rgba(0,0,0,.08);
  --shadow-md:  0 4px 12px rgba(0,0,0,.1);
  --shadow-lg:  0 8px 24px rgba(0,0,0,.12);
  --shadow-premium: 0 12px 32px -8px rgba(0,51,153,0.12);

  /* Transitions */
  --t-fast:   150ms ease;
  --t-normal: 250ms ease;
  --t-slow:   450ms cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-main);
  font-size: var(--text-base);
  line-height: 1.6;
  color: var(--grey-900);
  background-color: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: underline; }
a:hover { text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── FOCUS RGAA ────────────────────────────────────────────── */
:focus-visible {
  outline: 3px solid var(--blue-france);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

/* Skip link (RGAA navigation) */
.skip-link {
  position: absolute;
  top: -100%;
  left: var(--sp-4);
  background: var(--blue-france);
  color: var(--white);
  padding: var(--sp-3) var(--sp-6);
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  font-weight: 700;
  font-size: var(--text-sm);
  text-decoration: none;
  z-index: 9999;
  transition: top var(--t-fast);
}
.skip-link:focus { top: 0; }

/* ─── BANDE TRICOLORE (symbole RF) ─────────────────────────── */
.rf-stripe {
  display: flex;
  height: 5px;
  width: 100%;
}
.rf-stripe-blue  { background: #003189; flex: 1; }
.rf-stripe-white { background: #ffffff; flex: 1; }
.rf-stripe-red   { background: #e1000f; flex: 1; }

/* ─── HEADER & NAV ─────────────────────────────────────────── */
.top-bar {
  background: var(--grey-100); /* Un peu plus foncé pour le contraste */
  border-bottom: 2px solid var(--grey-200);
  font-size: var(--text-sm); /* Augmenté */
  padding: var(--sp-2) 0;
  color: var(--grey-700);
}

.top-bar-inner {
  display: flex;
  justify-content: flex-end;
  gap: var(--sp-6);
}

.top-bar-link {
  color: var(--grey-800); /* Plus de contraste pour RGAA */
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  transition: color var(--t-normal);
}

.top-bar-link:hover {
  color: var(--primary);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
}

/* Barre supérieure - Marianne */
.header-top {
  background: var(--blue-france);
  color: var(--white);
  padding: var(--sp-2) 0;
}

.header-top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.header-top-rf {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.header-top-rf-logo {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.rf-logo-text {
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--white);
}

.rf-logo-sub {
  font-size: 0.55rem;
  font-weight: 400;
  color: rgba(255,255,255,0.75);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.header-top-devises {
  font-size: var(--text-xs);
  font-weight: 700;
  color: rgba(255,255,255,0.85);
  letter-spacing: 0.04em;
  font-style: italic;
}

.header-top-accessibility {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-xs);
}

.header-top-accessibility a {
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  padding: 2px var(--sp-2);
  border-radius: var(--r-md);
  transition: color var(--t-fast), background var(--t-fast);
}

.header-top-accessibility a:hover { color: #fff; background: rgba(255,255,255,0.12); }

/* Barre de navigation principale */
.header-nav {
  padding: 0;
  border-bottom: var(--border-subtle);
}

.header-nav-inner {
  max-width: 1440px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 96px; /* Plus grand pour l'accessibilité */
}

/* Logo commune */
.brand {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  text-decoration: none;
  padding: var(--sp-3) 0;
  flex-shrink: 0;
}

.brand-logo {
  width: 64px;
  height: 64px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-logo-svg {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.brand-separator {
  width: 1px;
  height: 48px;
  background: var(--grey-300);
  margin: 0 var(--sp-2);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 2.25rem; /* Plus imposant */
  font-weight: 700;
  color: #000;
  line-height: 1.1;
  text-decoration: none;
}

.brand-subtitle {
  display: none;
}

/* Navigation items */
.nav-list {
  display: flex;
  align-items: stretch;
  gap: 0;
  margin: 0;
}

.nav-item { display: flex; }

.nav-link {
  display: flex;
  align-items: center;
  padding: 0 var(--sp-5);
  font-size: 1.05rem; /* Augmenté pour lisibilité */
  font-weight: 600;
  color: #000;
  text-decoration: none;
  border-bottom: 4px solid transparent; /* Bordure plus épaisse */
  transition: all var(--t-fast);
  white-space: nowrap;
}

.nav-link:hover {
  color: #000;
  background: var(--grey-50);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.nav-link.active {
  color: #000;
  font-weight: 800;
  border-bottom: 4px solid var(--gold);
}

.nav-link:focus-visible {
  outline: 4px solid var(--blue-france);
  outline-offset: -4px;
}

/* ─── DROPDOWN NAVIGATION ──────────────────────────────────── */
.nav-item {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: var(--white);
  box-shadow: var(--shadow-lg);
  border-radius: 0 0 var(--r-xl) var(--r-xl);
  border-top: 3px solid var(--gold);
  min-width: 280px;
  padding: var(--sp-3) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: opacity var(--t-normal), transform var(--t-normal), visibility var(--t-normal);
  z-index: 100;
  display: flex;
  flex-direction: column;
}

.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown-header {
  padding: var(--sp-2) var(--sp-5);
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--grey-500);
  letter-spacing: 0.08em;
  margin-top: var(--sp-2);
}

.dropdown-header:first-child {
  margin-top: 0;
}

.dropdown-item {
  padding: var(--sp-2) var(--sp-5);
  color: var(--grey-800);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  transition: all var(--t-fast);
  display: flex;
  align-items: center;
  position: relative;
}

.dropdown-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--gold);
  transform: scaleY(0);
  transition: transform var(--t-fast);
  transform-origin: center;
}

.dropdown-item:hover,
.dropdown-item:focus {
  background: var(--grey-50);
  color: var(--primary);
  padding-left: var(--sp-6);
}

.dropdown-item:hover::before,
.dropdown-item:focus::before {
  transform: scaleY(1);
}

.dropdown-divider {
  height: 1px;
  background: var(--grey-200);
  margin: var(--sp-2) 0;
}

.nav-link.has-dropdown {
  padding-right: var(--sp-7);
  position: relative;
}

.nav-link.has-dropdown::after {
  content: "▾";
  position: absolute;
  right: var(--sp-4);
  top: 50%;
  transform: translateY(-50%);
  font-size: 1rem;
  color: var(--grey-600);
  transition: transform var(--t-fast);
}

.nav-item:hover .nav-link.has-dropdown::after {
  transform: translateY(-50%) rotate(180deg);
}

/* Header search + actions */
.header-actions {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--r-lg);
  background: var(--gold-soft);
  cursor: pointer;
  border: 1.5px solid rgba(212, 175, 55, 0.5);
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 4px rgba(166, 124, 0, 0.1);
  flex-shrink: 0;
}
.hamburger:hover {
  background: var(--gold-light);
  border-color: var(--gold);
  box-shadow: 0 2px 8px rgba(166, 124, 0, 0.2);
}
.hamburger:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--gold-dark);
  border-radius: var(--r-full);
  transition: transform 0.3s ease, opacity 0.3s ease, width 0.3s ease;
}
/* Ligne centrale plus courte au repos — look premium */
.hamburger span:nth-child(2) { width: 16px; }

/* Overlay sombre derrière le menu mobile */
.mobile-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  z-index: 1099;
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}
.mobile-overlay.open { display: block; }

/* Menu mobile */
.mobile-nav {
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(320px, 85vw);
  background: var(--white);
  z-index: 1100;
  padding: 0;
  overflow-y: auto;
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.15);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
              visibility 0.3s;
  visibility: hidden;
  pointer-events: none;
}
.mobile-nav.open {
  transform: translateX(0);
  visibility: visible;
  pointer-events: auto;
}

/* En-tête du menu mobile */
.mobile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-4) var(--sp-5);
  border-bottom: 2px solid var(--gold);
  background: var(--white);
}
.mobile-nav-brand {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}
.mobile-nav-brand-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
}
.mobile-nav-title {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--grey-900);
  letter-spacing: 0.02em;
}
.mobile-nav-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--grey-200);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--grey-700);
  font-size: 1.25rem;
  cursor: pointer;
  transition: background 0.2s ease;
  line-height: 1;
}
.mobile-nav-close:hover { background: var(--grey-100); }

/* Corps du menu */
.mobile-nav-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--sp-3) var(--sp-4);
  gap: var(--sp-1);
  overflow-y: auto;
}

/* ─── Liens principaux du menu mobile ───── */
.mobile-link {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-3) var(--sp-4);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-900);
  border-radius: var(--r-lg);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}
.mobile-link:hover {
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.mobile-link.active {
  background: var(--gold-soft);
  color: var(--gold-dark);
  font-weight: 800;
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
}
/* Masquer les icônes emoji dans le menu mobile */
.mobile-link-icon { display: none; }
.mobile-link-label { flex: 1; }

/* ─── Accordéon mobile ───── */
.mobile-accordion { border-radius: var(--r-lg); }
.mobile-accordion-toggle {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: 1rem;
  font-weight: 600;
  color: var(--grey-900);
  background: none;
  border: none;
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
  text-align: left;
  font-family: inherit;
}
.mobile-accordion-toggle:hover {
  background: var(--gold-soft);
  color: var(--gold-dark);
}
.mobile-accordion-arrow {
  margin-left: auto;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--grey-500);
  transition: transform 0.25s ease, color 0.2s ease;
  flex-shrink: 0;
}
.mobile-accordion-toggle[aria-expanded="true"] .mobile-accordion-arrow {
  transform: rotate(90deg);
  color: var(--gold-dark);
}
.mobile-accordion-toggle[aria-expanded="true"] {
  background: var(--gold-soft);
  color: var(--gold-dark);
}

/* Panneau accordéon */
.mobile-accordion-panel {
  display: flex;
  flex-direction: column;
  padding: var(--sp-1) 0 var(--sp-2) var(--sp-4);
  animation: mobileAccSlide 0.25s ease;
}
.mobile-accordion-panel[hidden] { display: none; }

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

.mobile-sub-header {
  padding: var(--sp-2) var(--sp-3) var(--sp-1);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--grey-500);
  letter-spacing: 0.08em;
}
.mobile-sub-header:first-child { padding-top: var(--sp-1); }

.mobile-sub-link {
  display: block;
  padding: var(--sp-2) var(--sp-3);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-700);
  text-decoration: none;
  border-radius: var(--r-md);
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
  position: relative;
}
.mobile-sub-link:hover {
  background: var(--grey-50);
  color: var(--gold-dark);
  padding-left: var(--sp-4);
}
.mobile-sub-link::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 2px;
  height: 60%;
  background: var(--gold);
  border-radius: var(--r-full);
  transition: transform 0.15s ease;
}
.mobile-sub-link:hover::before { transform: translateY(-50%) scaleY(1); }

/* CTA du pied mobile */
.mobile-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--grey-950);
  font-weight: 800;
  font-size: 0.9rem;
  border-radius: var(--r-lg);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: background 0.2s ease;
}
.mobile-cta-btn:hover { background: var(--gold-dark); color: var(--white); }

/* Séparateur */
.mobile-nav-divider {
  height: 1px;
  background: var(--grey-200);
  margin: var(--sp-2) 0;
}

/* Pied du menu — CTA */
.mobile-nav-footer {
  padding: var(--sp-4) var(--sp-5);
  border-top: 1px solid var(--grey-200);
  background: var(--grey-50);
}

/* ─── BOUTONS OFFICIELS ─────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-5);
  border-radius: var(--r-lg);
  font-family: var(--font-main);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--t-normal);
  white-space: nowrap;
  line-height: 1.5;
}

.btn-primary {
  background: var(--blue-france);
  color: var(--white) !important;
  border-color: var(--blue-france);
}
.btn-primary:hover {
  background: var(--blue-france-hover);
  border-color: var(--blue-france-hover);
  text-decoration: none;
}

.btn-primary-green {
  background: var(--primary);
  color: var(--white) !important;
  border-color: var(--primary);
}
.btn-primary-green:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--blue-france) !important;
  border-color: var(--blue-france);
}
.btn-secondary:hover {
  background: var(--blue-france-lighter);
  text-decoration: none;
}

.btn-secondary-green {
  background: transparent;
  color: var(--primary) !important;
  border-color: var(--primary);
}
.btn-secondary-green:hover {
  background: var(--primary-bg-light);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  color: var(--primary) !important;
  border-color: transparent;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.btn-ghost:hover { text-decoration: none; color: var(--primary-dark) !important; }

.btn-sm { padding: var(--sp-2) var(--sp-4); font-size: var(--text-xs); }
.btn-lg { padding: var(--sp-4) var(--sp-8); font-size: var(--text-base); }
.btn-xl { padding: var(--sp-5) var(--sp-10); font-size: var(--text-md); }

/* ─── LAYOUT ────────────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.container-sm {
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.section {
  padding: var(--sp-16) 0;
}

.section-lg {
  padding: var(--sp-20) 0;
}

.section-sm {
  padding: var(--sp-10) 0;
}

/* ─── HERO MODERNISÉ ─────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  background: #000 url('imageCommune.png') center/cover no-repeat;
  background-attachment: fixed;
  overflow: hidden;
  color: var(--white);
}

/* iOS ne supporte pas background-attachment:fixed — fallback */
@supports (-webkit-touch-callout: none) {
  .hero { background-attachment: scroll; }
}

.hero .container {
  margin-left: 0;
  max-width: fit-content;
}

.hero-img-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: inherit;
  background-attachment: fixed;
  filter: brightness(0.65);
  z-index: 1;
}

@supports (-webkit-touch-callout: none) {
  .hero-img-overlay { background-attachment: scroll; }
}

.hero::before {
  display: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 900px;
  padding: var(--sp-12) var(--sp-10);
  margin-left: var(--sp-6);
  animation: fadeIn 1s ease-out;
  border-left: 6px solid var(--gold);
}

.hero-tag {
  display: inline-block;
  background: var(--gold);
  color: var(--grey-950);
  padding: 0.5rem 1.25rem;
  font-weight: 800;
  border-radius: var(--r-full);
  margin-bottom: var(--sp-4);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.hero h1 {
  font-family: var(--font-sans);
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.1;
  font-weight: 900;
  margin-bottom: var(--sp-4);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  opacity: 0.95;
  margin-bottom: var(--sp-10);
  max-width: 700px;
  line-height: 1.6;
  font-weight: 500;
  color: var(--white);
}

.hero-actions {
  display: flex;
  gap: var(--sp-4);
  flex-wrap: wrap;
}

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

/* ─── PAGE DÉMARCHES ───────────────────────────────────────── */
.demarche-section {
  padding: var(--sp-12) 0;
  border-bottom: var(--border-subtle);
}

.demarche-section:last-child { border-bottom: none; }

/* Corps de texte des cartes démarches */
.demarche-body {
  font-size: var(--text-sm);
  color: var(--grey-700);
  line-height: 1.7;
  margin-bottom: var(--sp-4);
}

/* Tuiles de navigation sommaire démarches */
.demarche-nav-tile {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--sp-3) var(--sp-2);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-bottom: 3px solid var(--gold);
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--grey-900);
  text-decoration: none;
  transition: all var(--t-fast);
  box-shadow: var(--shadow-sm);
}
.demarche-nav-tile:hover {
  background: var(--gold-soft);
  border-bottom-color: var(--gold-dark);
  color: var(--gold-dark);
  transform: translateY(-2px);
  text-decoration: none;
}

/* ─── CONTACT MAIRIE (section démarches) ─────────────────── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-8);
  align-items: start;
}
@media (max-width: 768px) { .contact-grid { grid-template-columns: 1fr; } }

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
}
.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: var(--grey-800);
}
.contact-info-icon { flex-shrink: 0; font-size: 1rem; margin-top: 1px; }
.contact-info-item a { color: var(--gold-dark); font-weight: 600; text-decoration: none; }
.contact-info-item a:hover { text-decoration: underline; }

.schedule-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-top: 3px solid var(--gold);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: var(--shadow-sm);
}
.schedule-card-title {
  font-weight: 700;
  color: var(--grey-950);
  margin-bottom: var(--sp-4);
  font-size: var(--text-base);
  padding-bottom: var(--sp-3);
  border-bottom: 1px solid var(--grey-100);
}
.schedule-row {
  display: flex;
  justify-content: space-between;
  font-size: var(--text-sm);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--grey-100);
}
.schedule-row:last-child { border-bottom: none; }
.schedule-day { font-weight: 600; color: var(--grey-900); }
.schedule-hours { color: var(--grey-700); }
.schedule-closed { color: var(--red-marianne); font-weight: 600; }

.demarche-card {
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-xl);
  padding: var(--sp-8);
  margin-bottom: var(--sp-6);
  transition: all var(--t-normal);
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--gold);
  position: relative;
  overflow: hidden;
}

.demarche-card:hover {
  box-shadow: var(--shadow-premium);
  transform: translateY(-8px);
  border-top-color: var(--gold-dark);
}

.demarche-card-header {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-bottom: var(--sp-5);
}

.demarche-card-icon {
  width: 64px;
  height: 64px;
  background: var(--gold-light);
  border: 1px solid var(--gold);
  color: var(--gold-dark);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  flex-shrink: 0;
  transition: all var(--t-normal);
}

.demarche-card:hover .demarche-card-icon {
  background: var(--gold);
  color: var(--white);
  transform: scale(1.1) rotate(-5deg);
}

.demarche-card-title {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--grey-950);
  line-height: 1.2;
}

.demarche-card-subtitle {
  font-size: var(--text-sm);
  color: var(--grey-600);
  margin-top: var(--sp-1);
}

/* Démarches steps structure */

.demarche-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--sp-4);
  margin: var(--sp-6) 0;
}

.demarche-step {
  background: var(--grey-50);
  border-radius: var(--r-xl);
  padding: var(--sp-5);
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
}

.demarche-step-num {
  width: 28px;
  height: 28px;
  background: var(--gold);
  color: var(--grey-950);
  border-radius: var(--r-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xs);
  font-weight: 800;
  flex-shrink: 0;
}

.demarche-step-text {
  font-size: var(--text-sm);
  color: var(--grey-800);
  line-height: 1.5;
}

.demarche-links {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  margin-top: var(--sp-5);
  padding-top: var(--sp-5);
  border-top: var(--border-subtle);
}

.demarche-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-3) var(--sp-6);
  background: var(--gold);
  color: var(--grey-950) !important;
  border-radius: var(--r-lg);
  font-size: var(--text-sm);
  font-weight: 700;
  text-decoration: none;
  transition: all var(--t-normal);
  box-shadow: var(--shadow-sm);
}

.demarche-link:hover {
  background: var(--gold-dark);
  color: var(--white) !important;
  text-decoration: none;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.demarche-link-secondary {
  background: transparent;
  color: var(--gold-dark) !important;
  border: 2px solid var(--gold-dark);
}

.demarche-link-secondary:hover {
  background: var(--gold-soft);
  color: var(--grey-950) !important;
}

.demarche-info {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4);
  background: var(--gold-soft);
  border-left: 4px solid var(--gold);
  border-radius: 0 var(--r-lg) var(--r-lg) 0;
  margin-top: var(--sp-5);
  font-size: var(--text-sm);
  color: var(--grey-800);
  line-height: 1.6;
}

.demarche-info-icon {
  flex-shrink: 0;
  font-size: 1.1rem;
}

.demarche-pieces {
  margin-top: var(--sp-4);
}

.demarche-pieces-title {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--grey-800);
  margin-bottom: var(--sp-2);
}

.demarche-pieces-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.demarche-pieces-list li {
  font-size: var(--text-sm);
  color: var(--grey-700);
  padding: var(--sp-1) 0;
  padding-left: var(--sp-4);
  position: relative;
}

.demarche-pieces-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--gold-dark);
  font-weight: 700;
}

/* ─── ALERTES / BANDEAU INFO ────────────────────────────────── */
.alert-bar {
  background: var(--gold-light);
  border-left: 4px solid var(--gold);
  padding: var(--sp-3) var(--sp-6);
}

.alert-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-size: var(--text-sm);
}

.alert-bar-icon { font-size: 1.1rem; flex-shrink: 0; }
.alert-bar strong { font-weight: 700; }

.quick-access {
  background: var(--white);
  padding: var(--sp-12) 0 var(--sp-16);
  border-bottom: 1px solid var(--grey-100);
}

.quick-header {
  display: flex;
  align-items: center;
  gap: var(--sp-6);
  margin-bottom: var(--sp-12);
}

.quick-header::after {
  content: '';
  flex: 1;
  height: 2px;
  background: var(--gold);
  opacity: 0.8;
}

.quick-title {
  font-family: var(--font-sans);
  font-weight: 800;
  font-size: 2.5rem;
  color: var(--grey-950);
  margin: 0;
  white-space: nowrap;
}

.quick-grid-v2 {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--sp-6);
  max-width: 1100px;
  margin: 0 auto;
}

.quick-tile-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  transition: transform var(--t-normal);
}

.quick-tile-v2:hover {
  transform: translateY(-5px);
}

.icon-circle {
  width: 120px;
  height: 120px;
  background: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--sp-4);
  position: relative;
  border: 4px solid var(--gold);
  box-shadow: var(--shadow-sm);
  transition: all var(--t-normal);
}

.quick-tile-v2:hover .icon-circle {
  background: var(--gold-bg);
  border-color: var(--gold-dark);
  box-shadow: var(--shadow-md);
}

.icon-glyph {
  font-size: 3rem;
  filter: none;
}

.icon-label {
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--grey-900);
  text-align: center;
  letter-spacing: 0.05em;
  line-height: 1.3;
}

/* Version Responsive Accès Rapide */
@media (max-width: 1024px) {
  .quick-grid-v2 { grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
  .quick-title { font-size: 2rem; }
}

@media (max-width: 768px) {
  .quick-header::after { display: none; }
  .quick-header { justify-content: center; }
  .quick-grid-v2 { grid-template-columns: repeat(2, 1fr); gap: var(--sp-6); }
  .icon-circle { width: 100px; height: 100px; }
  .icon-glyph { font-size: 2.5rem; }
}

/* ─── AGENDA — GRILLE BENTO ──────────────────────────────── */
/*
 * Layout : carte phare à gauche (pleine hauteur) +
 *          2 cartes secondaires empilées à droite,
 *          leur hauteur cumulée = hauteur de la carte phare.
 *
 * Technique : grille 2 colonnes, 2 rangées.
 * La carte phare couvre les 2 rangées (grid-row: span 2).
 * Les deux cartes secondaires occupent chacune 1 rangée.
 * align-items: stretch garantit l'étirement.
 */
.agenda-grid {
  display: grid;
  grid-template-columns: 420px 1fr;
  grid-template-rows: 1fr 1fr;     /* 2 rangées égales */
  gap: var(--sp-4);
  max-width: 1020px;
  margin: var(--sp-6) auto 0;
  align-items: stretch;
}

/* Carte phare : occupe les 2 rangées */
.agenda-grid .event-card:first-child {
  grid-row: span 2;
}

/* ─── CARTE AGENDA (BASE) ─────────────────────────────── */
.event-card {
  background: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: var(--r-lg);
  box-shadow: 0 1px 6px rgba(166, 124, 0, 0.07);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.event-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(166, 124, 0, 0.16);
  border-color: var(--gold);
}

/* Bandeau doré en haut — visible au survol */
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-vibrant));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.event-card:hover::before,
.agenda-grid .event-card:first-child::before { opacity: 1; }

/* ─── CARTE PHARE (colonne gauche) ───────────────────────── */
.agenda-grid .event-card:first-child {
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-top: 4px solid var(--gold);
}

.agenda-grid .event-card:first-child .event-img-wrap {
  height: 140px;
}

.agenda-grid .event-card:first-child .event-header-info {
  padding: var(--sp-4);
  gap: var(--sp-3);
}

.agenda-grid .event-card:first-child .event-date {
  width: 52px;
  height: 60px;
}

.agenda-grid .event-card:first-child .event-day  { font-size: 1.4rem; }

.agenda-grid .event-card:first-child .event-title {
  font-size: 1rem;
  white-space: normal;
  overflow: visible;
  text-overflow: unset;
}

.agenda-grid .event-card:first-child .event-desc {
  -webkit-line-clamp: 3;
}

/* ─── CARTES SECONDAIRES (colonne droite, 1 rangée chacune) ─ */
/* Image masquée : on conserve place pour le corps uniquement */
.agenda-grid > .event-card:not(:first-child) .event-img-wrap {
  display: none;
}

/* Corps centré verticalement pour remplir la demi-hauteur */
.agenda-grid > .event-card:not(:first-child) .event-body {
  flex: 1;
  justify-content: center;
}

.agenda-grid > .event-card:not(:first-child) .event-header-info {
  padding: var(--sp-3) var(--sp-4);
  gap: var(--sp-3);
  align-items: center;
}

/* Description condensée à 2 lignes */
.agenda-grid > .event-card:not(:first-child) .event-desc {
  -webkit-line-clamp: 2;
  padding: 0 var(--sp-4) var(--sp-2);
}

.agenda-grid > .event-card:not(:first-child) .card-footer {
  padding: var(--sp-2) var(--sp-4);
}

/* ─── IMAGE DE CARTE (phare uniquement) ───────────────────── */
.event-img-wrap {
  width: 100%;
  height: 120px;
  overflow: hidden;
  flex-shrink: 0;
}

.event-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.event-card:hover .event-card-img { transform: scale(1.04); }

/* ─── CORPS DE CARTE ──────────────────────────────────────── */
.event-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.event-header-info {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-4) var(--sp-2);
}

/* ─── BADGE DATE ─────────────────────────────────────────── */
.event-date {
  width: 46px;
  height: 52px;
  background: var(--gold);
  color: var(--white);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-md);
  font-weight: 800;
  flex-shrink: 0;
  transition: background 0.3s ease;
}

.event-card:hover .event-date { background: var(--gold-dark); }

.event-day   { font-size: 1.15rem; line-height: 1; }
.event-month { font-size: 0.58rem; text-transform: uppercase; font-weight: 700; margin-top: 2px; }

/* ─── INFOS TITRE / CATÉGORIE ────────────────────────────── */
.event-info { flex: 1; min-width: 0; }

.event-cat {
  display: inline-block;
  font-size: 0.6rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.4);
  padding: 1px 7px;
  border-radius: 20px;
  margin-bottom: 2px;
  transition: background 0.25s ease;
}

.event-card:hover .event-cat { background: var(--gold-light); }

.agenda-grid .event-card:first-child .event-cat {
  background: rgba(255, 255, 255, 0.75);
  border-color: rgba(166, 124, 0, 0.3);
}

.event-title {
  font-size: 0.88rem;
  font-weight: 700;
  margin-top: 2px;
  line-height: 1.3;
  color: var(--grey-900);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── DESCRIPTION COURTE ─────────────────────────────────── */
.event-desc {
  font-size: 0.78rem;
  color: var(--grey-700);
  line-height: 1.5;
  padding: 0 var(--sp-4) var(--sp-3);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── BOUTON LIRE LA SUITE — ton or pour l'Agenda ─────────── */
.event-card .news-card-btn {
  color: var(--gold-dark);
  font-size: 0.78rem;
}

.event-card .news-card-btn:hover {
  color: var(--gold-dark);
  filter: brightness(0.75);
}

/* ─── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 992px) {
  .agenda-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    max-width: 480px;
  }
  .agenda-grid .event-card:first-child {
    grid-row: auto;
  }
  .agenda-grid > .event-card:not(:first-child) .event-img-wrap {
    display: block;
    height: 100px;
  }
  .agenda-grid > .event-card:not(:first-child) .event-header-info {
    padding: var(--sp-3) var(--sp-4) var(--sp-2);
  }
  .agenda-grid > .event-card:not(:first-child) .card-footer {
    border-top: 1px solid var(--grey-200);
    padding: var(--sp-3) var(--sp-4);
  }
}


/* ─── SECTIONS GÉNÉRIQUES ───────────────────────────────────── */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--sp-3);
}

.section-eyebrow::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: var(--r-full);
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: var(--grey-950);
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-4);
}

.section-lead {
  font-size: var(--text-md);
  color: var(--grey-700);
  line-height: 1.7;
  max-width: 640px;
}

/* ─── ACTUALITÉS (DESIGN HARMONISÉ & PREMIUM) ─────────────── */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--sp-8);
  gap: var(--sp-4);
  flex-wrap: wrap;
}

/* ─── ACTUALITÉS (DESIGN MAQUETTE) ────────────────────────────── */

/* Grille principale */
.news-layout-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-8);
  margin-top: var(--sp-8);
}

/* ─── ACTUALITÉS — BASE CHARTE OR ────────────────────────── */
.featured-news-card, .grid-news-card {
  background: var(--white);
  border: 1px solid rgba(212, 175, 55, 0.25); /* liseré or discret */
  box-shadow: 0 2px 12px rgba(166, 124, 0, 0.08); /* ombre teintée or */
  border-radius: var(--r-xl);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  display: flex;
  flex-direction: column;
  position: relative;
}

.featured-news-card:hover, .grid-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 36px rgba(166, 124, 0, 0.18);
  border-color: var(--gold);
}

/* CARTE FEATURED (HORIZONTALE ÉDITORIALE) */
.featured-news-card {
  margin-bottom: var(--sp-10);
  border-top: 5px solid var(--gold);
}

.featured-news-content {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 220px;
}

.featured-news-img-wrap {
  flex: 0 0 280px;
  overflow: hidden;
}

.featured-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.featured-news-card:hover .featured-news-img {
  transform: scale(1.04);
}

.featured-news-text {
  flex: 1;
  padding: var(--sp-8);
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.featured-news-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--grey-950);
  margin-bottom: var(--sp-3);
  line-height: 1.25;
}

.featured-news-subtitle {
  font-size: 0.95rem;
  color: var(--grey-700);
  line-height: 1.6;
}

/* CARTE GRID (VERTICALE PLEIN-BLEED) */
.grid-news-card {
  text-align: left;
}

.grid-news-img-wrap {
  width: 100%;
  height: 190px;
  overflow: hidden;
  flex-shrink: 0;
}

.grid-news-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.grid-news-card:hover .grid-news-img {
  transform: scale(1.04);
}

.grid-news-body {
  padding: var(--sp-5) var(--sp-5) var(--sp-3);
  flex: 1;
}

.grid-news-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--grey-900);
  margin: var(--sp-1) 0 0;
  line-height: 1.35;
}

/* ─── META NEWS (catégorie + date) ─────────────────────────── */
.news-meta {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
}

.news-cat {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  background: var(--gold-soft);
  border: 1px solid rgba(212, 175, 55, 0.35);
  padding: 2px 9px;
  border-radius: 20px;
}

.news-date {
  font-size: 0.75rem;
  color: var(--grey-600);
  font-weight: 500;
}

.news-desc {
  font-size: 0.82rem;
  color: var(--grey-700);
  line-height: 1.55;
  margin: var(--sp-2) 0 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Bouton — ton or pour la section Actualités (sans bleu) */
.featured-news-card .news-card-btn,
.grid-news-card .news-card-btn {
  color: var(--gold-dark);
}

.featured-news-card .news-card-btn:hover,
.grid-news-card .news-card-btn:hover {
  color: var(--gold);
}

/* FOOTER DE CARTE (Lien + Ligne) */
.card-footer {
  border-top: 1px solid var(--grey-200);
  padding: var(--sp-4) var(--sp-5);
  margin: 0;
  display: flex;
  justify-content: flex-start;
  align-items: center;
}

.news-card-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  background: transparent;
  color: var(--primary); /* Bleu France — cohérent avec les autres CTAs */
  padding: 8px 0;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.25s ease, gap 0.25s ease;
  border: none;
  letter-spacing: 0.02em;
}

.news-card-btn::after {
  content: '\2192'; /* → */
  font-size: 0.9rem;
  transition: transform 0.25s ease, color 0.25s ease;
  display: inline-block;
  color: var(--gold-dark); /* Flèche toujours dorée — accent blason */
}

.news-card-btn:hover {
  color: var(--primary-dark); /* Bleu France foncé au survol */
  gap: var(--sp-3);
}

.news-card-btn:hover::after {
  transform: translateX(4px);
  color: var(--gold); /* Flèche dorée vibrante au survol */
}

.section-all-link {
  color: var(--gold-dark);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.1rem;
  transition: all 0.2s ease;
  display: inline-block;
}

.section-all-link:hover {
  text-decoration: underline;
  transform: translateX(4px); /* Petit effet de flèche qui avance */
}
@media (max-width: 992px) {
  .featured-news-content {
    flex-direction: column;
  }
  .featured-news-img-wrap {
    flex: 0 0 auto;
    height: 220px;
  }
  .featured-news-text {
    padding: var(--sp-6);
  }
  .news-layout-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .news-layout-grid {
    grid-template-columns: 1fr;
  }
}

/* ─── MAIRIE INFO ───────────────────────────────────────────── */
.mairie-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--sp-12);
  align-items: start;
}

.info-card {
  background: var(--white);
  border: var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
}

.info-card-header {
  background: var(--primary);
  color: var(--white);
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.info-card-header-icon { font-size: 1.25rem; }

.info-card-header-title {
  font-size: var(--text-base);
  font-weight: 700;
}

.info-card-body { padding: var(--sp-6); }

.info-row {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  padding: var(--sp-4) 0;
  border-bottom: var(--border-subtle);
}

.info-row:last-child { border-bottom: none; }

.info-row-label {
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--grey-600);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.info-row-value {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--grey-900);
}

.contact-card {
  background: var(--primary);
  color: var(--white);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  margin-top: var(--sp-4);
}

.contact-card-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--sp-5);
}

.contact-item {
  display: flex;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  font-size: var(--text-sm);
  align-items: flex-start;
}

.contact-item:last-child { margin-bottom: 0; }
.contact-item a { color: rgba(255,255,255,0.9); text-decoration: underline; }
.contact-item a:hover { color: #fff; }

/* ─── SERVICES ──────────────────────────────────────────────── */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

/* Fin section agenda */
.service-card {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  padding: var(--sp-8);
  background: var(--white);
  border: 1px solid var(--grey-200);
  border-radius: var(--r-xl);
  text-decoration: none;
  color: inherit;
  transition: all var(--t-slow);
  position: relative;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.service-card:hover {
  border-color: var(--gold-light);
  box-shadow: var(--shadow-premium);
  text-decoration: none;
  transform: translateY(-8px);
}

.service-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; width: 0; height: 4px;
  background: var(--gold);
  transition: width var(--t-normal);
}

.service-card:hover::after {
  width: 100%;
}

.service-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-bg);
  border-radius: var(--r-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.service-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--primary-dark);
}

.service-desc {
  font-size: var(--text-xs);
  color: var(--grey-600);
  line-height: 1.5;
}

.service-arrow {
  margin-top: auto;
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: var(--sp-1);
}

/* ─── SECTION BGROUND ALT ───────────────────────────────────── */
.bg-light   { background: var(--grey-50); }
.bg-primary { background: var(--primary); color: var(--white); }
.bg-blue    { background: var(--blue-france-lighter); }

/* ─── TABLEAUX & FICHE IDENTITÉ ─────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.data-table th,
.data-table td {
  padding: var(--sp-3) var(--sp-4);
  border-bottom: var(--border-subtle);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--grey-50);
  font-weight: 700;
  color: var(--grey-700);
  font-size: var(--text-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: var(--grey-50); }

/* ─── PATRIMOINE ────────────────────────────────────────────── */
.patrimoine-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-12);
  align-items: center;
}

.patrimoine-feature.reverse { direction: rtl; }
.patrimoine-feature.reverse > * { direction: ltr; }

.patrimoine-img {
  border-radius: var(--r-2xl);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--grey-200);
}

.patrimoine-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ─── PLAN DU SITE ──────────────────────────────────────────── */
.sitemap-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.sitemap-card {
  background: var(--white);
  border: var(--border-subtle);
  border-radius: var(--r-xl);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: all var(--t-normal);
}

.sitemap-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  text-decoration: none;
  border-color: var(--gold);
}

.sitemap-card-visual {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  position: relative;
  overflow: hidden;
}

.sitemap-card-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sitemap-card-body {
  padding: var(--sp-5);
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.sitemap-card-title {
  font-size: var(--text-base);
  font-weight: 700;
  color: var(--grey-950);
}

.sitemap-card-desc {
  font-size: var(--text-xs);
  color: var(--grey-600);
  line-height: 1.5;
  flex: 1;
}

.sitemap-card-link {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: 700;
  color: var(--gold-dark);
  text-decoration: none;
  margin-top: var(--sp-3);
}

.sitemap-card-link:hover { text-decoration: underline; }

/* Sous-liens dans plan du site */
.sitemap-sublinks {
  margin-top: var(--sp-3);
  padding-top: var(--sp-3);
  border-top: var(--border-subtle);
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
}

.sitemap-sublink {
  font-size: var(--text-xs);
  color: var(--grey-700);
  text-decoration: none;
  padding: var(--sp-1) 0;
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.sitemap-sublink::before {
  content: '→';
  color: var(--gold);
  font-weight: 700;
}

.sitemap-sublink:hover { color: var(--gold-dark); text-decoration: underline; }

/* ─── BREADCRUMB ────────────────────────────────────────────── */
.breadcrumb {
  padding: var(--sp-3) 0;
  border-bottom: var(--border-subtle);
  background: var(--grey-50);
}

.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: var(--text-xs);
  color: var(--grey-600);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.breadcrumb a:hover { color: var(--primary-dark); }
.breadcrumb-sep { color: var(--grey-400); }
.breadcrumb-current { color: var(--grey-800); font-weight: 500; }

/* ─── PAGE HERO ─────────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(160deg, var(--grey-950) 0%, #1a1a1a 60%, #2c2010 100%);
  color: var(--white);
  padding: var(--sp-16) 0 var(--sp-12);
  border-bottom: 3px solid var(--gold);
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 70% 50%, rgba(212,175,55,0.08) 0%, transparent 65%);
  pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero .section-eyebrow { color: var(--gold); }
.page-hero .section-eyebrow::before { background: var(--gold); }
.page-hero .section-title { color: var(--white); font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-hero .section-lead  { color: rgba(255,255,255,0.82); max-width: 700px; }

.page-hero-img {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--sp-8);
  align-items: center;
}

/* ─── COOKIE BANNER RGPD ────────────────────────────────────── */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: var(--grey-950);
  color: var(--white);
  z-index: 9990;
  border-top: 3px solid var(--blue-france);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
  animation: slideUpBar 0.3s ease;
}

.cookie-banner.hidden { display: none; }

@keyframes slideUpBar {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}

.cookie-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.cookie-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  font-weight: 700;
  font-size: var(--text-base);
}

.cookie-text {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.8);
  line-height: 1.6;
  max-width: 800px;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
  align-items: center;
}

.cookie-link {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  text-decoration: underline;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.cookie-link:hover { color: #fff; }

/* ─── FOOTER OFFICIEL ───────────────────────────────────────── */
.site-footer {
  background: var(--grey-950);
  color: var(--white);
  margin-top: 0;
}

/* Bandeau RF en footer */
.footer-rf-bar {
  background: var(--grey-900);
  padding: var(--sp-5) 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-rf-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-8);
  flex-wrap: wrap;
}

.footer-rf-logo {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
}

.footer-rf-blason {
  width: 48px;
  height: auto;
  opacity: 0.85;
}

.footer-rf-text .footer-rf-name {
  font-size: var(--text-base);
  font-weight: 700;
  color: #fff;
}

.footer-rf-text .footer-rf-sub {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.5);
}

.footer-badges {
  display: flex;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.6);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 2px var(--sp-3);
  border-radius: var(--r-full);
}

/* Corps footer */
.footer-body {
  padding: var(--sp-12) 0;
}

.footer-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: var(--sp-10);
}

.footer-col-title {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-bottom: var(--sp-5);
}

.footer-link {
  display: block;
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  padding: var(--sp-1) 0;
  margin-bottom: var(--sp-2);
  transition: color var(--t-fast);
}

.footer-link:hover { color: #fff; text-decoration: underline; }

.footer-brand-desc {
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.55);
  line-height: 1.7;
  margin-bottom: var(--sp-6);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: var(--text-sm);
  color: rgba(255,255,255,0.65);
  margin-bottom: var(--sp-3);
}

.footer-contact-item a {
  color: rgba(255,255,255,0.8);
  text-decoration: underline;
}

.footer-contact-item a:hover { color: #fff; }

/* Footer bottom */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: var(--sp-6) 0;
}

.footer-bottom-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--sp-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--sp-4);
}

.footer-copyright {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.35);
}

.footer-legal {
  display: flex;
  gap: var(--sp-5);
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: var(--text-xs);
  color: rgba(255,255,255,0.4);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-legal a:hover { color: rgba(255,255,255,0.8); }

/* ─── UTILITAIRES ───────────────────────────────────────────── */
.text-center { text-align: center; }
.text-primary { color: var(--primary); }
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--grey-600); }

.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;
}

/* ─── BADGE INSEE ───────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-1);
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 2px var(--sp-3);
  border-radius: var(--r-full);
}

.badge-primary { background: var(--primary-bg); color: var(--primary-dark); }
.badge-gold    { background: var(--gold-light); color: var(--gold-dark); }
.badge-blue    { background: var(--blue-france-light); color: var(--blue-france); }

/* ─── TAGS SECTION ──────────────────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
}

/* ─── SCROLL REVEAL ─────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── DÉCORATION DORÉE ──────────────────────────────────────── */
.gold-line {
  display: block;
  width: 40px;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--gold-light));
  border-radius: var(--r-full);
  margin: var(--sp-4) 0;
}

/* ─── RESPONSIVE ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-blason { display: none; }
  .hero-stats { gap: var(--sp-6); flex-wrap: wrap; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr 1fr; }
  .news-card-featured { grid-row: initial; }
  .mairie-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .patrimoine-feature { grid-template-columns: 1fr; }
  .patrimoine-feature.reverse { direction: ltr; }
  .sitemap-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Tablette : on passe au hamburger dès 992px */
@media (max-width: 992px) {
  .nav-list, .header-actions { display: none; }
  .hamburger { display: flex; }

  .header-nav-inner { min-height: 72px; }
  .brand-name { font-size: 1.6rem; }
  .brand-logo { width: 48px; height: 48px; }
  .brand-separator { height: 36px; }
}

@media (max-width: 768px) {
  .container, .container-sm { padding: 0 var(--sp-4); }
  .section { padding: var(--sp-10) 0; }
  .section-lg { padding: var(--sp-12) 0; }

  .header-nav-inner { min-height: 60px; padding: 0 var(--sp-4); }
  .brand-name { font-size: 1.3rem; }
  .brand-logo { width: 40px; height: 40px; }
  .brand-separator { height: 28px; margin: 0 var(--sp-1); }
  .brand { gap: var(--sp-3); }

  /* Hero mobile */
  .hero {
    min-height: 60vh;
    background-attachment: scroll;
    align-items: flex-end; /* Texte en bas pour lisibilité mobile */
  }
  .hero-img-overlay { background-attachment: scroll; }
  .hero-content {
    margin-left: 0;
    padding: var(--sp-8) var(--sp-5) var(--sp-10);
    border-left: 4px solid var(--gold);
    max-width: 100%;
  }
  .hero h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .hero-lead { font-size: 1rem; margin-bottom: var(--sp-6); }
  .hero-tag { font-size: 0.68rem; }
  .hero-actions { flex-direction: column; gap: var(--sp-3); }
  .hero-actions .btn { width: 100%; justify-content: center; }

  .quick-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .news-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .sitemap-grid { grid-template-columns: 1fr; }

  .header-top-devises { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom-inner { flex-direction: column; align-items: flex-start; }

  .hero-stat-num { font-size: var(--text-xl); }

  .cookie-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 600px) {
  /* Hero très petit écran */
  .hero { min-height: 50vh; }
  .hero-content { padding: var(--sp-6) var(--sp-4) var(--sp-8); }
  .hero h1 { font-size: clamp(1.5rem, 7vw, 2rem); }
  .hero-lead { display: none; }

  .header-nav-inner { min-height: 52px; }
  .brand-name { font-size: 1.1rem; }
  .brand-logo { width: 34px; height: 34px; }
  .brand-separator { display: none; }
  .hamburger { width: 40px; height: 40px; }
  .hamburger span { width: 18px; }
  .hamburger span:nth-child(2) { width: 13px; }
}

@media (max-width: 480px) {
  .quick-grid { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-direction: column; gap: var(--sp-4); }
}

/* ══════════════════════════════════════════════════════════════
   PAGE CONTACT — FORMULAIRE & MISE EN PAGE
   RGAA 4.1 / WCAG 2.1 AA conforme
══════════════════════════════════════════════════════════════ */

/* ─── GRILLE CONTACT ─────────────────────────────────────────── */
.contact-page-grid {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--sp-10);
  align-items: flex-start;
}

/* ─── CARTE FORMULAIRE ────────────────────────────────────────── */
.contact-form-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: var(--sp-10);
}

.contact-form-card-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--grey-950);
  margin: 0 0 var(--sp-2);
}

.contact-form-card-lead {
  color: var(--grey-600);
  font-size: 0.97rem;
  margin: 0 0 var(--sp-6);
  line-height: 1.6;
}

/* ─── NOTE CHAMPS OBLIGATOIRES (RGAA 11.10) ──────────────────── */
.form-required-note {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.875rem;
  color: var(--grey-600);
  margin-bottom: var(--sp-6);
  padding: var(--sp-3) var(--sp-4);
  background: var(--gold-soft);
  border-left: 3px solid var(--gold);
  border-radius: 0 var(--r-md) var(--r-md) 0;
}

.form-required-note .required-star {
  color: #c50000;
  font-weight: 700;
  font-size: 1rem;
  aria-hidden: true;
}

/* ─── GROUPE DE CHAMP ────────────────────────────────────────── */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-5);
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: var(--sp-1);
  margin-bottom: var(--sp-5);
}

.form-group:last-child { margin-bottom: 0; }

/* ─── LABEL (RGAA 11.1 / 11.2) ──────────────────────────────── */
.form-label {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--grey-800);
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
}

.form-label .req-marker {
  color: #c50000;
  font-weight: 700;
  font-size: 1.05em;
}

/* ─── HINT TEXT ──────────────────────────────────────────────── */
.form-hint {
  font-size: 0.82rem;
  color: var(--grey-500);
  margin-top: calc(-1 * var(--sp-1));
}

/* ─── INPUTS / SELECT / TEXTAREA ─────────────────────────────── */
.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-family: var(--font-main);
  font-size: 0.97rem;
  color: var(--grey-900);
  background: var(--white);
  border: 2px solid var(--grey-300);
  border-radius: var(--r-md);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
  -webkit-appearance: none;
  line-height: 1.5;
  box-sizing: border-box;
}

.form-input::placeholder,
.form-textarea::placeholder {
  color: var(--grey-400);
}

/* Focus visible RGAA (Critère 10.7) */
.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(212,175,55,0.2);
}

/* État invalide (Critère 11.11) */
.form-input[aria-invalid="true"],
.form-select[aria-invalid="true"],
.form-textarea[aria-invalid="true"] {
  border-color: #c50000;
  background: #fff5f5;
}

.form-input[aria-invalid="true"]:focus,
.form-select[aria-invalid="true"]:focus,
.form-textarea[aria-invalid="true"]:focus {
  outline-color: #c50000;
  box-shadow: 0 0 0 3px rgba(197,0,0,0.15);
}

/* Select — chevron custom */
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23666' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--sp-3) center;
  padding-right: var(--sp-10);
  cursor: pointer;
}

.form-textarea {
  resize: vertical;
  min-height: 140px;
}

/* ─── MESSAGE D'ERREUR (RGAA 11.11) ──────────────────────────── */
.form-error {
  display: none;
  align-items: center;
  gap: var(--sp-2);
  font-size: 0.85rem;
  font-weight: 500;
  color: #c50000;
  margin-top: var(--sp-1);
}

.form-error.visible {
  display: flex;
}

.form-error-icon {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
  background: #c50000;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
}

/* ─── CASE À COCHER RGPD ─────────────────────────────────────── */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  margin-bottom: var(--sp-6);
}

.form-check-input {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  margin-top: 2px;
  accent-color: var(--gold-dark);
  cursor: pointer;
  border: 2px solid var(--grey-400);
  border-radius: var(--r-sm);
}

.form-check-input:focus {
  outline: 3px solid var(--gold);
  outline-offset: 2px;
}

.form-check-label {
  font-size: 0.88rem;
  color: var(--grey-700);
  line-height: 1.55;
  cursor: pointer;
}

.form-check-label a {
  color: var(--gold-dark);
  text-decoration: underline;
}

.form-check-label a:hover {
  color: var(--gold);
}

/* ─── CHAMP HONEYPOT (anti-spam) ─────────────────────────────── */
.form-honeypot {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ─── BOUTON ENVOI ────────────────────────────────────────────── */
.form-submit-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4) var(--sp-8);
  background: var(--gold);
  color: var(--grey-950);
  font-family: var(--font-main);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: var(--r-md);
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast), box-shadow var(--t-fast);
  box-shadow: var(--shadow-sm);
}

.form-submit-btn:hover {
  background: var(--gold-dark);
  color: var(--white);
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.form-submit-btn:focus {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
}

.form-submit-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* ─── MESSAGE SUCCÈS / ERREUR GLOBAL ────────────────────────── */
.form-feedback {
  display: none;
  padding: var(--sp-5) var(--sp-6);
  border-radius: var(--r-md);
  font-size: 0.97rem;
  font-weight: 500;
  margin-bottom: var(--sp-6);
  border-left: 4px solid;
}

.form-feedback.success {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: #edf7ed;
  border-color: #2e7d32;
  color: #1b5e20;
}

.form-feedback.error-global {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  background: #fce8e8;
  border-color: #c50000;
  color: #7f0000;
}

/* ─── SIDEBAR CONTACT ─────────────────────────────────────────── */
.contact-sidebar {
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
}

.contact-info-card {
  background: var(--white);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.contact-info-card-header {
  background: var(--grey-950);
  color: var(--white);
  padding: var(--sp-5) var(--sp-6);
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  border-bottom: 3px solid var(--gold);
}

.contact-info-card-header-title {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--white);
  margin: 0;
}

.contact-info-card-body {
  padding: var(--sp-5) var(--sp-6);
}

.contact-detail-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact-detail-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 0.95rem;
  color: var(--grey-700);
  line-height: 1.5;
}

.contact-detail-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  margin-top: 1px;
}

.contact-detail-item a {
  color: var(--gold-dark);
  text-decoration: none;
}

.contact-detail-item a:hover {
  text-decoration: underline;
}

/* ─── HORAIRES CARD ───────────────────────────────────────────── */
.hours-card {
  background: var(--gold-soft);
  border: 1px solid var(--gold);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.hours-card-header {
  background: var(--gold);
  padding: var(--sp-3) var(--sp-5);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

.hours-card-title {
  font-family: var(--font-main);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--grey-950);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0;
}

.hours-card-body {
  padding: var(--sp-4) var(--sp-5);
}

.hours-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--sp-2) 0;
  border-bottom: 1px solid rgba(212,175,55,0.3);
  font-size: 0.88rem;
  gap: var(--sp-3);
}

.hours-row:last-child { border-bottom: none; }

.hours-day {
  font-weight: 500;
  color: var(--grey-800);
  min-width: 90px;
}

.hours-time {
  color: var(--grey-700);
  text-align: right;
}

.hours-closed {
  color: var(--grey-400);
  font-style: italic;
}

/* ─── CARTE OPENSTREETMAP ─────────────────────────────────────── */
.contact-map-card {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--grey-200);
}

.contact-map-card iframe {
  display: block;
  width: 100%;
  height: 240px;
  border: none;
}

.contact-map-card-caption {
  background: var(--grey-50);
  padding: var(--sp-3) var(--sp-4);
  font-size: 0.82rem;
  color: var(--grey-500);
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  border-top: 1px solid var(--grey-200);
}

/* ─── RESPONSIVE FORMULAIRE ──────────────────────────────────── */
@media (max-width: 960px) {
  .contact-page-grid {
    grid-template-columns: 1fr;
  }
  .contact-sidebar {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .contact-map-card { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  .form-row { grid-template-columns: 1fr; }
  .contact-form-card { padding: var(--sp-6); }
  .contact-sidebar { grid-template-columns: 1fr; }
}

/* ─── SCROLLBAR ─────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--grey-100); }
::-webkit-scrollbar-thumb { background: var(--grey-400); border-radius: var(--r-full); }
::-webkit-scrollbar-thumb:hover { background: var(--primary-light); }

/* ─── SELECTION ─────────────────────────────────────────────── */
::selection { background: var(--primary-bg); color: var(--primary-dark); }

/* ─── PRINT ─────────────────────────────────────────────────── */
@media print {
  .site-header, .cookie-banner, .hero-actions, .quick-access { display: none; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
  .container { max-width: 100%; padding: 0; }
}
