/* ==========================================================================
   1. BASE & GÉNÉRAL
   ========================================================================== */

html {
    background-color: #f5f5f5; /* gris clair */
    color: #000; /* texte noir */
}

.full-width {
    width: 100%;
}

/* ==========================================================================
   2. TYPOGRAPHIE & TITRES
   ========================================================================== */

.vendetta-title {
    font-family: 'Impact', 'Arial Black', sans-serif;
    font-size: 48px;
    color: #ff0000;
    letter-spacing: 2px;
    text-shadow: 2px 2px 4px #000;
}

/* ==========================================================================
   3. HEADER / BANDEAU
   ========================================================================== */

.header-image {
    position: relative;
    width: 100%;
    height: 120px;
    background-image: url('/images/header2.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* ==========================================================================
   4. SIDEBAR / MENU LATÉRAL
   ========================================================================== */

.sidebar {
    width: 250px;
    min-height: 100vh;
    background-color: #e5dfcf;
    padding: 5px;
    font-family: 'Verdana', sans-serif;
    box-sizing: border-box;
}

.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    background-color: transparent !important;
    border: none !important;
    display: block !important;
    width: 100%;
    padding: 0 !important;
    margin: 0 !important;
    white-space: normal !important;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar ul li a {
    background-color: transparent !important;
    padding: 6px 10px;
    display: block;
    color: #000 !important;
    font-size: 14px;
    font-family: 'Verdana', sans-serif;
    box-shadow: none !important;
    line-height: 1.2;
}

.sidebar ul li a:hover {
    background-color: #770000 !important;
    color: #fff !important;
}

.sidebar ul li.disabled a {
    color: #9e9e9e !important;
    pointer-events: none;
}

.menu-separator {
    border: none;
    height: 3px;
    background-color: #7c0000;
    margin: 5px 0;
}

.sidebar .collection {
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.active-batiment a {
    font-weight: bold;
    background-color: #e8f5e9 !important; /* vert clair */
}


/* ==========================================================================
   5. DROPDOWN PERSONNALISÉ
   ========================================================================== */

.dropdown-content {
    background-color: #fafafa;
    border: 1px solid #ccc;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    min-width: 50px;
}

.sidebar .dropdown-trigger {
    padding: 6px 10px !important;
    font-size: 14px !important;
    font-family: 'Verdana', 'sans-serif' !important;
    background-color: transparent !important;
    color: #000 !important;
    display: block !important;
    height: auto !important;
    box-shadow: none !important;
    line-height: 1.3 !important;
}

.dropdown-content li > a {
    color: #333 !important;
    padding: 10px 20px;
    font-weight: 500;
}

.dropdown-content li:hover {
    background-color: #f0f0f0;
}

.dropdown-content li > a:hover {
    color: #000 !important;
}

/* ==========================================================================
   6. BARRE DE RESSOURCES
   ========================================================================== */

.resources-bar {
    background: #ddd;
    padding: 10px;
    margin-bottom: 20px;
    font-weight: bold;
    font-family: 'Verdana', sans-serif;
}

/* ==========================================================================
   7. TABLEAU D'APERÇU GÉNÉRAL
   ========================================================================== */

.overview-table {
    width: 100%;
    background-color: #f9f6ee;
    border-collapse: collapse;
    margin-bottom: 2rem;
    font-family: Arial, sans-serif;
    text-align: center;
}

.overview-table td,
.overview-table th {
    padding: 10px;
    border: 1px solid #ddd;
}

.overview-table .section-header {
    background-color: #770000;
    color: #fff;
    font-weight: bold;
}

.overview-table .sub-header {
    background-color: #cccccc;
    font-weight: bold;
}

.overview-table .global-summary {
    background-color: transparent;
    border-top: 2px solid #333;
}

.overview-table a {
    color: #000;
    text-decoration: underline;
}

.overview-table table td {
    text-align : center !important
}

/* ==========================================================================
   8. BLOC SALLE (droite)
   ========================================================================== */

.salle-action-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 10px;
}

.salle-action-wrapper button {
    margin: 0 auto;
}

.salle-action-wrapper .btn {
    white-space: nowrap;
    text-align: center;
    min-width: 180px;
    font-weight: 500;
    font-size: 14px;
}

.salle-action {
    width: 200px;
    min-width: 200px;
    background-color: transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border-left: none;
}

.salle-action a.btn {
    font-size: 13px;
    padding: 8px 16px;
    background-color: #7c0000;
    color: white;
    text-transform: none;
}

.salle-action a.btn:hover {
    background-color: #a00000;
}

.salle-action .en-construction {
    font-size: 14px;
    color: #444;
}

.salle-card {
    border-left: 5px solid #770000;
    padding: 10px;
}

.salle-image {
    max-height: 120px;
    object-fit: cover;
    border-radius: 4px;
}

.salle-image-placeholder {
    height: 120px;
    background-color: #ccc;
    border-radius: 4px;
}

.salle-title {
    font-weight: bold;
    margin-bottom: 5px;
}

.salle-description {
    font-size: 14px;
    color: #444;
    margin-bottom: 10px;
}

.salle-cost-list {
    list-style: none;
    padding-left: 0;
    font-size: 14px;
}

.salle-cost-list li {
    margin-bottom: 4px;
}

.salle-action form button.btn {
    font-size: 13px;
    padding: 10px 18px;
    background-color: #7c0000;
    color: white;
    text-transform: none;
    white-space: nowrap; /* empêche le retour à la ligne */
    width: auto; /* permet au bouton de s'ajuster à son contenu */
    min-width: 180 px;  /* largeur minimale pour le bouton */
    max-width: 100%; /* permet au bouton de s'étendre si nécessaire */
    text-align: center;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    text-transform: none;
}

.salle-action form button.btn:hover {
    background-color: #a00000;
}
/* ==========================================================================
   9. FORMULAIRES LOGIN / REGISTER
   ========================================================================== */

.login-box {
    background-color: #2e2e2e;
    color: #fff;
    padding: 40px;
    max-width: 400px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.login-box .input-field input {
    background-color: transparent;
    color: #fff;
    border-bottom: 1px solid #777;
}

.login-box .input-field label {
    color: #ccc;
}

.login-box .input-field input:focus {
    border-bottom: 1px solid #26a69a;
    box-shadow: none;
}

.login-box .btn {
    background-color: #26a69a;
    width: 100%;
}

.login-box .btn:hover {
    background-color: #2bbbad;
}

.login-box a {
    color: #b2dfdb;
    font-size: 0.95rem;
    transition: color 0.3s ease;
}

.login-box a:hover {
    color: #80cbc4;
}

/* ==========================================================================
   10. CARTE DE LA VILLE
   ========================================================================== */

.carte-quartier {
    display: grid;
    grid-template-columns: repeat(17, 20px);
    grid-template-rows: repeat(15, 20px);
    gap: 1px;
    margin-top: 20px;
    border: 2px solid #333;
    background: #222;
}

.case {
    width: 16px;
    height: 16px;
    display: inline-block;
    margin: 1px;
    border: 1px solid #444;
    background-color: #1f1f1f; /* par défaut, noir/gris foncé */
}

.case.libre {
    background-color: #28a745 !important; /* vert */
}

.case.occupe {
    background-color: #c0392b !important; /* rouge */
}

.case.reserve {
    background-color: #f1c40f !important; /* jaune */
}

.case.bloquee {
    background-color: #555 !important; /* gris foncé bloqué */
}