/* ============================================================
   Creno - Design system
   Palette : mauve/rose institut beauté, glassmorphism léger
   ============================================================ */

/* L'attribut HTML5 `hidden` doit toujours masquer, même si un display
   est défini ailleurs. Sans ça, `display: flex` sur un parent surcharge
   silencieusement l'attribut hidden et l'élément reste visible. */
[hidden] {
    display: none !important;
}

:root {
    /* Couleurs */
    --c-primary:        #7c3aed;   /* violet vif principal */
    --c-primary-dk:     #6d28d9;
    --c-primary-light:  #ede9fe;
    --c-accent:         #ec4899;   /* rose accent */
    --c-bg:             #f7f5fa;
    --c-card:           #ffffff;
    --c-text:           #1f1d2b;
    --c-text-soft:      #4a4658;
    --c-muted:          #8b8794;
    --c-border:         #e8e3ee;
    --c-border-soft:    #f1eef5;
    --c-success:        #10b981;
    --c-success-bg:     #d1fae5;
    --c-warn:           #f59e0b;
    --c-warn-bg:        #fef3c7;
    --c-error:          #ef4444;
    --c-error-bg:       #fee2e2;

    /* Sidebar gradient */
    --grad-sidebar:     linear-gradient(180deg, #4c1d95 0%, #6d28d9 50%, #7c3aed 100%);

    /* Effets */
    --shadow-sm:        0 1px 2px rgba(36, 21, 60, .06);
    --shadow:           0 4px 16px rgba(36, 21, 60, .08);
    --shadow-lg:        0 12px 40px rgba(36, 21, 60, .12);
    --radius:           12px;
    --radius-sm:        8px;
    --radius-lg:        16px;
    --transition:       150ms ease;

    /* Layout */
    --sidebar-w:        260px;
    --topbar-h:         56px;
}

/* ============================================================
   THÈMES DE L'AGENDA UNIQUEMENT
   Le thème ne change QUE l'apparence de l'agenda (fond, cases,
   libellés). La sidebar (violet) et le header (rose) — charte
   graphique Creno — ne sont JAMAIS modifiés.
   ============================================================ */
:root {
    /* Variables dédiées agenda — valeurs par défaut (thème clair) */
    --agenda-bg:           #ffffff;   /* fond du conteneur agenda */
    --agenda-cell:         #ffffff;   /* fond des cases horaires */
    --agenda-header-bg:    #f7f5fa;   /* fond ligne des jours / colonne heures */
    --agenda-text:         #4a4658;   /* texte des libellés (heures, jours) */
    --agenda-border:       #f1eef5;   /* lignes de la grille */
    --agenda-day-sep:      #e0dce8;   /* séparation verticale entre les jours (plus marquée) */
    --agenda-today:        rgba(124, 58, 237, .04); /* surlignage du jour */
    --agenda-now:          #ec4899;   /* trait "maintenant" */
}

/* Thème SOMBRE — agenda sur fond foncé */
body.theme-dark {
    --agenda-bg:        #1e1b2e;
    --agenda-cell:      #1e1b2e;
    --agenda-header-bg: #16131f;
    --agenda-text:      #c4bdd6;
    --agenda-border:    #2e2940;
    --agenda-day-sep:   #413a59;
    --agenda-today:     rgba(167, 139, 250, .10);
    --agenda-now:       #f472b6;
}

/* Thème SOUTENU — fond légèrement lavande */
body.theme-bold {
    --agenda-bg:        #fdf4ff;
    --agenda-cell:      #fdf4ff;
    --agenda-header-bg: #f3e8ff;
    --agenda-text:      #4c1d6b;
    --agenda-border:    #ecd9f5;
    --agenda-day-sep:   #dcc2ee;
    --agenda-today:     rgba(109, 40, 217, .07);
    --agenda-now:       #db2777;
}

/* Thème NATURE / SPA — verts et beige */
body.theme-nature {
    --agenda-bg:        #f7faf3;
    --agenda-cell:      #f7faf3;
    --agenda-header-bg: #ebf3e2;
    --agenda-text:      #3f5247;
    --agenda-border:    #dde8d3;
    --agenda-day-sep:   #c6d8b8;
    --agenda-today:     rgba(15, 118, 110, .07);
    --agenda-now:       #65a30d;
}

/* Thème CHALEUREUX — terracotta, pêche */
body.theme-warm {
    --agenda-bg:        #fffaf6;
    --agenda-cell:      #fffaf6;
    --agenda-header-bg: #fdeee5;
    --agenda-text:      #6b4636;
    --agenda-border:    #f5e0d3;
    --agenda-day-sep:   #ecc9b3;
    --agenda-today:     rgba(194, 65, 12, .06);
    --agenda-now:       #d97706;
}

/* ============================================================
   Reset & base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-text);
    background: var(--c-bg);
    -webkit-font-smoothing: antialiased;
}

a { color: var(--c-primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--c-primary-dk); }

h1, h2, h3, h4 { margin: 0 0 12px; font-weight: 600; color: var(--c-text); }

/* ============================================================
   LOGIN PAGE
   ============================================================ */
.login-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--grad-sidebar);
    padding: 20px;
}
.login-card {
    background: var(--c-card);
    padding: 40px 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 380px;
}
.login-card h1 {
    margin: 0 0 8px;
    text-align: center;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 36px;
    color: var(--c-text);
    letter-spacing: -0.02em;
}
.login-logo {
    text-align: center;
    margin-bottom: 28px;
}
.login-logo svg,
.login-logo img {
    width: 180px;
    height: auto;
    display: block;
    margin: 0 auto;
}
.login-card .login-sub {
    text-align: center;
    color: var(--c-muted);
    margin-bottom: 28px;
    font-size: 14px;
}
.login-card label { display: block; margin-bottom: 16px; }
.login-card label > span {
    display: block;
    font-size: 13px;
    color: var(--c-text-soft);
    font-weight: 500;
    margin-bottom: 6px;
}
.login-card input {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-family: inherit;
    transition: all var(--transition);
}
.login-card input:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 4px rgba(124, 58, 237, .12);
}
.login-card button {
    width: 100%;
    padding: 12px;
    background: var(--c-primary);
    color: white;
    border: 0;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}
.login-card button:hover {
    background: var(--c-primary-dk);
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}

/* ============================================================
   APP SHELL
   ============================================================ */
