/* =====================================================
   MODERN PAGE HERO SYSTEM
   Système de bannière moderne et responsive qui s'adapte
   automatiquement aux 3 thèmes du site
   ===================================================== */

/* ===== MODERN HERO CONTAINER ===== */
.modern-hero {
    position: relative;
    padding: 2.5rem 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg,
            #e3e3e3 0%,
            #c9c9c9 100%);
    overflow: hidden;
    border-radius: 0 0 25px 25px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.08);
}

/* Overlay gradient pour adoucir */
.modern-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.05) 0%,
            rgba(255, 255, 255, 0) 100%);
    pointer-events: none;
    z-index: 1;
}

/* ===== GEOMETRIC SHAPES BACKGROUND ===== */
.modern-hero-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.45;
    z-index: 0;
}

.hero-shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.6);
    filter: blur(60px);
    will-change: transform;
}

.hero-shape-1 {
    width: 400px;
    height: 400px;
    top: -100px;
    right: -100px;
    background: rgba(52, 152, 219, 0.15);
    /* Soft Blue Halo */
    animation: float 10s ease-in-out infinite;
}

.hero-shape-2 {
    width: 300px;
    height: 300px;
    bottom: -80px;
    left: -80px;
    background: rgba(46, 204, 113, 0.1);
    /* Soft Green Halo */
    animation: floatReverse 8s ease-in-out infinite;
}

.hero-shape-3 {
    width: 250px;
    height: 250px;
    top: 10%;
    left: 75%;
    background: rgba(255, 255, 255, 0.6);
    /* White Central Glow */
    animation: pulse 9s ease-in-out infinite;
}

/* ===== CONTENT CONTAINER ===== */
.modern-hero-content {
    position: relative;
    z-index: 2;
    max-width: 1000px;
    margin: 0 auto;
    text-align: center;
}

/* ===== BADGE (optionnel) ===== */
.modern-hero-badge {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
    border-radius: 50px;
    color: #3498db;
    border: 1px solid rgba(52, 152, 219, 0.3);
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1.5rem;
    animation: fadeInDown 0.6s ease-out;
}

/* ===== TITLE ===== */
.modern-hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    font-weight: 700;
    color: #1a1a1a;
    /* Deeper black for maximum contrast */
    margin: 0 0 1rem 0;
    line-height: 1.2;
    position: relative;
    z-index: 10;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out;
}

/* ===== SUBTITLE/DESCRIPTION ===== */
.modern-hero-description {
    font-size: 1.15rem;
    color: #111;
    /* Very dark for maximum contrast */
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.7;
    font-weight: 600;
    /* Bold for glass readability */
    position: relative;
    /* For layering effects */

    /* Default styles - themes override these */
    /* Background and blur are set by theme files */
    padding: 2rem 2.5rem;
    border-radius: 24px;
    animation: fadeInUp 1s ease-out;
}

/* Remove shine - not needed for Liquid Glass */
.modern-hero-description::before {
    display: none;
}

/* ===== DECORATIVE ELEMENTS ===== */
.modern-hero-accent {
    width: 60px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    margin: 2rem auto 0;
    border-radius: 2px;
    animation: scaleIn 0.8s ease-out 0.3s both;
}

/* ===== ANIMATIONS ===== */
@keyframes float {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(80px, -150px) rotate(12deg);
    }

    75% {
        transform: translate(-50px, -200px) rotate(-8deg);
    }
}

