/**
 * ============================================================================
 * FICHIER : design-system.css
 * ============================================================================
 * 
 * DESCRIPTION :
 * Design System complet pour le thème dark mode spectaculaire de SEOmity.
 * Contient toutes les variables CSS, animations, effets glassmorphism,
 * glow néon et classes utilitaires pour un design moderne et impressionnant.
 * 
 * PALETTE :
 * - Fond : Gradient bleu nuit vers violet (#0a0a0f → #1a1a2e)
 * - Accents : Gradient multicolore (violet → bleu → cyan)
 * - Effets : Glassmorphism, glow néon, particules
 * 
 * AUTEUR : SEOmity Design System
 * VERSION : 2.0.0
 * ============================================================================
 */

/* ============================================================================
   SECTION 1 : VARIABLES CSS (Design Tokens)
   ============================================================================ */

:root {
    /* ===== COULEURS DE FOND ===== */
    --bg-primary: #0a0a0f;
    --bg-secondary: #12121a;
    --bg-tertiary: #1a1a2e;
    --bg-elevated: #1f1f35;
    --bg-hover: #252540;
    
    /* ===== GRADIENTS ===== */
    --gradient-bg: linear-gradient(135deg, #0a0a1a 0%, #1a1a2e 50%, #0f0f1a 100%);
    --gradient-bg-radial: radial-gradient(ellipse at top, #1a1a2e 0%, #0a0a0f 70%);
    --gradient-accent: linear-gradient(135deg, #7c3aed 0%, #3b82f6 50%, #06b6d4 100%);
    --gradient-accent-reverse: linear-gradient(135deg, #06b6d4 0%, #3b82f6 50%, #7c3aed 100%);
    --gradient-glow: linear-gradient(135deg, rgba(124, 58, 237, 0.3) 0%, rgba(59, 130, 246, 0.3) 50%, rgba(6, 182, 212, 0.3) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
    --gradient-border: linear-gradient(135deg, rgba(124, 58, 237, 0.5), rgba(59, 130, 246, 0.5), rgba(6, 182, 212, 0.5));
    
    /* ===== COULEURS DE TEXTE ===== */
    --text-primary: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    --text-disabled: #52525b;
    
    /* ===== COULEURS D'ACCENT ===== */
    --accent-purple: #7c3aed;
    --accent-purple-light: #a78bfa;
    --accent-purple-dark: #5b21b6;
    --accent-blue: #3b82f6;
    --accent-blue-light: #60a5fa;
    --accent-blue-dark: #1d4ed8;
    --accent-cyan: #06b6d4;
    --accent-cyan-light: #22d3ee;
    --accent-cyan-dark: #0891b2;
    
    /* ===== COULEURS SÉMANTIQUES ===== */
    --color-success: #10b981;
    --color-success-light: #34d399;
    --color-warning: #f59e0b;
    --color-warning-light: #fbbf24;
    --color-error: #ef4444;
    --color-error-light: #f87171;
    --color-info: #3b82f6;
    
    /* ===== BORDURES ===== */
    --border-subtle: rgba(255, 255, 255, 0.06);
    --border-default: rgba(255, 255, 255, 0.1);
    --border-strong: rgba(255, 255, 255, 0.15);
    --border-accent: rgba(124, 58, 237, 0.5);
    
    /* ===== OMBRES ===== */
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);
    --shadow-glow-purple: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(124, 58, 237, 0.2);
    --shadow-glow-blue: 0 0 20px rgba(59, 130, 246, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
    --shadow-glow-cyan: 0 0 20px rgba(6, 182, 212, 0.4), 0 0 40px rgba(6, 182, 212, 0.2);
    --shadow-glow-multi: 0 0 20px rgba(124, 58, 237, 0.3), 0 0 40px rgba(59, 130, 246, 0.2), 0 0 60px rgba(6, 182, 212, 0.1);
    
    /* ===== ESPACEMENTS ===== */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    --spacing-2xl: 3rem;
    --spacing-3xl: 4rem;
    
    /* ===== RAYONS DE BORDURE ===== */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* ===== TRANSITIONS ===== */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* ===== Z-INDEX ===== */
    --z-dropdown: 100;
    --z-sticky: 200;
    --z-modal-backdrop: 300;
    --z-modal: 400;
    --z-tooltip: 500;
    --z-particles: -1;
}

/* ============================================================================
   SECTION 2 : RESET & BASE
   ============================================================================ */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--bg-elevated);
}

/* Sélection de texte */
::selection {
    background: rgba(124, 58, 237, 0.3);
    color: var(--text-primary);
}

/* ============================================================================
   SECTION 3 : CLASSES GLASSMORPHISM
   ============================================================================ */

/* Glass de base */
.glass {
    background: rgba(255, 255, 255, 0.03);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
}

/* Glass plus visible */
.glass-strong {
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid var(--border-strong);
}

/* Glass avec teinte colorée */
.glass-purple {
    background: rgba(124, 58, 237, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(124, 58, 237, 0.2);
}

.glass-blue {
    background: rgba(59, 130, 246, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(59, 130, 246, 0.2);
}

.glass-cyan {
    background: rgba(6, 182, 212, 0.08);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(6, 182, 212, 0.2);
}

/* Card glass avec hover */
.glass-card {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    transition: all var(--transition-base);
}

.glass-card:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: var(--border-strong);
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

/* ============================================================================
   SECTION 4 : EFFETS GLOW & NEON
   ============================================================================ */

/* Glow multicolore */
.neon-glow {
    box-shadow: var(--shadow-glow-multi);
}

.neon-glow-hover {
    transition: box-shadow var(--transition-base);
}

.neon-glow-hover:hover {
    box-shadow: var(--shadow-glow-multi);
}

/* Glow spécifique par couleur */
.glow-purple {
    box-shadow: var(--shadow-glow-purple);
}

.glow-blue {
    box-shadow: var(--shadow-glow-blue);
}

.glow-cyan {
    box-shadow: var(--shadow-glow-cyan);
}

/* Texte avec glow */
.text-glow {
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.5), 0 0 40px rgba(59, 130, 246, 0.3);
}

.text-glow-purple {
    text-shadow: 0 0 20px rgba(124, 58, 237, 0.6);
}

.text-glow-blue {
    text-shadow: 0 0 20px rgba(59, 130, 246, 0.6);
}

.text-glow-cyan {
    text-shadow: 0 0 20px rgba(6, 182, 212, 0.6);
}

/* Bordure néon animée */
.neon-border {
    position: relative;
    border: none;
    background: var(--bg-secondary);
}

.neon-border::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: inherit;
    z-index: -1;
    opacity: 0.5;
    filter: blur(8px);
    transition: opacity var(--transition-base);
}

.neon-border:hover::before {
    opacity: 1;
}

/* Pulse glow */
.pulse-glow {
    animation: pulseGlow 2s ease-in-out infinite;
}

/* ============================================================================
   SECTION 5 : TEXTE GRADIENT
   ============================================================================ */

.gradient-text {
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text-animated {
    background: linear-gradient(
        135deg,
        #7c3aed 0%,
        #3b82f6 25%,
        #06b6d4 50%,
        #3b82f6 75%,
        #7c3aed 100%
    );
    background-size: 200% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientShift 3s linear infinite;
}

/* ============================================================================
   SECTION 6 : BOUTONS
   ============================================================================ */

/* Bouton primaire gradient */
.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--gradient-accent);
    color: white;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255,255,255,0.2) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-fast);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-multi);
}

