/* ============================================================
   ESPACE ADMIN — Design System
   Cabinet Dentaire Dr. EL BAKALI Fatima
   
   Identité distincte du front-office :
   - Palette logo (vert #7DC242 + bleu #29ABE2) mais dans un
     registre "outil de travail" : sombre, dense, professionnel
   - Police unique : Inter (lisibilité maximale sur écran)
   - Fond gris ardoise, sidebar dégradé sombre, accents verts
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root {
    /* Couleurs logo exactes */
    --a-vert:          #7DC242;
    --a-vert-fonce:    #5DA830;
    --a-vert-pale:     #EEF7E2;
    --a-bleu:          #29ABE2;
    --a-bleu-fonce:    #1A87B8;
    --a-bleu-pale:     #E5F5FC;
    --a-bleu-nuit:     #0C2D4A;
    --a-bleu-nuit2:    #112F4E;

    /* Neutres admin */
    --a-fond:          #F0F3F7;       /* fond page — gris ardoise très clair */
    --a-fond-alt:      #E8ECF1;
    --a-blanc:         #FFFFFF;
    --a-bordure:       #DDE3EA;
    --a-bordure-forte: #C8D0DA;
    --a-texte:         #1A2634;       /* quasi-noir bleuté */
    --a-texte-doux:    #5A6A7A;
    --a-texte-leger:   #8A9BAB;

    /* Feedback */
    --a-succes:        #5DA830;
    --a-erreur:        #D94040;
    --a-alerte:        #E6A817;
    --a-info:          #29ABE2;

    /* Sidebar */
    --a-sidebar-bg:    #0C2D4A;      /* bleu nuit — fond sidebar */
    --a-sidebar-w:     248px;

    /* Typographie */
    --a-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Rayons */
    --a-r-sm:   6px;
    --a-r-md:   8px;
    --a-r-lg:  12px;
    --a-r-xl:  16px;
    --a-r-btn: 6px;

    /* Ombres */
    --a-ombre-xs:  0 1px 4px rgba(12,45,74,.06);
    --a-ombre-sm:  0 2px 10px rgba(12,45,74,.08);
    --a-ombre-md:  0 4px 20px rgba(12,45,74,.12);
    --a-ombre-lg:  0 8px 32px rgba(12,45,74,.16);

    /* Transition */
    --a-t: 0.2s ease;

    /* Alias rétrocompat (utilisés dans les pages admin existantes) */
    --c-pin:        var(--a-bleu-nuit);
    --c-ivoire:     var(--a-fond);
    --c-or:         var(--a-vert);
    --c-emeraude:   var(--a-bleu);
    --c-texte:      var(--a-texte);
    --c-texte-doux: var(--a-texte-doux);
    --c-blanc:      var(--a-blanc);
    --c-bordure:    var(--a-bordure);
    --c-erreur:     var(--a-erreur);
    --c-succes:     var(--a-succes);
    --sidebar-largeur: var(--a-sidebar-w);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing:border-box; margin:0; padding:0; }
body {
    font-family: var(--a-font);
    background: var(--a-fond);
    color: var(--a-texte);
    font-size: 14px;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { font-family: var(--a-font); color: var(--a-texte); font-weight: 700; line-height: 1.2; }
a { text-decoration:none; color:inherit; }
button { font-family:inherit; cursor:pointer; border:none; background:none; }
input, select, textarea { font-family:inherit; }

/* ============================================================
   PAGE DE CONNEXION
   ============================================================ */
.page-auth {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: var(--a-bleu-nuit);
    background-image:
        radial-gradient(ellipse at 20% 50%, rgba(41,171,226,.15) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 30%, rgba(125,194,66,.10) 0%, transparent 50%);
}

.auth-card {
    background: var(--a-blanc);
    width: 100%;
    max-width: 400px;
    padding: 40px 36px;
    border-radius: var(--a-r-xl);
    box-shadow: 0 24px 64px rgba(0,0,0,.35);
    position: relative;
    overflow: hidden;
}

/* Barre accent en haut de la card */
.auth-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7DC242, #29ABE2);
}

.auth-logo {
    text-align: center;
    margin-bottom: 24px;
}
.auth-logo img {
    height: 52px;
    width: auto;
    margin: 0 auto;
}
.auth-logo span {
    display: block;
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--a-bleu);
    margin-top: 8px;
}
.auth-card h1 {
    font-size: 1.4rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 4px;
    color: var(--a-bleu-nuit);
}
.auth-sous-titre {
    text-align: center;
    color: var(--a-texte-doux);
    font-size: .84rem;
    margin-bottom: 24px;
}

/* Champs auth */
.champ { margin-bottom: 16px; }
.champ label {
    display: block;
    font-size: .78rem;
    font-weight: 700;
    color: var(--a-texte);
    margin-bottom: 6px;
    letter-spacing: .02em;
    text-transform: uppercase;
}
.champ input {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--a-bordure);
    border-radius: var(--a-r-md);
    font-size: .92rem;
    color: var(--a-texte);
    background: var(--a-fond);
    transition: border-color var(--a-t), box-shadow var(--a-t);
}
.champ input:focus {
    outline: none;
    border-color: var(--a-bleu);
    background: var(--a-blanc);
    box-shadow: 0 0 0 3px rgba(41,171,226,.15);
}
.champ-erreur { color: var(--a-erreur); font-size: .74rem; margin-top: 4px; display: none; }
.champ.invalide input { border-color: var(--a-erreur); }
.champ.invalide .champ-erreur { display: block; }

