/* ================================================================
   AutoÉcole.tn – Feuille de style principale
   Design : Modern Auto – Orange dynamique, moderne et accessible
   ================================================================ */

/* ── Variables ── */
:root {
    --c-primary:    #e67e22;
    --c-primary-l:  #f39c12;
    --c-accent:     #2c3e50;
    --c-accent-l:   #ecf0f1;
    --c-bg:         #f7f9fc;
    --c-surface:    #ffffff;
    --c-text:       #1a2433;
    --c-text-2:     #4a5568;
    --c-text-3:     #8896a9;
    --c-border:     #e2e8f0;
    --c-success:    #16a34a;
    --c-warning:    #d97706;
    --c-danger:     #dc2626;
    --c-info:       #2980b9;

    --font-sans:    'Plus Jakarta Sans', system-ui, sans-serif;
    --font-display: 'DM Serif Display', Georgia, serif;

    --radius-sm:  6px;
    --radius:     12px;
    --radius-lg:  20px;
    --radius-xl:  32px;

    --shadow-sm:  0 1px 4px rgba(0,0,0,.06);
    --shadow:     0 4px 20px rgba(0,0,0,.08);
    --shadow-lg:  0 12px 40px rgba(0,0,0,.12);
    --shadow-xl:  0 24px 64px rgba(0,0,0,.16);

    --trans: .2s ease;
    --nav-h: 68px;

    /* Aliases pour compatibilité */
    --primary:      #e67e22;
    --primary-dark: #b7410e;
    --primary-l:    #f39c12;
    --bg:           #f7f9fc;
    --surface:      #ffffff;
    --text:         #1a2433;
    --text-muted:   #4a5568;
    --border:       #e2e8f0;
    --radius-md:    12px;
    --shadow-md:    0 4px 20px rgba(0,0,0,.08);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
    font-family: var(--font-sans);
    color: var(--c-text);
    background: var(--c-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }

/* ── Container ── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--sm { max-width: 760px; }
.container--lg { max-width: 1400px; }

/* ================================================================
   NAVBAR
   ================================================================ */
.navbar {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255,255,255,.92);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--c-border);
    height: var(--nav-h);
    box-shadow: var(--shadow-sm);
}
.navbar__inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.navbar__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--c-primary);
    white-space: nowrap;
}
.logo-icon { font-size: 1.5rem; }
.logo-dot { color: var(--c-accent); }
.navbar__menu {
    display: flex;
    align-items: center;
    gap: 4px;
    flex-wrap: nowrap;
}
.nav-link {
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    color: var(--c-text-2);
    font-weight: 500;
    font-size: .92rem;
    transition: color var(--trans), background var(--trans);
    display: flex;
    align-items: center;
    gap: 6px;
}
.nav-link:hover, .nav-link.active {
    color: var(--c-primary);
    background: var(--c-accent-l);
}
.nav-link--accent { color: var(--c-primary); font-weight: 700; }
.nav-link--user { gap: 8px; }
.nav-caret { font-size: .7rem; transition: transform var(--trans); }
.nav-dropdown { position: relative; }
.nav-dropdown:hover .nav-caret { transform: rotate(180deg); }
.nav-dropdown__menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: all var(--trans);
}
.nav-dropdown:hover .nav-dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.dropdown-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    font-size: .9rem;
    color: var(--c-text-2);
    transition: background var(--trans);
}
.dropdown-item:hover { background: var(--c-bg); }
.dropdown-item--danger { color: var(--c-danger); }
.navbar__burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.navbar__burger span {
    width: 22px;
    height: 2px;
    background: var(--c-text);
    border-radius: 2px;
    transition: all var(--trans);
    display: block;
}

/* ================================================================
   BUTTONS
   ================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 50px;
    font-weight: 600;
    font-size: .92rem;
    transition: all var(--trans);
    cursor: pointer;
    border: 2px solid transparent;
    white-space: nowrap;
}
.btn--primary {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
    color: #fff;
    box-shadow: 0 4px 16px rgba(13,92,138,.3);
}
.btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(13,92,138,.4);
}
.btn--outline {
    border-color: var(--c-primary);
    color: var(--c-primary);
    background: transparent;
}
.btn--outline:hover { background: var(--c-primary); color: #fff; }
.btn--accent { background: var(--c-accent); color: #fff; }
.btn--accent:hover { background: #0097a7; }
.btn--danger { background: var(--c-danger); color: #fff; }
.btn--success { background: var(--c-success); color: #fff; }
.btn--ghost { color: var(--c-text-2); }
.btn--ghost:hover { background: var(--c-bg); color: var(--c-primary); }
.btn--sm { padding: 8px 18px; font-size: .85rem; }
.btn--lg { padding: 15px 32px; font-size: 1.05rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

/* ================================================================
   FLASH MESSAGES
   ================================================================ */
