/* ============================================
   SERVICAM - ADMIN DASHBOARD CSS
   ============================================ */

:root {
    --primary: #111111;
    --primary-dark: #000000;
    --accent: #7033ff;
    --accent-soft: rgba(112, 51, 255, 0.08);
    --accent-border: rgba(112, 51, 255, 0.25);
    --success: #16a34a;
    --success-soft: rgba(22, 163, 74, 0.1);
    --warning: #d97706;
    --warning-soft: rgba(217, 119, 6, 0.1);
    --danger: #dc2626;
    --danger-soft: rgba(220, 38, 38, 0.1);
    --info: #2563eb;
    --info-soft: rgba(37, 99, 235, 0.1);
    --gray-50: #fafafa;
    --gray-100: #f5f5f5;
    --gray-200: #e5e7eb;
    --gray-300: #d4d4d8;
    --gray-500: #71717a;
    --gray-700: #3f3f46;
    --gray-800: #27272a;
    --gray-900: #18181b;
    --white: #fff;
    --sidebar-width: 240px;
    --header-height: 60px;
    --bg-body: #fafafa;
    --bg-card: var(--white);
    --bg-input: var(--white);
    --bg-sidebar: #0f0f10;
    --bg-header: var(--white);
    --bg-hover: #f4f4f5;
    --text-primary: #18181b;
    --text-secondary: #3f3f46;
    --text-muted: #71717a;
    --border-color: #e5e7eb;
    --border-strong: #d4d4d8;
    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 10px;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* ============================================
   DARK THEME
   ============================================ */
[data-theme="dark"] {
    --primary: #fafafa;
    --primary-dark: #e5e5e5;
    --accent: #9b6dff;
    --accent-soft: rgba(155, 109, 255, 0.12);
    --accent-border: rgba(155, 109, 255, 0.3);
    --gray-50: #18181b;
    --gray-100: #1c1c1f;
    --gray-200: #27272a;
    --gray-300: #3f3f46;
    --gray-500: #71717a;
    --gray-700: #a1a1aa;
    --gray-800: #d4d4d8;
    --gray-900: #fafafa;
    --white: #18181b;
    --bg-body: #09090b;
    --bg-card: #111113;
    --bg-input: #1c1c1f;
    --bg-sidebar: #09090b;
    --bg-header: #111113;
    --bg-hover: #1c1c1f;
    --text-primary: #fafafa;
    --text-secondary: #d4d4d8;
    --text-muted: #71717a;
    --border-color: #27272a;
    --border-strong: #3f3f46;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 4px 12px rgba(0, 0, 0, 0.5);
}

[data-theme="dark"] body,
[data-theme="dark"] {
    color-scheme: dark;
}

[data-theme="dark"] .login-screen {
    background: var(--bg-body);
}

[data-theme="dark"] .login-card {
    background: var(--bg-card);
    border-color: var(--gray-700, #2a2a2a);
}

[data-theme="dark"] .login-logo h1 {
    color: var(--gray-900);
}

[data-theme="dark"] .login-form input {
    background: var(--bg-body);
    border-color: var(--gray-700, #2a2a2a);
    color: var(--gray-900);
}

[data-theme="dark"] .btn-login {
    background: #fafafa;
    color: #18181b;
}

[data-theme="dark"] .btn-login:hover {
    background: #e5e5e5;
}

[data-theme="dark"] .doughnut-center {
    background: var(--bg-card);
}

[data-theme="dark"] .legend-value {
    background: var(--bg-body);
}

[data-theme="dark"] .data-table th {
    background: #181825;
}

[data-theme="dark"] .data-table tr:hover td {
    background: var(--bg-hover);
}

[data-theme="dark"] .modal-content {
    background: var(--bg-card);
}

[data-theme="dark"] .confirm-modal .modal-confirm {
    background: var(--bg-card);
}

[data-theme="dark"] .pending-card-actions {
    background: var(--bg-body);
}

[data-theme="dark"] .btn-reject {
    background: var(--gray-300);
    color: var(--text-primary);
}

[data-theme="dark"] .welcome-banner {
    background: linear-gradient(135deg, #312e81 0%, #1e1b4b 100%);
    color: #fff;
}

[data-theme="dark"] .stat-card.blue .stat-icon { background: rgba(112, 51, 255, 0.2); }
[data-theme="dark"] .stat-card.green .stat-icon { background: rgba(37, 211, 102, 0.2); }
[data-theme="dark"] .stat-card.orange .stat-icon { background: rgba(255, 152, 0, 0.2); }
[data-theme="dark"] .stat-card.red .stat-icon { background: rgba(244, 67, 54, 0.2); }

[data-theme="dark"] .toast {
    background: #313244;
    color: #cdd6f4;
}

[data-theme="dark"] .delete-loading-content {
    background: var(--bg-card);
}

[data-theme="dark"] .code-modify-modal {
    background: var(--bg-card);
}

[data-theme="dark"] .notify-modal {
    background: var(--bg-card);
}

[data-theme="dark"] .notify-modal-header {
    background: linear-gradient(135deg, #1a2e1a 0%, #1e2e1e 100%);
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .notify-modal-header h3 {
    color: var(--text-primary);
}

[data-theme="dark"] .notify-modal-header p {
    color: var(--text-muted);
}

[data-theme="dark"] .notify-subtitle {
    color: var(--text-muted);
}

[data-theme="dark"] .notify-no-social {
    background: var(--bg-body);
    color: var(--text-muted);
    border-top-color: var(--border-color);
}

[data-theme="dark"] .lightbox-content {
    background: rgba(0, 0, 0, 0.9);
}

[data-theme="dark"] img {
    opacity: 0.92;
}

[data-theme="dark"] input,
[data-theme="dark"] select,
[data-theme="dark"] textarea {
    background: var(--bg-input);
    color: var(--text-primary);
    border-color: var(--border-color);
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: var(--text-muted);
}

[data-theme="dark"] .settings-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .form-divider {
    border-color: var(--border-color);
}

[data-theme="dark"] .input-readonly {
    background: var(--bg-body);
}

/* Theme Toggle Button */
/* Sélecteur de langue admin */
.admin-lang-toggle {
    display: flex;
    background: var(--gray-100);
    border: 2px solid var(--gray-200);
    border-radius: 50px;
    overflow: hidden;
    gap: 0;
}

.admin-lang-btn {
    border: none;
    background: transparent;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.25s ease;
    letter-spacing: 0.5px;
}

.admin-lang-btn.active {
    background: var(--primary);
    color: #fff;
    border-radius: 50px;
    box-shadow: 0 2px 8px rgba(112, 51, 255, 0.25);
}

.admin-lang-btn:not(.active):hover {
    color: var(--primary);
}

[data-theme="dark"] .admin-lang-toggle {
    border-color: var(--gray-300);
    background: var(--gray-200);
}

[data-theme="dark"] .admin-lang-btn {
    color: #aaa;
}

[data-theme="dark"] .admin-lang-btn.active {
    background: var(--primary);
    color: #fff;
}

/* Masquer TOUT Google Translate UI dans admin */
.goog-te-banner-frame,
.goog-te-balloon-frame,
#goog-gt-tt,
.goog-te-ftab-link,
.goog-tooltip,
.goog-tooltip:hover,
.goog-te-menu-value,
.goog-te-gadget,
.goog-te-gadget-simple,
.goog-te-gadget-icon,
.goog-te-spinner-pos,
.goog-te-menu-frame,
.goog-te-menu2,
#goog-gt-vt,
[id^="goog-gt-"],
[class*="goog-te-"],
iframe[name="votebox"],
iframe[src*="translate.google"] {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    z-index: -1 !important;
}

.skiptranslate:not(#google_translate_element_admin) {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

body > .skiptranslate:not(#google_translate_element_admin) {
    display: none !important;
    height: 0 !important;
}

.skiptranslate iframe,
iframe.goog-te-banner-frame,
iframe[name="votebox"],
iframe[src*="translate.google"] {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    border: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
}

#google_translate_element_admin {
    display: block !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

html.translated-ltr,
html.translated-rtl {
    margin-top: 0 !important;
}

body {
    top: 0 !important;
    position: static !important;
    margin-top: 0 !important;
}

.goog-text-highlight {
    background: none !important;
    box-shadow: none !important;
}

font[style], font {
    font-family: inherit !important;
    vertical-align: inherit !important;
}

/* Masquer TOUS les iframes enfants directs de body (Google Translate) */
body > iframe {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Protéger la date/heure contre les modifications de Google Translate */
.notranslate font,
.notranslate font[style],
#currentDate font,
#currentTime font,
#welcomeMessage font {
    font-family: inherit !important;
    vertical-align: inherit !important;
    display: contents !important;
    font-size: inherit !important;
    color: inherit !important;
    line-height: inherit !important;
}

#currentDate,
#currentTime {
    font: inherit;
}

/* Empêcher Google Translate de modifier la zone date/heure */
#currentDate *,
#currentTime * {
    font-family: inherit !important;
    font-size: inherit !important;
    color: inherit !important;
    vertical-align: inherit !important;
    display: contents !important;
}

.theme-toggle {
    width: 40px;
    height: 40px;
    border: 2px solid var(--gray-200);
    border-radius: 50%;
    background: var(--gray-100);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    color: var(--gray-700);
    position: relative;
}

.theme-toggle:hover {
    border-color: var(--primary);
    background: rgba(112, 51, 255, 0.08);
    color: var(--primary);
    transform: rotate(15deg);
}

.theme-toggle .icon-moon {
    display: none;
}

.theme-toggle .icon-sun {
    display: block;
}

.theme-icon-img {
    width: 20px;
    height: 20px;
    display: block;
}

.dark .theme-icon-img,
[data-theme="dark"] .theme-icon-img {
    filter: invert(1) brightness(1.2);
}

[data-theme="dark"] .theme-toggle {
    border-color: var(--gray-300);
    background: var(--gray-200);
    color: #f9e44c;
}

[data-theme="dark"] .theme-toggle:hover {
    border-color: #f9e44c;
    background: rgba(249, 228, 76, 0.12);
}

[data-theme="dark"] .theme-toggle .icon-moon {
    display: block;
}

[data-theme="dark"] .theme-toggle .icon-sun {
    display: none;
}

.theme-toggle svg {
    width: 18px;
    height: 18px;
}

[data-theme="dark"] .sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid var(--border-color);
    color: #cdd6f4;
}

[data-theme="dark"] .sidebar-header {
    border-bottom-color: var(--border-color);
}

[data-theme="dark"] .sidebar-header h2 {
    color: #cdd6f4;
}

[data-theme="dark"] .nav-item {
    color: #7f849c;
}

[data-theme="dark"] .nav-item:hover {
    color: #cdd6f4;
}

[data-theme="dark"] .nav-item.active {
    color: #cdd6f4;
}

[data-theme="dark"] .btn-logout {
    color: #7f849c;
    border-color: #7f849c;
}

[data-theme="dark"] .btn-logout:hover {
    color: #fff;
}

[data-theme="dark"] .sidebar-footer {
    border-top-color: var(--border-color);
}

[data-theme="dark"] .admin-avatar {
    color: #fff;
}

[data-theme="dark"] .dashboard-header {
    background: var(--bg-header);
    box-shadow: var(--shadow-sm);
    border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .card,
[data-theme="dark"] .stat-card,
[data-theme="dark"] .filters-bar,
[data-theme="dark"] .table-container,
[data-theme="dark"] .pending-card {
    box-shadow: var(--shadow-sm);
}

[data-theme="dark"] .kpi-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .stats-chart-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .detailed-card {
    background: var(--bg-card);
    border-color: var(--border-color);
}

[data-theme="dark"] .chart-bar-bg {
    background: var(--gray-200);
}

[data-theme="dark"] .detail-stat {
    background: var(--bg-card);
}

[data-theme="dark"] .reject-modal {
    background: var(--bg-card);
}

[data-theme="dark"] .reject-header {
    background: linear-gradient(135deg, #2e1515 0%, #2e1e1e 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    transition: background 0.3s ease, color 0.3s ease;
}

/* ============================================
   LOGIN SCREEN
   ============================================ */
.login-screen {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f7f7f8;
    padding: 20px;
}

.login-card {
    background: var(--white);
    padding: 36px 32px;
    border-radius: 10px;
    border: 1px solid var(--gray-200);
    box-shadow: none;
    width: 100%;
    max-width: 360px;
}

.login-logo {
    text-align: center;
    margin-bottom: 28px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.login-logo img {
    width: auto;
    height: 80px;
    max-width: 200px;
    object-fit: contain;
    margin-bottom: 14px;
}

.login-logo h1 {
    color: var(--gray-900, #111);
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

.login-form .form-group {
    margin-bottom: 16px;
}

.login-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 13px;
    color: var(--gray-700);
}

.login-form input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--gray-300, #d1d5db);
    border-radius: 6px;
    font-size: 14px;
    background: var(--white);
    transition: border-color 0.15s;
}

.login-form input:focus {
    outline: none;
    border-color: var(--gray-500, #6b7280);
    box-shadow: none;
}

.btn-login {
    width: 100%;
    padding: 10px 16px;
    margin-top: 4px;
    background: #111;
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-login:hover {
    background: #000;
}

.login-hint {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: var(--gray-500);
}

/* ============================================
   DASHBOARD LAYOUT
   ============================================ */
.dashboard-screen {
    display: flex;
    min-height: 100vh;
}

/* Sidebar */
.sidebar {
    width: var(--sidebar-width);
    background: var(--gray-900);
    color: var(--white);
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
    transition: width 0.3s ease, transform 0.3s ease;
    overflow-x: hidden;
}

/* Sidebar Collapsed */
.sidebar.collapsed {
    width: 70px;
}

.sidebar.collapsed .sidebar-header {
    padding: 16px 10px;
}

.sidebar.collapsed .sidebar-logo {
    width: auto;
    height: 40px;
    max-width: 60px;
    margin-bottom: 0;
}

.sidebar.collapsed .sidebar-title,
.sidebar.collapsed .admin-badge {
    display: none;
}

.sidebar.collapsed .nav-item {
    padding: 14px 0;
    justify-content: center;
    gap: 0;
}

.sidebar.collapsed .nav-item .nav-text {
    display: none;
}

.sidebar.collapsed .nav-item .badge {
    position: absolute;
    top: 5px;
    right: 10px;
    font-size: 10px;
    padding: 2px 5px;
    margin-left: 0;
}

.sidebar.collapsed .nav-icon {
    margin: 0;
}

.sidebar.collapsed .sidebar-footer {
    padding: 10px;
}

.sidebar.collapsed .btn-logout {
    padding: 12px 8px;
    justify-content: center;
}

.sidebar.collapsed .btn-logout svg {
    margin: 0;
}

.sidebar.collapsed .btn-logout span,
.sidebar.collapsed .logout-text {
    display: none;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute;
    bottom: 80px;
    right: -16px;
    width: 32px;
    height: 32px;
    background: var(--primary);
    border: 3px solid var(--gray-900);
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 101;
    padding: 0;
}

.sidebar-toggle:hover {
    background: var(--primary-dark);
    transform: scale(1.15);
}

.sidebar-toggle .icon-expand {
    display: none;
}

.sidebar-toggle .icon-collapse {
    display: block;
}

.sidebar.collapsed .sidebar-toggle .icon-expand {
    display: block;
}

.sidebar.collapsed .sidebar-toggle .icon-collapse {
    display: none;
}

.sidebar-toggle svg {
    width: 18px;
    height: 18px;
}

/* Adjust main content when sidebar is collapsed */
.dashboard-screen.sidebar-collapsed .main-content {
    margin-left: 70px;
}

/* Tooltips pour sidebar collapsed */
.sidebar.collapsed .nav-item {
    position: relative;
}

.sidebar.collapsed .nav-item::after {
    content: attr(data-tooltip);
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gray-800);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: 10px;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.sidebar.collapsed .nav-item:hover::after {
    opacity: 1;
    visibility: visible;
}

/* Tooltip flèche */
.sidebar.collapsed .nav-item::before {
    content: '';
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-right-color: var(--gray-800);
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    margin-left: -2px;
}

.sidebar.collapsed .nav-item:hover::before {
    opacity: 1;
    visibility: visible;
}

.sidebar-header {
    padding: 24px 20px 22px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sidebar-header h2 {
    font-size: 20px;
    font-weight: 800;
    margin: 0;
    letter-spacing: -0.3px;
}

.sidebar-logo {
    width: auto;
    height: 64px;
    max-width: 140px;
    object-fit: contain;
    margin: 2px 0 4px;
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.admin-badge {
    background: var(--primary);
    color: #fff;
    padding: 3px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.3px;
}

.sidebar-nav {
    flex: 1;
    padding: 20px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 16px;
    margin: 2px 10px;
    border-radius: var(--radius-md);
    color: rgba(255, 255, 255, 0.55);
    text-decoration: none !important;
    transition: background 0.15s, color 0.15s;
    border-left: none;
    font-size: 14px;
    font-weight: 500;
}

.nav-item:hover {
    background: rgba(255, 255, 255, 0.06);
    color: #fafafa;
    text-decoration: none;
}

.nav-item.active {
    background: rgba(255, 255, 255, 0.08);
    color: #fafafa;
    border-left: none;
}

.nav-item.active .nav-icon,
.nav-item.active i {
    color: var(--accent);
}

.nav-icon {
    font-size: 18px;
}

.nav-item .badge {
    margin-left: auto;
    background: var(--danger);
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 12px;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-logout {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: 1px solid var(--gray-500);
    color: var(--gray-500);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-logout:hover {
    background: var(--danger);
    border-color: var(--danger);
    color: var(--white);
}

/* Main Content */
.main-content {
    flex: 1;
    margin-left: var(--sidebar-width);
    min-height: 100vh;
}

/* Header */
.dashboard-header {
    background: var(--white);
    padding: 0 30px;
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    position: sticky;
    top: 0;
    z-index: 50;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.header-left h1 {
    font-size: 22px;
    color: var(--gray-900);
}

.header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-add-pro {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 8px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s, transform 0.15s;
}
.btn-add-pro:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    text-decoration: none;
    color: #fff;
}
.btn-add-pro i { font-size: 14px; }

@media (max-width: 768px) {
    .btn-add-pro span { display: none; }
    .btn-add-pro { padding: 8px 10px; }
}

/* Register Pro Modal */
.admin-register-overlay {
    position: fixed; inset: 0; z-index: 9000;
    background: rgba(15, 17, 23, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    display: flex; align-items: center; justify-content: center;
    padding: 20px;
    opacity: 0; pointer-events: none;
    transition: opacity 0.2s;
}
.admin-register-overlay.open { opacity: 1; pointer-events: auto; }

.admin-register-modal {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    width: 100%; max-width: 420px;
    max-height: 90vh;
    display: flex; flex-direction: column;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.admin-register-header {
    display: flex; align-items: flex-start; justify-content: space-between;
    gap: 16px;
    padding: 20px 22px 16px;
    border-bottom: 1px solid var(--border-color);
    flex-shrink: 0;
}
.admin-register-header h2 {
    font-size: 16px; font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 2px;
    letter-spacing: -0.2px;
    line-height: 1.3;
}
.admin-register-sub {
    font-size: 12.5px;
    color: var(--text-secondary);
    margin: 0;
    line-height: 1.4;
}
.admin-register-close {
    width: 30px; height: 30px; border: none;
    border-radius: 6px; background: transparent;
    color: var(--text-secondary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: background 0.15s, color 0.15s;
    flex-shrink: 0;
    margin-top: -3px; margin-right: -6px;
}
.admin-register-close:hover { background: var(--bg-hover); color: var(--text-primary); }

.admin-register-body {
    flex: 1; overflow-y: auto;
}

/* Form */
.admin-reg-simple { padding: 20px 22px 22px; }

.ar-intro-text {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 18px;
}

.ar-field { margin-bottom: 14px; }
.ar-field > label {
    display: block;
    font-size: 12.5px; font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
}
.ar-field small {
    display: block; font-size: 12px;
    color: var(--text-secondary);
    margin-top: 5px;
}

.ar-field input[type="text"],
.ar-field input[type="tel"],
.ar-field input[type="password"],
.ar-field input[type="email"] {
    width: 100%; padding: 10px 12px;
    border: 1px solid var(--border-color);
    border-radius: 8px; font-size: 14px;
    background: var(--bg-input); color: var(--text-primary);
    box-sizing: border-box;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ar-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.1);
}
.ar-field input::placeholder { color: var(--text-secondary); opacity: 0.6; }

.ar-phone-wrap {
    display: flex; align-items: stretch;
    border: 1px solid var(--border-color);
    border-radius: 8px; overflow: hidden;
    background: var(--bg-input);
    transition: border-color 0.15s, box-shadow 0.15s;
}
.ar-phone-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.1);
}
.ar-phone-prefix {
    padding: 0 12px;
    display: flex; align-items: center; gap: 8px;
    background: var(--bg-hover); color: var(--text-primary);
    font-weight: 700; font-size: 13.5px;
    border-right: 1px solid var(--border-color);
    letter-spacing: 0.3px; flex-shrink: 0;
}

.ar-flag {
    display: inline-block;
    width: 20px; height: 14px;
    border-radius: 2px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 3 2'><rect width='1' height='2' x='0' fill='%23007a5e'/><rect width='1' height='2' x='1' fill='%23ce1126'/><rect width='1' height='2' x='2' fill='%23fcd116'/><path d='M 1.5 0.7 L 1.588 0.968 L 1.869 0.968 L 1.641 1.134 L 1.728 1.402 L 1.5 1.236 L 1.272 1.402 L 1.359 1.134 L 1.131 0.968 L 1.412 0.968 Z' fill='%23fcd116'/></svg>");
    background-size: cover;
    background-position: center;
    flex-shrink: 0;
}

.ar-phone-wrap input {
    flex: 1; border: none !important; background: transparent !important;
    padding: 10px 12px !important; box-shadow: none !important;
    letter-spacing: 0.3px;
    min-width: 0;
}

.ar-error {
    color: #ef4444; font-size: 12.5px;
    min-height: 16px; margin: 6px 0 10px;
    font-weight: 600;
}
.ar-error:empty { display: none; }

.ar-actions {
    display: flex; gap: 8px; justify-content: flex-end;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
}
.ar-btn {
    padding: 9px 16px;
    border-radius: 8px;
    font-size: 13.5px; font-weight: 700;
    cursor: pointer;
    font-family: inherit; border: none;
    transition: all 0.15s;
}
.ar-btn-outline {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}
.ar-btn-outline:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.ar-btn-primary {
    background: var(--accent, #7033ff); color: #fff;
}
.ar-btn-primary:hover { background: #5a22d9; }
.ar-btn-primary:disabled { opacity: 0.6; cursor: wait; }

/* Success modal (après création compte) */
.ar-success {
    padding: 24px 22px 20px;
}
.ar-success h2 {
    font-size: 16px; font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}
.ar-success > p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.5;
    margin: 0 0 18px;
}

.ar-creds {
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 16px;
    margin-bottom: 18px;
}
.ar-creds-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
}
.ar-creds-row:last-child { border-bottom: none; }

.ar-creds-label {
    font-size: 12px;
    color: var(--text-secondary);
    font-weight: 600;
}
.ar-creds-value {
    font-family: 'SF Mono', 'Consolas', 'Monaco', monospace;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: 0.2px;
}

.admin-name {
    font-weight: 500;
    color: var(--gray-700);
}

.admin-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

/* Views */
.view {
    display: none;
    padding: 30px;
}

.view.active {
    display: block;
}

/* ============================================
   DASHBOARD VIEW
   ============================================ */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--white);
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -12px rgba(15, 23, 42, 0.18);
    border-color: rgba(112, 51, 255, 0.25);
}

.stat-card .stat-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
}

.stat-card.blue .stat-icon { background: rgba(112, 51, 255, 0.1); }
.stat-card.green .stat-icon { background: rgba(37, 211, 102, 0.1); }
.stat-card.orange .stat-icon { background: rgba(255, 152, 0, 0.1); }
.stat-card.red .stat-icon { background: rgba(244, 67, 54, 0.1); }

.stat-info {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--gray-900);
}

.stat-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--gray-500);
    margin-top: 3px;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.card {
    background: var(--white);
    padding: 24px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.card h3 {
    margin-bottom: 20px;
    font-size: 16px;
    color: var(--gray-700);
}

.chart-container {
    min-height: 200px;
}

/* Doughnut Chart Styles */
.doughnut-chart-container {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 16px 0;
}

.doughnut-chart {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.doughnut-center {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: var(--bg-card);
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.05);
}

.doughnut-total {
    font-size: 24px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
}

.doughnut-label {
    font-size: 11px;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
}

.chart-legend {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chart-legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    background: var(--gray-50);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.chart-legend-item:hover {
    background: var(--gray-100);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-label {
    flex: 1;
    font-size: 13px;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.legend-value {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
    background: var(--bg-body);
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 28px;
    text-align: center;
}

/* Legacy bar chart styles (kept for compatibility) */
.chart-bar {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
}

.chart-label {
    width: 120px;
    font-size: 13px;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chart-bar-bg {
    flex: 1;
    height: 24px;
    background: var(--gray-200);
    border-radius: 4px;
    overflow: hidden;
    margin: 0 10px;
}

.chart-bar-fill {
    height: 100%;
    background: var(--primary);
    border-radius: 4px;
    transition: width 0.5s ease;
}

.chart-value {
    width: 30px;
    text-align: right;
    font-weight: 600;
    font-size: 14px;
}

/* Responsive doughnut charts */
@media (max-width: 576px) {
    .doughnut-chart-container {
        flex-direction: column;
        align-items: center;
    }
    
    .doughnut-chart {
        width: 120px;
        height: 120px;
    }
    
    .doughnut-center {
        width: 65px;
        height: 65px;
    }
    
    .doughnut-total {
        font-size: 20px;
    }
    
    .chart-legend {
        width: 100%;
    }
}

.recent-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.recent-item {
    display: flex;
    align-items: center;
    padding: 12px;
    background: var(--gray-100);
    border-radius: 8px;
    gap: 12px;
}

.recent-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.recent-info {
    flex: 1;
}

.recent-name {
    font-weight: 600;
    color: var(--gray-900);
}

.recent-metier {
    font-size: 13px;
    color: var(--gray-500);
}

.recent-date {
    font-size: 12px;
    color: var(--gray-500);
}

/* ============================================
   PROFESSIONNELS VIEW
   ============================================ */
.filters-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 20px;
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-box {
    position: relative;
    flex: 1;
    min-width: 250px;
}

.search-box input {
    width: 100%;
    padding: 12px 16px 12px 40px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
}

.search-box input:focus {
    outline: none;
    border-color: var(--primary);
}

.search-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
}

.filters-bar select {
    padding: 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    background: var(--white);
    font-size: 14px;
    cursor: pointer;
    min-width: 150px;
}

.filters-bar select:focus {
    outline: none;
    border-color: var(--primary);
}

.results-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding: 0 4px;
}

#resultsCount {
    font-weight: 500;
    color: var(--gray-700);
}

.sort-options {
    display: flex;
    align-items: center;
    gap: 8px;
}

.sort-options label {
    font-size: 14px;
    color: var(--gray-500);
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid var(--gray-300);
    border-radius: 6px;
    background: var(--white);
    font-size: 14px;
}

.table-container {
    background: var(--white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table th,
.data-table td {
    padding: 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

.data-table th {
    background: var(--gray-100);
    font-weight: 600;
    color: var(--gray-700);
    font-size: 13px;
    text-transform: uppercase;
}

.data-table tr:hover {
    background: var(--gray-100);
}

.status-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.status-badge.actif {
    background: rgba(37, 211, 102, 0.1);
    color: var(--success);
}

.status-badge.en_attente {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.status-badge.desactive {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

.actions-cell {
    display: flex;
    gap: 8px;
}

.btn-action {
    width: 36px;
    height: 36px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-600);
    padding: 0;
}

.btn-action svg {
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    transition: transform 0.2s ease;
    display: block;
}

.btn-action:hover svg {
    transform: scale(1.15);
}

/* Actions autorisation (professions réglementées) */
.auth-actions {
    display: flex;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
}
.btn-auth {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: filter 0.15s ease, transform 0.15s ease;
    width: auto;
    height: auto;
}
.btn-auth svg { width: 16px; height: 16px; }
.btn-auth:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-auth:disabled { opacity: 0.45; cursor: not-allowed; filter: none; transform: none; }
.btn-auth-ok { background: #10b981; color: #fff; }
.btn-auth-no { background: #ef4444; color: #fff; }

/* Voir le profil */
.btn-view {
    background: rgba(112, 51, 255, 0.1);
    color: var(--primary);
}
.btn-view:hover { 
    background: var(--primary); 
    color: var(--white); 
}

/* Modifier */
.btn-edit { 
    background: rgba(255, 152, 0, 0.1); 
    color: #FF9800;
}
.btn-edit:hover { 
    background: #FF9800; 
    color: var(--white); 
}

/* Activer (toggle on) */
.btn-certify {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}
.btn-certify:hover {
    background: #10b981;
    color: #fff;
}
.btn-toggle-on {
    background: rgba(37, 211, 102, 0.15);
    color: #25D366;
}
.btn-toggle-on:hover { 
    background: #25D366; 
    color: var(--white); 
}

/* Désactiver (toggle off) */
.btn-toggle-off { 
    background: rgba(156, 39, 176, 0.1); 
    color: #9C27B0;
}
.btn-toggle-off:hover { 
    background: #9C27B0; 
    color: var(--white); 
}

/* Legacy toggle class */
.btn-toggle { 
    background: rgba(37, 211, 102, 0.1); 
    color: #25D366;
}
.btn-toggle:hover { 
    background: var(--success); 
    color: var(--white); 
}

/* Supprimer définitivement */
.btn-delete {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}
.btn-delete:hover {
    background: #F44336;
    color: var(--white);
}

/* Réinitialiser mot de passe */
.btn-reset-pwd {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}
.btn-reset-pwd:hover {
    background: #f59e0b;
    color: #fff;
}

/* ============================================
   EN ATTENTE VIEW
   ============================================ */
.pending-header {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.pending-header h2 {
    color: var(--gray-900);
    margin-bottom: 8px;
}

.pending-header p {
    color: var(--gray-500);
}

.btn-approve-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    background: var(--success, #16a34a);
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 1px 3px rgba(22, 163, 74, 0.25);
    transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-approve-all:hover {
    transform: translateY(-1px);
    background: #15803d;
    box-shadow: 0 3px 8px -2px rgba(22, 163, 74, 0.35);
}
.btn-approve-all svg { flex-shrink: 0; }

.pending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}

.pending-card {
    background: var(--white);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pending-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 28px -14px rgba(15, 23, 42, 0.2);
    border-color: rgba(112, 51, 255, 0.22);
}

.pending-card-header {
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.pending-avatar {
    width: 60px;
    height: 60px;
    background: var(--gray-200);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    overflow: hidden;
}

.pending-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pending-avatar .avatar-initiales {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #7033ff 0%, #004494 100%);
    color: white;
    font-size: 22px;
    font-weight: 700;
    text-transform: uppercase;
}

.pending-info h4 {
    font-size: 16px;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.pending-info p {
    font-size: 14px;
    color: var(--primary);
    font-weight: 500;
}

.pending-info span {
    font-size: 12px;
    color: var(--gray-500);
}

.pending-card-body {
    padding: 20px;
}

.pending-detail {
    display: flex;
    margin-bottom: 10px;
    font-size: 14px;
}

.pending-detail strong {
    min-width: 100px;
    color: var(--gray-500);
}

.pending-card-actions {
    padding: 16px 20px;
    background: var(--gray-100);
    display: flex;
    gap: 12px;
}

.btn-view-profile,
.btn-approve,
.btn-reject {
    flex: 1;
    padding: 12px 16px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-view-profile svg,
.btn-approve svg,
.btn-reject svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.btn-view-profile {
    background: var(--primary);
    color: white;
}

.btn-view-profile:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-approve {
    background: var(--success);
    color: var(--white);
}

.btn-approve:hover {
    background: #20b85a;
    transform: translateY(-1px);
}

.btn-reject {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-reject:hover {
    background: var(--danger);
    color: var(--white);
    transform: translateY(-1px);
}

/* Icons in pending details */
.pending-detail strong {
    display: flex;
    align-items: center;
    gap: 6px;
}

.pending-detail strong svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
}

/* ============================================
   MODALS
   ============================================ */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 17, 23, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    animation: modalPop 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
}

.modal-large {
    max-width: 720px;
}

/* Modal de Confirmation — version pro */
.confirm-modal {
    background: rgba(15, 17, 23, 0.55) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.confirm-modal .modal-confirm {
    max-width: 420px;
    padding: 32px 28px 24px;
    text-align: center;
    border-radius: 18px;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.confirm-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 18px;
}

.confirm-icon svg {
    width: 30px;
    height: 30px;
}

.confirm-icon.danger {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
    box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.05);
}

.confirm-icon.warning {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
    box-shadow: 0 0 0 8px rgba(245, 158, 11, 0.05);
}

.confirm-icon.success {
    background: rgba(16, 185, 129, 0.12);
    color: #10b981;
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0.05);
}

.confirm-icon.info {
    background: rgba(112, 51, 255, 0.12);
    color: var(--primary);
    box-shadow: 0 0 0 8px rgba(112, 51, 255, 0.05);
}

.confirm-modal h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 8px;
    letter-spacing: -0.3px;
}

.confirm-modal p {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 0 0 18px;
}

.confirm-details {
    background: var(--bg-hover);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 22px;
    text-align: left;
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    line-height: 1.55;
}

.confirm-details:empty {
    display: none;
}

.confirm-details ul {
    margin: 0;
    padding-left: 18px;
    list-style: none;
}

.confirm-details ul li {
    position: relative;
    padding-left: 14px;
    margin-bottom: 6px;
    font-size: 13px;
}
.confirm-details ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary);
    font-weight: 700;
}

.confirm-details li:last-child {
    margin-bottom: 0;
}

.confirm-actions {
    display: flex;
    gap: 10px;
    justify-content: stretch;
}

.btn-confirm-cancel,
.btn-confirm-ok {
    flex: 1;
    padding: 11px 18px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.btn-confirm-cancel {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

.btn-confirm-cancel:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.btn-confirm-ok {
    background: var(--primary);
    color: white;
    box-shadow: 0 4px 12px rgba(112, 51, 255, 0.25);
}

.btn-confirm-ok:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(112, 51, 255, 0.35);
}

.btn-confirm-ok.danger {
    background: #ef4444;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
}

.btn-confirm-ok.danger:hover {
    background: #dc2626;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.btn-confirm-ok.success {
    background: #10b981;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.btn-confirm-ok.success:hover {
    background: #059669;
}

.btn-confirm-ok svg,
.btn-confirm-cancel svg {
    width: 16px;
    height: 16px;
}

/* ============================================
   LIGHTBOX POUR IMAGES
   ============================================ */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    animation: lightboxZoom 0.3s ease;
}

@keyframes lightboxZoom {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-content img {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-caption {
    text-align: center;
    color: white;
    padding: 16px 0;
    font-size: 14px;
    opacity: 0.9;
}

/* Avatar cliquable */
.profile-avatar.clickable {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.profile-avatar.clickable:hover img {
    transform: scale(1.05);
}

.profile-avatar.clickable img {
    transition: transform 0.3s ease;
}

.avatar-zoom-icon {
    position: absolute;
    bottom: 4px;
    right: 4px;
    width: 28px;
    height: 28px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.profile-avatar.clickable:hover .avatar-zoom-icon {
    opacity: 1;
}

/* Réalisations cliquables */
.realisation-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
}

.realisation-item img {
    transition: transform 0.3s ease;
}

.realisation-item:hover img {
    transform: scale(1.05);
}

.realisation-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.2s ease;
    color: white;
}

.realisation-item:hover .realisation-overlay {
    opacity: 1;
}

@keyframes modalSlide {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    padding: 22px 26px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 2;
}

.modal-header h2 {
    font-size: 17px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0;
    letter-spacing: -0.2px;
}

.modal-close {
    width: 32px;
    height: 32px;
    border: none;
    background: var(--bg-hover);
    color: var(--text-secondary);
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.modal-close:hover {
    background: #ef4444;
    color: var(--white);
}

.modal-body {
    padding: 24px 26px 26px;
}

.modal-body .form-group {
    margin-bottom: 16px;
}

.modal-body label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-700);
}

.modal-body input,
.modal-body select {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
}

.modal-body input:focus,
.modal-body select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-cancel,
.btn-save {
    flex: 1;
    padding: 14px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.btn-cancel {
    background: var(--gray-200);
    color: var(--gray-700);
}

.btn-save {
    background: var(--primary);
    color: var(--white);
}

/* View Modal */
.profile-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 20px 4px 22px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 22px;
}

.profile-avatar {
    width: 72px;
    height: 72px;
    background: var(--border-color);
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-avatar.initiales-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary) 0%, #5a22d9 100%);
}

.avatar-initiales-large {
    font-size: 24px;
    font-weight: 800;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    letter-spacing: -0.5px;
}

.profile-info { flex: 1; min-width: 0; }

.profile-info h3 {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 4px;
    letter-spacing: -0.3px;
}

.profile-info p {
    color: var(--primary);
    font-weight: 600;
    font-size: 14px;
    margin: 0 0 8px;
}

.profile-section {
    margin-bottom: 22px;
    padding: 18px 20px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.profile-section h4 {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Stats d'un pro (modale détail) */
.pro-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 10px;
}
.pro-stat {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
}
[data-theme="dark"] .pro-stat { background: rgba(255, 255, 255, 0.03); }
.pro-stat-ico {
    width: 38px; height: 38px;
    border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.pro-stat-ico svg { width: 19px; height: 19px; }
.pro-stat-num {
    font-size: 19px; font-weight: 800;
    color: var(--text-primary);
    line-height: 1.1;
}
.pro-stat-label {
    font-size: 11.5px; font-weight: 600;
    color: var(--text-secondary);
    margin-top: 2px;
}

.profile-row {
    display: flex;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    align-items: flex-start;
}

.profile-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.profile-row:first-child {
    padding-top: 0;
}

.profile-row strong {
    min-width: 140px;
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 13px;
}

.profile-row span {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
    flex: 1;
}

/* Social Links Grid */
.social-links-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 8px 0;
}

.social-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.social-link-btn svg {
    flex-shrink: 0;
}

.social-link-btn.facebook {
    background: #e7f3ff;
    color: #1877f2;
}

.social-link-btn.facebook:hover {
    background: #1877f2;
    color: white;
}

.social-link-btn.instagram {
    background: linear-gradient(135deg, #fdf2f8 0%, #fce7f3 100%);
    color: #e4405f;
}

.social-link-btn.instagram:hover {
    background: linear-gradient(135deg, #f56040, #e4405f, #833ab4);
    color: white;
}

.social-link-btn.linkedin {
    background: #e8f4f8;
    color: #0077b5;
}

.social-link-btn.linkedin:hover {
    background: #0077b5;
    color: white;
}

/* Réalisations Grid */
.realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.realisation-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    background: var(--gray-200);
}

.realisation-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.realisation-item:hover img {
    transform: scale(1.05);
}

.realisation-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    font-size: 11px;
    padding: 20px 8px 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    padding: 16px 24px;
    background: var(--gray-900);
    color: var(--white);
    border-radius: 8px;
    z-index: 99999;
    transform: translateX(150%);
    transition: transform 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    font-weight: 500;
    max-width: 400px;
}

.toast.show {
    transform: translateX(0);
}

.toast.success { 
    background: var(--success); 
}

.toast.error { 
    background: var(--danger);
    animation: shake 0.5s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

/* ============================================
   NOTIFY PRO MODAL
   ============================================ */
.notify-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.notify-modal-overlay.active {
    opacity: 1;
    visibility: visible;
}

.notify-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 360px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.notify-modal-overlay.active .notify-modal {
    transform: scale(1) translateY(0);
}

.notify-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border: none;
    background: #f1f3f4;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: all 0.2s ease;
    z-index: 1;
}

.notify-modal-close:hover {
    background: #e8eaed;
    color: #202124;
}

.notify-modal-header {
    text-align: center;
    padding: 20px 18px 16px;
    background: linear-gradient(135deg, #f8fff8 0%, #e8f5e9 100%);
    border-bottom: 1px solid #e8f5e9;
}

.notify-modal-header svg {
    margin-bottom: 10px;
    width: 40px;
    height: 40px;
}

.notify-modal-header h3 {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 4px;
}

.notify-modal-header p {
    color: #5f6368;
    font-size: 13px;
}

.notify-modal-header strong {
    color: #1a1a1a;
}

.notify-modal-body {
    padding: 16px 18px;
}

.notify-subtitle {
    font-size: 12px;
    color: #5f6368;
    margin-bottom: 10px;
    text-align: center;
}

.notify-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.notify-btn {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid transparent;
}

.notify-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.notify-btn svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
}

.notify-btn-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notify-btn-label {
    font-weight: 600;
    font-size: 13px;
}

.notify-btn-number {
    font-size: 11px;
    opacity: 0.8;
}

/* WhatsApp */
.notify-whatsapp {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: white;
}

.notify-whatsapp:hover {
    background: linear-gradient(135deg, #22c55e 0%, #0f766e 100%);
}

/* Call */
.notify-call {
    background: linear-gradient(135deg, #7033ff 0%, #3730A3 100%);
    color: white;
}

.notify-call:hover {
    background: linear-gradient(135deg, #0066cc 0%, #004d99 100%);
}

/* Email */
.notify-email {
    background: linear-gradient(135deg, #EA4335 0%, #c5221f 100%);
    color: white;
}

.notify-email:hover {
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
}

.notify-modal-footer {
    padding: 0 18px 16px;
    text-align: center;
}

.notify-skip-btn {
    background: none;
    border: none;
    color: #5f6368;
    font-size: 12px;
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

.notify-skip-btn:hover {
    background: #f1f3f4;
    color: #202124;
}

/* Section réseaux sociaux */
.notify-section-title {
    font-size: 12px;
    color: #5f6368;
    margin: 12px 0 8px;
    text-align: center;
    padding-top: 12px;
    border-top: 1px solid #e8eaed;
}

.notify-social-grid {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.notify-social-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    color: white;
}

.notify-social-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notify-facebook {
    background: linear-gradient(135deg, #1877F2 0%, #0d5fc7 100%);
}

.notify-instagram {
    background: linear-gradient(135deg, #E4405F 0%, #C13584 50%, #833AB4 100%);
}

.notify-linkedin {
    background: linear-gradient(135deg, #0A66C2 0%, #004182 100%);
}

.notify-no-social {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px;
    margin-top: 10px;
    background: #f8f9fa;
    border-radius: 8px;
    color: #6c757d;
    font-size: 12px;
    border-top: 1px solid #e8eaed;
}

.notify-no-social svg {
    opacity: 0.6;
}

/* ============================================
   DELETE LOADING MODAL
   ============================================ */
.delete-loading-modal {
    display: none;
    position: fixed; inset: 0;
    background: rgba(15, 17, 23, 0.55);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100000;
    justify-content: center; align-items: center;
    padding: 20px;
    animation: fadeIn 0.2s ease;
}

.delete-loading-modal.active { display: flex; }

.delete-loading-content {
    background: var(--bg-card);
    border-radius: 18px;
    padding: 36px 32px 28px;
    text-align: center;
    max-width: 380px;
    width: 100%;
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.35);
    animation: modalPop 0.3s cubic-bezier(0.34, 1.2, 0.64, 1);
}

@keyframes modalPop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.delete-loading-spinner-wrap {
    display: flex; justify-content: center;
    margin-bottom: 22px;
}

.delete-loading-content h3 {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 6px;
    letter-spacing: -0.2px;
}

.delete-loading-content p {
    color: var(--text-secondary);
    font-size: 13px;
    margin: 0 0 24px;
    line-height: 1.5;
}

.delete-loading-steps {
    display: flex; flex-direction: column;
    gap: 8px; text-align: left;
}

.delete-loading-step {
    display: flex; align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: var(--bg-hover);
    border-radius: 10px;
    color: var(--text-secondary);
    font-size: 13px; font-weight: 600;
    transition: all 0.25s ease;
    border: 1px solid transparent;
}

.delete-loading-step.active {
    background: rgba(112, 51, 255, 0.08);
    color: var(--primary);
    border-color: rgba(112, 51, 255, 0.2);
}

.delete-loading-step.completed {
    background: rgba(16, 185, 129, 0.08);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.2);
}

.delete-step-icon {
    width: 20px; height: 20px;
    border-radius: 50%;
    background: var(--border-color);
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.25s ease;
    color: transparent;
}

.delete-step-icon svg {
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.25s ease;
}

.delete-loading-step.active .delete-step-icon {
    background: var(--primary);
    color: #fff;
    animation: deletePulse 1.2s infinite;
}

.delete-loading-step.active .delete-step-icon svg {
    opacity: 0; /* caché pendant l'action */
}

.delete-loading-step.completed .delete-step-icon {
    background: #10b981;
    color: #fff;
}

.delete-loading-step.completed .delete-step-icon svg {
    opacity: 1;
    transform: scale(1);
}

@keyframes deletePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(112, 51, 255, 0.5); }
    50% { box-shadow: 0 0 0 6px rgba(112, 51, 255, 0); }
}

@keyframes fadeIn {
    from { opacity: 0; } to { opacity: 1; }
}

.delete-loading-step.completed .delete-step-icon svg {
    opacity: 1;
    transform: scale(1);
    stroke: white;
}

@keyframes deletePulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(244, 67, 54, 0.4);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(244, 67, 54, 0);
    }
}

/* ============================================
   REJECT NOTIFY MODAL
   ============================================ */
.reject-modal {
    max-width: 480px;
}

.reject-header {
    background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%);
    border-bottom: 1px solid #fecaca;
}

.reject-motif-section {
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e8eaed;
}

.reject-motif-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

.reject-motif-textarea {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 80px;
    transition: all 0.2s ease;
    background: #f9fafb;
}

.reject-motif-textarea:focus {
    outline: none;
    border-color: #dc3545;
    background: var(--bg-card);
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.reject-motif-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.motif-suggestion {
    padding: 6px 12px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    font-size: 12px;
    color: #4b5563;
    cursor: pointer;
    transition: all 0.2s ease;
}

.motif-suggestion:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #dc2626;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
    .sidebar {
        transform: translateX(-100%);
    }
    
    .sidebar.open {
        transform: translateX(0);
    }
    
    .main-content {
        margin-left: 0;
    }
    
    .menu-btn {
        display: block;
    }
}

@media (max-width: 768px) {
    .filters-bar {
        flex-direction: column;
    }
    
    .filters-bar select {
        width: 100%;
    }
    
    .data-table {
        font-size: 13px;
    }
    
    .data-table th,
    .data-table td {
        padding: 12px 8px;
    }
    
    .pending-grid {
        grid-template-columns: 1fr;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .view {
        padding: 20px 15px;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-header {
        padding: 0 15px;
    }
    
    .header-left h1 {
        font-size: 18px;
    }
    
    .supabase-status {
        display: none;
    }
}


/* Textarea dans modal */
.modal-body textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    font-family: inherit;
    resize: vertical;
    min-height: 60px;
}

.modal-body textarea:focus {
    outline: none;
    border-color: var(--primary);
}

/* Amélioration boutons d'action */
.btn-save:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* ============================================
   WELCOME BANNER
   ============================================ */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    border-radius: 16px;
    padding: 28px 32px;
    margin-bottom: 24px;
    color: var(--white);
}

.welcome-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 40px;
}

.welcome-text {
    flex: 1;
}

.welcome-text h2 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #fff;
}

.welcome-text p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-date {
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex-shrink: 0;
    min-width: 200px;
}

.welcome-date span:first-child {
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.welcome-date span:last-child {
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

/* ============================================
   DETAILED STATS
   ============================================ */
.detailed-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.detail-stat {
    background: var(--white);
    padding: 22px 24px;
    border-radius: 16px;
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.detail-stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px -12px rgba(15, 23, 42, 0.18);
    border-color: rgba(112, 51, 255, 0.22);
}

.detail-stat-icon {
    width: 44px;
    height: 44px;
    background: rgba(112, 51, 255, 0.08);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-stat-info {
    display: flex;
    flex-direction: column;
}

.detail-stat-number {
    font-size: 30px;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: var(--gray-900);
}

.detail-stat-label {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.2px;
    color: var(--gray-500);
    margin-top: 3px;
}

/* ============================================
   CHARTS GRID
   ============================================ */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.chart-card {
    min-height: 320px;
}

.card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.card-header h3 {
    margin: 0;
}

.chart-badge {
    background: var(--gray-100);
    color: var(--gray-600);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.view-all-link {
    color: var(--primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.view-all-link:hover {
    text-decoration: underline;
}

/* ============================================
   DASHBOARD BOTTOM
   ============================================ */
.dashboard-bottom {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 24px;
}

.recent-card,
.regions-card {
    min-height: 300px;
}

/* ============================================
   SETTINGS VIEW
   ============================================ */
.settings-wrapper {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.settings-container {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.settings-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.settings-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.15s;
}

.settings-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 20px 22px;
    border-bottom: 1px solid var(--border-color);
}

.settings-card-icon {
    width: 42px;
    height: 42px;
    background: rgba(112, 51, 255, 0.1);
    color: var(--primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-card-icon svg { width: 20px; height: 20px; }

.settings-card-icon.warning {
    background: rgba(255, 152, 0, 0.1);
    color: var(--warning);
}

.settings-card-icon.info {
    background: rgba(112, 51, 255, 0.1);
    color: var(--primary);
}

.settings-card-header h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-primary);
    margin: 0 0 3px;
    letter-spacing: -0.2px;
}

.settings-card-header p {
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.45;
    margin: 0;
}

.settings-card-header.compact {
    padding: 16px 20px;
}

.settings-card-header.compact .settings-card-icon {
    width: 40px;
    height: 40px;
}

.settings-card-icon.success {
    background: rgba(37, 211, 102, 0.1);
    color: var(--success);
}

.settings-form {
    padding: 24px;
}

.settings-form .form-group {
    margin-bottom: 16px;
}

.settings-form label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
    color: var(--gray-700);
}

.settings-form input {
    width: 100%;
    padding: 12px 14px;
    border: 2px solid var(--gray-200);
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.2s;
}

.settings-form input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.1);
}

.settings-form input.input-readonly {
    background: var(--gray-100);
    color: var(--gray-500);
    cursor: not-allowed;
}

.form-divider {
    height: 1px;
    background: var(--gray-200);
    margin: 20px 0;
}

.form-actions {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid var(--gray-100);
}

.btn-primary,
.btn-warning {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-primary {
    background: var(--primary);
    color: var(--white);
}

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

.btn-warning {
    background: var(--warning);
    color: var(--white);
}

.btn-warning:hover {
    background: #e68900;
}

.btn-primary:disabled,
.btn-warning:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

/* Session info */
.session-info {
    padding: 20px 24px;
}

.session-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--gray-100);
}

.session-row:last-child {
    border-bottom: none;
}

.session-label {
    font-size: 14px;
    color: var(--gray-500);
}

.session-value {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
}

/* Spin animation */
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.spin {
    animation: spin 1s linear infinite;
}

/* Form section title */
.form-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 20px 0 15px 0;
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.form-section-title:first-child {
    margin-top: 0;
}

.form-section-title svg {
    flex-shrink: 0;
}

/* Card title with icon */
.card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.card h3 svg {
    color: var(--primary);
}

/* Sidebar nav icon SVG */
.nav-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
}

.nav-icon svg {
    width: 20px;
    height: 20px;
}

/* Logout button with icon */
.btn-logout {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-logout svg {
    width: 18px;
    height: 18px;
}

/* Menu button */
.menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--gray-700);
}

.menu-btn svg {
    width: 24px;
    height: 24px;
}

/* Stat icon with SVG */
.stat-card .stat-icon svg {
    stroke: currentColor;
}

.stat-card.blue .stat-icon svg { color: var(--primary); }
.stat-card.green .stat-icon svg { color: var(--success); }
.stat-card.orange .stat-icon svg { color: var(--warning); }
.stat-card.red .stat-icon svg { color: var(--danger); }

/* Search icon */
.search-icon {
    display: flex;
    align-items: center;
    color: var(--gray-500);
}

/* Admin avatar */
.admin-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 600;
    background: var(--white);
    border: 2px solid var(--gray-200);
}

.admin-avatar img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}

.admin-avatar svg {
    width: 20px;
    height: 20px;
}

/* Button save with icon */
.btn-save {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-save svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 992px) {
    .menu-btn {
        display: flex;
    }
}

/* ============================================
   NOTIFICATIONS / REJOINDRE TOGGLE
   ============================================ */
.notifications-settings,
.rejoindre-toggle-wrap {
    padding: 4px 22px 22px;
}

.notification-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.notification-option:last-child {
    border-bottom: none;
}

.rejoindre-toggle-wrap .notification-option {
    padding: 18px 0 16px;
    border-bottom: 1px solid var(--border-color);
}

.rejoindre-status-row {
    padding: 14px 0 0;
    display: flex;
}

.rejoindre-hint {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    font-size: 12.5px;
    color: var(--text-secondary);
    line-height: 1.55;
    margin: 12px 0 0;
    padding: 12px 14px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 10px;
}

.rejoindre-hint i {
    color: var(--primary);
    margin-top: 2px;
    flex-shrink: 0;
}

.notification-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.notification-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--gray-900);
}

.notification-desc {
    font-size: 12px;
    color: var(--gray-500);
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--gray-300);
    transition: 0.3s;
    border-radius: 26px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 20px;
    width: 20px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(22px);
}

/* Toggle Large */
.toggle-switch.toggle-large {
    width: 56px;
    height: 30px;
}

.toggle-switch.toggle-large .toggle-slider:before {
    height: 24px;
    width: 24px;
}

.toggle-switch.toggle-large input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* Inscription Status */
.inscription-toggle {
    padding-bottom: 12px !important;
}

.inscription-status {
    padding: 0 0 16px 0;
    text-align: center;
}

.status-badge-large {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.2px;
    border: 1px solid transparent;
}

.status-badge-large::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
}

.status-badge-large.open {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
    border-color: rgba(16, 185, 129, 0.25);
}

.status-badge-large.closed {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.25);
}

.settings-card-icon.closed {
    background: rgba(244, 67, 54, 0.1);
    color: var(--danger);
}

/* Code d'accès contact */
.settings-card-icon.security {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
}

.code-acces-settings {
    padding: 16px 0;
}

.code-acces-form {
    padding: 0 16px;
}

.code-acces-input-group {
    margin-bottom: 12px;
}

.code-acces-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.code-acces-row {
    display: flex;
    gap: 12px;
    align-items: center;
}

.code-input-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.code-input-wrapper input {
    width: 100%;
    padding: 12px 48px 12px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 2px;
    text-align: center;
    transition: all 0.2s ease;
}

.code-input-wrapper input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.1);
}

.btn-toggle-visibility {
    position: absolute;
    right: 8px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    border-radius: 8px;
    transition: all 0.2s ease;
}

.btn-toggle-visibility:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

/* Password Prompt Modal */
.password-prompt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.password-prompt-overlay.active {
    opacity: 1;
    visibility: visible;
}

.password-prompt-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 400px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.password-prompt-overlay.active .password-prompt-modal {
    transform: scale(1) translateY(0);
}

.password-prompt-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: #f1f3f4;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5f6368;
    transition: all 0.2s ease;
    z-index: 1;
}

.password-prompt-close:hover {
    background: #e8eaed;
    color: #202124;
}

.password-prompt-header {
    text-align: center;
    padding: 32px 24px 20px;
    background: linear-gradient(135deg, #f8f9ff 0%, #eef1ff 100%);
}

.password-prompt-header svg {
    margin-bottom: 12px;
}

.password-prompt-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
}

.password-prompt-header p {
    color: #5f6368;
    font-size: 14px;
    line-height: 1.5;
}

.password-prompt-body {
    padding: 24px;
}

.password-prompt-input-group {
    margin-bottom: 0;
}

.password-prompt-input-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.password-prompt-input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.password-prompt-input-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.1);
}

.password-error {
    color: #F44336;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
}

.password-prompt-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
    justify-content: flex-end;
}

.btn-cancel-prompt,
.btn-verify-prompt {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel-prompt {
    background: var(--gray-100);
    color: var(--gray-700);
}

.btn-cancel-prompt:hover {
    background: var(--gray-200);
}

.btn-verify-prompt {
    background: var(--primary);
    color: white;
}

.btn-verify-prompt:hover {
    background: var(--primary-dark);
}

.btn-verify-prompt.save-mode {
    background: var(--success);
}

.btn-verify-prompt.save-mode:hover {
    background: #1e9e52;
}

.password-prompt-header.save-mode {
    background: linear-gradient(135deg, #f0fff4 0%, #dcfce7 100%);
}

.btn-save-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.btn-save-code:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.btn-save-code svg {
    flex-shrink: 0;
}

.code-acces-hint {
    font-size: 12px;
    color: var(--gray-500);
    margin: 0;
    padding: 0 4px;
}

/* Code Accès Display */
.code-acces-display {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px;
    background: var(--gray-50);
    border-radius: 12px;
    margin-bottom: 12px;
}

.code-current {
    display: flex;
    align-items: center;
    gap: 12px;
}

.code-label {
    font-size: 14px;
    color: var(--gray-600);
    font-weight: 500;
}

.code-value {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-800);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}

.btn-modify-code {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-modify-code:hover {
    background: var(--primary-dark);
}

.btn-modify-code svg {
    flex-shrink: 0;
}

/* Modal Modifier Code */
.code-modify-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.code-modify-overlay.active {
    opacity: 1;
    visibility: visible;
}

.code-modify-modal {
    background: var(--bg-card);
    border-radius: 16px;
    width: 90%;
    max-width: 420px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
}

.code-modify-overlay.active .code-modify-modal {
    transform: scale(1) translateY(0);
}

.code-modify-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-500);
    transition: all 0.2s ease;
}

.code-modify-close:hover {
    background: var(--gray-100);
    color: var(--gray-700);
}

.code-modify-header {
    text-align: center;
    padding: 32px 24px 20px;
    background: linear-gradient(135deg, #f0f7ff 0%, #e0eeff 100%);
    border-radius: 16px 16px 0 0;
}

.code-modify-header svg {
    margin-bottom: 12px;
}

.code-modify-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
}

.code-modify-body {
    padding: 24px;
}

.code-modify-group {
    margin-bottom: 20px;
}

.code-modify-group:last-child {
    margin-bottom: 0;
}

.code-modify-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 8px;
}

.code-modify-group input {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid var(--gray-200);
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.2s ease;
}

.code-modify-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.1);
}

