/* ===== VARIABLES CSS ===== */
:root {
    /* Couleurs principales */
    --primary-blue: #87CEEB;
    --primary-steel: #4682B4;
    --primary-navy: #1e3a8a;
    --dark-bg: #0a0a0a;
    --dark-surface: #1a1a1a;
    --dark-card: #2a2a2a;
    --gray-dark: #3a3a3a;
    --gray-medium: #5a5a5a;
    --gray-light: #8a8a8a;
    
    /* Couleurs d'accent */
    --accent-cyan: #00d4ff;
    --accent-purple: #8b5cf6;
    --accent-pink: #ec4899;
    --accent-green: #10b981;
    --accent-orange: #f59e0b;
    
    /* Texte */
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --text-muted: #6b7280;
    
    /* Effets */
    --glow-blue: 0 0 20px rgba(135, 206, 235, 0.3);
    --glow-steel: 0 0 30px rgba(70, 130, 180, 0.4);
    --glow-navy: 0 0 40px rgba(30, 58, 138, 0.5);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.5);
    
    /* Bordures */
    --border-light: 1px solid rgba(255, 255, 255, 0.1);
    --border-medium: 1px solid rgba(255, 255, 255, 0.2);
    --border-glow: 1px solid rgba(135, 206, 235, 0.3);
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-smooth: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* ===== RESET ET BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--dark-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: 
        radial-gradient(circle at 20% 20%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(70, 130, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    pointer-events: none;
    z-index: -1;
}

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

/* ===== NAVIGATION ===== */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.9);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-light);
    z-index: 1000;
    transition: var(--transition-smooth);
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 12px;
    display: flex;
    align-items: center;
    height: 70px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--text-primary);
    flex: 0 0 auto;
    min-width: 0;
    margin-right: auto;
    margin-left: 0;
    padding-left: 0;
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
    margin-left: auto;
}

.nav-menu {
    display: flex;
    gap: 18px;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    padding: 8px 16px;
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-steel));
    transition: var(--transition-smooth);
    transform: translateX(-50%);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    text-shadow: var(--glow-blue);
}

.nav-link:hover::before,
.nav-link.active::before {
    width: 100%;
}

.nav-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.search-btn,
.theme-toggle,
.menu-toggle {
    background: var(--dark-surface);
    border: var(--border-light);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.discord-connect {
    background: linear-gradient(135deg, #5865F2, #7289DA);
    border: none;
    color: white;
    height: 40px;
    padding: 0 10px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-weight: 600;
    font-size: 0.9rem;
}

.discord-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}



.search-btn:hover,
.theme-toggle:hover,
.menu-toggle:hover {
    background: var(--dark-card);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

/* ===== MOBILE MENU ===== */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-light);
    padding: 20px;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 999;
}

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

.mobile-nav-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
}

.mobile-nav-links .nav-link {
    padding: 15px 20px;
    border-radius: 12px;
    background: var(--dark-surface);
    border: var(--border-light);
    text-align: center;
    font-size: 1.1rem;
}

.mobile-nav-links .nav-link:hover {
    background: var(--dark-card);
    border-color: var(--primary-blue);
}

.mobile-discord-connect {
    padding: 15px 20px;
    background: linear-gradient(135deg, #5865F2, #7289DA);
    border: none;
    border-radius: 12px;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.mobile-discord-connect:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.3);
}

/* Filtres de catégories */
.category-filters {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    background: var(--bg-secondary);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.filter-search {
    position: relative;
    max-width: 400px;
}

.filter-search input {
    width: 100%;
    padding: 12px 45px 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.3s ease;
}

.filter-search input:focus {
    outline: none;
    border-color: var(--accent-primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.filter-search i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.filter-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    background: var(--bg-primary);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    border-color: var(--accent-primary);
    color: var(--accent-primary);
}

.filter-btn.active {
    background: var(--accent-primary);
    border-color: var(--accent-primary);
    color: white;
}

.sort-options select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    min-width: 200px;
}

.sort-options select:focus {
    outline: none;
    border-color: var(--accent-primary);
}

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

@media (max-width: 768px) {
    .nav-container { height: 64px; }
    .nav-actions { gap: 8px; }
    .discord-connect { padding: 0 8px; font-size: 0.85rem; }
    .discord-text { display: none !important; }
    .menu-toggle { width: 40px; height: 40px; }
    .navbar { padding: 0 6px; }
    .mobile-menu { top: 64px; }
    .category-filters {
        gap: 1rem;
        padding: 1rem;
    }
    
    .filter-buttons {
        justify-content: center;
    }
    
    .sort-options select {
        width: 100%;
    }
}

/* ===== SEARCH FUNCTIONALITY ===== */
.search-container {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: var(--border-light);
    padding: 20px 0;
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-smooth);
    z-index: 999;
}

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

.search-box {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-box input {
    flex: 1;
    background: var(--dark-surface);
    border: var(--border-medium);
    border-radius: 12px;
    padding: 16px 20px;
    font-size: 1.1rem;
    color: var(--text-primary);
    outline: none;
    transition: var(--transition-smooth);
}

.search-box input:focus {
    border-color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border: none;
    border-radius: 10px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.search-submit:hover {
    transform: scale(1.05);
    box-shadow: var(--glow-steel);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 12px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1000;
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 12px 20px;
    border-bottom: var(--border-light);
    cursor: pointer;
    transition: var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 12px;
}

.search-result-item:hover {
    background: var(--dark-card);
}

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

.search-result-item.search-view-all {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(70, 130, 180, 0.1));
    border-top: 1px solid rgba(135, 206, 235, 0.2);
    font-weight: 600;
}

.search-result-item.search-view-all:hover {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.2), rgba(70, 130, 180, 0.2));
}

.search-result-item.search-view-all .search-result-icon {
    color: var(--primary-color);
}

.search-result-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: var(--dark-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-blue);
}

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

.search-result-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

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

/* ===== THEME TOGGLE ===== */
.theme-toggle {
    position: relative;
    overflow: hidden;
}

.theme-toggle i {
    transition: var(--transition-smooth);
}

.theme-toggle.light-mode {
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    color: white;
    border-color: #fbbf24;
}

.theme-toggle.light-mode:hover {
    box-shadow: 0 0 20px rgba(251, 191, 36, 0.4);
}

/* Light theme variables */
body.light-theme {
    --dark-bg: #f8fafc;
    --dark-surface: #ffffff;
    --dark-card: #f1f5f9;
    --gray-dark: #e2e8f0;
    --gray-medium: #cbd5e1;
    --gray-light: #94a3b8;
    --text-primary: #1e293b;
    --text-secondary: #475569;
    --text-muted: #64748b;
    --border-light: 1px solid rgba(0, 0, 0, 0.1);
    --border-medium: 1px solid rgba(0, 0, 0, 0.2);
    --border-glow: 1px solid rgba(70, 130, 180, 0.3);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.1);
    --shadow-heavy: 0 8px 40px rgba(0, 0, 0, 0.15);
    --glow-blue: 0 0 20px rgba(70, 130, 180, 0.2);
    --glow-steel: 0 0 30px rgba(70, 130, 180, 0.3);
    --glow-navy: 0 0 40px rgba(30, 58, 138, 0.3);
}

