/* ═══════════════════════════════════════════════
   CAROUSEL — styles partagés (brand, model, cars)
   ═══════════════════════════════════════════════ */

.carousel-container {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    will-change: transform;
}

.carousel-slide {
    min-width: 100%;
    height: 100%;
    position: relative;
    flex-shrink: 0;
}

.carousel-slide .image {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    display: block;
    overflow: hidden;
}

.carousel-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.carousel-slide img:hover {
    transform: scale(1.03);
}

.car-block-four .image-box {
    height: 220px;
    position: relative;
    overflow: hidden;
}

/* ── Boutons prev / next ── */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.92);
    border: none;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.2s, background 0.2s;
    opacity: 0;
    z-index: 10;
    color: #333;
    box-shadow: 0 2px 6px rgba(0,0,0,.2);
}
.carousel-nav:hover { background: #fff; }
.carousel-prev { left: 8px; }
.carousel-next { right: 8px; }
.image-box:hover .carousel-nav { opacity: 1; }

/* ── Indicateurs (dots) ── */
.carousel-indicators {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    z-index: 10;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: all 0.25s;
    border: none;
    padding: 0;
}
.carousel-dot.active { background: #fff; transform: scale(1.3); }

/* ══════════════════════════════════════════
   LIGHTBOX plein écran
   ══════════════════════════════════════════ */
#lb-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.93);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}
#lb-overlay.active { display: flex; }

#lb-img {
    max-width: 92vw;
    max-height: 82vh;
    object-fit: contain;
    border-radius: 6px;
    box-shadow: 0 8px 40px rgba(0,0,0,.6);
    transition: opacity 0.2s;
    user-select: none;
}

#lb-counter {
    color: rgba(255,255,255,.7);
    font-size: 13px;
    margin-top: 12px;
    letter-spacing: .5px;
}

#lb-title {
    color: rgba(255,255,255,.9);
    font-size: 14px;
    font-weight: 600;
    margin-top: 6px;
}

.lb-btn {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 26px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 100000;
}
.lb-btn:hover { background: rgba(255,255,255,.25); }
#lb-prev { left: 16px; }
#lb-next { right: 16px; }

#lb-close {
    position: fixed;
    top: 16px;
    right: 20px;
    background: rgba(255,255,255,.12);
    border: none;
    color: #fff;
    font-size: 22px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 100000;
    line-height: 1;
}
#lb-close:hover { background: rgba(255,255,255,.25); }

/* Thumbnails en bas */
#lb-thumbs {
    display: flex;
    gap: 6px;
    margin-top: 14px;
    max-width: 92vw;
    overflow-x: auto;
    padding-bottom: 4px;
}
#lb-thumbs img {
    width: 58px;
    height: 42px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    opacity: .5;
    transition: opacity 0.2s, outline 0.2s;
    flex-shrink: 0;
}
#lb-thumbs img.active { opacity: 1; outline: 2px solid #4F86C6; }

@media (max-width: 600px) {
    .lb-btn { width: 40px; height: 40px; font-size: 20px; }
    #lb-prev { left: 6px; }
    #lb-next { right: 6px; }
    #lb-thumbs { display: none; }
}

/* ── Lien "Voir la fiche" — bleu + gras ── */
.car-block-four .inner-box .content-box .btn-box a.details,
.car-block-four .inner-box .content-box .btn-box a.details:link,
.car-block-four .inner-box .content-box .btn-box a.details:visited {
    color: #4F86C6 !important;
    font-weight: 700 !important;
}
.car-block-four .inner-box .content-box .btn-box a.details strong {
    color: #4F86C6 !important;
    font-weight: 700 !important;
}
.car-block-four .inner-box .content-box .btn-box a.details:hover {
    color: #3a6fa8 !important;
}
