/* ==========================================================================
   UNIFIED HEADER - Watts Else?
   Style uniforme pour tous les headers de page
   ========================================================================== */

/* --------------------------------------------------------------------------
   BASE : Fond Midnight Blue uniforme
   -------------------------------------------------------------------------- */
.unified-header {
    background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    position: relative;
    overflow: hidden;
}

/* Pattern de fond subtil (texture tech) */
.unified-header::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.03) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 1;
}

/* --------------------------------------------------------------------------
   GLOW : Lueur colorée par section
   -------------------------------------------------------------------------- */
.unified-header .glow {
    position: absolute;
    width: 50vw;
    height: 50vw;
    max-width: 600px;
    max-height: 600px;
    border-radius: 50%;
    filter: blur(120px);
    opacity: 0.3;
    pointer-events: none;
    z-index: 2;
    top: -30%;
    right: -15%;
}

/* Couleurs par section */
.glow-yellow { background: #FFD500; }
.glow-green { background: #10B981; }
.glow-cyan { background: #06B6D4; }
.glow-orange { background: #F59E0B; }
.glow-violet { background: #8B5CF6; }
.glow-pink { background: #EC4899; }
.glow-blue { background: #3B82F6; }
.glow-teal { background: #2A9D8F; }

/* --------------------------------------------------------------------------
   CONTENU : Structure standard
   -------------------------------------------------------------------------- */
.unified-header .header-content {
    position: relative;
    z-index: 10;
}

/* Titre avec mot en couleur */
.unified-header h1 {
    color: white;
}

.text-accent-yellow { color: #FFD500; }
.text-accent-green { color: #10B981; }
.text-accent-cyan { color: #06B6D4; }
.text-accent-orange { color: #F59E0B; }
.text-accent-violet { color: #8B5CF6; }
.text-accent-pink { color: #EC4899; }
.text-accent-blue { color: #3B82F6; }
.text-accent-teal { color: #2A9D8F; }

/* Dégradé sur texte */
.text-gradient-yellow {
    background: linear-gradient(135deg, #FFD500, #FFA500);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-gradient-green {
    background: linear-gradient(135deg, #10B981, #2DD4BF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --------------------------------------------------------------------------
   STATS FLOATING : En dehors du header, chevauche la transition
   -------------------------------------------------------------------------- */
.floating-stats {
    position: relative;
    z-index: 20;
    margin-top: -3rem;
    padding: 0 1rem;
}

.floating-stats-inner {
    max-width: 64rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 768px) {
    .floating-stats-inner {
        grid-template-columns: repeat(4, 1fr);
    }
}

.floating-stat {
    text-align: center;
    padding: 0.75rem;
}

.floating-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: #0F172A;
    line-height: 1;
}

.floating-stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: #64748B;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.25rem;
}

/* --------------------------------------------------------------------------
   COURBE DE TRANSITION
   -------------------------------------------------------------------------- */
.header-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3rem;
    background: #F8FAFC;
    border-radius: 2rem 2rem 0 0;
    transform: translateY(50%);
    z-index: 5;
}

/* --------------------------------------------------------------------------
   BARRE DE RECHERCHE UNIFIÉE
   -------------------------------------------------------------------------- */
.unified-search-wrapper {
    position: relative;
    max-width: 48rem;
    margin: 0 auto;
}

.unified-search-wrapper input {
    width: 100%;
    padding: 1.25rem 4rem 1.25rem 3.5rem;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 1rem;
    font-size: 1rem;
    color: #0F172A;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2);
}

.unified-search-wrapper input:focus {
    outline: none;
    box-shadow: 0 20px 40px -10px rgba(0, 0, 0, 0.2), 0 0 0 3px rgba(42, 157, 143, 0.2);
}

.unified-search-wrapper .search-icon {
    position: absolute;
    left: 1.25rem;
    top: 50%;
    transform: translateY(-50%);
    color: #64748B;
}

.unified-search-wrapper .search-btn {
    position: absolute;
    right: 0.5rem;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
}

.unified-search-wrapper .search-btn:hover {
    filter: brightness(1.1);
}

/* --------------------------------------------------------------------------
   ANIMATIONS
   -------------------------------------------------------------------------- */
.fade-up {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeUp 0.6s ease forwards;
}

.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