body.light-theme::before {
    background: 
        radial-gradient(circle at 20% 20%, rgba(135, 206, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(70, 130, 180, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(30, 58, 138, 0.03) 0%, transparent 50%);
}

body.light-theme::after {
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(0, 0, 0, 0.01) 2px,
            rgba(0, 0, 0, 0.01) 4px
        );
}

body.light-theme .navbar {
    background: rgba(248, 250, 252, 0.9);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .search-container {
    background: rgba(248, 250, 252, 0.95);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

/* Amélioration du thème clair */
body.light-theme .nav-brand {
    color: #1f2937;
}

body.light-theme .brand-text {
    background: linear-gradient(135deg, var(--primary-steel), var(--primary-navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

body.light-theme .nav-link {
    color: #4b5563;
}

body.light-theme .nav-link:hover,
body.light-theme .nav-link.active {
    color: #1f2937;
    text-shadow: none;
}

body.light-theme .search-btn,
body.light-theme .theme-toggle,
body.light-theme .menu-toggle {
    background: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    color: #4b5563;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body.light-theme .search-btn:hover,
body.light-theme .theme-toggle:hover,
body.light-theme .menu-toggle:hover {
    background: #f8fafc;
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

body.light-theme .search-box input {
    background: var(--dark-surface);
    border: var(--border-medium);
    color: var(--text-primary);
    box-shadow: var(--shadow-dark);
}

body.light-theme .search-box input:focus {
    border-color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

body.light-theme .search-results {
    background: var(--dark-surface);
    border: var(--border-medium);
    box-shadow: var(--shadow-heavy);
}

body.light-theme .search-result-item {
    border-bottom: var(--border-light);
}

body.light-theme .search-result-item:hover {
    background: var(--dark-card);
}

body.light-theme .search-result-icon {
    background: var(--dark-card);
    color: var(--primary-blue);
}

body.light-theme .search-result-title {
    color: var(--text-primary);
}

body.light-theme .search-result-description {
    color: var(--text-secondary);
}

/* Amélioration des cartes et sections en thème clair */
body.light-theme .category-card,
body.light-theme .meme-card,
body.light-theme .stat-card {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

body.light-theme .category-card:hover,
body.light-theme .meme-card:hover,
body.light-theme .stat-card:hover {
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

body.light-theme .hero {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

body.light-theme .section {
    background: rgba(255, 255, 255, 0.3);
}

body.light-theme .btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    color: white;
    border: none;
    box-shadow: 0 4px 15px rgba(135, 206, 235, 0.3);
}

body.light-theme .btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.4);
}

body.light-theme .btn-secondary {
    background: rgba(0, 0, 0, 0.03);
    color: var(--text-primary);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .btn-secondary:hover {
    background: rgba(0, 0, 0, 0.08);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    transform: translateY(-1px);
}

body.light-theme .footer {
    background: rgba(255, 255, 255, 0.95);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .category-card-large {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
}

body.light-theme .category-card-large:hover {
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-blue);
}

body.light-theme .tag {
    background: rgba(135, 206, 235, 0.15);
    color: var(--primary-blue);
    border: 1px solid rgba(135, 206, 235, 0.25);
}

body.light-theme .tag:hover {
    background: var(--primary-blue);
    color: white;
}

body.light-theme .page-header {
    background: linear-gradient(135deg, rgba(248, 250, 252, 0.9), rgba(226, 232, 240, 0.9));
}

body.light-theme .error-page {
    background: linear-gradient(135deg, #f8fafc, #e2e8f0);
}

body.light-theme .modal-content {
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(0, 0, 0, 0.08);
}

body.light-theme .comment-input textarea {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

body.light-theme .sort-options select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
}

/* Categories page specific styles */
.categories-page .page-header {
    padding: 120px 0 60px;
    text-align: center;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(70, 130, 180, 0.05));
    border-bottom: var(--border-light);
}

.page-title {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.page-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
}

.header-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.categories-grid-section {
    padding: 80px 0;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.category-card-large {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: var(--border-light);
    border-radius: 20px;
    padding: 30px;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.category-card-large::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(70, 130, 180, 0.05));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}

.category-card-large:hover {
    transform: translateY(-5px);
    border-color: var(--primary-blue);
    box-shadow: var(--glow-steel);
}

.category-card-large:hover::before {
    opacity: 1;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--glow-blue);
}

.category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

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

.category-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.category-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.category-stats .stat i {
    color: var(--primary-blue);
}

.category-tags {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tag {
    background: var(--dark-card);
    color: var(--text-secondary);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    border: var(--border-light);
    transition: var(--transition-fast);
}

.tag:hover {
    background: var(--primary-blue);
    color: white;
}

.category-preview {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.preview-meme {
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 8px;
    padding: 12px;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-style: italic;
}

.quick-actions {
    padding: 60px 0;
    background: rgba(255, 255, 255, 0.02);
    border-top: var(--border-light);
}

.actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.action-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    border: var(--border-light);
    border-radius: 15px;
    padding: 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.action-card:hover {
    transform: translateY(-3px);
    border-color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

.action-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 1.5rem;
    color: white;
    box-shadow: var(--glow-blue);
}

.action-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.action-card p {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.5;
}

.action-btn {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 10px;
    font-weight: 600;
    transition: var(--transition-smooth);
    display: inline-block;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-steel);
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 70px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-particles {
    position: absolute;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, rgba(135, 206, 235, 0.3), transparent),
        radial-gradient(2px 2px at 40px 70px, rgba(70, 130, 180, 0.2), transparent),
        radial-gradient(1px 1px at 90px 40px, rgba(30, 58, 138, 0.4), transparent),
        radial-gradient(1px 1px at 130px 80px, rgba(135, 206, 235, 0.2), transparent);
    background-repeat: repeat;
    background-size: 150px 100px;
    animation: particleFloat 20s linear infinite;
}

@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

.hero-glow {
    position: absolute;
    top: 20%;
    left: 10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% { transform: scale(1) rotate(0deg); opacity: 0.5; }
    50% { transform: scale(1.2) rotate(180deg); opacity: 0.8; }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.hero-text {
    z-index: 2;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
}

.title-line {
    display: block;
    color: var(--text-secondary);
    font-size: 2rem;
    font-weight: 400;
    margin-bottom: 8px;
}

.title-highlight {
    display: block;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel), var(--primary-navy));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: var(--glow-blue);
    animation: titleGlow 3s ease-in-out infinite;
}

@keyframes titleGlow {
    0%, 100% { filter: brightness(1); }
    50% { filter: brightness(1.2); }
}

.hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 40px;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* ===== BOUTONS ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    position: relative;
    overflow: hidden;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: var(--transition-smooth);
}

.btn:hover::before {
    left: 100%;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    color: var(--dark-bg);
    box-shadow: var(--glow-blue);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--glow-steel);
}

.btn-secondary {
    background: var(--dark-surface);
    color: var(--text-primary);
    border: var(--border-glow);
}

.btn-secondary:hover {
    background: var(--dark-card);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.btn-discord {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    color: white;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.3);
}

.btn-discord:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(88, 101, 242, 0.5);
}

/* ===== FLOATING CARDS ===== */
.hero-visual {
    position: relative;
    height: 500px;
}

.floating-cards {
    position: relative;
    width: 100%;
    height: 100%;
}

.floating-card {
    position: absolute;
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 16px;
    padding: 20px;
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-dark);
    transition: var(--transition-smooth);
    cursor: pointer;
}

.floating-card:hover {
    transform: translateY(-10px) scale(1.05);
    box-shadow: var(--glow-blue);
    border-color: var(--primary-blue);
}

.card-1 {
    top: 20%;
    left: 10%;
    animation: float1 6s ease-in-out infinite;
}

.card-2 {
    top: 10%;
    right: 20%;
    animation: float2 8s ease-in-out infinite;
}

.card-3 {
    bottom: 30%;
    left: 20%;
    animation: float3 7s ease-in-out infinite;
}

.card-4 {
    bottom: 20%;
    right: 10%;
    animation: float4 9s ease-in-out infinite;
}

@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(2deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(-2deg); }
}

@keyframes float3 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-25px) rotate(1deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-18px) rotate(-1deg); }
}

.card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.card-content i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-bottom: 8px;
}

.card-content span {
    font-weight: 600;
    color: var(--text-primary);
}

/* ===== SECTIONS ===== */
.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 16px;
    background: linear-gradient(135deg, var(--text-primary), var(--primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== CATEGORIES ===== */
.categories {
    padding: 100px 0;
    position: relative;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.category-card {
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 20px;
    padding: 30px;
    cursor: pointer;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.05), rgba(70, 130, 180, 0.05));
    opacity: 0;
    transition: var(--transition-smooth);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-blue);
    border-color: var(--primary-blue);
}

.category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: var(--glow-blue);
}

.category-icon i {
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.category-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text-primary);
}

.category-description {
    color: var(--text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.category-stats {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-muted);
    background: var(--dark-card);
    padding: 6px 12px;
    border-radius: 20px;
    border: var(--border-light);
}

.stat i {
    color: var(--primary-blue);
}

/* ===== SELECTED CATEGORY ===== */
.selected-category {
    padding: 100px 0;
}

.category-header {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-bottom: 40px;
}

.back-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: var(--dark-surface);
    border: var(--border-light);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
}

.back-btn:hover {
    background: var(--dark-card);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

.selected-category-info {
    display: flex;
    align-items: center;
    gap: 20px;
}

.selected-category-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-blue);
}

.selected-category-icon i {
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.selected-category-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 4px;
    color: var(--text-primary);
}

.selected-category-description {
    color: var(--text-secondary);
}

/* ===== MEMES GRID ===== */
.memes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 30px;
}

.meme-card {
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.meme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(135, 206, 235, 0.2), var(--glow-blue);
    border-color: var(--primary-blue);
}

.meme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.user-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 50%;
    box-shadow: var(--glow-blue);
}

.user-avatar-img {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.2rem;
    box-shadow: 0 2px 10px rgba(135, 206, 235, 0.3);
}

.meme-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.meme-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.2rem auto;
    background: #181a20;
    border-radius: 16px;
    overflow: hidden;
}
.meme-image-container img,
.meme-image-container video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    aspect-ratio: auto;
}
@media (max-width: 700px) {
    .meme-image-container {
        max-height: none;
    }
    .meme-image-container img,
    .meme-image-container video {
        max-height: 100%;
    }
}

.user-details {
    display: flex;
    flex-direction: column;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
}

.timestamp {
    font-size: 0.9rem;
    color: var(--text-muted);
}

.more-btn {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-fast);
}

.more-btn:hover {
    background: var(--dark-card);
    color: var(--text-primary);
}

.meme-content {
    padding: 0 20px 20px;
}

.meme-image-placeholder {
    background: var(--dark-card);
    border: var(--border-light);
    border-radius: 12px;
    min-height: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px;
    text-align: center;
}

.meme-image-placeholder i {
    font-size: 2rem;
    color: var(--text-muted);
}

.meme-image-placeholder span {
    color: var(--text-secondary);
    font-style: italic;
    line-height: 1.5;
}

.meme-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-top: var(--border-light);
}

.action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    transition: var(--transition-fast);
    font-size: 0.9rem;
    font-weight: 500;
    position: relative;
    overflow: hidden;
}

.action-btn:hover {
    background: var(--dark-card);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.action-btn:active {
    transform: translateY(0);
}

.like-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.comment-btn:hover {
    color: var(--primary-blue);
    background: rgba(135, 206, 235, 0.1);
}

.share-btn:hover {
    color: var(--accent-green);
    background: rgba(46, 204, 113, 0.1);
}

.bookmark-btn:hover {
    color: #f39c12;
    background: rgba(243, 156, 18, 0.1);
}

.action-btn.liked {
    color: #e74c3c;
}

.action-btn.liked i {
    animation: heartBeat 0.6s ease-in-out;
}

@keyframes heartBeat {
    0% { transform: scale(1); }
    25% { transform: scale(1.2); }
    50% { transform: scale(1); }
    75% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

/* ===== TRENDING ===== */
.trending {
    padding: 100px 0;
    background: var(--dark-surface);
}

/* Structure en colonnes pour les tendances */
.trending-columns {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch; /* Assure que toutes les colonnes ont la même hauteur */
}

.trending-column {
    background: var(--dark-card);
    border: var(--border-light);
    border-radius: 16px;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}

.trending-column:hover {
    border-color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

.trending-column-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.trending-column-header i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.trending-column-header h3 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

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

/* Styles responsive pour les colonnes */
@media (max-width: 1024px) {
    .trending-columns {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        max-width: 600px;
    }
}

.trending-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 12px;
    transition: var(--transition-smooth);
    cursor: pointer;
    min-height: 100px; /* Hauteur fixe pour alignement */
    box-sizing: border-box;
}

.trending-item:hover {
    border-color: var(--primary-blue);
    background: rgba(135, 206, 235, 0.1);
    transform: translateY(-2px);
}

.trending-rank {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--primary-blue);
    min-width: 32px;
}

.trending-thumbnail {
    flex-shrink: 0;
    width: 50px;
    height: 50px;
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
}

.trend-thumb-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
    display: none; /* Hidden by default, shown when src is set */
}

.trend-thumb-img.loaded {
    display: block;
}

.trending-thumbnail:before {
    content: '';
    display: block;
    width: 24px;
    height: 24px;
    background: rgba(135, 206, 235, 0.3);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.trending-thumbnail.has-image:before {
    display: none;
}

.trending-content {
    flex: 1;
}

.trending-content h4 {
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.3;
    max-height: 2.6rem; /* Limite à 2 lignes */
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Lien propre pour les titres de tendances */
.trending-content .trend-link {
    color: var(--text-primary);
    text-decoration: none;
}

.trending-content .trend-link:hover,
.trending-content .trend-link:focus {
    color: var(--primary-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.trending-content p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.trending-stats {
    text-align: right;
}

.trend-up {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 0.9rem;
}

/* ===== COMMUNITY ===== */
.community {
    padding: 100px 0;
}

.community-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-card {
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    transition: var(--transition-smooth);
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--glow-blue);
    border-color: var(--primary-blue);
}

.stat-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    box-shadow: var(--glow-blue);
}

.stat-icon i {
    font-size: 1.5rem;
    color: var(--dark-bg);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-secondary);
    font-weight: 500;
}

/* ===== SUBMISSION ===== */
.submission {
    padding: 100px 0;
    background: var(--dark-surface);
}

.submission-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.submission-info h3,
.submission-guidelines h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-primary);
}

.submission-steps {
    display: flex;
    flex-direction: column;
    gap: 25px;
    margin-bottom: 40px;
}

.step {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.step-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: var(--glow-blue);
}

.step-icon i {
    color: var(--dark-bg);
    font-size: 1.2rem;
}

.step-content h4 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
}

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

.guidelines-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.guidelines-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    padding: 12px;
    background: var(--dark-card);
    border-radius: 10px;
    border: var(--border-light);
}

.guidelines-list li i {
    color: var(--accent-green);
    width: 16px;
}

.guidelines-list li i.fa-times {
    color: #e74c3c;
}

