* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
}

/* Bannière */
.banner {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    padding: 40px 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.banner-content h1 {
    color: #fff;
    font-size: 3em;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.banner-content p {
    color: #b0d4ff;
    font-size: 1.2em;
}

/* Navigation */
.navbar {
    background-color: #0d0d0d;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-menu {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-menu .nav-right {
    margin-left: auto;
}

.nav-menu li {
    position: relative;
}

.nav-menu a {
    display: block;
    padding: 15px 25px;
    color: #e0e0e0;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-menu a:hover {
    background-color: #2a5298;
    color: #fff;
}

/* Menu déroulant */
.dropdown {
    position: relative;
}

.dropdown-menu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #0d0d0d;
    min-width: 200px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dropdown:hover .dropdown-menu {
    max-height: 500px;
}

.dropdown-menu li {
    width: 100%;
}

.dropdown-menu a {
    padding: 12px 25px;
    border-left: 3px solid transparent;
}

.dropdown-menu a:hover {
    background-color: #1e3c72;
    border-left-color: #2a5298;
}

/* Contenu principal */
.container {
    max-width: 1000px;
    margin: 40px auto;
    padding: 0 20px;
}

.content {
    background-color: #262626;
    padding: 30px;
    border-radius: 8px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.content h2 {
    color: #2a5298;
    margin-bottom: 15px;
    font-size: 2em;
}

.content p {
    margin-bottom: 10px;
}

.home-guest-image {
    display: block;
    width: min(100%, 806px);
    height: 504px;
    margin: 20px auto 0;
    border-radius: 8px;
    object-fit: cover;
}

/* Section membre */
.member-section {
    border: 2px solid #2a5298;
    background: linear-gradient(135deg, #262626 0%, #1e3c72 100%);
}

.member-section h2 {
    color: #b0d4ff;
}

.member-section p {
    font-size: 1.1em;
    color: #b0d4ff;
    margin-bottom: 25px;
}

/* Onglets */
.member-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 25px;
    flex-wrap: wrap;
}

.tab-button {
    padding: 12px 25px;
    background-color: #0d0d0d;
    color: #e0e0e0;
    border: 2px solid #2a5298;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 1em;
}

.tab-button:hover {
    background-color: #2a5298;
    color: #fff;
}

.tab-button.active {
    background-color: #2a5298;
    color: #fff;
    border-color: #b0d4ff;
}

.tab-content {
    display: none;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.2);
    border-radius: 5px;
    margin-bottom: 20px;
}

.tab-content.active {
    display: block;
}

.tab-content h3 {
    color: #b0d4ff;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.tab-content ul {
    list-style: none;
    padding-left: 0;
}

.tab-content li {
    padding: 10px 15px;
    margin-bottom: 8px;
    background-color: rgba(42, 82, 152, 0.2);
    border-left: 3px solid #2a5298;
    color: #e0e0e0;
    border-radius: 3px;
}

.tab-content a {
    color: #b0d4ff;
    text-decoration: none;
    transition: color 0.3s ease;
}

.tab-content a:hover {
    color: #fff;
    text-decoration: underline;
}

#profile-info p {
    padding: 8px 0;
    color: #e0e0e0;
    line-height: 1.8;
}

#profile-info strong {
    color: #b0d4ff;
}


