/* =====================================================================
   VAGTECH-84 | Feuille de styles
   1. Tokens   2. Base   3. Composants communs   4. Header + menu
   5. Hero + compte-tours   6. Prestations   7. Réalisations
   8. Chiffres + avis   9. Contact   10. Footer   11. Mouvement
   Approche mobile-first : les media queries ajoutent, elles ne retirent pas.
   ===================================================================== */

/* ---------- 0. TYPOGRAPHIES (auto-hébergées) ---------- */
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/big-shoulders-display-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 800; font-display: swap; src: url("../fonts/big-shoulders-display-latin-800-normal.woff2") format("woff2"); }
@font-face { font-family: "Big Shoulders Display"; font-style: normal; font-weight: 900; font-display: swap; src: url("../fonts/big-shoulders-display-latin-900-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/saira-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 500; font-display: swap; src: url("../fonts/saira-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Saira"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/saira-latin-600-normal.woff2") format("woff2"); }

/* ---------- 1. TOKENS ---------- */
:root {
  /* Couleurs : noir pur, rouge piste (VAG/Audi), bleu Velocity (Ford/Mustang) */
  --noir: #000;
  --asphalte: #0C1018;      /* surfaces opaques */
  --verre: rgba(12, 16, 24, .8); /* surfaces translucides : la fumée transparaît */
  --champ: #070A10;         /* fond des champs de formulaire */
  --ligne: #232B3B;         /* traits et bordures */
  --texte: #ECEFF4;         /* blanc compteur */
  --texte-2: #BFC6D2;       /* texte secondaire */
  --gris: #8C95A6;          /* légendes */
  --rouge: #E3101E;
  --rouge-vif: #FF2A36;
  --bleu: #2266FF;
  --bleu-vif: #4D86FF;
  --neon-rouge: #FF3341;    /* tubes néon côté Audi (relevé sur la photo du garage) */
  --neon-bleu: #38C6FF;     /* tubes néon côté Mustang */

  --font-display: "Big Shoulders Display", "Arial Narrow", "Roboto Condensed", Impact, sans-serif;
  --font-texte: "Saira", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Échelle typographique (rapport ~1.25, titres fluides) */
  --fs-0: .875rem;
  --fs-1: 1rem;
  --fs-2: 1.125rem;
  --fs-3: clamp(1.5rem, 1.15rem + 1.2vw, 2rem);
  --fs-4: clamp(2.4rem, 1.5rem + 3.6vw, 4.5rem);
  --fs-hero: clamp(3.1rem, 1rem + 6.6vw, 7.25rem);

  --container: 1240px;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --header-h: 72px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --chamfer: 12px;
}

/* ---------- 2. BASE ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--noir);
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + var(--safe-top));
}

body {
  margin: 0;
  background: transparent; /* le noir vient de <html> : la fumée d'ambiance passe entre les deux */
  color: var(--texte);
  font-family: var(--font-texte);
  font-size: var(--fs-1);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }

h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 800; line-height: .95; letter-spacing: .005em; }
p, dl, dd { margin: 0; }
a { color: inherit; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--bleu-vif); outline-offset: 3px; }

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

.skip {
  position: absolute; left: 1rem; top: -100px; z-index: 100;
  background: var(--texte); color: var(--noir); padding: .6rem 1rem; text-decoration: none; font-weight: 600;
}
.skip:focus { top: calc(1rem + var(--safe-top)); }

/* ---------- 3. COMPOSANTS COMMUNS ---------- */

