/* Hero commun Blog / Glossaire — 6 optimisations visuelles */

/* 1. Gradient enrichi avec profondeur (radial overlays) */
/* 2. Support thème clair/sombre */
.page-hero {
    position: relative;
    overflow: hidden;
    color: white;
    padding: 5rem 1.25rem 4rem;
    margin-bottom: 3rem;
    text-align: center;
    /* Gradient de base */
    background: linear-gradient(135deg, #5a5fca 0%, #6d73e0 40%, #8b5cf6 100%);
    /* Radiaux pour profondeur */
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255, 255, 255, 0.12) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(139, 92, 246, 0.4) 0%, transparent 50%),
        radial-gradient(ellipse 100% 60% at 50% 100%, rgba(0, 0, 0, 0.08) 0%, transparent 60%),
        linear-gradient(135deg, #5a5fca 0%, #6d73e0 40%, #8b5cf6 100%);
    /* 6. Ombre douce et espacement */
    box-shadow: 0 4px 24px rgba(90, 95, 202, 0.15), 0 1px 0 rgba(255, 255, 255, 0.08) inset;
}

/* Thème clair — hero plus doux, tons pastel */
[data-theme="light"] .page-hero {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%);
    background-image:
        radial-gradient(ellipse 80% 50% at 20% 20%, rgba(255, 255, 255, 0.25) 0%, transparent 50%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        linear-gradient(135deg, #6366f1 0%, #7c3aed 50%, #8b5cf6 100%);
    box-shadow: 0 4px 24px rgba(99, 102, 241, 0.2);
}

/* 5. Motif décoratif subtil (points discrets) */
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.15) 1px, transparent 0);
    background-size: 24px 24px;
    pointer-events: none;
    opacity: 0.6;
}

.page-hero-inner {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* 3. Animation d'entrée (fade-in + slide-up) */
.page-hero-inner {
    animation: page-hero-enter 0.6s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    margin: 0 0 0.5rem;
    letter-spacing: -0.02em;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.page-hero p.page-hero-subtitle {
    font-size: 1.1rem;
    opacity: 0.95;
    margin: 0 0 2rem;
    max-width: 36rem;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

/* 4. Champ de recherche glassmorphism */
.page-hero-search {
    position: relative;
    max-width: 560px;
    margin: 0 auto;
}

.page-hero-search .search {
    position: relative;
    display: flex;
    align-items: center;
}

.page-hero-search .search-icon {
    position: absolute;
    left: 1.25rem;
    color: #6b7280;
    font-size: 1.25rem;
    pointer-events: none;
    z-index: 2;
}

.page-hero-search input {
    width: 100%;
    padding: 1rem 1.25rem 1rem 3.5rem;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 16px;
    font-size: 1rem;
    /* Glassmorphism */
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    color: #1f2937;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06), 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.page-hero-search input:hover {
    border-color: rgba(255, 255, 255, 0.7);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

.page-hero-search input::placeholder {
    color: #6b7280;
}

.page-hero-search input:focus {
    outline: none;
    border-color: #5a5fca;
    box-shadow: 0 0 0 4px rgba(90, 95, 202, 0.25), 0 4px 20px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

@keyframes page-hero-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (prefers-reduced-motion: reduce) {
    .page-hero-inner {
        animation: none;
    }
}

@media (max-width: 768px) {
    .page-hero {
        padding: 3rem 1rem 3rem;
    }
    .page-hero h1 {
        font-size: 1.875rem;
    }
    .page-hero p.page-hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }
    .page-hero-search input {
        padding: 0.875rem 1rem 0.875rem 3.25rem;
    }
}
