/* ============================================
   BIMMER SERVICE — Design System 2026
   Gunmetal Silver (Light) · BMW Dark (Dark)
   M-Performance · Premium · Auto-switching
   ============================================ */

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

/* ---------- CSS Variables ---------- */
:root {
  /* Core palette — Clean White */
  --bg-primary:    #ffffff;
  --bg-secondary:  #f5f5f8;
  --bg-card:       #ffffff;
  --bg-card-hover: #f9f9fc;
  --bg-glass:      rgba(255, 255, 255, 0.82);

  /* Text — Dark for maximum contrast on white */
  --text-primary:   #111118;
  --text-secondary: #1a1a22;
  --text-muted:     #2d2d38;

  /* BMW Blue accent — sobre, monochrome */
  --m-blue:   #1976d2;
  --m-dark:   #0d3d6e;
  --m-red:    #c41018; /* legacy — gardé pour compatibilité */

  /* Logo Bimmer Service — couleurs des stries (silver / red / navy / steel blue) */
  --logo-silver: #d0d0d8;
  --logo-steel:  #2887bd;
  --logo-navy:   #0e1f47;
  --logo-red:    #a91d2f;

  /* Blue gradient — monochrome, sans rouge */
  --m-gradient: linear-gradient(90deg, #1976d2, #0d3d6e);
  --m-gradient-diagonal: linear-gradient(135deg, #1976d2 0%, #0d3d6e 100%);

  /* Stats — même dégradé bleu sobre */
  --stat-gradient: linear-gradient(90deg, #2b8de6, #0d3d6e);

  /* Surfaces — softer on clean white */
  --border-color:  rgba(15,23,42,0.08);
  --border-hover:  rgba(15,23,42,0.16);
  --shadow-glow:   0 0 40px rgba(13,79,139,0.10);
  --shadow-card:   0 6px 24px rgba(15,23,42,0.06);
  --shadow-elevated: 0 16px 48px rgba(15,23,42,0.10);

  /* Typography — Inter (proche du rendu BMW)
     Fallbacks : polices systèmes proches d'Inter en cas d'échec de chargement */
  --font-heading: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* Type scale — structurée, modulaire */
  --text-xs:    0.75rem;     /* 12px — micro-labels, badges */
  --text-sm:    0.875rem;    /* 14px — liens nav/footer, petits labels */
  --text-base:  1.125rem;    /* 18px — body défaut, descriptions cartes */
  --text-md:    1.1875rem;   /* 19px — paragraphes articles */
  --text-lg:    1.25rem;     /* 20px — descriptions sections, sous-titres */
  --text-xl:    1.375rem;    /* 22px — titres cartes, H4 */
  --text-2xl:   1.5rem;      /* 24px — H3 / titres pôles */
  --text-3xl:   1.875rem;    /* 30px — H2 articles */
  --text-4xl:   clamp(1.75rem, 3.2vw, 2.5rem);   /* 28-40px — titres section */
  --text-5xl:   clamp(2rem, 4vw, 3.2rem);        /* 32-51px — page hero */
  --text-6xl:   clamp(2.5rem, 5vw, 4.2rem);      /* 40-67px — hero accueil */

  /* Spacing scale */
  --space-xs:  0.25rem;
  --space-sm:  0.5rem;
  --space-md:  1rem;
  --space-lg:  1.5rem;
  --space-xl:  2.5rem;
  --space-2xl: 4rem;
  --space-3xl: 6rem;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --duration-fast: 0.2s;
  --duration-normal: 0.35s;
  --duration-slow: 0.6s;

  /* Container */
  --container-max: 1200px;
  --container-wide: 1400px;
}

/* ---------- Large screens scaling ----------
   Sur grands écrans (≥1600px) on augmente la base de typo et les
   conteneurs. Toute l'échelle en rem suit automatiquement. */
@media (min-width: 1600px) {
  html { font-size: 17px; }
  :root {
    --container-max: 1320px;
    --container-wide: 1520px;
  }
}

@media (min-width: 1920px) {
  html { font-size: 18px; }
  :root {
    --container-max: 1440px;
    --container-wide: 1640px;
  }
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.7;
  letter-spacing: -0.011em; /* léger tracking BMW pour Inter */
  overflow-x: hidden;
  animation: pageFadeIn 0.5s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  body { animation: none; }
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-smooth);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol { list-style: none; }

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

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

/* ---------- M-Stripe Divider ---------- */
.m-stripe {
  width: 100%;
  height: 3px;
  background: var(--m-gradient);
  border: none;
}

/* Top stripe stays fixed above everything */
body > .m-stripe:first-child {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1001;
}

.m-stripe-thin {
  width: 80px;
  height: 3px;
  background: var(--m-gradient);
  border-radius: var(--radius-full);
}

/* ============================================
   NAVIGATION
   ============================================ */
.nav {
  position: fixed;
  top: 3px; /* offset below the fixed m-stripe */
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: all var(--duration-normal) var(--ease-smooth);
  padding: var(--space-md) 0;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(1.5);
  -webkit-backdrop-filter: blur(20px) saturate(1.5);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-sm) 0;
  box-shadow: 0 2px 20px rgba(15,23,42,0.06);
}

/* When nav is over the hero photo (index only), make text light */
body.has-hero-image .nav:not(.scrolled) .nav__logo {
  color: #f0f0f5;
}

body.has-hero-image .nav:not(.scrolled) .nav__link {
  color: rgba(240,240,245,0.75);
}

body.has-hero-image .nav:not(.scrolled) .nav__link:hover,
body.has-hero-image .nav:not(.scrolled) .nav__link.active {
  color: #f0f0f5;
}

body.has-hero-image .nav:not(.scrolled) .nav__burger span {
  background: #f0f0f5;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Cible 1320px : plus d'espace pour les 6 dropdowns + CTA, sans sacrifier l'alignement.
     Sur écran > 1320px, le padding grandit pour rester aligné avec le bord du contenu. */
  padding: 0 max(var(--space-lg), calc((100% - 1320px) / 2 + var(--space-lg)));
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.nav__logo-img {
  height: 32px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.nav__logo .logo-m {
  background: var(--m-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 1.2vw, 1.5rem);
}

.nav__link {
  position: relative;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
  padding: var(--space-xs) 0;
}

.nav__link:hover,
.nav__link.active {
  color: var(--text-primary);
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--m-gradient);
  border-radius: var(--radius-full);
  transition: width var(--duration-normal) var(--ease-smooth);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Dropdown */
.nav__dropdown {
  position: relative;
}

.nav__dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav__dropdown-toggle svg {
  width: 12px;
  height: 12px;
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.nav__dropdown:hover .nav__dropdown-toggle svg {
  transform: rotate(180deg);
}

.nav__dropdown-menu {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  min-width: 240px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-sm);
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: var(--shadow-elevated);
  pointer-events: none;
}

/* Fix hit area gap for dropdown hover */
.nav__dropdown-menu::before {
  content: '';
  position: absolute;
  top: -15px;
  left: 0;
  width: 100%;
  height: 15px;
  background: transparent;
}

.nav__dropdown:hover .nav__dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(4px);
  pointer-events: all;
}

.nav__dropdown-item {
  display: block;
  padding: var(--space-sm) var(--space-md);
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.nav__dropdown-item:hover {
  background: rgba(13,79,139,0.10);
  color: var(--m-blue);
}

/* CTA Button in Nav */
.nav__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: var(--m-gradient-diagonal);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: #ffffff !important;
  white-space: nowrap;
  flex-shrink: 0;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 4px 20px rgba(8,61,110,0.30);
}

.nav__cta svg {
  flex-shrink: 0;
}

.nav__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 30px rgba(8,61,110,0.40);
}

/* Burger */
.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: var(--space-sm);
  z-index: 1001;
}

.nav__burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: transform 0.3s var(--ease-smooth),
              opacity 0.2s var(--ease-smooth);
  transform-origin: center;
}

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

