/* ==========================================================================
   VILLE DE LAXOU - PRODUCTION DESIGN SYSTEM
   - Yeezus (Kanye West) Abrasive 3D Glitch Text Effect for "Sortir à Laxou"
   - Apple-grade Micro-Interactions & Responsive Layouts
   ========================================================================== */

:root {
  --user-primary: #667085; /* AA 4.97:1 (ex #6c757d) */
  --user-secondary: #007bff;
  --user-accent: #527d1a; /* AA 4.88:1 sur blanc (ex #76b82f) */
  --user-bg: #ffffff;
  --user-text-primary: #1a1d20; /* Fixed contrast */
  --user-link: #527d1a;

  --user-primary-dark: #495057;
  --user-secondary-dark: #0056b3;
  --user-accent-dark: #5c9322;
  --user-neutral-dark: #1a1d20;
  --user-surface-light: #f8f9fa;
  --user-border-light: #e9ecef;

  --color-bg: var(--user-bg);
  --color-surface: var(--user-surface-light);
  --color-text: var(--user-neutral-dark);
  --color-muted: var(--user-primary);
  --color-border: var(--user-border-light);

  --color-primary: var(--user-primary);
  --color-secondary: var(--user-secondary);
  --color-accent: var(--user-accent);
  --color-link: var(--user-link);

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;

  --font-display: "Outfit", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;

  --text-xs: clamp(0.75rem, 0.7rem + 0.2vw, 0.85rem);
  --text-sm: clamp(0.875rem, 0.82rem + 0.3vw, 0.95rem);
  --text-base: clamp(1rem, 0.95rem + 0.3vw, 1.125rem);
  --text-lg: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem);
  --text-xl: clamp(1.4rem, 1.25rem + 0.8vw, 1.8rem);
  --text-2xl: clamp(1.8rem, 1.5rem + 1.5vw, 2.5rem);
  --text-3xl: clamp(2.2rem, 1.8rem + 2.2vw, 3.5rem);

  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 20px;

  --shadow-apple-sm: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-apple-md: 0 10px 25px rgba(0, 0, 0, 0.09);
  --shadow-apple-lg: 0 20px 40px rgba(0, 0, 0, 0.16);

  --ease-apple: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container-max: 1280px;
}

[data-theme="dark"] {
  --color-bg: #121212;
  --color-surface: #1e1e1e;
  --color-text: #f8f9fa;
  --color-muted: #adb5bd;
  --color-border: #343a40;
}

.high-contrast {
  --color-bg: #000000 !important;
  --color-surface: #111111 !important;
  --color-text: #ffffff !important;
  --color-muted: #e0e0e0 !important;
  --color-border: #ffffff !important;
  --color-primary: #ffff00 !important;
  --color-link: #ffff00 !important;
}

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

html {
  scroll-behavior: smooth;
}

html,
body {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-top: 90px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.2;
}

a {
  color: var(--color-link);
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.25s var(--ease-apple);
}
a:hover,
a:focus-visible {
  color: var(--user-accent-dark);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
  image-rendering: -webkit-optimize-contrast;
}

:focus-visible {
  outline: 3px solid var(--user-secondary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-4);
}

/* ==========================================================================
   1. STICKY HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: var(--shadow-apple-sm);
  transition:
    background-color 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    backdrop-filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}
.header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 90px;
  transition: height 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.logo-brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-brand img {
  height: 52px;
  width: auto;
  transition:
    height 0.35s cubic-bezier(0.16, 1, 0.3, 1),
    transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* SHRINKING STICKY HEADER ON SCROLL */
.site-header.is-scrolled {
  background-color: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
  border-bottom-color: rgba(0, 0, 0, 0.06);
}
.site-header.is-scrolled .header-inner {
  height: 90px;
}
.site-header.is-scrolled .logo-brand img {
  height: 32px;
}
.site-header.is-scrolled .nav-link {
  font-size: 0.88rem;
  padding: 8px 6px;
}
.site-header.is-scrolled .btn-header-cta {
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
}

.main-nav > ul {
  display: flex;
  list-style: none;
  gap: var(--space-6);
  align-items: center;
}
.nav-item {
  position: relative;
}
.nav-link {
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--user-primary-dark);
  padding: var(--space-3) var(--space-2);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: color 0.25s var(--ease-apple);
}
.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background-color: var(--user-accent);
  border-radius: 3px;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.3s var(--ease-apple);
}
.nav-link:hover::after,
.nav-link:focus-visible::after,
.nav-link.active::after,
.nav-item:hover > .nav-link::after {
  transform: scaleX(1);
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: #ffffff;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--user-accent);
  box-shadow: var(--shadow-apple-lg);
  padding: var(--space-4);
  min-width: 240px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition:
    opacity 0.25s var(--ease-apple),
    transform 0.25s var(--ease-apple),
    visibility 0.25s;
  z-index: 1100;
}
.nav-item:hover .dropdown-menu,
.nav-item:focus-within .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-menu ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}
.dropdown-menu a {
  display: block;
  padding: var(--space-2) var(--space-3);
  font-size: var(--text-xs);
  color: var(--user-primary-dark);
  border-radius: var(--radius-sm);
  transition:
    background-color 0.2s ease,
    color 0.2s ease;
  font-weight: 500;
}
.dropdown-menu a:hover,
.dropdown-menu a:focus-visible {
  background-color: #f0fdf4;
  color: var(--user-accent-dark);
}

.mega-menu-3col {
  min-width: 780px;
  left: -200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  padding: var(--space-6);
}
.mega-col-title {
  font-size: var(--text-xs);
  font-weight: 800;
  text-transform: uppercase;
  color: var(--user-accent-dark);
  margin-bottom: var(--space-3);
  padding-bottom: 4px;
  border-bottom: 2px solid var(--user-accent);
}

.btn-header-cta {
  background-color: var(--user-secondary);
  color: #ffffff !important;
  padding: 0.4rem 0.9rem;
  border-radius: 50px;
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 700;
  white-space: nowrap;
}
.btn-header-cta:hover,
.btn-header-cta:focus-visible {
  background-color: var(--user-secondary-dark);
  box-shadow: 0 4px 10px rgba(0, 123, 255, 0.3);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  padding: var(--space-2);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* ==========================================================================
   2. AUBAGNE-STYLE INSTITUTIONAL HERO BANNER & SEARCH OVERLAP
   ========================================================================== */

/* Header CTA & Search buttons */
.header-actions-group {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
}

.btn-header-demarches {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.1rem;
  border: 1.5px solid var(--user-accent);
  color: var(--user-accent-dark);
  background: rgba(118, 184, 47, 0.06);
  border-radius: 9999px;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.25s var(--ease-apple);
  white-space: nowrap;
}

.btn-header-demarches:hover {
  background: var(--user-accent);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(118, 184, 47, 0.25);
}

.btn-header-search-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--user-secondary);
  color: #ffffff;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.25s var(--ease-apple);
  box-shadow: 0 2px 8px rgba(0, 87, 184, 0.2);
}

.btn-header-search-circle:hover {
  background-color: var(--user-secondary-dark);
  transform: scale(1.06);
  box-shadow: 0 4px 12px rgba(0, 87, 184, 0.35);
}

/* Aubagne Full-Width Hero */
.hero-event-banner {
  position: relative;
  width: 100%;
  height: 65vh;
  min-height: 500px;
  max-height: 768px;
  overflow: hidden;
  display: flex;
  align-items: center; /* Center the empty content if any */
  cursor: pointer;
}

/* Background image starts slightly zoomed and zooms out smoothly on hover */
.hero-event-banner::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("assets/hero_mosaic.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.18);
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.hero-event-banner:hover::before {
  transform: scale(1.02);
}

.hero-event-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 27, 59, 0.85) 0%,
    rgba(7, 27, 59, 0.25) 45%,
    rgba(0, 0, 0, 0.1) 100%
  );
  pointer-events: none;
}

.hero-event-content {
  position: relative;
  z-index: 5;
  width: 100%;
  padding-bottom: 3.5rem;
}

.hero-event-caption-card {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  border-left: 5px solid var(--user-accent);
}

.hero-event-caption-tag {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--user-accent-dark);
  margin-bottom: 2px;
}

.hero-event-caption-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 800;
  color: #1e293b;
  margin: 0;
  line-height: 1.2;
}

