/* ========================================
   VIDEOGRAPHIE 2.0 - PREMIUM DESIGN
   Architecture complète avec Menu Hamburger
   ======================================== */

/* ========================================
   VARIABLES CSS
   ======================================== */

:root {
    /* Primary Gradient System */
    --primary-start: #667eea;
    --primary-mid: #764ba2;
    --primary-end: #f093fb;
    
    --accent-cyan: #4facfe;
    --accent-purple: #a78bfa;
    --accent-pink: #ec4899;
    --accent-blue: #3b82f6;
    
    /* Semantic Colors */
    --success: #10b981;
    --danger: #ef4444;
    --warning: #f59e0b;
    
    /* Neutral System */
    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-tertiary: #94a3b8;
    --text-inverse: #ffffff;
    
    --bg-primary: #ffffff;
    --bg-secondary: #f8fafc;
    --bg-tertiary: #f1f5f9;
    --bg-elevated: #ffffff;
    
    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-medium: rgba(148, 163, 184, 0.2);
    
    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.8);
    --glass-border: rgba(255, 255, 255, 0.18);
    
    /* Shadows */
    --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);
    --shadow-md: 0 4px 16px rgba(15, 23, 42, 0.08), 0 2px 6px rgba(15, 23, 42, 0.04);
    --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.12), 0 4px 12px rgba(15, 23, 42, 0.06);
    --shadow-xl: 0 24px 48px rgba(15, 23, 42, 0.16), 0 8px 16px rgba(15, 23, 42, 0.08);
    
    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    /* Transitions */
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 350ms cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Header Height */
    --header-height: 64px;
}

/* ========================================
   RESET & BASE
   ======================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(167, 139, 250, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ========================================
   PROFILE SELECTION PAGE
   ======================================== */

.page-profile-select {
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    z-index: 9999;
}

.page-profile-select::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.08) 0%, transparent 50%);
    pointer-events: none;
    animation: profileShimmer 6s ease-in-out infinite;
}

@keyframes profileShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 1; }
}

.profile-container {
    max-width: 500px;
    width: 100%;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: profileEnter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.profile-header {
    margin-bottom: var(--space-xl);
}

.profile-brain-icon {
    font-size: 3rem;
    background: linear-gradient(135deg, var(--primary-start), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-md);
    filter: drop-shadow(0 4px 12px rgba(102, 126, 234, 0.3));
}

.profile-header h1 {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.profile-header p {
    font-size: 0.875rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.profile-question {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xl);
}

.profile-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.profile-card {
    background: var(--bg-secondary);
    border: 3px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-md);
}

.profile-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lg);
}

.profile-card.melissa {
    border-color: #ec4899;
}

.profile-card.melissa:hover {
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(236, 72, 153, 0.05));
    border-color: #ec4899;
    box-shadow: 0 12px 32px rgba(236, 72, 153, 0.25);
}

.profile-card.romain {
    border-color: #6366f1;
}

.profile-card.romain:hover {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(99, 102, 241, 0.05));
    border-color: #6366f1;
    box-shadow: 0 12px 32px rgba(99, 102, 241, 0.25);
}

.profile-avatar {
    font-size: 3rem;
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-sm);
}

.profile-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.profile-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin: 0;
}

/* ========================================
   WELCOME PAGE
   ======================================== */

.page-welcome {
    min-height: 100vh;
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: var(--space-xl) var(--space-md);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    position: relative;
    overflow: hidden;
    z-index: 9998;
}

.page-welcome::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    animation: welcomeShimmer 8s ease-in-out infinite;
}

@keyframes welcomeShimmer {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

.welcome-container {
    max-width: 600px;
    width: 100%;
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.3);
    text-align: center;
    position: relative;
    z-index: 1;
    animation: welcomeEnter 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
    max-height: 90vh;
    overflow-y: auto;
}

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

