* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Couleurs Discord */
    --primary-color: #5865F2;
    --primary-dark: #4752C4;
    --secondary-color: #7289DA;
    --accent-color: #99AAB5;
    
    /* Couleurs de texte */
    --text-color: #ffffff;
    --text-secondary: #a1a1aa;
    --text-muted: #71717a;
    
    /* Couleurs de fond */
    --bg-dark: #000000;
    --bg-darker: #0a0a0a;
    --bg-card: #18181b;
    --bg-card-hover: #27272a;
    --bg-overlay: rgba(0, 0, 0, 0.85);
    
    /* Couleurs d'interaction */
    --hover-color: #7289DA;
    --border-color: rgba(88, 101, 242, 0.2);
    --border-hover: rgba(88, 101, 242, 0.5);
    
    /* Couleurs spéciales */
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --error-color: #ef4444;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    background-attachment: fixed;
    color: var(--text-color);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
.navbar {
    background: linear-gradient(180deg, rgba(0,0,0,0.98) 0%, rgba(10,10,10,0.95) 100%);
    padding: 1rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(20px) saturate(180%);
    border-bottom: 1px solid rgba(88, 101, 242, 0.3);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.2);
}

.nav-container {
    max-width: 1600px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
    transition: all 0.3s;
}

.logo:hover .logo-icon {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 6px 20px rgba(88, 101, 242, 0.6);
}

.logo h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.nav-links {
    display: flex;
    gap: 1.5rem;
    flex: 1;
    justify-content: center;
}

.nav-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
    position: relative;
    white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-color);
}

.nav-link.active::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.6);
}

.nav-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

#searchInput {
    padding: 0.6rem 1rem;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid var(--border-color);
    border-radius: 25px;
    color: var(--text-color);
    font-size: 0.9rem;
    width: 280px;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
}

#searchInput:focus {
    outline: none;
    border-color: var(--primary-color);
    background: rgba(24, 24, 27, 0.95);
    width: 350px;
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
}

.search-icon-btn {
    position: absolute;
    right: 5px;
    padding: 0.5rem;
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    border-radius: 50%;
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search-icon-btn svg {
    width: 18px;
    height: 18px;
}

.search-icon-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    margin-top: 0.5rem;
    max-height: 400px;
    overflow-y: auto;
    display: none;
    z-index: 1001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(88, 101, 242, 0.2);
    backdrop-filter: blur(20px);
}

.search-results.active {
    display: block;
}

.search-result-item {
    padding: 1rem;
    cursor: pointer;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.search-result-item:hover {
    background: linear-gradient(90deg, rgba(88, 101, 242, 0.15) 0%, rgba(114, 137, 218, 0.15) 100%);
    border-left: 3px solid var(--primary-color);
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-poster {
    width: 50px;
    height: 75px;
    object-fit: cover;
    border-radius: 4px;
}

.search-result-info {
    flex: 1;
}

.search-result-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.search-result-meta {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.search-result-title mark {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3) 0%, rgba(114, 137, 218, 0.3) 100%);
    color: var(--primary-color);
    padding: 0 2px;
    border-radius: 2px;
    font-weight: 600;
}

.login-btn {
    padding: 0.6rem 1.2rem;
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(114, 137, 218, 0.15) 100%);
    border: 1px solid rgba(88, 101, 242, 0.4);
    border-radius: 25px;
    color: var(--text-color);
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    backdrop-filter: blur(10px);
}

.login-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.login-btn:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.25) 0%, rgba(114, 137, 218, 0.25) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.4);
    transform: translateY(-2px);
}

/* Pages */
.page {
    display: none;
    min-height: calc(100vh - 80px);
}

.page.active {
    display: block;
}

.container {
    max-width: 1600px;
    margin: 0 auto;
    padding: 2rem;
}

/* Hero Section */
.hero-section {
    position: relative;
    height: 85vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: opacity 0.5s ease-in-out;
    z-index: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.85) 40%,
        rgba(0, 0, 0, 0.6) 70%,
        rgba(0, 0, 0, 0.3) 100%
    );
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    width: 100%;
    max-width: 600px;
}

.movie-tags {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tag {
    padding: 0.3rem 0.8rem;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
    transition: all 0.3s;
}

.tag:hover {
    background: rgba(39, 39, 42, 0.9);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.rating-tag {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.3) 0%, rgba(114, 137, 218, 0.3) 100%);
    border-color: rgba(88, 101, 242, 0.5);
    color: var(--primary-color);
}

