/* =============================================================================
   DB AUTO KEYS — feuille de style unique, sans dépendance ni compilation.
   Identité graphique alignée sur dbdriver.fr (même famille DB) :
   fond sombre, accent jaune, Outfit + Lato, cartes radius/sans ombre.
   ========================================================================= */

:root {
  --bg: #0d0d0d;
  --bg-alt: #161616;
  --surface: #1e1e1e;
  --ink: #ffffff;
  --ink-soft: rgba(255, 255, 255, 0.62);
  --ink-faint: rgba(255, 255, 255, 0.42);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);

  --accent: #ffd400;
  --accent-hover: #e6bf00;
  --accent-ink: #0d0d0d;
  --accent-soft: rgba(255, 212, 0, 0.1);
  --accent-soft-border: rgba(255, 212, 0, 0.22);

  --whatsapp: #25d366;

  --font-display: "Outfit", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Lato", "Helvetica Neue", Arial, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;

  --container: 1220px;
  --gutter: 24px;
  --header-h: 76px;
  --header-h-scrolled: 62px;
  --mobile-bar-h: 64px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

@media (min-width: 900px) {
  :root { --gutter: 40px; }
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body, h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--mobile-bar-h) + env(safe-area-inset-bottom));
}
@media (min-width: 768px) { body { padding-bottom: 0; } }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.1;
}

::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.skip-link {
  position: fixed; top: -100px; left: 16px; z-index: 200;
  background: var(--accent); color: var(--accent-ink); padding: 10px 18px;
  border-radius: 8px;
  font-weight: 700; font-size: 14px; transition: top 0.15s ease;
}
.skip-link:focus { top: 16px; }

/* ---------- Layout ---------- */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.label {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}
.label.on-accent { color: var(--accent-ink); }

/* Pastille d'ouverture du hero, dans l'esprit du ruban dbdriver.fr */
.badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-soft); border: 1px solid var(--accent-soft-border);
  color: var(--accent); border-radius: 6px; padding: 6px 14px;
  font-family: var(--font-display); font-size: 13px; font-weight: 600;
  letter-spacing: 0; text-transform: none;
}

/* ---------- Signature graphique DB AUTO KEYS ----------
   Ligne abstraite inspirée du taillage d'une clé automobile.
   Volontairement non littérale : un simple tracé technique premium,
   réutilisé à quelques endroits clés du site comme signature de marque. */
.key-signature { display: block; overflow: visible; }
.key-signature path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 300;
  stroke-dashoffset: 300;
  transition: stroke-dashoffset 1.1s var(--ease);
}
.key-signature.is-drawn path { stroke-dashoffset: 0; }

/* ---------- Reveal au scroll (IntersectionObserver) ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s var(--ease), transform 0.65s var(--ease);
}
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-group > * { transition-delay: calc(var(--i, 0) * 70ms); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .key-signature path { stroke-dashoffset: 0 !important; transition: none !important; }
  .hero-copy > * { animation: none !important; opacity: 1 !important; transform: none !important; }
  .hero-visual { transform: none !important; }
  * { scroll-behavior: auto !important; }
}

/* ---------- Header ---------- */
.site-header-bar { position: sticky; top: 0; z-index: 50; }
.site-header {
  background: rgba(13, 13, 13, 0.86);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.25s ease;
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  height: var(--header-h);
  transition: height 0.25s ease;
}
.site-header.is-scrolled { background: rgba(13, 13, 13, 0.97); }
.site-header.is-scrolled .bar { height: var(--header-h-scrolled); }

.logo { display: flex; align-items: baseline; gap: 2px; }
.logo strong {
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  letter-spacing: -0.01em; color: var(--ink);
}
.logo em {
  font-family: var(--font-display); font-weight: 500; font-style: normal;
  font-size: 19px; letter-spacing: 0.01em; color: var(--ink-soft); margin-left: 6px;
}
.logo .tick { display: inline-block; width: 5px; height: 16px; background: var(--accent); margin: 0 8px; transform: skewX(-12deg); }