.hero-event-date-pill {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  background: #ffffff;
  color: #071b3b;
  border-radius: 50px;
  padding: 0.55rem 1.2rem;
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 6;
}

/* Overlapping Search Bar & Quick Pills Section */
.search-overlap-container {
  position: relative;
  z-index: 20;
  margin-top: -32px;
  margin-bottom: var(--space-8);
}

.search-box-main-wrapper {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 100;
}

.search-box-main {
  display: flex;
  align-items: center;
  background: #ffffff;
  border-radius: 9999px;
  padding: 6px 8px 6px 1.5rem;
  box-shadow:
    0 10px 30px rgba(7, 27, 59, 0.15),
    0 2px 8px rgba(0, 0, 0, 0.06);
  border: 1.5px solid rgba(226, 232, 240, 0.9);
  transition: all 0.3s var(--ease-apple);
}

.search-box-main:focus-within {
  border-color: var(--user-secondary);
  box-shadow:
    0 12px 36px rgba(0, 87, 184, 0.2),
    0 0 0 4px rgba(0, 87, 184, 0.12);
  transform: translateY(-2px);
}

.search-box-main input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--user-neutral-dark);
  background: transparent;
  padding: 8px 0;
}

.search-box-main input::placeholder {
  color: #8a94a6;
  font-weight: 400;
}

.search-box-main .search-submit-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--user-secondary);
  color: #ffffff;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition:
    background 0.2s,
    transform 0.15s;
  flex-shrink: 0;
}

.search-box-main .search-submit-btn:hover {
  background: var(--user-secondary-dark);
  transform: scale(1.05);
}

/* Quick Pills Under Search */
.quick-pills-row {
  margin-top: 80px;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.quick-pill-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #0057b8;
  color: #ffffff;
  padding: 0.4rem 1rem;
  border-radius: 9999px;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 2px 6px rgba(0, 87, 184, 0.25);
  cursor: pointer;
  position: relative;
  border: none;
}

.quick-pill-link:hover {
  background: #003d81;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 87, 184, 0.35);
}

/* Active Tab State */
.quick-pill-link.active {
  background: #4e7a18;
  box-shadow: 0 4px 12px rgba(90, 143, 34, 0.35);
}

.quick-pill-link.active:hover {
  background: #46701a;
}

/* Tab Pointer (Affordance) */
.quick-pill-link.active::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #4e7a18;
}

/* Tab Panels Container */
.tab-panel {
  display: none;
  animation: fadeSlideUp 0.3s ease forwards;
}

.tab-panel.active {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@keyframes fadeSlideUp {
  0% {
    opacity: 0;
    transform: translateY(10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Aubagne-Style Accès Rapides (Icon Tiles + Promo Card) */
.acces-rapides-aubagne-grid {
  display: grid;
  grid-template-columns: 2fr 1.15fr;
  gap: var(--space-6);
  margin-bottom: var(--space-12);
  align-items: stretch;
}

.tiles-carousel-container {
  width: 100%;
}

.quick-action-tile {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 1.2rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: var(--user-primary-dark);
  transition: all 0.25s var(--ease-apple);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.quick-action-tile:hover {
  border-color: var(--user-accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(118, 184, 47, 0.15);
  color: var(--user-accent-dark);
}

.quick-action-tile-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f0f7e6;
  color: #4e7a18;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.6rem;
  transition: all 0.25s ease;
}

.quick-action-tile:hover .quick-action-tile-icon {
  background: #4e7a18;
  color: #ffffff;
  transform: scale(1.08);
}

.quick-action-tile-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Promo Feature Card (Style Aubagne L'AJJ) */
.promo-highlight-card {
  background: #0057b8;
  border-radius: 20px;
  padding: 2.2rem;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none;
  box-shadow: 0 10px 28px rgba(0, 87, 184, 0.25);
  transition:
    transform 0.3s var(--ease-apple),
    box-shadow 0.3s var(--ease-apple),
    background-color 0.3s ease;
  position: relative;
  overflow: hidden;
}

.promo-highlight-card:hover {
  transform: translateY(-4px);
  background: #004ba3;
  box-shadow: 0 16px 36px rgba(0, 87, 184, 0.4);
}

.promo-header-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 1.2rem;
}

.promo-origami-icon {
  width: 44px;
  height: 44px;
  color: #ffffff;
  flex-shrink: 0;
  transform: rotate(-10deg);
}

.promo-title-main {
  font-family: var(--font-display);
  font-size: 1.9rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #ffffff;
  margin: 0;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}

/* Sliding underline micro-interaction */
.promo-title-underline {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3.5px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}

.promo-highlight-card:hover .promo-title-underline {
  transform: scaleX(1);
}

.promo-desc-aubagne {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.92);
  line-height: 1.5;
  margin: 0;
}

.promo-arrow-bottom {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  color: #ffffff;
  margin-top: 1.8rem;
  transition: transform 0.3s var(--ease-apple);
}

.promo-highlight-card:hover .promo-arrow-bottom {
  transform: translateX(8px);
}

@media (max-width: 900px) {
  .acces-rapides-aubagne-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-event-banner {
    height: 360px;
  }
  .tiles-carousel-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-event-caption-card {
    padding: 0.65rem 1rem;
  }
  .hero-event-caption-title {
    font-size: 1.05rem;
  }
}

/* ==========================================================================
   3. "SORTIR À LAXOU" — YEEZUS (KANYE WEST) ABRASIVE 3D GLITCH TITLE
   ========================================================================== */
.section-sortir {
  background: linear-gradient(135deg, #0b0f19 0%, #151d2a 60%, #004e92 100%);
  color: #ffffff;
  padding: var(--space-16) 0 var(--space-12) 0;
  overflow: hidden;
}

/* Yeezus Abrasive 3D Title */
.yeezus-title-container {
  perspective: 1000px;
  display: inline-block;
  margin-bottom: var(--space-6);
}

.yeezus-title-container:hover @keyframes yeezusGlitch {
  0% {
    clip-path: inset(10% 0 85% 0);
    transform: perspective(1000px) rotateX(12deg) rotateY(-10px)
      translate(-3px, 2px) scale(1.06);
  }
  20% {
    clip-path: inset(65% 0 10% 0);
    transform: perspective(1000px) rotateX(12deg) rotateY(-10px)
      translate(3px, -2px) scale(1.06);
  }
  40% {
    clip-path: inset(30% 0 50% 0);
    transform: perspective(1000px) rotateX(12deg) rotateY(-10px)
      translate(-2px, -3px) scale(1.06);
  }
  60% {
    clip-path: inset(80% 0 5% 0);
    transform: perspective(1000px) rotateX(12deg) rotateY(-10px)
      translate(4px, 1px) scale(1.06);
  }
  80% {
    clip-path: inset(20% 0 60% 0);
    transform: perspective(1000px) rotateX(12deg) rotateY(-10px)
      translate(-1px, 3px) scale(1.06);
  }
  100% {
    clip-path: inset(45% 0 35% 0);
    transform: perspective(1000px) rotateX(12deg) rotateY(-10px)
      translate(2px, -1px) scale(1.06);
  }
}

.grid-posters-3d {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
  perspective: 1200px;
}

.poster-card-3d {
  position: relative;
  height: 420px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.3);
  text-decoration: none;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-6);
  background-size: cover;
  background-position: center;
  transform-style: preserve-3d;
  transition:
    transform 0.5s var(--ease-apple),
    box-shadow 0.5s var(--ease-apple),
    border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  will-change: transform, box-shadow;
}

.poster-card-3d:hover,
.poster-card-3d:focus-visible {
  transform: perspective(1000px) rotateX(4deg) rotateY(-4deg) translateY(-10px)
    scale(1.025);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
  border-color: var(--user-accent);
}

.poster-overlay-monet {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 20%,
    rgba(0, 0, 0, 0.88) 100%
  );
  z-index: 1;
  transition: opacity 0.4s ease;
}
.poster-card-3d:hover .poster-overlay-monet {
  opacity: 0.95;
}

.poster-date-tag-3d {
  position: absolute;
  top: 20px;
  left: 20px;
  background-color: var(--user-accent);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 800;
  padding: 0.35rem 0.8rem;
  border-radius: 50px;
  z-index: 2;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
  transition:
    transform 0.35s var(--ease-spring),
    background-color 0.3s ease;
}
.poster-card-3d:hover .poster-date-tag-3d {
  transform: translateZ(20px) scale(1.08);
  background-color: #ffffff;
  color: var(--user-secondary-dark);
}

.poster-content-3d {
  position: relative;
  z-index: 2;
  transform: translateZ(15px);
  transition: transform 0.4s var(--ease-apple);
}
.poster-title-3d {
  font-size: var(--text-xl);
  font-weight: 800;
  color: #ffffff;
  margin-bottom: var(--space-1);
  line-height: 1.25;
}

/* 4. ALBI.FR STRUCTURED AGENDA LIST */
.agenda-albi-container {
  margin-top: var(--space-12);
  background-color: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.agenda-albi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4) 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  transition:
    transform 0.25s var(--ease-apple),
    background-color 0.25s ease;
}
.agenda-albi-row:last-child {
  border-bottom: none;
}
.agenda-albi-row:hover {
  transform: translateX(6px);
  background-color: rgba(255, 255, 255, 0.05);
  padding-left: var(--space-2);
}

.agenda-albi-date {
  background-color: #ffffff;
  color: var(--user-secondary-dark);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.3rem;
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-md);
  text-align: center;
  min-width: 90px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

/* 5. NEWS CARDS */
.card-news {
  background-color: var(--color-surface);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition:
    transform 0.35s var(--ease-apple),
    box-shadow 0.35s var(--ease-apple),
    border-color 0.3s ease;
}
.card-news:hover,
.card-news:focus-within {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-apple-md);
  border-color: var(--user-accent);
}