.movie-year {
    font-size: 0.9rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.1;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8);
}

.movie-genres {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.hero-description {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    max-width: 500px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.cta-button {
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cta-button svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.cta-button.secondary svg {
    width: 20px;
    height: 20px;
}

.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
}

.cta-button.primary:hover {
    background: linear-gradient(135deg, var(--hover-color) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.6);
}

.cta-button.secondary {
    background: rgba(24, 24, 27, 0.8);
    color: var(--text-color);
    border: 1px solid rgba(88, 101, 242, 0.3);
    padding: 1rem;
    width: 50px;
    height: 50px;
    justify-content: center;
    border-radius: 50%;
    backdrop-filter: blur(10px);
}

.cta-button.secondary:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.carousel-indicators {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
    z-index: 3;
}

.carousel-indicator {
    width: 40px;
    height: 4px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}

.carousel-indicator.active {
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    width: 60px;
    box-shadow: 0 0 10px rgba(88, 101, 242, 0.6);
}

/* Sections */
.section {
    margin-bottom: 4rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    font-weight: 600;
}

/* Bannière Discord */
.discord-banner {
    margin: 2rem 0 4rem;
    background: linear-gradient(135deg, #5865F2 0%, #7289DA 50%, #99AAB5 100%);
    border-radius: 20px;
    padding: 2.5rem;
    position: relative;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.3), 0 0 30px rgba(114, 137, 218, 0.2);
}

.discord-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.discord-banner-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    position: relative;
    z-index: 1;
    max-width: 1400px;
    margin: 0 auto;
}

.discord-banner-text {
    flex: 1;
    color: var(--text-color);
}

.discord-banner-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.discord-banner-description {
    font-size: 1.1rem;
    margin-bottom: 0.75rem;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.6;
}

.discord-banner-subdescription {
    font-size: 1rem;
    margin-bottom: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
}

.discord-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #5865F2;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.discord-join-btn:hover {
    background: var(--text-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.discord-join-btn:active {
    transform: translateY(0);
}

.discord-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.discord-banner-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.discord-large-icon {
    width: 120px;
    height: 120px;
    color: rgba(255, 255, 255, 0.9);
    filter: drop-shadow(0 4px 15px rgba(0, 0, 0, 0.3));
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 2.5rem;
}

/* Section des filtres */
.filters-section {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(39, 39, 42, 0.8) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4), 0 0 20px rgba(88, 101, 242, 0.1);
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 180px;
}

.filter-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.filter-select {
    padding: 0.85rem 1.5rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2300d4ff' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 3rem;
}

.filter-select:hover {
    border-color: var(--primary-color);
    background-color: var(--bg-card);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
    transform: translateY(-2px);
}

.filter-select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.5), 0 4px 20px rgba(88, 101, 242, 0.3);
    background-color: var(--bg-card-hover);
    transform: translateY(-2px);
}

.filter-select option {
    background: var(--bg-card);
    color: var(--text-color);
    padding: 0.5rem;
}

.clear-filters-btn {
    padding: 0.85rem 2rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2) 0%, rgba(220, 38, 38, 0.2) 100%);
    border: 1px solid rgba(239, 68, 68, 0.4);
    border-radius: 12px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.clear-filters-btn:hover {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.3) 0%, rgba(220, 38, 38, 0.3) 100%);
    border-color: var(--error-color);
    box-shadow: 0 4px 20px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

.clear-filters-btn:active {
    transform: translateY(0);
}

/* Grille de films */
.movies-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.movie-card {
    background: transparent;
    border-radius: 16px;
    overflow: visible;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    border: none;
}

.movie-card:hover {
    transform: translateY(-15px) scale(1.03);
    z-index: 10;
}

.movie-poster-container {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card:hover .movie-poster-container {
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.4), 0 0 40px rgba(114, 137, 218, 0.3);
    transform: scale(1.02);
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.movie-card:hover .movie-poster {
    transform: scale(1.1);
}

.watch-progress-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.8rem;
    font-weight: 700;
    z-index: 3;
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.5);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    letter-spacing: 0.5px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}

.watch-progress-badge svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.movie-card:hover .watch-progress-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.7);
}

.watch-progress-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: rgba(0, 0, 0, 0.6);
    z-index: 2;
    border-radius: 0 0 16px 16px;
}

.watch-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.6);
    border-radius: 0 0 16px 0;
}

