/* =====================================================
   HERO — Brod'Art Studio (cinéma)
   Zoom out + flottement + rotation très subtile
===================================================== */

.hero {
    position: relative;
    height: min(90vh, 820px);
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    overflow: hidden;
    background: #000;
}

/* IMAGE HERO */
#heroOverlay {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: brightness(0.38) blur(0.8px);

    animation: heroCinema 26s ease-in-out infinite;
    will-change: transform, background-position;
    transform-origin: center center;
}

/* TEXTE */
.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 720px;
    padding: 40px;
    margin-left: clamp(20px, 6vw, 80px);
    color: #f8f8e8;
}

.hero-title {
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1.15;
    margin-bottom: 12px;
}

.hero-sub {
    max-width: 60ch;
    line-height: 1.6;
    opacity: 0.95;
}

/* VIGNETTAGE CINÉMA */
.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 1;
    background: radial-gradient(
        ellipse at center,
        rgba(0,0,0,0) 55%,
        rgba(0,0,0,0.45) 100%
    );
}

/* =====================================================
   ANIMATION CINÉMA
   - rotation max: ±0.6deg
   - zoom lent
   - flottement vertical
===================================================== */

@keyframes heroCinema {
    0% {
        background-position: center 50%;
        transform: scale(1.12) translateY(0) rotate(0deg);
    }
    25% {
        background-position: center 46%;
        transform: scale(1.08) translateY(-12px) rotate(0.35deg);
    }
    50% {
        background-position: center 42%;
        transform: scale(1.04) translateY(-22px) rotate(0deg);
    }
    75% {
        background-position: center 46%;
        transform: scale(1.08) translateY(-12px) rotate(-0.35deg);
    }
    100% {
        background-position: center 50%;
        transform: scale(1.12) translateY(0) rotate(0deg);
    }
}

/* =====================================================
   RESPONSIVE
===================================================== */

@media (max-width: 768px) {
    .hero {
        height: 80vh;
    }

    .hero-inner {
        padding: 28px;
        margin-left: 0;
        text-align: center;
    }

    .hero-sub {
        margin: 0 auto;
    }

    #heroOverlay {
        animation-duration: 34s; /* encore plus doux mobile */
    }
}

/* =====================================================
   ACCESSIBILITÉ
===================================================== */

@media (prefers-reduced-motion: reduce) {
    #heroOverlay {
        animation: none;
        transform: scale(1.06);
    }
}


/* HERO SHOUTBOX */
.hero-shoutbox{
  margin-top:18px;
  padding:12px 16px;
  max-width:560px;
  background:rgba(0,0,0,.55);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
  color:#fff;
  border-left:3px solid #c62828;
  border-radius:10px;
  font-size:0.95rem;
  line-height:1.35;
}
