/* ============================================================
   EASYRIDE — PROPOSITION V3 « BLACKLINE »
   Direction : noir encre + papier chaud + un seul accent rouge.
   Filets fins plutôt qu'ombres, typographie éditoriale,
   chiffres et tarifs en mono. Identité calée sur le logo
   (noir / rouge) : le vert a disparu de l'interface.
   ============================================================ */

/* ── 1. TOKENS ── */
:root,
html[data-theme="light"],
body.theme-light {
  /* Mode Clair — Éditorial Noir Encre & Papier Chaud (Easyride Original) */
  --ink: #101114;
  --ink-2: #17181d;
  --ink-3: #1f2026;
  --paper: #faf8f4;
  /* fond général du site */
  --white: #ffffff;
  /* cartes et panneaux sur fond clair */
  --surface: #ffffff;
  /* surfaces blanches pures */
  --surface-2: #f3efe6;
  /* survols, cartes secondaires */
  --surface-3: #eae5da;
  /* surfaces tertiaires */
  --fg: #101114;
  /* texte fort et contrasté */
  --line: #e2ddd4;
  /* filets fins */
  --line-strong: #c9c2b6;
  /* filets forts */
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #1c1e22;
  /* texte courant */
  --muted: #6e6a62;
  /* texte secondaire */
  --muted-dark: rgba(255, 255, 255, 0.62);
  --red: #e2242c;
  --red-deep: #b81b22;
  --red-soft: #fdeeee;
  --wa: #1faf57;
  /* réservé au bouton WhatsApp uniquement */
  --wa-deep: #178a43;
  --font-display: 'Archivo', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Consolas', monospace;
  --header-h: 72px;
  --header-h-mobile: 62px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-scrolled-bg: rgba(250, 248, 244, 0.98);
  --header-scrolled-border: #e2ddd4;
  --mobile-nav-bg: #faf8f4;
  --mobile-actions-bg: #101114;
  color-scheme: light;
}

html[data-theme="dark"],
body.theme-dark {
  /* Mode Sombre — Blackline Nuit & Surfaces Anthracite */
  --ink: #101114;
  --ink-2: #17181d;
  --ink-3: #23242b;
  --paper: #101114;
  /* fond général du site sombre */
  --white: #ffffff;
  /* texte blanc et accents */
  --surface: #17181d;
  /* cartes et panneaux sur encre */
  --surface-2: #1f2026;
  /* survols, éléments activés */
  --surface-3: #2a2b34;
  /* surfaces tertiaires sombres */
  --fg: #f4f2ed;
  /* texte fort clair */
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.22);
  --line-dark: rgba(255, 255, 255, 0.14);
  --text: #e9e7e2;
  --muted: #a49f96;
  --muted-dark: rgba(255, 255, 255, 0.62);
  --red: #e2242c;
  --red-deep: #b81b22;
  --red-soft: #fdeeee;
  --wa: #1faf57;
  --wa-deep: #178a43;
  --header-scrolled-bg: rgba(250, 248, 244, 0.98);
  --header-scrolled-border: #e2ddd4;
  --mobile-nav-bg: #101114;
  --mobile-actions-bg: rgba(23, 24, 29, 0.97);
  color-scheme: dark;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  width: 100%;
  /* overflow-x: clip bloque strictement tout débordement horizontal
     sans créer de contexte de scroll, préservant ainsi position: sticky. */
  overflow-x: clip;
  background: var(--ink);
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--paper);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: clip;
  width: 100%;
}

body.nav-open {
  overflow: hidden;
  touch-action: none;
}

body.nav-open .site-header {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  transform: none !important;
  transition: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: rgba(250, 248, 244, 0.98) !important;
  z-index: 1000 !important;
}

body.nav-open .mobile-actions {
  display: none !important;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--ease), opacity 0.2s var(--ease);
}

img,
picture,
video,
svg,
canvas {
  display: block;
  max-width: 100%;
  height: auto;
}

input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
  max-width: 100%;
}

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

ul,
ol {
  list-style: none;
}

::selection {
  background: var(--red);
  color: var(--white);
}

/* ── 3. CONTAINER & TYPOGRAPHY ── */
.container {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  padding-inline: 24px;
}

@media (max-width: 768px) {
  .container {
    padding-inline: 20px;
  }
}

@media (max-width: 480px) {
  .container {
    padding-inline: 16px;
  }
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--fg);
  line-height: 1.1;
  letter-spacing: -0.025em;
  overflow-wrap: break-word;
  word-break: break-word;
}

h1 {
  font-size: clamp(2.1rem, 5vw + 0.5rem, 4.3rem);
  font-weight: 800;
}

h2 {
  font-size: clamp(1.6rem, 3vw + 0.4rem, 2.9rem);
}

h3 {
  font-size: clamp(1.15rem, 1.5vw + 0.3rem, 1.5rem);
  letter-spacing: -0.015em;
}

@media (max-width: 480px) {
  h1 {
    font-size: clamp(1.85rem, 7vw, 2.4rem);
  }

  h2 {
    font-size: clamp(1.45rem, 5.5vw, 1.9rem);
  }
}

p {
  color: var(--muted);
  max-width: 64ch;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* Kicker : label mono à puce rouge — signature du système */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  max-width: 100%;
  overflow-wrap: break-word;
}

.kicker::before {
  content: '';
  width: 9px;
  height: 9px;
  background: var(--red);
  flex-shrink: 0;
}

.on-dark .kicker,
.kicker.on-dark {
  color: var(--muted-dark);
}

/* Numéros / prix / téléphone : toujours en mono */
.num,
.price,
.phone-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.price {
  color: var(--red);
  font-weight: 600;
}

/* En-tête de section : filet + index mono + titre */
.section {
  padding: clamp(56px, 8vw, 110px) 0;
}

.section-head {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 40px;
  align-items: end;
  padding-top: 22px;
  border-top: 1px solid var(--fg);
  margin-bottom: clamp(32px, 5vw, 56px);
}

.section-head>* {
  min-width: 0;
}

.section-head .kicker {
  margin-bottom: 12px;
}

.section-head .head-index {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  letter-spacing: 0.1em;
  white-space: nowrap;
}

.section-head .head-intro {
  grid-column: 1 / -1;
  max-width: 640px;
  margin-top: 4px;
}

@media (max-width: 640px) {
  .section-head {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 12px;
  }
}

/* ── 4. BOUTONS ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 24px;
  border: 1px solid transparent;
  border-radius: 3px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  white-space: nowrap;
  user-select: none;
  max-width: 100%;
  text-align: center;
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.btn svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.btn:hover svg {
  transform: translateX(3px);
}

.btn-primary {
  /* Balayage foncé au survol : le dégradé glisse, pas de saut de couleur */
  background-color: var(--red);
  background-image: linear-gradient(90deg, var(--red-deep) 0 50%, var(--red) 50% 100%);
  background-size: 200% 100%;
  background-position: 100% 0;
  color: var(--white);
  transition: background-position 0.4s var(--ease);
}

.btn-primary:hover {
  background: var(--red-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--fg);
  border-color: var(--fg);
}

.btn-ghost:hover {
  background: var(--fg);
  color: var(--paper);
}

.on-dark .btn-ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.45);
}

.on-dark .btn-ghost:hover {
  background: var(--white);
  color: var(--ink);
  border-color: var(--white);
}

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

.btn-wa:hover {
  background: var(--wa-deep);
}

.btn-sm {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.88rem;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-row.center {
  justify-content: center;
}

/* Lien texte avec flèche */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--fg);
  border-bottom: 1px solid var(--red);
  padding-bottom: 3px;
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.2s var(--ease);
}

.link-arrow:hover {
  color: var(--red);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ── 5. HEADER ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.35s var(--ease), border-color 0.35s var(--ease),
    box-shadow 0.35s var(--ease), backdrop-filter 0.35s var(--ease),
    transform 0.45s var(--ease);
}