.movie-info {
    padding: 1.5rem 1rem 1rem;
    background: linear-gradient(180deg, transparent 0%, rgba(24, 24, 27, 0.3) 100%);
    border-radius: 0 0 16px 16px;
    margin-top: -60px;
    position: relative;
    z-index: 2;
    backdrop-filter: blur(10px);
}

.movie-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
    letter-spacing: 0.3px;
}

.movie-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: var(--text-color);
    font-weight: 500;
}

.movie-meta span:first-child {
    background: rgba(88, 101, 242, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(88, 101, 242, 0.3);
}

.movie-rating {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(114, 137, 218, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(114, 137, 218, 0.3);
}

.movie-rating::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg width='18' height='18' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M12 2L15.09 8.26L22 9.27L17 14.14L18.18 21.02L12 17.77L5.82 21.02L7 14.14L2 9.27L8.91 8.26L12 2Z' fill='%23FFD700'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    margin-right: 4px;
    vertical-align: middle;
}

.movie-card::after {
    content: '▶';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 4rem;
    color: var(--text-color);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.9) 0%, rgba(114, 137, 218, 0.9) 100%);
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: none;
    z-index: 5;
    box-shadow: 0 10px 40px rgba(88, 101, 242, 0.6);
    border: 3px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
}

.movie-card:hover::after {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 15px 50px rgba(88, 101, 242, 0.8);
}

/* Bouton de suppression pour "Reprendre la lecture" */
.continue-watching-card {
    position: relative;
}

.remove-progress-btn {
    position: absolute;
    top: 15px;
    left: 15px;
    width: 35px;
    height: 35px;
    background: rgba(239, 68, 68, 0.9);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--text-color);
    font-size: 1.5rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
    opacity: 0;
    transform: scale(0.8);
}

.continue-watching-card:hover .remove-progress-btn {
    opacity: 1;
    transform: scale(1);
}

.remove-progress-btn:hover {
    background: rgba(220, 38, 38, 1);
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.6);
    border-color: rgba(255, 255, 255, 0.5);
}

.remove-progress-btn:active {
    transform: scale(0.95);
}

.remove-progress-btn span {
    line-height: 1;
    margin-top: -2px;
}


/* Modal Vidéo */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}

/* Modal de sélection d'avatar - z-index plus élevé */
#avatarSelectionModal {
    z-index: 3000;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.modal-content {
    position: relative;
    max-width: 1200px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    background: var(--bg-card);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    padding: 2rem;
    animation: slideUp 0.3s;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(88, 101, 242, 0.1);
    backdrop-filter: blur(20px);
}

.video-modal-content {
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0;
    max-width: 1400px;
    width: 95%;
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.close-modal {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 2.5rem;
    color: var(--text-color);
    cursor: pointer;
    z-index: 1000;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.8);
    border-radius: 50%;
    transition: all 0.3s;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
    line-height: 1;
    user-select: none;
}

.close-modal:hover {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 0 25px rgba(88, 101, 242, 0.7);
    border-color: rgba(255, 255, 255, 0.4);
}

.video-modal-content {
    max-width: 1400px;
    width: 95%;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
}

.video-player-container {
    width: 100%;
    position: relative;
}

.video-wrapper {
    position: relative;
    width: 100%;
    background: #000;
    border-radius: 12px;
    overflow: hidden;
}

#videoPlayer {
    width: 100%;
    max-height: 80vh;
    display: block;
    border-radius: 12px;
    background: #000;
}


.video-info {
    margin-top: 2rem;
    padding: 2rem;
    background: linear-gradient(180deg, rgba(30, 30, 35, 0.95) 0%, rgba(40, 40, 50, 0.98) 100%);
    border-radius: 16px;
    border: 1px solid rgba(88, 101, 242, 0.2);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5), 0 0 30px rgba(88, 101, 242, 0.1);
    backdrop-filter: blur(20px);
}

.video-info h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--primary-color);
    text-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.video-info p {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.video-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.action-btn {
    padding: 1rem 2rem;
    background: rgba(24, 24, 27, 0.8);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 10px;
    color: var(--text-color);
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    backdrop-filter: blur(10px);
}

.action-btn svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.action-btn:hover {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.2) 0%, rgba(114, 137, 218, 0.2) 100%);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(88, 101, 242, 0.3);
}

