/* mesures, courbes et teintes */
:root {
  --spring: cubic-bezier(.22, 1, .36, 1);
  --smooth: cubic-bezier(.4, 0, .2, 1);
  --pad: clamp(20px, 5vw, 64px);
  --max: 1200px;

  /* le noir et les gris : sourds, jamais de blanc pur */
  --night-950: #000000;  --night-900: #050505;  --night-850: #0A0A0A;  --night-800: #0F0F0F;
  --ink-50: #F1F1F2;  --ink-100: #DEDEE0;  --ink-200: #BFBFC3;
  --ink-300: #8C8C92;  --ink-500: #5C5C62;  --ink-600: #36363B;  --ink-700: #252529;
  --veil: 0, 0, 0;

  /* le vert de PDM Truck : une seule couleur, posee sur le chrome */
  --green: #2EE06F;
  --green-hi: #9DF7BC;
  --green-deep: #0E6B34;
  --green-lum: 46, 224, 111;

  /* le chrome des titres, teinte vert */
  --chrome: linear-gradient(115deg,
    #F2FFF6 0%, #B9F5CD 16%, #2FB462 36%, #E9FFF0 54%,
    #1E7A45 76%, #F2FFF6 100%);
  --gloss-ag: linear-gradient(115deg,
    rgba(150,255,190,.55) 0%, rgba(90,230,140,.48) 22%, rgba(40,170,95,.42) 45%,
    rgba(140,250,185,.55) 62%, rgba(35,150,85,.40) 82%, rgba(150,255,190,.55) 100%);
}

/* --------------------------------------------------------------- squelette */

*, *::before, *::after { box-sizing: border-box; }

html {
  background: var(--night-950);
  color: var(--ink-50);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100dvh;
  overflow-x: clip;
  font-family: 'Inter', ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ink-200);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
/* un attribut width/height ne doit jamais ecraser le ratio reel du fichier */
img[width][height] { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

/* le fond : les halos fixes, le brouillard WebGL par dessus, puis le voile */
.bg {
  position: fixed; inset: 0; z-index: -10;
  pointer-events: none; overflow: hidden;
  background:
    radial-gradient(60% 50% at 70% 40%, rgba(255,255,255,.045), transparent),
    radial-gradient(50% 45% at 20% 80%, rgba(255,255,255,.03), transparent),
    var(--night-950);
}
.bg canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform: scale(1.1);
  opacity: 0; transition: opacity .7s var(--smooth);
}
.bg canvas.is-on { opacity: 1; }
.bg__veil {
  position: absolute; inset: 0;
  background: radial-gradient(100% 80% at 50% 45%,
    rgba(var(--veil), .18) 0%, rgba(var(--veil), .62) 100%);
}

.wrap { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--pad); }

/* ------------------------------------------------------------------ typo */

.title {
  font-family: 'Archivo Black', 'Arial Black', sans-serif;
  font-style: italic;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .88;
  color: var(--ink-50);
  margin: 0;
}
.title--xl { font-size: clamp(2.5rem, 7.4vw, 6rem); }
.title--lg { font-size: clamp(1.9rem, 4.6vw, 3.4rem); }
.title--md { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.035em; }