/* En-tête escamotable : masqué vers le bas, rappelé vers le haut */
.site-header.header-hidden {
  transform: translateY(-102%);
}

/* En haut sur l'accueil (au-dessus du hero sombre) : transparent, texte clair */
body[data-page="home"] .site-header:not(.scrolled) {
  background: transparent;
  border-bottom-color: transparent;
}

body[data-page="home"] .site-header:not(.scrolled) .logo .logo-text {
  color: var(--white);
}

body[data-page="home"] .site-header:not(.scrolled) .logo-img-dark {
  opacity: 0;
}

body[data-page="home"] .site-header:not(.scrolled) .logo-img-light {
  opacity: 1;
}

body[data-page="home"] .site-header:not(.scrolled) .main-nav a {
  color: rgba(255, 255, 255, 0.78);
}

body[data-page="home"] .site-header:not(.scrolled) .main-nav a:hover,
body[data-page="home"] .site-header:not(.scrolled) .main-nav a.active {
  color: var(--white);
}

body[data-page="home"] .site-header:not(.scrolled) .menu-btn {
  border-color: rgba(255, 255, 255, 0.55);
  color: var(--white);
}

body[data-page="home"] .site-header:not(.scrolled) .lang-switch button {
  color: rgba(255, 255, 255, 0.7);
}

body[data-page="home"] .site-header:not(.scrolled) .lang-switch button:hover,
body[data-page="home"] .site-header:not(.scrolled) .lang-switch button.active {
  color: var(--white);
}

body[data-page="home"] .site-header:not(.scrolled) .lang-switch>span {
  color: rgba(255, 255, 255, 0.4);
}

body[data-page="home"] .site-header:not(.scrolled) .theme-toggle-btn {
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--white);
}

/* ── HEADER CLAIR UNIVERSEL (Scrolled, pages secondaires, menu ouvert, et en mode sombre) ── */
.site-header.scrolled,
body:not([data-page="home"]) .site-header {
  background: rgba(250, 248, 244, 0.98) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid #e2ddd4 !important;
  box-shadow: 0 1px 0 rgba(16, 17, 20, 0.05), 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

body.nav-open .site-header {
  background: rgba(250, 248, 244, 0.98) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-bottom: 1px solid #e2ddd4 !important;
  box-shadow: 0 1px 0 rgba(16, 17, 20, 0.05), 0 4px 18px rgba(0, 0, 0, 0.04) !important;
}

.site-header.scrolled .logo .logo-text,
body:not([data-page="home"]) .site-header .logo .logo-text,
body.nav-open .site-header .logo .logo-text {
  color: #101114 !important;
}

.site-header.scrolled .logo-img-dark,
body:not([data-page="home"]) .site-header .logo-img-dark,
body.nav-open .site-header .logo-img-dark {
  opacity: 1 !important;
}

.site-header.scrolled .logo-img-light,
body:not([data-page="home"]) .site-header .logo-img-light,
body.nav-open .site-header .logo-img-light {
  opacity: 0 !important;
}

@media (min-width: 1025px) {

  .site-header.scrolled .main-nav a,
  body:not([data-page="home"]) .site-header .main-nav a,
  body.nav-open .site-header .main-nav a {
    color: #6e6a62 !important;
  }

  .site-header.scrolled .main-nav a:hover,
  .site-header.scrolled .main-nav a.active,
  body:not([data-page="home"]) .site-header .main-nav a:hover,
  body:not([data-page="home"]) .site-header .main-nav a.active,
  body.nav-open .site-header .main-nav a:hover,
  body.nav-open .site-header .main-nav a.active {
    color: #101114 !important;
  }
}

.site-header.scrolled .menu-btn,
body:not([data-page="home"]) .site-header .menu-btn,
body.nav-open .site-header .menu-btn {
  border-color: #c9c2b6 !important;
  color: #101114 !important;
}

.site-header.scrolled .menu-btn:hover,
body:not([data-page="home"]) .site-header .menu-btn:hover,
body.nav-open .site-header .menu-btn:hover {
  border-color: var(--red) !important;
  color: var(--red) !important;
  background: rgba(226, 36, 44, 0.08) !important;
}

.site-header.scrolled .lang-switch button,
body:not([data-page="home"]) .site-header .lang-switch button,
body.nav-open .site-header .lang-switch button {
  color: #6e6a62 !important;
}

.site-header.scrolled .lang-switch button:hover,
.site-header.scrolled .lang-switch button.active,
body:not([data-page="home"]) .site-header .lang-switch button:hover,
body:not([data-page="home"]) .site-header .lang-switch button.active,
body.nav-open .site-header .lang-switch button:hover,
body.nav-open .site-header .lang-switch button.active {
  color: #101114 !important;
}

.site-header.scrolled .lang-switch>span,
body:not([data-page="home"]) .site-header .lang-switch>span,
body.nav-open .site-header .lang-switch>span {
  color: #c9c2b6 !important;
}

.site-header.scrolled .theme-toggle-btn,
body:not([data-page="home"]) .site-header .theme-toggle-btn,
body.nav-open .site-header .theme-toggle-btn {
  border-color: #c9c2b6 !important;
  color: #101114 !important;
}

.site-header.scrolled .theme-toggle-btn:hover,
body:not([data-page="home"]) .site-header .theme-toggle-btn:hover,
body.nav-open .site-header .theme-toggle-btn:hover {
  border-color: var(--red) !important;
  color: var(--red) !important;
  background: rgba(226, 36, 44, 0.08) !important;
}

/* ── BOUTON THÈME (CLAIR / SOMBRE) ── */
.theme-toggle-btn {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--white);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  flex-shrink: 0;
  padding: 0;
}

.theme-toggle-btn:hover {
  border-color: var(--red);
  color: var(--red);
  background: rgba(226, 36, 44, 0.08);
}

/* Icônes soleil / lune selon le thème actif */
html[data-theme="dark"] .theme-toggle-btn .icon-sun,
body.theme-dark .theme-toggle-btn .icon-sun {
  display: block;
}

html[data-theme="dark"] .theme-toggle-btn .icon-moon,
body.theme-dark .theme-toggle-btn .icon-moon {
  display: none;
}

:root:not([data-theme="dark"]) .theme-toggle-btn .icon-sun,
html[data-theme="light"] .theme-toggle-btn .icon-sun,
body:not(.theme-dark) .theme-toggle-btn .icon-sun {
  display: none;
}

:root:not([data-theme="dark"]) .theme-toggle-btn .icon-moon,
html[data-theme="light"] .theme-toggle-btn .icon-moon,
body:not(.theme-dark) .theme-toggle-btn .icon-moon {
  display: block;
}

.logo {
  position: relative;
}

.logo .logo-img-light {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
}

.logo img {
  transition: opacity 0.35s var(--ease);
}

.nav-wrap {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.logo img {
  height: 40px;
  width: auto;
}

.logo .logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.22rem;
  letter-spacing: -0.02em;
  color: var(--fg);
}

.logo .logo-text em {
  font-style: normal;
  color: var(--red);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  margin-left: auto;
}

.main-nav a {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.main-nav a:hover {
  color: var(--fg);
}

.main-nav a.active {
  color: var(--fg);
  border-bottom-color: var(--red);
}

.header-cta {
  flex-shrink: 0;
  min-height: 46px;
  padding: 0 20px;
  font-size: 0.88rem;
}

/* Bloc contact : visible uniquement dans le menu mobile */
.main-nav .nav-contact {
  display: none;
}

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--fg);
  border-radius: 4px;
  color: var(--fg);
  font-size: 1.25rem;
  line-height: 1;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

