/* ============================================================
   ID16 Réservations — Feuille de style principale
   Pratic'Réservations — Bleu marine #153a62 + Cyan #1EAFCE
   ============================================================ */

/* Variables CSS */
:root {
    --color-primary:     #1EAFCE;
    --color-primary-dark:#178fad;
    --color-cta:         #1EAFCE;
    --color-cta-hover:   #178fad;
    --color-text:        #2D3240;
    --color-muted:       #6b7080;
    --color-bg:          #F0EEEF;
    --color-white:       #ffffff;
    --color-border:      #DEE2E6;
    --color-success:     #1E7D5B;
    --color-danger:      #C53030;
    --color-warning:     #D97706;
    --radius:            8px;
    --radius-lg:         12px;
    --shadow-sm:         0 1px 4px rgba(0,0,0,.07);
    --shadow-md:         0 4px 18px rgba(0,0,0,.10);
    --transition:        .18s ease;
}

/* ============================================================
   Base
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--color-text);
    background-color: var(--color-bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 15px;
    line-height: 1.6;
}

.fw-500 { font-weight: 500; }
.fw-600 { font-weight: 600; }
.fw-700 { font-weight: 700; }

a { color: var(--color-primary); }
a:hover { color: var(--color-primary-dark); }

/* ============================================================
   Navbar
   ============================================================ */
.navbar {
    padding: .75rem 0;
}

.navbar-brand {
    font-weight: 700;
    font-size: 1.15rem;
    color: var(--color-primary) !important;
    text-decoration: none;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text) !important;
    border-radius: var(--radius);
    padding: .4rem .75rem !important;
    transition: background var(--transition), color var(--transition);
}

.nav-link:hover,
.nav-link.active {
    background-color: rgba(30, 175, 206, .10);
    color: var(--color-primary) !important;
}

.nav-link.active {
    color: var(--color-primary) !important;
    font-weight: 600;
}

/* ============================================================
   Main content
   ============================================================ */
.main-content {
    flex: 1 0 auto;
    padding-top: .5rem;
}

/* ============================================================
   Boutons
   ============================================================ */
.btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus {
    background-color: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
}

.btn-cta {
    background-color: var(--color-cta);
    border-color: var(--color-cta);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius);
    transition: background var(--transition);
}

.btn-cta:hover,
.btn-cta:focus {
    background-color: var(--color-cta-hover);
    border-color: var(--color-cta-hover);
    color: #fff;
}

/* ============================================================
   Cards praticiens
   ============================================================ */
.card-praticien {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow var(--transition), transform var(--transition);
    overflow: hidden;
    height: 100%;
}

.card-praticien:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.card-praticien .card-photo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--color-primary);
}

.card-praticien .card-photo-placeholder {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background-color: rgba(30, 175, 206, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-primary);
    border: 3px solid var(--color-primary);
    flex-shrink: 0;
}

.card-praticien .card-body {
    padding: 1.25rem;
}

.card-praticien .praticien-nom {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: .15rem;
    color: #1a1a2e;
}

.card-praticien .praticien-specialite {
    color: var(--color-primary);
    font-size: .875rem;
    font-weight: 600;
    margin-bottom: .5rem;
}

.card-praticien .praticien-ville {
    font-size: .8rem;
    color: var(--color-muted);
}

/* Recherche praticiens */
.search-bar {
    max-width: 620px;
    margin: 0 auto 2rem;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(21,58,98,.18);
    padding: .35rem .35rem .35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .75rem;
}

.search-bar i {
    color: #888;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.search-bar .form-control {
    border: none;
    box-shadow: none;
    font-size: 1.05rem;
    padding: .5rem 0;
    background: transparent;
    flex: 1;
}

.search-bar .form-control:focus {
    outline: none;
    box-shadow: none;
}

/* ============================================================
   Profil praticien
   ============================================================ */
.praticien-profile {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    margin-bottom: 2rem;
}

.praticien-profile .profile-photo {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
}

.praticien-profile .profile-photo-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background-color: rgba(30, 175, 206, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-primary);
    border: 4px solid var(--color-primary);
}

.praticien-profile h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.praticien-profile .specialite {
    color: var(--color-primary);
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 1rem;
}

/* ============================================================
   Calendrier
   ============================================================ */
.calendrier-container {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
}