.primary-nav { display: none; }
@media (min-width: 960px) {
  .primary-nav { display: flex; align-items: center; gap: 34px; }
  .primary-nav a, .nav-dropdown > summary {
    position: relative; font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--ink-soft);
    padding-bottom: 4px; transition: color 0.15s ease;
  }
  .primary-nav a::after, .nav-dropdown > summary::after {
    content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 1.5px;
    background: var(--accent); transition: right 0.25s var(--ease);
  }
  .primary-nav a:hover { color: var(--ink); }
  .primary-nav a:hover::after { right: 0; }
  .nav-dropdown:hover > summary, .nav-dropdown[open] > summary { color: var(--ink); }
  .nav-dropdown:hover > summary::after, .nav-dropdown[open] > summary::after { right: 0; }

  /* Menu déroulant « Services » : survol et clic (via <details>), clavier via :focus-within */
  .nav-dropdown { position: relative; list-style: none; cursor: pointer; }
  .nav-dropdown > summary {
    display: inline-flex; align-items: center; gap: 6px; list-style: none; cursor: pointer;
  }
  .nav-dropdown > summary::-webkit-details-marker { display: none; }
  .nav-dropdown .caret { width: 9px; height: 9px; flex-shrink: 0; transition: transform 0.2s ease; }
  .nav-dropdown[open] .caret { transform: rotate(180deg); }

  .dropdown-menu {
    position: absolute; top: calc(100% + 16px); left: 50%; transform: translateX(-50%) translateY(-6px);
    min-width: 270px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px;
    padding: 8px; margin: 0; list-style: none;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s var(--ease), visibility 0.18s;
  }
  .dropdown-menu li + li { margin-top: 2px; }
  .dropdown-menu a {
    display: block; padding: 11px 12px; border-radius: 6px;
    font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--ink-soft);
    white-space: normal; line-height: 1.3;
  }
  .dropdown-menu a:hover, .dropdown-menu a:focus-visible { background: var(--bg-alt); color: var(--accent); }
  .nav-dropdown[open] .dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0);
  }
}

/* Variante mobile du menu « Services » : <details> intégré à la liste existante */
.mobile-nav details > summary {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink);
  list-style: none; cursor: pointer;
}
.mobile-nav details > summary::-webkit-details-marker { display: none; }
.mobile-nav details > summary .caret { width: 11px; height: 11px; flex-shrink: 0; color: var(--ink-soft); transition: transform 0.2s ease; }
.mobile-nav details[open] > summary .caret { transform: rotate(180deg); }
.mobile-nav .mobile-dropdown-menu { display: flex; flex-direction: column; padding: 0 0 14px 4px; gap: 2px; }
.mobile-nav .mobile-dropdown-menu a {
  display: block; padding: 10px 0; font-family: var(--font-body); font-size: 14.5px; font-weight: 600; color: var(--ink-soft);
}
.mobile-nav .mobile-dropdown-menu a:hover, .mobile-nav .mobile-dropdown-menu a:focus-visible { color: var(--accent); }

.header-actions { display: flex; align-items: center; gap: 10px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 48px; padding: 0 24px; border-radius: 8px;
  font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
  white-space: nowrap; transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.08s ease;
}
.btn:active { transform: scale(0.97); }
.btn svg { width: 17px; height: 17px; flex-shrink: 0; transition: transform 0.2s ease; }

.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }

.btn-whatsapp { background: var(--surface); color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-whatsapp:hover { border-color: var(--whatsapp); color: var(--whatsapp); }
.btn-whatsapp svg { color: var(--whatsapp); }

.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--line-strong); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* Variante posée sur la bande d'accent jaune (CTA final) */
.btn-outline.on-accent { color: var(--accent-ink); border-color: rgba(13, 13, 13, 0.3); }
.btn-outline.on-accent:hover { border-color: var(--accent-ink); color: var(--accent-ink); background: rgba(13, 13, 13, 0.06); }

.btn-text {
  height: auto; padding: 0; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 700; color: var(--ink); border-bottom: 1.5px solid var(--accent);
  padding-bottom: 2px;
}
.btn-text:hover { color: var(--accent); }
.btn-text:hover svg { transform: translateX(3px); }

.btn-compact { height: 42px; padding: 0 18px; font-size: 13.5px; }

.header-actions .btn-primary { display: none; }
@media (min-width: 640px) { .header-actions .btn-primary { display: inline-flex; } }