.action-btn.favorited {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
    color: var(--text-color);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state p {
    font-size: 1.2rem;
}

/* Page Top 10 */
.top10-hero {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.15) 0%, rgba(114, 137, 218, 0.15) 100%);
    padding: 4rem 2rem;
    text-align: center;
    border-bottom: 1px solid rgba(88, 101, 242, 0.2);
    position: relative;
    overflow: hidden;
}

.top10-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 50%, rgba(88, 101, 242, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.top10-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: 0 auto;
}

.top10-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 50%, #ffd700 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(88, 101, 242, 0.3);
}

.top10-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    font-weight: 400;
}

.top10-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    padding: 2rem 0;
}

.top10-card {
    position: relative;
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.6) 0%, rgba(39, 39, 42, 0.6) 100%);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 20px;
    padding: 1.5rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: visible;
    backdrop-filter: blur(20px);
}

.top10-card:hover {
    transform: translateY(-10px) scale(1.02);
    border-color: var(--primary-color);
    box-shadow: 0 20px 60px rgba(88, 101, 242, 0.4), 0 0 40px rgba(114, 137, 218, 0.3);
    background: linear-gradient(135deg, rgba(24, 24, 27, 0.8) 0%, rgba(39, 39, 42, 0.8) 100%);
}

.top10-rank {
    position: absolute;
    top: -15px;
    left: 20px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
    z-index: 5;
    box-shadow: 0 6px 25px rgba(88, 101, 242, 0.5);
    backdrop-filter: blur(10px);
}

.top10-rank.rank-gold {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    box-shadow: 0 6px 25px rgba(255, 215, 0, 0.6);
    border-color: rgba(255, 215, 0, 0.5);
    width: 60px;
    height: 60px;
    font-size: 1.8rem;
    top: -20px;
}

.top10-rank.rank-silver {
    background: linear-gradient(135deg, #c0c0c0 0%, #e8e8e8 100%);
    box-shadow: 0 6px 25px rgba(192, 192, 192, 0.6);
    border-color: rgba(192, 192, 192, 0.5);
    width: 55px;
    height: 55px;
    font-size: 1.7rem;
    top: -18px;
}

.top10-rank.rank-bronze {
    background: linear-gradient(135deg, #cd7f32 0%, #e6a857 100%);
    box-shadow: 0 6px 25px rgba(205, 127, 50, 0.6);
    border-color: rgba(205, 127, 50, 0.5);
    width: 52px;
    height: 52px;
    font-size: 1.6rem;
    top: -17px;
}

.top10-card .movie-poster-container {
    margin-top: 1rem;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
}

.top10-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    padding: 1.5rem 1rem 1rem;
    opacity: 0;
    transition: opacity 0.3s;
}

.top10-card:hover .top10-overlay {
    opacity: 1;
}

.top10-rating-badge {
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.9) 0%, rgba(114, 137, 218, 0.9) 100%);
    color: var(--text-color);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.9rem;
    display: inline-block;
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.4);
}

.top10-card .movie-info {
    margin-top: 1rem;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
}

.top10-card .movie-title {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
}

.movie-genre-badge {
    background: rgba(114, 137, 218, 0.2);
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    border: 1px solid rgba(114, 137, 218, 0.3);
    font-size: 0.85rem;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 1024px) {
    .nav-links {
        gap: 1rem;
        font-size: 0.85rem;
    }
    
    #searchInput {
        width: 200px;
    }
    
    #searchInput:focus {
        width: 250px;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .nav-container {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 0.5rem;
    }

    .logo h1 {
        font-size: 1.2rem;
    }

    #searchInput {
        width: 150px;
    }

    #searchInput:focus {
        width: 200px;
    }

    .login-btn {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }

    .hero-section {
        height: 70vh;
        min-height: 500px;
    }

    .hero-content {
        max-width: 100%;
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-description {
        font-size: 0.9rem;
    }

    .movies-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .filters-section {
        flex-direction: column;
        padding: 1rem;
    }

    .filter-group {
        min-width: 100%;
    }

    .clear-filters-btn {
        width: 100%;
    }

    .top10-title {
        font-size: 2.5rem;
    }

    .top10-subtitle {
        font-size: 1rem;
    }

    .top10-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 1.5rem;
    }

    .discord-banner {
        padding: 1.5rem;
        margin: 1.5rem 0 3rem;
    }

    .discord-banner-content {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }

    .discord-banner-title {
        font-size: 1.8rem;
    }

    .discord-banner-description,
    .discord-banner-subdescription {
        font-size: 0.95rem;
    }

    .discord-large-icon {
        width: 80px;
        height: 80px;
    }

    .discord-join-btn {
        width: 100%;
        justify-content: center;
    }

    .modal-content {
        width: 95%;
        padding: 1rem;
    }
}