.btn-primary:hover::before {
    opacity: 1;
}

.btn-primary:active {
    transform: translateY(0);
}

/* Bouton secondaire glass */
.btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 600;
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--border-strong);
    transform: translateY(-2px);
}

/* Bouton outline avec glow */
.btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--accent-purple);
    font-weight: 600;
    border: 2px solid var(--accent-purple);
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all var(--transition-base);
}

.btn-outline:hover {
    background: rgba(124, 58, 237, 0.1);
    box-shadow: var(--shadow-glow-purple);
    transform: translateY(-2px);
}

/* Bouton icon */
.btn-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-primary);
    border-color: var(--border-strong);
}

/* ============================================================================
   SECTION 7 : INPUTS & FORMULAIRES
   ============================================================================ */

.input-dark {
    width: 100%;
    padding: 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    transition: all var(--transition-fast);
}

.input-dark::placeholder {
    color: var(--text-muted);
}

.input-dark:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2), var(--shadow-glow-purple);
}

/* Input avec icône */
.input-group {
    position: relative;
}

.input-group .input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.input-group .input-dark {
    padding-left: 2.75rem;
}

/* Select stylisé */
.select-dark {
    appearance: none;
    width: 100%;
    padding: 0.875rem 2.5rem 0.875rem 1rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23a1a1aa'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1.25rem;
}