/* Menu mobile (checkbox, fonctionne sans JS) */
.nav-toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.nav-toggle-label {
  display: flex; flex-direction: column; justify-content: center; align-items: flex-end;
  gap: 5px; width: 34px; height: 34px;
}
@media (min-width: 960px) { .nav-toggle-label { display: none; } }
.nav-toggle-label span { display: block; height: 2px; background: var(--ink); transition: all 0.2s ease; }
.nav-toggle-label span:nth-child(1) { width: 26px; }
.nav-toggle-label span:nth-child(2) { width: 19px; }
.nav-toggle-label span:nth-child(3) { width: 26px; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--bg);
  padding: 8px var(--gutter) 28px;
}
@media (min-width: 960px) { .mobile-nav { display: none !important; } }
#nav-toggle:checked ~ .mobile-nav { display: block; }
#nav-toggle:checked ~ .site-header-bar .nav-toggle-label span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#nav-toggle:checked ~ .site-header-bar .nav-toggle-label span:nth-child(2) { opacity: 0; }
#nav-toggle:checked ~ .site-header-bar .nav-toggle-label span:nth-child(3) { width: 26px; transform: translateY(-7px) rotate(-45deg); }

.mobile-nav ul { display: flex; flex-direction: column; }
.mobile-nav li { border-bottom: 1px solid var(--line); }
.mobile-nav li > a { display: block; padding: 16px 0; font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--ink); }
.mobile-nav .btn { margin-top: 18px; width: 100%; }

/* ---------- Sections génériques ---------- */
section { position: relative; }
.section-pad { padding-block: 72px; }
@media (min-width: 900px) { .section-pad { padding-block: 108px; } }

.rule-top { border-top: 1px solid var(--line); }
.on-accent { background: var(--accent); color: var(--accent-ink); }
.on-accent .ink-soft { color: rgba(13, 13, 13, 0.65); }
.on-alt { background: var(--bg-alt); }

.kicker-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 24px;
  margin-bottom: 40px; flex-wrap: wrap;
}
.kicker-row h2 { font-size: 30px; max-width: 560px; }
@media (min-width: 900px) { .kicker-row h2 { font-size: 38px; } }
.kicker-row .num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint); }
.kicker-row .label { display: block; margin-bottom: 10px; }
.section-intro { max-width: 620px; margin-top: 14px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }

/* ---------- HERO ---------- */
.hero { overflow: hidden; }
.hero .wrap {
  display: grid; gap: 44px;
  padding-block: 44px 56px;
}
@media (min-width: 980px) {
  .hero .wrap { grid-template-columns: 1.05fr 0.95fr; align-items: center; gap: 5%; padding-block: 64px; }
}

.hero-copy .badge-pill { margin-bottom: 20px; }

.hero h1 {
  font-size: 38px;
  letter-spacing: -0.03em;
}
@media (min-width: 640px) { .hero h1 { font-size: 50px; } }
@media (min-width: 980px) { .hero h1 { font-size: 56px; } }

.hero-copy p.lede {
  margin-top: 22px; max-width: 480px;
  font-size: 17px; line-height: 1.6; color: var(--ink-soft);
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 34px; }

.hero-facts { margin-top: 36px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; gap: 22px; flex-wrap: wrap; }
.hero-facts li { display: flex; align-items: center; gap: 8px; font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--ink); }
.hero-facts li svg { width: 15px; height: 15px; color: var(--accent); flex-shrink: 0; }

/* Apparition séquentielle très subtile au chargement (CSS pur, fonctionne sans JS) */
.hero-copy > * { opacity: 0; transform: translateY(14px); animation: hero-in 0.6s var(--ease) forwards; }
.hero-copy .badge-pill { animation-delay: 0.05s; }
.hero-copy h1 { animation-delay: 0.14s; }
.hero-copy .lede { animation-delay: 0.24s; }
.hero-copy .hero-cta { animation-delay: 0.34s; }
.hero-copy .hero-facts { animation-delay: 0.44s; }
.hero-visual { opacity: 0; transform: translateY(14px); animation: hero-in 0.7s var(--ease) 0.3s forwards; }
@keyframes hero-in { to { opacity: 1; transform: none; } }