.app-shell {
    display: flex;
    min-height: 100vh;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.sidebar {
    width: var(--sidebar-w);
    background: var(--grad-sidebar);
    color: white;
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    z-index: 100;
    transition: transform var(--transition);
    overflow: hidden;  /* pas de scroll global */
}

.sidebar-brand {
    padding: 22px 20px 18px;
    border-bottom: 1px solid rgba(255, 255, 255, .08);
    text-align: center;
    flex-shrink: 0;
}
.logo-wrap {
    margin: 0 auto 6px;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.logo-svg {
    width: 120px;
    height: auto;
    display: block;
}
.logo-img {
    width: 140px;
    height: auto;
    display: block;
    margin: 0 auto;
    user-select: none;
    -webkit-user-drag: none;
}
.sidebar-brand .logo-sub {
    font-size: 13px;
    color: rgba(255, 255, 255, .65);
    font-weight: 500;
}

.sidebar-nav {
    padding: 12px 12px;
    flex: 1;
    overflow-y: auto;
}
.nav-link {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 14px;
    margin-bottom: 4px;
    border-radius: var(--radius-sm);
    color: rgba(255, 255, 255, .75);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition);
}
.nav-link:hover {
    background: rgba(255, 255, 255, .08);
    color: white;
}
.nav-link.active {
    background: rgba(255, 255, 255, .15);
    color: white;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .1);
}
.nav-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nav-icon svg { width: 20px; height: 20px; }

.sidebar-footer {
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, .08);
    margin-top: auto;
}
.user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px;
    border-radius: var(--radius-sm);
}
.user-avatar {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-accent), #f0abfc);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
    flex-shrink: 0;
}
.user-info { min-width: 0; flex: 1; }
.user-name {
    color: white;
    font-size: 13px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.user-logout {
    display: flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, .6);
    font-size: 12px;
    margin-top: 2px;
}
.user-logout svg { width: 14px; height: 14px; }
.user-logout:hover { color: white; }

.sidebar-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .4);
    z-index: 99;
    opacity: 0;
    transition: opacity var(--transition);
}
.sidebar-overlay.show { opacity: 1; }

/* ============================================================
   MAIN CONTENT
   ============================================================ */
.app-content {
    flex: 1;
    margin-left: var(--sidebar-w);
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.topbar {
    height: var(--topbar-h);
    background: var(--c-accent);
    border-bottom: 1px solid color-mix(in srgb, var(--c-accent) 80%, black);
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: sticky;
    top: 0;
    z-index: 50;
    box-shadow: 0 2px 6px color-mix(in srgb, var(--c-accent) 25%, transparent);
}
.topbar-burger {
    display: none;
    background: none;
    border: 0;
    color: white;
    cursor: pointer;
    padding: 8px;
    margin-right: 8px;
    border-radius: 6px;
}
.topbar-burger:hover { background: rgba(255, 255, 255, 0.15); }
.topbar-burger svg { width: 22px; height: 22px; display: block; }
.topbar-title {
    font-weight: 700;
    font-size: 16px;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.page {
    padding: 24px;
    flex: 1;
}

/* ============================================================
   ALERTS
   ============================================================ */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 16px;
    border: 1px solid transparent;
}
.alert-error { background: var(--c-error-bg); color: #991b1b; border-color: #fecaca; }
.alert-ok    { background: var(--c-success-bg); color: #065f46; border-color: #a7f3d0; }
.alert-warn  { background: var(--c-warn-bg); color: #92400e; border-color: #fde68a; }

/* ============================================================
   CARDS / SECTIONS
   ============================================================ */
.card {
    background: var(--c-card);
    padding: 24px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border-soft);
    margin-bottom: 20px;
}
.card-title {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-border-soft);
    color: var(--c-text);
}

.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.page-header h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

/* ============================================================
   FORMS
   ============================================================ */
.form-row { margin-bottom: 14px; }
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-row label { display: block; }
.form-row label > span {
    display: block;
    font-size: 13px;
    color: var(--c-text-soft);
    font-weight: 500;
    margin-bottom: 6px;
}
.form-row input,
.form-row select,
.form-row textarea {
    width: 100%;
    padding: 9px 12px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: white;
    font-family: inherit;
    color: var(--c-text);
    transition: all var(--transition);
}
.form-row input:focus,
.form-row select:focus,
.form-row textarea:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, .12);
}
.form-row input[type="color"] { padding: 4px; height: 42px; cursor: pointer; }
.form-row textarea { resize: vertical; min-height: 70px; }

.form-group {
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 14px;
    margin-bottom: 14px;
    background: var(--c-bg);
}
.form-group legend {
    padding: 0 8px;
    font-size: 11px;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    font-weight: 600;
}
.checkbox-inline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    padding: 6px 0;
    user-select: none;
}
.checkbox-inline input {
    width: 18px !important;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: var(--c-primary);
    flex-shrink: 0;
}
.muted { color: var(--c-muted); font-size: 12px; }

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary, .btn-secondary, .btn-danger, .btn-ghost {
    padding: 9px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    line-height: 1;
}
.btn-primary {
    background: var(--c-primary);
    color: white;
}
.btn-primary:hover {
    background: var(--c-primary-dk);
    color: white;
    transform: translateY(-1px);
    box-shadow: var(--shadow);
}
.btn-secondary {
    background: white;
    color: var(--c-text-soft);
    border-color: var(--c-border);
}
.btn-secondary:hover { background: var(--c-bg); }
.btn-danger {
    background: var(--c-error);
    color: white;
}
.btn-danger:hover { background: #dc2626; }
.btn-ghost {
    background: transparent;
    color: var(--c-primary);
    padding: 6px 10px;
}
.btn-ghost:hover { background: var(--c-primary-light); }
.btn-link {
    background: none;
    border: 0;
    color: var(--c-primary);
    cursor: pointer;
    padding: 4px 8px;
    font: inherit;
    font-size: 13px;
}
.btn-link:hover { text-decoration: underline; color: var(--c-primary-dk); }

/* ============================================================
   FULLCALENDAR overrides
   ============================================================ */
.fc {
    background: var(--agenda-bg);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--agenda-border);
    --fc-border-color: var(--agenda-border);
    --fc-button-bg-color: var(--c-primary);
    --fc-button-border-color: var(--c-primary);
    --fc-button-hover-bg-color: var(--c-primary-dk);
    --fc-button-hover-border-color: var(--c-primary-dk);
    --fc-button-active-bg-color: var(--c-primary-dk);
    --fc-button-active-border-color: var(--c-primary-dk);
    --fc-today-bg-color: var(--agenda-today);
    --fc-now-indicator-color: var(--agenda-now);
    --fc-page-bg-color: var(--agenda-cell);
    font-family: 'Inter', sans-serif;
}
.fc .fc-button {
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    box-shadow: none !important;
    text-transform: capitalize;
}
.fc .fc-toolbar-title {
    font-size: 18px !important;
    font-weight: 700;
    text-transform: capitalize;
    color: var(--agenda-text);
}
.fc .fc-col-header-cell {
    background: var(--agenda-header-bg);
    text-transform: capitalize;
    font-weight: 600;
    color: var(--agenda-text);
    font-size: 13px;
}
/* En-tête du jour courant : texte mis en avant en violet Creno */
.fc .fc-col-header-cell.fc-day-today .fc-col-header-cell-cushion {
    color: var(--c-primary);
    font-weight: 700;
}
/* Libellés des heures + colonne d'axe */
.fc .fc-timegrid-axis,
.fc .fc-timegrid-slot-label,
.fc .fc-timegrid-slot-label-cushion,
.fc .fc-col-header-cell-cushion {
    color: var(--agenda-text);
}
/* Fond des cases horaires */
.fc .fc-timegrid-slot,
.fc .fc-daygrid-day,
.fc .fc-timegrid-col,
.fc .fc-scrollgrid-section > * {
    background: var(--agenda-cell);
}
/* Hauteur des lignes de créneau. Valeur fixe et généreuse pour que les RDV
   courts aient assez de place et ne débordent pas sur le suivant. FullCalendar
   gère tout le positionnement (events, horaires d'ouverture) à partir de là. */