@keyframes floatReverse {

    0%,
    100% {
        transform: translate(0, 0) rotate(0deg);
    }

    25% {
        transform: translate(-80px, 150px) rotate(-12deg);
    }

    75% {
        transform: translate(50px, 200px) rotate(8deg);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.6);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

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

@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

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

@keyframes scaleIn {
    from {
        transform: scaleX(0);
        opacity: 0;
    }

    to {
        transform: scaleX(1);
        opacity: 1;
    }
}

/* ===== COMPACT VARIANT (pour les pages avec moins de contenu) ===== */
.modern-hero.compact {
    padding: 2rem 2rem;
}

.modern-hero.compact .modern-hero-title {
    font-size: 2rem;
}

.modern-hero.compact .modern-hero-description {
    font-size: 0.95rem;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
    .modern-hero {
        padding: 3rem 2rem;
    }

    .modern-hero-title {
        font-size: 2.2rem;
    }

    .modern-hero-description {
        font-size: 1.05rem;
    }
}

@media (max-width: 768px) {
    .modern-hero {
        padding: 2.5rem 1.5rem;
        border-radius: 0 0 25px 25px;
    }

    .modern-hero.compact {
        padding: 2rem 1.5rem;
    }

    .modern-hero-title {
        font-size: 1.85rem;
    }

    .modern-hero.compact .modern-hero-title {
        font-size: 1.65rem;
    }

    .modern-hero-description {
        font-size: 0.95rem;
        line-height: 1.5;
    }

    .modern-hero.compact .modern-hero-description {
        font-size: 0.9rem;
    }

    .modern-hero-badge {
        font-size: 0.7rem;
        padding: 0.35rem 1rem;
    }

    /* Simplifier les animations sur mobile */
    .hero-shape {
        display: none;
    }

    .modern-hero-shapes {
        background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.2) 0%, transparent 60%);
    }
}

@media (max-width: 480px) {
    .modern-hero {
        padding: 2.5rem 1rem;
        border-radius: 0 0 20px 20px;
    }

    .modern-hero.compact {
        padding: 2rem 1rem;
    }

    .modern-hero-title {
        font-size: 1.75rem;
    }

    .modern-hero.compact .modern-hero-title {
        font-size: 1.5rem;
    }

    .modern-hero-description {
        font-size: 0.95rem;
    }

    .modern-hero-accent {
        width: 40px;
        height: 3px;
        margin-top: 1.5rem;
    }
}

/* ===== THEME-SPECIFIC ADJUSTMENTS ===== */
/* Ces ajustements permettent d'adapter le hero selon le thème actif */

/* Pour le thème Bleu Horizon - gradient bleu-gris */
body.bleu-horizon-theme .modern-hero,
.bleu-horizon-theme .modern-hero {
    background: linear-gradient(135deg,
            #dbe4e9 0%,
            /* Bleu-gris clair */
            #b4c5d1 100%) !important;
    /* Bleu-gris moyen */
}

body.bleu-horizon-theme .modern-hero-description,
.bleu-horizon-theme .modern-hero-description {
    background: rgba(255, 255, 255, 0.85) !important;
    /* Plus opaque pour contraste sur bleu */
}

/* Pour le thème Pop Art - bordures plus prononcées */
body:has([data-theme="popart"]) .modern-hero,
.popart-theme .modern-hero {
    border: 5px solid var(--pop-black, #000);
    border-bottom: none;
    box-shadow: 10px 10px 0px var(--pop-black, #000);
}

body:has([data-theme="popart"]) .modern-hero-badge,
.popart-theme .modern-hero-badge {
    border: 3px solid var(--pop-black, #000);
    background: var(--pop-white, #fff);
    color: var(--pop-black, #000);
    font-family: 'Bangers', cursive;
}

body:has([data-theme="popart"]) .modern-hero-title,
.popart-theme .modern-hero-title {
    font-family: 'Bangers', cursive;
    -webkit-text-stroke: 2px rgba(0, 0, 0, 0.3);
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* Pour le thème Aquarelle - effets plus doux */
body:has([data-theme="aquarelle"]) .modern-hero,
.aquarelle-theme .modern-hero {
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

body:has([data-theme="aquarelle"]) .modern-hero::before,
.aquarelle-theme .modern-hero::before {
    background: linear-gradient(135deg,
            rgba(255, 255, 255, 0.15) 0%,
            rgba(255, 255, 255, 0.05) 100%);
}

/* ===== ACCESSIBILITY ===== */
@media (prefers-reduced-motion: reduce) {

    .modern-hero *,
    .hero-shape {
        animation: none !important;
        transition: none !important;
    }
}

/* ===== PRINT STYLES ===== */
@media print {
    .modern-hero {
        background: white !important;
        color: black !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        padding: 1rem !important;
    }

    .modern-hero-title,
    .modern-hero-description {
        color: black !important;
        text-shadow: none !important;
    }

    .modern-hero-shapes,
    .hero-shape,
    .modern-hero-badge {
        display: none !important;
    }
}