@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&display=swap');

:root {
    /* Couleurs principales */
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --accent: #06b6d4;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    /* Couleurs de base - Mode clair */
    --bg-primary: #f9fafb;
    --bg-secondary: #ffffff;
    --bg-tertiary: rgba(255, 255, 255, 0.9);
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border-color: rgba(0, 0, 0, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.1);
    
    /* Anciennes variables pour compatibilité */
    --dark: #1f2937;
    --light: #f9fafb;
    --gray: #6b7280;
    --white: #ffffff;
    --gradient-1: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-2: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
    --gradient-3: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    --gradient-4: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
    --gradient-5: linear-gradient(135deg, #10b981 0%, #06b6d4 100%);
    --gradient-6: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Variables pour le mode sombre */
[data-theme="dark"] {
    --bg-primary: #0f172a;
    --bg-secondary: #1e293b;
    --bg-tertiary: rgba(30, 41, 59, 0.9);
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
    --border-color: rgba(255, 255, 255, 0.1);
    --shadow-color: rgba(0, 0, 0, 0.3);
}

/* ============================================
   STYLES POUR LA PAGE MEILLEURS MODÈLES IA
   ============================================ */

/* Header de page premium pour Meilleurs Modèles */
.page-header {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.08) 25%,
        rgba(6, 182, 212, 0.05) 50%,
        rgba(67, 233, 123, 0.03) 75%,
        rgba(99, 102, 241, 0.05) 100%
    );
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 24px;
    margin-bottom: 0;
    margin: 0.5rem 0 2rem;
    padding: 3rem 2rem 0.2rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    min-height: 200px;
    display: flex;
    align-items: center;
}

/* Effet de particules flottantes dans le header */
.page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    animation: headerParticlesFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes headerParticlesFloat {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

/* Effet de lumière animée */
.page-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: headerShine 8s ease-in-out infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes headerShine {
    0%, 100% {
        left: -100%;
        opacity: 0;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
}

.page-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 2;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    flex: 1;
    min-height: inherit;
}

.page-header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: linear-gradient(135deg, 
        #4f46e5 0%, 
        #7c3aed 25%, 
        #06b6d4 50%, 
        #10b981 75%, 
        #4f46e5 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 0.2rem 0;
    letter-spacing: -0.02em;
    animation: titleGradient 4s ease-in-out infinite;
    position: relative;
    display: inline-block;
}

@keyframes titleGradient {
    0%, 100% {
        background-position: 0% 50%;
        transform: translateY(0);
    }
    50% {
        background-position: 100% 50%;
        transform: translateY(-2px);
    }
}

/* Effet de glow pour le titre */
.page-header h1::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.3), transparent);
    transform: translate(-50%, -50%);
    z-index: -1;
    opacity: 0.6;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    0% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        opacity: 0.6;
        transform: translate(-50%, -50%) scale(1.05);
    }
}

.page-header p {
    font-size: clamp(1.1rem, 2vw, 1.4rem);
    color: #64748b;
    font-weight: 500;
    max-width: 700px;
    margin: 0 auto;
    line-height: 1.6;
    position: relative;
    animation: subtitleFadeIn 1s ease-out 0.3s both;
}

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

/* Icônes décoratives flottantes */
.page-header .decoration-icon {
    position: absolute;
    font-size: 2.5rem;
    opacity: 0.7;
    animation: floatIcon 6s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
    -webkit-text-fill-color: initial !important;
    background-clip: border-box !important;
}

.page-header .decoration-icon:nth-child(1) {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.page-header .decoration-icon:nth-child(2) {
    top: 30%;
    right: 15%;
    animation-delay: 2s;
}

.page-header .decoration-icon:nth-child(3) {
    bottom: 25%;
    left: 20%;
    animation-delay: 4s;
}

.page-header .decoration-icon:nth-child(4) {
    bottom: 20%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes floatIcon {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
        opacity: 0.3;
    }
    25% {
        transform: translateY(-10px) rotate(5deg);
        opacity: 0.5;
    }
    50% {
        transform: translateY(5px) rotate(-3deg);
        opacity: 0.4;
    }
    75% {
        transform: translateY(-5px) rotate(2deg);
        opacity: 0.5;
    }
}

/* ============================================
   STYLES POUR LA PAGE DOCUMENTATION MODÈLE
   ============================================ */

.model-documentation {
    max-width: 1000px;
    margin: 0 auto;
    padding: 2rem 0;
}

.model-hero {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    padding: 2rem;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.05) 0%, 
        rgba(139, 92, 246, 0.08) 25%,
        rgba(6, 182, 212, 0.05) 50%,
        rgba(67, 233, 123, 0.03) 75%,
        rgba(99, 102, 241, 0.05) 100%
    );
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    position: relative;
    overflow: hidden;
}

.model-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
    animation: heroParticlesFloat 20s linear infinite;
    pointer-events: none;
    z-index: 0;
}

@keyframes heroParticlesFloat {
    0% {
        transform: rotate(0deg) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: rotate(180deg) scale(1.1);
        opacity: 0.8;
    }
    100% {
        transform: rotate(360deg) scale(1);
        opacity: 0.6;
    }
}

.model-logo {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    position: relative;
    z-index: 2;
}

.model-logo:hover {
    transform: scale(1.05);
}

.model-title-section {
    flex: 1;
    position: relative;
    z-index: 2;
}

.model-title-section h2 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    background: linear-gradient(135deg, 
        #4f46e5 0%, 
        #7c3aed 25%, 
        #06b6d4 50%, 
        #10b981 75%, 
        #4f46e5 100%
    );
    background-size: 200% 200%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
    animation: titleGradient 4s ease-in-out infinite;
}

.model-provider {
    font-size: 1.2rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 1rem;
}

.model-badges {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.model-badge {
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-free {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.badge-open-source {
    background: linear-gradient(135deg, #6366f1, #4f46e5);
    color: white;
}

.badge-moe {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.model-specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.spec-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 2rem;
    border-radius: 16px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.spec-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.spec-card:hover::before {
    left: 100%;
}

.spec-card:hover {
    transform: translateY(-5px);
    box-shadow: 
        0 20px 60px rgba(99, 102, 241, 0.15),
        0 4px 20px rgba(0, 0, 0, 0.08);
}

.spec-card h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1rem;
    position: relative;
}

.spec-card h3::after {
    content: '';
    position: absolute;
    bottom: -0.5rem;
    left: 0;
    width: 50px;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.spec-card p {
    color: #64748b;
    line-height: 1.7;
    font-size: 0.95rem;
}

.model-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    margin-bottom: 3rem;
}

.model-content h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 1.5rem;
    margin-top: 2.5rem;
    position: relative;
}

.model-content h3:first-child {
    margin-top: 0;
}

.model-content h3::before {
    content: '';
    position: absolute;
    left: -3rem;
    top: 50%;
    transform: translateY(-50%);
    width: 2.5rem;
    height: 3px;
    background: linear-gradient(90deg, #6366f1, #8b5cf6);
    border-radius: 2px;
}

.model-content p {
    color: #374151;
    line-height: 1.8;
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
    text-align: justify;
}

.model-links {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    padding: 3rem;
    border-radius: 20px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.model-links h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 2rem;
    text-align: center;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
}

.link-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(226, 232, 240, 0.8);
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.link-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(99, 102, 241, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.link-card:hover::before {
    left: 100%;
}

.link-card:hover {
    transform: translateY(-3px);
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.15),
        0 4px 15px rgba(0, 0, 0, 0.08);
    border-color: rgba(99, 102, 241, 0.3);
}

.link-icon {
    font-size: 2rem;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f1f5f9, #e2e8f0);
    border-radius: 12px;
    flex-shrink: 0;
}

.link-content h4 {
    font-size: 1.1rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}

.link-content p {
    color: #64748b;
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

/* Mode sombre pour la documentation */
[data-theme="dark"] .model-hero {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.1) 0%, 
        rgba(139, 92, 246, 0.15) 25%,
        rgba(6, 182, 212, 0.1) 50%,
        rgba(67, 233, 123, 0.05) 75%,
        rgba(99, 102, 241, 0.1) 100%
    );
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .model-provider {
    color: #94a3b8;
}

[data-theme="dark"] .spec-card,
[data-theme="dark"] .model-content,
[data-theme="dark"] .model-links {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .spec-card h3,
[data-theme="dark"] .model-content h3,
[data-theme="dark"] .model-links h3 {
    color: #f1f5f9;
}

[data-theme="dark"] .spec-card p,
[data-theme="dark"] .model-content p {
    color: #cbd5e1;
}

[data-theme="dark"] .link-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    border-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .link-content h4 {
    color: #f1f5f9;
}

[data-theme="dark"] .link-content p {
    color: #94a3b8;
}

[data-theme="dark"] .link-icon {
    background: linear-gradient(135deg, #374151, #1f2937);
}

/* Responsive pour la documentation */
@media (max-width: 768px) {
    .model-hero {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
        padding: 1.5rem;
    }
    
    .model-logo {
        width: 100px;
        height: 100px;
    }
    
    .model-title-section h2 {
        font-size: clamp(2rem, 4vw, 2.5rem);
    }
    
    .model-specs-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .spec-card {
        padding: 1.5rem;
    }
    
    .model-content,
    .model-links {
        padding: 2rem 1.5rem;
    }
    
    .model-content h3::before {
        left: -1.5rem;
        width: 1rem;
    }
    
    .links-grid {
        grid-template-columns: 1fr;
    }
    
    .link-card {
        padding: 1rem;
    }
    
    .link-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }
}

/* Responsive pour le header */
@media (max-width: 768px) {
    .page-header {
        margin: 1rem 0 1.5rem;
        padding: 2rem 2rem;
        border-radius: 24px;
    }
    
    .page-header h1 {
        font-size: clamp(2rem, 4vw, 3rem);
        margin-bottom: 1rem;
    }
    
    .page-header p {
        font-size: clamp(1rem, 1.5vw, 1.2rem);
    }
    
    .page-header .decoration-icon {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .page-header {
        margin: 1rem 0 1.5rem;
        padding: 1.5rem 1rem;
        border-radius: 16px;
    }
    
    .page-header h1 {
        font-size: clamp(1.8rem, 3.5vw, 2.5rem);
    }
    
    .page-header p {
        font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    }
    
    .page-header .decoration-icon {
        display: none;
    }
}

/* Mode sombre adaptation */
[data-theme="dark"] .page-header {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.08) 0%, 
        rgba(139, 92, 246, 0.12) 25%,
        rgba(6, 182, 212, 0.08) 50%,
        rgba(67, 233, 123, 0.05) 75%,
        rgba(99, 102, 241, 0.08) 100%
    );
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.05) inset;
}

[data-theme="dark"] .page-header p {
    color: #94a3b8;
}

[data-theme="dark"] .page-header::before {
    background: 
        radial-gradient(circle at 20% 30%, rgba(99, 102, 241, 0.25) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(139, 92, 246, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 50% 50%, rgba(6, 182, 212, 0.15) 0%, transparent 40%);
}

/* Reset et styles de base pour les onglets */
.tabs-container,
.tabs-navigation,
.tab-button,
.tabs-content,
.tab-panel,
.models-grid,
.model-card,
.model-header,
.model-icon,
.model-info,
.model-badge,
.model-specs,
.spec-item,
.model-actions,
.btn-test,
.btn-docs {
    box-sizing: border-box;
}

.tabs-container {
    margin-top: 2rem !important;
    clear: both;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.9) 0%, 
        rgba(248, 250, 252, 0.95) 100%
    ) !important;
    border-radius: 20px !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 2px 10px rgba(0, 0, 0, 0.04),
        inset 0 1px 0 rgba(255, 255, 255, 0.8) !important;
    border: 1px solid rgba(226, 232, 240, 0.8) !important;
    overflow: hidden !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
}

.tabs-navigation {
    display: flex !important;
    gap: 0.5rem !important;
    margin: 0 !important;
    padding: 1.5rem 1.5rem 0 !important;
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.8) 0%, 
        rgba(241, 245, 249, 0.9) 100%
    ) !important;
    border-bottom: 1px solid rgba(226, 232, 240, 0.6) !important;
    position: relative !important;
}

.tab-button {
    padding: 1rem 1.8rem !important;
    background: transparent !important;
    border: 2px solid transparent !important;
    border-radius: 12px 12px 0 0 !important;
    font-weight: 600 !important;
    font-size: 1rem !important;
    color: #64748b !important;
    cursor: pointer !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    margin-bottom: -1px !important;
    z-index: 2 !important;
}

.tab-button:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #6366f1 !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
    transform: translateY(-1px) !important;
}

.tab-button.active {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    color: #6366f1 !important;
    border-color: #6366f1 !important;
    border-bottom-color: #ffffff !important;
    transform: translateY(-2px) !important;
    box-shadow: 
        0 -4px 12px rgba(99, 102, 241, 0.15),
        0 4px 8px rgba(0, 0, 0, 0.04) !important;
    z-index: 3 !important;
}