/* Scrollbar personnalisée */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--hover-color) 0%, var(--accent-color) 100%);
}

/* Page de sélection de profil (Page séparée) */
.profile-selection-page {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-darker) 100%);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1000;
}

.profile-selection-page.standalone-page {
    padding: 0;
}

.profile-selection-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.profile-selection-header {
    padding: 3rem 2rem 2rem 2rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.profile-selection-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.profile-selection-logo:hover {
    opacity: 0.8;
}

.profile-selection-logo .logo-icon {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.profile-selection-logo .logo-text {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-color);
}

.profile-selection-container {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    padding-top: 1rem;
    text-align: center;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.profile-selection-container {
    text-align: center;
    max-width: 1200px;
    width: 100%;
}

.profile-selection-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 4rem;
    color: var(--text-color);
    text-shadow: 0 2px 10px rgba(88, 101, 242, 0.3);
}

.profiles-grid {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 3rem;
}

.profile-card {
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    position: relative;
}

.profile-card:hover {
    transform: scale(1.05);
}

.profile-card.active {
    transform: scale(1.1);
}

.profile-card-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.profile-avatar-wrapper {
    position: relative;
    width: 120px;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    border: 3px solid transparent;
    transition: all 0.3s ease;
}

.profile-card:hover .profile-avatar-wrapper {
    border-color: var(--primary-color);
}

.profile-card.active .profile-avatar-wrapper {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.5);
}

.profile-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-active-indicator {
    position: absolute;
    top: 8px;
    left: 8px;
    background: var(--primary-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.profile-main-badge {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
    color: #8B4513;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.profile-main-badge svg {
    width: 18px;
    height: 18px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
}

.main-profile-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 8px;
    color: #FFD700;
    filter: drop-shadow(0 2px 4px rgba(255, 215, 0, 0.5));
}

.main-profile-badge svg {
    width: 16px;
    height: 16px;
}

.profile-name {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-top: 0.5rem;
    transition: color 0.3s ease;
}

.profile-card:hover .profile-name {
    color: var(--text-color);
}

.profile-card.active .profile-name {
    color: var(--primary-color);
    font-weight: 600;
}

.add-profile-card {
    border: 2px dashed var(--border-color);
    border-radius: 8px;
    padding: 2rem;
    min-width: 120px;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.add-profile-card:hover {
    border-color: var(--primary-color);
    background: rgba(88, 101, 242, 0.1);
}

.add-profile-icon {
    color: var(--text-secondary);
    transition: color 0.3s ease;
}

.add-profile-card:hover .add-profile-icon {
    color: var(--primary-color);
}

.profile-actions {
    display: flex;
    justify-content: center;
    margin-top: 2rem;
}

.manage-profiles-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
    border-radius: 6px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.manage-profiles-btn:hover {
    border-color: var(--primary-color);
    background: rgba(88, 101, 242, 0.1);
    color: var(--primary-color);
}

/* Modal de gestion de profils */
.profiles-management-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    max-height: 400px;
    overflow-y: auto;
}

.profile-management-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-card);
    border-radius: 8px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.profile-management-item:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
}

.profile-management-avatar {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.profile-management-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-management-info {
    flex: 1;
    text-align: left;
}

.profile-management-info h3 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    color: var(--text-color);
}

.profile-management-info p {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.profile-management-actions {
    display: flex;
    gap: 0.5rem;
}

.edit-profile-btn,
.delete-profile-btn {
    width: 36px;
    height: 36px;
    border-radius: 6px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.edit-profile-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(88, 101, 242, 0.1);
}

.delete-profile-btn:hover {
    border-color: var(--error-color);
    color: var(--error-color);
    background: rgba(239, 68, 68, 0.1);
}

.add-profile-section {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
}

.add-profile-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.875rem;
    background: transparent;
    border: 2px dashed var(--border-color);
    color: var(--text-color);
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-profile-btn:hover {
    border-color: var(--primary-color);
    background: rgba(88, 101, 242, 0.1);
    color: var(--primary-color);
}

/* Modal d'édition de profil */
.current-avatar-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar-preview-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    border: 2px solid var(--border-color);
}

.form-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}

.form-actions .auth-submit-btn {
    flex: 1;
}

.form-actions .auth-submit-btn.secondary {
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-color);
}

