/* Ajustements légers au-dessus de Bootstrap 5 */

.navbar-brand {
    letter-spacing: 0.5px;
}

/* Barre de menu : bleu plus foncé que le primaire de Bootstrap et textes blancs
   à 90 %, pour un contraste d'environ 5,5:1 (WCAG AA) au lieu de 2:1. */
.navbar.navbar-harpe {
    background-color: #0a58ca;
    --bs-navbar-color: rgba(255, 255, 255, 0.9);
    --bs-navbar-hover-color: #fff;
    --bs-navbar-active-color: #fff;
}

.navbar-harpe .navbar-nav .nav-link.active {
    font-weight: 600;
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.4rem;
}

.navbar-harpe .navbar-text-soft,
.navbar-harpe a.navbar-text-soft {
    color: rgba(255, 255, 255, 0.9);
}

.navbar-harpe a.navbar-text-soft:hover {
    color: #fff;
}

.card {
    border: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.table > :not(caption) > * > * {
    vertical-align: middle;
}

.badge-modality {
    font-weight: 500;
}

.card-toggle {
    cursor: pointer;
    background-color: var(--bs-card-bg);
}

.card-toggle:hover {
    box-shadow: 0 0 0 2px var(--bs-primary);
}

.offer-description-preview {
    max-height: 12rem;
    overflow-y: auto;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--bs-border-color);
    border-radius: var(--bs-border-radius);
    background-color: var(--bs-tertiary-bg);
}

.offer-description-preview :is(h1, h2, h3, h4, h5, h6) {
    font-size: 1rem;
    font-weight: 600;
}

.offer-description-preview > :last-child {
    margin-bottom: 0;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1;
}

.slot-free {
    border-left: 4px solid #198754;
}

.slot-taken {
    border-left: 4px solid #dc3545;
    opacity: 0.75;
}

/* Grille de choix des heures de créneaux (ajout de plusieurs créneaux) */
.slot-times-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.25rem;
    margin-bottom: 0.25rem;
}

.slot-times-hour {
    width: 2.5rem;
    font-weight: 600;
}

.slot-times .btn {
    width: 2.25rem;
    padding-left: 0;
    padding-right: 0;
}

/* Minutes hors quart d'heure (05, 10, 20…) : en gris, pour que les quarts
   d'heure (00, 15, 30, 45, classe slot-times-quarter) restent en bleu. */
.slot-times .btn:not(.slot-times-quarter) {
    --bs-btn-color: var(--bs-secondary-color);
    --bs-btn-border-color: var(--bs-border-color);
}

.criteria-badges .badge {
    margin-right: 0.25rem;
    margin-bottom: 0.25rem;
}
