/* ========================================
   AYIRA MUSEUM - STYLES GLOBAUX CORRIGÉS
   public/css/style.css
   ✅ Background qui change VRAIMENT avec le thème
   ======================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-black: #000000;
    --secondary-black: #0a0a0a;
    --tertiary-black: #1a1a1a;
    --ayira-orange: #f39c12;
    --ayira-orange-dark: #d68910;
    --ayira-brown: #8b4513;
    --ayira-red: #d32f2f;
    --gold: #ffd700;
    --neon-cyan: #00fff9;
    --neon-purple: #9d00ff;
    --neon-pink: #ff00ff;
    --white: #ffffff;
}

/* ========================================
   ✅ BODY - BACKGROUND QUI CHANGE
   ======================================== */

body {
    font-family: 'Inter', sans-serif;
    background: #000000 !important; /* Par défaut noir */
    color: #ffffff;
    overflow-x: hidden;
    transition: background 0.3s ease, color 0.3s ease;
    min-height: 100vh;
}

/* ✅ MODE CLAIR - Background blanc */
body.light-theme {
    background: #f5f5f5 !important;
    color: #1a1a1a;
}

/* ========================================
   VARIABLES DE THÈME
   ======================================== */

/* Thème clair */
body.light-theme {
    --bg-primary: #f5f5f5;
    --bg-secondary: #ffffff;
    --bg-tertiary: #e8e8e8;
    --text-color: #1a1a1a;
    --text-secondary: #2c3e50;
    --text-muted: #5a6c7d;
    --hero-bg: #f5f5f5;
    --hero-gradient-start: #ffffff;
    --hero-gradient-mid: #f5f5f5;
    --hero-gradient-end: #f0f0f0;
    --grid-opacity: 0.3;
    --neon-opacity: 0.1;
    --shadow-color: rgba(0, 0, 0, 0.1);
}

/* Thème sombre (par défaut) */
body:not(.light-theme) {
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #1a1a1a;
    --text-color: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.7);
    --text-muted: rgba(255, 255, 255, 0.5);
    --hero-bg: #000000;
    --hero-gradient-start: #000000;
    --hero-gradient-mid: #0a0505;
    --hero-gradient-end: #000000;
    --grid-opacity: 0.5;
    --neon-opacity: 0.3;
    --shadow-color: rgba(243, 156, 18, 0.4);
}

/* ========================================
   HERO SECTION AVEC EFFET 3D
   ======================================== */

.hero-immersive {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: linear-gradient(180deg, 
        var(--hero-gradient-start) 0%, 
        var(--hero-gradient-mid) 50%, 
        var(--hero-gradient-end) 100%
    );
    transition: background 0.3s ease;
}

/* Grille de fond animée */
.grid-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(243, 156, 18, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(243, 156, 18, 0.03) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: gridMove 20s linear infinite;
    opacity: var(--grid-opacity);
    transition: opacity 0.3s ease;
}

@keyframes gridMove {
    0% {
        transform: perspective(500px) rotateX(60deg) translateY(0);
    }
    100% {
        transform: perspective(500px) rotateX(60deg) translateY(50px);
    }
}

/* Effets de lumière néon */
.neon-lights {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.neon-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: var(--neon-opacity);
    animation: float 15s ease-in-out infinite;
    transition: opacity 0.3s ease;
}

.neon-orb.orange {
    width: 400px;
    height: 400px;
    background: var(--ayira-orange);
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.neon-orb.red {
    width: 350px;
    height: 350px;
    background: var(--ayira-red);
    bottom: 20%;
    right: 15%;
    animation-delay: 3s;
}

.neon-orb.gold {
    width: 300px;
    height: 300px;
    background: var(--gold);
    top: 50%;
    right: 20%;
    animation-delay: 6s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* ========================================
   MASQUE 3D ANIMÉ
   ======================================== */

.mask-3d-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    pointer-events: none;
    z-index: 5;
}

.mask-3d {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
    filter: drop-shadow(0 0 40px rgba(243, 156, 18, 0.8))
            drop-shadow(0 0 80px rgba(211, 47, 47, 0.6));
}

/* Thème clair - Ombre plus subtile */
body.light-theme .mask-3d {
    filter: drop-shadow(0 0 20px rgba(243, 156, 18, 0.4))
            drop-shadow(0 0 40px rgba(211, 47, 47, 0.3));
}

.mask-3d svg {
    width: 100%;
    height: 100%;
}

/* Animation de pulsation */
@keyframes pulse-glow {
    0%, 100% {
        filter: drop-shadow(0 0 40px rgba(243, 156, 18, 0.8))
                drop-shadow(0 0 80px rgba(211, 47, 47, 0.6));
    }
    50% {
        filter: drop-shadow(0 0 60px rgba(243, 156, 18, 1))
                drop-shadow(0 0 120px rgba(211, 47, 47, 0.8));
    }
}

@keyframes pulse-glow-light {
    0%, 100% {
        filter: drop-shadow(0 0 20px rgba(243, 156, 18, 0.4))
                drop-shadow(0 0 40px rgba(211, 47, 47, 0.3));
    }
    50% {
        filter: drop-shadow(0 0 30px rgba(243, 156, 18, 0.6))
                drop-shadow(0 0 60px rgba(211, 47, 47, 0.5));
    }
}

body:not(.light-theme) .mask-3d {
    animation: pulse-glow 3s ease-in-out infinite;
}

body.light-theme .mask-3d {
    animation: pulse-glow-light 3s ease-in-out infinite;
}

/* ========================================
   CONTENU HERO
   ======================================== */

.hero-content {
    position: relative;
    z-index: 10;
    text-align: center;
    max-width: 1200px;
    padding: 2rem;
}

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 700;
    background: linear-gradient(135deg, 
        var(--ayira-orange) 0%, 
        var(--gold) 50%, 
        var(--ayira-red) 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    letter-spacing: 0.05em;
    transition: all 0.3s ease;
}

/* Thème sombre - Effet glow prononcé */
body:not(.light-theme) .hero-title {
    text-shadow: 0 0 60px rgba(243, 156, 18, 0.5);
    animation: title-glow 4s ease-in-out infinite;
}

/* Thème clair - Effet glow subtil */
body.light-theme .hero-title {
    text-shadow: 0 0 20px rgba(243, 156, 18, 0.2);
    animation: title-glow-light 4s ease-in-out infinite;
}

@keyframes title-glow {
    0%, 100% {
        text-shadow: 0 0 40px rgba(243, 156, 18, 0.5);
    }
    50% {
        text-shadow: 0 0 80px rgba(243, 156, 18, 0.8);
    }
}

@keyframes title-glow-light {
    0%, 100% {
        text-shadow: 0 0 10px rgba(243, 156, 18, 0.2);
    }
    50% {
        text-shadow: 0 0 20px rgba(243, 156, 18, 0.4);
    }
}

.hero-subtitle {
    font-size: clamp(1.2rem, 3vw, 2rem);
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    transition: color 0.3s ease;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: var(--text-secondary);
    max-width: 800px;
    margin: 0 auto 3rem;
    line-height: 1.8;
    transition: color 0.3s ease;
}

/* ========================================
   BOUTON CTA PRINCIPAL
   ======================================== */

.cta-button {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: linear-gradient(135deg, var(--ayira-orange), var(--ayira-red));
    color: var(--white);
    padding: 1.5rem 3.5rem;
    font-size: 1.3rem;
    font-family: 'Cinzel', serif;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 40px var(--shadow-color);
    position: relative;
    overflow: hidden;
    letter-spacing: 0.05em;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-5px) scale(1.05);
}