.cal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.cal-header h3 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    text-transform: capitalize;
}

.cal-nav-btn {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: .35rem .6rem;
    cursor: pointer;
    color: var(--color-primary);
    transition: background var(--transition);
}

.cal-nav-btn:hover {
    background-color: rgba(30, 175, 206, .10);
}

/* Grille calendrier */
.cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}

.cal-day-label {
    text-align: center;
    font-size: .7rem;
    font-weight: 600;
    color: var(--color-muted);
    text-transform: uppercase;
    padding: .35rem 0;
    letter-spacing: .04em;
}

.cal-day {
    text-align: center;
    padding: .4rem .1rem;
    border-radius: var(--radius);
    font-size: .85rem;
    cursor: default;
    transition: background var(--transition);
    min-height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cal-day.vide {
    background: transparent;
}

.cal-day.passe {
    color: #ccc;
}

.cal-day.disponible {
    cursor: pointer;
    background-color: rgba(30, 175, 206, .10);
    color: var(--color-primary);
    font-weight: 600;
}

.cal-day.disponible:hover,
.cal-day.disponible.selectionne {
    background-color: var(--color-primary);
    color: #fff;
}

.cal-day.indisponible {
    color: #bbb;
    background-color: #f8f8f8;
}

.cal-day.aujourd-hui {
    border: 2px solid var(--color-primary);
}

/* Créneaux horaires */
.creneaux-container {
    margin-top: 1.5rem;
}

.creneaux-titre {
    font-size: .875rem;
    font-weight: 600;
    color: var(--color-muted);
    margin-bottom: .75rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}

.creneaux-grid {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
}

.btn-creneau {
    background: var(--color-white);
    border: 1.5px solid var(--color-primary);
    color: var(--color-primary);
    border-radius: var(--radius);
    padding: .4rem .9rem;
    font-size: .875rem;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.btn-creneau:hover,
.btn-creneau.actif {
    background-color: var(--color-primary);
    color: #fff;
}

/* Messages d'état calendrier */
.cal-message {
    text-align: center;
    padding: 1.5rem;
    color: var(--color-muted);
    font-size: .875rem;
}

.cal-loader {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 1rem;
    color: var(--color-muted);
    font-size: .875rem;
}

/* ============================================================
   Formulaire réservation
   ============================================================ */
.resa-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
}

.resa-recap {
    background: rgba(30, 175, 206, .08);
    border-left: 4px solid var(--color-primary);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1rem 1.25rem;
    margin-bottom: 1.75rem;
}

.resa-recap .recap-label {
    font-size: .75rem;
    text-transform: uppercase;
    font-weight: 600;
    color: var(--color-muted);
    letter-spacing: .04em;
}

.resa-recap .recap-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================================
   Confirmation RDV
   ============================================================ */
.confirmation-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 2.5rem;
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.confirmation-card .success-icon {
    font-size: 3.5rem;
    color: var(--color-success);
    margin-bottom: 1rem;
}

.confirmation-details {
    background: var(--color-bg);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin: 1.5rem 0;
    text-align: left;
}

/* ============================================================
   Back-office — Agenda semaine
   ============================================================ */
.agenda-semaine {
    overflow-x: auto;
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
}

.agenda-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 700px;
    font-size: .82rem;
}

.agenda-table th {
    background: var(--color-primary);
    color: #fff;
    text-align: center;
    padding: .6rem .4rem;
    font-weight: 600;
    font-size: .78rem;
}

.agenda-table td {
    border: 1px solid #eee;
    vertical-align: top;
    padding: .2rem;
    height: 40px;
    position: relative;
}

.agenda-table .heure-col {
    background: #f8f9fa;
    color: var(--color-muted);
    font-size: .72rem;
    font-weight: 600;
    text-align: right;
    padding-right: .5rem;
    width: 48px;
    white-space: nowrap;
}

.rdv-bloc {
    background-color: var(--color-primary);
    color: #fff;
    border-radius: 4px;
    padding: .2rem .4rem;
    font-size: .72rem;
    font-weight: 600;
    cursor: pointer;
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    transition: opacity var(--transition);
}

.rdv-bloc:hover {
    opacity: .85;
}