/* Boutons à coins chanfreinés, clin d'œil aux formes des calandres et des diffuseurs */
.btn {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: .85rem 1.6rem;
  font: 600 1rem/1 var(--font-texte); letter-spacing: .01em;
  color: #fff; text-decoration: none; border: 0; cursor: pointer;
  clip-path: polygon(var(--chamfer) 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%, 0 var(--chamfer));
  transition: background-color .25s, transform .25s var(--ease-out);
}
/* Reflet qui balaie le bouton au survol */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.28) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .7s var(--ease-out);
}
.btn:hover::before { transform: translateX(120%); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { clip-path: none; outline-offset: 4px; }

.btn--rouge { background: var(--rouge); }
.btn--rouge:hover { background: var(--rouge-vif); }
.btn--bleu { background: var(--bleu); }
.btn--bleu:hover { background: var(--bleu-vif); }
.btn--ghost { background: rgba(255,255,255,.08); }
.btn--ghost:hover { background: rgba(255,255,255,.15); }
.btn--small { min-height: 42px; padding: .6rem 1.1rem; font-size: .9375rem; --chamfer: 9px; }
.btn[disabled] { cursor: progress; opacity: .85; }

.section { position: relative; padding-block: clamp(5rem, 10vw, 9rem); }
.section__head { display: grid; gap: 1.25rem; max-width: 780px; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section__title { font-size: var(--fs-4); }
.section__intro { max-width: 60ch; font-size: var(--fs-2); color: var(--texte-2); }

.badge {
  display: inline-block; align-self: flex-start;
  padding: .3rem .7rem; color: #DFF6FF;
  font-size: .8125rem; font-weight: 600; letter-spacing: .03em;
  border: 1.5px solid var(--neon-bleu); border-radius: 4px;
  box-shadow: 0 0 10px rgba(56,198,255,.55), inset 0 0 10px rgba(56,198,255,.35);
  text-shadow: 0 0 8px var(--neon-bleu);
}

/* ---------- 4. HEADER + MENU MOBILE ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  padding-top: var(--safe-top);
  transition: background-color .3s, backdrop-filter .3s;
}
.header.is-scrolled,
.header.menu-open { background: rgba(0,0,0,.74); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.header__inner { height: var(--header-h); display: flex; align-items: center; gap: 1.5rem; }

.logo {
  display: inline-flex; align-items: center; gap: .3rem; margin-right: auto;
  font: 900 1.6rem/1 var(--font-display); letter-spacing: .05em; text-decoration: none;
}
.logo__num {
  background: var(--rouge); color: #fff; padding: .16em .34em .1em; font-size: .88em;
  box-shadow: 0 0 18px rgba(255,51,65,.55);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
}

.nav { display: none; }
.nav__list { display: flex; gap: 2rem; margin: 0; padding: 0; list-style: none; }
.nav__list a { position: relative; padding: .4rem 0; color: var(--gris); font-weight: 500; text-decoration: none; transition: color .2s; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--rouge);
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--ease-out);
}
.nav__list a:hover, .nav__list a[aria-current="true"] { color: var(--texte); }
.nav__list a:hover::after, .nav__list a[aria-current="true"]::after { transform: scaleX(1); }

.header__cta { display: none; }

.burger {
  position: relative; width: 44px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer;
}
.burger span {
  position: absolute; left: 10px; right: 10px; height: 2px; background: var(--texte);
  transition: transform .35s var(--ease-out), top .35s var(--ease-out), right .35s var(--ease-out);
}
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; right: 16px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; right: 10px; transform: rotate(-45deg); }

.shiftbar {
  position: absolute; left: 0; bottom: 0; width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--bleu), var(--bleu-vif) 55%, var(--rouge) 85%, var(--rouge-vif));
  transform: scaleX(var(--progress, 0)); transform-origin: left;
  box-shadow: 0 0 10px rgba(255,51,65,.6);
}

.menu-mobile {
  position: fixed; inset: 0; z-index: 40;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--header-h) + var(--safe-top) + 2rem) var(--gutter) calc(2rem + var(--safe-bottom));
  background:
    radial-gradient(80% 50% at 0% 100%, rgba(227,16,30,.35), transparent 70%),
    radial-gradient(80% 50% at 100% 100%, rgba(34,102,255,.3), transparent 70%),
    var(--noir);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .55s var(--ease-out);
}
.menu-mobile[hidden] { display: none; }
.menu-mobile.is-open { clip-path: inset(0 0 0 0); }
.menu-mobile__list { margin: 0; padding: 0; list-style: none; display: grid; gap: .5rem; }
.menu-mobile__list a {
  display: block; padding: .25rem 0;
  font: 900 clamp(2.8rem, 13vw, 4.5rem)/1 var(--font-display); text-decoration: none;
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s, transform .5s var(--ease-out);
}
.menu-mobile.is-open .menu-mobile__list a { opacity: 1; transform: none; }
.menu-mobile.is-open li:nth-child(2) a { transition-delay: .06s; }
.menu-mobile.is-open li:nth-child(3) a { transition-delay: .12s; }
.menu-mobile.is-open li:nth-child(4) a { transition-delay: .18s; }
.menu-mobile__foot { display: grid; gap: 1rem; color: var(--gris); }
.menu-mobile__foot .btn { justify-self: start; }

@media (min-width: 640px) {
  .header__cta { display: inline-flex; }
}
@media (min-width: 960px) {
  .nav { display: block; }
  .burger, .menu-mobile { display: none; }
}

/* ---------- 5. HERO (photo du garage) + COMPTE-TOURS ---------- */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: 100svh;
  display: flex;
  /* Le hero passe sous le header transparent */
  margin-top: calc(-1 * (var(--header-h) + var(--safe-top)));
  padding-top: calc(var(--header-h) + var(--safe-top));
}
.hero__media {
  position: absolute; inset: 0; z-index: -1;
  -webkit-mask-image: linear-gradient(#000 72%, transparent 100%);
  mask-image: linear-gradient(#000 72%, transparent 100%);
}
.hero__img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%;
}
/* Fumée : en mode « screen », elle éclaire la photo sans la masquer */
.hero__smoke { position: absolute; inset: 0; width: 100%; height: 100%; mix-blend-mode: screen; opacity: .85; }
/* Voiles : haut sombre pour le titre et le header, bas qui se fond dans la page */
.hero__media::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0,0,0,.82) 0%, rgba(0,0,0,.35) 26%, rgba(0,0,0,0) 42%),
    linear-gradient(0deg, rgba(0,0,0,.85) 0%, rgba(0,0,0,.6) 22%, rgba(0,0,0,0) 46%);
}