.form-actions .auth-submit-btn.secondary:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(88, 101, 242, 0.1);
}

/* Footer */
.site-footer {
    background: linear-gradient(180deg, rgba(20, 20, 30, 0.98) 0%, rgba(15, 15, 25, 1) 100%);
    padding: 3rem 2rem 2rem;
    margin-top: 4rem;
    position: relative;
}

.footer-warning {
    max-width: 1000px;
    margin: 0 auto 3rem;
    display: flex;
    justify-content: center;
}

.warning-box {
    background: #b8860b;
    border: 1px solid #ffd700;
    border-radius: 8px;
    padding: 1.5rem 2rem;
    max-width: 900px;
    width: 100%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.warning-title {
    color: #ffd700;
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 1rem;
    text-align: center;
}

.warning-text {
    color: #ffd700;
    font-size: 0.9rem;
    line-height: 1.6;
    text-align: center;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 3rem;
    align-items: start;
    padding-top: 2rem;
}

.footer-left {
    display: flex;
    align-items: flex-start;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.footer-logo-icon {
    width: 50px;
    height: 50px;
    background: #2a2a2a;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    flex-shrink: 0;
}

.footer-logo-icon svg {
    width: 24px;
    height: 24px;
}

.footer-logo-text h2 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.5px;
}

.footer-logo-text p {
    font-size: 0.9rem;
    color: #b3b3b3;
    margin: 0;
}

.footer-center {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}

.footer-nav {
    display: flex;
    flex-direction: row;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.footer-link {
    color: #b3b3b3;
    text-decoration: none;
    font-size: 1rem;
    transition: color 0.3s;
    text-transform: lowercase;
}

.footer-link:hover {
    color: #ffffff;
}

.footer-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.4rem;
    text-align: right;
}

.footer-copyright {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin: 0;
}

.footer-credits {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.heart-icon {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0.4rem;
    width: 16px;
    height: 16px;
}

.heart-icon-svg {
    transition: fill 0.3s;
}

.action-btn.favorited .heart-icon-svg path {
    fill: currentColor;
}

.footer-author {
    color: #b3b3b3;
    font-size: 0.8rem;
    margin: 0;
}

.footer-dev-section {
    max-width: 1400px;
    margin: 2rem auto 0;
    padding: 1.5rem 2rem;
    border-top: 1px solid rgba(88, 101, 242, 0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.footer-dev-text {
    color: #b3b3b3;
    font-size: 0.9rem;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

.footer-dev-tools {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
}

.dev-tool-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.dev-tool-item:hover {
    transform: translateY(-2px);
}

.dev-tool-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
    transition: transform 0.3s, filter 0.3s;
    flex-shrink: 0;
}

.dev-tool-logo.cursor-logo {
    filter: brightness(0.9);
}

.dev-tool-logo.firebase-logo {
    filter: brightness(1.1);
}

.dev-tool-logo.firebase-logo[src] {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dev-tool-item:hover .dev-tool-logo {
    transform: scale(1.1);
}

.dev-tool-item:hover .dev-tool-logo.cursor-logo {
    filter: brightness(1.1);
}

.dev-tool-item:hover .dev-tool-logo.firebase-logo {
    filter: brightness(1.2);
}

.dev-tool-name {
    color: #b3b3b3;
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.3s;
}

.dev-tool-item:hover .dev-tool-name {
    color: var(--primary-color);
}

.dev-tool-separator {
    color: #b3b3b3;
    font-size: 0.9rem;
}

.scroll-to-top {
    position: fixed;
    bottom: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    background: #2a2a2a;
    border: none;
    border-radius: 8px;
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
}

.scroll-to-top svg {
    width: 20px;
    height: 20px;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background: #3a3a3a;
    transform: translateY(-3px);
}

/* Responsive Footer */
@media (max-width: 1024px) {
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }

    .footer-left,
    .footer-right {
        justify-content: center;
        align-items: center;
    }

    .footer-nav {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .footer-dev-section {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 768px) {
    .site-footer {
        padding: 2rem 1rem 1.5rem;
    }

    .footer-dev-section {
        padding: 1rem;
        gap: 0.75rem;
    }

    .footer-dev-text {
        font-size: 0.8rem;
    }

    .footer-dev-tools {
        gap: 0.75rem;
    }

    .dev-tool-logo {
        width: 28px;
        height: 28px;
    }

    .dev-tool-name {
        font-size: 0.85rem;
    }

    .warning-box {
        padding: 1rem 1.5rem;
    }

    .warning-title {
        font-size: 1.1rem;
    }

    .warning-text {
        font-size: 0.85rem;
    }

    .footer-content {
        gap: 1.5rem;
    }

    .scroll-to-top {
        bottom: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
    }
}

/* Authentification */
.user-menu {
    position: relative;
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: var(--bg-card);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 12px;
    padding: 1rem;
    min-width: 200px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(88, 101, 242, 0.1);
    backdrop-filter: blur(20px);
    z-index: 1001;
}

.user-info {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0.5rem;
}

.user-profile-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.user-profile-img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
    flex-shrink: 0;
}

.user-profile-info {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    flex: 1;
    min-width: 0;
}

.user-display-name {
    color: var(--text-color);
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.user-email {
    color: var(--text-secondary);
    font-size: 0.85rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.dropdown-divider {
    height: 1px;
    background: var(--border-color);
    margin: 0.5rem 0;
}

.dropdown-item {
    width: 100%;
    padding: 0.7rem;
    background: transparent;
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    cursor: pointer;
    text-align: left;
    transition: all 0.3s;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.dropdown-item svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.dropdown-item:hover {
    background: rgba(88, 101, 242, 0.1);
    color: var(--primary-color);
}

/* Modal d'authentification */
.auth-modal-content {
    max-width: 450px;
    width: 90%;
}

.auth-container {
    padding: 1rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

.auth-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid var(--border-color);
}

.auth-tab {
    flex: 1;
    padding: 1rem;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-secondary);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    margin-bottom: -2px;
}

.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}

.auth-tab:hover {
    color: var(--text-color);
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-color);
    font-weight: 500;
    font-size: 0.95rem;
}

.form-group input {
    width: 100%;
    padding: 0.8rem 1rem;
    background: var(--bg-darker);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.2);
    background: var(--bg-card);
}

.form-group small {
    display: block;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.auth-submit-btn {
    width: 100%;
    padding: 1rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 1rem;
}

.auth-submit-btn:hover {
    background: linear-gradient(135deg, var(--hover-color) 0%, var(--accent-color) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.4);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.auth-error {
    padding: 1rem;
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    border-radius: 8px;
    color: var(--error-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.auth-success {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 8px;
    color: var(--success-color);
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

/* Sélection d'avatar */
.avatar-selection {
    margin-top: 0.5rem;
}

.avatar-options {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
    margin-top: 0.75rem;
}

.avatar-option {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s;
    background: var(--bg-darker);
    display: flex;
    align-items: center;
    justify-content: center;
}

.avatar-option:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.avatar-option.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 15px rgba(88, 101, 242, 0.5);
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.current-avatar-preview {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.avatar-preview-img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--primary-color);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.settings-section {
    margin-bottom: 2rem;
}

.settings-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-color);
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

/* Modal de sélection d'avatar */
.avatar-selection-modal-content {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
    padding: 0;
    background: var(--bg-card);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.avatar-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(135deg, rgba(88, 101, 242, 0.1) 0%, rgba(114, 137, 218, 0.1) 100%);
}

.avatar-modal-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--text-color);
    margin: 0;
}

.close-avatar-modal {
    background: transparent;
    border: none;
    color: var(--text-color);
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 8px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-avatar-modal:hover {
    background: rgba(88, 101, 242, 0.2);
    transform: rotate(90deg);
}

.avatar-categories {
    display: flex;
    gap: 0.5rem;
    padding: 1rem 2rem;
    border-bottom: 1px solid var(--border-color);
    overflow-x: auto;
    background: var(--bg-darker);
}

.avatar-category-btn {
    padding: 0.6rem 1.2rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    flex-shrink: 0;
}

.avatar-category-btn:hover {
    border-color: var(--primary-color);
    color: var(--text-color);
}

.avatar-category-btn.active {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border-color: var(--primary-color);
    color: var(--text-color);
    box-shadow: 0 4px 15px rgba(88, 101, 242, 0.3);
}

.avatar-grid-container {
    flex: 1;
    overflow-y: auto;
    padding: 1.5rem 2rem;
    background: var(--bg-dark);
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 1rem;
    max-width: 100%;
}

.avatar-grid-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    border: 3px solid transparent;
    transition: all 0.3s;
    background: var(--bg-card);
}

.avatar-grid-item:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(88, 101, 242, 0.4);
}

.avatar-grid-item.selected {
    border-color: var(--primary-color);
    box-shadow: 0 0 20px rgba(88, 101, 242, 0.6);
    transform: scale(1.08);
}

.avatar-grid-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.avatar-name-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    color: var(--text-color);
    padding: 0.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s;
}

.avatar-grid-item:hover .avatar-name-overlay {
    opacity: 1;
}

.avatar-modal-footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-darker);
    display: flex;
    justify-content: flex-end;
}

.avatar-confirm-btn {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    border: none;
    border-radius: 8px;
    color: var(--text-color);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.avatar-confirm-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 30px rgba(88, 101, 242, 0.4);
}

.avatar-confirm-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.select-avatar-btn {
    width: 100%;
    padding: 0.8rem 1.5rem;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.3);
    border-radius: 8px;
    color: var(--primary-color);
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.select-avatar-btn:hover {
    background: rgba(88, 101, 242, 0.2);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.select-avatar-btn svg {
    width: 20px;
    height: 20px;
}

.selected-avatar-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(88, 101, 242, 0.05);
    border: 1px solid rgba(88, 101, 242, 0.2);
    border-radius: 8px;
    margin-top: 1rem;
}

.selected-avatar-preview img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.selected-avatar-preview span {
    color: var(--text-color);
    font-weight: 500;
}

/* Toast de succès */
.toast-success {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 1rem 1.5rem;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.9) 0%, rgba(5, 150, 105, 0.9) 100%);
    border: 1px solid rgba(16, 185, 129, 0.5);
    border-radius: 12px;
    color: var(--text-color);
    font-weight: 500;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.8), 0 0 20px rgba(16, 185, 129, 0.3);
    backdrop-filter: blur(10px);
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Styles Premium */
.premium-status {
    margin-top: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(255, 215, 0, 0.1) 0%, rgba(255, 193, 7, 0.1) 100%);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-radius: 8px;
}