.rdv-bloc.statut-en-attente { background-color: #e9940a; }
.rdv-bloc.statut-confirme    { background-color: #198754; }
.rdv-bloc.statut-annule      { background-color: #dc3545; opacity: .6; }
.rdv-bloc.statut-honore      { background-color: #6c757d; }

/* ============================================================
   Back-office — Tableau de bord
   ============================================================ */
.stat-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 1.5rem;
    text-align: center;
}

.stat-card .stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
    margin-bottom: .25rem;
}

.stat-card .stat-label {
    font-size: .8rem;
    color: var(--color-muted);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: .04em;
}

/* ============================================================
   Back-office — Formulaires
   ============================================================ */
.admin-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    margin-bottom: 1.5rem;
}

.admin-card .admin-card-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    padding-bottom: .75rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-primary);
}

.form-label {
    font-weight: 500;
    font-size: .875rem;
    margin-bottom: .35rem;
}

.form-control,
.form-select {
    border-radius: var(--radius);
    border-color: var(--color-border);
    font-size: .9rem;
}

.form-control:focus,
.form-select:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 .2rem rgba(30, 175, 206, .20);
}

/* ============================================================
   Badges statut RDV
   ============================================================ */
.badge-statut {
    font-size: .72rem;
    font-weight: 600;
    padding: .3rem .6rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .03em;
}

/* ============================================================
   Sidebar back-office
   ============================================================ */
.sidebar-nav {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.sidebar-nav .sidebar-header {
    background: var(--color-primary);
    color: #fff;
    padding: 1rem 1.25rem;
    font-weight: 700;
    font-size: .9rem;
}

.sidebar-nav .nav-link {
    color: var(--color-text) !important;
    padding: .6rem 1.25rem !important;
    border-radius: 0;
    border-left: 3px solid transparent;
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .875rem;
}

.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active {
    background-color: rgba(30, 175, 206, .08);
    border-left-color: var(--color-primary);
    color: var(--color-primary) !important;
}

.sidebar-nav .nav-link i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
}

/* ============================================================
   Page login
   ============================================================ */
.login-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    background: var(--color-white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    box-shadow: var(--shadow-md);
    padding: 2.5rem;
    width: 100%;
    max-width: 440px;
}

.login-card .login-logo {
    text-align: center;
    margin-bottom: 1.75rem;
}

.login-card .login-logo i {
    font-size: 2.5rem;
    color: var(--color-primary);
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    margin-top: 3rem;
}

/* ============================================================
   Alternance de fonds blanc / gris
   ============================================================ */
.bg-light { background-color: #F0EEEF !important; }
.section-avantages { background: #ffffff; }

/* ============================================================
   Utilitaires
   ============================================================ */
.page-header {
    margin-bottom: 2rem;
}

.page-header h1 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: .25rem;
}

.page-header p {
    color: var(--color-muted);
    margin: 0;
}

.divider {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 1.5rem 0;
}

.text-primary { color: var(--color-primary) !important; }
.bg-primary-soft { background-color: rgba(30, 175, 206, .08); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 768px) {
    .praticien-profile {
        padding: 1.25rem;
    }

    .praticien-profile .profile-photo,
    .praticien-profile .profile-photo-placeholder {
        width: 80px;
        height: 80px;
    }

    .confirmation-card {
        padding: 1.5rem;
    }

    .resa-card {
        padding: 1.25rem;
    }

    .admin-card {
        padding: 1.25rem;
    }

    .login-card {
        padding: 1.75rem;
    }

    .stat-card .stat-number {
        font-size: 1.5rem;
    }

    .cal-day {
        font-size: .75rem;
        padding: .25rem .05rem;
    }
}

@media (max-width: 480px) {
    .cal-grid {
        gap: 1px;
    }

    .creneaux-grid {
        gap: .35rem;
    }

    .btn-creneau {
        padding: .35rem .65rem;
        font-size: .8rem;
    }
}

/* ============================================================
   Page d'accueil — Hero
   ============================================================ */
.hero-accueil {
    background: linear-gradient(135deg, #071e38 0%, #153a62 60%, #1a6a8a 100%);
    color: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-top: calc(-1.5rem - .5rem); /* annule py-4 (1.5rem) + padding-top main-content (.5rem) */
}

.hero-eyebrow {
    font-size: .85rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .85;
    margin-bottom: .75rem;
}

.hero-titre {
    font-size: 2.4rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
}

.hero-titre .text-primary {
    color: #1EAFCE !important;
}

.hero-sous-titre {
    font-size: 1.1rem;
    opacity: .9;
    max-width: 520px;
    line-height: 1.6;
}

/* Illustration décorative hero */
.hero-deco {
    position: relative;
    width: 220px;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-deco-ring {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255,255,255,.15);
}

.hero-deco-ring-1 {
    width: 220px;
    height: 220px;
}

.hero-deco-ring-2 {
    width: 170px;
    height: 170px;
    border-color: rgba(255,255,255,.22);
}

.hero-deco-core {
    width: 120px;
    height: 130px;
    background: rgba(255,255,255,.14);
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0,0,0,.18);
}

.hero-deco-bar {
    background: #1EAFCE;
    height: 32px;
    width: 100%;
    flex-shrink: 0;
}

.hero-deco-dots {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 7px;
    padding: 10px;
    flex: 1;
}

.hero-deco-dots span {
    border-radius: 3px;
    background: rgba(255,255,255,.45);
}

.hero-deco-dots span:first-child {
    background: rgba(255,255,255,.85);
}

/* ============================================================
   Avantages
   ============================================================ */
.section-avantages {
    background: #fff;
    border-bottom: 1px solid var(--color-border);
}

.avantage-item {
    padding: 1rem .5rem;
}

.avantage-icon {
    font-size: 1.8rem;
    display: block;
    margin-bottom: .4rem;
    line-height: 1;
}

.avantage-titre {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}

.avantage-desc {
    font-size: .82rem;
    color: var(--color-muted);
}

/* ============================================================
   Étapes — Comment ça marche
   ============================================================ */
.section-titre {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-text);
}

