/* ========================================================
   ESPACE PRATICIEN & ADMINISTRATION CLINIQUE MAROCPSY
   Design System Moderne & Médical
   ======================================================== */

:root {
    --pro-navy: #0f1824;
    --pro-teal: #143767;
    --pro-teal-hover: #0f294d;
    --pro-teal-light: #eaeef4;
    --pro-accent-gold: #b45309;
    --pro-gold-light: #fef3c7;
    --pro-slate: #334155;
    --pro-muted: #64748b;
    --pro-border: #dbdfe5;
    --pro-bg-soft: #f8f9fa;
    --pro-surface: #ffffff;
    --pro-danger: #dc2626;
    --pro-success: #1e529b;
    --pro-shadow-sm: 0 1px 3px rgba(15,24,36, 0.06);
    --pro-shadow-md: 0 4px 14px rgba(15,24,36, 0.08);
    --pro-shadow-lg: 0 10px 30px rgba(15,24,36, 0.12);
}

/* --------------------------------------------------------
   1. PAGE DE CONNEXION & D'ACTIVATION PRATICIEN (PORTAIL CLINIQUE)
   -------------------------------------------------------- */
.pro-login-wrapper {
    max-width: 560px;
    margin: 36px auto 70px;
    padding: 0 16px;
}

.pro-login-wrapper.pro-auth-split {
    max-width: 1040px;
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    gap: 0;
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    box-shadow: 0 12px 36px -8px rgba(15, 23, 42, 0.12);
    overflow: hidden;
    padding: 0;
}

.pro-auth-showcase {
    background: #1e293b;
    color: #ffffff;
    padding: 32px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-inline-end: 1px solid #334155;
}

.pro-showcase-top .pro-login-title {
    font-size: 1.55rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 8px;
    color: #f8fafc;
}

.pro-showcase-top .pro-login-subtitle {
    font-size: 0.88rem;
    color: #94a3b8;
    line-height: 1.55;
    margin-bottom: 22px;
}

.pro-showcase-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}

.pro-showcase-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.07);
    border-radius: 6px;
    padding: 10px 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pro-showcase-feature-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.14);
}

.pro-showcase-feature-icon {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.24);
    color: #60a5fa;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    flex-shrink: 0;
}

.pro-showcase-feature-text strong {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #f1f5f9;
    margin-bottom: 2px;
}

.pro-showcase-feature-text p {
    font-size: 0.77rem;
    color: #94a3b8;
    line-height: 1.4;
    margin: 0;
}

.pro-showcase-footer {
    margin-top: 22px;
    padding-top: 16px;
    border-top: 1px solid #334155;
}

.pro-showcase-trust-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.73rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.45);
    border: 1px solid #334155;
    padding: 5px 10px;
    border-radius: 6px;
}

.pro-login-card {
    background: var(--pro-surface);
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    box-shadow: var(--pro-shadow-lg);
    overflow: hidden;
}

.pro-login-card.pro-auth-card {
    border: none;
    border-radius: 0;
    box-shadow: none;
    display: flex;
    flex-direction: column;
}

.pro-auth-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px 0;
    gap: 12px;
}

.pro-topbar-back-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.83rem;
    font-weight: 600;
    color: var(--pro-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-radius: 6px;
    transition: all 0.15s ease;
}

[dir="rtl"] .pro-topbar-back-link i {
    transform: scaleX(-1);
}

.pro-topbar-back-link:hover {
    color: var(--pro-navy);
    background: var(--pro-bg-soft);
}

.pro-auth-lang-switcher {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: var(--pro-bg-soft);
    border: 1px solid var(--pro-border);
    padding: 3px;
    border-radius: 6px;
}

.pro-lang-pill {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--pro-muted);
    padding: 4px 8px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pro-lang-pill:hover {
    color: var(--pro-navy);
}

.pro-lang-pill.active {
    background: var(--pro-teal);
    color: #ffffff !important;
}

