/**
 * Styles principaux - Design "Neuro-Tech"
 * Intégration moderne pour Django & Bootstrap 5
 */

@import url("variables.fab5f50268aa.css");
@import url("components.d73ae292338c.css");

/* ======================================
   RESET & BASE
====================================== */
html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    color: var(--text-color);
    /* Force dark background globally for consistent navbar appearance */
    background-color: var(--dark-bg);
    line-height: 1.7;
    overflow-x: hidden;
    /* Compensation pour le header fixe */
    padding-top: 0; 
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Main content expand */
body > main { 
    flex: 1;
}

/* Typography Enhancements */
h1, h2, h3, h4, h5, h6 {
    color: var(--text-emphasis);
    font-weight: var(--font-weight-bold);
    letter-spacing: -0.02em;
}

h1 {
    font-size: var(--font-size-3xl);
    background: linear-gradient(135deg, var(--text-emphasis) 0%, var(--primary-color) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: var(--spacing-lg);
}

h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--spacing-md);
}

p {
    margin-bottom: var(--spacing-md);
}

/* Code & Data Text */
code, pre, .font-mono {
    font-family: var(--font-mono);
    color: var(--accent-color);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.1em 0.3em;
    border-radius: var(--border-radius-sm);
    font-size: 0.9em;
}

/* ======================================
   LINKS & INTERACTIONS
====================================== */
a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all var(--transition-fast);
    position: relative;
}

a:hover {
    color: var(--primary-dark);
}

/* Custom Link Underline Effect */
a.text-link {
    background-image: linear-gradient(to right, var(--primary-color), var(--primary-color));
    background-size: 0% 2px;
    background-repeat: no-repeat;
    background-position: left bottom;
    padding-bottom: 2px;
}

a.text-link:hover {
    background-size: 100% 2px;
}

/* ======================================
   LAYOUT UTILITIES
====================================== */
.section {
    padding: var(--spacing-2xl) 0;
    position: relative;
    overflow: hidden;
}

.section-bg-alt {
    background-color: var(--light-bg-alt);
}

.section-dark {
    background-color: var(--dark-bg);
    color: var(--text-light);
}

.section-dark h1, .section-dark h2, .section-dark h3 {
    color: white;
    background: none;
    -webkit-text-fill-color: white;
}

/* Glassmorphism Containers */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border: 1px solid var(--glass-border);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-lg);
}

/* ======================================
   HEADER / NAVBAR (Redesigned & Consistent)
====================================== */
.navbar {
    background: rgba(2, 6, 23, 0.8) !important; /* Dark bg (Slate 950) consistent with body */
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    padding: 0.75rem 0;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
}

/* Scrolled state styling */
.navbar.scrolled {
    padding: 0.5rem 0;
    background: rgba(2, 6, 23, 0.95) !important;
    border-bottom-color: rgba(6, 182, 212, 0.2); /* Cyan hint when scrolled */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
    height: 42px;
    transition: transform var(--transition-bounce);
    filter: drop-shadow(0 0 5px rgba(6, 182, 212, 0.3));
}

.navbar-brand:hover img {
    transform: scale(1.1) rotate(-2deg);
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6));
}

/* Navigation Links */
.nav-link {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(255, 255, 255, 0.7) !important;
    padding: 0.5rem 1rem !important;
    margin: 0 0.2rem;
    border-radius: var(--border-radius-md);
    transition: all 0.3s ease;
    position: relative;
    border: 1px solid transparent;
}

.nav-link i {
    color: var(--primary-color); /* Always colored icons for consistency */
    opacity: 0.7;
    transition: all 0.3s ease;
    margin-right: 0.4rem !important;
}

.nav-link:hover {
    color: white !important;
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.nav-link:hover i {
    opacity: 1;
    transform: scale(1.1);
    text-shadow: 0 0 10px var(--primary-color);
}

/* Active State - Neuro Glow */
.nav-link.active {
    color: white !important;
    background: rgba(6, 182, 212, 0.1);
    border-color: rgba(6, 182, 212, 0.3);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.15), inset 0 0 10px rgba(6, 182, 212, 0.05);
}

.nav-link.active i {
    opacity: 1;
    filter: drop-shadow(0 0 5px var(--primary-color));
}

/* Header Buttons (User Actions) */
.header-actions .btn {
    padding: 0.4rem 1rem;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 36px; /* Consistent height */
}

/* Mobile Toggle */
.navbar-toggler {
    border: none;
    padding: 0;
    color: white;
}