/* Panneau visuel du hero : grand, immersif, bord coupé façon pièce automobile */
.hero-visual {
  position: relative;
  aspect-ratio: 4 / 5;
  background: var(--surface);
  border-radius: 20px;
  clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 0 100%);
  overflow: hidden;
  will-change: transform;
}
@media (min-width: 980px) { .hero-visual { aspect-ratio: 3 / 4; } }
.hero-visual::before {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background-image: repeating-linear-gradient(
    115deg, rgba(255,255,255,0.05) 0px, rgba(255,255,255,0.05) 1px,
    transparent 1px, transparent 26px
  );
}
.hero-visual img {
  position: absolute; inset: 0; z-index: 3; width: 100%; height: 100%; object-fit: cover;
}
.hero-visual .frame-corner {
  position: absolute; z-index: 2; width: 26px; height: 26px; border: 1.5px solid rgba(255,255,255,0.4);
}
.hero-visual .fc-tl { top: 20px; left: 20px; border-right: 0; border-bottom: 0; }
.hero-visual .fc-br { bottom: 44px; right: 20px; border-left: 0; border-top: 0; }
.hero-visual .visual-caption {
  position: absolute; z-index: 2; left: 20px; bottom: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 11px; color: rgba(255,255,255,0.6);
  letter-spacing: 0.02em;
}
.hero-visual .visual-mark {
  position: absolute; z-index: 2; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; opacity: 0.5;
}
.hero-visual .visual-badge {
  position: absolute; z-index: 4; top: 20px; right: 20px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em;
  color: var(--accent); text-align: right; line-height: 1.5;
}
/* Voile bas très léger pour garder la légende lisible sur une vraie photo */
.hero-visual::after {
  content: ""; position: absolute; z-index: 2; inset: auto 0 0 0; height: 42%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.65), transparent);
  pointer-events: none;
}
/* Une fois la vraie photo chargée : on efface les repères de placeholder */
.hero-visual.has-photo .visual-mark,
.hero-visual.has-photo .visual-caption { display: none; }

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .hero-visual img { transition: transform 0.6s var(--ease); }
  .hero-visual:hover img { transform: scale(1.035); }
}

/* ---------- HERO ACCUEIL — variante photo pleine largeur ----------
   N'affecte que le hero de la page d'accueil (classe additionnelle
   .hero-photo) : les règles .hero / .hero-copy / .hero-cta / .hero-facts
   ci-dessus restent inchangées et continuent de servir le hero des 3
   pages de service, qui gardent leur propre .hero-visual. */
.hero-photo { position: relative; }
.hero-photo .hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-photo .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 68% 42%; display: block; }
.hero-photo .hero-scrim {
  position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(13, 13, 13, 0.95) 0%, rgba(13, 13, 13, 0.88) 26%, rgba(13, 13, 13, 0.56) 50%, rgba(13, 13, 13, 0.2) 70%, rgba(13, 13, 13, 0.06) 92%),
    linear-gradient(to top, rgba(13, 13, 13, 0.55) 0%, rgba(13, 13, 13, 0) 32%);
}
/* En dessous de 640px, le texte occupe toute la largeur : le voile
   horizontal n'est plus suffisant (le paragraphe déborde sur la zone
   claire de la tablette) — on passe à un voile pleine largeur, plus
   sombre en haut où le texte commence. */
@media (max-width: 639px) {
  .hero-photo .hero-scrim {
    background:
      linear-gradient(to bottom, rgba(13, 13, 13, 0.82) 0%, rgba(13, 13, 13, 0.74) 60%, rgba(13, 13, 13, 0.6) 100%),
      linear-gradient(100deg, rgba(13, 13, 13, 0.55) 0%, rgba(13, 13, 13, 0.1) 75%);
  }
}
.hero-photo .wrap { position: relative; z-index: 1; display: flex; align-items: center; min-height: 560px; padding-block: 48px; }
@media (min-width: 640px) { .hero-photo .wrap { min-height: 620px; } }
@media (min-width: 980px) { .hero-photo .wrap { min-height: 720px; padding-block: 72px; } }

.hero-photo .hero-copy { max-width: 560px; }
.hero-photo .hero-copy .hero-tagline {
  margin-top: 14px; max-width: 480px;
  font-family: var(--font-display); font-weight: 700; font-size: 19px; line-height: 1.32;
  color: var(--ink);
}
@media (min-width: 640px) { .hero-photo .hero-copy .hero-tagline { font-size: 23px; } }
@media (min-width: 980px) { .hero-photo .hero-copy .hero-tagline { font-size: 26px; } }
.hero-photo .hero-copy .hero-tagline { animation-delay: 0.19s; }

/* ---------- Votre situation (choix éditoriaux, sans cartes SaaS) ---------- */
.situation-list { border-top: 1px solid var(--line-strong); }
@media (min-width: 860px) { .situation-list { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-strong); } }
@media (min-width: 1180px) { .situation-list { grid-template-columns: repeat(4, 1fr); } }