/* ── 6. NAV MOBILE (plein écran encre) ── */
@media (max-width: 1024px) {
  .nav-wrap {
    height: var(--header-h-mobile);
    gap: 8px;
  }

  .header-cta {
    display: none !important;
  }

  .logo {
    gap: 8px;
    margin-right: auto;
  }

  .logo img {
    height: 34px;
  }

  .logo .logo-text {
    font-size: 1.15rem;
  }

  .lang-switch {
    margin-left: 0;
    gap: 2px;
  }

  .lang-switch button {
    padding: 4px 6px;
    font-size: 0.72rem;
  }

  .theme-toggle-btn {
    width: 36px;
    height: 36px;
  }

  .menu-btn {
    display: inline-flex;
    width: 40px;
    height: 40px;
    font-size: 1.25rem;
    border-radius: 6px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    user-select: none;
  }

  /* État menu ouvert : bouton clair harmonieux avec croix nette et visible */
  body.nav-open .menu-btn,
  body.nav-open .site-header .menu-btn {
    background: rgba(16, 17, 20, 0.05) !important;
    color: #101114 !important;
    border-color: #c9c2b6 !important;
    font-weight: 700;
  }

  body.nav-open .menu-btn:hover,
  body.nav-open .site-header .menu-btn:hover {
    background: rgba(226, 36, 44, 0.08) !important;
    border-color: var(--red) !important;
    color: var(--red) !important;
  }
}

@media (max-width: 480px) {
  .nav-wrap {
    gap: 6px;
  }

  .logo {
    gap: 6px;
  }

  .logo img {
    height: 30px;
  }

  .logo .logo-text {
    font-size: 1.05rem;
  }

  .lang-switch button {
    padding: 3px 5px;
    font-size: 0.7rem;
  }

  .theme-toggle-btn {
    width: 34px;
    height: 34px;
  }

  .menu-btn {
    width: 38px;
    height: 38px;
    font-size: 1.2rem;
  }
}

@media (max-width: 360px) {
  .container {
    padding-inline: 12px;
  }

  .nav-wrap {
    gap: 4px;
  }

  .logo {
    gap: 4px;
  }

  .logo img {
    height: 26px;
  }

  .logo .logo-text {
    font-size: 0.95rem;
  }

  .lang-switch {
    gap: 1px;
  }

  .lang-switch button {
    padding: 2px 4px;
    font-size: 0.66rem;
  }

  .theme-toggle-btn {
    width: 32px;
    height: 32px;
  }

  .menu-btn {
    width: 34px;
    height: 34px;
    font-size: 1.1rem;
  }
}

@media (max-width: 1024px) {

  .main-nav {
    display: none;
    position: fixed;
    top: var(--header-h-mobile);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: calc(100vh - var(--header-h-mobile));
    height: calc(100dvh - var(--header-h-mobile));
    z-index: 999;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--ink);
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 20px));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .main-nav.open {
    display: flex;
    animation: fadeIn 0.25s var(--ease);
  }

  .main-nav a {
    color: var(--white);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 4vw, 1.7rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-transform: none;
    padding: 14px 0;
    border-bottom: 1px solid var(--line-dark);
  }

  .main-nav a.active {
    /* Contre la règle desktop (color: var(--ink)) qui rendrait
       le lien actif invisible sur le tiroir encre */
    color: var(--white);
    border-bottom: 2px solid var(--red);
  }

  /* Page courante : pavé rouge signature devant le libellé */
  .main-nav a.active::before {
    content: '';
    display: inline-block;
    width: 9px;
    height: 9px;
    background: var(--red);
    margin-right: 12px;
  }

  .main-nav a:hover {
    color: var(--white);
    opacity: 0.75;
    border-bottom-color: var(--line-dark);
  }

  .main-nav .nav-contact {
    margin-top: auto;
    padding-top: 24px;
    display: grid;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.9rem;
  }

  .main-nav .nav-contact a {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    border-bottom: none;
    color: var(--muted-dark);
    padding: 4px 0;
  }

  .main-nav .nav-contact a:hover {
    color: var(--white);
    opacity: 1;
  }
}

/* ── 7. HERO (ACCUEIL) ── */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  /* Le hero remonte sous l'en-tête transparent (+1px de bordure d'en-tête) */
  margin-top: calc(-1 * var(--header-h) - 1px);
  padding-top: var(--header-h);
  background: var(--ink);
  color: var(--white);
  overflow: hidden;
}

/* Photo grand angle derrière le texte, voile encre pour la lisibilité */
.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(16, 17, 20, 0.42) 0%, rgba(16, 17, 20, 0) 26%, rgba(16, 17, 20, 0) 60%, rgba(16, 17, 20, 0.58) 100%),
    linear-gradient(90deg, rgba(16, 17, 20, 0.90) 0%, rgba(16, 17, 20, 0.60) 44%, rgba(16, 17, 20, 0.26) 78%, rgba(16, 17, 20, 0.42) 100%);
}

.hero .hero-tag {
  position: absolute;
  z-index: 2;
  right: clamp(18px, 4vw, 44px);
  bottom: 22px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  /* padding-block uniquement : ne pas écraser le padding-inline de .container */
  padding-block: clamp(56px, 8vw, 96px) clamp(36px, 5vw, 56px);
}

.hero-grid>* {
  min-width: 0;
}

.hero .kicker {
  margin-bottom: 20px;
}

.hero h1 {
  color: var(--white);
  margin-bottom: 20px;
}

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

.hero p {
  color: var(--muted-dark);
  font-size: clamp(1rem, 1vw + 0.6rem, 1.12rem);
  max-width: 52ch;
  margin-bottom: 30px;
}

.hero .btn-row {
  margin-bottom: 34px;
}

/* Points de confiance : liste mono à coches rouges */
.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
}

.trust-list span {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted-dark);
}

.trust-list span::before {
  content: '—';
  color: var(--red);
  font-weight: 600;
}

/* Visuel hero : photo encadrée d'un filet rouge décalé */
.hero-visual {
  position: relative;
  max-width: 100%;
}

.hero-visual::before {
  content: '';
  position: absolute;
  inset: 14px -14px -14px 14px;
  border: 1px solid var(--red);
  z-index: 0;
}

.hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  aspect-ratio: 4 / 4.6;
  object-fit: cover;
  object-position: center;
}

.hero-visual .hero-tag {
  position: absolute;
  z-index: 2;
  left: -14px;
  bottom: 34px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 10px 16px;
}

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

  .hero-visual {
    max-width: 520px;
    margin-inline: auto;
    width: 100%;
  }

  .hero-visual img {
    aspect-ratio: 16 / 11;
  }
}

@media (max-width: 1024px) {
  .hero {
    margin-top: calc(-1 * var(--header-h-mobile) - 1px);
    padding-top: var(--header-h-mobile);
  }
}

@media (max-width: 768px) {
  .hero {
    min-height: 100vh;
    min-height: 100svh;
  }

  /* Mobile : voile plus uniforme, le texte occupant toute la largeur */
  .hero::after {
    background: linear-gradient(180deg, rgba(16, 17, 20, 0.72) 0%, rgba(16, 17, 20, 0.55) 55%, rgba(16, 17, 20, 0.78) 100%);
  }

  .hero .hero-tag {
    right: 18px;
    bottom: 16px;
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .btn-row .btn,
  .booking-actions .btn,
  .vehicle-body .btn {
    width: 100%;
    white-space: normal;
  }

  .trust-list {
    display: grid;
    gap: 10px;
  }
}

@media (max-width: 480px) {
  .hero-visual::before {
    inset: 6px -6px -6px 6px;
  }
}

/* ── 8. INDEX DES SERVICES (liste éditoriale numérotée) ── */
.svc-index {
  border-top: 1px solid var(--fg);
}

.svc-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1.3fr) minmax(0, 1fr) 44px;
  gap: 16px;
  align-items: center;
  padding: 24px 10px;
  border-bottom: 1px solid var(--line-strong);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease), padding 0.2s var(--ease);
}