/* ===== FOOTER ===== */
.footer {
    background: var(--dark-bg);
    border-top: var(--border-light);
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-bottom: 40px;
}

.footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 16px;
}

.footer-logo svg {
    transition: var(--transition-smooth);
    margin-left: 0;
    padding-left: 0;
}

.footer-brand h3 {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-brand p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.footer-links {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
}

.footer-column h4 {
    font-weight: 600;
    margin-bottom: 20px;
    color: var(--text-primary);
}

.footer-column ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-column a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition-fast);
}

.footer-column a:hover {
    color: var(--primary-blue);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: var(--border-light);
}

.footer-bottom p {
    color: var(--text-muted);
}

.footer-social {
    display: flex;
    gap: 15px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    transition: var(--transition-smooth);
}

.footer-social a:hover {
    background: var(--dark-card);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .nav-menu {
        display: none;
    }
    
    .hero-content {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .title-line {
        font-size: 1.5rem;
    }
    
    .hero-actions {
        justify-content: center;
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .memes-grid {
        grid-template-columns: 1fr;
    }
    
    .submission-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-links {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .community-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .category-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 2rem;
    }
    
    .title-line {
        font-size: 1.2rem;
    }
    
    .btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }
    
    .community-stats {
        grid-template-columns: 1fr;
    }
    
    .floating-cards {
        display: none;
    }
}

/* ===== ANIMATIONS AVANCÉES ===== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

.animate-on-scroll {
    opacity: 0;
    animation: fadeInUp 0.8s ease forwards;
}

.animate-on-scroll.from-left {
    animation: fadeInLeft 0.8s ease forwards;
}

.animate-on-scroll.from-right {
    animation: fadeInRight 0.8s ease forwards;
}

/* ===== SCROLLBAR PERSONNALISÉE ===== */
::-webkit-scrollbar {
    width: 8px;
}

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

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, var(--primary-steel), var(--primary-navy));
}

/* ===== MODAL DE COMMENTAIRES ===== */
.comment-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.comment-modal.show {
    opacity: 1;
    visibility: visible;
}

.comment-modal-content {
    background: var(--dark-card);
    border-radius: 16px;
    border: var(--border-medium);
    box-shadow: var(--shadow-heavy);
    width: 90%;
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.comment-modal.show .comment-modal-content {
    transform: scale(1) translateY(0);
}

.comment-modal-header {
    padding: 20px;
    border-bottom: var(--border-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.comment-modal-header h3 {
    color: var(--text-primary);
    font-size: 1.2rem;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-smooth);
}

.close-modal-btn:hover {
    background: var(--gray-dark);
    color: var(--text-primary);
}

.comments-list {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    max-height: 400px;
}

.comment-item {
    display: flex;
    gap: 12px;
    margin-bottom: 16px;
    padding: 12px;
    border-radius: 12px;
    background: var(--dark-surface);
    border: var(--border-light);
    transition: var(--transition-smooth);
}

.comment-item:hover {
    background: var(--gray-dark);
    border-color: var(--primary-blue);
}

.comment-item.new-comment {
    border-color: var(--accent-green);
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.2);
}

.comment-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.comment-avatar img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.comment-content {
    flex: 1;
}

.comment-author {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.comment-text {
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 4px;
}

.comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.comment-input-section {
    padding: 20px;
    border-top: var(--border-light);
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.user-avatar-small {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.user-avatar-small img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.comment-input-wrapper {
    flex: 1;
    display: flex;
    gap: 8px;
    align-items: flex-end;
}

.comment-input {
    flex: 1;
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9rem;
    resize: none;
    min-height: 40px;
    max-height: 120px;
    transition: var(--transition-smooth);
}

.comment-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 2px rgba(135, 206, 235, 0.2);
}

.comment-input::placeholder {
    color: var(--text-muted);
}

.send-comment-btn {
    background: var(--primary-blue);
    border: none;
    border-radius: 8px;
    padding: 8px 12px;
    color: var(--dark-bg);
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
}

.send-comment-btn:hover {
    background: var(--primary-steel);
    transform: translateY(-1px);
    box-shadow: var(--glow-blue);
}

.send-comment-btn:active {
    transform: translateY(0);
}

/* ===== NOTIFICATIONS AMÉLIORÉES ===== */
.notification {
    position: fixed;
    top: 90px;
    right: 20px;
    background: var(--dark-card);
    border: var(--border-medium);
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: var(--shadow-heavy);
    z-index: 3000;
    transform: translateX(100%);
    transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    max-width: 400px;
    min-width: 300px;
}

.notification.show {
    transform: translateX(0);
}

.notification.info {
    border-left: 4px solid var(--accent-cyan);
}

.notification.success {
    border-left: 4px solid var(--accent-green);
}

.notification.warning {
    border-left: 4px solid var(--accent-orange);
}

.notification.error {
    border-left: 4px solid var(--accent-pink);
}

.notification-content {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.notification-icon {
    font-size: 1.2rem;
    margin-top: 2px;
}

.notification.info .notification-icon {
    color: var(--accent-cyan);
}

.notification.success .notification-icon {
    color: var(--accent-green);
}

.notification.warning .notification-icon {
    color: var(--accent-orange);
}

.notification.error .notification-icon {
    color: var(--accent-pink);
}

.notification-text {
    flex: 1;
}

.notification-title {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.notification-message {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.notification-actions {
    margin-top: 12px;
    display: flex;
    gap: 8px;
}

.notification-btn {
    background: var(--primary-blue);
    border: none;
    border-radius: 6px;
    padding: 6px 12px;
    color: var(--dark-bg);
    font-size: 0.8rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.notification-btn:hover {
    background: var(--primary-steel);
}

.notification-btn.secondary {
    background: var(--gray-dark);
    color: var(--text-primary);
}

.notification-btn.secondary:hover {
    background: var(--gray-medium);
}

.notification-close {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    transition: var(--transition-smooth);
    margin-left: 8px;
}

.notification-close:hover {
    background: var(--gray-dark);
    color: var(--text-primary);
}

/* ===== DROPDOWN DISCORD AMÉLIORÉ ===== */
.discord-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    min-width: 220px;
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    margin-top: 8px;
}

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

.discord-user-info {
    padding: 16px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
}

.dropdown-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.user-details {
    flex: 1;
    min-width: 0;
}

.username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    font-size: 0.8rem;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.discord-dropdown-menu hr {
    margin: 8px 0;
    border: none;
    height: 1px;
    background: var(--border-color);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    font-family: inherit;
    font-size: 0.9rem;
}

.dropdown-item:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
}

.dropdown-item i {
    width: 16px;
    text-align: center;
    font-size: 0.9rem;
}

.dropdown-item.logout {
    color: #ff6b6b;
}

.dropdown-item.logout:hover {
    background: rgba(255, 107, 107, 0.1);
    color: #ff6b6b;
}

/* ===== AVATAR DISCORD CORRIGÉ ===== */
.discord-avatar {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.discord-connect.connected .discord-avatar {
    border-color: rgba(255, 255, 255, 0.3);
}

/* ===== MODAL DE SOUMISSION DE MÈMES ===== */
.submission-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.submission-modal.show {
    opacity: 1;
    visibility: visible;
}

.submission-modal-content {
    background: var(--bg-secondary);
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid var(--border-color);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.submission-modal.show .submission-modal-content {
    transform: scale(1);
}

.submission-modal-header {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, var(--bg-primary), var(--bg-secondary));
}

.submission-modal-header h3 {
    margin: 0;
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.submission-modal-header h3 i {
    color: var(--primary-blue);
    font-size: 1.4rem;
}

.submission-form {
    padding: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.95rem;
}

.form-group label i {
    color: var(--primary-blue);
    font-size: 0.9rem;
    width: 16px;
    text-align: center;
}

.form-input,
.form-textarea,
.form-select {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 12px;
    background: var(--bg-primary);
    color: var(--text-primary);
    font-size: 0.95rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.form-textarea {
    min-height: 100px;
    resize: vertical;
}

.form-select {
    cursor: pointer;
}

/* Forcer couleurs lisibles pour les listes déroulantes (thème sombre) */
.form-select option {
    background: var(--dark-card, #23272f);
    color: var(--text-primary, #fff);
}

/* Compatibilité WebKit (Chrome/Safari) pour le menu déroulant */
select.form-select::-webkit-scrollbar-thumb {
    background: var(--border-color, #374151);
}
select.form-select::-webkit-scrollbar-track {
    background: var(--bg-primary, #1f2937);
}

/* Menu déroulant de notifications */
.notif-dropdown-menu {
    background: var(--dark-card, #23272f) !important;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid var(--border-color, #374151) !important;
}
.notif-dropdown-menu .notif-item {
    background: transparent;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: var(--text-secondary);
}

.file-upload-area {
    border: 2px dashed var(--border-color);
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    background: var(--bg-primary);
    transition: all 0.3s ease;
    cursor: pointer;
    position: relative;
}

.file-upload-area:hover {
    border-color: var(--primary-blue);
    background: rgba(135, 206, 235, 0.05);
}

.file-upload-area.drag-over {
    border-color: var(--primary-blue);
    background: rgba(135, 206, 235, 0.1);
    transform: scale(1.02);
}

.upload-placeholder {
    pointer-events: none;
}

.upload-placeholder i {
    font-size: 3rem;
    color: var(--primary-blue);
    margin-bottom: 1rem;
    display: block;
}

.upload-placeholder p {
    margin: 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.upload-link {
    color: var(--primary-blue);
    text-decoration: underline;
    cursor: pointer;
}

.upload-placeholder small {
    color: var(--text-secondary);
    font-size: 0.85rem;
    margin-top: 1rem;
    display: block;
}

.file-input {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-preview {
    position: relative;
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
    background: var(--bg-primary);
}

.upload-preview img,
.upload-preview video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

.upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    border-radius: 12px;
}

.upload-preview:hover .upload-overlay {
    opacity: 1;
}

.change-file-btn {
    background: var(--primary-blue);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.change-file-btn:hover {
    background: var(--primary-steel);
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.btn-cancel,
.btn-submit {
    flex: 1;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.btn-cancel {
    background: var(--bg-primary);
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.btn-cancel:hover {
    background: var(--bg-secondary);
    border-color: var(--text-secondary);
}

.btn-submit {
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    color: white;
}

.btn-submit:hover:not(:disabled) {
    background: linear-gradient(135deg, var(--primary-steel), var(--primary-blue));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(135, 206, 235, 0.3);
}

.btn-submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.close-modal-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
}

.close-modal-btn:hover {
    background: var(--bg-primary);
    color: var(--text-primary);
    transform: rotate(90deg);
}

/* ===== RESPONSIVE POUR MODALS ===== */
@media (max-width: 768px) {
    .submission-modal-content {
        width: 95%;
        margin: 1rem;
        max-height: 95vh;
    }
    
    .submission-modal-header {
        padding: 1rem;
    }
    
    .submission-modal-header h3 {
        font-size: 1.3rem;
    }
    
    .submission-form {
        padding: 1rem;
    }
    
    .file-upload-area {
        padding: 1.5rem;
    }
    
    .upload-placeholder i {
        font-size: 2rem;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .btn-cancel,
    .btn-submit {
        width: 100%;
        justify-content: center;
    }
    
    .upload-preview {
        height: 150px;
    }
}

/* ===== STYLES SPÉCIFIQUES POUR CATEGORY.HTML ===== */
.category-page {
    padding-top: 70px;
    background: var(--dark-bg);
    min-height: 100vh;
}

/* Category Header */
.category-page .category-header {
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(70, 130, 180, 0.1));
    padding: 60px 0 40px;
    border-bottom: var(--border-light);
    position: relative;
    overflow: hidden;
}

.category-page .category-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(135, 206, 235, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(70, 130, 180, 0.05) 0%, transparent 50%);
    pointer-events: none;
}

.category-page .category-header .container {
    position: relative;
    z-index: 2;
}

.category-page .back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--dark-surface);
    border: var(--border-light);
    color: var(--text-secondary);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    margin-bottom: 30px;
    font-weight: 500;
}

.category-page .back-btn:hover {
    background: var(--dark-card);
    color: var(--primary-blue);
    border-color: var(--primary-blue);
    box-shadow: var(--glow-blue);
    transform: translateY(-2px);
}

.category-page .selected-category-info {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 30px;
}

.category-page .selected-category-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--glow-blue);
    flex-shrink: 0;
}

.category-page .selected-category-icon i {
    font-size: 2rem;
    color: var(--dark-bg);
}

.category-page .selected-category-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 8px;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.category-page .selected-category-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 600px;
}

/* Discord Banner */
.category-page .discord-banner {
    background: linear-gradient(135deg, #5865f2, #4752c4);
    padding: 16px 0;
    border-bottom: var(--border-light);
}

.category-page .banner-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    color: white;
    font-weight: 500;
}

.category-page .banner-content i {
    font-size: 1.2rem;
}

/* Memes Section */
.category-page .memes-section {
    padding: 60px 0;
}

.category-page .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 40px;
    flex-wrap: wrap;
    gap: 20px;
}

.category-page .section-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.category-page .sort-options select {
    background: var(--dark-surface);
    border: var(--border-light);
    color: var(--text-primary);
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    cursor: pointer;
    transition: var(--transition-smooth);
    min-width: 180px;
}

.category-page .sort-options select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.category-page .sort-options select:hover {
    border-color: var(--primary-blue);
}

/* Memes Grid */
.category-page .memes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.category-page .meme-card {
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
}

.category-page .meme-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 40px rgba(135, 206, 235, 0.2), var(--glow-blue);
    border-color: var(--primary-blue);
}

.category-page .meme-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    border-bottom: var(--border-light);
}

.category-page .user-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.category-page .user-avatar-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
    box-shadow: 0 2px 10px rgba(135, 206, 235, 0.3);
}

.category-page .user-details {
    display: flex;
    flex-direction: column;
}

.category-page .username {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.category-page .timestamp {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.category-page .meme-content {
    padding: 20px;
}

.category-page .meme-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
}

.category-page .meme-image-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark-card);
    margin-bottom: 15px;
}

.category-page .meme-image {
    width: 100%;
    height: auto;
    max-height: 300px;
    object-fit: cover;
    display: block;
    transition: var(--transition-smooth);
}

.category-page .meme-card:hover .meme-image {
    transform: scale(1.02);
}

.category-page .meme-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 20px;
    border-top: var(--border-light);
}

.category-page .action-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 10px;
    transition: var(--transition-smooth);
    font-size: 0.9rem;
    font-weight: 500;
}

.category-page .action-btn:hover {
    background: var(--dark-card);
    color: var(--text-primary);
    transform: translateY(-1px);
}

.category-page .like-btn:hover {
    color: #e74c3c;
    background: rgba(231, 76, 60, 0.1);
}

.category-page .comment-btn:hover {
    color: var(--primary-blue);
    background: rgba(135, 206, 235, 0.1);
}

.category-page .share-btn:hover {
    color: var(--accent-green);
    background: rgba(46, 204, 113, 0.1);
}

.category-page .action-btn.liked {
    color: #e74c3c;
}

.category-page .action-btn.liked i {
    animation: heartBeat 0.6s ease-in-out;
}

/* Meme Modal */
.category-page .meme-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.category-page .meme-modal.show {
    opacity: 1;
    visibility: visible;
}

.category-page .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.category-page .modal-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--dark-card);
    border-radius: 22px;
    width: 100%;
    max-width: 600px;
    max-height: 96vh;
    box-shadow: 0 8px 40px rgba(0,0,0,0.35);
    margin: 0 auto;
    border: none;
    overflow: hidden;
    position: relative;
}
.category-page .modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.2rem 1.5rem 0.5rem 1.5rem;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
}
.category-page .modal-user {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}
.category-page .modal-user .user-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}
.category-page .modal-user .user-details {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.category-page .modal-user .username {
    font-weight: 700;
    color: var(--text-primary);
    font-size: 1.1rem;
}
.category-page .modal-user .post-time {
    color: var(--text-muted);
    font-size: 0.92rem;
}
.category-page .modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.5rem;
    cursor: pointer;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}
