html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url("/images/disco-bg.jpg") no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white; /* ou une couleur contrastante selon l'image */
}

/* Pour rendre le fond plus “doux” si l’image est très vive */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* noir semi transparent */
    z-index: -1;
}

.navbar {
    background-color: #005bb5;
    color: white;
    padding: 10px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

/* Le bloc utilisateur à droite */
.nav-user {
    display: flex;
    align-items: center;
    color: white;
    font-weight: 500;
    margin-left: 20px;
}

.nav-user i {
    font-size: 24px;
    margin-right: 8px;
}

.nav-logo {
    font-size: 20px;
    font-weight: bold;
    color: white;
    text-decoration: none;
}

.nav-links a {
    margin-left: 20px;
    color: white;
    text-decoration: none;
    font-weight: 500;
}

.nav-links a:hover {
    text-decoration: underline;
}

/* Cacher le bouton hamburger par défaut */
.nav-toggle {
    display: none;
    font-size: 28px;
    background: none;
    border: none;
    color: white;
    cursor: pointer;
}

/* Responsive */
@media (max-width: 600px) {
    .nav-links {
        display: none;
        flex-direction: column;
        background-color: #005bb5;
        position: absolute;
        top: 55px;
        right: 20px;
        border-radius: 8px;
        width: 150px;
        padding: 10px 0;
        box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
    }

    .nav-links a {
        margin: 10px 0;
        padding: 10px 20px;
    }

    .nav-toggle {
        display: block;
    }

    .nav-links.show {
        display: flex;
    }
}

/* Responsive : cacher le nom utilisateur, garder icône seule */
@media (max-width: 600px) {
    .nav-user span {
        display: none;
    }
}

.form-container {
    max-width: 500px;
    margin: 80px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

input,
button {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
}

button {
    background: #0066cc;
    color: white;
    border: none;
    cursor: pointer;
}

button:hover {
    background: #005bb5;
}

.dashboard {
    max-width: 800px;
    margin: 60px auto;
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.1);
}

.dashboard h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
}

.user-list {
    list-style: none;
    padding: 0;
}

.user-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #ddd;
}

.user-item i.fa-user {
    margin-right: 8px;
    color: #555;
}

.logout-btn {
    display: inline-block;
    margin-top: 30px;
    background-color: #b92d2d;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 6px;
}

.logout-btn:hover {
    background-color: #991f1f;
}

.nav-user-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 20px;
}

.user-icon {
    background: none;
    border: none;
    color: white;
    font-size: 26px;
    cursor: pointer;
}

.dropdown-menu {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    color: #333;
    min-width: 180px;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    padding: 10px 0;
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.dropdown-menu a:hover {
    background-color: #f5f5f5;
}

.dropdown-username {
    padding: 10px 20px;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
}

.nav-user-dropdown.open .dropdown-menu {
    display: block;
}

.confirmation-container {
    background-color: #fff;
    padding: 40px 30px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    max-width: 600px;
    width: 100%;
    color: black;
}

.confirmation-container h1 {
    color: #28a745;
    margin-bottom: 15px;
}

.confirmation-container p {
    font-size: 18px;
    margin-bottom: 30px;
}

.return-button {
    display: inline-block;
    padding: 12px 20px;
    background-color: #007bff;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    font-size:18px;
    transition: background-color 0.3s ease;
}

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