.card-news-img {
  height: 190px;
  width: 100%;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  transition:
    transform 0.5s var(--ease-apple),
    filter 0.3s ease;
}
.card-news:hover .card-news-img {
  transform: scale(1.025);
  filter: brightness(1.03);
}

.card-news-body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  flex: 1;
}

/* ACCÈS RAPIDES & COMPONENTS */
.section-padding {
  padding: 100px 0;
}

.acces-rapides-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--space-4);
  margin-top: var(--space-6);
}
.acces-card {
  background-color: var(--color-surface);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  border-bottom: 4px solid var(--user-accent);
  text-decoration: none;
  color: var(--color-text);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--space-2);
  transition:
    transform 0.3s var(--ease-apple),
    box-shadow 0.3s ease;
}
.acces-card:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: var(--shadow-apple-md);
  border-bottom-color: var(--user-secondary);
}
.acces-icon {
  font-size: 1.8rem;
}

/* VOS SERVICES MUNICIPAUX SECTION (Pixel-Perfect Mockup) */
.services-section {
  padding: var(--space-12) 0;
  background-color: #ffffff;
}
.services-header {
  text-align: center;
  margin-bottom: 2.75rem;
}
.services-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.3rem);
  font-weight: 800;
  color: #0a3d2e;
  margin-bottom: 0.5rem;
  position: relative;
  display: inline-block;
  letter-spacing: -0.01em;
}
.services-title::after {
  content: "";
  display: block;
  width: 44px;
  height: 3.5px;
  background-color: #15803d;
  margin: 10px auto 0 auto;
  border-radius: 2px;
}
.services-subtitle {
  color: #475569;
  font-size: 0.96rem;
  max-width: 650px;
  margin: 0.75rem auto 0 auto;
  line-height: 1.55;
}
.services-main-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.75rem;
}
.service-cat-card {
  background: #edf3f0;
  border-radius: 14px;
  border: 1px solid #e0eae5;
  padding: 1.35rem 1.4rem 1.4rem 1.4rem;
  display: flex;
  flex-direction: column;
}
.service-cat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1.1rem;
}
.service-cat-icon {
  color: #0a3d2e;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.service-cat-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #0a3d2e;
  margin: 0;
  letter-spacing: -0.01em;
}
.service-cat-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.9rem;
  flex: 1;
}
.service-subcard {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 9px;
  padding: 1rem 1.1rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
  min-height: 105px;
}
.service-subcard:hover {
  transform: translateY(-2px);
  border-color: rgba(10, 61, 46, 0.25);
  box-shadow: 0 6px 16px rgba(10, 61, 46, 0.08);
}
.service-subcard-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #0a3d2e;
  margin-bottom: 0.4rem;
  line-height: 1.3;
}
.service-subcard:hover .service-subcard-title {
  color: #15803d;
}
.service-subcard-desc {
  font-size: 0.79rem;
  color: #64748b;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 900px) {
  .services-main-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
@media (max-width: 600px) {
  .service-cat-body {
    grid-template-columns: 1fr;
  }
}

.feature-split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: center;
}
.oval-image-container {
  width: 100%;
  height: 340px;
  border-radius: 40% 60% 70% 30% / 40% 50% 60% 50%;
  overflow: hidden;
  border: 4px solid var(--user-accent);
  box-shadow: var(--shadow-apple-lg);
  transition: transform 0.4s var(--ease-apple);
}
.oval-image-container:hover {
  transform: scale(1.02);
}
.oval-image-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-6);
  margin-top: var(--space-6);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--user-secondary),
    var(--user-primary-dark)
  );
  opacity: 0.9;
  z-index: 1;
}

.mag-cover-shadow:hover {
  transform: scale(1.04);
}

.newsletter-banner h2 {
  color: #ffffff;
}

.btn-dark {
  background-color: #111827;
  color: #ffffff !important;
  padding: var(--space-3) var(--space-6);
  border-radius: var(--radius-md);
  text-decoration: none;
  font-weight: 700;
  display: inline-block;
  transition:
    background-color 0.25s var(--ease-apple),
    transform 0.15s ease;
}
.btn-dark:hover {
  background-color: var(--user-secondary);
  transform: scale(1.02);
}

/* FOOTER */
.main-footer {
  background-color: #0b0c10;
  color: #ffffff;
  padding: var(--space-12) 0 var(--space-6) 0;
}
.main-footer a {
  color: #d1d5db;
  text-decoration: none;
}
.main-footer a:hover {
  color: var(--user-accent);
}
.main-footer-top {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}
.main-footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: var(--space-6);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--text-xs);
  color: #9ca3af;
}

/* REVEAL ANIMATIONS */
.reveal {
  /* RGAA : état initial visible ; l'anim n'applique que si .js-reveal prêt */
}
html.js-reveal .reveal:not(.is-visible) {
  opacity: 0;
  transform: translateY(24px);
  transition:
    opacity 0.6s var(--ease-apple),
    transform 0.6s var(--ease-apple);
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s var(--ease-apple),
    transform 0.5s var(--ease-apple);
  transition-delay: calc(var(--stagger-index, 0) * 0.08s);
}
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* PREFERS REDUCED MOTION */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
  }
  .poster-card-3d:hover {
    transform: none !important;
  }
}

@media (max-width: 1024px) {
  .hero-landscape-banner {
    height: 420px;
  }
  .neon-title-main {
    font-size: 3.8rem;
  }
  .neon-title-script {
    font-size: 2.6rem;
  }

  .main-nav {
    display: flex;
    flex: 1;
    justify-content: center;
  }
  .main-nav.is-open {
    display: block;
  }
  .main-nav > ul {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }
  .dropdown-menu,
  .mega-menu-3col {
    position: static;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    border: none;
    padding: var(--space-2) var(--space-4);
    min-width: 100%;
    grid-template-columns: 1fr;
  }
  .nav-toggle {
    display: block;
  }
  .acces-rapides-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .grid-posters-3d {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
  }

  .grid-3 {
    grid-template-columns: repeat(2, 1fr);
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .feature-split {
    grid-template-columns: 1fr;
  }
  .main-footer-top {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-landscape-banner {
    height: 360px;
  }
  .neon-title-main {
    font-size: 2.5rem;
    -webkit-text-stroke: 1.5px #ffffff;
  }
  .neon-title-script {
    font-size: 1.8rem;
  }

  .hero-events-pills {
    flex-direction: column;
    gap: var(--space-2);
  }
  .acces-rapides-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .grid-posters-3d {
    grid-template-columns: 1fr;
  }
  .grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-6);
    margin-top: var(--space-6);
  }

  .grid-3 {
    grid-template-columns: 1fr;
  }

  .grid-4 {
    grid-template-columns: 1fr;
  }
}

.card-subpage-item:hover article {
  transform: translateY(-4px);
  box-shadow: var(--shadow-apple-md);
}

/* ==========================================================================
   EQUIPEMENTS & CULTURE SECTION (MODERN SPLIT & CAROUSEL)
   ========================================================================== */