.logout-btn {
    margin-top: 20px;
    padding: 10px 25px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

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

/* Modal */
.modal {
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background-color: #262626;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
    max-width: 400px;
    width: 90%;
    border: 2px solid #2a5298;
}

.modal-content h2 {
    color: #2a5298;
    margin-bottom: 20px;
    text-align: center;
}

.modal-content form {
    display: flex;
    flex-direction: column;
}

.modal-content label {
    color: #b0d4ff;
    margin-top: 15px;
    margin-bottom: 5px;
    font-weight: 500;
}

.modal-content input {
    padding: 10px;
    border: 1px solid #2a5298;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 1em;
}

.modal-content input:focus {
    outline: none;
    border-color: #b0d4ff;
    box-shadow: 0 0 5px rgba(42, 82, 152, 0.3);
}

.modal-content button {
    margin-top: 20px;
    padding: 12px;
    background-color: #2a5298;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.modal-content button:hover {
    background-color: #1e3c72;
}

.demo-info {
    margin-top: 20px;
    padding: 15px;
    background-color: #1a1a1a;
    border-left: 3px solid #2a5298;
    font-size: 0.9em;
    color: #b0d4ff;
    border-radius: 4px;
}

.close {
    color: #e0e0e0;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close:hover,
.close:focus {
    color: #b0d4ff;
}

/* Utility */
.hidden {
    display: none !important;
}

/* Footer */
.footer {
    background-color: #0d0d0d;
    text-align: center;
    padding: 20px;
    margin-top: 50px;
    border-top: 1px solid #2a5298;
    color: #888;
}

/* Responsive */
@media (max-width: 768px) {
    .banner-content h1 {
        font-size: 2em;
    }

    .nav-menu {
        flex-direction: column;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a {
        padding: 12px 15px;
    }

    .dropdown-menu {
        position: static;
        max-height: none;
        box-shadow: none;
        background-color: #1a1a1a;
    }

    .dropdown:hover .dropdown-menu {
        max-height: none;
    }

    .dropdown-menu a {
        padding-left: 40px;
    }

    .content {
        padding: 20px;
    }

    .modal-content {
        width: 95%;
    }
}

/* Formulaires */
.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    color: #b0d4ff;
    margin-bottom: 5px;
    font-weight: 500;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 10px;
    border: 1px solid #2a5298;
    border-radius: 4px;
    background-color: #1a1a1a;
    color: #e0e0e0;
    font-size: 1em;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: #b0d4ff;
    box-shadow: 0 0 5px rgba(42, 82, 152, 0.3);
}

.btn-submit {
    padding: 12px 25px;
    background-color: #2a5298;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-submit:hover {
    background-color: #1e3c72;
}

/* Tableau des utilisateurs */
.users-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 20px;
}

.users-table th {
    background-color: #1e3c72;
    color: #b0d4ff;
    padding: 12px;
    text-align: left;
    border-bottom: 2px solid #2a5298;
}

.users-table td {
    padding: 12px;
    border-bottom: 1px solid #2a5298;
    color: #e0e0e0;
}

.users-table tr:hover {
    background-color: rgba(42, 82, 152, 0.2);
}

.btn-delete {
    padding: 6px 12px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
}

.btn-delete:hover {
    background-color: #b71c1c;
}

.edit-btn {
    padding: 6px 12px;
    background-color: #2a5298;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    margin-right: 5px;
}

.edit-btn:hover {
    background-color: #1e3c72;
}

.btn-refresh {
    padding: 4px 8px;
    background-color: #455a64;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.78em;
    transition: background-color 0.3s ease;
    margin-left: 5px;
}

.btn-refresh:hover {
    background-color: #37474f;
}

/* Historique des vols */
.flight-item {
    padding: 15px;
    margin-bottom: 10px;
    background-color: rgba(42, 82, 152, 0.2);
    border-left: 3px solid #2a5298;
    border-radius: 3px;
}

.flight-item h5 {
    color: #b0d4ff;
    margin-bottom: 8px;
}

.flight-item p {
    margin: 5px 0;
    color: #e0e0e0;
}

.flight-item .delete-btn {
    margin-top: 10px;
    padding: 6px 12px;
    background-color: #d32f2f;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 0.85em;
    transition: background-color 0.3s ease;
}

.flight-item .delete-btn:hover {
    background-color: #b71c1c;
}

.special-event-box {
    margin-top: 18px;
    margin-bottom: 18px;
    padding: 14px;
    border-radius: 6px;
    border: 1px solid rgba(176, 212, 255, 0.35);
    background: rgba(42, 82, 152, 0.12);
}

.special-event-box h4 {
    margin-bottom: 12px;
    color: #b0d4ff;
}

.member-checkbox-list {
    max-height: 180px;
    overflow-y: auto;
    border: 1px solid rgba(176, 212, 255, 0.35);
    border-radius: 4px;
    padding: 8px;
    background: rgba(0, 0, 0, 0.18);
}

.member-checkbox-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 6px 0;
    color: #e0e0e0;
}

.flight-item.special-event-item {
    border-left-color: #ffb74d;
    background-color: rgba(255, 183, 77, 0.15);
}

.history-filters {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.history-summary {
    margin: 4px 0 10px;
    color: #b0d4ff;
    font-size: 0.95em;
}

/* Masquer/afficher éléments selon le rôle */
.hidden-for-user {
    display: none;
}

.hidden-for-admin {
    display: none;
}

.show-for-user .hidden-for-user {
    display: none;
}

.show-for-user .hidden-for-admin {
    display: flex;
}

.show-for-admin .hidden-for-user {
    display: flex;
}

.show-for-admin .hidden-for-admin {
    display: none;
}
