/* CSS pour le hero avec changement d'image */
.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    align-items: center;
    color: #fff;
    text-align: center;
}

.hero-backgrounds {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;

    transition: opacity 1.5s ease, transform 8s ease;
    z-index: 1;
    transform: scale(1); /* au lieu de 1.1 ou 1.15 */
}

.hero-background.active {
    opacity: 1;
    z-index: 2;
    transform: scale(1.2); /* léger zoom arrière quand actif */
}

.hero-text {
    position: relative;
    z-index: 2;
}

.hero-buttons {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}


.hero-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: rgba(255, 255, 255, 0.18);
    border-radius: 1.5rem;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1.5px 0.5px 0 rgba(255, 255, 255, 0.25) inset;
    padding: 1.5rem 2rem;
    text-decoration: none;
    color: #222;
    width: 220px;
    transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    max-width: 90vw;
    /* Jamais plus large que l'écran */
    position: relative;
    overflow: hidden;
}

.hero-btn img {
    width: 100%;
    object-fit: contain;
    margin-bottom: 1rem;
}

.hero-btn span {
    font-size: 1.2rem;
    font-weight: 600;
    text-align: center;
    z-index: 2;
}

.hero-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.35) 0%, rgba(255, 255, 255, 0.10) 100%);
    pointer-events: none;
    border-radius: inherit;
    z-index: 1;
}


.hero-btn:hover {
    transform: translateY(-8px) scale(1.04);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.14);
    background: rgba(255, 255, 255, 0.28);
}


/* Responsive : sur mobile, on réduit la largeur et l'espacement */
@media (max-width: 700px) {
    .hero-buttons {
        gap: 1rem;
    }

    .hero-btn {
        width: 140px;
        max-width: 100vw;
        padding: 1rem 0.5rem;
    }

    .hero-btn img {
        width: 90%;
    }

    .hero-btn span {
        font-size: 1rem;
    }
}