@keyframes welcomeExit {
    from {
        opacity: 1;
        transform: scale(1);
    }
    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

.welcome-icon {
    font-size: 4rem;
    margin-bottom: var(--space-lg);
    animation: welcomeGiftBounce 2s ease-in-out infinite;
}

.welcome-icon i {
    background: linear-gradient(135deg, var(--primary-start), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 4px 12px rgba(236, 72, 153, 0.3));
}

@keyframes welcomeGiftBounce {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    25% { transform: translateY(-10px) rotate(-5deg); }
    75% { transform: translateY(-10px) rotate(5deg); }
}

.welcome-title {
    font-size: 2rem;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary-start), var(--accent-pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.welcome-date {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: var(--space-xl);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.welcome-message {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: var(--space-lg);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-xl);
    border: 2px solid var(--border-subtle);
}

.welcome-message p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.welcome-message p:last-child {
    margin-bottom: 0;
}

.welcome-message strong {
    color: var(--text-primary);
    font-weight: 700;
}

.welcome-special {
    margin-top: var(--space-md);
    padding: var(--space-md);
    background: linear-gradient(135deg, rgba(236, 72, 153, 0.1), rgba(99, 102, 241, 0.1));
    border-radius: var(--radius-md);
    border-left: 4px solid #ec4899;
    font-weight: 600;
}

.welcome-description {
    text-align: left;
    margin-bottom: var(--space-xl);
}

.welcome-description h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.welcome-description p {
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: var(--space-md);
}

.welcome-description ul {
    list-style: none;
    padding: 0;
    margin: var(--space-lg) 0;
}

.welcome-description li {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    color: var(--text-primary);
    font-weight: 500;
}

.welcome-description li i {
    color: var(--primary-start);
    font-size: 1.25rem;
}

.welcome-philosophy {
    font-style: italic;
    color: var(--text-tertiary);
    border-left: 4px solid var(--primary-start);
    padding-left: var(--space-md);
    margin-top: var(--space-lg);
}

.welcome-tools {
    margin-bottom: var(--space-xl);
}

.welcome-tools h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.welcome-tools-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-md);
}

.welcome-tool {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-lg);
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    border-radius: var(--radius-md);
    border: 1px solid var(--border-subtle);
    transition: all var(--transition-base);
}

.welcome-tool:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-start);
}

.welcome-tool i {
    font-size: 2rem;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.welcome-tool span {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.welcome-footer {
    margin-top: var(--space-xl);
    font-size: 1rem;
    color: var(--text-tertiary);
    font-weight: 500;
}

.btn-large {
    padding: 16px 32px;
    font-size: 1.125rem;
}

/* Le CSS continue dans le prochain message... */

/* ========================================
   APP PRINCIPALE
   ======================================== */

.app-main {
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* ========================================
   HEADER FIXE
   ======================================== */

.app-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--header-height);
    background: var(--glass-bg);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 var(--space-md);
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.app-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--primary-start) 50%, 
        transparent 100%
    );
    opacity: 0.3;
}

.menu-toggle {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    padding: var(--space-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-toggle:hover {
    background: var(--bg-secondary);
    color: var(--primary-start);
}

.app-logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    font-weight: 800;
    font-size: 1.125rem;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.app-logo i {
    -webkit-text-fill-color: var(--primary-start);
    font-size: 1.5rem;
}

.app-user {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-sm) var(--space-md);
    background: var(--bg-secondary);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-subtle);
}

.app-user span {
    font-weight: 600;
    font-size: 0.95rem;
}

#header-user-icon {
    font-size: 1.25rem;
}

/* ========================================
   MENU HAMBURGER
   ======================================== */

.hamburger-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--bg-elevated);
    box-shadow: var(--shadow-xl);
    z-index: 2000;
    transition: left var(--transition-base);
    overflow-y: auto;
}

.hamburger-menu.open {
    left: 0;
}

.menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--space-lg);
    border-bottom: 1px solid var(--border-subtle);
}

.menu-header i {
    font-size: 1.5rem;
    background: linear-gradient(135deg, var(--primary-start), var(--primary-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.menu-header h2 {
    flex: 1;
    margin-left: var(--space-sm);
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--text-primary);
}

.menu-close {
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-base);
    color: var(--text-secondary);
}

.menu-close:hover {
    background: var(--danger);
    color: var(--text-inverse);
    transform: rotate(90deg);
}

.menu-items {
    padding: var(--space-md) 0;
}

.menu-item {
    width: 100%;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md) var(--space-lg);
    background: none;
    border: none;
    border-left: 3px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-align: left;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    position: relative;
}

