/* --- Styles de base du Slider --- */
.header-slider {
    position: relative;
    line-height: 0;
    /* Assure-toi qu'il n'y a pas de débordement caché qui coupe les éléments */
    overflow: hidden; 
}
.header-sliderslides {
    width: 100%;
    position: relative;
}
.header-sliderslides .header-sliderslide {
    width: 100%;
    position: relative;
}
.header-sliderslide .owl-carousel .owl-stage {
    display: flex;
}
.header-sliderslide .owl-stage-outer {
    width: 100%;
    position: relative;
    overflow: hidden; /* Important pour Owl */
}
.header-sliderslide-img {
    width: 100%;
    height: auto;
    display: block; /* Empêche les espaces blancs */
}
.header-sliderslide-overlay {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(42, 46, 117, 0.5);
    z-index: 1;
}

/* --- Styles du Contenu (Caption) --- */
.header-slidercaption {
    box-sizing: border-box; /* Bonnes pratiques */
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 20%;
    left: 10%;
    color: white;
    width: 50%;
    z-index: 2;
    line-height: normal;
}
.header-sliderslide .header-slidertitle {
    color: #fff;
    font-size: 69px;
    line-height: 1.1;
    margin: 0 0 15px 0;
}
.header-sliderslide .btn-tag {
    font-family: "Baloo Thambi 2", Sans-serif;
    width: fit-content;
    background: #B8E0D2;
    color: #000000;
    font-size: 17px;
    text-transform: uppercase;
    padding: 4px 18px;
    border-radius: 23px;
    margin-bottom: 15px;
    line-height: 1.4;
    text-decoration: none;
}
.header-sliderslide .header-sliderdescription {
    width: fit-content;
    font-size: 22px;
    color: #fff;
    font-weight: 400;
    margin: 0 0 20px 0;
    line-height: 1.5;
}
.header-sliderslide .btn {
    display: flex;
    align-items: center;
    gap: 10px; /* Espace géré avec gap */
    font-family: "Baloo Thambi 2", Sans-serif;
    width: fit-content;
    background: #CC0033;
    font-size: 19px;
    padding: 20px 34px;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.3s ease;
}
.header-sliderslide .btn:hover {
    background: #B3002D;
    border-radius: 27px;
}

/* --- Styles des Onglets (Dots) --- */
.slider-tabs {
    display: flex;
    width: 100%;
    justify-content: center;
    position: absolute;
    bottom: 5%;
    z-index: 2;
}
.slider-tabs .tab {
    padding: 33px 88px !important;
    border: none;
    border-bottom: 3px solid #F1F1F1 !important;
    background: transparent !important;
    border-radius: 0 !important;
    font-family: "Baloo Thambi 2", Sans-serif;
    color: #fff;
    font-size: 25px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.3s ease;
}
.slider-tabs .tab.active {
    border-bottom: 3px solid #CC0033 !important;
}

/* --- Styles de Navigation (Corrigé) --- */
.header-slider .custom-nav-container {
    margin-top:30px;
    z-index: 10;
    display: flex;
    gap: 20px;
}
.header-slider .custom-nav-container .owl-prev,
.header-slider .custom-nav-container .owl-next {
    background-color: transparent;
    font-size: 12px;
    font-weight: 600;
    color: #FFFFFF;
    border-radius: 50px;
    border: 1px solid #fff;
    padding: 20px 25px;
    line-height: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}
.header-slider .custom-nav-container .owl-prev:hover,
.header-slider .custom-nav-container .owl-next:hover {
    background-color: #fff;
}
.header-slider .custom-nav-container .owl-prev:hover svg path,
.header-slider .custom-nav-container .owl-next:hover svg path {
    stroke: #000;
}


/** =================================== **/
/** Responsive design         **/
/** =================================== **/

@media only screen and (max-width: 1600px) {
    .header-slidercaption {
        top: 15%;
    }
    .header-sliderslide .header-slidertitle {
        font-size: 60px;
    }
    .header-sliderslide .header-sliderdescription {
        font-size: 20px;
    }
    .header-sliderslide .btn {
        font-size: 16px;
        padding: 15px 24px;
    }
    .slider-tabs .tab {
        font-size: 22px;
        padding: 23px 58px !important;
    }
}