.situation-item {
  display: block; padding-block: 26px; border-bottom: 1px solid var(--line-strong);
  transition: background-color 0.25s ease;
}
@media (min-width: 860px) {
  .situation-item { border-right: 1px solid var(--line-strong); padding: 6px 32px 26px; }
  .situation-item:nth-child(2n) { border-right: none; }
  .situation-item:nth-child(-n+2) { border-bottom: 1px solid var(--line-strong); }
}
@media (min-width: 1180px) {
  .situation-item { border-bottom: none; }
  .situation-item:nth-child(2n) { border-right: 1px solid var(--line-strong); }
  .situation-item:last-child { border-right: none; }
}
.situation-item .s-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-faint);
  display: block; margin-bottom: 18px;
}
.situation-item .s-rule { width: 34px; height: 2px; background: var(--accent); margin-bottom: 18px; transition: width 0.3s var(--ease); }
.situation-item h3 { font-size: 21px; max-width: 260px; }
.situation-item p { margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: 280px; }
.situation-item .s-cta {
  margin-top: 22px; display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.situation-item .s-cta svg { width: 14px; height: 14px; transition: transform 0.25s var(--ease); }

@media (hover: hover) and (min-width: 860px) {
  .situation-item:hover { background: var(--surface); }
  .situation-item:hover .s-rule { width: 52px; }
  .situation-item:hover h3 { color: var(--accent); }
  .situation-item:hover .s-cta { color: var(--accent); }
  .situation-item:hover .s-cta svg { transform: translateX(4px); }
  .situation-item:hover { transform: translateY(-2px); }
  .situation-item { transition: background-color 0.25s ease, transform 0.25s var(--ease); }
}

.situation-divider { padding-block: 28px 0; display: flex; justify-content: center; color: var(--line-strong); }

/* Section "Votre situation" : légèrement plus compacte que les autres */
#services { padding-block: 52px; }
#services .kicker-row { margin-bottom: 26px; }
@media (min-width: 900px) { #services { padding-block: 72px; } }

/* ---------- Sections service en alternance ---------- */
.service-block .wrap {
  display: grid; gap: 32px; align-items: center;
}
@media (min-width: 860px) {
  .service-block .wrap { grid-template-columns: 0.8fr 1.2fr; gap: 60px; }
  .service-block.reverse .wrap { grid-template-columns: 1.2fr 0.8fr; }
  .service-block.reverse .service-graphic { order: 2; }
}

.service-graphic {
  position: relative; border: 1px solid var(--line-strong); background: var(--surface);
  border-radius: 14px;
  aspect-ratio: 5 / 4; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  color: var(--ink); overflow: hidden;
}
.service-graphic .key-signature { width: 62%; color: var(--accent); opacity: 0.9; transition: opacity 0.4s ease; }
.service-graphic .sg-tag {
  position: absolute; top: 16px; left: 18px;
  font-family: var(--font-mono); font-size: 12px; color: var(--ink-faint);
}
.service-graphic img {
  position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; object-fit: cover;
}
.service-graphic.has-photo .key-signature,
.service-graphic.has-photo [data-scroll-scene] { opacity: 0; }

/* ---------- Scènes dessinées au scroll (services 01/02/03) ----------
   Chaque trait porte data-draw="délai,plage" (0–1) : main.js calcule la
   progression de scroll de la scène et fait varier stroke-dashoffset en
   conséquence (0 = tracé complet). Fonctionne dans les deux sens du
   scroll. Le <noscript> du head force le tracé complet sans JS. */
[data-scroll-scene] {
  width: 48%; max-width: 150px;
  filter: drop-shadow(0 10px 24px rgba(255, 212, 0, 0.1));
}
[data-draw] {
  fill: none;
  stroke-dasharray: 100;
  stroke-dashoffset: 100;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.scene-stroke { stroke: var(--accent); stroke-width: 2.2; }
.scene-stroke-thin { stroke: var(--accent); stroke-width: 1.4; }
.scene-stroke-muted { stroke: var(--ink-faint); stroke-width: 2; }

.scene-lostkey { width: 36%; max-width: 128px; }
.scene-machine { width: 80%; max-width: 280px; }
.scene-twokeys { width: 58%; max-width: 196px; }
.scene-cardoor { width: 40%; max-width: 140px; }

.scene-pulse {
  stroke: var(--accent); stroke-width: 1.6; fill: none; opacity: 0;
  transform-box: fill-box; transform-origin: center;
}
/* .scene-translate : groupe déplacé via data-move (translation
   proportionnelle à la progression de scroll, appliquée par main.js —
   ex. la clé qui glisse dans l'étau, la fraise qui descend). */
.scene-translate { transform-box: fill-box; transform-origin: center; }

@media (prefers-reduced-motion: no-preference) {
  [data-scroll-scene].is-complete .scene-pulse {
    opacity: 0.7;
    animation: scene-pulse-ring 1.8s ease-out infinite;
  }
}
@media (prefers-reduced-motion: reduce) {
  [data-scroll-scene].is-complete .scene-pulse { opacity: 0; }
  .scene-translate { transform: none !important; }
}
@keyframes scene-pulse-ring {
  0% { opacity: 0.55; transform: scale(0.9); }
  100% { opacity: 0; transform: scale(1.6); }
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .service-graphic img { transition: transform 0.6s var(--ease); }
  .service-graphic:hover img { transform: scale(1.045); }
}

.service-content .s-num {
  font-family: var(--font-mono); font-size: 13px; color: var(--accent); display: block; margin-bottom: 12px;
}
.service-content h2 { font-size: 25px; max-width: 480px; }
@media (min-width: 900px) { .service-content h2 { font-size: 30px; } }
.service-content .service-text { margin-top: 14px; max-width: 520px; font-size: 15.5px; line-height: 1.65; color: var(--ink-soft); }

.service-list { margin-top: 18px; display: flex; flex-direction: column; gap: 9px; max-width: 500px; }
.service-list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 14.5px; color: var(--ink-soft); padding-top: 9px; border-top: 1px solid var(--line);
}
.service-list li .mk { font-family: var(--font-mono); font-size: 12px; color: var(--accent); flex-shrink: 0; padding-top: 2px; }

.service-content .btn-text { margin-top: 22px; }

/* ---------- Marques : carrousel de logos défilant en continu ----------
   Piste dupliquée (2 groupes identiques) translatée de -50% à 0 : la
   boucle est parfaitement continue, sans saut. Pur CSS, sans JS. */
.brands .wrap { padding-block: 60px; }

.brands-carousel {
  position: relative; overflow: hidden; padding-block: 8px;
  -webkit-mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
  mask-image: linear-gradient(to right, transparent, black 8%, black 92%, transparent);
}
.brands-track { display: flex; width: max-content; animation: brands-scroll 29s linear infinite; }
.brands-track-group { display: flex; align-items: center; flex-shrink: 0; }

.brand-logo-wrap {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 128px; height: 48px; padding: 0 16px;
}
.brand-logo-wrap img {
  max-width: 100%; max-height: 100%; width: auto; height: auto;
  filter: brightness(0) invert(1); opacity: 0.6;
  transition: opacity 0.25s ease;
}
@media (hover: hover) { .brands-carousel:hover .brand-logo-wrap img { opacity: 0.6; } }
.brand-logo-wrap:hover img { opacity: 1 !important; }

@keyframes brands-scroll { from { transform: translateX(-50%); } to { transform: translateX(0); } }
@media (hover: hover) { .brands-carousel:hover .brands-track { animation-play-state: paused; } }
@media (prefers-reduced-motion: reduce) { .brands-track { animation: none; } }

.brands-note { margin-top: 28px; max-width: 640px; font-size: 14px; color: var(--ink-faint); line-height: 1.6; }
.brands-note strong { color: var(--ink-soft); font-weight: 700; }

/* ---------- Zone d'intervention ----------
   Mobile : empilement simple dans l'ordre du HTML (intro → carte →
   mention 25 km), sans grille. Desktop (≥900px) : intro + carte en deux
   colonnes, mention au-delà de 25 km sur toute la largeur en dessous. */
.zone .wrap { display: grid; gap: 28px; }
@media (min-width: 900px) {
  .zone .wrap {
    grid-template-columns: 1fr 1fr;
    grid-template-areas: "intro graphic" "beyond beyond";
    align-items: center; column-gap: 48px; row-gap: 36px;
  }
  .zone-intro { grid-area: intro; }
  .zone-graphic { grid-area: graphic; }
  .zone-beyond { grid-area: beyond; }
}

/* Carte Leaflet (tuiles OpenStreetMap, sans clé d'API). Hauteur fixe par
   palier (jamais de hauteur qui explose), largeur toujours 100% de son
   conteneur, coins arrondis, chargement différé (voir js/main.js) tant
   que la section n'approche pas du viewport. */
.zone-graphic { position: relative; }
.zone-map-badge { margin-bottom: 14px; }
.zone-map {
  width: 100%; height: 320px; border-radius: 16px; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line-strong);
}
@media (min-width: 900px) { .zone-map { height: 420px; } }
/* Les tuiles OpenStreetMap standard sont claires par défaut : un filtre
   CSS leur donne l'aspect sombre de l'identité DB AUTO KEYS, sans
   dépendre d'un fournisseur de tuiles tierces nécessitant une clé d'API. */
.zone-map .leaflet-tile-pane {
  filter: invert(1) grayscale(1) brightness(0.75) contrast(1.15);
}
/* Attribution OpenStreetMap (obligatoire) : conservée, redessinée dans la
   palette du site plutôt que masquée. */
.zone-map .leaflet-control-attribution {
  background: rgba(13, 13, 13, 0.72); color: var(--ink-faint); font-size: 10.5px;
}
.zone-map .leaflet-control-attribution a { color: var(--ink-soft); }
/* Message de repli : affiché à la place de la carte si Leaflet, le CDN
   ou les tuiles ne répondent pas (voir js/main.js), plutôt qu'un cadre
   vide. */
.zone-map .zone-map-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 24px;
  font-family: var(--font-display); font-size: 14px; font-weight: 600;
  color: var(--ink-faint);
}

