@charset "UTF-8";
/* =====================================================================
   Fiche véhicule — gabarit 2026 (Financement.aspx)
   Galerie + caractéristiques + description à gauche ; prix, disponibilité,
   demande d'information et actions dans une colonne collante à droite ;
   véhicules similaires en bas.
   ===================================================================== */
.vd-page {
    --vd-accent: var(--primary, #0088cc);
    --vd-ink: #111827;
    --vd-text: #374151;
    --vd-muted: #6b7280;
    --vd-line: #e5e7eb;
    --vd-soft: #f6f7f9;
    background: var(--vd-soft);
    padding-bottom: 3rem;
}

.vd {
    padding-top: 1.25rem;
}

/* ----- Fil d'Ariane et titre ----- */
.vd-crumbs {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
    font-size: .82rem;
    color: var(--vd-muted);
    margin-bottom: .75rem;
}

    .vd-crumbs a {
        color: var(--vd-muted);
        text-decoration: none;
    }

        .vd-crumbs a:hover {
            color: var(--vd-accent);
        }

    .vd-crumbs [aria-current] {
        color: var(--vd-ink);
        font-weight: 500;
    }

.vd-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.vd-title {
    font-size: clamp(1.4rem, 3vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    color: var(--vd-ink);
    margin: 0 0 .3rem;
    text-transform: uppercase;
    letter-spacing: -.01em;
    overflow-wrap: anywhere;
}

.vd-page p.vd-subtitle {
    color: var(--vd-muted) !important; /* le thème impose p { color: black !important } */
    margin: 0;
    font-size: .95rem;
}

.vd-brand {
    max-height: 48px;
    max-width: 140px;
    width: auto;
    object-fit: contain;
    flex: 0 0 auto;
}

/* ----- Mise en page à deux colonnes ----- */
.vd-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 1.5rem;
    align-items: start;
}

/* minmax(0, 1fr) + min-width: 0 : sans eux, une longue bande de miniatures
   (12 photos ≈ 1 200 px) élargit la colonne, qui passe par-dessus la colonne du prix. */
.vd-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    min-width: 0;
}

    .vd-main > *,
    .vd-side > * {
        min-width: 0;
    }

.vd-gallery,
.vd-stage,
.vd-thumbs {
    max-width: 100%;
}

/* Description en texte brut (NOTE_FR.txt) : on garde ses retours à la ligne. */
.vd-desc-body > .is-plain {
    white-space: pre-line;
}

.vd-side {
    display: grid;
    gap: 1rem;
}

/* ----- Cartes ----- */
.vd-card {
    background: #fff;
    border: 1px solid var(--vd-line);
    border-radius: 12px;
    padding: 1.25rem 1.5rem;
}

.vd-card-title {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vd-ink);
    margin: 0 0 1rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--vd-line);
    line-height: 1.3;
}

/* ----- Galerie ----- */
.vd-gallery {
    background: #fff;
    border: 1px solid var(--vd-line);
    border-radius: 12px;
    padding: .75rem;
}

.vd-stage {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #eef0f3;
    border-radius: 8px;
    overflow: hidden;
}

.vd-stage-link {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.vd-stage-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.vd-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 0;
    background: rgba(17,24,39,.6);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: background .15s ease;
}

    .vd-nav:hover {
        background: rgba(17,24,39,.85);
    }

.vd-prev { left: .75rem; }
.vd-next { right: .75rem; }

.vd-count {
    position: absolute;
    right: .75rem;
    bottom: .75rem;
    background: rgba(17,24,39,.7);
    color: #fff;
    font-size: .78rem;
    font-weight: 600;
    padding: .2rem .6rem;
    border-radius: 999px;
}

.vd-gallery.is-single .vd-nav,
.vd-gallery.is-single .vd-count,
.vd-gallery.is-single .vd-thumbs {
    display: none;
}

.vd-thumbs {
    display: flex;
    gap: .5rem;
    margin-top: .6rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: .25rem;
}