/* le degrade applique au texte : la deuxieme ligne des grands titres */
.chrome {
  background-image: var(--chrome);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

.eyebrow {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; font-weight: 500;
  letter-spacing: .26em; text-transform: uppercase;
  color: var(--ink-500);
  margin: 0;
}

.lede { font-size: clamp(1rem, 1.3vw, 1.125rem); font-weight: 700; color: var(--ink-300); line-height: 1.55; }

.num {
  font-family: 'Archivo Black', sans-serif; font-style: italic; font-weight: 900;
  font-size: clamp(1.8rem, 3vw, 2.75rem); letter-spacing: -.05em;
  background-image: var(--chrome);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* --------------------------------------------------------------- boutons */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  border-radius: 999px; white-space: nowrap;
  padding: 10px 24px; font-size: 15px; font-weight: 900;
  transition: transform .38s var(--spring), border-color .3s var(--smooth), color .3s var(--smooth);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 16px 32px; font-size: 1.0625rem; }
.btn--sm { padding: 9px 18px; font-size: 14px; }

/* le bouton "gloss" de TZ : degrade, deux lisereds internes, une ombre teintee */
.gloss {
  position: relative;
  background-image: var(--gloss-ag);
  backdrop-filter: blur(14px) saturate(120%);
  color: var(--ink-50);
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.55),
    inset 0 -2px 0 rgba(0,0,0,.18),
    0 14px 34px -14px rgba(var(--green-lum), .55);
}
.gloss:hover {
  text-shadow: 0 1px 2px rgba(0,0,0,.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.7),
    inset 0 -2px 0 rgba(0,0,0,.18),
    0 18px 40px -14px rgba(var(--green-lum), .75);
}
.btn--ghost { border: 1px solid var(--ink-600); color: var(--ink-50); }
.btn--ghost:hover { border-color: var(--ink-300); }

.btn--soft {
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--ink-100); font-weight: 700;
}
.btn--soft:hover { background: rgba(255,255,255,.09); border-color: rgba(255,255,255,.2); }

/* ------------------------------------------------------------ annonce+nav */

.ann {
  position: relative; z-index: 60;
  display: flex; align-items: center; justify-content: center; gap: .6em;
  padding: 11px 16px; text-align: center;
  font-size: 13px; font-weight: 700; color: var(--ink-200);
  background: rgba(var(--veil), .7);
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.ann b { font-weight: 900; color: var(--ink-50); }
.ann::before {
  content: ''; width: 6px; height: 6px; border-radius: 999px; flex: none;
  background: var(--green); box-shadow: 0 0 10px rgba(var(--green-lum), .7);
}

.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 12px;
  padding: 14px var(--pad);
  transition: background-color .3s var(--smooth), backdrop-filter .3s var(--smooth), border-color .3s var(--smooth);
  border-bottom: 1px solid transparent;
}
.nav.is-stuck {
  background: rgba(var(--veil), .72);
  backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,.07);
}
.nav__logo { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.nav__logo img { width: 46px; height: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--ink-300);
  transition: color .3s var(--smooth), background-color .3s var(--smooth);
}
.nav__links a:hover { color: var(--ink-50); background: rgba(255,255,255,.06); }

/* --------------------------------------------------------------- le hero */

.hero { position: relative; overflow: clip; padding-top: clamp(40px, 7vw, 86px); }
.hero__in { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero .title--xl { margin-top: 14px; }
.hero .lede { margin: 20px 0 0; max-width: 46ch; }

/* le halo blanc derriere le titre */
.hero__glow {
  position: absolute; inset-inline: -15%; top: 18%; height: 74%;
  pointer-events: none; z-index: -1;
  background: radial-gradient(48% 46% at 50% 42%,
    rgba(255,255,255,.07), rgba(255,255,255,.025) 50%, transparent 75%);
}

.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 40px; margin: 26px 0 0; }
.stats div { text-align: center; }
.stats dt { font-family: 'Archivo Black', sans-serif; font-style: italic; font-weight: 900; font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -.04em; color: var(--ink-50); }
.stats dd { margin: 2px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-300); }

.hero__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