.etape-card {
    background: #fff;
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    box-shadow: var(--shadow-sm);
    height: 100%;
    position: relative;
}

.etape-numero {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: #fff;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-weight: 800;
    font-size: .85rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.etape-icone {
    font-size: 2.5rem;
    color: var(--color-primary);
    margin-bottom: .75rem;
}

.etape-icone-css {
    font-size: 2.5rem;
    margin-bottom: .75rem;
    line-height: 1;
}

.etape-titre {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.etape-desc {
    font-size: .87rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin: 0;
}

/* ============================================================
   Section praticiens
   ============================================================ */
.section-praticiens {
    background: linear-gradient(180deg, #0d2845 0%, #153a62 100%);
    border-top: none;
    width: 100vw;
    position: relative;
    left: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: calc(-1.5rem - .5rem); /* annule le padding-bottom du container + main-content */
}

.section-praticiens .section-titre,
.section-praticiens p {
    color: #fff !important;
}

.section-praticiens .text-muted {
    color: rgba(255,255,255,.75) !important;
}

.description-courte {
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

/* Responsive hero */
@media (max-width: 767px) {
    .hero-titre {
        font-size: 1.7rem;
    }
    .hero-sous-titre {
        font-size: 1rem;
    }
}

/* ============================================================
   Header & Footer — Charte ID16
   ============================================================ */

/* Topbar */
.rdv-topbar {
    background: #0d2845;
    color: #ffffff;
    font-size: .82rem;
}
.rdv-topbar a { color: rgba(255,255,255,.8); text-decoration: none; }
.rdv-topbar a:hover { color: #1EAFCE; }

/* Navbar */
.rdv-navbar {
    background: #153a62;
}
.rdv-navbar .navbar-brand {
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: .5px;
    color: #fff !important;
}
.rdv-accent { color: #1EAFCE; }
.rdv-brand-sep {
    color: rgba(255,255,255,.25);
    margin: 0 .4rem;
    font-weight: 300;
}
.rdv-brand-sub {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255,255,255,.7);
}
.rdv-navbar .nav-link {
    color: rgba(255,255,255,.82) !important;
    border-radius: var(--radius);
    padding: .4rem .75rem;
    transition: background var(--transition);
}
.rdv-navbar .nav-link:hover,
.rdv-navbar .nav-link.active {
    background: rgba(30,175,206,.18);
    color: #1EAFCE !important;
}
.rdv-navbar .dropdown-menu {
    border: none;
    box-shadow: var(--shadow-md);
}
.rdv-btn-praticien {
    background: #1EAFCE;
    border-color: #1EAFCE;
    color: #fff;
}
.rdv-btn-praticien:hover {
    background: #178fad;
    border-color: #178fad;
    color: #fff;
}

/* Footer */
.rdv-footer {
    background: #153a62;
    color: #fff;
}
.rdv-footer-link {
    color: rgba(255,255,255,.65);
    text-decoration: none;
    font-size: .88rem;
    transition: color var(--transition);
}
.rdv-footer-link:hover { color: #1EAFCE; }

/* ============================================================
   Résultats de recherche — affichage en lignes
   ============================================================ */
.praticien-ligne {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: .85rem 1.1rem;
    margin-bottom: .5rem;
    transition: box-shadow var(--transition), border-color var(--transition);
}
.praticien-ligne:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}
.praticien-ligne-photo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.praticien-ligne-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(30,175,206,.12);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
}
.praticien-ligne-infos {
    flex: 1;
    min-width: 0;
}
.praticien-ligne-nom {
    font-weight: 700;
    font-size: 1rem;
    color: var(--color-text);
}
.praticien-ligne-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: .2rem;
}
.praticien-ligne-specialite {
    font-size: .85rem;
    color: var(--color-primary);
    font-weight: 500;
}
.praticien-ligne-ville {
    font-size: .82rem;
    color: var(--color-muted);
}
.praticien-ligne-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

@media (max-width: 575px) {
    .praticien-ligne {
        flex-wrap: wrap;
    }
    .praticien-ligne-btn {
        width: 100%;
        text-align: center;
    }
}

/* ============================================================
   Calendrier glissant semaine
   ============================================================ */

/* Barre d'infos rapides */
.rdv-infos-bar {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 1.5rem;
    background: rgba(30,175,206,.08);
    border-left: 4px solid var(--color-primary);
    border-radius: var(--radius);
    padding: .75rem 1rem;
    font-size: .87rem;
    color: var(--color-text);
}

/* Navigation */
.cal-nav-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: .75rem;
}
.cal-btn-nav {
    background: none;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    width: 36px;
    height: 36px;
    cursor: pointer;
    font-size: 1rem;
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition);
    flex-shrink: 0;
}
.cal-btn-nav:hover { background: rgba(30,175,206,.12); }
.cal-periode {
    font-size: .9rem;
    font-weight: 600;
    color: var(--color-text);
    text-align: center;
    flex: 1;
    padding: 0 .5rem;
}

/* Grille — définie plus bas en responsive */
.cal-grille {
    display: grid;
    gap: 6px;
    width: 100%;
}

/* Colonne jour */
.cal-col {
    min-width: 0;
    overflow: hidden;
}
.cal-col-head {
    background: #F5F7F6;
    border: 1px solid var(--color-border);
    border-radius: var(--radius) var(--radius) 0 0;
    padding: .4rem .25rem;
    text-align: center;
    margin-bottom: 3px;
}
.cal-col-head.cal-auj {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.cal-col-jour {
    display: block;
    font-size: .72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.cal-col-date {
    display: block;
    font-size: .78rem;
    color: var(--color-muted);
    margin-top: 1px;
}
.cal-auj .cal-col-date { color: rgba(255,255,255,.85); }
.cal-auj-date { color: #fff !important; }

/* Corps créneaux */
.cal-col-body {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

/* Créneau individuel */
.cal-slot {
    display: block;
    text-align: center;
    padding: .3rem .15rem;
    border-radius: 5px;
    font-size: .8rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: default;
    user-select: none;
}
.cal-slot-dispo {
    background: #ffffff;
    border: 1.5px solid;
    cursor: pointer;
    transition: background var(--transition), transform .1s;
}
.cal-slot-dispo:hover {
    background: rgba(30,175,206,.10);
    transform: scale(1.04);
    text-decoration: none;
}
.cal-slot-indispo {
    background: #ececec;
    border: 1.5px solid #d8d8d8;
    color: #bbb;
}

/* Fermé / chargement */
.cal-ferme {
    text-align: center;
    font-size: .78rem;
    color: #ccc;
    padding: .6rem 0;
}
.cal-loading {
    text-align: center;
    padding: .6rem 0;
}

/* Légende */
.cal-legende {
    display: flex;
    gap: 1.5rem;
    margin-top: .75rem;
    font-size: .8rem;
    color: var(--color-muted);
    flex-wrap: wrap;
}
.cal-leg-item {
    display: flex;
    align-items: center;
    gap: .4rem;
}
.cal-leg-ex {
    display: inline-block;
    padding: .15rem .4rem;
    font-size: .75rem;
    pointer-events: none;
}

@media (max-width: 575px) {
    .cal-periode { font-size: .78rem; }
    .cal-slot { font-size: .72rem; padding: .25rem .1rem; }
    .rdv-infos-bar { font-size: .8rem; }
}

/* ============================================================
   Calendrier — colonnes responsive
   ============================================================ */
.cal-grille-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-grille-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cal-grille-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 991px) {
    .cal-slot       { font-size: .73rem; padding: .26rem .08rem; }
    .cal-col-jour   { font-size: .66rem; }
    .cal-col-date   { font-size: .66rem; }
    .cal-periode    { font-size: .82rem; }
    .cal-col-head   { padding: .35rem .15rem; }
}
@media (max-width: 575px) {
    .cal-slot       { font-size: .7rem;  padding: .22rem .04rem; }
    .cal-col-jour   { font-size: .62rem; }
    .cal-col-date   { font-size: .6rem;  }
    .cal-periode    { font-size: .72rem; }
    .cal-col-head   { padding: .3rem .08rem; }
    .cal-btn-nav    { width: 28px; height: 28px; font-size: .8rem; }
    .rdv-infos-bar  { font-size: .78rem; gap: .4rem 1rem; }
    .cal-legende    { font-size: .75rem; gap: 1rem; }
}

/* ============================================================
   Double barre de recherche
   ============================================================ */
.search-double {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 50px;
    box-shadow: 0 4px 24px rgba(21,58,98,.22);
    padding: .35rem .35rem .35rem 1.5rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.search-field {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1;
    min-width: 0;
}

.search-field i {
    color: #888;
    font-size: 1.1rem;
    flex-shrink: 0;
}

.search-field input {
    border: none;
    box-shadow: none;
    font-size: 1rem;
    padding: .5rem 0;
    background: transparent;
    flex: 1;
    min-width: 0;
    color: #333;
    outline: none;
}

.search-field input::placeholder { color: #aaa; }

.search-divider {
    width: 1px;
    height: 28px;
    background: #e0e0e0;
    flex-shrink: 0;
    margin: 0 .25rem;
}

.search-btn {
    background: var(--color-primary);
    border: none;
    border-radius: 50px;
    color: #fff;
    font-weight: 600;
    font-size: .9rem;
    padding: .55rem 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: .35rem;
    flex-shrink: 0;
    transition: background var(--transition);
}

.search-btn:hover { background: var(--color-primary-dark); }

@media (max-width: 575px) {
    .search-double { padding: .35rem .35rem .35rem 1rem; }
    .search-field input { font-size: .9rem; }
    .search-btn { padding: .5rem .9rem; font-size: .85rem; }
}

/* ============================================================
   Filtres spécialités (badges)
   ============================================================ */
.filtres-specialites {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: center;
}

.filtre-badge {
    display: inline-flex;
    align-items: center;
    padding: .35rem .9rem;
    border-radius: 50px;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    background: rgba(255,255,255,.15);
    color: #fff;
    border: 1.5px solid rgba(255,255,255,.35);
    transition: background var(--transition), border-color var(--transition), color var(--transition);
    user-select: none;
}

.filtre-badge:hover {
    background: rgba(255,255,255,.28);
    border-color: rgba(255,255,255,.6);
}

.filtre-badge.active {
    background: #fff;
    color: var(--color-primary);
    border-color: #fff;
}

/* ============================================================
   Prochain créneau dans la liste
   ============================================================ */
.praticien-prochain {
    font-size: .82rem;
    color: var(--color-success);
    margin-top: .3rem;
    font-weight: 500;
}

.praticien-prochain.indispo {
    color: #aaa;
}

/* ============================================================
   Fiche praticien — layout 2 colonnes (sidebar + calendrier)
   ============================================================ */
.praticien-sidebar {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
    position: sticky;
    top: 80px;
}

.prat-sidebar-head { }

.prat-sidebar-photo {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--color-primary);
}

.prat-sidebar-avatar {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: rgba(30, 175, 206, .12);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--color-primary);
    border: 4px solid var(--color-primary);
    margin: 0 auto;
}

.prat-sidebar-nom {
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: .2rem;
    color: #1a1a2e;
}

.prat-sidebar-specialite {
    color: var(--color-primary);
    font-weight: 600;
    font-size: .9rem;
}

.prat-sidebar-note {
    font-size: .85rem;
}

.prat-note-val {
    font-weight: 700;
    color: #333;
    margin-left: .3rem;
}

.prat-note-nb {
    color: var(--color-muted);
    font-size: .8rem;
}

.prat-sidebar-infos {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

.prat-sidebar-infos li {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    font-size: .875rem;
    line-height: 1.4;
}

.prat-sidebar-infos li i {
    flex-shrink: 0;
    margin-top: .1rem;
    font-size: 1rem;
}

.prat-sidebar-desc {
    font-size: .875rem;
    line-height: 1.6;
    color: var(--color-text);
}

.prat-sidebar-garanties {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: .45rem;
    font-size: .82rem;
    color: var(--color-muted);
}

.prat-sidebar-garanties li {
    display: flex;
    align-items: center;
    gap: .5rem;
}

.prat-sidebar-garanties li i {
    font-size: .95rem;
    flex-shrink: 0;
}

.praticien-cal-wrapper {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.75rem;
}

@media (max-width: 991px) {
    .praticien-sidebar {
        position: static;
    }
}

/* ============================================================
   Avis patients
   ============================================================ */
.avis-section { }

.avis-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    padding: 1.1rem 1.25rem;
    height: 100%;
}

.avis-header {
    display: flex;
    align-items: center;
    gap: .75rem;
    margin-bottom: .6rem;
}

.avis-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    font-size: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.avis-nom {
    font-weight: 600;
    font-size: .9rem;
    color: var(--color-text);
}

.avis-date {
    font-size: .75rem;
    color: var(--color-muted);
}

.avis-etoiles {
    font-size: .85rem;
    white-space: nowrap;
}

.avis-commentaire {
    font-size: .875rem;
    color: var(--color-text);
    margin: 0;
    line-height: 1.5;
    font-style: italic;
}

/* ============================================================
   Praticien ligne — note/avis dans liste accueil
   ============================================================ */
.praticien-ligne-note {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    margin-top: 4px;
    font-size: .8rem;
    color: var(--color-muted);
}
.praticien-ligne-note strong {
    color: var(--color-text);
}

/* ============================================================
   Espace patient
   ============================================================ */
.patient-login-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, #153a62, var(--color-primary));
    color: #fff;
    font-size: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 4px 16px rgba(21,58,98,.28);
}

.patient-header {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1.5rem;
    box-shadow: var(--shadow-sm);
}

.patient-rdv-card {
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    display: flex;
    overflow: hidden;
    height: 100%;
    transition: box-shadow .2s;
}
.patient-rdv-card:hover { box-shadow: var(--shadow-md); }

.patient-rdv-couleur {
    width: 5px;
    flex-shrink: 0;
}

.patient-rdv-body {
    padding: 1rem 1.1rem;
    flex: 1;
}

.patient-rdv-prat {
    font-weight: 700;
    font-size: .95rem;
    color: var(--color-text);
}

.patient-rdv-spec {
    font-size: .78rem;
    color: var(--color-muted);
    margin-top: 1px;
}

.patient-rdv-datetime {
    font-size: .85rem;
    color: var(--color-text);
}

.patient-rdv-adresse,
.patient-rdv-motif {
    font-size: .78rem;
    color: var(--color-muted);
}

/* ============================================================
   Stats avancées — graphique barres
   ============================================================ */
.stats-barchart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    padding: 1rem 0 0;
    min-height: 200px;
    overflow-x: auto;
}

.stats-bar-col {
    flex: 1;
    min-width: 36px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.stats-bar-val {
    font-size: .7rem;
    font-weight: 700;
    color: var(--color-primary);
    min-height: 14px;
}

.stats-bar-fill {
    width: 100%;
    max-width: 48px;
    border-radius: 4px 4px 0 0;
    transition: height .4s ease;
    min-height: 3px;
    opacity: .85;
}
.stats-bar-fill:hover { opacity: 1; }

.stats-bar-label {
    font-size: .65rem;
    color: var(--color-muted);
    text-align: center;
    white-space: nowrap;
}

/* ============================================================
   Widget d'intégration
   ============================================================ */
.font-monospace { font-family: 'Courier New', monospace !important; font-size: .8rem; }
