/* =========================================================
   Fast Car Factory — feuille de style
   Couleurs du logo : rouge #EE3643, noir, blanc
   Police unique : Archivo (axe de largeur 62–125)
   ========================================================= */

/* Police Archivo hébergée localement (licence SIL OFL, voir assets/fonts/OFL.txt) */
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin.woff2") format("woff2-variations"), url("../fonts/archivo-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo"; font-style: normal; font-display: swap;
  font-weight: 100 900; font-stretch: 62% 125%;
  src: url("../fonts/archivo-latin-ext.woff2") format("woff2-variations"), url("../fonts/archivo-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --red: #EE3643;          /* rouge logo — fonds, boutons, sur noir */
  --red-ink: #C41E2B;      /* rouge lisible sur fond clair (contraste AA) */
  --black: #000;
  --asphalt: #18191C;      /* panneaux sombres */
  --steel: #2B2D32;        /* bordures sur sombre */
  --alu: #E6E7E9;          /* fond clair "aluminium" */
  --white: #fff;
  --ink: #18191C;          /* texte sur clair */
  --mute: #585B61;         /* texte secondaire sur clair */
  --mute-dark: #A4A7AD;    /* texte secondaire sur sombre */
  --line: rgba(0, 0, 0, .14);
  --line-dark: rgba(255, 255, 255, .14);
  --ok: #1E9A52;
  --warn: #D98A00;

  --wide: "wdth" 125;
  --narrow: "wdth" 75;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 4vw, 48px);
  --max: 1280px;
  --radius-plate: 10px;
  --radius-btn: 4px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .1, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--alu);
  font-variant-numeric: tabular-nums;
  overflow-x: hidden;
}

img, video, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

h1, h2, h3, h4 {
  font-variation-settings: var(--wide);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -.012em;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h1 { font-size: clamp(40px, 7vw, 104px); }
h2 { font-size: clamp(30px, 4.2vw, 56px); }
h3 { font-size: clamp(21px, 2vw, 27px); line-height: 1.15; }
h4 { font-size: 18px; line-height: 1.25; }

.lead { font-size: clamp(18px, 1.6vw, 21px); max-width: 60ch; color: var(--mute); }
.on-dark .lead, .dark .lead, .asphalt .lead { color: #B9BCC2; }
.small { font-size: 14px; }
.muted { color: var(--mute); }
.dark .muted { color: var(--mute-dark); }

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(64px, 10vw, 136px); }
.section-tight { padding-block: clamp(48px, 7vw, 88px); }
.dark { background: var(--black); color: var(--white); }
.asphalt { background: var(--asphalt); color: var(--white); }
.white { background: var(--white); }

/* Accessibilité ------------------------------------------------ */
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 200;
  background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--radius-btn);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; border-radius: 2px; }