.nav__burger.active span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

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

/* Mobile menu */
.nav__mobile {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100dvh; /* dynamic viewport height — avoids iOS toolbar issues */
  background: rgba(255,255,255,0.98);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 100px var(--space-lg) var(--space-xl);
  gap: var(--space-lg);
  z-index: 999;
  opacity: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.nav__mobile.open {
  display: flex;
  opacity: 1;
}

.nav__mobile a {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.nav__mobile a:hover {
  color: var(--m-blue);
}

.nav__mobile a.active {
  color: var(--m-blue);
}

.nav__mobile a.btn--primary {
  color: #ffffff !important;
}

.nav__mobile-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.nav__mobile-title {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--m-blue);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2px;
}

.nav__mobile-group a {
  font-size: 1.1rem;
  font-weight: 500;
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45);
  transform: scale(1.05);
  will-change: transform;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(26,26,46,0.3) 0%,
    rgba(26,26,46,0.55) 50%,
    rgba(255,255,255,0.97) 100%
  );
  z-index: 1;
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 720px;
  padding: var(--space-3xl) var(--space-xl);
  color: #f0f0f5;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 8px 20px;
  background: rgba(20, 20, 36, 0.60);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: #8cc8ff;
  margin-bottom: var(--space-xl);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeInUp 0.8s var(--ease-smooth) 0.2s both;
}

.hero__badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #8cc8ff;
  animation: pulse-dot 2s ease infinite;
}

.hero__title {
  font-size: var(--text-6xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin-bottom: var(--space-lg);
  color: #f0f0f5;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.4s both;
}

.hero__title .highlight {
  background: var(--m-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(240,240,245,0.95);
  max-width: 560px;
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  animation: fadeInUp 0.8s var(--ease-smooth) 0.6s both;
}

/* Override outline button in hero for dark bg */
.hero__actions .btn--outline {
  color: #f0f0f5;
  border-color: rgba(255,255,255,0.25);
}

.hero__actions .btn--outline:hover {
  border-color: #8cc8ff;
  color: #8cc8ff;
  background: rgba(140,200,255,0.08);
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
  animation: fadeInUp 0.8s var(--ease-smooth) 0.8s both;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  padding: 14px 32px;
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all var(--duration-normal) var(--ease-smooth);
  white-space: nowrap;
}

.btn--primary {
  background: var(--m-gradient-diagonal);
  color: white;
  box-shadow: 0 4px 24px rgba(8,61,110,0.30);
}

.btn--primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 40px rgba(8,61,110,0.40);
}

.btn--outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
}

.btn--outline:hover {
  border-color: var(--m-blue);
  color: var(--m-blue);
  background: rgba(13,79,139,0.10);
  transform: translateY(-2px);
}

.btn--small {
  padding: 10px 22px;
  font-size: 0.85rem;
}

.btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   SECTION — General
   ============================================ */
.section {
  padding: var(--space-3xl) 0;
}

.section__header {
  text-align: center;
  margin-bottom: var(--space-2xl);
}

.section__label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-sm);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--m-blue);
  margin-bottom: var(--space-md);
}

.section__label .line {
  width: 24px;
  height: 2px;
  background: var(--m-gradient);
  border-radius: var(--radius-full);
}

.section__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
}

.section__desc {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ============================================
   SERVICES GRID
   ============================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.service-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-smooth);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--m-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.service-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.14);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-md);
  background: rgba(13,79,139,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-lg);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.service-card:hover .service-card__icon {
  background: rgba(13,79,139,0.16);
  transform: scale(1.08);
}

.service-card__icon svg {
  width: 28px;
  height: 28px;
  stroke: var(--m-blue);
  fill: none;
  stroke-width: 1.5;
}

.service-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-sm);
}

.service-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-lg);
}

.service-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--m-blue);
  transition: gap var(--duration-fast) var(--ease-smooth);
}

.service-card:hover .service-card__link {
  gap: 12px;
}

.service-card__link svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ============================================
   SERVICE POLES (3-column showcase)
   ============================================ */
.services-poles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-xl);
  align-items: stretch;
}

.service-pole {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.service-pole::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--m-gradient);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.service-pole:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.service-pole:hover::before {
  transform: scaleX(1);
}

/* Featured pole (middle) */
.service-pole--featured {
  border-color: var(--m-blue);
  background: rgba(22,88,142,0.06);
}

.service-pole--featured::before {
  transform: scaleX(1);
}

/* Pole header */
.service-pole__header {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  margin-bottom: var(--space-xl);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border-color);
}

.service-pole__icon {
  width: 52px;
  height: 52px;
  min-width: 52px;
  border-radius: var(--radius-md);
  background: rgba(22,88,142,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.service-pole__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--m-blue);
  fill: none;
  stroke-width: 1.5;
}

.service-pole__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: 2px;
}

.service-pole__tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-style: italic;
}

/* Service list */
.service-pole__list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.service-pole__list li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: var(--space-sm) var(--space-md);
  margin-left: -var(--space-md);
  margin-right: -var(--space-md);
  border-left: 2px solid transparent;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.service-pole__list li:hover {
  background: rgba(22, 88, 142, 0.05);
  border-left-color: var(--m-blue);
}

/* Make entire block clickable */
.service-pole__list li a::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
}

.service-pole__list li a {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text-primary);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.service-pole__list li a:hover {
  color: var(--m-blue);
}

.service-pole__list li span {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.45;
}