.pro-login-banner {
    background: linear-gradient(135deg, var(--pro-navy) 0%, #17273e 100%);
    color: #ffffff;
    padding: 34px 30px 28px;
    text-align: center;
    position: relative;
}

.pro-login-shield-badge {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 5px 14px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #abc7ef;
    margin-bottom: 14px;
}

.pro-login-title {
    font-size: 1.65rem;
    font-weight: 800;
    margin: 0 0 8px;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.pro-login-subtitle {
    font-size: 0.92rem;
    color: #cbd5e1;
    margin: 0;
    line-height: 1.5;
}

.pro-login-body {
    padding: 26px 32px 32px;
}

/* Bannière de session déjà active */
.pro-active-session-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: #edf3fc;
    border: 1.5px solid #71a1e4;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.pro-active-session-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-session-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #2059a9;
    box-shadow: 0 0 0 4px rgba(32,89,169, 0.2);
    flex-shrink: 0;
}

.pro-active-session-info strong {
    display: block;
    font-size: 0.84rem;
    color: #102d55;
}

.pro-active-session-info p {
    margin: 0;
    font-size: 0.78rem;
    color: #143768;
}

.pro-active-session-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #194582;
    color: #ffffff !important;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 6px;
    text-decoration: none;
    transition: background 0.15s ease;
}

.pro-active-session-btn:hover {
    background: #143768;
}

/* Onglets Connexion / Récupération */
.pro-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    background: #f1f3f5;
    padding: 5px;
    border-radius: 8px;
    margin-bottom: 22px;
    border: 1px solid var(--pro-border);
}

.pro-auth-tab-btn {
    background: transparent;
    border: none;
    border-radius: 6px;
    padding: 10px 12px;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--pro-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s ease;
    font-family: inherit;
}

.pro-auth-tab-btn:hover {
    color: var(--pro-navy);
}

.pro-auth-tab-btn.active {
    background: #ffffff;
    color: var(--pro-teal);
    box-shadow: 0 2px 6px rgba(15,24,36, 0.08);
}

/* Honeypot invisible */
.pro-hp-field {
    position: absolute !important;
    left: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.pro-security-attempt-warn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #92400e;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 0.82rem;
    font-weight: 600;
    margin-bottom: 16px;
}

.pro-form-group {
    margin-bottom: 18px;
}

.pro-form-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--pro-navy);
    margin-bottom: 8px;
}

.pro-forgot-inline-btn {
    background: none;
    border: none;
    padding: 0;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--pro-teal);
    cursor: pointer;
    text-decoration: none;
    font-family: inherit;
}

.pro-forgot-inline-btn:hover {
    text-decoration: underline;
    color: var(--pro-teal-hover);
}

.pro-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.pro-input-icon {
    position: absolute;
    inset-inline-start: 14px;
    color: var(--pro-muted);
    font-size: 1rem;
    pointer-events: none;
    z-index: 2;
}

.pro-input-status-icon {
    position: absolute;
    inset-inline-end: 14px;
    color: #2059a9;
    font-size: 0.95rem;
    pointer-events: none;
    z-index: 2;
}

.pro-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--pro-border);
    border-radius: 6px;
    background: #ffffff;
    padding: 0 44px;
    font-size: 0.95rem;
    color: var(--pro-navy);
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.pro-input-mono {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.85rem;
}

.pro-input:focus {
    outline: none;
    border-color: var(--pro-teal);
    box-shadow: 0 0 0 4px rgba(20,55,103, 0.12);
}