.code-modify-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 8px;
    margin-bottom: 0;
}

.code-modify-footer {
    display: flex;
    gap: 12px;
    padding: 0 24px 24px;
}

.btn-cancel-modify {
    flex: 1;
    padding: 14px;
    border: 2px solid var(--gray-200);
    background: var(--bg-card);
    color: var(--gray-700);
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-cancel-modify:hover {
    background: var(--gray-100);
}

.btn-confirm-modify {
    flex: 1;
    padding: 14px;
    border: none;
    background: var(--primary);
    color: white;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-confirm-modify:hover {
    background: var(--primary-dark);
}

.btn-confirm-modify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Quick Stats */
.quick-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding: 4px 20px 20px;
}

.quick-stat {
    text-align: center;
    padding: 18px 12px;
    background: var(--bg-hover);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    transition: border-color 0.15s;
}

.quick-stat:hover { border-color: var(--primary); }

.quick-stat-value {
    display: block;
    font-size: 26px;
    font-weight: 800;
    color: var(--primary);
    letter-spacing: -0.5px;
}

.quick-stat-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
    .settings-wrapper {
        grid-template-columns: 1fr;
    }
    
    .settings-sidebar {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .detailed-stats {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .dashboard-bottom {
        grid-template-columns: 1fr;
    }
    
    .welcome-content {
        flex-direction: column;
        text-align: center;
        gap: 16px;
    }
    
    .welcome-date {
        text-align: center;
    }
}

@media (max-width: 768px) {
    .settings-wrapper {
        grid-template-columns: 1fr;
    }
    
    .settings-sidebar {
        grid-template-columns: 1fr;
    }
    
    .settings-card-header {
        flex-direction: column;
        text-align: center;
    }
    
    .session-row {
        flex-direction: column;
        gap: 4px;
    }
    
    .detailed-stats {
        grid-template-columns: 1fr 1fr;
    }
    
    .welcome-banner {
        padding: 20px;
    }
    
    .welcome-text h2 {
        font-size: 20px;
    }
    
    .quick-stats {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 480px) {
    .detailed-stats {
        grid-template-columns: 1fr;
    }
}

/* ============================================
   STATISTIQUES PAGE
   ============================================ */
.stats-page-header {
    margin-bottom: 32px;
}

.stats-page-header h2 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 28px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.stats-page-header h2 svg {
    color: var(--primary);
}

.stats-page-header p {
    color: var(--gray-500);
    font-size: 15px;
}

/* KPI Cards */
.stats-kpi-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-bottom: 32px;
}

.kpi-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    display: flex;
    align-items: flex-start;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
    position: relative;
    overflow: hidden;
}

.kpi-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.kpi-icon.blue { background: rgba(112, 51, 255, 0.1); color: var(--primary); }
.kpi-icon.green { background: rgba(37, 211, 102, 0.1); color: #25D366; }
.kpi-icon.orange { background: rgba(255, 152, 0, 0.1); color: #FF9800; }
.kpi-icon.red { background: rgba(239, 68, 68, 0.12); color: #ef4444; }
.kpi-icon.purple { background: rgba(156, 39, 176, 0.1); color: #9C27B0; }

.kpi-content {
    flex: 1;
}

.kpi-value {
    display: block;
    font-size: 32px;
    font-weight: 700;
    color: var(--gray-900);
    line-height: 1;
    margin-bottom: 6px;
}

.kpi-label {
    font-size: 13px;
    color: var(--gray-500);
}

.kpi-trend {
    position: absolute;
    top: 16px;
    right: 16px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 20px;
}

.kpi-trend.up {
    background: rgba(37, 211, 102, 0.1);
    color: #25D366;
}

.kpi-trend.down {
    background: rgba(244, 67, 54, 0.1);
    color: #F44336;
}

.kpi-percent {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 14px;
    font-weight: 700;
    color: #25D366;
}

.kpi-badge {
    position: absolute;
    top: 16px;
    right: 16px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
}

.kpi-badge.warning {
    background: rgba(255, 152, 0, 0.1);
    color: #FF9800;
}

/* Charts Row */
.stats-charts-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 24px;
}

.stats-charts-row.dual-charts {
    grid-template-columns: 1fr 1fr;
}

.stats-chart-card.half {
    min-height: 320px;
}

.stats-chart-card {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.stats-chart-card.large {
    grid-column: span 1;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.chart-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 600;
    color: var(--gray-900);
}

.chart-header h3 svg {
    color: var(--gray-500);
}

.chart-period {
    display: flex;
    gap: 4px;
    background: var(--gray-100);
    padding: 4px;
    border-radius: 8px;
}

.period-btn {
    padding: 6px 12px;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gray-500);
    cursor: pointer;
    transition: all 0.2s;
}

.period-btn:hover {
    color: var(--gray-700);
}

.period-btn.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.chart-body {
    min-height: 200px;
}

/* Bar Chart */
.bar-chart-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.bar-chart-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.bar-label {
    width: 100px;
    font-size: 13px;
    color: var(--gray-700);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 28px;
    background: var(--gray-100);
    border-radius: 6px;
    overflow: hidden;
}

.bar-fill {
    height: 100%;
    border-radius: 6px;
    transition: width 0.5s ease;
}

.bar-value {
    width: 36px;
    text-align: right;
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-900);
}

/* SVG Line Chart */
.svg-chart-container {
    position: relative;
    width: 100%;
}

.chart-summary-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 10px;
    text-align: center;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(112, 51, 255, 0.3);
}

.badge-value {
    display: block;
    font-size: 24px;
    font-weight: 700;
    line-height: 1;
}

.badge-label {
    font-size: 11px;
    opacity: 0.9;
}

.line-chart-svg {
    width: 100%;
    height: auto;
    min-height: 220px;
}

.chart-point {
    cursor: pointer;
    transition: transform 0.2s;
}

.chart-point:hover circle:first-child {
    r: 8;
    fill: var(--primary-dark);
}

.chart-point .point-hitbox {
    cursor: pointer;
}

.chart-tooltip {
    position: absolute;
    background: var(--gray-900);
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 12px;
    pointer-events: none;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    white-space: nowrap;
}

.chart-tooltip .tooltip-date {
    display: block;
    font-weight: 600;
    margin-bottom: 2px;
    color: var(--gray-300);
}

.chart-tooltip .tooltip-value {
    display: block;
    font-size: 14px;
    font-weight: 700;
    color: white;
}

/* SVG Bar Chart */
.bar-chart-svg {
    width: 100%;
    height: auto;
    min-height: 220px;
}

.status-bar rect {
    transition: opacity 0.2s;
}

.status-bar:hover rect {
    opacity: 0.85;
}

.status-badge {
    background: linear-gradient(135deg, #495057 0%, #343a40 100%);
}

/* Ajustements des graphiques pleine largeur */
.chart-body {
    min-height: 250px;
}

.stats-chart-card.half .chart-body {
    min-height: 280px;
}

.stats-chart-card.half .svg-chart-container {
    height: 100%;
}

.stats-chart-card.half .line-chart-svg,
.stats-chart-card.half .bar-chart-svg {
    min-height: 250px;
}

.bar-date {
    margin-top: 8px;
    font-size: 11px;
    color: var(--gray-500);
    white-space: nowrap;
}

/* Detailed Section */
.stats-detailed-section {
    background: var(--bg-card);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.detailed-header {
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.detailed-header h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 18px;
    font-weight: 600;
    color: var(--gray-900);
}

.detailed-header h3 svg {
    color: var(--gray-500);
}

.detailed-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.detailed-card {
    padding: 20px;
    background: var(--gray-50);
    border-radius: 12px;
}

.detailed-card h4 {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--gray-200);
}

.detailed-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Type List */
.type-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-body);
    border-radius: 8px;
}

.type-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: var(--gray-700);
}