.navbar-toggler:focus {
    box-shadow: none;
}

/* ======================================
   LANGUAGE SELECTOR (New)
====================================== */
.language-selector .dropdown-item {
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.language-selector .dropdown-item:hover {
    background-color: rgba(255, 255, 255, 0.1) !important;
}

.language-selector .dropdown-item.active {
    background-color: rgba(255, 255, 255, 0.2) !important;
}

.language-selector .dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 255, 255, 0.25);
}

.language-selector .dropdown-menu {
    animation: fadeIn 0.15s ease-in-out;
}

/* Language buttons form reset */
.lang-btn-reset {
    border: none;
    background: none;
    width: 100%;
    padding: 0;
    margin: 0;
    text-align: inherit;
}

/* ======================================
   FOOTER (Modern Redesign)
====================================== */
.site-footer {
    background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
    color: #cbd5e1;
    padding: 0;
    position: relative;
    overflow: hidden;
    font-size: 1rem;
    margin-top: auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Top Gradient Line */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    box-shadow: 0 0 20px rgba(6, 182, 212, 0.5);
}

/* Subtle pattern overlay */
.site-footer::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 50px 50px;
    pointer-events: none;
    opacity: 0.5;
}

.footer-content {
    padding: 4rem 0 2rem;
    position: relative;
    z-index: 1;
}

/* Brand Section */
.footer-brand-name {
    background: linear-gradient(135deg, var(--primary-color) 0%, #2563eb 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 0.1em;
}

.footer-description {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.7;
}

.footer-copyright {
    color: #64748b;
    font-size: 0.9rem;
}

/* Headings */
.footer-heading {
    color: white !important;
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.footer-heading::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -8px;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
    box-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

/* Footer Links */
.footer-link {
    color: #cbd5e1 !important;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all var(--transition-fast);
    display: inline-flex;
    align-items: center;
}

.footer-link:hover {
    color: var(--primary-color) !important;
    transform: translateX(5px);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.footer-link i {
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.footer-link:hover i {
    opacity: 1;
}

/* Social Links */
.footer-social-link {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    color: #cbd5e1 !important;
    font-size: 1.1rem;
    transition: all var(--transition-fast);
    text-decoration: none;
}

.footer-social-link:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(6, 182, 212, 0.3);
}

/* Bottom Bar */
.footer-bottom {
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    position: relative;
    z-index: 1;
}

.footer-bottom-text {
    color: #94a3b8;
    font-size: 0.9rem;
}

.footer-bottom-link {
    color: white;
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-fast);
    padding: 0 0.25rem;
}

.footer-bottom-link:hover {
    color: var(--primary-color);
    text-shadow: 0 0 10px rgba(6, 182, 212, 0.5);
}

.footer-logo {
    filter: drop-shadow(0 0 10px rgba(6, 182, 212, 0.3));
    transition: var(--transition-normal);
}

.footer-logo:hover {
    filter: drop-shadow(0 0 15px rgba(6, 182, 212, 0.6));
    transform: scale(1.05) rotate(-5deg);
}

/* Heart Pulse Animation */
.animate-pulse {
    animation: pulse 2s infinite;
}

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

/* ======================================
   FORMS - Dark Mode
====================================== */
.form-control {
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 0.8rem 1rem;
    border-radius: var(--border-radius-md);
    font-size: 1rem;
    transition: var(--transition-normal);
    color: white;
}

.form-control:focus {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(6, 182, 212, 0.15);
    color: white;
}

.form-control::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.form-label {
    font-weight: var(--font-weight-medium);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    color: var(--text-emphasis); /* White */
}

/* ======================================
   ANIMATIONS
====================================== */
@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.animate-float {
    animation: float 6s ease-in-out infinite;
}

.hover-lift {
    transition: var(--transition-normal);
}

.hover-lift:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

@keyframes fadeIn {
    from { 
        opacity: 0; 
        transform: translateY(-10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

/* ======================================
   RESPONSIVE
====================================== */
@media (max-width: 991px) {
    .navbar-collapse {
        background: var(--dark-bg);
        padding: 1rem;
        border-radius: var(--border-radius-md);
        margin-top: 1rem;
        box-shadow: var(--shadow-lg);
        border: 1px solid rgba(255,255,255,0.1);
    }
    
    .nav-link {
        margin: 0.25rem 0;
    }
    
    .header-actions {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid rgba(255,255,255,0.1);
        justify-content: center;
    }
}

/* ... existing code ... */