/* Pole CTA */
.service-pole__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: var(--space-xl);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--border-color);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--m-blue);
  transition: gap var(--duration-fast) var(--ease-smooth);
}

.service-pole__cta:hover {
  gap: 12px;
}

.service-pole__cta svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

/* ============================================
   STATS BAR
   ============================================ */
.stats-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-2xl) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
}

.stat-item {
  position: relative;
}

.stat-item::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 50%;
  background: var(--border-color);
}

.stat-item:last-child::after { display: none; }

.stat-item__number {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 3vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--stat-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
}

/* Texte court (ex: CERTIFIÉ) à la place du chiffre — même look */
.stat-item__text {
  font-family: var(--font-heading);
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  font-weight: 800;
  letter-spacing: 0.02em;
  background: var(--stat-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-xs);
  line-height: clamp(2rem, 3vw, 3rem);
}

.stat-item__label {
  font-size: var(--text-sm);
  color: var(--text-primary);
  font-weight: 600;
  letter-spacing: 0.02em;
}

/* ============================================
   PARTNER BAR (logos partenaires/marques)
   ============================================ */
.partner-bar {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  padding: var(--space-2xl) 0;
}

.partner-bar__label {
  text-align: center;
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--m-blue);
  margin-bottom: var(--space-xl);
}

.partner-bar__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-3xl);
  align-items: center;
  justify-items: center;
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.partner-bar__item {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 70px;
  width: 100%;
  opacity: 0.7;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.partner-bar__item--md {
  height: 90px;
}

.partner-bar__item--lg {
  height: 115px;
}

.partner-bar__item:hover {
  opacity: 1;
}

.partner-bar__item img {
  max-height: 100%;
  max-width: 100%;
  width: auto;
  object-fit: contain;
}

/* ============================================
   ADVANTAGES (WHY US)
   ============================================ */
.advantages-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
}

.advantage-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

.advantage-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.advantage-card__icon {
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-md);
  background: rgba(13,79,139,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.advantage-card__icon svg {
  width: 26px;
  height: 26px;
  stroke: var(--m-blue);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.advantage-card__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-sm);
}

.advantage-card__desc {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ============================================
   CTA BANNER
   ============================================ */
.cta-banner {
  position: relative;
  background: var(--bg-secondary);
  border-radius: var(--radius-xl);
  padding: var(--space-3xl) var(--space-2xl);
  text-align: center;
  overflow: hidden;
  border: 1px solid var(--border-color);
}

.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(13,79,139,0.06) 0%, transparent 60%);
  pointer-events: none;
}

.cta-banner__title {
  font-size: var(--text-4xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-md);
  position: relative;
}

.cta-banner__text {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-xl);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
}

.cta-banner__actions {
  display: flex;
  justify-content: center;
  gap: var(--space-md);
  flex-wrap: wrap;
  position: relative;
}

.cta-banner__notice {
  margin-top: var(--space-xl);
  font-size: var(--text-sm);
  color: var(--text-muted);
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
  padding: var(--space-md) var(--space-lg);
  background: rgba(0,0,0,0.04);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--m-blue);
  border-radius: var(--radius-md);
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  text-align: left;
}

.cta-banner__notice svg {
  width: 18px;
  height: 18px;
  stroke: var(--m-blue);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--bg-secondary);
  padding-top: 0;
  position: relative;
}

.footer > .m-stripe {
  margin-bottom: var(--space-lg);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: var(--space-lg);
  margin-bottom: var(--space-lg);
}

.footer__brand {
  max-width: 320px;
}

.footer__logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: var(--text-2xl);
  letter-spacing: -0.02em;
  margin-bottom: var(--space-md);
}

.footer__logo-img {
  height: 28px;
  width: auto;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.15));
}

.footer__logo .logo-m {
  background: var(--m-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer__about {
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: var(--space-lg);
}

.footer__socials {
  display: flex;
  gap: var(--space-sm);
}

.footer__social-link {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: rgba(0,0,0,0.06);
  border: 1px solid var(--border-color);
  transition: all var(--duration-fast) var(--ease-smooth);
  color: var(--text-secondary);
}

.footer__social-link:hover {
  background: rgba(13,79,139,0.14);
  border-color: var(--m-blue);
  color: var(--m-blue);
  transform: translateY(-2px);
}

.footer__social-link svg {
  width: 18px;
  height: 18px;
}

.footer__column-title {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--space-md);
  color: var(--text-primary);
}

.footer__link {
  display: block;
  font-size: var(--text-sm);
  color: var(--text-secondary);
  padding: var(--space-xs) 0;
  transition: all var(--duration-fast) var(--ease-smooth);
}

.footer__link:hover {
  color: var(--m-blue);
  transform: translateX(4px);
}

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
}

.footer__contact-item svg {
  width: 16px;
  height: 16px;
  stroke: var(--m-blue);
  fill: none;
  flex-shrink: 0;
  margin-top: 3px;
}

/* ============================================
   SCHEDULE (Horaires) — bloc élégant adaptatif
   ============================================ */
.schedule {
  display: flex;
  flex-direction: column;
  gap: var(--space-xs);
  font-variant-numeric: tabular-nums;
  width: 100%;
}

.schedule__row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 0;
  border-bottom: 1px dashed var(--border-color);
}

.schedule__row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.schedule__row:first-child {
  padding-top: 0;
}

.schedule__day {
  color: var(--text-muted);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.schedule__hours {
  color: var(--text-primary);
  font-size: var(--text-sm);
  font-weight: 600;
}

.schedule__hours--closed {
  color: var(--m-blue);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: var(--text-xs);
}

.footer__bottom {
  border-top: 1px solid var(--border-color);
  padding: var(--space-md) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__copy {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.footer__legal a {
  font-size: var(--text-xs);
  color: var(--text-muted);
  transition: color var(--duration-fast) var(--ease-smooth);
}

.footer__legal a:hover {
  color: var(--m-blue);
}

/* ============================================
   SCROLL ANIMATIONS
   ============================================ */
/* Les .reveal* sont visibles par défaut. JS les "arme" (.reveal--armed)
   uniquement quand l'élément est hors viewport au chargement, pour éviter
   les flashs si le JS arrive en retard sur réseau lent. */
.reveal.reveal--armed,
.reveal-left.reveal--armed,
.reveal-right.reveal--armed {
  opacity: 0;
  transition: all 0.8s var(--ease-smooth);
}
.reveal.reveal--armed         { transform: translateY(40px); }
.reveal-left.reveal--armed    { transform: translateX(-40px); }
.reveal-right.reveal--armed   { transform: translateX(40px); }

.reveal.reveal--armed.visible,
.reveal-left.reveal--armed.visible,
.reveal-right.reveal--armed.visible {
  opacity: 1;
  transform: translate(0, 0);
}

/* Stagger delays for children */
.stagger > *:nth-child(1) { transition-delay: 0s; }
.stagger > *:nth-child(2) { transition-delay: 0.1s; }
.stagger > *:nth-child(3) { transition-delay: 0.2s; }
.stagger > *:nth-child(4) { transition-delay: 0.3s; }
.stagger > *:nth-child(5) { transition-delay: 0.4s; }
.stagger > *:nth-child(6) { transition-delay: 0.5s; }

/* ============================================
   KEYFRAMES
   ============================================ */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.5); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
  }

  .stats-grid {
    grid-template-columns: 1fr;
    gap: var(--space-xl);
  }

  .stat-item::after { display: none; }

  .partner-bar__grid {
    gap: var(--space-xl);
  }

  .partner-bar__item {
    height: 50px;
  }

  .partner-bar__item--md {
    height: 64px;
  }

  .partner-bar__item--lg {
    height: 80px;
  }

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

  .gallery-bento {
    grid-template-rows: 240px 240px;
  }
}

