/* ==========================================
   Thèmes Saisonniers & Dark Mode
   ========================================== */

/* Dark Mode */
body.dark-mode {
    --bg-color: #0f172a;
    --bg-secondary: #1e293b;
    --bg-dark: #020617;
    
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-light: #94a3b8;
    
    --border-color: #334155;
}

body.dark-mode .site-header {
    background: rgba(15, 23, 42, 0.95);
}

body.dark-mode .hero-background {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

body.dark-mode .hero-background::before {
    background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
}

body.dark-mode .hero-background::after {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
}

body.dark-mode .value-card,
body.dark-mode .service-card {
    background: var(--bg-secondary);
    border-color: var(--border-color);
}

body.dark-mode .nav-menu {
    background: var(--bg-color);
}

/* Thème Hiver */
body[data-theme="winter"] {
    --primary-color: #2d5f4d;
    --primary-dark: #1e4038;
    --primary-light: #38a169;
}

body[data-theme="winter"] .hero-background {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
}

body[data-theme="winter"].dark-mode .hero-background {
    background: linear-gradient(135deg, #14532d 0%, #052e16 100%);
}

/* Thème Été */
body[data-theme="summer"] {
    --primary-color: #0ea5e9;
    --primary-dark: #0284c7;
    --primary-light: #38bdf8;
}

body[data-theme="summer"] .hero-background {
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

body[data-theme="summer"].dark-mode .hero-background {
    background: linear-gradient(135deg, #0c4a6e 0%, #082f49 100%);
}

/* Thème Aurora 🟦🟦 - Bleu/Turquoise moderne (par défaut) */
body[data-theme="aurora"] {
    --primary-color: #06b6d4;   /* cyan-500 */
    --primary-dark: #0e7490;    /* cyan-700 */
    --primary-light: #67e8f9;   /* cyan-300 */
}

body[data-theme="aurora"] .hero-background {
    /* Dégradé inspiré des captures: bleu -> turquoise */
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 50%, #22d3ee 100%);
    position: relative;
    overflow: hidden;
}

/* léger effet de halo et particules discrètes */
body[data-theme="aurora"] .hero-background::before {
    content: '';
    position: absolute;
    inset: -20% -10%;
    background: radial-gradient(circle at 20% 30%, rgba(255,255,255,.15), transparent 40%),
                radial-gradient(circle at 80% 70%, rgba(255,255,255,.12), transparent 45%);
    filter: blur(2px);
}

body[data-theme="aurora"] .hero-background::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,0));
}

/* Footer Aurora avec dégradé bleu-turquoise */
body[data-theme="aurora"] .site-footer {
    background: linear-gradient(135deg, #0e7490 0%, #06b6d4 50%, #22d3ee 100%);
}

/* Footer Winter */
body[data-theme="winter"] .site-footer {
    background: linear-gradient(135deg, #1e4038 0%, #2d5f4d 50%, #38a169 100%);
}

/* Footer Summer */
body[data-theme="summer"] .site-footer {
    background: linear-gradient(135deg, #0284c7 0%, #0ea5e9 50%, #38bdf8 100%);
}

/* Footer Galaxy */
body[data-theme="galaxy"] .site-footer {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
}

/* Footer Sunset */
body[data-theme="sunset"] .site-footer {
    background: linear-gradient(135deg, #ea580c 0%, #f97316 50%, #fb923c 100%);
}

/* Footer Ocean */
body[data-theme="ocean"] .site-footer {
    background: linear-gradient(135deg, #0e7490 0%, #0891b2 50%, #06b6d4 100%);
}

/* Thème Galaxy 🌌 - ÉPOUSTOUFLANT */
body[data-theme="galaxy"] {
    --primary-color: #8b5cf6;
    --primary-dark: #6d28d9;
    --primary-light: #a78bfa;
}

body[data-theme="galaxy"] .hero-background {
    background: linear-gradient(135deg, #1e1b4b 0%, #312e81 50%, #4c1d95 100%);
    position: relative;
    overflow: hidden;
}

body[data-theme="galaxy"] .hero-background::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, white, transparent),
        radial-gradient(2px 2px at 60% 70%, white, transparent),
        radial-gradient(1px 1px at 50% 50%, white, transparent),
        radial-gradient(1px 1px at 80% 10%, white, transparent),
        radial-gradient(2px 2px at 90% 60%, white, transparent),
        radial-gradient(1px 1px at 33% 85%, white, transparent);
    background-size: 200% 200%;
    animation: galaxyShift 20s ease-in-out infinite;
    opacity: 0.6;
}

@keyframes galaxyShift {
    0%, 100% { background-position: 0% 0%; }
    50% { background-position: 100% 100%; }
}

body[data-theme="galaxy"] .hero-background::after {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(ellipse at center, rgba(139, 92, 246, 0.3) 0%, transparent 70%);
    animation: nebulaPulse 8s ease-in-out infinite;
}

@keyframes nebulaPulse {
    0%, 100% { 
        transform: scale(1) rotate(0deg);
        opacity: 0.3;
    }
    50% { 
        transform: scale(1.2) rotate(180deg);
        opacity: 0.6;
    }
}

/* Thème Sunset 🌅 - Chaleureux et dynamique */
body[data-theme="sunset"] {
    --primary-color: #f97316;
    --primary-dark: #ea580c;
    --primary-light: #fb923c;
}

body[data-theme="sunset"] .hero-background {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 30%, #fdba74 60%, #fb923c 100%);
    position: relative;
    overflow: hidden;
}

body[data-theme="sunset"] .hero-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: repeating-linear-gradient(
        45deg,
        transparent,
        transparent 50px,
        rgba(251, 146, 60, 0.1) 50px,
        rgba(251, 146, 60, 0.1) 100px
    );
    animation: sunRays 15s linear infinite;
}

@keyframes sunRays {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    100% { transform: translate(-50%, -50%) rotate(360deg); }
}

body[data-theme="sunset"] .hero-background::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to top, rgba(234, 88, 12, 0.2), transparent);
}

/* Thème Ocean 🌊 - Fluide et élégant */
body[data-theme="ocean"] {
    --primary-color: #0891b2;
    --primary-dark: #0e7490;
    --primary-light: #06b6d4;
}

body[data-theme="ocean"] .hero-background {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 30%, #a5f3fc 60%, #67e8f9 100%);
    position: relative;
    overflow: hidden;
}

body[data-theme="ocean"] .hero-background::before {
    content: '';
    position: absolute;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 50%, rgba(6, 182, 212, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(14, 116, 144, 0.2) 0%, transparent 50%);
    animation: oceanWave 10s ease-in-out infinite;
}

@keyframes oceanWave {
    0%, 100% {
        transform: translateX(0) translateY(0);
    }
    50% {
        transform: translateX(-10%) translateY(-5%);
    }
}

body[data-theme="ocean"] .hero-background::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 30%;
    bottom: 0;
    background: linear-gradient(to top, rgba(8, 145, 178, 0.1), transparent);
    animation: tide 6s ease-in-out infinite;
}

@keyframes tide {
    0%, 100% { 
        transform: scaleY(1);
        opacity: 0.1;
    }
    50% { 
        transform: scaleY(1.2);
        opacity: 0.2;
    }
}

/* Animation neige (hiver) */
.snowflake {
    position: fixed;
    top: -10px;
    z-index: 9999;
    user-select: none;
    cursor: default;
    animation-name: snowfall;
    animation-duration: 10s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
    opacity: 0.8;
    color: #dbeafe;
    font-size: 1em;
    pointer-events: none;
}

@keyframes snowfall {
    0% {
        transform: translateY(0vh) rotate(0deg);
        opacity: 0.8;
    }
    100% {
        transform: translateY(100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Transitions douces pour changement de thème */
body,
.site-header,
.hero-background,
.value-card,
.service-card {
    transition: background-color 0.5s ease, color 0.5s ease, border-color 0.5s ease;
}