.tab-button.active::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #6366f1, #8b5cf6) !important;
    border-radius: 12px 12px 0 0 !important;
}

.tabs-content {
    position: relative !important;
    padding: 2rem 1.5rem 1.5rem !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    min-height: 400px !important;
}

.tab-panel {
    display: none !important;
    animation: fadeIn 0.5s ease !important;
}

.tab-panel.active {
    display: block !important;
}

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

/* Mode sombre pour les onglets */
[data-theme="dark"] .tabs-container {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.95) 0%, 
        rgba(15, 23, 42, 0.98) 100%
    ) !important;
    border-color: rgba(71, 85, 105, 0.6) !important;
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

[data-theme="dark"] .tabs-navigation {
    background: linear-gradient(135deg, 
        rgba(30, 41, 59, 0.8) 0%, 
        rgba(15, 23, 42, 0.9) 100%
    ) !important;
    border-bottom-color: rgba(71, 85, 105, 0.4) !important;
}

[data-theme="dark"] .tab-button {
    color: #94a3b8 !important;
}

[data-theme="dark"] .tab-button:hover {
    background: rgba(99, 102, 241, 0.12) !important;
    color: #a5b4fc !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

[data-theme="dark"] .tab-button.active {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    color: #a5b4fc !important;
    border-color: #6366f1 !important;
    border-bottom-color: #1e293b !important;
}

[data-theme="dark"] .tabs-content {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
}

[data-theme="dark"] .model-card {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%) !important;
    border-color: rgba(71, 85, 105, 0.4) !important;
}

[data-theme="dark"] .model-card:hover {
    border-color: rgba(99, 102, 241, 0.4) !important;
}

.models-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)) !important;
    gap: 1.5rem !important;
    margin: 0 !important;
}

.model-card {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border-radius: 16px !important;
    padding: 1.8rem !important;
    box-shadow: 
        0 4px 20px rgba(0, 0, 0, 0.06),
        0 1px 3px rgba(0, 0, 0, 0.02) !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    position: relative !important;
    overflow: hidden !important;
}

.model-card::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: 3px !important;
    background: linear-gradient(90deg, #6366f1, #8b5cf6, #06b6d4) !important;
    transform: scaleX(0) !important;
    transition: transform 0.4s ease !important;
    border-radius: 16px 16px 0 0 !important;
}

.model-card:hover::before {
    transform: scaleX(1) !important;
}

.model-card:hover {
    transform: translateY(-3px) !important;
    box-shadow: 
        0 8px 30px rgba(99, 102, 241, 0.12),
        0 2px 8px rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
}

.model-header {
    display: flex !important;
    align-items: center !important;
    gap: 1rem !important;
    margin-bottom: 1.5rem !important;
}

.model-icon {
    font-size: 2.5rem !important;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%) !important;
    border-radius: 16px !important;
    flex-shrink: 0 !important;
}

.model-info {
    flex: 1 !important;
}

.model-info h3 {
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #6366f1 !important;
    margin-bottom: 0.25rem !important;
    margin-top: 0 !important;
}

.model-provider {
    color: #64748b !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    margin: 0 !important;
}

.model-badge {
    padding: 0.5rem 1rem !important;
    border-radius: 20px !important;
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    flex-shrink: 0 !important;
}

.badge-free {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%) !important;
    color: white !important;
}

.badge-oss {
    background: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%) !important;
    color: white !important;
}

.badge-premium {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
    color: white !important;
}

.model-specs {
    display: flex !important;
    flex-direction: column !important;
    gap: 0.75rem !important;
    margin-bottom: 1.5rem !important;
    padding: 1rem !important;
    background: rgba(99, 102, 241, 0.05) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(99, 102, 241, 0.1) !important;
}

.spec-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
}

.spec-label {
    font-weight: 600 !important;
    color: #1e293b !important;
}

.spec-value {
    font-weight: 500 !important;
    color: #6366f1 !important;
}

.model-actions {
    display: flex !important;
    gap: 1rem !important;
}

.btn-test, .btn-docs {
    flex: 1 !important;
    padding: 0.75rem 1rem !important;
    border: none !important;
    border-radius: 12px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-align: center !important;
    text-decoration: none !important;
    display: block !important;
}

.btn-test {
    background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 100%) !important;
    color: white !important;
}

.btn-test:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 5px 15px rgba(99, 102, 241, 0.3) !important;
}

.btn-docs {
    background: #f1f5f9 !important;
    color: #64748b !important;
}

.btn-docs:hover {
    background: #e2e8f0 !important;
    color: #475569 !important;
}

/* Mode sombre pour les cartes de modèles */
[data-theme="dark"] .model-card {
    background: var(--bg-secondary) !important;
    border-color: var(--border-color) !important;
}

[data-theme="dark"] .model-specs {
    background: rgba(99, 102, 241, 0.1) !important;
    border-color: rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .spec-label {
    color: var(--text-primary) !important;
}

[data-theme="dark"] .btn-docs {
    background: var(--bg-primary) !important;
    color: var(--text-secondary) !important;
}

[data-theme="dark"] .btn-docs:hover {
    background: var(--bg-tertiary) !important;
    color: var(--text-primary) !important;
}

/* Responsive styles */
@media (max-width: 768px) {
    .tabs-navigation {
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .tab-button {
        text-align: center !important;
        border-radius: 8px !important;
    }
    
    .models-grid {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    .model-card {
        padding: 1.5rem !important;
    }
    
    .model-header {
        flex-direction: column !important;
        text-align: center !important;
        gap: 1rem !important;
    }
    
    .model-actions {
        flex-direction: column !important;
    }
}
}

/* ============================================
   BARRE DE PROGRESSION DE LECTURE
   ============================================ */

.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), var(--accent));
    z-index: 10000;
    transition: width 0.1s ease-out;
    box-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

/* ============================================
   TOGGLE MODE SOMBRE/CLAIR
   ============================================ */

.theme-toggle {
    position: relative;
    width: 60px;
    height: 30px;
    background: var(--bg-tertiary);
    border-radius: 15px;
    border: 2px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    padding: 0 4px;
    overflow: hidden;
}

.theme-toggle:hover {
    border-color: var(--primary);
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.theme-toggle-slider {
    position: absolute;
    width: 22px;
    height: 22px;
    background: var(--primary);
    border-radius: 50%;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

[data-theme="dark"] .theme-toggle-slider {
    transform: translateX(30px);
}

.theme-toggle-icon {
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle-icon.sun {
    opacity: 1;
}

.theme-toggle-icon.moon {
    opacity: 0;
    position: absolute;
}

[data-theme="dark"] .theme-toggle-icon.sun {
    opacity: 0;
}

[data-theme="dark"] .theme-toggle-icon.moon {
    opacity: 1;
}

/* ============================================
   MENU UTILISATEUR
   ============================================ */

.user-menu {
    position: relative;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--gradient-1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.user-avatar:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.4);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    min-width: 220px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
}

.user-menu.active .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(99, 102, 241, 0.05);
}

.user-dropdown-header h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.user-dropdown-header p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.user-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.user-dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.user-dropdown-item span:first-child {
    font-size: 1.2rem;
}

/* ============================================
   SYSTÈME DE NOTIFICATIONS
   ============================================ */

.notifications-container {
    position: relative;
}

.notifications-toggle {
    position: relative;
    background: transparent;
    border: none;
    padding: 0.4rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.notifications-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.notifications-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: var(--danger);
    color: white;
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.4rem;
    border-radius: 10px;
    min-width: 18px;
    text-align: center;
    animation: pulse-badge 2s ease-in-out infinite;
}

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

.notifications-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1000;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.notifications-container.active .notifications-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.05);
}

.notifications-header h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

.notifications-clear {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.notifications-clear:hover {
    background: rgba(99, 102, 241, 0.1);
}

.notifications-list {
    overflow-y: auto;
    max-height: 400px;
}

.notification-item {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notification-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item.unread {
    background: rgba(99, 102, 241, 0.08);
}

.notification-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content h5 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.notification-content p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.notification-time {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.notifications-empty {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.notifications-empty-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

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

/* Protection des emojis contre les gradients de texte */
span.icon, .decoration-icon, .model-icon, .tech-icon, .methodology-icon, .intro-icon, .icon {
    -webkit-text-fill-color: initial !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    background: transparent !important;
    color: initial !important;
}

html {
    scroll-behavior: smooth;
    /* Empêche le scroll horizontal “fantôme” dû aux panneaux off-canvas (menu mobile). */
    overflow-x: hidden;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
}

main {
    flex: 1;
    padding: 2rem 0 6rem;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(6, 182, 212, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

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

/* Reset ancien header global pour l'index: le nouveau header spécifique utilise .vc-header */
header {
    background: transparent;
    border: none;
    padding: 0;
    text-align: left;
    position: static;
    overflow: visible;
}

header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: var(--gradient-1);
    opacity: 0.05;
    animation: rotate 30s linear infinite;
    pointer-events: none !important;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

header h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
    letter-spacing: -0.02em;
    animation: fadeInUp 0.8s ease-out;
}

header p {
    font-size: 1.25rem;
    color: var(--gray);
    font-weight: 400;
    max-width: 600px;
    margin: 0 auto;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
/* ============================================
   HEADER AMÉLIORÉ - NOUVELLE STRUCTURE
   ============================================ */

/* ============================================
   HEADER COMPACT VC (INDEX UNIQUEMENT)
   ============================================ */

.vc-header {
    position: sticky;
    top: 0;
    z-index: 1200;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(148, 163, 253, 0.15);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    position: relative;
}

/* Effet de particules flottantes dans le header */
.vc-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: -1;
    animation: headerGradientShift 15s ease-in-out infinite;
}

@keyframes headerGradientShift {
    0%, 100% {
        background:
            radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.04) 0%, transparent 40%);
    }
    33% {
        background:
            radial-gradient(circle at 70% 30%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
            radial-gradient(circle at 30% 70%, rgba(139, 92, 246, 0.08) 0%, transparent 50%),
            radial-gradient(circle at 50% 80%, rgba(6, 182, 212, 0.05) 0%, transparent 40%);
    }
    66% {
        background:
            radial-gradient(circle at 50% 50%, rgba(99, 102, 241, 0.07) 0%, transparent 50%),
            radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.05) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(6, 182, 212, 0.06) 0%, transparent 40%);
    }
}

/* Particules flottantes animées */
.vc-header::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background-image:
        radial-gradient(2px 2px at 20% 30%, rgba(99, 102, 241, 0.4), transparent),
        radial-gradient(2px 2px at 60% 70%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(1px 1px at 50% 50%, rgba(6, 182, 212, 0.5), transparent),
        radial-gradient(1px 1px at 80% 20%, rgba(99, 102, 241, 0.3), transparent);
    background-size: 200px 200px, 150px 150px, 100px 100px, 180px 180px;
    animation: particlesFloat 20s linear infinite;
}

@keyframes particlesFloat {
    0% {
        background-position: 0% 0%, 100% 0%, 50% 0%, 0% 100%;
        opacity: 0.6;
    }
    50% {
        background-position: 100% 100%, 0% 100%, 100% 50%, 100% 0%;
        opacity: 0.8;
    }
    100% {
        background-position: 0% 0%, 100% 0%, 50% 0%, 0% 100%;
        opacity: 0.6;
    }
}

.vc-header-inner {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-height: 64px;
}

/* Logo */
.vc-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: inherit;
}

.vc-logo-icon {
    width: 32px;
    height: 32px;
    border-radius: 0.9rem;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
    flex-shrink: 0;
}

.vc-logo-icon svg {
    width: 100%;
    height: 100%;
}

.vc-logo-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

.vc-logo-title {
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    background: linear-gradient(135deg,#4f46e5,#7c3aed);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.vc-logo-sub {
    font-size: 0.7rem;
    color: #6b7280;
}

/* Burger (mobile) */
.vc-burger {
    display: none;
    flex-direction: column;
    gap: 4px;
    padding: 0.35rem;
    margin-right: 0.25rem;
    border-radius: 0.5rem;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: background 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.vc-burger span {
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: #111827;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.vc-burger:hover {
    background: rgba(226, 232, 240, 0.9);
    box-shadow: 0 4px 10px rgba(148, 163, 253, 0.25);
}

.vc-burger.is-open span:nth-child(1) {
    transform: translateY(4px) rotate(45deg);
}

.vc-burger.is-open span:nth-child(2) {
    opacity: 0;
}

.vc-burger.is-open span:nth-child(3) {
    transform: translateY(-4px) rotate(-45deg);
}

/* Navigation desktop avec effets premium */
.vc-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    position: relative;
}

.vc-nav-list {
    display: flex;
    gap: 0.75rem;
    list-style: none;
    margin: 0;
    padding: 0;
    position: relative;
}

.vc-nav-item {
    position: relative;
    display: flex;
    align-items: center;
}

.vc-nav-link,
.vc-nav-button {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    color: #4b5563;
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    vertical-align: middle;
    line-height: 1.2;
}

/* Style spécifique pour le bouton Benchmark en gras */
.vc-nav-dropdown .vc-nav-button {
    font-weight: 700;
}

.vc-nav-link::before,
.vc-nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.5s ease;
}

.vc-nav-link:hover::before,
.vc-nav-button:hover::before {
    left: 100%;
}

.vc-nav-link:hover,
.vc-nav-button:hover {
    color: #111827;
    background: rgba(129, 140, 248, 0.12);
    border-color: rgba(129, 140, 248, 0.4);
    box-shadow:
        0 4px 15px rgba(148, 163, 253, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateY(-2px);
}

.vc-nav-active {
    color: #111827;
    background: linear-gradient(90deg, rgba(129,140,248,0.2), rgba(79,70,229,0.08));
    border-color: rgba(129, 140, 248, 0.6);
    box-shadow:
        0 6px 20px rgba(79,70,229,0.35),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    position: relative;
}

.vc-nav-active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed);
    border-radius: 2px;
    animation: activeGlow 2s ease-in-out infinite;
}