.dark :focus-visible, .asphalt :focus-visible { outline-color: #fff; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Boutons ------------------------------------------------------- */
.btn {
  --bg: var(--red); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 48px; padding: 12px 22px;
  background: var(--bg); color: var(--fg);
  border: 2px solid var(--bg); border-radius: var(--radius-btn);
  font-weight: 700; font-size: 16px; font-variation-settings: "wdth" 110;
  text-decoration: none; cursor: pointer; line-height: 1.1;
  transition: background .2s, color .2s, border-color .2s, transform .15s;
}
.btn:hover { --bg: #d42634; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ghost { --bg: transparent; --fg: currentColor; border-color: currentColor; }
.btn-ghost:hover { --bg: transparent; color: var(--red-ink); border-color: var(--red-ink); }
.dark .btn-ghost:hover, .asphalt .btn-ghost:hover, .hero .btn-ghost:hover { color: var(--red); border-color: var(--red); }
.btn-dark { --bg: var(--black); --fg: #fff; }
.btn-dark:hover { --bg: var(--steel); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.link {
  font-weight: 700; color: var(--red-ink); text-decoration: underline;
  text-decoration-thickness: 2px; text-underline-offset: 4px;
}
.dark .link, .asphalt .link { color: var(--red); }
.link:hover { text-decoration-thickness: 3px; }

/* En-tête « plaque » -------------------------------------------- */
.site-header {
  position: fixed; inset: 12px 12px auto 12px; z-index: 100;
  transition: transform .35s var(--ease);
}
.site-header.is-hidden { transform: translateY(calc(-100% - 20px)); }
.plate {
  max-width: 1400px; margin-inline: auto;
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
  padding: 0 10px 0 18px;
  background: var(--white);
  border-radius: var(--radius-plate);
  box-shadow: inset 0 0 0 4px var(--white), inset 0 0 0 5px var(--black), 0 10px 30px rgba(0,0,0,.18);
}
.brand { display: flex; align-items: center; flex: none; }
.brand img { height: 46px; width: auto; }

.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.main-nav a {
  display: block; padding: 10px 12px; border-radius: var(--radius-btn);
  text-decoration: none; font-weight: 600; font-size: 15px; font-variation-settings: "wdth" 100;
  color: var(--ink); position: relative;
}
.main-nav a:hover { background: var(--alu); }
.main-nav a[aria-current="page"] { color: var(--red-ink); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px;
  background: var(--red); border-radius: 2px;
}
.header-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.header-actions .btn { min-height: 46px; padding: 10px 16px; font-size: 15px; }
.call-btn {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-weight: 700; font-size: 15px; padding: 10px 12px; border-radius: var(--radius-btn);
}
.call-btn:hover { background: var(--alu); }
.call-btn svg { width: 18px; height: 18px; color: var(--red-ink); }

/* Mini compte-tours de défilement (repère de position) */
.rev {
  width: 54px; height: 34px; flex: none; color: var(--ink);
}
.rev .rev-needle { transform-origin: 27px 30px; transition: transform .25s var(--ease); }

.menu-toggle {
  display: none; align-items: center; gap: 8px;
  min-height: 46px; padding: 8px 14px; border: 2px solid var(--black); background: var(--white);
  border-radius: var(--radius-btn); font-weight: 700; cursor: pointer;
}
.menu-toggle .bars { width: 20px; height: 14px; position: relative; }
.menu-toggle .bars span { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .25s, opacity .2s; }
.menu-toggle .bars span:nth-child(1) { top: 0; }
.menu-toggle .bars span:nth-child(2) { top: 6px; }
.menu-toggle .bars span:nth-child(3) { top: 12px; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1180px) {
  .call-btn span { display: none; }
  .main-nav a { padding: 10px 9px; font-size: 14.5px; }
}
@media (max-width: 1020px) {
  :root { --header-h: 64px; }
  .site-header { inset: 8px 8px auto 8px; }
  .menu-toggle { display: inline-flex; }
  .rev, .header-actions .btn-shop { display: none; }
  .brand img { height: 40px; }
  .plate { justify-content: space-between; }
  .main-nav {
    position: fixed; inset: calc(var(--header-h) + 16px) 8px auto 8px;
    background: var(--white); border-radius: var(--radius-plate);
    box-shadow: 0 20px 50px rgba(0,0,0,.3); padding: 12px;
    display: block; max-height: calc(100dvh - var(--header-h) - 32px); overflow: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .2s, transform .25s var(--ease), visibility 0s .25s;
  }
  .main-nav.is-open { opacity: 1; visibility: visible; transform: none; transition: opacity .2s, transform .25s var(--ease); }
  .main-nav ul { flex-direction: column; }
  .main-nav a { font-size: 20px; padding: 14px 12px; font-variation-settings: var(--wide); font-weight: 700; }
  .main-nav a[aria-current="page"]::after { left: 0; right: auto; top: 14px; bottom: 14px; width: 4px; height: auto; }
  .main-nav .nav-extra { display: grid; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
  .main-nav .nav-extra .btn { width: 100%; display: flex; font-size: 16px; font-variation-settings: "wdth" 110; padding: 12px 18px; }
}
@media (min-width: 1021px) { .nav-extra { display: none; } }
@media (max-width: 420px) { .call-btn { padding: 10px 8px; } }

/* Héros --------------------------------------------------------- */
.hero {
  position: relative; min-height: 100svh; overflow: hidden;
  background: var(--black); color: var(--white);
  display: grid; align-items: end;
  padding-top: calc(var(--header-h) + 40px);
}
.hero-video {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0; transition: opacity 1.6s ease;
}
.hero.is-lit .hero-video { opacity: .62; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.55) 45%, rgba(0,0,0,.15) 100%),
    linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,0) 45%);
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 64px); align-items: center;
  padding-bottom: clamp(32px, 6vh, 72px);
}
.hero h1 {
  font-size: clamp(40px, 6.6vw, 112px);
  line-height: .96; margin-bottom: .35em;
  font-variation-settings: "wdth" var(--hero-wdth, 125);
}
.hero .lead { color: #D3D5D9; margin-bottom: 28px; max-width: 52ch; }
.hero .btn-ghost { color: #fff; }

.gauge-wrap { position: relative; justify-self: end; width: min(100%, 560px); }
.gauge { width: 100%; height: auto; overflow: visible; cursor: pointer; }
.gauge .g-tick { stroke: #fff; stroke-width: 2; opacity: .55; }
.gauge .g-tick.major { stroke-width: 4; opacity: 1; }
.gauge .g-label { fill: #fff; font: 700 15px var(--font); font-variation-settings: "wdth" 110; opacity: .75; }
.gauge .g-label.now { fill: var(--red); opacity: 1; font-size: 18px; }
.gauge .g-needle { transform-origin: 250px 250px; transform: rotate(-110deg); }
.gauge-readout {
  position: absolute; left: 50%; top: 33%; transform: translateX(-50%);
  text-align: center; white-space: nowrap; margin: 0; pointer-events: none;
}
.gauge-readout b {
  display: block; font-size: clamp(44px, 6vw, 84px); line-height: 1; font-weight: 800;
  font-variation-settings: var(--wide);
}
.gauge-readout span { font-size: 15px; color: var(--mute-dark); }

.hero-sites {
  position: relative; z-index: 2; border-top: 1px solid var(--line-dark);
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.hero-sites a {
  display: flex; flex-direction: column; gap: 2px; padding: 18px 20px 22px 0;
  text-decoration: none; font-size: 15px; color: #D3D5D9;
}
.hero-sites a + a { padding-left: 20px; border-left: 1px solid var(--line-dark); }
.hero-sites strong { color: #fff; font-size: 16px; }
.hero-sites a:hover strong { color: var(--red); }

.status { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--mute-dark); flex: none; }
.status.is-open::before { background: var(--ok); box-shadow: 0 0 0 4px rgba(30,154,82,.22); }
.status.is-soon::before { background: var(--warn); }
.status.is-closed::before { background: #9a9da3; }

@media (max-width: 900px) {
  .hero { align-items: start; }
  .hero-inner { grid-template-columns: 1fr; padding-top: 8px; }
  .gauge-wrap { order: -1; justify-self: center; width: min(78vw, 380px); margin-bottom: -8px; }
  .hero-sites { grid-template-columns: 1fr; }
  .hero-sites a, .hero-sites a + a { padding: 14px 0; border-left: 0; border-top: 1px solid var(--line-dark); }
  .hero-sites a:first-child { border-top: 0; }
}

/* En-tête de page (pages intérieures) --------------------------- */
.page-head {
  background: var(--black); color: #fff; position: relative; overflow: hidden;
  padding: calc(var(--header-h) + clamp(56px, 9vw, 120px)) 0 clamp(40px, 6vw, 72px);
}
.page-head h1 { font-size: clamp(38px, 6vw, 88px); max-width: 16ch; position: relative; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head .lead { color: #C9CBD0; }
.page-head .speedlines {
  position: absolute; right: -2%; bottom: 8%; width: 36%; max-width: 560px;
  opacity: .85; pointer-events: none;
}
.crumbs { font-size: 14px; color: var(--mute-dark); margin-bottom: 18px; }
.crumbs a { color: #fff; }
@media (max-width: 1100px) { .page-head .speedlines { width: 60%; right: -20%; bottom: 4%; opacity: .3; } }

/* Grilles utilitaires ------------------------------------------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(24px, 4vw, 64px); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 860px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(32px, 5vw, 64px); }
.section-head h2 { margin: 0; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; } }

/* Services (accueil) -------------------------------------------- */
.services { border-top: 2px solid var(--ink); }
.service {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto;
  gap: 16px 40px; align-items: center;
  padding: 26px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; position: relative; isolation: isolate;
}
.service::before {
  content: ""; position: absolute; inset: 0 calc(var(--gutter) * -1); z-index: -1;
  background: var(--white); transform: scaleX(0); transform-origin: left;
  transition: transform .45s var(--ease);
}
.service:hover::before, .service:focus-visible::before { transform: scaleX(1); }
.service h3 { margin: 0; }
.service p { margin: 0; color: var(--mute); max-width: 56ch; }
.service .go {
  width: 48px; height: 48px; border-radius: 50%; border: 2px solid var(--ink);
  display: grid; place-items: center; transition: background .2s, color .2s, border-color .2s, transform .3s var(--ease);
}
.service:hover .go { background: var(--red); border-color: var(--red); color: #fff; transform: rotate(-45deg); }
.service .go svg { width: 20px; height: 20px; }
@media (max-width: 760px) {
  .service { grid-template-columns: 1fr auto; }
  .service p { grid-column: 1 / -1; grid-row: 2; }
}

/* Engagements --------------------------------------------------- */
.pledges { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border-radius: var(--radius-plate); }
.pledge { padding: 28px 26px; }
.pledge + .pledge { border-left: 1px solid var(--line); }
.pledge svg { width: 30px; height: 30px; color: var(--red-ink); margin-bottom: 14px; }
.pledge h3 { font-size: 19px; margin-bottom: 6px; }
.pledge p { font-size: 15px; color: var(--mute); }
@media (max-width: 960px) {
  .pledges { grid-template-columns: 1fr 1fr; }
  .pledge:nth-child(3) { border-left: 0; }
  .pledge:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 520px) {
  .pledges { grid-template-columns: 1fr; }
  .pledge + .pledge { border-left: 0; border-top: 1px solid var(--line); }
}

/* Rail flotte (accueil) ----------------------------------------- */
.rail {
  display: grid; grid-auto-flow: column; grid-auto-columns: clamp(240px, 24vw, 320px);
  gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px var(--gutter) 24px; margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: thin; scrollbar-color: var(--steel) transparent;
}
.rail > * { scroll-snap-align: start; }
.rail-controls { display: flex; gap: 8px; }
.round-btn {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: transparent; border: 2px solid currentColor; cursor: pointer;
}
.round-btn:hover { background: var(--red); border-color: var(--red); color: #fff; }
.round-btn svg { width: 20px; height: 20px; }
.round-btn:disabled { opacity: .3; cursor: default; background: transparent; border-color: currentColor; color: inherit; }

/* Carte véhicule */
.car {
  position: relative; display: block; width: 100%; text-align: left;
  border: 0; padding: 0; background: var(--asphalt); color: #fff; cursor: pointer;
  border-radius: 6px; overflow: hidden; aspect-ratio: 3 / 4;
  text-decoration: none;
}
.car img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease), filter .4s; }
.car:hover img, .car:focus-visible img { transform: scale(1.05); }
.car::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.88) 0%, rgba(0,0,0,0) 55%); }
.car-info { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: 18px; }
.car-brand { font-size: 14px; color: var(--mute-dark); display: block; }
.car-name { font-size: 21px; font-weight: 800; font-variation-settings: var(--wide); line-height: 1.1; display: block; margin: 2px 0 10px; }
.car-specs { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px;
  font-size: 13px; font-weight: 600; background: rgba(255,255,255,.12); color: #fff; white-space: nowrap;
}
.chip-red { background: var(--red); }
.car-price { position: absolute; top: 14px; left: 14px; z-index: 1; background: #fff; color: var(--ink); padding: 6px 10px; border-radius: 4px; font-size: 14px; font-weight: 700; }

/* Histoire (timeline règle graduée) ----------------------------- */
.ruler { position: relative; margin-top: 16px; }
.ruler ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; }
.ruler li { position: relative; padding: 46px 22px 0 0; }
.ruler li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 22px;
  background:
    linear-gradient(90deg, var(--ink) 3px, transparent 3px) 0 0 / 100% 22px no-repeat,
    repeating-linear-gradient(90deg, rgba(0,0,0,.45) 0 1px, transparent 1px 12.5%) 0 10px / 100% 12px no-repeat;
}
.ruler li:last-child::before { background: linear-gradient(90deg, var(--red) 3px, transparent 3px) 0 0 / 100% 22px no-repeat; }
.ruler .yr { display: block; white-space: nowrap; font-size: clamp(24px, 2.2vw, 34px); font-weight: 800; font-variation-settings: var(--wide); line-height: 1; margin-bottom: 10px; }
.ruler li:last-child .yr { color: var(--red-ink); }
.ruler p { font-size: 15.5px; color: var(--mute); margin: 0; }
.ruler::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--ink); }
@media (max-width: 960px) {
  .ruler ol { grid-template-columns: 1fr; }
  .ruler::before { left: 0; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .ruler li { padding: 0 0 28px 34px; }
  .ruler li::before { top: 8px; left: 0; right: auto; width: 22px; height: 3px; background: var(--ink); }
  .ruler li:last-child::before { background: var(--red); }
}

/* Événements ---------------------------------------------------- */
.events { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0; border-top: 1px solid var(--line-dark); }
.event { padding: 22px 22px 26px 0; border-bottom: 1px solid var(--line-dark); }
.event h3 { font-size: 20px; margin-bottom: 4px; }
.event .where { font-size: 14px; color: var(--mute-dark); margin-bottom: 12px; display: block; }
.years { display: flex; flex-wrap: wrap; gap: 6px; }
.years span { font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; border: 1px solid var(--line-dark); }

/* Défilement de logos ------------------------------------------- */
.marquee { overflow: hidden; background: var(--white); border-block: 1px solid var(--line); position: relative; }
.marquee-track { display: flex; gap: 0; width: max-content; animation: marquee 48s linear infinite; }
.marquee:hover .marquee-track, .marquee.is-paused .marquee-track { animation-play-state: paused; }
.marquee a { display: grid; place-items: center; width: 200px; height: 110px; padding: 18px 26px; border-right: 1px solid var(--line); }
.marquee img { max-height: 64px; width: auto; object-fit: contain; filter: grayscale(1); opacity: .75; transition: filter .3s, opacity .3s; }
.marquee a:hover img, .marquee a:focus-visible img { filter: none; opacity: 1; }
.marquee-pause {
  position: absolute; right: 10px; bottom: 10px; z-index: 2; font-size: 13px; font-weight: 700;
  background: var(--white); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; cursor: pointer;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* CTA contact --------------------------------------------------- */
.cta-band { background: var(--red); color: #fff; }
.cta-band .wrap { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 24px 48px; align-items: center; }
.cta-band h2 { margin: 0 0 .25em; }
.cta-band p { margin: 0; font-size: 19px; max-width: 52ch; }
.cta-band .btn { --bg: #fff; --fg: var(--ink); }
.cta-band .btn:hover { --bg: var(--black); --fg: #fff; }
.cta-band .btn-ghost { --bg: transparent; --fg: #fff; border-color: #fff; }
.cta-band .btn-ghost:hover { color: #fff; border-color: #fff; --bg: rgba(0,0,0,.15); }
@media (max-width: 860px) { .cta-band .wrap { grid-template-columns: 1fr; } }

/* Pied de page -------------------------------------------------- */
.site-footer { background: var(--black); color: #C9CBD0; padding: 64px 0 28px; font-size: 15px; }
.footer-top { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid var(--line-dark); }
.footer-plate { display: inline-block; background: #fff; padding: 12px 16px; border-radius: 8px; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 4px #000; margin-bottom: 18px; }
.footer-plate img { height: 48px; width: auto; }
.site-footer h2 { font-size: 16px; color: #fff; margin-bottom: 14px; font-variation-settings: "wdth" 110; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.site-footer address { font-style: normal; }
.socials { display: flex; gap: 8px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); border-radius: 50%; }
.socials a:hover { background: var(--red); border-color: var(--red); color: #fff; }
.socials svg { width: 18px; height: 18px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 24px; font-size: 14px; color: var(--mute-dark); }
.footer-bottom nav { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 960px) { .footer-top { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-top { grid-template-columns: 1fr; } }

/* Onglets ------------------------------------------------------- */
.tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 20px; }
.tab {
  min-height: 44px; padding: 8px 16px; border-radius: 999px; border: 2px solid var(--line);
  background: transparent; font-weight: 700; font-size: 15px; cursor: pointer;
}
.tab:hover { border-color: var(--ink); }
.tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.dark .tab, .asphalt .tab, dialog .tab { border-color: var(--line-dark); }
.dark .tab:hover, .asphalt .tab:hover, dialog .tab:hover { border-color: #fff; }
.dark .tab[aria-selected="true"], .asphalt .tab[aria-selected="true"], dialog .tab[aria-selected="true"] { background: #fff; color: var(--ink); border-color: #fff; }

/* Fiche tarif (style ticket d'atelier) -------------------------- */
.ticket { background: var(--white); border-radius: var(--radius-plate); padding: clamp(20px, 3vw, 36px); position: relative; }
.ticket h3 { margin-bottom: .3em; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-list li { padding: 16px 0; border-bottom: 1px dashed rgba(0,0,0,.25); }
.price-list li:last-child { border-bottom: 0; }
.price-row { display: flex; align-items: baseline; gap: 10px; }
.price-row .name { font-weight: 700; }
.price-row .dots { flex: 1; border-bottom: 2px dotted rgba(0,0,0,.3); transform: translateY(-4px); min-width: 20px; }
.price-row .amount { font-weight: 800; font-variation-settings: "wdth" 110; white-space: nowrap; }
.price-list .desc { display: block; font-size: 14.5px; color: var(--mute); margin-top: 4px; max-width: 70ch; }

/* Recherche homologation */
.lookup { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; align-content: start; }
.field label, .field .label { font-weight: 700; font-size: 15px; }
.field .hint { font-size: 14px; color: var(--mute); }
.input, select.input, textarea.input {
  width: 100%; min-height: 50px; padding: 12px 14px;
  border: 2px solid rgba(0,0,0,.25); border-radius: var(--radius-btn); background: #fff; color: var(--ink);
  font-size: 16px;
}
textarea.input { min-height: 130px; resize: vertical; }
.input:hover { border-color: rgba(0,0,0,.5); }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(238,54,67,.35); }
.field.has-error .input { border-color: var(--red-ink); background: #FFF5F5; }
.error-msg { display: none; color: var(--red-ink); font-size: 14px; font-weight: 600; }
.field.has-error .error-msg { display: flex; gap: 6px; align-items: center; }
.req { color: var(--red-ink); }
.dark .input, .asphalt .input { background: #fff; }

.table-wrap { overflow-x: auto; border-radius: 6px; border: 1px solid var(--line); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.data th, table.data td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data th { white-space: normal; font-size: 14px; color: var(--mute); font-weight: 700; background: #F5F5F6; position: sticky; top: 0; }
table.data td.num, table.data th.num { text-align: right; }
table.data td:first-child { white-space: normal; font-weight: 600; }
.lookup table.data th, .lookup table.data td { padding: 11px 12px; }
table.data tbody tr:hover { background: #FAFAFA; }
table.data mark { background: rgba(238,54,67,.18); color: inherit; border-radius: 2px; padding: 0 1px; }
.empty { padding: 28px; text-align: center; color: var(--mute); }
.lookup-scroll { max-height: 460px; overflow: auto; }

/* Étapes (séquence réelle) -------------------------------------- */
.steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.steps li { counter-increment: s; padding: 0 24px 0 0; position: relative; }
.steps li::before {
  content: counter(s); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--ink); color: #fff; font-weight: 800; margin-bottom: 16px;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 21px; left: 54px; right: 10px; height: 2px; background: var(--line); }
.steps.vertical { grid-template-columns: 1fr; gap: 22px; }
.steps.vertical li::after { display: none; }
.steps h3 { font-size: 19px; margin-bottom: 6px; }
.steps p { font-size: 15.5px; color: var(--mute); }
@media (max-width: 860px) {
  .steps { grid-template-columns: 1fr; gap: 24px; }
  .steps li::after { display: none; }
}

/* Calculateur --------------------------------------------------- */
.calc { background: var(--black); color: #fff; border-radius: var(--radius-plate); padding: clamp(22px, 3.5vw, 44px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 32px 56px; }
.calc .field label { color: #fff; }
.calc .hint { color: var(--mute-dark); }
.range { width: 100%; accent-color: var(--red); height: 32px; }
.calc-out { display: grid; gap: 14px; align-content: start; }
.bar-row { display: grid; gap: 6px; }
.bar-row .top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.bar-row .top b { font-size: 20px; font-variation-settings: "wdth" 110; }
.bar { height: 14px; border-radius: 999px; background: var(--steel); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: #8E9197; border-radius: inherit; transition: width .5s var(--ease); }
.bar.us i { background: var(--red); }
.saving { margin-top: 6px; padding-top: 16px; border-top: 1px solid var(--line-dark); font-size: 17px; }
.saving b { display: block; font-size: clamp(34px, 4vw, 52px); font-weight: 800; font-variation-settings: var(--wide); color: #fff; line-height: 1.1; }
@media (max-width: 860px) { .calc { grid-template-columns: 1fr; } }

/* Formulaires --------------------------------------------------- */
.form { display: grid; gap: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.form-note { font-size: 14px; color: var(--mute); }
.form-panel { background: var(--white); border-radius: var(--radius-plate); padding: clamp(20px, 3.5vw, 44px); }
.form-summary {
  display: none; padding: 14px 16px; border-radius: 6px; font-weight: 600; font-size: 15px;
  background: #FFF1F1; color: var(--red-ink); border-left: 4px solid var(--red-ink);
}
.form-summary.is-visible { display: block; }
.form-summary.ok { background: #EEF8F2; color: #135F33; border-left-color: var(--ok); }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 800; font-size: 19px; font-variation-settings: "wdth" 110; margin-bottom: 12px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.check input { width: 22px; height: 22px; accent-color: var(--red); flex: none; margin-top: 1px; }

/* Lieux et horaires --------------------------------------------- */
.places { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.place { background: var(--white); border-radius: var(--radius-plate); padding: 26px; display: grid; gap: 14px; align-content: start; }
.place h3 { margin: 0; font-size: 21px; }
.place address { font-style: normal; color: var(--mute); }
.hours { width: 100%; border-collapse: collapse; font-size: 15px; }
.hours th { text-align: left; font-weight: 600; padding: 5px 10px 5px 0; vertical-align: top; }
.hours td { padding: 5px 0; color: var(--mute); }
.hours tr.today th, .hours tr.today td { color: var(--ink); font-weight: 800; }
.hours tr.today th::before { content: ""; display: inline-block; width: 6px; height: 6px; background: var(--red); border-radius: 50%; margin-right: 6px; transform: translateY(-2px); }
@media (max-width: 960px) { .places { grid-template-columns: 1fr; } }

/* Catégories & catalogues --------------------------------------- */
.cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-plate); overflow: hidden; }
.cats a { background: var(--white); padding: 18px 20px; text-decoration: none; font-weight: 600; display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 64px; }
.cats a:hover { background: var(--black); color: #fff; }
.cats a svg { width: 16px; height: 16px; flex: none; opacity: .5; }
.catalogues { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 20px; }
.catalogue { text-decoration: none; display: grid; gap: 10px; }
.catalogue .cover { background: var(--white); border-radius: 4px; aspect-ratio: 3 / 4; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.08); }
.catalogue img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.catalogue:hover img { transform: scale(1.04) rotate(-.6deg); }
.catalogue span { font-weight: 700; font-size: 15.5px; }
.catalogue small { color: var(--mute); font-size: 13.5px; }

.logos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; }
.logo-card { background: var(--white); border-radius: 8px; padding: 20px; display: grid; grid-template-rows: 90px auto; gap: 12px; text-decoration: none; }
.logo-card .logo-box { display: grid; place-items: center; }
.logo-card img { max-height: 80px; max-width: 100%; width: auto; object-fit: contain; }
.logo-card.on-black .logo-box { background: var(--black); border-radius: 4px; }
.logo-card span { font-weight: 700; font-size: 15px; }
.logo-card small { display: block; font-weight: 400; color: var(--mute); font-size: 13.5px; }
.logo-card:hover { box-shadow: inset 0 0 0 2px var(--ink); }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a { padding: 8px 14px; border-radius: 999px; background: var(--white); text-decoration: none; font-weight: 600; font-size: 15px; border: 1px solid var(--line); }
.tag-cloud a:hover { background: var(--ink); color: #fff; }

/* Location : filtres + grille ----------------------------------- */
.fleet { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fleet .car[hidden] { display: none; }
.result-count { font-size: 15px; color: var(--mute-dark); margin: 0 0 18px; }

/* Boîte de dialogue véhicule ------------------------------------ */
dialog.sheet {
  width: min(1160px, calc(100vw - 24px)); max-height: calc(100dvh - 24px);
  padding: 0; border: 0; border-radius: 12px; background: var(--asphalt); color: #fff;
  overflow: hidden;
}
dialog.sheet::backdrop { background: rgba(0,0,0,.75); backdrop-filter: blur(4px); }
dialog.sheet[open] { animation: sheet-in .35s var(--ease); }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
.sheet-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); max-height: calc(100dvh - 24px); }
.sheet-media { background: #000; position: relative; display: grid; grid-template-rows: 1fr auto; min-height: 0; }
.sheet-media .main-img { width: 100%; height: 100%; min-height: 0; object-fit: cover; aspect-ratio: 3/4; max-height: calc(100dvh - 130px); }
.thumbs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; background: #000; }
.thumbs button { flex: none; width: 58px; height: 72px; border: 2px solid transparent; padding: 0; border-radius: 4px; overflow: hidden; cursor: pointer; background: #222; opacity: .6; }
.thumbs button[aria-current="true"] { border-color: var(--red); opacity: 1; }
.thumbs button:hover { opacity: 1; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.sheet-body { padding: clamp(20px, 3vw, 40px); overflow-y: auto; min-height: 0; }
.sheet-body h2 { font-size: clamp(28px, 3vw, 40px); margin-bottom: .3em; padding-right: 48px; }
.sheet-close {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 48px; height: 48px; border-radius: 50%;
  background: #fff; color: var(--ink); border: 0; display: grid; place-items: center; cursor: pointer;
}
.sheet-close:hover { background: var(--red); color: #fff; }
.sheet-close svg { width: 20px; height: 20px; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 1px; background: var(--line-dark); border-radius: 8px; overflow: hidden; margin: 20px 0; }
.spec { background: var(--asphalt); padding: 14px; }
.spec b { display: block; font-size: 22px; font-variation-settings: "wdth" 115; font-weight: 800; line-height: 1.1; }
.spec span { font-size: 13px; color: var(--mute-dark); }
.rates { width: 100%; border-collapse: collapse; font-size: 15.5px; margin-bottom: 14px; }
.rates th, .rates td { padding: 11px 0; border-bottom: 1px solid var(--line-dark); text-align: left; }
.rates th { font-size: 13.5px; color: var(--mute-dark); font-weight: 600; }
.rates td.num, .rates th.num { text-align: right; }
.rates td.num { font-weight: 800; font-variation-settings: "wdth" 110; }
.sheet-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 16px 0 22px; font-size: 15px; }
.sheet-meta div { background: rgba(255,255,255,.06); border-radius: 6px; padding: 12px; }
.sheet-meta b { display: block; font-size: 17px; }
@media (max-width: 860px) {
  dialog.sheet { width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; border-radius: 0; margin: 0; }
  .sheet-inner { grid-template-columns: 1fr; overflow-y: auto; max-height: 100dvh; }
  .sheet-media .main-img { aspect-ratio: 4/3; max-height: 52vh; }
  .sheet-body { overflow: visible; }
}

/* Annonces (vente) ---------------------------------------------- */
.ads { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.ad { background: var(--white); border-radius: var(--radius-plate); overflow: hidden; display: grid; grid-template-rows: auto 1fr; border: 0; padding: 0; text-align: left; cursor: pointer; }
.ad .ph { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd; }
.ad img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.ad:hover img { transform: scale(1.04); }
.ad .body { padding: 18px 20px 22px; display: grid; gap: 6px; align-content: start; }
.ad h3 { margin: 0; font-size: 21px; }
.ad .meta { color: var(--mute); font-size: 15px; }
.ad .price { font-size: 22px; font-weight: 800; font-variation-settings: "wdth" 115; margin-top: 4px; }

/* Bloc texte + image -------------------------------------------- */
.media-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.media-split .ph { border-radius: 6px; overflow: hidden; background: #000; }
.media-split .ph img, .media-split .ph video { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 860px) { .media-split { grid-template-columns: 1fr; } }

.check-list { list-style: none; padding: 0; margin: 0 0 1em; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; }
.check-list li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.notice { background: #fff; border-left: 4px solid var(--red); padding: 16px 18px; border-radius: 0 6px 6px 0; font-size: 15.5px; }
.dark .notice, .asphalt .notice { background: rgba(255,255,255,.06); }

.video-toggle {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + 28px); z-index: 3;
  background: rgba(0,0,0,.5); color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 999px;
  padding: 8px 14px; font-size: 13px; font-weight: 600; cursor: pointer; backdrop-filter: blur(6px);
}
.video-toggle:hover { border-color: #fff; }
@media (max-width: 900px) { .video-toggle { top: auto; bottom: 12px; } }
.marquee a.blk { background: var(--black); }
.marquee a.blk img { filter: none; opacity: .9; }
.calc .error-msg:not([hidden]) { display: flex; color: #FF8A93; }
.calc .field.has-error .input { background: #fff; }

/* Toast ---------------------------------------------------------- */
.toast {
  position: fixed; left: 50%; bottom: 20px; z-index: 300; transform: translate(-50%, 140%);
  background: var(--black); color: #fff; padding: 14px 20px; border-radius: 8px; font-weight: 600;
  box-shadow: 0 10px 30px rgba(0,0,0,.3); transition: transform .35s var(--ease); max-width: calc(100vw - 32px);
}
.toast.is-visible { transform: translate(-50%, 0); }

/* Texte long (mentions) ----------------------------------------- */
.prose { max-width: 72ch; }
.prose h2 { font-size: 26px; margin-top: 1.6em; }
.prose a { color: var(--red-ink); }

/* Révélation douce au défilement (unique, discrète) ------------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }

/* Mouvement réduit ---------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
}

@media print {
  .site-header, .site-footer, .cta-band, .hero-video, .marquee { display: none !important; }
  body { background: #fff; }
}