.equipements-container {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-12);
  align-items: center;
}

@media (max-width: 960px) {
  .equipements-container {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
}

.equipements-badges-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: var(--space-8);
}

.equip-pill-badge {
  color: var(--user-neutral-dark);
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--color-surface, #f8fafc);
  border: 1.5px solid #e2e8f0;
  border-radius: 9999px;
  padding: 0.55rem 1.15rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--user-primary-dark, #071b3b);
  transition: all 0.25s var(--ease-apple);
}

.equip-pill-badge i {
  color: #009933;
}

.equip-pill-badge:hover {
  color: #009933;
  text-decoration: none;
  border-color: #009933;
  background: rgba(0, 153, 51, 0.05);
  transform: translateY(-2px);
}

.btn-equipements-map {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #071b3b;
  color: #ffffff;
  padding: 0.95rem 1.8rem;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease-apple);
  box-shadow: 0 4px 14px rgba(7, 27, 59, 0.25);
}

.btn-equipements-map:hover {
  color: #ffffff;
  background: #009933;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 153, 51, 0.35);
}

/* Equipment Carousel Component */
.equip-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 540px;
  height: 420px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(7, 27, 59, 0.18);
  background: #071b3b;
  justify-self: center;
}

.equip-carousel-slide {
  cursor: pointer;
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.8s ease,
    transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  transform: scale(1.08);
  pointer-events: none;
}

.equip-carousel-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.equip-carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.equip-carousel-slide:nth-child(3) img {
  object-position: center 35%;
}

.equip-carousel-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 27, 59, 0.88) 0%,
    rgba(7, 27, 59, 0.25) 45%,
    rgba(0, 0, 0, 0.05) 100%
  );
  pointer-events: none;
}

.equip-carousel-caption {
  position: absolute;
  bottom: 1.5rem;
  left: 1.5rem;
  right: 1.5rem;
  color: #ffffff;
  z-index: 5;
}

.equip-carousel-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.4rem;
}

.equip-carousel-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 800;
  margin: 0;
  line-height: 1.2;
}

.equip-carousel-controls {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 6px;
  z-index: 10;
}

.equip-carousel-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(6px);
  border: none;
  color: #071b3b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.equip-carousel-btn:hover {
  background: #ffffff;
  transform: scale(1.1);
}

.equip-carousel-indicators {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  display: flex;
  gap: 8px;
  z-index: 10;
}

.equip-dot {
  width: 32px;
  height: 4px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.35);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.equip-dot.active {
  background: rgba(255, 255, 255, 0.4);
}

.equip-dot.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 100%;
  background: #ffffff;
  animation: dotProgress 3.2s linear forwards;
}

@keyframes dotProgress {
  0% {
    transform: scaleX(0);
    transform-origin: left;
  }
  100% {
    transform: scaleX(1);
    transform-origin: left;
  }
}

/* 6. BENTO GRID NEWS SECTION (Apple-Grade) */
.news-bento-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 250px 250px;
  gap: var(--space-6);
}

.news-bento-card {
  position: relative;
  border-radius: 28px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.8rem;
  background-color: var(--color-surface);
  border: 6px solid #ffffff;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s ease;
}
.news-bento-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.12);
  border-color: #f8fafc;
}

.news-bento-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 20px 40px rgba(7, 27, 59, 0.18);
}

.bento-bg {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
}

.news-bento-card:hover .bento-bg {
  transform: scale(1.08);
}

.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(7, 27, 59, 0.9) 0%,
    rgba(7, 27, 59, 0.25) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  z-index: 2;
  transition: opacity 0.4s ease;
}

.news-bento-card:hover .bento-overlay {
  opacity: 0.95;
}

.bento-overlay-wide {
  background: linear-gradient(
    to right,
    rgba(7, 27, 59, 0.95) 0%,
    rgba(7, 27, 59, 0.5) 55%,
    rgba(0, 0, 0, 0) 100%
  );
}

.bento-content {
  position: relative;
  z-index: 3;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.bento-tag {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.8rem;
}

.bento-title {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.25;
  margin: 0 0 0.5rem 0;
  color: #ffffff;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.bento-date {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

/* Bento Variations */
.bento-featured {
  grid-column: span 2;
  grid-row: span 2;
}
.bento-featured .bento-title {
  font-size: 1.8rem;
}

.bento-standard {
  grid-column: span 1;
  grid-row: span 1;
  padding: 1.4rem;
}
.bento-standard .bento-title {
  font-size: 1.15rem;
}
.bento-standard .bento-overlay {
  background: linear-gradient(
    to top,
    rgba(7, 27, 59, 0.9) 0%,
    rgba(7, 27, 59, 0.4) 65%,
    rgba(0, 0, 0, 0) 100%
  );
}

.bento-wide {
  grid-column: span 2;
  grid-row: span 1;
  justify-content: center;
}
.bento-wide .bento-title {
  font-size: 1.4rem;
  max-width: 85%;
}

/* Responsive */
@media (max-width: 992px) {
  .news-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;
  }
  .bento-featured,
  .bento-wide {
    grid-column: span 2;
    grid-row: span 1;
    min-height: 320px;
  }
  .bento-standard {
    min-height: 260px;
  }
}
@media (max-width: 576px) {
  .news-bento-grid {
    grid-template-columns: 1fr;
  }
  .bento-featured,
  .bento-wide,
  .bento-standard {
    grid-column: span 1;
    grid-row: span 1;
    min-height: 280px;
  }
  .bento-overlay-wide {
    background: linear-gradient(
      to top,
      rgba(7, 27, 59, 0.9) 0%,
      rgba(7, 27, 59, 0.4) 60%,
      rgba(0, 0, 0, 0) 100%
    );
  }
}

/* Section Headers */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
  gap: var(--space-4);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--user-primary-dark);
  border: 1.5px solid var(--color-border);
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease-apple);
}

.btn-secondary:hover {
  background: var(--user-accent);
  color: #ffffff !important;
  border-color: var(--user-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 153, 51, 0.2);
}

/* ==========================================================================
   EXPERT MOBILE MENU OVERRIDE (APPLE-GRADE APP DRAWER)
   ========================================================================== */
@media (max-width: 992px) {
  /* Overlay */
  .mobile-menu-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: rgba(7, 27, 59, 0.4) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 999 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) !important;
  }
  .mobile-menu-overlay.is-active {
    opacity: 1 !important;
    visibility: visible !important;
  }

  /* Drawer Container */
  .main-nav {
    display: block !important;
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    left: auto !important;
    transform: translateX(100%) !important;
    width: 85vw !important;
    max-width: 400px !important;
    height: 100dvh !important;
    background-color: #ffffff !important;
    z-index: 1000 !important;
    padding: 90px 24px 40px !important;
    box-shadow: -15px 0 40px rgba(0, 0, 0, 0.15) !important;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
    overflow-y: auto !important;
    border-bottom: none !important;
  }
  .main-nav.is-open {
    transform: translateX(0) !important;
  }

  /* Top-level list */
  .main-nav > ul {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
  }
  .nav-item {
    width: 100% !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06) !important;
  }
  .nav-link {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 1.25rem 0 !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    color: var(--user-primary-dark) !important;
  }
  .nav-link::after {
    display: none !important;
  }

  .nav-link.submenu-open {
    color: var(--user-accent) !important;
  }

  /* Submenus (Accordion style) */
  .dropdown-menu,
  .mega-menu-3col {
    display: none !important;
    position: static !important;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none !important;
    border: none !important;
    padding: 0 0 1rem 1rem !important;
    min-width: 100% !important;
    background: transparent !important;
    border-top: none !important;
  }
  .dropdown-menu.is-open,
  .mega-menu-3col.is-open {
    display: block !important;
    animation: slideDownFade 0.3s ease-out forwards;
  }

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

  /* Clean list styles inside accordion */
  .dropdown-menu ul,
  .mega-menu-3col ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .dropdown-menu li,
  .mega-menu-3col li {
    margin-bottom: 0.85rem !important;
  }
  .dropdown-menu a,
  .mega-menu-3col a {
    font-size: 1rem !important;
    font-weight: 500 !important;
    color: #555 !important;
    text-decoration: none !important;
    display: inline-block !important;
    transition: color 0.2s ease !important;
  }
  .dropdown-menu a:hover,
  .mega-menu-3col a:hover {
    color: var(--user-accent) !important;
  }

  .mega-menu-3col > div {
    margin-bottom: 1.5rem !important;
  }
  .mega-col-title {
    font-size: 0.95rem !important;
    font-weight: 800 !important;
    color: var(--user-primary-dark) !important;
    margin-bottom: 0.8rem !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
  }

  /* Hamburger toggle above overlay */
  .nav-toggle {
    display: block !important;
    position: relative;
    z-index: 1001 !important;
    background: transparent;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--user-primary-dark);
  }
}