.flash {
    padding: 0;
    position: relative;
    z-index: 900;
    border-bottom: 2px solid transparent;
}
.flash--succes { background: #f0fdf4; border-color: var(--c-success); }
.flash--erreur { background: #fef2f2; border-color: var(--c-danger); }
.flash--info   { background: #eff6ff; border-color: var(--c-info); }
.flash__inner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    font-size: .93rem;
    font-weight: 500;
}
.flash--succes .flash__inner { color: #166534; }
.flash--erreur .flash__inner { color: #991b1b; }
.flash--info   .flash__inner { color: #1e40af; }
.flash__inner p { flex: 1; }
.flash__close { opacity: .6; transition: opacity var(--trans); font-size: 1rem; }
.flash__close:hover { opacity: 1; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
    background: linear-gradient(135deg, #b7410e 0%, #e67e22 50%, #f39c12 100%);
    color: #fff;
    padding: 80px 0 100px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero__inner {
    position: relative;
    z-index: 1;
    text-align: center;
}
.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255,255,255,.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.25);
    border-radius: 50px;
    padding: 8px 18px;
    font-size: .85rem;
    font-weight: 600;
    margin-bottom: 24px;
    letter-spacing: .5px;
}
.hero__title {
    font-family: var(--font-display);
    font-size: clamp(2.4rem, 6vw, 4rem);
    line-height: 1.2;
    margin-bottom: 20px;
    letter-spacing: -.5px;
}
.hero__title em { font-style: italic; color: var(--c-accent); }
.hero__subtitle {
    font-size: 1.15rem;
    opacity: .85;
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.7;
}

/* Search bar hero */
.search-hero {
    background: #fff;
    border-radius: var(--radius-xl);
    padding: 10px;
    display: flex;
    gap: 8px;
    max-width: 760px;
    margin: 0 auto 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,.25);
    flex-wrap: wrap;
}
.search-hero__field {
    flex: 1;
    min-width: 160px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: var(--radius-lg);
    transition: background var(--trans);
}
.search-hero__field:hover { background: var(--c-bg); }
.search-hero__field i { color: var(--c-primary); font-size: 1rem; flex-shrink: 0; }
.search-hero__field input,
.search-hero__field select {
    border: none;
    outline: none;
    width: 100%;
    font-size: .95rem;
    color: var(--c-text);
    background: transparent;
}
.search-hero__field select { cursor: pointer; }
.search-hero__sep { width: 1px; background: var(--c-border); margin: 8px 0; align-self: stretch; }
.search-hero__btn {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: #fff;
    border: none;
    border-radius: var(--radius-lg);
    padding: 14px 28px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all var(--trans);
    white-space: nowrap;
}
.search-hero__btn:hover { transform: scale(1.03); box-shadow: 0 8px 24px rgba(13,92,138,.4); }

.hero__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
}
.hero__tag {
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50px;
    padding: 6px 14px;
    font-size: .82rem;
    color: rgba(255,255,255,.9);
    transition: all var(--trans);
}
.hero__tag:hover { background: rgba(255,255,255,.2); }
.hero__stats {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(255,255,255,.15);
    flex-wrap: wrap;
}
.hero__stat-num { font-size: 2.2rem; font-weight: 800; display: block; }
.hero__stat-lbl { font-size: .88rem; opacity: .75; margin-top: 4px; }

/* ================================================================
   CARDS SPÉCIALISTE
   ================================================================ */
.specialist-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    overflow: hidden;
    transition: all var(--trans);
    display: flex;
    flex-direction: column;
}
.specialist-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--c-primary);
}
.specialist-card__body {
    padding: 20px;
    display: flex;
    gap: 16px;
    flex: 1;
}
.specialist-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: var(--radius);
    object-fit: cover;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--c-accent-l), #dbeafe);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    border: 2px solid var(--c-border);
}
.specialist-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: calc(var(--radius) - 2px);
}
.specialist-card__info { flex: 1; min-width: 0; }
.specialist-card__specialty {
    font-size: .78rem;
    font-weight: 700;
    color: var(--c-primary);
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 4px;
}
.specialist-card__name {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 6px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.specialist-card__location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .85rem;
    color: var(--c-text-2);
    margin-bottom: 10px;
}
.specialist-card__rating {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .88rem;
}
.stars { color: #f59e0b; letter-spacing: 1px; }
.rating-count { color: var(--c-text-3); font-size: .82rem; }
.specialist-card__badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 0 20px 16px;
}
.badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 600;
}
.badge--cnam    { background: #fef3c7; color: #92400e; }
.badge--domicile{ background: #e0f2fe; color: #075985; }
.badge--24h     { background: #dcfce7; color: #166534; }
.badge--video   { background: #f3e8ff; color: #6b21a8; }
.specialist-card__footer {
    padding: 14px 20px;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.specialist-card__tarif {
    font-size: .88rem;
    color: var(--c-text-2);
}
.specialist-card__tarif strong { color: var(--c-primary); font-size: 1rem; }

/* ================================================================
   SEARCH PAGE
   ================================================================ */
.search-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    padding: 32px 0 64px;
    align-items: start;
}
.search-filters {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    padding: 24px;
    position: sticky;
    top: calc(var(--nav-h) + 16px);
}
.filters-title {
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 20px;
    color: var(--c-primary);
    display: flex;
    align-items: center;
    gap: 8px;
}
.filter-group { margin-bottom: 20px; }
.filter-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: .6px;
    margin-bottom: 8px;
}
.filter-group input[type="text"],
.filter-group select {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: .92rem;
    transition: border-color var(--trans);
    outline: none;
    background: var(--c-bg);
}
.filter-group input:focus,
.filter-group select:focus { border-color: var(--c-primary); background: #fff; }
.filter-checkboxes { display: flex; flex-direction: column; gap: 8px; }
.filter-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: .9rem;
    color: var(--c-text-2);
    padding: 6px 0;
    transition: color var(--trans);
}
.filter-check:hover { color: var(--c-primary); }
.filter-check input { accent-color: var(--c-primary); width: 16px; height: 16px; cursor: pointer; }

.search-results { min-width: 0; }
.results-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.results-count { font-size: .95rem; color: var(--c-text-2); }
.results-count strong { color: var(--c-text); font-size: 1.1rem; }
.results-sort select {
    padding: 8px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: .9rem;
    outline: none;
}
.results-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* ================================================================
   PROFIL SPÉCIALISTE
   ================================================================ */
.profile-hero {
    background: linear-gradient(135deg, #b7410e, #f39c12);
    color: #fff;
    padding: 48px 0;
}
.profile-hero__inner {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.profile-avatar {
    width: 140px;
    height: 140px;
    border-radius: var(--radius-lg);
    border: 4px solid rgba(255,255,255,.3);
    object-fit: cover;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    flex-shrink: 0;
}
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; border-radius: calc(var(--radius-lg) - 4px); }
.profile-info { flex: 1; }
.profile-specialty-tag {
    display: inline-block;
    background: rgba(255,255,255,.2);
    border-radius: 50px;
    padding: 5px 14px;
    font-size: .82rem;
    font-weight: 700;
    letter-spacing: .5px;
    margin-bottom: 12px;
}
.profile-name {
    font-family: var(--font-display);
    font-size: 2.2rem;
    margin-bottom: 12px;
    line-height: 1.2;
}
.profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    opacity: .9;
    font-size: .92rem;
    margin-bottom: 20px;
}
.profile-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}
.profile-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.profile-content { padding: 48px 0; }
.profile-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
    align-items: start;
}
.profile-main { min-width: 0; }
.profile-sidebar { position: sticky; top: calc(var(--nav-h) + 16px); }

.card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    border: 1px solid var(--c-border);
    padding: 28px;
    margin-bottom: 24px;
}
.card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--c-border);
    color: var(--c-primary);
    display: flex;
    align-items: center;
    gap: 10px;
}
.card__title i { font-size: 1rem; }

.contact-list { display: flex; flex-direction: column; gap: 14px; }
.contact-item {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: .93rem;
    color: var(--c-text-2);
}
.contact-item__icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius);
    background: var(--c-accent-l);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-primary);
    font-size: .9rem;
    flex-shrink: 0;
}

/* ================================================================
   BOOKING FORM
   ================================================================ */
.booking-card {
    background: linear-gradient(135deg, var(--c-primary), var(--c-primary-l));
    border-radius: var(--radius-lg);
    padding: 28px;
    color: #fff;
    margin-bottom: 20px;
}
.booking-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 20px; }
.form-group { margin-bottom: 16px; }
.form-label {
    display: block;
    font-size: .82rem;
    font-weight: 700;
    margin-bottom: 6px;
    opacity: .9;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.form-control {
    width: 100%;
    padding: 11px 14px;
    border: 2px solid rgba(255,255,255,.25);
    border-radius: var(--radius);
    background: rgba(255,255,255,.12);
    color: #fff;
    font-size: .93rem;
    outline: none;
    transition: border-color var(--trans), background var(--trans);
}
.form-control::placeholder { color: rgba(255,255,255,.55); }
.form-control:focus {
    border-color: rgba(255,255,255,.7);
    background: rgba(255,255,255,.2);
}
.form-control option { color: var(--c-text); background: #fff; }

/* Créneaux */
.slots-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 12px;
}
.slot {
    padding: 8px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: var(--radius);
    background: rgba(255,255,255,.1);
    color: #fff;
    font-size: .82rem;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--trans);
    text-align: center;
}
.slot:hover  { background: rgba(255,255,255,.25); border-color: rgba(255,255,255,.6); }
.slot.active { background: #fff; color: var(--c-primary); border-color: #fff; }
.slot:disabled { opacity: .4; cursor: not-allowed; }
.slots-loading { text-align: center; opacity: .7; padding: 16px 0; font-size: .9rem; }

/* ================================================================
   AVIS / REVIEWS
   ================================================================ */
.review-card {
    background: var(--c-bg);
    border-radius: var(--radius);
    padding: 20px;
    margin-bottom: 16px;
    border-left: 3px solid var(--c-primary);
}
.review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.reviewer-name { font-weight: 700; font-size: .92rem; }
.review-date { font-size: .8rem; color: var(--c-text-3); }
.review-body { color: var(--c-text-2); font-size: .92rem; line-height: 1.6; }
.rating-summary {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 24px;
    background: var(--c-bg);
    border-radius: var(--radius-lg);
    margin-bottom: 24px;
}
.rating-big { font-size: 3.5rem; font-weight: 800; color: var(--c-primary); line-height: 1; }
.rating-bars { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.rating-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: .82rem;
    color: var(--c-text-2);
}
.rating-bar__track {
    flex: 1;
    height: 6px;
    background: var(--c-border);
    border-radius: 3px;
    overflow: hidden;
}
.rating-bar__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
    border-radius: 3px;
    transition: width .6s ease;
}

/* ================================================================
   ADMIN
   ================================================================ */
.admin-layout {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
}
.admin-sidebar {
    background: var(--c-primary);
    color: #fff;
    padding: 24px 0;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-sidebar__logo {
    padding: 0 24px 24px;
    border-bottom: 1px solid rgba(255,255,255,.15);
    margin-bottom: 16px;
    font-weight: 800;
    font-size: 1.1rem;
}
.admin-nav-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 24px;
    color: rgba(255,255,255,.8);
    font-size: .92rem;
    font-weight: 500;
    transition: all var(--trans);
}
.admin-nav-link:hover, .admin-nav-link.active {
    background: rgba(255,255,255,.1);
    color: #fff;
    padding-left: 32px;
}
.admin-nav-link i { width: 18px; text-align: center; }
.admin-content { padding: 32px; background: var(--c-bg); }
.admin-page-title {
    font-size: 1.6rem;
    font-weight: 800;
    margin-bottom: 28px;
    color: var(--c-text);
}

