:root {
    --primary-bg: #8c6d59;
    --primary-bg-alt: rgb(232, 217, 177);
    --primary-border: #e3d39f;
    --default-border-radius: 8px;
}

body {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    margin: 0;
    min-height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    background-color: var(--primary-bg-alt);
}

label {
    display: block;
    margin-bottom: 10px;
}

.formConnexion {
    margin: 12px 0;
}

.titreBoite {
    text-align: center;
    background-color: var(--primary-bg);
    border: 2px solid var(--primary-border);
    border-radius: 8px;
    color: white;
}

.button-bold {
    background-color: antiquewhite;
    border-color: var(--primary-border);
    color: black;
    text-align: center;
    display: inline-block;
    font-weight: bold;
    border-radius: var(--default-border-radius);
    box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    padding: 0 8px 0 8px;
    margin: 4px;
}

.form-check-label {
    font-weight: bold;
}

.textInput {
    background-color: antiquewhite;
    border: 2px solid var(--primary-border);
    border-radius: var(--default-border-radius);
    color: black;
    display: inline-block;
}

.textLabel {
    color: var(--primary-bg);
    font-weight: bold;
}

header, footer {
    margin-top: auto;
    background-color: var(--primary-bg);
    color: var(--primary-border);
    text-align: center;
    font-size: 18px;
}

#header_message_zone {
    min-height: 1em;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: 500;
}

#g_headerHTML {
    transition: opacity 0.3s ease;
}
.joueurs-en-ligne-container,
.plateaux-globaux-container {
    position: static !important;
    width: 100%;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
}

.joueurs-en-ligne-container {
    max-height: 38vh;
    display: flex;
    flex-direction: column;
    z-index: auto;
}

.plateaux-globaux-container {
    max-height: 38vh;
    display: flex;
    flex-direction: column;
}
.joueurs-en-ligne-container ul,
#liste_plateaux_globaux {
    overflow-y: auto;
    flex-grow: 1;
    margin-bottom: 0;
}

.header-joueurs {
    background-color: #f8f9fa;
    padding: 10px;
    font-weight: bold;
    border-bottom: 1px solid #dee2e6;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    text-align: center;
}

.joueurs-en-ligne-container {
    width: 100%;
    max-height: 80vh;
    background-color: white;
    border: 1px solid #dee2e6;
    border-radius: 8px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
}
.status-indicator {
    display: inline-block;
    width: 10px;
    height: 10px;
    background-color: #28a745;
    border-radius: 50%;
    margin-right: 8px;
}

#bsg-loading-overlay{
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.35);
    z-index: 9999;
}
.bsg-loading-box{
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    min-width: 320px;
    box-shadow: 0 6px 30px rgba(0,0,0,0.25);
}
.bsg-loading-title{
    font-weight: 700;
}
.bsg-loading-sub{
    font-size: 12px;
    opacity: 0.85;
    margin-top: 2px;
}
.salon-sidebar {
    position: fixed;
    top: 80px;
    right: 20px;
    width: 280px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.plateaux-globaux-container {
    background: #fff;
    border-radius: 0.5rem;
    overflow: hidden;
}

#liste_plateaux_globaux {
    max-height: 320px;
    overflow-y: auto;
    margin-bottom: 0;
}

/* Responsive : masquer ou adapter sur petit écran */
@media (max-width: 992px) {
    .salon-sidebar {
        position: static;
        width: 100%;
        margin-bottom: 20px;
    }

    .joueurs-en-ligne-container,
    .plateaux-globaux-container {
        max-height: 220px;
    }
}