/* ---------- Zone d'intervention : au-delà de 25 km ---------- */
.zone-beyond { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; max-width: 640px; }
.zone-beyond p { font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
@media (min-width: 560px) {
  .zone-beyond { flex-direction: row; align-items: center; justify-content: space-between; gap: 24px; }
  .zone-beyond p { flex: 1; }
}

/* ---------- Encadré sécurité et vérification du véhicule ---------- */
.security-note {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 12px;
  padding: 20px 22px; max-width: 760px;
}
.security-note .sn-icon { flex-shrink: 0; color: var(--accent); margin-top: 2px; line-height: 0; }
.security-note .sn-icon svg { width: 26px; height: 26px; display: block; }
.security-note .sn-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.security-note h3 { font-size: 15.5px; color: var(--ink); letter-spacing: 0.01em; }
.security-note p { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }
@media (max-width: 639px) {
  .security-note {
    flex-direction: column; align-items: flex-start;
    padding: 18px 18px; gap: 14px;
  }
  .security-note .sn-icon svg { width: 24px; height: 24px; }
  .security-note h3 { font-size: 16px; }
  .security-note .sn-body { gap: 12px; }
  .security-note p { font-size: 14px; line-height: 1.65; }
}

/* ---------- Encadré remboursement des clés ---------- */
.refund-box {
  background: var(--surface); border: 1px solid var(--accent-soft-border); border-radius: 16px;
  padding: 28px 26px; max-width: 640px;
}
.refund-box .rb-icon { display: block; color: var(--accent); margin-bottom: 14px; line-height: 0; }
.refund-box .rb-icon svg { width: 30px; height: 30px; display: block; }
.refund-box h3 { font-size: 18px; color: var(--ink); max-width: 440px; }
.refund-box p { margin-top: 12px; font-size: 14.5px; line-height: 1.65; color: var(--ink-soft); }
.refund-box .rb-disclaimer {
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line);
  font-size: 12px; line-height: 1.5; color: var(--ink-faint);
}
@media (max-width: 639px) { .refund-box { padding: 20px 18px; } .refund-box h3 { font-size: 16.5px; } }
.zone-note { margin-top: 24px; font-size: 14px; color: var(--ink-faint); max-width: 520px; line-height: 1.6; }

