/* ===== EN-TÊTE UNIFIÉ POUR TOUTES LES PAGES ===== */

/* Variables communes */
:root {
    --gold: #FFD700;
    --gold-dark: #B8860B;
    --blue-deep: #0A1628;
    --blue-royal: #1E3A8A;
    --blue-light: #3B82F6;
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-200: #E5E7EB;
    --gray-600: #4B5563;
    --gray-700: #374151;
}

/* En-tête principal unifié - Taille optimisée */
.page-hero-unified {
    position: relative;
    height: 32vh;
    min-height: 245px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--blue-deep);
    margin-top: 85px; /* Espace pour la navbar fixe */
}

/* Arrière-plan avec le ruban Aron - AMÉLIORÉ (Variation 2 - Modérée) */
.hero-bg-unified {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/ruban_aron_eshel.png') center/cover no-repeat;
    /* Filtres pour améliorer l'éclat de l'image - Variation 2 Modérée */
    filter: brightness(1.2) contrast(1.1) saturate(1.2);
    z-index: 1;
}

/* Overlay gradient AMÉLIORÉ pour meilleure lisibilité du texte */
.hero-overlay-unified {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        linear-gradient(135deg, rgba(10, 22, 40, 0.25) 0%, rgba(30, 58, 138, 0.25) 100%),
        radial-gradient(circle at center, rgba(0, 0, 0, 0.4) 0%, transparent 70%);
    z-index: 2;
}

/* Pattern géométrique subtil */
.hero-pattern-unified {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, rgba(255, 215, 0, 0.02) 1px, transparent 1px);
    background-size: 50px 50px, 80px 80px;
    animation: patternFloat 30s linear infinite;
    z-index: 3;
}

@keyframes patternFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(50px, 50px); }
}

/* Particules améliorées */
.particles-unified {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
    z-index: 4;
}

.particle-unified {
    position: absolute;
    background: var(--gold);
    border-radius: 50%;
    opacity: 0;
    animation: floatEnhanced 12s infinite;
}

/* Différentes tailles de particules */
.particle-unified.small {
    width: 2px;
    height: 2px;
    animation-duration: 10s;
}

.particle-unified.medium {
    width: 4px;
    height: 4px;
    animation-duration: 14s;
}

.particle-unified.large {
    width: 6px;
    height: 6px;
    animation-duration: 18s;
}

@keyframes floatEnhanced {
    0% { 
        opacity: 0; 
        transform: translateY(100vh) translateX(0) scale(0) rotate(0deg); 
    }
    10% { 
        opacity: 0.8; 
        transform: translateY(90vh) translateX(10px) scale(1) rotate(45deg); 
    }
    90% { 
        opacity: 0.8; 
        transform: translateY(10vh) translateX(-10px) scale(1) rotate(315deg); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(-5vh) translateX(0) scale(0) rotate(360deg); 
    }
}

/* Contenu de l'en-tête */
.hero-content-unified {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 900px;
    /* Suppression explicite de tout fond */
    background: none !important;
    backdrop-filter: none !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}

/* Titre principal avec effet brillant */
.hero-title-unified {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 5vw, 3.8rem);
    font-weight: 900;
    color: transparent;
    background: linear-gradient(
        45deg, 
        var(--gold) 20%, 
        var(--white) 40%, 
        var(--gold) 60%, 
        var(--white) 80%, 
        var(--gold) 100%
    );
    background-size: 300% auto;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shimmerEnhanced 4s linear infinite;
    margin-bottom: 1rem;
    letter-spacing: -1px;
    text-shadow: 0 0 30px rgba(255, 215, 0, 0.3);
    white-space: nowrap;
    overflow: visible;
    max-width: 100%;
}

@keyframes shimmerEnhanced {
    0% { background-position: 300% center; }
    100% { background-position: -300% center; }
}

/* Sous-titre élégant */
.hero-subtitle-unified {
    font-family: "Inter", sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.3rem);
    font-weight: 300;
    color: var(--gray-200);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 2rem;
    position: relative;
    animation: fadeInUpDelayed 1.2s ease-out 0.3s both;
}

/* Suppression du trait doré sous le titre */
.hero-subtitle-unified::after {
    display: none;
}

@keyframes fadeInUpDelayed {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Décoration en bas */
.hero-decoration-unified {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 30px;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dark) 100%);
    opacity: 0.8;
    z-index: 15;
}

.hero-decoration-unified::before {
    content: '';
    position: absolute;
    top: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 10px solid var(--gold);
    animation: pulseVertical 2s ease-in-out infinite;
}

@keyframes pulseVertical {
    0%, 100% { transform: translateX(-50%) scaleY(1); }
    50% { transform: translateX(-50%) scaleY(1.2); }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-10px); }
    60% { transform: translateY(-5px); }
}

/* Responsive */
@media (max-width: 768px) {
    .page-hero-unified {
        height: 25vh;
        min-height: 200px;
        margin-top: 70px;
    }
    
    .hero-title-unified {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .hero-subtitle-unified {
        font-size: clamp(0.9rem, 2vw, 1.1rem);
    }
    
    .hero-decoration-unified {
        bottom: 15px;
        height: 25px;
    }
}

/* Classes pour les animations JavaScript */
.js-hero-parallax {
    transform: translateY(var(--parallax-y, 0));
}

.js-hero-content-fade {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease-out;
}

.js-hero-content-fade.loaded {
    opacity: 1;
    transform: translateY(0);
}