.pro-password-toggle {
    position: absolute;
    inset-inline-end: 12px;
    background: none;
    border: none;
    color: var(--pro-muted);
    font-size: 1rem;
    cursor: pointer;
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.pro-password-toggle:hover {
    color: var(--pro-navy);
}

.pro-capslock-warning {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    padding: 7px 12px;
    border-radius: 6px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    color: #b45309;
    font-size: 0.78rem;
    font-weight: 600;
}

/* Case Se souvenir de moi */
.pro-remember-box {
    margin-bottom: 20px;
    background: #f8f9fa;
    border: 1px solid var(--pro-border);
    border-radius: 6px;
    padding: 10px 14px;
}

.pro-remember-label {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}

.pro-remember-checkbox {
    width: 17px;
    height: 17px;
    margin-top: 2px;
    accent-color: var(--pro-teal);
    cursor: pointer;
    flex-shrink: 0;
}

.pro-remember-text strong {
    display: block;
    font-size: 0.84rem;
    color: var(--pro-navy);
    line-height: 1.3;
}

.pro-remember-text small {
    display: block;
    font-size: 0.75rem;
    color: var(--pro-muted);
    margin-top: 2px;
}

.pro-btn-submit {
    width: 100%;
    height: 50px;
    background: var(--pro-teal);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(20,55,103, 0.25);
}

.pro-btn-submit:hover {
    background: var(--pro-teal-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(20,55,103, 0.35);
}

/* Panneau de récupération */
.pro-recover-intro {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    background: #f1f6fc;
    border: 1px solid #d1e0f6;
    border-radius: 8px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.pro-recover-icon-badge {
    width: 38px;
    height: 38px;
    border-radius: 6px;
    background: var(--pro-teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}

.pro-recover-heading {
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--pro-navy);
    margin: 0 0 4px;
}

.pro-recover-text {
    font-size: 0.81rem;
    color: var(--pro-slate);
    line-height: 1.45;
    margin: 0;
}

.pro-token-shortcut {
    margin-top: 14px;
}

.pro-token-direct-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 11px 14px;
    border-radius: 6px;
    background: var(--pro-bg-soft);
    border: 1px dashed var(--pro-border);
    color: var(--pro-slate) !important;
    font-size: 0.82rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pro-token-direct-link:hover {
    border-color: var(--pro-teal);
    color: var(--pro-teal) !important;
    background: var(--pro-teal-light);
}

.pro-login-footer-box {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--pro-border);
    display: flex;
    flex-direction: column;
    gap: 14px;
    font-size: 0.86rem;
    color: var(--pro-muted);
}

.pro-info-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    background: var(--pro-bg-soft);
    padding: 12px 14px;
    border-radius: 6px;
    border: 1px solid var(--pro-border);
}

.pro-info-row i {
    color: var(--pro-teal);
    margin-top: 2px;
    font-size: 0.95rem;
}

.pro-onboarding-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pro-onboarding-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 13px;
    border-radius: 6px;
    border: 1px solid var(--pro-border);
    background: #ffffff;
    text-decoration: none;
    transition: all 0.15s ease;
}

.pro-onboarding-card:hover {
    border-color: var(--pro-teal);
    background: var(--pro-teal-light);
    transform: translateY(-1px);
}

.pro-onboarding-icon {
    width: 34px;
    height: 34px;
    border-radius: 6px;
    background: var(--pro-teal-light);
    color: var(--pro-teal);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.pro-onboarding-claim .pro-onboarding-icon {
    background: #fef3c7;
    color: #b45309;
}

.pro-onboarding-content strong {
    display: block;
    font-size: 0.78rem;
    color: var(--pro-navy);
    line-height: 1.25;
}

.pro-onboarding-content span {
    display: block;
    font-size: 0.74rem;
    color: var(--pro-teal);
    font-weight: 700;
    margin-top: 2px;
}

.pro-login-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

.pro-link-secondary {
    color: var(--pro-teal);
    font-weight: 600;
    text-decoration: none;
}

.pro-link-secondary:hover {
    text-decoration: underline;
}

/* Activation & Indicateur de robustesse du mot de passe */
.pro-invite-verified-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #edf3fc;
    border: 1px solid #abc7ef;
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 20px;
}

.pro-invite-verified-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: #2059a9;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.pro-invite-verified-box strong {
    display: block;
    font-size: 0.9rem;
    color: #102d55;
}

.pro-invite-verified-box span {
    font-size: 0.8rem;
    color: #143768;
}

