/* ============================================================
   LOGICAS — Annuaire CACES France
   Style global — Design premium industriel
   ============================================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

/* ============================================================
   1. VARIABLES CSS
   ============================================================ */
:root {
  --primary: #030257;
  --primary-light: #0a0a7a;
  --primary-dark: #010140;
  --accent: #F97316;
  --accent-light: #FED7AA;
  --accent-dark: #EA6B0A;
  --bg: #F8FAFC;
  --bg-alt: #F1F5F9;
  --white: #ffffff;
  --text: #1E293B;
  --text-muted: #64748B;
  --text-light: #94A3B8;
  --border: #E2E8F0;
  --border-light: #F1F5F9;
  --success: #10B981;
  --warning: #F59E0B;
  --error: #EF4444;
  --info: #3B82F6;

  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow: 0 2px 12px rgba(15, 38, 64, 0.08);
  --shadow-md: 0 4px 20px rgba(15, 38, 64, 0.10);
  --shadow-lg: 0 8px 32px rgba(15, 38, 64, 0.14);
  --shadow-xl: 0 16px 48px rgba(15, 38, 64, 0.18);

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --header-height: 70px;
  --container-max: 1200px;
  --sidebar-width: 280px;

  --transition: 0.2s ease;
  --transition-slow: 0.35s ease;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
}

button {
  cursor: pointer;
  border: none;
  background: none;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

p {
  color: var(--text-muted);
}

/* ============================================================
   3. LAYOUT & CONTAINER
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

.section {
  padding: 4rem 0;
}

.section-white {
  background: var(--white);
}

.section-bg {
  background: var(--bg);
}

.section-dark {
  background: var(--primary-light);
}

.section-primary {
  background: var(--primary);
}

.section-title {
  font-size: 1.875rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 1.0625rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  max-width: 600px;
}

.section-header {
  margin-bottom: 2.5rem;
}

/* ============================================================
   4. HEADER & NAVIGATION
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  height: var(--header-height);
  box-shadow: 0 2px 20px rgba(15, 38, 64, 0.25);
  display: flex;
  align-items: center;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-height);
  gap: 1.5rem;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-mark {
  width: 38px;
  height: 38px;
  background: var(--accent);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 900;
  color: var(--white);
  letter-spacing: -0.05em;
  flex-shrink: 0;
}

.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-size: 1.3125rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: 0.03em;
}

.logo-tagline {
  font-size: 0.6875rem;
  color: rgba(255,255,255,0.55);
  font-weight: 400;
  letter-spacing: 0.02em;
}

/* Nav */
.nav {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

@media (min-width: 1024px) {
  .nav {
    display: flex;
  }
}

.nav-link {
  padding: 0.5rem 0.875rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9375rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.nav-link:hover,
.nav-link.active {
  color: var(--white);
  background: rgba(255,255,255,0.1);
}

/* Nav icons */
.nav-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  opacity: 0.7;
}

.nav-link:hover .nav-icon,
.nav-link.active .nav-icon {
  opacity: 1;
}

/* Header CTA */
.header-cta {
  display: none;
  gap: 0.75rem;
  align-items: center;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .header-cta {
    display: flex;
  }
}

/* Burger */
.burger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
  background: none;
  border: none;
}

@media (min-width: 1024px) {
  .burger {
    display: none;
  }
}

.burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: rgba(255,255,255,0.85);
  border-radius: 2px;
  transition: all var(--transition);
}

.burger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.burger.open span:nth-child(2) {
  opacity: 0;
}

.burger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--primary);
  z-index: 999;
  padding: 1.5rem;
  flex-direction: column;
  gap: 0.5rem;
  overflow-y: auto;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu .nav-link {
  font-size: 1.125rem;
  padding: 0.875rem 1rem;
  border-radius: var(--radius);
}

.mobile-menu .mobile-cta {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* ============================================================
   5. BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6875rem 1.375rem;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius);
  transition: all var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  line-height: 1.25;
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-primary {
  background: var(--accent);
  color: var(--white);
  border-color: var(--accent);
}

.btn-primary:hover {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.35);
}

.btn-primary:active {
  transform: translateY(0);
}

.btn-secondary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-light);
  border-color: var(--primary-light);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--white);
  border-color: rgba(255,255,255,0.4);
}

.btn-outline:hover {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.7);
}