.svc-row>* {
  min-width: 0;
}

.svc-row .svc-num {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}

.svc-row h3 {
  font-size: clamp(1.15rem, 1.6vw + 0.4rem, 1.45rem);
  margin-bottom: 2px;
}

.svc-row .svc-desc {
  font-size: 0.9rem;
  max-width: 40ch;
}

.svc-row .svc-price {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
  justify-self: end;
  text-align: right;
}

.svc-row .svc-arrow {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  justify-self: end;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.svc-row .svc-arrow svg {
  width: 17px;
  height: 17px;
}

@media (hover: hover) and (pointer: fine) {
  .svc-row:hover {
    padding-left: 20px;
    padding-right: 10px;
  }

  /* Mode Clair : survol noir encre + texte blanc */
  :root:not([data-theme="dark"]) .svc-row:hover,
  html[data-theme="light"] .svc-row:hover,
  body.theme-light .svc-row:hover {
    background: var(--ink);
    border-bottom-color: var(--ink);
  }

  :root:not([data-theme="dark"]) .svc-row:hover h3,
  html[data-theme="light"] .svc-row:hover h3,
  body.theme-light .svc-row:hover h3 {
    color: var(--white);
  }

  :root:not([data-theme="dark"]) .svc-row:hover .svc-desc,
  :root:not([data-theme="dark"]) .svc-row:hover .svc-price,
  html[data-theme="light"] .svc-row:hover .svc-desc,
  html[data-theme="light"] .svc-row:hover .svc-price,
  body.theme-light .svc-row:hover .svc-desc,
  body.theme-light .svc-row:hover .svc-price {
    color: var(--muted-dark);
  }

  /* Mode Sombre : survol blanc éclatant + texte noir (comme d'origine) */
  html[data-theme="dark"] .svc-row:hover,
  body.theme-dark .svc-row:hover {
    background: #ffffff;
    border-bottom-color: #ffffff;
  }

  html[data-theme="dark"] .svc-row:hover h3,
  body.theme-dark .svc-row:hover h3 {
    color: #101114;
  }

  html[data-theme="dark"] .svc-row:hover .svc-desc,
  html[data-theme="dark"] .svc-row:hover .svc-price,
  body.theme-dark .svc-row:hover .svc-desc,
  body.theme-dark .svc-row:hover .svc-price {
    color: #555555;
  }

  .svc-row:hover .svc-num {
    color: var(--red);
  }

  .svc-row:hover .svc-arrow {
    background: var(--red);
    border-color: var(--red);
    color: var(--white);
    transform: rotate(-45deg);
  }
}

.svc-note {
  margin-top: 18px;
  font-size: 0.85rem;
}

@media (max-width: 900px) {
  .svc-row {
    grid-template-columns: 36px 1fr 36px;
    grid-template-areas:
      'num main arrow'
      'num meta arrow';
    row-gap: 6px;
    column-gap: 12px;
    padding: 18px 8px;
    align-items: center;
  }

  .svc-row .svc-num {
    grid-area: num;
    font-size: 0.8rem;
  }

  .svc-row .svc-main {
    grid-area: main;
  }

  .svc-row .svc-main h3 {
    font-size: 1.1rem;
  }

  .svc-row .svc-desc {
    display: none;
  }

  .svc-row .svc-price {
    grid-area: meta;
    justify-self: start;
    text-align: left;
    white-space: normal;
    font-size: 0.82rem;
    color: var(--red);
    font-weight: 600;
  }

  .svc-row .svc-arrow {
    grid-area: arrow;
    align-self: center;
    width: 36px;
    height: 36px;
  }
}

/* ── 10. FLOTTE ── */
.section.on-white {
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.fleet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  transition: opacity 0.35s var(--ease);
}

/* Tant que content.js n'a pas appliqué le catalogue (data/fleet.json),
   la grille reste invisible pour éviter l'affichage furtif des
   anciennes photos/textes du HTML. Filet de sécurité : elle
   réapparaît d'elle-même après 3 s si le script ne répond pas. */
html.er-js .fleet-grid:not(.is-hydrated) {
  opacity: 0;
  animation: er-fleet-fallback 0s linear 3s forwards;
}

@keyframes er-fleet-fallback {
  to { opacity: 1; }
}

.fleet-grid>* {
  min-width: 0;
}

.vehicle-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 0.2s var(--ease), transform 0.25s var(--ease);
}

.vehicle-card:hover {
  border-color: var(--fg);
  transform: translateY(-4px);
}

.vehicle-card.featured {
  border-color: var(--fg);
  border-top: 3px solid var(--red);
}

.vehicle-visual {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.vehicle-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

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

.vehicle-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 24px;
}

.vehicle-body h3 {
  margin-bottom: 6px;
}

.vehicle-body .v-desc {
  font-size: 0.92rem;
  margin-bottom: 16px;
}

.spec-list {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.spec-list li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 0.88rem;
  color: var(--text);
  overflow-wrap: break-word;
}

.spec-list li::before {
  content: '—';
  color: var(--red);
  font-weight: 600;
  flex-shrink: 0;
}

.vehicle-body .price {
  margin-top: auto;
  font-size: 1.25rem;
  padding-top: 16px;
  margin-bottom: 16px;
}

.vehicle-body .btn {
  width: 100%;
}

.vehicle-card .badge {
  align-self: flex-start;
  margin: 16px 24px -8px;
  background: var(--fg);
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
}

@media (max-width: 960px) {
  .fleet-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .vehicle-body {
    padding: 18px 16px;
  }

  .vehicle-body .price {
    font-size: 1.15rem;
    padding-top: 12px;
    margin-bottom: 14px;
  }

  .vehicle-card .badge {
    margin: 12px 16px -6px;
  }
}

/* ── 11. FONCTIONNEMENT (3 ÉTAPES) ── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  overflow: hidden;
  background: var(--surface);
}

.steps-grid>* {
  min-width: 0;
}

.step-item {
  padding: clamp(22px, 3vw, 36px);
  border-right: 1px solid var(--line-strong);
}

.step-item:last-child {
  border-right: none;
}

.step-item .step-num {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  font-weight: 600;
  color: transparent;
  -webkit-text-stroke: 1px var(--fg);
  line-height: 1;
  margin-bottom: 18px;
}

.step-item h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.step-item p {
  font-size: 0.92rem;
}

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

  .step-item {
    border-right: none;
    border-bottom: 1px solid var(--line-strong);
  }

  .step-item:last-child {
    border-bottom: none;
  }
}

/* ── 12. GARANTIES / ENGAGEMENTS (grille à filets — marges corrigées) ── */
.guarantees-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--fg);
  border-left: 1px solid var(--line-strong);
}

.guarantees-grid>* {
  min-width: 0;
}

.guarantee-cell {
  padding: 26px 22px 28px;
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.guarantee-cell .g-icon {
  color: var(--red);
  margin-bottom: 14px;
}

.guarantee-cell .g-icon svg {
  width: 26px;
  height: 26px;
}

.guarantee-cell h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.guarantee-cell p {
  font-size: 0.88rem;
}

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

  .guarantee-cell {
    padding: 22px 18px;
  }
}

@media (max-width: 560px) {
  .guarantees-grid {
    grid-template-columns: 1fr;
    border-left: 1px solid var(--line-strong);
  }

  .guarantee-cell {
    border-right: 1px solid var(--line-strong);
    padding: 20px 16px;
  }
}

/* ── 13. HERO DES PAGES INTERNES ── */
.page-hero {
  background: var(--ink);
  color: var(--white);
  /* Remonte sous l'en-tête transparent (+1px de bordure d'en-tête) */
  margin-top: calc(-1 * var(--header-h) - 1px);
  padding: calc(clamp(52px, 8vw, 92px) + var(--header-h)) 0 clamp(52px, 8vw, 92px);
}