@keyframes activeGlow {
    0%, 100% { opacity: 0.6; transform: translateX(-50%) scaleX(0.8); }
    50% { opacity: 1; transform: translateX(-50%) scaleX(1.2); }
}

.vc-nav-arrow {
    font-size: 0.6rem;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    vertical-align: baseline;
}

.vc-nav-dropdown:hover .vc-nav-arrow {
    transform: rotate(180deg) scale(1.1);
}

/* Dropdown Benchmarks avec design premium */
.vc-nav-dropdown {
    position: relative;
}

.vc-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 280px;
    padding: 0.6rem;
    border-radius: 1.2rem;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset,
        0 10px 40px rgba(148, 163, 253, 0.1);
    border: 1px solid rgba(148, 163, 253, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.95);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    overflow: hidden;
}

.vc-nav-dropdown.is-open .vc-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* Support du survol pour Desktop */
@media (min-width: 1024px) {
    .vc-nav-dropdown:hover .vc-dropdown-menu {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .vc-nav-dropdown:hover .vc-nav-button {
        background: rgba(129, 140, 248, 0.12);
        border-color: rgba(129, 140, 248, 0.4);
    }

    .vc-nav-dropdown:hover .vc-nav-arrow {
        transform: rotate(180deg) scale(1.1);
    }
}

.vc-dropdown-menu::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
    border-radius: 1.2rem 1.2rem 0 0;
}

.vc-dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.5rem 0.7rem;
    border-radius: 0.8rem;
    font-size: 0.78rem;
    color: #374151;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vc-dropdown-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.05), transparent);
    transition: left 0.4s ease;
}

.vc-dropdown-item:hover::before {
    left: 100%;
}

.vc-dropdown-item:hover {
    background: rgba(248, 250, 252, 0.8);
    color: #111827;
    transform: translateX(4px);
    box-shadow: 0 4px 12px rgba(148, 163, 253, 0.15);
}

.vc-dropdown-item-icon {
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 0.4rem;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.vc-dropdown-item:hover .vc-dropdown-item-icon {
    background: rgba(99, 102, 241, 0.2);
    transform: scale(1.1);
}

.vc-dropdown-item-text {
    flex: 1;
    font-weight: 500;
}

.vc-dropdown-item-description {
    font-size: 0.65rem;
    color: #6b7280;
    margin-top: 0.1rem;
    opacity: 0;
    transform: translateY(-4px);
    transition: all 0.2s ease;
}

.vc-dropdown-item:hover .vc-dropdown-item-description {
    opacity: 1;
    transform: translateY(0);
}

/* Actions à droite avec effets premium */
.vc-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
}

/* Recherche compacte avec verre morphisme */
.vc-search {
    position: relative;
    display: flex;
    align-items: center;
}

.vc-search-input {
    width: 160px;
    padding: 0.35rem 0.65rem;
    padding-right: 0.5rem;
    font-size: 0.72rem;
    border-radius: 999px;
    border: 1px solid rgba(148,163,253,0.3);
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    color: #111827;
    outline: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow:
        0 2px 8px rgba(148, 163, 253, 0.1),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
}

.vc-search-input::placeholder {
    color: #9ca3af;
    transition: opacity 0.3s ease;
}

.vc-search-input:focus {
    width: 200px;
    border-color: #6366f1;
    background: rgba(255, 255, 255, 0.9);
    box-shadow:
        0 0 0 3px rgba(99,102,241,0.15),
        0 4px 20px rgba(148, 163, 253, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.vc-search-input:focus::placeholder {
    opacity: 0.7;
}

/* ============================================
   BOUTON THÈME ULTRA-VISIBLE ET ATTRACTIF
   ============================================ */

.vc-theme-toggle {
    border: none;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4);
    background-size: 200% 200%;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 0.6rem 0.8rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    box-shadow:
        0 8px 32px rgba(99, 102, 241, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.2) inset,
        0 0 20px rgba(139, 92, 246, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    min-width: 48px;
    min-height: 48px;
    animation: themePulse 3s ease-in-out infinite;
}

/* Animation de pulsation de base */
@keyframes themePulse {
    0%, 100% {
        box-shadow:
            0 8px 32px rgba(99, 102, 241, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.2) inset,
            0 0 20px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow:
            0 8px 40px rgba(99, 102, 241, 0.6),
            0 0 0 3px rgba(255, 255, 255, 0.3) inset,
            0 0 30px rgba(139, 92, 246, 0.5);
        transform: scale(1.02);
    }
}

/* Gradient animé */
.vc-theme-toggle::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #6366f1, #8b5cf6, #06b6d4, #6366f1);
    background-size: 300% 300%;
    border-radius: 16px;
    opacity: 0;
    transition: opacity 0.4s ease;
    animation: gradientShift 4s ease-in-out infinite;
    z-index: -1;
}

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

/* Effet de glow au survol */
.vc-theme-toggle::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.8), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
    z-index: -1;
}

.vc-theme-toggle:hover::before {
    opacity: 1;
}

.vc-theme-toggle:hover::after {
    width: 80px;
    height: 80px;
}

.vc-theme-toggle:hover {
    background: linear-gradient(135deg, #4f46e5, #7c3aed, #0891b2);
    transform: translateY(-4px) scale(1.1) rotateX(5deg);
    box-shadow:
        0 16px 48px rgba(79, 70, 229, 0.5),
        0 0 0 3px rgba(255, 255, 255, 0.4) inset,
        0 0 40px rgba(139, 92, 246, 0.6),
        0 8px 16px rgba(0, 0, 0, 0.2);
    animation: themeGlow 1s ease-in-out infinite alternate;
}

@keyframes themeGlow {
    0% {
        box-shadow:
            0 16px 48px rgba(79, 70, 229, 0.5),
            0 0 0 3px rgba(255, 255, 255, 0.4) inset,
            0 0 40px rgba(139, 92, 246, 0.6),
            0 8px 16px rgba(0, 0, 0, 0.2);
    }
    100% {
        box-shadow:
            0 20px 60px rgba(79, 70, 229, 0.7),
            0 0 0 4px rgba(255, 255, 255, 0.5) inset,
            0 0 60px rgba(139, 92, 246, 0.8),
            0 12px 24px rgba(0, 0, 0, 0.3);
    }
}

.vc-theme-toggle svg {
    width: 22px;
    height: 22px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
    position: relative;
    z-index: 2;
}

.vc-theme-toggle:hover svg {
    transform: rotate(180deg) scale(1.2);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

/* Effet au clic */
.vc-theme-toggle:active {
    transform: translateY(-2px) scale(1.05) rotateX(2deg);
    box-shadow:
        0 12px 32px rgba(79, 70, 229, 0.6),
        0 0 0 2px rgba(255, 255, 255, 0.5) inset,
        0 0 30px rgba(139, 92, 246, 0.7);
    transition: all 0.1s ease;
}

.vc-theme-toggle:active svg {
    transform: rotate(90deg) scale(1.1);
}

/* Particules flottantes autour du bouton */
.vc-theme-toggle .particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 3s ease-in-out infinite;
}

.vc-theme-toggle .particle:nth-child(1) {
    top: -10px;
    left: 20%;
    animation-delay: 0s;
}

.vc-theme-toggle .particle:nth-child(2) {
    top: -10px;
    right: 20%;
    animation-delay: 1s;
}

.vc-theme-toggle .particle:nth-child(3) {
    bottom: -10px;
    left: 30%;
    animation-delay: 2s;
}

.vc-theme-toggle .particle:nth-child(4) {
    bottom: -10px;
    right: 30%;
    animation-delay: 0.5s;
}

@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0;
    }
    50% {
        transform: translateY(-15px) scale(1.5);
        opacity: 1;
    }
}

/* Mode sombre adaptation */
[data-theme="dark"] .vc-theme-toggle {
    background: linear-gradient(135deg, #8b5cf6, #06b6d4, #6366f1);
    box-shadow:
        0 8px 32px rgba(139, 92, 246, 0.4),
        0 0 0 2px rgba(255, 255, 255, 0.1) inset,
        0 0 20px rgba(6, 182, 212, 0.3);
}

[data-theme="dark"] .vc-theme-toggle:hover {
    background: linear-gradient(135deg, #7c3aed, #0891b2, #4f46e5);
    box-shadow:
        0 16px 48px rgba(139, 92, 246, 0.6),
        0 0 0 3px rgba(255, 255, 255, 0.2) inset,
        0 0 40px rgba(6, 182, 212, 0.7),
        0 8px 16px rgba(0, 0, 0, 0.4);
}

/* Accessibilité */
.vc-theme-toggle:focus {
    outline: 3px solid #6366f1;
    outline-offset: 3px;
}

/* Responsive mobile */
@media (max-width: 768px) {
    .vc-theme-toggle {
        min-width: 44px;
        min-height: 44px;
        padding: 0.5rem 0.7rem;
        animation-duration: 4s;
    }
    
    .vc-theme-toggle:hover {
        transform: translateY(-2px) scale(1.05);
    }
    
    .vc-theme-toggle svg {
        width: 20px;
        height: 20px;
    }
    
    .vc-theme-toggle .particle {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-theme-toggle,
    .vc-theme-toggle::before,
    .vc-theme-toggle::after,
    .vc-theme-toggle svg,
    .vc-theme-toggle .particle {
        animation: none !important;
        transition: none !important;
    }
    
    .vc-theme-toggle:hover {
        transform: scale(1.05);
    }
}

/* Overlay & panneau mobile avec effets premium */
.vc-mobile-overlay {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.4);
    backdrop-filter: blur(8px) saturate(180%);
    -webkit-backdrop-filter: blur(8px) saturate(180%);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1195;
}

.vc-mobile-overlay.is-visible {
    opacity: 1;
    visibility: visible;
}

.vc-mobile-nav {
    position: fixed;
    top: 0;
    right: 0;
    width: 280px;
    max-width: 88vw;
    height: 100vh;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow:
        -20px 0 60px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset;
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1205;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.vc-mobile-nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
    z-index: 1;
}

.vc-mobile-nav.is-open {
    transform: translateX(0);
}

.vc-mobile-nav-inner {
    padding: 1.2rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    overflow-y: auto;
    position: relative;
    z-index: 1;
}

.vc-mobile-link,
.vc-mobile-accordion {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.8rem;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(226, 232, 240, 0.8);
    background: rgba(248, 250, 252, 0.8);
    backdrop-filter: blur(10px);
    color: #111827;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.vc-mobile-link::before,
.vc-mobile-accordion::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.1), transparent);
    transition: left 0.4s ease;
}

.vc-mobile-link:hover::before,
.vc-mobile-accordion:hover::before {
    left: 100%;
}