/* Boutons auth */
.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px;
    border-radius: var(--a-r-btn);
    font-weight: 700;
    font-size: .9rem;
    transition: var(--a-t);
    cursor: pointer;
    border: none;
}
.btn-primaire {
    background: linear-gradient(135deg, #7DC242, #5DA830);
    color: #fff;
    box-shadow: 0 3px 12px rgba(125,194,66,.35);
}
.btn-primaire:hover { transform: translateY(-1px); box-shadow: 0 5px 18px rgba(125,194,66,.45); }
.btn-primaire:active { transform: translateY(0); }
.btn-primaire:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.btn-lien {
    display: block;
    text-align: center;
    color: var(--a-bleu);
    font-size: .82rem;
    font-weight: 600;
    margin-top: 16px;
    cursor: pointer;
}
.btn-lien:hover { text-decoration: underline; }

.message-info {
    padding: 10px 14px;
    border-radius: var(--a-r-md);
    font-size: .82rem;
    margin-bottom: 16px;
    display: none;
    border-left: 3px solid;
}
.message-info.visible { display: block; }
.message-info.erreur { background: #FEF0F0; color: var(--a-erreur); border-color: var(--a-erreur); }
.message-info.succes { background: #EFF8E8; color: var(--a-succes); border-color: var(--a-succes); }

/* OTP */
.otp-inputs {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 20px 0;
}
.otp-inputs input {
    width: 44px; height: 52px;
    text-align: center;
    font-size: 1.4rem;
    font-weight: 800;
    border: 2px solid var(--a-bordure);
    border-radius: var(--a-r-md);
    background: var(--a-fond);
    color: var(--a-bleu-nuit);
    transition: border-color var(--a-t), box-shadow var(--a-t);
}
.otp-inputs input:focus {
    outline: none;
    border-color: var(--a-vert);
    box-shadow: 0 0 0 3px rgba(125,194,66,.2);
    background: var(--a-blanc);
}

.retour-etape { font-size: .78rem; color: var(--a-texte-doux); margin-top: 12px; text-align: center; }
.retour-etape a { color: var(--a-bleu); font-weight: 600; }

/* ============================================================
   LAYOUT PRINCIPAL
   ============================================================ */
.admin-layout { display: flex; min-height: 100vh; }

/* ── Sidebar ── */
.sidebar {
    width: var(--a-sidebar-w);
    background: var(--a-sidebar-bg);
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; bottom: 0;
    z-index: 200;
    overflow: hidden;
}

/* Trait accent vertical gauche */
.sidebar::before {
    content: '';
    position: absolute;
    top: 0; left: 0; bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, #7DC242, #29ABE2, #7DC242);
}

/* Logo sidebar */
.sidebar-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 22px 20px 20px 24px;
    border-bottom: 1px solid rgba(255,255,255,.07);
    flex-shrink: 0;
}
.sidebar-logo img { height: 36px; width: auto; }
.sidebar-logo span {
    font-size: .9rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}
.sidebar-logo small {
    display: block;
    font-size: .6rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.45);
    margin-top: 2px;
}

/* Navigation */
.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 16px 12px;
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.18) transparent;
}
.sidebar-nav::-webkit-scrollbar { width: 6px; }
.sidebar-nav::-webkit-scrollbar-track { background: transparent; }
.sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.18);
    border-radius: 3px;
}
.sidebar-nav::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,.3); }

.sidebar-nav a {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 10px 12px;
    border-radius: var(--a-r-md);
    font-size: .84rem;
    font-weight: 500;
    color: rgba(255,255,255,.6);
    transition: all var(--a-t);
    position: relative;
}
.sidebar-nav a svg {
    width: 17px; height: 17px;
    flex-shrink: 0;
    opacity: .7;
}
.sidebar-nav a:hover {
    background: rgba(255,255,255,.07);
    color: rgba(255,255,255,.9);
}
.sidebar-nav a:hover svg { opacity: 1; }

/* Lien actif */
.sidebar-nav a.actif {
    background: rgba(125,194,66,.18);
    color: #7DC242;
    font-weight: 700;
}
.sidebar-nav a.actif svg { opacity: 1; color: #7DC242; }
.sidebar-nav a.actif::after {
    content: '';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    width: 3px; height: 60%;
    background: #7DC242;
    border-radius: 2px 0 0 2px;
}

/* Sous-liens (ex: Liste d'attente / Exceptions / Paramètres sous Rendez-vous) */
.sidebar-nav-sous-lien { padding-left: 30px; font-size: .8rem; }
.sidebar-nav-sous-lien svg { width: 14px; height: 14px; }

/* Séparateurs entre groupes */
.sidebar-nav .nav-group-label {
    font-size: .64rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.25);
    padding: 14px 12px 6px;
    pointer-events: none;
}

