/* Styles globaux */
body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f9;
    color: #333;
    line-height: 1.6;
}

/* Contenu principal */
.content {
    max-width: 600px;
    margin: 50px auto;
    text-align: center;
    padding: 20px;
}

/* Container Mon Compte */
.account-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

/* Container Gestion des utilisateurs */
.user-management-container {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

h1 {
    font-size: 28px;
    color: #444;
    margin-bottom: 20px;
}

h2 {
    font-size: 24px;
    color: #444;
    margin-bottom: 15px;
}

p {
    font-size: 18px;
    margin-bottom: 30px;
    color: #555;
}

/* Bouton de déconnexion */
.logout-btn {
    background-color: #ff4d4d;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 16px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.logout-btn:hover {
    background-color: #e60000;
}

/* Bouton gestion utilisateurs */
.btn {
    display: inline-block;
    background-color: #007bff;
    color: white;
    padding: 12px 24px;
    font-size: 16px;
    border-radius: 5px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn:hover {
    background-color: #0056b3;
}

.btn-restricted {
    opacity: 0.95;
    background: linear-gradient(135deg, #6c757d, #495057);
}

.btn-restricted:hover {
    background: linear-gradient(135deg, #5b646d, #3f464d);
}

.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 16px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.modal-overlay.is-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-card {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    padding: 24px 20px;
    text-align: center;
    transform: translateY(8px) scale(0.98);
    transition: transform 0.18s ease;
}

.modal-overlay.is-open .modal-card {
    transform: translateY(0) scale(1);
}

.modal-card h3 {
    margin-top: 0;
    margin-bottom: 10px;
    color: #444;
}

.modal-card p {
    margin-bottom: 16px;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    color: #555;
}

.modal-actions {
    display: flex;
    justify-content: center;
}

.modal-open {
    overflow: hidden;
}