.menu-item:hover {
    background: var(--bg-secondary);
    color: var(--text-primary);
    border-left-color: var(--primary-start);
}

.menu-item.active {
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.1) 0%, transparent 100%);
    color: var(--primary-start);
    border-left-color: var(--primary-start);
}

.menu-item i {
    font-size: 1.25rem;
    width: 24px;
    text-align: center;
}

.menu-item span {
    flex: 1;
}

.menu-badge {
    background: var(--primary-start);
    color: var(--text-inverse);
    font-size: 0.75rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    min-width: 20px;
    text-align: center;
}

.menu-divider {
    height: 1px;
    background: var(--border-subtle);
    margin: var(--space-md) var(--space-lg);
}

.menu-item-secondary {
    color: var(--text-tertiary);
    font-weight: 500;
}

.menu-item-secondary:hover {
    color: var(--text-secondary);
}

/* ========================================
   MENU OVERLAY
   ======================================== */

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(2px);
    z-index: 1999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.menu-overlay.active {
    opacity: 1;
    pointer-events: all;
}

/* ========================================
   CONTENT AREA
   ======================================== */

.app-content {
    padding-top: var(--header-height);
    min-height: 100vh;
    position: relative;
}

.app-page {
    display: none;
    padding: var(--space-lg) var(--space-md);
    animation: pageSlideIn var(--transition-base);
}

.app-page.active {
    display: block;
}

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

/* ========================================
   PAGE HEADERS
   ======================================== */

.page-header-inline {
    margin-bottom: var(--space-xl);
}

.page-header-inline h1 {
    font-size: 1.75rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    letter-spacing: -0.02em;
}

.page-header-inline h1 i {
    color: var(--primary-start);
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* ========================================
   BUTTONS
   ======================================== */

.btn-primary,
.btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-lg);
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-base);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    letter-spacing: 0.01em;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-start) 0%, var(--primary-mid) 100%);
    color: var(--text-inverse);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.25);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.35);
}

.btn-secondary {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-medium);
    box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-start);
    color: var(--primary-start);
    transform: translateY(-2px);
}

.btn-back {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    padding: var(--space-sm) 0;
    margin-bottom: var(--space-md);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    transition: all var(--transition-base);
}

.btn-back:hover {
    color: var(--primary-start);
    transform: translateX(-4px);
}

/* Le CSS continue... */

/* ========================================
   FEED & GRIDS
   ======================================== */

.feed-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.videos-grid {
    display: grid;
    gap: var(--space-lg);
}

/* ========================================
   VIDEO CARDS
   ======================================== */

.video-card-feed {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.video-card-feed:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-medium);
}

.video-card-header {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    border-bottom: 1px solid var(--border-subtle);
}

.video-card-avatar {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    background: var(--bg-secondary);
}

.video-card-author {
    flex: 1;
}

.video-card-author strong {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.video-card-author span {
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.video-thumbnail-feed {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%;
    background: var(--bg-tertiary);
    overflow: hidden;
    cursor: pointer;
}

.video-thumbnail-feed img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.video-card-feed:hover .video-thumbnail-feed img {
    transform: scale(1.05);
}

.video-thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all var(--transition-base);
}

.video-thumbnail-feed:hover .video-thumbnail-overlay {
    opacity: 1;
}

.video-thumbnail-overlay i {
    font-size: 3rem;
    color: var(--text-inverse);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
}

.video-card-content {
    padding: var(--space-md);
}

.video-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    line-height: 1.4;
    cursor: pointer;
    transition: color var(--transition-base);
}

.video-card-title:hover {
    color: var(--primary-start);
}

.video-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.badge {
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.badge-type {
    background: rgba(102, 126, 234, 0.15);
    color: var(--primary-start);
    border: 1px solid rgba(102, 126, 234, 0.2);
}

.badge-category {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-subcategory {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning);
    border: 1px solid rgba(245, 158, 11, 0.2);
}

.badge-showcase {
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 193, 7, 0.2));
    color: #f59e0b;
    border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-private {
    background: rgba(100, 100, 100, 0.15);
    color: var(--text-tertiary);
    border: 1px solid rgba(100, 100, 100, 0.2);
}

.video-card-actions {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
}