.fc .fc-timegrid-slot { height: 2.6em; }

/* ----- Séparation verticale entre les jours -----
   Les barres verticales sont tracées en JavaScript (applyDaySeparators
   dans agenda.js) directement sur les colonnes, car les bordures CSS
   internes de FullCalendar 6 ne sont pas surchargeables de façon fiable.
   La couleur utilisée est la variable --agenda-day-sep ci-dessus. */
.fc-event {
    cursor: pointer;
    border: 0 !important;
    padding: 2px 6px;
    font-size: 12px;
    font-weight: 500;
    border-radius: 6px;
    box-shadow: 0 1px 3px rgba(0,0,0,.12), inset 0 1px 0 rgba(255,255,255,.12);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.fc-event:hover {
    filter: brightness(1.08);
    transform: translateY(-1px);
    box-shadow: 0 3px 8px rgba(0,0,0,.18), inset 0 1px 0 rgba(255,255,255,.15);
}
.fc-event-main { padding: 1px 2px; }

/* Bouton de granularité de slot actif */
.fc .fc-button.slot-active {
    background: var(--c-accent) !important;
    border-color: var(--c-accent) !important;
}

/* ============================================================
   Header agenda (style Planity)
   ============================================================ */
.agenda-header {
    display: flex;
    align-items: stretch;
    gap: 12px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 8px;
    margin-bottom: 14px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: var(--topbar-h);
    z-index: 40;
}
.ah-left, .ah-center, .ah-right {
    display: flex;
    align-items: center;
    gap: 6px;
}
.ah-center {
    flex: 1;
    justify-content: center;
    gap: 4px;
}
.ah-right { gap: 12px; }

.ah-btn {
    background: white;
    border: 1px solid var(--c-border);
    color: var(--c-text);
    border-radius: var(--radius-sm);
    padding: 7px 14px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.ah-btn:hover {
    border-color: var(--c-primary);
    background: var(--c-bg);
}
.ah-today {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}
.ah-today:hover {
    background: var(--c-primary);
    filter: brightness(1.1);
}
.ah-nav { padding: 7px 9px; }
.ah-nav svg { color: var(--c-text); }

/* Boutons de vue avec sous-libellé */
.ah-view {
    background: transparent;
    border: 0;
    cursor: pointer;
    font-family: inherit;
    text-align: center;
    padding: 6px 16px;
    border-radius: var(--radius-sm);
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    line-height: 1.2;
    color: var(--c-text-soft);
    min-width: 100px;
}
.ah-view strong {
    font-size: 13px;
    font-weight: 600;
}
.ah-view-sub {
    font-size: 11px;
    color: var(--c-muted);
    font-weight: 500;
    text-transform: capitalize;
}
.ah-view:hover {
    background: var(--c-bg);
}
.ah-view.active {
    background: color-mix(in srgb, var(--c-primary) 10%, white);
    color: var(--c-primary);
    box-shadow: inset 0 -2px 0 var(--c-primary);
}
.ah-view.active strong {
    color: var(--c-primary);
}
.ah-view.active .ah-view-sub {
    color: color-mix(in srgb, var(--c-primary) 70%, var(--c-text));
}

/* Sélecteur durée d'intervalle */
.ah-slot {
    display: flex;
    align-items: center;
    gap: 6px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 5px 10px;
    cursor: pointer;
    transition: border-color var(--transition);
    color: var(--c-text-soft);
}
.ah-slot:hover { border-color: var(--c-primary); }
.ah-slot select {
    border: 0;
    background: transparent;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text);
    cursor: pointer;
    padding: 2px 0;
    outline: none;
}

/* Horloge live */
.ah-clock {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 700;
    color: var(--c-text);
    font-variant-numeric: tabular-nums;
    padding: 0 6px;
    min-width: 52px;
    text-align: right;
}

/* Responsive : empile sur mobile */
@media (max-width: 1024px) {
    .agenda-header {
        flex-wrap: wrap;
    }
    .ah-center {
        order: 3;
        flex-basis: 100%;
        justify-content: flex-start;
        overflow-x: auto;
    }
    .ah-view { min-width: 88px; padding: 6px 10px; }
    .ah-clock { font-size: 15px; }
}

/* ============================================================
   MODAL
   ============================================================ */
.modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}
.modal[hidden] { display: none; }
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 29, 43, .55);
    backdrop-filter: blur(4px);
}
.modal-card {
    position: relative;
    background: white;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 560px;
    max-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    animation: modal-in .2s ease-out;
}
@keyframes modal-in {
    from { opacity: 0; transform: scale(.95); }
    to   { opacity: 1; transform: scale(1); }
}
.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid var(--c-border-soft);
}
.modal-header h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
}
.modal-close {
    background: none;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    cursor: pointer;
    color: var(--c-muted);
    font-size: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}
.modal-close:hover { background: var(--c-bg); color: var(--c-text); }
.modal form { padding: 24px; overflow-y: auto; }
.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--c-border-soft);
    margin-top: 18px;
}

/* ============================================================
   AUTOCOMPLETE
   ============================================================ */
.client-search { position: relative; }
.autocomplete-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    max-height: 240px;
    overflow-y: auto;
    z-index: 10;
    margin-top: 4px;
}
.autocomplete-item {
    padding: 10px 14px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    border-bottom: 1px solid var(--c-border-soft);
}
.autocomplete-item:last-child { border-bottom: 0; }
.autocomplete-item:hover { background: var(--c-primary-light); }
.autocomplete-item strong { font-size: 14px; font-weight: 600; }
.autocomplete-item small { color: var(--c-muted); font-size: 12px; margin-top: 2px; }
.autocomplete-empty {
    padding: 14px;
    color: var(--c-muted);
    font-size: 13px;
    font-style: italic;
    text-align: center;
}
.sms-info {
    background: var(--c-primary-light);
    padding: 12px 14px;
    border-radius: var(--radius-sm);
    margin-top: 6px;
}

/* ============================================================
   SERVICE BUTTONS (sélection prestation avec emoji)
   ============================================================ */
