/* ==========================================
   HERO COMPONENT - Style unifié pour toutes les pages
   ==========================================

   Description: Composant Hero réutilisable
   Version: 1.0.0

   Usage: Ajout automatique sur toutes les pages

   ========================================== */

/* ==========================================
   HERO - Container principal
   ========================================== */

.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background-color: #1A1A2E;
}

/* ==========================================
   HERO - Image de fond
   ========================================== */

.hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    animation: subtleZoom 20s ease-in-out infinite alternate;
}

/* Animation douce de zoom */
@keyframes subtleZoom {
    0% {
        transform: scale(1);
    }
    100% {
        transform: scale(1.08);
    }
}

/* ==========================================
   HERO - Overlay (voile sombre)
   ========================================== */

.hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(26, 26, 46, 0.8) 0%,
        rgba(26, 26, 46, 0.6) 40%,
        rgba(255, 107, 53, 0.25) 100%
    );
    z-index: 2;
}

/* ==========================================
   HERO - Contenu textuel
   ========================================== */

.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    color: var(--white);
    padding: var(--spacing-2xl) var(--spacing-lg);
    max-width: 1000px;
    margin: 0 auto;
    animation: fadeInUp 1s ease-out;
}

/* Animation d'apparition */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Titre principal */
.hero__content h1 {
    font-size: clamp(2.5rem, 7vw, 4.5rem);
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-md);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.6);
    letter-spacing: -0.02em;
    line-height: 1.1;
}

/* Sous-titre */
.hero__content p.lead {
    font-size: clamp(1.1rem, 2.5vw, 1.6rem);
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
    font-weight: 400;
    line-height: 1.5;
    max-width: 700px;
    margin: 0 auto;
}

/* ==========================================
   INDICATEUR DE DÉFILEMENT (Scroll Down)
   ========================================== */

.scroll-down {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    opacity: 0.85;
    transition: opacity var(--transition-base);
}

.scroll-down:hover {
    opacity: 1;
}

/* Souris stylisée */
.mouse {
    width: 28px;
    height: 44px;
    border: 2.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    display: flex;
    justify-content: center;
    padding-top: 10px;
    position: relative;
}

/* Roulette de la souris */
.wheel {
    width: 3px;
    height: 10px;
    background: rgba(255, 255, 255, 0.85);
    border-radius: 2px;
    animation: scrollAnimation 2s infinite;
}

@keyframes scrollAnimation {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Flèches animées */
.arrow-scroll {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.arrow-scroll span {
    display: block;
    width: 14px;
    height: 14px;
    border-bottom: 2.5px solid rgba(255, 255, 255, 0.85);
    border-right: 2.5px solid rgba(255, 255, 255, 0.85);
    transform: rotate(45deg);
    animation: arrowBounce 2s infinite;
}

.arrow-scroll span:nth-child(2) {
    animation-delay: 0.15s;
}

.arrow-scroll span:nth-child(3) {
    animation-delay: 0.3s;
}

@keyframes arrowBounce {
    0% {
        opacity: 0;
        transform: rotate(45deg) translate(-5px, -5px);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: rotate(45deg) translate(6px, 6px);
    }
}