/* la scene inclinee qui se redresse au defilement */
.stage { margin-top: clamp(40px, 6vw, 60px); will-change: transform; }
.stage__in {
  transform-origin: top center;
  transform: perspective(1500px) rotateX(var(--rx, 16deg)) scale(var(--sc, .94));
  will-change: transform;
}
.stage__card {
  position: relative;
  border-radius: 26px;
  background: none;
  border: 1px solid rgba(255,255,255,.07);
  padding: clamp(16px, 2.6vw, 30px);
}
.stage__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; position: relative; }
.stage__tabs { display: flex; gap: 2px; flex-wrap: wrap; }
.tab {
  position: relative; padding: 9px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 800; color: var(--ink-500);
  transition: color .3s var(--smooth), background-color .3s var(--smooth);
}
.tab:hover { color: var(--ink-200); }
.tab.is-on { color: var(--ink-50); background: rgba(255,255,255,.06); }
/* le petit trait "holo" sous l'onglet actif */
.tab.is-on::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; translate: -50% 0;
  width: 16px; height: 2px; border-radius: 999px;
  background: var(--green); box-shadow: 0 0 8px rgba(var(--green-lum), .6);
}
.stage__media { position: relative; margin-top: 10px; aspect-ratio: 16 / 7; display: grid; place-items: center; }
.stage__media img {
  width: min(94%, 820px); height: auto;
  filter: drop-shadow(0 40px 60px rgba(0,0,0,.75));
  animation: float 9s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.stage__foot { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.stage__price { font-family: 'Archivo Black', sans-serif; font-style: italic; font-weight: 900; font-size: clamp(1.4rem, 2.6vw, 2.1rem); letter-spacing: -.04em; color: var(--ink-50); }

/* ------------------------------------------------------------- bandeau 3 */

.band { padding: clamp(60px, 9vw, 110px) 0 0; }
.band__grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px clamp(30px, 6vw, 80px); text-align: center; }
.band__n { font-family: 'Archivo Black', sans-serif; font-style: italic; font-weight: 900; font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -.05em; color: var(--ink-50); line-height: 1; }
.band__l { margin-top: 6px; font-size: 14px; font-weight: 700; color: var(--ink-300); }

/* --------------------------------------------------------------- sections */

.sec { padding: clamp(70px, 10vw, 130px) 0; }
.sec__head { display: grid; gap: 18px; align-items: end; grid-template-columns: 1fr; }
@media (min-width: 900px) { .sec__head { grid-template-columns: 1.4fr 1fr; } .sec__head .lede { text-align: right; margin: 0; } }
.sec__head .title { margin-top: 8px; }

/* cartes : le fond sombre + le halo, comme les cartes produit de TZ */
.card {
  position: relative;
  border-radius: 22px;
  background: none;
  border: 1px solid rgba(255,255,255,.07);
  transition: transform .38s var(--spring), border-color .3s var(--smooth);
}
.card:hover {
  transform: translateY(-4px);
  border-color: rgba(255,255,255,.18);
}
.card__media {
  position: relative; aspect-ratio: 16 / 9; display: grid; place-items: center;
}
.card__media img { width: 86%; height: auto; transition: transform .5s var(--spring); }
.card:hover .card__media img { transform: scale(1.04); }
.card__body { padding: 15px 16px 17px; }
.rowline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.rowline--end { align-items: flex-end; }
/* le compteur reste d'un bloc, mais la ligne passe a deux quand la colonne
   est trop etroite, sinon la carte deborde de l'ecran sur mobile. */
.rowline { flex-wrap: wrap; }
.rowline > * { min-width: 0; }
.rowline .eyebrow { flex: none; white-space: nowrap; }
.meta { margin: 8px 0 0; font-size: 14px; font-weight: 600; color: var(--ink-300); line-height: 1.5; }
/* un montant ne doit jamais se couper avant son signe dollar */
.meta b, .price { white-space: nowrap; }
.sep { height: 1px; background: rgba(255,255,255,.08); margin: 16px 0; }
.price { font-family: 'Archivo Black', sans-serif; font-style: italic; font-weight: 900; letter-spacing: -.04em; font-size: 1.25rem; color: var(--ink-50); }
.price s { display: block; font-family: 'Inter', sans-serif; font-weight: 700; font-size: .78rem; color: var(--ink-500); }

/* la grille numerotee 01 02 03 */
.steps { display: grid; gap: clamp(24px, 3vw, 36px); grid-template-columns: 1fr; margin-top: clamp(32px, 4vw, 54px); }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step__n { display: flex; align-items: center; gap: 14px; }
.step__n .rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(var(--green-lum), .55), rgba(var(--green-lum), .1) 35%, transparent); }
.step__media {
  margin-top: 14px; aspect-ratio: 16 / 10; display: grid; place-items: center;
  border-radius: 18px;
  background: none;
  border: 1px solid rgba(255,255,255,.07);
}
.step__media img { width: 84%; height: auto; }
.step h3 { margin: 16px 0 0; }
.step p { margin: 8px 0 0; font-size: 15px; font-weight: 600; color: var(--ink-300); line-height: 1.55; }