.hero__inner {
  position: relative; z-index: 1;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  gap: 2rem; padding-block: clamp(1.5rem, 4vh, 3rem) clamp(2rem, 6vh, 4rem);
  text-align: center;
}
.hero__title {
  font-size: clamp(2.6rem, 1rem + 5.4vw, 6.25rem); font-weight: 900; line-height: .88;
  text-shadow: 0 2px 30px rgba(0,0,0,.6);
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .05em; }
.hero__title .line > span { display: block; text-wrap: balance; }
.hero__bas { display: grid; justify-items: center; gap: 1.5rem; }
.hero__sub { max-width: 56ch; font-size: var(--fs-2); color: #D5DAE3; text-shadow: 0 1px 12px rgba(0,0,0,.8); }
.hero__ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.hero__marques { font-size: var(--fs-0); color: var(--gris); }

/* Séquence d'arrivée unique : la photo s'allume comme les néons, puis le titre monte */
.js .hero__img { opacity: 0; transform: scale(1.06); transition: opacity 1.4s ease, transform 2.4s var(--ease-out); }
.js .hero__title .line > span { transform: translateY(105%); transition: transform 1.1s .35s var(--ease-out); }
.js .hero__title .line:nth-child(2) > span { transition-delay: .45s; }
.js .hero__bas { opacity: 0; transform: translateY(12px); transition: opacity .8s .8s, transform .8s .8s var(--ease-out); }
.is-loaded .hero__img { opacity: 1; transform: none; }
.is-loaded .hero__title .line > span { transform: none; }
.is-loaded .hero__bas { opacity: 1; transform: none; }

/* Mobile : on recadre sur le face-à-face, les deux calandres et la fumée au centre */
@media (max-width: 639px) {
  /* La photo occupe le haut de l'écran pour que le texte du bas ne couvre pas les voitures */
  .hero__media { bottom: auto; height: 70svh; }
  .hero__img { object-position: 50% 50%; }
  .hero__sub { font-size: var(--fs-1); }
  .hero__ctas { flex-direction: column; align-items: stretch; width: 100%; }
  .hero__bas { width: 100%; }
}

/* Compte-tours (dans la tuile Audi TT) */
.gauge { width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 0 22px rgba(56,198,255,.25)); }
.g-track { fill: none; stroke: rgba(255,255,255,.08); stroke-width: 10; }
.g-progress { fill: none; stroke: url(#g-grad); stroke-width: 10; }
.g-redline { fill: none; stroke: var(--neon-rouge); stroke-width: 4; filter: drop-shadow(0 0 6px var(--neon-rouge)); }
.g-needle polygon { fill: var(--neon-rouge); filter: drop-shadow(0 0 6px rgba(255,51,65,.8)); }
.tick { stroke: rgba(255,255,255,.3); stroke-width: 2; }
.tick--major { stroke: #fff; stroke-width: 3; }
.tick--red { stroke: var(--neon-rouge); }
.tick-label { fill: var(--gris); font: 600 22px var(--font-display); text-anchor: middle; dominant-baseline: central; }
.g-speed { fill: #fff; font: 900 104px var(--font-display); text-anchor: middle; font-variant-numeric: tabular-nums; }
.g-unit { fill: var(--gris); font: 500 16px var(--font-texte); text-anchor: middle; }
.g-mode { fill: var(--gris); font: 500 13px var(--font-texte); text-anchor: middle; opacity: .7; }

/* ---------- 6. PRESTATIONS ---------- */
.legende { display: flex; flex-wrap: wrap; gap: 1.25rem; font-size: var(--fs-0); color: var(--gris); }
.legende__item { display: inline-flex; align-items: center; gap: .5rem; }
.legende__item::before { content: ""; width: 18px; height: 3px; background: var(--c); box-shadow: 0 0 8px var(--c); }
.legende__item--vag { --c: var(--neon-rouge); }
.legende__item--ford { --c: var(--neon-bleu); }
.legende__item--multi { --c: var(--gris); }

.services__grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }

.tile {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column; gap: 1rem;
  padding: clamp(1.5rem, 3vw, 2.25rem);
  background: var(--verre);
  border: 1px solid var(--ligne);
}
.tile::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: var(--c, var(--gris));
  box-shadow: 0 0 14px 1px var(--c, transparent), 0 0 42px 2px var(--halo, transparent);
}
/* La couleur du filet supérieur indique la marque concernée (voir légende) */
.tile--vag { --c: var(--neon-rouge); --halo: rgba(255,51,65,.35); }
.tile--ford { --c: var(--neon-bleu); --halo: rgba(56,198,255,.35); }
.tile--multi { --c: var(--gris); --halo: transparent; }
.tile > :not(.tile__bg-code) { position: relative; }
.tile__title { font-size: var(--fs-3); overflow-wrap: break-word; hyphens: auto; }
.tile--activation .tile__title, .tile--reprog .tile__title { font-size: clamp(1.5rem, 1.2rem + .6vw, 1.75rem); }
.tile p { color: var(--texte-2); max-width: 58ch; }

.tile__list { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; }
.tile__list li { display: flex; gap: .75rem; align-items: baseline; }
.tile__list li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--c); transform: translateY(-1px); }