.type-stats {
    display: flex;
    align-items: center;
    gap: 12px;
}

.type-count {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
}

.type-percent {
    font-size: 12px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 2px 8px;
    border-radius: 10px;
}

/* Recent List */
.recent-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 12px;
    background: var(--bg-body);
    border-radius: 8px;
}

.recent-info strong {
    display: block;
    font-size: 13px;
    color: var(--gray-900);
    margin-bottom: 2px;
}

.recent-info span {
    font-size: 12px;
    color: var(--gray-500);
}

.recent-time {
    font-size: 11px;
    color: var(--gray-500);
    background: var(--gray-100);
    padding: 4px 8px;
    border-radius: 6px;
}

/* Indicator List */
.indicator-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--bg-body);
    border-radius: 8px;
}

.indicator-label {
    font-size: 13px;
    color: var(--gray-600);
}

.indicator-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray-900);
}

.indicator-value.good { color: #25D366; }
.indicator-value.warning { color: #FF9800; }
.indicator-value.danger { color: #F44336; }

.no-data {
    text-align: center;
    color: var(--gray-500);
    padding: 40px 20px;
    font-size: 14px;
}

/* Responsive Stats */
@media (max-width: 1200px) {
    .stats-kpi-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-charts-row {
        grid-template-columns: 1fr;
    }
    
    .stats-charts-row.dual-charts {
        grid-template-columns: 1fr;
    }
    
    .detailed-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .stats-kpi-grid {
        grid-template-columns: 1fr;
    }
    
    .kpi-card {
        padding: 20px;
    }
    
    .kpi-value {
        font-size: 28px;
    }

    .line-chart-bars {
        height: 100px;
    }
}

/* ============================================
   DEMANDES D'INSCRIPTION
   ============================================ */

/* Toolbar (filtres) */
.demandes-toolbar {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 20px; flex-wrap: wrap; gap: 12px;
}

.demandes-filters {
    display: inline-flex; padding: 4px;
    background: var(--bg-hover);
    border-radius: 10px;
    gap: 2px;
}

.demandes-filter {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 9px 14px;
    border: none; background: transparent;
    color: var(--text-secondary);
    font-size: 13px; font-weight: 700;
    font-family: inherit;
    border-radius: 7px;
    cursor: pointer;
    transition: all 0.18s ease;
}
.demandes-filter > span {
    pointer-events: none;
}

.demandes-filter:hover { color: var(--text-primary); }

.demandes-filter.active {
    background: var(--bg-card);
    color: var(--primary);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.demandes-filter-count {
    min-width: 20px;
    padding: 1px 7px;
    background: var(--border-color);
    color: var(--text-secondary);
    font-size: 11px; font-weight: 800;
    border-radius: 100px;
    line-height: 1.6;
}

.demandes-filter.active .demandes-filter-count {
    background: var(--accent, #7033ff);
    color: #fff;
}
[data-theme="dark"] .demandes-filter.active .demandes-filter-count {
    background: #9b6dff;
    color: #fff;
}

.demandes-list {
    display: flex; flex-direction: column; gap: 12px;
}

.demande-card {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 14px; padding: 18px 20px;
    transition: box-shadow 0.2s;
}
.demande-card:hover { box-shadow: 0 6px 18px rgba(0,0,0,0.06); }
.demande-card.traitee { opacity: 0.6; }
.demande-card.rejetee { opacity: 0.5; background: rgba(239,68,68,0.04); }

.demande-head {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 12px;
}
.demande-name { font-size: 16px; font-weight: 800; color: var(--text-primary); }
.demande-date { font-size: 12px; color: var(--text-secondary); font-weight: 500; }

.demande-info {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin-bottom: 10px;
}
.demande-info > div {
    font-size: 13px; color: var(--text-primary);
    display: flex; align-items: center; gap: 6px;
}
.demande-info i { color: var(--primary); font-size: 12px; width: 14px; }

.demande-message {
    font-size: 13px; color: var(--text-secondary); font-style: italic;
    padding: 10px 12px; background: var(--bg-hover);
    border-radius: 8px; margin-top: 10px; line-height: 1.5;
}
.demande-message i { opacity: 0.5; margin-right: 4px; }

.demande-actions {
    display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap;
}
.demande-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 14px; border-radius: 8px; font-size: 13px;
    font-weight: 700; font-family: inherit; cursor: pointer;
    text-decoration: none; border: 1px solid transparent;
    transition: all 0.15s;
}
.demande-btn-call { background: transparent; border-color: var(--border-color); color: var(--text-primary); }
.demande-btn-call:hover { border-color: var(--primary); color: var(--primary); text-decoration: none; }
.demande-btn-wa { background: #25D366; color: #fff; }
.demande-btn-wa:hover { background: #1da851; color: #fff; text-decoration: none; }
.demande-btn-create { background: var(--accent, #7033ff); color: #fff; margin-left: auto; }
.demande-btn-create:hover { background: #5a22d9; }
[data-theme="dark"] .demande-btn-create { background: #9b6dff; color: #fff; }
[data-theme="dark"] .demande-btn-create:hover { background: #7c4dff; }
.demande-btn-reject { background: transparent; color: #ef4444; border-color: rgba(239,68,68,0.3); }
.demande-btn-reject:hover { background: rgba(239,68,68,0.1); }

@media (max-width: 700px) {
    .demande-info { grid-template-columns: 1fr; }
    .demande-btn-create { margin-left: 0; }
    .demandes-filters { width: 100%; overflow-x: auto; }
    .demandes-filter { white-space: nowrap; }
}

/* Pagination partagée */
.demandes-pagination {
    margin-top: 24px;
    padding: 20px 14px 18px;
    border-top: 1px solid var(--border-color);
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; flex-wrap: wrap;
}

.pag-info {
    font-size: 13px; color: var(--text-secondary);
}
.pag-info strong { color: var(--text-primary); font-weight: 700; }

.pag-controls {
    display: inline-flex; align-items: center; gap: 4px;
    flex-wrap: wrap;
}

.pag-btn, .pag-num {
    min-width: 36px; height: 36px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    font-size: 13px; font-weight: 700;
    font-family: inherit;
    border-radius: 8px;
    cursor: pointer;
    display: inline-flex; align-items: center; justify-content: center;
    gap: 6px;
    transition: all 0.15s;
}

.pag-btn:hover:not(:disabled), .pag-num:hover:not(.active) {
    border-color: var(--primary);
    color: var(--primary);
}

.pag-btn:disabled {
    opacity: 0.4; cursor: not-allowed;
}

.pag-num.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    cursor: default;
}

.pag-ellipsis {
    padding: 0 4px; color: var(--text-secondary);
    font-weight: 700;
}

.pag-btn i { font-size: 11px; }

@media (max-width: 600px) {
    .demandes-pagination { flex-direction: column; align-items: stretch; }
    .pag-info { text-align: center; }
    .pag-controls { justify-content: center; }
    .pag-btn, .pag-num { min-width: 34px; height: 34px; font-size: 12px; }
    .pag-btn { padding: 0 10px; }
}
/* ============================================
   DESIGN REFRESH — Pro admin look
   Overrides légers pour harmoniser le visuel.
   ============================================ */

body {
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-body);
    color: var(--text-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Sidebar branding */
.sidebar {
    background: var(--bg-sidebar);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-header {
    padding: 18px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.sidebar-title {
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #fafafa;
}
.admin-badge {
    background: var(--accent-soft);
    color: var(--accent);
    border: 1px solid var(--accent-border);
    font-size: 11px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.sidebar-toggle {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.6);
}
.sidebar-toggle:hover {
    background: rgba(255, 255, 255, 0.08);
    color: #fafafa;
}
.sidebar-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding: 14px 14px 18px;
}

/* Top bar / header */
.admin-header, .top-bar, .dashboard-header {
    background: var(--bg-header);
    border-bottom: 1px solid var(--border-color);
    box-shadow: none !important;
    height: var(--header-height);
}
.page-title, #pageTitle {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

/* Cards / panels */
.card, .stat-card, .chart-card, .info-card, .section-card, .panel, .dashboard-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    box-shadow: none !important;
    transition: border-color 0.15s;
}
.card:hover, .stat-card:hover, .chart-card:hover {
    border-color: var(--border-strong);
}
.stat-card .stat-icon,
.stat-card .icon-wrap,
.card-icon {
    background: var(--gray-100) !important;
    color: var(--text-primary) !important;
    border-radius: var(--radius-md);
}
[data-theme="dark"] .stat-card .stat-icon,
[data-theme="dark"] .stat-card .icon-wrap,
[data-theme="dark"] .card-icon {
    background: var(--bg-input) !important;
    color: var(--text-secondary) !important;
}

/* Typography inside cards */
.stat-card .stat-value,
.stat-value,
.kpi-value {
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}
.stat-card .stat-label,
.stat-label,
.kpi-label {
    color: var(--text-muted);
    font-size: 12px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

/* Buttons */
.btn, .btn-primary, .btn-save, .btn-confirm-ok, .btn-confirm-modify {
    border-radius: var(--radius-md);
    font-weight: 500;
    font-size: 14px;
    padding: 8px 14px;
    transition: background 0.15s, border-color 0.15s;
    box-shadow: none !important;
}
.btn-primary, .btn-save, .btn-confirm-ok:not(.danger), .btn-confirm-modify {
    background: var(--primary);
    color: #fafafa;
    border: 1px solid var(--primary);
}
.btn-primary:hover, .btn-save:hover, .btn-confirm-ok:not(.danger):hover, .btn-confirm-modify:hover {
    background: var(--primary-dark);
    border-color: var(--primary-dark);
}
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-save,
[data-theme="dark"] .btn-confirm-ok:not(.danger),
[data-theme="dark"] .btn-confirm-modify {
    background: #fafafa;
    color: #18181b;
    border-color: #fafafa;
}
[data-theme="dark"] .btn-primary:hover,
[data-theme="dark"] .btn-save:hover,
[data-theme="dark"] .btn-confirm-modify:hover {
    background: #e5e5e5;
    border-color: #e5e5e5;
}
.btn-secondary, .btn-cancel, .btn-outline {
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}
.btn-secondary:hover, .btn-cancel:hover, .btn-outline:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}
.btn-danger, .btn-confirm-ok.danger {
    background: var(--danger);
    color: #fff;
    border: 1px solid var(--danger);
}
.btn-danger:hover, .btn-confirm-ok.danger:hover {
    background: #b91c1c;
    border-color: #b91c1c;
}

/* Inputs / selects / textareas */
input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
input[type="search"], input[type="number"], select, textarea {
    background: var(--bg-input);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-size: 14px;
    padding: 8px 12px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

/* Tables */
.data-table, table.pros-table {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: none;
}
.data-table th, table.pros-table th {
    background: var(--gray-50) !important;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
}
[data-theme="dark"] .data-table th,
[data-theme="dark"] table.pros-table th {
    background: var(--bg-input) !important;
}
.data-table td, table.pros-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-primary);
}
.data-table tr:last-child td, table.pros-table tr:last-child td {
    border-bottom: none;
}
.data-table tr:hover td, table.pros-table tr:hover td {
    background: var(--bg-hover);
}

/* Badges / statuts */
.badge, .status-badge, .tag {
    font-size: 11px;
    font-weight: 500;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.02em;
    border: 1px solid transparent;
}
.status-actif, .badge-success, .status-badge.actif {
    background: var(--success-soft);
    color: var(--success);
    border-color: rgba(22, 163, 74, 0.2);
}
.status-desactive, .badge-danger, .status-badge.desactive {
    background: var(--danger-soft);
    color: var(--danger);
    border-color: rgba(220, 38, 38, 0.2);
}
.status-attente, .badge-warning, .status-badge.en_attente {
    background: var(--warning-soft);
    color: var(--warning);
    border-color: rgba(217, 119, 6, 0.2);
}
.status-info, .badge-info {
    background: var(--info-soft);
    color: var(--info);
    border-color: rgba(37, 99, 235, 0.2);
}

/* Modales */
.modal, .modal-content, .view-modal-content, .edit-modal-content {
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
}
.modal-overlay, .modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}
.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 16px 20px;
}
.modal-header h2, .modal-header h3, .modal-title {
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.modal-footer {
    border-top: 1px solid var(--border-color);
    padding: 14px 20px;
    background: var(--gray-50);
}

/* Filtres / boutons période */
.period-btn, .demandes-filter button, .filter-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
}
.period-btn:hover, .demandes-filter button:hover, .filter-btn:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.period-btn.active, .demandes-filter button.active, .filter-btn.active {
    background: var(--primary);
    color: #fafafa;
    border-color: var(--primary);
}
[data-theme="dark"] .period-btn.active,
[data-theme="dark"] .demandes-filter button.active,
[data-theme="dark"] .filter-btn.active {
    background: #fafafa;
    color: #18181b;
    border-color: #fafafa;
}

/* Confirm modal icons — couleurs sémantiques sobres */
.confirm-icon {
    border-radius: var(--radius-md);
}
.confirm-icon.danger {
    background: var(--danger-soft);
    color: var(--danger);
}
.confirm-icon.warning {
    background: var(--warning-soft);
    color: var(--warning);
}
.confirm-icon.success {
    background: var(--success-soft);
    color: var(--success);
}
.confirm-icon.info {
    background: var(--info-soft);
    color: var(--info);
}

/* Modal de confirmation : icône seule (pas de fond ni de halo, juste le glyphe coloré + épais) */
.confirm-icon,
.confirm-icon.danger,
.confirm-icon.warning,
.confirm-icon.success,
.confirm-icon.info {
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 8px;
}
.confirm-icon svg {
    width: 46px;
    height: 46px;
    stroke-width: 2.4;
}

/* Scrollbar discrète */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 5px; border: 2px solid var(--bg-body); }
::-webkit-scrollbar-thumb:hover { background: var(--text-muted); }

/* Focus accessibility */
*:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ============================================
   EPRODUCT-INSPIRED — sidebar pill + row pills
   ============================================ */

/* Sidebar : item actif en pill blanc qui ressort */
.nav-item {
    position: relative;
    border-radius: 999px !important;
    padding: 10px 18px !important;
    margin: 3px 12px !important;
    font-size: 13.5px;
    letter-spacing: 0.01em;
}

.nav-item.active {
    background: #ffffff !important;
    color: #18181b !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.nav-item.active .nav-icon,
.nav-item.active i,
.nav-item.active svg {
    color: var(--accent) !important;
}

.nav-item:not(.active):hover {
    background: rgba(255, 255, 255, 0.05) !important;
}

/* Collapsed state : pill carrée (icon only) */
.sidebar.collapsed .nav-item {
    border-radius: var(--radius-md) !important;
    margin: 3px 8px !important;
    padding: 12px 0 !important;
}

/* ============================================
   TABLEAU PROS — chaque ligne en card-pill
   ============================================ */

.pros-table-wrapper,
#professionnelsView .table-wrapper {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

table.pros-table,
#prosTableBody {
    border-collapse: separate !important;
    border-spacing: 0 10px !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

/* Entête : transparente, labels muted */
table.pros-table thead th {
    background: transparent !important;
    border: none !important;
    color: var(--text-muted) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 6px 18px !important;
}

/* Chaque ligne = pill */
table.pros-table tbody tr {
    background: var(--bg-card);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
    border-radius: var(--radius-lg);
    transition: box-shadow 0.15s, transform 0.15s;
}

table.pros-table tbody tr:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

table.pros-table tbody td {
    background: transparent !important;
    border: none !important;
    padding: 14px 18px !important;
    font-size: 14px;
    color: var(--text-primary);
    vertical-align: middle;
}

/* Coins arrondis sur première/dernière cellule */
table.pros-table tbody td:first-child {
    border-top-left-radius: var(--radius-lg);
    border-bottom-left-radius: var(--radius-lg);
}

table.pros-table tbody td:last-child {
    border-top-right-radius: var(--radius-lg);
    border-bottom-right-radius: var(--radius-lg);
}

/* Supprime lignes de séparation legacy */
table.pros-table tbody tr td {
    border-bottom: none !important;
}

[data-theme="dark"] table.pros-table tbody tr {
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04), 0 1px 2px rgba(0, 0, 0, 0.3);
}
[data-theme="dark"] table.pros-table tbody tr:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* ============================================
   ACTIONS : on garde uniquement "Voir"
   (reset-pwd, toggle, certify, delete masqués)
   ============================================ */

.btn-action.btn-reset-pwd,
.btn-action.btn-toggle,
.btn-action.btn-toggle-on,
.btn-action.btn-toggle-off,
.btn-action.btn-certify,
.btn-action.btn-delete {
    display: none !important;
}

/* Bouton Voir : pill soft — icône seule (liste pros) ou « Voir » (enrôleurs/admins) */
.btn-action.btn-view {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(112, 51, 255, 0.10) !important;
    color: var(--primary, #7033ff) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 7px 12px !important;
    font-size: 13px;
    font-weight: 600;
    width: auto !important;
    height: auto !important;
    cursor: pointer;
    transition: background 0.15s;
}
.btn-action.btn-view::after { content: none !important; }
.btn-action.btn-view svg,
.btn-action.btn-view i {
    width: 16px;
    height: 16px;
}
.btn-action.btn-view:hover { background: rgba(112, 51, 255, 0.18) !important; }
[data-theme="dark"] .btn-action.btn-view { color: #b9a6ff !important; }
[data-theme="dark"] .btn-action.btn-view:hover { background: rgba(140, 92, 255, 0.20) !important; }

/* ============================================
   STATS PAGE — cacher KPIs doublons (déjà sur Dashboard)
   ============================================ */
#statistiquesView .stats-kpi-grid {
    display: none !important;
}

/* ============================================
   DASHBOARD POLISH — radius + box-shadow pro, no hover
   ============================================ */

.stat-card,
.detail-stat,
.kpi-card,
.card,
.chart-card,
.recent-card,
.regions-card,
.stats-chart-card {
    border-radius: 14px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06) !important;
    border: 1px solid #eef0f3 !important;
    transition: none !important;
}

.stat-card:hover,
.detail-stat:hover,
.kpi-card:hover,
.card:hover,
.chart-card:hover,
.recent-card:hover,
.regions-card:hover,
.stats-chart-card:hover,
.data-table tr:hover,
table.pros-table tbody tr:hover {
    transform: none !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06) !important;
    border-color: #eef0f3 !important;
    background: var(--bg-card) !important;
}

/* Table rows : garder l'ombre douce sans hover flashy */
table.pros-table tbody tr {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 6px rgba(16, 24, 40, 0.04) !important;
}
table.pros-table tbody tr:hover {
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 2px 6px rgba(16, 24, 40, 0.04) !important;
}

/* Dark mode : ombres adaptées */
[data-theme="dark"] .stat-card,
[data-theme="dark"] .detail-stat,
[data-theme="dark"] .kpi-card,
[data-theme="dark"] .card,
[data-theme="dark"] .chart-card,
[data-theme="dark"] .recent-card,
[data-theme="dark"] .regions-card,
[data-theme="dark"] .stats-chart-card {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3) !important;
    border-color: #27272a !important;
}

/* Interne : arrondis cohérents pour icônes et sous-éléments */
.stat-icon,
.detail-stat-icon,
.kpi-icon,
.card-icon {
    border-radius: 10px !important;
}

/* ============================================
   INPUTS CLEAN + ICONS UNIFORMES
   ============================================ */

/* ---- Inputs, selects, textareas globaux ---- */
.filters-bar input[type="text"],
.filters-bar select,
.results-bar select,
#searchInput,
input[type="text"],
input[type="search"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
select,
textarea {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    color: #18181b !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    padding: 10px 14px !important;
    height: 40px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04) !important;
    transition: border-color 0.15s, box-shadow 0.15s !important;
    font-family: inherit;
}

textarea {
    height: auto !important;
    min-height: 80px;
    padding: 10px 14px !important;
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    outline: none !important;
    border-color: #7033ff !important;
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.1) !important;
}

input::placeholder,
textarea::placeholder {
    color: #9ca3af !important;
    font-weight: 400;
}

[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="search"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="number"],
[data-theme="dark"] select,
[data-theme="dark"] textarea,
[data-theme="dark"] #searchInput {
    background: #1c1c1f !important;
    border-color: #27272a !important;
    color: #fafafa !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #71717a !important;
}

/* ---- Select : flèche custom ---- */
select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
    padding-right: 36px !important;
}

[data-theme="dark"] select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
}

/* ---- Search box : field avec icône loupe intégrée ---- */
.search-box {
    position: relative;
    flex: 1;
    min-width: 240px;
}

.search-box input#searchInput,
.search-box input[type="text"] {
    padding-left: 40px !important;
    width: 100% !important;
}

.search-box .search-icon {
    position: absolute !important;
    left: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    color: #9ca3af !important;
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    width: 18px;
    height: 18px;
}

.search-box .search-icon svg {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

.search-box input:focus + .search-icon,
.search-box:focus-within .search-icon {
    color: #7033ff !important;
}

/* ---- Filters bar : spacing propre ---- */
.filters-bar {
    display: flex !important;
    gap: 10px !important;
    flex-wrap: wrap;
    align-items: center;
}

/* ============================================
   ICONES UNIFORMES DU DASHBOARD
   ============================================ */

/* Toutes les icônes dans les stat-cards et detail-stat : monochromes neutres */
.stat-card .stat-icon,
.detail-stat-icon,
.kpi-icon,
.card-icon,
.stat-card.blue .stat-icon,
.stat-card.green .stat-icon,
.stat-card.orange .stat-icon,
.stat-card.red .stat-icon,
.kpi-icon.blue,
.kpi-icon.green,
.kpi-icon.red,
.kpi-icon.purple,
.kpi-icon.orange {
    background: #f3f4f6 !important;
    color: #374151 !important;
    border-radius: 10px !important;
    width: 42px !important;
    height: 42px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0;
}

.stat-card .stat-icon svg,
.detail-stat-icon svg,
.kpi-icon svg,
.card-icon svg,
.stat-card.blue .stat-icon svg,
.stat-card.green .stat-icon svg,
.stat-card.orange .stat-icon svg,
.stat-card.red .stat-icon svg {
    color: #374151 !important;
    stroke: #374151 !important;
    fill: none !important;
    width: 20px !important;
    height: 20px !important;
    stroke-width: 2 !important;
}

/* Dark mode */
[data-theme="dark"] .stat-card .stat-icon,
[data-theme="dark"] .detail-stat-icon,
[data-theme="dark"] .kpi-icon,
[data-theme="dark"] .card-icon,
[data-theme="dark"] .stat-card.blue .stat-icon,
[data-theme="dark"] .stat-card.green .stat-icon,
[data-theme="dark"] .stat-card.orange .stat-icon,
[data-theme="dark"] .stat-card.red .stat-icon {
    background: #1c1c1f !important;
    color: #d4d4d8 !important;
}

[data-theme="dark"] .stat-card .stat-icon svg,
[data-theme="dark"] .detail-stat-icon svg,
[data-theme="dark"] .kpi-icon svg,
[data-theme="dark"] .card-icon svg {
    color: #d4d4d8 !important;
    stroke: #d4d4d8 !important;
}

/* (icône certifié unifiée — pas d'exception de couleur) */

/* Icônes dans card-header : grises uniformes */
.card-header h3 svg,
.chart-header h3 svg {
    color: #9ca3af !important;
    stroke: #9ca3af !important;
    width: 18px !important;
    height: 18px !important;
    stroke-width: 2 !important;
}

[data-theme="dark"] .card-header h3 svg,
[data-theme="dark"] .chart-header h3 svg {
    color: #71717a !important;
    stroke: #71717a !important;
}

/* ============================================
   PRO DETAIL VIEW — fiche plein écran
   ============================================ */
#proDetailView {
    padding: 0;
}
#proDetailView.active {
    animation: fadeInUp 0.25s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

.pro-detail-topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 0;
    margin-bottom: 16px;
    border-bottom: 1px solid #eef0f3;
}

.btn-back-pros {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: transparent;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    font-family: inherit;
}
.btn-back-pros:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
[data-theme="dark"] .btn-back-pros {
    border-color: #27272a;
    color: #d4d4d8;
}
[data-theme="dark"] .btn-back-pros:hover {
    background: #1c1c1f;
}

.pro-detail-body {
    background: #ffffff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06);
    max-width: 1100px;
    margin: 0 auto;
}
[data-theme="dark"] .pro-detail-body {
    background: #111113;
    border-color: #27272a;
}

.pro-detail-body .profile-header {
    padding-bottom: 20px;
    border-bottom: 1px solid #eef0f3;
    margin-bottom: 24px;
}
.pro-detail-body .profile-section {
    padding: 18px 0;
    border-bottom: 1px solid #f3f4f6;
}
.pro-detail-body .profile-section:last-child {
    border-bottom: none;
}
.pro-detail-body .profile-section h4 {
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
[data-theme="dark"] .pro-detail-body .profile-section {
    border-color: #27272a;
}

/* Responsive */
@media (max-width: 768px) {
    .pro-detail-body {
        padding: 16px;
        border-radius: 12px;
    }
}

/* ============================================
   PRO DETAIL — topbar avec actions + padding
   ============================================ */
.pro-detail-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 20px 24px;
    margin: 0 auto 20px;
    max-width: 1100px;
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06);
    flex-wrap: wrap;
}
[data-theme="dark"] .pro-detail-topbar {
    background: #111113;
    border-color: #27272a;
}