.field-label {
    display: block;
    font-size: 13px;
    color: var(--c-text-soft);
    font-weight: 500;
    margin-bottom: 8px;
}
.service-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
    gap: 8px;
    /* Espace en haut pour que le halo/translateY au survol ne soit pas coupé */
    padding-top: 6px;
}
.service-btn {
    background: white;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    padding: 10px 6px 8px;
    cursor: pointer;
    text-align: center;
    transition: all var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1px;
    font-family: inherit;
    color: var(--c-text);
    position: relative;
}
.service-btn:hover {
    border-color: var(--c, var(--c-primary));
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.service-btn.active {
    border-color: var(--c, var(--c-primary));
    background: color-mix(in srgb, var(--c, var(--c-primary)) 8%, white);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, var(--c-primary)) 20%, transparent);
}
.service-btn .service-icon {
    font-size: 26px;
    line-height: 1;
    margin-bottom: 3px;
}
.service-btn .service-name {
    font-weight: 600;
    font-size: 12px;
    line-height: 1.2;
    min-height: 28px;
    display: flex;
    align-items: center;
    text-align: center;
}
.service-btn .service-meta {
    font-size: 10.5px;
    color: var(--c-muted);
    margin-top: 1px;
}

/* ============================================================
   CLIENT WARNING (no-show alert)
   ============================================================ */
.client-warning {
    margin-top: 8px;
    background: var(--c-warn-bg);
    color: #92400e;
    border: 1px solid #fde68a;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    line-height: 1.5;
}
.ac-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}
.ac-noshow-badge {
    background: var(--c-error-bg);
    color: #991b1b;
    font-size: 11px;
    padding: 2px 7px;
    border-radius: 10px;
    font-weight: 600;
    white-space: nowrap;
}
.ac-noshow-icon {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 700;
    color: #b91c1c;
    background: var(--c-error-bg);
    padding: 1px 7px;
    border-radius: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}

/* ============================================================
   MODALE REVIEW (présent / no-show)
   ============================================================ */
.modal-card-sm { max-width: 440px; }
.review-summary {
    background: var(--c-bg);
    padding: 16px;
    border-radius: var(--radius);
    margin-bottom: 16px;
    text-align: center;
}
.review-service {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}
.review-client {
    font-size: 14px;
    color: var(--c-text-soft);
    margin-bottom: 4px;
}
.review-when {
    font-size: 13px;
    color: var(--c-muted);
}
.review-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.btn-review {
    background: white;
    border: 2px solid var(--c-border);
    padding: 20px 12px;
    border-radius: var(--radius);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-family: inherit;
    transition: all var(--transition);
}
.btn-review:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}
.btn-review .emoji {
    font-size: 32px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 6px;
    font-weight: 600;
}
.btn-review strong { font-size: 15px; }
.btn-review small { font-size: 12px; color: var(--c-muted); }

.btn-review-yes .emoji {
    background: var(--c-success-bg);
    color: var(--c-success);
}
.btn-review-yes:hover { border-color: var(--c-success); }
.btn-review-no .emoji {
    background: var(--c-error-bg);
    color: var(--c-error);
}
.btn-review-no:hover { border-color: var(--c-error); }

/* ============================================================
   TOASTS
   ============================================================ */
.toasts {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
    max-width: calc(100vw - 48px);
}
.toast {
    background: white;
    padding: 12px 18px;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-lg);
    font-size: 14px;
    font-weight: 500;
    border-left: 4px solid var(--c-primary);
    animation: toast-in .25s ease-out;
    pointer-events: auto;
    max-width: 360px;
}
.toast-ok    { border-left-color: var(--c-success); }
.toast-warn  { border-left-color: var(--c-warn); }
.toast-error { border-left-color: var(--c-error); }
.toast-out { opacity: 0; transform: translateX(20px); transition: all .4s; }
@keyframes toast-in {
    from { transform: translateX(20px); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* ============================================================
   TABLES
   ============================================================ */
.data-table {
    width: 100%;
    background: white;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border: 1px solid var(--c-border-soft);
    border-collapse: collapse;
    overflow: hidden;
    font-size: 14px;
}
.data-table th {
    text-align: left;
    padding: 12px 16px;
    background: var(--c-bg);
    font-size: 12px;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
    border-bottom: 1px solid var(--c-border);
}
.data-table td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--c-border-soft);
}
.data-table tr:last-child td { border-bottom: 0; }
.data-table tr:hover { background: var(--c-bg); }
.data-table .color-dot {
    display: inline-block;
    width: 16px;
    height: 16px;
    border-radius: 4px;
    vertical-align: middle;
}
.data-table .badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
}
.badge-ok   { background: var(--c-success-bg); color: #065f46; }
.badge-off  { background: var(--c-border-soft); color: var(--c-muted); }

/* ============================================================
   SETTINGS specific
   ============================================================ */
.template-hint {
    background: var(--c-primary-light);
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--c-text-soft);
    margin-bottom: 14px;
    line-height: 1.6;
}
.template-hint code {
    background: white;
    padding: 1px 6px;
    border-radius: 3px;
    font-size: 12px;
    color: var(--c-primary);
    font-weight: 500;
}
.hours-grid {
    display: grid;
    grid-template-columns: 110px 60px 1fr 1fr;
    gap: 10px 14px;
    align-items: center;
}
.hours-grid .day-name { font-weight: 600; font-size: 14px; }
.hours-grid > div:first-child,
.hours-grid > div:nth-child(2) { color: var(--c-muted); font-size: 12px; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1023px) {
    .sidebar {
        transform: translateX(-100%);
        box-shadow: var(--shadow-lg);
    }
    .sidebar.open { transform: translateX(0); }
    .sidebar-overlay.show { display: block; }
    .app-content { margin-left: 0; }
    .topbar-burger { display: flex; }
}

@media (max-width: 640px) {
    .page { padding: 14px; }
    .topbar { padding: 0 12px; }
    .page-header { flex-direction: column; align-items: stretch; }
    .form-row-2 { grid-template-columns: 1fr; }
    .modal { padding: 0; align-items: flex-end; }
    .modal-card {
        max-height: 92vh;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        animation: modal-slide-up .25s ease-out;
    }
    @keyframes modal-slide-up {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }
    .data-table th,
    .data-table td { padding: 10px 12px; }
    .hours-grid { grid-template-columns: 100px 40px 1fr 1fr; gap: 6px 8px; }
    .toasts { right: 12px; left: 12px; bottom: 12px; }
    .fc-toolbar.fc-header-toolbar { flex-direction: column; gap: 10px; }
}

/* ============================================================
   TIME PICKER CUSTOM
   ============================================================ */
.time-picker {
    position: relative;
}
.time-picker-display {
    width: 100%;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 9px 12px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all var(--transition);
    text-align: left;
}
.time-picker-display:hover {
    border-color: var(--c-primary);
}
.time-picker-display:focus {
    outline: none;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 20%, transparent);
}
.time-picker-display svg {
    flex-shrink: 0;
    color: var(--c-muted);
}
.time-picker-display .time-value {
    color: var(--c-muted);
    font-variant-numeric: tabular-nums;
}
.time-picker-display.has-value .time-value {
    color: var(--c-text);
}

