/* Correction du thème - Fond plus sombre et logo header */

/* Variables corrigées pour un fond plus sombre */
:root {
    /* Backgrounds plus sombres pour moins agresser les yeux */
    --background-primary: #0a0a15 !important; /* Plus sombre */
    --background-secondary: #111122 !important; /* Plus sombre */
    --background-tertiary: #0f1419 !important; /* Plus sombre */
    
    /* Gradients plus sombres */
    --gradient-animated: linear-gradient(-45deg, #4338ca, #6d28d9, #0891b2, #d97706) !important;
    --gradient-mesh: radial-gradient(circle at 20% 50%, #4338ca 0%, transparent 50%), 
                     radial-gradient(circle at 80% 20%, #6d28d9 0%, transparent 50%), 
                     radial-gradient(circle at 40% 80%, #0891b2 0%, transparent 50%) !important;
    
    /* Glassmorphisme plus subtil */
    --glass-bg: rgba(255, 255, 255, 0.03) !important;
    --glass-border: rgba(255, 255, 255, 0.08) !important;
}

/* Fond du body plus sombre */
body {
    background: linear-gradient(-45deg, #0a0a15, #111122, #0f1419, #0a0a15) !important;
    background-size: 400% 400% !important;
    animation: gradientShift 15s ease infinite !important;
}

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

/* Logo du header - garder l'image mais avec fond sombre */
.logo-img {
    filter: brightness(1.1) contrast(1.05) !important;
    background: rgba(0, 0, 0, 0.6) !important; /* Fond sombre mais pas complètement noir */
    border-radius: 50% !important;
    padding: 6px !important;
    border: 2px solid rgba(255, 255, 255, 0.15) !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.4) !important;
}

.logo-img:hover {
    filter: brightness(1.2) contrast(1.1) !important;
    border-color: var(--primary-color) !important;
    background: rgba(0, 0, 0, 0.7) !important;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3) !important;
}

/* Sections avec fond plus sombre */
.hero,
.about,
.services,
.portfolio,
.contact {
    background: rgba(10, 10, 21, 0.8) !important;
}

/* Cards avec fond plus sombre */
.service-card,
.portfolio-item,
.contact-form,
.about-content {
    background: rgba(17, 17, 34, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
}

/* Header avec fond plus sombre */
header {
    background: rgba(10, 10, 21, 0.95) !important;
    backdrop-filter: blur(20px) !important;
}

/* Footer avec fond plus sombre */
footer {
    background: rgba(10, 10, 21, 0.95) !important;
}

/* Amélioration des contrastes pour les textes */
.section-title {
    color: #f1f5f9 !important;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6) !important;
}

.tagline {
    color: #e2e8f0 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5) !important;
}

/* Boutons avec meilleur contraste */
.btn {
    background: rgba(99, 102, 241, 0.8) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 4px 15px rgba(99, 102, 241, 0.2) !important;
}

.btn:hover {
    background: rgba(99, 102, 241, 1) !important;
    box-shadow: 0 6px 20px rgba(99, 102, 241, 0.4) !important;
}

/* Navigation avec meilleur contraste */
.nav-links a {
    color: #f1f5f9 !important;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.4) !important;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--primary-color) !important;
    text-shadow: 0 0 8px rgba(99, 102, 241, 0.5) !important;
}

/* Stylisation du nom "William Gradel" dans le héro */
.hero-logo {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 800 !important;
    font-size: 4rem !important;
    background: linear-gradient(135deg, #ffffff, #6366f1, #8b5cf6) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-align: center !important;
    margin-bottom: 2rem !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3) !important;
    transition: all 0.5s ease !important;
    letter-spacing: 2px !important;
    position: relative !important;
}

.hero-logo::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.5; }
    50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.8; }
}

.hero-logo:hover {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 0 20px rgba(99, 102, 241, 0.4)) !important;
}

/* Stylisation du nom dans le footer */
.footer-logo {
    font-family: 'Poppins', sans-serif !important;
    font-weight: 700 !important;
    font-size: 1.5rem !important;
    background: linear-gradient(90deg, #ffffff, #6366f1) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-align: center !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    position: relative !important;
}

.footer-logo::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    transition: width 0.3s ease;
}

.footer-logo:hover::after {
    width: 100%;
}

.footer-logo:hover {
    transform: scale(1.05) !important;
    filter: drop-shadow(0 0 10px rgba(99, 102, 241, 0.3)) !important;
}

/* Responsive pour les noms stylisés */
@media (max-width: 768px) {
    .hero-logo {
        font-size: 2.8rem !important;
        letter-spacing: 1px !important;
    }
    
    .footer-logo {
        font-size: 1.2rem !important;
    }
}

@media (max-width: 480px) {
    .hero-logo {
        font-size: 2.2rem !important;
        letter-spacing: 0.5px !important;
    }
    
    .footer-logo {
        font-size: 1rem !important;
    }
}