@media (max-width: 1024px) {
  .page-hero {
    margin-top: calc(-1 * var(--header-h-mobile) - 1px);
    padding-top: calc(clamp(52px, 8vw, 92px) + var(--header-h-mobile));
  }
}

.page-hero h1 {
  color: var(--white);
  margin: 18px 0 16px;
}

.page-hero p {
  color: var(--muted-dark);
  font-size: clamp(1rem, 1vw + 0.6rem, 1.12rem);
  max-width: 58ch;
}

.page-hero .page-meta {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 28px;
}

.page-hero .page-meta span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted-dark);
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.page-hero .page-meta span::before {
  content: '—';
  color: var(--red);
}

/* ── 14. SECTIONS DÉTAIL SERVICES ── */
.service-detail {
  padding: clamp(52px, 8vw, 96px) 0;
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

@media (max-width: 900px) {
  .service-detail {
    scroll-margin-top: calc(var(--header-h-mobile) + 12px);
  }
}

.service-detail.on-white {
  background: var(--surface);
}

.service-detail-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.service-detail-grid>* {
  min-width: 0;
}

.service-detail-grid.reverse .detail-img {
  order: -1;
}

.service-detail .kicker {
  margin-bottom: 14px;
}

.service-detail h2 {
  margin-bottom: 14px;
}

.service-detail .detail-desc {
  margin-bottom: 22px;
}

.check-list {
  display: grid;
  gap: 10px;
  margin-bottom: 26px;
}

.check-list li {
  position: relative;
  padding-left: 24px;
  font-size: 0.94rem;
  color: var(--text);
  overflow-wrap: break-word;
}

.check-list li::before {
  content: '—';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--red);
  font-weight: 600;
}

.detail-img {
  position: relative;
  max-width: 100%;
}

.detail-img::before {
  content: '';
  position: absolute;
  inset: 12px -12px -12px 12px;
  border: 1px solid var(--red);
}

.detail-img img {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3.2;
  object-fit: cover;
  z-index: 1;
}

/* Encadré tarif dans un détail service */
.price-box {
  border: 1px solid var(--fg);
  border-radius: 4px;
  padding: 16px 20px;
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 20px;
  background: var(--surface);
}

.price-box .price-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.price-box .price {
  font-size: 1.15rem;
}

@media (max-width: 960px) {

  .service-detail-grid,
  .service-detail-grid.reverse {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .service-detail-grid .detail-img,
  .service-detail-grid.reverse .detail-img {
    order: -1;
    max-width: 100%;
    margin: 0 auto 12px;
    width: 100%;
  }

  .detail-img img {
    aspect-ratio: 16 / 10;
  }

  .detail-img::before {
    inset: 8px -8px -8px 8px;
  }
}

@media (max-width: 560px) {
  .price-box {
    padding: 14px 16px;
    gap: 6px 14px;
  }

  .price-box .price {
    font-size: 1.05rem;
  }
}

@media (max-width: 480px) {
  .detail-img::before {
    inset: 6px -6px -6px 6px;
  }
}

/* ── 15. TABLEAUX TARIFAIRES ── */
.rules-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px 48px;
}

.rules-grid>* {
  min-width: 0;
}

.rules-grid h3 {
  font-size: 1.05rem;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .rules-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--fg);
  border-radius: 4px;
  background: var(--surface);
  margin-bottom: 16px;
  display: block;
}

.tariff-table {
  width: 100%;
  min-width: 500px;
  border-collapse: collapse;
}

.tariff-table th,
.tariff-table td {
  padding: 12px 16px;
  text-align: left;
  font-size: 0.88rem;
  border-bottom: 1px solid var(--line);
}

.tariff-table th {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
}

.tariff-table tr:last-child td {
  border-bottom: none;
}

.tariff-table .tariff-price {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--red);
  white-space: nowrap;
}

.table-note {
  font-size: 0.84rem;
  margin-bottom: 8px;
}

/* ── 16. ASSISTANT D'ESTIMATION ── */
.estimator {
  padding: clamp(40px, 7vw, 84px) 0;
  scroll-margin-top: 84px;
}

.wizard-card {
  max-width: 840px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--fg);
  border-radius: 4px;
  padding: clamp(18px, 4vw, 44px);
  min-width: 0;
}

.wizard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  padding-bottom: 16px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.wizard-step-tag {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.wizard-step-tag strong {
  color: var(--red);
  font-weight: 600;
}

.wizard-breadcrumb {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--muted);
  text-align: right;
  overflow-wrap: break-word;
}

.wizard-breadcrumb .crumb-sep {
  color: var(--red);
  margin: 0 6px;
}

.wizard-header {
  margin-bottom: 24px;
}

.wizard-header h2 {
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  margin-bottom: 8px;
}

.wizard-header p {
  font-size: 0.94rem;
}

.wizard-options {
  display: grid;
  gap: 12px;
}

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

@media (max-width: 680px) {
  .wizard-options.cols-2 {
    grid-template-columns: 1fr;
  }
}

.opt-card {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  text-align: left;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.opt-card:hover {
  border-color: var(--fg);
  background: var(--surface);
  transform: translateX(4px);
}

.opt-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--fg);
  transition: background 0.2s var(--ease), color 0.2s var(--ease),
    border-color 0.2s var(--ease);
}

.opt-icon svg {
  width: 20px;
  height: 20px;
}

.opt-card:hover .opt-icon {
  background: var(--red);
  border-color: var(--red);
  color: var(--white);
}

.opt-content {
  flex: 1;
  min-width: 0;
}

.opt-content h3 {
  font-size: 1.02rem;
  margin-bottom: 3px;
}

.opt-content p {
  font-size: 0.84rem;
  line-height: 1.45;
}

.opt-arrow {
  flex-shrink: 0;
  color: var(--muted);
  transition: color 0.2s var(--ease), transform 0.2s var(--ease);
}

.opt-arrow svg {
  width: 18px;
  height: 18px;
}

.opt-card:hover .opt-arrow {
  color: var(--red);
  transform: translateX(3px);
}

.wizard-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.btn-text {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.btn-text:hover {
  color: var(--red);
}

.btn-text svg {
  width: 15px;
  height: 15px;
}

/* Résultat */
.wizard-result {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--fg);
  border-radius: 4px;
  padding: clamp(20px, 4vw, 44px);
  min-width: 0;
}

.result-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding-bottom: 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--fg);
  width: 100%;
}

.result-tag svg {
  width: 15px;
  height: 15px;
  color: var(--red);
}

.result-title {
  font-size: clamp(1.3rem, 2.4vw, 1.8rem);
  margin-bottom: 8px;
}

.result-desc {
  font-size: 0.94rem;
  margin-bottom: 24px;
}

.result-price {
  border: 1px solid var(--fg);
  border-left: 4px solid var(--red);
  border-radius: 4px;
  padding: 22px 20px;
  margin-bottom: 24px;
  background: var(--surface);
}

.result-price .r-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.result-price .r-amount {
  font-family: var(--font-mono);
  font-size: clamp(1.8rem, 7vw, 3rem);
  font-weight: 600;
  color: var(--red);
  line-height: 1.1;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.result-price .r-amount .r-cur {
  font-size: 0.45em;
  color: var(--fg);
  margin-left: 8px;
}

.result-price .r-sub {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-top: 8px;
}

.result-includes {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 24px;
}

.result-includes h4 {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.result-includes ul {
  display: grid;
  gap: 10px;
}

.result-includes li {
  display: flex;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text);
  overflow-wrap: break-word;
}

.result-includes li svg {
  width: 15px;
  height: 15px;
  color: var(--red);
  flex-shrink: 0;
  margin-top: 4px;
}

.result-notice {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: var(--muted);
  border-left: 3px solid var(--red);
  padding: 4px 0 4px 14px;
  margin-bottom: 24px;
}

.result-notice svg {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--red);
}