.pro-detail-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.btn-detail-action {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 7px 12px;
    font-size: 12.5px;
    font-weight: 500;
    color: #374151;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn-detail-action:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.btn-detail-action svg {
    flex-shrink: 0;
}
.btn-detail-action.warning:hover {
    background: #fef3c7;
    border-color: #fcd34d;
    color: #92400e;
}
.btn-detail-action.success:hover {
    background: #d1fae5;
    border-color: #6ee7b7;
    color: #065f46;
}
.btn-detail-action.danger:hover {
    background: #fee2e2;
    border-color: #fca5a5;
    color: #991b1b;
}
[data-theme="dark"] .btn-detail-action {
    background: #1c1c1f;
    border-color: #27272a;
    color: #d4d4d8;
}
[data-theme="dark"] .btn-detail-action:hover {
    background: #27272a;
    border-color: #3f3f46;
}

/* Espacement interne de la fiche */
.pro-detail-body {
    padding: 32px 36px !important;
}
.pro-detail-body .profile-header {
    gap: 20px;
    padding-bottom: 24px;
    margin-bottom: 28px;
}
.pro-detail-body .profile-section {
    padding: 22px 0 !important;
}
.pro-detail-body .profile-row {
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 20px;
    padding: 10px 0;
    align-items: start;
}
.pro-detail-body .profile-row strong {
    color: #6b7280;
    font-weight: 500;
    font-size: 13px;
}
.pro-detail-body .profile-row span {
    color: #18181b;
    font-size: 14px;
    line-height: 1.5;
}
[data-theme="dark"] .pro-detail-body .profile-row span {
    color: #fafafa;
}

