
/* --- HERO SECTION --- */
.hero {
    height: 115vh;
    width: 100%;
    position: relative;
    background-image: url('../images/image_hero.webp'); 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden; 
    overflow-y: visible;
    margin-top: 0; 
    margin-bottom: -15vh;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0; 
    left: 0; 
    width: 100%; 
    height: 100%;
    background: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 40%) 0%,   /* Tes 40% d'opacité existants en haut */
    rgba(0, 0, 0, 40%) 60%,  /* On garde l'opacité jusqu'à 60% de la hauteur */
    var(--main-background) 100% /* Puis on fond vers ta couleur de fond */
    );
    z-index: 1;
}

/* --- CONTENU DU HERO --- */
.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #ffffff;
    width: 90%;
    font-family: var(--font-title);
    max-width: 70%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    display: inline-block;
    border: 1.5px solid var(--secondary-title); 
    color: var(--secondary-title);
    padding: 1.5%;
    margin-top: 26%;
    font-weight: 600;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.hero-badge:hover {
    background-color: var(--orange-10);
}

/* LE GROUPE TITRE + SOUS-TITRE */
.hero-main-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.hero-title-container {
    width: 90%; 
    margin-bottom: -6%; 
}

.hero-title-svg {
    width: 100%;
    height: auto;
    overflow: visible;
}

.hero-title-svg text {
    fill: white;
    font-family: var(--font-title);
    font-weight: 800;
    font-size: 370%; 
}

.hero-subtitle {
    font-size: clamp(90%, 1.5vw, 120%);
    margin-top: 0;
    font-weight: 400;
    color: white !important;
    z-index: 3;
    position: relative;
    color: var(--main-text);
}

/* --- BOUTON DÉCOUVRIR (SCROLL) --- */
.hero-scroll {
    position: absolute;
    bottom: 20%; 
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    text-align: center; 
}

.hero-scroll a {
    text-decoration: none;
    color: var(--main-text) !important;
    font-size: 100%;
    font-weight: 700;
    letter-spacing: 0.2em;
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: color 0.3s ease;
}

.hero-scroll a i {
    margin-top: 5%;
}

/* État normal */
.icone-scroll {
    color: var(--main-text) !important; 
    transition: color 0.3s ease;
}

/* État au survol du lien */
.hero-scroll a:hover .icone-scroll {
    color: var(--secondary-title) !important; 
}

.hero-scroll a:hover {
    color: var(--secondary-title) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
   @media (max-width: 768px) {
    
    .hero {
        height: 100vh;
        margin-bottom: 0; 
        justify-content: flex-start; 
        padding-top: 27vh; 
    }

    .hero-content {
        width: 90%;
        max-width: 90%; 
        margin: 0 auto; 
        display: flex;
        flex-direction: column;
        align-items: center; 
    }

    /* --- BADGE --- */
    .hero-badge {
        margin-top: 2vh; 
        padding: 3%; 
        border: solid 2px var(--secondary-title);
    }

    .hero-badge-link {
        font-size: 80% !important;
    }

    /* --- TITRE SVG --- */
    .hero-title-container {
        width: 100%;
        margin-bottom: 0;
        margin-top: 5%;
    }

    .hero-title-svg {
        width: 100%;
        height: auto; /
    }

    .hero-title-svg text {
        font-size: 435%;
    }

    /* --- SOUS-TITRE --- */
    .hero-subtitle {
        font-size: 90%; 
        line-height: 1.4; 
        padding: 0 0 5% 0; 
        text-align: center;
        width: 70%; 
    }

    /* --- SCROLL --- */
    .hero-scroll {
        bottom: 20%; 
    }

    .hero-scroll a {
        font-size: 90%; 
    }
}