.time-picker-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    min-width: 240px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12), 0 4px 12px rgba(0, 0, 0, .06);
    padding: 12px;
    z-index: 200;
}
.tp-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.tp-col {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.tp-col-label {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-text-soft);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-align: center;
    margin-bottom: 6px;
    padding-bottom: 4px;
    border-bottom: 1px solid var(--c-border-soft, var(--c-border));
}
.tp-col-scroll {
    max-height: 200px;
    overflow-y: auto;
    scroll-behavior: smooth;
    padding: 2px;
}
.tp-col-scroll::-webkit-scrollbar { width: 6px; }
.tp-col-scroll::-webkit-scrollbar-thumb { background: var(--c-border); border-radius: 3px; }
.tp-col-scroll::-webkit-scrollbar-thumb:hover { background: var(--c-muted); }

.tp-cell {
    display: block;
    width: 100%;
    background: transparent;
    border: 0;
    padding: 8px 6px;
    font-family: inherit;
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    cursor: pointer;
    border-radius: 6px;
    text-align: center;
    font-variant-numeric: tabular-nums;
    margin-bottom: 2px;
    transition: background var(--transition);
}
.tp-cell:hover {
    background: var(--c-bg);
}
.tp-cell.active {
    background: var(--c-primary);
    color: white;
    font-weight: 700;
}
.tp-cell.active:hover {
    background: var(--c-primary);
    filter: brightness(1.08);
}

.tp-actions {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid var(--c-border-soft, var(--c-border));
}
.tp-now, .tp-close {
    background: transparent;
    border: 1px solid var(--c-border);
    padding: 7px 14px;
    font-size: 13px;
    font-family: inherit;
    font-weight: 500;
    border-radius: var(--radius-sm);
    cursor: pointer;
    color: var(--c-text);
    transition: all var(--transition);
}
.tp-now:hover { background: var(--c-bg); }
.tp-close {
    background: var(--c-primary);
    color: white;
    border-color: var(--c-primary);
}
.tp-close:hover { filter: brightness(1.08); }

/* ============================================================
   FICHE CLIENT (client-view.php)
   ============================================================ */

/* Nom client cliquable dans la liste */
.client-name-link {
    color: var(--c-text);
    text-decoration: none;
}
.client-name-link:hover {
    color: var(--c-primary);
}

/* Bloc coordonnées */
.client-contact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 18px;
}
.muted-label {
    font-size: 11px;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    font-weight: 600;
    margin-bottom: 3px;
}
.contact-value {
    font-size: 15px;
    font-weight: 500;
    color: var(--c-text);
    text-decoration: none;
}
a.contact-value:hover {
    color: var(--c-primary);
}
.client-notes {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid var(--c-border);
    font-size: 14px;
    line-height: 1.5;
    color: var(--c-text-soft);
}

/* Grille de stats */
.stat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}
.stat-card {
    --accent: var(--c-text-soft);
    background: white;
    padding: 14px 16px;
    border-radius: var(--radius);
    border-left: 3px solid var(--accent);
    box-shadow: var(--shadow-sm);
}
.stat-card-ok      { --accent: var(--c-success); }
.stat-card-error   { --accent: var(--c-error);   }
.stat-card-accent  { --accent: var(--c-accent);  }
.stat-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    color: var(--c-text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.stat-label {
    font-size: 12px;
    color: var(--c-text-soft);
    font-weight: 500;
    margin-top: 4px;
}

/* Top prestations */
.top-services {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 12px;
}
.top-service {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--c-bg);
    padding: 12px 14px;
    border-radius: var(--radius);
}
.ts-rank {
    background: var(--c-primary);
    color: white;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    flex-shrink: 0;
}
.ts-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.ts-info {
    flex: 1;
    min-width: 0;
}
.ts-name {
    font-weight: 600;
    font-size: 14px;
    color: var(--c-text);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.ts-count {
    font-size: 12px;
    color: var(--c-text-soft);
    margin-top: 2px;
}

/* Timeline RDV */
.rdv-timeline {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.timeline-year {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 800;
    font-size: 13px;
    color: var(--c-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 12px 0 4px;
    border-bottom: 1px dashed var(--c-border);
    margin-bottom: 4px;
}
.timeline-year:first-child {
    padding-top: 0;
}
.timeline-item {
    --service-color: var(--c-primary);
    display: grid;
    grid-template-columns: 70px 1fr;
    gap: 16px;
    align-items: stretch;
    background: white;
    border: 1px solid var(--c-border);
    border-left: 4px solid var(--service-color);
    border-radius: var(--radius);
    padding: 12px 16px;
    transition: box-shadow var(--transition);
}
.timeline-item:hover {
    box-shadow: var(--shadow);
}
.ti-date {
    text-align: center;
    padding-right: 14px;
    border-right: 1px solid var(--c-border);
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.ti-day {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 24px;
    font-weight: 800;
    line-height: 1;
    color: var(--c-text);
}
.ti-month {
    font-size: 11px;
    font-weight: 600;
    color: var(--c-muted);
    margin-top: 2px;
    letter-spacing: 0.04em;
}
.ti-time {
    font-size: 13px;
    color: var(--c-text-soft);
    margin-top: 6px;
    font-variant-numeric: tabular-nums;
    font-weight: 500;
}
.ti-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    min-width: 0;
}
.ti-head {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.ti-head strong {
    font-size: 15px;
    color: var(--c-text);
}
.ti-meta {
    font-size: 13px;
    color: var(--c-text-soft);
}
.ti-notes {
    font-size: 13px;
    color: var(--c-text-soft);
    background: var(--c-bg);
    border-radius: var(--radius-sm);
    padding: 8px 12px;
    margin-top: 6px;
    line-height: 1.4;
}

@media (max-width: 640px) {
    .timeline-item {
        grid-template-columns: 56px 1fr;
        gap: 12px;
        padding: 10px 12px;
    }
    .ti-day { font-size: 20px; }
}

/* ============================================================
   TOGGLE SWITCH (style iOS/Android)
   ============================================================ */
.toggle-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    cursor: pointer;
    transition: border-color var(--transition), background var(--transition);
}
.toggle:hover {
    border-color: var(--c-primary);
}
/* On masque la vraie checkbox mais on la garde accessible */
.toggle input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}
.toggle-label {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}
.toggle-label strong {
    font-weight: 600;
    font-size: 14px;
    color: var(--c-text);
}
.toggle-label small {
    font-size: 12px;
    color: var(--c-text-soft);
    font-weight: 400;
}
.toggle-switch {
    position: relative;
    width: 44px;
    height: 24px;
    background: var(--c-border);
    border-radius: 12px;
    flex-shrink: 0;
    transition: background var(--transition);
}
.toggle-switch::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0,0,0,.2);
    transition: transform var(--transition);
}
.toggle input:checked ~ .toggle-switch {
    background: var(--c-primary);
}
.toggle input:checked ~ .toggle-switch::after {
    transform: translateX(20px);
}
.toggle input:focus-visible ~ .toggle-switch {
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 25%, transparent);
}
.toggle:has(input:checked) {
    background: color-mix(in srgb, var(--c-primary) 4%, white);
    border-color: color-mix(in srgb, var(--c-primary) 25%, var(--c-border));
}

