/* ================================================
   Hero Visual — Styles réutilisables dans tout contexte hero
   ================================================ */

/* Wrapper hero commun à toutes les pages */
.hero {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
    margin: 40px;
    border-radius: 32px;
    box-sizing: border-box;
}

.hero__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 32px;
    overflow: hidden;
    z-index: 0;
}

.hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(55, 36, 28, 0.05) 0%,
        rgba(55, 36, 28, 0.15) 100%
    );
    border-radius: 32px;
    z-index: 1;
    transition: background 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@media (max-width: 768px) {
    .hero {
        margin: 0;
        border-radius: 0;
    }

    .hero__bg,
    .hero__overlay {
        border-radius: 0;
    }

    /* Overlay toujours visible en mobile (pas de hover sur tactile) */
    .hero__overlay {
        background: linear-gradient(
            180deg,
            rgba(20, 12, 6, 0.38) 0%,
            rgba(20, 12, 6, 0.55) 100%
        ) !important;
    }
}

.hero:hover .hero__overlay {
    background: linear-gradient(
        180deg,
        rgba(20, 12, 6, 0.38) 0%,
        rgba(20, 12, 6, 0.55) 100%
    );
}