.category-page .modal-close:hover {
    background: rgba(255,255,255,0.08);
    color: var(--primary-blue);
}
.category-page .modal-main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 1.5rem 1.5rem 1.5rem;
    overflow-y: auto;
}
.category-page .meme-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    text-align: center;
    margin: 0.5rem 0 0.2rem 0;
    line-height: 1.2;
    word-break: break-word;
}
.category-page .meme-description {
    color: var(--text-secondary);
    font-size: 1.08rem;
    text-align: center;
    margin-bottom: 1.1rem;
    margin-top: 0.2rem;
    max-height: 4.5em;
    overflow-y: auto;
    line-clamp: 3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    word-break: break-word;
}
.category-page .meme-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 90vw;
    background: var(--dark-card);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    position: relative;
}
.category-page .meme-image-full, .category-page .meme-image-container video {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    background: #111;
    border-radius: 12px;
}
.category-page .meme-actions {
    display: flex;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    margin-bottom: 1.2rem;
}
.category-page .action-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 0.5rem 1.2rem;
    transition: background 0.2s, color 0.2s;
}
.category-page .action-btn:hover {
    background: rgba(135, 206, 235, 0.08);
    color: var(--primary-blue);
}
.category-page .action-btn.liked {
    color: #ff4757;
}
.category-page .action-btn.liked:hover {
    background: rgba(255, 71, 87, 0.1);
}
.category-page .comments-section {
    width: 100%;
    max-width: 700px;
    margin: 0 auto;
    margin-top: 1.5rem;
    border-top: var(--border-light);
    padding-top: 1.5rem;
    overflow-y: auto;
    flex: 1 1 auto;
}
.category-page .comments-section h4 {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}
.category-page .comment-form {
    display: flex;
    gap: 1rem;
    margin-bottom: 30px;
    align-items: flex-start;
}
.category-page .comment-form .user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
}
.category-page .comment-form .user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-page .comment-input {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.category-page .comment-input textarea {
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.95rem;
    resize: vertical;
    min-height: 80px;
    transition: var(--transition-smooth);
}
.category-page .comment-input textarea:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}
.category-page .comment-input textarea::placeholder {
    color: var(--text-muted);
}
.category-page .comment-input .btn {
    align-self: flex-end;
    padding: 10px 20px;
    font-size: 0.9rem;
}
.category-page .comments-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.category-page .comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: var(--dark-surface);
    border-radius: 12px;
    border: var(--border-light);
}
.category-page .comment-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: var(--primary-blue);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-bg);
    font-size: 0.8rem;
}
.category-page .comment-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.category-page .comment-content {
    flex: 1;
}
.category-page .comment-author {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.9rem;
    margin-bottom: 4px;
}
.category-page .comment-text {
    color: var(--text-secondary);
    line-height: 1.5;
    font-size: 0.9rem;
}
.category-page .comment-time {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
}
/* Loading States */
.category-page .loading-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.category-page .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-dark);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}
.category-page .empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}
.category-page .empty-state i {
    font-size: 4rem;
    margin-bottom: 20px;
    opacity: 0.5;
}
.category-page .empty-state h3 {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 10px;
}
.category-page .empty-state p {
    font-size: 1rem;
    line-height: 1.6;
}
/* Responsive Design */
@media (max-width: 768px) {
    .category-page .selected-category-info {
        flex-direction: column;
        text-align: center;
        gap: 20px;
    }
    
    .category-page .selected-category-title {
        font-size: 2rem;
    }
    
    .category-page .section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 15px;
    }
    
    .category-page .section-header h2 {
        font-size: 1.5rem;
    }
    
    .category-page .sort-options select {
        width: 100%;
    }
    
    .category-page .memes-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .category-page .modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .category-page .modal-body {
        padding: 20px;
    }
    
    .category-page .comment-form {
        flex-direction: column;
        gap: 12px;
    }
    
    .category-page .comment-input .btn {
        align-self: stretch;
    }
}
@media (max-width: 480px) {
    .category-page .selected-category-icon {
        width: 60px;
        height: 60px;
    }
    
    .category-page .selected-category-icon i {
        font-size: 1.5rem;
    }
    
    .category-page .selected-category-title {
        font-size: 1.5rem;
    }
    
    .category-page .meme-actions {
        gap: 15px;
        padding: 15px;
    }
    
    .category-page .action-btn {
        padding: 8px 12px;
        font-size: 0.8rem;
    }
}


/* Hero Section */
.categories-page .hero-section {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(70, 130, 180, 0.1));
    overflow: hidden;
}

.categories-page .hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.categories-page .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.categories-page .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.categories-page .hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 18px;
    color: var(--text-primary);
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: unset;
    background-clip: unset;
    text-shadow: none;
    animation: none;
    display: block;
    text-align: center;
}

.categories-page .hero-title i {
    font-size: 2.2rem;
    margin-right: 0.7rem;
    color: var(--primary-blue);
    -webkit-text-fill-color: var(--primary-blue);
    animation: none;
}

.categories-page .hero-description {
    font-size: 1.15rem;
    color: var(--text-secondary);
    margin-bottom: 32px;
    line-height: 1.7;
    text-align: center;
}

.categories-page .hero-stats {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 32px;
    margin-bottom: 32px;
}

.categories-page .stat-card {
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 16px;
    padding: 1.5rem 2.2rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 140px;
    box-shadow: var(--glow-blue);
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    text-align: left;
}

.categories-page .stat-card i {
    font-size: 2rem;
    color: var(--primary-blue);
    margin-right: 0.5rem;
}

.categories-page .stat-content {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.categories-page .stat-number {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--primary-blue);
    line-height: 1;
}

.categories-page .stat-label {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    margin-top: 0.1rem;
}

/* CARDS DE CATÉGORIES EN GRILLE, BLEU UNI, PAS DE VIOLET */
.categories-page .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.categories-page .category-card {
    background: var(--dark-surface);
    border: var(--border-light);
    border-radius: 20px;
    padding: 2rem 2.2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
}
.categories-page .category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    opacity: 0;
    transition: var(--transition-smooth);
    z-index: -1;
}
.categories-page .category-card:hover {
    transform: translateY(-8px) scale(1.03);
    border-color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}