@media (max-width: 640px) {
    .toggle { padding: 12px 14px; gap: 10px; }
    .toggle-label strong { font-size: 13px; }
    .toggle-label small { font-size: 11px; }
}

/* Variante compacte pour intégration dans une grille */
.toggle.toggle-mini {
    padding: 0;
    background: transparent;
    border: 0;
    display: inline-flex;
    width: auto;
    justify-content: flex-start;
}
.toggle.toggle-mini:hover {
    background: transparent;
    border: 0;
}
.toggle.toggle-mini:has(input:checked) {
    background: transparent;
    border: 0;
}

/* ============================================================
   FERMETURES dans l'agenda (events display: background)
   ============================================================ */
.fc-fermeture {
    background: repeating-linear-gradient(
        45deg,
        rgba(148, 163, 184, 0.15),
        rgba(148, 163, 184, 0.15) 8px,
        rgba(148, 163, 184, 0.30) 8px,
        rgba(148, 163, 184, 0.30) 16px
    ) !important;
    opacity: 1 !important;
}
.fc-fermeture .fc-event-title {
    color: #475569;
    font-weight: 600;
    font-size: 12px;
    padding: 4px 8px;
}

/* ============================================================
   PAGE FERMETURES
   ============================================================ */
.fermeture-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.fermeture-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    transition: box-shadow var(--transition);
}
.fermeture-item:hover {
    box-shadow: var(--shadow);
}
.fermeture-full {
    border-left: 4px solid #f59e0b;
}
.fermeture-partial {
    border-left: 4px solid #6366f1;
}
.fermeture-past {
    border-left: 4px solid var(--c-border);
    opacity: 0.75;
}
.fermeture-icon {
    font-size: 28px;
    line-height: 1;
    flex-shrink: 0;
}
.fermeture-body {
    flex: 1;
    min-width: 0;
}
.fermeture-period {
    font-weight: 600;
    color: var(--c-text);
    font-size: 14px;
}
.fermeture-reason {
    font-size: 13px;
    color: var(--c-text-soft);
    margin-top: 3px;
}
.fermeture-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .fermeture-item { flex-wrap: wrap; padding: 12px 14px; }
    .fermeture-actions { width: 100%; justify-content: flex-end; }
}

/* ============================================================
   PAGE STATISTIQUES
   ============================================================ */

/* Barre de sélection de période */
.period-bar {
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    box-shadow: var(--shadow-sm);
}
.period-presets {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
}
.period-btn {
    padding: 7px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-soft);
    transition: all var(--transition);
    text-decoration: none;
}
.period-btn:hover {
    background: var(--c-bg);
    color: var(--c-text);
}
.period-btn.active {
    background: var(--c-primary);
    color: white;
}
.period-custom {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}
.period-custom label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--c-text-soft);
}
.period-custom input[type="date"] {
    padding: 6px 10px;
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-family: inherit;
    color: var(--c-text);
    cursor: pointer;
}
.btn-sm {
    padding: 6px 12px !important;
    font-size: 13px !important;
}

.period-title {
    margin: 0 0 16px;
    font-size: 22px;
    color: var(--c-text);
    text-transform: capitalize;
}

/* Grille KPI */
.kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 14px;
    margin-bottom: 20px;
}
.kpi-card {
    --accent-kpi: var(--c-text-soft);
    background: white;
    padding: 18px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    border-top: 3px solid var(--accent-kpi);
}
.kpi-accent { --accent-kpi: var(--c-primary); }
.kpi-warn   { --accent-kpi: #f59e0b; }
.kpi-label {
    font-size: 12px;
    color: var(--c-text-soft);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 8px;
}
.kpi-value {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 28px;
    font-weight: 800;
    color: var(--c-text);
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
    margin-bottom: 8px;
}
.kpi-delta {
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}
.kpi-delta.up    { color: #10b981; }
.kpi-delta.down  { color: #ef4444; }
.kpi-delta-note {
    color: var(--c-muted);
    font-weight: 400;
    font-size: 11px;
}

/* 2 colonnes (Top prestations + Top clients) */
.stats-cols {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 900px) {
    .stats-cols { grid-template-columns: 1fr; }
}

/* Listes de classement */
.ranking {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.rank-row {
    display: grid;
    grid-template-columns: 24px 36px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 6px 0;
}
.rank-pos {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: var(--c-primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
}
.rank-row:nth-child(1) .rank-pos { background: #f59e0b; }
.rank-row:nth-child(2) .rank-pos { background: #9ca3af; }
.rank-row:nth-child(3) .rank-pos { background: #b45309; }
.rank-icon {
    font-size: 22px;
    line-height: 1;
    text-align: center;
}
.rank-info {
    min-width: 0;
    overflow: hidden;
}
.rank-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--c-text);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rank-link {
    color: inherit;
    text-decoration: none;
}
.rank-link:hover { color: var(--c-primary); }
.rank-bar-wrap {
    width: 100%;
    height: 6px;
    background: var(--c-bg);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 4px;
}
.rank-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.4s ease;
}
.rank-stats {
    font-size: 11px;
    color: var(--c-text-soft);
}
.rank-amount {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: var(--c-text);
    text-align: right;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
}

/* Camembert statut */
.status-split {
    display: flex;
    align-items: center;
    gap: 32px;
    flex-wrap: wrap;
    justify-content: center;
}
.status-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 220px;
}
.legend-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--c-bg);
    border-radius: var(--radius-sm);
}
.legend-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.legend-name {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
    color: var(--c-text);
}
.legend-value {
    font-size: 13px;
    color: var(--c-text-soft);
    font-variant-numeric: tabular-nums;
}

.alert small {
    display: block;
    margin-top: 4px;
    font-weight: 400;
    opacity: 0.85;
    font-size: 12px;
}

/* ============================================================
   RENDU CUSTOM DES RDV DANS L'AGENDA
   ============================================================ */
.fc-rdv-content {
    height: 100%;
    overflow: hidden;
    padding: 1px 5px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 1px;
    font-size: 11px;
    line-height: 1.15;
}
.fc-rdv-row {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
}
.fc-rdv-row-top {
    justify-content: space-between;
    margin-bottom: 1px;
}
.fc-rdv-time {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    flex-shrink: 0;
    font-size: 9px;
    text-shadow: 0 1px 1px rgba(0,0,0,.15);
    letter-spacing: 0.01em;
}
.fc-rdv-icon {
    font-size: 11px;
    flex-shrink: 0;
    line-height: 1;
}
.fc-rdv-name {
    font-weight: 700;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    min-width: 0;
    text-shadow: 0 1px 1px rgba(0,0,0,.15);
}
.fc-rdv-dots {
    display: none;
}

/* Rendu sur une seule ligne, en haut du créneau : heure · icône · nom */
.fc-rdv-oneline {
    flex-direction: row !important;
    align-items: center;
    justify-content: flex-start;
    gap: 5px;
    padding: 1px 6px;
    white-space: nowrap;
    overflow: hidden;
}
.fc-rdv-oneline .fc-rdv-time { flex-shrink: 0; }
.fc-rdv-oneline .fc-rdv-icon { flex-shrink: 0; }
.fc-rdv-oneline .fc-rdv-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    min-width: 0;
    flex: 1;
}

/* Fermeture (background event) garde son style */
.fc-event-fermeture {
    padding: 3px 6px;
    color: #475569;
    font-weight: 600;
    font-size: 12px;
}

/* (Les anciens styles .fc-timegrid-event-short ont été retirés : tous les
   RDV utilisent désormais le rendu une-ligne uniforme .fc-rdv-oneline,
   avec la même taille de police quelle que soit la durée.) */

/* ============================================================
   MODALE RDV — Onglets catégories + recherche
   ============================================================ */
.service-search {
    width: 100%;
    padding: 10px 14px;
    margin: 8px 0;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    font-size: 14px;
    font-family: inherit;
    background: white;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.service-search:focus {
    outline: 0;
    border-color: var(--c-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--c-primary) 15%, transparent);
}

.service-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding-bottom: 4px;
    margin-bottom: 12px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}
.service-tabs::-webkit-scrollbar { height: 4px; }
.service-tabs::-webkit-scrollbar-thumb {
    background: var(--c-border);
    border-radius: 2px;
}
.service-tab {
    flex-shrink: 0;
    padding: 6px 14px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-soft);
    cursor: pointer;
    white-space: nowrap;
    transition: all var(--transition);
    font-family: inherit;
}
.service-tab:hover {
    background: white;
    border-color: var(--c-primary);
    color: var(--c-text);
}
.service-tab.active {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: white;
}