.select-dark:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* Checkbox & Radio custom */
.checkbox-dark {
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background: var(--bg-secondary);
    border: 2px solid var(--border-strong);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    position: relative;
}

.checkbox-dark:checked {
    background: var(--gradient-accent);
    border-color: transparent;
}

.checkbox-dark:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-dark:focus {
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.2);
}

/* ============================================================================
   SECTION 8 : CARDS
   ============================================================================ */

/* Card de base dark */
.card-dark {
    background: var(--bg-secondary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
}

.card-dark:hover {
    border-color: var(--border-default);
    box-shadow: var(--shadow-md);
}

/* Card avec effet 3D au hover */
.card-3d {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 1.5rem;
    transition: all var(--transition-base);
    transform-style: preserve-3d;
    perspective: 1000px;
}

.card-3d:hover {
    transform: translateY(-8px) rotateX(2deg);
    box-shadow: var(--shadow-xl), var(--shadow-glow-multi);
    border-color: var(--border-strong);
}

/* Card feature avec icône */
.card-feature {
    background: var(--gradient-card);
    backdrop-filter: blur(20px);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.card-feature::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--gradient-accent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.card-feature:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-strong);
}

.card-feature:hover::before {
    opacity: 1;
}

/* Card pricing */
.card-pricing {
    background: var(--bg-secondary);
    border: 1px solid var(--border-default);
    border-radius: var(--radius-xl);
    padding: 2rem;
    text-align: center;
    transition: all var(--transition-base);
    position: relative;
}

.card-pricing.popular {
    background: var(--gradient-card);
    border: 2px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.card-pricing.popular::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: var(--gradient-accent);
    border-radius: inherit;
    z-index: -1;
}

.card-pricing:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-glow-multi);
}

/* ============================================================================
   SECTION 9 : BADGES & TAGS
   ============================================================================ */

.badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.badge-gradient {
    background: var(--gradient-accent);
    color: white;
}

.badge-purple {
    background: rgba(124, 58, 237, 0.2);
    color: var(--accent-purple-light);
    border: 1px solid rgba(124, 58, 237, 0.3);
}

.badge-blue {
    background: rgba(59, 130, 246, 0.2);
    color: var(--accent-blue-light);
    border: 1px solid rgba(59, 130, 246, 0.3);
}

.badge-cyan {
    background: rgba(6, 182, 212, 0.2);
    color: var(--accent-cyan-light);
    border: 1px solid rgba(6, 182, 212, 0.3);
}

.badge-success {
    background: rgba(16, 185, 129, 0.2);
    color: var(--color-success-light);
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-warning {
    background: rgba(245, 158, 11, 0.2);
    color: var(--color-warning-light);
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-error {
    background: rgba(239, 68, 68, 0.2);
    color: var(--color-error-light);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* ============================================================================
   SECTION 10 : ANIMATIONS KEYFRAMES
   ============================================================================ */

/* Gradient shift pour texte animé */
@keyframes gradientShift {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

/* Pulse glow */
@keyframes pulseGlow {
    0%, 100% {
        box-shadow: 0 0 20px rgba(124, 58, 237, 0.4), 0 0 40px rgba(59, 130, 246, 0.2);
    }
    50% {
        box-shadow: 0 0 30px rgba(124, 58, 237, 0.6), 0 0 60px rgba(59, 130, 246, 0.4);
    }
}

/* Float animation */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

.float {
    animation: float 3s ease-in-out infinite;
}

/* Fade in up */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Fade in */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 0.5s ease-out forwards;
}

/* Scale in */
@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.scale-in {
    animation: scaleIn 0.4s ease-out forwards;
}

/* Slide in from left */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-left {
    animation: slideInLeft 0.5s ease-out forwards;
}

/* Slide in from right */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.5s ease-out forwards;
}

/* Spin (pour loaders) */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Bounce */
@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
        animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
    }
    50% {
        transform: translateY(-25%);
        animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
    }
}