@media only screen and (max-width: 1024px) {
    .header-slidercaption {
        width: 70%; /* Légèrement plus large */
    }
    .header-sliderslide .header-slidertitle {
        font-size: 46px;
        margin-bottom: 10px;
    }
    .header-sliderslide .header-sliderdescription {
        font-size: 16px;
        margin-top: 10px;
        margin-bottom: 10px;
    }
    .header-sliderslide .btn {
        font-size: 16px;
        padding: 12px 21px;
        margin-top: 0;
    }
    
    .header-slider .custom-nav-container .owl-prev,
    .header-slider .custom-nav-container .owl-next {
        padding: 15px 20px;
    }
    .slider-tabs .tab {
        font-size: 18px;
        padding: 20px !important;
    }
}

@media only screen and (max-width: 768px) {
    .header-slidercaption {
        top: 10%; /* Remonte plus */
        left: 5%;
        width: 90%; /* Prend presque toute la largeur */
    }
    .header-sliderslide .header-slidertitle {
        font-size: 36px;
    }
    .header-sliderslide .btn-tag {
        font-size: 15px;
        padding: 2px 16px;
    }
    .header-sliderslide .header-sliderdescription {
        font-size: 16px;
        /* Sur mobile, c'est souvent mieux de cacher la description */
        /* display: none; */
    }
    .header-sliderslide .btn {
        font-size: 15px;
        padding: 10px 19px;
    }
    
    .header-slider .custom-nav-container .owl-prev,
    .header-slider .custom-nav-container .owl-next {
        padding: 10px 15px;
    }
    .custom-nav-container .owl-prev svg,
    .custom-nav-container .owl-next svg {
        width: 6px;
    }
    .slider-tabs {
        bottom: 5%; /* Remonte un peu pour laisser place au nav */
    }
    .slider-tabs .tab {
        font-size: 16px;
        padding: 10px !important;
    }
}

@media only screen and (max-width: 480px) {
    /* Sur petit mobile, on force une hauteur */
    .header-slider,
    .header-sliderslide {
        height: 400px; /* Augmenté un peu pour le contenu */
    }
    .header-sliderslide-img {
        height: 100%; /* S'assure que l'image remplit la hauteur */
        width: 100%;
        object-fit: cover; /* Coupe l'image pour remplir l'espace */
    }
    .header-slidercaption {
        top: 5%;
        left: 5%;
        width: 90%;
    }
    .header-sliderslide .header-slidertitle {
        font-size: 30px;
    }
    .header-sliderslide .btn-tag {
        font-size: 13px;
        padding: 2px 16px;
    }
    .header-sliderslide .header-sliderdescription {
        font-size: 14px;
        /* C'est presque illisible, mieux vaut cacher */
    }
    .header-sliderslide .btn {
        font-size: 13px;
        padding: 7px 16px !important;
    }
    .header-sliderslide .btn svg {
        width: 10px;
    }
    .header-slider .custom-nav-container {
        gap: 5px;
    }
    .header-slider .custom-nav-container .custom-nav-container .owl-prev,
    .header-slider .custom-nav-container .custom-nav-container .owl-next {
        padding: 7px 12px;
    }
    .header-slider .custom-nav-container .custom-nav-container .owl-prev svg,
    .header-slider .custom-nav-container .custom-nav-container .owl-next svg {
        width: 5px;
    }
    .header-sliderslide .slider-tabs {
        flex-wrap: wrap; /* Permet aux onglets de passer à la ligne */
        bottom: 2%;
        justify-content: flex-start; /* Aligne à gauche */
        padding: 0 5%;
        box-sizing: border-box;
    }
    .header-sliderslides .slider-tabs .tab {
        font-size: 12px; /* Plus petit */
        padding: 8px 10px !important;
        flex-grow: 1; /* Permet aux onglets de s'étirer */
        text-align: center;
    }

    /* * LES LIGNES FRAGILES ONT ÉTÉ SUPPRIMÉES.
     * Le masquage est géré par le PHP.
     */
}