.action-btn-card {
    flex: 1;
    min-width: 80px;
    padding: 8px 12px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.action-btn-primary {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-mid));
    color: var(--text-inverse);
}

.action-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.action-btn-like {
    background: rgba(236, 72, 153, 0.1);
    color: #ec4899;
    border: 1px solid rgba(236, 72, 153, 0.2);
}

.action-btn-like:hover {
    background: #ec4899;
    color: var(--text-inverse);
}

.action-btn-like.liked {
    background: #ec4899;
    color: var(--text-inverse);
}

.action-btn-comment {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.action-btn-comment:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.action-btn-toggle {
    background: var(--bg-secondary);
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.action-btn-toggle:hover {
    background: var(--warning);
    color: var(--text-inverse);
    border-color: var(--warning);
}

.action-btn-delete {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.action-btn-delete:hover {
    background: var(--danger);
    color: var(--text-inverse);
    border-color: var(--danger);
}

/* ========================================
   EMPTY STATES
   ======================================== */

.empty-state-feed {
    text-align: center;
    padding: var(--space-2xl) var(--space-md);
}

.empty-state-feed.hidden {
    display: none;
}

.empty-state-feed i {
    font-size: 4rem;
    color: var(--text-tertiary);
    opacity: 0.5;
    margin-bottom: var(--space-lg);
}

.empty-state-feed p {
    color: var(--text-secondary);
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.empty-subtitle {
    color: var(--text-tertiary);
    font-size: 0.95rem;
    font-style: italic;
}

/* ========================================
   FILTERS
   ======================================== */

.filters-inline {
    display: flex;
    gap: var(--space-sm);
    flex-wrap: wrap;
    margin-bottom: var(--space-lg);
}

.chip-filter {
    padding: 8px 16px;
    border: 2px solid var(--border-subtle);
    background: var(--bg-primary);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-base);
}

.chip-filter:hover {
    border-color: var(--primary-start);
    background: rgba(102, 126, 234, 0.05);
}

.chip-filter.active {
    background: linear-gradient(135deg, var(--primary-start), var(--primary-mid));
    border-color: var(--primary-start);
    color: var(--text-inverse);
}

/* ========================================
   SECTIONS & CARDS
   ======================================== */

.section-card {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    border: 1px solid var(--border-subtle);
    box-shadow: var(--shadow-sm);
}

.section-card h2 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-lg);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.section-card h2 i {
    color: var(--primary-start);
}

.section-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-md);
}

.section-description {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ========================================
   EXTERNAL LINKS
   ======================================== */

.external-links {
    display: grid;
    gap: var(--space-md);
}

.external-link {
    display: flex;
    align-items: center;
    gap: var(--space-lg);
    padding: var(--space-md);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: all var(--transition-base);
    border: 2px solid var(--border-subtle);
    background: var(--bg-primary);
}

.external-link:hover {
    transform: translateX(4px);
    box-shadow: var(--shadow-md);
}

.external-link i {
    font-size: 2rem;
    flex-shrink: 0;
}

.external-link strong {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.external-link span {
    display: block;
    font-size: 0.875rem;
    color: var(--text-secondary);
}

.external-link.drive i {
    color: #4285f4;
}

.external-link.drive:hover {
    border-color: rgba(66, 133, 244, 0.3);
}

.external-link.gemini i {
    color: #8e44ad;
}

.external-link.gemini:hover {
    border-color: rgba(142, 68, 173, 0.3);
}

.external-link.notebook i {
    color: #4285f4;
}

.external-link.notebook:hover {
    border-color: rgba(66, 133, 244, 0.3);
}

.external-link.suno i {
    color: #ff6b6b;
}

.external-link.suno:hover {
    border-color: rgba(255, 107, 107, 0.3);
}

/* ========================================
   GOOGLE DRIVE PREVIEW & TRANSCRIPTION
   ======================================== */

.drive-preview {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    position: relative;
    margin-bottom: var(--space-lg);
    background: #000;
    border-radius: var(--radius-lg);
    overflow: hidden;
}

.drive-preview iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.transcription-preview {
    background: var(--bg-secondary);
    border-left: 3px solid var(--primary-start);
    padding: var(--space-md);
    border-radius: var(--radius-md);
    margin-top: var(--space-md);
}

.transcription-preview h4 {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-xs);
}

.transcription-preview h4 i {
    color: var(--primary-start);
}

.transcription-preview p {
    font-size: 0.85rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0;
}

/* ========================================
   PRIVACY TOGGLE
   ======================================== */

.privacy-toggle {
    display: flex;
    gap: var(--space-md);
    margin-top: var(--space-sm);
}

.privacy-option {
    flex: 1;
    cursor: pointer;
}

.privacy-option input[type="radio"] {
    display: none;
}

.privacy-label {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    border: 2px solid var(--border-subtle);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    transition: all var(--transition-base);
    font-weight: 600;
    font-size: 0.95rem;
}

.privacy-option input[type="radio"]:checked + .privacy-label {
    border-color: var(--primary-start);
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(102, 126, 234, 0.05));
    color: var(--primary-start);
}

