/* ===== PAGE HEADER UNIFIÉ ===== */
/* Style uniforme pour tous les en-têtes de pages */

/* Variables spécifiques aux en-têtes */
:root {
    --header-height: 40vh;
    --header-min-height: 300px;
    --header-overlay-color: rgba(10, 22, 40, 0.7);
    --header-text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

/* En-tête unifié pour toutes les pages */
.page-header {
    position: relative;
    height: var(--header-height);
    min-height: var(--header-min-height);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--blue-deep, #0A1628);
}

/* Image de fond animée */
.page-header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../images/aron_hakodesh.webp') center/cover;
    filter: brightness(0.3);
    transform: scale(1.1);
    animation: heroZoom 20s ease-in-out infinite alternate;
    z-index: 1;
}

@keyframes heroZoom {
    0% { transform: scale(1.1); }
    100% { transform: scale(1.15); }
}

/* Overlay gradient */
.page-header-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        180deg,
        var(--header-overlay-color) 0%,
        rgba(10, 22, 40, 0.9) 100%
    );
    z-index: 2;
}

/* Particules animées */
.page-header-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 3;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: var(--gold, #FFD700);
    border-radius: 50%;
    opacity: 0;
    animation: floatUp 10s infinite;
}

@keyframes floatUp {
    0% { 
        opacity: 0; 
        transform: translateY(100%) scale(0); 
    }
    10% { 
        opacity: 1; 
        transform: translateY(90%) scale(1); 
    }
    90% { 
        opacity: 1; 
        transform: translateY(10%) scale(1); 
    }
    100% { 
        opacity: 0; 
        transform: translateY(0) scale(0); 
    }
}

/* Contenu de l'en-tête */
.page-header-content {
    position: relative;
    z-index: 10;
    text-align: center;
    padding: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

/* Titre principal avec effet brillant */
.page-header-title {
    font-family: "Playfair Display", serif;
    font-size: clamp(2.5rem, 6vw, 4rem);
    font-weight: 900;
    color: transparent;
    background: linear-gradient(
        45deg, 
        var(--gold, #FFD700) 30%, 
        var(--white, #FFFFFF) 50%, 
        var(--gold, #FFD700) 70%
    );
    background-size: 200% auto;
    background-clip: text;
    -webkit-background-clip: text;
    animation: shine 3s linear infinite;
    margin-bottom: 0.5rem;
    letter-spacing: -1px;
    text-shadow: var(--header-text-shadow);
    opacity: 0;
    animation: fadeInDown 1s ease-out 0.2s forwards, shine 3s linear infinite;
}

@keyframes shine {
    to { background-position: 200% center; }
}

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Sous-titre animé */
.page-header-subtitle {
    font-family: "Inter", sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: var(--gray-200, #E5E7EB);
    letter-spacing: 2px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeInUp 1s ease-out 0.5s forwards;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Décoration optionnelle */
.page-header-decoration {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--gold, #FFD700), transparent);
    opacity: 0;
    animation: fadeIn 1s ease-out 0.8s forwards;
    z-index: 10;
}

@keyframes fadeIn {
    to { opacity: 1; }
}

/* Pattern géométrique subtil */
.page-header-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 35px,
            rgba(255, 255, 255, 0.5) 35px,
            rgba(255, 255, 255, 0.5) 70px
        );
    z-index: 4;
}

/* Responsive */
@media (max-width: 768px) {
    :root {
        --header-height: 30vh;
        --header-min-height: 250px;
    }
    
    .page-header-title {
        font-size: 2rem;
    }
    
    .page-header-subtitle {
        font-size: 0.875rem;
        letter-spacing: 1px;
    }
}

/* Classes utilitaires pour personnalisation */
.page-header.header-tall {
    --header-height: 50vh;
    --header-min-height: 400px;
}

.page-header.header-short {
    --header-height: 30vh;
    --header-min-height: 250px;
}

/* Transition douce avec le contenu */
.page-header::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 100px;
    background: linear-gradient(
        to bottom,
        transparent,
        var(--white, #FFFFFF)
    );
    z-index: 11;
    pointer-events: none;
}
