/* CARS ZONE — feuille de style
   Palette reprise du logo : noir profond, rouge vif, blanc.
   Parti pris opposé à un site de concession classique : fond sombre, angles
   coupés, titres en capitales. Le rouge ne sert qu'à ce qui appelle une action —
   s'il habillait aussi les décors, plus rien ne ressortirait.
   Conçue mobile d'abord : tout tient sur 320 px, les media queries n'ajoutent
   que de la place quand il y en a. */

:root {
  --rouge: #e31e24;
  --rouge-vif: #ff3238;
  --rouge-sombre: #8a1216;
  --noir: #0b0c0e;
  --noir-2: #111318;
  --carte: #16181d;
  --carte-2: #1c1f26;
  --trait: #282c35;
  --trait-fort: #3a404b;
  --encre: #eceef2;
  --gris: #99a1ae;
  --vert: #2ecc71;
  --vert-fond: #12251b;
  --rouge-fond: #2a1315;
  --ambre: #f5b942;
  --ambre-fond: #2a2113;
  --rayon: 4px;
  --ombre: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 26px rgba(0, 0, 0, .35);
  --ombre-forte: 0 20px 44px rgba(0, 0, 0, .55);
  --lueur: 0 0 0 1px rgba(227, 30, 36, .5), 0 12px 30px rgba(227, 30, 36, .18);
  --police: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --titre: "Arial Black", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--police);
  color: var(--encre);
  background: var(--noir);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Trame diagonale rappelant le fond hexagonal du logo. Purement décorative et
   très discrète : au-delà de quelques pourcents d'opacité, elle brouille la
   lecture du texte posé dessus. */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    repeating-linear-gradient(60deg, rgba(227, 30, 36, .05) 0 1px, transparent 1px 62px),
    repeating-linear-gradient(-60deg, rgba(227, 30, 36, .05) 0 1px, transparent 1px 62px),
    radial-gradient(1200px 600px at 80% -10%, rgba(227, 30, 36, .10), transparent 70%);
}