.vd-thumb {
    flex: 0 0 96px;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    background: #eef0f3;
    cursor: pointer;
    scroll-snap-align: start;
    opacity: .7;
    transition: opacity .15s ease, border-color .15s ease;
}

    .vd-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .vd-thumb:hover,
    .vd-thumb.is-active {
        opacity: 1;
    }

    .vd-thumb.is-active {
        border-color: var(--vd-accent);
    }

.vd-page button:focus-visible,
.vd-page a:focus-visible {
    outline: 2px solid var(--vd-accent);
    outline-offset: 2px;
}

/* ----- Caractéristiques : tableau clé / valeur sur deux colonnes ----- */
.vd-specs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
    margin: 0;
}

.vd-spec {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: .6rem 0;
    border-bottom: 1px solid var(--vd-line);
    font-size: .9rem;
}

    .vd-spec dt {
        font-weight: 500;
        color: var(--vd-muted);
        margin: 0;
    }

    .vd-spec dd {
        font-weight: 600;
        color: var(--vd-ink);
        margin: 0;
        text-align: right;
        overflow-wrap: anywhere;
    }

/* ----- Description (masquée si les fichiers sont vides) ----- */
.vd-desc:not(:has(.vd-desc-body > div:not(:empty))) {
    display: none;
}

.vd-desc-body {
    color: var(--vd-text);
    font-size: .95rem;
    line-height: 1.7;
}

    .vd-page .vd-desc-body p {
        color: var(--vd-text) !important;
    }

    .vd-desc-body iframe {
        max-width: 100%;
        border: 0;
        border-radius: 8px;
    }

/* ----- Pourquoi acheter chez nous ----- */
.vd-why {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 1.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .vd-why li {
        display: flex;
        gap: .75rem;
        align-items: flex-start;
    }

    .vd-why i {
        flex: 0 0 36px;
        height: 36px;
        border-radius: 50%;
        display: grid;
        place-items: center;
        background: #e8f4fb;
        color: var(--vd-accent);
    }

    .vd-why span {
        font-size: .85rem;
        color: var(--vd-muted);
        line-height: 1.45;
    }

    .vd-why strong {
        display: block;
        color: var(--vd-ink);
        font-size: .92rem;
    }

/* ----- Colonne de décision ----- */
.vd-price-card {
    border-top: 4px solid var(--vd-accent);
}

.vd-price-label {
    display: block;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--vd-muted);
}

.vd-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .6rem;
    margin: .15rem 0 .6rem;
}

.vd-price-now {
    font-size: 2.1rem;
    font-weight: 800;
    color: var(--vd-ink);
    line-height: 1.1;
}

.vd-price-was {
    font-size: 1rem;
    color: var(--vd-muted);
}

.vd-badges {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem;
}

    .vd-badges .unit-dispo,
    .vd-badges .unit-saving {
        font-size: .82rem;
    }

.vd-page a.vd-payment {
    display: block;
    margin-top: .9rem;
    padding: .6rem .75rem;
    border-radius: 8px;
    background: #e8f4fb;
    color: var(--vd-ink);
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none;
}

    .vd-page a.vd-payment:hover {
        background: #d6ecf8;
    }

/* Formulaire */
.vd-form-card .vd-card-title {
    margin-bottom: .4rem;
    border-bottom: 0;
    padding-bottom: 0;
}

.vd-page p.vd-form-intro {
    font-size: .85rem;
    color: var(--vd-muted) !important;
    margin: 0 0 1rem;
    line-height: 1.5;
}

.vd-form {
    display: grid;
    gap: .7rem;
}

.vd-field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .7rem;
}

.vd-field {
    display: grid;
    gap: .25rem;
    margin: 0;
}

    .vd-field > span {
        font-size: .8rem;
        font-weight: 600;
        color: var(--vd-text);
    }

    .vd-field input,
    .vd-field textarea {
        width: 100%;
        border: 1px solid #d1d5db;
        border-radius: 8px;
        padding: .6rem .75rem;
        font-size: .92rem;
        color: var(--vd-ink);
        background: #fff;
        transition: border-color .15s ease, box-shadow .15s ease;
    }

        .vd-field input:focus,
        .vd-field textarea:focus {
            outline: 0;
            border-color: var(--vd-accent);
            box-shadow: 0 0 0 3px rgba(0,136,204,.18);
        }