.result-notice strong {
  color: var(--fg);
}

/* Bloc réservation */
.booking-box {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  padding: 22px 20px;
  margin-bottom: 24px;
}

.booking-box h3 {
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.booking-box>p {
  font-size: 0.88rem;
  margin-bottom: 18px;
}

.booking-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 20px;
}

.booking-grid>* {
  min-width: 0;
}

.booking-grid .full-width {
  grid-column: 1 / -1;
}

.booking-grid label {
  display: grid;
  gap: 6px;
}

.booking-grid label span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.booking-grid input {
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  font-size: 1rem;
  /* ≥16px : évite le zoom auto au focus sur iOS */
  transition: border-color 0.2s var(--ease);
}

.booking-grid input:focus {
  outline: none;
  border-color: var(--red);
}

.booking-actions {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .opt-card {
    padding: 14px 14px;
    gap: 12px;
  }

  .opt-icon {
    width: 40px;
    height: 40px;
  }

  .opt-icon svg {
    width: 18px;
    height: 18px;
  }

  .opt-content h3 {
    font-size: 0.98rem;
  }

  .opt-content p {
    font-size: 0.82rem;
  }

  .result-price {
    padding: 18px 16px;
  }

  .result-includes {
    padding: 16px;
  }

  .booking-box {
    padding: 18px 16px;
  }

  .wizard-breadcrumb {
    font-size: 0.72rem;
    text-align: left;
  }

  .booking-grid,
  .booking-actions {
    grid-template-columns: 1fr;
  }
}

.booking-actions .btn {
  width: 100%;
}

.result-footer {
  display: flex;
  justify-content: center;
  gap: 22px;
  flex-wrap: wrap;
}

/* ── 17. CONTACT ── */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: clamp(28px, 4vw, 48px);
  align-items: start;
}

.contact-grid>* {
  min-width: 0;
}

.contact-cards {
  display: grid;
  gap: 14px;
}

.contact-card {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  padding: 20px 22px;
  display: grid;
  grid-template-columns: 46px 1fr;
  gap: 16px;
  align-items: start;
  transition: border-color 0.2s var(--ease);
}

.contact-card>* {
  min-width: 0;
}

.contact-card:hover {
  border-color: var(--fg);
}

.contact-card .c-icon {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  color: var(--red);
}

.contact-card .c-icon svg {
  width: 20px;
  height: 20px;
}

.contact-card h3 {
  font-size: 1.02rem;
  margin-bottom: 4px;
}

.contact-card p {
  font-size: 0.86rem;
}

.contact-card .phone-num {
  display: inline-block;
  margin-top: 10px;
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--fg);
  border-bottom: 2px solid var(--red);
}

.contact-card .phone-num:hover {
  color: var(--red);
}

.contact-card .c-sub {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contact-form-card {
  border: 1px solid var(--fg);
  border-radius: 4px;
  background: var(--surface);
  padding: clamp(20px, 3.5vw, 36px);
  min-width: 0;
}

.contact-form-card h2 {
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.contact-form {
  display: grid;
  gap: 16px;
  margin-top: 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-row>* {
  min-width: 0;
}

.contact-form label {
  display: grid;
  gap: 6px;
}

.contact-form label span {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  min-height: 48px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 3px;
  background: var(--surface);
  font-size: 1rem;
  /* ≥16px : évite le zoom auto au focus sur iOS */
  transition: border-color 0.2s var(--ease);
}

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

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: var(--surface);
}

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

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

  .contact-card {
    padding: 16px;
    grid-template-columns: 38px 1fr;
    gap: 12px;
  }

  .contact-card .c-icon {
    width: 38px;
    height: 38px;
  }

  .contact-card .phone-num {
    font-size: 1.02rem;
  }

  .contact-form-card {
    padding: 20px 16px;
  }
}

/* Paiements : puces sobres sans emoji */
.payment-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.payment-chip {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fg);
  border: 1px solid var(--fg);
  border-radius: 3px;
  padding: 10px 16px;
  background: var(--surface);
}

@media (max-width: 560px) {
  .payment-chip {
    padding: 8px 12px;
    font-size: 0.74rem;
  }
}

/* Zones */
.zones-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.zones-grid>* {
  min-width: 0;
}

.zone-card {
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  background: var(--surface);
  padding: 24px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s var(--ease);
}

.zone-card:hover {
  border-color: var(--fg);
}

.zone-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--red);
  margin-bottom: 12px;
}

.zone-card h3 {
  font-size: 1.2rem;
  margin-bottom: 10px;
}

.zone-card .zone-areas {
  font-size: 0.9rem;
  margin-bottom: 20px;
  flex: 1;
}

@media (max-width: 960px) {
  .zones-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin-inline: auto;
  }
}

@media (max-width: 560px) {
  .zone-card {
    padding: 20px 16px;
  }
}

/* ── 18. CTA FINAL ── */
/* Îlot clair avant le footer : le bandeau encre ressort nettement */
.final-cta {
  --paper: #faf8f4;
  --surface: #ffffff;
  --surface-2: #f1efe9;
  --fg: #101114;
  --text: #1c1e22;
  --muted: #6e6a62;
  --line: #e2ddd4;
  --line-strong: #c9c2b6;
  background: #faf8f4;
  color: var(--text);
  padding: clamp(56px, 9vw, 100px) 0;
  position: relative;
  overflow: hidden;
}

.final-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--red);
}

.final-cta .kicker {
  color: var(--muted);
}

.final-cta .btn-ghost {
  color: var(--fg);
  border-color: var(--fg);
}

.final-cta .btn-ghost:hover {
  background: var(--fg);
  color: var(--paper);
}

.final-cta h2 {
  color: var(--fg);
  max-width: 720px;
  margin: 16px 0 14px;
}

.final-cta p {
  color: var(--muted);
  max-width: 560px;
  margin-bottom: 32px;
}

/* ── 19. FOOTER ── */
.site-footer {
  background: var(--ink);
  color: var(--muted-dark);
  border-top: 1px solid var(--line-dark);
  padding: clamp(48px, 6vw, 72px) 0 0;
  font-size: 0.9rem;
}

.site-footer.on-dark {
  border-top: none;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.3fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: 48px;
}

.footer-grid>* {
  min-width: 0;
}

.footer-brand .logo {
  margin-bottom: 16px;
}

.footer-brand .logo .logo-text {
  color: var(--white);
}

.footer-brand p {
  color: var(--muted-dark);
  font-size: 0.88rem;
}

.footer-brand .tagline {
  margin-top: 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--white);
}

.footer-brand .tagline em {
  font-style: normal;
  color: var(--red);
}

.footer-social {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.social-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line-dark);
  border-radius: 999px;
  color: var(--muted-dark);
  font-size: 0.82rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}

.social-btn svg {
  flex-shrink: 0;
  width: 16px;
  height: 16px;
}

.social-btn.facebook:hover {
  background: #1877f2;
  border-color: #1877f2;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(24, 119, 242, 0.35);
}

.social-btn.instagram:hover {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
  border-color: #dc2743;
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(220, 39, 67, 0.35);
}

.site-footer .f-title {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 16px;
}

.site-footer .f-links {
  display: grid;
  gap: 9px;
}

.site-footer .f-links a {
  color: var(--muted-dark);
}

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

.footer-phones .phone-num {
  display: block;
  font-size: 1rem;
  color: var(--white);
  margin-bottom: 8px;
}

.footer-phones .phone-num:hover {
  color: var(--red);
}

.footer-phones .p-label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding: 20px 0 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 0.8rem;
  margin: 0;
}

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

@media (max-width: 560px) {
  .footer-grid {
    grid-template-columns: 1fr;
    padding-bottom: 28px;
  }
}