.tile__link {
  align-self: flex-start; margin-top: auto; padding-bottom: 2px;
  color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--c);
  transition: color .2s;
}
.tile__link:hover { color: var(--rouge-vif); }

.tile--tt {
  background: radial-gradient(120% 90% at 100% 100%, rgba(227,16,30,.26), transparent 60%), var(--verre);
  padding-bottom: clamp(2rem, 4vw, 3rem);
}
.tile--tt .tile__title { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); max-width: 10ch; }
.tile__tt-body { display: grid; gap: 1.5rem; align-items: center; margin-block: .5rem; }
.tile__gauge { width: min(70vw, 240px); justify-self: center; }
@media (min-width: 560px) {
  .tile__tt-body { grid-template-columns: 1fr minmax(180px, 230px); }
  .tile__gauge { width: 100%; }
}
.tile .tile__bg-code {
  position: absolute; right: -.04em; bottom: -.2em;
  font: 900 clamp(10rem, 26vw, 21rem)/1 var(--font-display);
  color: transparent; -webkit-text-stroke: 1.5px rgba(227,16,30,.4);
  pointer-events: none; user-select: none;
}

.tile--sync {
  display: grid; gap: 2rem; align-items: center;
  background: radial-gradient(90% 140% at 100% 0%, rgba(34,102,255,.3), transparent 60%), var(--verre);
}
.tile__sync-text { display: flex; flex-direction: column; gap: 1rem; align-items: flex-start; }
.tile__sync-text .btn { margin-top: .5rem; }
.tile--sync .tile__title { font-size: clamp(1.9rem, 1.3rem + 2vw, 3rem); max-width: 18ch; }

