:root {
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-400: #9CA3AF;
  --gray-500: #6B7280;
  --gray-600: #4B5563;
  --gray-700: #374151;
  --gray-800: #1F2937;
  --gray-900: #111827;
  --accent: #4F46E5;
  --accent-light: #EEF2FF;
  --accent-dark: #4338CA;
  --accent-gradient: linear-gradient(135deg, #4F46E5, #7C3AED);
  --brand: #4F46E5;
  --brand-light: #EEF2FF;
  --brand-dark: #4338CA;
  --success: #10B981;
  --success-light: #ECFDF5;
  --warning: #F59E0B;
  --warning-light: #FFFBEB;
  --error: #EF4444;
  --error-light: #FEF2F2;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 4px 24px rgba(0,0,0,0.06);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.08);
  --card-bg: #FFFFFF;
  --body-bg: #F0F2F5;
  --sidebar-bg: #FFFFFF;
  --sidebar-border: var(--gray-100);
  --sidebar-text: var(--gray-500);
  --sidebar-active-bg: var(--accent);
  --sidebar-active-text: #FFFFFF;
  --input-bg: var(--gray-50);
  --nav-bg: rgba(240,242,245,0.85);
}

/* ─── DARK MODE ─── */
[data-theme="dark"] {
  --white: #0F1117;
  --gray-50: #161822;
  --gray-100: #1E2130;
  --gray-200: #2A2D3E;
  --gray-300: #3B3F54;
  --gray-400: #6B7194;
  --gray-500: #9398B0;
  --gray-600: #B0B5C9;
  --gray-700: #CDD1E0;
  --gray-800: #E2E5F0;
  --gray-900: #F1F3F9;
  --accent: #818CF8;
  --accent-light: #1E1B4B;
  --accent-dark: #A5B4FC;
  --accent-gradient: linear-gradient(135deg, #818CF8, #A78BFA);
  --brand: #818CF8;
  --brand-light: #1E1B4B;
  --brand-dark: #A5B4FC;
  --success: #34D399;
  --success-light: #064E3B;
  --warning: #FBBF24;
  --warning-light: #451A03;
  --error: #F87171;
  --error-light: #450A0A;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.2);
  --shadow: 0 4px 24px rgba(0,0,0,0.25);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.35);
  --card-bg: #161822;
  --body-bg: #0F1117;
  --sidebar-bg: #0F1117;
  --sidebar-border: #1E2130;
  --sidebar-text: #9398B0;
  --sidebar-active-bg: #818CF8;
  --sidebar-active-text: #FFFFFF;
  --input-bg: #1E2130;
  --nav-bg: rgba(15,17,23,0.85);
}

/* ─── DARK MODE : override hardcoded light backgrounds ─── */
[data-theme="dark"] .modal { background: var(--card-bg) !important; color: var(--gray-900); }
[data-theme="dark"] .modal-overlay { background: rgba(0,0,0,0.6); }
[data-theme="dark"] [style*="background:#EFF6FF"],
[data-theme="dark"] [style*="background:#F0FDF4"],
[data-theme="dark"] [style*="background:#FFFBEB"],
[data-theme="dark"] [style*="background:#FEF3C7"],
[data-theme="dark"] [style*="background:#FEF2F2"],
[data-theme="dark"] [style*="background:#EDE9FE"],
[data-theme="dark"] [style*="background:#FFF7ED"],
[data-theme="dark"] [style*="background:#DCFCE7"],
[data-theme="dark"] [style*="background: #EFF6FF"],
[data-theme="dark"] [style*="background: #F0FDF4"],
[data-theme="dark"] [style*="background: white"],
[data-theme="dark"] [style*="background:white"] {
  background: var(--gray-100) !important;
}
[data-theme="dark"] [style*="border:1px solid #FDE68A"],
[data-theme="dark"] [style*="border:1.5px solid #BFDBFE"],
[data-theme="dark"] [style*="border:1.5px solid #BBF7D0"],
[data-theme="dark"] [style*="border:1px solid #BBF7D0"],
[data-theme="dark"] [style*="border:1.5px solid #FECACA"],
[data-theme="dark"] [style*="border:1px solid #FECACA"],
[data-theme="dark"] [style*="border:1px solid #DDD6FE"] {
  border-color: var(--gray-200) !important;
}
[data-theme="dark"] [style*="color:#166534"] { color: var(--success) !important; }
[data-theme="dark"] [style*="color:#92400E"] { color: var(--warning) !important; }
[data-theme="dark"] [style*="color:#991B1B"] { color: var(--error) !important; }
[data-theme="dark"] [style*="color:#6D28D9"] { color: #A78BFA !important; }
[data-theme="dark"] [style*="color:#2563EB"] { color: #93C5FD !important; }
[data-theme="dark"] [style*="color:#059669"] { color: var(--success) !important; }
[data-theme="dark"] [style*="color:#1D4ED8"] { color: #93C5FD !important; }
[data-theme="dark"] [style*="color:#B45309"] { color: var(--warning) !important; }
[data-theme="dark"] .btn-white { background: var(--card-bg) !important; color: var(--gray-900) !important; }
[data-theme="dark"] .chip-paid { background: #064E3B !important; color: #34D399 !important; }
[data-theme="dark"] .chip-pending { background: #451A03 !important; color: #FBBF24 !important; }
[data-theme="dark"] .tm-chip-en-ligne { background: #1E3A5F !important; color: #93C5FD !important; }
[data-theme="dark"] .tm-chip-en-cours { background: #451A03 !important; color: #FBBF24 !important; }
[data-theme="dark"] .tm-chip-terminee { background: #064E3B !important; color: #34D399 !important; }
[data-theme="dark"] .tm-chip-acceptee { background: #1E1B4B !important; color: #A5B4FC !important; }
[data-theme="dark"] .tm-chip-annulee { background: #450A0A !important; color: #F87171 !important; }
[data-theme="dark"] .doc-ok { background: #064E3B !important; color: #34D399 !important; }
[data-theme="dark"] .doc-pending { background: #451A03 !important; color: #FBBF24 !important; }
[data-theme="dark"] .statut-actif { background: #064E3B !important; color: #34D399 !important; }
[data-theme="dark"] .statut-pending,
[data-theme="dark"] .statut-restreint { background: #451A03 !important; color: #FBBF24 !important; }
[data-theme="dark"] .prime-badge { background: #451A03 !important; color: #FBBF24 !important; border-color: #78350F !important; }
[data-theme="dark"] .avert-badge { background: #451A03 !important; border-color: #78350F !important; }
[data-theme="dark"] .adm-km-display { background: var(--gray-100) !important; border-color: var(--gray-200) !important; }
[data-theme="dark"] .adm-prix-section { background: var(--gray-100) !important; border-color: var(--gray-200) !important; }
[data-theme="dark"] .admin-mission-card { background: var(--card-bg) !important; }
[data-theme="dark"] .admin-mission-card:hover { background: var(--gray-100) !important; }
[data-theme="dark"] .h-row.h-new { background: #064E3B !important; }
[data-theme="dark"] .doc-check-item[data-ok="1"] { background: #064E3B !important; color: #34D399 !important; border-color: #065F46 !important; }
[data-theme="dark"] .doc-check-item.doc-check-pending { background: #451A03 !important; color: #FBBF24 !important; border-color: #78350F !important; }
[data-theme="dark"] .p-badge-yellow { background: #451A03 !important; color: #FBBF24 !important; }
[data-theme="dark"] .form-input,
[data-theme="dark"] .form-select,
[data-theme="dark"] select,
[data-theme="dark"] textarea { background: var(--input-bg) !important; color: var(--gray-900) !important; border-color: var(--gray-200) !important; }
[data-theme="dark"] .dash-tab { color: var(--gray-500) !important; }
[data-theme="dark"] .dash-tab.active { color: var(--accent) !important; border-color: var(--accent) !important; }
[data-theme="dark"] .stat-card { background: var(--card-bg) !important; border-color: var(--gray-200) !important; }
[data-theme="dark"] .faq-q { background: var(--card-bg) !important; color: var(--gray-900) !important; }
[data-theme="dark"] .faq-a { background: var(--gray-100) !important; color: var(--gray-600) !important; }
[data-theme="dark"] .rbar-fill { background: #92400E !important; }
[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder { color: var(--gray-400) !important; }
[data-theme="dark"] .review-text { color: var(--gray-600) !important; }
[data-theme="dark"] .pay-card-val { color: var(--gray-900) !important; }
[data-theme="dark"] .pay-amount-pos { color: var(--success) !important; }

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--gray-600); background: var(--body-bg); font-size: 15px; line-height: 1.7; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; letter-spacing: -0.01em; transition: background 0.3s, color 0.3s; }

/* ─── UTILS ─── */
.hidden { display: none !important; }
.bulk-step-active { display: block !important; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 24px; }

/* --- FOCUS STATES (Accessibility) --- */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.btn:focus-visible, .nav-link:focus-visible, .dash-tab:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(79,70,229,0.15);
}
.form-input:focus-visible, .form-select:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(79,70,229,0.12);
}

/* --- REDUCED MOTION (Accessibility) --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* --- TABLET BREAKPOINT --- */
@media (max-width: 768px) {
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 24px; }
  .cta-banner h2 { font-size: 22px; }
  .kpi { padding: 14px; }
  .kpi-value { font-size: 22px; }
  .profile-grid { grid-template-columns: 1fr; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}


/* ─── NAVIGATION ─── */
.navbar {
  position: sticky; top: 0; z-index: 200;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--gray-100);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  transition: background 0.3s;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  height: 64px; display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  cursor: pointer; display: flex; align-items: center; color: var(--gray-900);
}
.nav-logo svg { height: 36px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
  padding: 7px 14px; border-radius: 8px;
  color: var(--gray-500); font-size: 13.5px; font-weight: 500;
  cursor: pointer; border: none; background: none; transition: all 0.2s;
  font-family: 'Plus Jakarta Sans', sans-serif;
}
.nav-link:hover { color: var(--gray-900); background: var(--gray-100); }
.nav-btn {
  padding: 8px 18px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
  border: none; font-family: 'Plus Jakarta Sans', sans-serif; transition: all 0.2s;
}
.nav-btn-outline {
  background: var(--gray-100); border: none; color: var(--gray-700);
}
.nav-btn-outline:hover { background: var(--gray-200); }
.nav-btn-primary { background: var(--accent); color: white; border-radius: 8px; }
.nav-btn-primary:hover { background: var(--accent-dark); box-shadow: 0 4px 12px rgba(79,70,229,0.3); }

/* Dark mode toggle */
.theme-toggle {
  width: 40px; height: 40px; border-radius: 50%; border: none;
  background: var(--accent); color: white;
  cursor: pointer; font-size: 19px; display: flex; align-items: center; justify-content: center;
  transition: all 0.3s; flex-shrink: 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
  box-shadow: 0 2px 10px rgba(79,70,229,0.3);
}
.theme-toggle:hover { background: var(--accent-dark); box-shadow: 0 4px 16px rgba(79,70,229,0.4); transform: scale(1.1); }

/* ─── NOTIFICATIONS ─── */
.notif-bell { position:relative; width:40px; height:40px; border-radius:50%; border:none; background:var(--gray-100); color:var(--gray-600); cursor:pointer; font-size:18px; display:none; align-items:center; justify-content:center; transition:all 0.3s; flex-shrink:0; }
.notif-bell:hover { background:var(--gray-200); color:var(--gray-900); }
.notif-bell .notif-count { position:absolute; top:-2px; right:-2px; background:var(--error); color:white; font-size:10px; font-weight:800; min-width:18px; height:18px; border-radius:100px; display:flex; align-items:center; justify-content:center; padding:0 4px; border:2px solid var(--nav-bg); }
.notif-bell .notif-count:empty, .notif-bell .notif-count[data-count="0"] { display:none; }
.notif-panel { position:fixed; top:60px; right:16px; width:380px; max-height:500px; background:var(--card-bg); border:1px solid var(--gray-200); border-radius:14px; box-shadow:0 12px 40px rgba(0,0,0,0.15); z-index:3000; display:none; overflow:hidden; }
.notif-panel.open { display:block; animation:fadeInUp 0.2s ease-out; }
.notif-panel-header { padding:16px 18px; border-bottom:1px solid var(--gray-100); display:flex; align-items:center; justify-content:space-between; }
.notif-panel-header h3 { font-size:15px; font-weight:700; color:var(--gray-900); margin:0; }
.notif-panel-list { max-height:400px; overflow-y:auto; }
.notif-item { padding:14px 18px; border-bottom:1px solid var(--gray-50); cursor:pointer; transition:background 0.15s; display:flex; gap:12px; align-items:flex-start; }
.notif-item:hover { background:var(--gray-50); }
.notif-item.unread { background:var(--accent-light); }
.notif-item .notif-icon { width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; flex-shrink:0; }
.notif-item .notif-body { flex:1; min-width:0; }
.notif-item .notif-title { font-size:13px; font-weight:600; color:var(--gray-900); line-height:1.4; }
.notif-item .notif-desc { font-size:12px; color:var(--gray-500); margin-top:2px; line-height:1.4; }
.notif-item .notif-time { font-size:11px; color:var(--gray-400); margin-top:4px; }
.notif-empty { padding:40px 20px; text-align:center; color:var(--gray-400); font-size:13px; }
@media(max-width:500px){ .notif-panel { right:8px; left:8px; width:auto; } }

/* ─── PAGES ─── */
.page { display: none; }
.page.active { display: block; animation: fadeInPage 0.35s ease-out; }

/* ─── ANIMATIONS ─── */
@keyframes fadeInPage { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes fadeInScale { from { opacity: 0; transform: scale(0.95); } to { opacity: 1; transform: scale(1); } }
@keyframes slideInRight { from { opacity: 0; transform: translateX(20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { 0% { background-position: -200px 0; } 100% { background-position: calc(200px + 100%) 0; } }

/* ── Modal open/close animations ── */
@keyframes fadeOutScale { from { opacity: 1; transform: scale(1); } to { opacity: 0; transform: scale(0.94); } }
@keyframes fadeOutOverlay { from { opacity: 1; } to { opacity: 0; } }
.modal-overlay:not(.hidden):not(.closing) .modal { animation: fadeInScale 0.25s ease-out; }
.modal-overlay.closing { animation: fadeOutOverlay 0.2s ease-in forwards; pointer-events: none; }
.modal-overlay.closing .modal { animation: fadeOutScale 0.2s ease-in forwards; }
.dash-panel.active { animation: fadeInUp 0.3s ease-out; }
.admin-panel.active { animation: fadeInUp 0.3s ease-out; }

/* ── Skip-to-main accessibility link ── */
.skip-link { position:absolute; top:-100px; left:16px; background:var(--accent); color:#fff; padding:8px 16px; border-radius:0 0 8px 8px; font-size:14px; font-weight:600; z-index:9999; text-decoration:none; transition:top 0.2s; }
.skip-link:focus { top:0; }

/* ── ARIA live region ── */
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

/* ── Dashboard panel responsive improvements ── */
@media (max-width: 900px) {
  .dash-main { padding: 20px 16px; }
  .dash-kpis { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dash-top { flex-direction: column; gap: 12px; align-items: flex-start; }
  .dash-top .btn { width: 100%; justify-content: center; }
}
@media (max-width: 600px) {
  .dash-main { padding: 16px 12px; }
  .dash-kpis { grid-template-columns: 1fr 1fr; gap: 8px; }
  .kpi { padding: 14px 16px; }
  .kpi-value { font-size: 22px; }
  #epanel-analytics svg { max-width: 100%; height: auto; }
}

/* ── Sidebar active item accessible indicator ── */
.sidebar-item.active { position: relative; }
.sidebar-item[aria-current="page"]::before { content: ''; position: absolute; left: -12px; top: 50%; transform: translateY(-50%); width: 3px; height: 60%; background: white; border-radius: 0 2px 2px 0; }
.admin-item[aria-current="page"] { font-weight: 700; }

/* ── Focus ring improvements for dark mode ── */
[data-theme="dark"] :focus-visible { outline-color: var(--accent-dark); }
[data-theme="dark"] .btn:focus-visible, [data-theme="dark"] .nav-link:focus-visible { box-shadow: 0 0 0 4px rgba(129,140,248,0.25); }

/* opacity handled by fadeInPage animation keyframes */

/* ── Mobile sidebar close button ── */
.sidebar-close-btn { display:none; position:absolute; top:16px; right:16px; background:var(--gray-100); border:none; border-radius:50%; width:32px; height:32px; font-size:18px; cursor:pointer; color:var(--gray-700); align-items:center; justify-content:center; z-index:10; }
@media (max-width: 900px) { .sidebar-close-btn { display:flex; } }

/* ── Analytics responsive ── */
@media (max-width: 700px) {
  #epanel-analytics [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  #epanel-analytics [style*="display:grid"] { grid-template-columns: 1fr !important; }
}

/* ── Admin main responsive ── */
@media (max-width: 900px) {
  .admin-main { padding: 20px 16px; }
}
@media (max-width: 600px) {
  .admin-main { padding: 16px 12px; }
  .admin-stats { grid-template-columns: 1fr !important; }
}

/* ── Focus trap: highlight currently focused modal ── */
.modal-overlay:not(.hidden):not(.closing) { outline: none; }
.modal:focus-within { box-shadow: 0 24px 80px rgba(0,0,0,0.18), 0 0 0 3px rgba(79,70,229,0.15); }

/* ── Dark mode for new review and analytics components ── */
[data-theme="dark"] .review-card { background: var(--card-bg) !important; border-color: var(--gray-200) !important; }
[data-theme="dark"] #apanel-avis .dash-tab { background: var(--card-bg) !important; color: var(--gray-700) !important; }
[data-theme="dark"] #apanel-avis .dash-tab.active,
[data-theme="dark"] #apanel-avis .dash-tab[style*="background:var(--accent)"] { background: var(--accent) !important; color: #fff !important; }
[data-theme="dark"] [style*="background:#F9FAFB"] { background: var(--gray-50) !important; }
[data-theme="dark"] [style*="background:#F3F4F6"] { background: var(--gray-100) !important; }
[data-theme="dark"] [style*="color:#111827"],
[data-theme="dark"] [style*="color: #111827"] { color: var(--gray-900) !important; }
[data-theme="dark"] [style*="color:#374151"],
[data-theme="dark"] [style*="color: #374151"] { color: var(--gray-700) !important; }
[data-theme="dark"] [style*="color:#6B7280"],
[data-theme="dark"] [style*="color: #6B7280"] { color: var(--gray-500) !important; }
[data-theme="dark"] [style*="border:1px solid #E5E7EB"],
[data-theme="dark"] [style*="border: 1px solid #E5E7EB"],
[data-theme="dark"] [style*="border:1.5px solid #E5E7EB"] { border-color: var(--gray-200) !important; }
[data-theme="dark"] [style*="border-bottom:1px solid #E5E7EB"],
[data-theme="dark"] [style*="border-bottom: 1px solid #E5E7EB"] { border-bottom-color: var(--gray-200) !important; }
[data-theme="dark"] [style*="border-top:1px solid #E5E7EB"],
[data-theme="dark"] [style*="border-top: 1px solid #E5E7EB"] { border-top-color: var(--gray-200) !important; }
.annonce-card { animation: fadeInUp 0.3s ease-out; animation-fill-mode: both; }
.dossier-card { animation: slideInRight 0.3s ease-out; animation-fill-mode: both; }

/* Micro-interactions boutons */
.btn:active, .form-submit:active, .nav-btn:active { transform: scale(0.97); }
.btn:hover { transform: translateY(-1px); }
.form-submit:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.sidebar-item { transition: all 0.2s ease; }
.sidebar-item:hover { transform: translateX(4px); }
.admin-item { transition: all 0.2s ease; }
.admin-item:hover { transform: translateX(3px); }

/* Loading spinner */
.spinner { width: 20px; height: 20px; border: 2.5px solid var(--gray-200); border-top-color: var(--accent); border-radius: 50%; animation: spin 0.6s linear infinite; display: inline-block; }
.spinner-lg { width: 36px; height: 36px; border-width: 3px; }
.btn-loading { position: relative; color: transparent !important; pointer-events: none; }
.btn-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border: 2.5px solid rgba(255,255,255,0.3); border-top-color: white; border-radius: 50%; animation: spin 0.6s linear infinite; }

/* Skeleton loading */
.skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-50) 50%, var(--gray-100) 75%); background-size: 200px 100%; animation: shimmer 1.5s infinite; border-radius: var(--radius); }
.skeleton-card { background: var(--card-bg); border: 1px solid var(--gray-200); border-radius: 16px; padding: 20px; }
.skeleton-line { height: 14px; margin-bottom: 10px; }
.skeleton-line.sm { height: 10px; width: 60%; }
.skeleton-line.lg { height: 20px; width: 40%; margin-bottom: 16px; }
.skeleton-circle { border-radius: 50%; }
.skeleton-avatar { width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0; }
.skeleton-text { height: 12px; }
.skeleton-btn { height: 36px; width: 100px; border-radius: 8px; }
[data-theme="dark"] .skeleton { background: linear-gradient(90deg, var(--gray-100) 25%, var(--gray-200) 50%, var(--gray-100) 75%); background-size: 200px 100%; }

/* Card hover effects */
.compte-row:hover { background: var(--gray-50) !important; }
.pay-card { transition: transform 0.2s, box-shadow 0.2s; }
.pay-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.stat-card { transition: transform 0.2s, box-shadow 0.2s; }
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.kpi { transition: transform 0.2s; }
.kpi:hover { transform: translateY(-2px); }

/* Success/error toast animation */
.toast-anim { animation: fadeInUp 0.3s ease-out, fadeOutDown 0.3s ease-in 2.7s forwards; }
@keyframes fadeOutDown { from { opacity: 1; transform: translateY(0); } to { opacity: 0; transform: translateY(10px); } }

/* Text typing animation */
@keyframes textReveal { from { opacity: 0; clip-path: inset(0 100% 0 0); } to { opacity: 1; clip-path: inset(0 0 0 0); } }

/* Button click ripple */
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* Scroll fade-in */
@keyframes slideInLeft { from { opacity: 0; transform: translateX(-30px); } to { opacity: 1; transform: translateX(0); } }

/* Stagger animation for lists */
.stagger-item { animation: fadeInUp 0.5s ease-out forwards; }
.stagger-item:nth-child(1) { animation-delay: 0.05s; }
.stagger-item:nth-child(2) { animation-delay: 0.1s; }
.stagger-item:nth-child(3) { animation-delay: 0.15s; }
.stagger-item:nth-child(4) { animation-delay: 0.2s; }
.stagger-item:nth-child(5) { animation-delay: 0.25s; }
.stagger-item:nth-child(n+6) { animation-delay: 0.3s; }

/* Text reveal on load */
.heading-reveal { animation: textReveal 0.8s cubic-bezier(0.77, 0, 0.175, 1); }

/* Success check animation */
@keyframes checkBounce { 0% { transform: scale(0) rotate(-45deg); opacity: 0; } 50% { transform: scale(1.2); } 100% { transform: scale(1) rotate(0); opacity: 1; } }
.check-animation { animation: checkBounce 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55); }

/* Scroll entrance */
.scroll-enter { animation: slideInLeft 0.6s ease-out; }

/* ══════════════════════════════════
   LANDING PAGE
══════════════════════════════════ */

/* HERO */
.hero {
  background:
    linear-gradient(180deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.6) 100%),
    url('images/background.png') center/cover no-repeat;
  padding: 100px 24px 80px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(79,70,229,0.15) 0%, transparent 60%);
  pointer-events: none;
}
[data-theme="dark"] .hero::before {
  background: radial-gradient(ellipse 80% 60% at 50% 20%, rgba(129,140,248,0.12) 0%, transparent 60%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.15); color: rgba(255,255,255,0.9);
  border: 1px solid rgba(255,255,255,0.2); border-radius: 100px;
  padding: 7px 16px; font-size: 11px; font-weight: 600;
  letter-spacing: 0.5px; margin-bottom: 32px; text-transform: uppercase;
  backdrop-filter: blur(8px);
}
.hero-badge-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%,100% { opacity:1; } 50% { opacity:0.4; } }
.hero h1 {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800; line-height: 1.08;
  color: white; letter-spacing: -2px;
  max-width: 720px; margin: 0 auto 24px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.hero h1 em { font-style: normal; color: #A5B4FC; }
.hero-sub {
  font-size: 17px; color: white; max-width: 480px;
  margin: 0 auto 40px; font-weight: 600; line-height: 1.7;
  text-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 10px; font-size: 14px; font-weight: 600; cursor: pointer; border: none; font-family: 'Plus Jakarta Sans', sans-serif; transition: all 0.2s; text-decoration: none; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 6px 20px rgba(79,70,229,0.3); transform: translateY(-1px); }
.btn-secondary { background: var(--gray-100); color: var(--gray-700); border: none; }
.btn-secondary:hover { background: var(--gray-200); }
.btn-lg { padding: 13px 28px; font-size: 15px; }
.btn-sm { padding: 7px 14px; font-size: 13px; }

.hero-stats {
  display: flex; justify-content: center; gap: 56px; flex-wrap: wrap;
  margin-top: 64px; padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.2);
}
.hero-stat-num { font-size: 32px; font-weight: 800; color: white; display: block; letter-spacing: -1px; }
.hero-stat-lbl { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; font-weight: 500; }

/* SECTIONS */
.section { padding: 96px 24px; position: relative; }
.section-alt { background: var(--gray-50); }
.section-alt::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 60% 50% at 0% 50%, rgba(79,70,229,0.03) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 100% 50%, rgba(124,58,237,0.03) 0%, transparent 60%);
  pointer-events: none;
}
[data-theme="dark"] .section-alt::before {
  background: radial-gradient(ellipse 60% 50% at 0% 50%, rgba(129,140,248,0.04) 0%, transparent 60%),
              radial-gradient(ellipse 60% 50% at 100% 50%, rgba(167,139,250,0.04) 0%, transparent 60%);
}
.section-center { text-align: center; }
.section-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.5px; color: var(--brand); display: block; margin-bottom: 14px; }
.section-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: var(--gray-900); line-height: 1.12; margin-bottom: 18px; letter-spacing: -1px; }
.section-title em { font-style: normal; color: var(--brand); }
.section-desc { font-size: 16px; color: var(--gray-500); max-width: 500px; margin: 0 auto; line-height: 1.7; }

/* HOW IT WORKS */
.hiw-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin-top: 56px; }
.hiw-col { background: var(--gray-50); border: none; border-radius: var(--radius-lg); padding: 36px; transition: box-shadow 0.3s; }
.hiw-col:hover { box-shadow: var(--shadow); background: var(--card-bg); }
.hiw-col-header { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--gray-200); }
.hiw-col-icon { width: 44px; height: 44px; background: var(--accent); border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.hiw-col-title { font-weight: 700; font-size: 16px; color: var(--gray-900); letter-spacing: -0.3px; }
.hiw-col-sub { font-size: 13px; color: var(--gray-400); margin-top: 2px; }
.step-item { display: flex; gap: 16px; margin-bottom: 24px; }
.step-item:last-child { margin-bottom: 0; }
.step-dot { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px; }
.step-body h4 { font-size: 14px; font-weight: 600; color: var(--gray-800); margin-bottom: 5px; }
.step-body p { font-size: 13px; color: var(--gray-500); line-height: 1.7; }

/* WHY */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 52px; }
.why-card { background: var(--gray-50); border: none; border-radius: var(--radius-lg); padding: 32px; transition: all 0.3s; text-align: center; }
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); background: var(--card-bg); }
.why-icon { width: 48px; height: 48px; background: var(--accent-light); border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin: 0 auto 18px; line-height: 1; overflow: hidden; flex-shrink: 0; }
.why-title { font-size: 15px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; letter-spacing: -0.3px; }
.why-desc { font-size: 13px; color: var(--gray-500); line-height: 1.75; }

/* FAQ */
.faq-list { max-width: 640px; margin: 48px auto 0; display: flex; flex-direction: column; gap: 8px; }
.faq-item { background: var(--gray-50); border: none; border-radius: 14px; overflow: hidden; transition: box-shadow 0.2s; }
.faq-item:hover { box-shadow: var(--shadow-sm); }
.faq-q { width: 100%; padding: 20px 24px; text-align: left; background: none; border: none; cursor: pointer; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 600; color: var(--gray-800); display: flex; justify-content: space-between; align-items: center; gap: 16px; letter-spacing: -0.2px; }
.faq-q:hover { background: var(--gray-200); }
.faq-arrow { font-size: 18px; color: var(--gray-400); transition: transform 0.3s; flex-shrink: 0; }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 24px 20px; font-size: 14px; color: var(--gray-500); line-height: 1.8; border-top: 1px solid var(--gray-200); padding-top: 16px; }
.faq-item.open .faq-a { display: block; }

/* WHO WE ARE */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; margin-top: 0; }
.about-text .section-title { margin-bottom: 16px; }
.about-text p { font-size: 15px; color: var(--gray-600); line-height: 1.8; margin-bottom: 16px; }
.about-values { display: flex; flex-direction: column; gap: 12px; margin-top: 28px; }
.about-value { display: flex; align-items: flex-start; gap: 12px; }
.about-value-icon { width: 32px; height: 32px; background: var(--accent-light); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 14px; flex-shrink: 0; margin-top: 2px; }
.about-value-title { font-size: 14px; font-weight: 600; color: var(--gray-800); }
.about-value-desc { font-size: 12px; color: var(--gray-500); margin-top: 2px; }
.about-visual { background: var(--gray-50); border-radius: 20px; height: 400px; display: flex; flex-direction: column; align-items: center; justify-content: center; border: none; gap: 16px; overflow: hidden; position: relative; }
.about-map-svg { width: 100%; height: 100%; }

/* CTA BANNER */
.cta-banner { background: var(--accent-gradient); color: white; padding: 80px 24px; text-align: center; border-radius: 0; }
.cta-banner h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(26px, 3.5vw, 40px); font-weight: 800; margin-bottom: 14px; letter-spacing: -1px; }
.cta-banner p { color: var(--gray-400); font-size: 16px; margin-bottom: 40px; }
.cta-banner-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn-white { background: white; color: var(--gray-900); }
.btn-white:hover { background: var(--gray-100); }
.btn-ghost { background: rgba(255,255,255,0.08); color: white; border: none; }
.btn-ghost:hover { background: rgba(255,255,255,0.14); }

/* FOOTER */
footer { background: var(--gray-50); border-top: 1px solid var(--gray-100); padding: 48px 24px 32px; color: var(--gray-500); }
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 48px; margin-bottom: 40px; }
.footer-brand-name { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 10px; }
.footer-brand-name span { color: var(--brand); }
.footer-brand p { font-size: 13px; line-height: 1.7; color: var(--gray-400); }
.footer-col h4 { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--gray-400); margin-bottom: 16px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col ul li { font-size: 13px; color: var(--gray-500); cursor: pointer; transition: color 0.2s; }
.footer-col ul li:hover { color: var(--gray-900); }
.footer-bottom { max-width: 1100px; margin: 0 auto; padding-top: 24px; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; }
.footer-bottom p { font-size: 12px; color: var(--gray-400); }

/* ══════════════════════════════════
   INSCRIPTION PAGES
══════════════════════════════════ */
.auth-page { min-height: calc(100vh - 64px); background: var(--gray-50); display: flex; align-items: flex-start; justify-content: center; padding: 48px 24px; }
.auth-card { background: var(--card-bg); border: none; border-radius: var(--radius-lg); padding: 44px; width: 100%; max-width: 560px; box-shadow: var(--shadow); }
.auth-back { display: flex; align-items: center; gap: 6px; color: var(--gray-400); font-size: 13px; cursor: pointer; margin-bottom: 32px; border: none; background: none; font-family: 'Plus Jakarta Sans', sans-serif; transition: color 0.2s; font-weight: 500; }
.auth-back:hover { color: var(--gray-800); }
.auth-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; letter-spacing: -0.5px; }
.auth-subtitle { font-size: 14px; color: var(--gray-500); margin-bottom: 32px; line-height: 1.65; }
.form-group { margin-bottom: 20px; }
.form-label { display: block; font-size: 13px; font-weight: 600; color: var(--gray-700); margin-bottom: 6px; }
.form-input {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--gray-200);
  border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 14px; color: var(--gray-800); background: var(--gray-50);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s; outline: none;
}
.form-input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79,70,229,0.08); background: var(--white); }
.form-input::placeholder { color: var(--gray-400); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 11px; color: var(--gray-400); margin-top: 5px; }
.form-section-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--gray-500); margin: 28px 0 16px; padding-top: 20px; border-top: 1px solid var(--gray-100); }

