/* Réinitialisation des marges et du padding */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    height: 100%;
    font-family: 'Poppins', sans-serif;
    overflow: hidden; /* Empêche le défilement */
}

.header {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden; /* Cache le débordement éventuel de la vidéo */
}

/* Vidéo en arrière-plan */
.background-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    overflow: hidden;
}

.background-video video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
}

/* Overlay semi-transparent sur la vidéo */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.587); /* Couleur noire avec 60% d'opacité */
    z-index: 2; /* Superposé sur la vidéo */
}

/* Logo dans le coin */
.logo {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 4; /* Superposé sur l'overlay */
}

.logo img {
    height: 70px;
}

/* Menu dans le coin droit */
.menu {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 4; /* Superposé sur l'overlay */
}

.menu ul {
    list-style: none;
    display: flex;
    gap: 20px;
}

.menu ul li a {
    text-decoration: none;
    color: white;
    font-weight: bold;
    font-size: 16px;
    transition: color 0.3s ease;
}

.menu ul li a:hover {
    color: #ffdd57;
}

/* Formulaire de connexion centré */
.login-form {
    position: relative;
    z-index: 5; /* Superposé sur l'overlay */
    background-color: rgba(0, 0, 0, 0.26); /* Fond blanc avec un peu de transparence */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(54, 53, 53, 0.2);
    width: 350px;
    text-align: center;
}

.login-form h2 {
    margin-bottom: 20px;
    color: #ffffff;
    font-weight: 600;
}

.login-form input {
    width: 100%;
    padding: 12px;
    margin: 15px 0;
    border: none;
    border-radius: 5px;
    background-color: #f1f1f1;
    font-size: 16px;
}

.login-form input:focus {
    outline: none;
    box-shadow: 0 0 5px rgba(0, 123, 255, 0.5);
}

.login-form button {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #007bff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.login-form button:hover {
    background-color: #0056b3;
}

/* Responsive design pour petits écrans */
@media (max-width: 768px) {
    .login-form {
        width: 90%;
    }

    .menu ul {
        flex-direction: column;
        gap: 10px;
    }
}