.pro-pwd-meter-wrap {
    margin-top: 10px;
}

.pro-pwd-meter-bars {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-bottom: 6px;
}

.pro-pwd-bar {
    height: 5px;
    border-radius: 999px;
    background: #e2e8f0;
    transition: background 0.25s ease;
}

.pro-pwd-meter-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.76rem;
    color: var(--pro-muted);
}

.pro-pwd-criteria-list {
    list-style: none;
    padding: 12px 14px;
    margin: 0 0 20px;
    background: var(--pro-bg-soft);
    border: 1px solid var(--pro-border);
    border-radius: 12px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
}

.pro-pwd-rule {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.77rem;
    color: var(--pro-muted);
    transition: color 0.15s ease;
}

.pro-pwd-rule.valid {
    color: #194582;
    font-weight: 600;
}

@media (max-width: 900px) {
    .pro-login-wrapper.pro-auth-split {
        display: flex;
        flex-direction: column;
        max-width: 580px;
    }
    .pro-auth-card {
        order: 1;
    }
    .pro-auth-showcase {
        order: 2;
        padding: 24px 20px;
        border-inline-end: none;
        border-top: 1px solid #334155;
    }
    .pro-pwd-criteria-list,
    .pro-onboarding-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------
   2. HUB ADMINISTRATEUR PRATICIEN (TABLEAU DE BORD)
   -------------------------------------------------------- */
.pro-admin-header {
    background: linear-gradient(135deg, var(--pro-navy) 0%, #142a49 100%);
    color: #ffffff;
    border-radius: 20px;
    padding: 28px 32px;
    margin-bottom: 26px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    box-shadow: var(--pro-shadow-md);
}

.pro-admin-identity {
    display: flex;
    align-items: center;
    gap: 18px;
}

.pro-admin-avatar {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    background: var(--pro-teal);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 800;
    border: 2px solid rgba(255, 255, 255, 0.25);
    flex-shrink: 0;
    overflow: hidden;
}

.pro-admin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pro-admin-meta h1 {
    font-size: 1.5rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #ffffff;
    line-height: 1.2;
}

.pro-admin-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pro-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.76rem;
    font-weight: 700;
}

.pro-badge-premium {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(217, 119, 6, 0.35);
}

.pro-badge-free {
    background: rgba(255, 255, 255, 0.15);
    color: #e2e8f0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.pro-badge-verified {
    background: #0284c7;
    color: #ffffff;
}

.pro-badge-status-published {
    background: #194582;
    color: #ffffff;
}

.pro-badge-status-draft {
    background: #d97706;
    color: #ffffff;
}

.pro-admin-quick-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pro-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.pro-btn-outline:hover {
    background: rgba(255, 255, 255, 0.22);
}

/* Barre d'onglets de navigation */
.pro-tabs-nav {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--pro-border);
}

.pro-tab-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 12px 12px 0 0;
    color: var(--pro-muted);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    margin-bottom: -8px;
    transition: all 0.2s ease;
}

.pro-tab-link:hover {
    color: var(--pro-teal);
    background: rgba(20,55,103, 0.04);
}

.pro-tab-link.active {
    color: var(--pro-teal);
    background: #ffffff;
    border-bottom-color: var(--pro-teal);
}

.pro-tab-link .pro-tab-pill {
    font-size: 0.72rem;
    padding: 2px 7px;
    border-radius: 999px;
    background: var(--pro-teal-light);
    color: var(--pro-teal);
}

/* Grille de statistiques */
.pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-bottom: 28px;
}

.pro-stat-card {
    background: #ffffff;
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--pro-shadow-sm);
    display: flex;
    flex-direction: column;
}

.pro-stat-icon {
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    margin-bottom: 12px;
}