.btn-outline-dark {
  background: transparent;
  color: var(--primary);
  border-color: var(--border);
}

.btn-outline-dark:hover {
  background: var(--bg);
  border-color: var(--primary);
}

.btn-ghost {
  background: transparent;
  color: var(--accent);
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.btn-ghost:hover {
  color: var(--accent-dark);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
}

.btn-lg {
  padding: 0.9375rem 2rem;
  font-size: 1.0625rem;
}

.btn-full {
  width: 100%;
}

.btn-white {
  background: var(--white);
  color: var(--primary);
  border-color: var(--white);
}

.btn-white:hover {
  background: var(--bg);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}

/* ============================================================
   6. HERO
   ============================================================ */
.hero {
  background: linear-gradient(135deg, #030257 0%, #0a0a7a 100%);
  padding: 5rem 0 0;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.04);
  pointer-events: none;
  z-index: 0;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(255,255,255,0.02);
  pointer-events: none;
  z-index: 0;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(249, 115, 22, 0.15);
  border: 1px solid rgba(249, 115, 22, 0.25);
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.5rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 900;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 1.25rem;
  max-width: 700px;
}

.hero h1 span {
  color: var(--accent);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: rgba(255,255,255,0.7);
  margin-bottom: 2.5rem;
  max-width: 580px;
  line-height: 1.65;
}

/* Search bar */
.search-bar {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: var(--shadow-xl);
  max-width: 720px;
  margin-bottom: 2rem;
}

.search-bar .search-field {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex: 1;
  min-width: 0;
}

.search-bar .search-field + .search-field {
  border-left: 1px solid var(--border);
  padding-left: 0.75rem;
}

.search-bar .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
  font-size: 1rem;
}

.search-bar select,
.search-bar input {
  border: none;
  outline: none;
  font-size: 0.9375rem;
  color: var(--text);
  background: transparent;
  width: 100%;
  padding: 0.375rem 0;
  -webkit-appearance: none;
}

.search-bar select {
  cursor: pointer;
}

.search-bar input::placeholder {
  color: var(--text-light);
}

.search-bar .btn-primary {
  flex-shrink: 0;
  padding: 0.75rem 1.5rem;
}

@media (max-width: 640px) {
  .search-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-bar .search-field {
    padding: 0.25rem 0;
  }

  .search-bar .search-field + .search-field {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 0.75rem;
    margin-top: 0.25rem;
  }

  .search-bar .btn-primary {
    width: 100%;
    margin-top: 0.25rem;
  }
}

/* Hero layout (texte + image) */
.hero-layout {
  display: flex;
  align-items: flex-end;
  gap: 2rem;
  position: relative;
  z-index: 2;
}

.hero-content {
  flex: 1;
  min-width: 0;
  padding-bottom: 4rem;
}

.hero-image {
  flex-shrink: 0;
  display: none;
  align-self: flex-end;
  position: relative;
  z-index: 3;
  pointer-events: none;
}

.hero-image img {
  display: block;
  max-height: 420px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 32px rgba(0,0,0,0.3));
}

@media (min-width: 1024px) {
  .hero-image {
    display: block;
  }
}

@media (min-width: 1280px) {
  .hero-image img {
    max-height: 480px;
  }
}

/* Hero stats */
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.hero-stat {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.75);
  font-size: 0.9375rem;
}

.hero-stat-value {
  color: var(--white);
  font-weight: 700;
}

.hero-stat-dot {
  width: 4px;
  height: 4px;
  background: var(--accent);
  border-radius: 50%;
}

/* ============================================================
   7. RÉASSURANCE
   ============================================================ */
.reassurance-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .reassurance-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.reassurance-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--bg);
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.reassurance-item:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.reassurance-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.375rem;
  flex-shrink: 0;
}

.reassurance-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
}

.reassurance-text {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.5;
}

/* ============================================================
   8. CARTES TYPES CACES
   ============================================================ */
.caces-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .caces-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .caces-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.caces-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.caces-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--card-color, var(--accent));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.caces-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.caces-card-icon {
  font-size: 2rem;
  line-height: 1;
}

.caces-code {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--card-color, var(--accent));
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
}

.caces-card-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.caces-card-duree {
  font-size: 0.8125rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.caces-card-arrow {
  margin-top: auto;
  color: var(--accent);
  font-size: 0.875rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  transition: gap var(--transition);
}

.caces-card:hover .caces-card-arrow {
  gap: 0.5rem;
}

/* ============================================================
   9. CARTES CENTRES
   ============================================================ */
.centre-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: all var(--transition);
  position: relative;
}

