/* Reset et styles de base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

:root {
    --primary-color: #e50914;
    --primary-hover: #f40612;
    --dark-bg: #141414;
    --dark-gray: #222;
    --medium-gray: #303030;
    --light-gray: #757575;
    --text-light: #ffffff;
    --text-muted: #e5e5e5;
    --transition: all 0.3s ease;
}

body {
    background-color: var(--dark-bg);
    color: var(--text-light);
    line-height: 1.6;
}

a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

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

button {
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    font-family: inherit;
}

/* Boutons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition);
    gap: 8px;
}

.btn-primary {
    background-color: var(--primary-color);
    color: white;
}

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

.btn-outline {
    border: 1px solid var(--text-light);
    background-color: rgba(0, 0, 0, 0.4);
    color: var(--text-light);
}

.btn-outline:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

/* Barre de navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 15px 4%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.7) 0%, transparent 100%);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-left {
    display: flex;
    align-items: center;
    flex-grow: 1;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Navigation principale */
.nav-links {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    margin-left: 30px;
}

.nav-links li {
    margin: 0 15px;
    position: relative;
}

.nav-link {
    color: var(--text-light);
    font-weight: 500;
    padding: 8px 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: width 0.3s ease;
}

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

.nav-link:hover,
.nav-link.active,
.nav-link.add-media-btn:hover {
    color: var(--primary-color);
}

.nav-link.add-media-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-weight: 600;
    background: rgba(229, 9, 20, 0.1);
    padding: 8px 16px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-link.add-media-btn i {
    font-size: 1.1em;
}

.nav-link.add-media-btn:hover {
    background: rgba(229, 9, 20, 0.2);
    transform: translateY(-2px);
}

/* Logo */
.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo i {
    font-size: 1.5em;
}

/* Bouton de recherche */
.search-container {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    padding: 8px 15px;
    color: white;
    font-size: 0.9rem;
    width: 200px;
    transition: all 0.3s ease;
}

.search-input:focus {
    outline: none;
    width: 250px;
    background: rgba(255, 255, 255, 0.15);
    border-color: var(--primary-color);
}

.search-button {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

/* Bouton de connexion */
.login-button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-button:hover {
    background-color: #f40612;
}

/* Menu utilisateur */
.navbar-profile {
    position: relative;
    cursor: pointer;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-bg);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 200px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    display: none;
    z-index: 1000;
}

.navbar-profile:hover .profile-dropdown {
    display: block;
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 20px;
    color: var(--text-light);
    text-decoration: none;
    transition: background-color 0.2s;
}

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

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    margin: 8px 0;
}

/* Menu mobile */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 8px;
    margin-right: 15px;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 280px;
    height: 100vh;
    background-color: var(--dark-bg);
    z-index: 1100;
    overflow-y: auto;
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    transform: translateX(300px);
}

.mobile-menu .nav-links {
    flex-direction: column;
    margin-top: 20px;
}

