/* KEKE-AUTOLOC : styles du site (repris de la maquette Claude Design) */
:root {
  --navy: #0E1A33;
  --navy-2: #1B2A4A;
  --red: #D0161E;
  --red-dark: #A8111A;
  --red-text: #B3121A;
  --text-2: #475066;
  --text-3: #5B6475;
  --text-body: #2B3448;
  --line: #E4E7EC;
  --line-soft: #EEF0F3;
  --field: #D5DAE3;
  --soft: #F5F6F8;
  --soft-2: #F1F3F7;
  --light-on-navy: #C9D1E0;
  --placeholder: repeating-linear-gradient(135deg, #EEF1F5 0 14px, #E7EBF1 14px 28px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--navy);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: var(--red); }
a:hover { color: var(--red-dark); }
select, input, textarea, button { font-family: inherit; font-size: 16px; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left)); padding-right: max(20px, env(safe-area-inset-right)); }
.only-mobile { display: none; }
@media (max-width: 759px) {
  .only-desktop { display: none !important; }
  .only-mobile { display: inline-flex; }
}
.break { overflow-wrap: anywhere; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 8px;
  text-decoration: none; font-weight: 700; font-size: 17px;
  padding: 17px 26px; border-radius: 14px; border: none; cursor: pointer;
  transition: background .15s, border-color .15s;
}
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: var(--red-dark); color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-outline { background: #fff; color: var(--navy); border: 1.5px solid var(--field); }
.btn-outline:hover { border-color: var(--navy); color: var(--navy); }
.btn-block { display: flex; width: 100%; min-height: 54px; padding: 0 16px; }
.btn-pill {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  text-decoration: none; font-weight: 700; font-size: 15px; padding: 11px 18px; border-radius: 999px;
}

/* ---------- En-tête ---------- */
.site-header { position: sticky; top: 0; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.header-row { height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.logo { display: flex; align-items: center; }
.logo img { height: 58px; width: auto; display: block; }
.nav-desktop { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav-desktop a, .nav-mobile a { text-decoration: none; font-weight: 600; color: var(--navy); }
.nav-desktop a { padding: 9px 16px; border-radius: 999px; font-size: 15px; }
.nav-desktop a:hover { background: var(--soft); color: var(--navy); }
.nav-desktop a.active, .nav-mobile a.active { background: var(--navy); color: #fff; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.btn-menu { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--field); background: transparent; color: var(--navy); font-weight: 600; font-size: 15px; cursor: pointer; }
.nav-mobile { display: flex; flex-direction: column; gap: 4px; padding: 12px 20px 18px; border-top: 1px solid var(--line); }
.nav-mobile a { padding: 14px 16px; border-radius: 12px; font-size: 17px; }
@media (max-width: 759px) { .nav-desktop { display: none; } }

/* ---------- Accueil ---------- */
.hero { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 36px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
.hero-text { display: flex; flex-direction: column; gap: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; background: var(--soft-2); color: var(--navy); }
.chip-red { background: #FDECEC; color: var(--red-text); }
.hero h1 { margin: 0; font-size: clamp(36px, 6vw, 62px); line-height: 1.03; font-weight: 800; letter-spacing: -0.035em; text-wrap: balance; }
.lead { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 520px; text-wrap: pretty; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual { position: relative; display: block; aspect-ratio: 4/3; border-radius: 24px; overflow: hidden; background: var(--placeholder); text-decoration: none; color: var(--navy); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-card { position: absolute; left: 16px; right: 16px; bottom: 16px; background: #fff; border-radius: 16px; padding: 14px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 10px 30px rgba(14,26,51,.14); }
.eyebrow { font-size: 12px; font-weight: 700; color: var(--red-text); text-transform: uppercase; letter-spacing: .06em; }
.hero-card-title { font-size: 16px; font-weight: 700; margin-top: 2px; }
.hero-card-price { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; white-space: nowrap; }

.placeholder-label { position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; }
.placeholder-label span { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--text-3); background: rgba(255,255,255,.85); padding: 6px 10px; border-radius: 6px; text-align: center; }

.band-soft { background: var(--soft); }
.reassure { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 28px; padding-top: 40px; padding-bottom: 40px; }
.reassure-item { display: flex; flex-direction: column; gap: 8px; }
.reassure-num { font-size: 14px; font-weight: 800; color: var(--red); font-variant-numeric: tabular-nums; }
.reassure-title { font-size: 18px; font-weight: 700; }
.reassure-text { font-size: 15px; line-height: 1.5; color: var(--text-2); }

.section { padding-top: 56px; padding-bottom: 24px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.h2 { margin: 0; font-size: clamp(26px, 4vw, 36px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; text-wrap: balance; }
.link-strong { font-weight: 700; font-size: 16px; text-decoration: none; }

.about { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 36px; align-items: center; background: var(--soft); border-radius: 28px; padding: clamp(20px, 4vw, 44px); }
.about-photo { position: relative; aspect-ratio: 5/4; border-radius: 20px; background: repeating-linear-gradient(135deg, #E7EBF1 0 14px, #DFE4EC 14px 28px); overflow: hidden; }
.about-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.about-text { display: flex; flex-direction: column; gap: 16px; }
.about-text p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--text-2); text-wrap: pretty; }

/* ---------- Cartes véhicule ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; text-decoration: none; color: var(--navy); transition: box-shadow .2s, transform .2s; }
.card:hover { box-shadow: 0 14px 34px rgba(14,26,51,.12); transform: translateY(-2px); color: var(--navy); }
.card-photo { position: relative; aspect-ratio: 4/3; background: repeating-linear-gradient(135deg, #EEF1F5 0 12px, #E7EBF1 12px 24px); overflow: hidden; }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge { position: absolute; top: 12px; left: 12px; color: #fff; font-size: 13px; font-weight: 700; padding: 6px 11px; border-radius: 999px; letter-spacing: .01em; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.card-title { font-weight: 800; font-size: 19px; letter-spacing: -0.01em; }
.card-sub { font-size: 14px; color: var(--text-3); margin-top: 2px; }
.kv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; }
.kv-label { font-size: 12px; color: var(--text-3); }
.kv-value { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.kv-value.small { font-size: 15px; font-weight: 600; }
.card-foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line-soft); padding-top: 14px; }
.card-price { font-size: 27px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.card-cta { font-size: 14px; font-weight: 700; padding-bottom: 4px; }
.is-sold img { filter: grayscale(1); }

/* ---------- Stock ---------- */
.page { padding-top: 36px; padding-bottom: 72px; }
.page-title { margin: 0; font-size: clamp(30px, 5vw, 44px); font-weight: 800; letter-spacing: -0.03em; }
.page-sub { font-size: 16px; color: var(--text-2); margin-top: 6px; }
.sort { display: flex; align-items: center; gap: 10px; }
.sort label { font-size: 14px; color: var(--text-2); font-weight: 600; }
.select, .input {
  height: 48px; padding: 0 12px; border: 1.5px solid var(--field); border-radius: 12px; background: #fff; color: var(--navy); width: 100%;
}
.sort .select { width: auto; height: 46px; font-weight: 600; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px; background: var(--soft); border-radius: 18px; padding: 16px; margin-bottom: 28px; align-items: end; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 700; color: var(--text-2); }
.btn-reset { height: 48px; border: none; border-radius: 12px; background: transparent; color: var(--navy); font-weight: 700; text-decoration: underline; cursor: pointer; }
.empty { text-align: center; padding: 48px 20px; background: var(--soft); border-radius: 18px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.empty-title { font-size: 18px; font-weight: 700; }
.empty-text { font-size: 16px; color: var(--text-2); }

/* ---------- Fiche véhicule ---------- */
.back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: 15px; color: var(--navy); text-decoration: none; }
.fiche { display: grid; grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "g p" "d p"; gap: 28px 36px; margin-top: 8px; }
@media (max-width: 759px) { .fiche { grid-template-columns: minmax(0, 1fr); grid-template-areas: "g" "p" "d"; } }
.gallery { grid-area: g; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.slider { position: relative; aspect-ratio: 4/3; border-radius: 22px; overflow: hidden; background: #EEF1F5; cursor: zoom-in; touch-action: pan-y; }
.track { display: flex; height: 100%; transition: transform .35s ease; }
.slide { flex: 0 0 100%; height: 100%; position: relative; background: var(--placeholder); }
.slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.badge-lg { top: 14px; left: 14px; font-size: 14px; padding: 7px 12px; }
.counter { position: absolute; right: 14px; bottom: 14px; background: rgba(14,26,51,.82); color: #fff; font-size: 14px; font-weight: 700; padding: 7px 12px; border-radius: 999px; font-variant-numeric: tabular-nums; }
.arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 48px; border-radius: 50%; border: none; background: #fff; color: var(--navy); font-size: 22px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 18px rgba(14,26,51,.18); }
.arrow-prev { left: 14px; }
.arrow-next { right: 14px; }
@media (max-width: 759px) { .slider .arrow { display: none; } }
.thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.thumb { flex: 0 0 auto; width: 84px; height: 63px; padding: 0; border-radius: 10px; overflow: hidden; cursor: pointer; border: 2.5px solid transparent; opacity: .65; background: repeating-linear-gradient(135deg, #EEF1F5 0 8px, #E7EBF1 8px 16px); font-family: ui-monospace, Menlo, monospace; font-size: 11px; color: var(--text-3); }
.thumb.active { border-color: var(--red); opacity: 1; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.panel { grid-area: p; align-self: start; position: sticky; top: 92px; display: flex; flex-direction: column; gap: 18px; border: 1px solid var(--line); border-radius: 22px; padding: 24px; background: #fff; }
@media (max-width: 759px) { .panel { position: static; } }
.panel h1 { margin: 0; font-size: clamp(26px, 3.4vw, 32px); font-weight: 800; letter-spacing: -0.025em; line-height: 1.1; }
.panel-sub { font-size: 16px; color: var(--text-2); margin-top: 4px; }
.panel-price { font-size: 42px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.key-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.key-grid > div { background: #fff; padding: 12px 14px; }
.key-grid .kv-value { font-size: 19px; font-weight: 800; }
.key-grid .kv-value.small { font-size: 17px; font-weight: 700; }
.status-note { font-size: 15px; line-height: 1.5; padding: 12px 14px; border-radius: 12px; }
.contact-stack { display: flex; flex-direction: column; gap: 10px; }
.panel-foot { font-size: 14px; color: var(--text-3); text-align: center; }

.details { grid-area: d; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.h3 { margin: 0 0 14px; font-size: 24px; font-weight: 800; letter-spacing: -0.02em; }
.specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); column-gap: 32px; }
.spec { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line-soft); font-size: 15px; }
.spec span:first-child { color: var(--text-3); }
.spec span:last-child { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.equip { display: flex; flex-wrap: wrap; gap: 8px; }
.equip span { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; background: var(--soft); padding: 9px 14px; border-radius: 999px; }
.equip span::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--red); }
.state { background: var(--soft); border-radius: 20px; padding: clamp(18px, 3vw, 28px); display: flex; flex-direction: column; gap: 14px; }
.state .h3 { margin: 0; }
.state p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--text-body); text-wrap: pretty; }
.defects { display: flex; flex-direction: column; gap: 6px; }
.defects div { font-size: 16px; line-height: 1.5; display: flex; gap: 10px; }
.defects div::before { content: "·"; color: var(--red); font-weight: 800; }

.missing { max-width: 700px; margin: 0 auto; padding: 80px 20px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.missing h1 { margin: 0; font-size: 30px; font-weight: 800; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 28px; align-items: start; }
.contact-list { display: flex; flex-direction: column; gap: 12px; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 20px 22px; border-radius: 18px; text-decoration: none; }
.contact-card .lbl { display: block; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contact-card .val { display: block; font-size: 19px; font-weight: 700; margin-top: 2px; }
.contact-card .val.big { font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.contact-card .arrow-txt { font-size: 22px; font-weight: 700; }
.info-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 6px; }
.info-pair > div { background: var(--soft); border-radius: 16px; padding: 18px; }
.info-pair .kv-label { font-size: 13px; font-weight: 700; }
.info-pair .kv-value { font-size: 17px; margin-top: 4px; }
.form { display: flex; flex-direction: column; gap: 14px; border: 1px solid var(--line); border-radius: 22px; padding: clamp(18px, 3vw, 28px); }
.form-title { font-size: 20px; font-weight: 800; }
.form .field { font-size: 14px; color: var(--navy); }
.form .input, .form .select { height: 50px; padding: 0 14px; }
.form textarea.input { height: auto; padding: 12px 14px; resize: vertical; }
.form-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.msg-err { font-size: 15px; color: #B42318; font-weight: 600; }
.msg-ok { font-size: 15px; color: #166534; font-weight: 600; background: #E7F6EC; padding: 12px 14px; border-radius: 12px; }

/* ---------- Mentions ---------- */
.legal { max-width: 760px; margin: 0 auto; padding-top: 40px; padding-bottom: 72px; display: flex; flex-direction: column; gap: 18px; font-size: 16px; line-height: 1.65; color: var(--text-body); }
.legal h1 { margin: 0; font-size: 36px; font-weight: 800; letter-spacing: -0.03em; color: var(--navy); }
.legal strong { color: var(--navy); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--navy); color: #fff; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 32px; padding-top: 48px; padding-bottom: 28px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.footer-col a { color: #fff; text-decoration: none; }
.footer-col a:hover { color: var(--light-on-navy); }
.footer-logo { align-self: flex-start; background: #fff; border-radius: 14px; padding: 8px 12px; }
.footer-logo img { height: 68px; width: auto; display: block; }
.footer-title { font-size: 13px; font-weight: 700; color: var(--light-on-navy); text-transform: uppercase; letter-spacing: .08em; }
.muted-light { color: var(--light-on-navy); line-height: 1.55; }
.footer-bottom { padding-top: 18px; padding-bottom: 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: var(--light-on-navy); }

/* ---------- Barre mobile et visionneuse ---------- */
.mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(14,26,51,.08); padding: 10px 14px calc(10px + env(safe-area-inset-bottom)); display: flex; gap: 10px; }
.mobile-bar .btn { flex: 1; min-height: 52px; padding: 0 12px; }
body.has-bar main { padding-bottom: 84px; }

.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(8,14,28,.96); display: flex; flex-direction: column; color: #fff; }
.lb-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; padding-top: calc(12px + env(safe-area-inset-top)); }
.lb-title { font-weight: 600; color: var(--light-on-navy); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-close { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid rgba(255,255,255,.3); background: transparent; color: #fff; font-weight: 700; cursor: pointer; }
.lb-stage { flex: 1; min-height: 0; position: relative; display: flex; align-items: center; justify-content: center; padding: 0 16px 24px; }
.lb-stage img { max-width: 100%; max-height: 100%; object-fit: contain; display: block; }
.lb-empty { width: min(100%, 1100px); aspect-ratio: 4/3; max-height: 100%; border-radius: 12px; background: repeating-linear-gradient(135deg, #1B2A4A 0 14px, #16233F 14px 28px); display: grid; place-items: center; font-family: ui-monospace, Menlo, monospace; font-size: 13px; color: var(--light-on-navy); }
.lb-stage .arrow { width: 56px; height: 56px; font-size: 26px; }
.lb-stage .arrow-prev { left: 24px; }
.lb-stage .arrow-next { right: 24px; }
@media (max-width: 759px) { .lb-stage .arrow { display: none; } }
body.no-scroll { overflow: hidden; }
