/* --- 1. BOUTONS & COULEURS --- */
.btn-warning {
    background-color: #ffd700 !important;
    border-color: #e6c200 !important;
    color: #000 !important;
    font-weight: bold;
}
.btn-warning:hover {
    background-color: #ffca2c !important;
}

/* --- 2. FORCER LE CALENDRIER PLEINE LARGEUR (RESPONSIVE) --- */
.flatpickr-calendar {
    width: 100% !important; /* Prend toute la place */
    max-width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: transparent !important;
}

.flatpickr-rContainer {
    width: 100% !important;
}

.flatpickr-days {
    width: 100% !important;
    border-left: 1px solid #eee;
    border-right: 1px solid #eee;
}

.dayContainer {
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    justify-content: space-around !important;
}

/* Agrandir les cases des jours pour remplir l'espace */
.flatpickr-day {
    max-width: initial !important; /* Enlève la limite de largeur */
    flex-basis: 14% !important; /* 100% / 7 jours = ~14% */
    height: 60px !important;     /* Plus haut pour être plus joli */
    line-height: 60px !important;
    font-size: 1.1rem !important;
    margin: 0 !important;
    border-radius: 0 !important; /* Carré ou léger arrondi */
    border: 1px solid #f0f0f0;
}

.flatpickr-day.selected {
    background: #ffd700 !important;
    border-color: #ffd700 !important;
    color: #000 !important;
    font-weight: bold;
}

.flatpickr-day:hover {
    background: #fff3cd !important;
}

/* --- 3. FIX DU MODAL BOOTSTRAP --- */
/* Parfois le thème WP passe devant le modal, on force le z-index */
.modal-backdrop {
    z-index: 1040 !important;
}
.modal {
    z-index: 1050 !important;
}

td {
    cursor: pointer;
}

/* S'assurer que le contenu est bien centré */
.modal-dialog-centered {
    display: flex !important;
    align-items: center !important;
    min-height: calc(100% - 1rem) !important;
}

/* Style des boutons dans le modal */
.stand-btn {
    padding: 20px;
    transition: transform 0.2s;
}
.stand-btn:hover {
    transform: scale(1.02);
    border-color: #000;
}

/* Grille des heures */
.hour-btn {
    padding: 15px;
    font-size: 1.1rem;
}


/* --- GRILLE ADMIN --- */

#admin-grid-table th, #admin-grid-table td {
    vertical-align: middle;
    height: 40px; /* Hauteur fixe pour régularité */
    min-width: 100px;
    padding: 0 !important;
}

/* Colonne Heure */
.col-hour {
    background-color: #f8f9fa;
    font-weight: bold;
    width: 80px;
    border-right: 2px solid #dee2e6;
}

/* Cellule Libre (+) */
.cell-empty {
    cursor: pointer;
    background-color: #fff;
    transition: background 0.2s;
    color: transparent; /* Cache le + par défaut */
}

.cell-empty:hover {
    background-color: #e2e6ea;
    color: #aaa; /* Affiche le + au survol */
}

/* Cellule Occupée */
.cell-booked {
    position: relative;
    font-size: 0.85rem;
    font-weight: 600;
}
.cell-booked.pack-Gold { background-color: #fff3cd; border-left: 4px solid #ffd700; }
.cell-booked.pack-Silver { background-color: #f8f9fa; border-left: 4px solid #c0c0c0; }
.cell-booked.pack-Bronze { background-color: #fff5eb; border-left: 4px solid #cd7f32; }

/* Bouton supprimer (petit croix) */
.btn-del-mini {
    position: absolute;
    top: 2px; right: 2px;
    color: #dc3545;
    background: rgba(255,255,255,0.7);
    border-radius: 50%;
    width: 18px; height: 18px;
    line-height: 18px;
    font-size: 10px;
    cursor: pointer;
    display: none; /* Caché par défaut */
}

.cell-booked:hover .btn-del-mini {
    display: block; /* Visible au survol */
}

/* 🔵 Licencié (Bleu) */
.bg-licencie {
    background-color: #cfe2ff !important; /* Bleu clair */
    color: #084298 !important;            /* Bleu foncé pour le texte */
    border-color: #b6d4fe !important;
}

/* 🟢 Initiations */
.bg-initiation {
    background-color: #d1e7dd !important;
    color: #0f5132 !important;
    border-color: #badbcc !important;
}

/* 🟡 Cours */
.bg-cours {
    background-color: #fff3cd !important;
    color: #664d03 !important;
    border-color: #ffecb5 !important;
}

/* 🔴 Maintenance */
.bg-maintenance {
    background-color: #f8d7da !important;
    color: #842029 !important;
    border-color: #f5c2c7 !important;
}

/* 🟣 Tir Contrôlé (Violet) */
.bg-controle {
    background-color: #e0cffc !important;
    color: #4c0bce !important;
    border-color: #d2bdfc !important;
}

/* 🟠 Visiteurs (Orange) */
.bg-visiteur {
    background-color: #ffe5d0 !important;
    color: #9c4400 !important;
    border-color: #ffdcb8 !important;
}

.flatpickr-calendar {
    background-color: white !important;
}

.nav-link.active {
    background-color: #e2d4ad !important;
}

.nav-link {
    color: black !important;
}