/* Footer sidebar */
.sidebar-footer {
    border-top: 1px solid rgba(255,255,255,.07);
    padding: 14px 12px;
    flex-shrink: 0;
}
.sidebar-footer-user {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: var(--a-r-md);
    margin-bottom: 6px;
}
.sidebar-footer-avatar {
    width: 32px; height: 32px;
    border-radius: 50%;
    background: linear-gradient(135deg, #7DC242, #29ABE2);
    display: flex; align-items: center; justify-content: center;
    font-size: .8rem; font-weight: 800; color: #fff;
    flex-shrink: 0;
}
.sidebar-footer-name {
    font-size: .78rem;
    font-weight: 600;
    color: rgba(255,255,255,.75);
    line-height: 1.2;
}
.sidebar-footer-role {
    font-size: .64rem;
    color: rgba(255,255,255,.35);
}
.sidebar-footer button {
    display: flex;
    align-items: center;
    gap: 9px;
    width: 100%;
    padding: 9px 10px;
    border-radius: var(--a-r-md);
    font-size: .8rem;
    font-weight: 500;
    color: rgba(255,255,255,.45);
    transition: all var(--a-t);
}
.sidebar-footer button svg { width: 15px; height: 15px; flex-shrink: 0; }
.sidebar-footer button:hover {
    background: rgba(217,64,64,.15);
    color: #FF7B7B;
}

/* ── Contenu principal ── */
.contenu-principal {
    flex: 1;
    margin-left: var(--a-sidebar-w);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Topbar */
.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    background: var(--a-blanc);
    border-bottom: 1px solid var(--a-bordure);
    position: sticky;
    top: 0;
    z-index: 250;
    box-shadow: var(--a-ombre-xs);
}
.topbar h1 {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--a-bleu-nuit);
}
.topbar-breadcrumb {
    font-size: .76rem;
    color: var(--a-texte-leger);
    margin-top: 2px;
}
.topbar-actions { display: flex; gap: 10px; align-items: center; }

/* Zone de contenu */
.zone-contenu {
    padding: 28px 32px;
    flex: 1;
}
/* Fallback : si les pages n'utilisent pas .zone-contenu */
.contenu-principal > .cartes-stats,
.contenu-principal > .panneau,
.contenu-principal > .filtre-bar,
.contenu-principal > .vue-switch,
.contenu-principal > .tabs {
    margin-left: 32px;
    margin-right: 32px;
}
.contenu-principal > .cartes-stats { margin-top: 28px; }
.contenu-principal > .panneau:first-of-type { margin-top: 28px; }

/* ── Boutons admin ── */
.btn-or-admin {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #7DC242, #5DA830);
    color: #fff;
    border-radius: var(--a-r-btn);
    font-size: .83rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(125,194,66,.30);
    transition: var(--a-t);
    cursor: pointer; border: none;
}
.btn-or-admin:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(125,194,66,.40);
}

.btn-secondaire-admin {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px;
    background: var(--a-blanc);
    color: var(--a-texte);
    border: 1.5px solid var(--a-bordure);
    border-radius: var(--a-r-btn);
    font-size: .83rem; font-weight: 600;
    transition: var(--a-t);
    cursor: pointer;
}
.btn-secondaire-admin:hover { border-color: var(--a-bleu); color: var(--a-bleu); background: var(--a-bleu-pale); }

.btn-danger-admin {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 7px 13px;
    background: #FEF0F0;
    color: var(--a-erreur);
    border-radius: var(--a-r-btn);
    font-size: .78rem; font-weight: 700;
    transition: var(--a-t);
    cursor: pointer; border: none;
}
.btn-danger-admin:hover { background: var(--a-erreur); color: #fff; }

.btn-bleu-admin {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #29ABE2, #1A87B8);
    color: #fff;
    border-radius: var(--a-r-btn);
    font-size: .83rem; font-weight: 700;
    box-shadow: 0 2px 8px rgba(41,171,226,.28);
    transition: var(--a-t);
    cursor: pointer; border: none;
}
.btn-bleu-admin:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(41,171,226,.38); }

/* ── Cartes de statistiques ── */
.cartes-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 24px;
}
.carte-stat {
    background: var(--a-blanc);
    border: 1px solid var(--a-bordure);
    border-radius: var(--a-r-lg);
    padding: 20px 22px;
    position: relative;
    overflow: hidden;
    transition: var(--a-t);
}
.carte-stat:hover { box-shadow: var(--a-ombre-sm); transform: translateY(-1px); }
.carte-stat::after {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 2px;
    background: linear-gradient(90deg, #7DC242, #29ABE2);
    opacity: 0;
    transition: opacity var(--a-t);
}
.carte-stat:hover::after { opacity: 1; }

.carte-stat-icone {
    width: 38px; height: 38px;
    border-radius: var(--a-r-md);
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 14px;
    font-size: 1.1rem;
}
.carte-stat-icone.vert  { background: var(--a-vert-pale); color: var(--a-vert-fonce); }
.carte-stat-icone.bleu  { background: var(--a-bleu-pale); color: var(--a-bleu-fonce); }
.carte-stat-icone.rouge { background: #FEF0F0; color: var(--a-erreur); }
.carte-stat-icone.or    { background: #FEF8E8; color: #B8860B; }

.carte-stat .valeur {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--a-bleu-nuit);
    line-height: 1;
    margin-bottom: 4px;
}
.carte-stat .label {
    font-size: .74rem;
    color: var(--a-texte-leger);
    font-weight: 500;
}

/* ── Panneau / Card ── */
.panneau {
    background: var(--a-blanc);
    border: 1px solid var(--a-bordure);
    border-radius: var(--a-r-lg);
    padding: 22px 24px;
    margin-bottom: 20px;
    box-shadow: var(--a-ombre-xs);
}
.panneau h2 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--a-bleu-nuit);
    display: flex;
    align-items: center;
    gap: 8px;
}
.panneau h2::before {
    content: '';
    width: 3px; height: 18px;
    background: linear-gradient(180deg, #7DC242, #29ABE2);
    border-radius: 2px;
    flex-shrink: 0;
}

/* ── Tables ── */
table.table-admin {
    width: 100%;
    border-collapse: collapse;
    font-size: .84rem;
}
table.table-admin thead th {
    text-align: left;
    font-size: .70rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--a-texte-leger);
    padding: 10px 14px;
    border-bottom: 2px solid var(--a-bordure);
    white-space: nowrap;
    background: var(--a-fond);
}
table.table-admin thead th:first-child { border-radius: var(--a-r-sm) 0 0 0; }
table.table-admin thead th:last-child  { border-radius: 0 var(--a-r-sm) 0 0; }

