/* Styles pour l'overlay de la section hero */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* background: linear-gradient(to bottom, rgba(0, 85, 164, 0.6), rgba(239, 65, 53, 0.6)); */
    z-index: 5 !important;
}

/* Ajustements pour la section hero */
.container-img {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 500px; /* Hauteur fixe pour mieux contrôler le positionnement */
    z-index: 2 !important; /* Ajusté pour permettre au contenu de rester visible */
    margin-top: 40px; /* Ajout d'une marge supérieure pour compenser le header fixe */
    display: flex;
    align-items: center;
    justify-content: center;
}

.responsive-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    min-width: 100%;
    min-height: 100%;
    max-width: none;
    max-height: none;
}

.hero-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    color: #fff;
    width: 90%;
    max-width: 800px;
    padding: 20px;
    z-index: 10 !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

/* Styles pour les éléments spécifiques */
.lohan {
    color: #0055A4; /* Bleu */
    font-weight: bold;
    background-color: #ffffffe0;
    font-size: 2.8rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 2;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
}

.slogan {
    color: #EF4135; /* Rouge */
    font-weight: bold;
    background-color: #ffffffe0;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 2;
    padding: 2px 8px;
    border-radius: 10px;
    display: inline-block;
    margin-top: 5px;
}
p.slogan {
    color: #EF4135 !important; /* Rouge */
    font-weight: bold;
    background-color: unset!important;
    font-size: 2rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}
.btn.btn-primary {
    background-color: #0055A4; /* Bleu */
    color: white;
    border-color: #0055A4;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .container-img {
        min-height: 350px;
        height: 350px;
    }
    
    .responsive-img {
        height: 100%;
        object-position: center;
    }
    
    .hero-content h1 {
        font-size: 2.5rem;
    }
    
    .hero-content h2 {
        font-size: 2rem;
    }

    .lohan {
        color: #0055A4; /* Bleu */
        font-weight: bold;
        background-color: #ffffffe0;
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        line-height: 1.5;
    }
    
    .slogan {
        color: #EF4135; /* Rouge */
        font-weight: bold;
        background-color: #ffffffe0;
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
        line-height: 1.5;
    }
    p.slogan {
        color: #EF4135 !important; /* Rouge */
        font-weight: bold;
        background-color: unset!important;
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }
}

/* L'image aille.jpg est définie par défaut dans le HTML */

/* L'image aille.jpg est définie par défaut dans le HTML */

@media (max-width: 576px) {
    .container-img {
        min-height: 450px;
        height: 450px;
        width: 100%;
        margin-bottom: 0; /* Supprimer la marge en bas car nous utilisons main pour gérer l'espacement */
    }
    
    /* Ajuster l'espacement après la section hero */
    main {
        position: relative;
        z-index: 1;
    }
    
    /* Forcer l'utilisation de l'image portrait UNIQUEMENT en mode mobile */
    .responsive-img {
        content: url('../images/aille-portrait.jpg') !important;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        position: absolute;
        top: -20px;
        left: 0;
    }
    
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-content h2 {
        font-size: 1.6rem;
    }

    .hero-content {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 95%;
        margin: auto;
    } 
    .hero-content .slogan {
        font-size: 1.2rem;
    }

    .lohan {
        color: #0055A4; /* Bleu */
        font-weight: bold;
        background-color: #fffffffa;
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.6);
        padding: 2px 5px; /* Reduced padding for mobile */
        border-radius: 5px; /* Smaller radius for mobile */
        display: inline-block;
    }
    
    .slogan {
        color: #EF4135; /* Rouge */
        font-weight: bold;
        background-color: #fffffffa;
        font-size: 1.5rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
        padding: 2px 5px; /* Reduced padding for mobile */
        border-radius: 5px; /* Smaller radius for mobile */
        display: inline-block;
        margin-top: 3px;
    }
    p.slogan {
        color: #EF4135 !important; /* Rouge */
        font-weight: bold;
        background-color: unset!important;
        font-size: 2rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    }

    
}