/* File upload */
.file-upload-area {
  border: 2px dashed var(--gray-200); border-radius: 14px;
  padding: 24px; text-align: center; cursor: pointer;
  transition: border-color 0.2s, background 0.2s; position: relative; background: var(--gray-50);
}
.file-upload-area:hover { border-color: var(--gray-400); background: var(--gray-100); }
.file-upload-area input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.file-icon { font-size: 28px; margin-bottom: 8px; }
.file-upload-label { font-size: 13px; font-weight: 600; color: var(--gray-700); display: block; margin-bottom: 4px; }
.file-upload-sub { font-size: 11px; color: var(--gray-400); }
.file-uploaded { display: flex; align-items: center; gap: 8px; background: var(--success-light); border: 1px solid #BBF7D0; border-radius: var(--radius); padding: 10px 14px; margin-top: 8px; font-size: 13px; color: var(--success); font-weight: 500; }

/* Steps indicator */
.steps-indicator { display: flex; align-items: center; margin-bottom: 32px; gap: 0; }
.step-ind { display: flex; align-items: center; gap: 8px; flex: 1; }
.step-ind-dot { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex-shrink: 0; transition: all 0.3s; }
.step-ind-dot.done { background: var(--success); color: white; }
.step-ind-dot.active { background: var(--accent); color: white; }
.step-ind-dot.idle { background: var(--gray-200); color: var(--gray-500); }
.step-ind-label { font-size: 12px; font-weight: 500; }
.step-ind-label.active { color: var(--gray-900); }
.step-ind-label.idle { color: var(--gray-400); }
.step-ind-line { flex: 1; height: 1px; background: var(--gray-200); margin: 0 8px; }
.step-ind-line.done { background: var(--success); }

/* Checkboxes & radios */
.form-check { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; cursor: pointer; }
.form-check input { margin-top: 2px; accent-color: var(--accent); width: 15px; height: 15px; flex-shrink: 0; cursor: pointer; }
.form-check-label { font-size: 13px; color: var(--gray-700); line-height: 1.5; }
.form-check-label strong { color: var(--gray-900); }

/* Alert */
.alert { border-radius: var(--radius); padding: 14px 16px; font-size: 13px; margin-bottom: 20px; display: flex; gap: 10px; align-items: flex-start; line-height: 1.6; }
.alert-info { background: var(--accent-light); color: #1E40AF; border: 1px solid #BFDBFE; }
.alert-warning { background: var(--warning-light); color: #92400E; border: 1px solid #FDE68A; }
.alert-success { background: var(--success-light); color: #166534; border: 1px solid #BBF7D0; }
.alert-icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }

/* Submit */
.form-submit { width: 100%; padding: 13px; background: var(--accent); color: white; border: none; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 15px; font-weight: 700; cursor: pointer; transition: all 0.2s; margin-top: 8px; letter-spacing: -0.2px; }
.form-submit:hover { background: var(--accent-dark); box-shadow: 0 6px 20px rgba(79,70,229,0.3); transform: translateY(-1px); }
.form-switch { text-align: center; margin-top: 20px; font-size: 13px; color: var(--gray-500); }
.form-switch a { color: var(--accent); font-weight: 600; cursor: pointer; text-decoration: none; }
.form-switch a:hover { text-decoration: underline; }

/* ══════════════════════════════════
   PENDING PAGE
══════════════════════════════════ */
.pending-page { min-height: calc(100vh - 64px); background: var(--gray-50); display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.pending-card { background: var(--card-bg); border: none; border-radius: 20px; padding: 48px 40px; width: 100%; max-width: 520px; text-align: center; box-shadow: var(--shadow); }
.pending-icon { font-size: 52px; margin-bottom: 20px; }
.pending-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 24px; font-weight: 800; color: var(--gray-900); margin-bottom: 12px; letter-spacing: -0.5px; }
.pending-text { font-size: 15px; color: var(--gray-500); line-height: 1.7; margin-bottom: 28px; }
.pending-steps { text-align: left; background: var(--gray-50); border-radius: var(--radius); padding: 20px 24px; margin-bottom: 28px; border: 1px solid var(--gray-200); }
.pending-step-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pending-step-item:last-child { margin-bottom: 0; }
.pending-step-dot { width: 22px; height: 22px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; flex-shrink: 0; margin-top: 1px; }
.p-done { background: var(--success); color: white; }
.p-active { background: var(--accent); color: white; }
.p-wait { background: var(--gray-200); color: var(--gray-500); }
.pending-step-text { font-size: 13px; color: var(--gray-600); line-height: 1.5; }
.pending-step-text strong { color: var(--gray-800); display: block; margin-bottom: 1px; }

/* ══════════════════════════════════
   DASHBOARD CONVOYEUR (validé)
══════════════════════════════════ */
.dash-layout { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - 64px); }
.dash-sidebar { background: var(--sidebar-bg); padding: 24px 0; border-right: 1px solid var(--sidebar-border); }
.sidebar-profile { padding: 0 20px 24px; border-bottom: 1px solid var(--gray-100); margin-bottom: 12px; }
.sidebar-av { width: 40px; height: 40px; border-radius: 10px; background: var(--accent); color: white; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; margin-bottom: 10px; }
.sidebar-name { font-size: 14px; font-weight: 600; color: var(--gray-900); }
.sidebar-role { font-size: 12px; color: var(--gray-400); margin-top: 2px; }
.sidebar-badge { display: inline-flex; align-items: center; gap: 4px; background: var(--success-light); color: var(--success); font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 100px; margin-top: 6px; text-transform: uppercase; letter-spacing: 0.4px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; padding: 0 12px; }
.sidebar-item { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--sidebar-text); font-size: 13px; font-weight: 500; cursor: pointer; transition: all 0.15s; border: none; background: none; font-family: 'Plus Jakarta Sans', sans-serif; width: 100%; text-align: left; }
.sidebar-item:hover { background: var(--gray-100); color: var(--gray-900); }
.sidebar-item.active { background: var(--sidebar-active-bg); color: var(--sidebar-active-text); }
.sidebar-item-icon { font-size: 16px; width: 20px; text-align: center; }
.dash-main { background: var(--gray-50); padding: 32px; overflow-y: auto; }
.dash-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 28px; }
.dash-welcome h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 22px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; }
.dash-welcome p { font-size: 14px; color: var(--gray-500); margin-top: 4px; }
.dash-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; }
.kpi { background: var(--card-bg); border: none; border-radius: 14px; padding: 20px 24px; box-shadow: var(--shadow-sm); }
.kpi-label { font-size: 11px; color: var(--gray-400); font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 8px; }
.kpi-value { font-size: 28px; font-weight: 800; color: var(--gray-900); letter-spacing: -0.5px; }
.kpi-sub { font-size: 12px; color: var(--gray-400); margin-top: 3px; }
.dash-section-title { font-size: 15px; font-weight: 700; color: var(--gray-800); margin-bottom: 16px; display: flex; align-items: center; gap: 8px; }
.dash-section-title span { font-size: 12px; background: var(--accent); color: white; border-radius: 100px; padding: 1px 8px; font-weight: 600; }
.annonce-grid { display: flex; flex-direction: column; gap: 12px; }
.annonce-card { background: var(--card-bg); border: none; border-radius: 14px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; transition: box-shadow 0.2s; box-shadow: var(--shadow-sm); }
.ac-item { padding:10px 14px; font-size:12px; color:var(--gray-800); cursor:pointer; border-bottom:1px solid var(--gray-100); line-height:1.4; }
.ac-item:last-child { border-bottom:none; }
.ac-item:hover { background:var(--accent-light); color:var(--accent-dark); }
.ac-item strong { color:var(--gray-900); }