/* Animated Underline for Project Cards (Laxou Actu style) */

.project-title-animated::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  height: 3.5px;
  background-color: #ffffff;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 2px;
}
.project-card:hover .project-title-animated::after {
  transform: scaleX(1);
}

/* Hero Badge */
.hero-event-link-wrapper {
  position: relative;
  z-index: 10;
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
.hero-event-badge {
  position: absolute;
  bottom: 120px;
  right: 5%;
  background: rgba(255, 255, 255, 0.95);
  color: var(--user-primary-dark);
  padding: 0.75rem 1.5rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  transition:
    transform 0.3s var(--ease-apple),
    background 0.3s;
  display: flex;
  align-items: center;
  gap: 10px;
}
.hero-event-link-wrapper:hover .hero-event-badge {
  transform: translateY(-5px);
  background: #ffffff;
}
@media (max-width: 768px) {
  .hero-event-badge {
    bottom: 80px;
    font-size: 0.9rem;
    right: 50%;
    transform: translateX(50%);
    width: max-content;
  }
  .hero-event-link-wrapper:hover .hero-event-badge {
    transform: translate(50%, -5px);
  }
}

/* Autocomplete Dropdown */
.search-box-main-wrapper {
  position: relative;
} /* ensure parent is relative */
.search-autocomplete-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-apple-lg);
  border: 1px solid var(--color-border);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.2s ease;
  z-index: 100;
  overflow: hidden;
}
.search-autocomplete-dropdown.active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.autocomplete-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  color: var(--color-text);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s;
  border-bottom: 1px solid var(--color-bg);
}
.autocomplete-item:last-child {
  border-bottom: none;
}
.autocomplete-item:hover,
.autocomplete-item.highlighted {
  background: var(--color-bg);
  color: var(--user-accent-dark);
}
.autocomplete-item i {
  color: var(--user-accent);
  width: 20px;
  text-align: center;
}

/* ALBI FOOTER */

.albi-footer-top a {
  color: #9ca3af;
  text-decoration: none;
  transition: color 0.2s;
}
.albi-footer-top a:hover {
  color: #ffffff;
}

.albi-footer-bottom a {
  color: #9ca3af;
  text-decoration: none;
}
.albi-footer-bottom a:hover {
  color: #ffffff;
}
.btn-a11y {
  background-color: transparent;
  border: 1px solid var(--user-accent);
  color: var(--user-accent) !important;
  border-radius: 5px;
  font-weight: 600;
  transition: all 0.2s;
  display: block;
}
.btn-a11y:hover {
  background-color: var(--user-accent);
  color: #ffffff !important;
}

/* =========================================
   SOCIAL HUB 2027 (FACEBOOK FEED)
   ========================================= */
.social-2027-section {
  padding: 120px 0;
  background-color: #f8fafc;
  background-image:
    radial-gradient(at 0% 0%, rgba(118, 184, 47, 0.05) 0px, transparent 50%),
    radial-gradient(at 100% 100%, rgba(0, 123, 255, 0.05) 0px, transparent 50%);
  overflow: hidden;
  position: relative;
}
.social-header-2027 {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 4rem;
  padding: 0 5vw;
}
.social-title-2027 {
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.05;
  color: var(--user-primary-dark);
}
.social-title-2027 span {
  background: linear-gradient(90deg, var(--user-accent-dark), #34d399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.social-track-2027 {
  display: flex;
  gap: 2rem;
  overflow-x: auto;
  padding-bottom: 3rem;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-left: 5vw;
  padding-right: 5vw;
}
.social-track-2027::-webkit-scrollbar {
  display: none;
}
.social-card-2027 {
  flex: 0 0 400px;
  scroll-snap-align: center;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 28px;
  padding: 1.5rem;
  box-shadow:
    0 20px 40px rgba(0, 0, 0, 0.03),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  transition:
    transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 0.4s;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-decoration: none;
}
.social-card-2027:hover {
  transform: translateY(-10px) scale(1.02);
  box-shadow:
    0 30px 60px rgba(0, 102, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}
.social-author-2027 {
  display: flex;
  align-items: center;
  gap: 12px;
}
.social-avatar-2027 {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  padding: 4px;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}
.social-avatar-2027 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.social-meta-2027 h4 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--user-neutral-dark);
  display: flex;
  align-items: center;
  gap: 6px;
}
.social-meta-2027 span {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 500;
}
.social-media-2027 {
  border-radius: 18px;
  overflow: hidden;
  aspect-ratio: 4/3;
  position: relative;
  background: #e9ecef;
}
.social-media-2027 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.social-card-2027:hover .social-media-2027 img {
  transform: scale(1.05);
}
.social-text-2027 {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--user-neutral-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}
.social-footer-2027 {
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}
.social-reaction-group {
  display: flex;
  align-items: center;
}
.reaction-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  margin-left: -8px;
  font-size: 0.75rem;
}
.reaction-icon:first-child {
  margin-left: 0;
}
.reaction-icon.like {
  color: #0866ff;
  background: #e7f0ff;
}
.reaction-icon.heart {
  color: #f02849;
  background: #ffe9ec;
}
.social-stats {
  font-size: 0.85rem;
  color: var(--color-muted);
  font-weight: 600;
  margin-left: 8px;
}
.btn-fb-2027 {
  background: #0866ff;
  color: #fff;
  border-radius: 50px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 20px rgba(8, 102, 255, 0.3);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.btn-fb-2027:hover {
  transform: scale(1.05);
  box-shadow: 0 15px 25px rgba(8, 102, 255, 0.4);
  color: #fff;
}
@media (max-width: 768px) {
  .social-card-2027 {
    flex: 0 0 85vw;
  }
  .social-header-2027 {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }
}

/* =========================================
   FOOTER AUBAGNE-STYLE (LAXOU)
   ========================================= */
.site-footer-aubagne {
  width: 100%;
  font-family: var(--font-body);
}
.footer-band {
  background-color: var(--user-accent); /* Institutional Blue */
  color: #ffffff;
  padding: 1.2rem 0;
}
.footer-band-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}
.social-label {
  font-weight: 700;
  font-size: 1.1rem;
  margin-right: 0.8rem;
}
.social-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background-color: #ffffff;
  color: var(--user-accent);
  border-radius: 50%;
  text-decoration: none;
  font-size: 1.1rem;
  transition:
    transform 0.2s,
    background-color 0.2s,
    color 0.2s;
}
.social-circle:hover {
  transform: scale(1.1);
  background-color: var(--user-accent);
  color: #ffffff;
}
.footer-sites .sites-link {
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: opacity 0.2s;
}
.footer-sites .sites-link:hover {
  opacity: 0.8;
}
.footer-newsletter {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.newsletter-label {
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-white {
  border: 1.5px solid #ffffff;
  color: #ffffff;
  padding: 8px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  transition:
    background 0.2s,
    color 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}
.btn-outline-white:hover {
  background: #ffffff;
  color: var(--user-accent);
}

/* THE WHITE MAIN AREA */
.footer-main {
  background-color: #f8fafc;
  background-image: radial-gradient(#e2e8f0 1px, transparent 1px);
  background-size: 20px 20px;
  padding: 4rem 0 2rem 0;
  color: var(--user-neutral-dark);
}
.footer-main-inner {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 4rem;
}
@media (max-width: 992px) {
  .footer-main-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 3rem;
  }
  .footer-band-inner {
    flex-direction: column;
  }
}
.footer-logo-img {
  max-width: 220px;
}
@media (max-width: 992px) {
  .footer-logo-img {
    margin: 0 auto;
  }
}
.footer-contact-col {
  font-size: 0.95rem;
  line-height: 1.6;
}
.contact-title {
  font-size: 1.1rem;
  color: #000000;
  margin-bottom: 0.5rem;
}
.footer-contact-col p {
  margin-bottom: 0.3rem;
  display: flex;
  align-items: center;
  gap: 8px;
}
@media (max-width: 992px) {
  .footer-contact-col p {
    justify-content: center;
  }
}
.footer-contact-col i {
  color: #64748b;
  width: 16px;
  text-align: center;
}
.footer-action-col {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.btn-outline-dark {
  border: 1.5px solid #64748b;
  color: var(--user-neutral-dark);
  padding: 10px 24px;
  border-radius: 50px;
  font-weight: 700;
  text-decoration: none;
  font-size: 0.85rem;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s;
  background: #ffffff;
}
.btn-outline-dark:hover {
  background: var(--user-accent);
  border-color: var(--user-accent);
  color: #ffffff;
}
.btn-outline-dark i {
  color: var(--user-accent);
}
.btn-outline-dark:hover i {
  color: #ffffff;
}

/* LEGALS */
.footer-legals {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #cbd5e1;
  padding-top: 1.5rem;
  font-size: 0.85rem;
  color: var(--color-muted);
  flex-wrap: wrap;
  gap: 1rem;
}
.legals-left strong {
  color: var(--user-neutral-dark);
}
.legals-right {
  display: flex;
  gap: 1.5rem;
}
.legals-right a {
  color: var(--color-muted);
  text-decoration: none;
  font-weight: 500;
}
.legals-right a:hover {
  color: var(--user-accent);
  text-decoration: underline;
}

/* =========================================
   FOOTER SITES PANEL (DROPUP)
   ========================================= */
.footer-sites-panel {
  background-color: #f2f9ec; /* Light green tint */
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  border-bottom: 1px solid rgba(0,0,0,0.05);
}
.footer-sites-panel.open {
  max-height: 300px;
}
.sites-panel-inner {
  display: flex;
  justify-content: center;
  gap: 5rem;
  padding: 2.5rem 0;
  flex-wrap: wrap;
}
.site-partner-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: var(--user-primary-dark);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.2s ease, color 0.2s ease;
}
.site-partner-link:hover {
  transform: translateY(-4px);
  color: var(--user-accent);
}
.site-partner-link i {
  font-size: 1.8rem;
  margin-bottom: 0.8rem;
  color: var(--user-accent);
}
#sitesChevron {
  transition: transform 0.3s ease;
}
#sitesChevron.open {
  transform: rotate(180deg);
}