.vc-mobile-link:hover,
.vc-mobile-accordion:hover {
    background: rgba(255, 255, 255, 0.9);
    border-color: rgba(129, 140, 248, 0.4);
    box-shadow:
        0 8px 25px rgba(15, 23, 42, 0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    transform: translateX(-4px) scale(1.02);
}

.vc-mobile-link:active,
.vc-mobile-accordion:active {
    transform: translateX(-2px) scale(0.98);
    transition: transform 0.1s ease;
}

.vc-mobile-accordion {
    gap: 0.35rem;
}

.vc-mobile-sub {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    padding-left: 0.4rem;
    margin: 0.05rem 0 0.25rem;
}

.vc-mobile-sub-link {
    display: block;
    padding: 0.28rem 0.55rem;
    font-size: 0.8rem;
    border-radius: 0.5rem;
    color: #4b5563;
    text-decoration: none;
    transition: all 0.16s ease;
}

.vc-mobile-sub-link:hover {
    background: rgba(239,246,255,1);
    color: #111827;
}

.vc-mobile-footer {
    margin-top: 0.5rem;
    padding-top: 0.4rem;
    border-top: 1px solid rgba(229,231,235,1);
}

.vc-mobile-secondary {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    text-decoration: none;
    padding: 0.3rem 0.55rem;
    border-radius: 0.5rem;
}

.vc-mobile-secondary:hover {
    background: rgba(248,250,252,1);
    color: #4b5563;
}

/* État header scrollé */
.vc-header.is-scrolled {
    background: rgba(255,255,255,0.98);
    box-shadow: 0 6px 20px rgba(15,23,42,0.12);
    border-color: rgba(148,163,253,0.28);
}

/* Responsive */
@media (max-width: 1024px) {
    .vc-nav {
        display: none;
    }
    .vc-burger {
        display: inline-flex;
    }
}

@media (max-width: 640px) {
    .vc-header-inner {
        gap: 0.75rem;
        min-height: 56px;
    }
    .vc-logo-title {
        font-size: 1rem;
    }
    .vc-logo-sub {
        display: none;
    }
    .vc-search-input {
        display: none;
    }
}

.enhanced-header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    position: relative;
}

/* Zone brand/logo */
.header-brand {
    flex-shrink: 0;
}

.brand-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    transition: transform 0.3s ease;
    padding: 0.25rem 0;
}

.brand-link:hover {
    transform: translateY(-2px);
}

.header-brand h1 {
    font-size: 1.8rem;
    font-weight: 900;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.1;
    letter-spacing: -0.03em;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.header-brand h1:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}

.brand-icon {
    width: 28px;
    height: 28px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: vibe-pulse 3s ease-in-out infinite;
}

.header-brand h1:hover .brand-icon {
    transform: rotate(10deg) scale(1.1);
    filter: drop-shadow(0 4px 12px rgba(99, 102, 241, 0.4));
}

@keyframes vibe-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

.brand-tagline {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
    margin: 0;
    letter-spacing: 0.01em;
}

/* Navigation principale */
.main-nav {
    flex: 1;
    display: flex;
    justify-content: center;
    margin: 0 2rem;
}

.nav-list {
    display: flex;
    list-style: none;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 0.9rem;
    color: var(--dark);
    text-decoration: none;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: transparent;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.nav-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-1);
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.nav-link:hover::before {
    opacity: 0.1;
}

.nav-link:hover {
    color: var(--primary);
    transform: translateY(-2px);
}

/* Dropdown pour les benchmarks */
.dropdown {
    position: relative;
}

.dropdown-toggle {
    position: relative;
    z-index: 2;
}

