/* =====================================================================
   Version 1.2 — menu court, prix catalogue / remise, fiches enrichies,
   favoris, comparateur, alertes, espace pro. Chargé après pro.css.
   ===================================================================== */

/* ---------- En-tête : menu court ---------- */
.nav { gap: 24px; }
.nav-wrap { margin-left: auto; }
.nav-links { gap: 34px; }
.nav-cta { gap: 6px; }
.nav-icon { position: relative; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--blue-900); transition: .2s; }
.nav-icon:hover { background: var(--sky); color: var(--blue-600); }
.nav-icon b { position: absolute; top: 3px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--blue-600); color: #fff; font-size: .68rem; display: grid; place-items: center; }
.btn-pro { margin-left: 6px; background: var(--blue-900); color: #fff; padding: 10px 18px; gap: 8px; }
.btn-pro:hover { background: var(--blue-700); color: #fff; }
.btn-pro.on { background: #137a48; }
.btn-pro .lbl { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1400px) { .nav-links { gap: 26px; } }
@media (max-width: 1024px) { .nav-links { display: flex; } .burger { display: none; } }
@media (max-width: 820px) {
  .nav-links { display: none; } .burger { display: block; }
  .nav-links.open { display: flex; flex-direction: column; position: absolute; top: 76px; left: 0; right: 0; background: #fff; padding: 20px 16px; gap: 14px; border-bottom: 1px solid var(--border); box-shadow: var(--shadow); }
}
@media (max-width: 560px) { .btn-pro .lbl { display: none; } .btn-pro { padding: 10px 12px; margin-left: 0; } .nav { gap: 10px; } }
@media (max-width: 400px) { .nav-icon { width: 36px; } }

/* ---------- Barre pro ---------- */
.pro-bar { background: #0f3d26; color: #d7f2e2; font-size: .86rem; }
.pro-bar .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 8px 0; flex-wrap: wrap; }
.pro-bar strong { color: #fff; }
.pro-bar-acts { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.pro-bar a { color: #fff; font-weight: 700; display: inline-flex; gap: 6px; align-items: center; }
.pro-bar a:hover { text-decoration: underline; }
.switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 700; }
.switch i { width: 36px; height: 20px; border-radius: 20px; background: rgba(255,255,255,.3); position: relative; transition: .2s; flex: none; }
.switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch.on i { background: var(--accent); }
.switch.on i::after { left: 18px; }
.switch.big { color: var(--blue-900); margin: 6px 0 4px; }
.switch.big i { background: var(--border); }
.switch.big.on i { background: var(--accent); }

/* ---------- Cartes véhicules ---------- */
.car-card { position: relative; }
.badge-promo { left: 12px; right: auto; top: 44px; background: #e8432e; color: #fff; }
.card-acts { position: absolute; right: 12px; top: 12px; display: flex; gap: 6px; z-index: 2; }
.card-act { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.96); display: inline-grid; place-items: center; color: var(--blue-900); box-shadow: 0 2px 8px rgba(13,42,74,.16); cursor: pointer; transition: .15s; font: inherit; }
.card-act:hover { color: var(--blue-600); transform: scale(1.08); }
.card-act.on { background: var(--blue-600); color: #fff; }
.card-act[data-fav].on { background: #e8432e; }
.car-media { position: relative; }
.card-colors { position: absolute; left: 10px; bottom: 10px; background: rgba(255,255,255,.96); border-radius: 20px; padding: 4px 10px 4px 6px; font-size: .72rem; font-weight: 700; color: var(--blue-900); display: flex; align-items: center; gap: 3px; }
.card-colors i, .vd-colors i { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); display: inline-block; }
.price-ht { display: block; font-size: .74rem; color: var(--muted); font-weight: 600; font-family: "Inter", sans-serif; }
.price-old b { color: #e8432e; }
.car-saving { text-align: right; font-size: .74rem; color: #137a48; font-weight: 700; white-space: nowrap; background: #e8f7ef; border-radius: 10px; padding: 5px 9px; align-self: flex-start; }
.car-saving strong { display: block; font-size: 1rem; }
.car-pictos { display: flex; flex-wrap: wrap; gap: 4px 10px; }
.picto { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.picto svg { color: var(--blue-600); flex: none; }
.picto em { font-style: normal; }
.tag-stock { background: #e8f7ef; border-color: #bfe8cf; color: #137a48; }
.tag-newin { background: var(--blue-600); border-color: var(--blue-600); color: #fff; }

/* ---------- Bloc prix marchand ---------- */
.pro-box { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: #bfe8cf; border: 1px solid #bfe8cf; border-radius: 12px; overflow: hidden; margin: 2px 0; }
.pro-box > div { background: #f2fbf6; padding: 8px 10px; display: grid; gap: 1px; }
.pro-box span { font-size: .64rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: #137a48; }
.pro-box b { font-size: .98rem; color: var(--blue-900); white-space: nowrap; }
.pro-box b i { font-style: normal; font-size: .7rem; color: var(--muted); }
.pro-box small { font-size: .72rem; color: var(--muted); font-weight: 600; }
.pro-box.big b { font-size: 1.2rem; }
.pro-box.big > div { padding: 12px 14px; }

/* ---------- Accueil ---------- */
.hero2-fields { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hero2-fields .field-q { grid-column: 1 / -1; }
.sel-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin: -6px 0 24px; padding: 5px; background: var(--sky); border-radius: 14px; width: fit-content; max-width: 100%; }
.sel-tabs button { border: 0; background: transparent; padding: 9px 18px; border-radius: 10px; font: inherit; font-weight: 700; font-size: .92rem; color: var(--blue-900); cursor: pointer; }
.sel-tabs button.active { background: var(--blue-600); color: #fff; }

/* ---------- Liste / filtres ---------- */
.checks { display: grid; gap: 6px; border: 0; padding: 0; margin: 0; }
.checks legend { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.check { display: flex; gap: 8px; align-items: center; font-size: .9rem; font-weight: 600; color: var(--text); text-transform: none; letter-spacing: 0; cursor: pointer; }
.check input { accent-color: var(--blue-600); width: 16px; height: 16px; flex: none; }
.stock-tools { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tool { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: #fff; padding: 7px 13px; border-radius: 10px; font: inherit; font-size: .86rem; font-weight: 700; color: var(--blue-900); cursor: pointer; }
.tool:hover { border-color: var(--blue-600); color: var(--blue-600); }
.tool b { background: var(--blue-100); border-radius: 10px; padding: 0 7px; font-size: .76rem; }
.tool-pro { background: #0f3d26; border-color: #0f3d26; color: #fff; }
.tool-pro:hover { color: #fff; filter: brightness(1.2); }

/* ---------- Fiche véhicule ---------- */
.vd-pictos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.vd-pictos .picto { background: var(--sky); border: 1px solid var(--blue-100); border-radius: 10px; padding: 6px 10px; font-size: .8rem; color: var(--blue-900); }
.vd-colors { display: flex; align-items: center; gap: 4px; font-size: .88rem; font-weight: 700; }
.vd-colors a { color: var(--blue-600); margin-left: 6px; }
.vd-pricebox { border: 1px solid var(--border); border-radius: 16px; overflow: hidden; background: #fff; }
.pb-row { display: flex; justify-content: space-between; gap: 10px; padding: 10px 16px; background: var(--sky); font-size: .9rem; color: var(--muted); font-weight: 600; }
.pb-main { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; }
.pb-label { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 800; color: var(--muted); }
.pb-main .vd-price { color: var(--blue-600); margin: 2px 0; }
.pb-ht { font-size: .86rem; color: var(--muted); font-weight: 600; }
.pb-pct { background: #e8432e; color: #fff; font-weight: 800; font-size: 1.15rem; padding: 8px 12px; border-radius: 12px; white-space: nowrap; }
.pb-saving { background: #e8f7ef; color: #137a48; padding: 10px 16px; font-weight: 600; }
.vd-monthly-line { font-size: .92rem; color: var(--muted); }
.vd-monthly-line strong { color: var(--blue-900); }
.vd-monthly-line a { color: var(--blue-600); font-weight: 700; }
.vd-mini-acts { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.vd-mini-acts > span { display: flex; gap: 8px; }
.vd-mini-acts .card-act { width: auto; height: auto; border-radius: 10px; padding: 7px 11px; gap: 6px; display: inline-flex; font-size: .84rem; font-weight: 700; box-shadow: none; border: 1px solid var(--border); }
.vd-callback { background: #fff6dc; border: 0; border-radius: 10px; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--blue-900); cursor: pointer; }
.vd-callback u { font-weight: 800; }
.key-info { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin: 0; }
.key-info > div { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: .93rem; }
.key-info dt { color: var(--muted); }
.key-info dd { color: var(--blue-900); font-weight: 700; text-align: right; margin: 0; }
@media (max-width: 1024px) { .key-info { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .key-info { grid-template-columns: 1fr; } }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; background: #fff; }
.units, .cmp-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.units th, .units td, .cmp-table th, .cmp-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--border); vertical-align: middle; }
.units thead th { background: var(--sky); font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); white-space: nowrap; }
.units tr:last-child td { border-bottom: 0; }
.units tr.current td { background: #f6fbff; font-weight: 700; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.2); margin-right: 8px; vertical-align: -2px; }
.btn-sm { padding: 6px 12px; font-size: .82rem; border-width: 1.5px; }
.small { font-size: .86rem; }
.vd-tech { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

/* ---------- Comparateur ---------- */
.cmp-table { min-width: 640px; }
.cmp-table thead th { vertical-align: top; background: #fff; min-width: 200px; }
.cmp-table tbody th { width: 190px; color: var(--muted); font-weight: 600; background: var(--sky); }
.cmp-table td { color: var(--blue-900); font-weight: 600; }
.cmp-head { display: grid; gap: 4px; margin-bottom: 10px; }
.cmp-head img, .cmp-head svg { border-radius: 12px; aspect-ratio: 16/10; width: 100%; max-width: 240px; object-fit: cover; background: #f1f6fc; }
.cmp-head strong { color: var(--blue-900); }
.cmp-head small { color: var(--muted); font-weight: 500; }
.cmp-price { font-size: 1.2rem; color: var(--blue-600); }
.yes { color: #137a48; font-weight: 800; } .no { color: #c4cfdc; }

/* ---------- Fenêtres & notifications ---------- */
dialog.modal { border: 0; border-radius: 18px; padding: 28px; width: min(460px, calc(100% - 32px)); box-shadow: var(--shadow-lg); color: var(--text); }
dialog.modal::backdrop { background: rgba(13, 42, 74, .5); }
dialog.modal h2 { color: var(--blue-900); display: flex; gap: 8px; align-items: center; margin: 0 0 4px; }
.modal-x { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 1.7rem; color: var(--muted); cursor: pointer; line-height: 1; }
.modal-form { display: grid; gap: 14px; }
.modal-form .consent { font-size: .82rem; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none; background: var(--blue-900); color: #fff; padding: 12px 18px; border-radius: 12px; font-weight: 600; font-size: .9rem; z-index: 300; transition: .25s; box-shadow: var(--shadow-lg); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: #ffd2bf; text-decoration: underline; }

/* ---------- Espace pro ---------- */
.pro-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 28px; align-items: start; }
.pro-grid h2 { color: var(--blue-900); margin-bottom: 4px; }
.pro-grid hr { border: 0; border-top: 1px solid var(--border); margin: 20px 0; }
.pro-dash { display: grid; gap: 28px; }
.pro-hello { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.pro-hello h2 { color: var(--blue-900); margin: 0; }
.pro-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.pro-stats > div { background: var(--sky); border-radius: 16px; padding: 20px; }
.pro-stats strong { display: block; font-size: 1.5rem; color: var(--blue-600); font-family: var(--font-head); }
.pro-stats span { color: var(--muted); font-weight: 600; font-size: .9rem; }
.pro-tools { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
#espace-pro > .container > .notice { margin-bottom: 20px; }
@media (max-width: 860px) { .pro-grid, .pro-stats { grid-template-columns: 1fr; } }

/* ---------- Accueil : titre sur toute la largeur, recherche et véhicule à la une côte à côte ---------- */
.hero2-title { font-size: clamp(1.9rem, 3.8vw, 3.1rem); line-height: 1.1; color: var(--blue-900); margin: 0 0 12px; letter-spacing: -.03em; }
.hero2-title span { color: var(--blue-600); }
.hero2 .hero2-lead { max-width: none; margin-bottom: 26px; }
.hero2-grid { align-items: stretch; }
.hero2-text { display: flex; flex-direction: column; }
.hero2-text .hero2-search { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.hero2-visual { display: flex; }
.hero2-visual .hero2-car { flex: 1; aspect-ratio: auto; min-height: 300px; }
.hero2-fields select:disabled { background: var(--blue-50); color: var(--muted); cursor: not-allowed; }
.hero2-fields .btn [data-hero-count] { white-space: nowrap; }
@media (max-width: 1024px) {
  .hero2-visual .hero2-car { aspect-ratio: 4 / 3; min-height: 0; }
}
.hero2-text .hero2-search .hero2-tabs { align-self: flex-start; }
@media (max-width: 640px) { .hero2-fields { grid-template-columns: 1fr; } .hero2-text .hero2-search .hero2-tabs { align-self: stretch; } }

/* ---------- Fiche véhicule : menu et détails sous les photos (plus d'espace vide), encadré prix fixe à droite ---------- */
.vd-gallery { position: relative; }
.vd-gallery-acts { top: 16px; right: 16px; z-index: 4; }
.vd-gallery-acts .card-act { width: 40px; height: 40px; }
.vd-tabs-col { position: sticky; top: 74px; z-index: 20; background: #fff; margin: 26px 0 0; border: 1px solid var(--border); border-radius: 14px; border-top: 1px solid var(--border); }
.vd-tabs-col .vd-tabs-in { display: flex; gap: 24px; overflow-x: auto; padding: 0 18px; }
.vd-tabs-col a { padding: 14px 0; font-weight: 700; color: var(--blue-900); white-space: nowrap; border-bottom: 3px solid transparent; }
.vd-tabs-col a:hover { color: var(--blue-600); border-color: var(--blue-600); }
.vd-sections-col { max-width: none; padding-top: 30px; }
.vd-top { padding-bottom: 56px; }
@media (max-width: 1024px) {
  .vd-col { display: contents; }
  .vd-grid > .vd-col > * { order: 1; min-width: 0; max-width: 100%; }
  .vd-grid > .vd-card { order: 2; }
  .vd-grid > .vd-col > .vd-tabs-col, .vd-grid > .vd-col > .vd-sections-col { order: 3; }
  .vd-grid { gap: 22px; }
  .vd-tabs-col { margin: 0; }
}
.vd-sections-col { grid-template-columns: minmax(0, 1fr); } .vd-sections-col > * { min-width: 0; } .vd-sections-col table { display: block; overflow-x: auto; }
@media (min-width: 641px) { .vd-sections-col .key-info { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Accueil : la sélection du moment (3 thèmes, cartes allégées) ---------- */
.sel-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.sel-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.sel-head h3 { font-size: 1.25rem; color: var(--blue-900); letter-spacing: -.01em; }
.sel-head a { color: var(--blue-600); font-weight: 700; font-size: .9rem; white-space: nowrap; }
.sel-sub { color: var(--muted); font-size: .92rem; margin: 2px 0 12px; }
.lite-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border); border-radius: 16px; overflow: hidden; transition: .25s; }
.lite-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.lite-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--blue-50); overflow: hidden; }
.lite-media img { width: 100%; height: 100%; object-fit: cover; }
.lite-media .badge { position: absolute; left: 12px; top: 12px; }
.lite-pct { position: absolute; right: 12px; top: 12px; background: #e8432e; color: #fff; font-weight: 800; font-size: .85rem; padding: 4px 10px; border-radius: 999px; }
.lite-body { display: grid; gap: 4px; padding: 14px 16px 16px; }
.lite-body strong { color: var(--blue-900); font-size: 1.05rem; }
.lite-body small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lite-price { display: flex; align-items: baseline; gap: 10px; margin-top: 4px; }
.lite-price b { color: var(--blue-600); font-size: 1.35rem; font-family: var(--font-head, inherit); }
.lite-price s { color: var(--muted); font-size: .92rem; }
.lite-meta { color: var(--muted); font-size: .86rem; }
@media (max-width: 900px) { .sel-row { grid-template-columns: 1fr; } }