.grid3 { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: 1fr; grid-auto-rows: 1fr; margin-top: clamp(32px, 4vw, 54px); }
@media (min-width: 620px) { .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 980px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }

.grid4 { display: grid; gap: clamp(16px, 2vw, 24px); grid-template-columns: repeat(2, 1fr); grid-auto-rows: 1fr; margin-top: clamp(32px, 4vw, 54px); }
@media (min-width: 980px) { .grid4 { grid-template-columns: repeat(4, 1fr); } }

/* ------------------------------------------------------------------- faq */

.faq { max-width: 760px; margin-inline: auto; margin-top: clamp(30px, 4vw, 48px); }
.faq__i { border-top: 1px solid rgba(255,255,255,.08); }
.faq__i:last-child { border-bottom: 1px solid rgba(255,255,255,.08); }
.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; text-align: left; font-size: 1.0625rem; font-weight: 800; color: var(--ink-50);
}
.faq__s {
  flex: none; width: 30px; height: 30px; border-radius: 999px;
  display: grid; place-items: center;
  border: 1px solid rgba(255,255,255,.14); color: var(--ink-200);
  transition: transform .38s var(--spring), background-color .3s var(--smooth), border-color .3s var(--smooth);
}
.faq__q:hover .faq__s { border-color: rgba(255,255,255,.4); color: var(--ink-50); }
.faq__i.is-open .faq__s { transform: rotate(45deg); background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.35); color: var(--ink-50); }
.faq__a { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .5s var(--smooth), opacity .5s var(--smooth); }
.faq__i.is-open .faq__a { grid-template-rows: 1fr; opacity: 1; }
.faq__a > div { overflow: hidden; }
.faq__a p { margin: 0 0 22px; padding-right: 50px; font-size: 15px; font-weight: 600; color: var(--ink-300); line-height: 1.65; }

/* ------------------------------------------------------------- cta + pied */

.cta { position: relative; padding: clamp(80px, 12vw, 170px) 0; text-align: center; overflow: clip; }
.cta .title { font-size: clamp(2.6rem, 9vw, 7rem); }
.cta__btn { margin-top: 30px; }

.foot { border-top: 1px solid rgba(255,255,255,.07); background: rgba(var(--veil), .6); padding: clamp(46px, 6vw, 72px) 0 26px; }
.foot__grid { display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot h4 { margin: 0 0 14px; font-size: 12px; font-weight: 900; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-300); }
.foot ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.foot ul a { font-size: 15px; font-weight: 700; color: var(--ink-100); transition: color .3s var(--smooth); }
.foot ul a:hover { color: var(--ink-50); }
.foot__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.07); font-size: 14px; font-weight: 600; color: var(--ink-500); }
.foot__bar a { color: var(--ink-300); }
.foot__bar a:hover { color: var(--ink-50); }

.top {
  position: fixed; right: 16px; bottom: 18px; z-index: 40;
  width: 42px; height: 42px; padding: 0; border-radius: 999px;
  display: grid; place-items: center; line-height: 1;
  opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s var(--smooth), transform .38s var(--spring);
}
.top.is-on { opacity: 1; transform: none; pointer-events: auto; }

/* --------------------------------------------------------- les animations */