.categories-page .category-card:hover::before {
    opacity: 0.08;
}
.categories-page .category-header {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    margin-bottom: 1.2rem;
}
.categories-page .category-icon {
    width: 60px;
    height: 60px;
    background: rgba(52, 104, 255, 0.08); /* bleu très léger, pas de dégradé */
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--primary-blue);
    box-shadow: none;
}
.categories-page .category-icon i {
    color: var(--primary-blue);
    font-size: 2rem;
}
.categories-page .category-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}
.categories-page .category-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
}
.categories-page .category-stats {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.categories-page .category-stats .stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

@media (max-width: 900px) {
    .categories-page .hero-title { font-size: 2.2rem; }
    .categories-page .categories-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
    .categories-page .hero-content { padding: 0 10px; }
    .categories-page .hero-stats { flex-direction: column; gap: 18px; align-items: center; }
    .categories-page .stat-card { min-width: 120px; padding: 1rem 1.2rem; text-align: center; align-items: center; }
    .categories-page .stat-content { align-items: center; }
}

/* ===== NOUVELLES ANIMATIONS ===== */
@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(135, 206, 235, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(135, 206, 235, 0.6)); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* ===== COULEURS SPÉCIFIQUES PAR CATÉGORIE ===== */
.categories-page .category-card[data-category="programmation"] .category-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.categories-page .category-card[data-category="gaming"] .category-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.categories-page .category-card[data-category="travail"] .category-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.categories-page .category-card[data-category="internet"] .category-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.categories-page .category-card[data-category="animaux"] .category-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.categories-page .category-card[data-category="science"] .category-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

/* ===== RESPONSIVE DESIGN AMÉLIORÉ ===== */
@media (max-width: 768px) {
    .categories-page .category-card {
        padding: 2rem;
    }
    
    .categories-page .category-header {
        gap: 1rem;
    }
    
    .categories-page .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .categories-page .category-title {
        font-size: 1.3rem;
    }
    
    .categories-page .category-stats {
        gap: 1rem;
    }
    
    .categories-page .category-stats .stat {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .categories-page .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .categories-page .hero-title i {
        font-size: 2rem;
    }
    
    .categories-page .stat-card {
        min-width: 140px;
        padding: 1.5rem;
    }
    
    .categories-page .stat-card i {
        font-size: 2rem;
    }
    
    .categories-page .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .categories-page .category-card {
        padding: 1.5rem;
    }
    
    .categories-page .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .categories-page .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .categories-page .category-stats {
        justify-content: center;
    }
    
    .categories-page .category-actions {
        justify-content: center;
    }
    
    .categories-page .hero-title {
        font-size: 2rem;
    }
    
    .categories-page .hero-description {
        font-size: 1rem;
    }
    
    .categories-page .stat-card {
        min-width: 120px;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .categories-page .stat-card i {
        font-size: 1.8rem;
    }
    
    .categories-page .stat-number {
        font-size: 1.5rem;
    }
}

/* ===== ANIMATIONS MANQUANTES ===== */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* ===== REDESIGN DES CARTES DE CATÉGORIES ===== */
.categories-page .category-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.03));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    animation: fadeInUp 0.6s ease-out;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.categories-page .category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-blue), var(--primary-steel), #8b5cf6, #ec4899);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 20px 20px 0 0;
}

.categories-page .category-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.categories-page .category-card:hover::before {
    transform: scaleX(1);
}

.categories-page .category-card:hover::after {
    opacity: 1;
}

.categories-page .category-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.2),
        0 0 0 1px rgba(255, 255, 255, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.categories-page .category-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.categories-page .category-icon {
    width: 70px;
    height: 70px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.categories-page .category-icon::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-page .category-card:hover .category-icon::before {
    opacity: 1;
}

.categories-page .category-card:hover .category-icon {
    transform: scale(1.1) rotate(5deg);
}

.categories-page .category-info {
    flex: 1;
}

.categories-page .category-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, var(--text-primary), rgba(255, 255, 255, 0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.categories-page .category-description {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.5;
    opacity: 0.8;
}

.categories-page .category-stats {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.categories-page .category-stats .stat {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.categories-page .category-stats .stat:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.categories-page .category-stats .stat i {
    color: var(--primary-blue);
    font-size: 1rem;
    opacity: 0.8;
}

.categories-page .category-actions {
    display: flex;
    justify-content: flex-end;
}

.categories-page .category-actions .btn {
    padding: 1rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border: none;
    border-radius: 12px;
    color: var(--dark-bg);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.categories-page .category-actions .btn::before {
    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.5s ease;
}

.categories-page .category-actions .btn:hover::before {
    left: 100%;
}

.categories-page .category-actions .btn:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 10px 25px rgba(135, 206, 235, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* ===== CORRECTION DE LA HERO SECTION ===== */
.categories-page .hero-section {
    position: relative;
    padding: 80px 0 60px;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(70, 130, 180, 0.1));
    overflow: hidden;
}

.categories-page .hero-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(135, 206, 235, 0.1) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    animation: glowPulse 4s ease-in-out infinite;
    pointer-events: none;
}

.categories-page .hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.categories-page .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.categories-page .hero-title {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel), #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    animation: titleGlow 3s ease-in-out infinite alternate;
}

.categories-page .hero-title i {
    font-size: 3rem;
    color: var(--primary-blue);
    -webkit-text-fill-color: var(--primary-blue);
    animation: iconFloat 2s ease-in-out infinite;
}

.categories-page .hero-description {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    line-height: 1.6;
    opacity: 0.9;
}

.categories-page .hero-stats {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.categories-page .stat-card {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 2rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    min-width: 180px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.categories-page .stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(135, 206, 235, 0.1), rgba(139, 92, 246, 0.1));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.categories-page .stat-card:hover::before {
    opacity: 1;
}

.categories-page .stat-card:hover {
    transform: translateY(-8px) scale(1.05);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.2);
    border-color: var(--primary-blue);
}

.categories-page .stat-card i {
    font-size: 2.5rem;
    color: var(--primary-blue);
    position: relative;
    z-index: 1;
    animation: iconPulse 2s ease-in-out infinite;
}

.categories-page .stat-content {
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
}

.categories-page .stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--text-primary);
    line-height: 1;
}

.categories-page .stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-top: 0.25rem;
}

/* ===== NOUVELLES ANIMATIONS ===== */
@keyframes titleGlow {
    0% { filter: drop-shadow(0 0 20px rgba(135, 206, 235, 0.3)); }
    100% { filter: drop-shadow(0 0 30px rgba(135, 206, 235, 0.6)); }
}

@keyframes iconFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

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

/* ===== COULEURS SPÉCIFIQUES PAR CATÉGORIE ===== */
.categories-page .category-card[data-category="programmation"] .category-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    color: white;
}

.categories-page .category-card[data-category="gaming"] .category-icon {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.categories-page .category-card[data-category="travail"] .category-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.categories-page .category-card[data-category="internet"] .category-icon {
    background: linear-gradient(135deg, #8b5cf6, #7c3aed);
    color: white;
}

.categories-page .category-card[data-category="animaux"] .category-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.categories-page .category-card[data-category="science"] .category-icon {
    background: linear-gradient(135deg, #06b6d4, #0891b2);
    color: white;
}

/* ===== RESPONSIVE DESIGN AMÉLIORÉ ===== */
@media (max-width: 768px) {
    .categories-page .category-card {
        padding: 2rem;
    }
    
    .categories-page .category-header {
        gap: 1rem;
    }
    
    .categories-page .category-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .categories-page .category-title {
        font-size: 1.3rem;
    }
    
    .categories-page .category-stats {
        gap: 1rem;
    }
    
    .categories-page .category-stats .stat {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .categories-page .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .categories-page .hero-title i {
        font-size: 2rem;
    }
    
    .categories-page .stat-card {
        min-width: 140px;
        padding: 1.5rem;
    }
    
    .categories-page .stat-card i {
        font-size: 2rem;
    }
    
    .categories-page .stat-number {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    .categories-page .category-card {
        padding: 1.5rem;
    }
    
    .categories-page .category-header {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .categories-page .category-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }
    
    .categories-page .category-stats {
        justify-content: center;
    }
    
    .categories-page .category-actions {
        justify-content: center;
    }
    
    .categories-page .hero-title {
        font-size: 2rem;
    }
    
    .categories-page .hero-description {
        font-size: 1rem;
    }
    
    .categories-page .stat-card {
        min-width: 120px;
        padding: 1rem;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }
    
    .categories-page .stat-card i {
        font-size: 1.8rem;
    }
    
    .categories-page .stat-number {
        font-size: 1.5rem;
    }
}

/* ===== FILTRES ET SECTIONS MANQUANTS ===== */
.categories-page .filters-section {
    padding: 2rem 0;
    background: var(--dark-surface);
    border-bottom: var(--border-light);
}

.categories-page .filters-content {
    display: flex;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.categories-page .search-filter {
    flex: 1;
    min-width: 300px;
}

.categories-page .search-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.categories-page .search-input-wrapper i {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    z-index: 2;
}

.categories-page .search-input-wrapper input {
    width: 100%;
    padding: 0.75rem 1rem 0.75rem 2.5rem;
    background: var(--dark-card);
    border: var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition-smooth);
}

.categories-page .search-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

.categories-page .filter-tabs {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.categories-page .filter-tab {
    background: var(--dark-card);
    border: var(--border-light);
    color: var(--text-secondary);
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    cursor: pointer;
    transition: var(--transition-smooth);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
}

.categories-page .filter-tab:hover {
    background: var(--gray-dark);
    color: var(--text-primary);
}

.categories-page .filter-tab.active {
    background: var(--primary-blue);
    color: var(--dark-bg);
    border-color: var(--primary-blue);
}

.categories-page .filter-tab i {
    font-size: 0.9rem;
}

.categories-page .sort-filter {
    min-width: 200px;
}

.categories-page .sort-select {
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--dark-card);
    border: var(--border-light);
    border-radius: 12px;
    color: var(--text-primary);
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition-smooth);
}

.categories-page .sort-select:focus {
    outline: none;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 3px rgba(135, 206, 235, 0.1);
}

/* Categories Section */
.categories-page .categories-section {
    padding: 4rem 0;
}

.categories-page .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.categories-page .section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.categories-page .section-header p {
    font-size: 1.1rem;
    color: var(--text-secondary);
}

.categories-page .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

/* Loading and Empty States */
.categories-page .loading-state {
    text-align: center;
    padding: 3rem;
}

.categories-page .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--gray-dark);
    border-top: 3px solid var(--primary-blue);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 1rem;
}

.categories-page .empty-state {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
}

.categories-page .empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.categories-page .empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

/* Quick Actions Section */
.categories-page .quick-actions {
    padding: 4rem 0;
    background: var(--dark-surface);
}

.categories-page .actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.categories-page .action-card {
    background: var(--dark-card);
    border: var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    transition: var(--transition-smooth);
}

.categories-page .action-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-color: var(--primary-blue);
}

.categories-page .action-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2rem;
    color: var(--dark-bg);
}