@media (max-width: 768px) {
    .pro-detail-topbar {
        padding: 14px 16px;
        flex-direction: column;
        align-items: stretch;
    }
    .pro-detail-actions {
        justify-content: flex-start;
    }
    .pro-detail-body {
        padding: 20px !important;
    }
    .pro-detail-body .profile-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

/* ============================================
   PRO DETAIL — padding sections + avatar placeholder
   ============================================ */

.pro-detail-body .profile-section {
    padding: 26px 0 !important;
    margin: 0 !important;
}

.pro-detail-body .profile-section + .profile-section {
    border-top: 1px solid #f3f4f6;
}

.pro-detail-body .profile-section h4 {
    margin: 0 0 18px 0 !important;
    padding: 0 !important;
}

.pro-detail-body .profile-row {
    padding: 12px 16px !important;
    border-radius: 8px;
}
.pro-detail-body .profile-row:hover {
    background: #f9fafb;
}
[data-theme="dark"] .pro-detail-body .profile-row:hover {
    background: #18181b;
}

.pro-detail-body .profile-header {
    padding: 8px 16px 28px !important;
    margin-bottom: 8px !important;
}

/* Avatar placeholder (pro sans photo) */
.profile-avatar.placeholder {
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e5e7eb;
}
.profile-avatar.placeholder img {
    width: 60%;
    height: 60%;
    opacity: 0.5;
    object-fit: contain;
}
[data-theme="dark"] .profile-avatar.placeholder {
    background: #1c1c1f;
    border-color: #27272a;
}
[data-theme="dark"] .profile-avatar.placeholder img {
    filter: invert(1) brightness(0.85);
    opacity: 0.6;
}

/* Réalisations : meilleure grille */
.pro-detail-body .realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

/* ============================================
   PRO FICHE — padding/margin généreux sur sections
   ============================================ */

.pro-detail-body {
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 1100px !important;
    margin: 0 auto !important;
}

.pro-detail-body .profile-header {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 32px 36px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06);
    gap: 24px;
}
[data-theme="dark"] .pro-detail-body .profile-header {
    background: #111113;
    border-color: #27272a;
}