/* ── 20. BARRE D'ACTIONS MOBILE ── */
.mobile-actions {
  display: none;
}

@media (max-width: 768px) {
  body {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-actions {
    position: fixed;
    z-index: 90;
    left: 12px;
    right: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    display: grid;
    grid-template-columns: 1.15fr 0.85fr 1fr;
    gap: 8px;
    padding: 8px;
    border-radius: 8px;
    background: rgba(250, 248, 244, 0.97);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #e2ddd4;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
  }

  .mobile-actions a {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border-radius: 4px;
    color: var(--white);
    font-family: var(--font-mono);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    text-align: center;
    padding: 0 4px;
  }

  .mobile-actions a:nth-child(1) {
    background: var(--red);
  }

  .mobile-actions a:nth-child(2) {
    background: transparent;
    color: #101114;
    border: 1px solid #c9c2b6;
  }

  .mobile-actions a:nth-child(3) {
    background: var(--wa);
  }
}

@media (max-width: 380px) {
  .mobile-actions {
    left: 8px;
    right: 8px;
    bottom: calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
    padding: 6px;
  }

  .mobile-actions a {
    font-size: 0.74rem;
    min-height: 40px;
  }
}

/* ── 21. ANIMATIONS ── */
@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes riseIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: riseIn 0.4s var(--ease) both;
}

.reveal {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.75s var(--ease) var(--d, 0ms), transform 0.75s var(--ease) var(--d, 0ms);
  }

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

/* ============================================================
   22. MOTION PREMIUM — transitions de pages & chorégraphies
   ============================================================ */

/* View Transitions API (Chrome, Edge, Safari 18+) — 60 FPS GPU-composited */
@media (prefers-reduced-motion: no-preference) {
  ::view-transition-old(root) {
    animation: 0.18s cubic-bezier(0.4, 0, 0.2, 1) both vt-fade-out;
  }

  ::view-transition-new(root) {
    animation: 0.22s cubic-bezier(0, 0, 0.2, 1) both vt-fade-in;
  }
}

@keyframes vt-fade-out {
  from {
    opacity: 1;
    transform: translateY(0);
  }

  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes vt-fade-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Sortie de page en repli (navigateurs sans View Transitions) */
body.page-leaving main {
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.12s var(--ease), transform 0.12s var(--ease);
  pointer-events: none;
}

/* Chorégraphie du hero (accueil) : cascade du contenu, photo en rideau */
@media (prefers-reduced-motion: no-preference) {
  .hero-content>* {
    opacity: 0;
    animation: heroRise 0.85s var(--ease) forwards;
  }

  .hero-content>*:nth-child(1) {
    animation-delay: 0.05s;
  }

  .hero-content>*:nth-child(2) {
    animation-delay: 0.15s;
  }

  .hero-content>*:nth-child(3) {
    animation-delay: 0.25s;
  }

  .hero-content>*:nth-child(4) {
    animation-delay: 0.34s;
  }

  .hero-content>*:nth-child(5) {
    animation-delay: 0.44s;
  }

  .hero-bg {
    clip-path: inset(0 0 100% 0);
    animation: heroUnveil 1.1s var(--ease) 0.15s forwards,
      heroZoom 2.2s cubic-bezier(0.22, 1, 0.36, 1) 0.2s backwards;
    will-change: transform;
  }

  .hero .hero-tag {
    opacity: 0;
    animation: heroRise 0.6s var(--ease) 0.85s forwards;
  }
}

@keyframes heroZoom {
  from {
    transform: scale(1.52);
  }

  to {
    transform: scale(1.4);
  }
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(26px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes heroUnveil {
  to {
    clip-path: inset(0);
  }
}

@keyframes lineIn {
  to {
    opacity: 1;
  }
}

/* Titres de section : le filet supérieur se trace de gauche à droite */
@media (prefers-reduced-motion: no-preference) {
  .section-head {
    border-top-color: transparent;
  }

  .section-head::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--fg);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.9s var(--ease) 0.1s;
  }

  .section-head.revealed::before {
    transform: scaleX(1);
  }
}

/* Révélation en rideau des photos au scroll */
@media (prefers-reduced-motion: no-preference) {

  .vehicle-card .vehicle-visual img,
  .service-detail-grid .detail-img img {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s var(--ease) 0.15s;
  }

  .vehicle-card.revealed .vehicle-visual img,
  .service-detail-grid.revealed .detail-img img {
    clip-path: inset(0);
  }
}

/* Cascade des options de l'assistant d'estimation */
@media (prefers-reduced-motion: no-preference) {
  .wizard-options .opt-card {
    animation: optIn 0.5s var(--ease) both;
  }

  .wizard-options .opt-card:nth-child(2) {
    animation-delay: 0.05s;
  }

  .wizard-options .opt-card:nth-child(3) {
    animation-delay: 0.1s;
  }

  .wizard-options .opt-card:nth-child(4) {
    animation-delay: 0.15s;
  }

  .wizard-options .opt-card:nth-child(5) {
    animation-delay: 0.2s;
  }

  .wizard-options .opt-card:nth-child(6) {
    animation-delay: 0.25s;
  }
}

@keyframes optIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

/* Liens du menu mobile en cascade */
@media (prefers-reduced-motion: no-preference) {
  .main-nav.open>a {
    animation: navIn 0.45s var(--ease) both;
  }

  .main-nav.open>a:nth-child(2) {
    animation-delay: 0.04s;
  }

  .main-nav.open>a:nth-child(3) {
    animation-delay: 0.08s;
  }

  .main-nav.open>a:nth-child(4) {
    animation-delay: 0.12s;
  }

  .main-nav.open>a:nth-child(5) {
    animation-delay: 0.16s;
  }
}

@keyframes navIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* Curseur de durée de course (assistant) */
.duration-box {
  padding: 8px 2px 2px;
}

.duration-readout {
  font-family: var(--font-mono);
  font-size: clamp(2.4rem, 6vw, 3rem);
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.03em;
  line-height: 1;
}

.duration-readout .duration-unit {
  font-size: 0.4em;
  font-weight: 500;
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.duration-hint {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
  margin: 12px 0 20px;
  min-height: 1.4em;
}

.duration-hint .accent {
  color: var(--red);
  font-weight: 600;
}

.duration-range {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 26px;
  background: transparent;
  cursor: pointer;
}

.duration-range::-webkit-slider-runnable-track {
  height: 2px;
  background: var(--line-strong);
}

.duration-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -10px;
  border-radius: 50%;
  background: var(--fg);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--fg);
  transition: background 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.duration-range:active::-webkit-slider-thumb,
.duration-range:focus-visible::-webkit-slider-thumb {
  background: var(--red);
  box-shadow: 0 0 0 1.5px var(--red);
}

.duration-range::-moz-range-track {
  height: 2px;
  background: var(--line-strong);
}

.duration-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--fg);
  border: 3px solid var(--paper);
  box-shadow: 0 0 0 1.5px var(--fg);
}

.duration-scale {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}

.duration-box .btn {
  width: 100%;
  margin-top: 20px;
}

/* Cartes véhicule : silhouette vectorielle + entrée latérale */
.opt-card--visual {
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  position: relative;
  padding-top: 12px;
}

.opt-card--visual .opt-arrow {
  position: absolute;
  top: 14px;
  right: 14px;
}

.opt-visual {
  width: 100%;
  height: 96px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.opt-visual svg {
  width: min(220px, 82%);
  height: auto;
  transition: transform 0.35s var(--ease);
}

.opt-card--visual:hover .opt-visual svg {
  transform: translateX(6px);
}

@keyframes carInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
}

@keyframes carInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
}