.mobile-menu .nav-links li {
    margin: 10px 0;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1050;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Afficher le menu burger sur mobile */
@media (max-width: 992px) {
    .mobile-menu-toggle {
        display: block;
    }
    
    .navbar .nav-links {
        display: none;
    }
    
    .mobile-menu .nav-links {
        display: flex;
    }
}

.navbar.scrolled {
    background-color: var(--dark-bg);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    padding: 10px 4%;
    transition: all 0.3s ease;
}

/* Animation de la navbar au scroll */
.navbar.scrolled-down {
    transform: translateY(-100%);
}

.navbar.scrolled-up {
    transform: translateY(0);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

/* Transition fluide pour la navbar */
.navbar {
    will-change: transform, background-color, padding;
    transition: transform 0.3s ease, background-color 0.3s ease, padding 0.3s ease;
}

/* Style pour la recherche active */
.search-container.active {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 20px;
    padding: 5px 15px;
}

/* Amélioration du focus sur les éléments interactifs */
button:focus,
input:focus,
a:focus {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
}

/* Amélioration de l'accessibilité au clavier */
.nav-link:focus-visible,
.dropdown-item:focus-visible,
.search-button:focus-visible {
    outline: 2px solid var(--primary-color);
    outline-offset: 2px;
    border-radius: 2px;
}

/* Animation subtile au survol des liens */
.nav-link {
    transition: transform 0.2s ease, color 0.2s ease;
}

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

/* Style pour les écrans larges */
@media (min-width: 1600px) {
    .navbar-container {
        max-width: 1600px;
    }
}

/* Amélioration de la visibilité des liens actifs */
.nav-link.active {
    font-weight: 700;
    color: var(--primary-color) !important;
}

/* Effet de profondeur au survol des cartes */
.movie-card, .show-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.movie-card:hover, .show-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

/* Amélioration des transitions */
* {
    scroll-behavior: smooth;
    box-sizing: border-box;
}

/* Styles pour la page de détails */
.media-details-container {
    color: white;
    padding-top: 60px;
}

.media-backdrop {
    position: relative;
    height: 70vh;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    padding: 2rem 4%;
}

.backdrop-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to right, rgba(20, 20, 20, 1) 0%, rgba(20, 20, 20, 0.7) 50%, rgba(20, 20, 20, 0.3) 100%);
}

.back-button {
    position: relative;
    z-index: 10;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    padding: 8px 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.1);
}

.media-content {
    position: relative;
    display: flex;
    max-width: 1400px;
    margin: -100px auto 0;
    padding: 0 4%;
    gap: 30px;
}

.media-poster {
    width: 300px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transition: transform 0.3s ease;
}

.media-poster img {
    width: 100%;
    display: block;
}

.media-info {
    flex-grow: 1;
}

.media-title {
    font-size: 2.5rem;
    margin: 0 0 1rem;
    font-weight: 700;
}

.media-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 1.5rem;
    color: #aaa;
    font-size: 0.9rem;
}

.media-rating {
    color: #f5c518;
    font-weight: 600;
}

.media-description {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 800px;
}

.media-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 2rem;
}

.btn-play, .btn-trailer, .btn-favorite {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-play {
    background-color: var(--primary-color);
    color: white;
    background-image: linear-gradient(135deg, var(--primary-color) 0%, #c11119 100%);
    position: relative;
    z-index: 1;
}

.btn-play::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(135deg, #ff0a16 0%, #c11119 100%);
    opacity: 0;
    z-index: -1;
    transition: opacity 0.3s ease;
}

.btn-play:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(229, 9, 20, 0.3);
}

.btn-play:hover::before {
    opacity: 1;
}

.btn-play:active {
    transform: translateY(1px);
    box-shadow: 0 2px 8px rgba(229, 9, 20, 0.3);
}

.btn-trailer {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-trailer:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-favorite {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-favorite:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.media-links h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
}

.stream-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.stream-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

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

/* Modal vidéo */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    padding: 20px;
}

.video-modal-content {
    position: relative;
    width: 100%;
    height: 100%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    cursor: pointer;
    z-index: 10;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
}

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

/* Formulaire d'ajout de média */
.add-media-form {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(30, 30, 30, 0.8);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.add-media-form h2 {
    margin-top: 0;
    margin-bottom: 2rem;
    color: white;
    text-align: center;
}

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

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: #ddd;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 10px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.3);
}

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

.stream-link-fields {
    margin-top: 1rem;
    padding-left: 1rem;
    border-left: 2px solid rgba(255, 255, 255, 0.1);
}

.btn-add-link {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px dashed rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 0.5rem;
    transition: all 0.3s ease;
}

.btn-add-link:hover {
    background: rgba(255, 255, 255, 0.2);
}

.btn-submit {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    width: 100%;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #f40612;
    transform: translateY(-2px);
}

/* Responsive */
@media (max-width: 992px) {
    .media-content {
        flex-direction: column;
        margin-top: -50px;
    }
    
    .media-poster {
        width: 200px;
        margin: 0 auto;
    }
    
    .media-title {
        font-size: 2rem;
        text-align: center;
    }
    
    .media-actions {
        justify-content: center;
    }
    
    .media-meta {
        justify-content: center;
    }
    
    .media-description {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }
    
    .stream-links {
        justify-content: center;
    }
}

@media (max-width: 768px) {
    .media-backdrop {
        height: 50vh;
    }
    
    .add-media-form {
        margin: 1rem;
        padding: 1.5rem;
    }
    
    .btn-play, .btn-trailer {
        padding: 10px 20px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .media-backdrop {
        height: 40vh;
    }
    
    .media-poster {
        width: 160px;
    }
    
    .media-title {
        font-size: 1.5rem;
    }
    
    .media-actions {
        flex-wrap: wrap;
    }
    
    .btn-play, .btn-trailer {
        flex-grow: 1;
    }
}

.navbar-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1800px;
    margin: 0 auto;
}

.navbar-left {
    display: flex;
    align-items: center;
    gap: 30px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo i {
    font-size: 32px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 20px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition);
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-light);
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 20px;
}