.annonce-clickable:hover { border-color:var(--accent); box-shadow:0 4px 16px rgba(37,99,235,0.12); transform:translateY(-1px); }
.annonce-card:hover { box-shadow: var(--shadow-sm); border-color: var(--gray-300); }
.annonce-route { display: flex; align-items: center; gap: 10px; }
.annonce-city { font-size: 15px; font-weight: 600; color: var(--gray-900); }
.annonce-arrow { color: var(--gray-400); font-size: 18px; }
.annonce-meta { font-size: 12px; color: var(--gray-500); margin-top: 4px; }
.annonce-right { display: flex; align-items: center; gap: 16px; }
.annonce-price { font-size: 20px; font-weight: 700; color: var(--accent); }
.annonce-date { font-size: 12px; color: var(--gray-500); text-align: right; }
.tag { display: inline-flex; align-items: center; padding: 3px 8px; border-radius: 4px; font-size: 11px; font-weight: 600; }
.tag-new { background: #DCFCE7; color: #166534; }
.tag-urgent { background: #FEF3C7; color: #92400E; }
.tag-prem { background: var(--accent-light); color: var(--accent-dark); }

/* ══════════════════════════════════
   DASHBOARD ENTREPRISE (validée)
══════════════════════════════════ */
.dash-sidebar-ent { background: var(--sidebar-bg); border-right: 1px solid var(--sidebar-border); }
.sidebar-badge-ent { background: #EFF6FF; color: #2563EB; }
.new-mission-btn { background: var(--accent); color: white; border: none; padding: 10px 18px; border-radius: 10px; font-family: 'Plus Jakarta Sans', sans-serif; font-size: 13px; font-weight: 600; cursor: pointer; display: flex; align-items: center; gap: 6px; transition: background 0.2s; }
.new-mission-btn:hover { background: var(--accent-dark); }
.mission-form { background: var(--card-bg); border: none; border-radius: 16px; padding: 28px; margin-bottom: 28px; box-shadow: var(--shadow-sm); }
.mission-form-title { font-size: 16px; font-weight: 700; color: var(--gray-900); margin-bottom: 20px; display: flex; align-items: center; gap: 8px; }
.mission-posted { background: var(--card-bg); border: 1px solid var(--gray-200); border-radius: 12px; padding: 20px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.mission-status { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.status-badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 100px; font-size: 11px; font-weight: 600; }
.status-active { background: #DCFCE7; color: #166534; }
.status-pending-match { background: #FEF3C7; color: #92400E; }
.status-done { background: var(--gray-100); color: var(--gray-500); }

/* Modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.3); z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 24px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.modal { background: var(--card-bg); border-radius: 20px; padding: 32px; max-width: 480px; width: 100%; box-shadow: 0 24px 80px rgba(0,0,0,0.12); }
.modal-title { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; letter-spacing: -0.4px; }
.modal-sub { font-size: 14px; color: var(--gray-500); margin-bottom: 24px; }
.modal-actions { display: flex; gap: 10px; margin-top: 24px; }
.modal-info-field { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; }
.modal-info-field label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px; color: var(--gray-500); }
.modal-info-field span { font-size: 13px; color: var(--gray-900); font-weight: 500; }
.modal-action-btn { width: 100%; text-align: left; padding: 12px 14px; border: 1.5px solid; border-radius: var(--radius); background: var(--card-bg); cursor: pointer; display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; transition: all 0.2s; }

/* ── RESPONSIVE ── */
/* Hamburger menu */
.mobile-menu-btn { display:none; background:none; border:none; font-size:24px; cursor:pointer; padding:8px; color:var(--gray-700); }
.mobile-sidebar-overlay { display:none; position:fixed; inset:0; background:rgba(0,0,0,0.5); z-index:900; }
.mobile-sidebar-overlay.active { display:block; }

@media (max-width: 900px) {
  .hiw-grid { grid-template-columns: 1fr; }
  .about-grid { grid-template-columns: 1fr; }
  .about-visual { height: 220px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .dash-layout { grid-template-columns: 1fr; }
  .dash-sidebar { position:fixed; left:-280px; top:0; bottom:0; z-index:950; width:260px; transition:left 0.3s ease; box-shadow:4px 0 20px rgba(0,0,0,0.08); background:var(--sidebar-bg); }
  .dash-sidebar.mobile-open { left:0; }
  .dash-kpis { grid-template-columns: 1fr 1fr; }
  .mobile-menu-btn { display:block; }
  .admin-layout { grid-template-columns:1fr; }
  .admin-sidebar { position:fixed; left:-280px; top:0; bottom:0; z-index:950; width:260px; transition:left 0.3s ease; box-shadow:4px 0 20px rgba(0,0,0,0.08); background:var(--sidebar-bg); }
  .admin-sidebar.mobile-open { left:0; }
  .admin-stats { grid-template-columns:1fr 1fr; }
  .admin-mission-body { grid-template-columns:1fr; }
  .tarif-grid { grid-template-columns:1fr; }
  .modal { max-width:95vw; padding:20px; margin:12px; }
  .pay-summary { grid-template-columns:1fr 1fr; }
}
@media (max-width: 600px) {
  .nav-inner { padding:0 16px; height:56px; }
  .nav-links { gap:4px; }
  .nav-links .nav-link { display: none; }
  .nav-links .nav-btn-primary { display: none; }
  #nav-auth-slot { display: none; }
  .nav-logo { font-size:17px; }
  .why-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 16px; flex-wrap:wrap; }
  .hero-stats > div { font-size:13px; }
  .form-row { grid-template-columns: 1fr; }
  .dash-kpis { grid-template-columns: 1fr; }
  .annonce-card { flex-direction: column; align-items: flex-start; }
  .annonce-right { width: 100%; justify-content: space-between; }
  .footer-inner { grid-template-columns: 1fr; }
  .modal-actions { flex-direction: column; }
  .pay-summary { grid-template-columns:1fr; }
  .profile-grid { grid-template-columns:1fr; }
  .dash-tabs { overflow-x:auto; -webkit-overflow-scrolling:touch; flex-wrap:nowrap; }
  .dash-tab { white-space:nowrap; padding:10px 14px; font-size:12px; }
  .container { padding:0 16px; }
  .mission-form { padding:18px; }
  .admin-stats { grid-template-columns:1fr; }
  /* Mobile-friendly date grids */
  [style*="grid-template-columns:1fr 1fr;gap:16px"] { grid-template-columns:1fr !important; }
  .nav-btn { padding:8px 14px; font-size:13px; }
}

/* ─── DASHBOARD TABS & PANELS ─── */
.dash-tabs{display:flex;gap:4px;margin-bottom:24px;background:var(--gray-100);padding:4px;border-radius:12px;width:fit-content;}
.dash-tab{padding:8px 18px;font-size:13px;font-weight:600;color:var(--gray-500);cursor:pointer;border:none;background:none;font-family:'Plus Jakarta Sans',sans-serif;border-radius:8px;transition:all 0.15s;}
.dash-tab:hover{color:var(--gray-800);}
.dash-tab.active{color:var(--accent);background:var(--card-bg);box-shadow:var(--shadow-sm);}
.dash-panel{display:none;}.dash-panel.active{display:block;}
.hist-card{background:var(--card-bg);border:none;border-radius:14px;padding:18px 22px;margin-bottom:10px;display:grid;grid-template-columns:36px 1fr auto auto;gap:18px;align-items:center;transition:box-shadow 0.2s, transform 0.15s;box-shadow:var(--shadow-sm);}
.hist-card:hover{box-shadow:var(--shadow-sm);}
.hist-clickable{cursor:pointer;}
.hist-clickable:hover{border-color:var(--accent);box-shadow:0 3px 14px rgba(37,99,235,0.12);transform:translateX(3px);}
.hist-num{font-size:11px;font-weight:700;color:var(--gray-400);text-align:center;}
.hist-info h4{font-size:14px;font-weight:600;color:var(--gray-900);display:flex;align-items:center;gap:8px;flex-wrap:wrap;}
.hist-info p{font-size:12px;color:var(--gray-500);margin-top:3px;}
.hist-amount{font-size:15px;font-weight:700;color:var(--success);white-space:nowrap;}
.hist-amount.pending{color:var(--warning);}
.hist-rating{display:flex;flex-direction:column;align-items:flex-end;gap:3px;}
.stars{color:#FBBF24;font-size:13px;}.hist-date{font-size:11px;color:var(--gray-400);}
.pay-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:28px;}
.pay-card{background:var(--card-bg);border:none;border-radius:14px;padding:18px 20px;box-shadow:var(--shadow-sm);}
.pay-card-label{font-size:11px;font-weight:600;text-transform:uppercase;letter-spacing:0.5px;color:var(--gray-500);margin-bottom:6px;}
.pay-card-val{font-size:22px;font-weight:700;color:var(--gray-900);}
.pay-card-sub{font-size:11px;color:var(--gray-400);margin-top:3px;}
.pay-row{background:var(--card-bg);border:1px solid var(--gray-200);border-radius:var(--radius);padding:14px 20px;margin-bottom:8px;display:flex;align-items:center;justify-content:space-between;gap:12px;}
.pay-row-info{display:flex;align-items:center;gap:12px;}
.pay-icon{width:36px;height:36px;border-radius:var(--radius);display:flex;align-items:center;justify-content:center;font-size:16px;flex-shrink:0;}
.pay-icon-green{background:var(--success-light);}.pay-icon-orange{background:var(--warning-light);}
.pay-route{font-size:13px;font-weight:600;color:var(--gray-800);}
.pay-date2{font-size:11px;color:var(--gray-500);}
.pay-amount-pos{font-size:15px;font-weight:700;color:var(--success);}
.pay-amount-pend{font-size:15px;font-weight:700;color:var(--warning);}
.pay-status-chip{font-size:10px;font-weight:600;padding:3px 8px;border-radius:100px;}
.chip-paid{background:#DCFCE7;color:#166534;}.chip-pending{background:#FEF3C7;color:#92400E;}
.rating-overview{background:var(--card-bg);border:1px solid var(--gray-200);border-radius:12px;padding:24px;margin-bottom:20px;display:flex;align-items:center;gap:48px;}
.rating-big{text-align:center;}.rating-big .num{font-size:56px;font-weight:700;color:var(--gray-900);line-height:1;}
.rating-big .stars-big{font-size:20px;color:#FBBF24;margin:6px 0;}.rating-big .count{font-size:12px;color:var(--gray-500);}
.rating-bars{flex:1;display:flex;flex-direction:column;gap:8px;}
.rbar-row{display:flex;align-items:center;gap:10px;}
.rbar-lbl{font-size:12px;color:var(--gray-600);width:32px;text-align:right;flex-shrink:0;}
.rbar-track{flex:1;height:8px;background:var(--gray-100);border-radius:100px;overflow:hidden;}
.rbar-fill{height:100%;background:#FBBF24;border-radius:100px;}
.rbar-count{font-size:11px;color:var(--gray-500);width:20px;flex-shrink:0;}
.review-card{background:var(--card-bg);border:none;border-radius:14px;padding:20px 24px;margin-bottom:10px;box-shadow:var(--shadow-sm);}
.review-header{display:flex;align-items:flex-start;justify-content:space-between;margin-bottom:10px;}
.review-author{font-size:13px;font-weight:600;color:var(--gray-900);}
.review-mission{font-size:11px;color:var(--gray-500);margin-top:2px;}
.review-text{font-size:13px;color:var(--gray-600);line-height:1.7;font-style:italic;}
.profile-card{background:var(--card-bg);border:none;border-radius:16px;padding:28px;margin-bottom:16px;box-shadow:var(--shadow-sm);}
.profile-header{display:flex;align-items:center;gap:20px;margin-bottom:24px;padding-bottom:20px;border-bottom:1px solid var(--gray-100);}
.profile-av-big{width:68px;height:68px;border-radius:50%;background:var(--accent);color:white;display:flex;align-items:center;justify-content:center;font-size:26px;font-weight:700;flex-shrink:0;}
.profile-av-big-ent{border-radius:12px;background:#1D4ED8;}
.profile-name-big{font-size:20px;font-weight:700;color:var(--gray-900);}
.profile-role-big{font-size:13px;color:var(--gray-500);margin-top:4px;}
.profile-badges{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap;}
.p-badge{font-size:11px;padding:3px 10px;border-radius:100px;font-weight:600;}
.p-badge-green{background:var(--success-light);color:var(--success);}
.p-badge-blue{background:var(--accent-light);color:var(--accent-dark);}
.p-badge-yellow{background:#FFFBEB;color:#92400E;}
.profile-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;}
.profile-field label{font-size:11px;font-weight:700;text-transform:uppercase;letter-spacing:0.5px;color:var(--gray-500);display:block;margin-bottom:4px;}
.profile-field span{font-size:14px;color:var(--gray-800);font-weight:500;}
.profile-doc-list{display:flex;flex-direction:column;gap:8px;}
.profile-doc{display:flex;align-items:center;gap:10px;padding:10px 14px;background:var(--gray-50);border:1px solid var(--gray-200);border-radius:var(--radius);}
.profile-doc-icon{font-size:18px;}.profile-doc-name{font-size:13px;font-weight:500;color:var(--gray-800);flex:1;}
.profile-doc-status{font-size:11px;font-weight:600;color:var(--success);}
.conv-list-card{background:var(--card-bg);border:1px solid var(--gray-200);border-radius:12px;padding:16px 20px;margin-bottom:10px;display:flex;align-items:center;gap:16px;}
.conv-av{width:44px;height:44px;border-radius:50%;background:var(--gray-200);display:flex;align-items:center;justify-content:center;font-size:15px;font-weight:700;color:var(--gray-600);flex-shrink:0;}
.conv-details{flex:1;}
.conv-name2{font-size:14px;font-weight:600;color:var(--gray-900);}
.conv-meta2{font-size:12px;color:var(--gray-500);margin-top:2px;}
.conv-note{font-size:13px;color:#FBBF24;font-weight:600;}
.conv-actions{display:flex;gap:8px;}
.timeline{display:flex;flex-direction:column;gap:0;}
.tl-item{display:flex;gap:16px;}
.tl-left{display:flex;flex-direction:column;align-items:center;}
.tl-dot{width:28px;height:28px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:12px;flex-shrink:0;}
.tl-dot-done{background:var(--success);color:white;}
.tl-dot-curr{background:var(--accent);color:white;}
.tl-dot-wait{background:var(--gray-200);color:var(--gray-400);}
.tl-line{flex:1;width:2px;background:var(--gray-200);margin:4px 0;min-height:24px;}
.tl-line-done{background:var(--success);}
.tl-content{padding-bottom:20px;}
.tl-content h4{font-size:13px;font-weight:600;color:var(--gray-800);}
.tl-content p{font-size:12px;color:var(--gray-500);margin-top:2px;}
@media(max-width:700px){.pay-summary{grid-template-columns:1fr 1fr;}.hist-card{grid-template-columns:auto 1fr;}.hist-amount,.hist-rating{display:none;}.rating-overview{flex-direction:column;gap:20px;}.profile-grid{grid-template-columns:1fr;}}

/* ─── ADMIN LAYOUT ─── */
.admin-layout { display:grid; grid-template-columns:220px 1fr; min-height:calc(100vh - 64px); }
.admin-sidebar { background:var(--sidebar-bg); padding:24px 0; border-right:1px solid var(--sidebar-border); }
.admin-sidebar-logo { padding:0 20px 20px; border-bottom:1px solid var(--gray-100); margin-bottom:12px; font-size:13px; font-weight:700; color:var(--gray-900); letter-spacing:0.3px; }
.admin-sidebar-logo span { display:block; font-size:10px; font-weight:500; text-transform:uppercase; letter-spacing:2px; margin-top:2px; color:var(--gray-400); }
.admin-nav { display:flex; flex-direction:column; gap:2px; padding:0 12px; }
.admin-item { display:flex; align-items:center; gap:10px; padding:9px 12px; border-radius:10px; color:var(--sidebar-text); font-size:13px; font-weight:500; cursor:pointer; transition:all 0.15s; border:none; background:none; font-family:'Plus Jakarta Sans',sans-serif; width:100%; text-align:left; }
.admin-item:hover { background:var(--gray-100); color:var(--gray-900); }
.admin-item.active { background:var(--sidebar-active-bg); color:var(--sidebar-active-text); }
.admin-item .notif { background:var(--error); color:white; font-size:10px; font-weight:700; padding:1px 6px; border-radius:100px; margin-left:auto; }
/* Hide notification badges with value 0 */
.admin-item .notif:empty,
.admin-item .notif[data-count="0"] { display:none; }
.admin-main { background:var(--gray-50); padding:32px; overflow-y:auto; }
.admin-panel { display:none; }
.admin-panel.active { display:block; }
.admin-mission-card { background:var(--card-bg); border:none; border-radius:14px; padding:16px 20px; margin-bottom:8px; cursor:pointer; transition:all 0.2s; display:grid; grid-template-columns:1fr auto; gap:12px; align-items:center; box-shadow:var(--shadow-sm); }
.admin-mission-card:hover { box-shadow:0 4px 16px rgba(0,0,0,0.08); transform:translateY(-1px); }
.admin-mission-route { font-size:14px; font-weight:700; color:var(--gray-900); }
.admin-mission-meta { font-size:11px; color:var(--gray-500); margin-top:3px; display:flex; gap:8px; flex-wrap:wrap; align-items:center; }
.admin-mission-meta .meta-tag { background:var(--gray-100); padding:2px 8px; border-radius:4px; font-weight:500; }
.prime-badge { display:inline-flex; align-items:center; gap:6px; background:#FFFBEB; border:1px solid #FDE68A; color:#B45309; font-size:11px; font-weight:600; padding:3px 10px; border-radius:6px; margin-top:4px; }
.prime-badge .prime-amount { font-weight:700; font-size:12px; }
.admin-mission-body { display:grid; grid-template-columns:1fr 1fr; gap:16px; padding:16px; background:var(--gray-50); border-radius:var(--radius); margin-bottom:16px; }
.admin-field label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray-400); display:block; margin-bottom:3px; }
.tm-status-chip { font-size:11px; font-weight:600; padding:4px 12px; border-radius:100px; white-space:nowrap; }
.tm-chip-en-ligne { background:#DBEAFE; color:#1E40AF; }
.tm-chip-en-cours { background:#FEF3C7; color:#92400E; }
.tm-chip-terminee { background:#D1FAE5; color:#065F46; }
.tm-chip-acceptee { background:#E0E7FF; color:#3730A3; }
.tm-chip-annulee { background:#FEE2E2; color:#991B1B; }
.tm-right-col { display:flex; flex-direction:column; align-items:flex-end; gap:4px; }
.tm-price { font-size:16px; font-weight:700; color:var(--accent); }
.tm-conv-info { font-size:11px; color:var(--gray-500); text-align:right; }
.tm-kpi-bar { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; margin-bottom:20px; }
.tm-kpi { background:var(--card-bg); border:1px solid var(--gray-200); border-radius:10px; padding:14px 16px; text-align:center; }
.tm-kpi-val { font-size:22px; font-weight:800; color:var(--gray-900); }
.tm-kpi-label { font-size:11px; color:var(--gray-500); font-weight:500; margin-top:2px; }
.adm-km-display { background:#EFF6FF; border:1.5px solid #BFDBFE; border-radius:var(--radius); padding:14px 18px; margin:12px 0; display:flex; align-items:center; gap:12px; }
.adm-km-display .km-value { font-size:22px; font-weight:800; color:var(--accent); }
.adm-km-display .km-detail { font-size:12px; color:var(--gray-600); }
.adm-prix-section { background:#F0FDF4; border:1.5px solid #BBF7D0; border-radius:var(--radius); padding:16px 20px; margin:12px 0; }
.adm-prix-section .prix-input-row { display:flex; align-items:center; gap:12px; margin-top:8px; }
.adm-prix-section input[type="number"] { width:120px; font-size:18px; font-weight:700; text-align:center; border:2px solid var(--gray-200); border-radius:var(--radius); padding:8px; }
.adm-prix-section input[type="number"]:focus { border-color:var(--accent); outline:none; }
.admin-field span { font-size:13px; font-weight:500; color:var(--gray-800); }
.admin-tarif-block { background:var(--accent-light); border:1.5px solid #BFDBFE; border-radius:var(--radius); padding:16px 20px; margin-bottom:16px; }
.admin-tarif-title { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--accent-dark); margin-bottom:12px; }
.admin-tarif-lines { display:flex; flex-direction:column; gap:6px; }
.admin-tarif-line { display:flex; justify-content:space-between; font-size:13px; }
.admin-tarif-line span:first-child { color:var(--gray-600); }
.admin-tarif-line span:last-child { font-weight:600; color:var(--gray-800); }
.admin-tarif-total { border-top:1px solid #BFDBFE; margin-top:10px; padding-top:10px; display:flex; justify-content:space-between; align-items:center; }
.admin-tarif-total span:first-child { font-weight:700; font-size:14px; color:var(--gray-900); }
.admin-tarif-total span:last-child { font-size:22px; font-weight:700; color:var(--accent); }
.admin-montant-edit { display:flex; align-items:center; gap:10px; margin-top:10px; padding-top:10px; border-top:1px solid #BFDBFE; }
.admin-montant-input { background:var(--card-bg); border:1.5px solid #93C5FD; border-radius:var(--radius); padding:8px 12px; font-family:'Plus Jakarta Sans',sans-serif; font-size:15px; font-weight:700; color:var(--accent-dark); width:120px; text-align:center; }
.admin-actions { display:flex; gap:10px; flex-wrap:wrap; }
.btn-validate { background:var(--success); color:white; border:none; padding:10px 20px; border-radius:var(--radius); font-family:'Plus Jakarta Sans',sans-serif; font-size:13px; font-weight:700; cursor:pointer; transition:background 0.2s; display:flex; align-items:center; gap:6px; }
.btn-validate:hover { background:#15803D; }
.btn-refuse { background:var(--card-bg); color:var(--error); border:1.5px solid #FECACA; padding:10px 20px; border-radius:var(--radius); font-family:'Plus Jakarta Sans',sans-serif; font-size:13px; font-weight:600; cursor:pointer; transition:all 0.2s; }
.btn-refuse:hover { background:var(--error-light); }
.admin-compte-card { background:var(--card-bg); border:1px solid var(--gray-200); border-radius:12px; padding:18px 22px; margin-bottom:10px; display:flex; align-items:center; gap:16px; }
.admin-compte-av { width:44px; height:44px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:16px; font-weight:700; flex-shrink:0; }
.admin-compte-info { flex:1; }
.admin-compte-name { font-size:14px; font-weight:700; color:var(--gray-900); }
.admin-compte-meta { font-size:12px; color:var(--gray-500); margin-top:2px; }
.admin-compte-docs { display:flex; gap:6px; margin-top:6px; flex-wrap:wrap; }
.doc-chip { font-size:10px; font-weight:600; padding:3px 8px; border-radius:4px; }
.doc-ok { background:#DCFCE7; color:#166534; }
.doc-pending { background:#FEF3C7; color:#92400E; }
.admin-compte-actions { display:flex; gap:8px; flex-shrink:0; }
.tarif-config-card { background:var(--card-bg); border:1px solid var(--gray-200); border-radius:12px; padding:24px; margin-bottom:16px; }
.tarif-config-title { font-size:14px; font-weight:700; color:var(--gray-900); margin-bottom:20px; padding-bottom:12px; border-bottom:1px solid var(--gray-100); display:flex; align-items:center; gap:8px; }
.tarif-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:16px; }
.tarif-field { display:flex; flex-direction:column; gap:6px; }
.tarif-field label { font-size:11px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray-500); }
.tarif-input-wrap { display:flex; align-items:center; gap:8px; }
.tarif-input { background:var(--gray-50); border:1.5px solid var(--gray-200); border-radius:var(--radius); padding:10px 14px; font-family:'Plus Jakarta Sans',sans-serif; font-size:15px; font-weight:700; color:var(--gray-900); width:120px; text-align:center; transition:border-color 0.2s; }
.tarif-input:focus { border-color:var(--accent); outline:none; }
.tarif-unit { font-size:13px; color:var(--gray-500); font-weight:500; }
.admin-stats { display:grid; grid-template-columns:repeat(4,1fr); gap:16px; margin-bottom:28px; }
.stat-card { background:var(--card-bg); border:1px solid var(--gray-200); border-radius:12px; padding:20px 22px; }
.stat-card-label { font-size:11px; font-weight:600; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray-500); margin-bottom:8px; }
.stat-card-val { font-size:28px; font-weight:700; color:var(--gray-900); }
.stat-card-sub { font-size:12px; color:var(--gray-400); margin-top:4px; }
.stat-card-trend { font-size:12px; font-weight:600; margin-top:6px; }
.trend-up { color:var(--success); }
.avert-cell { display:flex; flex-direction:column; gap:6px; }
.avert-badge { display:flex; align-items:flex-start; gap:8px; padding:7px 10px; background:#FFFBEB; border:1px solid #FDE68A; border-radius:var(--radius); }
.avert-icon { font-size:14px; flex-shrink:0; margin-top:1px; }
.btn-avert { padding:4px 10px; background:var(--card-bg); color:var(--warning); border:1.5px solid #FDE68A; border-radius:4px; font-family:'Plus Jakarta Sans',sans-serif; font-size:10px; font-weight:700; cursor:pointer; transition:all 0.15s; width:fit-content; }
.btn-avert:hover { background:#FEF3C7; }
.avert-item { padding:10px 14px; background:var(--gray-50); border:1px solid var(--gray-200); border-left:3px solid var(--warning); border-radius:var(--radius); }
.avert-item-date { font-size:10px; font-weight:700; color:var(--warning); text-transform:uppercase; letter-spacing:0.5px; }
.avert-item-raison { font-size:13px; font-weight:600; color:var(--gray-900); margin-top:3px; }
.avert-item-note { font-size:12px; color:var(--gray-600); margin-top:3px; }
.rib-copy-row { display:flex; align-items:center; gap:10px; padding:8px 12px; background:var(--gray-50); border:1px solid var(--gray-200); border-radius:var(--radius); }
.rib-copy-label { font-size:11px; font-weight:700; color:var(--gray-500); text-transform:uppercase; letter-spacing:0.5px; width:52px; flex-shrink:0; }
.rib-copy-val { flex:1; font-size:13px; font-family:monospace; color:var(--gray-800); font-weight:500; }
.rib-copy-btn { padding:4px 10px; background:var(--card-bg); border:1px solid var(--gray-300); border-radius:4px; font-size:11px; font-weight:600; cursor:pointer; color:var(--gray-600); font-family:'Plus Jakarta Sans',sans-serif; transition:all 0.15s; flex-shrink:0; }
.rib-copy-btn:hover { background:var(--accent); color:white; border-color:var(--accent); }
.rib-copy-btn.copied { background:var(--success); color:white; border-color:var(--success); }
.btn-voir-rib { padding:8px 16px; background:var(--card-bg); color:var(--accent); border:1.5px solid #BFDBFE; border-radius:var(--radius); font-family:'Plus Jakarta Sans',sans-serif; font-size:12px; font-weight:700; cursor:pointer; transition:all 0.2s; white-space:nowrap; }
.btn-voir-rib:hover { background:var(--accent-light); }
.h-separateur { display:flex; justify-content:space-between; align-items:center; padding:10px 20px; background:var(--gray-50); border-top:1px solid var(--gray-200); border-bottom:1px solid var(--gray-200); font-size:12px; font-weight:700; color:var(--gray-600); text-transform:uppercase; letter-spacing:0.5px; }
.h-separateur span:last-child { color:var(--success); font-size:14px; }
.h-row { display:grid; grid-template-columns:1.8fr 1.2fr 1.4fr 1fr 0.8fr; padding:12px 20px; border-bottom:1px solid var(--gray-100); align-items:center; transition:background 0.15s; }
.h-row:hover { background:var(--gray-50); }
.h-row.h-new { background:#F0FDF4; border-left:3px solid var(--success); animation:slideIn 0.4s ease; }
@keyframes slideIn { from { opacity:0; transform:translateY(-8px); } to { opacity:1; transform:translateY(0); } }
.h-cell-user { display:flex; align-items:center; gap:10px; }
.h-av { width:32px; height:32px; border-radius:50%; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.h-nom { font-size:13px; font-weight:600; color:var(--gray-900); }
.h-email { font-size:11px; color:var(--gray-500); margin-top:1px; }
.h-cell { }
.h-mission { font-size:12px; font-weight:600; color:var(--gray-800); }
.h-mission-date { font-size:11px; color:var(--gray-500); margin-top:1px; }
.h-iban { font-size:12px; color:var(--gray-700); font-weight:500; }
.h-iban-full { font-size:10px; color:var(--gray-400); margin-top:1px; font-family:monospace; }
.h-date-vir { font-size:12px; font-weight:600; color:var(--gray-700); }
.h-heure { font-size:11px; color:var(--gray-400); }
.h-montant { font-size:15px; font-weight:700; color:var(--success); }
.doc-checklist { display:flex; flex-wrap:wrap; gap:6px; }
.doc-check-item { display:inline-flex; align-items:center; gap:5px; padding:4px 10px; border-radius:100px; font-size:11px; font-weight:700; cursor:pointer; border:1.5px solid; user-select:none; transition:all 0.2s; }
.doc-check-item[data-ok="1"] { background:#DCFCE7; color:#166534; border-color:#BBF7D0; }
.doc-check-item[data-ok="1"]:hover { background:#BBF7D0; }
.doc-check-item.doc-check-pending { background:#FEF3C7; color:#92400E; border-color:#FDE68A; }
.doc-check-item.doc-check-pending:hover { background:#FDE68A; }
.doc-check-item.doc-check-missing { background:#FEE2E2; color:#991B1B; border-color:#FECACA; }
.doc-check-item.doc-check-missing:hover { background:#FECACA; }
.doc-check-icon { font-size:12px; }
.dossier-card { background:var(--card-bg); border:1px solid var(--gray-200); border-left:4px solid var(--accent); border-radius:12px; padding:20px 22px; margin-bottom:12px; }
.dossier-card.dossier-warning { border-left-color:var(--warning); }
.dossier-card.dossier-refused { border-left-color:var(--error); background:#FEF9FA; }
.dossier-header { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; margin-bottom:14px; flex-wrap:wrap; }
.dossier-note-zone { margin-bottom:14px; }
.dossier-actions { display:flex; gap:8px; flex-wrap:wrap; align-items:center; padding-top:12px; border-top:1px solid var(--gray-100); }
.dossier-btn-attente { padding:7px 14px; background:var(--warning-light); color:var(--warning); border:1.5px solid #FDE68A; border-radius:var(--radius); font-family:'Plus Jakarta Sans',sans-serif; font-size:12px; font-weight:700; cursor:pointer; transition:all 0.2s; }
.dossier-btn-attente:hover { background:#FDE68A; }
.dossier-btn-refus { padding:7px 14px; background:var(--card-bg); color:var(--error); border:1.5px solid #FECACA; border-radius:var(--radius); font-family:'Plus Jakarta Sans',sans-serif; font-size:12px; font-weight:700; cursor:pointer; transition:all 0.2s; }
.dossier-btn-refus:hover { background:var(--error-light); }
.virement-card { background:var(--card-bg); border:1px solid var(--gray-200); border-radius:12px; padding:20px 24px; transition:all 0.3s; }
.virement-card:hover { box-shadow:var(--shadow-sm); border-color:var(--gray-300); }
/* admin responsive handled in main @media block */
.statut-badge { font-size:11px; font-weight:700; padding:4px 10px; border-radius:100px; white-space:nowrap; }
.statut-actif { background:#DCFCE7; color:#166534; }
.statut-suspendu { background:#FEE2E2; color:#991B1B; }
.statut-restreint { background:#FEF3C7; color:#92400E; }
.statut-pending { background:#FEF3C7; color:#92400E; }
.statut-rejected { background:#FEE2E2; color:#991B1B; }
.action-btn { padding:5px 10px; border-radius:5px; font-family:'Plus Jakarta Sans',sans-serif; font-size:11px; font-weight:600; cursor:pointer; border:1px solid; transition:all 0.15s; white-space:nowrap; }
.action-view { background:var(--card-bg); color:var(--gray-700); border-color:var(--gray-200); }
.action-view:hover { background:var(--gray-50); border-color:var(--gray-300); }
.action-more { background:var(--card-bg); color:var(--gray-700); border-color:var(--gray-200); }
.action-more:hover { background:var(--gray-50); }
.actions-menu { background:var(--card-bg); border:1px solid var(--gray-200); border-radius:var(--radius); box-shadow:var(--shadow); overflow:hidden; margin:0 20px 8px; }
.actions-menu-item { display:flex; align-items:center; gap:10px; padding:11px 16px; font-size:13px; font-weight:500; cursor:pointer; border:none; background:none; width:100%; text-align:left; font-family:'Plus Jakarta Sans',sans-serif; transition:background 0.15s; }
.actions-menu-item:hover { background:var(--gray-50); }
.actions-menu-item.danger { color:var(--error); }
.actions-menu-item.danger:hover { background:var(--error-light); }
.actions-menu-item.warning { color:var(--warning); }
.actions-menu-item.success { color:var(--success); }
.modal-info-field label { font-size:10px; font-weight:700; text-transform:uppercase; letter-spacing:0.5px; color:var(--gray-400); display:block; margin-bottom:3px; }
.modal-info-field span { font-size:13px; font-weight:500; color:var(--gray-800); }
.modal-action-btn { display:flex; align-items:center; gap:10px; padding:11px 16px; border-radius:var(--radius); font-family:'Plus Jakarta Sans',sans-serif; font-size:13px; font-weight:600; cursor:pointer; border:1.5px solid; transition:all 0.2s; width:100%; background:var(--card-bg); }
.modal-action-btn:hover { transform:translateX(2px); }
.estim-loader { width:48px;height:48px;border:4px solid var(--gray-200);border-top:4px solid var(--accent);border-radius:50%;margin:0 auto;animation:estim-spin 0.8s linear infinite; }
@keyframes estim-spin { to { transform:rotate(360deg); } }
.estim-spinner { display:inline-block;width:16px;height:16px;border:2px solid rgba(255,255,255,0.4);border-top:2px solid #fff;border-radius:50%;animation:estim-spin 0.7s linear infinite;vertical-align:middle; }