/* Corps de la page */
body {
    font-family: Arial, sans-serif;
    background-color: #121212;
    color: #fff;
    margin: 0;
    padding: 0;
}

/* Header */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background-color: #1a1a1a;
}

header .logo {
    font-size: 24px;
    color: #a755ff;
}

/* Nav links */
header nav a {
    margin: 0 10px;
    color: #fff;
    text-decoration: none;
}

/* Boutons dans la barre de navigation */
header .user-actions button {
    margin-left: 10px;
    background: none;
    border: 1px solid #fff;
    color: #fff;
    padding: 5px 10px;
    cursor: pointer;
}

/* Icône de compte (🚪) comme bouton rectangulaire à côté de la loupe */
.account-btn {
    font-size: 20px;  /* Taille de l'icône */
    color: white;  /* Couleur de l'icône */
    text-decoration: none;  /* Supprimer le soulignement */
    background-color: #444;  /* Fond sombre */
    border: 1px solid #fff;  /* Bordure blanche */
    padding: 8px 15px;  /* Padding pour un aspect rectangulaire */
    border-radius: 5px;  /* Coins légèrement arrondis */
    margin-left: 10px;  /* Espacement entre la loupe et le bouton */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s, border-color 0.3s;
}

/* Effet de survol pour le bouton 🚪 */
.account-btn:hover {
    background-color: #555;  /* Fond un peu plus clair */
    border-color: #e50914;  /* Bordure rouge */
}

/* Bannière */
.banner {
    position: relative;
    height: 400px;
    background-color: #000;
}

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

.banner .overlay {
    position: absolute;
    top: 50%;
    left: 20px;
    transform: translateY(-50%);
}

.banner h1 {
    font-size: 48px;
    color: #fff;
}

/* Section des films tendance */
.trending {
    padding: 20px;
}

.trending h2 {
    margin-bottom: 10px;
}

.movies {
    display: flex;
    gap: 10px;
}

.movie img {
    width: 150px;
    height: 200px;
    border-radius: 5px;
    object-fit: cover;
}

/* Page d'authentification */
.auth-page {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: linear-gradient(to right, #141e30, #243b55);
}

.auth-container {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    width: 100%;
    max-width: 400px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    animation: fadeIn 1s ease-in-out;
}

.auth-title {
    font-size: 2rem;
    margin-bottom: 20px;
}

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

.auth-form input {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    font-size: 1rem;
}

.auth-form input::placeholder {
    color: #ccc;
}

.auth-button {
    width: 100%;
    padding: 10px;
    background: #e50914;
    color: white;
    font-size: 1.2rem;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.auth-button:hover {
    background: #b20710;
}

.auth-footer {
    margin-top: 15px;
    font-size: 0.9rem;
}

.auth-footer a {
    color: #e50914;
    text-decoration: none;
}

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

.error {
    color: #ff4c4c;
    margin-bottom: 15px;
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Bouton Revenir à l'accueil */
.back-home-btn {
    margin-top: 20px;
    display: inline-block;
    background: #007BFF;
    color: white;
    padding: 10px 20px;
    border-radius: 25px;
    text-align: center;
    text-decoration: none;
    font-size: 1rem;
    font-weight: bold;
    transition: all 0.3s ease-in-out;
}

.back-home-btn:hover {
    background: transparent;
    color: #007BFF;
    border: 2px solid #007BFF;
}