.stats-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; margin-bottom: 32px; }
.stat-card {
    background: var(--c-surface);
    border-radius: var(--radius-lg);
    padding: 24px;
    border: 1px solid var(--c-border);
    position: relative;
    overflow: hidden;
}
.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--c-primary), var(--c-accent));
}
.stat-card__icon { font-size: 1.6rem; margin-bottom: 12px; }
.stat-card__num { font-size: 2rem; font-weight: 800; color: var(--c-primary); line-height: 1; }
.stat-card__lbl { font-size: .85rem; color: var(--c-text-3); margin-top: 6px; }

.data-table { width: 100%; border-collapse: collapse; }
.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--c-bg);
    font-size: .8rem;
    font-weight: 700;
    color: var(--c-text-3);
    text-transform: uppercase;
    letter-spacing: .6px;
    border-bottom: 1px solid var(--c-border);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border);
    font-size: .9rem;
    vertical-align: middle;
}
.data-table tbody tr:hover { background: var(--c-bg); }

.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 50px;
    font-size: .75rem;
    font-weight: 700;
}
.status-badge--valide      { background: #dcfce7; color: #166534; }
.status-badge--en_attente  { background: #fef3c7; color: #92400e; }
.status-badge--rejete      { background: #fee2e2; color: #991b1b; }
.status-badge--confirme    { background: #dbeafe; color: #1e40af; }
.status-badge--annule      { background: #f1f5f9; color: #64748b; }
.status-badge--termine     { background: #f3e8ff; color: #6b21a8; }

/* ================================================================
   FORMS (auth, inscription)
   ================================================================ */
.auth-page {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}
.auth-visual {
    background: linear-gradient(135deg, #b7410e, #f39c12);
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #fff;
}
.auth-visual__title { font-family: var(--font-display); font-size: 2.5rem; margin-bottom: 16px; line-height: 1.2; }
.auth-visual__text { opacity: .85; line-height: 1.7; font-size: 1.05rem; }
.auth-features { margin-top: 40px; display: flex; flex-direction: column; gap: 14px; }
.auth-feature {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    font-size: .93rem;
    opacity: .9;
}
.auth-feature i { margin-top: 2px; color: var(--c-accent); font-size: 1.1rem; flex-shrink: 0; }
.auth-form-panel {
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fff;
    overflow-y: auto;
}
.auth-form-panel h1 { font-size: 1.8rem; font-weight: 800; margin-bottom: 8px; }
.auth-form-panel p.subtitle { color: var(--c-text-2); margin-bottom: 32px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group--white .form-label { color: var(--c-text-2); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.form-group--white .form-control {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-bg);
    color: var(--c-text);
    font-size: .93rem;
    outline: none;
    transition: border-color var(--trans);
}
.form-group--white .form-control:focus { border-color: var(--c-primary); background: #fff; }
.form-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    color: var(--c-text-3);
    font-size: .85rem;
}
.form-divider::before,
.form-divider::after { content: ''; flex: 1; height: 1px; background: var(--c-border); }

/* ================================================================
   PAGINATION
   ================================================================ */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 40px;
    flex-wrap: wrap;
}
.page-btn {
    width: 40px;
    height: 40px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--c-border);
    background: var(--c-surface);
    font-size: .9rem;
    color: var(--c-text-2);
    transition: all var(--trans);
    font-weight: 500;
    cursor: pointer;
}
.page-btn:hover { border-color: var(--c-primary); color: var(--c-primary); }
.page-btn.active { background: var(--c-primary); color: #fff; border-color: var(--c-primary); }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ================================================================
   MAP
   ================================================================ */
#map { height: 300px; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-border); }

/* ================================================================
   FOOTER
   ================================================================ */
.footer {
    background: #0a1628;
    color: rgba(255,255,255,.8);
    padding: 60px 0 0;
    margin-top: 80px;
}
.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 48px;
    padding-bottom: 48px;
    border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer__logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    font-size: 1.2rem;
    margin-bottom: 16px;
    color: #fff;
}
.footer__brand p {
    font-size: .9rem;
    line-height: 1.7;
    opacity: .7;
    margin-bottom: 20px;
}
.footer__socials { display: flex; gap: 12px; }
.footer__socials a {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,.8);
    transition: all var(--trans);
    font-size: .9rem;
}
.footer__socials a:hover { background: var(--c-primary); color: #fff; }
.footer__col h4 { color: #fff; font-weight: 700; margin-bottom: 16px; font-size: .95rem; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: rgba(255,255,255,.65); font-size: .88rem; transition: color var(--trans); }
.footer__col a:hover { color: var(--c-accent); }
.footer__bottom { padding: 20px 0; }
.footer__bottom-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}
.footer__bottom p { font-size: .82rem; opacity: .5; }

/* ================================================================
   EMPTY STATE
   ================================================================ */
.empty-state {
    text-align: center;
    padding: 80px 24px;
    color: var(--c-text-2);
}
.empty-state__icon { font-size: 4rem; margin-bottom: 20px; opacity: .4; }
.empty-state__title { font-size: 1.3rem; font-weight: 700; margin-bottom: 8px; color: var(--c-text); }
.empty-state__text { font-size: .95rem; max-width: 400px; margin: 0 auto 24px; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .search-layout { grid-template-columns: 1fr; }
    .search-filters { position: static; }
    .profile-grid { grid-template-columns: 1fr; }
    .profile-sidebar { position: static; }
    .admin-layout { grid-template-columns: 1fr; }
    .admin-sidebar { position: static; height: auto; }
    .footer__grid { grid-template-columns: 1fr 1fr; }
    .auth-page { grid-template-columns: 1fr; }
    .auth-visual { display: none; }
}

@media (max-width: 768px) {
    .navbar__menu { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: #fff; padding: 16px; border-bottom: 1px solid var(--c-border); box-shadow: var(--shadow); }
    .navbar__menu.open { display: flex; }
    .navbar__burger { display: flex; }
    .hero { padding: 48px 0 64px; }
    .hero__stats { gap: 24px; margin-top: 40px; }
    .search-hero { flex-direction: column; border-radius: var(--radius-lg); }
    .search-hero__sep { display: none; }
    .results-grid { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer__grid { grid-template-columns: 1fr; }
    .profile-hero__inner { flex-direction: column; }
    .slots-grid { grid-template-columns: repeat(4, 1fr); }
    .auth-form-panel { padding: 32px 20px; }
}

/* ================================================================
   ANIMATIONS
   ================================================================ */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: .5; }
}
.animate-fade-up { animation: fadeInUp .5s ease both; }
.animate-pulse   { animation: pulse 1.5s ease-in-out infinite; }

/* Loading skeleton */
.skeleton {
    background: linear-gradient(90deg, var(--c-border) 25%, #e2e8f0 50%, var(--c-border) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: var(--radius);
}
@keyframes shimmer {
    from { background-position: 200% 0; }
    to   { background-position: -200% 0; }
}

/* ================================================================
   AUTH PAGES
   ================================================================ */
.auth-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background: var(--bg);
}
.auth-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 2.5rem 2rem;
    width: 100%;
    max-width: 460px;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-logo a { text-decoration: none; }
.auth-title { font-size: 1.5rem; font-weight: 700; text-align: center; margin-bottom: 0.4rem; }
.auth-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 1.5rem; font-size: 0.9rem; }
.auth-divider {
    display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0;
    color: var(--text-muted); font-size: 0.8rem;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}
.auth-links { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label-link { float: right; font-size: 0.8rem; color: var(--primary); text-decoration: none; font-weight: 400; }
.form-label-link:hover { text-decoration: underline; }
.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 2.5rem; }
.toggle-pwd {
    position: absolute; right: 0.6rem; top: 50%; transform: translateY(-50%);
    background: none; border: none; color: var(--text-muted); cursor: pointer; padding: 0.25rem;
}

/* ================================================================
   ADMIN LAYOUT
   ================================================================ */
.admin-layout {
    display: flex;
    min-height: 100vh;
}
.admin-nav {
    width: 240px;
    min-height: 100vh;
    background: var(--primary-dark);
    padding: 1.5rem 0;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    position: sticky;
    top: 0;
}
.admin-nav-brand a {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0 1.5rem 1.5rem;
    color: white; text-decoration: none; font-weight: 700; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 1rem;
}
.admin-nav-links { list-style: none; padding: 0; margin: 0; flex: 1; }
.admin-nav-links li a {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    color: rgba(255,255,255,0.7);
    text-decoration: none; font-size: 0.9rem;
    transition: all 0.2s;
}
.admin-nav-links li a:hover, .admin-nav-links li a.active {
    background: rgba(255,255,255,0.1);
    color: white;
}
.admin-nav-footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex; flex-direction: column; gap: 0.5rem;
}
.admin-nav-footer a { color: rgba(255,255,255,0.6); font-size: 0.8rem; text-decoration: none; }
.admin-nav-footer a:hover { color: white; }
.admin-nav-footer .text-danger { color: #fca5a5; }
.admin-content {
    flex: 1;
    padding: 2rem;
    background: var(--bg);
    overflow-y: auto;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}
.admin-header h1 { margin: 0; font-size: 1.5rem; }

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}
.admin-stat-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 1.25rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--border);
}
.admin-stat-icon {
    width: 48px; height: 48px; border-radius: var(--radius-md);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.admin-stat-num { font-size: 1.6rem; font-weight: 700; color: var(--text); line-height: 1; }
.admin-stat-label { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.2rem; }

.admin-section { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.admin-section-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.admin-section-header h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: 0.5rem; }

.admin-filters {
    display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap;
    background: white; padding: 1rem; border-radius: var(--radius-lg);
    border: 1px solid var(--border); margin-bottom: 1rem;
}

.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.admin-table th {
    text-align: left; padding: 0.75rem 1rem;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    color: var(--text-muted); letter-spacing: 0.05em;
    background: var(--bg); border-bottom: 1px solid var(--border);
}
.admin-table td { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: var(--bg); }

.td-user { display: flex; align-items: center; gap: 0.75rem; }
.td-avatar {
    width: 36px; height: 36px; border-radius: 50%;
    background: var(--primary); color: white;
    font-size: 0.75rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.td-name { font-weight: 500; }
.td-email { font-size: 0.8rem; color: var(--text-muted); }
.td-actions { display: flex; align-items: center; gap: 0.4rem; flex-wrap: wrap; }

.badge-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 20px; height: 20px; padding: 0 6px;
    background: #ef4444; color: white; border-radius: 999px; font-size: 0.75rem; font-weight: 600;
}

/* Avis modération */
.avis-mod-card {
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border);
}
.avis-mod-card:last-child { border-bottom: none; }
.avis-mod-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 0.5rem; flex-wrap: wrap; gap: 0.5rem; }
.avis-mod-comment { color: var(--text); font-size: 0.9rem; margin: 0.5rem 0; line-height: 1.5; }
.avis-mod-actions { display: flex; gap: 0.5rem; margin-top: 0.75rem; }

/* Admin detail */
.admin-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
.detail-section { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1rem; }
.detail-section h3 { font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 1rem; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th { text-align: left; padding: 0.5rem; font-size: 0.85rem; color: var(--text-muted); font-weight: 500; width: 40%; }
.detail-table td { padding: 0.5rem; font-size: 0.9rem; border-top: 1px solid var(--border); }
.admin-stat-mini { display: flex; justify-content: space-between; padding: 0.4rem 0; font-size: 0.875rem; border-bottom: 1px solid var(--border); }
.admin-stat-mini:last-child { border-bottom: none; }

/* ================================================================
   PROFIL PUBLIC
   ================================================================ */
.profil-header-section {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    padding: 2.5rem 0;
    color: white;
}
.profil-header {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    flex-wrap: wrap;
}
.profil-photo-wrap { flex-shrink: 0; }
.profil-photo {
    width: 120px; height: 120px; border-radius: 50%;
    object-fit: cover; border: 4px solid rgba(255,255,255,0.3);
}
.profil-photo-placeholder {
    width: 120px; height: 120px; border-radius: 50%;
    background: rgba(255,255,255,0.2); border: 4px solid rgba(255,255,255,0.3);
    display: flex; align-items: center; justify-content: center;
    font-size: 2.5rem; font-weight: 700; color: white;
}
.profil-info { flex: 1; }
.profil-breadcrumb { font-size: 0.8rem; opacity: 0.7; margin-bottom: 0.5rem; }
.profil-breadcrumb a { color: rgba(255,255,255,0.8); text-decoration: none; }
.profil-breadcrumb a:hover { color: white; }
.profil-name { font-size: 2rem; font-weight: 700; color: white; margin-bottom: 0.3rem; }
.profil-specialty { opacity: 0.85; font-size: 1rem; margin-bottom: 0.75rem; }
.profil-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: 1rem; }
.meta-item { display: flex; align-items: center; gap: 0.4rem; font-size: 0.9rem; opacity: 0.9; }
.rating-inline { display: flex; align-items: center; gap: 0.4rem; }
.stars-sm { color: #fbbf24; font-size: 0.9rem; }
.profil-badges { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.badge-lg { padding: 0.4rem 1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 500; }
.profil-contacts {
    display: flex; flex-direction: column; gap: 0.5rem; flex-shrink: 0;
    min-width: 200px;
}
.contact-btn {
    display: flex; align-items: center; gap: 0.5rem;
    padding: 0.6rem 1rem; border-radius: var(--radius-md);
    font-size: 0.875rem; font-weight: 500; text-decoration: none;
    transition: all 0.2s;
}
.contact-tel, .contact-tel2 { background: rgba(255,255,255,0.15); color: white; border: 1px solid rgba(255,255,255,0.25); }
.contact-tel:hover, .contact-tel2:hover { background: rgba(255,255,255,0.25); }
.contact-wa { background: #25d366; color: white; }
.contact-wa:hover { background: #1ebe5a; }
.contact-rdv { background: white; color: var(--primary); font-weight: 600; }
.contact-rdv:hover { background: var(--bg); }

.profil-content { padding: 2rem 0; }
.profil-grid { display: grid; grid-template-columns: 1fr 340px; gap: 2rem; align-items: start; }
.profil-main {}
.profil-section { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow-sm); }
.section-heading { font-size: 1.1rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text); display: flex; align-items: center; gap: 0.5rem; }
.avis-count { font-size: 0.8rem; background: var(--bg); border-radius: 999px; padding: 0.2rem 0.6rem; font-weight: 400; color: var(--text-muted); }
.profil-description { line-height: 1.7; color: var(--text); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-item { display: flex; align-items: flex-start; gap: 0.75rem; }
.info-icon { font-size: 1.25rem; flex-shrink: 0; margin-top: 0.1rem; }
.info-label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.info-value { font-size: 0.9rem; color: var(--text); }
.info-value a { color: var(--primary); text-decoration: none; }
.profil-map { height: 280px; border-radius: var(--radius-md); overflow: hidden; background: var(--bg); }
.avis-list { display: flex; flex-direction: column; gap: 1rem; }
.avis-card { background: var(--bg); border-radius: var(--radius-lg); padding: 1rem; }
.avis-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.avis-author { display: flex; align-items: center; gap: 0.6rem; }
.avis-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: white; font-size: 0.75rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avis-name { font-weight: 500; font-size: 0.875rem; }
.avis-date { font-size: 0.75rem; color: var(--text-muted); }
.avis-stars { color: #fbbf24; font-size: 1rem; }
.avis-comment { font-size: 0.875rem; line-height: 1.6; color: var(--text); margin: 0.5rem 0 0; }
.avis-verified { font-size: 0.75rem; color: #16a34a; display: block; margin-top: 0.4rem; }

/* RDV Sidebar */
.rdv-card { background: white; border-radius: var(--radius-xl); border: 2px solid var(--primary); padding: 1.5rem; box-shadow: var(--shadow-md); position: sticky; top: 100px; }
.rdv-title { display: flex; align-items: center; gap: 0.5rem; font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--primary); }
.dates-list { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 0.5rem; }
.date-btn {
    display: flex; flex-direction: column; align-items: center;
    padding: 0.5rem 0.6rem; min-width: 52px;
    background: var(--bg); border: 1.5px solid var(--border); border-radius: var(--radius-md);
    cursor: pointer; transition: all 0.2s; font-size: 0.75rem; color: var(--text);
}
.date-btn:hover { border-color: var(--primary); color: var(--primary); }
.date-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.date-jour-sem { font-size: 0.7rem; text-transform: uppercase; opacity: 0.7; }
.date-jour { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.date-mois { font-size: 0.7rem; }
.creneaux-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.creneau-btn {
    padding: 0.4rem 0.75rem; background: var(--bg); border: 1.5px solid var(--border);
    border-radius: var(--radius-md); cursor: pointer; font-size: 0.85rem; color: var(--text);
    transition: all 0.2s;
}
.creneau-btn:hover { border-color: var(--primary); color: var(--primary); }
.creneau-btn.active { background: var(--primary); border-color: var(--primary); color: white; }
.rdv-unavailable { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.rdv-note { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.5rem; display: flex; align-items: flex-start; gap: 0.4rem; }
.profil-views { text-align: center; color: var(--text-muted); font-size: 0.8rem; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: 0.4rem; }

/* ================================================================
   STATS SECTION (home)
   ================================================================ */
.stats-section { background: white; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat-item {}
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.25rem; }

/* ================================================================
   SEARCH PAGE
   ================================================================ */
.search-page { display: grid; grid-template-columns: 280px 1fr; gap: 2rem; max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.search-sidebar {}
.filters-card { background: white; border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 1.25rem; box-shadow: var(--shadow-sm); position: sticky; top: 90px; }
.filters-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; }
.filter-group { margin-bottom: 1rem; }
.filter-label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-muted); margin-bottom: 0.4rem; }
.filter-checkboxes { display: flex; flex-direction: column; gap: 0.4rem; }

.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: 0.5rem; }
.results-title { font-size: 1.3rem; font-weight: 600; margin: 0; }
.results-count { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.2rem; }
.filter-toggle { display: none; }

.specialists-list { display: flex; flex-direction: column; gap: 1rem; }
.specialist-card-h {
    display: flex; gap: 1.25rem;
    background: white; border-radius: var(--radius-lg); border: 1px solid var(--border);
    padding: 1.25rem; box-shadow: var(--shadow-sm); transition: box-shadow 0.2s;
}
.specialist-card-h:hover { box-shadow: var(--shadow-md); }
.specialist-card-photo { flex-shrink: 0; }
.specialist-card-photo img, .photo-placeholder {
    width: 90px; height: 90px; border-radius: var(--radius-lg); object-fit: cover;
}
.photo-placeholder {
    background: var(--primary); color: white; font-size: 1.25rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.specialist-card-body { flex: 1; }
.specialist-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.specialist-card-name { font-size: 1.1rem; font-weight: 600; margin: 0; }
.specialist-card-name a { color: var(--text); text-decoration: none; }
.specialist-card-name a:hover { color: var(--primary); }
.specialist-card-specialty { color: var(--primary); font-size: 0.875rem; margin: 0.2rem 0 0.3rem; }
.specialist-card-location { display: flex; align-items: center; gap: 0.3rem; color: var(--text-muted); font-size: 0.8rem; margin: 0; }
.rating-big { display: flex; align-items: center; gap: 0.5rem; }
.rating-num { font-size: 1.5rem; font-weight: 700; color: var(--text); }
.rating-count { font-size: 0.75rem; color: var(--text-muted); }
.no-rating { font-size: 0.75rem; color: var(--text-muted); background: var(--bg); padding: 0.2rem 0.5rem; border-radius: 999px; }
.specialist-card-desc { color: var(--text-muted); font-size: 0.85rem; line-height: 1.5; margin: 0.5rem 0; }
.specialist-card-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }
.specialist-card-actions { display: flex; gap: 0.5rem; }

/* ================================================================
   STATUT BADGES
   ================================================================ */
.statut-badge {
    display: inline-flex; align-items: center;
    padding: 0.25rem 0.7rem; border-radius: 999px; font-size: 0.78rem; font-weight: 600;
}
.statut-valide     { background: rgba(22,163,74,0.1);  color: #15803d; }
.statut-en_attente { background: rgba(234,179,8,0.1);  color: #a16207; }
.statut-rejete     { background: rgba(239,68,68,0.1);  color: #dc2626; }
.statut-suspendu   { background: rgba(107,114,128,0.1);color: #4b5563; }
.statut-confirme   { background: rgba(22,163,74,0.1);  color: #15803d; }
.statut-annule     { background: rgba(239,68,68,0.1);  color: #dc2626; }
.statut-termine    { background: rgba(107,114,128,0.1);color: #4b5563; }

/* ================================================================
   BUTTONS extra
   ================================================================ */
.btn-success { background: #16a34a; color: white; border: none; padding: 0.5rem 1rem; border-radius: var(--radius-md); cursor: pointer; font-size: 0.875rem; font-weight: 500; transition: background 0.2s; }
.btn-success:hover { background: #15803d; }
.btn-danger  { background: #dc2626; color: white; border: none; padding: 0.5rem 1rem; border-radius: var(--radius-md); cursor: pointer; font-size: 0.875rem; font-weight: 500; transition: background 0.2s; }
.btn-danger:hover { background: #b91c1c; }
.btn-xs { padding: 0.25rem 0.6rem !important; font-size: 0.75rem !important; }
.btn-sm { padding: 0.4rem 0.8rem; font-size: 0.85rem; }
.btn-ghost { background: transparent; border: 1.5px solid var(--border); color: var(--text); padding: 0.5rem 1rem; border-radius: var(--radius-md); cursor: pointer; text-decoration: none; font-size: 0.875rem; font-weight: 500; transition: all 0.2s; display: inline-flex; align-items: center; gap: 0.4rem; }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }

/* Badges */
.badge { display: inline-flex; align-items: center; padding: 0.15rem 0.5rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; }
.badge-cnam    { background: rgba(22,163,74,0.1);  color: #15803d; }
.badge-domicile{ background: rgba(13,92,138,0.1);  color: var(--primary); }
.badge-24h     { background: rgba(234,179,8,0.1);  color: #a16207; }
.badge-sm      { font-size: 0.7rem; }

/* Alerts */
.alert { padding: 0.875rem 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: 0.875rem; line-height: 1.5; }
.alert p, .alert ul { margin: 0; }
.alert ul { padding-left: 1.25rem; }
.alert-error   { background: rgba(239,68,68,0.08);  border: 1px solid rgba(239,68,68,0.25);  color: #dc2626; }
.alert-success { background: rgba(22,163,74,0.08);  border: 1px solid rgba(22,163,74,0.25);  color: #16a34a; }
.alert-info    { background: rgba(13,92,138,0.06);  border: 1px solid rgba(13,92,138,0.2);   color: var(--primary); }
.alert-warning { background: rgba(234,179,8,0.08);  border: 1px solid rgba(234,179,8,0.25);  color: #a16207; }

/* Forms */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-group { margin-bottom: 1rem; }
.form-label { display: block; font-size: 0.875rem; font-weight: 500; color: var(--text); margin-bottom: 0.4rem; }
.form-control {
    width: 100%; padding: 0.6rem 0.875rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-md);
    font-size: 0.9rem; color: var(--text); background: white;
    transition: border-color 0.2s; box-sizing: border-box;
    font-family: inherit;
}
.form-control:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(13,92,138,0.08); }
.form-control::placeholder { color: #9ca3af; }
textarea.form-control { resize: vertical; min-height: 100px; }
select.form-control { cursor: pointer; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; display: block; }
.checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; cursor: pointer; font-size: 0.875rem; }
.checkbox-label input { margin-top: 0.15rem; flex-shrink: 0; }

/* RDV form page */
.rdv-form-page {}
.rdv-summary-card {
    display: flex; align-items: center; gap: 1.5rem;
    background: white; border-radius: var(--radius-lg); border: 1px solid var(--border);
    padding: 1.25rem; box-shadow: var(--shadow-sm);
}
.rdv-summary-photo img { width: 70px; height: 70px; border-radius: 50%; object-fit: cover; }
.photo-placeholder-sm { width: 70px; height: 70px; border-radius: 50%; background: var(--primary); color: white; font-size: 1.25rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.rdv-summary-info h2 { font-size: 1.1rem; margin-bottom: 0.2rem; }
.rdv-datetime { display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.5rem; }
.rdv-date-display, .rdv-heure-display { display: flex; align-items: center; gap: 0.4rem; font-size: 0.875rem; color: var(--text-muted); }
.rdv-rgpd { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.78rem; color: var(--text-muted); background: var(--bg); border-radius: var(--radius-md); padding: 0.75rem; }
.breadcrumb { font-size: 0.85rem; color: var(--text-muted); }
.breadcrumb a { color: var(--primary); text-decoration: none; }
.mb-3 { margin-bottom: 1rem; }

/* Error pages */
.error-page { min-height: 60vh; display: flex; align-items: center; justify-content: center; padding: 3rem 1rem; }
.error-content { text-align: center; }
.error-code { font-size: 6rem; font-weight: 900; color: var(--primary); line-height: 1; opacity: 0.3; }
.error-title { font-size: 1.75rem; margin-bottom: 0.75rem; }
.error-message { color: var(--text-muted); margin-bottom: 2rem; line-height: 1.6; }
.error-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1.5rem; color: var(--text-muted); }
.empty-icon { font-size: 3rem; margin-bottom: 1rem; }
.empty-results { text-align: center; padding: 4rem 2rem; }
.empty-results .empty-icon { font-size: 4rem; display: block; margin-bottom: 1rem; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: 0.35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 0.5rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-md);
    color: var(--text); text-decoration: none; font-size: 0.875rem;
    transition: all 0.2s;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: white; font-weight: 600; }

/* ================================================================
   RESPONSIVE
   ================================================================ */
@media (max-width: 1024px) {
    .profil-grid { grid-template-columns: 1fr; }
    .rdv-card { position: static; }
    .admin-detail-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .search-page { grid-template-columns: 1fr; }
    .search-sidebar { display: none; }
    .search-sidebar.open { display: block; }
    .filter-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .admin-layout { flex-direction: column; }
    .admin-nav { width: 100%; min-height: auto; flex-direction: row; flex-wrap: wrap; position: static; padding: 0.5rem; }
    .admin-nav-brand a { padding: 0.5rem 1rem 0.5rem; border-bottom: none; }
    .admin-nav-links { display: flex; flex-direction: row; flex-wrap: wrap; }
    .admin-nav-links li a { padding: 0.5rem 0.75rem; font-size: 0.8rem; }
    .admin-nav-footer { flex-direction: row; padding: 0.5rem 1rem; border-top: none; border-left: 1px solid rgba(255,255,255,0.1); }
}
@media (max-width: 640px) {
    .form-row { grid-template-columns: 1fr; }
    .specialist-card-h { flex-direction: column; }
    .profil-header { flex-direction: column; align-items: center; text-align: center; }
    .profil-contacts { width: 100%; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Rating input avis */
.rating-input { display: flex; gap: .25rem; margin-bottom: .5rem; }
.star-btn {
    font-size: 2rem; background: none; border: none;
    color: #d1d5db; cursor: pointer; padding: 0;
    transition: color .15s; line-height: 1;
}
.star-btn.active, .star-btn:hover { color: #fbbf24; }

/* ================================================================
   ALIASES BOUTONS (compatibilité tiret simple / double tiret BEM)
   ================================================================ */
.btn-primary   { background: linear-gradient(135deg, var(--primary), var(--primary-l)); color: #fff; border: none; }
.btn-primary:hover { background: linear-gradient(135deg, var(--primary-l), #1a8fd1); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(13,92,138,.35); }
.btn-secondary { background: var(--c-bg); color: var(--text); border: 1.5px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-ghost     { background: transparent; color: var(--text-muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--bg); color: var(--primary); border-color: var(--primary); }
.btn-danger    { background: var(--c-danger); color: #fff; border: none; }
.btn-danger:hover { background: #b91c1c; }
.btn-success   { background: var(--c-success); color: #fff; border: none; }
.btn-success:hover { background: #15803d; }
.btn-outline   { background: transparent; color: var(--primary); border: 2px solid var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-sm  { padding: 7px 16px !important; font-size: .82rem !important; }
.btn-xs  { padding: 4px 10px !important; font-size: .75rem !important; }
.btn-lg  { padding: 14px 30px !important; font-size: 1rem !important; }
.btn-block { width: 100%; justify-content: center; }

/* Formulaires */
.form-control {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 2px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 0.9rem;
    color: var(--text);
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(13,92,138,.1);
}
.form-control::placeholder { color: #94a3b8; }
textarea.form-control { resize: vertical; min-height: 90px; }

.form-label {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: .35rem;
}
.form-group { margin-bottom: 1rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

.form-hint { font-size: .78rem; color: var(--text-muted); margin-top: .25rem; display: block; }
.checkbox-label { display: flex; align-items: flex-start; gap: .5rem; cursor: pointer; font-size: .875rem; line-height: 1.5; }
.checkbox-label input { margin-top: .15rem; flex-shrink: 0; cursor: pointer; }

/* Cards */
.card { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.card-body { padding: 1.5rem; }
.card-title { font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text); }
.card-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.card-header h3 { margin: 0; font-size: 1rem; font-weight: 600; }

/* Alerts */
.alert { padding: .875rem 1rem; border-radius: var(--radius-md); margin-bottom: 1rem; font-size: .875rem; }
.alert-error   { background: rgba(220,38,38,.07);  border: 1px solid rgba(220,38,38,.25);  color: #b91c1c; }
.alert-success { background: rgba(22,163,74,.07);  border: 1px solid rgba(22,163,74,.25);  color: #15803d; }
.alert-info    { background: rgba(13,92,138,.06);  border: 1px solid rgba(13,92,138,.2);   color: var(--primary); }
.alert-warning { background: rgba(217,119,6,.08);  border: 1px solid rgba(217,119,6,.25);  color: #92400e; }
.alert ul { margin: .25rem 0 0; padding-left: 1.25rem; }
.alert p { margin: 0; }

/* Badges statuts */
.statut-badge { display: inline-flex; align-items: center; padding: .2rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 600; }
.statut-valide     { background: rgba(22,163,74,.1);  color: #15803d; }
.statut-en_attente { background: rgba(217,119,6,.1);  color: #92400e; }
.statut-rejete     { background: rgba(220,38,38,.1);  color: #b91c1c; }
.statut-suspendu   { background: rgba(107,114,128,.1);color: #374151; }
.statut-confirme   { background: rgba(22,163,74,.1);  color: #15803d; }
.statut-annule     { background: rgba(220,38,38,.1);  color: #b91c1c; }
.statut-termine    { background: rgba(107,114,128,.1);color: #374151; }
.badge { display: inline-flex; align-items: center; padding: .15rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 600; }
.badge-cnam     { background: rgba(22,163,74,.1); color: #15803d; }
.badge-domicile { background: rgba(13,92,138,.1); color: var(--primary); }
.badge-24h      { background: rgba(217,119,6,.1); color: #92400e; }

/* Pagination */
.pagination { display: flex; align-items: center; gap: .35rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.page-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 36px; height: 36px; padding: 0 .5rem;
    border: 1.5px solid var(--border); border-radius: var(--radius-md);
    color: var(--text); text-decoration: none; font-size: .875rem;
    transition: all .2s; background: #fff;
}
.page-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(13,92,138,.05); }
.page-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }

/* Admin layout */
.admin-layout { display: flex; min-height: 100vh; }
.admin-nav {
    width: 240px; min-height: 100vh;
    background: #b7410e;
    padding: 1.5rem 0; display: flex; flex-direction: column; flex-shrink: 0;
    position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.admin-nav-brand a {
    display: flex; align-items: center; gap: .6rem;
    padding: 0 1.5rem 1.5rem;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 1rem;
    border-bottom: 1px solid rgba(255,255,255,.12); margin-bottom: .5rem;
}
.admin-nav-links { list-style: none; padding: 0; margin: 0; flex: 1; }
.admin-nav-links li a {
    display: flex; align-items: center; gap: .75rem;
    padding: .7rem 1.5rem; color: rgba(255,255,255,.75);
    text-decoration: none; font-size: .875rem; transition: all .2s;
}
.admin-nav-links li a:hover,
.admin-nav-links li a.active { background: rgba(255,255,255,.12); color: #fff; }
.admin-nav-links li a svg { flex-shrink: 0; }
.nav-separator {
    padding: .75rem 1.5rem .2rem;
    font-size: .68rem; text-transform: uppercase; letter-spacing: .08em;
    color: rgba(255,255,255,.35); font-weight: 600;
}
.admin-nav-footer {
    padding: 1rem 1.5rem; border-top: 1px solid rgba(255,255,255,.12);
    display: flex; flex-direction: column; gap: .4rem;
}
.admin-nav-footer a { color: rgba(255,255,255,.55); font-size: .8rem; text-decoration: none; }
.admin-nav-footer a:hover { color: #fff; }
.admin-content { flex: 1; padding: 2rem; background: #f7f9fc; overflow-y: auto; min-width: 0; }
.admin-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem; }
.admin-header h1 { margin: 0; font-size: 1.5rem; font-weight: 700; }
.admin-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px,1fr)); gap: 1rem; margin-bottom: 2rem; }
.admin-stat-card { background: #fff; border-radius: var(--radius-md); padding: 1.25rem; display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.admin-stat-icon { width: 48px; height: 48px; border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.admin-stat-num { font-size: 1.6rem; font-weight: 700; line-height: 1; }
.admin-stat-label { font-size: .78rem; color: var(--text-muted); margin-top: .2rem; }
.admin-section { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 1.5rem; }
.admin-section-header { display: flex; justify-content: space-between; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--border); }
.admin-section-header h2 { margin: 0; font-size: 1rem; display: flex; align-items: center; gap: .5rem; }
.admin-filters { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; background: #fff; padding: 1rem; border-radius: var(--radius-md); border: 1px solid var(--border); margin-bottom: 1rem; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; border-collapse: collapse; font-size: .875rem; }
.admin-table th { text-align: left; padding: .75rem 1rem; font-size: .73rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); letter-spacing: .05em; background: #f8fafc; border-bottom: 1px solid var(--border); }
.admin-table td { padding: .8rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: #f8fafc; }
.td-user { display: flex; align-items: center; gap: .75rem; }
.td-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.td-name { font-weight: 500; }
.td-email { font-size: .78rem; color: var(--text-muted); }
.td-actions { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.badge-count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 5px; background: #dc2626; color: #fff; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.empty-state { text-align: center; padding: 2.5rem 1.5rem; color: var(--text-muted); }
.detail-section { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1rem; }
.detail-section h3 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 1rem; font-weight: 600; }
.detail-table { width: 100%; border-collapse: collapse; }
.detail-table th { text-align: left; padding: .45rem .5rem; font-size: .85rem; color: var(--text-muted); font-weight: 500; width: 38%; }
.detail-table td { padding: .45rem .5rem; font-size: .875rem; border-top: 1px solid var(--border); }
.admin-detail-grid { display: grid; grid-template-columns: 1fr 280px; gap: 1.5rem; }
.admin-stat-mini { display: flex; justify-content: space-between; padding: .4rem 0; font-size: .875rem; border-bottom: 1px solid var(--border); }
.admin-stat-mini:last-child { border-bottom: none; }

/* Profil spécialiste */
.profil-header-section { background: linear-gradient(135deg, #b7410e 0%, #e67e22 100%); padding: 2.5rem 0; color: #fff; }
.profil-header { display: flex; align-items: flex-start; gap: 2rem; flex-wrap: wrap; }
.profil-photo { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.3); }
.profil-photo-placeholder { width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.2); border: 4px solid rgba(255,255,255,.3); display: flex; align-items: center; justify-content: center; font-size: 2rem; font-weight: 700; color: #fff; }
.profil-info { flex: 1; }
.profil-breadcrumb { font-size: .78rem; opacity: .7; margin-bottom: .5rem; }
.profil-breadcrumb a { color: rgba(255,255,255,.8); text-decoration: none; }
.profil-name { font-size: 1.8rem; font-weight: 700; color: #fff; margin-bottom: .3rem; }
.profil-specialty { opacity: .85; font-size: .95rem; margin-bottom: .75rem; }
.profil-meta { display: flex; flex-wrap: wrap; gap: 1rem; margin-bottom: .75rem; }
.meta-item { display: flex; align-items: center; gap: .35rem; font-size: .875rem; opacity: .9; }
.stars-sm { color: #fbbf24; font-size: .9rem; }
.profil-badges { display: flex; flex-wrap: wrap; gap: .5rem; }
.badge-lg { padding: .35rem .9rem; border-radius: 999px; font-size: .82rem; font-weight: 500; }
.profil-contacts { display: flex; flex-direction: column; gap: .5rem; flex-shrink: 0; min-width: 190px; }
.contact-btn { display: flex; align-items: center; gap: .5rem; padding: .6rem 1rem; border-radius: var(--radius-md); font-size: .875rem; font-weight: 500; text-decoration: none; transition: all .2s; cursor: pointer; }
.contact-tel, .contact-tel2 { background: rgba(255,255,255,.15); color: #fff; border: 1px solid rgba(255,255,255,.25); }
.contact-tel:hover, .contact-tel2:hover { background: rgba(255,255,255,.25); }
.contact-wa { background: #25d366; color: #fff; }
.contact-wa:hover { background: #1ebe5a; }
.contact-rdv { background: #fff; color: var(--primary); font-weight: 700; }
.contact-rdv:hover { background: #f0f7ff; }
.profil-content { padding: 2rem 0; }
.profil-grid { display: grid; grid-template-columns: 1fr 330px; gap: 2rem; align-items: start; }
.profil-section { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); padding: 1.5rem; margin-bottom: 1.5rem; }
.section-heading { font-size: 1.05rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text); display: flex; align-items: center; gap: .5rem; }
.avis-count { font-size: .75rem; background: #f1f5f9; border-radius: 999px; padding: .2rem .6rem; font-weight: 400; color: var(--text-muted); }
.profil-description { line-height: 1.7; color: var(--text); }
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.info-item { display: flex; align-items: flex-start; gap: .75rem; }
.info-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: .1rem; }
.info-label { font-size: .72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: .15rem; }
.info-value { font-size: .875rem; color: var(--text); }
.info-value a { color: var(--primary); }
.avis-list { display: flex; flex-direction: column; gap: 1rem; }
.avis-card { background: #f8fafc; border-radius: var(--radius-md); padding: 1rem; border: 1px solid var(--border); }
.avis-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: .5rem; }
.avis-author { display: flex; align-items: center; gap: .6rem; }
.avis-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.avis-name { font-weight: 500; font-size: .875rem; }
.avis-date { font-size: .72rem; color: var(--text-muted); }
.avis-stars { color: #fbbf24; font-size: .95rem; }
.avis-comment { font-size: .875rem; line-height: 1.6; color: var(--text); margin: .4rem 0 0; }
.avis-verified { font-size: .72rem; color: #15803d; display: block; margin-top: .35rem; }
.rdv-card { background: #fff; border-radius: var(--radius-md); border: 2px solid var(--primary); padding: 1.5rem; box-shadow: 0 4px 20px rgba(13,92,138,.1); position: sticky; top: 90px; }
.rdv-title { display: flex; align-items: center; gap: .5rem; font-size: 1rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--primary); }
.dates-list { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .75rem; }
.date-btn { display: flex; flex-direction: column; align-items: center; padding: .5rem .55rem; min-width: 50px; background: #f1f5f9; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; transition: all .2s; font-size: .72rem; color: var(--text); }
.date-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(13,92,138,.05); }
.date-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.date-jour-sem { font-size: .65rem; text-transform: uppercase; opacity: .7; }
.date-jour { font-size: 1rem; font-weight: 700; line-height: 1; }
.date-mois { font-size: .65rem; }
.creneaux-list { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.creneau-btn { padding: .35rem .7rem; background: #f1f5f9; border: 1.5px solid var(--border); border-radius: var(--radius-md); cursor: pointer; font-size: .82rem; color: var(--text); transition: all .2s; }
.creneau-btn:hover { border-color: var(--primary); color: var(--primary); }
.creneau-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.rdv-unavailable { color: var(--text-muted); font-size: .875rem; line-height: 1.6; }
.rdv-note { font-size: .75rem; color: var(--text-muted); margin-top: .5rem; display: flex; align-items: flex-start; gap: .4rem; line-height: 1.4; }
.profil-views { text-align: center; color: var(--text-muted); font-size: .78rem; margin-top: 1rem; display: flex; align-items: center; justify-content: center; gap: .35rem; }
.profil-sidebar { }

/* Page de connexion / auth */
.auth-page { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 2rem 1rem; background: linear-gradient(135deg, #f0f7ff 0%, #e8f4fd 100%); }
.auth-card { background: #fff; border-radius: var(--radius-lg); padding: 2.5rem 2rem; width: 100%; max-width: 480px; box-shadow: 0 8px 40px rgba(13,92,138,.12); border: 1px solid var(--border); }
.auth-logo { text-align: center; margin-bottom: 1.5rem; }
.auth-title { font-size: 1.6rem; font-weight: 700; text-align: center; margin-bottom: .35rem; color: var(--text); }
.auth-subtitle { color: var(--text-muted); text-align: center; margin-bottom: 1.75rem; font-size: .875rem; }
.auth-divider { display: flex; align-items: center; gap: 1rem; margin: 1.25rem 0; color: var(--text-muted); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.input-password-wrap { position: relative; }
.input-password-wrap .form-control { padding-right: 2.5rem; }
.toggle-pwd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: none; color: var(--text-muted); cursor: pointer; padding: .2rem; }

/* Search page */
.search-page { display: grid; grid-template-columns: 270px 1fr; gap: 2rem; max-width: 1200px; margin: 2rem auto; padding: 0 1.5rem; }
.filters-card { background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); padding: 1.25rem; box-shadow: var(--shadow-sm); position: sticky; top: 88px; }
.filters-title { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text); }
.filter-group { margin-bottom: 1rem; }
.filter-label { display: block; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: .4rem; }
.filter-checkboxes { display: flex; flex-direction: column; gap: .4rem; }
.btn-apply-filter { 
    background: var(--primary); color: #fff; 
    width: 100%; padding: .7rem; border-radius: var(--radius-md); 
    font-weight: 600; font-size: .875rem; cursor: pointer; border: none;
    transition: background .2s;
}
.btn-apply-filter:hover { background: var(--primary-l); }
.results-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; flex-wrap: wrap; gap: .5rem; }
.results-title { font-size: 1.25rem; font-weight: 700; margin: 0; color: var(--text); }
.results-count { color: var(--text-muted); font-size: .875rem; margin-top: .2rem; }
.filter-toggle { display: none; }
.specialists-list { display: flex; flex-direction: column; gap: 1rem; }
.specialist-card-h { display: flex; gap: 1.25rem; background: #fff; border-radius: var(--radius-md); border: 1px solid var(--border); padding: 1.25rem; transition: box-shadow .2s, border-color .2s; }
.specialist-card-h:hover { box-shadow: var(--shadow-md); border-color: #c7d9e9; }
.specialist-card-photo { flex-shrink: 0; }
.specialist-card-photo img { width: 85px; height: 85px; border-radius: var(--radius-md); object-fit: cover; }
.photo-placeholder { width: 85px; height: 85px; border-radius: var(--radius-md); background: var(--primary); color: #fff; font-size: 1.4rem; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.specialist-card-body { flex: 1; min-width: 0; }
.specialist-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: .5rem; }
.specialist-card-name a { font-size: 1.05rem; font-weight: 600; color: var(--text); }
.specialist-card-name a:hover { color: var(--primary); }
.specialist-card-specialty { color: var(--primary); font-size: .85rem; margin: .2rem 0 .3rem; font-weight: 500; }
.specialist-card-location { display: flex; align-items: center; gap: .3rem; color: var(--text-muted); font-size: .8rem; }
.rating-big { display: flex; align-items: center; gap: .5rem; }
.rating-num { font-size: 1.35rem; font-weight: 700; color: var(--text); line-height: 1; }
.stars { color: #fbbf24; font-size: .85rem; }
.rating-count { font-size: .72rem; color: var(--text-muted); }
.no-rating { font-size: .72rem; color: var(--text-muted); background: #f1f5f9; padding: .2rem .5rem; border-radius: 999px; }
.specialist-card-desc { color: var(--text-muted); font-size: .82rem; line-height: 1.5; margin: .5rem 0; }
.specialist-card-footer { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.specialist-card-actions { display: flex; gap: .5rem; }
.empty-results { text-align: center; padding: 4rem 2rem; }
.empty-results .empty-icon { font-size: 3.5rem; display: block; margin-bottom: 1rem; }

/* Stats accueil */
.stats-section { background: #fff; padding: 2.5rem 0; border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; text-align: center; }
.stat-number { font-size: 2rem; font-weight: 800; color: var(--primary); line-height: 1; }
.stat-label { font-size: .875rem; color: var(--text-muted); margin-top: .25rem; }

/* Misc utilitaires */
.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-2 { margin-top: .5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 2rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.p-0 { padding: 0; }

/* Rating stars avis */
.rating-input { display: flex; gap: .25rem; margin-bottom: .5rem; }
.star-btn { font-size: 1.75rem; background: none; border: none; color: #d1d5db; cursor: pointer; padding: 0; transition: color .15s; line-height: 1; }
.star-btn.active, .star-btn:hover { color: #fbbf24; }

/* Responsive */
@media (max-width: 1024px) {
    .profil-grid { grid-template-columns: 1fr; }
    .rdv-card { position: static; }
    .admin-detail-grid { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
    .search-page { grid-template-columns: 1fr; }
    .search-sidebar { display: none; }
    .search-sidebar.open { display: block; }
    .filter-toggle { display: flex; }
    .stats-grid { grid-template-columns: repeat(2,1fr); }
    .admin-layout { flex-direction: column; }
    .admin-nav { width: 100%; min-height: auto; flex-direction: row; flex-wrap: wrap; position: static; padding: .5rem; height: auto; }
    .admin-nav-brand a { padding: .5rem 1rem; border-bottom: none; border-right: 1px solid rgba(255,255,255,.12); }
    .admin-nav-links { display: flex; flex-direction: row; flex-wrap: wrap; }
    .admin-nav-links li a { padding: .5rem .75rem; font-size: .78rem; }
    .nav-separator { display: none; }
    .admin-nav-footer { flex-direction: row; padding: .5rem 1rem; border-top: none; }
}
@media (max-width: 640px) {
    .specialist-card-h { flex-direction: column; }
    .profil-header { flex-direction: column; align-items: center; text-align: center; }
    .profil-contacts { width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}

/* ── Badges sur fond bleu header profil ── */
.profil-header-section .badge-lg {
    background: rgba(255,255,255,0.25);
    color: #ffffff;
    border: 1.5px solid rgba(255,255,255,0.5);
    font-weight: 600;
}
.profil-header-section .badge-lg:hover {
    background: rgba(255,255,255,0.35);
}

/* ================================================================
   AutoÉcole.tn – Styles spécifiques
   ================================================================ */

/* Badges permis */
.badge-permis {
    display: inline-flex;
    align-items: center;
    background: #fff3e0;
    color: #e67e22;
    border: 1px solid #ffcc80;
    border-radius: 6px;
    padding: 3px 8px;
    font-size: .75rem;
    font-weight: 700;
    letter-spacing: .02em;
    margin: 2px;
}

/* Cartes résultats – tarifs */
.result-card__tarifs {
    display: flex;
    gap: 1rem;
    font-size: .85rem;
    color: var(--c-text-2);
    align-items: center;
}
.result-card__tarifs strong {
    color: #e67e22;
    font-weight: 700;
}

/* Catégories permis sur la home */
.result-card__categories {
    display: flex;
    flex-wrap: wrap;
    gap: .25rem;
    margin: .5rem 0;
}

/* Badge services */
.badge-weekend  { background: #e8f5e9; color: #2e7d32; border: 1px solid #a5d6a7; }
.badge-femmes   { background: #fce4ec; color: #c62828; border: 1px solid #f48fb1; }
.badge-paiement { background: #e3f2fd; color: #1565c0; border: 1px solid #90caf9; }

/* Hero tags override pour auto-école */
.hero__tag {
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    color: #fff;
    padding: .4rem .9rem;
    border-radius: 20px;
    font-size: .85rem;
    font-weight: 500;
    transition: all .2s;
    cursor: pointer;
    text-decoration: none;
}
.hero__tag:hover {
    background: rgba(255,255,255,.25);
    transform: translateY(-1px);
}

/* Hero gradient for auto-école */
.hero {
    background: linear-gradient(135deg, #1a1a2e 0%, #b7410e 60%, #e67e22 100%);
    padding: 5rem 0 4rem;
    color: #fff;
}

/* Logo dot color */
.logo-dot { color: #e67e22; }

/* Nav active link */
.nav-link.active,
.nav-link:hover {
    color: #e67e22;
}

/* Profil header section */
.profil-header-section {
    background: linear-gradient(135deg, #1a1a2e 0%, #b7410e 100%);
    padding: 2.5rem 0;
    color: #fff;
}

