/* ==========================================================================
   Hero Animation - La Pradat Haute
   Parallax + Zoom In sur l'image de fond
   ========================================================================== */

/* Hero container */
.lph-hero {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Background wrapper - gère le parallax */
.lph-hero__background {
    position: absolute;
    top: -10%;
    left: -5%;
    width: 110%;
    height: 120%;
    z-index: 0;
    will-change: transform;
}

/* Image de fond - gère le zoom */
.lph-hero__image {
    width: 100%;
    height: 100%;
    background-image: url('https://new.la-pradat-haute.fr/wp-content/uploads/2025/12/DSC4287.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transform: scale(1);
    animation: lph-heroZoom 12s ease-out forwards;
    will-change: transform;
}

/* Animation de zoom doux */
@keyframes lph-heroZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.12);
    }
}

/* Overlay sombre pour la lisibilité */
.lph-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.3) 0%,
        rgba(0, 0, 0, 0.5) 50%,
        rgba(0, 0, 0, 0.65) 100%
    );
    z-index: 1;
}

/* Contenu centré */
.lph-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 30px;
    opacity: 0;
    transform: translateY(30px);
    animation: lph-fadeInUp 1.5s ease-out 0.5s forwards;
}

/* Animation d'apparition du contenu */
@keyframes lph-fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo */
.lph-hero__logo {
    max-width: 450px;
    width: 80%;
    height: auto;
    margin-bottom: 25px;
    filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.3));
    opacity: 0;
    animation: lph-logoAppear 2s ease-out 0.8s forwards;
}

@keyframes lph-logoAppear {
    0% {
        opacity: 0;
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Texte */
.lph-hero__text {
    color: #ffffff;
    font-size: 16px;
    font-weight: 300;
    letter-spacing: 2px;
    text-transform: uppercase;
    max-width: 600px;
    margin: 0 auto 40px;
    line-height: 1.8;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0;
    animation: lph-fadeInUp 1.5s ease-out 1.2s forwards;
}

/* Flèche scroll */
.lph-hero__scroll {
    display: inline-block;
    color: #ffffff;
    opacity: 0;
    animation: lph-fadeInUp 1s ease-out 1.8s forwards, lph-bounce 2s ease-in-out 3s infinite;
    transition: opacity 0.3s ease;
    text-decoration: none;
}

.lph-hero__scroll:hover {
    opacity: 0.7;
}

@keyframes lph-bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-8px);
    }
    60% {
        transform: translateY(-4px);
    }
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media screen and (max-width: 768px) {
    .lph-hero__image {
        background-position: 75% center;
    }

    .lph-hero__logo {
        max-width: 280px;
        width: 70%;
    }

    .lph-hero__text {
        font-size: 13px;
        letter-spacing: 1.5px;
        padding: 0 15px;
    }
}

@media screen and (max-width: 480px) {
    .lph-hero__image {
        background-position: 80% center;
    }

    .lph-hero__logo {
        max-width: 220px;
    }

    .lph-hero__text {
        font-size: 12px;
        letter-spacing: 1px;
    }
}