.bounce {
    animation: bounce 1s infinite;
}

/* Shimmer (loading skeleton) */
@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

.shimmer {
    background: linear-gradient(
        90deg,
        var(--bg-secondary) 0%,
        var(--bg-tertiary) 50%,
        var(--bg-secondary) 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

/* Typing cursor */
@keyframes blink {
    0%, 50% { opacity: 1; }
    51%, 100% { opacity: 0; }
}

.typing-cursor::after {
    content: '|';
    animation: blink 1s infinite;
    color: var(--accent-purple);
}

/* Border rotation pour effet néon */
@keyframes borderRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Counter animation */
@keyframes countUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ============================================================================
   SECTION 11 : PARTICULES CSS (Alternative légère à particles.js)
   ============================================================================ */

.particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: var(--z-particles);
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-purple);
    border-radius: 50%;
    opacity: 0.3;
    animation: particleFloat 15s infinite ease-in-out;
}

.particle:nth-child(2n) {
    background: var(--accent-blue);
    animation-duration: 20s;
    animation-delay: -5s;
}

.particle:nth-child(3n) {
    background: var(--accent-cyan);
    animation-duration: 25s;
    animation-delay: -10s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translateY(100vh) translateX(0) scale(0);
        opacity: 0;
    }
    10% {
        opacity: 0.5;
        transform: scale(1);
    }
    90% {
        opacity: 0.5;
    }
    100% {
        transform: translateY(-100vh) translateX(100px) scale(0);
        opacity: 0;
    }
}

/* ============================================================================
   SECTION 12 : UTILITAIRES
   ============================================================================ */

/* Backgrounds */
.bg-gradient { background: var(--gradient-bg); }
.bg-gradient-radial { background: var(--gradient-bg-radial); }
.bg-primary { background: var(--bg-primary); }
.bg-secondary { background: var(--bg-secondary); }
.bg-tertiary { background: var(--bg-tertiary); }

/* Textes */
.text-primary { color: var(--text-primary); }
.text-secondary { color: var(--text-secondary); }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent-purple); }

/* Bordures */
.border-subtle { border-color: var(--border-subtle); }
.border-default { border-color: var(--border-default); }
.border-accent { border-color: var(--accent-purple); }

/* Transitions */
.transition-fast { transition: all var(--transition-fast); }
.transition-base { transition: all var(--transition-base); }
.transition-slow { transition: all var(--transition-slow); }

/* Hover effects */
.hover-lift {
    transition: transform var(--transition-base);
}
.hover-lift:hover {
    transform: translateY(-4px);
}

.hover-scale {
    transition: transform var(--transition-fast);
}
.hover-scale:hover {
    transform: scale(1.05);
}

.hover-glow {
    transition: box-shadow var(--transition-base);
}
.hover-glow:hover {
    box-shadow: var(--shadow-glow-multi);
}

/* Delayed animations */
.delay-100 { animation-delay: 100ms; }
.delay-200 { animation-delay: 200ms; }
.delay-300 { animation-delay: 300ms; }
.delay-400 { animation-delay: 400ms; }
.delay-500 { animation-delay: 500ms; }
.delay-600 { animation-delay: 600ms; }
.delay-700 { animation-delay: 700ms; }
.delay-800 { animation-delay: 800ms; }

/* Opacité initiale pour animations */
.animate-on-scroll {
    opacity: 0;
}

.animate-on-scroll.visible {
    opacity: 1;
}

/* ============================================================================
   SECTION 13 : RESPONSIVE
   ============================================================================ */