.vd-page p.vd-legal {
    font-size: .75rem;
    color: var(--vd-muted) !important;
    margin: 0;
    text-align: center;
}

.vd-confirm {
    text-align: center;
    padding: .5rem 0;
}

    .vd-confirm i {
        font-size: 2rem;
        color: #146c2e;
        display: block;
        margin-bottom: .4rem;
    }

    .vd-confirm strong {
        font-size: 1.1rem;
        color: var(--vd-ink);
    }

    .vd-page .vd-confirm p {
        color: var(--vd-muted) !important;
        margin: .4rem 0 0;
        font-size: .9rem;
    }

/* Boutons */
.vd-actions {
    display: grid;
    gap: .5rem;
}

.vd-page a.vd-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .55rem;
    padding: .8rem 1rem;
    border-radius: 8px;
    font-size: .92rem;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid transparent;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
    text-align: center;
}

.vd-btn-block {
    width: 100%;
}

.vd-page a.vd-btn-primary {
    background: var(--vd-accent);
    color: #fff;
}

    .vd-page a.vd-btn-primary:hover {
        filter: brightness(1.08);
        color: #fff;
    }

.vd-page a.vd-btn-dark {
    background: var(--vd-ink);
    color: #fff;
}

    .vd-page a.vd-btn-dark:hover {
        background: var(--vd-accent);
        color: #fff;
    }

.vd-page a.vd-btn-outline {
    background: #fff;
    border-color: #d1d5db;
    color: var(--vd-ink);
}

    .vd-page a.vd-btn-outline:hover {
        border-color: var(--vd-ink);
    }

/* ----- Calculateur (section existante sous la fiche) ----- */
.vd-page .calculator-section {
    background: #fff;
    border-radius: 12px;
    padding: 1.5rem;
}

.vd-page #showseicalcul {
    scroll-margin-top: 130px;
}

.vd-page #showseiweb {
    scroll-margin-top: 140px;
}

/* ----- Véhicules similaires ----- */
.vd-similar {
    margin-top: 2.5rem;
}

.vd-similar-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

    .vd-similar-head a {
        font-weight: 600;
        font-size: .9rem;
        color: var(--vd-accent);
        text-decoration: none;
    }

.vd-section-title {
    font-size: 1.25rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .03em;
    color: var(--vd-ink);
    margin: 0;
}

.vd-similar-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

/* ----- Erreur ----- */
.vd-error {
    padding: 4rem 1rem;
    text-align: center;
}

/* ----- Responsive ----- */
@media (max-width: 1199.98px) {
    .vd-layout {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .vd-similar-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 991.98px) {
    .vd-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    /* Sur mobile : galerie, puis prix et demande, puis le détail. */
    .vd-main,
    .vd-side {
        display: contents;
    }

    .vd-layout > .vd-main > .vd-gallery { order: 1; }
    .vd-layout > .vd-side > .vd-price-card { order: 2; }
    .vd-layout > .vd-side > .vd-actions { order: 3; }
    .vd-layout > .vd-main > section:not(.vd-gallery) { order: 4; }
    .vd-layout > .vd-side > .vd-form-card { order: 5; }

    .vd-side {
        position: static;
    }
}

@media (max-width: 575.98px) {
    .vd-card {
        padding: 1rem;
    }

    .vd-specs,
    .vd-why,
    .vd-field-row {
        grid-template-columns: 1fr;
    }

    .vd-similar-grid {
        grid-template-columns: 1fr;
    }

    .vd-brand {
        display: none;
    }

    .vd-thumb {
        flex-basis: 76px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vd-page * {
        transition: none !important;
    }
}