.pro-detail-body .profile-section {
    background: #fff;
    border: 1px solid #eef0f3;
    border-radius: 16px;
    padding: 28px 32px !important;
    margin-bottom: 18px !important;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.06);
}
[data-theme="dark"] .pro-detail-body .profile-section {
    background: #111113;
    border-color: #27272a;
}

.pro-detail-body .profile-section h4 {
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    margin: 0 0 22px 0 !important;
    padding: 0 0 16px 0 !important;
    border-bottom: 1px solid #f3f4f6;
    display: flex;
    align-items: center;
    gap: 10px;
}
[data-theme="dark"] .pro-detail-body .profile-section h4 {
    border-color: #27272a;
    color: #a1a1aa;
}

.pro-detail-body .profile-row {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    padding: 14px 0 !important;
    align-items: start;
}
.pro-detail-body .profile-row + .profile-row {
    border-top: 1px solid #f7f8f9;
}
[data-theme="dark"] .pro-detail-body .profile-row + .profile-row {
    border-color: #1f1f23;
}

.pro-detail-body .profile-row strong {
    color: #6b7280;
    font-weight: 500;
    font-size: 13px;
}

.pro-detail-body .profile-row span {
    color: #18181b;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.5;
    word-break: break-word;
}
[data-theme="dark"] .pro-detail-body .profile-row span {
    color: #fafafa;
}

.pro-detail-body .realisations-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
    margin-top: 8px;
}

@media (max-width: 768px) {
    .pro-detail-body .profile-header,
    .pro-detail-body .profile-section {
        padding: 22px 20px !important;
    }
    .pro-detail-body .profile-row {
        grid-template-columns: 1fr;
        gap: 6px;
    }
}

/* ============================================
   FIX : inputs dans wrap téléphone (retire double bordure)
   ============================================ */
.ar-phone-wrap input,
.ar-phone-wrap input[type="tel"],
.phone-input-wrap input,
.phone-input-wrap input[type="tel"] {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    outline: 0 !important;
    padding: 10px 12px !important;
    height: auto !important;
}
.ar-phone-wrap input:focus,
.phone-input-wrap input:focus,
.ar-phone-wrap input:focus-visible,
.phone-input-wrap input:focus-visible {
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
}

/* ============================================
   FIX : focus style uniforme sur modale inscrire pro
   ============================================ */
.ar-phone-wrap:focus-within,
.ar-field input:focus,
.ar-field input[type="text"]:focus,
.ar-field input[type="tel"]:focus,
.ar-field input[type="password"]:focus {
    border-color: #7033ff !important;
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.12) !important;
    outline: none !important;
}

/* ============================================
   DARK MODE — fixes section Professionnels
   ============================================ */

/* Bouton "Inscrire un pro" — lisible en dark */
[data-theme="dark"] .btn-add-pro {
    background: #7033ff !important;
    color: #fff !important;
    border: none !important;
}
[data-theme="dark"] .btn-add-pro:hover {
    background: #5a22d9 !important;
    color: #fff !important;
}

/* Selects / inputs de la filters-bar — dark uniforme */
[data-theme="dark"] .filters-bar input,
[data-theme="dark"] .filters-bar select,
[data-theme="dark"] .results-bar select,
[data-theme="dark"] #searchInput,
[data-theme="dark"] #filterCategorie,
[data-theme="dark"] #filterMetier,
[data-theme="dark"] #filterVille,
[data-theme="dark"] #filterStatut,
[data-theme="dark"] #sortBy {
    background: #1c1c1f !important;
    border: 1px solid #2a2a2e !important;
    color: #fafafa !important;
    box-shadow: none !important;
}

[data-theme="dark"] .filters-bar input::placeholder,
[data-theme="dark"] #searchInput::placeholder {
    color: #71717a !important;
}

/* Flèche de select en dark */
[data-theme="dark"] .filters-bar select,
[data-theme="dark"] .results-bar select {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

/* Options du select en dark (navigateur) */
[data-theme="dark"] select option {
    background: #1c1c1f;
    color: #fafafa;
}

/* Icône loupe search-box en dark */
[data-theme="dark"] .search-box .search-icon {
    color: #71717a !important;
}

/* Focus en dark */
[data-theme="dark"] .filters-bar input:focus,
[data-theme="dark"] .filters-bar select:focus,
[data-theme="dark"] .results-bar select:focus,
[data-theme="dark"] #searchInput:focus {
    border-color: #7033ff !important;
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.18) !important;
}

/* ============================================
   STATS CHART — dark mode lisibilité + taille réduite
   ============================================ */

/* Réduire la taille du card évolution inscriptions */
.stats-chart-card,
.stats-chart-card.half {
    min-height: auto !important;
    padding: 18px 20px !important;
}

.stats-chart-card .chart-header {
    margin-bottom: 14px !important;
    padding-bottom: 12px !important;
}

.stats-chart-card .chart-header h3 {
    font-size: 13px !important;
    font-weight: 600;
}

.stats-chart-card .svg-chart-container {
    max-height: 220px;
}

.stats-chart-card .line-chart-svg,
.stats-chart-card .bar-chart-svg {
    max-height: 200px;
    width: 100%;
}

/* Dark mode — textes du SVG lisibles */
[data-theme="dark"] .line-chart-svg text,
[data-theme="dark"] .bar-chart-svg text {
    fill: #a1a1aa !important;
}

[data-theme="dark"] .line-chart-svg line[stroke="#f1f3f5"],
[data-theme="dark"] .line-chart-svg line[stroke="#e9ecef"],
[data-theme="dark"] .bar-chart-svg line[stroke="#f1f3f5"],
[data-theme="dark"] .bar-chart-svg line[stroke="#e9ecef"] {
    stroke: #27272a !important;
}

/* Card dark : fond + bordure + ombre adapté */
[data-theme="dark"] .stats-chart-card {
    background: #111113 !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .stats-chart-card .chart-header {
    border-bottom-color: #27272a !important;
}

[data-theme="dark"] .stats-chart-card .chart-header h3 {
    color: #d4d4d8 !important;
}

/* Badge résumé (total inscriptions) en dark */
[data-theme="dark"] .chart-summary-badge {
    background: #1c1c1f !important;
    border-color: #27272a !important;
    color: #fafafa !important;
}
[data-theme="dark"] .chart-summary-badge .badge-label {
    color: #a1a1aa !important;
}

/* Boutons période en dark */
[data-theme="dark"] .period-btn {
    background: #1c1c1f !important;
    border-color: #27272a !important;
    color: #a1a1aa !important;
}
[data-theme="dark"] .period-btn:hover {
    background: #27272a !important;
    color: #fafafa !important;
}
[data-theme="dark"] .period-btn.active {
    background: #7033ff !important;
    border-color: #7033ff !important;
    color: #fff !important;
}

/* ============================================
   Chart summary badge — compact + vrai noir
   ============================================ */
.chart-summary-badge {
    padding: 6px 12px !important;
    background: #0a0a0a !important;
    color: #fff !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15) !important;
    border-radius: 8px !important;
    display: inline-flex;
    align-items: baseline;
    gap: 6px;
    top: 12px !important;
    right: 12px !important;
}
.chart-summary-badge.status-badge {
    background: #0a0a0a !important;
}
.chart-summary-badge .badge-value {
    font-size: 15px !important;
    font-weight: 700;
    line-height: 1;
    color: #fff !important;
}
.chart-summary-badge .badge-label {
    font-size: 10.5px !important;
    font-weight: 500;
    opacity: 0.7;
    color: #fff !important;
    letter-spacing: 0.02em;
}

[data-theme="dark"] .chart-summary-badge,
[data-theme="dark"] .chart-summary-badge.status-badge {
    background: #000 !important;
    border: 1px solid #27272a !important;
}

/* ============================================
   Pro fiche — margins généreux entre sections
   ============================================ */
.pro-detail-body {
    padding: 8px 20px 40px !important;
}
.pro-detail-body .profile-section {
    margin: 0 0 36px 0 !important;
}
.pro-detail-body .profile-header {
    margin: 0 0 40px 0 !important;
}
.pro-detail-body .profile-section:last-child {
    margin-bottom: 0 !important;
}
.pro-detail-topbar {
    margin: 0 auto 28px !important;
}

/* Topbar fiche — padding généreux comme les sections */
#proDetailView > .pro-detail-topbar {
    padding: 20px 24px !important;
    margin: 24px 20px 28px !important;
}


/* ============================================
   EN ATTENTE — vue dédiée
   Classes alignées avec le rendu JS (loadPending)
   ============================================ */
.pending-header {
    margin: 0 20px 24px;
    padding: 20px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.05);
}
[data-theme="dark"] .pending-header {
    background: #111113;
    border-color: #27272a;
}
.pending-title {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--text-primary);
    margin: 0 0 4px 0;
}
.pending-subtitle {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0;
}

.pending-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 16px;
    padding: 0 20px 40px;
}

/* Card */
.pending-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 22px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.05);
    display: flex;
    flex-direction: column;
    gap: 16px;
}
[data-theme="dark"] .pending-card {
    background: #111113;
    border-color: #27272a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

/* Header = avatar + infos */
.pending-card-header {
    display: flex;
    align-items: center;
    gap: 14px;
}
.pending-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid var(--border-color);
}
[data-theme="dark"] .pending-avatar {
    background: #1c1c1f;
    border-color: #27272a;
}
.pending-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.pending-avatar .avatar-initiales {
    font-weight: 700;
    color: #7033ff;
    font-size: 16px;
}
.pending-info h4 {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 2px 0;
    letter-spacing: -0.005em;
}
.pending-info p {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    font-weight: 500;
}
.pending-info span {
    font-size: 11.5px;
    color: var(--text-muted);
    display: block;
    margin-top: 4px;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}

/* Body = details */
.pending-card-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 14px 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}
.pending-detail {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    line-height: 1.4;
}
.pending-detail strong {
    color: var(--text-muted);
    font-weight: 500;
    min-width: 120px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
}
.pending-detail strong svg {
    color: var(--text-muted);
    flex-shrink: 0;
}
.pending-detail span {
    color: var(--text-primary);
    font-weight: 500;
    word-break: break-word;
}

/* Actions */
.pending-card-actions {
    display: flex;
    gap: 8px;
}
.pending-card-actions button {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 9px 10px;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-primary);
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pending-card-actions button svg {
    flex-shrink: 0;
    width: 15px;
    height: 15px;
}

.btn-view-profile:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}

.btn-approve {
    background: #ecfdf5 !important;
    color: #047857 !important;
    border-color: #a7f3d0 !important;
}
.btn-approve:hover {
    background: #10b981 !important;
    color: #fff !important;
    border-color: #10b981 !important;
}

.btn-reject {
    color: #9ca3af !important;
}
.btn-reject:hover {
    background: rgba(220, 38, 38, 0.08) !important;
    color: #dc2626 !important;
    border-color: transparent !important;
}

[data-theme="dark"] .btn-approve {
    background: rgba(16, 185, 129, 0.12) !important;
    color: #6ee7b7 !important;
    border-color: rgba(16, 185, 129, 0.3) !important;
}
[data-theme="dark"] .btn-view-profile:hover {
    background: #1c1c1f;
}

/* Empty state */
#pendingList:empty::after,
.pending-grid:empty::after {
    content: '✓ Aucun artisan en attente';
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
    font-size: 14px;
}

/* ============================================
   EN ATTENTE — ajustements (placeholder + boutons sobres)
   ============================================ */

/* Placeholder SVG à la place des initiales */
.pending-avatar .pending-avatar-placeholder {
    width: 60%;
    height: 60%;
    object-fit: contain;
    opacity: 0.45;
    filter: none;
}
[data-theme="dark"] .pending-avatar .pending-avatar-placeholder {
    filter: invert(1) brightness(0.85);
    opacity: 0.5;
}

/* Boutons actions — palette neutre du dashboard, pas de couleurs flashy */
.pending-card-actions button,
.pending-card-actions .btn-view-profile,
.pending-card-actions .btn-approve,
.pending-card-actions .btn-reject {
    background: var(--bg-card) !important;
    color: var(--text-primary) !important;
    border: 1px solid var(--border-color) !important;
}

.pending-card-actions .btn-view-profile:hover {
    background: var(--bg-hover) !important;
    border-color: var(--border-strong) !important;
}

/* Valider : action principale → noir plein (couleur dominante du dashboard) */
.pending-card-actions .btn-approve {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
}
.pending-card-actions .btn-approve:hover {
    background: #000 !important;
    border-color: #000 !important;
}

/* Refuser : action secondaire sobre, hover subtil */
.pending-card-actions .btn-reject {
    color: var(--text-muted) !important;
}
.pending-card-actions .btn-reject:hover {
    background: var(--bg-hover) !important;
    color: var(--text-primary) !important;
    border-color: var(--border-strong) !important;
}

/* Dark mode */
[data-theme="dark"] .pending-card-actions .btn-approve {
    background: #fafafa !important;
    color: #18181b !important;
    border-color: #fafafa !important;
}
[data-theme="dark"] .pending-card-actions .btn-approve:hover {
    background: #e5e5e5 !important;
    border-color: #e5e5e5 !important;
}
[data-theme="dark"] .pending-card-actions .btn-view-profile:hover,
[data-theme="dark"] .pending-card-actions .btn-reject:hover {
    background: #1c1c1f !important;
}

/* ============================================
   EN ATTENTE — carte compacte (3 par rangée)
   ============================================ */
.pending-card { position: relative; }