/* Force-hide mobile menu on desktop (even if .open class is still set) */
@media (min-width: 1025px) {
  .nav__mobile,
  .nav__mobile.open {
    display: none !important;
  }

  .nav__burger {
    display: none !important;
  }
}

/* Nav: burger dès qu'on ne peut plus loger les 6 dropdowns confortablement */
@media (max-width: 1024px) {
  .nav__links {
    display: none;
  }

  .nav__burger {
    display: flex;
  }
}

@media (max-width: 768px) {
  .hero__content {
    padding: var(--space-3xl) var(--space-lg);
  }

  .hero__title {
    font-size: clamp(2rem, 6vw, 3rem);
  }

  .hero__actions {
    flex-direction: column;
  }

  .hero__actions .btn {
    width: 100%;
    justify-content: center;
  }

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

  .services-poles {
    grid-template-columns: 1fr;
  }

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

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

  .gallery-bento {
    grid-template-columns: 1fr;
    grid-template-rows: 260px 220px 220px 220px;
  }

  .gallery-bento__item--large {
    grid-row: auto;
  }

  .gallery-bento__overlay {
    opacity: 1;
  }

  .lightbox__nav--prev {
    left: var(--space-md);
  }

  .lightbox__nav--next {
    right: var(--space-md);
  }

  .lightbox__nav {
    width: 42px;
    height: 42px;
  }

  .lightbox__close {
    top: var(--space-md);
    right: var(--space-md);
    width: 40px;
    height: 40px;
  }

  .footer__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer__brand {
    max-width: 100%;
    margin: 0 auto;
  }

  .footer__socials {
    justify-content: center;
  }

  .footer__bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }

  .cta-banner {
    padding: var(--space-2xl) var(--space-lg);
    border-radius: var(--radius-lg);
  }
}

@media (max-width: 480px) {
  .section {
    padding: var(--space-2xl) 0;
  }

  .container {
    padding: 0 var(--space-md);
  }

  .nav__inner {
    padding: 0 var(--space-md);
  }

  .hero__content {
    padding: var(--space-3xl) var(--space-md);
  }
}

/* ============================================
   GALLERY BENTO GRID
   ============================================ */
.gallery-bento {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  grid-template-rows: 280px 280px;
  gap: var(--space-md);
}

.gallery-bento__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  border: 1px solid var(--border-color);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.gallery-bento__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-smooth), filter 0.6s var(--ease-smooth);
}

.gallery-bento__item:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-elevated);
  transform: translateY(-4px);
}

.gallery-bento__item:hover img {
  transform: scale(1.08);
  filter: brightness(0.7);
}

/* Featured (large) item spans 2 rows */
.gallery-bento__item--large {
  grid-row: 1 / 3;
}

/* Overlay */
.gallery-bento__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-xl);
  background: linear-gradient(
    180deg,
    transparent 40%,
    rgba(0, 0, 0, 0.65) 100%
  );
  opacity: 0;
  transition: opacity var(--duration-normal) var(--ease-smooth);
}

.gallery-bento__item:hover .gallery-bento__overlay {
  opacity: 1;
}

.gallery-bento__caption {
  font-family: var(--font-heading);
  font-size: 1.15rem;
  font-weight: 700;
  color: #f0f0f5;
  margin-bottom: var(--space-xs);
}

.gallery-bento__tag {
  display: inline-block;
  width: fit-content;
  padding: 4px 14px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 600;
  color: #e0e0ea;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--duration-normal) var(--ease-smooth);
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox__content {
  max-width: 90vw;
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox__content img {
  max-width: 100%;
  max-height: 78vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.5);
  animation: lightboxZoomIn 0.4s var(--ease-smooth) both;
}

@keyframes lightboxZoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.lightbox__caption {
  margin-top: var(--space-lg);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  text-align: center;
}

.lightbox__close {
  position: absolute;
  top: var(--space-xl);
  right: var(--space-xl);
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  cursor: pointer;
  color: #f0f0f5;
  transition: all var(--duration-fast) var(--ease-smooth);
  z-index: 1;
}

.lightbox__close:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: rotate(90deg);
}

.lightbox__close svg {
  width: 22px;
  height: 22px;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 50%;
  cursor: pointer;
  color: #f0f0f5;
  transition: all var(--duration-fast) var(--ease-smooth);
  z-index: 1;
}

.lightbox__nav:hover {
  background: rgba(255, 255, 255, 0.14);
}

.lightbox__nav svg {
  width: 24px;
  height: 24px;
}

.lightbox__nav--prev {
  left: var(--space-xl);
}

.lightbox__nav--next {
  right: var(--space-xl);
}

.lightbox__counter {
  position: absolute;
  bottom: var(--space-xl);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--font-heading);
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  letter-spacing: 0.1em;
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-gradient {
  background: var(--m-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-center { text-align: center; }
.text-muted { color: var(--text-muted); }

.mt-sm { margin-top: var(--space-sm); }
.mt-md { margin-top: var(--space-md); }
.mt-lg { margin-top: var(--space-lg); }
.mt-xl { margin-top: var(--space-xl); }
.mt-2xl { margin-top: var(--space-2xl); }
.mb-sm { margin-bottom: var(--space-sm); }
.mb-md { margin-bottom: var(--space-md); }
.mb-lg { margin-bottom: var(--space-lg); }

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
  background: #8e8e9e;
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: #6e6e80;
}

/* ============================================
   PAGE HERO (Secondary pages)
   ============================================ */
.page-hero {
  position: relative;
  padding: 160px 0 80px;
  background-color: var(--bg-primary);
  background-image:
    linear-gradient(180deg, var(--bg-card) 0%, var(--bg-primary) 100%),
    repeating-linear-gradient(
      135deg,
      rgba(255,255,255,0.03) 0px,
      rgba(255,255,255,0.06) 2px,
      transparent 2px,
      transparent 8px
    );
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--m-gradient);
  z-index: 2;
}