.dropdown-arrow {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-item {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--dark);
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s ease;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

.dropdown-item:last-child {
    margin-bottom: 0;
}

/* Zone actions (recherche, langue, menu mobile) */
.header-actions {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-shrink: 0;
}

/* Conteneur de recherche */
.search-container {
    position: relative;
}

.search-toggle {
    background: transparent;
    border: none;
    padding: 0.4rem;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.search-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    transform: scale(1.1);
}

.search-box {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.5rem;
    width: 300px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.active .search-box {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid rgba(99, 102, 241, 0.2);
    border-radius: 12px;
    font-size: 0.9rem;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

/* Sélecteur de langue */
.language-selector {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.language-selector button {
    padding: 0.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--gray);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.85rem;
    font-weight: 500;
}

.language-selector button:hover {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
}

.language-selector button.active {
    color: var(--primary);
    background: rgba(99, 102, 241, 0.2);
}

/* Menu mobile toggle */
.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 3px;
    background: transparent;
    border: none;
    padding: 0.4rem;
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
}

@media (min-width: 1025px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.mobile-menu-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
}

.hamburger-line {
    width: 24px;
    height: 2px;
    background: var(--dark);
    border-radius: 1px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active .hamburger-line:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active .hamburger-line:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Breadcrumbs */
.header-breadcrumb {
    background: rgba(249, 250, 251, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 0.5rem 0;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
    padding: 0.25rem 0.5rem;
    border-radius: 8px;
}

.breadcrumb a:hover {
    color: var(--primary-dark);
    background: rgba(99, 102, 241, 0.1);
}

.breadcrumb .separator {
    color: var(--gray);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--dark);
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
}

/* Menu mobile overlay */
.mobile-menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu-container {
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    transform: translateX(100%);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
}

.mobile-menu-overlay.active .mobile-menu-container {
    transform: translateX(0);
}

.mobile-menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 2rem 1.5rem 1.5rem;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.mobile-menu-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
}

.mobile-menu-close {
    background: transparent;
    border: none;
    font-size: 2rem;
    color: var(--gray);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 12px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.mobile-menu-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    transform: scale(1.1);
}

.mobile-nav {
    padding: 1rem 0;
}

.mobile-nav .nav-list {
    flex-direction: column;
    gap: 0;
    margin: 0;
    padding: 0 1.5rem;
}

.mobile-nav .nav-item {
    margin-bottom: 0.5rem;
}

.mobile-nav .nav-link {
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    background: transparent;
    justify-content: space-between;
}

.mobile-nav .dropdown-menu {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    background: rgba(249, 250, 251, 0.8);
    margin-top: 0.5rem;
    box-shadow: none;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.mobile-nav .dropdown-item {
    padding: 0.75rem 1rem;
    margin-bottom: 0.25rem;
}

.mobile-nav .dropdown-item:last-child {
    margin-bottom: 0;
}

/* Responsive design pour le header */
@media (max-width: 1024px) {
    .main-nav {
        margin: 0 1rem;
    }
    
    .nav-list {
        gap: 1.5rem;
    }
    
    .search-box {
        width: 250px;
    }
}

@media (max-width: 768px) {
    .enhanced-header .container {
        min-height: 55px;
    }
    
    .main-nav {
        display: none;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .search-toggle {
        font-size: 1rem;
    }
    
    .language-selector {
        display: none;
    }
    
    .search-box {
        width: 280px;
        right: -50px;
    }
    
    .brand-tagline {
        display: none;
    }
}

@media (max-width: 1024px) {
    .main-nav {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .header-actions {
        gap: 0.75rem;
    }
}

@media (max-width: 480px) {
    .enhanced-header .container {
        padding: 0 1rem;
        min-height: 50px;
    }
    
    .header-brand h1 {
        font-size: 1.5rem;
    }
    
    .brand-icon {
        width: 24px;
        height: 24px;
    }
    
    .mobile-menu-container {
        width: 280px;
    }
    
    .search-box {
        width: 240px;
        right: -30px;
    }
}

/* Animations d'entrée pour le header */
.enhanced-header {
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États actifs et focus pour l'accessibilité */
.enhanced-header .nav-link:focus,
.enhanced-header .search-toggle:focus,
.enhanced-header .mobile-menu-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

.dropdown:focus-within .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Effets de scroll pour le header */
.enhanced-header.scrolled {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: var(--shadow-lg);
}

@media (prefers-reduced-motion: reduce) {
    .enhanced-header,
    .dropdown-menu,
    .mobile-menu-container,
    .nav-link,
    .dropdown-arrow {
        transition: none !important;
        animation: none !important;
    }
}

main {
    padding: 0 0 6rem;
}

section:first-of-type {
    margin-top: 0.5rem;
}

section {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 3rem 0;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

section:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl);
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 24px 24px 0 0;
}

section h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

section h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

.intro {
    text-align: center;
    background: var(--gradient-1);
    color: white;
}

.intro h2 {
    color: white;
}

.intro h2::after {
    background: white;
}

.intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
}

/* Fil d'Ariane (Breadcrumb) */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: var(--gray);
}

.breadcrumb a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

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

.breadcrumb .separator {
    color: var(--gray);
    opacity: 0.5;
}

.breadcrumb .current {
    color: var(--dark);
    font-weight: 600;
}

/* ============================================
   STYLES POUR LA PRÉSENTATION RADIALE
   ============================================ */

.radial-presentation {
    min-height: 800px;
    padding: 4rem 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 3rem 0;
    position: relative;
    overflow: hidden;
}

.radial-container {
    position: relative;
    width: 100%;
    max-width: 800px;
    height: 600px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Centre Hub */
.center-hub {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translate(-50%, -50%) translateY(0px); }
    50% { transform: translate(-50%, -50%) translateY(-20px); }
}

.hub-content {
    background: var(--gradient-1);
    color: white;
    padding: 2rem;
    border-radius: 50%;
    width: 180px;
    height: 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-shadow: var(--shadow-2xl);
    border: 4px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.hub-content:hover {
    transform: scale(1.05);
    box-shadow: 0 30px 60px -15px rgba(99, 102, 241, 0.4);
}

.hub-icon {
    font-size: 3rem;
    margin-bottom: 0.5rem;
    animation: pulse 2s ease-in-out infinite;
}

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

.hub-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0.5rem 0 0.25rem 0;
}

.hub-content p {
    font-size: 0.9rem;
    opacity: 0.9;
    margin: 0;
}

/* Système Orbital */
.orbital-system {
    position: relative;
    width: 100%;
    height: 100%;
}

/* Nœuds des Modes */
.mode-node {
    position: absolute;
    width: 160px;
    height: 160px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mode-node:nth-child(1) {
    top: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.mode-node:nth-child(2) {
    top: 30%;
    right: 5%;
}

.mode-node:nth-child(3) {
    bottom: 30%;
    right: 5%;
}

.mode-node:nth-child(4) {
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
}

.mode-node:nth-child(5) {
    top: 30%;
    left: 5%;
}

.mode-orbit {
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.mode-orbit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 50%;
}

.mode-node:hover .mode-orbit {
    transform: scale(1.1);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.mode-node:hover .mode-orbit::before {
    opacity: 0.1;
}

.mode-node.active .mode-orbit {
    transform: scale(1.15);
    box-shadow: 0 25px 50px -12px rgba(99, 102, 241, 0.3);
}

.mode-node.highlighted .mode-orbit {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5);
    animation: glow 2s ease-in-out infinite;
}

@keyframes glow {
    0%, 100% { box-shadow: 0 0 30px rgba(99, 102, 241, 0.5); }
    50% { box-shadow: 0 0 50px rgba(99, 102, 241, 0.8); }
}

.mode-content {
    position: relative;
    z-index: 2;
}

.mode-icon {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    transition: transform 0.3s ease;
}

.mode-node:hover .mode-icon {
    transform: scale(1.2) rotate(10deg);
}

.mode-content h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0.5rem 0 0.25rem 0;
    transition: color 0.3s ease;
}

.mode-node:hover .mode-content h4 {
    color: var(--primary-dark);
}

.mode-model {
    font-size: 0.8rem;
    color: var(--gray);
    font-weight: 500;
    margin: 0 0 0.5rem 0;
    font-style: italic;
}

.mode-details {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.mode-node:hover .mode-details {
    opacity: 1;
    max-height: 100px;
}

.mode-role, .mode-features {
    font-size: 0.75rem;
    color: var(--gray);
    margin: 0.25rem 0;
    line-height: 1.3;
}

/* Lignes de connexion */
.connection-line {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2px;
    height: 100px;
    background: linear-gradient(to bottom, transparent, var(--primary), transparent);
    transform-origin: top center;
    opacity: 0.3;
    pointer-events: none;
}

.mode-node:nth-child(1) .connection-line {
    transform: translate(-50%, -100%) rotate(0deg);
}

.mode-node:nth-child(2) .connection-line {
    transform: translate(-50%, -100%) rotate(45deg);
}

.mode-node:nth-child(3) .connection-line {
    transform: translate(-50%, -100%) rotate(135deg);
}

.mode-node:nth-child(4) .connection-line {
    transform: translate(-50%, -100%) rotate(180deg);
}

.mode-node:nth-child(5) .connection-line {
    transform: translate(-50%, -100%) rotate(-45deg);
}

/* Couleurs spécifiques pour chaque mode */
.mode-orchestrator .mode-orbit::before {
    background: var(--gradient-1);
}

.mode-architect .mode-orbit::before {
    background: var(--gradient-2);
}

.mode-debug .mode-orbit::before {
    background: var(--gradient-3);
}

.mode-ask .mode-orbit::before {
    background: var(--gradient-4);
}

.mode-code .mode-orbit::before {
    background: var(--gradient-5);
}

/* Panneau de détails */
.details-panel {
    position: fixed;
    top: 50%;
    right: -400px;
    transform: translateY(-50%);
    width: 380px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 20px 0 0 20px;
    box-shadow: var(--shadow-2xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    z-index: 1000;
    transition: right 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    max-height: 90vh;
    overflow-y: auto;
}

.details-panel.active {
    right: 0;
}

.panel-content {
    padding: 2rem;
    position: relative;
}

.close-panel {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: var(--gradient-1);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
}

.close-panel:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid rgba(99, 102, 241, 0.1);
}

.panel-icon {
    font-size: 3rem;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    flex-shrink: 0;
}

.panel-info h3 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
}

.panel-info p {
    font-size: 1rem;
    color: var(--gray);
    margin: 0;
    font-style: italic;
}

.panel-body {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.panel-spec {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 1.5rem;
    background: rgba(99, 102, 241, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(99, 102, 241, 0.1);
    transition: all 0.3s ease;
}

.panel-spec:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
}

.spec-label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.spec-value {
    font-weight: 500;
    color: var(--primary);
    font-size: 1rem;
    line-height: 1.5;
}

/* Navigation Interactive */
.interactive-navigation {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 3rem 0;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

.interactive-navigation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 24px 24px 0 0;
}

.interactive-navigation h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.nav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.nav-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.nav-preview {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    gap: 1rem;
    position: relative;
    overflow: hidden;
}

.nav-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-item:hover .nav-preview {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.3);
}

.nav-item:hover .nav-preview::before {
    transform: scaleX(1);
}

.nav-icon {
    font-size: 2rem;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    transition: transform 0.3s ease;
}

.nav-item:hover .nav-icon {
    transform: rotate(10deg) scale(1.1);
}

.nav-info h4 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0 0 0.5rem 0;
    transition: color 0.3s ease;
}

.nav-item:hover .nav-info h4 {
    color: var(--primary-dark);
}

.nav-info p {
    font-size: 0.9rem;
    color: var(--gray);
    margin: 0;
    line-height: 1.4;
}

/* Loading animations */
.loading {
    position: relative;
    overflow: hidden;
}

.loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    animation: shimmer 2s infinite;
}

@keyframes shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

/* Loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.3s ease;
}

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

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(99, 102, 241, 0.1);
    border-top: 4px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .container {
        padding: 0 1.5rem;
    }
    
    section {
        padding: 2.5rem;
        margin: 2rem 0;
    }
    
    .radial-container {
        height: 500px;
        max-width: 600px;
    }
    
    .mode-node {
        width: 140px;
        height: 140px;
    }
    
    .hub-content {
        width: 150px;
        height: 150px;
        padding: 1.5rem;
    }
    
    .details-panel {
        width: 340px;
    }
}

@media (max-width: 768px) {
    header {
        padding: 2rem 0;
    }
    
    main {
        padding: 2rem 0;
    }
    
    section {
        padding: 2rem;
        margin: 1.5rem 0;
        border-radius: 16px;
    }
    
    section h2 {
        font-size: 2rem;
    }
    
    .radial-presentation {
        padding: 2rem 0;
        min-height: 600px;
    }
    
    .radial-container {
        height: 400px;
        max-width: 400px;
    }
    
    .mode-node {
        width: 120px;
        height: 120px;
    }
    
    .mode-node:nth-child(1) {
        top: 5%;
    }
    
    .mode-node:nth-child(2) {
        top: 25%;
        right: 2%;
    }
    
    .mode-node:nth-child(3) {
        bottom: 25%;
        right: 2%;
    }
    
    .mode-node:nth-child(4) {
        bottom: 5%;
    }
    
    .mode-node:nth-child(5) {
        top: 25%;
        left: 2%;
    }
    
    .mode-orbit {
        padding: 1rem;
    }
    
    .mode-icon {
        font-size: 2rem;
    }
    
    .mode-content h4 {
        font-size: 1rem;
    }
    
    .hub-content {
        width: 120px;
        height: 120px;
        padding: 1rem;
    }
    
    .hub-icon {
        font-size: 2rem;
    }
    
    .hub-content h3 {
        font-size: 1.2rem;
    }
    
    .details-panel {
        position: fixed;
        top: auto;
        bottom: -100%;
        right: 0;
        left: 0;
        width: 100%;
        height: auto;
        max-height: 70vh;
        transform: none;
        border-radius: 20px 20px 0 0;
        transition: bottom 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
    
    .details-panel.active {
        bottom: 0;
        right: auto;
    }
    
    .nav-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    header p {
        font-size: 1rem;
    }
    
    section {
        padding: 1.5rem;
        border-radius: 12px;
    }
    
    section h2 {
        font-size: 1.75rem;
    }
    
    .radial-container {
        height: 350px;
        max-width: 320px;
    }
    
    .mode-node {
        width: 100px;
        height: 100px;
    }
    
    .mode-orbit {
        padding: 0.75rem;
    }
    
    .mode-icon {
        font-size: 1.5rem;
    }
    
    .mode-content h4 {
        font-size: 0.9rem;
    }
    
    .mode-model {
        font-size: 0.7rem;
    }
    
    .hub-content {
        width: 100px;
        height: 100px;
        padding: 0.75rem;
    }
    
    .hub-icon {
        font-size: 1.5rem;
    }
    
    .hub-content h3 {
        font-size: 1rem;
    }
    
    .hub-content p {
        font-size: 0.8rem;
    }
    
    .nav-preview {
        padding: 1.5rem;
    }
    
    .nav-icon {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .nav-info h4 {
        font-size: 1.1rem;
    }
    
    .nav-info p {
        font-size: 0.85rem;
    }
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--light);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* États focus pour l'accessibilité */
.mode-node:focus,
.nav-item:focus,
.close-panel:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mode sombre (future implémentation) */
@media (prefers-color-scheme: dark) {
    .mode-orbit {
        background: rgba(31, 41, 55, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .nav-preview {
        background: rgba(31, 41, 55, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .details-panel {
        background: rgba(31, 41, 55, 0.95);
        border-color: rgba(255, 255, 255, 0.1);
    }
    
    .panel-spec {
        background: rgba(99, 102, 241, 0.1);
        border-color: rgba(99, 102, 241, 0.2);
    }
    
    .spec-label {
        color: var(--light);
    }
}

/* Footer ultra-moderne et compact pour Meilleurs Modèles */
footer {
    background: linear-gradient(135deg, 
        rgba(15, 23, 42, 0.95) 0%, 
        rgba(30, 41, 59, 0.98) 50%,
        rgba(15, 23, 42, 0.95) 100%
    );
    backdrop-filter: blur(30px) saturate(200%);
    -webkit-backdrop-filter: blur(30px) saturate(200%);
    border-top: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
    overflow: hidden;
    margin: 0;
    padding: 1.5rem 0;
    box-shadow: 
        0 -10px 40px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Ligne supérieure néon ultra-brillante */
footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%,
        #4f46e5 10%,
        #7c3aed 30%,
        #06b6d4 50%,
        #10b981 70%,
        #4f46e5 90%,
        transparent 100%
    );
    background-size: 200% 100%;
    animation: footerNeonFlow 3s linear infinite;
    box-shadow: 
        0 0 20px rgba(99, 102, 241, 0.8),
        0 0 40px rgba(139, 92, 246, 0.6),
        0 0 60px rgba(6, 182, 212, 0.4);
}

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

/* Effet de grille numérique dans le footer */
footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    animation: gridMove 10s linear infinite;
    pointer-events: none;
    z-index: 1;
}

@keyframes gridMove {
    0% { transform: translate(0, 0); }
    100% { transform: translate(20px, 20px); }
}

footer .container {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Icônes technologiques minimalistes */
footer .tech-icon {
    position: absolute;
    font-size: 0.8rem;
    color: rgba(99, 102, 241, 0.6);
    animation: techPulse 4s ease-in-out infinite;
    pointer-events: none;
    z-index: 2;
}

footer .tech-icon:nth-child(1) {
    top: 25%;
    left: 10%;
    animation-delay: 0s;
}

footer .tech-icon:nth-child(2) {
    top: 60%;
    left: 85%;
    animation-delay: 1s;
}

footer .tech-icon:nth-child(3) {
    top: 40%;
    left: 25%;
    animation-delay: 2s;
}

footer .tech-icon:nth-child(4) {
    top: 70%;
    left: 65%;
    animation-delay: 3s;
}

@keyframes techPulse {
    0%, 100% {
        opacity: 0.3;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.2);
    }
}

/* Styles du texte ultra-modernes */
footer p {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin: 0.5rem 0;
    font-family: 'Inter', system-ui, sans-serif;
    letter-spacing: 0.02em;
}

footer p:first-child {
    font-weight: 600;
    color: var(--text-main);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    font-size: 0.8rem;
    background: linear-gradient(90deg, #94a3b8, #f1f5f9, #94a3b8);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% auto;
    animation: footerTextShine 4s linear infinite;
}

@keyframes footerTextShine {
    to { background-position: 200% center; }
}

footer .version {
    font-size: 0.8rem;
    opacity: 0.7;
    font-family: 'JetBrains Mono', monospace;
    background: rgba(99, 102, 241, 0.1);
    padding: 2px 10px;
    border-radius: 6px;
    border: 1px solid rgba(99, 102, 241, 0.2);
    color: var(--primary);
}

footer p:first-child {
    font-size: clamp(0.85rem, 1.5vw, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    letter-spacing: 0.02em;
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    animation: footerTextGlow 2s ease-in-out infinite alternate;
}

footer .version {
    font-size: clamp(0.7rem, 1.2vw, 0.8rem);
    color: rgba(99, 102, 241, 0.8);
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: versionShimmer 3s ease-in-out infinite;
    /* Fallback pour les navigateurs qui ne supportent pas background-clip */
    text-shadow: 0 0 10px rgba(99, 102, 241, 0.5);
}

@keyframes footerTextGlow {
    0% {
        text-shadow: 0 2px 10px rgba(99, 102, 241, 0.3);
    }
    100% {
        text-shadow: 0 2px 20px rgba(99, 102, 241, 0.6);
    }
}

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

/* Effet de scanline futuriste */
footer .scanline {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(99, 102, 241, 0.8), 
        transparent
    );
    animation: scanlineMove 4s linear infinite;
    pointer-events: none;
    z-index: 5;
}

@keyframes scanlineMove {
    0% {
        top: 0;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        top: 100%;
        opacity: 0;
    }
}

/* Responsive compact */
@media (max-width: 768px) {
    footer {
        padding: 1.2rem 0;
    }
    
    footer .container {
        gap: 1rem;
        flex-direction: column;
    }
    
    footer p:first-child {
        font-size: clamp(0.8rem, 1.3vw, 0.9rem);
    }
    
    footer .version {
        font-size: clamp(0.65rem, 1vw, 0.75rem);
    }
    
    footer .tech-icon {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    footer {
        padding: 1rem 0;
    }
    
    footer .tech-icon {
        display: none;
    }
}

/* Mode clair adaptation */
[data-theme="light"] footer {
    background: linear-gradient(135deg, 
        rgba(248, 250, 252, 0.95) 0%, 
        rgba(241, 245, 249, 0.98) 50%,
        rgba(248, 250, 252, 0.95) 100%
    );
    box-shadow: 
        0 -10px 40px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

[data-theme="light"] footer p:first-child {
    color: rgba(30, 41, 59, 0.9);
    text-shadow: 0 2px 10px rgba(99, 102, 241, 0.2);
}

[data-theme="light"] footer .version {
    background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    color: #4f46e5; /* Fallback */
    text-shadow: 0 0 10px rgba(79, 70, 229, 0.3);
}

[data-theme="light"] footer .tech-icon {
    color: rgba(99, 102, 241, 0.4);
}

[data-theme="light"] footer::after {
    background-image: 
        linear-gradient(rgba(99, 102, 241, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(99, 102, 241, 0.02) 1px, transparent 1px);
}

/* ============================================
   STYLES SUPPLÉMENTAIRES POUR L'ÉCOSYSTÈME IA
   ============================================ */

/* Amélioration des statistiques */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (min-width: 1200px) {
    .stats-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: white;
    border-radius: 20px;
    padding: 2.5rem;
    text-align: center;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: var(--shadow-2xl);
}

.stat-card:hover::before {
    opacity: 0.1;
}

.stat-card h3 {
    font-size: 3rem;
    font-weight: 900;
    background: var(--gradient-2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
    transition: transform 0.3s ease;
}

.stat-card:hover h3 {
    transform: scale(1.1);
}

.stat-card p {
    font-size: 1.125rem;
    color: var(--gray);
    font-weight: 500;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.stat-card:hover p {
    color: var(--primary);
}

/* Animation de comptage pour les statistiques */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card.animate h3 {
    animation: countUp 1s ease-out;
}

/* Icônes pour les statistiques */
.stat-icon {
    font-size: 2rem;
    margin-bottom: 1rem;
    opacity: 0.8;
    transition: transform 0.3s ease;
}

.stat-card:hover .stat-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Amélioration des animations de la section intro */
.intro {
    text-align: center;
    background: var(--gradient-1);
    color: white;
    position: relative;
    overflow: hidden;
}

.intro::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) rotate(0deg);
    }
    33% {
        transform: translate(30px, -30px) rotate(120deg);
    }
    66% {
        transform: translate(-20px, 20px) rotate(240deg);
    }
}

.intro h2 {
    color: white;
    position: relative;
    z-index: 1;
}

.intro h2::after {
    background: white;
}

.intro p {
    font-size: 1.125rem;
    line-height: 1.8;
    opacity: 0.95;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

/* Amélioration des animations des cartes de benchmark */
.benchmark-card {
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both;
}

.benchmark-card:nth-child(1) { animation-delay: 0.1s; }
.benchmark-card:nth-child(2) { animation-delay: 0.2s; }
.benchmark-card:nth-child(3) { animation-delay: 0.3s; }
.benchmark-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.benchmark-category {
    animation: slideInLeft 0.6s ease-out;
    animation-fill-mode: both;
}

.benchmark-category:nth-child(1) { animation-delay: 0.2s; }
.benchmark-category:nth-child(2) { animation-delay: 0.4s; }
.benchmark-category:nth-child(3) { animation-delay: 0.6s; }

/* Animation d'entrée pour les badges */
@keyframes badgePop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    50% {
        transform: scale(1.1);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.badge {
    animation: badgePop 0.4s ease-out;
    animation-delay: 0.6s;
    animation-fill-mode: both;
}

/* Responsive pour les nouvelles fonctionnalités */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .badge {
        align-self: flex-start;
    }
    
    .card-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stat {
        font-size: 0.8rem;
    }
    
    .stat-card h3 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .stat-card h3 {
        font-size: 2rem;
    }
    
    .stat-card p {
        font-size: 1rem;
    }
    
    .badge {
        font-size: 0.7rem;
        padding: 0.3rem 0.6rem;
    }
}

/* ============================================
   STYLES POUR LA SECTION BENCHMARKS PRINCIPALE
   ============================================ */

/* Style pour la section principale des benchmarks */
.benchmarks {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    margin: 3rem 0;
    padding: 3rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.benchmarks:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-2xl);
}

.benchmarks::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 24px 24px 0 0;
}

.benchmarks h2 {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--dark);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 1rem;
}

.benchmarks h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--gradient-1);
    border-radius: 2px;
}

/* Styles pour les catégories de benchmarks */
.category-exploration {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.category-exploration::before {
    background: var(--gradient-1);
}

.category-development {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(79, 172, 254, 0.05) 100%);
}

.category-development::before {
    background: var(--gradient-2);
}

.category-resources {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(67, 233, 123, 0.05) 100%);
}

.category-resources::before {
    background: var(--gradient-4);
}

/* Styles spécifiques pour chaque type de benchmark */
.benchmark-dinosaure {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(139, 92, 246, 0.05) 100%);
}

.benchmark-dinosaure::before {
    background: var(--gradient-1);
}

.benchmark-todo {
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.05) 0%, rgba(79, 172, 254, 0.05) 100%);
}