.centre-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.centre-card.premium {
  border-top: 3px solid var(--accent);
}

.centre-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.centre-card-logo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.125rem;
  font-weight: 800;
  flex-shrink: 0;
}

.centre-card-info {
  flex: 1;
  min-width: 0;
}

.centre-card-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 0.25rem;
}

.centre-card-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.centre-card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-premium {
  background: linear-gradient(135deg, #F97316, #EA6B0A);
  color: var(--white);
  font-size: 0.6875rem;
}

.badge-caces {
  background: var(--bg);
  color: var(--primary);
  border: 1px solid var(--border);
}

.badge-caces.r489 { background: #FFF4ED; color: #C2410C; border-color: #FED7AA; }
.badge-caces.r486 { background: #EFF6FF; color: #1D4ED8; border-color: #BFDBFE; }
.badge-caces.r482 { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.badge-caces.r485 { background: #F5F3FF; color: #6D28D9; border-color: #DDD6FE; }
.badge-caces.r484 { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.badge-caces.r490 { background: #FFFBEB; color: #B45309; border-color: #FDE68A; }
.badge-caces.r487 { background: #ECFEFF; color: #0E7490; border-color: #A5F3FC; }
.badge-caces.r483 { background: #F7FEE7; color: #4D7C0F; border-color: #D9F99D; }

.badge-success { background: #ECFDF5; color: #047857; border: 1px solid #A7F3D0; }
.badge-info { background: #EFF6FF; color: #1D4ED8; border: 1px solid #BFDBFE; }
.badge-warning { background: #FFFBEB; color: #B45309; border: 1px solid #FDE68A; }

/* Stars */
.stars {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.star {
  color: #FCD34D;
  font-size: 0.875rem;
}

.star.empty {
  color: var(--border);
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

.rating-value {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text);
}

.rating-count {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.centre-card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.centre-card-features {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.centre-feature {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.centre-feature .check {
  color: var(--success);
  font-weight: 700;
}

.centre-card-actions {
  display: flex;
  gap: 0.625rem;
  margin-top: auto;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border-light);
}

.centre-card-actions .btn {
  flex: 1;
  font-size: 0.875rem;
  padding: 0.5625rem 0.875rem;
}

/* Centres grid */
.centres-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .centres-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .centres-grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ============================================================
   10. ÉTAPES / COMMENT ÇA MARCHE
   ============================================================ */
.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
  position: relative;
}

@media (min-width: 768px) {
  .step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 2.25rem;
    left: calc(100% + 1.5rem / 2);
    width: calc(100% - 4.5rem);
    height: 2px;
    background: linear-gradient(90deg, var(--border) 0%, var(--border) 50%, transparent 100%);
    border-top: 2px dashed var(--border);
    pointer-events: none;
    transform: translateX(2.25rem);
  }
}

.step-number {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  background: var(--primary);
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}

.step-number::after {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: calc(var(--radius-lg) + 3px);
  border: 2px solid var(--accent);
  opacity: 0.3;
}

.step-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.step-desc {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   11. VILLES (scroll horizontal)
   ============================================================ */
.villes-scroll-wrapper {
  position: relative;
  overflow: hidden;
  margin: 0 -1.25rem;
  padding: 0 1.25rem;
}

@media (min-width: 768px) {
  .villes-scroll-wrapper {
    margin: 0 -2rem;
    padding: 0 2rem;
  }
}

.villes-scroll {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.5rem;
}

.villes-scroll::-webkit-scrollbar {
  display: none;
}

.ville-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.25rem;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  transition: all var(--transition);
  flex-shrink: 0;
  min-width: 180px;
}

.ville-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.ville-card-name {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  white-space: nowrap;
}

.ville-card-region {
  font-size: 0.8125rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.ville-card-count {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
  margin-top: 0.125rem;
}

/* ============================================================
   12. FAQ ACCORDÉON
   ============================================================ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow var(--transition);
}

.faq-item:hover {
  box-shadow: var(--shadow);
}

.faq-item.open {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(249,115,22,0.08);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.125rem 1.375rem;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}

.faq-question-text {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

.faq-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all var(--transition);
  line-height: 1;
}

.faq-item.open .faq-icon {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--white);
  transform: rotate(45deg);
}

.faq-answer {
  display: none;
  padding: 0 1.375rem 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
  border-top: 1px solid var(--border-light);
  padding-top: 1rem;
}

.faq-item.open .faq-answer {
  display: block;
}

/* ============================================================
   13. FORMULAIRES
   ============================================================ */
.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1.125rem;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
}

.form-label.required::after {
  content: ' *';
  color: var(--error);
}

.form-control {
  width: 100%;
  padding: 0.6875rem 0.9375rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  color: var(--text);
  background: var(--white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
}

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(15, 38, 64, 0.08);
}

.form-control::placeholder {
  color: var(--text-light);
}

.form-control.error {
  border-color: var(--error);
}

select.form-control {
  -webkit-appearance: none;
  appearance: none;
  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='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.75rem center;
  padding-right: 2.5rem;
}

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

.form-error {
  font-size: 0.8125rem;
  color: var(--error);
}

.form-hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0 1rem;
}

@media (min-width: 640px) {
  .form-row {
    grid-template-columns: 1fr 1fr;
  }
}

/* Checkbox / Toggle */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: var(--text);
}

.form-check input[type="checkbox"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
  cursor: pointer;
}

.toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: relative;
  width: 44px;
  height: 24px;
  background: var(--border);
  border-radius: 24px;
  transition: background var(--transition);
  flex-shrink: 0;
}

.toggle-slider::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
  transition: transform var(--transition);
}

.toggle input:checked + .toggle-slider {
  background: var(--primary);
}

.toggle input:checked + .toggle-slider::after {
  transform: translateX(20px);
}

.toggle-label {
  font-size: 0.9rem;
  color: var(--text);
}

/* ============================================================
   14. SIDEBAR FILTRES
   ============================================================ */
.results-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

@media (min-width: 1024px) {
  .results-layout {
    grid-template-columns: var(--sidebar-width) 1fr;
    align-items: start;
  }
}

.sidebar {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
}

@media (min-width: 1024px) {
  .sidebar-sticky {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

.sidebar-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-section {
  margin-bottom: 1.375rem;
  padding-bottom: 1.375rem;
  border-bottom: 1px solid var(--border-light);
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-btn-reset {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-top: 1rem;
  display: block;
}

.filter-btn-reset:hover {
  color: var(--accent-dark);
}

/* ============================================================
   15. RÉSULTATS / LISTE
   ============================================================ */
.results-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.results-count {
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.results-count strong {
  color: var(--text);
  font-weight: 700;
}

.results-sort {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

.results-sort select {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.375rem 2rem 0.375rem 0.625rem;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--white);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2364748B' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.5rem center;
  outline: none;
  cursor: pointer;
}

.centre-list-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  margin-bottom: 1rem;
  transition: all var(--transition);
  position: relative;
}

.centre-list-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
  border-color: transparent;
}

.centre-list-card.premium {
  border-left: 4px solid var(--accent);
}

.centre-list-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.centre-list-card-avatar {
  width: 52px;
  height: 52px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--primary), var(--primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  font-weight: 800;
  flex-shrink: 0;
}

.centre-list-card-meta {
  flex: 1;
  min-width: 0;
}

.centre-list-card-name {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.centre-list-card-location {
  font-size: 0.875rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.centre-list-card-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.375rem;
  flex-shrink: 0;
}

.centre-list-card-body {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.65;
}

.centre-list-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border-light);
}

.centre-list-card-footer .btn {
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}

.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

/* ============================================================
   16. FICHE CENTRE
   ============================================================ */
.fiche-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 1024px) {
  .fiche-layout {
    grid-template-columns: 1fr 340px;
    align-items: start;
  }
}

.fiche-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 3rem 0 2.5rem;
}

.fiche-header-inner {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.fiche-logo {
  width: 72px;
  height: 72px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 2px solid rgba(255,255,255,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.875rem;
  font-weight: 800;
  flex-shrink: 0;
}

.fiche-title {
  font-size: clamp(1.5rem, 3vw, 2.125rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.5rem;
}

.fiche-subtitle {
  color: rgba(255,255,255,0.7);
  font-size: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.fiche-contact-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.fiche-contact-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.125rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.contact-info-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}

.contact-info-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 0.125rem;
}

.contact-info-value {
  font-weight: 600;
  color: var(--text);
}

.contact-info-value a {
  color: var(--primary);
  transition: color var(--transition);
}

.contact-info-value a:hover {
  color: var(--accent);
}

.devis-form-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin-top: 1.25rem;
}

.devis-form-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.375rem;
}

.devis-form-subtitle {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
}

.devis-reassurance {
  text-align: center;
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 0.875rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
}

/* Atouts */
.atouts-list {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}

.atout-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9375rem;
  color: var(--text);
}

.atout-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 1.5px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

/* Infos pratiques */
.infos-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.info-block {
  background: var(--bg);
  border-radius: var(--radius);
  padding: 1rem;
}

.info-block-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.375rem;
}

.info-block-value {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

/* ============================================================
   17. BREADCRUMB
   ============================================================ */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.25rem;
  font-size: 0.875rem;
  color: var(--text-muted);
  padding: 1rem 0;
}

.breadcrumb a {
  color: var(--text-muted);
  transition: color var(--transition);
}

.breadcrumb a:hover {
  color: var(--accent);
}

.breadcrumb-sep {
  color: var(--border);
  font-size: 0.75rem;
  margin: 0 0.125rem;
}

.breadcrumb-current {
  color: var(--text);
  font-weight: 500;
}

/* Breadcrumb dark (sur fond bleu) */
.breadcrumb-dark {
  color: rgba(255,255,255,0.55);
}

.breadcrumb-dark a {
  color: rgba(255,255,255,0.55);
}

.breadcrumb-dark a:hover {
  color: var(--white);
}

.breadcrumb-dark .breadcrumb-sep {
  color: rgba(255,255,255,0.25);
}

.breadcrumb-dark .breadcrumb-current {
  color: rgba(255,255,255,0.9);
}

/* ============================================================
   18. CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--primary-light) 0%, var(--primary) 100%);
  padding: 4rem 0;
  text-align: center;
}

.cta-section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.875rem;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
  margin-bottom: 2rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  justify-content: center;
}

/* ============================================================
   19. FOOTER
   ============================================================ */
.footer {
  background: var(--primary);
  color: rgba(255,255,255,0.7);
  padding: 3.5rem 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 1.125rem;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
  transition: color var(--transition);
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--white);
}

.footer-desc {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.55);
  margin-top: 0.875rem;
  max-width: 300px;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  color: rgba(255,255,255,0.75);
  padding: 0.375rem 0.875rem;
  margin-top: 1.25rem;
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-copyright {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
}

.footer-legal {
  display: flex;
  gap: 1.25rem;
}

.footer-legal a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.4);
  transition: color var(--transition);
}

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

/* ============================================================
   20. GUIDES / ARTICLES
   ============================================================ */
.articles-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

@media (min-width: 640px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.article-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  transition: all var(--transition);
  text-decoration: none;
}

.article-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
  border-color: transparent;
}

.article-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-full);
  background: var(--accent-light);
  color: var(--accent-dark);
}

