/* BK Galerie — Design Premium Boomkartner */
.bkg-wrap {
    --bkg-accent:   #2A5FC8;
    --bkg-btn-bg:   #1A3A6B;
    --bkg-btn-col:  #ffffff;
    --bkg-radius:   12px;
    --bkg-gap:      12px;
    --bkg-h:        380px;
    position: relative;
    width: 100%;
    user-select: none;
}

/* ── Viewport ── */
.bkg-viewport {
    overflow: hidden;
    border-radius: calc(var(--bkg-radius) + 4px);
    width: 100%;
}

/* ── Track ── */
.bkg-track {
    display: flex;
    gap: var(--bkg-gap);
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
    cursor: grab;
}
.bkg-track.dragging {
    transition: none;
    cursor: grabbing;
}

/* ── Slide ── */
.bkg-slide {
    flex-shrink: 0;
    position: relative;
    border-radius: var(--bkg-radius);
    overflow: hidden;
    background: #0d1b2a;
    height: var(--bkg-h);
}
.bkg-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
    transition: transform 0.4s ease, filter 0.3s ease;
}
.bkg-slide:hover img {
    transform: scale(1.04);
    filter: brightness(1.06);
}

/* Overlay zoom */
.bkg-zoom {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13,27,42,0.65) 0%, transparent 50%);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 20px;
    opacity: 0;
    transition: opacity 0.3s;
    cursor: zoom-in;
}
.bkg-slide:hover .bkg-zoom { opacity: 1; }
.bkg-zoom svg {
    width: 44px; height: 44px;
    padding: 10px;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border: 1.5px solid rgba(255,255,255,0.3);
    transform: scale(0.7) translateY(8px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.bkg-slide:hover .bkg-zoom svg { transform: scale(1) translateY(0); }

/* ── Barre de navigation ── */
.bkg-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 18px;
}

/* ── Flèches ── */
.bkg-arrow {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--bkg-btn-bg);
    border: 2px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 16px rgba(13,27,42,0.25);
    padding: 0;
    outline: none;
}
.bkg-arrow:hover {
    background: var(--bkg-accent);
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(42,95,200,0.35);
}
.bkg-arrow:active { transform: scale(0.95); }
.bkg-arrow:disabled { opacity: 0.3; cursor: not-allowed; transform: none; }
.bkg-arrow svg { display: block; flex-shrink: 0; }

/* ── Dots ── */
.bkg-dots {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    justify-content: center;
    max-width: calc(100% - 120px);
}
.bkg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(26,58,107,0.2);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s, width 0.3s cubic-bezier(0.34,1.56,0.64,1), border-radius 0.3s;
    flex-shrink: 0;
}
.bkg-dot.active {
    background: var(--bkg-accent);
    width: 24px;
    border-radius: 4px;
}
.bkg-dot:hover:not(.active) { background: rgba(42,95,200,0.4); }

/* ── Compteur ── */
.bkg-counter {
    position: absolute;
    bottom: 60px;
    right: 14px;
    background: rgba(13,27,42,0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
    padding: 4px 10px;
    border-radius: 20px;
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    pointer-events: none;
}

/* ── Lightbox ── */
.bkg-lb {
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(5, 10, 20, 0.96);
    display: flex !important;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
.bkg-lb.open {
    opacity: 1;
    pointer-events: all;
}
.bkg-lb-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 30px 90px rgba(0,0,0,0.8);
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.bkg-lb-img.changing { opacity: 0; transform: scale(0.97); }

.bkg-lb-close {
    position: fixed;
    top: 20px; right: 20px;
    width: 48px; height: 48px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.25s;
    z-index: 2;
    padding: 0;
}
.bkg-lb-close:hover { background: rgba(255,255,255,0.2); transform: rotate(90deg); }
.bkg-lb-close svg { display: block; }

.bkg-lb-arrow {
    position: fixed;
    top: 50%; transform: translateY(-50%);
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    border: 1.5px solid rgba(255,255,255,0.2);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
    z-index: 2;
    padding: 0;
}
.bkg-lb-arrow:hover { background: rgba(255,255,255,0.2); }
.bkg-lb-prev { left: 20px; }
.bkg-lb-next { right: 20px; }
.bkg-lb-arrow svg { display: block; }

.bkg-lb-counter {
    position: fixed;
    bottom: 24px; left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 2px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .bkg-lb-prev { left: 10px; }
    .bkg-lb-next { right: 10px; }
    .bkg-lb-arrow { width: 42px; height: 42px; }
}
@media (max-width: 600px) {
    .bkg-arrow { width: 38px; height: 38px; }
    .bkg-arrow svg { width: 17px; height: 17px; }
    .bkg-nav { gap: 10px; margin-top: 14px; }
    .bkg-lb-img { max-width: 95vw; max-height: 80vh; }
    .bkg-lb-arrow { width: 36px; height: 36px; }
    .bkg-lb-prev { left: 6px; }
    .bkg-lb-next { right: 6px; }
    .bkg-counter { bottom: 56px; }
}