.pro-stat-teal { background: #e6ecf4; color: var(--pro-teal); }
.pro-stat-amber { background: #fef3c7; color: #b45309; }
.pro-stat-blue { background: #e0f2fe; color: #0284c7; }
.pro-stat-purple { background: #f3e8ff; color: #7e22ce; }

.pro-stat-value {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--pro-navy);
    line-height: 1.2;
}

.pro-stat-label {
    font-size: 0.82rem;
    color: var(--pro-muted);
    margin-top: 4px;
}

/* --------------------------------------------------------
   3. SÉLECTEUR DE COMPÉTENCES & SUGGESTIONS INTELLIGENTES
   -------------------------------------------------------- */
.pro-suggestions-banner {
    background: linear-gradient(135deg, #f1f6fc 0%, #edf3fc 100%);
    border: 1.5px solid #abc7ef;
    border-radius: 16px;
    padding: 20px 24px;
    margin-bottom: 26px;
}

.pro-suggestions-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 14px;
}

.pro-suggestions-header h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #102d55;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-suggestions-header p {
    font-size: 0.85rem;
    color: #143768;
    margin: 4px 0 0;
}

.pro-btn-smart-add {
    background: #194582;
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pro-btn-smart-add:hover {
    background: #143768;
}

.pro-suggestions-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.pro-suggest-chip {
    background: #ffffff;
    border: 1px solid #71a1e4;
    color: #102d55;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.pro-suggest-chip:hover {
    background: #194582;
    color: #ffffff;
    border-color: #194582;
}

.pro-suggest-chip.added {
    background: #e2e8f0;
    border-color: #cbd5e1;
    color: #64748b;
    cursor: default;
}

/* Zone de recherche globale dans le catalogue */
.pro-search-bar {
    position: relative;
    margin-bottom: 20px;
}

.pro-search-input {
    width: 100%;
    height: 48px;
    border: 1.5px solid var(--pro-border);
    border-radius: 12px;
    padding: 0 46px;
    font-size: 0.95rem;
    background: #ffffff;
    color: var(--pro-navy);
    box-sizing: border-box;
}

.pro-search-input:focus {
    outline: none;
    border-color: var(--pro-teal);
    box-shadow: 0 0 0 4px rgba(20,55,103, 0.1);
}

.pro-catalog-section {
    background: #ffffff;
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 22px;
}

.pro-catalog-section-title {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--pro-navy);
    margin: 0 0 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.pro-selected-tags-box {
    background: var(--pro-bg-soft);
    border: 1px dashed var(--pro-border);
    border-radius: 12px;
    padding: 14px;
    min-height: 52px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 18px;
}

.pro-empty-tags-hint {
    font-size: 0.84rem;
    color: var(--pro-muted);
    font-style: italic;
    margin: auto 0;
}

.pro-tag-badge {
    background: #ffffff;
    border: 1.5px solid var(--pro-teal);
    color: var(--pro-teal);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--pro-shadow-sm);
    animation: fadeIn 0.2s ease;
}

.pro-tag-remove-btn {
    background: none;
    border: none;
    color: var(--pro-danger);
    font-size: 1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0;
    display: flex;
    align-items: center;
}

.pro-available-tags-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-height: 280px;
    overflow-y: auto;
    padding-right: 6px;
}

.pro-tag-clickable {
    background: #ffffff;
    border: 1px solid var(--pro-border);
    color: var(--pro-slate);
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
}

.pro-tag-clickable:hover {
    border-color: var(--pro-teal);
    color: var(--pro-teal);
    background: var(--pro-teal-light);
}

.pro-tag-clickable.selected {
    display: none;
}

/* --------------------------------------------------------
   4. ÉDITEUR WYSIWYG CLINIQUE
   -------------------------------------------------------- */
.pro-wysiwyg-container {
    background: #ffffff;
    border: 1.5px solid var(--pro-border);
    border-radius: 16px;
    overflow: hidden;
    margin-bottom: 22px;
    box-shadow: var(--pro-shadow-sm);
}

.pro-wysiwyg-toolbar {
    background: var(--pro-bg-soft);
    border-bottom: 1px solid var(--pro-border);
    padding: 8px 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    align-items: center;
}

.pro-wysiwyg-btn {
    background: #ffffff;
    border: 1px solid var(--pro-border);
    border-radius: 6px;
    color: var(--pro-slate);
    min-width: 34px;
    height: 34px;
    padding: 0 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.88rem;
    font-weight: 700;
    transition: all 0.15s ease;
}

.pro-wysiwyg-btn:hover {
    background: var(--pro-teal-light);
    color: var(--pro-teal);
    border-color: var(--pro-teal);
}

.pro-wysiwyg-btn:active {
    background: var(--pro-teal);
    color: #ffffff;
}

.pro-wysiwyg-separator {
    width: 1px;
    height: 24px;
    background: var(--pro-border);
    margin: 0 4px;
}

.pro-wysiwyg-editor {
    min-height: 260px;
    max-height: 600px;
    overflow-y: auto;
    padding: 20px 24px;
    font-size: 0.96rem;
    line-height: 1.7;
    color: var(--pro-navy);
    outline: none;
}

.pro-wysiwyg-editor:empty:before {
    content: attr(data-placeholder);
    color: #94a3b8;
    pointer-events: none;
}

.pro-wysiwyg-editor h3 {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pro-navy);
    margin: 18px 0 10px;
}