/* Réduction des animations sur mobile si préférence */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Ajustements mobile */
@media (max-width: 640px) {
    :root {
        --spacing-lg: 1rem;
        --spacing-xl: 1.5rem;
        --spacing-2xl: 2rem;
    }
    
    .particles-container {
        display: none; /* Masquer particules sur mobile pour performance */
    }
}

/* ============================================================================
   SECTION 14 : COMPOSANTS SPÉCIAUX
   ============================================================================ */

/* Loader spinner gradient */
.loader-gradient {
    width: 48px;
    height: 48px;
    border: 4px solid var(--bg-tertiary);
    border-top-color: transparent;
    border-radius: 50%;
    background: linear-gradient(var(--bg-secondary), var(--bg-secondary)) padding-box,
                var(--gradient-accent) border-box;
    animation: spin 1s linear infinite;
}

/* Progress bar gradient */
.progress-gradient {
    height: 8px;
    background: var(--bg-tertiary);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-gradient-bar {
    height: 100%;
    background: var(--gradient-accent);
    border-radius: var(--radius-full);
    transition: width var(--transition-slow);
}

/* Divider avec gradient */
.divider-gradient {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border-default), transparent);
}

/* Avatar avec ring gradient */
.avatar-ring {
    position: relative;
    display: inline-block;
}

.avatar-ring::before {
    content: '';
    position: absolute;
    inset: -3px;
    background: var(--gradient-accent);
    border-radius: 50%;
    z-index: -1;
}

/* Tooltip dark */
.tooltip-dark {
    position: relative;
}

.tooltip-dark::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-8px);
    padding: 0.5rem 0.75rem;
    background: var(--bg-elevated);
    color: var(--text-primary);
    font-size: 0.75rem;
    border-radius: var(--radius-md);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    border: 1px solid var(--border-default);
    box-shadow: var(--shadow-lg);
    z-index: var(--z-tooltip);
}

.tooltip-dark:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(-4px);
}

/* ============================================================================
   SECTION 15 : OVERRIDES TAILWIND POUR DARK MODE
   ============================================================================ */

/* Ces classes permettent d'étendre Tailwind pour le dark mode */
.dark-input {
    @apply bg-[var(--bg-secondary)] border-[var(--border-default)] text-white placeholder-[var(--text-muted)] focus:border-[var(--accent-purple)] focus:ring-[var(--accent-purple)]/20;
}

/* Navigation link active state */
.nav-link-active {
    background: rgba(124, 58, 237, 0.15);
    color: var(--accent-purple-light);
    border-left: 3px solid var(--accent-purple);
}

/* ============================================================================
   SECTION 16 : MEDIA CONTROL COMPONENT (Phase 6)
   ============================================================================ */

.media-control-card {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.media-control-card:hover {
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.1);
}

/* Animation de chargement personnalisée */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(139, 92, 246, 0.4);
    }
    50% {
        box-shadow: 0 0 20px 5px rgba(139, 92, 246, 0.2);
    }
}

.media-control-card[data-generating="true"] {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Lightbox animation */
.lightbox-image {
    animation: lightbox-zoom 0.3s ease-out;
}

@keyframes lightbox-zoom {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Image hover effects */
.media-control-card .aspect-\[4\/5\] img {
    transition: transform 0.3s ease;
}

.media-control-card .aspect-\[4\/5\]:hover img {
    transform: scale(1.02);
}

/* ============================================================================
   SECTION 17 : VIDEO CONTROL COMPONENT (Phase 8)
   ============================================================================ */

.video-control-card {
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.video-control-card:hover {
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.1);
}

/* Timeline segment hover */
.video-control-card .h-3 > div:hover {
    filter: brightness(1.2);
}

/* Segment card expanded state */
.video-control-card .border-purple-500 {
    box-shadow: 0 0 20px rgba(139, 92, 246, 0.2);
}

/* Video player styling */
.video-control-card video {
    background-color: #000;
}

/* Segment generating animation */
@keyframes segment-generating {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.video-control-card [data-status="generating"] {
    animation: segment-generating 1.5s ease-in-out infinite;
}