.article-card-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.4;
}

.article-card-excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  flex: 1;
}

.article-card-cta {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-top: auto;
  transition: gap var(--transition);
}

.article-card:hover .article-card-cta {
  gap: 0.625rem;
}

/* ============================================================
   21. ALERTES / NOTICES
   ============================================================ */
.alert {
  padding: 1rem 1.25rem;
  border-radius: var(--radius);
  font-size: 0.9rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.alert-success {
  background: #ECFDF5;
  border: 1px solid #A7F3D0;
  color: #047857;
}

.alert-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1D4ED8;
}

.alert-warning {
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  color: #B45309;
}

/* ============================================================
   22. LOADING / SPINNER
   ============================================================ */
.spinner {
  width: 32px;
  height: 32px;
  border: 3px solid var(--border);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ============================================================
   23. SUCCESS MESSAGE (FORMULAIRE)
   ============================================================ */
.form-success {
  text-align: center;
  padding: 2.5rem 1.5rem;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #ECFDF5;
  border: 2px solid #A7F3D0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin: 0 auto 1.25rem;
}

.form-success-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.form-success-text {
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.6;
}

/* ============================================================
   24. PAGE HEADER (intérieure)
   ============================================================ */
.page-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
  padding: 2.5rem 0 2rem;
}

.page-header-eyebrow {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}