.categories-page .action-card h3 {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.categories-page .action-card p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.categories-page .action-btn {
    background: var(--primary-blue);
    color: var(--dark-bg);
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-smooth);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.categories-page .action-btn:hover {
    background: var(--primary-steel);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(135, 206, 235, 0.3);
}

.category-page .meme-image-container video {
    width: 100%;
    height: auto;
    max-height: 500px;
    object-fit: contain;
    border-radius: 12px;
    margin: 20px 0;
    background: #000;
    display: block;
}

.meme-image-full, .meme-modal video.meme-image-full {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
    background: #111;
    border-radius: 12px;
}

.meme-modal .modal-content, .category-page .modal-content {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: var(--dark-card);
    border-radius: 20px;
    width: auto;
    max-width: 600px;
    max-height: 90vh;
    overflow: visible;
    box-sizing: border-box;
    margin: 4vh auto;
    border: var(--border-medium);
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    position: relative;
    padding: 0;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.5rem 0.5rem 1.5rem;
    background: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
}
.meme-title-desc {
    text-align: center;
    margin: 0 1.5rem 0.7rem 1.5rem;
}
.meme-title {
    color: var(--text-primary);
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.3rem;
    word-break: break-word;
}
.meme-description {
    color: var(--text-secondary);
    font-size: 1rem;
    max-height: 2.8em;
    overflow: auto;
    text-overflow: ellipsis;
    white-space: pre-line;
    margin-bottom: 0.7rem;
}
.meme-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 100%;
    margin: 0 auto 1.2rem auto;
    background: #181a20;
    border-radius: 16px;
    overflow: hidden;
}
.meme-image-container img,
.meme-image-container video {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
    aspect-ratio: auto;
}
@media (max-width: 700px) {
    .meme-image-container {
        max-height: none;
    }
    .meme-image-container img,
    .meme-image-container video {
        max-height: 100%;
    }
}
.meme-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    margin: 0 0 1rem 0;
}
.comments-section {
    background: #181a20;
    border-radius: 0 0 20px 20px;
    padding: 1rem 1.5rem 1.2rem 1.5rem;
    max-height: 180px;
    overflow-y: auto;
}
.comments-list {
    margin-top: 0.7rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    scrollbar-width: thin;
    scrollbar-color: #4682B4 #222;
}
@media (max-width: 700px) {
    .meme-modal .modal-content, .category-page .modal-content {
        max-width: 98vw;
        max-height: 98vh;
        border-radius: 0;
        padding: 0;
        margin: 2vw auto;
    }
    .modal-header, .comments-section, .meme-title-desc {
        padding-left: 0.7rem;
        padding-right: 0.7rem;
    }
    .meme-title {
        font-size: 1.1rem;
    }
    .meme-description {
        font-size: 0.95rem;
    }
    .meme-image-container {
        max-width: 100vw;
        max-height: 180px;
    }
}

.comment {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    background: rgba(255,255,255,0.03);
    border-radius: 12px;
    padding: 0.9rem 1.2rem;
    position: relative;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: background 0.2s, box-shadow 0.2s;
    border-bottom: 1px solid rgba(135,206,235,0.07);
}
.comment:not(:last-child) {
    margin-bottom: 0.5rem;
}
.comment:hover {
    background: rgba(135,206,235,0.07);
    box-shadow: 0 4px 16px rgba(70,130,180,0.07);
}
.comment .user-avatar {
    flex-shrink: 0;
}
.comment .comment-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-blue);
}
.comment-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}
.comment-author {
    color: var(--primary-blue);
    font-weight: 700;
    font-size: 1.08rem;
}
.comment-meta {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
}
.comment-text {
    color: var(--text-primary);
    font-size: 1.08rem;
    margin-bottom: 0.2rem;
    word-break: break-word;
}
.comment-actions {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin-top: 0.2rem;
    justify-content: flex-end;
}
.comment-like-btn, .comment-delete-btn {
    background: none;
    border: none;
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 1.15rem;
    border-radius: 50%;
    padding: 0.3rem 0.5rem;
    transition: background 0.2s, color 0.2s;
}
.comment-like-btn.liked {
    color: #ff4757;
}
.comment-like-btn:hover {
    color: var(--primary-blue);
    background: rgba(135,206,235,0.08);
}
.comment-delete-btn:hover {
    color: #ff4757;
    background: rgba(255, 71, 87, 0.1);
}
.comments-list {
    scrollbar-width: thin;
    scrollbar-color: #4682B4 #222;
}
.comments-list::-webkit-scrollbar {
    width: 5px;
}
.comments-list::-webkit-scrollbar-thumb {
    background: #4682B4;
    border-radius: 6px;
}
@media (max-width: 700px) {
    .comment .comment-avatar {
        width: 36px;
        height: 36px;
    }
    .comment-content {
        font-size: 0.98rem;
    }
}

.categories-page .hero-title.gradient-title,
.categories-page .gradient-title {
    background: linear-gradient(135deg, #87CEEB, #4682B4, #1e3a8a) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: 0 0 20px rgba(135, 206, 235, 0.3) !important;
    animation: titleGlow 3s ease-in-out infinite alternate !important;
}

.admin-action-btn {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.1em;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: background 0.15s;
}
.admin-action-btn:hover, .admin-action-btn:focus {
  background: rgba(59,130,246,0.10);
  color: #3b82f6;
  outline: none;
}

.admin-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 2rem;
}
.admin-tab {
  background: var(--dark-card);
  color: var(--text-primary);
  border: none;
  padding: 10px 28px;
  border-radius: 8px 8px 0 0;
  font-size: 1.08em;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.admin-tab.active, .admin-tab:hover {
  background: #3b82f6;
  color: #fff;
}
.admin-tab-content {
  display: none;
}
.admin-tab-content#tab-dashboard {
  display: block;
}

.certif-badge svg {
  vertical-align: middle;
  color: #3b82f6;
  display: inline-block;
  margin-left: 2px;
}
.certif-badge {
  display: inline-block;
  line-height: 1;
}