.benchmark-todo::before {
    background: var(--gradient-2);
}

.benchmark-modes {
    background: linear-gradient(135deg, rgba(67, 233, 123, 0.05) 0%, rgba(16, 185, 129, 0.05) 100%);
}

.benchmark-modes::before {
    background: var(--gradient-4);
}

.benchmark-links {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.benchmark-links::before {
    background: var(--gradient-5);
}

.benchmark-meilleurs-modeles {
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%);
}

.benchmark-meilleurs-modeles::before {
    background: var(--gradient-6);
}

/* ============================================
   BADGES POUR LES BENCHMARKS
   ============================================ */

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: none;
    cursor: default;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0.1;
    transition: opacity 0.3s ease;
}

.badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.badge-new {
    background: var(--gradient-1);
    color: white;
}

.badge-new::before {
    background: white;
}

.badge-new:hover {
    box-shadow: 0 8px 25px rgba(99, 102, 241, 0.4);
}

.badge-popular {
    background: var(--gradient-2);
    color: white;
}

.badge-popular::before {
    background: white;
}

.badge-popular:hover {
    box-shadow: 0 8px 25px rgba(6, 182, 212, 0.4);
}

.badge-featured {
    background: var(--gradient-4);
    color: white;
}

.badge-featured::before {
    background: white;
}

.badge-featured:hover {
    box-shadow: 0 8px 25px rgba(67, 233, 123, 0.4);
}

.badge-experimental {
    background: var(--gradient-3);
    color: white;
}

.badge-experimental::before {
    background: white;
}

.badge-experimental:hover {
    box-shadow: 0 8px 25px rgba(79, 172, 254, 0.4);
}

.badge-updated {
    background: var(--gradient-5);
    color: white;
}

.badge-updated::before {
    background: white;
}

.badge-updated:hover {
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.4);
}

.badge-creative {
    background: var(--gradient-6);
    color: white;
}

.badge-creative::before {
    background: white;
}

.badge-creative:hover {
    box-shadow: 0 8px 25px rgba(48, 207, 208, 0.4);
}

/* Cartes de benchmark spécifiques */
.benchmark-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    display: block;
    text-decoration: none;
    color: inherit;
}

.benchmark-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-1);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.benchmark-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-2xl);
    border-color: rgba(99, 102, 241, 0.2);
}

.benchmark-card:hover::before {
    transform: scaleX(1);
}

.benchmark-page-libre {
    background: white linear-gradient(135deg, rgba(139, 92, 246, 0.05) 0%, rgba(99, 102, 241, 0.05) 100%) !important;
}

.benchmark-page-libre::before {
    background: var(--gradient-6);
}

.card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    gap: 1rem;
}

.card-header h4 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    margin: 0;
    flex: 1;
}

.benchmark-card span:not(.badge):not(.stat) {
    font-size: 1rem;
    color: var(--gray);
    line-height: 1.5;
    margin-bottom: 1.5rem;
    display: block;
}

.card-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.stat {
    font-size: 0.9rem;
    color: var(--gray);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(99, 102, 241, 0.05);
    padding: 0.5rem 0.8rem;
    border-radius: 8px;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

/* Grille responsive pour les benchmarks et écosystème */
.benchmark-grid,
.ecosystem-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-top: 2rem;
}

@media (max-width: 900px) {
    .benchmark-grid,
    .ecosystem-grid {
        grid-template-columns: 1fr;
    }
}

.benchmark-category,
.ecosystem-category {
    margin-bottom: 4rem;
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.02) 0%, 
        rgba(139, 92, 246, 0.03) 50%,
        rgba(6, 182, 212, 0.02) 100%
    );
    border-radius: 20px;
    padding: 2.5rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
    position: relative;
    overflow: hidden;
}

.ecosystem-category::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.benchmark-category h3,
.ecosystem-category h3 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 3px solid rgba(99, 102, 241, 0.2);
    position: relative;
    z-index: 1;
}

.benchmark-category p,
.ecosystem-category p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    max-width: 90%;
    position: relative;
    z-index: 1;
}

/* Styles pour les cartes écosystème */
.ecosystem-card {
    background: var(--bg-secondary);
    border-radius: 20px;
    padding: 2rem;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 10px 30px rgba(99, 102, 241, 0.1),
        0 1px 8px rgba(0, 0, 0, 0.05);
}

.ecosystem-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.ecosystem-card:hover::before {
    transform: scaleX(1);
}

.ecosystem-card:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(99, 102, 241, 0.2),
        0 8px 25px rgba(139, 92, 246, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.ecosystem-card .card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.ecosystem-card .card-header h4 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.ecosystem-card > span {
    display: block;
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.ecosystem-card .card-stats {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.ecosystem-card .stat {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 0.5rem 1rem;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

/* Styles pour la méthodologie scientifique */
.methodology-showcase {
    background: linear-gradient(135deg, 
        rgba(99, 102, 241, 0.03) 0%, 
        rgba(139, 92, 246, 0.05) 50%,
        rgba(6, 182, 212, 0.03) 100%
    );
    border-radius: 20px;
    padding: 3rem;
    margin-top: 2rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.methodology-intro {
    text-align: center;
    margin-bottom: 3rem;
}

.methodology-intro .methodology-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
    display: block;
}

.methodology-intro h4 {
    font-size: 1.8rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1rem;
}

.methodology-intro p {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
}

.methodology-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

.methodology-step {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2rem;
    border: 2px solid transparent;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.methodology-step::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, var(--accent) 100%);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.methodology-step:hover::before {
    transform: scaleX(1);
}

.methodology-step:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(99, 102, 241, 0.15);
    border-color: rgba(99, 102, 241, 0.3);
}

.step-number {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.step-content h5 {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.step-content p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.step-metrics {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.step-metrics .metric {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1) 0%, rgba(139, 92, 246, 0.1) 100%);
    padding: 0.4rem 0.8rem;
    border-radius: 8px;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    border: 1px solid rgba(99, 102, 241, 0.2);
}

.methodology-standards {
    background: var(--bg-secondary);
    border-radius: 16px;
    padding: 2.5rem;
    border: 1px solid rgba(99, 102, 241, 0.1);
}

.methodology-standards h4 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2rem;
    text-align: center;
}

.standards-simple-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.standard-simple-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 0;
    border-bottom: 1px solid rgba(99, 102, 241, 0.1);
}

.standard-simple-item:last-child {
    border-bottom: none;
}

.standard-simple-item .standard-icon {
    font-size: 1.2rem;
    flex-shrink: 0;
}

.standard-simple-item strong {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    min-width: 180px;
}

.standard-simple-item span:last-child {
    font-size: 0.9rem;
    color: var(--text-secondary);
    flex: 1;
}

/* Responsive pour les nouvelles cartes */
@media (max-width: 768px) {
    .card-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .badge {
        align-self: flex-start;
    }
    
    .card-stats {
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .stat {
        font-size: 0.8rem;
    }
    
    .benchmark-grid,
    .ecosystem-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .benchmark-card,
    .ecosystem-card {
        padding: 1.5rem;
    }
    
    .benchmark-category,
    .ecosystem-category {
        padding: 1.5rem;
        margin-bottom: 2rem;
    }
    
    .benchmark-category h3,
    .ecosystem-category h3 {
        font-size: 1.4rem;
    }
    
    .benchmark-category p,
    .ecosystem-category p {
        font-size: 1rem;
        max-width: 100%;
    }
    
    .methodology-showcase {
        padding: 2rem;
    }
    
    .methodology-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .methodology-step {
        padding: 1.5rem;
    }
    
    .standards-simple-list {
        gap: 0.8rem;
    }
    
    .standard-simple-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .standard-simple-item strong {
        min-width: auto;
    }
}

/* ============================================
   MEGA MENU POUR BENCHMARKS
   ============================================ */

.mega-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    box-shadow: 0 20px 60px var(--shadow-color);
    border: 1px solid var(--border-color);
    padding: 2rem;
    min-width: 600px;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 100;
}

.dropdown:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.mega-menu-item {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.mega-menu-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(4px);
}

.mega-menu-icon {
    font-size: 2rem;
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-2);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.2);
}

.mega-menu-content h4 {
    margin: 0 0 0.5rem 0;
    color: var(--primary);
    font-size: 1rem;
    font-weight: 600;
}

.mega-menu-content p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.mega-menu-stats {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.5rem;
}

.mega-menu-stat {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
}

/* ============================================
   RECHERCHE AVANCÉE
   ============================================ */