.page-hero::after {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13,79,139,0.07) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 20% 50%, rgba(13,79,139,0.06) 0%, transparent 60%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
}

.page-hero__title {
  font-size: var(--text-5xl);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin-bottom: var(--space-lg);
  animation: fadeInUp 0.6s var(--ease-smooth) 0.2s both;
}

.page-hero__title .highlight {
  background: var(--m-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--text-secondary);
  max-width: 680px;
  line-height: 1.65;
  animation: fadeInUp 0.6s var(--ease-smooth) 0.4s both;
}

/* ---------- Page back button (haut-gauche du page-hero) ---------- */
.page-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px 8px 12px;
  margin-bottom: var(--space-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-smooth), border-color 0.2s var(--ease-smooth), color 0.2s var(--ease-smooth), background 0.2s var(--ease-smooth);
  animation: fadeInUp 0.6s var(--ease-smooth) 0.1s both;
}

.page-back:hover {
  border-color: var(--border-hover);
  color: var(--text-primary);
  background: var(--bg-elevated, var(--bg-card));
  transform: translateX(-3px);
}

.page-back svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s var(--ease-smooth);
}

.page-back:hover svg {
  transform: translateX(-2px);
}

/* ---------- Hero badge — Signature atelier (4 stries du logo) ---------- */
.hero__badge--signature {
  background: rgba(20, 20, 36, 0.72);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
  padding-left: 14px;
}

.hero__badge--signature .m-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-right: 2px;
}

.hero__badge--signature .m-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
}

/* Ordre logo : silver · red · navy · steel */
.hero__badge--signature .m-dots i:nth-child(1) { background: var(--logo-silver); }
.hero__badge--signature .m-dots i:nth-child(2) { background: var(--logo-red); }
.hero__badge--signature .m-dots i:nth-child(3) { background: var(--logo-navy); }
.hero__badge--signature .m-dots i:nth-child(4) { background: var(--logo-steel); }

.hero__badge--signature .sep {
  opacity: 0.55;
  margin: 0 2px;
  font-weight: 400;
}

.hero__badge--signature .cat {
  color: #fff;
  font-weight: 500;
}

/* ---------- Hub-card signature chip (top-right corner) ---------- */
.hub-card__signature {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px 4px 7px;
  background: rgba(20, 20, 36, 0.06);
  border: 1px solid rgba(20, 20, 36, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #000;
  line-height: 1;
  pointer-events: none;
}

.hub-card__signature .m-dots {
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.hub-card__signature .m-dots i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  display: inline-block;
}

/* Ordre logo : silver · red · navy · steel */
.hub-card__signature .m-dots i:nth-child(1) {
  background: var(--logo-silver);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18);
}
.hub-card__signature .m-dots i:nth-child(2) { background: var(--logo-red); }
.hub-card__signature .m-dots i:nth-child(3) { background: var(--logo-navy); }
.hub-card__signature .m-dots i:nth-child(4) { background: var(--logo-steel); }

@media (prefers-color-scheme: dark) {
  .hub-card__signature {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
    color: #fff;
  }
  .hub-card__signature .m-dots i:nth-child(1) {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22);
  }
}

@media (max-width: 768px) {
  .hub-card__signature {
    font-size: 0.625rem;
    padding: 3px 8px 3px 6px;
  }
}

/* ============================================
   CONTENT BLOCKS (Secondary pages)
   ============================================ */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-xl);
}

.content-block {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: all var(--duration-normal) var(--ease-smooth);
}

.content-block:hover {
  border-color: var(--border-hover);
  box-shadow: var(--shadow-glow);
}

.content-block__icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--space-md);
  border-radius: var(--radius-md);
  background: rgba(13,79,139,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-block__icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--m-blue);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.content-block__title {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid transparent;
  border-image: var(--m-gradient) 1;
}

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

.content-list li {
  position: relative;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.65;
}

.content-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--m-blue);
}

/* ============================================
   TEXT CONTENT (Long-form pages)
   ============================================ */
.text-content {
  max-width: 800px;
  margin: 0 auto;
}

.text-content h2 {
  font-size: var(--text-3xl);
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: var(--space-2xl) 0 var(--space-md);
  padding-bottom: var(--space-sm);
  border-bottom: 2px solid transparent;
  border-image: var(--m-gradient) 1;
}

.text-content h3 {
  font-size: var(--text-2xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: var(--space-xl) 0 var(--space-md);
  color: var(--m-blue);
}

.text-content h4 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin: var(--space-lg) 0 var(--space-sm);
}

.text-content p {
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: var(--space-md);
}

.text-content ul,
.text-content ol {
  margin: var(--space-md) 0;
  padding-left: var(--space-lg);
}

.text-content li {
  position: relative;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-sm);
  font-size: var(--text-md);
  color: var(--text-secondary);
  line-height: 1.7;
}

.text-content ul li::marker {
  color: var(--m-blue);
}

.text-content ol li::marker {
  color: var(--m-blue);
  font-weight: 700;
}

.text-content ol {
  list-style: decimal;
}

.text-content ul {
  list-style: disc;
}

/* Info box */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--m-blue);
  border-radius: var(--radius-md);
  padding: var(--space-lg) var(--space-xl);
  margin: var(--space-xl) 0;
}

.info-box p {
  margin-bottom: 0;
}

/* ============================================
   PRICING CARDS
   ============================================ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  text-align: center;
  transition: all var(--duration-normal) var(--ease-smooth);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.pricing-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--m-gradient);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.pricing-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-glow);
}

.pricing-card:hover::before {
  transform: scaleX(1);
}

.pricing-card__name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: var(--space-md);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.pricing-card__price {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: var(--m-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-md);
}

/* "À partir de" : petit label gris au-dessus du montant (pas de gradient) */
.pricing-card__price-prefix {
  display: block;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 2px;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary); /* annule le clip gradient */
}

/* Le montant garde la grande taille + gradient héritée du parent */
.pricing-card__price-value {
  display: inline;
}

/* "TTC" : petit suffixe gris à côté du montant */
.pricing-card__price-suffix {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 6px;
  color: var(--text-secondary);
  -webkit-text-fill-color: var(--text-secondary);
}

.pricing-card__features {
  text-align: left;
  margin-bottom: var(--space-xl);
}

.pricing-card__features li {
  position: relative;
  padding: var(--space-xs) 0 var(--space-xs) var(--space-lg);
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.6;
}