@media (min-width: 720px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .tile--tt, .tile--sync { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .services__grid { grid-template-columns: repeat(4, 1fr); grid-auto-rows: minmax(230px, auto); }
  .tile--tt { grid-column: 1 / 3; grid-row: 1 / 3; }
  .tile--carplay { grid-column: 3 / 5; }
  .tile--activation { grid-column: 3 / 4; }
  .tile--reprog { grid-column: 4 / 5; }
  .tile--sync { grid-column: 1 / -1; grid-template-columns: 1.4fr 1fr; padding: 2.75rem; }
}

/* ---------- 6 bis. PACKS ET TARIFS ---------- */
.packs__grid {
  display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.pack[hidden] { display: none; }
.pack.is-entering { animation: real-in .5s var(--ease-out) both; }
.pack--vag { --c: var(--neon-rouge); --halo: rgba(255,51,65,.35); }
.pack--ford { --c: var(--neon-bleu); --halo: rgba(56,198,255,.35); }
.pack--multi { --c: var(--gris); --halo: rgba(140,149,166,.2); }

.pack__card {
  position: relative; height: 100%;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--verre); border: 1px solid var(--ligne);
  transition: border-color .3s, box-shadow .3s;
}
/* Tube néon supérieur, comme les tuiles de prestations */
.pack__card::before {
  content: ""; position: absolute; top: -1px; left: -1px; right: -1px; height: 3px;
  background: var(--c); box-shadow: 0 0 14px 1px var(--c), 0 0 42px 2px var(--halo);
}
/* Pack mis en avant (avec badge) : halo sur tout le contour */
.pack--avant .pack__card {
  border-color: var(--c);
  box-shadow: 0 0 32px -8px var(--c), inset 0 0 60px -30px var(--c);
}
.pack__card:hover { border-color: var(--c); }

.pack__head { display: grid; gap: .6rem; justify-items: start; }
.pack__badge {
  padding: .3rem .7rem; border: 1.5px solid var(--c); border-radius: 4px;
  font-size: .8125rem; font-weight: 600; letter-spacing: .03em; color: #fff;
  box-shadow: 0 0 10px var(--halo), inset 0 0 10px var(--halo); text-shadow: 0 0 8px var(--c);
}
.pack__titre { font-size: clamp(1.9rem, 1.4rem + 1.3vw, 2.5rem); }
.pack__compat { font-size: .9375rem; color: var(--gris); }

/* Prix : l'information que l'on cherche en premier */
.pack__prix { display: grid; justify-items: start; gap: .35rem; padding-block: 1.1rem; border-block: 1px dashed var(--ligne); }
.pack__apartir { font-size: .875rem; color: var(--gris); }
.pack__montant {
  font: 900 clamp(3rem, 2.3rem + 2.2vw, 4.25rem)/.9 var(--font-display); color: #fff;
  font-variant-numeric: tabular-nums; text-shadow: 0 0 26px var(--halo);
}
.pack__montant--devis { font-size: clamp(2.2rem, 1.9rem + 1.2vw, 2.8rem); color: var(--texte-2); text-shadow: none; }
.pack__mention { font-size: .8125rem; color: var(--gris); }

.pack__items { display: grid; gap: .6rem; margin: 0; padding: 0; list-style: none; color: var(--texte-2); }
.pack__items li { display: flex; gap: .75rem; align-items: baseline; }
.pack__items li::before { content: ""; flex: none; width: 8px; height: 8px; background: var(--c); box-shadow: 0 0 6px var(--c); transform: translateY(-1px); }

.pack__foot { margin-top: auto; display: grid; gap: 1rem; padding-top: .5rem; }
.pack__duree { display: flex; align-items: center; gap: .5rem; font-size: .875rem; color: var(--gris); }
.pack__duree svg { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pack__actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.pack__actions .btn { flex: 1 1 auto; }

/* Alignement d'une carte à l'autre : titres, prix, contenus et boutons sur les mêmes lignes */
@supports (grid-template-rows: subgrid) {
  .pack:not([hidden]) { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
  .pack__card { grid-row: 1 / -1; display: grid; grid-template-rows: subgrid; row-gap: 1.25rem; }
  .pack__head { align-content: start; }
  .pack__prix { align-content: end; }
  .pack__foot { grid-row: 4; margin-top: 0; align-content: end; }
}

/* Rappel du pack choisi dans le formulaire */
.form__pack {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .5rem .5rem .5rem 1rem; color: var(--texte);
  background: rgba(56,198,255,.07); border: 1px solid var(--ligne); border-left: 3px solid var(--neon-bleu);
}
.form__pack[hidden] { display: none; }
.form__pack-retirer {
  min-height: 44px; padding: 0 .75rem; background: none; border: 0; cursor: pointer;
  color: var(--gris); font: inherit; font-size: .875rem; text-decoration: underline; text-underline-offset: 3px;
}
.form__pack-retirer:hover { color: var(--texte); }

/* ---------- 6 ter. MISES EN AVANT (vidéo, HTML, YouTube) ---------- */
.mea--vag { --c: var(--neon-rouge); --halo: rgba(255,51,65,.35); }
.mea--ford { --c: var(--neon-bleu); --halo: rgba(56,198,255,.35); }
.mea--multi { --c: var(--neon-rouge); --c2: var(--neon-bleu); --halo: rgba(123,92,255,.35); }

.mea__grid { display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.mea__texte { display: grid; gap: 1.5rem; justify-items: start; }
.mea__intro p + p { margin-top: .9em; }
.mea__media { width: 100%; justify-self: center; }

/* Média vertical ou carré : texte à gauche, média à droite (largeur limitée) */
.mea--vertical .mea__media { max-width: 400px; }
.mea--vertical.mea--phone .mea__media { max-width: min(340px, 78vw); }
@media (min-width: 900px) {
  .mea--vertical .mea__grid { grid-template-columns: minmax(0, 1fr) minmax(280px, 400px); }
  .mea--vertical.mea--phone .mea__grid { grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); }
}

/* Écran : tube néon en haut, comme les tuiles */
.mea__ecran {
  position: relative; overflow: hidden; width: 100%;
  background: #000; border: 1px solid var(--ligne);
  box-shadow: 0 30px 80px -30px rgba(0,0,0,.9), 0 0 70px -20px var(--halo);
}
.mea__ecran::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, var(--c), var(--c2, var(--c)));
  box-shadow: 0 0 14px 1px var(--c), 0 0 40px 2px var(--halo);
}

/* Cadre smartphone : bordure arrondie, îlot de caméra, halo néon */
.mea--phone .mea__cadre {
  padding: 11px; border-radius: 46px; background: linear-gradient(145deg, #1A1F2B, #07090D);
  border: 1px solid #2C3446;
  box-shadow: 0 0 0 2px #05070A, 0 40px 90px -30px rgba(0,0,0,.95), 0 0 80px -20px var(--halo);
}
.mea--phone .mea__ecran { border: 0; border-radius: 36px; box-shadow: none; }
.mea--phone .mea__ecran::before { display: none; }
.mea--phone .mea__ecran::after {
  content: ""; position: absolute; top: 12px; left: 50%; z-index: 2; width: 30%; height: 24px;
  transform: translateX(-50%); border-radius: 12px; background: #000; pointer-events: none;
}

.mea__frame, .mea__video, .mea__embed, .mea__embed iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block;
}
.mea__video { object-fit: cover; }
/* Animation à taille fixe : gardée à sa taille d'origine puis réduite (highlights.js) */
.mea__frame--fixe { inset: auto; top: 0; left: 0; transform-origin: 0 0; }
.mea__vide { position: absolute; inset: 0; display: grid; place-items: center; padding: 1.5rem; text-align: center; color: var(--gris); font-size: .875rem; }

/* ---------- 7. RÉALISATIONS ---------- */
.filtres {
  display: flex; gap: .5rem; margin: 0 calc(-1 * var(--gutter)) 2rem; padding: 0 var(--gutter) .5rem;
  overflow-x: auto; scrollbar-width: none;
}
.filtres::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .5rem;
  min-height: 44px; padding: .55rem 1.05rem;
  font: 500 .9375rem/1 var(--font-texte); color: var(--texte-2);
  background: transparent; border: 1px solid var(--ligne); border-radius: 999px; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.chip:hover { border-color: var(--gris); color: var(--texte); }
.chip[aria-pressed="true"] { background: var(--texte); border-color: var(--texte); color: var(--noir); }
.chip__count { font-variant-numeric: tabular-nums; opacity: .55; }

.showcase {
  display: grid; gap: 1.25rem; margin: 0; padding: 0; list-style: none;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr));
}
.real[hidden] { display: none; }
.real.is-entering { animation: real-in .5s var(--ease-out) both; }
@keyframes real-in { from { opacity: 0; transform: translateY(12px); } }