.pending-badge {
    position: absolute;
    top: 12px; right: 12px;
    display: inline-flex; align-items: center; gap: 5px;
    padding: 3px 9px;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.12);
    color: #b45309;
    font-size: 10px; font-weight: 700; letter-spacing: 0.2px;
}
.pending-badge::before {
    content: '';
    width: 5px; height: 5px; border-radius: 50%;
    background: #f59e0b;
}
[data-theme="dark"] .pending-badge { background: rgba(245, 158, 11, 0.16); color: #fbbf24; }

.pending-card-header {
    padding: 14px 14px 10px;
    gap: 12px;
    border-bottom: 0;
}
.pending-avatar {
    width: 52px; height: 52px;
    box-shadow: 0 0 0 2px var(--bg-hover);
}
.pending-info h4 {
    font-size: 14px; font-weight: 800; letter-spacing: -0.01em;
    margin-bottom: 2px;
}
.pending-info p { font-size: 12px; font-weight: 600; }
.pending-info span {
    display: inline-flex; align-items: center; gap: 5px;
    margin-top: 2px;
    font-size: 10.5px;
    color: var(--text-muted);
    font-family: inherit;          /* fini le monospace sur la date */
}

.pending-card-body { padding: 8px 14px; }
.pending-detail {
    align-items: center;
    padding: 5px 0;
    margin-bottom: 0;
    font-size: 12px;
    border-bottom: 0;
}
.pending-detail strong { min-width: 104px; font-size: 11.5px; }
.pending-detail span { font-weight: 700; }

.pending-card-actions {
    padding: 10px 14px 12px;
    gap: 6px;
    background: transparent;
    border-top: 0;
}
.pending-card-actions button { padding: 8px; font-size: 12px; }

/* ============================================
   MODAL DE REFUS ADMIN
   ============================================ */
.reject-motif-modal {
    position: fixed; inset: 0; z-index: 2000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; pointer-events: none;
    transition: opacity 0.15s;
}
.reject-motif-modal.active {
    opacity: 1; pointer-events: auto;
}
.reject-motif-backdrop {
    position: absolute; inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(3px);
}
.reject-motif-dialog {
    position: relative;
    background: #fff;
    border-radius: 14px;
    width: 95%; max-width: 480px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    display: flex; flex-direction: column; gap: 14px;
}
[data-theme="dark"] .reject-motif-dialog {
    background: #111113;
    border: 1px solid #27272a;
}
.reject-motif-title {
    font-size: 17px; font-weight: 600;
    margin: 0; color: #18181b;
    letter-spacing: -0.01em;
}
[data-theme="dark"] .reject-motif-title { color: #fafafa; }
.reject-motif-sub {
    font-size: 13.5px; color: #6b7280;
    margin: 0; line-height: 1.5;
}
[data-theme="dark"] .reject-motif-sub { color: #a1a1aa; }
.reject-motif-textarea {
    width: 100%;
    padding: 12px 14px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-family: inherit;
    resize: vertical;
    min-height: 110px;
    background: #fff !important;
    color: #18181b !important;
    box-shadow: none !important;
    height: auto !important;
}
[data-theme="dark"] .reject-motif-textarea {
    background: #1c1c1f !important;
    border-color: #2a2a2e !important;
    color: #fafafa !important;
}
.reject-motif-textarea:focus {
    outline: none !important;
    border-color: #7033ff !important;
    box-shadow: 0 0 0 3px rgba(112, 51, 255, 0.12) !important;
}
.reject-motif-actions {
    display: flex; justify-content: flex-end; gap: 8px;
    margin-top: 4px;
}
.reject-motif-cancel,
.reject-motif-submit {
    padding: 9px 16px;
    font-size: 13.5px; font-weight: 500;
    border-radius: 8px;
    cursor: pointer; font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.reject-motif-cancel {
    background: #fff; color: #374151;
    border: 1px solid #e5e7eb;
}
.reject-motif-cancel:hover {
    background: #f9fafb;
    border-color: #d1d5db;
}
.reject-motif-submit {
    background: #111; color: #fff;
    border: 1px solid #111;
}
.reject-motif-submit:hover:not(:disabled) {
    background: #000;
}
.reject-motif-submit:disabled {
    opacity: 0.4; cursor: not-allowed;
}
[data-theme="dark"] .reject-motif-cancel {
    background: transparent; color: #d4d4d8;
    border-color: #27272a;
}
[data-theme="dark"] .reject-motif-cancel:hover {
    background: #1c1c1f;
}
[data-theme="dark"] .reject-motif-submit {
    background: #fafafa; color: #18181b;
    border-color: #fafafa;
}
[data-theme="dark"] .reject-motif-submit:hover:not(:disabled) {
    background: #e5e5e5;
}

/* ============================================
   EMPTY STATE — composant réutilisable
   ============================================ */
.empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 24px;
    text-align: center;
    gap: 12px;
}
.empty-state-icon {
    background: transparent;
    color: #cbd5e1;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 8px;
}
.empty-state-icon svg {
    width: 54px; height: 54px;
    stroke-width: 1.5;
}
[data-theme="dark"] .empty-state-icon {
    background: transparent;
    color: #3f3f46;
}
.empty-state-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}
.empty-state-desc {
    font-size: 13px;
    color: var(--text-muted);
    max-width: 360px;
    line-height: 1.5;
}
.empty-state-action {
    margin-top: 8px;
    padding: 8px 16px;
    background: #111;
    color: #fff;
    border: 1px solid #111;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
}
.empty-state-action:hover { background: #000; }
[data-theme="dark"] .empty-state-action {
    background: #fafafa; color: #18181b; border-color: #fafafa;
}
[data-theme="dark"] .empty-state-action:hover { background: #e5e5e5; }

.empty-state-cell {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}
.empty-state-cell .empty-state {
    padding: 60px 24px;
}

/* ============================================
   BOUTON EXPORT CSV
   ============================================ */
.btn-export-csv {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 14px;
    background: var(--bg-card);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
}
.btn-export-csv:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}
.btn-export-csv svg { color: var(--text-muted); }
[data-theme="dark"] .btn-export-csv {
    background: #1c1c1f;
    border-color: #2a2a2e;
    color: #fafafa;
}
[data-theme="dark"] .btn-export-csv:hover {
    background: #27272a;
}

/* ============================================
   BULK ACTIONS TOOLBAR
   ============================================ */
.bulk-toolbar {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 18px;
    margin: 12px 0;
    background: #18181b;
    color: #fafafa;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    flex-wrap: wrap;
    animation: bulkSlideIn 0.2s ease;
}
@keyframes bulkSlideIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}
.bulk-toolbar[hidden] { display: none !important; }
.bulk-count {
    font-size: 13.5px;
    font-weight: 500;
    padding-right: 16px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
}
.bulk-count strong { font-weight: 700; font-size: 15px; }
.bulk-actions {
    display: flex; gap: 6px; flex-wrap: wrap;
    flex: 1;
}
.bulk-actions button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.08);
    color: #fafafa;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    font-family: inherit;
    transition: background 0.15s, border-color 0.15s;
}
.bulk-actions button:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}
.bulk-actions .bulk-danger:hover {
    background: rgba(220, 38, 38, 0.25);
    border-color: rgba(220, 38, 38, 0.5);
    color: #fca5a5;
}
.bulk-actions .bulk-clear {
    margin-left: auto;
    background: transparent;
    border-color: transparent;
    color: rgba(255, 255, 255, 0.6);
}
.bulk-actions .bulk-clear:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

/* ============================================
   CHECKBOX COLONNE dans pros table
   ============================================ */
.data-table .col-check,
table.pros-table .col-check {
    width: 40px;
    padding-left: 16px !important;
    padding-right: 8px !important;
}
/* Colonne numéro (remplace l'ancienne colonne ID) */
.col-num {
    width: 44px;
    color: var(--text-muted);
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}
/* Badge « À classer » : pro inscrit via la catégorie « Autre » (activité libre) */
.badge-aclasser {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 100px;
    background: rgba(245, 158, 11, 0.14);
    color: #b45309;
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.2px;
    vertical-align: 1px;
}
[data-theme="dark"] .badge-aclasser { background: rgba(245, 158, 11, 0.18); color: #fbbf24; }
.data-table th.col-check,
table.pros-table th.col-check {
    padding-top: 8px !important;
    padding-bottom: 8px !important;
}
.pro-checkbox,
#selectAllPros {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #7033ff;
}

/* Lignes cochées : highlight discret */
table.pros-table tbody tr:has(.pro-checkbox:checked) {
    background: rgba(112, 51, 255, 0.04) !important;
}
[data-theme="dark"] table.pros-table tbody tr:has(.pro-checkbox:checked) {
    background: rgba(112, 51, 255, 0.08) !important;
}

/* ============================================
   BULK LOADING — barre de progression
   (réutilise le style .delete-loading-modal)
   ============================================ */
.bulk-loading-progress {
    margin-top: 16px;
    width: 100%;
}
.bulk-loading-bar {
    width: 100%;
    height: 6px;
    background: #e5e7eb;
    border-radius: 999px;
    overflow: hidden;
}
.bulk-loading-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, #7033ff 0%, #a855f7 100%);
    border-radius: 999px;
    width: 0%;
    transition: width 0.25s ease;
}
.bulk-loading-counter {
    margin-top: 8px;
    font-size: 12.5px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    text-align: center;
    letter-spacing: 0.02em;
}
[data-theme="dark"] .bulk-loading-bar {
    background: #27272a;
}

/* ============================================
   MODÉRATION DES AVIS — admin
   ============================================ */
.avis-header {
    margin: 0 20px 20px;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.05);
}
[data-theme="dark"] .avis-header {
    background: #111113; border-color: #27272a;
}
.avis-title {
    font-size: 18px; font-weight: 600; margin: 0 0 4px 0;
    letter-spacing: -0.01em; color: var(--text-primary);
}
.avis-subtitle {
    font-size: 13px; color: var(--text-muted); margin: 0;
}

/* Tabs */
.avis-tabs {
    display: flex; gap: 6px; flex-wrap: wrap;
    padding: 0 20px;
    margin-bottom: 16px;
}
.avis-tab {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 9px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    font-size: 13px; font-weight: 500;
    color: var(--text-muted);
    cursor: pointer; font-family: inherit;
    transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.avis-tab:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}
.avis-tab.active {
    background: #18181b;
    color: #fff;
    border-color: #18181b;
}
[data-theme="dark"] .avis-tab.active {
    background: #fafafa; color: #18181b; border-color: #fafafa;
}
.avis-tab-count {
    background: rgba(255, 255, 255, 0.15);
    padding: 1px 7px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
}
.avis-tab:not(.active) .avis-tab-count {
    background: var(--bg-hover);
    color: var(--text-secondary);
}

/* Liste */
.avis-list {
    display: flex; flex-direction: column; gap: 12px;
    padding: 0 20px 40px;
}

/* Card */
.avis-mod-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 18px 20px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
[data-theme="dark"] .avis-mod-card {
    background: #111113; border-color: #27272a;
}
.avis-mod-card.is-reported {
    background: rgba(239, 68, 68, 0.025);
}
[data-theme="dark"] .avis-mod-card.is-reported {
    background: rgba(239, 68, 68, 0.06);
}
.avis-mod-card.is-masque {
    opacity: 0.7;
    background: var(--bg-hover);
}

