:root {
    --glide-blue: #0056b3;
    --glide-red: #d9534f;
    --light-bg: #f4f7f9;
    --active-day-blue: #bcd9ff;
}

body {
    background-color: var(--light-bg);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: #333;
}

/* --- NAVIGATION ET STRUCTURE --- */
.navbar-glide {
    background-color: var(--glide-blue);
    color: white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.navbar-brand {
    font-weight: bold;
    color: white !important;
    display: flex;
    align-items: center;
    gap: 10px;
}

.sidebar {
    background: white;
    border-right: 2px solid var(--glide-blue);
    min-height: calc(100vh - 56px);
}

/* --- CALENDRIER (Style Click'N Glide) --- */
.calendar-container { 
    background: white; 
    border: 1px solid #ddd; 
    border-radius: 4px; 
    font-size: 0.8rem; 
}

.calendar-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    font-weight: bold; 
    padding: 5px;
}

.calendar-grid { 
    display: grid; 
    grid-template-columns: repeat(7, 1fr); 
    gap: 2px; 
    text-align: center; 
}

.calendar-day-head { 
    font-weight: bold; 
    color: #888; 
    font-size: 0.7rem; 
    padding-bottom: 5px; 
}

.calendar-day { 
    cursor: pointer; 
    padding: 4px 0; 
    border-radius: 50%; 
    width: 28px; 
    height: 28px; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    margin: auto;
    transition: background 0.2s;
}

.calendar-day:hover { background-color: #f0f0f0; }

.calendar-nav-btn { 
    background: none; 
    border: none; 
    cursor: pointer; 
    color: var(--glide-blue); 
    font-weight: bold; 
}

/* Surlignage Bleu (Jours avec inscriptions) */
.has-signups { 
    background-color: var(--active-day-blue) !important; 
    font-weight: bold; 
    color: var(--glide-blue);
}

/* Cercle Rouge (Jour sélectionné) */
.is-selected { 
    border: 2px solid var(--glide-red) !important; 
    color: var(--glide-red); 
    font-weight: bold; 
    border-radius: 50% !important;
}

/* --- COLONNES ET CARTES --- */
.card-glide {
    border: 1px solid #dee2e6;
    border-top: 4px solid var(--glide-blue);
    border-radius: 8px;
    background: white;
    transition: transform 0.2s;
}

.card-glide-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #eee;
    padding: 6px 10px;
    color: var(--glide-blue);
    min-height: 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Style spécifique pour les événements éphémères */
.card-event {
    border-top-color: var(--glide-red) !important;
}

.card-event .card-glide-header {
    color: var(--glide-red);
}

/* --- BOUTON D'INSCRIPTION ENGAGEANT --- */
.btn-signup-glide {
    display: inline-block;
    padding: 6px 22px;
    background-color: transparent;
    color: var(--glide-red);
    border: 1.5px solid var(--glide-red);
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    text-decoration: none;
    margin-top: 8px;
}

.btn-signup-glide:hover {
    background-color: var(--glide-red);
    color: white !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(217, 83, 79, 0.3);
}

.btn-signup-glide:active {
    transform: translateY(0);
}

/* --- TITRES DE SECTIONS --- */
.section-title-glide {
    color: var(--glide-red);
    font-weight: bold;
    border-bottom: 2px solid #eee;
    padding-bottom: 5px;
}

/* --- FIXATIONS ET MODALS --- */
.dropdown-menu {
    z-index: 2000 !important;
    border: 1px solid var(--glide-blue);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.modal-content {
    border-radius: 12px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* .last-child-no-border:last-child {
    border-bottom: none !important;
}

 Optionnel : pour les titres de sections orange comme sur l'image
.text-orange {
    color: #ff6600 !important;
} */

/* Style personnalisé des Popups (Popovers) */
.popover {
    border: 1px solid var(--glide-blue);
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
}

.popover-header {
    background-color: var(--light-bg);
    color: var(--glide-blue);
    font-weight: bold;
    font-size: 0.75rem;
    border-bottom: 1px solid #eee;
}

.popover-body {
    font-size: 0.85rem;
    color: #444;
    padding: 10px;
}
/* Change la couleur de la petite flèche du popup */
.bs-popover-top .popover-arrow::after, .bs-popover-auto[data-popper-placement^="top"] .popover-arrow::after {
    border-top-color: var(--glide-blue);
}