/* ═══════════════════════════════════════════════
   BK Hero Slider — Design Premium Boomkartner
   ═══════════════════════════════════════════════ */


.bks-wrap {
    --bks-accent:     #2A5FC8;
    --bks-dark:       #1A3A6B;
    --bks-chrome:     #C0C8D8;
    --bks-h:          85vh;
    --bks-radius:     0px;
    --bks-btn-radius: 50px;
    position: relative;
    width: 100%;
    height: var(--bks-h);
    min-height: 400px;
    border-radius: var(--bks-radius);
    overflow: hidden;
    background: #0D1B2A;
    font-family: inherit;
    user-select: none;
}

/* ── Track & Slides ── */
.bks-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.bks-slide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0;
}
.bks-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

/* ── Transitions ── */

/* Fade */
.bks-slide.bks-trans-fade {
    transition: opacity 1.1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Slide */
.bks-slide.bks-trans-slide {
    transform: translateX(100%);
    transition: transform 0.9s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.9s ease;
    opacity: 1;
}
.bks-slide.bks-trans-slide.active {
    transform: translateX(0);
    opacity: 1;
}
.bks-slide.bks-trans-slide.leaving {
    transform: translateX(-100%);
    opacity: 0;
}

/* Zoom */
.bks-slide.bks-trans-zoom {
    transition: opacity 1.2s ease, transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(1.06);
}
.bks-slide.bks-trans-zoom.active {
    transform: scale(1);
    opacity: 1;
}

/* Curtain */
.bks-slide.bks-trans-curtain {
    clip-path: inset(0 100% 0 0);
    transition: clip-path 1s cubic-bezier(0.77, 0, 0.18, 1), opacity 0.3s;
    opacity: 1;
}
.bks-slide.bks-trans-curtain.active {
    clip-path: inset(0 0% 0 0);
    opacity: 1;
}

/* ── Média ── */
.bks-media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.bks-image {
    background-size: cover;
    background-position: center;
    transition: transform 8s ease;
    transform: scale(1.06);
}
.bks-slide.active .bks-image {
    transform: scale(1);
}
.bks-video {
    object-fit: cover;
}
.bks-placeholder {
    background: linear-gradient(135deg, #0D1B2A, #1A3A6B, #0D1B2A);
    background-size: 400% 400%;
    animation: bksGradAnim 8s ease infinite;
}
@keyframes bksGradAnim {
    0%,100% { background-position: 0% 50%; }
    50%      { background-position: 100% 50%; }
}

/* ── Overlay ── */
.bks-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

/* ── Grain texture ── */
.bks-grain {
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ── Contenu ── */
.bks-content {
    position: absolute;
    inset: 0;
    z-index: 10;
    display: flex;
    padding: clamp(24px, 5vw, 80px);
}

.bks-pos-center-left   { align-items: center; justify-content: flex-start; }
.bks-pos-center-center { align-items: center; justify-content: center; text-align: center; }
.bks-pos-center-right  { align-items: center; justify-content: flex-end; }
.bks-pos-bottom-left   { align-items: flex-end; justify-content: flex-start; padding-bottom: clamp(60px,8vw,120px); }
.bks-pos-bottom-center { align-items: flex-end; justify-content: center; text-align: center; padding-bottom: clamp(60px,8vw,120px); }

.bks-content-inner {
    max-width: 680px;
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.8s ease 0.4s, transform 0.8s cubic-bezier(0.23,1,0.32,1) 0.4s;
}
.bks-slide.active .bks-content-inner {
    opacity: 1;
    transform: translateY(0);
}

/* Pré-titre */
.bks-pretitle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--bks-chrome);
    margin-bottom: 18px;
    opacity: 0;
    transform: translateX(-16px);
    transition: opacity 0.6s ease 0.6s, transform 0.6s ease 0.6s;
}
.bks-slide.active .bks-pretitle { opacity: 1; transform: translateX(0); }
.bks-pretitle-dot {
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--bks-accent);
    flex-shrink: 0;
    animation: bksDotPulse 2s ease-in-out infinite;
}
@keyframes bksDotPulse {
    0%,100% { opacity:1; transform:scale(1); box-shadow: 0 0 0 0 rgba(42,95,200,0.5); }
    50%     { opacity:0.7; transform:scale(0.8); box-shadow: 0 0 0 6px rgba(42,95,200,0); }
}

/* Titre */
.bks-title {
    font-family: inherit;
    font-size: clamp(38px, 6.5vw, 88px);
    font-weight: 900;
    line-height: 0.95;
    text-transform: uppercase;
    letter-spacing: -1px;
    color: #fff;
    margin: 0 0 20px;
    text-shadow: 0 4px 32px rgba(0,0,0,0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.7s ease 0.5s, transform 0.7s cubic-bezier(0.23,1,0.32,1) 0.5s;
}
.bks-slide.active .bks-title { opacity: 1; transform: translateY(0); }

/* Accent sur dernière ligne */
.bks-title em {
    font-style: normal;
    color: var(--bks-accent);
}

/* Sous-titre */
.bks-subtitle {
    font-size: clamp(14px, 1.5vw, 18px);
    font-weight: 300;
    color: var(--bks-chrome);
    line-height: 1.65;
    max-width: 480px;
    margin: 0 0 32px;
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease 0.65s, transform 0.6s ease 0.65s;
}
.bks-slide.active .bks-subtitle { opacity: 1; transform: translateY(0); }

/* Boutons */
.bks-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.6s ease 0.78s, transform 0.6s ease 0.78s;
}
.bks-slide.active .bks-btns { opacity: 1; transform: translateY(0); }

