/* Police globale */
body, td, th, a, select, button, input {
    font-family: 'ProtoGrotesk', sans-serif;
}

/* Général */
body {
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
}

/* Header Sticky */
.menu-bar {
    position: sticky;
    top: 0;
    background-color: #0078d7;
    padding: 10px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    z-index: 1000;
}

.menu-button, .menu-select {
    background: white;
    color: #0078d7;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
}

/* Menu déroulant */
.menu-select {
    font-family: 'ProtoGrotesk', sans-serif;
}

/* Liens salle */
.table-container a {
    text-decoration: none;
    color: inherit;
    font-weight: 600;
}

.table-container a:visited {
    color: inherit;
}

/* Tableaux */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

th, td {
    padding: 12px 15px;
    border: 1px solid #ddd;
    text-align: left;
    vertical-align: middle;
}

/* Hover lignes */
table tbody tr:hover {
    background-color: #e6f0ff;
}

/* Pastilles */
.status-dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}

.status-dot.green {
    background-color: #28a745;
}

.status-dot.orange {
    background-color: #fd7e14;
}

.status-dot.red {
    background-color: #dc3545;
}

.status-dot.grey {
    background-color: #6c757d;
}

/* Scroll haut */
.scroll-top-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    padding: 12px;
    border: none;
    border-radius: 50%;
    background-color: #0078d7;
    color: white;
    font-size: 18px;
    cursor: pointer;
    z-index: 1000;
}

/* Spinner (chargement) */
#spinner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

#spinner::after {
    content: "";
    width: 40px;
    height: 40px;
    border: 5px solid #0078d7;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive mobile */
@media screen and (max-width: 768px) {
    .menu-bar {
        flex-direction: column;
        align-items: center;
    }

    table {
        font-size: 14px;
    }
}
