/* Harmonisation du Hero avec le reste des sections */

.hero-container {
    max-width: 1200px; /* Largeur identique aux autres sections */
    margin: 0 auto; /* Centré horizontalement */
    padding: 20px; /* Uniformité des espaces */
    height: 60vh; /* Ajuste la hauteur à 60% de l'écran */
    display: block; /* Pas de flex pour éviter les conflits */
    position: relative; /* Nécessaire pour positionner les slides */
    margin-bottom: 2rem; /* Espacement similaire aux autres sections */
    border-radius: 15px;
    overflow: hidden; /* Empêcher les débordements */
}

.hero-carousel {
    width: 100%;
    height: 100%; /* Prend toute la hauteur du container */
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    background: transparent; /* Aucun fond conflictuel */
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden; /* Masque les slides non actives */
    transition: opacity 0.5s ease-in-out, visibility 0.5s;
    object-fit: cover;
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

.hero-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Préserve les proportions */
    border-radius: 15px;
}

.hero-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3; /* Au-dessus des images et de l'overlay */
    width: 100%;
    padding: 0 4rem;
    color: white;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.hero-logo {
    max-width: 400px; /* Taille du logo */
    height: auto;
    margin-bottom: 0;
}

.text-content {
    margin-top: 1rem;
    max-width: 800px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    font-family: 'Space Grotesk', sans-serif;
    font-weight: bold;
    line-height: 1.2;
}

.hero-description {
    font-size: 1.2rem;
    margin: 0 auto;
    color: white;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.cta-button {
    margin-top: 1.5rem;
    padding: 1rem 2rem;
    font-size: 1.2rem;
    background: linear-gradient(145deg, #007aff, #005bb5);
    color: white;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

/* Overlay pour texte lisible sur images */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.5));
    z-index: 1; /* Derrière le contenu mais devant les images */
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-container {
        height: 40vh; /* Hauteur réduite sur mobile */
        padding: 10px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 1rem;
    }

    .cta-button {
        font-size: 1rem;
        padding: 0.8rem 1.5rem;
    }

    .hero-slide img {
        border-radius: 10px;
    }

    .hero-logo {
        max-width: 120px; /* Taille réduite pour mobile */
    }
}