/* Grille avec hauteur max + scroll quand beaucoup de prestations */
.service-grid {
    max-height: 320px;
    overflow-y: auto;
    padding-right: 4px;
}

.service-empty {
    grid-column: 1 / -1;
    text-align: center;
    padding: 30px 20px;
    color: var(--c-muted);
    font-size: 14px;
    font-style: italic;
}

/* ============================================================
   PAGE PRESTATIONS — Titres de catégories
   ============================================================ */
.cat-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.cat-name {
    font-size: 16px;
}
.cat-count {
    font-size: 12px;
    font-weight: 500;
    color: var(--c-text-soft);
    background: var(--c-bg);
    padding: 3px 10px;
    border-radius: 12px;
}

/* ============================================================
   MODALE RDV — Étape 1 : cartes de catégories
   ============================================================ */
.cat-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
    gap: 8px;
    padding-top: 6px;
}
.cat-card {
    --c: var(--c-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 11px 8px;
    background: white;
    border: 2px solid var(--c-border);
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
    text-align: center;
}
.cat-card:hover {
    border-color: var(--c);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px color-mix(in srgb, var(--c) 25%, transparent);
}
.cat-card:active {
    transform: translateY(0);
}
.cat-card-icon {
    font-size: 26px;
    line-height: 1;
}
.cat-card-name {
    font-size: 12.5px;
    font-weight: 700;
    color: var(--c-text);
    line-height: 1.15;
}
.cat-card-count {
    font-size: 10px;
    font-weight: 500;
    padding: 1px 7px;
    background: color-mix(in srgb, var(--c) 12%, transparent);
    color: var(--c);
    border-radius: 10px;
}

/* ============================================================
   MODALE RDV — Étape 2 : prestations de la catégorie
   ============================================================ */
.service-picker {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.service-picker-head {
    display: flex;
    align-items: center;
    gap: 12px;
}
.btn-back {
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    color: var(--c-text-soft);
    cursor: pointer;
    font-family: inherit;
    transition: all var(--transition);
}
.btn-back:hover {
    background: white;
    border-color: var(--c-primary);
    color: var(--c-primary);
}
.service-picker-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
}

/* ============================================================
   RDV en VUE MOIS — rendu compact avec pastille colorée
   ============================================================ */
.fc-daygrid-event {
    background: transparent !important;
    border: 0 !important;
    padding: 0 !important;
    margin: 1px 2px;
}
.fc-rdv-month {
    --c: var(--c-primary);
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 11px;
    line-height: 1.3;
    color: var(--c-text);
    background: color-mix(in srgb, var(--c) 12%, white);
    border-left: 3px solid var(--c);
    cursor: pointer;
    overflow: hidden;
    white-space: nowrap;
    transition: background var(--transition);
}
.fc-rdv-month:hover {
    background: color-mix(in srgb, var(--c) 22%, white);
}
.fc-rdv-month-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
    flex-shrink: 0;
}
.fc-rdv-month-time {
    font-variant-numeric: tabular-nums;
    font-weight: 700;
    flex-shrink: 0;
    color: var(--c);
}
.fc-rdv-month-icon {
    font-size: 12px;
    line-height: 1;
    flex-shrink: 0;
}
.fc-rdv-month-name {
    font-weight: 500;
    overflow: hidden;
    text-overflow: ellipsis;
    flex: 1;
    min-width: 0;
}
.fc-rdv-month-dots {
    display: inline-flex;
    gap: 3px;
    flex-shrink: 0;
}
.fc-rdv-month-dots .fc-dot {
    width: 7px;
    height: 7px;
    box-shadow: none;
}

/* ============================================================
   TOOLTIPS TIPPY - Bulle au survol des RDV
   ============================================================ */
.tippy-box[data-theme~='creno'] {
    background: white;
    color: var(--c-text);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,.18), 0 2px 8px rgba(0,0,0,.08);
    border: 1px solid var(--c-border);
}
.tippy-box[data-theme~='creno'][data-placement^='top'] > .tippy-arrow::before {
    border-top-color: white;
}
.tippy-box[data-theme~='creno'][data-placement^='bottom'] > .tippy-arrow::before {
    border-bottom-color: white;
}
.tippy-box[data-theme~='creno'][data-placement^='left'] > .tippy-arrow::before {
    border-left-color: white;
}
.tippy-box[data-theme~='creno'][data-placement^='right'] > .tippy-arrow::before {
    border-right-color: white;
}

.tip-card {
    padding: 4px 2px;
    font-size: 13px;
    line-height: 1.4;
    text-align: left;
}
.tip-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 4px;
}
.tip-header strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
}
.tip-sub {
    font-size: 12px;
    color: var(--c-text-soft);
    font-variant-numeric: tabular-nums;
}
.tip-sep {
    height: 1px;
    background: var(--c-border);
    margin: 8px 0;
}
.tip-presta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--c-text);
}
.tip-presta-icon { font-size: 18px; }
.tip-meta {
    font-size: 12px;
    color: var(--c-text-soft);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}