/* =========================================
   PAGE DE PÔLE (Ex: Laxou Nature)
   ========================================= */
.pole-header {
  padding: 40px 0 30px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}
.pole-breadcrumb {
  font-size: 0.85rem;
  color: #64748b;
  margin-bottom: 15px;
  font-weight: 500;
}
.pole-breadcrumb a {
  color: var(--user-accent);
  text-decoration: none;
}
.pole-breadcrumb a:hover {
  text-decoration: underline;
}
.pole-title {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  color: var(--user-primary-dark);
  margin-bottom: 15px;
  font-weight: 800;
}
.pole-description {
  font-size: 1.1rem;
  color: #475569;
  line-height: 1.6;
}
.pole-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 30px;
  margin-bottom: 80px;
}
.pole-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.04);
  border: 1px solid #f1f5f9;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--user-neutral-dark);
}
.pole-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
}
.pole-card-img {
  height: 180px;
  background-size: cover;
  background-position: center;
  position: relative;
}
.pole-card-content {
  padding: 25px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.pole-card-badge {
  align-self: flex-start;
  background: #e6f4ea;
  color: #3f6512; /* AA 6:1 sur e6f4ea */
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
  border: 1px solid rgba(118, 184, 47, 0.2);
}
.pole-card-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--user-primary-dark);
  margin-bottom: 10px;
}
.pole-card-text {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 15px;
  flex-grow: 1;
}
.pole-card-arrow {
  align-self: flex-end;
  color: var(--user-accent);
  font-size: 1.2rem;
  transition: transform 0.2s;
}
.pole-card:hover .pole-card-arrow {
  transform: translateX(5px);
}

/* =========================================
   PAGE MÈRE SPA (Ex: Bien-être animal)
   ========================================= */
.spa-slider-wrapper {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 5px 25px rgba(0,0,0,0.05);
  overflow: hidden;
  margin-bottom: 80px;
}
.spa-sticky-tabs {
  position: sticky;
  top: 0; 
  background: #f8fafc;
  z-index: 100;
  display: flex;
  gap: 10px;
  padding: 0 20px;
  border-bottom: 2px solid #e2e8f0;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.spa-sticky-tabs::-webkit-scrollbar {
  display: none;
}
.spa-tab-link {
  padding: 20px 15px;
  color: #64748b;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
}
.spa-tab-link:hover {
  color: var(--user-primary-dark);
}
.spa-tab-link.active {
  color: var(--user-accent);
  border-bottom-color: var(--user-accent);
}
.spa-slides-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.spa-slides-container::-webkit-scrollbar {
  display: none;
}
.spa-slide-panel {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  padding: 50px;
  box-sizing: border-box;
}
.spa-slide-title {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--user-primary-dark);
  margin-bottom: 20px;
}
.spa-controls {
  display: flex;
  justify-content: space-between;
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}
.spa-btn {
  padding: 10px 20px;
  background: #f1f5f9;
  color: var(--user-neutral-dark);
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  border: none;
}
.spa-btn:hover {
  background: #e2e8f0;
}
.spa-btn.disabled {
  opacity: 0;
  pointer-events: none;
}

/* =========================================
   COMPOSANTS CONTENU (Comptes Rendus, PDFs)
   ========================================= */
.cr-accordion {
  margin-bottom: 1rem;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.02);
  overflow: hidden;
}
.cr-accordion summary {
  padding: 1.2rem 1.5rem;
  cursor: pointer;
  background: #f8fafc;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--user-primary-dark);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.2s;
}
.cr-accordion summary:hover {
  background: #f1f5f9;
}
.cr-accordion summary::-webkit-details-marker {
  display: none;
}
.cr-accordion-content {
  padding: 1.5rem;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}
.cr-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}
.cr-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 0.8rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: box-shadow 0.2s, border-color 0.2s, transform 0.2s;
  text-decoration: none;
}
.cr-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
  border-color: var(--user-accent);
  transform: translateY(-2px);
}
.cr-card-title {
  font-weight: 600;
  color: var(--user-neutral-dark);
  font-size: 0.95rem;
}
.cr-card-btn {
  background: #e6f4ea;
  color: #3f6512; /* AA */
  padding: 5px 12px;
  border-radius: 6px;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
}
.content-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 30px;
}
@media (max-width: 768px) {
  .content-grid-2 {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* =========================================
   STYLE 2026/2027 POUR BIEN-ÊTRE ANIMAL
   ========================================= */
.book-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 25px;
  margin-top: 25px;
}
.book-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(0,0,0,0.08);
  border-color: rgba(118, 184, 47, 0.4);
}
.book-cover-wrapper {
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  background: #f8fafc;
  border-radius: 10px;
  padding: 12px;
}
.book-cover-img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.12);
}
.book-badge {
  background: #e6f4ea;
  color: #3f6512; /* AA sur e6f4ea */
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 10px;
  border-radius: 6px;
  align-self: flex-start;
  margin-bottom: 10px;
}
.book-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--user-primary-dark);
  margin-bottom: 8px;
}
.book-desc {
  font-size: 0.95rem;
  color: #64748b;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 18px;
}
.book-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f1f5f9;
  font-size: 0.9rem;
  font-weight: 600;
  color: #1e293b;
}

/* Timeline & Editions */
.edition-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 25px;
  border-left: 4px solid var(--user-accent);
  box-shadow: 0 4px 15px rgba(0,0,0,0.03);
  margin-bottom: 20px;
}
.edition-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.edition-badge {
  background: var(--user-accent);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 4px 12px;
  border-radius: 20px;
}

/* Feature Callout */
.feature-box {
  background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%);
  border: 1px solid #bbf7d0;
  border-radius: 14px;
  padding: 25px;
  margin-bottom: 30px;
}

/* =========================================
   MOTEUR 3D CAROUSEL (Inspiration Éditoriale)
   ========================================= */
.carousel-3d-wrap {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  padding: 20px 0;
}

.spa-slides-container {
  display: flex;
  overflow-x: scroll;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  perspective: 1600px; /* Profondeur 3D */
  height: 75vh;
  min-height: 600px;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}