.page-header h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 0.75rem;
  line-height: 1.2;
}

.page-header p {
  color: rgba(255,255,255,0.7);
  font-size: 1.0625rem;
  max-width: 600px;
  line-height: 1.65;
}

/* ============================================================
   25. STATISQUES / MÉTRIQUES
   ============================================================ */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

@media (min-width: 768px) {
  .metrics-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.metric-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
}

.metric-value {
  font-size: 2.25rem;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 0.375rem;
}

.metric-value span {
  color: var(--accent);
}

.metric-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================================
   26. SECTION ALTERNÉE
   ============================================================ */
.alt-section {
  padding: 4rem 0;
}

.alt-section-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  align-items: center;
}

@media (min-width: 768px) {
  .alt-section-inner {
    grid-template-columns: 1fr 1fr;
  }

  .alt-section-inner.reverse {
    direction: rtl;
  }

  .alt-section-inner.reverse > * {
    direction: ltr;
  }
}

.alt-section-visual {
  background: linear-gradient(135deg, var(--bg) 0%, var(--border-light) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 280px;
  font-size: 5rem;
}

/* ============================================================
   27. UTILITAIRES
   ============================================================ */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-accent { color: var(--accent); }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }
.text-white { color: var(--white); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }

.hidden { display: none; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 1.5rem 0;
}