/* l'entree de page de TZ : flou et echelle qui se resorbent */
@keyframes page-in { from { filter: blur(8px); transform: scale(1.014); } to { filter: none; transform: none; } }
.page { animation: page-in .85s var(--spring) both; }

/* la revelation au defilement */
.js [data-rv] { opacity: 0; transform: translateY(20px); }
.js [data-rv].is-in {
  opacity: 1; transform: none;
  transition: opacity .7s var(--smooth), transform .62s var(--spring);
  transition-delay: var(--d, 0s);
}

@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

/* le bleu en accent : un numero sur deux, les puces de comptage */
/* un titre centre a besoin d'air sous sa surtitre */
.sec > .wrap > .title { margin-top: 10px; }

/* ------------------------------------------------------- le menu plein ecran */

.nav__menu { display: inline-flex; }
.burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 4px; width: 14px; }
.burger i { display: block; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform .38s var(--spring); }
.burger i:first-child { width: 14px; }
.burger i:last-child { width: 10px; }
.nav__menu[aria-expanded="true"] .burger i:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav__menu[aria-expanded="true"] .burger i:last-child { width: 14px; transform: translateY(-2.75px) rotate(-45deg); }

/* sous 860 px les liens de la barre passent dans le panneau */
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav { gap: 8px; }
  .nav .btn { padding: 9px 16px; font-size: 14px; }
}

.menu[hidden] { display: none; }
.menu {
  position: fixed; inset: 0; z-index: 70;
  display: flex; flex-direction: column;
  padding: clamp(18px, 4vw, 34px) var(--pad) clamp(24px, 4vw, 44px);
  opacity: 0; transition: opacity .34s var(--smooth);
}
.menu.is-open { opacity: 1; }
.menu__bg {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 72% 20%, rgba(255,255,255,.06), transparent),
    radial-gradient(52% 46% at 14% 88%, rgba(255,255,255,.035), transparent),
    rgba(var(--veil), .95);
  backdrop-filter: blur(16px);
}
.menu__close { align-self: flex-end; }

.menu__list { flex: 1; display: flex; flex-direction: column; justify-content: center; gap: clamp(4px, 1.4vh, 14px); }
.menu__list a {
  display: flex; align-items: baseline; gap: clamp(12px, 2vw, 26px);
  padding: clamp(4px, 1vh, 10px) 0;
  opacity: 0; transform: translateY(26px);
}
.menu.is-open .menu__list a {
  opacity: 1; transform: none;
  transition: opacity .5s var(--smooth) var(--d, 0s), transform .6s var(--spring) var(--d, 0s);
}
.menu__list a:nth-child(1) { --d: .06s; }
.menu__list a:nth-child(2) { --d: .11s; }
.menu__list a:nth-child(3) { --d: .16s; }
.menu__list a:nth-child(4) { --d: .21s; }
.menu__list a:nth-child(5) { --d: .26s; }
.menu__i { font-family: 'Inter', sans-serif; font-size: 12px; font-weight: 900; letter-spacing: .18em; color: var(--ink-500); }
.menu__t {
  font-family: 'Archivo Black', sans-serif; font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(2rem, 8vw, 4.5rem); letter-spacing: -.05em; line-height: .95;
  color: var(--ink-50); transition: color .3s var(--smooth);
}
.menu__list a:hover .menu__t { color: transparent; -webkit-text-stroke: 1.5px var(--ink-50); }
.menu__list a:hover .menu__i { color: var(--ink-200); }

.menu__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding-top: 18px; border-top: 1px solid rgba(255,255,255,.08);
  font-size: 13px; font-weight: 700; color: var(--ink-500);
}
.menu__foot a { color: var(--ink-200); }

body.menu-open { overflow: hidden; }