.spa-slides-container::-webkit-scrollbar {
  display: none;
}

.spa-slide-panel {
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: 100%;
  overflow-y: auto;
  padding: 40px 60px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  will-change: transform, opacity;
  transform-origin: center center;
  transition: box-shadow 0.3s;
  /* Espacement pour ne pas coller aux bords pendant la 3D */
  max-width: 900px;
  margin: 0 auto;
}

.arrow-3d {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: none;
  background: #ffffff;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  color: var(--user-primary-dark);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, background 0.2s;
}
.arrow-3d:hover {
  background: var(--user-accent);
  color: #fff;
  transform: translateY(-50%) scale(1.1);
}
.arrow-3d.left { left: 10px; }
.arrow-3d.right { right: 10px; }

/* Timeline SVG (La Courbe) */
.hbar-container {
  max-width: 700px;
  margin: 20px auto 60px auto;
  position: relative;
}
.hbar {
  position: relative;
  height: 50px;
}
.hbar svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
#hpath {
  fill: none;
  stroke: #cbd5e1;
  stroke-width: 3;
  stroke-linecap: round;
}
.wp {
  cursor: pointer;
  fill: #fff;
  stroke: #cbd5e1;
  stroke-width: 3;
  transition: stroke 0.3s, transform 0.3s;
}
.wp:hover {
  stroke: var(--user-accent);
  transform: scale(1.2);
}
#hmarker {
  fill: var(--user-accent);
  transition: cx 0.1s, cy 0.1s;
}

.hbar-labels {
  display: flex;
  justify-content: space-between;
  margin-top: -5px;
  padding: 0 15px;
}
.hbar-label {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: color 0.3s, transform 0.3s;
  text-align: center;
  flex: 1;
}
.hbar-label.active {
  color: var(--user-accent);
  transform: translateY(-3px);
}

@media (max-width: 768px) {
  .spa-slide-panel { padding: 30px 20px; }
  .arrow-3d { display: none; } /* On cache les flèches sur mobile car on peut swiper */
  .hbar-labels { display: none; }
}

/* =========================================
   HEADER STYLE ÉDITORIAL / MAGAZINE
   ========================================= */
.editorial-header {
  text-align: center;
  padding: 50px 20px 30px;
  position: relative;
}
.editorial-breadcrumb {
  justify-content: center;
  margin-bottom: 35px;
}
.editorial-eyebrow {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--user-accent);
  background: #f0f7e6;
  padding: 8px 18px;
  border-radius: 30px;
  margin-bottom: 25px;
  box-shadow: 0 4px 10px rgba(118, 184, 47, 0.1);
}
.editorial-main-title {
  font-family: var(--font-heading);
  font-size: clamp(3rem, 6vw, 4.5rem);
  font-weight: 800;
  color: var(--user-primary-dark);
  margin: 0 0 25px 0;
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.editorial-subtitle {
  max-width: 650px;
  margin: 0 auto;
  font-size: 1.15rem;
  color: #64748b;
  line-height: 1.7;
}

/* =========================================
   CLEAN FULLBLEED CAROUSEL (NO PRISON, NO ICONS)
   ========================================= */
.minimal-sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 15px 20px;
  border-bottom: 1px solid #e2e8f0;
}
.nav-link {
  color: #64748b;
  text-decoration: none;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 5px 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--user-primary-dark);
}
.nav-link.active {
  color: var(--user-primary-dark);
  border-bottom-color: var(--user-accent);
}

.fullbleed-carousel-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  position: relative;
  background: #fdfdfd;
}

.fullbleed-slides-container {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -ms-overflow-style: none; 
  scrollbar-width: none; 
}
.fullbleed-slides-container::-webkit-scrollbar {
  display: none;
}

.fullbleed-slide-panel {
  flex: 0 0 100vw;
  scroll-snap-align: start;
  padding: 60px 0 100px;
  will-change: transform, opacity;
  transform-origin: center center;
}

.slide-inner-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 25px;
}

.slide-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 20px;
}
.slide-main-title {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  color: var(--user-primary-dark);
  margin: 0;
}
.slide-badge {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  white-space: nowrap;
}
.slide-lead-text {
  font-size: 1.15rem;
  line-height: 1.8;
  color: #334155;
  margin-bottom: 30px;
}
.section-subtitle {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--user-primary-dark);
  margin-bottom: 20px;
}

/* CLEAN UI ELEMENTS */
.clean-callout {
  background: #f8fafc;
  padding: 30px;
  border-radius: 12px;
  border-left: 4px solid var(--user-accent);
}
.clean-callout h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--user-primary-dark);
  margin-bottom: 10px;
}
.clean-callout p {
  color: #64748b;
  margin-bottom: 20px;
  line-height: 1.6;
}
.btn-clean {
  display: inline-block;
  background: var(--user-accent);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 8px;
  transition: background 0.2s;
}
.btn-clean:hover {
  background: #4e7a18;
}

/* ACCORDIONS CLEAN */
.cr-accordion-clean {
  margin-bottom: 15px;
  border-bottom: 1px solid #e2e8f0;
}
.cr-accordion-clean summary {
  padding: 20px 0;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--user-primary-dark);
  cursor: pointer;
  list-style: none;
}
.cr-accordion-clean summary::-webkit-details-marker { display: none; }
.cr-accordion-content {
  padding: 0 0 20px 0;
}

/* CARDS CLEAN */
.cr-card-clean {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  text-decoration: none;
  transition: border-color 0.2s;
}
.cr-card-clean:hover {
  border-color: var(--user-accent);
}
.cr-title {
  font-weight: 600;
  color: #334155;
}
.cr-badge {
  background: #f1f5f9;
  color: #64748b;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 4px;
}

/* CLEAN ARROWS (HIDDEN ON MOBILE) */
.arrow-clean {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid #e2e8f0;
  background: rgba(255,255,255,0.9);
  backdrop-filter: blur(5px);
  color: var(--user-primary-dark);
  font-size: 28px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s;
  line-height: 0;
  padding-bottom: 4px;
}
.arrow-clean:hover {
  background: var(--user-primary-dark);
  color: #fff;
}
.arrow-clean.left { left: 2vw; }
.arrow-clean.right { right: 2vw; }

@media (max-width: 900px) {
  .slide-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .arrow-clean { display: none; } 
}

/* =========================================
   EN-TÊTE SOBRE & ALIGNÉ À GAUCHE (STANDARD WEB)
   ========================================= */
.page-top-header {
  padding: 30px 0 20px;
  background: #ffffff;
  border-bottom: 1px solid #e2e8f0;
}

.page-top-header .pole-breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 0.88rem;
  color: #64748b;
  margin-bottom: 18px;
  text-align: left;
  justify-content: flex-start;
}

.page-top-header .pole-breadcrumb a {
  color: #475569;
  text-decoration: none;
  transition: color 0.2s;
}

.page-top-header .pole-breadcrumb a:hover {
  color: var(--user-primary-dark);
  text-decoration: underline;
}

.page-top-header .pole-breadcrumb span {
  color: var(--user-primary-dark);
  font-weight: 600;
}

.page-intro-block {
  max-width: 900px;
  text-align: left;
}

.page-main-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--user-primary-dark);
  margin: 0 0 12px 0;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.page-main-desc {
  font-size: 1.1rem;
  line-height: 1.6;
  color: #475569;
  margin: 0;
}

/* =========================================
   REFONTE ÉDITORIALE SUR-MESURE (LIBRE DE TOUT CMS)
   ========================================= */

/* Intros de sections */
.editorial-section-intro {
  margin-bottom: 40px;
  max-width: 850px;
}
.editorial-tag {
  display: inline-block;
  font-family: var(--font-heading);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--user-accent);
  margin-bottom: 12px;
}
.editorial-title {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800;
  color: var(--user-primary-dark);
  margin: 0 0 15px 0;
  line-height: 1.2;
}
.editorial-lead {
  font-size: 1.15rem;
  line-height: 1.7;
  color: #475569;
  margin: 0;
}
.block-title {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--user-primary-dark);
  margin: 0 0 20px 0;
}

/* Grille de stats (Section Comité) */
.stats-banner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 35px 0;
}
.stat-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--user-accent);
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: #64748b;
  line-height: 1.4;
}