.real__card { height: 100%; display: flex; flex-direction: column; background: var(--verre); border: 1px solid var(--ligne); }
.real__card--vag { --glow: rgba(255,51,65,.45); --c: var(--neon-rouge); }
.real__card--ford { --glow: rgba(56,198,255,.4); --c: var(--neon-bleu); }
.real__visual {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(100% 130% at 0% 100%, var(--glow), transparent 62%), #04060A;
}
.real__visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.real__code {
  font: 900 clamp(4.5rem, 10vw, 6.5rem)/1 var(--font-display); letter-spacing: .02em;
  color: transparent; -webkit-text-stroke: 1.5px rgba(255,255,255,.85);
}
.real__body { display: grid; gap: .5rem; padding: 1.25rem 1.35rem 1.5rem; }
.real__vehicule { font-size: .875rem; color: var(--gris); }
.real__titre { font-size: 1.7rem; line-height: 1; }
.real__desc { font-size: .9375rem; color: var(--texte-2); }
.real__tag { display: inline-flex; align-items: center; gap: .5rem; margin-top: .5rem; font-size: .8125rem; color: var(--gris); }
.real__tag::before { content: ""; width: 14px; height: 3px; background: var(--c); box-shadow: 0 0 6px var(--c); }

.showcase__vide { padding: 2rem 0; color: var(--texte-2); }

::view-transition-group(*) { animation-duration: .4s; animation-timing-function: var(--ease-out); }

/* ---------- 8. CHIFFRES + AVIS ---------- */
.chiffres {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 2.25rem 1rem;
  margin-bottom: clamp(3rem, 6vw, 5rem); padding-top: 2rem; border-top: 1px solid var(--ligne);
}
.chiffre { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: .5rem; }
.chiffre dd { font: 900 clamp(3rem, 2rem + 4vw, 5.5rem)/.9 var(--font-display); font-variant-numeric: tabular-nums; }
.chiffre dt { font-size: .9375rem; color: var(--gris); max-width: 20ch; }
@media (min-width: 960px) { .chiffres { grid-template-columns: repeat(4, 1fr); } }

.avis__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(86%, 420px); gap: 1rem;
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
  scroll-padding-inline: var(--gutter);
  margin-inline: calc(-1 * var(--gutter)); padding: .25rem var(--gutter);
}
.avis__track::-webkit-scrollbar { display: none; }
.avis__card {
  scroll-snap-align: start; margin: 0;
  display: flex; flex-direction: column; gap: 1.25rem;
  padding: 1.75rem; background: var(--verre); border: 1px solid var(--ligne);
}
.avis__stars { display: flex; gap: 3px; }
.avis__stars svg { width: 16px; height: 16px; fill: var(--rouge); }
.avis__quote { margin: 0; font-size: 1.125rem; line-height: 1.55; color: #E1E5EC; }
.avis__auteur { margin-top: auto; font-weight: 600; font-style: normal; }
.avis__vehicule { display: block; font-size: .875rem; font-weight: 400; color: var(--gris); }

.avis__nav { display: flex; align-items: center; gap: .5rem; margin-top: 1.5rem; }
.avis__btn {
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--asphalte); border: 1px solid var(--ligne); color: var(--texte);
  transition: background-color .2s, border-color .2s, opacity .2s;
}
.avis__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.avis__btn:hover:not(:disabled) { background: var(--rouge); border-color: var(--rouge); }
.avis__btn:disabled { opacity: .35; cursor: default; }
.avis__status { margin-left: .75rem; font-size: .875rem; color: var(--gris); font-variant-numeric: tabular-nums; }

/* ---------- 9. CONTACT ---------- */
.contact { background: radial-gradient(60% 55% at 0% 100%, rgba(227,16,30,.14), transparent 70%); }
.contact__grid { display: grid; gap: 3rem; }
.contact__infos { display: grid; gap: 1.5rem; align-content: start; }
.coord { display: grid; gap: 1.25rem; margin-top: 1rem; }
.coord dt { font-size: .875rem; color: var(--gris); }
.coord dd { font-size: 1.125rem; font-weight: 500; }
.coord a { text-decoration: none; border-bottom: 1px solid var(--ligne); }
.coord a:hover { border-color: var(--rouge); }
@media (min-width: 960px) { .contact__grid { grid-template-columns: .85fr 1.15fr; gap: 5rem; } }