.search-advanced {
    position: relative;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.search-container.active .search-suggestions {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.search-section {
    padding: 0.75rem 0;
}

.search-section:not(:last-child) {
    border-bottom: 1px solid var(--border-color);
}

.search-section-title {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.search-suggestion-item:hover {
    background: rgba(99, 102, 241, 0.08);
}

.search-suggestion-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.search-suggestion-content {
    flex: 1;
}

.search-suggestion-title {
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.search-suggestion-description {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.search-shortcut {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-family: monospace;
}

/* ============================================
   EFFETS VISUELS AVANCÉS
   ============================================ */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
    opacity: 0.3;
    animation: float-particle 20s infinite ease-in-out;
}

@keyframes float-particle {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.3;
    }
    25% {
        transform: translate(100px, -100px) scale(1.5);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50px, -200px) scale(1);
        opacity: 0.3;
    }
    75% {
        transform: translate(-150px, -100px) scale(1.2);
        opacity: 0.4;
    }
}

.parallax-layer {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: transform 0.1s ease-out;
}

/* Adaptation des styles body et header pour les variables */
body {
    color: var(--text-primary);
    background: var(--bg-primary);
}

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

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

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

/* Responsive pour mega menu et recherche avancée */
@media (max-width: 768px) {
    .mega-menu {
        min-width: 90vw;
        left: 5vw;
        transform: none;
        padding: 1.5rem;
    }
    
    .mega-menu-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .search-suggestions {
        max-height: 300px;
    }
}
/* ============================================
   HEADER MODERNE V2.0 - DESIGN COMPLÈTEMENT NOUVEAU
   ============================================ */

/* Variables pour le header moderne */
:root {
    --header-height: 64px;
    --sidebar-width: 320px;
    --header-bg: rgba(255, 255, 255, 0.95);
    --header-border: rgba(0, 0, 0, 0.08);
    --nav-height: 48px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Désactivation du header moderne global sur l'index:
   conservé pour compatibilité sur autres pages mais non utilisé par le nouveau header vc-header. */

/* Barre d'outils supérieure */
.header-toolbar {
    height: var(--header-height);
    border-bottom: 1px solid var(--header-border);
}

.header-toolbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    padding: 0 1.5rem;
}

.toolbar-left {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.toolbar-center {
    flex: 1;
    max-width: 600px;
    margin: 0 2rem;
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

/* Toggle sidebar */
.sidebar-toggle {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-toggle:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

/* Brand moderne */
.brand-modern {
    display: flex;
    align-items: center;
}

.brand-link-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    text-decoration: none;
    color: inherit;
    transition: var(--transition-smooth);
    padding: 0.5rem;
    border-radius: 8px;
}

.brand-link-modern:hover {
    background: rgba(99, 102, 241, 0.05);
    transform: translateY(-1px);
}

.brand-logo {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(99, 102, 241, 0.2);
    transition: var(--transition-smooth);
}

.brand-link-modern:hover .brand-logo {
    transform: scale(1.05) rotate(2deg);
    box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
}

.logo-svg {
    width: 100%;
    height: 100%;
}

.brand-text h1 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    background: var(--gradient-1);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-text span {
    font-size: 0.75rem;
    color: var(--text-secondary);
    font-weight: 500;
    display: block;
    line-height: 1;
}

/* Recherche intelligente */
.smart-search {
    position: relative;
    width: 100%;
}

.search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem 1rem;
    transition: var(--transition-smooth);
}

.search-input-wrapper:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.search-icon {
    color: var(--text-tertiary);
    margin-right: 0.75rem;
    flex-shrink: 0;
}

.search-input-modern {
    flex: 1;
    border: none;
    background: transparent;
    outline: none;
    font-size: 0.9rem;
    color: var(--text-primary);
}

.search-input-modern::placeholder {
    color: var(--text-tertiary);
}

.search-shortcut {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 0.25rem 0.5rem;
    font-size: 0.7rem;
    color: var(--text-tertiary);
    font-family: 'Monaco', 'Menlo', monospace;
    margin-left: 0.5rem;
}

.search-results {
    position: absolute;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    max-height: 400px;
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 1000;
}

.smart-search.active .search-results {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Indicateurs de performance */
.performance-indicator {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-secondary);
    border-radius: 8px;
    border: 1px solid var(--border-color);
}

.perf-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: pulse-dot 2s ease-in-out infinite;
}

.perf-dot.online {
    background: var(--success);
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.perf-text {
    font-size: 0.8rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* Actions rapides */
.quick-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.action-btn {
    background: transparent;
    border: none;
    padding: 0.5rem;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    color: var(--text-primary);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.action-btn:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    transform: translateY(-1px);
}

/* Icônes du bouton thème - état par défaut (mode clair) */
.icon-sun {
    display: block;
}

.icon-moon {
    display: none;
}

[data-theme="dark"] .icon-sun {
    display: none;
}

[data-theme="dark"] .icon-moon {
    display: block;
}

/* ============================================
   CORRECTIONS RECHERCHE - AMÉLIORATIONS
   ============================================ */

/* Container de recherche avec z-index plus élevé */
.vc-search {
    position: relative;
    z-index: 1100;
}

/* Résultats de recherche avec visibilité garantie */
.vc-search-results {
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    right: 0 !important;
    background: rgba(255, 255, 255, 0.98) !important;
    backdrop-filter: blur(20px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(20px) saturate(180%) !important;
    border-radius: 12px !important;
    box-shadow:
        0 20px 60px rgba(15, 23, 42, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.3) inset !important;
    border: 1px solid rgba(148, 163, 253, 0.2) !important;
    margin-top: 0.75rem !important;
    max-height: 400px !important;
    overflow-y: auto !important;
    z-index: 1600 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transform: translateY(-10px) scale(0.95) !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.vc-search-results.show {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateY(0) scale(1) !important;
}

.vc-search-result-item {
    display: block !important;
    padding: 0.75rem 1rem !important;
    color: #374151 !important;
    text-decoration: none !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    position: relative;
    z-index: 1601;
}

.vc-search-result-item:hover {
    background: rgba(99, 102, 241, 0.08) !important;
    color: #111827 !important;
    transform: translateX(4px) !important;
}

.vc-search-result-item:last-child {
    border-bottom: none !important;
}

/* Mode sombre pour la recherche */
[data-theme="dark"] .vc-search-results {
    background: rgba(30, 41, 59, 0.98) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    box-shadow:
        0 20px 60px rgba(0, 0, 0, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.1) inset !important;
}

[data-theme="dark"] .vc-search-result-item {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .vc-search-result-item:hover {
    background: rgba(99, 102, 241, 0.15) !important;
    color: #f1f5f9 !important;
}

.notification-badge {
    position: absolute;
    top: 4px;
    right: 4px;
    background: var(--danger);
    color: white;
    font-size: 0.65rem;
    font-weight: 600;
    padding: 0.15rem 0.35rem;
    border-radius: 10px;
    min-width: 16px;
    text-align: center;
}

.user-avatar-modern {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--gradient-1);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Navigation principale */
.main-navigation {
    height: var(--nav-height);
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--header-border);
}

.main-navigation .container {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 1.5rem;
}

.nav-list-modern {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.5rem;
}

.nav-item-modern {
    position: relative;
}

.nav-link-modern {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    border-radius: 8px;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
}

.nav-link-modern:hover,
.nav-link-modern.active {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.nav-icon {
    font-size: 1rem;
}

.dropdown-arrow {
    margin-left: 0.25rem;
    transition: transform 0.3s ease;
}

.dropdown-modern:hover .dropdown-arrow {
    transform: rotate(180deg);
}

/* Mega menu */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    min-width: 400px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 1000;
    margin-top: 0.5rem;
}

/* Mega menu large pour Best AI Models */
.mega-menu-large {
    min-width: 800px;
    max-width: 90vw;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
}

.mega-menu-large {
    opacity: 0;
    visibility: hidden;
    transform: translateX(-50%) translateY(-10px);
}

.dropdown-modern:hover .mega-menu-large {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.dropdown-modern:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-content {
    padding: 1.5rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.mega-menu-large .mega-menu-content {
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.mega-menu-section {
    margin-bottom: 0;
}

.mega-menu-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.mega-menu-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.75rem;
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    margin-bottom: 0.5rem;
    border: 1px solid transparent;
}

.mega-menu-item:hover {
    background: rgba(99, 102, 241, 0.08);
    border-color: rgba(99, 102, 241, 0.2);
    transform: translateX(2px);
}

.mega-menu-item:last-child {
    margin-bottom: 0;
}

.item-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.item-content {
    flex: 1;
    min-width: 0;
}

.item-content h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.item-content p {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin: 0 0 0.5rem 0;
    line-height: 1.4;
}

/* Rating system pour les modèles IA */
.model-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
}

.stars {
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}

.score {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: rgba(99, 102, 241, 0.1);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
}

/* Sidebar latérale */
.sidebar {
    position: fixed;
    top: 0;
    left: -var(--sidebar-width);
    width: var(--sidebar-width);
    height: 100vh;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-right: 1px solid var(--border-color);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1100;
    overflow-y: auto;
}

.sidebar.active {
    transform: translateX(var(--sidebar-width));
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    height: var(--header-height);
}

.sidebar-header h2 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.sidebar-close {
    background: transparent;
    border: none;
    font-size: 1.5rem;
    color: var(--text-secondary);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: var(--transition-smooth);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.sidebar-close:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.sidebar-content {
    padding: 1.5rem;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 1rem 0;
}

.sidebar-section ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.sidebar-section li {
    margin-bottom: 0.5rem;
}

.sidebar-section a,
.sidebar-section button {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 8px;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    cursor: pointer;
}

.sidebar-section a:hover,
.sidebar-section button:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
    transform: translateX(4px);
}

/* Overlay pour la sidebar */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-smooth);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* Responsive design pour le header moderne */
@media (max-width: 1024px) {
    .toolbar-center {
        margin: 0 1rem;
    }
    
/* Responsive design pour le mega menu large */
@media (max-width: 1024px) {
    .mega-menu-large {
        min-width: 700px;
        max-width: 85vw;
    }
    
    .mega-menu-large .mega-menu-content {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
}

@media (max-width: 768px) {
    .mega-menu-large {
        min-width: 90vw;
        max-width: 90vw;
        left: 5vw;
        transform: translateX(0) translateY(-10px);
    }
    
    .dropdown-modern:hover .mega-menu-large {
        transform: translateX(0) translateY(0);
    }
    
    .mega-menu-large .mega-menu-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

    .mega-menu {
        min-width: 350px;
    }
}

@media (max-width: 768px) {
    :root {
        --header-height: 56px;
    }
    
    .header-toolbar .container {
        padding: 0 1rem;
    }
    
    .toolbar-center {
        margin: 0 0.5rem;
    }
    
    .brand-text h1 {
        font-size: 1.1rem;
    }
    
    .brand-text span {
        display: none;
    }
    
    .performance-indicator {
        display: none;
    }
    
    .main-navigation {
        display: none;
    }
    
    .nav-list-modern {
        flex-direction: column;
        gap: 0;
    }
}

@media (max-width: 480px) {
    :root {
        --header-height: 52px;
    }
    
    .header-toolbar .container {
        padding: 0 0.75rem;
    }
    
    .toolbar-left {
        gap: 0.5rem;
    }
    
    .toolbar-right {
        gap: 0.25rem;
    }
    
    .action-btn {
        padding: 0.4rem;
    }
    
    .search-shortcut {
        display: none;
    }
    
    .sidebar {
        --sidebar-width: 280px;
    }
}

/* Animations et transitions */
.modern-header {
    animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-100%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* États focus pour l'accessibilité */
.action-btn:focus,
.sidebar-toggle:focus,
.nav-link-modern:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Effet de scroll sur le header */
.modern-header.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px) saturate(200%);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
}

/* Mode sombre adaptation */
[data-theme="dark"] .modern-header {
    background: rgba(15, 23, 42, 0.95);
    border-bottom-color: rgba(255, 255, 255, 0.1);
}

[data-theme="dark"] .main-navigation {
    background: rgba(30, 41, 59, 0.95);
}

[data-theme="dark"] .search-input-wrapper {
    background: rgba(30, 41, 59, 0.8);
    border-color: rgba(255, 255, 255, 0.1);
}

@media (prefers-reduced-motion: reduce) {
    .modern-header,
    .sidebar,
    .mega-menu,
    .action-btn,
    .nav-link-modern {
        transition: none !important;
        animation: none !important;
    }
}

/* ============================================
   STYLES COMPLÉMENTAIRES POUR LE HEADER MODERNE
   ============================================ */

/* Styles pour les résultats de recherche */
.search-no-results {
    padding: 2rem 1.5rem;
    text-align: center;
    color: var(--text-secondary);
}

.no-results-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.no-results-text {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.no-results-hint {
    font-size: 0.85rem;
    color: var(--text-tertiary);
}

.search-results-header {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-results-list {
    max-height: 300px;
    overflow-y: auto;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition-smooth);
    border-bottom: 1px solid var(--border-color);
}

.search-result-item:hover {
    background: rgba(99, 102, 241, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-icon {
    font-size: 1.25rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(99, 102, 241, 0.1);
    border-radius: 8px;
    flex-shrink: 0;
}

.result-content {
    flex: 1;
    min-width: 0;
}

.result-title {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.result-title mark {
    background: rgba(99, 102, 241, 0.2);
    color: var(--primary);
    padding: 0 0.2rem;
    border-radius: 2px;
}

.result-category {
    font-size: 0.75rem;
    color: var(--text-tertiary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.result-arrow {
    font-size: 1rem;
    color: var(--text-tertiary);
    transition: var(--transition-smooth);
}

.search-result-item:hover .result-arrow {
    color: var(--primary);
    transform: translateX(2px);
}

/* Dropdown pour les notifications */
.notifications-dropdown-modern {
    position: absolute;
    top: 100%;
    right: 0;
    width: 360px;
    max-height: 480px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
}

.notifications-dropdown-modern.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.notifications-header-modern {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(99, 102, 241, 0.05);
}

.notifications-header-modern h4 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1rem;
    font-weight: 600;
}

/* ============================================
   EFFETS VISUELS AVANCÉS SUPPLÉMENTAIRES
   ============================================ */

/* État header scrollé avec effets premium */
.vc-header.is-scrolled {
    background: rgba(255,255,255,0.98);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
    box-shadow:
        0 8px 32px rgba(15,23,42,0.15),
        0 0 0 1px rgba(255, 255, 255, 0.2) inset;
    border-color: rgba(148,163,253,0.35);
}

/* Effet de lumière animée supplémentaire */
.vc-header::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: conic-gradient(
        from 0deg,
        transparent 0deg,
        rgba(99, 102, 241, 0.1) 45deg,
        rgba(139, 92, 246, 0.08) 90deg,
        rgba(6, 182, 212, 0.06) 135deg,
        transparent 180deg,
        rgba(99, 102, 241, 0.04) 225deg,
        rgba(139, 92, 246, 0.03) 270deg,
        rgba(6, 182, 212, 0.02) 315deg,
        transparent 360deg
    );
    animation: lightRotation 20s linear infinite;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

@keyframes lightRotation {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Effet de reflet 3D sur les éléments interactifs */
.vc-nav-link,
.vc-nav-button,
.vc-logo,
.vc-theme-toggle {
    transform-style: preserve-3d;
    perspective: 1000px;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.vc-nav-link:hover,
.vc-nav-button:hover,
.vc-logo:hover,
.vc-theme-toggle:hover {
    transform: translateY(-2px) rotateX(5deg);
}

/* Ombres dynamiques et multi-couches pour dropdown */
.vc-dropdown-menu {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        0 2px 4px rgba(0, 0, 0, 0.04),
        0 8px 16px rgba(0, 0, 0, 0.08),
        0 16px 32px rgba(0, 0, 0, 0.12),
        0 32px 64px rgba(99, 102, 241, 0.1);
}

/* Effet de profondeur pour le menu mobile */
.vc-mobile-nav {
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.1) inset,
        -4px 0 20px rgba(0, 0, 0, 0.1),
        -8px 0 40px rgba(0, 0, 0, 0.08),
        -16px 0 80px rgba(99, 102, 241, 0.05);
}

/* Animations de pulsation subtiles */
@keyframes subtlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.8;
    }
    50% {
        transform: scale(1.02);
        opacity: 1;
    }
}

.vc-logo-icon {
    animation: subtlePulse 4s ease-in-out infinite;
}

/* Effet de brillance au scroll */
.vc-header.is-scrolled::before {
    background:
        radial-gradient(circle at 20% 50%, rgba(99, 102, 241, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%);
}

/* Effet de particules flottantes additionnelles */
@keyframes floatParticle {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0.3;
    }
    33% {
        transform: translateY(-10px) rotate(120deg);
        opacity: 0.6;
    }
    66% {
        transform: translateY(5px) rotate(240deg);
        opacity: 0.4;
    }
}

.vc-header .floating-particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(99, 102, 241, 0.6);
    border-radius: 50%;
    pointer-events: none;
    animation: floatParticle 6s ease-in-out infinite;
}

/* Effet de reflet sur les boutons */
.vc-nav-link::after,
.vc-nav-button::after {
    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.6s ease;
    border-radius: inherit;
}

.vc-nav-link:hover::after,
.vc-nav-button:hover::after {
    left: 100%;
}

/* Responsive pour les effets avancés */
@media (max-width: 768px) {
    .vc-header::after {
        animation-duration: 30s;
        opacity: 0.2;
    }
    
    .vc-nav-link:hover,
    .vc-nav-button:hover,
    .vc-logo:hover,
    .vc-theme-toggle:hover {
        transform: translateY(-1px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .vc-header::after,
    .vc-logo-icon,
    .floating-particle {
        animation: none !important;
    }
    
    .vc-nav-link::after,
    .vc-nav-button::after {
        transition: none !important;
    }
}

.notifications-clear-modern {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.85rem;
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    transition: var(--transition-smooth);
}

.notifications-clear-modern:hover {
    background: rgba(99, 102, 241, 0.1);
}

.notifications-list-modern {
    max-height: 400px;
    overflow-y: auto;
}

.notification-item-modern {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.notification-item-modern:hover {
    background: rgba(99, 102, 241, 0.05);
}

.notification-item-modern.unread {
    background: rgba(99, 102, 241, 0.08);
}

.notification-icon-modern {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.notification-content-modern h5 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.9rem;
    font-weight: 600;
}

.notification-content-modern p {
    margin: 0 0 0.5rem 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.notification-time-modern {
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.notifications-empty-modern {
    padding: 3rem 1rem;
    text-align: center;
    color: var(--text-secondary);
}

.notifications-empty-icon-modern {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

/* Dropdown pour le menu utilisateur */
.user-dropdown-modern {
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 220px;
    background: var(--bg-tertiary);
    backdrop-filter: blur(20px);
    border-radius: 12px;
    box-shadow: 0 10px 40px var(--shadow-color);
    border: 1px solid var(--border-color);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-smooth);
    z-index: 1000;
    margin-top: 0.5rem;
    overflow: hidden;
}

.user-dropdown-modern.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-dropdown-header-modern {
    padding: 1rem;
    border-bottom: 1px solid var(--border-color);
    background: rgba(99, 102, 241, 0.05);
}

.user-dropdown-header-modern h4 {
    margin: 0 0 0.25rem 0;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-weight: 600;
}

.user-dropdown-header-modern p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.85rem;
}

.user-dropdown-item-modern {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-primary);
    text-decoration: none;
    transition: var(--transition-smooth);
    cursor: pointer;
    border: none;
    background: transparent;
    width: 100%;
    text-align: left;
    font-size: 0.9rem;
}

.user-dropdown-item-modern:hover {
    background: rgba(99, 102, 241, 0.1);
    color: var(--primary);
}

.user-dropdown-item-modern span:first-child {
    font-size: 1.2rem;
}

/* Animations avancées */
@keyframes slideInFromTop {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.search-result-item {
    animation: slideInFromTop 0.3s ease-out;
}

.notification-item-modern {
    animation: fadeInScale 0.3s ease-out;
}

/* Scrollbar personnalisée */
.search-results-list::-webkit-scrollbar,
.notifications-list-modern::-webkit-scrollbar {
    width: 6px;
}

.search-results-list::-webkit-scrollbar-track,
.notifications-list-modern::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

.search-results-list::-webkit-scrollbar-thumb,
.notifications-list-modern::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 3px;
}

.search-results-list::-webkit-scrollbar-thumb:hover,
.notifications-list-modern::-webkit-scrollbar-thumb:hover {
    background: var(--primary-dark);
}

/* États de chargement */
.search-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.search-spinner {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 0.5rem;
}

@keyframes spin {
/* ============================================
   EFFETS VISUELS PREMIUM SUPPLÉMENTAIRES
   ============================================ */

/* Effet de lueur inspirée pour le logo */
.vc-logo-icon::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #4f46e5, #8b5cf6, #06b6d4, #4f46e5);
    background-size: 400% 400%;
    border-radius: 0.9rem;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
    animation: gradientShift 3s ease infinite;
}

.vc-logo-icon:hover::before {
    opacity: 0.3;
}

/* Animation de rotation subtile pour le logo */
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-2px) rotate(1deg); }
    66% { transform: translateY(1px) rotate(-1deg); }
}

.vc-logo-icon {
    animation: logoFloat 6s ease-in-out infinite;
}

/* Effet de brillance qui traverse les éléments de navigation */
@keyframes shineThrough {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}

.vc-nav-link::before,
.vc-nav-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg, 
        transparent, 
        rgba(255, 255, 255, 0.4), 
        rgba(255, 255, 255, 0.1), 
        transparent
    );
    transition: left 0.6s ease;
    border-radius: inherit;
}

.vc-nav-link:hover::before,
.vc-nav-button:hover::before {
    left: 100%;
}

/* Effet de pulsation pour le bouton thème */
@keyframes premiumPulse {
    0%, 100% {
        box-shadow: 
            0 8px 32px rgba(99, 102, 241, 0.4),
            0 0 0 2px rgba(255, 255, 255, 0.2) inset,
            0 0 20px rgba(139, 92, 246, 0.3);
        transform: scale(1);
    }
    50% {
        box-shadow: 
            0 12px 48px rgba(99, 102, 241, 0.6),
            0 0 0 3px rgba(255, 255, 255, 0.4) inset,
            0 0 35px rgba(139, 92, 246, 0.5);
        transform: scale(1.02);
    }
}

.vc-theme-toggle {
    animation: premiumPulse 4s ease-in-out infinite;
}

/* Particules supplémentaires autour du header */
.vc-header::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    background-image: 
        radial-gradient(3px 3px at 25% 25%, rgba(99, 102, 241, 0.3), transparent),
        radial-gradient(2px 2px at 75% 75%, rgba(139, 92, 246, 0.3), transparent),
        radial-gradient(2px 2px at 50% 50%, rgba(6, 182, 212, 0.3), transparent),
        radial-gradient(1px 1px at 10% 90%, rgba(99, 102, 241, 0.2), transparent),
        radial-gradient(1px 1px at 90% 10%, rgba(139, 92, 246, 0.2), transparent);
    background-size: 200px 200px, 150px 150px, 100px 100px, 180px 180px, 120px 120px;
    animation: premiumParticles 15s linear infinite;
    pointer-events: none;
    z-index: -1;
}

@keyframes premiumParticles {
    0% {
        background-position: 
            0% 0%, 
            100% 100%, 
            50% 50%, 
            0% 100%, 
            100% 0%;
        opacity: 0.6;
    }
    25% {
        background-position: 
            100% 0%, 
            0% 100%, 
            0% 0%, 
            100% 100%, 
            0% 100%;
        opacity: 0.8;
    }
    50% {
        background-position: 
            100% 100%, 
            0% 0%, 
            100% 50%, 
            50% 0%, 
            0% 50%;
        opacity: 1;
    }
    75% {
        background-position: 
            0% 100%, 
            100% 0%, 
            50% 100%, 
            100% 50%, 
            50% 100%;
        opacity: 0.8;
    }
    100% {
        background-position: 
            0% 0%, 
            100% 100%, 
            50% 50%, 
            0% 100%, 
            100% 0%;
        opacity: 0.6;
    }
}

/* Effet de dégradé animé pour le dropdown */
.vc-dropdown-menu::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(
        90deg,
        transparent 0%,
        #4f46e5 20%,
        #8b5cf6 50%,
        #06b6d4 80%,
        transparent 100%
    );
    background-size: 200% 200%;
    border-radius: 1.2rem 1.2rem 0 0;
    animation: borderGlow 3s linear infinite;
}

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

/* Micro-interactions pour les éléments de dropdown */
.vc-dropdown-item {
    position: relative;
    overflow: hidden;
}

.vc-dropdown-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1), transparent);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
    z-index: -1;
}

.vc-dropdown-item:hover::after {
    width: 200px;
    height: 200px;
}

/* Effet de chargement sophistiqué */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(100%); }
}

.vc-header::before {
    background: 
        linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.4) 50%,
            transparent 100%
        );
    animation: shimmer 3s ease-in-out infinite;
}