.pro-wysiwyg-editor h4 {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--pro-navy);
    margin: 14px 0 8px;
}

.pro-wysiwyg-editor blockquote {
    border-inline-start: 4px solid var(--pro-teal);
    margin: 14px 0;
    padding: 8px 16px;
    background: var(--pro-bg-soft);
    color: var(--pro-slate);
    font-style: italic;
    border-radius: 0 8px 8px 0;
}

.pro-wysiwyg-editor ul, .pro-wysiwyg-editor ol {
    margin: 12px 0;
    padding-inline-start: 24px;
}

.pro-wysiwyg-editor li {
    margin-bottom: 6px;
}

.pro-wysiwyg-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: var(--pro-bg-soft);
    border-top: 1px solid var(--pro-border);
    font-size: 0.8rem;
    color: var(--pro-muted);
}

/* --------------------------------------------------------
   5. FOIRE AUX QUESTIONS (FAQ ASSISTÉE)
   -------------------------------------------------------- */
.pro-faq-presets-box {
    background: #f8fafc;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 24px;
}

.pro-faq-presets-title {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--pro-navy);
    margin: 0 0 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-faq-presets-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.pro-faq-preset-card {
    background: #ffffff;
    border: 1px solid var(--pro-border);
    border-radius: 10px;
    padding: 12px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.pro-faq-preset-card:hover {
    border-color: var(--pro-teal);
    box-shadow: var(--pro-shadow-sm);
}

.pro-faq-preset-question {
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--pro-navy);
    line-height: 1.4;
}

.pro-btn-add-faq-preset {
    background: var(--pro-teal-light);
    color: var(--pro-teal);
    border: 1px solid #abc7ef;
    border-radius: 8px;
    padding: 6px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    flex-shrink: 0;
}

.pro-btn-add-faq-preset:hover {
    background: var(--pro-teal);
    color: #ffffff;
}

.pro-faq-items-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 24px;
}

.pro-faq-item-card {
    background: #ffffff;
    border: 1.5px solid var(--pro-border);
    border-radius: 14px;
    padding: 20px;
    position: relative;
    box-shadow: var(--pro-shadow-sm);
}

.pro-faq-item-card.dragging {
    opacity: 0.5;
}

.pro-faq-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pro-faq-item-badge {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--pro-teal);
    background: var(--pro-teal-light);
    padding: 3px 9px;
    border-radius: 6px;
}

.pro-btn-delete-faq {
    background: none;
    border: none;
    color: var(--pro-danger);
    font-size: 0.95rem;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
}

.pro-btn-delete-faq:hover {
    background: #fee2e2;
}