/* Thème sombre - Shadow coloré */
body:not(.light-theme) .cta-button:hover {
    box-shadow: 0 20px 60px rgba(243, 156, 18, 0.6),
                0 0 100px rgba(243, 156, 18, 0.4);
}

/* Thème clair - Shadow neutre */
body.light-theme .cta-button:hover {
    box-shadow: 0 20px 60px rgba(243, 156, 18, 0.4),
                0 0 50px rgba(243, 156, 18, 0.2);
}

.cta-button:active {
    transform: translateY(-3px) scale(1.02);
}

.cta-icon {
    font-size: 1.8rem;
    animation: icon-pulse 2s infinite;
}

@keyframes icon-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
}

/* ========================================
   SCROLL INDICATOR
   ======================================== */

.scroll-indicator {
    position: absolute;
    bottom: 3rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.scroll-mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--ayira-orange);
    border-radius: 20px;
    position: relative;
    animation: mouse-bounce 2s infinite;
}

.scroll-wheel {
    width: 4px;
    height: 10px;
    background: var(--ayira-orange);
    border-radius: 2px;
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    animation: wheel-scroll 2s infinite;
}

@keyframes mouse-bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

@keyframes wheel-scroll {
    0% {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateX(-50%) translateY(20px);
    }
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 768px) {
    .mask-3d-container {
        width: 400px;
        height: 400px;
    }

    .hero-content {
        padding: 1rem;
    }

    .cta-button {
        padding: 1.2rem 2.5rem;
        font-size: 1.1rem;
    }

    .neon-orb {
        filter: blur(60px);
    }
}

/* ========================================
   ANIMATIONS GLOBALES
   ======================================== */

.fade-in-up {
    animation: fadeInUp 0.8s ease-out;
}

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

/* ========================================
   SECTIONS GÉNÉRIQUES - ✅ BACKGROUND DYNAMIQUE
   ======================================== */

section {
    background: var(--bg-primary);
    color: var(--text-color);
    transition: background 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ========================================
   CARTES GÉNÉRIQUES
   ======================================== */

.card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(243, 156, 18, 0.2);
    border-radius: 12px;
    padding: 2rem;
    transition: all 0.3s ease;
}

body.light-theme .card {
    background: rgba(0, 0, 0, 0.02);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.card:hover {
    border-color: var(--ayira-orange);
    transform: translateY(-5px);
}

body:not(.light-theme) .card:hover {
    box-shadow: 0 10px 40px rgba(243, 156, 18, 0.3);
}

body.light-theme .card:hover {
    box-shadow: 0 10px 40px rgba(243, 156, 18, 0.2);
}

/* ========================================
   UTILITAIRES
   ======================================== */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--text-color);
}

.text-secondary {
    color: var(--text-secondary);
}

.text-muted {
    color: var(--text-muted);
}

.text-orange {
    color: var(--ayira-orange);
}

.text-gold {
    color: var(--gold);
}

.bg-primary {
    background: var(--bg-primary);
}

.bg-secondary {
    background: var(--bg-secondary);
}

.bg-tertiary {
    background: var(--bg-tertiary);
}

/* Marges */
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-5 { margin-bottom: 3rem; }

/* Padding */
.p-1 { padding: 0.5rem; }
.p-2 { padding: 1rem; }
.p-3 { padding: 1.5rem; }
.p-4 { padding: 2rem; }
.p-5 { padding: 3rem; }

/* Flexbox */
.flex {
    display: flex;
}

.flex-column {
    flex-direction: column;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

.align-center {
    align-items: center;
}

.gap-1 { gap: 0.5rem; }
.gap-2 { gap: 1rem; }
.gap-3 { gap: 1.5rem; }
.gap-4 { gap: 2rem; }

/* ========================================
   TRANSITIONS GLOBALES
   ======================================== */

* {
    transition: background-color 0.3s ease, 
                color 0.3s ease, 
                border-color 0.3s ease;
}