/* sur mobile les onglets de la scene tiennent sur une ligne qui defile */
@media (max-width: 720px) {
  .stage__head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stage__tabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .stage__tabs::-webkit-scrollbar { display: none; }
  .stage__foot { gap: 10px; }
  .stage__foot > div:last-child { text-align: left; }
}

/* ============================================================ le catalogue */

.filtres { margin-top: clamp(28px, 3.5vw, 44px); display: grid; gap: 14px; }
.fchips { display: flex; flex-wrap: wrap; gap: 8px; }
.fchip {
  padding: 9px 15px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-300); white-space: nowrap;
  transition: color .3s var(--smooth), border-color .3s var(--smooth), background-color .3s var(--smooth);
}
.fchip small { margin-left: 8px; padding-left: 8px; border-left: 1px solid rgba(255,255,255,.12); color: var(--ink-500); }
.fchip:hover { color: var(--ink-50); border-color: rgba(255,255,255,.2); }
.fchip.is-on { background: var(--green); border-color: var(--green); color: #000; }
.fchip.is-on small { color: #00000099; border-left-color: #00000026; }

.filtres__bas { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .filtres__bas { grid-template-columns: 1fr auto; } }

.champ { position: relative; display: flex; align-items: center; }
.champ input {
  width: 100%; padding: 15px 56px 15px 20px;
  border-radius: 999px; border: 1px solid rgba(255,255,255,.08);
  background: none; color: var(--ink-50);
  font-family: 'Inter', sans-serif; font-size: 15px; font-weight: 600;
  transition: border-color .3s var(--smooth);
}
.champ input::placeholder { color: var(--ink-500); }
.champ input:focus { outline: none; border-color: rgba(255,255,255,.26); }
.champ input::-webkit-search-cancel-button { filter: invert(1) opacity(.4); }
.champ kbd {
  position: absolute; right: 16px; pointer-events: none;
  min-width: 22px; padding: 2px 6px; text-align: center;
  border-radius: 6px; border: 1px solid rgba(255,255,255,.14);
  font-family: 'JetBrains Mono', monospace; font-size: 11px; color: var(--ink-500);
}

.select {
  padding: 15px 20px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.08);
  background: #000; color: var(--ink-100);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer; transition: border-color .3s var(--smooth);
}
.select:hover, .select:focus { outline: none; border-color: rgba(255,255,255,.22); }

.cat__barre {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  margin-top: 26px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.07);
}
#cat-grid { margin-top: clamp(18px, 2.2vw, 26px); }
.cat__vide { margin: 40px 0 0; text-align: center; font-weight: 600; color: var(--ink-300); }
.cat__plus { display: flex; justify-content: center; margin-top: clamp(26px, 3vw, 38px); }
.cat__plus[hidden] { display: none; }

/* la carte vehicule, dans le meme langage que les autres : contour seul */
.vc { position: relative; text-align: left; width: 100%; }
.vc__ref {
  position: absolute; top: 12px; right: 14px; z-index: 2;
  font-family: 'Archivo Black', sans-serif; font-style: italic; font-size: 20px;
  color: transparent; -webkit-text-stroke: 1px rgba(255,255,255,.14);
  pointer-events: none;
}
.vc .meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.vc__model { font-family: 'JetBrains Mono', monospace; font-size: 11px; letter-spacing: .1em; color: var(--ink-500); }

/* ------------------------------------------------------------- la fiche */

.modal[hidden] { display: none; }
.modal {
  position: fixed; inset: 0; z-index: 80;
  display: grid; place-items: center; padding: var(--pad);
  opacity: 0; transition: opacity .3s var(--smooth);
}
.modal.is-open { opacity: 1; }
.modal__fond { position: absolute; inset: 0; background: rgba(0,0,0,.82); backdrop-filter: blur(10px); }
.modal__boite {
  position: relative; width: min(760px, 100%);
  border-radius: 24px; border: 1px solid rgba(255,255,255,.1);
  background: #000; overflow: hidden;
  transform: translateY(16px) scale(.98);
  transition: transform .45s var(--spring);
}
.modal.is-open .modal__boite { transform: none; }
.modal__x { position: absolute; top: 14px; right: 14px; z-index: 3; }
.modal__media { aspect-ratio: 16 / 9; display: grid; place-items: center; border-bottom: 1px solid rgba(255,255,255,.07); }
.modal__media img { width: 88%; height: auto; }
.modal__corps { padding: clamp(18px, 3vw, 28px); }

