/* ============================================================
   DV AUTOMOBILE — page Véhicules à vendre
   Logique d'une place de marché (grille, filtres, fiche + galerie),
   habillée aux couleurs du garage.
   ============================================================ */
.vo-nav, .vo-nav.is-scrolled { background: rgba(0, 4, 18, .92); backdrop-filter: blur(10px); border-color: var(--ligne); }
.nav__links a[aria-current="page"] { color: var(--blanc); box-shadow: 0 2px 0 var(--bleu-clair); }

.vo { padding: 118px var(--pad) clamp(64px, 10vh, 120px); max-width: 1440px; margin: 0 auto; }
.vo__head { margin-bottom: 40px; }
.vo__intro { max-width: 620px; margin: 22px 0 0; color: var(--brume); }

.vo__bar { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--ligne); border-bottom: 1px solid var(--ligne); margin-bottom: 28px; }
.vo__count { margin: 0 auto 0 0; font: 500 13px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--bleu-clair); }
.vo__toggle { display: none; min-height: 40px; padding: 8px 16px; }
.vo__sort { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--brume); }

.vo select { padding: 11px 36px 11px 12px; font: 500 15px/1.3 var(--corps); color: var(--blanc); background: var(--nuit) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234d93ff' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center / 12px 8px; border: 1px solid rgba(195, 204, 224, .32); border-radius: 0; -webkit-appearance: none; appearance: none; }
.vo select:focus { outline: 2px solid var(--bleu-clair); outline-offset: 0; }

.vo__layout { display: grid; grid-template-columns: 250px 1fr; gap: 32px; align-items: start; }
.vo__filters { position: sticky; top: 100px; display: grid; gap: 16px; padding: 22px; border: 1px solid var(--ligne); background: rgba(7, 26, 74, .22); }
.vo__filters label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--brume); }
.vo__filters select { width: 100%; }
.vo__reset { justify-self: start; padding: 4px 0; background: none; border: 0; color: var(--bleu-clair); font: 600 14px/1.3 var(--corps); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.vo__as24 { padding-top: 14px; border-top: 1px solid var(--ligne); font-size: 13px; color: var(--gris); text-decoration: none; }
.vo__as24:hover { color: var(--blanc); }

.vo__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.vo__empty { padding: 40px 0; color: var(--brume); }
.vo__empty button { background: none; border: 0; padding: 0; color: var(--bleu-clair); font: inherit; text-decoration: underline; cursor: pointer; }

/* Carte */
.vcard { position: relative; display: flex; flex-direction: column; background: #050c22; border: 1px solid var(--ligne); transition: border-color .25s, transform .3s var(--ease); }
.vcard:hover { border-color: rgba(77, 147, 255, .6); transform: translateY(-3px); }
.vcard__link { position: absolute; inset: 0; z-index: 2; }
.vcard__link:focus-visible { outline-offset: -2px; }
.vcard__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #0b1430; }
.vcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.vcard:hover .vcard__media img { transform: scale(1.04); }
.vcard__count { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; background: rgba(0, 4, 18, .78); font: 500 11px/1 var(--mono); letter-spacing: .08em; }
.vcard__badge { position: absolute; left: 10px; top: 10px; padding: 6px 9px; background: var(--bleu-vif); font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; }
.vcard__body { display: flex; flex-direction: column; flex: 1; padding: 18px 18px 16px; }
.vcard__title { margin: 0; font: 800 1.75rem/1 var(--titre); text-transform: uppercase; }
.vcard__version { margin: 6px 0 0; font-size: 14px; color: var(--brume); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vcard__price { margin: 14px 0 0; font: 800 1.9rem/1 var(--titre); color: var(--blanc); }
.vcard__price s, .vbox__old s { font: 500 14px/1 var(--corps); color: var(--gris); margin-left: 6px; }
.vcard__specs { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid var(--ligne); display: grid; grid-template-columns: 1fr 1fr; gap: 9px 12px; font-size: 13.5px; color: var(--brume); }
.vcard__specs li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.vcard__specs svg, .vd__keys svg { flex: none; width: 18px; height: 18px; fill: none; stroke: var(--bleu-clair); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.vcard__place { margin: auto 0 0; padding-top: 14px; font: 500 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--gris); }

/* Fiche */
.vback { display: inline-block; margin-bottom: 22px; font-size: 14px; font-weight: 600; color: var(--brume); text-decoration: none; }
.vback:hover { color: var(--blanc); }
.vd { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 36px; align-items: start; }
.gal__stage { position: relative; aspect-ratio: 4 / 3; background: #050c22; overflow: hidden; touch-action: pan-y; }
.gal__stage img { width: 100%; height: 100%; object-fit: contain; }
.gal__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(0, 4, 18, .7); color: var(--blanc); font: 400 30px/1 var(--corps); cursor: pointer; display: grid; place-items: center; padding-bottom: 4px; }
.gal__nav:hover { background: var(--bleu-vif); }
.gal__nav--prev { left: 12px; }
.gal__nav--next { right: 12px; }
.gal__pos { position: absolute; left: 12px; bottom: 12px; padding: 6px 9px; background: rgba(0, 4, 18, .78); font: 500 12px/1 var(--mono); }
.gal { min-width: 0; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; }
.gal__thumb { flex: none; width: 104px; aspect-ratio: 4 / 3; padding: 0; border: 2px solid transparent; background: #050c22; cursor: pointer; opacity: .6; transition: opacity .2s, border-color .2s; }
.gal__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gal__thumb:hover, .gal__thumb.is-on { opacity: 1; }
.gal__thumb.is-on { border-color: var(--bleu-clair); }

.vd__block { margin-top: 40px; }
.vd__block h2 { margin: 0 0 16px; font: 800 2rem/1 var(--titre); text-transform: uppercase; }
.vd__keys { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 1px; background: var(--ligne); border: 1px solid var(--ligne); }
.vd__keys li { display: grid; gap: 4px; padding: 16px; background: var(--nuit); }
.vd__keys svg { width: 22px; height: 22px; margin-bottom: 4px; }
.vd__keys span { font-size: 12.5px; color: var(--gris); }
.vd__keys strong { font-size: 15.5px; font-weight: 700; }
.vd__equip { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px 24px; color: var(--brume); }
.vd__equip li { padding-left: 24px; position: relative; }
.vd__equip li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--bleu-clair); border-bottom: 2px solid var(--bleu-clair); transform: rotate(-45deg); }
.vd__table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vd__table th, .vd__table td { padding: 11px 0; border-bottom: 1px solid var(--ligne); text-align: left; vertical-align: top; }
.vd__table th { width: 46%; font-weight: 500; color: var(--gris); }

.vd__side { position: sticky; top: 100px; }
.vbox { padding: 26px; border: 1px solid var(--ligne); background: #050c22; display: grid; gap: 12px; }
.vbox__title { margin: 0; font: 800 clamp(2.2rem, 3vw, 2.8rem)/.95 var(--titre); text-transform: uppercase; }
.vbox__version { margin: 0; color: var(--brume); font-size: 15px; }
.vbox__price { margin: 8px 0 0; font: 800 2.6rem/1 var(--titre); color: var(--bleu-clair); }
.vbox__old { margin: -4px 0 0; font-size: 14px; color: var(--gris); }
.vbox__btn { width: 100%; }
.vbox__seller { margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--ligne); font-size: 14px; color: var(--brume); }
.vbox__as24 { font-size: 13px; color: var(--gris); text-decoration: none; }
.vbox__as24:hover { color: var(--blanc); }

/* Demande */
.vo__contact { margin-top: clamp(56px, 9vh, 100px); padding-top: clamp(40px, 6vh, 64px); border-top: 1px solid var(--ligne); }
.vo__contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: start; }
.vo__contact-title { margin: 0; font: 800 clamp(2.4rem, 4.4vw, 4rem)/.98 var(--titre); text-transform: uppercase; }
.vo__contact-copy { margin: 18px 0 0; color: var(--brume); max-width: 480px; }
.vo__contact-copy a { color: var(--bleu-clair); }
.form input[readonly] { color: var(--brume); background: rgba(7, 26, 74, .3); }

@media (max-width: 1100px) {
  .vd { display: flex; flex-direction: column; gap: 0; }
  .vd__main { display: contents; }
  .gal, .vd__side, .vd__block { width: 100%; min-width: 0; }
  .gal { order: 1; }
  .vd__side { order: 2; position: static; margin-top: 24px; }
  .vd__block { order: 3; }
}
@media (max-width: 900px) {
  .vo { padding-top: 100px; }
  .vo__layout { grid-template-columns: 1fr; gap: 0; }
  .vo__toggle { display: inline-flex; }
  .vo__filters { display: none; position: static; margin-bottom: 22px; }
  .vo__filters.is-open { display: grid; }
  .vo__contact-in { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .vo__bar { flex-wrap: wrap; gap: 12px; }
  .vo__count { width: 100%; }
  .vo__sort { margin-left: auto; }
  .vo__sort select { max-width: 190px; }
  .vo__grid { grid-template-columns: 1fr; gap: 16px; }
  .vbox { padding: 20px; }
  .gal__nav { width: 40px; height: 40px; font-size: 26px; }
  .gal__thumb { width: 84px; }
}
