/* ===== Brown Legal Group - Booking styles ===== */

:root {
    --blg-primary: #1b2a6b;        /* bleu marine du logo */
    --blg-primary-dark: #121d4e;
    --blg-primary-light: #2c46a8;
    --blg-primary-soft: #eef2fc;
    --blg-gold: #d4af37;
}

body {
    background: #e9effa;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

.booking-wrapper {
    min-height: 100vh;
}

/* --- Branding --- */
.brand-logo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto;
    background: #fff;
    box-shadow: 0 .3rem .9rem rgba(18, 29, 78, .22);
}

/* Recadrage sur l'emblème du logo (le texte blanc du bas est masqué) */
.brand-logo img {
    width: 193px;
    height: 193px;
    margin-left: -41px;
    margin-top: -6px;
}

.brand-logo-sm {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    background: #fff;
    display: inline-block;
    vertical-align: middle;
}

.brand-logo-sm img {
    width: 70px;
    height: 70px;
    margin-left: -15px;
    margin-top: -2px;
}

/* --- Thème bleu (surcharges Bootstrap) --- */
.booking-wrapper h1 {
    color: var(--blg-primary);
}

.btn-primary {
    --bs-btn-bg: var(--blg-primary);
    --bs-btn-border-color: var(--blg-primary);
    --bs-btn-hover-bg: var(--blg-primary-dark);
    --bs-btn-hover-border-color: var(--blg-primary-dark);
    --bs-btn-active-bg: var(--blg-primary-dark);
    --bs-btn-active-border-color: var(--blg-primary-dark);
    --bs-btn-disabled-bg: var(--blg-primary);
    --bs-btn-disabled-border-color: var(--blg-primary);
}

.btn-outline-primary {
    --bs-btn-color: var(--blg-primary);
    --bs-btn-border-color: var(--blg-primary);
    --bs-btn-hover-bg: var(--blg-primary);
    --bs-btn-hover-border-color: var(--blg-primary);
    --bs-btn-active-bg: var(--blg-primary-dark);
    --bs-btn-active-border-color: var(--blg-primary-dark);
}

.badge.text-bg-primary {
    background-color: var(--blg-primary) !important;
}

.text-primary {
    color: var(--blg-primary) !important;
}

a {
    color: var(--blg-primary-light);
}

.spinner-border.text-primary {
    color: var(--blg-primary) !important;
}

/* --- Payment info page --- */
.method-card {
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    height: 100%;
}

.method-card .method-header {
    border-radius: .75rem .75rem 0 0;
    padding: .75rem 1.25rem;
    color: #fff;
    font-weight: 600;
}

/* --- Barre d'étapes --- */
.steps-bar {
    display: flex;
    justify-content: space-between;
    position: relative;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
}

.steps-bar::before {
    content: '';
    position: absolute;
    top: 22px;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #dee2e6;
    z-index: 0;
}

.step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .4rem;
    z-index: 1;
    font-size: .82rem;
    color: #8a93a2;
    flex: 1;
}

.step-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid #dee2e6;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: all .25s;
}

.step.active .step-circle {
    border-color: var(--blg-primary);
    background: var(--blg-primary);
    color: #fff;
}

.step.active {
    color: var(--blg-primary);
    font-weight: 600;
}

.step.done .step-circle {
    border-color: #198754;
    background: #198754;
    color: #fff;
}

/* --- Domaines juridiques (étape 1) --- */
.area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: .5rem;
}

.area-btn {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: .5rem;
    padding: .6rem .5rem;
    font-size: .85rem;
    cursor: pointer;
    transition: all .15s;
    text-align: center;
}

.area-btn:hover {
    border-color: var(--blg-primary);
    color: var(--blg-primary);
    font-weight: 600;
}

.area-btn.selected {
    background: var(--blg-primary);
    border-color: var(--blg-primary);
    color: #fff;
    font-weight: 600;
}

/* --- Cartes de service --- */
.service-card {
    border: 2px solid #e9ecef;
    border-radius: .75rem;
    padding: 1.1rem;
    cursor: pointer;
    transition: all .2s;
    height: 100%;
}

.service-card:hover {
    border-color: var(--blg-primary);
    box-shadow: 0 .25rem .75rem rgba(27, 42, 107, .14);
}

.service-card.selected {
    border-color: var(--blg-primary);
    background: var(--blg-primary-soft);
}

.service-color {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
    margin-right: .5rem;
}

/* --- Calendrier --- */
.calendar-card {
    border: 1px solid #e9ecef;
    border-radius: .75rem;
    padding: 1rem;
    background: #fff;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

#cal-days-header div {
    text-align: center;
    font-size: .75rem;
    font-weight: 600;
    color: #8a93a2;
    padding: .3rem 0;
}

.cal-day {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: .5rem;
    font-size: .88rem;
    cursor: pointer;
    border: none;
    background: transparent;
    transition: background .15s;
}

.cal-day:not(:disabled):hover {
    background: #e4ebf9;
}

.cal-day.selected {
    background: var(--blg-primary);
    color: #fff;
    font-weight: 600;
}

.cal-day:disabled {
    color: #ced4da;
    cursor: default;
}

.cal-day.today {
    outline: 2px solid rgba(27, 42, 107, .25);
}

/* --- Créneaux --- */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
    gap: .5rem;
    max-height: 330px;
    overflow-y: auto;
}

.slot-btn {
    border: 1.5px solid #dee2e6;
    background: #fff;
    border-radius: .5rem;
    padding: .45rem .3rem;
    font-size: .9rem;
    cursor: pointer;
    transition: all .15s;
}

.slot-btn:hover {
    border-color: var(--blg-primary);
    color: var(--blg-primary);
}

.slot-btn.selected {
    background: var(--blg-primary);
    border-color: var(--blg-primary);
    color: #fff;
    font-weight: 600;
}

/* --- Méthodes de paiement --- */
.payment-card {
    border: 2px solid #e9ecef;
    border-radius: .75rem;
    padding: 1rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 1rem;
    transition: all .2s;
}

.payment-card:hover {
    border-color: var(--blg-primary);
}

.payment-card.selected {
    border-color: var(--blg-primary);
    background: var(--blg-primary-soft);
}

.payment-card .payment-icon {
    font-size: 1.6rem;
    color: var(--blg-primary);
    width: 40px;
    text-align: center;
}

/* --- Confirmation --- */
.confirm-icon i {
    font-size: 4.5rem;
    color: #198754;
}

/* --- Admin --- */
.admin-sidebar {
    min-height: 100vh;
    background: var(--blg-primary-dark);
}

.admin-sidebar .nav-link {
    color: #aeb6c8;
    border-radius: .5rem;
    margin-bottom: .25rem;
}

.admin-sidebar .nav-link:hover,
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .08);
}

.stat-card {
    border: none;
    border-radius: .75rem;
    box-shadow: 0 .125rem .5rem rgba(20, 30, 60, .06);
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: .75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
}
