/* ===========================================================
   BJL · Hero Slide
   =========================================================== */
.bjl-hero-wrap{
    position:relative;
    width:100%;
    overflow:hidden;
    isolation:isolate;
}
.bjl-hero-track{ position:relative; width:100%; }

.bjl-hero-slide{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    display:flex;
    overflow:hidden;
    opacity:0;
    visibility:hidden;
    transition:opacity .9s ease;
    z-index:1;
}
.bjl-hero-slide:first-child{ position:relative; height:auto; }
.bjl-hero-slide.is-active{
    opacity:1;
    visibility:visible;
    z-index:2;
}

/* Background */
.bjl-hero-bg{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    background-size:cover;
    background-position:center;
    z-index:0;
    transform:scale(1.06);
    transform-origin:center center;
    backface-visibility:hidden;
}
.bjl-hero-slide.is-active .bjl-hero-bg.bjl-kenburns{
    animation:bjlKenburns 9s ease-out forwards;
}
@keyframes bjlKenburns{
    from{ transform:scale(1.06); }
    to{ transform:scale(1.18); }
}

/* Background vidéo */
.bjl-hero-video-wrap{
    position:absolute;
    inset:0;
    z-index:0;
    overflow:hidden;
}
.bjl-hero-video{
    position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    min-width:100%;
    min-height:100%;
    width:auto;
    height:auto;
    object-fit:cover;
}
.bjl-hero-video-poster{
    position:absolute;
    inset:0;
    background-size:cover;
    background-position:center;
    opacity:0;
    transition:opacity .4s ease;
    pointer-events:none;
}
/* Sur mobile, si vidéos désactivées : on masque la vidéo et on montre le poster */
.bjl-hero-wrap[data-video-mobile-off="1"] .bjl-no-video .bjl-hero-video{ display:none; }
.bjl-hero-wrap[data-video-mobile-off="1"] .bjl-no-video .bjl-hero-video-poster{ opacity:1; }

.bjl-hero-overlay{
    position:absolute;
    inset:0;
    width:100%;
    height:100%;
    z-index:1;
    background:linear-gradient(105deg, rgba(31,30,143,0.78), rgba(10,10,30,0.55));
    pointer-events:none;
}

.bjl-hero-slide-inner{
    position:relative;
    z-index:2;
    width:100%;
    max-width:1200px;
    margin:0 auto;
    padding:64px 24px;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:flex-start;
}

.bjl-hero-content{
    max-width:720px;
    text-align:left;
    animation:bjlFadeUp .8s ease both;
}
.bjl-hero-slide.is-active .bjl-hero-content{ animation:bjlFadeUp .8s ease both; }
@keyframes bjlFadeUp{
    from{ opacity:0; transform:translateY(26px); }
    to{ opacity:1; transform:translateY(0); }
}

.bjl-hero-eyebrow{
    display:inline-block;
    padding:7px 16px;
    border-radius:50px;
    font-size:13px;
    font-weight:700;
    letter-spacing:.12em;
    text-transform:uppercase;
    color:#ff6301;
    background:rgba(255,99,1,0.14);
    margin-bottom:18px;
    backdrop-filter:blur(4px);
}

.bjl-hero-title{
    color:#fff;
    font-size:clamp(2rem, 4.4vw, 3.6rem);
    font-weight:800;
    line-height:1.1;
    margin:0 0 18px;
}

.bjl-hero-subtitle{
    color:rgba(255,255,255,0.92);
    font-size:clamp(1rem, 1.4vw, 1.18rem);
    line-height:1.6;
    margin:0 0 32px;
}

.bjl-hero-actions{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
}

.bjl-hero-btn{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:16px 32px;
    border-radius:10px;
    font-size:15px;
    font-weight:700;
    text-decoration:none;
    border:2px solid transparent;
    cursor:pointer;
    transition:transform .25s ease, background .3s ease, color .3s ease, border-color .3s ease, box-shadow .3s ease;
    will-change:transform;
}
.bjl-hero-btn-1{
    color:#fff;
    background:linear-gradient(135deg, #ff6301, #ff8a3d);
    box-shadow:0 10px 26px rgba(255,99,1,0.32);
}
.bjl-hero-btn-1:hover{ transform:translateY(-3px); box-shadow:0 14px 32px rgba(255,99,1,0.42); }
.bjl-hero-btn-2{
    color:#fff;
    background:rgba(255,255,255,0.12);
    border-color:rgba(255,255,255,0.55);
    backdrop-filter:blur(6px);
}
.bjl-hero-btn-2:hover{ transform:translateY(-3px); }
.bjl-hero-btn-3{
    color:#fff;
    background:#ff6301;
    border-color:#ff6301;
}
.bjl-hero-btn-3:hover{ transform:translateY(-3px); background:#ff8a3d; border-color:#ff8a3d; }

/* Arrows */
.bjl-hero-arrow{
    position:absolute;
    top:50%;
    transform:translateY(-50%);
    z-index:50;
    width:52px;
    height:52px;
    border:none;
    border-radius:50%;
    display:flex !important;
    align-items:center;
    justify-content:center;
    color:#fff;
    background:rgba(31,30,143,0.55);
    backdrop-filter:blur(6px);
    cursor:pointer;
    opacity:1;
    visibility:visible;
    transition:background .3s ease, transform .25s ease;
}
.bjl-hero-arrow:hover{ background:#ff6301; transform:translateY(-50%) scale(1.06); }
.bjl-hero-prev{ left:24px; }
.bjl-hero-next{ right:24px; }

/* Dots */
.bjl-hero-dots{
    position:absolute;
    bottom:26px;
    left:50%;
    transform:translateX(-50%);
    z-index:50;
    display:flex !important;
    gap:10px;
    opacity:1;
    visibility:visible;
}
.bjl-hero-dot{
    width:12px;
    height:12px;
    border:none;
    border-radius:50%;
    padding:0;
    background:rgba(255,255,255,0.6);
    cursor:pointer;
    transition:background .3s ease, width .3s ease;
}
.bjl-hero-dot.is-active{
    background:#ff6301;
    width:30px;
    border-radius:50px;
}

/* Responsive */

/* Très grands écrans : on plafonne la hauteur pour que le contenu
   (et le badge orange) ne colle pas à la barre de menu, et on évite
   le grand vide en bas. */
@media (min-width:1600px){
    .bjl-hero-slide{ max-height:760px; }
    .bjl-hero-slide-inner{ padding-top:48px; padding-bottom:48px; }
}

@media (max-width:1024px){
    .bjl-hero-arrow{ width:46px; height:46px; }
    .bjl-hero-prev{ left:14px; }
    .bjl-hero-next{ right:14px; }
    .bjl-hero-slide-inner{ padding:48px 24px; }
}

@media (max-width:767px){
    /* Hauteur fondée sur le contenu (plus de grand vide haut/bas) */
    .bjl-hero-slide{ min-height:0 !important; max-height:none; }
    .bjl-hero-slide-inner{ padding:48px 20px 60px; min-height:auto; }
    .bjl-hero-actions{ flex-direction:column; align-items:stretch; }
    .bjl-hero-btn{ width:100%; }
    .bjl-hero-arrow{ display:none; }
    .bjl-hero-dots{ bottom:16px; }
    .bjl-hero-title{ margin-bottom:14px; }
    .bjl-hero-subtitle{ margin-bottom:24px; }
    .bjl-hero-eyebrow{ margin-bottom:14px; }
}