.bks-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 28px;
    border-radius: var(--bks-btn-radius);
    font-family: inherit;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
    white-space: nowrap;
}
.bks-btn:hover { transform: translateY(-3px); text-decoration: none; }

.bks-btn--solid {
    background: var(--bks-accent);
    color: #fff;
    box-shadow: 0 6px 24px rgba(42,95,200,0.4);
}
.bks-btn--solid:hover {
    background: #3a6fd8;
    box-shadow: 0 12px 32px rgba(42,95,200,0.55);
    color: #fff;
}

.bks-btn--outline {
    background: transparent;
    color: #fff;
    border: 2px solid rgba(255,255,255,0.55);
}
.bks-btn--outline:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
    color: #fff;
}

.bks-btn--ghost {
    background: rgba(255,255,255,0.08);
    color: rgba(255,255,255,0.85);
    border: 1.5px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.bks-btn--ghost:hover {
    background: rgba(255,255,255,0.14);
    color: #fff;
    border-color: rgba(255,255,255,0.3);
}

/* ── Barre de progression ── */
.bks-progress {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: rgba(255,255,255,0.1);
    z-index: 20;
}
.bks-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--bks-dark), var(--bks-accent));
    width: 0;
    transform-origin: left;
}
.bks-progress-bar.running {
    animation: bksProgress linear forwards;
}
@keyframes bksProgress {
    from { width: 0%; }
    to   { width: 100%; }
}

/* ── Flèches ── */
.bks-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 20;
    width: 52px; height: 52px;
    border-radius: 50%;
    background: rgba(13,27,42,0.5);
    border: 1.5px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    padding: 0;
    outline: none;
}
.bks-arrow:hover {
    background: var(--bks-accent);
    border-color: var(--bks-accent);
    transform: translateY(-50%) scale(1.08);
}
.bks-prev { left: 24px; }
.bks-next { right: 24px; }
.bks-arrow svg { display: block; }

/* ── Dots ── */
.bks-dots {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    display: flex;
    gap: 8px;
    align-items: center;
}
.bks-dot {
    width: 8px; height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    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;
}
.bks-dot.active {
    background: #fff;
    width: 28px;
    border-radius: 4px;
}
.bks-dot:hover:not(.active) { background: rgba(255,255,255,0.6); }

/* ── Compteur ── */
.bks-counter {
    position: absolute;
    top: 28px;
    right: 28px;
    z-index: 20;
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-family: inherit;
}
.bks-ctr-cur {
    font-size: 36px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}
.bks-ctr-sep {
    font-size: 14px;
    color: rgba(255,255,255,0.35);
    margin: 0 2px;
}
.bks-ctr-tot {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255,255,255,0.45);
}

/* ── Scroll hint ── */
.bks-scroll-hint {
    position: absolute;
    bottom: 28px;
    right: 28px;
    z-index: 20;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.3);
}
.bks-scroll-line {
    width: 1px;
    height: 40px;
    background: linear-gradient(to bottom, transparent, rgba(255,255,255,0.4));
    position: relative;
    overflow: hidden;
}
.bks-scroll-line::after {
    content: '';
    position: absolute;
    top: -100%;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    animation: bksScrollAnim 2s ease-in-out infinite;
}
@keyframes bksScrollAnim {
    0%   { top: -100%; opacity: 1; }
    100% { top: 200%;  opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .bks-prev { left: 14px; }
    .bks-next { right: 14px; }
    .bks-arrow { width: 44px; height: 44px; }
    .bks-counter { top: 16px; right: 16px; }
    .bks-ctr-cur { font-size: 28px; }
    .bks-scroll-hint { display: none; }
    .bks-wrap { height: 70vh !important; }
}
@media (max-width: 600px) {
    .bks-wrap { height: var(--bks-h-mob, 560px) !important; min-height: 420px; }
    .bks-content {
        padding: 20px 20px 72px;
        align-items: flex-end !important;
        justify-content: flex-start !important;
    }
    .bks-content-inner { max-width: 100%; }
    .bks-btns { gap: 8px; flex-wrap: wrap; }
    .bks-btn { padding: 11px 18px; font-size: 11px; letter-spacing: 1px; }
    .bks-arrow { width: 38px; height: 38px; }
    .bks-arrow svg { width: 18px; height: 18px; }
    .bks-prev { left: 10px; }
    .bks-next { right: 10px; }
    .bks-counter { display: none; }
    .bks-dots { bottom: 18px; }
    .bks-title { font-size: clamp(32px, 10vw, 52px); margin-bottom: 12px; }
    .bks-subtitle { font-size: 14px; margin-bottom: 20px; }
    .bks-pretitle { font-size: 10px; letter-spacing: 3px; margin-bottom: 12px; }
}