.search-container {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    padding: 5px 10px;
}

.search-input {
    background: transparent;
    border: none;
    color: white;
    padding: 8px 12px;
    width: 200px;
    outline: none;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

.search-button {
    color: white;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

/* Menu profil */
.navbar-profile {
    position: relative;
}

.profile-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.profile-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.profile-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: var(--dark-gray);
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    min-width: 200px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
    z-index: 1001;
}

.navbar-profile:hover .profile-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.profile-header {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    gap: 12px;
}

.dropdown-avatar {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
}

.profile-info {
    flex: 1;
}

.profile-name {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 2px;
}

.profile-email {
    font-size: 12px;
    color: var(--light-gray);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 15px;
    font-size: 14px;
    color: var(--text-muted);
    transition: var(--transition);
}

.dropdown-item:hover {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-light);
}

.dropdown-item i {
    width: 20px;
    text-align: center;
}

.dropdown-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 5px 0;
}

/* Bannière principale */
.hero-banner {
    position: relative;
    height: 80vh;
    min-height: 500px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.7)),
                url('https://via.placeholder.com/1920x1080') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-bottom: 40px;
}

.banner-content {
    position: relative;
    z-index: 2;
    max-width: 600px;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-description {
    font-size: 1.25rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.banner-actions {
    display: flex;
    gap: 15px;
}

/* Contenu principal */
.main-content {
    padding: 40px 4%;
    margin-top: 70px;
}

.category-section {
    margin-bottom: 50px;
}

.section-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.content-card {
    background: var(--dark-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.content-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.card-image {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    background-size: cover;
    background-position: center;
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.content-card:hover .card-overlay {
    opacity: 1;
}

.card-play,
.card-add {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 5px;
    color: #000;
    font-size: 16px;
    transition: transform 0.2s ease, background 0.2s ease;
}

.card-play:hover,
.card-add:hover {
    transform: scale(1.1);
    background: #fff;
}

.card-details {
    padding: 15px;
}

.card-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-meta {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--light-gray);
}

.card-rating {
    color: #e6b91e;
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--text-light);
}

/* Section de téléchargement */
.upload-section {
    background: var(--dark-gray);
    padding: 40px;
    border-radius: 8px;
    margin: 40px 0;
}

.upload-form {
    max-width: 800px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    color: white;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

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

.thumbnail-preview {
    width: 100%;
    height: 200px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px dashed rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    margin-top: 10px;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px;
}

.upload-progress {
    margin: 20px 0;
    display: none;
}

.progress-bar {
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress {
    height: 100%;
    width: 0;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.progress-text {
    text-align: center;
    font-size: 12px;
    color: var(--light-gray);
}

.btn-upload {
    width: 100%;
    padding: 12px;
    font-size: 16px;
    font-weight: 600;
}

/* Pied de page */
.site-footer {
    background: #000;
    padding: 50px 0 20px;
    margin-top: 80px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 4%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
}

.footer-section h3 {
    color: var(--text-light);
    font-size: 18px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 40px;
    height: 2px;
    background: var(--primary-color);
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: var(--light-gray);
    font-size: 14px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.social-links {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: var(--dark-gray);
    border-radius: 50%;
    color: var(--text-light);
    transition: var(--transition);
}

.social-link:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light-gray);
    font-size: 14px;
}

/* Navigation mobile */
.mobile-menu {
    position: fixed;
    top: 0;
    left: -300px;
    width: 300px;
    height: 100vh;
    background: var(--dark-bg);
    z-index: 1002;
    padding: 80px 20px 20px;
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.3);
}

.mobile-menu.active {
    transform: translateX(300px);
}

.mobile-menu .nav-links {
    display: block;
    padding: 0;
    margin: 0;
}

.mobile-menu .nav-link {
    display: block;
    padding: 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 16px;
}

.mobile-menu .nav-link:last-child {
    border-bottom: none;
}

.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1001;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.overlay.active {
    display: block;
    opacity: 1;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

.animate-fade-in {
    animation: fadeIn 0.5s ease forwards;
}

.animate-slide-up {
    animation: slideUp 0.5s ease forwards;
}

/* Notifications */
.offline-notification {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: opacity 0.3s ease;
}

.offline-notification i {
    font-size: 18px;
    color: #ff6b6b;
}

/* Bouton de retour en haut */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--primary-hover);
    transform: translateY(-3px);
}

/* Indicateur de chargement */
.loading {
    display: inline-block;
    width: 30px;
    height: 30px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

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

/* Style pour l'icône de chargement */
.fa-spinner {
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

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

/* Styles pour les boutons en cours de chargement */
button[aria-busy="true"] {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

button[aria-busy="true"]::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
}

button[aria-busy="true"] span {
    opacity: 0;
}

/* Amélioration de l'accessibilité */
button:focus {
    outline: 3px solid rgba(255, 255, 255, 0.5);
    outline-offset: 2px;
}

button:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

/* Message d'état vide */
.empty-state {
    text-align: center;
    padding: 40px 20px;
    color: var(--light-gray);
}

/* Styles pour les modales d'authentification */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.auth-modal.show {
    display: flex;
    opacity: 1;
}

.auth-modal-content {
    background: var(--dark-bg);
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    transform: translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.3);
}

.auth-modal.show .auth-modal-content {
    transform: translateY(0);
}

.auth-modal-header {
    padding: 20px;
    background: var(--darker-bg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
}

.auth-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    color: var(--text-light);
}

.close-auth-modal {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--text-muted);
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    transition: color 0.2s;
}

.close-auth-modal:hover {
    color: var(--text-light);
}

.auth-modal-body {
    padding: 25px;
}

.auth-form-group {
    margin-bottom: 20px;
}

.auth-form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.auth-form-group input {
    width: 100%;
    padding: 12px 15px;
    background: var(--darker-bg);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.auth-form-group input:focus {
    border-color: var(--primary-color);
    outline: none;
}

.auth-form-actions {
    margin-top: 25px;
}

.btn-auth {
    width: 100%;
    padding: 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
}

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

.auth-form-footer {
    margin-top: 20px;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.auth-form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-form-footer a:hover {
    color: var(--primary-hover);
    text-decoration: underline;
}

.error-message {
    color: #ff6b6b;
    font-size: 0.85rem;
    margin-top: 5px;
    display: none;
}

.auth-message {
    padding: 10px 15px;
    margin-bottom: 20px;
    border-radius: 4px;
    font-size: 0.9rem;
    display: none;
}

.auth-message.success {
    background: rgba(46, 213, 115, 0.1);
    color: #2ed573;
    border: 1px solid rgba(46, 213, 115, 0.2);
    display: block;
}

.auth-message.error {
    background: rgba(255, 71, 87, 0.1);
    color: #ff4757;
    border: 1px solid rgba(255, 71, 87, 0.2);
    display: block;
}

/* Style pour l'aperçu de l'avatar */
.avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto 15px;
    display: block;
    border: 3px solid var(--border-color);
}

.avatar-upload {
    text-align: center;
    margin-bottom: 20px;
}

.avatar-upload-label {
    display: inline-block;
    padding: 8px 15px;
    background: var(--darker-bg);
    color: var(--text-light);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.avatar-upload-label:hover {
    background: var(--border-color);
}

.avatar-upload input[type="file"] {
    display: none;
}

.empty-state i {
    font-size: 48px;
    margin-bottom: 20px;
    color: var(--light-gray);
    opacity: 0.7;
}

.empty-state h3 {
    font-size: 20px;
    margin-bottom: 10px;
    color: var(--text-light);
}

.empty-state p {
    margin-bottom: 20px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

/* Pages d'authentification */
.auth-container {
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: var(--dark-bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 30px;
}

.auth-logo a {
    color: var(--primary-color);
    font-size: 28px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.auth-logo i {
    margin-right: 10px;
}

.auth-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.auth-description {
    color: var(--light-gray);
    margin-bottom: 30px;
    text-align: center;
    line-height: 1.6;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    background-color: var(--dark-bg);
    color: var(--text-light);
    font-size: 16px;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(229, 9, 20, 0.2);
    outline: none;
}

.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--light-gray);
    cursor: pointer;
    background: none;
    border: none;
    font-size: 16px;
}

.btn-auth {
    width: 100%;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    margin-top: 10px;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    color: var(--light-gray);
}

.auth-footer a {
    color: var(--primary-color);
    text-decoration: none;
    margin-left: 5px;
}

.auth-footer a:hover {
    text-decoration: underline;
}

.alert {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-success {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.alert-danger {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

/* Styles pour la vérification d'email */
.verification-container {
    text-align: center;
    max-width: 500px;
    margin: 50px auto;
    padding: 40px;
    background: var(--dark-bg-secondary);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.verification-icon {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.verification-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: var(--text-light);
}

.verification-message {
    margin-bottom: 30px;
    color: var(--light-gray);
    line-height: 1.6;
}

.verification-email {
    font-weight: 600;
    color: var(--primary-color);
    word-break: break-all;
}

.resend-link {
    color: var(--primary-color);
    cursor: pointer;
    text-decoration: underline;
    margin-top: 20px;
    display: inline-block;
}

.resend-link:hover {
    text-decoration: none;
}

/* Réactivité */
@media (max-width: 1200px) {
    .banner-title {
        font-size: 3rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    }
}

@media (max-width: 992px) {
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-description {
        font-size: 1.1rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 15px;
    }
    
    .upload-section {
        padding: 30px 20px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 20px;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu-toggle {
        display: block;
        background: none;
        border: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    }
    
    .footer-content {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 576px) {
    .hero-banner {
        height: 70vh;
        min-height: 400px;
    }
    
    .banner-title {
        font-size: 1.75rem;
    }
    
    .content-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 10px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
    }
    
    .upload-section {
        padding: 20px 15px;
    }
    
    .section-title {
        font-size: 1.25rem;
    }
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-button {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.search-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.login-button {
    background-color: #e50914;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s;
}

.login-button:hover {
    background-color: #f40612;
}

.navbar-profile {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background-color 0.3s;
}

.navbar-profile:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.navbar-username {
    font-size: 0.9rem;
    font-weight: 500;
}

.profile-dropdown {
    display: none;
    position: absolute;
    top: 55px;
    right: 20px;
    background-color: rgba(0, 0, 0, 0.9);
    border: 1px solid #333;
    border-radius: 4px;
    min-width: 200px;
    z-index: 1000;
    overflow: hidden;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.5);
}

.profile-dropdown.show {
    display: block;
}

.profile-header {
    padding: 15px;
    border-bottom: 1px solid #333;
}

.profile-email {
    font-size: 0.8rem;
    color: #b3b3b3;
    margin-top: 4px;
}

.profile-dropdown a {
    display: block;
    padding: 12px 15px;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.3s;
}

.profile-dropdown a:hover {
    background-color: #333;
}

.profile-dropdown .divider {
    height: 1px;
    background-color: #333;
    margin: 5px 0;
}

.profile-dropdown a.logout {
    color: #e50914;
    font-weight: 500;
}

.profile-dropdown a.logout:hover {
    color: #fff;
    background-color: #e50914;
}

/* Bannière principale */
.banner {
    position: relative;
    height: 100vh;
    min-height: 600px;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.7) 0%,
        rgba(0, 0, 0, 0.2) 40%,
        rgba(0, 0, 0, 0.2) 75%,
        rgba(0, 0, 0, 0.9) 100%
    ), url('https://assets.nflxext.com/ffe/siteui/vlv3/5ea364b1-8e59-4693-8ad8-f0eaee32d1bf/5a9d3d5c-0a7a-420e-a7b7-55a480f4fb4e/FR-fr-20220530-popsignuptwoweeks-perspective_alpha_website_small.jpg') no-repeat center center/cover;
    display: flex;
    align-items: center;
    padding: 0 4%;
    margin-bottom: 0;
    margin-top: -68px; /* Pour compenser la hauteur de la navbar */
}

.banner-contents {
    max-width: 600px;
    z-index: 1;
}

.banner-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-description {
    font-size: 1.2rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
}

.banner-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.banner-button {
    padding: 0.8rem 2rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
}

.banner-button i {
    font-size: 1.2rem;
}

.banner-button:first-child {
    background-color: var(--netflix-white);
    color: var(--netflix-black);
}

.banner-button:first-child:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.banner-button:last-child {
    background-color: rgba(109, 109, 110, 0.7);
    color: var(--netflix-white);
}

.banner-button:last-child:hover {
    background-color: rgba(109, 109, 110, 0.5);
}

.banner-fade-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
}

/* Navigation secondaire */
.secondary-nav {
    display: flex;
    padding: 1rem 4%;
    background-color: #141414;
    border-bottom: 1px solid #333;
    gap: 1.5rem;
    position: sticky;
    top: 68px; /* Hauteur de la navbar */
    z-index: 900;
}

.nav-tab {
    background: none;
    border: none;
    color: #e5e5e5;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.nav-tab:hover {
    color: #b3b3b3;
}

.nav-tab.active {
    color: #fff;
    font-weight: 600;
}

.nav-tab.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: #e50914;
}

/* Contenu des onglets */
.tab-content {
    padding: 2rem 4%;
    background-color: #141414;
    min-height: 60vh;
    display: none; /* Caché par défaut */
}

.tab-content.active {
    display: block; /* Afficher l'onglet actif */
}

/* Conteneur principal */
main {
    margin-top: 68px; /* Éviter que le contenu soit caché sous la navbar fixe */
}

/* Section de téléchargement */
.upload-section {
    padding: 2rem 4%;
    margin-bottom: 2rem;
}

.section-title {
    font-size: 1.8rem;
    margin-bottom: 1.5rem;
    color: var(--netflix-white);
}

.upload-container {
    background-color: var(--netflix-dark);
    border-radius: 8px;
    padding: 2rem;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.upload-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-weight: 500;
    color: var(--netflix-light-gray);
}

.form-control {
    padding: 0.8rem 1rem;
    border: 1px solid #444;
    border-radius: 4px;
    background-color: #333;
    color: var(--netflix-white);
    font-size: 1rem;
    transition: border-color 0.3s;
}

.form-control:focus {
    border-color: var(--netflix-red);
    outline: none;
}

.file-upload {
    border: 2px dashed #444;
    border-radius: 8px;
    padding: 2.5rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 1rem 0;
    background-color: rgba(255, 255, 255, 0.03);
}

.file-upload:hover {
    border-color: #e50914;
    background-color: rgba(229, 9, 20, 0.05);
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    color: #e5e5e5;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.file-label i {
    font-size: 2.2rem;
    color: #e50914;
    transition: all 0.3s ease;
}

.file-upload:hover .file-label i {
    transform: scale(1.1);
}

.file-name {
    margin-top: 0.8rem;
    font-size: 0.85rem;
    color: #999;
    word-break: break-all;
    max-width: 100%;
    padding: 0 10px;
}

.file-upload:hover {
    border-color: var(--netflix-red);
    background-color: rgba(229, 9, 20, 0.1);
}

.file-input {
    display: none;
}

.file-label {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    color: var(--netflix-light-gray);
    font-size: 1.1rem;
}

.file-label i {
    font-size: 2.5rem;
    color: var(--netflix-red);
}

.file-name {
    margin-top: 1rem;
    font-size: 0.9rem;
    color: var(--netflix-gray);
}

.upload-button {
    background-color: var(--netflix-red);
    color: white;
    padding: 0.8rem 1.5rem;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    margin-top: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.upload-button:hover {
    background-color: #f40612;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(229, 9, 20, 0.4);
}

.upload-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.upload-button i {
    font-size: 1.2rem;
}

.upload-button:hover {
    background-color: #f40612;
}

.upload-button i {
    font-size: 1.2rem;
}

.upload-progress {
    margin: 1.5rem 0;
    background-color: rgba(51, 51, 51, 0.5);
    border-radius: 10px;
    height: 8px;
    position: relative;
    overflow: hidden;
    display: none;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.3);
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e50914 0%, #f5c518 100%);
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.progress-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0%,
        rgba(255, 255, 255, 0.6) 30%,
        rgba(255, 255, 255, 0.6) 70%,
        rgba(255, 255, 255, 0) 100%
    );
    animation: progressShine 2s infinite linear;
    transform: translateX(-100%);
}

@keyframes progressShine {
    100% {
        transform: translateX(100%);
    }
}

.progress-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: 600;
    font-size: 0.8rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    white-space: nowrap;
}

/* Section des vidéos */
.videos-section {
    padding: 0 4% 4rem;
}

.videos-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.video-item {
    background-color: var(--netflix-dark);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
    cursor: pointer;
}

.video-item:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.video-thumbnail {
width: 100%;
height: 0;
padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
background-size: cover;
background-position: center;
position: relative;
}

.play-button {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 70px;
height: 70px;
background-color: rgba(20, 20, 20, 0.9);
border: 2px solid rgba(255, 255, 255, 0.9);
border-radius: 50%;
display: flex;
align-items: center;
justify-content: center;
opacity: 0;
transition: all 0.3s ease;
cursor: pointer;
}

.video-item:hover .play-button {
opacity: 1;
}

.play-button i {
    color: white;
    font-size: 1.5rem;
    margin-left: 5px;
}

.video-item h3 {
    padding: 1rem;
    font-size: 1.1rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.video-item p {
    padding: 0 1rem 1rem;
    color: var(--netflix-gray);
    font-size: 0.9rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.no-videos {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--netflix-gray);
}

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

/* Modal de lecture vidéo */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.video-modal.show {
    opacity: 1;
}

.video-modal-content {
    width: 80%;
    max-width: 1200px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--netflix-red);
}

#video-player {
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    background-color: #000;
}

.video-info {
    padding: 1.5rem 0;
}

.video-info h2 {
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

/* Footer */
.footer {
    background-color: var(--netflix-dark);
    padding: 3rem 4% 2rem;
    color: var(--netflix-gray);
    font-size: 0.9rem;
}

.footer-content {
    max-width: 1000px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.footer-links a {
    color: var(--netflix-gray);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    text-decoration: underline;
    color: var(--netflix-light-gray);
}

.footer-button {
    margin: 1.5rem 0;
}

.service-code {
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--netflix-gray);
    color: var(--netflix-gray);
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.service-code:hover {
    color: var(--netflix-light-gray);
    border-color: var(--netflix-light-gray);
}

.copyright {
    margin-top: 1.5rem;
    font-size: 0.8rem;
}

/* Responsive */
@media (max-width: 1024px) {
    .banner {
        min-height: 500px;
        height: 80vh;
    }
    
    .banner-contents {
        max-width: 100%;
    }
    
    .banner-title {
        font-size: 3rem !important;
    }
}

@media (max-width: 768px) {
    .banner {
        min-height: 400px;
        height: 70vh;
    }
    
    .banner-title {
        font-size: 2.5rem !important;
    }
    
    .banner-description {
        font-size: 1rem !important;
    }
    
    .banner-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .banner-button {
        margin-bottom: 10px;
        width: 100%;
        text-align: center;
    }
    
    .navbar {
        padding: 10px 4%;
    }
    
    .nav-links {
        display: none;
    }
    
    .search-box {
        display: none;
    }
    
    .banner-title {
        font-size: 2.5rem;
    }
    
    .banner-description {
        font-size: 1rem;
    }
    
    .banner-buttons {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .banner-button {
        width: 100%;
        justify-content: center;
    }
    
    .videos-container {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .navbar-right {
        display: none;
    }
}

@media (max-width: 480px) {
    .banner {
        height: 50vh;
    }
    
    .banner-title {
        font-size: 2rem;
    }
    
    .videos-container {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    
    .upload-container {
        padding: 1rem;
    }
}

/* Styles pour les modales d'authentification */
.auth-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.auth-modal.show {
    display: flex;
}

.auth-modal-content {
    background-color: #181818;
    padding: 2rem;
    border-radius: 8px;
    width: 100%;
    max-width: 450px;
    color: #fff;
    position: relative;
}

.auth-modal h2 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    color: #fff;
}

.close-auth-modal {
    position: absolute;
    top: 1rem;
    right: 1.5rem;
    font-size: 1.8rem;
    cursor: pointer;
    color: #fff;
}

.close-auth-modal:hover {
    color: #e50914;
}

.auth-modal .form-group {
    margin-bottom: 1rem;
}

.auth-modal label {
    display: block;
    margin-bottom: 0.5rem;
    color: #8c8c8c;
}

.auth-modal input[type="email"],
.auth-modal input[type="password"],
.auth-modal input[type="text"] {
    width: 100%;
    padding: 0.8rem;
    background-color: #333;
    border: 1px solid #333;
    border-radius: 4px;
    color: #fff;
    font-size: 1rem;
}

.auth-modal input[type="file"] {
    width: 100%;
    color: #fff;
    padding: 0.5rem 0;
}

.auth-modal .btn-primary {
    width: 100%;
    padding: 0.8rem;
    background-color: #e50914;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1rem;
}

.auth-modal .btn-primary:hover {
    background-color: #f40612;
}

.auth-modal p {
    text-align: center;
    margin-top: 1rem;
    color: #8c8c8c;
}

.auth-modal a {
    color: #fff;
    text-decoration: none;
}

.auth-modal a:hover {
    text-decoration: underline;
}

/* Menu déroulant du profil */
.profile-dropdown {
    display: none;
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #181818;
    border: 1px solid #333;
    border-radius: 4px;
    width: 200px;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.profile-dropdown.show {
    display: block;
}

.profile-info {
    display: flex;
    align-items: center;
    padding: 1rem;
    border-bottom: 1px solid #333;
}

#profile-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    object-fit: cover;
}

#profile-username {
    font-weight: bold;
    color: #fff;
}

#profile-email {
    font-size: 0.8rem;
    color: #8c8c8c;
}

.profile-dropdown a {
    display: block;
    padding: 0.8rem 1rem;
    color: #fff;
    text-decoration: none;
    transition: background-color 0.2s;
}

.profile-dropdown a:hover {
    background-color: #333;
    text-decoration: none;
}

.profile-dropdown hr {
    border: none;
    border-top: 1px solid #333;
    margin: 0;
}

/* Style pour le profil utilisateur dans la navbar */
.navbar-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.navbar-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 10px;
}

/* Styles pour le bouton de connexion */
.login-button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px 20px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #f40612;
}