.form { display: grid; gap: 1.25rem; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--verre); border: 1px solid var(--ligne); }
.form[hidden] { display: none; }
.form__row { display: grid; gap: 1.25rem; }
@media (min-width: 640px) { .form__row--2 { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: .45rem; align-content: start; }
.field > label { font-size: .9375rem; font-weight: 500; }
.opt { font-weight: 400; color: var(--gris); }

.input {
  width: 100%; min-height: 50px; padding: .8rem 1rem;
  font: inherit; color: var(--texte);
  background: var(--champ); border: 1px solid var(--ligne); border-radius: 2px;
  transition: border-color .2s, box-shadow .2s;
}
.input::placeholder { color: #5D6676; }
.input:focus { outline: none; border-color: var(--bleu); box-shadow: 0 0 0 3px rgba(34,102,255,.25); }
.input[aria-invalid="true"] { border-color: var(--rouge); }
.input[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(227,16,30,.25); }
.input--select {
  appearance: none; padding-right: 2.75rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238C95A6' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .9rem center; background-size: 18px;
}
.input--area { min-height: 140px; resize: vertical; line-height: 1.5; }

.field__error { font-size: .875rem; color: #FF6B73; }
.field__error:empty { display: none; }
.field__hint { display: flex; justify-content: space-between; gap: 1rem; }
.field__count { margin-left: auto; font-size: .8125rem; color: var(--gris); font-variant-numeric: tabular-nums; }

.check { display: flex; gap: .75rem; align-items: flex-start; font-size: .9rem; color: var(--texte-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin: .15rem 0 0; accent-color: var(--rouge); }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.form__alert { padding: .9rem 1rem; border-left: 3px solid var(--rouge); background: rgba(227,16,30,.12); color: #FFD0D3; }
.form__alert[hidden] { display: none; }
.form__submit { justify-self: start; min-width: 230px; }

.spinner {
  display: none; width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: spin .8s linear infinite;
}
.is-loading .spinner { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.form-success { display: grid; gap: 1rem; justify-items: start; padding: clamp(1.5rem, 4vw, 2.5rem); background: var(--asphalte); border: 1px solid var(--ligne); border-top: 3px solid var(--bleu); }
.form-success[hidden] { display: none; }
.form-success:focus { outline: none; }
.form-success h3 { font-size: var(--fs-3); }
.form-success p { color: var(--texte-2); }
.form-success__icon { width: 56px; height: 56px; fill: none; stroke-width: 3; }
.form-success__icon circle { stroke: var(--bleu); stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw .6s var(--ease-out) forwards; }
.form-success__icon path { stroke: #fff; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw .4s .45s var(--ease-out) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- 10. FOOTER ---------- */
.footer { padding-block: 4rem calc(2rem + var(--safe-bottom)); border-top: 1px solid var(--ligne); }
.footer__grid { display: grid; gap: 2.5rem; }
.footer__brand { display: grid; gap: 1rem; justify-items: start; }
.footer__brand p { max-width: 38ch; color: var(--gris); font-size: .9375rem; }
.footer__title { margin-bottom: 1rem; font-size: 1.35rem; }
.footer__list { display: grid; gap: .55rem; margin: 0; padding: 0; list-style: none; color: var(--gris); font-size: .9375rem; }
.footer__list a { text-decoration: none; transition: color .2s; }
.footer__list a:hover { color: var(--texte); }
.footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem;
  margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--ligne);
  font-size: .875rem; color: var(--gris);
}
.footer__bottom a { margin-left: 1.25rem; text-decoration: none; }
.footer__bottom a:first-child { margin-left: 0; }
.footer__bottom a:hover { color: var(--texte); }
@media (min-width: 720px) { .footer__grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; } }

/* ---------- 10 bis. AMBIANCE : FUMÉE DE FOND + GRAIN ---------- */
/* Canvas fixe créé par smoke.js, derrière tout le contenu */
.ambiance {
  position: fixed; inset: 0; z-index: -1; width: 100%; height: 100%;
  pointer-events: none; opacity: 0; transition: opacity 2.5s ease;
}
.ambiance.is-on { opacity: 1; }

/* Grain photo très léger sur toute la page : unifie l'image du hero
   et la fumée, et masque le flou des photos agrandies */
.has-grain::after {
  content: ""; position: fixed; inset: 0; z-index: 100; pointer-events: none;
  opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- 11. MOUVEMENT ---------- */
/* Apparition au défilement : réservée aux titres de section et aux blocs principaux */
.js [data-reveal] {
  opacity: 0; transform: translateY(24px);
  transition: opacity .8s var(--ease-out), transform .8s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 80ms);
}
.js [data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js [data-reveal], .js .hero__title .line > span, .js .hero__img, .js .hero__bas { transform: none; }
}

/* =====================================================================
   12. WORDPRESS : en-tête, pages intérieures, contenus de l'éditeur
   ===================================================================== */

/* Barre d'administration WordPress (utilisateurs connectés) */
.admin-bar .header { top: 32px; }
@media (max-width: 782px) { .admin-bar .header { top: 46px; } }
@media (max-width: 600px) { .admin-bar .header { top: 0; } }

.screen-reader-text {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Logo image (Apparence > Personnaliser > Identité du site) */
.logo--image { margin-right: auto; }
.logo--image img { max-height: 44px; width: auto; }
.footer__brand .logo--image img { max-height: 56px; }

/* Lien panier WooCommerce */
.cart-link {
  position: relative; display: grid; place-items: center; width: 44px; height: 44px;
  color: var(--texte); text-decoration: none; transition: color .2s;
}
.cart-link:hover { color: var(--neon-bleu); }
.cart-link svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-link__count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  display: grid; place-items: center; border-radius: 9px;
  background: var(--rouge); color: #fff; font-size: .6875rem; font-weight: 600; line-height: 1;
  box-shadow: 0 0 10px rgba(255,51,65,.6);
}
.cart-link__count[hidden] { display: none; }

/* Pages intérieures : le contenu commence sous l'en-tête */
.page-wrap { padding-block: clamp(2.5rem, 6vw, 5rem) clamp(4rem, 8vw, 7rem); min-height: 60vh; }
.page-head { margin-bottom: clamp(2rem, 4vw, 3rem); padding-bottom: 1.5rem; border-bottom: 1px solid var(--ligne); position: relative; }
.page-head::after {
  content: ""; position: absolute; left: 0; bottom: -1px; width: 120px; height: 2px;
  background: linear-gradient(90deg, var(--neon-rouge), var(--neon-bleu)); box-shadow: 0 0 12px rgba(56,198,255,.5);
}
.page-title { font-size: var(--fs-4); }
.page-empty { color: var(--texte-2); }

/* Contenu de l'éditeur : texte limité en largeur, blocs larges autorisés */
.prose { color: var(--texte-2); font-size: var(--fs-2); }
.prose > * + * { margin-top: 1.25em; }
.prose > :where(p, ul, ol, h2, h3, h4, blockquote) { max-width: 70ch; }
.prose h2, .prose h3, .prose h4 { color: var(--texte); margin-top: 2em; }
.prose h2 { font-size: var(--fs-3); }
.prose h3 { font-size: 1.5rem; }
.prose a { color: var(--texte); text-decoration-color: var(--rouge); text-underline-offset: 3px; }
.prose a:hover { color: var(--neon-bleu); }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { margin-inline: 0; padding-left: 1.25rem; border-left: 3px solid var(--rouge); color: var(--texte); }
.prose img { height: auto; }
.prose figure { margin-inline: 0; }
.prose figcaption { font-size: var(--fs-0); color: var(--gris); margin-top: .5rem; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--fs-1); display: block; overflow-x: auto; }
.prose th, .prose td { padding: .7rem .9rem; border-bottom: 1px solid var(--ligne); text-align: left; }
.prose hr { border: 0; border-top: 1px solid var(--ligne); }
.prose .wp-block-button__link { background: var(--rouge); color: #fff; border-radius: 0; font-weight: 600; text-decoration: none; }
.alignwide { max-width: 1100px; }
.alignfull { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); }
.aligncenter { margin-inline: auto; }
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }

/* Liste d'articles */
.post-list { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { background: var(--verre); border: 1px solid var(--ligne); display: flex; flex-direction: column; }
.post-card__img img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.post-card__body { padding: 1.35rem; display: grid; gap: .6rem; }
.post-card__date { font-size: .875rem; color: var(--gris); }
.post-card__title { font-size: 1.75rem; }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover { color: var(--neon-bleu); }
.post-card__excerpt { color: var(--texte-2); font-size: .9375rem; }
.single-img { margin-bottom: 2rem; }
.single-img img { width: 100%; height: auto; }
.pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.page-numbers { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 .9rem; border: 1px solid var(--ligne); text-decoration: none; color: var(--texte-2); }
.page-numbers.current, .page-numbers:hover { border-color: var(--rouge); color: var(--texte); }

/* 404 */
.page-404 { display: grid; gap: 1.5rem; justify-items: start; }
.page-404__code {
  font: 900 clamp(7rem, 22vw, 16rem)/.8 var(--font-display); color: transparent;
  -webkit-text-stroke: 2px var(--neon-rouge); filter: drop-shadow(0 0 18px rgba(255,51,65,.5));
}
.page-404 > p { color: var(--texte-2); max-width: 55ch; }
.page-404__ctas { display: flex; flex-wrap: wrap; gap: .9rem; }

/* Commentaires (articles) */
.comments-area { margin-top: 4rem; max-width: 70ch; }
.comment-list { list-style: none; padding: 0; }
.comment-form input:not([type="submit"]):not([type="checkbox"]), .comment-form textarea {
  width: 100%; padding: .8rem 1rem; font: inherit; color: var(--texte); background: var(--champ); border: 1px solid var(--ligne);
}
.comment-form .submit { background: var(--rouge); color: #fff; border: 0; padding: .85rem 1.6rem; font: 600 1rem var(--font-texte); cursor: pointer; }