.privacy-option input[type="radio"]:checked + .privacy-label.private {
    border-color: var(--danger);
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1), rgba(239, 68, 68, 0.05));
    color: var(--danger);
}

.privacy-label:hover {
    border-color: var(--primary-start);
    transform: translateY(-2px);
}

.privacy-label.private:hover {
    border-color: var(--danger);
}

/* ========================================
   LOCKED VIDEOS
   ======================================== */

.video-locked {
    opacity: 0.9;
}

.badge-locked {
    background: rgba(239, 68, 68, 0.1);
    color: var(--danger);
    border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-unlocked {
    background: rgba(34, 197, 94, 0.1);
    color: #22c55e;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.locked-message {
    text-align: center;
    padding: var(--space-lg);
    color: var(--text-secondary);
    font-style: italic;
}

.locked-message i {
    display: block;
    font-size: 2rem;
    margin-bottom: var(--space-sm);
    color: var(--danger);
}

.unlock-form {
    display: flex;
    gap: var(--space-sm);
    margin-top: var(--space-md);
}

.unlock-input {
    flex: 1;
    padding: 12px 16px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.unlock-input:focus {
    outline: none;
    border-color: var(--primary-start);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

/* ========================================
   MODALS
   ======================================== */

.modal {
    display: none !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: var(--space-lg);
}

.modal[style*="flex"] {
    display: flex !important;
}

.modal-content {
    background: var(--bg-elevated);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    max-width: 700px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--shadow-xl);
}

.modal-close {
    position: absolute;
    top: var(--space-lg);
    right: var(--space-lg);
    background: var(--bg-secondary);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: var(--danger);
    color: white;
    transform: rotate(90deg);
}

.modal-header {
    margin-bottom: var(--space-xl);
}

.modal-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.modal-header h2 i {
    color: var(--primary-start);
}

/* ========================================
   NOTIFICATIONS
   ======================================== */

.notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    background: var(--bg-elevated);
    padding: var(--space-xl) var(--space-2xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: var(--space-md);
    min-width: 320px;
    max-width: 500px;
    opacity: 0;
    transition: all var(--transition-base);
    border: 2px solid transparent;
}

.notification.show {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

.notification i {
    font-size: 2rem;
    flex-shrink: 0;
}

.notification span {
    font-size: 1.1rem;
    font-weight: 600;
    line-height: 1.4;
}

.notification-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.1) 0%, rgba(16, 185, 129, 0.05) 100%);
    border-color: var(--success);
    color: var(--success);
}

.notification-success i {
    color: var(--success);
}

.notification-error {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.1) 0%, rgba(239, 68, 68, 0.05) 100%);
    border-color: var(--danger);
    color: var(--danger);
}

.notification-error i {
    color: var(--danger);
}

.notification-info {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(102, 126, 234, 0.05) 100%);
    border-color: var(--primary-start);
    color: var(--primary-start);
}

.notification-info i {
    color: var(--primary-start);
}

/* Overlay pour notification */
.notification-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(2px);
    z-index: 9999;
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--transition-base);
}

.notification-overlay.show {
    opacity: 1;
    pointer-events: all;
}

/* Mobile */
@media (max-width: 768px) {
    .notification {
        min-width: 280px;
        max-width: 90vw;
        padding: var(--space-lg) var(--space-xl);
    }
    
    .notification i {
        font-size: 1.75rem;
    }
    
    .notification span {
        font-size: 1rem;
    }
}

/* Le CSS continue... */