/* ---------- Comment ça marche : 3 étapes ---------- */
.steps-row { display: grid; gap: 28px; }
@media (min-width: 860px) { .steps-row { grid-template-columns: repeat(3, 1fr); gap: 40px; } }

.step-item { position: relative; padding-top: 22px; border-top: 2px solid var(--accent); }
.step-item .st-num { font-family: var(--font-mono); font-size: 13px; color: var(--accent); }
.step-item h3 { margin-top: 12px; font-size: 19px; }
.step-item p { margin-top: 8px; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); max-width: 320px; }

/* ---------- Confiance : cartes dans l'esprit dbdriver.fr ---------- */
.trust-grid { display: grid; gap: 16px; }
@media (min-width: 680px) { .trust-grid { grid-template-columns: repeat(2, 1fr); } }
.trust-item {
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 14px;
  padding: 26px; display: flex; gap: 16px; align-items: flex-start;
}
.trust-item .t-icon { flex-shrink: 0; color: var(--accent); line-height: 0; }
.trust-item .t-icon svg { width: 34px; height: 34px; display: block; }
.trust-item h3 { font-size: 15.5px; letter-spacing: 0.01em; }
.trust-item p { margin-top: 6px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq-list { border-top: 1px solid var(--line-strong); max-width: 780px; }
.faq-item { border-bottom: 1px solid var(--line-strong); }
.faq-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding-block: 22px; font-family: var(--font-display); font-weight: 700; font-size: 16.5px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { position: relative; width: 16px; height: 16px; flex-shrink: 0; }
.faq-item summary .plus::before, .faq-item summary .plus::after {
  content: ""; position: absolute; background: var(--accent); transition: transform 0.2s ease;
}
.faq-item summary .plus::before { top: 7px; left: 0; width: 16px; height: 2px; }
.faq-item summary .plus::after { top: 0; left: 7px; width: 2px; height: 16px; }
.faq-item[open] summary .plus::after { transform: scaleY(0); }
.faq-item .faq-a { padding-bottom: 24px; max-width: 640px; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }

/* ---------- CTA final : bande jaune pleine, comme dbdriver.fr ---------- */
.cta-final .wrap { padding-block: 64px; display: grid; gap: 32px; }
@media (min-width: 860px) { .cta-final .wrap { grid-template-columns: 1.2fr 0.8fr; align-items: center; } }
.cta-final h2 { font-size: 30px; color: var(--accent-ink); max-width: 480px; }
@media (min-width: 900px) { .cta-final h2 { font-size: 36px; } }
.cta-final p { margin-top: 14px; max-width: 460px; font-size: 15.5px; color: rgba(13, 13, 13, 0.72); line-height: 1.6; }
.cta-final .hero-cta { margin-top: 0; }
@media (min-width: 860px) { .cta-final .hero-cta { justify-content: flex-end; } }
.cta-final .phone-display {
  margin-top: 16px; font-family: var(--font-mono); font-size: 15px; color: rgba(13, 13, 13, 0.7);
}
@media (min-width: 860px) { .cta-final .phone-display { text-align: right; } }
.cta-final .phone-display a { color: var(--accent-ink); font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-alt); border-top: 1px solid var(--line); position: relative; }
.footer-top { padding-block: 56px; display: grid; gap: 40px; }
@media (min-width: 760px) { .footer-top { grid-template-columns: 1.3fr 1fr 1fr; } }
.footer-about p { margin-top: 16px; max-width: 300px; font-size: 14px; color: var(--ink-soft); line-height: 1.6; }
.footer-col h3 { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-faint); font-weight: 500; }
.footer-col ul { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.footer-col a, .footer-col span { font-size: 14px; color: var(--ink-soft); }
.footer-col a { position: relative; display: inline-block; }
.footer-col a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1px;
  background: var(--accent); transition: right 0.25s var(--ease);
}
.footer-col a:hover { color: var(--ink); }
.footer-col a:hover::after { right: 0; }
.footer-signature { display: flex; justify-content: center; padding-top: 8px; color: var(--line-strong); }
.footer-bottom {
  border-top: 1px solid var(--line); padding-block: 22px;
  display: flex; flex-direction: column; gap: 8px; font-size: 12.5px; color: var(--ink-faint);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* ---------- Barre mobile fixe : Appeler / WhatsApp ---------- */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: grid; grid-template-columns: 1fr 1fr;
  background: rgba(13, 13, 13, 0.95);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border-top: 1px solid var(--line-strong);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .mobile-bar { display: none; } }
.mobile-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--mobile-bar-h); font-family: var(--font-display); font-size: 14.5px; font-weight: 700;
}
.mobile-bar a svg { width: 18px; height: 18px; flex-shrink: 0; }
.mobile-bar .mb-call { background: var(--accent); color: var(--accent-ink); }
.mobile-bar .mb-whatsapp { color: var(--ink); border-left: 1px solid var(--line-strong); }
.mobile-bar .mb-whatsapp svg { color: var(--whatsapp); }

/* ---------- Bouton WhatsApp flottant ----------
   Sur mobile (<768px), la barre fixe du bas (.mobile-bar) propose déjà
   Appeler + WhatsApp : le bouton flottant est masqué pour éviter le
   doublon. Sur ordinateur, comportement inchangé (bas à droite). */
.whatsapp-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 55;
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  transition: transform 0.15s ease;
}
.whatsapp-float svg { width: 28px; height: 28px; }
@media (hover: hover) { .whatsapp-float:hover { transform: scale(1.06); } }
@media (max-width: 767px) {
  .whatsapp-float { display: none; }
}

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