/* ===== BK Hero Panels v5 — Couleurs Boomkartner ===== */
.bk-hero-v2 {
    --bk-accent:   #2A5FC8;
    --bk-row-h:    50vh;
    --bk-gap:      8px;
    --bk-radius:   30px;
    --bk-bg:       transparent;
    --bk-cta-bg:   #2A5FC8;
    --bk-c-title:  #FFFFFF;
    --bk-c-sub:    #C0C8D8;
    --bk-c-label:  #FFFFFF;
    --bk-c-icon:   #4A7FCC;

    display: flex;
    flex-direction: column;
    width: 100%;
    font-family: inherit;
    box-sizing: border-box;
}

/* ── Rangées ── */
.bk-hp-row {
    display: flex;
    height: var(--bk-row-h);
    min-height: 200px;
}
.bk-hp-row--2 { border-top: none; }

/* ── Panel ── */
.bk-hp-panel {
    position: relative;
    flex: 1 1 0;
    background-size: cover;
    background-position: center;
    cursor: pointer;
    transition: flex 0.55s cubic-bezier(0.77, 0, 0.175, 1);
    overflow: hidden;
    outline: none;
    box-shadow: 0 2px 8px rgba(0,0,0,0.18);
}
.bk-hp-panel:hover { flex: 2.8 1 0; }

/* Ligne accent gauche au hover */
.bk-hp-panel::before {
    content: '';
    position: absolute;
    top: 10px; bottom: 10px; left: 0;
    width: 4px;
    background: var(--bk-accent);
    border-radius: 0 3px 3px 0;
    z-index: 5;
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.35s ease;
}
.bk-hp-panel:hover::before { transform: scaleY(1); }

/* ── Overlay ── */
.bk-hp-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(13, 27, 42, 0.85) 0%,
        rgba(13, 27, 42, 0.30) 45%,
        rgba(13, 27, 42, 0.08) 100%
    );
    transition: background 0.4s;
}
.bk-hp-panel:hover .bk-hp-overlay {
    background: linear-gradient(
        to top,
        rgba(13, 27, 42, 0.92) 0%,
        rgba(13, 27, 42, 0.40) 50%,
        rgba(13, 27, 42, 0.10) 100%
    );
}

/* ── Contenu panneau 1 (titre + CTA) ── */
.bk-hp-content {
    position: absolute;
    bottom: 40px;
    left: 32px;
    max-width: 400px;
    z-index: 4;
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.42s 0.12s ease, transform 0.42s 0.12s ease;
    pointer-events: none;
}
.bk-hp-panel:hover .bk-hp-content,
.bk-hp-hero.bk-hp-content-visible .bk-hp-content {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Tag géo */
.bk-hp-tag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bk-c-sub);
    margin-bottom: 12px;
}
.bk-hp-tag-dot {
    width: 6px; height: 6px;
    background: var(--bk-accent);
    border-radius: 50%;
    flex-shrink: 0;
    animation: bkDotPulse 2s infinite;
}
@keyframes bkDotPulse {
    0%,100%{ opacity:1; transform:scale(1); }
    50%    { opacity:0.4; transform:scale(0.6); }
}

/* Titre */
.bk-hp-title {
    font-family: 'Barlow Condensed', 'Oswald', 'Impact', sans-serif;
    font-size: clamp(28px, 3.2vw, 56px);
    font-weight: 900;
    color: var(--bk-c-title);
    line-height: 1.0;
    margin: 0 0 12px;
    text-transform: uppercase;
    letter-spacing: -0.5px;
}
.bk-hp-accent { color: var(--bk-accent); }

/* Sous-titre */
.bk-hp-sub {
    color: var(--bk-c-sub);
    font-size: 13px;
    line-height: 1.65;
    margin: 0 0 22px;
    font-weight: 300;
    max-width: 320px;
}

/* Bouton CTA */
.bk-hp-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--bk-cta-bg);
    color: #fff;
    text-decoration: none;
    padding: 11px 22px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid var(--bk-cta-bg);
    border-radius: 30px;
    transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.bk-hp-btn-primary:hover {
    background: transparent;
    color: #fff;
    border-color: #fff;
}

/* ── HOVER CTA — visible uniquement au hover sur desktop ── */
.bk-hp-hover-cta {
    display: none;
    z-index: 6;
}

/* MOBILE ROW — masqué sur desktop */
.bk-hp-mobile-row { display: none !important; }

/* ── Label + icône en bas ── */
.bk-hp-label-wrap {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px 18px;
    background: linear-gradient(to top, rgba(13,27,42,0.75), transparent);
    z-index: 4;
    transition: opacity 0.3s, transform 0.3s;
}

/* Au hover : cache le label bas et montre le CTA à la place */
.bk-hp-panel:not(.bk-hp-hero):hover .bk-hp-label-wrap {
    opacity: 0;
    transform: translateY(6px);
    pointer-events: none;
}
.bk-hp-hero:hover .bk-hp-label-wrap {
    opacity: 0;
    pointer-events: none;
}

/* CTA qui apparaît au hover (panneau non-hero) */
.bk-hp-panel:not(.bk-hp-hero):hover .bk-hp-hover-cta {
    display: flex !important;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    position: absolute;
    bottom: 28px;
    left: 20px;
    right: 20px;
    z-index: 6;
    animation: bkFadeUp 0.3s ease both;
}

@keyframes bkFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

.bk-hp-hover-cta .bk-hp-lbl-icon {
    font-size: 32px !important;
    color: #fff !important;
    transform: none !important;
    filter: drop-shadow(0 3px 8px rgba(0,0,0,0.5));
}