.avis-mod-head {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 12px; margin-bottom: 10px;
}
.avis-mod-author {
    display: flex; gap: 12px; align-items: center;
}
.avis-mod-avatar {
    width: 38px; height: 38px;
    border-radius: 50%;
    background: rgba(112, 51, 255, 0.1);
    color: #7033ff;
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 13px;
    flex-shrink: 0;
}
.avis-mod-name {
    font-size: 14px; font-weight: 600;
    color: var(--text-primary);
}
.avis-mod-stars { font-size: 12px; color: #d4d4d8; margin-top: 2px; }
.avis-mod-stars .on { color: #f59e0b; }

.avis-mod-meta {
    display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.avis-mod-date {
    font-size: 11.5px; color: var(--text-muted);
    font-family: 'JetBrains Mono', ui-monospace, monospace;
}
.avis-flag {
    background: rgba(239, 68, 68, 0.1);
    color: #b91c1c;
    border: 1px solid rgba(239, 68, 68, 0.25);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px; font-weight: 600;
    display: inline-flex; align-items: center; gap: 5px;
}
.avis-masque-badge {
    background: var(--bg-hover);
    color: var(--text-muted);
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 11px; font-weight: 500;
    display: inline-flex; align-items: center; gap: 5px;
}

.avis-mod-text {
    font-size: 14px; line-height: 1.55;
    color: var(--text-primary);
    margin: 0 0 12px 0;
    white-space: pre-wrap;
    word-break: break-word;
}

.avis-mod-motif {
    background: rgba(239, 68, 68, 0.06);
    border: 1px solid rgba(239, 68, 68, 0.15);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 13px;
    color: #7f1d1d;
    margin-bottom: 12px;
}
[data-theme="dark"] .avis-mod-motif {
    background: rgba(239, 68, 68, 0.08);
    color: #fca5a5;
}
.avis-mod-motif strong { font-weight: 600; }

.avis-mod-foot {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; padding-top: 12px;
    border-top: 1px solid var(--border-color);
    flex-wrap: wrap;
}
.avis-mod-pro {
    font-size: 12.5px;
    color: var(--text-muted);
}
.avis-mod-pro-label { margin-right: 4px; }
.avis-mod-pro a {
    color: var(--text-primary);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px dashed var(--border-strong);
}
.avis-mod-pro a:hover { color: #7033ff; }

.avis-mod-actions {
    display: flex; gap: 6px; flex-wrap: wrap;
}
.avis-mod-btn {
    padding: 7px 12px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 12.5px; font-weight: 500;
    color: var(--text-primary);
    cursor: pointer; font-family: inherit;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.avis-mod-btn:hover {
    background: var(--bg-hover);
    border-color: var(--border-strong);
}
.avis-mod-btn.danger {
    color: var(--text-muted);
}
.avis-mod-btn.danger:hover {
    background: rgba(220, 38, 38, 0.08);
    color: #dc2626;
    border-color: rgba(220, 38, 38, 0.2);
}

/* ============================================
   ENROLEUR DETAIL VIEW STYLE
   ============================================ */
.pro-detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}
.pro-card-main, .pro-card-sidebar {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.pro-info-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}
.pro-avatar-container {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    overflow: hidden;
    background: var(--bg-hover);
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--border-color);
}
.pro-info-title h2 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}
.pro-badge-type {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 600;
}
.pro-info-details {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.pro-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    padding: 4px 0;
}
.info-label {
    color: var(--text-muted);
    font-weight: 500;
}
.pro-info-row strong, .pro-info-row span {
    color: var(--text-primary);
}

@media (max-width: 768px) {
    .pro-detail-grid {
        grid-template-columns: 1fr;
    }
}


/* ════════════ Annonces (admin → pros) ════════════ */
.ann-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}
.ann-form-card,
.ann-list-card {
    background: var(--card, #fff);
    border: 1px solid var(--border, #e8e8ee);
    border-radius: 14px;
    padding: 20px;
}
.ann-form-card { position: sticky; top: 20px; }
.ann-form-title { font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.ann-form-sub { font-size: 13px; color: var(--muted, #6b7280); margin: 0 0 16px; }
.ann-label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 6px; }
.ann-input,
.ann-textarea {
    width: 100%;
    box-sizing: border-box;
    padding: 11px 13px;
    border: 1px solid var(--border, #e2e2ea);
    border-radius: 10px;
    font-family: inherit;
    font-size: 14px;
    background: var(--input-bg, #fff);
    color: inherit;
}
.ann-textarea { resize: vertical; line-height: 1.5; }
.ann-input:focus,
.ann-textarea:focus { outline: none; border-color: #7033ff; box-shadow: 0 0 0 3px rgba(112,51,255,0.12); }
.ann-form-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 16px; }

.ann-list { display: flex; flex-direction: column; gap: 12px; }
.ann-item {
    display: flex; gap: 14px; align-items: flex-start;
    padding: 16px;
    border: 1px solid var(--border, #ececf2);
    border-radius: 12px;
    background: var(--card, #fff);
}
.ann-item-main { flex: 1; min-width: 0; }
.ann-item-title { font-size: 15px; font-weight: 700; margin-bottom: 5px; }
.ann-item-body { font-size: 13.5px; line-height: 1.55; color: var(--muted, #4b5563); white-space: pre-wrap; word-break: break-word; }
.ann-item-date { font-size: 12px; color: var(--muted, #9ca3af); margin-top: 10px; }
.ann-item-actions { display: flex; gap: 6px; flex-shrink: 0; }
.ann-act {
    width: 34px; height: 34px; border-radius: 9px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--border, #e5e7eb);
    background: transparent; color: var(--muted, #6b7280);
    cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.ann-act-edit:hover { color: #7033ff; border-color: #7033ff; background: rgba(112,51,255,0.06); }
.ann-act-del:hover { color: #ef4444; border-color: #ef4444; background: rgba(239,68,68,0.06); }

@media (max-width: 860px) {
    .ann-grid { grid-template-columns: 1fr; }
    .ann-form-card { position: static; }
}

/* ============================================
   ÉDITION TAXONOMIE — cases à cocher métiers/prestations
   (repris de pro/css/formulaire.css, adapté aux variables admin)
   ============================================ */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 7px;
    margin: 8px 0 4px;
}
.checkbox-grid .cbx-empty {
    grid-column: 1 / -1;
    margin: 4px 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}
.cbx-item {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    padding: 7px 9px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    background: var(--bg-input);
    cursor: pointer;
    font-size: 0.82rem;
    line-height: 1.3;
    color: var(--text-primary);
    transition: border-color .15s, background .15s;
}
.cbx-item:hover { border-color: var(--accent); }
.cbx-item { cursor: pointer; }
.cbx-item input { display: none; }
.cbx-item.checked { border-color: var(--accent); background: var(--accent-soft); }
.cbx-item .cbx-reg {
    display: inline-block;
    margin-left: 4px;
    color: var(--danger);
    font-weight: 700;
    font-size: 0.8rem;
}
/* Sous-titre d'un groupe de prestations (nom du métier) */
.cbx-group-title {
    grid-column: 1 / -1;
    margin: 6px 0 0;
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--text-muted);
}
/* Pastille « proposé » (tag saisi librement, à valider) */
.tag-propose {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--warning);
}
/* Ajout libre d'une prestation */
.edit-freetag-row {
    display: flex;
    gap: 8px;
    margin-top: 10px;
}
.edit-freetag-row input {
    flex: 1;
}
.btn-add-freetag {
    flex: 0 0 auto;
    padding: 0 16px;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    background: var(--bg-hover);
    color: var(--text-primary);
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: border-color .15s, background .15s;
}
.btn-add-freetag:hover { border-color: var(--accent); }
.edit-freetags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 8px;
}
.edit-freetag-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--warning-soft);
    color: var(--warning);
    font-size: 0.85rem;
    font-weight: 600;
}
.edit-freetag-chip button {
    border: none;
    background: none;
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
    line-height: 1;
    padding: 0;
}

/* ── Filtre par prestations (tags) sous la barre de filtres ── */
.filter-prestations { margin: 12px 0 4px; }
.filter-prestations .fp-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 6px;
    opacity: 0.85;
}
.filter-prestations .checkbox-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    max-height: 220px;
    overflow-y: auto;
}

/* ════════════ MODÉRATION DES PRESTATIONS PROPOSÉES (tags) ════════════ */
.tagmod-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin: 0 20px 20px;
    padding: 22px 24px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 4px 12px rgba(16, 24, 40, 0.05);
}
[data-theme="dark"] .tagmod-header {
    background: #111113; border-color: #27272a;
}
.tagmod-title {
    font-size: 18px; font-weight: 600; margin: 0 0 4px 0;
    letter-spacing: -0.01em; color: var(--text-primary);
}
.tagmod-subtitle {
    font-size: 13px; color: var(--text-muted); margin: 0; max-width: 640px; line-height: 1.5;
}
.tagmod-total-badge {
    flex-shrink: 0;
    display: inline-flex; align-items: center;
    padding: 6px 12px;
    font-size: 12px; font-weight: 600;
    color: #6d28d9; background: #f3effe;
    border: 1px solid #ddd0fb;
    border-radius: 999px;
    white-space: nowrap;
}
[data-theme="dark"] .tagmod-total-badge {
    color: #c4b5fd; background: rgba(139, 92, 246, 0.12); border-color: rgba(139, 92, 246, 0.32);
}

.tagmod-list {
    padding: 0 20px 40px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Barre d'outils : recherche + select métier */
.tagmod-toolbar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px 16px;
    flex-wrap: wrap;
}
.tagmod-search {
    position: relative;
    flex: 1 1 260px;
    min-width: 220px;
    display: flex;
    align-items: center;
}
.tagmod-search svg {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    pointer-events: none;
    z-index: 1;
}
/* Spécificité (0,1,1) + !important pour battre les règles globales input[type=text] { padding !important } */
.tagmod-toolbar .tagmod-search input {
    width: 100% !important;
    height: 42px !important;
    padding: 0 14px 0 42px !important;
    font-size: 14px !important;
    border-radius: 10px !important;
}
.tagmod-search input:focus { border-color: var(--accent, #7033ff); }

/* Select métier : on doit égaler/battre [data-theme="dark"] select { background: … !important }
   (0,1,1) qui remet background-repeat à 'repeat' → chevron en mosaïque. */
.tagmod-toolbar .tagmod-metier-select {
    height: 42px !important;
    padding: 0 36px 0 14px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    cursor: pointer;
    min-width: 200px;
    max-width: 320px;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}
.tagmod-metier-select:focus { border-color: var(--accent, #7033ff); }
/* Dark : fixer explicitement fond + chevron unique (spécificité 0,1,1, placé après la règle globale) */
[data-theme="dark"] .tagmod-metier-select {
    background-color: #1c1c1f !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

/* Conteneur liste à plat (carte) */
.tagmod-flat {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

/* Ligne meta : métier + date */
.tagmod-row-meta {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    flex-basis: 100%;
}
.tagmod-row-metier {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500; color: var(--text-secondary);
    padding: 3px 9px;
    background: var(--bg-hover);
    border-radius: 999px;
}
.tagmod-row-metier svg { opacity: .6; }
.tagmod-row-date {
    font-size: 12px; font-weight: 500; color: var(--text-muted);
}

.tagmod-group {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}
.tagmod-group-head {
    display: flex; align-items: center; gap: 10px;
    padding: 14px 18px;
    background: var(--bg-hover);
    border-bottom: 1px solid var(--border-color);
}
.tagmod-group-name {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    letter-spacing: -0.01em;
}
.tagmod-group-count {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 22px; height: 22px; padding: 0 7px;
    font-size: 12px; font-weight: 600;
    color: var(--text-secondary); background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
}
.tagmod-group-body {
    display: flex;
    flex-direction: column;
}

.tagmod-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 16px;
    padding: 14px 18px;
    border-top: 1px solid var(--border-color);
}
.tagmod-row:first-child { border-top: none; }
.tagmod-row-main {
    display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0;
}
.tagmod-row-name {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
}
.tagmod-row-en {
    font-size: 12px; font-weight: 500; color: var(--text-muted); font-style: italic;
}
.tagmod-row-usage {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    padding: 3px 9px;
    background: var(--bg-hover);
    border-radius: 999px;
}
.tagmod-row-usage svg { opacity: 0.75; }

.tagmod-row-actions {
    display: flex; align-items: center; gap: 8px; flex-shrink: 0; flex-wrap: wrap;
    justify-content: flex-end;
}
.tagmod-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 8px 12px;
    font-size: 13px; font-weight: 600;
    border-radius: var(--radius-md);
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--text-secondary);
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s;
    white-space: nowrap;
}
.tagmod-btn:hover { background: var(--bg-hover); }
.tagmod-btn svg { flex-shrink: 0; }

.tagmod-btn-valid { color: #047857; border-color: #a7f3d0; background: #ecfdf5; }
.tagmod-btn-valid:hover { background: #d1fae5; border-color: #6ee7b7; }
[data-theme="dark"] .tagmod-btn-valid {
    color: #6ee7b7; background: rgba(16, 185, 129, 0.10); border-color: rgba(16, 185, 129, 0.30);
}
[data-theme="dark"] .tagmod-btn-valid:hover { background: rgba(16, 185, 129, 0.18); }

.tagmod-btn-merge { color: #6d28d9; border-color: #ddd0fb; background: #f5f0ff; }
.tagmod-btn-merge:hover { background: #ede4ff; border-color: #c4b5fd; }
[data-theme="dark"] .tagmod-btn-merge {
    color: #c4b5fd; background: rgba(139, 92, 246, 0.10); border-color: rgba(139, 92, 246, 0.30);
}
[data-theme="dark"] .tagmod-btn-merge:hover { background: rgba(139, 92, 246, 0.18); }

.tagmod-btn-del { color: #b91c1c; border-color: #fecaca; background: #fef2f2; }
.tagmod-btn-del:hover { background: #fee2e2; border-color: #fca5a5; }
[data-theme="dark"] .tagmod-btn-del {
    color: #fca5a5; background: rgba(239, 68, 68, 0.10); border-color: rgba(239, 68, 68, 0.30);
}
[data-theme="dark"] .tagmod-btn-del:hover { background: rgba(239, 68, 68, 0.18); }

.tagmod-btn-cancel { color: var(--text-muted); }

/* Fusion inline */
.tagmod-merge-box {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    justify-content: flex-end;
}
.tagmod-merge-select {
    padding: 8px 12px;
    font-size: 13px;
    min-width: 220px;
    max-width: 320px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-md);
    background: var(--bg-input);
    color: var(--text-primary);
    cursor: pointer;
}
.tagmod-merge-select:focus { outline: none; border-color: var(--primary); }
.tagmod-merge-loading, .tagmod-merge-empty {
    font-size: 12px; color: var(--text-muted); font-style: italic;
}

@media (max-width: 640px) {
    .tagmod-header { flex-direction: column; }
    .tagmod-row { flex-direction: column; align-items: stretch; }
    .tagmod-row-actions { justify-content: flex-start; }
    .tagmod-merge-box { justify-content: flex-start; }
    .tagmod-merge-select { min-width: 0; flex: 1; }
}

/* ════════════ MÉTIERS & PRESTATIONS (gestion de la taxonomie) ════════════ */
.taxo-toolbar {
    display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap;
    margin: 0 20px 18px;
}
.taxo-field { display: flex; flex-direction: column; gap: 6px; }
.taxo-label { font-size: 12px; font-weight: 600; color: var(--text-muted); }
.taxo-select {
    padding: 10px 14px; font-size: 14px; min-width: 260px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--bg-input); color: var(--text-primary); cursor: pointer;
}
.taxo-select:focus { outline: none; border-color: var(--accent); }
.taxo-add-btn {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 10px 16px; font-size: 13px; font-weight: 600;
    border: none; border-radius: var(--radius-md);
    background: var(--accent); color: #fff; cursor: pointer;
    transition: opacity .15s;
}
.taxo-add-btn:hover { opacity: .9; }
.taxo-add-btn:disabled { opacity: .45; cursor: not-allowed; }

.taxo-add-form {
    margin: 0 20px 18px; padding: 16px 20px;
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 14px; box-shadow: var(--shadow-sm);
    display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.taxo-add-form .taxo-input { flex: 1; min-width: 220px; }

.taxo-input {
    padding: 9px 12px; font-size: 14px;
    border: 1px solid var(--border-strong); border-radius: var(--radius-md);
    background: var(--bg-input); color: var(--text-primary);
}
.taxo-input:focus { outline: none; border-color: var(--accent); }

.taxo-check {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; color: var(--text-secondary); cursor: pointer; user-select: none;
}
.taxo-check input { width: 16px; height: 16px; accent-color: var(--accent); cursor: pointer; }

.taxo-list { padding: 0 20px 40px; display: flex; flex-direction: column; gap: 12px; }

.taxo-metier {
    background: var(--bg-card); border: 1px solid var(--border-color);
    border-radius: 12px; overflow: hidden; box-shadow: var(--shadow-sm);
}
.taxo-metier-head {
    display: flex; align-items: center; gap: 12px;
    padding: 13px 16px; cursor: pointer; transition: background .15s;
}
.taxo-metier-head:hover { background: var(--bg-hover); }
.taxo-chevron { display: inline-flex; color: var(--text-muted); transition: transform .18s; flex-shrink: 0; }
.taxo-metier.open .taxo-chevron { transform: rotate(90deg); }
.taxo-metier-name {
    font-size: 14px; font-weight: 600; color: var(--text-primary);
    display: inline-flex; align-items: center; gap: 8px; flex: 1; min-width: 0; flex-wrap: wrap;
}
.taxo-reg-badge {
    display: inline-flex; align-items: center; justify-content: center;
    width: 18px; height: 18px; font-size: 11px; font-weight: 700;
    color: #b45309; background: #fef3c7; border: 1px solid #fde68a; border-radius: 50%;
}
[data-theme="dark"] .taxo-reg-badge { color: #fcd34d; background: rgba(245,158,11,.14); border-color: rgba(245,158,11,.32); }
.taxo-metier-count {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 12px; font-weight: 500; color: var(--text-muted);
    padding: 3px 9px; background: var(--bg-hover); border-radius: 999px; flex-shrink: 0;
}
.taxo-metier-count svg { opacity: .75; }
.taxo-metier-actions { display: inline-flex; align-items: center; gap: 7px; flex-shrink: 0; flex-wrap: wrap; }

.taxo-btn {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 7px 11px; font-size: 12.5px; font-weight: 600;
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
    background: var(--bg-card); color: var(--text-secondary);
    cursor: pointer; white-space: nowrap;
    transition: background .15s, border-color .15s, color .15s;
}
.taxo-btn:hover { background: var(--bg-hover); }
.taxo-btn svg { flex-shrink: 0; }
.taxo-btn-sm { padding: 6px 10px; font-size: 12px; }
.taxo-btn-primary { color: #fff; background: var(--accent); border-color: var(--accent); }
.taxo-btn-primary:hover { opacity: .9; background: var(--accent); }
.taxo-btn-reg.is-on { color: #b45309; background: #fffbeb; border-color: #fde68a; }
[data-theme="dark"] .taxo-btn-reg.is-on { color: #fcd34d; background: rgba(245,158,11,.12); border-color: rgba(245,158,11,.30); }
.taxo-btn-del { color: #b91c1c; }
.taxo-btn-del:hover { background: #fef2f2; border-color: #fecaca; }
[data-theme="dark"] .taxo-btn-del { color: #fca5a5; }
[data-theme="dark"] .taxo-btn-del:hover { background: rgba(239,68,68,.14); border-color: rgba(239,68,68,.30); }

.taxo-metier-body {
    border-top: 1px solid var(--border-color);
    background: var(--bg-hover); padding: 14px 16px 16px;
}
.taxo-tags-loading { padding: 14px; text-align: center; }
.taxo-empty-tags { font-size: 13px; color: var(--text-muted); font-style: italic; padding: 4px 2px 12px; }
.taxo-tags-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.taxo-tag-row {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 9px 12px; background: var(--bg-card);
    border: 1px solid var(--border-color); border-radius: var(--radius-md);
}
.taxo-tag-name {
    font-size: 13px; font-weight: 500; color: var(--text-primary);
    display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0;
}
.taxo-tag-pill {
    font-size: 11px; font-weight: 600; color: #6d28d9;
    background: #f3effe; border: 1px solid #ddd0fb; border-radius: 999px; padding: 2px 8px;
}
[data-theme="dark"] .taxo-tag-pill { color: #c4b5fd; background: rgba(139,92,246,.14); border-color: rgba(139,92,246,.32); }
.taxo-tag-actions { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.taxo-inline-edit { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.taxo-inline-edit .taxo-input, .taxo-metier-name > .taxo-input { min-width: 160px; }

.taxo-add-tag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.taxo-add-tag .taxo-input { flex: 1; min-width: 200px; }

@media (max-width: 640px) {
    .taxo-toolbar { flex-direction: column; align-items: stretch; }
    .taxo-field { width: 100%; }
    .taxo-select { min-width: 0; width: 100%; }
    .taxo-add-btn { justify-content: center; }
    .taxo-metier-head { flex-wrap: wrap; }
    .taxo-metier-actions { width: 100%; }
    .taxo-tag-row { flex-direction: column; align-items: stretch; }
    .taxo-tag-actions { justify-content: flex-start; }
}

/* ── Fix alignement : topbar de la fiche pro = MÊME largeur que les cartes du
   corps. Le corps (.pro-detail-body) est max-width:1100px centré ; on centre la
   topbar pareil et on colle les cartes aux bords du corps pour un alignement pile. ── */
#proDetailView > .pro-detail-topbar {
  max-width: 1100px !important;
  width: auto !important;
  margin: 24px auto 28px !important;
  box-sizing: border-box;
}
#proDetailView > .pro-detail-body {
  padding-left: 0 !important;
  padding-right: 0 !important;
}
#proDetailView > .pro-detail-body > .profile-section,
#proDetailView > .pro-detail-body > .profile-header {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* ══════════════════════════════════════════════════════════════════
   Barre de filtres Professionnels — 2 lignes + contrôles uniformes
   Ligne 1 : recherche (extensible) + Exporter CSV + Ajouter un pro
   Ligne 2 : 4 filtres de LARGEUR ÉGALE, même hauteur que tout le reste.
   ══════════════════════════════════════════════════════════════════ */
#professionnelsView .filters-bar {
  display: flex !important;
  flex-direction: column !important;
  gap: 12px !important;
}
#professionnelsView .filters-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
}
/* Ligne 1 : la recherche prend la place, les boutons restent à leur taille */
#professionnelsView .filters-row-main .search-box { flex: 1 1 280px; min-width: 220px; margin: 0; }
#professionnelsView .filters-row-main .btn-export-csv,
#professionnelsView .filters-row-main .btn-add-pro { flex: 0 0 auto; }
/* Ligne 2 : les 4 filtres se partagent la largeur également */
#professionnelsView .filters-row-selects > .ss-wrap,
#professionnelsView .filters-row-selects > select {
  flex: 1 1 0 !important;
  min-width: 150px !important;
}

/* — Hauteur UNIFORME (42px) sur tous les contrôles de la barre — */
#professionnelsView .filters-bar .search-box input#searchInput,
#professionnelsView .filters-bar select,
#professionnelsView .filters-bar .ss-trigger,
#professionnelsView .filters-bar .btn-export-csv,
#professionnelsView .filters-bar .btn-add-pro {
  height: 42px !important;
  box-sizing: border-box !important;
  border-radius: 10px !important;
}
/* Selects natifs + searchable : même padding / bordure / typo */
#professionnelsView .filters-bar select,
#professionnelsView .filters-bar .ss-trigger {
  padding: 0 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  border-width: 1px !important;
}
/* Le searchable-select doit remplir toute la largeur de sa colonne */
#professionnelsView .filters-bar .ss-wrap { width: 100%; display: flex; }

/* ── Modération prestations : pros cliquables (au lieu du compteur) ── */
.tagmod-row-pros { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tagmod-pro-chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid var(--border-color, #e5e7eb);
  background: var(--bg-card, #fff);
  color: var(--text-primary, #18181b);
  font-size: 12px; font-weight: 500; font-family: inherit;
  cursor: pointer; transition: all .15s;
}
.tagmod-pro-chip:hover { border-color: var(--accent, #7033ff); color: var(--accent, #7033ff); }
.tagmod-pro-chip svg { opacity: .6; }
.tagmod-row-empty { font-size: 12px; color: var(--text-muted, #9ca3af); }

/* ── Fiche admin : prestations en chips (au lieu d'une liste à virgules) ── */
.profile-row.profile-row-tags { display: block !important; }
.profile-row-tags > strong { display: block; margin-bottom: 8px; }
.admin-presta-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.admin-presta-chip {
  display: inline-flex; align-items: center; gap: 6px;
  flex: 0 0 auto;            /* ne pas rétrécir → pas d'enroulement vertical */
  white-space: nowrap;      /* prestation sur une seule ligne */
  max-width: 100%;
  padding: 6px 12px; border-radius: 8px;
  background: rgba(112, 51, 255, 0.10);
  color: #5a22d9;
  border: 1px solid rgba(112, 51, 255, 0.22);
  font-size: 12.5px; font-weight: 600; line-height: 1.3;
}
.admin-presta-chip.is-propose {
  background: rgba(245, 158, 11, 0.10);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.40);
}
/* Badge « en attente » propre (pilule ambre) — uniforme avec l'espace pro */
.admin-presta-chip em {
  white-space: nowrap;
  display: inline-block; padding: 1px 8px; border-radius: 999px;
  background: rgba(245, 158, 11, 0.22); color: #b45309;
  font-style: normal; font-size: 9px; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.03em; opacity: 1;
}
[data-theme="dark"] .admin-presta-chip em { background: rgba(245,158,11,0.20); color: #fcd34d; }
.admin-presta-empty { color: var(--text-muted, #9ca3af); font-size: 13px; }
[data-theme="dark"] .admin-presta-chip { background: rgba(140,92,255,0.16); color: #c9b6ff; border-color: rgba(140,92,255,0.30); }
[data-theme="dark"] .admin-presta-chip.is-propose { background: rgba(245,158,11,0.16); color: #fcd34d; border-color: rgba(245,158,11,0.5); }

/* Badge « en attente » sur une prestation proposée par le pro (non encore validée) */
.cbx-item .cbx-pending {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: rgba(245, 158, 11, .14);
  color: #b45309;
  font-weight: 600;
  font-size: 0.72rem;
  font-style: normal;
  vertical-align: middle;
}

/* Carte PDF d'une pièce justificative (fiche pro admin) */
.realisation-item.piece-pdf-card { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:6px; text-decoration:none; background:#f5f3ff; border:1px solid #e5ddff; color:#7033ff; font-weight:600; font-size:12.5px; cursor:pointer; }
.realisation-item.piece-pdf-card:hover { background:#ece5ff; }
[data-theme="dark"] .realisation-item.piece-pdf-card { background:#2a2440; border-color:#3a3358; color:#b9a3ff; }

/* Formulaire inline de validation d'une prestation proposée (FR + EN obligatoires) */
.tagmod-valid-box {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
    width: 100%;
}
.tagmod-valid-input {
    flex: 1 1 130px; min-width: 110px;
    height: 34px; padding: 0 10px;
    font-size: 13px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    outline: none;
}
.tagmod-valid-input:focus { border-color: var(--accent, #7033ff); }
.tagmod-valid-input::placeholder { color: var(--text-muted); }

/* Sélecteur du métier des prestations libres (modif pro) */
#editFreeTagMetier {
  padding: 7px 9px; border: 1px solid var(--border-color); border-radius: 8px;
  background: var(--bg-input); color: var(--text); font-size: 0.82rem; max-width: 45%;
}
.edit-freetag-chip .freetag-metier { color: var(--accent); font-style: normal; font-size: 0.85em; opacity: .85; margin: 0 2px; }

/* Description du pro dans le détail admin */
.profile-desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--text, #1a1d27);
  white-space: pre-wrap;
  word-break: break-word;
}