/* Performance et acessibilité */
@media (prefers-reduced-motion: reduce) {
    .vc-logo-icon,
    .vc-theme-toggle,
    .vc-header::after,
    .vc-nav-link::before,
    .vc-nav-button::before,
    .vc-dropdown-menu::after {
        animation: none !important;
    }
    
    .vc-header::before {
        display: none;
    }
}
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive pour les dropdowns */
@media (max-width: 768px) {
    .notifications-dropdown-modern {
        width: 90vw;
        right: 5vw;
        left: 5vw;
    }
    
    .user-dropdown-modern {
        width: 90vw;
        right: 5vw;
        left: 5vw;
    }
    
    .search-results {
        width: 100%;
        left: 0;
        right: 0;
    }
}

@media (max-width: 480px) {
    .search-result-item {
        padding: 0.75rem;
    }
    
    .result-icon {
        width: 28px;
        height: 28px;
        font-size: 1rem;
    }
    
    .result-title {
        font-size: 0.85rem;
    }
    
    .notification-item-modern {
        padding: 0.75rem;
    }
    
    .notification-icon-modern {
        font-size: 1.25rem;
    }
}

/* Accessibilité améliorée */
@media (prefers-reduced-motion: reduce) {
    .search-result-item,
    .notification-item-modern,
    .user-dropdown-modern,
    .notifications-dropdown-modern {
        animation: none !important;
        transition: none !important;
    }
}

/* Focus visible pour l'accessibilité */
.search-result-item:focus,
.notification-item-modern:focus,
.user-dropdown-item-modern:focus,
.action-btn:focus,
.sidebar-toggle:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* Mode haute contraste */
@media (prefers-contrast: high) {
    .modern-header {
        border-bottom-width: 2px;
    }

    .search-input-wrapper {
        border-width: 2px;
    }

    .action-btn:focus,
    .sidebar-toggle:focus {
        outline-width: 3px;
    }
}