/* une piste de grille en 1fr ne descend pas sous le contenu minimum de la
   carte : sans ca, le modele et le prix cote a cote font deborder la page
   sur mobile. On autorise le retrecissement et le repli. */
.grid3 > *, .grid4 > * { min-width: 0; }
.vc .meta { flex-wrap: wrap; }
.vc__model { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ===================================================== le curseur maison
   Repris tel quel de la v3 pour que le site ait le meme curseur partout.
   z-index 2000 : toute couche plein ecran doit rester en dessous, sinon le
   curseur disparait derriere elle alors que le natif est deja masque. */

@media (hover: hover) and (pointer: fine) {
  body.has-cursor,
  body.has-cursor *:not(input):not(textarea) { cursor: none !important; }
}

.cursor { position: fixed; top: 0; left: 0; z-index: 2000; pointer-events: none; }
.cursor__dot {
  position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px;
  border-radius: 50%; background: var(--ink-50);
  box-shadow: 0 0 0 1px rgba(0,0,0,.5), 0 1px 3px rgba(0,0,0,.45);
  transition: opacity .25s;
}
.cursor__ring {
  position: absolute; width: 36px; height: 36px; margin: -18px 0 0 -18px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,.75);
  box-shadow: 0 0 0 1px rgba(0,0,0,.3), inset 0 0 0 1px rgba(0,0,0,.3);
  transition: width .35s var(--spring), height .35s var(--spring),
              margin .35s var(--spring), background-color .3s, border-color .3s, opacity .3s;
}
.cursor.is-link .cursor__ring {
  width: 52px; height: 52px; margin: -26px 0 0 -26px;
  border-color: rgba(255,255,255,.9);
}
.cursor.is-hidden { opacity: 0; }

/* un fond net (topographie, pluie) ne doit pas etre agrandi : le scale 1.1
   servait seulement a masquer le bord fade du flou du brouillard. */
.bg canvas.is-sharp, .v4-bg canvas.is-sharp { transform: none; }

/* ------------------------------------------------------------ PDM Truck */

/* le badge vert colle au logo PDM */
.nav__tag {
  font: 400 11px/1 'JetBrains Mono', ui-monospace, monospace;
  letter-spacing: .22em; text-transform: uppercase;
  color: #000; background: var(--green);
  padding: 4px 6px 3px 8px; border-radius: 4px;
  box-shadow: 0 0 14px rgba(var(--green-lum), .45);
}

/* visuel d'attente tant qu'un vehicule n'a pas sa photo */
img.is-attente { object-fit: contain; opacity: .55; padding: 8% 10%; }
.card.is-vide .card__media { background: radial-gradient(70% 60% at 50% 60%, rgba(var(--green-lum), .08), transparent 70%); }
.card.is-vide { border-style: dashed; }

/* sept categories : quatre colonnes sur grand ecran, la derniere en
   pleine largeur quand la grille n'a que deux colonnes */
#cats > :last-child:nth-child(odd) { grid-column: span 2; }
@media (min-width: 980px) { #cats > :last-child:nth-child(odd) { grid-column: auto; } }
#stageImg.is-attente { opacity: .8; padding: 4% 14%; }
@media (max-width: 979px) { #cats { grid-auto-rows: auto; } }
/* le badge prend la place du bouton de la nav sur petit ecran */
@media (max-width: 520px) {
  .nav > .btn.gloss { display: none; }
  .nav__tag { font-size: 10px; padding: 3px 5px 2px 7px; }
}