h1, h2, h3, h4 { line-height: 1.15; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(1.8rem, 5vw, 3rem); text-transform: uppercase; letter-spacing: .01em; }
h2 { font-size: clamp(1.35rem, 3vw, 2rem); text-transform: uppercase; }
h3 { font-size: 1.05rem; }
p { margin: 0 0 1rem; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
strong { color: #fff; }

.conteneur { max-width: 1220px; margin: 0 auto; padding: 0 18px; }
.section { padding: clamp(38px, 6vw, 72px) 0; }
.muted { color: var(--gris); }
.centre { text-align: center; }

/* Chevron rouge devant les titres de section : le motif du logo repris comme
   ponctuation. */
.section > .conteneur > h2::before,
.resultats-tete h2::before {
  content: "";
  display: inline-block; width: 12px; height: 12px; margin-right: .55rem;
  background: var(--rouge);
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}

.saut-contenu {
  position: absolute; left: -9999px; background: var(--rouge); color: #fff;
  padding: .7rem 1.1rem; z-index: 200; font-weight: 700;
}
.saut-contenu:focus { left: 0; top: 0; }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.5rem; border-radius: var(--rayon); font: inherit;
  font-weight: 700; font-size: .87rem; text-transform: uppercase; letter-spacing: .06em;
  border: 2px solid transparent; cursor: pointer; transition: .16s ease;
  min-height: 48px; text-align: center;
}
/* Trois niveaux et pas un de plus : rouge pour l'action attendue, blanc pour
   l'action secondaire, contour pour tout le reste. */
.btn-rouge { background: var(--rouge); color: #fff; box-shadow: 0 6px 18px rgba(227, 30, 36, .28); }
.btn-rouge:hover { background: var(--rouge-vif); transform: translateY(-1px); }
.btn-blanc { background: #fff; color: var(--noir); }
.btn-blanc:hover { background: #e3e6ea; }
.btn-contour { border-color: var(--trait-fort); background: transparent; color: var(--encre); }
.btn-contour:hover { border-color: var(--rouge); color: #fff; }
.btn-bloc { width: 100%; }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; }

/* ---------- en-tête ---------- */
.entete {
  position: sticky; top: 0; z-index: 60;
  background: rgba(11, 12, 14, .94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--trait);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45);
}
/* Filet rouge tout en haut : la signature de la marque, avant même le logo. */
.entete::before { content: ""; display: block; height: 3px;
  background: linear-gradient(90deg, var(--rouge) 0%, var(--rouge-sombre) 40%, transparent 78%); }
.entete-inner { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.logo img { height: 46px; width: auto; }
.logo img.logo-picto { display: none; }
.logo-texte { font-size: 1.35rem; font-weight: 800; letter-spacing: .1em; color: #fff;
  text-transform: uppercase; }
.nav-contact { display: none; }
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; flex-wrap: wrap; }
.nav a {
  position: relative; padding: .55rem .7rem; font-size: .79rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: rgba(255, 255, 255, .72);
}
.nav a::after {
  content: ""; position: absolute; left: .7rem; right: .7rem; bottom: .22rem; height: 2px;
  background: var(--rouge); transform: scaleX(0); transform-origin: left; transition: transform .18s;
}
.nav a:hover { color: #fff; }
.nav a:hover::after, .nav a.actif::after { transform: scaleX(1); }
.nav a.actif { color: #fff; }

.nav-bascule { display: none; margin-left: auto; background: none; border: 0; cursor: pointer;
  width: 46px; height: 46px; padding: 11px; flex-direction: column; justify-content: space-between; }
.nav-bascule span { display: block; height: 2px; background: #fff; transition: .2s; }
.nav-bascule[aria-expanded="true"] span:nth-child(1) { transform: translateY(9px) rotate(45deg); }
.nav-bascule[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-bascule[aria-expanded="true"] span:nth-child(3) { transform: translateY(-9px) rotate(-45deg); }

.entete-contact { display: flex; align-items: center; gap: 10px; }
.entete-contact .tel, .entete-contact .wa { display: inline-flex; align-items: center; gap: .4rem;
  font-size: .83rem; font-weight: 700; color: #fff; white-space: nowrap; }
.entete-contact .tel { border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  padding: .48rem .8rem; }
.entete-contact .tel:hover { border-color: var(--rouge); }
.entete-contact .wa { background: #25d366; color: #06331a; border-radius: var(--rayon);
  padding: .5rem .85rem; }
.entete-contact .wa:hover { background: #1fb857; }
@media (max-width: 1180px) { .entete-contact .tel span { display: none; } }

/* ---------- messages ---------- */
.msg { padding: .85rem 1.1rem; border-radius: var(--rayon); margin: 16px 0; font-weight: 600;
  border-left: 3px solid transparent; }
.msg-succes { background: var(--vert-fond); border-color: var(--vert); color: #74e6a4; }
.msg-erreur { background: var(--rouge-fond); border-color: var(--rouge); color: #ff9a9d; }

.erreurs { background: var(--rouge-fond); border: 1px solid #63262a; border-left: 3px solid var(--rouge);
  color: #ffb3b6; border-radius: var(--rayon); padding: .9rem 1.1rem; margin-bottom: 1.2rem; }
.erreurs ul { margin: .4rem 0 0; padding-left: 1.1rem; }

/* ---------- héros ---------- */
/* Texte calé à gauche, et non centré comme sur un site vitrine classique : le
   regard descend du logo au titre puis au bouton, en une seule colonne. */
.heros {
  position: relative; color: #fff; overflow: hidden;
  padding: clamp(60px, 11vw, 130px) 0 clamp(70px, 11vw, 130px);
  background:
    linear-gradient(90deg, rgba(8, 9, 11, .95) 0%, rgba(8, 9, 11, .78) 45%, rgba(8, 9, 11, .35) 100%),
    url("/uploads/seed/ford-mustang-01.jpg") center / cover no-repeat, var(--noir);
}
/* Chevron rouge en écho au logo, posé hors du chemin de lecture. */
.heros::after {
  content: ""; position: absolute; right: -30px; top: 50%; transform: translateY(-50%);
  width: 300px; height: 240px; opacity: .45; pointer-events: none;
  background: linear-gradient(120deg, var(--rouge), var(--rouge-sombre));
  clip-path: polygon(0 0, 55% 0, 100% 50%, 55% 100%, 0 100%, 45% 50%);
}
.heros .conteneur { position: relative; z-index: 2; }
/* Bandeau rouge au-dessus du titre : rappel du filet de l'en-tête. */
.heros h1::before {
  content: ""; display: block; width: 66px; height: 5px; background: var(--rouge);
  margin-bottom: 1.1rem;
}
.heros h1 { margin-bottom: .5rem; max-width: 17ch; text-shadow: 0 4px 30px rgba(0, 0, 0, .6); }
.heros .accroche { font-size: clamp(1rem, 2vw, 1.2rem); color: rgba(255, 255, 255, .84);
  margin-bottom: 1.8rem; max-width: 48ch; }
.heros-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- tuiles ---------- */
/* Collées les unes aux autres, séparées par un simple filet : la rangée forme
   un bandeau qui chevauche le héros, au lieu de trois cartes flottantes. */
.tuiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: -38px;
  position: relative; z-index: 5; background: var(--trait); border: 1px solid var(--trait);
  border-radius: var(--rayon); overflow: hidden; box-shadow: var(--ombre-forte); }
.tuile { background: var(--carte); padding: 24px 22px; transition: background .18s; }
.tuile:hover { background: var(--carte-2); }
.tuile .ico { font-size: 1.5rem; margin-bottom: .4rem; }
.tuile h3 { margin-bottom: .3rem; text-transform: uppercase; font-size: .93rem;
  letter-spacing: .04em; }
.tuile p { color: var(--gris); font-size: .89rem; margin: 0; }

/* ---------- grille d'annonces ---------- */
.grille-annonces { display: grid; grid-template-columns: repeat(auto-fill, minmax(276px, 1fr)); gap: 18px; }
.grille-annonces > * { min-width: 0; }

.annonce {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.annonce:hover { transform: translateY(-4px); border-color: var(--rouge); box-shadow: var(--lueur); }
.annonce-media { position: relative; aspect-ratio: 4 / 3; background: #101216; display: block; }
.annonce-media img { width: 100%; height: 100%; object-fit: cover; }
/* Voile sombre en bas de la photo : le compteur de photos se perdait sur les
   carrosseries claires. */
.annonce-media::after { content: ""; position: absolute; inset: auto 0 0 0; height: 45%;
  background: linear-gradient(180deg, transparent, rgba(6, 7, 9, .75)); pointer-events: none; }
.bandeau { position: absolute; left: 0; top: 12px; z-index: 2; padding: .26rem .8rem .26rem .6rem;
  font-size: .67rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em;
  background: var(--rouge); color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%); }
.bandeau.vendu { background: #4b525d; }
.bandeau.une { left: auto; right: 0; background: #fff; color: var(--noir);
  clip-path: polygon(9px 0, 100% 0, 100% 100%, 0 100%); padding: .26rem .6rem .26rem .8rem; }
.nb-photos { position: absolute; right: 10px; bottom: 10px; z-index: 2; background: rgba(0, 0, 0, .6);
  border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: .72rem; font-weight: 600;
  padding: .16rem .5rem; border-radius: var(--rayon); }
.annonce.est-vendu .annonce-media img { filter: grayscale(1) brightness(.6); }

.annonce-corps { padding: 15px 16px 17px; display: flex; flex-direction: column; flex: 1; }
.annonce-titre { font-size: .96rem; font-weight: 700; margin: 0 0 .35rem; line-height: 1.35; }
.annonce a:hover .annonce-titre { color: #fff; }
.annonce-prix { font-family: var(--titre); font-size: 1.4rem; font-weight: 900; color: #fff;
  margin-bottom: .35rem; letter-spacing: -.02em; }

/* Badge d'apport : juste sous le prix, avant les caractéristiques. */
.apport { display: inline-block; align-self: flex-start; margin: 0 0 .5rem;
  padding: .2rem .6rem; border-radius: var(--rayon); font-size: .73rem; font-weight: 700;
  border: 1px solid transparent; white-space: nowrap; text-transform: uppercase;
  letter-spacing: .04em; }
.apport.sans { background: var(--vert-fond); color: #6fe3a0; border-color: #1f5c3a; }
.apport.montant { background: var(--ambre-fond); color: var(--ambre); border-color: #5c4a1c; }
.apport.grand { font-size: .86rem; padding: .32rem .8rem; margin-top: .5rem; }

.annonce-infos { color: var(--gris); font-size: .82rem; display: flex; gap: .45rem;
  flex-wrap: wrap; margin-top: auto; }
.annonce-infos span + span::before { content: "· "; color: var(--trait-fort); }
.annonce-pied { display: flex; justify-content: flex-end; align-items: center;
  border-top: 1px solid var(--trait); margin-top: .8rem; padding-top: .7rem; }
.annonce-pied a { color: var(--rouge); font-weight: 700; font-size: .81rem;
  text-transform: uppercase; letter-spacing: .05em; }
.annonce-pied a:hover { color: var(--rouge-vif); }

/* ---------- catalogue ---------- */
.catalogue-grille { display: grid; grid-template-columns: 288px 1fr; gap: 24px;
  align-items: start; padding: 28px 0 60px; }
.catalogue-grille > * { min-width: 0; }
.filtres { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  overflow: hidden; position: sticky; top: 92px; }
.filtres-tete { display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 13px 16px; border-bottom: 1px solid var(--trait); font-weight: 800;
  text-transform: uppercase; font-size: .8rem; letter-spacing: .07em; background: var(--carte-2); }
.filtres-corps { padding: 4px 16px 16px; max-height: calc(100vh - 230px); overflow-y: auto; }
.filtres-pied { display: flex; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--trait);
  background: var(--carte-2); }
.fgroupe { border-bottom: 1px solid var(--trait); padding: 12px 0; }
.fgroupe:last-child { border-bottom: 0; }
.fgroupe > label, .fgroupe-titre { display: block; font-size: .71rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .09em; color: var(--gris); margin-bottom: .5rem; }
.cases { display: flex; flex-direction: column; gap: .34rem; max-height: 182px; overflow-y: auto; }
.cases label { display: flex; align-items: center; gap: .5rem; font-size: .87rem; cursor: pointer;
  color: var(--encre); }
.cases label:hover { color: #fff; }
.cases input { accent-color: var(--rouge); }
.ligne-bornes { display: flex; gap: 8px; }
.ligne-bornes input { min-width: 0; }

.resultats-tete { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  flex-wrap: wrap; margin-bottom: 18px; }

/* Ascenseurs sombres : la barre claire de Chrome tranchait en plein milieu du
   panneau de filtres. */
.filtres-corps, .cases { scrollbar-width: thin; scrollbar-color: var(--trait-fort) transparent; }
.filtres-corps::-webkit-scrollbar, .cases::-webkit-scrollbar { width: 8px; }
.filtres-corps::-webkit-scrollbar-thumb, .cases::-webkit-scrollbar-thumb {
  background: var(--trait-fort); border-radius: 4px; }

/* ---------- champs ---------- */
input[type="text"], input[type="email"], input[type="tel"], input[type="date"],
input[type="number"], input[type="search"], input[type="password"], select, textarea {
  width: 100%; padding: .68rem .78rem; border: 1px solid var(--trait-fort);
  border-radius: var(--rayon); font: inherit; font-size: .94rem;
  background: #0f1115; color: var(--encre);
}
input::placeholder, textarea::placeholder { color: #6b7280; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rouge);
  box-shadow: 0 0 0 3px rgba(227, 30, 36, .22); }
textarea { min-height: 88px; resize: vertical; }
label { font-weight: 600; }
select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--gris) 50%),
                    linear-gradient(135deg, var(--gris) 50%, transparent 50%);
  background-position: calc(100% - 18px) 52%, calc(100% - 12px) 52%;
  background-size: 6px 6px, 6px 6px; background-repeat: no-repeat; padding-right: 2.2rem;
}
/* Le sélecteur de date de Chrome dessine son icône en noir : invisible sur un
   champ sombre. */
input[type="date"]::-webkit-calendar-picker-indicator { filter: invert(.75); }

/* ---------- fiche véhicule ---------- */
.fiche { display: grid; grid-template-columns: 1.55fr 1fr; gap: 34px; align-items: start;
  padding: 28px 0 60px; }
.fiche > * { min-width: 0; }
.galerie { border-radius: var(--rayon); overflow: hidden; background: #101216; aspect-ratio: 4/3;
  border: 1px solid var(--trait); }
.galerie img { width: 100%; height: 100%; object-fit: cover; }
.vignettes { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin-top: 10px; }
.vignettes img { aspect-ratio: 4/3; object-fit: cover; border-radius: var(--rayon); cursor: pointer;
  border: 2px solid var(--trait); opacity: .62; transition: .15s; }
.vignettes img.actif, .vignettes img:hover { border-color: var(--rouge); opacity: 1; }
.prix-grand { font-family: var(--titre); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 900;
  color: #fff; letter-spacing: -.02em; }
.puces { display: flex; gap: .5rem; flex-wrap: wrap; margin: 1rem 0 1.4rem; }
.puce { background: var(--carte-2); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: .34rem .8rem; font-size: .84rem; }
.tableau-spec { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tableau-spec td { padding: .58rem .2rem; border-bottom: 1px solid var(--trait); }
.tableau-spec td:first-child { color: var(--gris); width: 46%; }
.etiquettes { display: flex; flex-wrap: wrap; gap: .4rem; }
.etiquette { background: var(--carte-2); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: .28rem .6rem; font-size: .83rem; color: var(--gris); }
.encart { background: var(--carte); border: 1px solid var(--trait); border-top: 3px solid var(--rouge);
  border-radius: var(--rayon); padding: 22px; box-shadow: var(--ombre); position: sticky; top: 96px; }
.bandeau-vendu { display: inline-block; background: #4b525d; color: #fff; font-weight: 800;
  letter-spacing: .07em; text-transform: uppercase; padding: .4rem 1rem; border-radius: var(--rayon);
  margin-bottom: .8rem; font-size: .79rem; }

/* ---------- formulaire de commande ---------- */
.form-achat { max-width: 920px; }
.f-section { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.5rem 1.6rem; margin-bottom: 1.1rem; }
.f-section > h2 { display: flex; align-items: center; gap: .7rem; font-size: 1.04rem; margin: 0 0 .25rem;
  text-transform: uppercase; }
.f-num { display: grid; place-items: center; width: 1.85rem; height: 1.85rem; flex: none;
  background: var(--rouge); color: #fff; border-radius: var(--rayon); font-size: .85rem; font-weight: 800; }
.f-intro { color: var(--gris); font-size: .88rem; margin: 0 0 1.1rem; }
.f-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(228px, 1fr)); gap: 0 1.1rem; }
.f-grille .pleine { grid-column: 1 / -1; }
.f-champ { margin-bottom: 1rem; min-width: 0; }
.f-champ > label, .f-legende { display: block; font-weight: 600; font-size: .86rem; margin-bottom: .34rem; }
.f-champ small { display: block; color: var(--gris); font-size: .79rem; margin-top: .28rem; }
.oblig { color: var(--rouge); }
.f-suffixe { position: relative; }
.f-suffixe input { padding-right: 2.4rem; }
.f-suffixe span { position: absolute; right: .75rem; top: 50%; transform: translateY(-50%);
  color: var(--gris); font-size: .9rem; pointer-events: none; }

/* Choix « à cocher » : toute l'étiquette est cliquable, donc facile au pouce. */
.choix { display: flex; flex-wrap: wrap; gap: .5rem; }
.choix label { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer;
  border: 1px solid var(--trait-fort); background: #0f1115; border-radius: var(--rayon);
  padding: .5rem .9rem; font-size: .88rem; font-weight: 600; min-height: 46px;
  transition: border-color .12s, background .12s, box-shadow .12s; }
.choix label:hover { border-color: var(--gris); }
.choix input { accent-color: var(--rouge); margin: 0; }
.choix label:has(input:checked) { border-color: var(--rouge); background: rgba(227, 30, 36, .12);
  box-shadow: inset 0 0 0 1px var(--rouge); color: #fff; }

.rappel-annonce { display: flex; gap: 1rem; align-items: center; background: var(--carte);
  border: 1px solid var(--trait); border-left: 3px solid var(--rouge); border-radius: var(--rayon);
  padding: .9rem 1rem; margin-bottom: 1.2rem; }
.rappel-annonce img { width: 96px; height: 70px; object-fit: cover; border-radius: var(--rayon); flex: none; }
.rappel-annonce .t { font-weight: 700; }
.rappel-annonce .p { color: #fff; font-weight: 800; }

/* Le véhicule choisi, en lecture seule. Volontairement dessiné comme une
   fiche et non comme des champs grisés : un champ désactivé donne encore
   l'impression qu'on pourrait le débloquer. */
.veh-fige { background: var(--carte-2); border: 1px solid var(--trait);
  border-left: 3px solid var(--rouge); border-radius: var(--rayon);
  padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.veh-fige-tete { display: flex; gap: 1rem; align-items: center; }
.veh-fige-tete img { width: 104px; height: 76px; object-fit: cover; border-radius: var(--rayon);
  flex: none; background: #101216; }
.veh-fige-titre { font-weight: 700; }
.veh-fige-prix { color: #fff; font-weight: 800; font-size: 1.15rem; }
.veh-fige-cadenas { color: var(--gris); font-size: .8rem; }
.veh-fige-grille { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: .6rem 1rem; margin: 1rem 0 0; padding-top: .9rem; border-top: 1px solid var(--trait); }
.veh-fige-grille dt { color: var(--gris); font-size: .71rem; text-transform: uppercase;
  letter-spacing: .06em; }
.veh-fige-grille dd { margin: 0; font-weight: 600; font-size: .92rem; }
.veh-fige-liens { margin: .9rem 0 0; font-size: .86rem; }
.veh-fige-liens a { color: var(--rouge); font-weight: 600; }

.note-confidentialite { background: var(--carte-2); border-left: 3px solid var(--rouge);
  border-radius: var(--rayon); padding: .8rem 1rem; font-size: .85rem; color: var(--gris);
  margin-top: 1rem; }

/* ---------- dossier / suivi ---------- */
.suivi-etroit { max-width: 580px; }
.dossier-entete { border-radius: var(--rayon); padding: 1.3rem 1.4rem; margin-bottom: 1.3rem;
  border: 1px solid var(--trait); }
.dossier-entete h1 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin: 0 0 .35rem; }
.dossier-entete p { margin: 0; }
.etat-attente { background: var(--ambre-fond); border-color: #5c4a1c; color: #f3cd7d; }
.etat-etude   { background: #101a26; border-color: #24405e; color: #93c2f0; }
.etat-accepte { background: var(--vert-fond); border-color: #1f5c3a; color: #7ce8ab; }
.etat-refuse  { background: var(--rouge-fond); border-color: #63262a; color: #ff9a9d; }
.ref-encart { display: inline-block; margin-top: .6rem; background: rgba(0, 0, 0, .35);
  border: 1px solid currentColor; border-radius: var(--rayon); padding: .3rem .8rem;
  font-size: 1.05rem; font-weight: 800; letter-spacing: .08em; }
.etapes { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: .55rem; }
.etapes li { display: flex; gap: .65rem; align-items: flex-start; font-size: .92rem; }
.etapes .pastille { flex: none; width: 1.45rem; height: 1.45rem; border-radius: 50%; display: grid;
  place-items: center; font-size: .72rem; font-weight: 800; background: var(--trait); color: var(--gris); }
.etapes li.faite .pastille { background: var(--vert); color: #06210f; }
.etapes li.active .pastille { background: var(--rouge); color: #fff; }

.bloc { background: var(--carte); border: 1px solid var(--trait); border-radius: var(--rayon);
  padding: 1.35rem 1.45rem; margin-bottom: 1.1rem; }
.bloc h2 { font-size: 1.02rem; }
.recap { display: grid; grid-template-columns: minmax(150px, 220px) 1fr; gap: .45rem 1rem; font-size: .92rem; }
.recap dt { color: var(--gris); }
.recap dd { margin: 0; font-weight: 600; }

.rib-encart { background: #0f1115; border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  padding: 1rem 1.1rem; }
.rib-encart .paire { margin-bottom: .7rem; }
.rib-encart .k { font-size: .71rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gris); }
.rib-encart .v { font-weight: 700; font-size: 1rem; word-break: break-word; color: #fff; }
.rib-encart .iban { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; letter-spacing: .05em; }
.avertissement { background: var(--ambre-fond); border: 1px solid #5c4a1c; border-left: 3px solid var(--ambre);
  border-radius: var(--rayon); padding: .85rem 1rem; font-size: .87rem; margin-top: 1rem; color: #f0d9a4; }

.actions { display: flex; gap: .7rem; flex-wrap: wrap; margin: 1.2rem 0; }

/* ---------- après commande : télécharger, puis payer ----------
   Deux gestes numérotés plutôt qu'une rangée de boutons : le client qui vient
   de valider ne doit pas avoir à deviner l'ordre des choses. */
.apres-commande { border-left: 3px solid var(--rouge); }
.apres-commande h2 { margin-top: 0; }
.deux-gestes { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.1rem; }
.deux-gestes li { display: flex; gap: .9rem; align-items: flex-start; }
.deux-gestes .num { flex: none; width: 1.95rem; height: 1.95rem; border-radius: var(--rayon);
  display: grid; place-items: center; background: var(--rouge); color: #fff; font-weight: 800;
  font-size: .9rem; }
.deux-gestes strong { display: block; font-size: 1rem; }
.deux-gestes p { margin: .2rem 0 .7rem; color: var(--gris); font-size: .88rem; }
.deux-gestes .btn { min-height: 46px; }

/* ---------- virement pré-rempli ---------- */
.payer-grille { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 1.1rem;
  align-items: start; }
.qr-bloc { text-align: center; background: #0f1115; border: 1px solid var(--trait);
  border-radius: var(--rayon); padding: 1rem; }
/* Fond blanc franc et marge propre : un QR-code sur fond sombre ou rogné ne se
   lit pas, et le client conclut que « le site ne marche pas ». */
.qr-cadre { background: #fff; border-radius: var(--rayon); padding: 10px; margin-bottom: .7rem; }
.qr-sepa { display: block; width: 100%; height: auto; }
.qr-bloc strong { font-size: .92rem; }
.qr-bloc p { margin: .3rem 0 0; font-size: .84rem; color: var(--gris); }
.qr-montant { font-size: 1.3rem !important; font-weight: 800; color: #fff !important;
  margin: .6rem 0 .2rem !important; }
.qr-bloc small { display: block; margin-top: .5rem; font-size: .78rem; color: var(--gris); }

/* ---------- pied ---------- */
.pied { background: var(--noir-2); color: rgba(255, 255, 255, .72); padding: 48px 0 18px;
  margin-top: 48px; border-top: 1px solid var(--trait); position: relative; }
.pied::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent 0 22%, var(--rouge-sombre) 45%, var(--rouge) 100%); }
.pied-grille { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 30px; }
.pied-grille > * { min-width: 0; }
.pied h3 { color: #fff; font-size: .77rem; text-transform: uppercase; letter-spacing: .11em;
  margin-bottom: .8rem; padding-bottom: .5rem; border-bottom: 1px solid var(--trait); }
.pied ul { list-style: none; padding: 0; margin: 0; }
.pied li { margin-bottom: .4rem; font-size: .88rem; }
.pied a:hover { color: var(--rouge); }
.pied-logo { font-size: 1.35rem; font-weight: 800; letter-spacing: .1em; color: #fff;
  text-transform: uppercase; }
/* Le logo porte déjà la baseline « Votre voiture, votre choix. » : la répéter
   en dessous ferait doublon. */
.pied-logo-img { height: 54px; width: auto; margin-bottom: .9rem; }
.pied-texte { font-size: .87rem; max-width: 34ch; color: var(--gris); }
.pied-coord li { color: rgba(255, 255, 255, .74); }
.pied-reseaux { display: flex; gap: .5rem; margin-top: .9rem; flex-wrap: wrap; }
.pied-reseaux a { border: 1px solid var(--trait-fort); border-radius: var(--rayon);
  padding: .28rem .75rem; font-size: .8rem; font-weight: 600; }
.pied-reseaux a:hover { background: var(--rouge); color: #fff; border-color: var(--rouge); }
.pied-bas { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--trait); margin-top: 32px; padding-top: 14px; font-size: .8rem;
  color: var(--gris); }
.pied-cle { color: rgba(255, 255, 255, .16); }
.pied-cle:hover { color: var(--rouge); }

/* ---------- piège à robots ---------- */
/* Hors écran plutôt que display:none : certains robots ignorent les champs cachés. */
.piege { position: absolute !important; left: -9999px !important; width: 1px !important;
  height: 1px !important; overflow: hidden !important; }

/* ---------- fil d'Ariane ---------- */
.ariane { background: var(--noir-2); border-bottom: 1px solid var(--trait); font-size: .82rem; }
.ariane ol { list-style: none; display: flex; flex-wrap: wrap; align-items: center;
  gap: .35rem; margin: 0; padding: .7rem 0; }
.ariane li { display: flex; align-items: center; gap: .35rem; color: var(--gris); }
.ariane li + li::before { content: "›"; color: var(--trait-fort); }
.ariane a { color: var(--gris); }
.ariane a:hover { color: var(--rouge); }
.ariane [aria-current="page"] { color: var(--encre); font-weight: 600;
  /* Le dernier maillon peut être long (titre du véhicule) : on le tronque
     plutôt que de laisser le fil passer sur trois lignes sur mobile. */
  max-width: 60vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- pages éditoriales ---------- */
details { border-bottom: 1px solid var(--trait); }
summary { color: var(--encre); }
summary::marker { color: var(--rouge); }
hr { border: 0; border-top: 1px solid var(--trait); margin: 1.5rem 0; }
::selection { background: var(--rouge); color: #fff; }

/* ================= RESPONSIVE ================= */

@media (max-width: 1024px) {
  .catalogue-grille { grid-template-columns: 1fr; }
  .filtres { position: static; }
  .filtres-corps { max-height: none; }
  .fiche { grid-template-columns: 1fr; }
  .encart { position: static; }
  .pied-grille { grid-template-columns: 1fr 1fr; }

  /* Empilé au-dessus des résultats, le panneau de filtres ouvert représente
     plus d'un écran de contrôles avant la première voiture. Il se réduit donc
     à son en-tête, qui devient le bouton d'ouverture. */
  .filtres-corps, .filtres-pied { display: none; }
  .filtres.ouvert .filtres-corps { display: block; }
  .filtres.ouvert .filtres-pied { display: flex; }
  .filtres-tete { cursor: pointer; user-select: none; min-height: 52px; border-bottom: 0; }
  .filtres.ouvert .filtres-tete { border-bottom: 1px solid var(--trait); }
  .filtres-tete::after { content: "▾"; color: var(--rouge); transition: transform .18s; }
  .filtres.ouvert .filtres-tete::after { transform: rotate(180deg); }
}

@media (max-width: 820px) {
  .nav-bascule { display: flex; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--noir-2);
    flex-direction: column; align-items: stretch; padding: 10px 18px 18px; gap: 0;
    border-bottom: 1px solid var(--trait); box-shadow: var(--ombre-forte);
    /* Un menu de huit entrées dépasse un petit écran : il défile en interne
       plutôt que de laisser des liens inatteignables. */
    max-height: calc(100vh - 76px); overflow-y: auto;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: .8rem .2rem; font-size: .92rem; border-bottom: 1px solid var(--trait); }
  .nav a::after { display: none; }
  .nav a.actif { color: var(--rouge); }
  .nav-contact { display: flex; flex-direction: column; gap: .5rem; margin-top: .9rem; }
  .nav-contact a { border-radius: var(--rayon); text-align: center; font-weight: 700;
    min-height: 48px; display: flex; align-items: center; justify-content: center;
    text-transform: uppercase; font-size: .82rem; letter-spacing: .05em; }
  .nav-contact .nav-tel { background: var(--rouge); color: #fff; }
  .nav-contact .nav-wa { background: #25d366; color: #06331a; }
  .entete-contact { display: none; }
  /* Sous 820 px, le verrouillage complet tombe à ~80 px de large et sa
     baseline devient illisible : on ne garde que le pictogramme. */
  .logo img.logo-complet { display: none; }
  .logo img.logo-picto { display: block; height: 38px; }
  .tuiles { grid-template-columns: 1fr; margin-top: 24px; }
  .vignettes { grid-template-columns: repeat(4, 1fr); }
  .pied-grille { grid-template-columns: 1fr; gap: 22px; }
  .heros::after { display: none; }
}

@media (max-width: 620px) {
  .conteneur { padding: 0 14px; }
  .f-section { padding: 1.15rem 1rem; }
  .f-section > h2 { font-size: .97rem; }
  /* Cibles pleine largeur : au pouce, on ne vise pas une pastille. */
  .choix label { flex: 1 1 100%; }
  .rappel-annonce { flex-direction: column; align-items: flex-start; }
  .rappel-annonce img { width: 100%; height: 150px; }
  .veh-fige-tete { flex-direction: column; align-items: flex-start; }
  .veh-fige-tete img { width: 100%; height: 150px; }
  /* Le QR passe au-dessus du RIB : c'est le chemin le plus court sur le
     téléphone qui va justement scanner le code. */
  .payer-grille { grid-template-columns: 1fr; }
  .qr-cadre { max-width: 280px; margin-left: auto; margin-right: auto; }
  .deux-gestes .btn { width: 100%; }
  /* Le libellé gardait sa largeur minimale et écrasait la valeur sur quelques
     dizaines de pixels : empilé, chacun dispose de toute la largeur. */
  .recap { grid-template-columns: 1fr; gap: 0; }
  .recap dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; margin-top: .6rem; }
  .recap dd { margin-bottom: .1rem; }
  .actions .btn { flex: 1 1 100%; }
  .grille-annonces { grid-template-columns: 1fr; }
  .ligne-bornes { flex-direction: column; }
  .heros-actions .btn { flex: 1 1 100%; }
  .ariane ol { padding: .55rem 0; gap: .25rem; font-size: .78rem; }
  /* Sur petit écran, seuls le parent direct et la page courante ont un intérêt. */
  .ariane li:not(:last-child):not(:nth-last-child(2)) { display: none; }
  .ariane li:nth-last-child(2)::before { content: "‹"; }
  .ariane [aria-current="page"] { max-width: 45vw; }
}

/* ---------- impression ----------
   Le récapitulatif de dossier se lit aussi sur papier : un fond noir y viderait
   une cartouche pour rien, et la plupart des navigateurs ne l'impriment pas du
   tout — le texte blanc ressortirait alors blanc sur blanc. */
@media print {
  .entete, .pied, .actions, .avertissement, .ariane { display: none !important; }
  body { background: #fff; color: #111; }
  body::before { display: none; }
  .bloc, .encart, .f-section { border: 0; background: #fff; color: #111; padding: 0; }
  .recap dt, .muted { color: #555; }
  a { color: #111; }
}

/* ---------- bande d'appel à l'action (bas de l'accueil) ---------- */
/* Fond légèrement plus clair que la page et filet rouge en haut : la bande se
   détache de la grille d'annonces sans introduire une quatrième couleur. */
.appel { background: var(--noir-2); border-top: 1px solid var(--trait); position: relative; }
.appel::before { content: ""; position: absolute; inset: -1px 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--rouge) 0 30%, var(--rouge-sombre) 30% 50%, transparent 50%); }
.appel h2::before { content: none; }
.appel .heros-actions { justify-content: center; }