.pro-faq-input {
    width: 100%;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.92rem;
    color: var(--pro-navy);
    margin-bottom: 10px;
    box-sizing: border-box;
}

.pro-faq-textarea {
    width: 100%;
    min-height: 80px;
    border: 1px solid var(--pro-border);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: var(--pro-navy);
    resize: vertical;
    box-sizing: border-box;
}

/* --------------------------------------------------------
   6. BANNIÈRE UPSELL PREMIUM POUR LES COMPTES GRATUITS
   -------------------------------------------------------- */
.pro-premium-locked-banner {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 1.5px solid #fcd34d;
    border-radius: 16px;
    padding: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}

.pro-locked-info h4 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #92400e;
    margin: 0 0 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pro-locked-info p {
    font-size: 0.88rem;
    color: #b45309;
    margin: 0;
    max-width: 650px;
    line-height: 1.5;
}

.pro-btn-upgrade {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #ffffff;
    border: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
    transition: all 0.2s ease;
}

.pro-btn-upgrade:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.35);
}

/* --------------------------------------------------------
   7. GESTION DU PROFIL & COORDONNÉES DU PRATICIEN
   -------------------------------------------------------- */
.pro-profile-card {
    background: #ffffff;
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    padding: 26px 28px;
    margin-bottom: 22px;
    box-shadow: var(--pro-shadow-sm);
}

.pro-profile-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--pro-border);
}

.pro-profile-card-title {
    font-size: 1.12rem;
    font-weight: 800;
    color: var(--pro-navy);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.pro-profile-card-subtitle {
    font-size: 0.85rem;
    color: var(--pro-muted);
    margin: 4px 0 0;
}

/* Boîte Avatar & Photo */
.pro-avatar-edit-box {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--pro-bg-soft);
    border: 1px solid var(--pro-border);
    border-radius: 14px;
    padding: 20px;
    margin-bottom: 22px;
    flex-wrap: wrap;
}

.pro-avatar-preview-wrap {
    width: 100px;
    height: 100px;
    border-radius: 20px;
    overflow: hidden;
    background: var(--pro-teal);
    box-shadow: var(--pro-shadow-md);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid #ffffff;
}

.pro-avatar-preview-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.pro-avatar-preview-initials {
    color: #ffffff;
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    user-select: none;
}

.pro-avatar-controls {
    flex: 1;
    min-width: 260px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pro-upload-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--pro-teal);
    color: #ffffff;
    padding: 10px 18px;
    border-radius: 10px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    width: fit-content;
}

.pro-upload-btn:hover {
    background: var(--pro-teal-hover);
    transform: translateY(-1px);
}

.pro-photo-options {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.85rem;
    color: var(--pro-slate);
}

.pro-url-wrap {
    margin-top: 4px;
}

/* Formulaires & Grilles de champs */
.pro-form-row {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
}

.pro-form-col-2 {
    grid-template-columns: repeat(2, 1fr);
}

.pro-form-col-3 {
    grid-template-columns: repeat(3, 1fr);
}

.pro-form-col-4 {
    grid-template-columns: repeat(4, 1fr);
}

.pro-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.pro-field-label {
    font-size: 0.86rem;
    font-weight: 700;
    color: var(--pro-navy);
}

.pro-field-label-desc {
    font-size: 0.78rem;
    color: var(--pro-muted);
    font-weight: normal;
}

.pro-field-input,
.pro-field-select,
.pro-field-textarea {
    width: 100%;
    border: 1.5px solid var(--pro-border);
    border-radius: 10px;
    padding: 10px 14px;
    font-size: 0.92rem;
    color: var(--pro-navy);
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.pro-field-input:focus,
.pro-field-select:focus,
.pro-field-textarea:focus {
    outline: none;
    border-color: var(--pro-teal);
    box-shadow: 0 0 0 4px rgba(20,55,103, 0.1);
}

.pro-field-select {
    height: 44px;
    cursor: pointer;
}

.pro-field-textarea {
    resize: vertical;
    line-height: 1.5;
}

/* Groupes de boutons-puces pour langues & publics */
.pro-pill-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 4px;
}