/* Tag list */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* Highlight box */
.highlight-box {
  background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(249,115,22,0.02));
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius-lg);
  padding: 1.375rem;
}

/* ============================================================
   28. ANIMATIONS
   ============================================================ */
@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.animate-fade-up {
  animation: fadeUp 0.5s ease forwards;
}

.animate-fade-in {
  animation: fadeIn 0.4s ease forwards;
}

/* ============================================================
   29. MENTIONS LÉGALES
   ============================================================ */
.legal-content {
  max-width: 800px;
  margin: 0 auto;
}

.legal-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 0.875rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-content p {
  font-size: 0.9375rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 0.875rem;
}

.legal-content ul {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 0.875rem;
}

.legal-content ul li {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-bottom: 0.375rem;
  line-height: 1.65;
}

/* ============================================================
   30. RESPONSIVE — MOBILE SMALL (< 480px)
   ============================================================ */
@media (max-width: 479px) {
  html { font-size: 15px; }

  .container { padding: 0 1rem; }

  /* Header */
  .logo-mark { width: 32px; height: 32px; font-size: 1rem; }
  .logo-name { font-size: 1.1rem; }
  .logo-tagline { display: none; }

  /* Hero */
  .hero { padding: 3rem 0 2.5rem; }
  .hero h1 { font-size: 1.625rem; line-height: 1.2; }
  .hero-subtitle { font-size: 0.9375rem; margin-bottom: 1.5rem; }
  .hero-eyebrow { font-size: 0.7rem; padding: 0.25rem 0.625rem; }

  .hero-stats { gap: 0.75rem; }
  .hero-stat { font-size: 0.8125rem; }
  .hero-stat-dot { display: none; }
  .hero-stat-value { font-size: 0.875rem; }

  /* Sections */
  .section { padding: 2rem 0; }
  .section-title { font-size: 1.375rem; }
  .section-subtitle { font-size: 0.9375rem; margin-bottom: 1.5rem; }

  /* Reassurance */
  .reassurance-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .reassurance-item { flex-direction: row; padding: 1rem; gap: 0.75rem; }
  .reassurance-icon { width: 40px; height: 40px; font-size: 1.125rem; }

  /* CACES grid */
  .caces-grid { grid-template-columns: 1fr; gap: 0.75rem; }
  .caces-card { padding: 1rem; flex-direction: row; flex-wrap: wrap; gap: 0.5rem; }
  .caces-card-icon { font-size: 1.5rem; }

  /* Steps */
  .steps-grid { gap: 1.25rem; }
  .step { flex-direction: row; gap: 0.875rem; }
  .step-number { width: 42px; height: 42px; font-size: 1.25rem; flex-shrink: 0; }

  /* Centre cards */
  .centre-card { padding: 1rem; }
  .centre-card-header { flex-wrap: wrap; }
  .centre-card-logo { width: 40px; height: 40px; font-size: 1rem; }
  .centre-card-actions { flex-direction: column; }
  .centre-card-actions .btn { width: 100%; }

  .centre-list-card { padding: 1rem; }
  .centre-list-card-top { flex-direction: column; gap: 0.625rem; }
  .centre-list-card-avatar { width: 44px; height: 44px; font-size: 1.125rem; }
  .centre-list-card-right { flex-direction: row; align-items: center; }
  .centre-list-card-footer { flex-direction: column; align-items: stretch; }
  .centre-list-card-footer > div:last-child { display: flex; flex-direction: column; gap: 0.5rem; }
  .centre-list-card-footer .btn { width: 100%; text-align: center; }

  /* Villes */
  .villes-grid { grid-template-columns: 1fr; gap: 0.5rem; }
  .ville-card { padding: 0.75rem; }

  /* FAQ */
  .faq-list { max-width: 100%; }
  .faq-question { padding: 0.875rem 1rem; }
  .faq-question-text { font-size: 0.875rem; }
  .faq-answer { padding: 0 1rem 1rem; font-size: 0.8125rem; }

  /* CTA section */
  .cta-section { padding: 2.5rem 0; }
  .cta-section h2 { font-size: 1.375rem; }
  .cta-section p { font-size: 0.9375rem; }
  .cta-buttons { flex-direction: column; width: 100%; }
  .cta-buttons .btn { width: 100%; text-align: center; }

  /* Footer */
  .footer { padding: 2rem 0 0; }
  .footer-grid { gap: 1.5rem; padding-bottom: 1.5rem; }
  .footer-bottom { flex-direction: column; text-align: center; gap: 0.5rem; }
  .footer-legal { justify-content: center; }

  /* Page header */
  .page-header { padding: 1.5rem 0; }
  .page-header h1 { font-size: 1.375rem; }
  .page-header p { font-size: 0.9375rem; }

  /* Fiche centre */
  .fiche-header { padding: 1.5rem 0; }
  .fiche-title { font-size: 1.25rem; }
  .fiche-logo { width: 56px; height: 56px; font-size: 1.5rem; }

  /* Buttons */
  .btn-lg { padding: 0.75rem 1.5rem; font-size: 0.9375rem; }

  /* Articles / Guides */
  .articles-grid { grid-template-columns: 1fr; }

  /* Badges */
  .tag-list { gap: 0.25rem; }
  .badge { font-size: 0.6875rem; padding: 0.1875rem 0.5rem; }

  /* Formulaires */
  .form-row { grid-template-columns: 1fr; }

  /* Infos grid */
  .infos-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   31. RESPONSIVE — MOBILE (480-767px)
   ============================================================ */
@media (min-width: 480px) and (max-width: 767px) {
  .container { padding: 0 1.125rem; }

  .hero { padding: 3.5rem 0 3rem; }
  .hero h1 { font-size: 1.875rem; }

  .section { padding: 2.5rem 0; }
  .section-title { font-size: 1.5rem; }

  .reassurance-grid { grid-template-columns: 1fr 1fr; }
  .caces-grid { grid-template-columns: 1fr 1fr; }

  .centre-list-card-top { flex-wrap: wrap; }
  .centre-list-card-footer { flex-direction: column; align-items: stretch; }
  .centre-list-card-footer > div:last-child { display: flex; gap: 0.5rem; }
  .centre-list-card-footer .btn { flex: 1; text-align: center; }

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

  .faq-list { max-width: 100%; }
  .infos-grid { grid-template-columns: 1fr; }

  .cta-buttons { flex-direction: column; align-items: center; }
  .cta-buttons .btn { width: 100%; max-width: 320px; text-align: center; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============================================================
   32. RESPONSIVE — COMMON MOBILE (< 768px)
   ============================================================ */
@media (max-width: 767px) {
  .hide-mobile { display: none !important; }

  .logo-tagline { display: none; }

  /* Search bar mobile */
  .search-bar {
    flex-direction: column;
    align-items: stretch;
    padding: 0.625rem;
  }
  .search-bar .search-field { padding: 0.375rem 0; }
  .search-bar .search-field + .search-field {
    border-left: none;
    border-top: 1px solid var(--border);
    padding-left: 0;
    padding-top: 0.625rem;
    margin-top: 0.25rem;
  }
  .search-bar .btn-primary { width: 100%; margin-top: 0.375rem; }

  /* Sidebar filtres */
  .sidebar { margin-bottom: 1rem; }
  .filter-options .form-check { font-size: 0.8125rem; }

  /* Results sort */
  .results-header { flex-direction: column; align-items: flex-start; }

  /* Contact page */
  .form-row { grid-template-columns: 1fr; }
}

/* ============================================================
   33. RESPONSIVE — TABLET (768-1023px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {
  .reassurance-grid { grid-template-columns: repeat(2, 1fr); }
  .caces-grid { grid-template-columns: repeat(3, 1fr); }
  .centres-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-grid { grid-template-columns: repeat(3, 1fr); }
  .villes-grid { grid-template-columns: repeat(3, 1fr); }
  .articles-grid { grid-template-columns: repeat(2, 1fr); }

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

@media (min-width: 768px) {
  .hide-desktop { display: none !important; }
}

/* ============================================================
   34. RESPONSIVE — TABLET/SMALL DESKTOP (< 1024px)
   ============================================================ */
@media (max-width: 1023px) {
  .sidebar-sticky { position: static; }
  .results-layout { grid-template-columns: 1fr; }
  .sidebar { order: -1; }
  .fiche-layout { grid-template-columns: 1fr; }

  /* Fiche centre sidebar below */
  .fiche-layout aside { order: -1; }
}

/* ============================================================
   35. RESPONSIVE — DESKTOP (1024px+)
   ============================================================ */
@media (min-width: 1024px) {
  .reassurance-grid { grid-template-columns: repeat(4, 1fr); }
  .caces-grid { grid-template-columns: repeat(4, 1fr); }
  .villes-grid { grid-template-columns: repeat(5, 1fr); }
  .articles-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ============================================================
   36. GUIDE ARTICLE STYLES
   ============================================================ */
.guide-article {
  max-width: 780px;
  margin: 0 auto;
}

.guide-article article {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--text);
}

.guide-article article h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-top: 3rem;
  margin-bottom: 1rem;
  padding-bottom: 0.625rem;
  border-bottom: 2px solid var(--accent);
  color: var(--text);
}

.guide-article article h2:first-child {
  margin-top: 0;
}

.guide-article article h3 {
  font-size: 1.1875rem;
  font-weight: 700;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.guide-article article p {
  margin-bottom: 1.25rem;
  color: var(--text);
  font-size: 1.0625rem;
}

.guide-article article ul,
.guide-article article ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  list-style: disc;
}

.guide-article article ol {
  list-style: decimal;
}

.guide-article article li {
  margin-bottom: 0.625rem;
  line-height: 1.75;
  color: var(--text);
}

.guide-article article li strong {
  color: var(--primary);
}

.guide-article article a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--transition);
}