.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--m-blue);
  font-weight: 700;
}

.pricing-card .btn {
  width: 100%;
  justify-content: center;
  margin-top: auto;
}

/* Promo : ancien prix barré (sobre, devant le prix courant) */
.pricing-card__price-old {
  display: inline-block;
  margin-right: var(--space-sm);
  font-family: var(--font-body);
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text-secondary);
  opacity: 0.6;
  text-decoration: line-through;
  -webkit-text-fill-color: currentColor; /* annule le clip gradient du prix */
}

/* Promo : petit badge sobre (accent M ponctuel, pas de gradient) */
.pricing-card__promo {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(25, 118, 210, 0.1);
  border: 1px solid rgba(25, 118, 210, 0.25);
  color: var(--m-blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1;
}

/* Featured pricing card */
.pricing-card--featured {
  border-color: rgba(13,79,139,0.25);
  background: linear-gradient(180deg, rgba(13,79,139,0.08) 0%, var(--bg-card) 100%);
}

.pricing-card--featured::before {
  transform: scaleX(1);
}

/* ============================================
   CONTACT PAGE
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: start;
}

.contact-info-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

.contact-info-card h3 {
  font-size: var(--text-xl);
  font-weight: 700;
  letter-spacing: -0.015em;
  margin-bottom: var(--space-lg);
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-info-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.contact-info-item__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: rgba(13,79,139,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-item__icon svg {
  width: 20px;
  height: 20px;
  stroke: var(--m-blue);
  fill: none;
  stroke-width: 2;
}

.contact-info-item__text h4 {
  font-size: var(--text-base);
  font-weight: 600;
  margin-bottom: 4px;
}

.contact-info-item__text p,
.contact-info-item__text a {
  font-size: var(--text-base);
  color: var(--text-secondary);
  line-height: 1.55;
}

.advantages-mini {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-xl);
}

.advantage-mini {
  background: rgba(13,79,139,0.08);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
}

.advantage-mini span {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-xs);
}

.advantage-mini svg {
  width: 22px;
  height: 22px;
  stroke: var(--m-blue);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ============================================
   SYMPTOM TAGS
   ============================================ */
.symptom-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  margin: var(--space-lg) 0;
}

.symptom-tag {
  padding: 8px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  color: var(--text-secondary);
  transition: all var(--duration-fast) var(--ease-smooth);
}

.symptom-tag:hover {
  border-color: var(--m-blue);
  color: var(--m-blue);
  background: rgba(13,79,139,0.10);
}

/* ============================================
   RESPONSIVE — Secondary pages
   ============================================ */
@media (max-width: 768px) {
  .page-hero {
    padding: 120px 0 60px;
  }

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

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

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

  .advantages-mini {
    grid-template-columns: 1fr;
  }
}

/* ---------- Selection (Light mode default) ---------- */
::selection {
  background: rgba(8,61,110,0.22);
  color: var(--text-primary);
}

/* ============================================
   AUTO DARK MODE — prefers-color-scheme
   Automatically switches to dark theme when
   the user's OS/device is in dark mode.
   ============================================ */