.pro-pill-checkbox {
    position: relative;
    cursor: pointer;
    user-select: none;
}

.pro-pill-checkbox input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pro-pill-checkbox span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    background: var(--pro-bg-soft);
    border: 1.5px solid var(--pro-border);
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 600;
    color: var(--pro-slate);
    transition: all 0.2s ease;
}

.pro-pill-checkbox input:checked + span {
    background: var(--pro-teal-light);
    border-color: var(--pro-teal);
    color: var(--pro-teal);
    font-weight: 700;
}

.pro-pill-checkbox:hover span {
    border-color: var(--pro-teal);
}

.pro-submit-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 14px;
    background: #ffffff;
    border: 1px solid var(--pro-border);
    border-radius: 16px;
    padding: 18px 24px;
    margin-top: 24px;
    box-shadow: var(--pro-shadow-md);
    position: sticky;
    bottom: 20px;
    z-index: 10;
}

/* --------------------------------------------------------
   8. SECTION SPÉCIALITÉS COMPLÉMENTAIRES (STYLE SOUTENU)
   -------------------------------------------------------- */
.pro-additional-specialties-container {
    background: linear-gradient(180deg, #fbfcfd 0%, #f4f6f8 100%);
    border: 1.5px solid #cfd6e0;
    border-radius: 14px;
    padding: 22px;
    margin-top: 22px;
    box-shadow: 0 2px 8px rgba(15,24,36, 0.04);
}

.pro-additional-specialties-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pro-additional-specialties-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: var(--pro-navy);
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
}

.pro-additional-specialties-desc {
    font-size: 0.85rem;
    color: var(--pro-slate);
    line-height: 1.5;
    margin: 6px 0 0;
    max-width: 720px;
}

.pro-specialties-counter-badge {
    background: #ffffff;
    border: 1.5px solid var(--pro-teal);
    color: var(--pro-teal);
    font-size: 0.82rem;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: var(--pro-shadow-sm);
}

.pro-specialties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 10px;
    margin-top: 14px;
}

.pro-specialty-card-choice {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 15px;
    background: #ffffff;
    border: 1.5px solid #dce0e6;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    user-select: none;
    position: relative;
}

.pro-specialty-card-choice:hover:not(.disabled) {
    border-color: var(--pro-teal);
    background: #f8f9fb;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(20,55,103, 0.08);
}

.pro-specialty-card-choice.active {
    border-color: var(--pro-teal);
    background: var(--pro-teal-light);
    color: var(--pro-teal);
    box-shadow: 0 2px 6px rgba(20,55,103, 0.12);
}

.pro-specialty-card-choice input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--pro-teal);
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.pro-specialty-card-label {
    font-size: 0.86rem;
    font-weight: 600;
    color: var(--pro-navy);
    line-height: 1.35;
    flex: 1;
}

.pro-specialty-card-choice.active .pro-specialty-card-label {
    font-weight: 700;
    color: #0e274a;
}

.pro-specialty-card-choice.disabled {
    opacity: 0.65;
    cursor: not-allowed;
    background: #f4f5f6;
    border-color: #e2e8f0;
}

.pro-specialty-card-choice.disabled input {
    cursor: not-allowed;
}

.pro-specialties-upsell-callout {
    background: #ffffff;
    border: 1.5px dashed #f59e0b;
    border-radius: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}

.pro-specialties-upsell-text {
    font-size: 0.86rem;
    color: #92400e;
    line-height: 1.5;
    margin: 0;
}

/* Animations & Responsive */
@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 900px) {
    .pro-stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .pro-faq-presets-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .pro-admin-header {
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
    }
    .pro-stats-grid {
        grid-template-columns: 1fr;
    }
    .pro-premium-locked-banner {
        flex-direction: column;
        align-items: flex-start;
    }
    .pro-login-wrapper {
        margin: 20px auto 40px;
    }
}