.premium-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #ffd700;
    font-weight: 600;
}

.premium-badge svg {
    width: 20px;
    height: 20px;
    fill: #ffd700;
}

/* Badge Premium dans la navigation (à côté du nom) */
.premium-badge-nav {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    color: #ffd700;
    vertical-align: middle;
}

.premium-badge-nav svg {
    width: 16px;
    height: 16px;
    fill: #ffd700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
    animation: premiumPulse 2s ease-in-out infinite;
}

@keyframes premiumPulse {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

/* Badge Premium dans le dropdown (à côté du nom) */
.premium-badge-dropdown {
    display: inline-flex;
    align-items: center;
    margin-left: 0.5rem;
    color: #ffd700;
    vertical-align: middle;
}

.premium-badge-dropdown svg {
    width: 16px;
    height: 16px;
    fill: #ffd700;
    filter: drop-shadow(0 0 3px rgba(255, 215, 0, 0.8));
    animation: premiumPulse 2s ease-in-out infinite;
}

/* Container pour le nom avec le badge */
.user-name-container {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.premium-lock-message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 70vh;
    padding: 2rem;
    margin-top: 2rem;
}

.premium-lock-content {
    text-align: center;
    max-width: 550px;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(138, 43, 226, 0.1) 100%);
    border-radius: 20px;
    border: 2px solid rgba(138, 43, 226, 0.3);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
}

.premium-lock-content::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.1) 0%, transparent 70%);
    animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 0.5;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.1);
    }
}

.premium-star-icon {
    position: relative;
    z-index: 1;
    margin-bottom: 2rem;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

.premium-star-icon svg {
    width: 80px;
    height: 80px;
    color: #ffd700;
    fill: #ffd700;
    filter: drop-shadow(0 0 20px rgba(255, 215, 0, 0.5));
}

.premium-lock-content h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: var(--text-color);
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.premium-lock-content p {
    color: var(--text-secondary);
    margin-bottom: 2.5rem;
    line-height: 1.7;
    font-size: 1.05rem;
    position: relative;
    z-index: 1;
}

.premium-access-btn {
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #8a2be2 0%, #4169e1 100%);
    color: white;
    border: none;
    padding: 1rem 2.5rem;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.4);
    overflow: hidden;
}

.premium-access-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.premium-access-btn:hover::before {
    left: 100%;
}

.premium-access-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.6);
}

.premium-access-btn:active {
    transform: translateY(0);
}

.premium-access-btn span {
    position: relative;
    z-index: 1;
}

.settings-section {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border-color);
}

.settings-section:last-child {
    border-bottom: none;
}

.settings-section-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    color: var(--text-color);
}
