body {
    margin: 0;
    font-family: Arial, sans-serif;
    background: #eee;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #222;
    padding: 10px 20px;
    color: white;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links button,.nav-links a button,.nav-links a {
    background: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
    text-align: center;
}

nav ul {
    display: flex; /* active le mode flexbox */
    list-style: none;
    margin: 0;
    padding: 0;
    background-color: #333;
}

nav ul li {
    margin-right: 20px;
}

nav ul li a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: white;
}

button {
    background-color: #333;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
}

nav ul li a:hover {
    background-color: #555;
}

.nav-links .active {
    background: #888;
}

.auth-buttons {
    display: flex;
    align-items: center; 
    gap: 10px;
}

/* Style des boutons de connexion uniformisé */
.auth-buttons button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: #333;
    color: white;
    width: 100%;
    text-align: center;
}

.auth-buttons .register {
    background: #00aaff;
    color: white;
}

.auth-buttons img {
    width: 35px;
    height: 35px; 
    object-fit: cover; 
    border-radius: 50%;
}

.container {
    display: flex;
    gap: 10px;
    padding: 20px;
}

.card {
    flex: 1;
    background: white;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.card img {
    width: 100%;
    height: 300px;
    max-width: 200px;
    background: lightgray;
    cursor: pointer;
}


/* Media Queries pour accueil.css */
@media screen and (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 10px;
    }

    .nav-links {
        flex-direction: column;
        width: 100%;
        align-items: center;
        gap: 10px;
        margin-bottom: 10px;
    }

    .nav-links button {
        width: 100%;
        text-align: center;
    }

    .auth-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
        gap: 10px;
        margin-bottom: 10px;
    }
    .auth-buttons button {
        width: 100%; 
        text-align: center;
    }

    .container {
        flex-direction: column;
        padding: 10px;
    }

    .card {
        margin-bottom: 15px;
    }

    .card img {
        max-width: 100%;
        height: auto;
    }
    .popup {
        width: 90%;
        max-width: 350px;
        height: auto;
    }
}
.camera-box video {
    width: 100%;
    max-height: 300px;
    border: 2px solid #ddd;
    border-radius: 10px;
    margin-bottom: 1em;
  }
  .avatar-box img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid #ccc;
    margin-bottom: 1em;
  }
  .popup {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    width: 400px;
    height: 600px;
    padding: 20px;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    display: none; /* La popup est cachée par défaut */
    z-index: 1000;
}
  
.popup-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
  
.close-button {
    cursor: pointer;
    font-size: 20px;
    align-self: flex-end;
}

/* Style pour les boutons dans la popup */
.popup-content button {
    padding: 10px 15px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
/* Uniformisation des boutons dans la navbar et auth-buttons */
.navbar button,
.navbar a button,
.nav-links button,
.nav-links a button,
.auth-buttons button {
    min-width: 120px;
    max-width: 180px;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 15px;
    font-size: 16px;
    border-radius: 5px;
    background: #333;
    color: white;
    border: none;
    cursor: pointer;
    text-align: center;
    transition: background 0.2s, color 0.2s;
}

.navbar .register,
.auth-buttons .register {
    background: #00aaff;
    color: white;
}

.navbar button.active,
.nav-links .active {
    background: #888;
    color: white;
}

.navbar button:disabled,
.auth-buttons button:disabled {
    background: #ccc;
    color: #888;
    cursor: not-allowed;
}
#logged {
    display: none;
}
#unlogged {
    display: none;
}
body.logged #logged {
    display: flex !important;
}
body.logged #unlogged {
    display: none !important;
}
body.unlogged #logged {
    display: none !important;
}
body.unlogged #unlogged {
    display: flex !important;
}
@media (max-width: 600px) {
    .navbar button,
    .navbar a button,
    .nav-links button,
    .nav-links a button,
    .auth-buttons button {
        min-width: 100px;
        font-size: 14px;
        padding: 8px 10px;
    }
}