@media (prefers-reduced-motion: no-preference) {
  body:not(.no-js) .opt-visual--left svg {
    animation: carInLeft 0.65s var(--ease) backwards 0.1s;
  }

  body:not(.no-js) .opt-visual--right svg {
    animation: carInRight 0.65s var(--ease) backwards 0.2s;
  }
}

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  z-index: 300;
  pointer-events: none;
}

/* ── Galerie équipe : mosaïque éditoriale (6 portraits) ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 170px;
  grid-template-areas:
    'a a b c'
    'a a d e'
    'f f d e';
  gap: 14px;
}

.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  background: var(--line);
}

.gallery-item img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Focal haut : privilégie les visages sur les portraits recadrés */
  object-position: center 20%;
  filter: grayscale(1) contrast(1.04);
  transform: scale(1.01);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}

.gallery-item:hover img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.045);
}

.gi-a {
  grid-area: a;
}

.gi-b {
  grid-area: b;
}

.gi-c {
  grid-area: c;
}

.gi-d {
  grid-area: d;
}

.gi-e {
  grid-area: e;
}

.gi-f {
  grid-area: f;
}

/* Révélation en rideau au scroll */
@media (prefers-reduced-motion: no-preference) {
  .gallery-item img {
    clip-path: inset(0 0 100% 0);
    transition: clip-path 0.9s var(--ease) 0.1s, filter 0.5s var(--ease), transform 0.6s var(--ease);
  }

  .gallery-item.revealed img {
    clip-path: inset(0);
  }
}

@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: auto;
    grid-template-areas: none;
  }

  .gallery-item {
    grid-area: auto;
    aspect-ratio: 3 / 4;
  }

  .gi-a,
  .gi-f {
    grid-column: span 2;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 560px) {
  .gallery-grid {
    gap: 10px;
  }
}

/* Trio photo pour une section détail (EasyFlash) */
.detail-img--stack img:first-child {
  aspect-ratio: 16 / 10;
}

.detail-img--stack .stack-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
  position: relative;
  z-index: 1;
}

.detail-img--stack .stack-row img {
  aspect-ratio: 4 / 3;
}

/* Sélecteur de langue FR / EN */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  flex-shrink: 0;
}

.lang-switch button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 6px 7px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.lang-switch button:hover {
  color: var(--fg);
}

.lang-switch button.active {
  color: var(--fg);
  border-bottom-color: var(--red);
}

.lang-switch>span {
  color: var(--line-strong);
  font-size: 0.75rem;
}

/* Focus clavier net et premium */
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .scroll-progress {
    display: none;
  }
}

/* ══════════════════ 20. ESPACE FLOTTE & FICHES VÉHICULES ══════════════════ */

/* Cartes de flotte sur le site public */
.vehicle-card .vehicle-visual {
  position: relative;
}

.btn-card-sheet {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(16, 17, 20, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
  z-index: 2;
}

.btn-card-sheet:hover {
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
}

.vehicle-card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: auto;
  padding-top: 18px;
}

.btn-text-sheet {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 0;
  text-align: center;
  transition: color 0.2s var(--ease);
}

.btn-text-sheet:hover {
  color: var(--red);
}

/* Cartes véhicules dans l'Estimateur */
.opt-card--vehicle {
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  overflow: hidden;
  position: relative;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
  transition: border-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}

.opt-card--vehicle:hover {
  border-color: var(--fg);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.opt-veh-select-btn {
  width: 100%;
  background: none;
  border: none;
  padding: 16px 18px 12px;
  text-align: left;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font: inherit;
  color: inherit;
  flex: 1;
  box-sizing: border-box;
}

.opt-veh-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.opt-veh-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--fg);
  transition: background 0.2s, color 0.2s;
}

.opt-card--vehicle:hover .opt-veh-badge {
  background: var(--red);
  color: #fff;
}

.opt-veh-visual {
  width: 100%;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px 0;
  overflow: hidden;
}

.opt-veh-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 6px;
}

.opt-veh-visual span {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.opt-veh-visual svg {
  width: min(200px, 85%);
  height: auto;
  transition: transform 0.3s var(--ease);
}

.opt-card--vehicle:hover .opt-veh-visual svg {
  transform: translateX(6px);
}

.opt-veh-body {
  width: 100%;
}

.opt-veh-body h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--fg);
}

.opt-veh-desc {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.45;
  margin: 0 0 8px;
}

.opt-veh-caps {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}

.opt-veh-caps span {
  font-size: 11px;
  font-weight: 600;
  background: var(--surface-2);
  color: var(--fg);
  padding: 3px 8px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.opt-veh-caps span i {
  width: 12px;
  height: 12px;
  color: var(--red);
}

.opt-veh-models {
  font-size: 11.5px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.opt-veh-models i {
  width: 13px;
  height: 13px;
  color: var(--divi-green, #10b981);
}

.opt-veh-sheet-trigger {
  width: 100%;
  background: var(--surface-2);
  border: none;
  border-top: 1px solid var(--line);
  padding: 9px 16px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}

.opt-veh-sheet-trigger:hover {
  background: var(--surface);
  color: var(--red);
}

.opt-veh-sheet-trigger i {
  width: 14px;
  height: 14px;
}

/* Modale Fiche Technique du Véhicule */
.veh-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.veh-sheet-overlay[hidden],
.veh-sheet-overlay[aria-hidden="true"],
.veh-sheet-overlay.is-hidden,
[hidden] {
  display: none !important;
}

.veh-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 17, 20, 0.75);
  backdrop-filter: blur(8px);
}

.veh-sheet-dialog {
  position: relative;
  z-index: 2;
  width: min(880px, 100%);
  max-height: 90vh;
  background: var(--surface);
  color: var(--fg);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.veh-sheet-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.veh-sheet-badge {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--surface-2);
  color: var(--fg);
  display: inline-block;
  margin-bottom: 6px;
}

.veh-sheet-badge.featured {
  background: var(--red);
  color: #fff;
}

.veh-sheet-header h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  color: var(--fg);
}

.veh-sheet-header .veh-models {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}

.veh-sheet-close {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--fg);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  flex-shrink: 0;
}

.veh-sheet-close:hover {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.veh-sheet-body {
  padding: 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 28px;
}

.veh-sheet-visual-col {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.veh-sheet-main-img-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}

.veh-sheet-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.veh-sheet-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.veh-thumb {
  width: 64px;
  height: 46px;
  border-radius: 6px;
  overflow: hidden;
  border: 2px solid transparent;
  background: #000;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  opacity: 0.7;
  transition: opacity 0.2s, border-color 0.2s;
}

.veh-thumb.active {
  opacity: 1;
  border-color: var(--red);
}

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

.veh-sheet-info-col {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.veh-sheet-tagline {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
}

.veh-sheet-desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--fg);
}

.veh-specs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.veh-spec-item {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.veh-spec-item .spec-icon {
  color: var(--red);
  display: flex;
  align-items: center;
}

.veh-spec-item .spec-label {
  display: block;
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
}

.veh-spec-item strong {
  font-size: 13px;
  color: var(--fg);
}

.veh-amenities-box,
.veh-rates-box {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
}

.veh-amenities-box h4,
.veh-rates-box h4 {
  margin: 0 0 10px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  font-weight: 700;
}

.veh-amenities-box ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.veh-amenities-box li {
  font-size: 12.5px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--fg);
}

.veh-amenities-box li i {
  color: var(--red);
  width: 14px;
  height: 14px;
}

.veh-rates-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.veh-rates-chips span {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
}

.veh-rates-chips strong {
  color: var(--red);
  font-weight: 700;
}

.veh-sheet-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--surface-2);
}

@media (max-width: 768px) {
  .veh-sheet-body {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .veh-amenities-box ul {
    grid-template-columns: 1fr;
  }

  .veh-sheet-footer {
    flex-direction: column-reverse;
  }

  .veh-sheet-footer button,
  .veh-sheet-footer a {
    width: 100%;
    text-align: center;
    justify-content: center;
  }
}