.bk-hp-hover-cta strong {
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    font-family: 'Barlow Condensed','Oswald',sans-serif;
    display: block;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.bk-hp-hover-cta a {
    display: inline-block;
    background: var(--bk-cta-bg);
    color: #fff;
    text-decoration: none;
    padding: 9px 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    border: 2px solid var(--bk-cta-bg);
    border-radius: 30px;
    transition: background 0.2s, color 0.2s;
}
.bk-hp-hover-cta a:hover {
    background: transparent;
    border-color: #fff;
    color: #fff;
}

/* Icône FA */
.bk-hp-lbl-icon {
    font-size: 22px;
    color: var(--bk-c-icon);
    display: block;
    line-height: 1;
    transition: color 0.25s, transform 0.25s;
    filter: drop-shadow(0 1px 4px rgba(0,0,0,0.5));
}
.bk-hp-panel:hover .bk-hp-lbl-icon {
    color: #fff;
    transform: scale(1.12);
}

/* Label texte */
.bk-hp-lbl-text {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: var(--bk-c-label);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    padding: 0 4px;
    text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    opacity: 0.85;
    transition: opacity 0.25s;
}
.bk-hp-panel:hover .bk-hp-lbl-text { opacity: 1; }

/* ══════════════════════════════
   RESPONSIVE
══════════════════════════════ */
@media (max-width: 900px) {
    .bk-hero-v2 .bk-hp-panel:hover { flex: 2.4 1 0; }
}

@media (max-width: 700px) {
    .bk-hero-v2 {
        display: flex !important;
        flex-direction: column !important;
        gap: var(--bk-gap, 8px) !important;
        padding: var(--bk-gap, 8px) !important;
    }

    .bk-hero-v2 .bk-hp-row,
    .bk-hero-v2 .bk-hp-row--2 {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        width: 100% !important;
        gap: var(--bk-gap, 8px) !important;
        border-top: none !important;
    }

    .bk-hero-v2 .bk-hp-panel {
        flex: none !important;
        width: 100% !important;
        height: 160px !important;
        min-height: 140px !important;
    }

    .bk-hero-v2 .bk-hp-hero { height: 260px !important; }

    .bk-hero-v2 .bk-hp-hero .bk-hp-content {
        opacity: 1 !important;
        transform: none !important;
        pointer-events: auto !important;
        bottom: 22px; left: 20px; right: 16px; max-width: 100%;
    }

    /* Sur mobile : cacher label desktop, afficher mobile-row */
    .bk-hero-v2 .bk-hp-panel .bk-hp-label-wrap    { display: none !important; }
    .bk-hero-v2 .bk-hp-hero .bk-hp-label-wrap      { display: none !important; }
    .bk-hero-v2 .bk-hp-panel:hover                 { flex: none !important; }
    .bk-hero-v2 .bk-hp-panel::before               { display: none !important; }

    /* Masquer hover-cta sur mobile — override même le hover */
    .bk-hero-v2 .bk-hp-hover-cta,
    .bk-hero-v2 .bk-hp-panel:hover .bk-hp-hover-cta,
    .bk-hero-v2 .bk-hp-panel:not(.bk-hp-hero):hover .bk-hp-hover-cta {
        display: none !important;
        opacity: 0 !important;
        pointer-events: none !important;
        visibility: hidden !important;
    }

    /* Afficher le mobile-row sur mobile */
    .bk-hero-v2 .bk-hp-panel:not(.bk-hp-hero) .bk-hp-mobile-row {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        position: absolute !important;
        bottom: 0 !important; left: 0 !important; right: 0 !important;
        padding: 12px 14px 16px !important;
        background: linear-gradient(to top, rgba(13,27,42,0.88), transparent) !important;
        z-index: 4 !important;
    }

    .bk-hero-v2 .bk-hp-mobile-left {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        flex: 1 !important;
        min-width: 0 !important;
    }

    .bk-hero-v2 .bk-hp-mobile-left .bk-hp-lbl-icon {
        font-size: 20px !important;
        color: var(--bk-c-icon, #4A7FCC) !important;
        flex-shrink: 0 !important;
    }

    .bk-hero-v2 .bk-hp-mobile-left .bk-hp-lbl-text {
        font-size: 11px !important;
        font-weight: 700 !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        color: #fff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .bk-hero-v2 .bk-hp-mobile-btn {
        display: inline-block !important;
        background: var(--bk-cta-bg, #2A5FC8) !important;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        letter-spacing: 0.8px !important;
        text-transform: uppercase !important;
        padding: 7px 12px !important;
        border-radius: 30px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        border: 2px solid var(--bk-cta-bg, #2A5FC8) !important;
    }

    .bk-hero-v2 .bk-hp-title { font-size: clamp(22px, 6vw, 34px); }
    .bk-hero-v2 .bk-hp-sub   { font-size: 12px; margin-bottom: 14px; }
}

@media (max-width: 420px) {
    .bk-hero-v2 .bk-hp-hero  { height: 230px !important; }
    .bk-hero-v2 .bk-hp-panel { height: 140px !important; }
    .bk-hero-v2 .bk-hp-title { font-size: 20px; }
    .bk-hero-v2 .bk-hp-sub   { display: none; }
    .bk-hero-v2 .bk-hp-btn-primary { padding: 9px 16px; font-size: 11px; }
    .bk-hero-v2 .bk-hp-mobile-left .bk-hp-lbl-text { font-size: 10px !important; }
    .bk-hero-v2 .bk-hp-mobile-btn { font-size: 9px !important; padding: 6px 10px !important; }
}
