/* Styles pour la section d'information */
.info-section {
    min-height: 500px;
    margin-bottom: 2rem;
    position: relative;
}

.background-image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.background-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left center;
}

.container.position-relative {
    z-index: 3;
    height: 100%;
}

.text-content {
    color: white;
    padding: 3rem 0;
    position: relative;
}

.text-highlight {
    background: rgba(74, 74, 74, 0.85);
    padding: 1rem;
    backdrop-filter: blur(2px);
    max-width: 90%;
}

.text-highlight h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.text-highlight p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 0rem !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.button-container {
    padding-top: 1rem;
}

.custom-btn {
    border: none;
    padding: 12px 30px;
    font-weight: 600;
    text-decoration: none !important;
    color: white;
    font-size: 1.1rem;
    display: inline-block;

}

.custom-btn:hover {
    color: white;
    text-decoration: none !important;
}

.min-height-500 {
    min-height: 500px;
}

.hero-texte{
    
     margin-right: 38px;
    margin-left: calc(33px + (var(--bs-gutter-x, 1.5rem) * 0.5));
}

/* Responsive */
@media (max-width: 991.98px) {
    .hero-texte{
    margin-left: 12px;
 
}
    .info-section {
        min-height: auto;
    }
    
    .min-height-500 {
        min-height: 400px;
    }
    
    .background-image {
        object-position: center;
    }
    
    .text-content {
        padding: 2rem 0;
        text-align: center;
    }
    
    .text-highlight {
        max-width: 100%;
        padding: 2rem;
        margin: 0 auto;
    }
    
    .text-highlight h2 {
        font-size: 2rem;
    }
    
    .text-highlight p {
        font-size: 1rem;
        margin-bottom: 1.5rem !important;
    }
    
    .button-container {
        justify-content: center !important;
        padding-top: 1rem;
    }
    
    .custom-btn {
        padding: 10px 25px;
        font-size: 1rem;
    }
}

@media (max-width: 575.98px) {
        .hero-texte{
    margin-left: 0px;
 
}
    .text-highlight h2 {
        font-size: 1.75rem;
    }
    
    .text-highlight p {
        font-size: 1rem;
    }
    
    .text-highlight {
        padding: 1.5rem;
    }
    
    .min-height-500 {
        min-height: 350px;
    }
    
    .text-content {
        padding: 1.5rem 0;
    }
}


/* Reset des conteneurs parents pour la section info */
/* Section info en pleine largeur SANS affecter Bootstrap */
.info-section {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Réinitialiser le conteneur à l'intérieur de la section info */
.info-section .container {
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
}

/* Pour s'assurer que l'image de fond prend toute la largeur */
.info-section .background-image-container,
.info-section .background-image {
    width: 100%;
}

/* Optionnel: Ajuster la hauteur minimale si nécessaire */
.info-section .min-height-500 {
    min-height: 500px;
}