/* debut hero */
.hero {
    background: linear-gradient(
        135deg,
        #CE1127,   /* #C8102E avec 50% d'opacité */
        #419E4B  /* #0A6E31 avec 50% d'opacité */
    );
    min-height: 500px;
    display: flex;
    align-items: center;
    position: relative;
    color: white;
    padding: 2rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: #0A6E31;*/
    /*background-color: rgba(10, 110, 49, 0.95);*/
    background-image: url('../images/mainpage_foreground.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;

}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    /*max-height: 30vh;*/
}

/* .hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 600px;
    margin-bottom: 2rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
} */



/* .hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* background: linear-gradient(to right, #ff7e5f, #feb47b); */
    /* -webkit-background-clip: text;
    background-clip: text;
    color: transparent;*
} */

.hero h1 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
    /* background: linear-gradient(to right, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent; */
    position: relative;
    display: inline-block;
    /* padding: 0 10px; */
    overflow: hidden;
}

/* Effet de lumière diagonale stylée */
.hero h1::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -60%;
    width: 30%;
    height: 200%;
    background: linear-gradient(
        to right bottom,
        transparent 0%,
        rgba(255, 255, 255, 0.2) 30%,
        transparent 100%
    );
    transform: rotate(30deg);
    animation: diagonal-light 60s infinite ease-in-out;
}

@keyframes diagonal-light {
    0% {
        left: -60%;
    }
    15% {
        left: 130%;
    }
    100% {
        left: 130%;
    }
}

.hero-subtitle {
    font-size: 1.2rem;
    max-width: 1200px;
    margin: 0 auto 2.5rem;
    line-height: 1.6;
    min-height: 85px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hero-subtitle .typed-text {
    color: white;
    font-weight: 600;
    text-align: left;
}

.hero-subtitle .cursor {
    display: inline-block;
    background-color: #fff;
    margin-left: 0.1rem;
    width: 3px;
    animation: blink 1s infinite;
}

.hero-subtitle .cursor.typing {
    animation: none;
}

@keyframes blink {
    0%  { background-color: #fff; }
    49% { background-color: #fff; }
    50% { background-color: transparent; }
    99% { background-color: transparent; }
    100%  { background-color: #fff; }
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

.btn-hero {
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.btn-primary-hero {
    background-color: var(--color-orange);
    border: 2px solid var(--color-orange);
    color: white;
}

.btn-primary-hero:hover {
    background-color: transparent;
    border: 2px solid var(--color-orange);
    color: var(--color-white);
}

.btn-secondary-hero {
    background-color: transparent;
    color: white;
    border: 2px solid white;
}

.btn-secondary-hero:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--color-white);
}

/* Version responsive */
@media (max-width: 768px) {
    .hero {
        min-height: 400px;
        text-align: center;
    }

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

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

    .hero-actions {
        flex-direction: column;
    }
}

.hero-content {
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* fin hero */