table.table-admin tbody td {
    padding: 13px 14px;
    border-bottom: 1px solid var(--a-bordure);
    color: var(--a-texte);
    vertical-align: middle;
}
table.table-admin tbody tr:last-child td { border-bottom: none; }
table.table-admin tbody tr:hover td { background: #F7FAFD; }
table.table-admin tbody tr:hover td:first-child { border-left: 2px solid var(--a-vert); }

/* ── Badges statuts ── */
.badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; }

.badge-attente  { background: #FEF8E8; color: #9C7000; }
.badge-attente::before { background: #E6A817; }

.badge-confirme { background: #EFF8E8; color: #3A7D00; }
.badge-confirme::before { background: #5DA830; }

.badge-annule   { background: #FEF0F0; color: #B02020; }
.badge-annule::before { background: #D94040; }

.badge-termine  { background: #F0F3F7; color: #5A6A7A; }
.badge-termine::before { background: #8A9BAB; }

.badge-retard   { background: #FEF0E4; color: #B0561A; }
.badge-retard::before { background: #E68A2E; }

.badge-arrive   { background: #E9F4FB; color: #1A6FA0; }
.badge-arrive::before { background: #2C9BDB; }

.badge-consultation { background: #EAE6F7; color: #5B3FA0; }
.badge-consultation::before { background: #8C6FD8; }

.badge-reporte  { background: #F3EEE4; color: #8A6A2E; }
.badge-reporte::before { background: #C6A15A; }

.badge-urgence  { background: #FEE9E9; color: #C0242A; }
.badge-urgence::before { background: #E63946; }

/* ── Timeline historique ── */
.timeline-rdv { position: relative; padding-left: 22px; margin-top: 10px; }
.timeline-rdv::before {
    content: ''; position: absolute; left: 5px; top: 4px; bottom: 4px;
    width: 2px; background: var(--a-bordure);
}
.timeline-item { position: relative; padding-bottom: 18px; }
.timeline-item::before {
    content: ''; position: absolute; left: -22px; top: 2px;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--a-vert); border: 2px solid #fff; box-shadow: 0 0 0 2px var(--a-bordure);
}
.timeline-item-titre { font-size: .85rem; font-weight: 700; color: var(--a-texte); }
.timeline-item-meta { font-size: .74rem; color: var(--a-texte-doux); margin-top: 2px; }
.timeline-item-details { font-size: .78rem; color: var(--a-texte-doux); margin-top: 4px; background: var(--a-ivoire); padding: 6px 10px; border-radius: 6px; }

/* ── File d'attente / actions rapides RDV ── */
.actions-rapides-rdv { display: flex; gap: 6px; flex-wrap: wrap; }
.actions-rapides-rdv button {
    padding: 5px 10px; font-size: .74rem; font-weight: 700; border-radius: 20px;
    border: 1.5px solid var(--a-bordure); background: #fff; color: var(--a-texte);
    transition: all var(--a-t);
}
.actions-rapides-rdv button:hover { border-color: var(--a-vert); color: var(--a-vert); background: var(--a-vert-pale, #EFF8E8); }
.actions-rapides-rdv button.danger:hover { border-color: var(--a-erreur); color: var(--a-erreur); background: #FEF0F0; }

/* ── Filtres ── */
.filtre-bar {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
    flex-wrap: wrap;
    align-items: center;
}
.filtre-bar select,
.filtre-bar input[type="date"],
.filtre-bar input[type="text"] {
    padding: 8px 12px;
    border: 1.5px solid var(--a-bordure);
    border-radius: var(--a-r-btn);
    font-size: .82rem;
    font-family: inherit;
    background: var(--a-blanc);
    color: var(--a-texte);
    transition: border-color var(--a-t);
}
.filtre-bar select:focus,
.filtre-bar input:focus { outline: none; border-color: var(--a-bleu); }

/* ── Bascule Liste / Calendrier ── */
.vue-switch { display: flex; gap: 8px; margin-bottom: 18px; }
.vue-switch button {
    padding: 9px 18px; border-radius: var(--a-r-btn); border: 1.5px solid var(--a-bordure);
    background: var(--a-blanc); color: var(--a-texte-doux); font-size: .84rem; font-weight: 700;
    transition: var(--a-t);
}
.vue-switch button:hover { border-color: var(--a-bleu); color: var(--a-bleu); }
.vue-switch button.actif { background: var(--a-bleu-nuit); border-color: var(--a-bleu-nuit); color: #fff; }

/* ── Calendrier RDV (jour / semaine / mois) ── */
.calendrier-toolbar {
    display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 14px; margin-bottom: 20px;
}
.calendrier-nav { display: flex; align-items: center; gap: 8px; }
.calendrier-nav #calPrecedent,
.calendrier-nav #calSuivant {
    width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--a-bordure);
    background: var(--a-blanc); color: var(--a-bleu-nuit); font-size: 1.1rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center; transition: var(--a-t); flex-shrink: 0;
}
.calendrier-nav #calPrecedent:hover,
.calendrier-nav #calSuivant:hover { border-color: var(--a-bleu); color: var(--a-bleu); }
#calendrierLabel { font-size: 1.05rem; text-transform: capitalize; flex: 1; text-align: center; min-width: 180px; }
.calendrier-modes { display: flex; gap: 4px; background: var(--a-fond); border-radius: var(--a-r-btn); padding: 3px; flex-shrink: 0; }
.calendrier-modes button {
    padding: 7px 16px; border-radius: calc(var(--a-r-btn) - 2px); font-size: .8rem; font-weight: 700;
    color: var(--a-texte-doux); transition: var(--a-t);
}
.calendrier-modes button.actif { background: var(--a-blanc); color: var(--a-bleu-nuit); box-shadow: var(--a-ombre-xs); }

/* Puce RDV réutilisée dans les vues mois / semaine */
.cal-rdv-chip {
    display: flex; align-items: center; gap: 4px; padding: 3px 7px; border-radius: 5px;
    font-size: .68rem; font-weight: 600; background: var(--a-bleu-pale); color: var(--a-bleu-fonce);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; cursor: pointer;
    border-left: 3px solid var(--a-bleu); text-align: left; width: 100%;
}
.cal-rdv-chip:hover { background: var(--a-bleu); color: #fff; }
.cal-rdv-chip.statut-annule, .cal-rdv-chip.statut-no_show {
    background: #FEF0F0; color: #B02020; border-left-color: var(--a-erreur); text-decoration: line-through;
}
.cal-rdv-chip.statut-annule:hover, .cal-rdv-chip.statut-no_show:hover { background: var(--a-erreur); color: #fff; }
.cal-rdv-chip.statut-termine { background: #F0F3F7; color: #5A6A7A; border-left-color: #8A9BAB; }
.cal-rdv-chip.statut-termine:hover { background: #8A9BAB; color: #fff; }
.cal-rdv-chip.statut-confirme { background: #EFF8E8; color: #3A7D00; border-left-color: var(--a-vert); }
.cal-rdv-chip.statut-confirme:hover { background: var(--a-vert); color: #fff; }
.cal-rdv-chip--bloc { white-space: normal; }

/* Vue mois */
.cal-mois-grille { display: grid; grid-template-columns: repeat(7, 1fr); border: 1px solid var(--a-bordure); border-radius: var(--a-r-md); overflow: hidden; }
.cal-mois-entete {
    padding: 8px; text-align: center; font-size: .68rem; font-weight: 700; text-transform: uppercase;
    letter-spacing: .05em; color: var(--a-texte-leger); background: var(--a-fond); border-bottom: 1px solid var(--a-bordure);
}
.cal-mois-jour {
    min-height: 108px; padding: 6px; border-right: 1px solid var(--a-bordure); border-bottom: 1px solid var(--a-bordure);
    display: flex; flex-direction: column; gap: 3px; background: var(--a-blanc);
}
.cal-mois-jour:nth-child(7n) { border-right: none; }
.cal-mois-jour.hors-mois { background: var(--a-fond); }
.cal-mois-jour.hors-mois .cal-mois-numero { color: var(--a-texte-leger); }
.cal-mois-numero { font-size: .78rem; font-weight: 700; color: var(--a-texte); }
.cal-mois-jour.aujourdhui .cal-mois-numero {
    display: inline-flex; align-items: center; justify-content: center;
    width: 20px; height: 20px; border-radius: 50%; background: var(--a-vert); color: #fff;
}
.cal-mois-plus { font-size: .68rem; color: var(--a-texte-doux); font-weight: 700; padding: 2px 6px; cursor: pointer; background: none; border: none; text-align: left; }
.cal-mois-plus:hover { color: var(--a-bleu); }

/* Vue semaine */
.cal-semaine-grille { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: start; }
.cal-semaine-jour { border: 1px solid var(--a-bordure); border-radius: var(--a-r-md); overflow: hidden; background: var(--a-blanc); min-height: 160px; }
.cal-semaine-jour.aujourdhui { border-color: var(--a-vert); }
.cal-semaine-entete { padding: 9px 10px; text-align: center; background: var(--a-fond); border-bottom: 1px solid var(--a-bordure); }
.cal-semaine-jour.aujourdhui .cal-semaine-entete { background: var(--a-vert-pale); }
.cal-semaine-entete .cal-semaine-nomjour { display: block; font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--a-texte-leger); font-weight: 700; }
.cal-semaine-entete .cal-semaine-numjour { display: block; font-size: 1.1rem; font-weight: 800; color: var(--a-bleu-nuit); }
.cal-semaine-corps { padding: 8px; display: flex; flex-direction: column; gap: 6px; }
.cal-semaine-vide { font-size: .72rem; color: var(--a-texte-leger); text-align: center; padding: 10px 0; }

/* Vue jour (agenda) */
.cal-jour-liste { display: flex; flex-direction: column; }
.cal-jour-item { display: flex; align-items: center; gap: 16px; padding: 14px 10px; border-bottom: 1px solid var(--a-bordure); flex-wrap: wrap; }
.cal-jour-item:last-child { border-bottom: none; }
.cal-jour-heure { font-size: 1rem; font-weight: 800; color: var(--a-bleu-nuit); width: 56px; flex-shrink: 0; }
.cal-jour-details { flex: 1; min-width: 180px; }
.cal-jour-details strong { font-size: .92rem; color: var(--a-texte); }
.cal-jour-details p { font-size: .8rem; color: var(--a-texte-doux); margin-top: 2px; }

@media (max-width: 900px) {
    .cal-mois-jour { min-height: 74px; }
    .cal-mois-entete { font-size: .58rem; padding: 6px 2px; }
    .cal-semaine-grille { grid-template-columns: 1fr; }
}

/* ── Onglets ── */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 2px solid var(--a-bordure);
    margin-bottom: 22px;
}
.tabs button {
    padding: 10px 18px;
    font-size: .84rem;
    font-weight: 600;
    color: var(--a-texte-doux);
    border-bottom: 2px solid transparent;
    margin-bottom: -2px;
    transition: color var(--a-t), border-color var(--a-t);
}
.tabs button:hover { color: var(--a-texte); }
.tabs button.actif { color: var(--a-bleu-nuit); border-bottom-color: var(--a-vert); }

/* ── Modales admin ── */
.modal-overlay-admin {
    position: fixed; inset: 0;
    background: rgba(12,45,74,.6);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}
.modal-overlay-admin.actif { display: flex; }

.modal-box-admin {
    background: var(--a-blanc);
    width: min(560px, 100%);
    max-height: 88vh;
    overflow-y: auto;
    border-radius: var(--a-r-xl);
    padding: 28px 30px;
    position: relative;
    box-shadow: var(--a-ombre-lg);
}
.modal-box-admin::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, #7DC242, #29ABE2);
    border-radius: var(--a-r-xl) var(--a-r-xl) 0 0;
}
.modal-box-admin .fermer {
    position: absolute;
    top: 16px; right: 16px;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    background: var(--a-fond);
    color: var(--a-texte-doux);
    font-size: .85rem;
    transition: var(--a-t);
    cursor: pointer;
}
.modal-box-admin .fermer:hover { background: #FEF0F0; color: var(--a-erreur); }

/* ── Champs de formulaire admin ── */
.champ { margin-bottom: 15px; }
.champ label {
    display: block;
    font-size: .74rem;
    font-weight: 700;
    color: var(--a-texte-doux);
    margin-bottom: 5px;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.champ input,
.champ select,
.champ-textarea {
    width: 100%;
    padding: 10px 13px;
    border: 1.5px solid var(--a-bordure);
    border-radius: var(--a-r-md);
    font-family: inherit;
    font-size: .88rem;
    background: var(--a-blanc);
    color: var(--a-texte);
    transition: border-color var(--a-t), box-shadow var(--a-t);
}
.champ input:focus,
.champ select:focus,
.champ-textarea:focus {
    outline: none;
    border-color: var(--a-bleu);
    box-shadow: 0 0 0 3px rgba(41,171,226,.12);
}
textarea.champ-textarea { resize: vertical; }
.champ-erreur { color: var(--a-erreur); font-size: .74rem; margin-top: 4px; display: none; }
.champ.invalide input,
.champ.invalide select { border-color: var(--a-erreur); }
.champ.invalide .champ-erreur { display: block; }

/* ── Toggle switch ── */
.toggle-switch { display: inline-block; position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: #CBD5E0;
    border-radius: 24px;
    cursor: pointer;
    transition: background var(--a-t);
}
.toggle-slider::before {
    content: '';
    position: absolute;
    width: 18px; height: 18px;
    left: 3px; top: 3px;
    background: #fff;
    border-radius: 50%;
    transition: transform var(--a-t);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.toggle-switch input:checked + .toggle-slider { background: var(--a-vert); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(18px); }

/* ── Zone aperçu image ── */
.image-preview {
    width: 100%; min-height: 150px;
    border: 2px dashed var(--a-bordure);
    border-radius: var(--a-r-lg);
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
    background: var(--a-fond);
    margin-bottom: 12px;
    transition: border-color var(--a-t), background var(--a-t);
    cursor: pointer;
}
.image-preview:hover { border-color: var(--a-bleu); background: var(--a-bleu-pale); }
.image-preview img { width: 100%; height: 100%; object-fit: cover; }

/* ── Empty state ── */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--a-texte-leger);
    font-size: .88rem;
}
.empty-state::before {
    content: '📋';
    display: block;
    font-size: 2.5rem;
    margin-bottom: 12px;
    opacity: .5;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
    .cartes-stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 980px) {
    .sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
        z-index: 1500;
    }
    .sidebar.ouvert { transform: translateX(0); }
    .contenu-principal { margin-left: 0; }
    .topbar { padding: 16px 20px; }
    .zone-contenu,
    .contenu-principal > .cartes-stats,
    .contenu-principal > .panneau,
    .contenu-principal > .filtre-bar,
    .contenu-principal > .vue-switch,
    .contenu-principal > .tabs { margin-left: 0; margin-right: 0; }
}

/* ============================================================
   SYSTÈME DE NOTIFICATIONS
   ============================================================ */

/* Wrapper cloche */
.notif-wrap {
    position: relative;
}

/* Bouton cloche */
.notif-cloche {
    position: relative;
    width: 38px; height: 38px;
    border-radius: var(--a-r-md);
    display: flex; align-items: center; justify-content: center;
    background: var(--a-fond);
    border: 1.5px solid var(--a-bordure);
    color: var(--a-texte-doux);
    cursor: pointer;
    transition: var(--a-t);
}
.notif-cloche:hover {
    border-color: var(--a-bleu);
    color: var(--a-bleu);
    background: var(--a-bleu-pale);
}

/* Badge compteur */
.notif-badge {
    position: absolute;
    top: -6px; right: -6px;
    min-width: 18px; height: 18px;
    background: var(--a-erreur);
    color: #fff;
    border-radius: 20px;
    font-size: .65rem;
    font-weight: 800;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--a-blanc);
    padding: 0 4px;
    line-height: 1;
}
@keyframes badgePulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.3); }
    60%  { transform: scale(.95); }
    100% { transform: scale(1); }
}
.notif-badge.pulse { animation: badgePulse .4s ease; }

/* Dropdown panel */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    max-width: calc(100vw - 32px);
    background: var(--a-blanc);
    border: 1px solid var(--a-bordure);
    border-radius: var(--a-r-xl);
    box-shadow: var(--a-ombre-lg);
    overflow: hidden;
    z-index: 5000;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}
.notif-dropdown.ouvert {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header dropdown */
.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 18px;
    border-bottom: 1px solid var(--a-bordure);
    background: var(--a-fond);
}
.notif-dropdown-titre {
    font-size: .88rem;
    font-weight: 800;
    color: var(--a-bleu-nuit);
}
.notif-tout-lu {
    font-size: .74rem;
    font-weight: 600;
    color: var(--a-bleu);
    cursor: pointer;
    background: none; border: none;
    padding: 4px 8px;
    border-radius: var(--a-r-sm);
    transition: var(--a-t);
}
.notif-tout-lu:hover { background: var(--a-bleu-pale); }

/* Liste notifications */
.notif-liste {
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Item notification */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 18px;
    border-bottom: 1px solid var(--a-bordure);
    cursor: pointer;
    transition: background var(--a-t);
    position: relative;
    background: #FAFCFF;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--a-bleu-pale); }
.notif-item.lu { background: var(--a-blanc); }
.notif-item.lu:hover { background: var(--a-fond); }

.notif-icone {
    font-size: 1.3rem;
    flex-shrink: 0;
    width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--a-fond);
    border-radius: var(--a-r-md);
}

.notif-corps { flex: 1; min-width: 0; }
.notif-titre {
    font-size: .84rem;
    font-weight: 700;
    color: var(--a-bleu-nuit);
    margin-bottom: 3px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.notif-msg {
    font-size: .78rem;
    color: var(--a-texte-doux);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-date {
    font-size: .70rem;
    color: var(--a-texte-leger);
    margin-top: 4px;
}

/* Point bleu "non lu" */
.notif-point {
    position: absolute;
    top: 16px; right: 14px;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--a-bleu);
    flex-shrink: 0;
}

.notif-vide {
    text-align: center;
    padding: 32px 20px;
    color: var(--a-texte-leger);
    font-size: .84rem;
}
.notif-vide::before { content: '🔔'; display: block; font-size: 2rem; margin-bottom: 8px; opacity: .4; }

/* ── Dialogue WhatsApp (popup post-confirmation) ── */
.wa-popup {
    position: fixed; inset: 0;
    background: rgba(12,45,74,.6);
    backdrop-filter: blur(4px);
    z-index: 9000;
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
}
.wa-popup-box {
    background: var(--a-blanc);
    border-radius: var(--a-r-xl);
    padding: 28px;
    max-width: 420px; width: 100%;
    box-shadow: var(--a-ombre-lg);
    text-align: center;
    position: relative;
}
.wa-popup-box::before {
    content: '';
    position: absolute; top:0; left:0; right:0;
    height: 3px;
    background: linear-gradient(90deg, #25D366, #128C7E);
    border-radius: var(--a-r-xl) var(--a-r-xl) 0 0;
}
.wa-icone { font-size: 3rem; margin-bottom: 14px; }
.wa-popup-box h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--a-bleu-nuit); }
.wa-popup-box p { font-size: .88rem; color: var(--a-texte-doux); margin-bottom: 20px; }
.wa-popup-box .patient-info {
    background: var(--a-fond); border-radius: var(--a-r-md);
    padding: 12px 16px; margin-bottom: 20px;
    font-size: .84rem; color: var(--a-texte);
    font-weight: 600;
}
.btn-whatsapp {
    display: inline-flex; align-items: center; justify-content: center; gap: 9px;
    width: 100%; padding: 13px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    border-radius: var(--a-r-btn); border: none;
    font-weight: 700; font-size: .95rem;
    cursor: pointer; text-decoration: none;
    margin-bottom: 10px;
    transition: var(--a-t);
}
.btn-whatsapp:hover { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(37,211,102,.35); }
.btn-ignorer {
    display: block; width: 100%;
    padding: 10px; background: none; border: none;
    font-size: .82rem; color: var(--a-texte-leger);
    cursor: pointer; transition: var(--a-t);
}
.btn-ignorer:hover { color: var(--a-texte); }

/* ============================================================
   SYSTÈME DE NOTIFICATIONS — cloche + badge + dropdown
   ============================================================ */

/* Wrapper positionné */
.notif-wrap {
    position: relative;
}

/* Bouton cloche */
.notif-cloche {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: var(--a-r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--a-fond);
    border: 1.5px solid var(--a-bordure);
    color: var(--a-texte-doux);
    transition: var(--a-t);
    cursor: pointer;
}
.notif-cloche:hover {
    background: var(--a-bleu-pale);
    border-color: var(--a-bleu);
    color: var(--a-bleu);
}

/* Badge compteur */
.notif-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    background: var(--a-erreur);
    color: #fff;
    border-radius: 10px;
    font-size: .68rem;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--a-blanc);
    line-height: 1;
}

/* Animation pulse quand nouveau message */
@keyframes notif-pulse {
    0%   { transform: scale(1); }
    30%  { transform: scale(1.4); }
    60%  { transform: scale(0.9); }
    100% { transform: scale(1); }
}
.notif-badge.pulse { animation: notif-pulse 0.5s ease; }

/* Dropdown notifications */
.notif-dropdown {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    width: 360px;
    background: var(--a-blanc);
    border: 1px solid var(--a-bordure);
    border-radius: var(--a-r-lg);
    box-shadow: var(--a-ombre-lg);
    z-index: 3000;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}
.notif-dropdown.ouvert {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Header dropdown */
.notif-dropdown-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--a-bordure);
    background: var(--a-fond);
}
.notif-dropdown-titre {
    font-size: .85rem;
    font-weight: 800;
    color: var(--a-bleu-nuit);
}
.notif-tout-lu {
    font-size: .72rem;
    font-weight: 700;
    color: var(--a-bleu);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: var(--a-r-sm);
    transition: var(--a-t);
}
.notif-tout-lu:hover { background: var(--a-bleu-pale); }

/* Liste */
.notif-liste {
    max-height: 400px;
    overflow-y: auto;
}

/* Item notification */
.notif-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 13px 16px;
    border-bottom: 1px solid var(--a-bordure);
    cursor: pointer;
    transition: background var(--a-t);
    position: relative;
    background: #FAFCFE;  /* légèrement bleuté = non lu */
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--a-bleu-pale); }
.notif-item.lu { background: var(--a-blanc); }
.notif-item.lu:hover { background: var(--a-fond); }

.notif-icone {
    font-size: 1.3rem;
    width: 36px;
    height: 36px;
    border-radius: var(--a-r-md);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: var(--a-fond);
}

/* Couleurs par type */
.notif-item[data-type="nouveau_rdv"]      .notif-icone { background: var(--a-bleu-pale); }
.notif-item[data-type="rdv_non_confirme"] .notif-icone { background: #FEF8E8; }
.notif-item[data-type="rdv_confirme"]     .notif-icone { background: var(--a-vert-pale); }
.notif-item[data-type="rdv_annule"]       .notif-icone { background: #FEF0F0; }

.notif-corps { flex: 1; min-width: 0; }
.notif-titre {
    font-size: .82rem;
    font-weight: 700;
    color: var(--a-bleu-nuit);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3px;
}
.notif-msg {
    font-size: .76rem;
    color: var(--a-texte-doux);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.notif-date {
    font-size: .68rem;
    color: var(--a-texte-leger);
    margin-top: 4px;
    font-weight: 500;
}

/* Point non-lu */
.notif-point {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--a-bleu);
    flex-shrink: 0;
    margin-top: 4px;
}

/* Vide */
.notif-vide {
    padding: 32px 20px;
    text-align: center;
    color: var(--a-texte-leger);
    font-size: .84rem;
}
.notif-vide::before {
    content: '🔔';
    display: block;
    font-size: 1.8rem;
    margin-bottom: 10px;
    opacity: .4;
}

/* Footer dropdown — lien "Voir tout" */
.notif-dropdown-footer {
    padding: 10px 16px;
    border-top: 1px solid var(--a-bordure);
    text-align: center;
    background: var(--a-fond);
}
.notif-dropdown-footer a {
    font-size: .76rem;
    font-weight: 700;
    color: var(--a-bleu);
}
.notif-dropdown-footer a:hover { text-decoration: underline; }

/* Popup WhatsApp (confirmation RDV) */
.whatsapp-popup {
    position: fixed;
    bottom: 28px;
    right: 28px;
    background: var(--a-blanc);
    border: 1.5px solid #25D366;
    border-radius: var(--a-r-xl);
    padding: 20px 24px;
    box-shadow: 0 8px 32px rgba(37,211,102,.25);
    z-index: 3000;
    max-width: 340px;
    animation: slideUp 0.35s ease;
}
@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to   { transform: translateY(0);    opacity: 1; }
}
.whatsapp-popup-titre {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: .9rem;
    font-weight: 800;
    color: #075E54;
    margin-bottom: 8px;
}
.whatsapp-popup p {
    font-size: .82rem;
    color: var(--a-texte-doux);
    margin-bottom: 16px;
    line-height: 1.5;
}
.whatsapp-popup strong { color: var(--a-texte); }
.whatsapp-popup-actions { display: flex; gap: 10px; }
.btn-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 18px;
    background: #25D366;
    color: #fff;
    border-radius: var(--a-r-btn);
    font-size: .83rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--a-t);
    cursor: pointer;
    border: none;
}
.btn-whatsapp:hover { background: #128C7E; }
.btn-whatsapp-annuler {
    padding: 10px 14px;
    font-size: .83rem;
    font-weight: 600;
    color: var(--a-texte-doux);
    border: 1.5px solid var(--a-bordure);
    border-radius: var(--a-r-btn);
    background: var(--a-blanc);
    transition: var(--a-t);
    cursor: pointer;
}
.btn-whatsapp-annuler:hover { border-color: var(--a-erreur); color: var(--a-erreur); }

/* Résumé RDV semaine (dashboard) */
.rdv-semaine-resume {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.rdv-jour-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 8px 12px;
    background: var(--a-fond);
    border: 1px solid var(--a-bordure);
    border-radius: var(--a-r-md);
    min-width: 52px;
    transition: var(--a-t);
}
.rdv-jour-chip.a-rdv { background: var(--a-bleu-pale); border-color: var(--a-bleu); }
.rdv-jour-chip.aujourd-hui { background: var(--a-vert-pale); border-color: var(--a-vert); font-weight: 800; }
.rdv-jour-chip .jour-label { font-size: .66rem; color: var(--a-texte-leger); font-weight: 600; text-transform: uppercase; }
.rdv-jour-chip .jour-count { font-size: 1.1rem; font-weight: 800; color: var(--a-bleu-nuit); line-height: 1; margin-top: 2px; }
.rdv-jour-chip.a-rdv .jour-count { color: var(--a-bleu-fonce); }
.rdv-jour-chip.aujourd-hui .jour-count { color: var(--a-vert-fonce); }