.tip-line {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    padding: 2px 0;
}
.tip-line-ok      { color: #047857; }
.tip-line-fail    { color: #b45309; }
.tip-line-neutral { color: var(--c-text-soft); }
.tip-notes {
    font-size: 12px;
    color: var(--c-text-soft);
    font-style: italic;
    background: var(--c-bg);
    padding: 6px 10px;
    border-radius: var(--radius-sm);
}
.tip-badge {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 10px;
    flex-shrink: 0;
}
.tip-badge-bleu  { background: #dbeafe; color: #1e40af; }
.tip-badge-vert  { background: #d1fae5; color: #065f46; }
.tip-badge-rouge { background: #fee2e2; color: #991b1b; }
.tip-badge-gris  { background: #f1f5f9; color: #475569; }

/* ============================================================
   UPLOADER DE LOGO (paramètres institut)
   ============================================================ */
.logo-uploader {
    display: flex;
    gap: 18px;
    align-items: center;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    padding: 16px;
}
.logo-preview {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.logo-preview img {
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    display: block;
}
.logo-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-muted);
    font-size: 12px;
    font-style: italic;
    text-align: center;
    padding: 8px;
}
.logo-controls {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}
.logo-controls .btn-link {
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    padding: 0;
}

@media (max-width: 640px) {
    .logo-uploader { flex-direction: column; align-items: stretch; gap: 12px; }
    .logo-preview { align-self: center; }
}

/* ============================================================
   NUMBER STEPPER (moderne, style iOS)
   ============================================================ */
.number-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid var(--c-border);
    border-radius: 10px;
    overflow: hidden;
    background: white;
    margin-top: 6px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.stepper-btn {
    width: 44px;
    height: 44px;
    border: 0;
    background: var(--c-bg);
    color: var(--c-text);
    font-size: 22px;
    font-weight: 600;
    cursor: pointer;
    line-height: 1;
    transition: background 0.15s ease, color 0.15s ease;
    user-select: none;
}
.stepper-btn:hover:not(:disabled) {
    background: var(--c-primary);
    color: white;
}
.stepper-btn:focus { outline: none; }
.stepper-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}
.stepper-input {
    width: 70px !important;
    height: 44px;
    border: 0 !important;
    background: white !important;
    text-align: center;
    font-size: 18px;
    font-weight: 700;
    color: var(--c-text) !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border-left: 1px solid var(--c-border) !important;
    border-right: 1px solid var(--c-border) !important;
    -moz-appearance: textfield;
}
.stepper-input::-webkit-outer-spin-button,
.stepper-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.stepper-hint {
    margin-top: 10px;
    font-size: 12px;
    line-height: 1.5;
}

/* ============================================================
   PANIER MULTI-RDV (modale agenda)
   ============================================================ */
.cart-add-row {
    margin: 14px 0 4px;
}
.btn-add-cart {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 16px;
    border: 0;
    background: linear-gradient(135deg, rgba(124,58,237,.10), rgba(236,72,153,.10));
    color: var(--c-primary);
    border-radius: 10px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: transform .12s ease, box-shadow .12s ease, background .15s ease;
    box-shadow: inset 0 0 0 1.5px rgba(124,58,237,.25);
}
.btn-add-cart svg { flex-shrink: 0; }
.btn-add-cart:hover {
    background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(236,72,153,.16));
    transform: translateY(-1px);
    box-shadow: inset 0 0 0 1.5px rgba(124,58,237,.4), 0 4px 10px rgba(124,58,237,.15);
}
.btn-add-cart:active { transform: translateY(0); }

/* Badge compteur dans le bouton Suivant */
#next-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    margin-left: 4px;
    background: rgba(255,255,255,.25);
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
}

/* Récap modal */
.recap-card {
    display: flex;
    flex-direction: column;
    max-height: 88vh;
}
.recap-body {
    padding: 24px;
    overflow-y: auto;
    flex: 1;
}
.recap-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px;
    border-top: 1px solid var(--c-border);
    background: var(--c-bg);
    border-radius: 0 0 var(--radius, 16px) var(--radius, 16px);
}
.recap-client {
    font-size: 15px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--c-border);
}
.recap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.recap-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: 12px;
    border-left: 3px solid var(--c-primary);
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
    transition: box-shadow .15s ease, transform .15s ease;
}
.recap-item:hover {
    box-shadow: 0 3px 8px rgba(0,0,0,.08);
    transform: translateY(-1px);
}
.recap-item-icon { font-size: 24px; flex-shrink: 0; }
.recap-item-body { flex: 1; min-width: 0; }
.recap-item-name { font-weight: 600; color: var(--c-text); font-size: 14px; }
.recap-item-when { color: var(--c-text-soft); font-size: 13px; font-variant-numeric: tabular-nums; margin-top: 2px; }
.recap-item-prix {
    font-weight: 700;
    color: var(--c-text);
    font-size: 14px;
    font-variant-numeric: tabular-nums;
    flex-shrink: 0;
    white-space: nowrap;
}
.recap-total {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 18px;
    padding: 16px 18px;
    background: linear-gradient(135deg, rgba(124,58,237,.08), rgba(236,72,153,.08));
    border-radius: 12px;
}
.recap-total-label {
    font-size: 13px;
    color: var(--c-text-soft);
    font-weight: 500;
}
.recap-total-amount {
    font-size: 22px;
    font-weight: 800;
    color: var(--c-primary);
    font-variant-numeric: tabular-nums;
}
.cart-zone {
    margin: 16px 0 4px;
    background: var(--c-bg);
    border: 1px solid var(--c-border);
    border-radius: 10px;
    padding: 14px 16px;
}
.cart-title {
    font-size: 13px;
    font-weight: 700;
    color: var(--c-text);
    margin-bottom: 10px;
}
.cart-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: white;
    border: 1px solid var(--c-border);
    border-radius: 8px;
    padding: 8px 12px;
    font-size: 13px;
}
.cart-item-icon { font-size: 18px; flex-shrink: 0; }
.cart-item-body { flex: 1; min-width: 0; }
.cart-item-name { font-weight: 600; color: var(--c-text); }
.cart-item-when { color: var(--c-text-soft); font-size: 12px; font-variant-numeric: tabular-nums; }
.cart-item-remove {
    border: 0;
    background: none;
    color: var(--c-error);
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.cart-item-remove:hover { background: #fee2e2; }

/* La modale récap passe au-dessus de la modale de création */
#modal-recap { z-index: 1010; }

/* Bouton supprimer dans le récap multi-RDV */
.recap-item-remove {
    border: 0;
    background: none;
    color: var(--c-error);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
    border-radius: 6px;
    flex-shrink: 0;
}
.recap-item-remove:hover { background: #fee2e2; }
.recap-empty {
    list-style: none;
    color: var(--c-text-soft);
    font-size: 13px;
    text-align: center;
    padding: 20px;
}