/* ===== MODALE ADMIN UTILISATEUR ===== */
.userManageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.userManageModal.show {
    opacity: 1;
    visibility: visible;
}
.userManageModal .userManageContent {
    background: #181c24;
    border-radius: 18px;
    box-shadow: 0 8px 32px #000a;
    width: 95vw;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    animation: fadeInUp 0.3s;
}
.userManageModal .closeUserManageBtn {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.5em;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.userManageModal .closeUserManageBtn:hover {
    color: #f43f5e;
}
@media (max-width: 600px) {
    .userManageModal .userManageContent {
        max-width: 98vw;
        border-radius: 10px;
    }
}

/* ===== TABLE ADMIN ===== */
.admin-table {
    border-collapse: collapse;
    width: 100%;
    background: #fff;
    color: #222;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px #0001;
}
.admin-table th, .admin-table td {
    border: 1px solid #e5e7eb;
    padding: 12px 10px;
    text-align: left;
    font-size: 1em;
}
.admin-table th {
    background: #f3f4f6;
    color: #1e293b;
    font-weight: 700;
}
.admin-table tr {
    transition: background 0.18s;
}
.admin-table tr:hover {
    background: #e0e7ef;
}
.admin-table tr.user-row[style*='banni'] {
    background: #f43f5e11 !important;
    color: #b91c1c;
}

/* ===== MODALE ADMIN UTILISATEUR (DARK) ===== */
.userManageModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(10,16,32,0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s, visibility 0.25s;
}
.userManageModal.show {
    opacity: 1;
    visibility: visible;
}
.userManageModal .userManageContent {
    background: var(--dark-card, #181c24);
    border-radius: 18px;
    box-shadow: 0 8px 32px #000a;
    width: 95vw;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    animation: fadeInUp 0.3s;
    color: var(--text-primary, #f3f4f6);
}
.userManageModal .closeUserManageBtn {
    position: absolute;
    top: 18px;
    right: 18px;
    font-size: 1.5em;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.userManageModal .closeUserManageBtn:hover {
    color: #f43f5e;
}
@media (max-width: 600px) {
    .userManageModal .userManageContent {
        max-width: 98vw;
        border-radius: 10px;
    }
}

/* ===== TABLE ADMIN (DARK) ===== */
.admin-table {
    border-collapse: collapse;
    width: 100%;
    background: var(--dark-card, #181c24);
    color: var(--text-primary, #f3f4f6);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px #0002;
}
.admin-table th, .admin-table td {
    border: 1px solid #23272f;
    padding: 12px 10px;
    text-align: left;
    font-size: 1em;
}
.admin-table th {
    background: #23272f;
    color: #60a5fa;
    font-weight: 700;
}
.admin-table tr {
    transition: background 0.18s;
}
.admin-table tr:hover {
    background: #22304a;
}
.admin-table tr.user-row[style*='banni'] {
    background: #f43f5e11 !important;
    color: #b91c1c;
}

/* MODALE ADMIN UTILISATEUR : fond et bleu uniformes */
.userManageModal .userManageContent {
    background: var(--dark-card, #181c24);
    color: var(--text-primary, #f3f4f6);
    border-radius: 22px;
    box-shadow: 0 8px 40px rgba(59,130,246,0.25), 0 8px 32px #000a;
    border: 2px solid var(--primary-blue, #3b82f6);
    width: 95vw;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    animation: fadeInUp 0.3s;
}
.userManageModal .closeUserManageBtn {
    color: var(--primary-blue, #3b82f6);
    background: none;
    border: none;
    font-size: 1.5em;
    position: absolute;
    top: 18px;
    right: 18px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.userManageModal .closeUserManageBtn:hover {
    color: #f43f5e;
}

.userManageModal .userManageContent {
    background: var(--dark-card, #181c24) !important;
    color: var(--text-primary, #f3f4f6) !important;
    border-radius: 22px !important;
    box-shadow: 0 8px 40px rgba(59,130,246,0.25), 0 8px 32px #000a !important;
    border: 2px solid var(--primary-blue, #3b82f6) !important;
    width: 95vw;
    max-width: 440px;
    max-height: 92vh;
    overflow-y: auto;
    padding: 0;
    position: relative;
    animation: fadeInUp 0.3s;
}
.userManageModal .closeUserManageBtn {
    color: var(--primary-blue, #3b82f6) !important;
    background: none !important;
    border: none !important;
    font-size: 1.5em;
    position: absolute;
    top: 18px;
    right: 18px;
    cursor: pointer;
    z-index: 10;
    transition: color 0.2s;
}
.userManageModal .closeUserManageBtn:hover {
    color: #f43f5e !important;
}

/* ===== UPLOAD ADMIN (ONGLET ADMIN) ===== */
#tab-upload .container {
    background: var(--dark-card, #181c24);
    border-radius: 18px;
    box-shadow: 0 2px 12px #0002;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}
#bulkUploadForm {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
#bulkUploadForm label {
    color: var(--text-primary, #f3f4f6);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
#bulkUploadForm input[type="file"] {
    background: #23272f;
    color: #60a5fa;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #23272f;
    margin-top: 0.5rem;
}
#uploadFileInputs > div {
    background: #23272f;
    border-radius: 10px;
    padding: 12px 10px;
    margin-bottom: 12px;
    color: var(--text-primary, #f3f4f6);
    box-shadow: 0 1px 6px #0001;
}
#bulkUploadForm input[type="text"] {
    background: #181c24;
    color: #f3f4f6;
    border: 1px solid #23272f;
    border-radius: 7px;
    padding: 7px 10px;
    margin-right: 8px;
    margin-bottom: 4px;
    font-size: 1em;
}
#bulkUploadForm input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 2px rgba(59,130,246,0.13);
}
#bulkUploadForm button[type="submit"] {
    background: #3b82f6;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 600;
    padding: 10px 28px;
    cursor: pointer;
    transition: background 0.18s;
    margin-top: 10px;
}
#bulkUploadForm button[type="submit"]:hover {
    background: #2563eb;
}
#uploadResult {
    margin-top: 1.5rem;
    font-size: 1.08em;
}
#uploadResult .success {
    color: #10b981;
    font-weight: 600;
}
#uploadResult .fail {
    color: #f43f5e;
    font-weight: 600;
}
@media (max-width: 700px) {
    #tab-upload .container {
        padding: 1rem 0.5rem;
    }
    #bulkUploadForm input[type="text"] {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* Onglets admin */
.admin-tab-content { display: none; }
.admin-tab-content.active { display: block; }
#tab-users .container, #tab-upload .container {
    background: var(--dark-card, #181c24);
    border-radius: 18px;
    box-shadow: 0 2px 12px #0002;
    padding: 2rem 1.5rem;
    margin-bottom: 2rem;
}
.admin-table {
    width: 100%;
    background: var(--dark-card, #181c24);
    color: var(--text-primary, #f3f4f6);
    border-radius: 10px;
    box-shadow: 0 1px 6px #0001;
}
.admin-table th, .admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid #232323;
}
.admin-table th {
    background: #23272f;
    color: #60a5fa;
    font-weight: 700;
}
.admin-table tr:last-child td {
    border-bottom: none;
}
#bulkUploadForm {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}
#bulkUploadForm label {
    color: var(--text-primary, #f3f4f6);
    font-weight: 600;
    margin-bottom: 0.5rem;
}
#bulkUploadForm input[type="file"] {
    background: #23272f;
    color: #60a5fa;
    border-radius: 8px;
    padding: 8px;
    border: 1px solid #23272f;
    margin-top: 0.5rem;
}
#uploadFileInputs > div {
    background: #23272f;
    border-radius: 10px;
    padding: 12px 10px;
    margin-bottom: 12px;
    color: var(--text-primary, #f3f4f6);
    box-shadow: 0 1px 6px #0001;
}

/* ===== BOUTONS PREMIUM MODALE ADMIN ===== */
.premium-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 1.08em;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 10px 26px;
  box-shadow: 0 2px 12px #0002, 0 1.5px 0 #fff1 inset;
  background: linear-gradient(90deg, #3b82f6 0%, #1e3a8a 100%);
  color: #fff;
  cursor: pointer;
  transition: background 0.18s, box-shadow 0.18s, transform 0.13s;
  outline: none;
  position: relative;
}
.premium-btn i {
  font-size: 1.1em;
  margin-right: 6px;
}
.premium-btn.ban-btn {
  background: linear-gradient(90deg, #f43f5e 0%, #b91c1c 100%);
  box-shadow: 0 2px 12px #f43f5e33, 0 1.5px 0 #fff1 inset;
}
.premium-btn.certif-btn {
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 100%);
  box-shadow: 0 2px 12px #3b82f633, 0 1.5px 0 #fff1 inset;
}
.premium-btn:hover, .premium-btn:focus {
  background: linear-gradient(90deg, #2563eb 0%, #1e40af 100%);
  box-shadow: 0 4px 18px #0004, 0 2px 0 #fff2 inset;
  transform: translateY(-2px) scale(1.04);
}
.premium-btn.ban-btn:hover, .premium-btn.ban-btn:focus {
  background: linear-gradient(90deg, #dc2626 0%, #7f1d1d 100%);
}
.premium-btn.certif-btn:hover, .premium-btn.certif-btn:focus {
  background: linear-gradient(90deg, #2563eb 0%, #60a5fa 100%);
}

/* Fond du modal admin utilisateur = fond principal du site */
#userManageModal {
  background: var(--dark-card, #181c24) !important;
  backdrop-filter: blur(4px);
  border-radius: 22px;
  box-shadow: 0 8px 40px rgba(59,130,246,0.18), 0 8px 32px #000a;
  border: none;
  padding: 0;
}

/* ===== ANNONCE ADMIN PREMIUM ===== */
.annonce-section-premium {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto 2.5rem auto;
  max-width: 700px;
}
.annonce-card-premium {
  background: var(--dark-card, #23272f);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
  width: 100%;
  max-width: 600px;
  text-align: center;
  border: 1.5px solid rgba(255,255,255,0.07);
}
.annonce-icon {
  font-size: 2.1em;
  color: #f59e0b;
  margin-bottom: 0.5em;
}
.annonce-title {
  font-size: 1.35rem;
  color: var(--text-primary);
  margin-bottom: 0.7em;
  font-weight: 700;
}
.annonce-form-premium {
  margin: 0 auto;
  max-width: 420px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}
.annonce-form-premium label {
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.2em;
}
.annonce-form-premium input[type="text"],
.annonce-form-premium input[type="url"],
.annonce-form-premium textarea {
  background: #181c24;
  color: #f3f4f6;
  border: 1px solid #23272f;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 1em;
  margin-top: 6px;
  width: 100%;
  transition: border 0.18s;
}
.annonce-form-premium input[type="text"]:focus,
.annonce-form-premium input[type="url"]:focus,
.annonce-form-premium textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.13);
}
.annonce-form-premium textarea {
  min-height: 120px;
  resize: vertical;
}
.annonce-form-premium input[type="file"] {
  margin-top: 8px;
  color: var(--text-secondary);
}
.annonce-img-preview {
  margin: 1.2em 0 0.5em 0;
  text-align: center;
}
.annonce-img-preview img {
  max-width: 180px;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0002;
}
.annonce-author-choice {
  display: flex;
  align-items: center;
  gap: 1.2em;
  margin: 0.7em 0 0.2em 0;
  font-size: 1em;
  color: var(--text-secondary);
}
.annonce-author-choice label {
  font-weight: 500;
  color: var(--text-primary);
  margin: 0 0.5em 0 0;
  cursor: pointer;
}
.annonce-actions {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  margin-top: 1.2em;
}
.annonce-feedback {
  margin-top: 1.2em;
  font-weight: 600;
  text-align: center;
  min-height: 1.5em;
  font-size: 1.08em;
}
.annonce-apercu {
  margin-top: 2.2em;
  display: block;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 1.2em 1.5em 1.5em 1.5em;
  box-shadow: 0 2px 12px #0002;
  position: relative;
}
.annonce-apercu-header {
  display: flex;
  align-items: center;
  gap: 1em;
  margin-bottom: 0.7em;
}
.annonce-apercu-author {
  display: flex;
  align-items: center;
  gap: 0.7em;
}
.annonce-apercu-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px #0002;
  border: 2px solid #23293a;
  background: #23293a;
}
.annonce-apercu-author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
}
.annonce-apercu-author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.04em;
  display: flex;
  align-items: center;
  gap: 5px;
}
.annonce-apercu-author-date {
  color: var(--text-secondary);
  font-size: 0.93em;
  margin-top: 1px;
}
.annonce-apercu-modif {
  margin-left: auto;
  color: #b8bcc8;
  font-size: 0.93em;
  font-style: italic;
  opacity: 0.8;
}
@media (max-width: 700px) {
  .annonce-apercu-header { flex-direction: column; align-items: flex-start; gap: 0.5em; }
  .annonce-apercu-modif { margin-left: 0; margin-top: 0.3em; }
}
@media (max-width: 700px) {
  .annonce-section-premium { padding: 0 0.5rem; }
  .annonce-card-premium { padding: 1.2rem 0.5rem; }
  .annonce-form-premium { max-width: 100%; }
}

/* ===== ANNONCES ADMIN PREMIUM (NOUVEAU DESIGN) ===== */
.annonce-section-premium {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  margin: 0 auto 2.5rem auto;
  max-width: 800px;
  width: 100%;
}
.annonce-card-premium {
  background: var(--dark-card, #23272f);
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.18);
  padding: 2.2rem 2.2rem 1.5rem 2.2rem;
  width: 100%;
  max-width: 650px;
  text-align: center;
  border: 1.5px solid rgba(255,255,255,0.07);
  margin: 0 auto;
}
.annonce-title {
  font-size: 1.45rem;
  color: var(--text-primary);
  margin-bottom: 1.2em;
  font-weight: 800;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
}
.annonce-author-selector {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  margin-bottom: 1.5em;
  flex-wrap: wrap;
}
.author-card-select {
  background: var(--dark-surface, #181c24);
  border: 2px solid transparent;
  border-radius: 16px;
  box-shadow: 0 2px 12px #0002;
  padding: 1.1em 1.5em 1.1em 1.1em;
  display: flex;
  align-items: center;
  gap: 1em;
  cursor: pointer;
  transition: border 0.18s, box-shadow 0.18s, background 0.18s;
  min-width: 210px;
  max-width: 320px;
  position: relative;
}
.author-card-select.selected {
  border-color: #3b82f6;
  background: linear-gradient(90deg, #23293a 80%, #3b82f6 100%);
  box-shadow: 0 4px 18px #3b82f633, 0 2px 12px #0002;
}
.author-card-select:hover {
  border-color: #60a5fa;
  background: linear-gradient(90deg, #23293a 80%, #60a5fa 100%);
}
.author-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 2px 8px #0002;
  border: 2px solid #23293a;
  background: #23293a;
}
.author-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}
.author-name {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.08em;
  display: flex;
  align-items: center;
  gap: 6px;
}
.admin-badge {
  color: #f59e0b;
  font-size: 1.1em;
  margin-left: 4px;
  vertical-align: middle;
}
.author-email {
  color: var(--text-secondary);
  font-size: 0.97em;
  margin-top: 2px;
}
.annonce-list {
  margin-bottom: 2.2em;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
}
.annonce-list-item {
  background: var(--dark-surface, #181c24);
  border-radius: 13px;
  box-shadow: 0 1px 6px #0001;
  padding: 1em 1.2em;
  display: flex;
  align-items: center;
  gap: 1.2em;
  transition: background 0.15s, box-shadow 0.15s;
  cursor: pointer;
  border: 1.5px solid transparent;
}
.annonce-list-item:hover {
  background: #23293a;
  border-color: #3b82f6;
  box-shadow: 0 4px 16px #3b82f622, 0 2px 12px #0002;
}
.annonce-list-title {
  font-weight: 700;
  color: var(--text-primary);
  font-size: 1.08em;
  flex: 1 1 auto;
  text-align: left;
}
.annonce-list-date {
  color: var(--text-secondary);
  font-size: 0.97em;
  min-width: 120px;
  text-align: right;
}
.annonce-form-premium {
  margin: 0 auto;
  max-width: 420px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  background: none;
}
.annonce-form-premium label {
  font-weight: 600;
  color: var(--text-secondary);
  display: block;
  margin-bottom: 0.2em;
}
.annonce-form-premium input[type="text"],
.annonce-form-premium input[type="url"],
.annonce-form-premium textarea {
  background: #181c24;
  color: #f3f4f6;
  border: 1px solid #23272f;
  border-radius: 7px;
  padding: 9px 12px;
  font-size: 1em;
  margin-top: 6px;
  width: 100%;
  transition: border 0.18s;
}
.annonce-form-premium input[type="text"]:focus,
.annonce-form-premium input[type="url"]:focus,
.annonce-form-premium textarea:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,0.13);
}
.annonce-form-premium textarea {
  min-height: 120px;
  resize: vertical;
}
.annonce-form-premium input[type="file"] {
  margin-top: 8px;
  color: var(--text-secondary);
}
.annonce-img-preview {
  margin: 1.2em 0 0.5em 0;
  text-align: center;
}
.annonce-img-preview img {
  max-width: 180px;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0002;
}
.annonce-actions {
  display: flex;
  gap: 1.2em;
  justify-content: center;
  margin-top: 1.2em;
}
.annonce-feedback {
  margin-top: 1.2em;
  font-weight: 600;
  text-align: center;
  min-height: 1.5em;
  font-size: 1.08em;
}
.annonce-apercu {
  margin-top: 2.2em;
  display: block;
  text-align: left;
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 1.2em 1.5em;
  box-shadow: 0 2px 12px #0002;
}
.annonce-apercu .apercu-title {
  font-size: 1.1em;
  font-weight: 700;
  color: #3b82f6;
  margin-bottom: 0.3em;
}
.annonce-apercu .apercu-msg {
  margin-bottom: 0.7em;
  color: var(--text-primary);
}
.annonce-apercu img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 2px 8px #0002;
  display: block;
  margin-top: 0.7em;
}
@media (max-width: 900px) {
  .annonce-card-premium { padding: 1.2rem 0.5rem; }
  .annonce-section-premium { padding: 0 0.5rem; }
}
@media (max-width: 700px) {
  .annonce-form-premium { max-width: 100%; }
  .annonce-list-item { flex-direction: column; align-items: flex-start; gap: 0.5em; }
  .annonce-list-date { min-width: 0; text-align: left; }
  .annonce-author-selector { gap: 0.7em; }
  .author-card-select { min-width: 140px; padding: 0.7em 0.7em; }
}

.meme-image-container.portrait {
  width: 60% !important;
  min-width: 120px !important;
  margin: 0 auto !important;
}
.meme-image-container.landscape {
  width: 100% !important;
}
.meme-image-container img,
.meme-image-container video {
  object-fit: contain;
  width: 100%;
  height: 100%;
}

.notif-bell-btn {
    background: var(--dark-surface);
    border: var(--border-light);
    color: var(--text-secondary);
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-smooth);
    font-size: 1.1rem;
    position: relative;
}

.notif-bell-btn:hover {
    background: var(--dark-card);
    border-color: var(--primary-blue);
    color: var(--primary-blue);
    box-shadow: var(--glow-blue);
}

.notif-bell-btn .fa-bell {
    font-size: 1.2em;
}

.notif-bell-btn #notifBellCount {
    position: absolute;
    top: 4px;
    right: 4px;
    background: #f04747;
    color: white;
    font-size: 0.7em;
    padding: 2px 6px;
    border-radius: 10px;
    display: none;
    pointer-events: none;
}

.notif-dropdown-menu {
    position: absolute;
    top: 110%;
    right: 0;
    min-width: 260px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    z-index: 1002;
    padding: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
    display: block;
}
.notif-dropdown-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* === Styles restaurés depuis 404.html (page d'erreur) === */
.error-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    padding-top: 120px;
}
.error-container {
    max-width: 600px;
    z-index: 2;
    position: relative;
}
.error-code {
    font-size: clamp(6rem, 12vw, 10rem);
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary-blue), var(--primary-steel));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1;
    filter: drop-shadow(var(--glow-blue));
    animation: glow-pulse 2s ease-in-out infinite alternate;
}
.error-title {
    font-size: clamp(2rem, 4vw, 3rem);
    color: var(--text-primary);
    margin: 1rem 0;
    font-weight: 700;
}
.error-message {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin: 1.5rem 0 3rem;
    line-height: 1.6;
}
.error-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 2rem;
}
@keyframes glow-pulse {
    0% { filter: drop-shadow(var(--glow-blue)); }
    100% { filter: drop-shadow(var(--glow-steel)); }
}
@media (max-width: 768px) {
    .error-actions {
        flex-direction: column;
        align-items: center;
    }
    .btn {
        width: 100%;
        max-width: 250px;
    }
}
.countdown {
    font-weight: bold;
    color: var(--primary-blue);
    display: inline-block;
    transition: transform 0.3s cubic-bezier(0.68,-0.55,0.27,1.55), opacity 0.3s;
    font-variant-numeric: tabular-nums;
}
.countdown.animate {
    transform: scale(1.3);
    opacity: 0.7;
}


.categories-page .category-card[data-category="video"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-video.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="attaques"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-attaques.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="autres"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-autres.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="horny"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-horny.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="humm"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-humm.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="choque"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-choque.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="cursed"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-cursed.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="debile"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-debile.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="drole"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-drole.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="enerver"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-enerver.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="mytho"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-mytho.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="nonstop"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-nonstop.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="oui"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-oui.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="stickers"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-stickers.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="sueur"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-sueur.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="templates"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-templates.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="triste"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-triste.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="vol"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-vol.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="wtf"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-wtf.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="nouveautes"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('/uploads/category-bg-nouveautes.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card[data-category="soundboard"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)),
        url('uploads/category-bg-soundboard.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

.categories-page .category-card.animate-on-scroll[data-category="video"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-video.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="attaques"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-attaques.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="autres"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-autres.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="horny"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-horny.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="humm"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-humm.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="choque"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-choque.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="cursed"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-cursed.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="debile"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-debile.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="drole"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-drole.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="enerver"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-enerver.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="mytho"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-mytho.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="nonstop"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-nonstop.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="oui"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-oui.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="stickers"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-stickers.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="sueur"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-sueur.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="templates"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-templates.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="triste"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-triste.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="vol"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-vol.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="wtf"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-wtf.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="nouveautes"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('/uploads/category-bg-nouveautes.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}
.categories-page .category-card.animate-on-scroll[data-category="soundboard"] {
    background:
        linear-gradient(
            to right,
            rgba(0,0,0,0.7) 0%,
            rgba(0,0,0,0.2) 60%,
            rgba(0,0,0,0.8) 100%
        ),
        linear-gradient(
            to right,
            rgba(0,0,0,0.15) 0%,
            rgba(0,0,0,0.4) 60%,
            rgba(0,0,0,0.7) 100%
        ),
        url('uploads/category-bg-soundboard.png');
    background-size: cover, cover, cover;
    background-position: center, center, center;
    background-repeat: no-repeat, no-repeat, no-repeat;
}

.categories-page .category-card.animate-on-scroll[data-category] .category-icon {
    display: none;
}

/* ===== RECHERCHE GLOBALE DANS LES FILTRES ===== */
.search-results-dropdown {
    margin-top: 8px;
}

.search-result-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    cursor: pointer;
    transition: var(--transition-smooth);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

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

.search-result-item:hover {
    background: rgba(135, 206, 235, 0.1);
}

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

.search-result-title {
    color: var(--text-primary);
    font-weight: 500;
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.search-result-meta {
    display: flex;
    gap: 12px;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.search-result-author {
    font-weight: 500;
}

.search-result-category {
    background: rgba(135, 206, 235, 0.2);
    color: var(--primary-blue);
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.8rem;
}

.search-result-thumb {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: var(--border-light);
}

.search-result-item.search-view-all {
    background: rgba(135, 206, 235, 0.1);
    border: 1px solid var(--primary-blue);
    border-radius: 8px;
    margin: 8px;
}

.search-result-item.search-view-all:hover {
    background: rgba(135, 206, 235, 0.2);
    transform: translateY(-1px);
}

.search-result-item.search-view-all .search-result-title {
    color: var(--primary-blue);
    font-weight: 600;
}

.search-no-results {
    padding: 16px;
    text-align: center;
    color: var(--text-muted);
    font-style: italic;
}

/* Correction : n'appliquer le background qu'aux cards, pas à la page */
.categories-page .category-card.animate-on-scroll[data-category] {
    background-blend-mode: normal;
}

/* S'assurer que les cards sont visibles */
.categories-page .category-card.animate-on-scroll[data-category] {
    display: flex;
    opacity: 1;
    visibility: visible;
}



.categories {
    background: none !important;
}

.categories-page .category-card.animate-on-scroll {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    border-radius: 20px;
    padding: 2rem 2.2rem;
    transition: var(--transition-smooth);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-dark);
    min-height: 340px;
    min-width: 0;
}

.categories-page .category-card.animate-on-scroll .category-info {
    flex: 1 1 auto;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
}

.categories-page .category-card.animate-on-scroll .category-title {
    margin: 0 0 0.5em 0;
    font-size: 1.5rem;
    font-weight: bold;
    color: #fff;
    text-shadow: 0 2px 8px #0006;
}

.categories-page .category-card.animate-on-scroll .category-description {
    margin-bottom: 1.2em;
    font-size: 1.1rem;
    color: #ccc;
}

.categories-page .category-card.animate-on-scroll .category-stats {
    margin-top: auto;
    margin-bottom: 0;
    width: 100%;
    display: flex;
    gap: 0.8em;
    justify-content: flex-start;
    align-items: center;
    flex-wrap: wrap;
}

.categories-page .category-card.animate-on-scroll .stat {
    font-size: 1rem;
    padding: 0.35em 0.9em;
    border-radius: 8px;
}

.categories-page {
    background: linear-gradient(135deg, #181c22 0%, #23272f 100%) !important;
    min-height: 100vh;
}

.categories-page {
    background: var(--dark-bg) !important;
    min-height: 100vh;
    position: relative;
}
.categories-page::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: 
        radial-gradient(circle at 20% 20%, rgba(135, 206, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(70, 130, 180, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 60%, rgba(30, 58, 138, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}
.categories-page::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-image: 
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 2px,
            rgba(255, 255, 255, 0.01) 2px,
            rgba(255, 255, 255, 0.01) 4px
        );
    pointer-events: none;
    z-index: 0;
}


.categories-page::before,
.categories-page::after {
    display: none !important;
}

body.categories-page {
    --text-primary: #fff;
    --text-secondary: #b8bcc8;
    background: var(--dark-bg) !important;
}



.categories-page .category-card[data-category],
.categories-page .category-card.animate-on-scroll[data-category] {
    overflow: hidden;
    border-radius: 20px;
    position: relative;
    border: none;
}
.categories-page .category-card[data-category]::before,
.categories-page .category-card.animate-on-scroll[data-category]::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
}
.categories-page .category-card[data-category]::after,
.categories-page .category-card.animate-on-scroll[data-category]::after {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    border: 1.5px solid rgba(255,255,255,0.12);
    z-index: 2;
    pointer-events: none;
}
.categories-page .category-card .category-info,
.categories-page .category-card .category-title,
.categories-page .category-card .category-description,
.categories-page .category-card .category-stats,
.categories-page .category-card .stat {
    position: relative;
    z-index: 3;
}