@media (prefers-color-scheme: dark) {

  /* --- Override CSS Variables --- */
  :root {
    --bg-primary:    #0a0a0f;
    --bg-secondary:  #111118;
    --bg-card:       #16161e;
    --bg-card-hover: #1c1c28;
    --bg-glass:      rgba(16, 16, 24, 0.72);

    --text-primary:   #f0f0f5;
    --text-secondary: #9b9bb0;
    --text-muted:     #6a6a80;

    --m-blue:   #81C4FF;
    --m-dark:   #16588E;
    --m-red:    #E7222E; /* legacy — gardé pour compatibilité */

    --m-gradient: linear-gradient(90deg, #81C4FF, #16588E);
    --m-gradient-diagonal: linear-gradient(135deg, #81C4FF 0%, #16588E 100%);

    /* Stats — bleu monochrome */
    --stat-gradient: linear-gradient(90deg, #81C4FF, #16588E);

    --border-color:  rgba(255,255,255,0.06);
    --border-hover:  rgba(255,255,255,0.12);
    --shadow-glow:   0 0 40px rgba(129,196,255,0.06);
    --shadow-card:   0 8px 32px rgba(0,0,0,0.30);
    --shadow-elevated: 0 16px 48px rgba(0,0,0,0.40);
  }

  /* Remove brushed metal texture in dark mode */
  body {
    background-image: none;
  }

  /* --- Navigation scrolled state --- */
  .nav.scrolled {
    background: rgba(10, 10, 15, 0.92);
    box-shadow: 0 2px 20px rgba(0,0,0,0.30);
  }

  /* Nav on hero — keep light text in both modes on index */
  body.has-hero-image .nav:not(.scrolled) .nav__logo { color: #f0f0f5; }
  body.has-hero-image .nav:not(.scrolled) .nav__link { color: rgba(240,240,245,0.75); }
  body.has-hero-image .nav:not(.scrolled) .nav__link:hover,
  body.has-hero-image .nav:not(.scrolled) .nav__link.active { color: #f0f0f5; }
  body.has-hero-image .nav:not(.scrolled) .nav__burger span { background: #f0f0f5; }

  /* --- Dropdown menu --- */
  .nav__dropdown-item:hover {
    background: rgba(129,196,255,0.08);
  }

  /* --- Nav CTA button --- */
  .nav__cta {
    box-shadow: 0 4px 20px rgba(129,196,255,0.15);
  }
  .nav__cta:hover {
    box-shadow: 0 8px 30px rgba(129,196,255,0.25);
  }

  /* --- Buttons --- */
  .btn--primary {
    box-shadow: 0 4px 24px rgba(129,196,255,0.15);
  }
  .btn--primary:hover {
    box-shadow: 0 10px 40px rgba(129,196,255,0.25);
  }
  .btn--outline:hover {
    background: rgba(129,196,255,0.06);
  }

  /* --- Mobile menu --- */
  .nav__mobile {
    background: rgba(10,10,15,0.98);
  }

  /* --- Hero overlay gradient --- */
  .hero__overlay {
    background: linear-gradient(
      180deg,
      rgba(10,10,15,0.3) 0%,
      rgba(10,10,15,0.55) 50%,
      rgba(10,10,15,0.97) 100%
    );
  }

  /* --- Hero badge --- */
  .hero__badge {
    background: rgba(16, 16, 24, 0.55);
  }

  /* --- Hero outline button --- */
  .hero__actions .btn--outline:hover {
    background: rgba(129,196,255,0.08);
  }

  /* --- Service cards --- */
  .service-card {
    box-shadow: none;
  }
  .service-card:hover {
    box-shadow: var(--shadow-glow);
  }
  .service-card__icon {
    background: rgba(129,196,255,0.08);
  }
  .service-card:hover .service-card__icon {
    background: rgba(129,196,255,0.12);
  }

  /* --- Stats labels --- */
  .stat-item__label {
    color: var(--text-secondary);
    font-weight: 500;
  }

  /* --- Advantage cards --- */
  .advantage-card {
    box-shadow: none;
  }
  .advantage-card__icon {
    background: rgba(129,196,255,0.06);
  }

  /* --- CTA Banner --- */
  .cta-banner::before {
    background: radial-gradient(ellipse at center, rgba(129,196,255,0.04) 0%, transparent 60%);
  }
  .cta-banner__notice {
    background: rgba(255,255,255,0.02);
  }

  /* --- Footer --- */
  .footer__social-link {
    background: rgba(255,255,255,0.04);
  }
  .footer__social-link:hover {
    background: rgba(129,196,255,0.10);
  }

  /* --- Scrollbar --- */
  ::-webkit-scrollbar-track {
    background: var(--bg-primary);
  }
  ::-webkit-scrollbar-thumb {
    background: #2a2a38;
  }
  ::-webkit-scrollbar-thumb:hover {
    background: #3a3a4a;
  }

  /* --- Page Hero (secondary pages) --- */
  .page-hero::after {
    background: radial-gradient(circle, rgba(129,196,255,0.05) 0%, transparent 70%);
  }
  .page-hero__overlay {
    background: radial-gradient(ellipse at 20% 50%, rgba(129,196,255,0.04) 0%, transparent 60%);
  }

  /* --- Featured pricing card --- */
  .pricing-card--featured {
    border-color: rgba(129,196,255,0.15);
    background: linear-gradient(180deg, rgba(129,196,255,0.05) 0%, var(--bg-card) 100%);
  }

  /* --- Contact icon boxes --- */
  .contact-info-item__icon {
    background: rgba(129,196,255,0.08);
  }

  /* --- Advantage mini cards --- */
  .advantage-mini {
    background: rgba(129,196,255,0.04);
  }

  /* --- Symptom tags --- */
  .symptom-tag:hover {
    background: rgba(129,196,255,0.06);
  }

  /* --- Selection --- */
  ::selection {
    background: rgba(129,196,255,0.20);
    color: var(--text-primary);
  }
}

/* ============================================================
   HUB PAGES — menu cards + detailed sections
   Used by mecanique-entretien.html, diagnostic-electronique.html,
   options-confort.html
   ============================================================ */

.hub-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin: var(--space-xl) 0 var(--space-2xl);
}

/* Variante carte unique mise en avant (ex. cross-link CarPlay) */
.hub-cards--single {
  display: block;
  max-width: 420px;
}

.hub-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  padding: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: transform var(--duration-normal) var(--ease-smooth),
              box-shadow var(--duration-normal) var(--ease-smooth),
              background var(--duration-fast) var(--ease-smooth);
  position: relative;
  overflow: hidden;
}

.hub-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--m-blue);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--duration-normal) var(--ease-smooth);
}

.hub-card:hover {
  transform: translateY(-2px);
  background: var(--bg-card-hover);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.hub-card:hover::after {
  transform: scaleX(1);
}

.hub-card__icon {
  width: 32px;
  height: 32px;
  color: var(--m-blue);
}

.hub-card__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  margin: 0;
  color: var(--text-primary);
  line-height: 1.3;
}

.hub-card__desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.hub-card__price {
  font-family: var(--font-body);
  font-feature-settings: "tnum";
  font-variant-numeric: tabular-nums;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--m-blue);
  margin-top: auto;
}

.hub-card__arrow {
  position: absolute;
  right: var(--space-lg);
  bottom: var(--space-lg);
  width: 18px;
  height: 18px;
  color: var(--text-muted);
  transition: transform var(--duration-fast) var(--ease-smooth), color var(--duration-fast) var(--ease-smooth);
}

.hub-card:hover .hub-card__arrow {
  color: var(--m-blue);
  transform: translateY(2px);
}

/* Hub-cards pointant vers une autre page (href != #) : flèche orientée à droite */
.hub-card:not([href^="#"]) .hub-card__arrow {
  transform: rotate(-90deg);
}

.hub-card:not([href^="#"]):hover .hub-card__arrow {
  transform: translateX(2px) rotate(-90deg);
}

/* Hub detailed section (one per card) */
.hub-section {
  padding: var(--space-2xl) 0;
  border-top: none;
  scroll-margin-top: 80px; /* offset for sticky nav when jumping via #anchor */
}

.hub-section + .hub-section {
  border-top: 1px solid var(--border-color);
}

.hub-section__price-tag {
  display: inline-block;
  padding: 4px 10px;
  margin-bottom: var(--space-sm);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--m-blue);
  background: rgba(13,79,139,0.10);
  border-radius: var(--radius-full);
  font-feature-settings: "tnum";
}

.hub-section__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-lg);
  padding: 12px 20px;
  background: #25d366;
  color: white;
  text-decoration: none;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9375rem;
  transition: transform var(--duration-fast) var(--ease-smooth), box-shadow var(--duration-fast) var(--ease-smooth);
}

.hub-section__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37, 211, 102, 0.3);
}

.hub-section__tarifs-link {
  display: inline-block;
  margin-top: var(--space-md);
  margin-left: var(--space-md);
  color: var(--text-muted);
  font-size: 0.875rem;
  text-decoration: underline;
}