.guide-article article a:hover {
  color: var(--accent-dark);
}

.guide-article article strong {
  font-weight: 700;
  color: var(--text);
}

/* Author box */
.guide-author-box {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.guide-author-box .author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.guide-author-box .author-info strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text);
}

.guide-author-box .author-info span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Key takeaways */
.guide-takeaways {
  background: linear-gradient(135deg, rgba(249,115,22,0.06), rgba(249,115,22,0.02));
  border: 1px solid rgba(249,115,22,0.2);
  border-radius: var(--radius-lg);
  padding: 1.75rem 2rem;
  margin: 3rem 0;
}

.guide-takeaways h3 {
  margin-top: 0 !important;
  padding-bottom: 0.5rem;
  border-bottom: none !important;
  color: var(--accent-dark) !important;
  font-size: 1.125rem !important;
}

.guide-takeaways ul {
  margin-bottom: 0;
}

.guide-takeaways li {
  position: relative;
  padding-left: 0.25rem;
}

/* Related guides */
.guide-related {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1.5rem;
}

@media (min-width: 640px) {
  .guide-related {
    grid-template-columns: repeat(2, 1fr);
  }
}

.guide-related a {
  display: block;
  padding: 1.25rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  text-decoration: none !important;
  transition: all var(--transition);
}

.guide-related a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.guide-related a strong {
  display: block;
  font-size: 0.9375rem;
  color: var(--text) !important;
  margin-bottom: 0.375rem;
}

.guide-related a span {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Sources */
.guide-sources {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin-top: 2.5rem;
}

.guide-sources h3 {
  margin-top: 0 !important;
  font-size: 0.9375rem !important;
  color: var(--text-muted) !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.guide-sources ul {
  margin-bottom: 0;
}

.guide-sources li {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* ============================================================
   37. PRINT
   ============================================================ */
@media print {
  .header, .footer, .devis-form-card, .btn, .mobile-menu, .burger { display: none !important; }
  body { font-size: 12pt; }
  .section { padding: 1rem 0; }
}