/* Layout 2 colonnes */
.layout-2col {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.feature-item {
  display: flex;
  gap: 18px;
  margin-bottom: 25px;
}
.feature-bullet {
  flex: 0 0 36px;
  height: 36px;
  background: #f1f5f9;
  color: var(--user-primary-dark);
  font-weight: 800;
  font-size: 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature-item h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--user-primary-dark);
  margin: 0 0 6px 0;
}
.feature-item p {
  color: #64748b;
  line-height: 1.6;
  margin: 0;
  font-size: 0.95rem;
}

.side-doc-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 28px;
}
.doc-download-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.doc-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.2s;
}
.doc-item:hover {
  border-color: var(--user-accent);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.doc-icon-badge {
  background: #fee2e2;
  color: #b91c1c; /* AA 5.3:1 (ex #dc2626) */
  font-weight: 800;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 4px;
}
.doc-info {
  display: flex;
  flex-direction: column;
}
.doc-name {
  font-weight: 600;
  color: var(--user-primary-dark);
  font-size: 0.95rem;
}
.doc-meta {
  font-size: 0.78rem;
  color: #64748b; /* AA 4.76:1 (ex #94a3b8) */
}

/* Grille Fiches Pratiques */
.guides-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.guide-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.guide-card:hover {
  border-color: var(--user-accent);
  box-shadow: 0 8px 20px rgba(0,0,0,0.04);
  transform: translateY(-3px);
}
.guide-badge {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--user-accent);
  margin-bottom: 12px;
}
.guide-title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--user-primary-dark);
  margin: 0 0 10px 0;
}
.guide-desc {
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 20px 0;
  flex-grow: 1;
}
.guide-link {
  font-weight: 700;
  color: var(--user-primary-dark);
  text-decoration: none;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: gap 0.2s, color 0.2s;
}
.guide-link:hover {
  color: var(--user-accent);
  gap: 10px;
}

/* Réalisations (Projets) */
.project-showcase-box {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 35px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.project-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 15px;
}
.project-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}
.project-status.active {
  background: #dcfce7;
  color: #15803d;
}
.project-status.ongoing {
  background: #e0f2fe;
  color: #0369a1;
}
.project-title {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--user-primary-dark);
  margin: 0;
}
.project-partner {
  font-size: 0.9rem;
  color: #64748b;
}
.project-desc {
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  margin-bottom: 25px;
}
.project-points-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}
.point-item {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
}
.point-item strong {
  display: block;
  color: var(--user-primary-dark);
  font-size: 0.95rem;
  margin-bottom: 4px;
}
.point-item span {
  font-size: 0.85rem;
  color: #64748b;
  line-height: 1.4;
}

.pillars-3grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.pillar-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 20px;
}
.pillar-card h4 {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  color: var(--user-accent);
  margin: 0 0 8px 0;
}
.pillar-card p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

/* Salon Animalaxou */
.event-hero-card {
  background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: 16px;
  padding: 35px;
  position: relative;
  overflow: hidden;
}
.event-hero-badge {
  display: inline-block;
  background: var(--user-accent);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
}
.event-hero-main {
  display: flex;
  align-items: center;
  gap: 35px;
  flex-wrap: wrap;
}
.event-date-block {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 12px;
  padding: 15px 25px;
  text-align: center;
  display: flex;
  flex-direction: column;
}
.event-day {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1;
  color: #ffffff;
}
.event-month {
  font-weight: 700;
  font-size: 1rem;
  color: #86efac;
  text-transform: uppercase;
}
.event-year {
  font-size: 0.8rem;
  color: #94a3b8;
}
.event-details {
  flex: 1;
  min-width: 260px;
}
.event-name {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  margin: 0 0 8px 0;
  color: #ffffff;
}
.event-location {
  color: #cbd5e1;
  font-size: 0.95rem;
  margin-bottom: 12px;
  font-weight: 500;
}
.event-summary {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.editions-history-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.history-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 24px;
}
.history-year {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--user-accent);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.history-card h4 {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  color: var(--user-primary-dark);
  margin: 0 0 10px 0;
}
.history-card p {
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 850px) {
  .layout-2col { grid-template-columns: 1fr; gap: 30px; }
  .event-hero-main { gap: 20px; }
}

/* NOUVEAUX STYLES POUR LE MOTEUR DE RECHERCHE INTELLIGENT (SPOTLIGHT) */
.search-dropdown-header {
  padding: 12px 16px 8px 16px;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--color-muted);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.search-dropdown-item {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  text-decoration: none;
  color: var(--color-text);
  transition: background 0.15s ease;
  border-bottom: 1px solid var(--color-surface);
}
.search-dropdown-item:last-child {
  border-bottom: none;
}
.search-dropdown-item:hover {
  background: var(--color-bg);
}
.search-dropdown-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(118, 184, 47, 0.1);
  color: var(--user-accent);
  border-radius: 50%;
  font-size: 1.1rem;
}
.search-dropdown-content {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.search-dropdown-title {
  font-weight: 700;
  font-size: 1rem;
}
.search-dropdown-category {
  font-size: 0.8rem;
  color: var(--color-muted);
}
.search-dropdown-empty {
  padding: 30px 16px;
  text-align: center;
  color: var(--color-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.search-dropdown-empty i {
  font-size: 2rem;
  color: #dee2e6;
  margin-bottom: 4px;
}
.search-dropdown-empty p {
  margin: 0;
  font-weight: 600;
  color: var(--color-text);
}
.search-dropdown-empty small {
  font-size: 0.85rem;
}


/* ==========================================================================
   MOBILE & RESPONSIVE HEADER REFINEMENTS (Awwwards / Apple Clean Standard)
   ========================================================================== */

@media (max-width: 992px) {
  .site-header {
    height: auto !important;
  }
  .header-inner {
    height: 70px !important;
    padding: 0 16px !important;
  }
  .site-header.is-scrolled .header-inner {
    height: 64px !important;
  }
  
  .logo-brand img {
    height: 42px !important;
    width: auto !important;
  }
  .site-header.is-scrolled .logo-brand img {
    height: 36px !important;
  }

  /* Actions group on mobile */
  .header-actions-group {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 12px !important;
    flex-shrink: 0 !important;
  }

  /* HIDE loose text 'Contact' link in top header on mobile to avoid colliding with logo */
  .header-actions-group > .nav-link {
    display: none !important;
  }

  /* Clean, compact 'Mes Démarches' capsule button on mobile */
  .header-actions-group .btn-dark,
  .header-actions-group .btn-header-demarches {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 8px 16px !important;
    font-size: 0.78rem !important;
    font-weight: 700 !important;
    letter-spacing: 0.3px !important;
    border-radius: 9999px !important;
    white-space: nowrap !important;
    line-height: 1 !important;
  }

  /* Modern, accessible hamburger button with circular background */
  .nav-toggle {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 50% !important;
    background: #f3f4f6 !important;
    border: 1px solid rgba(0, 0, 0, 0.06) !important;
    font-size: 1.15rem !important;
    color: var(--user-primary-dark) !important;
    cursor: pointer !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    transition: background-color 0.2s ease, transform 0.15s ease !important;
  }
  .nav-toggle:hover {
    background: #e5e7eb !important;
  }
  .nav-toggle:active {
    transform: scale(0.92) !important;
  }
}

@media (max-width: 420px) {
  .header-inner {
    height: 64px !important;
    padding: 0 12px !important;
  }
  .logo-brand img {
    height: 38px !important;
  }
  .header-actions-group {
    gap: 8px !important;
  }
  .header-actions-group .btn-dark,
  .header-actions-group .btn-header-demarches {
    padding: 7px 12px !important;
    font-size: 0.72rem !important;
  }
  .nav-toggle {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.05rem !important;
  }
}


/* ==========================================================================
   FIX RGAA : .btn / .btn-primary étaient des classes orphelines (style
   navigateur = lien bleu sur fond bleu). Definition conforme AA 6.4:1.
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.65rem 1.4rem;
  border-radius: 9999px;
  font-size: 0.95rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.3s var(--ease-apple, 0.3s);
}
.btn-primary {
  background: #2563eb;
  color: #ffffff !important; /* AA 5.2:1 sur #2563eb */
}
.btn-primary:hover {
  background: #1d4ed8;
}
.btn-outline {
  background: transparent;
  color: var(--user-primary-dark) !important;
  border: 1.5px solid var(--color-border);
}
.btn-outline:hover {
  background: var(--user-accent);
  color: #ffffff !important;
  border-color: var(--user-accent);
}