@media (max-width: 1024px) {
  .hub-cards {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .hub-cards {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .hub-section {
    padding: var(--space-xl) 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hub-card,
  .hub-card::after,
  .hub-card__arrow,
  .hub-section__cta {
    transition: none;
  }
  .hub-card:hover,
  .hub-card:hover .hub-card__arrow,
  .hub-section__cta:hover {
    transform: none;
  }
  .hub-card:hover::after {
    transform: scaleX(1); /* keep accent line visible without animating */
  }
}

/* ============================================================
   FLOATING CTA (mobile only)
   Two round buttons fixed bottom-right on hub pages.
   Appears after 200px scroll (controlled by JS in script.js).
   Hidden by default on desktop via media query.
   ============================================================ */

.floating-cta {
  position: fixed;
  bottom: 16px;
  right: 16px;
  display: none; /* shown via media query on mobile */
  flex-direction: column;
  gap: 8px;
  z-index: 90; /* below modal/drawer (z-index ≥ 100) */
  opacity: 0;
  transform: translateY(20px);
  transition: opacity var(--duration-normal) var(--ease-smooth),
              transform var(--duration-normal) var(--ease-smooth);
  pointer-events: none;
}

.floating-cta.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.floating-cta__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  /* Tight, high-contrast shadow appropriate for a floating UI element.
     Not using --shadow-card/--shadow-elevated because those are layout shadows. */
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
  transition: transform var(--duration-fast) var(--ease-smooth);
}

.floating-cta__btn--call {
  background: var(--m-blue);
}

.floating-cta__btn--whatsapp {
  background: #25d366; /* WhatsApp brand green — intentionally hardcoded */
}

.floating-cta__btn:hover,
.floating-cta__btn:active {
  transform: scale(1.05);
}

.floating-cta__btn svg {
  width: 24px;
  height: 24px;
}

@media (max-width: 1024px) {
  .floating-cta {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .floating-cta {
    transition: none;
    transform: none;
  }
  .floating-cta.is-visible {
    transform: none;
  }
  .floating-cta__btn {
    transition: none;
  }
  .floating-cta__btn:hover,
  .floating-cta__btn:active {
    transform: none;
  }
}


/* ============================================================
   Tarifs page — sommaire (quick-nav under hero)
   ============================================================ */

.tarifs-summary {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-sm);
  justify-content: center;
  padding: var(--space-lg) 0;
}

.tarifs-summary__btn {
  padding: 10px 18px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  color: var(--text-primary);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  transition: background var(--duration-fast) var(--ease-smooth),
              transform var(--duration-fast) var(--ease-smooth);
}

.tarifs-summary__btn:hover {
  background: var(--bg-card-hover);
  transform: translateY(-1px);
}

@media (prefers-reduced-motion: reduce) {
  .tarifs-summary__btn {
    transition: none;
  }
  .tarifs-summary__btn:hover {
    transform: none;
  }
}


/* ============================================================
   FEATURE GRID — sub-section cards inside hub-section content
   Used to break up dense text blocks into scannable 2-column tiles.
   ============================================================ */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
  margin: var(--space-lg) 0;
}

.feature-grid__card {
  padding: var(--space-md) var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.feature-grid__badge {
  display: inline-block;
  padding: 2px 10px;
  margin-bottom: var(--space-xs);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--m-blue);
  background: rgba(13,79,139,0.10);
  border-radius: var(--radius-full);
  font-feature-settings: "tnum";
}

.feature-grid__title {
  font-family: var(--font-heading);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 var(--space-xs);
  color: var(--text-primary);
}

.feature-grid__body {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

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

/* ============================================================
   CHIP LIST — compact tags for long enumerations
   Replaces long bulleted lists ("Codages les plus courants" etc.)
   ============================================================ */

.chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: var(--space-md) 0;
}

.chip {
  padding: 6px 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  color: var(--text-primary);
  white-space: nowrap;
}


/* ============================================================
   CONTACT FORM — on contact.html only
   Form layout, fields, submit states.
   ============================================================ */

.contact-form-wrapper {
  max-width: 720px;
  margin: 0 auto;
}

.contact-form-intro {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.contact-form-intro__title {
  font-family: var(--font-heading);
  font-size: var(--text-3xl);
  font-weight: 700;
  margin: 0 0 var(--space-sm);
  color: var(--text-primary);
}

.contact-form-intro__text {
  font-size: var(--text-base);
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

/* Honeypot — visually hidden but reachable to bots */
.contact-form__honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__row {
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
}

.contact-form__row--two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

.contact-form__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.contact-form__label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-primary);
}

.contact-form__required {
  color: var(--m-blue);
  font-weight: 600;
}

.contact-form__input {
  width: 100%;
  padding: 12px 14px;
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  color: var(--text-primary);
  transition: border-color var(--duration-fast) var(--ease-smooth),
              box-shadow var(--duration-fast) var(--ease-smooth);
}

.contact-form__input::placeholder {
  color: var(--text-muted);
  opacity: 0.7;
}

.contact-form__input:focus {
  outline: none;
  border-color: var(--m-blue);
  box-shadow: 0 0 0 3px rgba(13, 79, 139, 0.15);
}

/* Only highlight invalid fields after user interaction (modern browsers).
   :user-invalid fires after blur/submit, not on initial empty state. */
.contact-form__input:user-invalid {
  border-color: var(--m-red);
}

.contact-form__textarea {
  resize: vertical;
  min-height: 120px;
  font-family: var(--font-body);
  line-height: 1.5;
}

.contact-form__select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%234a4a5c' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
  cursor: pointer;
}

.contact-form__hint {
  font-size: 0.8125rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.contact-form__legal {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--text-muted);
  text-align: center;
  margin-top: var(--space-sm);
}

.contact-form__legal a {
  color: var(--m-blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-form__legal a:hover {
  color: var(--m-dark);
}

.contact-form__actions {
  display: flex;
  justify-content: flex-end;
  margin-top: var(--space-sm);
}

.contact-form__submit {
  min-width: 200px;
  position: relative;
  overflow: hidden;
}

.contact-form__submit[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.contact-form__submit-spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  margin-left: 8px;
  animation: cf-spin 0.8s linear infinite;
}

.contact-form__submit.is-loading .contact-form__submit-spinner {
  display: inline-block;
}

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

.contact-form__feedback {
  padding: 0;
  border-radius: var(--radius-md);
  font-size: 0.9375rem;
  line-height: 1.5;
  transition: padding var(--duration-fast) var(--ease-smooth);
}

.contact-form__feedback:not(:empty) {
  padding: 12px 16px;
  margin-top: var(--space-sm);
}

.contact-form__feedback--success {
  background: rgba(37, 211, 102, 0.10);
  color: #1a7f3e;
  border-left: 3px solid #25d366;
}

.contact-form__feedback--error {
  background: rgba(196, 16, 24, 0.08);
  color: #8c1116;
  border-left: 3px solid var(--m-red);
}

@media (max-width: 640px) {
  .contact-form {
    padding: var(--space-lg);
  }
  .contact-form__row--two {
    grid-template-columns: 1fr;
    gap: var(--space-lg);
  }
  .contact-form__actions {
    justify-content: stretch;
  }
  .contact-form__submit {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contact-form__input {
    transition: none;
  }
  .contact-form__submit-spinner {
    animation: none;
  }
}


/* ============================================================
   Cloudflare Turnstile widget — sits inside the contact form,
   above the submit button. Container just centers the widget.
   ============================================================ */

.contact-form__turnstile {
  display: flex;
  justify-content: flex-start;
  margin-top: var(--space-sm);
}

.contact-form__turnstile .cf-turnstile {
  /* Turnstile injects its own iframe; just leave it untouched. */
  min-height: 65px;
}

@media (max-width: 480px) {
  .contact-form__turnstile {
    justify-content: center;
  }
}
