/* ===============================================
   HERO SLIDER - Homepage Header Slider
   =============================================== */

/* Container du slider */
.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Hauteur adaptative - pas de min-height fixe */
}

/* Slides */
.hero-slide {
    display: none;
    width: 100%;
    /* Hauteur adaptative au contenu */
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.hero-slide.active {
    display: block;
    opacity: 1;
}

/* S'assurer que backgroundTopHome s'adapte au contenu */
.hero-slide .backgroundTopHome {
    background-color: transparent !important;
}

/* Forcer l'opacité complète sur les images avec spécificité maximale */
#homepage .hero-slide .backgroundTopHome img {
    opacity: 1 !important;
    width: 77.5%;
    height: auto;
    position: absolute;
    top: 0;
    right: 0;
    z-index: -1;
}

/* Responsive image */
@media (max-width: 1199.98px) {
    #homepage .hero-slide .backgroundTopHome img {
        height: 100%;
        width: auto !important;
    }
}

@media (max-width: 750px) {
    #homepage .hero-slide .backgroundTopHome img {
        display: none;
    }
}

/* Cacher titleOnMobile sur desktop */
.gradientOverlay p.titleOnMobile {
    display: none;
}

/* Responsive mobile/tablette - background image pour chaque slide jusqu'à 750px */
@media (max-width: 750px) {
    #homepage .hero-slide[data-slide="0"] .backgroundTopHome h1 {
        background-image: url("../img/workers-conversation.png") !important;
    }

    #homepage .hero-slide[data-slide="1"] .backgroundTopHome h1 {
        background-image: url("../img/business-newspaper.jpg") !important;
    }

    /* Afficher titleOnMobile et gérer h1 sur mobile/tablette */
    #homepage .gradientOverlay p.titleOnMobile {
        display: block !important;
    }

    #homepage .gradientOverlay h1 {
        height: 30vh;
    }

    #homepage .gradientOverlay h1 span {
        display: none !important;
    }
}

/* Gradient overlay s'adapte au contenu avec padding suffisant */
#homepage .hero-slide .backgroundTopHome .gradientOverlay {
    min-height: 350px; /* Hauteur minimum réduite pour petits contenus */
    padding-top: 3rem;
    padding-bottom: 3rem;
}

/* Au-dessus de 750px, s'assurer que le gradient prend toute la hauteur */
@media (min-width: 751px) {
    #homepage .hero-slide .backgroundTopHome .gradientOverlay {
        height: auto; /* Adaptative au contenu */
    }
}

/* Le slide 2 utilise maintenant le même gradient que le slide 1 */

/* Animation de transition */
.hero-slide.fade-out {
    opacity: 0;
}

.hero-slide.fade-in {
    opacity: 1;
}

/* Styles pour le slide 2 - Desktop */
#homepage .hero-slide[data-slide="1"] .backgroundTopHome h1 {
    margin-bottom: 2rem;
}

/* Liste de points du slide 2 */
.hero-slide2-points {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-slide2-points li {
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
}

.hero-slide2-points li:last-child {
    margin-bottom: 1.5rem;
}

.hero-slide2-points li i {
    color: #559DD3;
    font-size: 1.2rem;
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.hero-slide2-points li span {
    color: #333;
    font-size: 1.1rem;
    font-weight: 500;
}

/* Responsive tablette pour slide 2 */
@media (max-width: 991.98px) {
    #homepage .hero-slide[data-slide="1"] .backgroundTopHome h1 {
        text-align: center;
    }

    #homepage .hero-slide[data-slide="1"] .backgroundTopHome .titleOnMobile {
        margin-bottom: 1.5rem;
    }

    #homepage .hero-slide[data-slide="1"] .backgroundTopHome .col-lg-6 {
        padding: 0 10%;
    }

    .hero-slide2-points {
        padding: 0 5%;
    }

    .hero-slide2-points li i {
        font-size: 0.95rem;
        margin-right: 0.6rem;
    }

    .hero-slide2-points li span {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    #homepage .hero-slide[data-slide="1"] .backgroundTopHome h1 {
        font-size: 16px !important;
        background-size: auto 100%;
    }

    #homepage .hero-slide[data-slide="1"] .backgroundTopHome h1 span {
        font-size: 16px;
        padding: 5% 33% 5% 5%;
        display: inline-block;
        background: -webkit-gradient(linear, left top, right top, color-stop(20%, white), color-stop(75%, rgba(255, 255, 255, 0.25)));
        background: linear-gradient(to right, white 20%, rgba(255, 255, 255, 0.25) 75%);
    }

    .hero-slide2-points {
        padding: 0 8%;
    }

    .hero-slide2-points li {
        margin-bottom: 0.8rem;
    }

    .hero-slide2-points li i {
        font-size: 0.85rem;
        margin-right: 0.5rem;
    }

    .hero-slide2-points li span {
        font-size: 0.75rem;
    }
}

/* Réduction des textes pour écrans entre 992px et 1450px */
@media (min-width: 992px) and (max-width: 1450px) {
    #homepage .hero-slide[data-slide="1"] .backgroundTopHome h1 {
        font-size: 32px;
    }

    .hero-slide2-points li i {
        font-size: 1rem;
    }

    .hero-slide2-points li span {
        font-size: 0.95rem;
    }
}

/* Responsive - Hauteur minimum adaptative réduite */
@media (max-width: 991.98px) {
    #homepage .hero-slide .backgroundTopHome .gradientOverlay {
        min-height: 320px;
        padding-top: 2.5rem;
        padding-bottom: 2.5rem;
    }
}

@media (max-width: 991px) {
    #homepage .hero-slide .backgroundTopHome .gradientOverlay {
        padding-top: 0;
    }
}

@media (max-width: 767.98px) {
    #homepage .hero-slide .backgroundTopHome .gradientOverlay {
        min-height: 300px;
        padding-bottom: 2rem;
    }
}

@media (max-width: 575.98px) {
    #homepage .hero-slide .backgroundTopHome .gradientOverlay {
        min-height: 280px;
        padding-top: 0;
        padding-bottom: 1.5rem;
    }
}

/* ============================================
   Points de navigation - COMMENTÉ POUR TEST
   ============================================ */

/*
.hero-dots {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    display: flex;
    gap: 12px;
    padding: 10px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 50px;
    backdrop-filter: blur(5px);
}

.hero-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.hero-dot:hover {
    background: rgba(255, 255, 255, 0.7);
    transform: scale(1.1);
}

.hero-dot.active {
    background: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.3);
    width: 14px;
    height: 14px;
}

@media (max-width: 768px) {
    .hero-dots {
        bottom: 20px;
        padding: 8px 16px;
        gap: 10px;
    }

    .hero-dot {
        width: 10px;
        height: 10px;
    }

    .hero-dot.active {
        width: 12px;
        height: 12px;
    }
}

@keyframes pulse-dot {
    0% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
    }
    70% {
        box-shadow: 0 0 0 8px rgba(255, 255, 255, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
    }
}

.hero-dot.active {
    animation: pulse-dot 2s infinite;
}
*/
