/*
 * ═══════════════════════════════════════════════════════════════
 *  SENVIRTUEL — DESIGN SYSTEM v2.0
 *  Overlay CSS sur main-v43.css
 *  - Variables sémantiques complètes (light + dark)
 *  - Bridge: anciens tokens → nouveaux tokens sémantiques
 *  - Composants : badges, cards, boutons, formulaires, tables
 *  - Corrections contrastes WCAG AA/AAA
 *  - Responsive mobile-first
 * ═══════════════════════════════════════════════════════════════
 */

/* ══════════════════════════════════════════════
   0. BRIDGE VARIABLES — aligne les anciens tokens
      CSS (--bg0, --txt1, --brd…) sur le nouveau
      système sémantique. Design-system.css est
      chargé APRÈS main.css → override garanti.
══════════════════════════════════════════════ */
:root {
  /* ── Anciens tokens → valeurs Light Mode ── */
  --bg0: #F8FAFC;
  --bg1: #F1F5F9;
  --bg2: #FFFFFF;
  --bg3: #F1F5F9;
  --bg4: #E2E8F0;
  --txt1: #0F172A;
  --txt2: #475569;
  --txt3: #64748B;
  --brd:  rgba(226,232,240,0.95);
  --brd2: rgba(203,213,225,0.95);
  --sh1:  0 2px 12px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.04);
  --sh2:  0 8px 32px rgba(245,180,0,0.20);
  --hero-bg: #0F172A;
}

html[data-theme="dark"] {
  /* ── Anciens tokens → valeurs Dark Mode ── */
  --bg0: #0F172A;
  --bg1: #1E293B;
  --bg2: #1E293B;
  --bg3: #334155;
  --bg4: #475569;
  --txt1: #F8FAFC;
  --txt2: #CBD5E1;
  --txt3: #94A3B8;
  --brd:  rgba(51,65,85,0.95);
  --brd2: rgba(71,85,105,0.95);
  --sh1:  0 4px 24px rgba(0,0,0,0.5);
  --sh2:  0 8px 40px rgba(245,180,0,0.22);
  --hero-bg: #0F172A;
}

/* ══════════════════════════════════════════════
   1. VARIABLES SÉMANTIQUES — LIGHT MODE (défaut)
══════════════════════════════════════════════ */
:root {
  /* Fond & surface */
  --bg: #F8FAFC;
  --surface: #FFFFFF;
  --surface-2: #F1F5F9;
  --surface-3: #E8EEF5;

  /* Texte */
  --text: #0F172A;
  --text-muted: #475569;
  --text-faint: #64748B;

  /* Bordures */
  --border: #E2E8F0;
  --border-strong: #CBD5E1;

  /* Couleurs sémantiques */
  --primary: #F5B400;
  --primary-hover: #D97706;
  --primary-text: #0F172A;

  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.12);
  --success-border: rgba(34, 197, 94, 0.25);

  --danger: #EF4444;
  --danger-bg: rgba(239, 68, 68, 0.10);
  --danger-border: rgba(239, 68, 68, 0.25);

  --info: #0EA5E9;
  --info-bg: rgba(14, 165, 233, 0.10);
  --info-border: rgba(14, 165, 233, 0.25);

  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.25);

  --neutral: #64748B;
  --neutral-bg: rgba(100, 116, 139, 0.10);

  /* Ombres */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10), 0 2px 6px rgba(0,0,0,0.06);
  --shadow-lg: 0 10px 32px rgba(0,0,0,0.12), 0 4px 12px rgba(0,0,0,0.06);

  /* Radius */
  --radius-sm: 6px;
  --radius: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.12s ease;

  /* Layout */
  --container-width: 1280px;
  --sidebar-width: 240px;
  --header-height: 62px;

  /* Focus */
  --focus-ring: 0 0 0 3px rgba(245, 180, 0, 0.35);
}

/* ══════════════════════════════════════════════
   2. VARIABLES SÉMANTIQUES — DARK MODE
══════════════════════════════════════════════ */
html[data-theme="dark"] {
  --bg: #0F172A;
  --surface: #1E293B;
  --surface-2: #334155;
  --surface-3: #475569;

  --text: #F8FAFC;
  --text-muted: #CBD5E1;
  --text-faint: #94A3B8;

  --border: #334155;
  --border-strong: #475569;

  --primary: #F5B400;
  --primary-hover: #FBBF24;
  --primary-text: #0F172A;

  --success: #22C55E;
  --success-bg: rgba(34, 197, 94, 0.15);
  --success-border: rgba(34, 197, 94, 0.3);

  --danger: #F87171;
  --danger-bg: rgba(248, 113, 113, 0.12);
  --danger-border: rgba(248, 113, 113, 0.25);

  --info: #38BDF8;
  --info-bg: rgba(56, 189, 248, 0.12);
  --info-border: rgba(56, 189, 248, 0.25);

  --warning: #F59E0B;
  --warning-bg: rgba(245, 158, 11, 0.15);
  --warning-border: rgba(245, 158, 11, 0.3);

  --neutral: #94A3B8;
  --neutral-bg: rgba(148, 163, 184, 0.12);

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.35);
  --shadow-md: 0 4px 20px rgba(0,0,0,0.45);
  --shadow-lg: 0 10px 40px rgba(0,0,0,0.55);

  --focus-ring: 0 0 0 3px rgba(245, 180, 0, 0.40);
}

/* ══════════════════════════════════════════════
   3. BASE — Body, html, scrollbar
══════════════════════════════════════════════ */
html {
  background: var(--bg);
}

body {
  background: var(--bg) !important;
  color: var(--text) !important;
}

html[data-theme="dark"] body {
  background: var(--bg) !important;
  background-image: radial-gradient(ellipse 80% 25% at 50% 0%, rgba(245,180,0,.05) 0%, transparent 55%) !important;
}

::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: var(--surface-2); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 3px; opacity: .6; }

/* ══════════════════════════════════════════════
   4. FOCUS VISIBLE GLOBAL (accessibilité)
══════════════════════════════════════════════ */
:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-radius: var(--radius-sm);
}

/* ══════════════════════════════════════════════
   5. STATUS BADGES — SYSTÈME UNIFIÉ
══════════════════════════════════════════════ */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  white-space: nowrap;
  border: 1px solid transparent;
  line-height: 1;
}

.status-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0;
}

/* pending_payment */
.status-pending-payment,
.status-badge[data-status="pending_payment"] {
  background: var(--warning-bg);
  color: var(--warning);
  border-color: var(--warning-border);
}

/* paid */
.status-paid,
.status-badge[data-status="paid"] {
  background: var(--info-bg);
  color: var(--info);
  border-color: var(--info-border);
}

/* processing */
.status-processing,
.status-badge[data-status="processing"] {
  background: rgba(167, 139, 250, 0.12);
  color: #A78BFA;
  border-color: rgba(167, 139, 250, 0.25);
}

/* credentials_ready */
.status-credentials-ready,
.status-badge[data-status="credentials_ready"] {
  background: rgba(56, 189, 248, 0.12);
  color: #38BDF8;
  border-color: rgba(56, 189, 248, 0.25);
}

/* delivered */
.status-delivered,
.status-badge[data-status="delivered"] {
  background: var(--success-bg);
  color: var(--success);
  border-color: var(--success-border);
}

/* renewal_available */
.status-renewal-available,
.status-badge[data-status="renewal_available"] {
  background: rgba(245, 180, 0, 0.12);
  color: var(--primary);
  border-color: rgba(245, 180, 0, 0.25);
}

/* expired */
.status-expired,
.status-badge[data-status="expired"] {
  background: var(--neutral-bg);
  color: var(--neutral);
  border-color: var(--border);
}

/* cancelled */
.status-cancelled,
.status-badge[data-status="cancelled"] {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: var(--danger-border);
}

/* refunded */
.status-refunded,
.status-badge[data-status="refunded"] {
  background: var(--neutral-bg);
  color: var(--text-muted);
  border-color: var(--border);
}

/* ══════════════════════════════════════════════
   6. CARD COMPOSANT UNIFIÉ
══════════════════════════════════════════════ */
.sv-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), border-color var(--transition);
}

.sv-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

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

.sv-card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sv-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.sv-card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ══════════════════════════════════════════════
   7. BOUTONS — HIÉRARCHIE COMPLÈTE
══════════════════════════════════════════════ */

/* Base bouton */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
}

/* Primaire — CTA principal or/jaune */
.btn-primary {
  background: linear-gradient(135deg, #F5B400, #E6A800);
  color: #0F172A !important;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(245,180,0,0.25);
}
.btn-primary:hover {
  background: linear-gradient(135deg, #FBBF24, #F5B400);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(245,180,0,0.38);
  color: #0F172A !important;
}
.btn-primary:active { transform: translateY(0); }

/* Secondaire — neutre */
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1.5px solid var(--border);
  font-weight: 600;
}
.btn-secondary:hover {
  background: var(--border);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

/* Succès — WhatsApp / livraison */
.btn-success {
  background: linear-gradient(135deg, #22C55E, #16A34A);
  color: #fff !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(34,197,94,0.25);
}
.btn-success:hover {
  background: linear-gradient(135deg, #4ADE80, #22C55E);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(34,197,94,0.38);
}

/* Danger — supprimer/annuler */
.btn-danger {
  background: linear-gradient(135deg, #EF4444, #DC2626);
  color: #fff !important;
  border: none;
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(239,68,68,0.25);
}
.btn-danger:hover {
  background: linear-gradient(135deg, #F87171, #EF4444);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(239,68,68,0.38);
}

/* Info */
.btn-info {
  background: linear-gradient(135deg, #0EA5E9, #0284C7);
  color: #fff !important;
  border: none;
  font-weight: 700;
}
.btn-info:hover {
  background: linear-gradient(135deg, #38BDF8, #0EA5E9);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14,165,233,0.35);
}

/* Ghost — actions secondaires */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1.5px solid var(--border);
}
.btn-ghost:hover {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}

html[data-theme="dark"] .btn-ghost {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.12);
  color: var(--text-muted);
}
html[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255,255,255,.09);
  color: var(--text);
}

/* Outline */
.btn-outline {
  background: transparent;
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}
.btn-outline:hover {
  border-color: var(--primary);
  background: rgba(245,180,0,.08);
  color: var(--primary);
}

html[data-theme="dark"] .btn-outline {
  border-color: rgba(255,255,255,.18);
  color: var(--text-muted);
}
html[data-theme="dark"] .btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(245,180,0,.08);
}

/* WhatsApp */
.btn-whatsapp {
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  border: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 3px 12px rgba(37,211,102,0.3);
}
.btn-whatsapp:hover {
  background: linear-gradient(135deg, #2EE875, #25D366);
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45);
}

/* CTA orange */
.btn-cta {
  background: linear-gradient(135deg, #FF8C42, #E06000);
  color: #fff !important;
  font-weight: 700;
}
.btn-cta:hover {
  background: linear-gradient(135deg, #FFA060, #FF8C42);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(255,140,66,0.38);
}

/* Tailles */
.btn-sm { padding: 7px 14px; font-size: 13px; border-radius: var(--radius); }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-xl { padding: 16px 36px; font-size: 17px; border-radius: var(--radius-lg); font-weight: 700; }
.btn-icon { width: 38px; height: 38px; padding: 0; border-radius: var(--radius); }
.btn-icon-lg { width: 44px; height: 44px; padding: 0; border-radius: var(--radius-md); }

/* Focus & disabled */
.btn:focus-visible { box-shadow: var(--focus-ring); outline: none; }
.btn:disabled,
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none !important;
  box-shadow: none !important;
  pointer-events: none;
}

/* Garantir texte sombre sur fond jaune */
.btn-primary,
.btn-primary *,
.filter-chip.active,
.cat-pill.active {
  color: #0F172A !important;
}

/* ══════════════════════════════════════════════
   8. FORMULAIRES — ACCESSIBILITÉ COMPLÈTE
══════════════════════════════════════════════ */
.form-group { margin-bottom: 16px; }

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
  letter-spacing: 0.1px;
}

.form-label.required::after {
  content: ' *';
  color: var(--danger);
}

.form-input {
  width: 100%;
  padding: 10px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition), background var(--transition), box-shadow var(--transition);
  line-height: 1.5;
  -webkit-appearance: none;
  appearance: none;
}

.form-input::placeholder { color: var(--text-faint); }

.form-input:hover {
  border-color: var(--border-strong);
  background: var(--surface);
}

.form-input:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--surface);
  box-shadow: var(--focus-ring);
}

.form-input.error {
  border-color: var(--danger);
  background: var(--danger-bg);
}

.form-hint {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 5px;
  line-height: 1.4;
}

.form-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
}

/* Section formulaire */
.form-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 16px;
}

.form-section-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

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

.form-full { grid-column: 1 / -1; }

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

/* ══════════════════════════════════════════════
   9. ADMIN TABLE — RESPONSIVE
══════════════════════════════════════════════ */
.admin-table-wrap {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.admin-table thead tr {
  background: var(--surface-2);
  border-bottom: 2px solid var(--border);
}

.admin-table th {
  padding: 11px 14px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
  white-space: nowrap;
}

.admin-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
  vertical-align: middle;
}

.admin-table tbody tr:last-child td { border-bottom: none; }
.admin-table tbody tr:hover { background: var(--surface-2); }

@media (max-width: 640px) {
  .admin-table .col-hide-sm { display: none; }
}
@media (max-width: 768px) {
  .admin-table .col-hide-md { display: none; }
  .admin-table-wrap { border-radius: var(--radius); }
}

/* ══════════════════════════════════════════════
   10. CLIENT ORDER CARD
══════════════════════════════════════════════ */
.order-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.order-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.order-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.order-card-ref {
  font-family: 'Courier New', monospace;
  font-size: 12px;
  font-weight: 700;
  color: var(--info);
  letter-spacing: 0.5px;
}

.order-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 8px;
}

.order-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.order-card-credentials {
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--success-bg) !important;
  border: 1px solid var(--success-border) !important;
  border-radius: var(--radius) !important;
}

.order-card-credentials-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-card-credentials-value {
  font-family: 'Courier New', monospace;
  font-size: 13px;
  color: var(--text);
  word-break: break-all;
  white-space: pre-wrap;
  margin: 4px 0 8px;
}

/* ══════════════════════════════════════════════
   11. COMMANDE TIMELINE
══════════════════════════════════════════════ */
.order-timeline {
  display: flex;
  align-items: center;
  gap: 0;
  margin: 12px 0;
  position: relative;
}

.order-timeline-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  position: relative;
  z-index: 1;
}

.order-timeline-step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  right: -50%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}

.order-timeline-step.done:not(:last-child)::after { background: var(--success); }

.order-timeline-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  z-index: 1;
  position: relative;
  transition: all var(--transition);
}

.order-timeline-step.done .order-timeline-dot {
  background: var(--success);
  border-color: var(--success);
  color: #fff;
}

.order-timeline-step.active .order-timeline-dot {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--primary-text);
  box-shadow: 0 0 0 4px rgba(245, 180, 0, 0.2);
}

.order-timeline-label {
  font-size: 10px;
  color: var(--text-faint);
  margin-top: 4px;
  text-align: center;
  white-space: nowrap;
}

.order-timeline-step.done .order-timeline-label {
  color: var(--success);
  font-weight: 600;
}

.order-timeline-step.active .order-timeline-label {
  color: var(--primary);
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   12. EMPTY STATE
══════════════════════════════════════════════ */
.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  text-align: center;
  gap: 12px;
}

.empty-state-icon { font-size: 48px; line-height: 1; opacity: 0.6; }
.empty-state-title { font-size: 16px; font-weight: 700; color: var(--text); }
.empty-state-sub { font-size: 13px; color: var(--text-muted); max-width: 320px; line-height: 1.6; }

/* ══════════════════════════════════════════════
   13. KPI CARDS — DASHBOARD
══════════════════════════════════════════════ */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}

.kpi-card-v2 {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
}

.kpi-card-v2:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-1px);
}

.kpi-card-v2-icon { font-size: 22px; margin-bottom: 8px; }

.kpi-card-v2-value {
  font-size: 22px;
  font-weight: 900;
  color: var(--text);
  line-height: 1;
  margin-bottom: 4px;
}

.kpi-card-v2-label {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
}

.kpi-card-v2-trend {
  font-size: 11px;
  margin-top: 6px;
  font-weight: 600;
}

.kpi-card-v2-trend.up { color: var(--success); }
.kpi-card-v2-trend.down { color: var(--danger); }

/* ══════════════════════════════════════════════
   14. ADMIN LAYOUT
══════════════════════════════════════════════ */
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.admin-section-heading {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.3px;
}

.admin-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.admin-search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  transition: border-color var(--transition), box-shadow var(--transition);
}

.admin-search-bar:focus-within {
  border-color: var(--primary);
  box-shadow: var(--focus-ring);
}

.admin-search-bar input {
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  min-width: 180px;
}

.admin-search-bar input::placeholder { color: var(--text-faint); }

.admin-filter-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

/* Filter chips */
.filter-chip {
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.filter-chip:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(245, 180, 0, 0.08);
}

.filter-chip.active {
  background: var(--primary);
  color: #0F172A;
  border-color: var(--primary);
  font-weight: 700;
}

/* Filter btn (ancien nom) */
.filter-btn {
  display: inline-flex;
  align-items: center;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.filter-btn:hover { border-color: var(--primary); color: var(--primary); background: rgba(245,180,0,.06); }
.filter-btn.active { background: var(--primary); border-color: var(--primary); color: #0F172A; font-weight: 700; }

/* ══════════════════════════════════════════════
   15. DASHBOARD CLIENT — ONGLETS
══════════════════════════════════════════════ */
.client-tabs {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 1px;
  margin-bottom: 20px;
  scrollbar-width: none;
  border-bottom: 2px solid var(--border);
}

.client-tabs::-webkit-scrollbar { display: none; }

.client-tab {
  padding: 9px 16px;
  border-radius: var(--radius) var(--radius) 0 0;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  color: var(--text-muted);
  border: 1px solid transparent;
  border-bottom: none;
  transition: all var(--transition-fast);
  background: transparent;
  position: relative;
  bottom: -2px;
}

.client-tab:hover { color: var(--text); background: var(--surface-2); }

.client-tab.active {
  color: var(--primary);
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: var(--surface);
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   16. SUBSCRIPTION CARD
══════════════════════════════════════════════ */
.sub-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: box-shadow var(--transition), border-color var(--transition);
}

.sub-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.sub-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sub-card-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.sub-progress {
  height: 6px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.sub-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #FBBF24);
  border-radius: var(--radius-full);
  transition: width 0.5s ease;
}

.sub-progress-fill.critical { background: linear-gradient(90deg, var(--danger), #DC2626); }
.sub-progress-fill.warning { background: linear-gradient(90deg, var(--warning), #D97706); }

.sub-days-left { font-size: 12px; font-weight: 700; }
.sub-days-left.critical { color: var(--danger); }
.sub-days-left.warning { color: var(--warning); }
.sub-days-left.ok { color: var(--success); }

/* ══════════════════════════════════════════════
   17. NOTIFICATIONS
══════════════════════════════════════════════ */
.notif-item-v2 {
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  transition: background var(--transition-fast);
  cursor: pointer;
}

.notif-item-v2:hover { background: var(--surface-2); }
.notif-item-v2:last-child { border-bottom: none; }

.notif-item-v2.unread {
  border-left: 3px solid var(--primary);
  padding-left: 13px;
  background: rgba(245, 180, 0, 0.04);
}

.notif-item-v2-msg {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
}

.notif-item-v2-time {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 3px;
}

/* ══════════════════════════════════════════════
   18. HEADER WA BTN
══════════════════════════════════════════════ */
.header-wa-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: #fff !important;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: all var(--transition);
  border: none;
  box-shadow: 0 3px 10px rgba(37,211,102,0.3);
}

.header-wa-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(37,211,102,0.42);
}

@media (max-width: 900px) { .header-wa-btn-text { display: none; } }

/* ══════════════════════════════════════════════
   19. AUTH / COMPTE
══════════════════════════════════════════════ */
.auth-wrap {
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  width: 100%;
  max-width: 440px;
  box-shadow: var(--shadow-md);
}

.auth-card-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 4px;
  text-align: center;
}

.auth-card-sub {
  font-size: 13px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 20px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  color: var(--text-faint);
  font-size: 12px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ══════════════════════════════════════════════
   20. ADMIN SIDEBAR
══════════════════════════════════════════════ */
.admin-sidebar-brand {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  margin-bottom: 8px;
}

.admin-sidebar-brand-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 0.04em;
}

.admin-sidebar-brand-sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 2px;
}

.admin-nav-item-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-radius: var(--radius);
  margin: 2px 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  transition: all var(--transition-fast);
  text-decoration: none;
}

.admin-nav-item-v2:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.admin-nav-item-v2.active {
  background: rgba(245, 180, 0, 0.12);
  color: var(--primary);
}

.admin-nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--danger);
  color: #fff;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 800;
  margin-left: auto;
}

/* Admin filters */
.admin-filters {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

/* Admin modal inputs */
#adminOrderModal select,
#adminOrderModal textarea,
#adminOrderModal input {
  background: var(--surface-2) !important;
  border: 1.5px solid var(--border) !important;
  border-radius: var(--radius) !important;
  color: var(--text) !important;
  padding: 9px 12px !important;
  font-size: 13px;
  font-family: inherit;
  width: 100%;
  box-sizing: border-box;
  transition: border-color var(--transition);
}
#adminOrderModal select:focus,
#adminOrderModal textarea:focus,
#adminOrderModal input:focus {
  outline: none;
  border-color: var(--primary) !important;
  box-shadow: var(--focus-ring);
}
#adminOrderModal label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

/* Admin KPI override */
.kpi-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-md) !important;
  transition: box-shadow var(--transition), transform var(--transition);
}
.kpi-card:hover {
  box-shadow: var(--shadow-md) !important;
  transform: translateY(-1px);
}
.kpi-value { color: var(--primary) !important; font-weight: 900 !important; }
.kpi-label { color: var(--text-muted) !important; }

/* ══════════════════════════════════════════════
   21. PAGE SUIVI — Amélioration
══════════════════════════════════════════════ */
.track-wrap { max-width: 520px; margin: 0 auto; padding: 24px 16px; }
.track-header { text-align: center; margin-bottom: 24px; }
.track-header-icon { font-size: 48px; margin-bottom: 8px; }
.track-header-title { font-size: 22px; font-weight: 800; color: var(--text); }
.track-header-sub { font-size: 14px; color: var(--text-muted); margin-top: 4px; }

/* ══════════════════════════════════════════════
   22. TOAST — Améliorations
══════════════════════════════════════════════ */
.toast {
  border-radius: var(--radius) !important;
  font-weight: 600 !important;
  padding: 10px 16px !important;
  color: var(--text) !important;
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-lg) !important;
}

.social-toast-status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

/* ══════════════════════════════════════════════
   23. UTILS SUPPLÉMENTAIRES
══════════════════════════════════════════════ */
.text-primary   { color: var(--primary) !important; }
.text-success   { color: var(--success) !important; }
.text-danger    { color: var(--danger) !important; }
.text-info      { color: var(--info) !important; }
.text-warning   { color: var(--warning) !important; }
.text-text      { color: var(--text) !important; }
.text-muted-ds  { color: var(--text-muted) !important; }
.text-faint-ds  { color: var(--text-faint) !important; }

.bg-surface     { background: var(--surface) !important; }
.bg-surface-2   { background: var(--surface-2) !important; }
.bg-primary     { background: var(--primary) !important; }

.border-ds      { border: 1px solid var(--border) !important; }
.rounded-full   { border-radius: var(--radius-full) !important; }
.rounded-md     { border-radius: var(--radius-md) !important; }
.rounded-lg     { border-radius: var(--radius-lg) !important; }

.shadow-sm      { box-shadow: var(--shadow-sm) !important; }
.shadow-md      { box-shadow: var(--shadow-md) !important; }
.shadow-lg      { box-shadow: var(--shadow-lg) !important; }

.min-touch { min-height: 44px; min-width: 44px; }

/* Bouton copier */
.copy-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition-fast);
}
.copy-btn:hover { background: var(--border); color: var(--text); }
.copy-btn.copied { background: var(--success-bg); border-color: var(--success-border); color: var(--success); }

/* Bannière parrainage */
.btn-banner {
  background: rgba(0,0,0,.25);
  border: none;
  color: #fff;
  padding: 5px 14px;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  font-size: 13px;
  transition: background .2s;
}
.btn-banner:hover { background: rgba(0,0,0,.4); }

/* ══════════════════════════════════════════════
   24. RESPONSIVE GLOBAL
══════════════════════════════════════════════ */
@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-card { padding: 20px 16px; }
  .order-card-header { flex-direction: column; align-items: flex-start; }
  .order-timeline-label { font-size: 9px; }
}

@media (max-width: 768px) {
  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .admin-search-bar input { min-width: 120px; width: 100%; }
  .admin-filter-bar { gap: 4px; }
  .client-tab { padding: 8px 12px; font-size: 12px; }
  .kpi-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .sub-card { padding: 12px; }
}

/* ══════════════════════════════════════════════
   25. DARK MODE — Overrides complets composants
══════════════════════════════════════════════ */
html[data-theme="dark"] .form-input {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text);
}
html[data-theme="dark"] .form-input::placeholder { color: var(--text-faint); }
html[data-theme="dark"] .form-input:focus {
  background: var(--surface);
  border-color: var(--primary);
}

html[data-theme="dark"] .admin-search-bar {
  background: var(--surface-2);
  border-color: var(--border);
}
html[data-theme="dark"] .admin-search-bar input { color: var(--text); }
html[data-theme="dark"] .filter-chip {
  background: var(--surface-2);
  border-color: var(--border);
  color: var(--text-muted);
}

html[data-theme="dark"] .sv-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .order-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .sub-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .kpi-card-v2 { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .auth-card { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .form-section { background: var(--surface); border-color: var(--border); }

html[data-theme="dark"] .admin-table-wrap { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .admin-table thead tr { background: var(--surface-2); }
html[data-theme="dark"] .admin-table td { border-color: var(--border); color: var(--text); }
html[data-theme="dark"] .admin-table th { color: var(--text-muted); }
html[data-theme="dark"] .admin-table tbody tr:hover { background: var(--surface-2); }

html[data-theme="dark"] .client-tab.active {
  background: var(--surface);
  border-color: var(--border);
  border-bottom-color: var(--surface);
}

/* ══════════════════════════════════════════════
   26. LIGHT MODE — CORRECTIONS CONTRASTES GLOBAUX
══════════════════════════════════════════════ */

/* Page hero — texte blanc sur fond crème → texte sombre */
html:not([data-theme="dark"]) .page-hero {
  background: linear-gradient(135deg, rgba(245,180,0,.08), rgba(245,158,11,.05)) !important;
  color: var(--text) !important;
}
html:not([data-theme="dark"]) .page-hero h1,
html:not([data-theme="dark"]) .page-hero .page-hero-title {
  color: var(--text) !important;
}
html:not([data-theme="dark"]) .page-hero p,
html:not([data-theme="dark"]) .page-hero .page-hero-sub {
  color: var(--text-muted) !important;
}
html:not([data-theme="dark"]) .page-breadcrumb span {
  color: var(--text-muted) !important;
}

/* Titres sections en light mode */
html:not([data-theme="dark"]) .section-h2 { color: var(--text) !important; }
html:not([data-theme="dark"]) .section-title { color: var(--text) !important; }
html:not([data-theme="dark"]) .section-label {
  color: #7a5c00 !important;
  background: rgba(245,180,0,0.10) !important;
  border-color: rgba(245,180,0,0.25) !important;
}

/* About/faq/trust en light mode */
html:not([data-theme="dark"]) .about-card-title,
html:not([data-theme="dark"]) .trust-num,
html:not([data-theme="dark"]) .faq-q {
  color: var(--text) !important;
}
html:not([data-theme="dark"]) .about-card-desc,
html:not([data-theme="dark"]) .trust-label,
html:not([data-theme="dark"]) .faq-a-inner {
  color: var(--text-muted) !important;
}

/* Cards why/how/testimonial en light mode */
html:not([data-theme="dark"]) .why-card-v2,
html:not([data-theme="dark"]) .how-card-v2,
html:not([data-theme="dark"]) .testi-card-v2 {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
  color: var(--text) !important;
}
html:not([data-theme="dark"]) .why-card-v2:hover,
html:not([data-theme="dark"]) .how-card-v2:hover,
html:not([data-theme="dark"]) .testi-card-v2:hover {
  border-color: rgba(245,180,0,.35) !important;
  box-shadow: 0 8px 30px rgba(245,180,0,.12) !important;
}
html:not([data-theme="dark"]) .why-card-title,
html:not([data-theme="dark"]) .why-card-desc,
html:not([data-theme="dark"]) .how-card-title,
html:not([data-theme="dark"]) .howit-step-title {
  color: var(--text) !important;
}
html:not([data-theme="dark"]) .why-card-desc {
  color: var(--text-muted) !important;
}

/* Cartes produits en light mode */
html:not([data-theme="dark"]) .prod-card {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
html:not([data-theme="dark"]) .prod-card:hover {
  border-color: rgba(245,180,0,.4) !important;
  box-shadow: 0 12px 40px rgba(245,180,0,.15) !important;
}
html:not([data-theme="dark"]) .prod-name { color: var(--text) !important; }
html:not([data-theme="dark"]) .prod-cat { color: var(--text-muted) !important; }
html:not([data-theme="dark"]) .prod-price { color: var(--primary) !important; font-weight: 700; }
html:not([data-theme="dark"]) .prod-old { color: var(--text-faint) !important; }

/* Cartes produits v2 en light mode */
html:not([data-theme="dark"]) .prod-card-v2 {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
html:not([data-theme="dark"]) .prod-card-v2 .prod-name { color: var(--text) !important; }
html:not([data-theme="dark"]) .prod-price-v2 {
  background: linear-gradient(135deg, #E6A800, #F5B400) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  font-weight: 800 !important;
}

/* Cartes catégories en light mode */
html:not([data-theme="dark"]) .cat-card,
html:not([data-theme="dark"]) .cat-card-premium {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}
html:not([data-theme="dark"]) .cat-name,
html:not([data-theme="dark"]) .cat-card-premium-name { color: var(--text) !important; }
html:not([data-theme="dark"]) .cat-card-premium-count { color: var(--text-muted) !important; }

/* Formulaires en light mode */
html:not([data-theme="dark"]) .form-input,
html:not([data-theme="dark"]) .contact-input,
html:not([data-theme="dark"]) input:not([type="range"]):not([type="submit"]):not([type="checkbox"]):not([type="radio"]),
html:not([data-theme="dark"]) select,
html:not([data-theme="dark"]) textarea {
  background: var(--surface) !important;
  color: var(--text) !important;
  border-color: var(--border) !important;
}
html:not([data-theme="dark"]) .form-input::placeholder,
html:not([data-theme="dark"]) .contact-input::placeholder,
html:not([data-theme="dark"]) input::placeholder,
html:not([data-theme="dark"]) textarea::placeholder {
  color: var(--text-faint) !important;
}
html:not([data-theme="dark"]) .form-input:focus,
html:not([data-theme="dark"]) .contact-input:focus,
html:not([data-theme="dark"]) input:focus,
html:not([data-theme="dark"]) textarea:focus,
html:not([data-theme="dark"]) select:focus {
  background: var(--surface) !important;
  border-color: var(--primary) !important;
  box-shadow: var(--focus-ring) !important;
}

/* Auth box */
html:not([data-theme="dark"]) .auth-box {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}

/* Cart drawer */
html:not([data-theme="dark"]) .cart-drawer { background: var(--surface) !important; }
html:not([data-theme="dark"]) .cart-head,
html:not([data-theme="dark"]) .cart-foot {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}

/* Cat bar — toujours sombre (cohérence marque, lisibilité maximale) */
.cat-bar {
  background: linear-gradient(180deg, #0D1423 0%, #060C1A 100%) !important;
  border-bottom: 1px solid rgba(245,180,0,.15) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}
.cat-pill {
  color: rgba(255,255,255,0.75) !important;
  background: rgba(255,255,255,0.07) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
}
.cat-pill:hover {
  color: #ffffff !important;
  background: rgba(245,180,0,.15) !important;
  border-color: rgba(245,180,0,.35) !important;
}
.cat-pill.active {
  background: linear-gradient(135deg, #F5B400, #E6A800) !important;
  border-color: transparent !important;
  color: #0F172A !important;
  font-weight: 600 !important;
}

/* FAQ en light mode */
html:not([data-theme="dark"]) .faq-item { border-color: var(--border) !important; }
html:not([data-theme="dark"]) .faq-q {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
html:not([data-theme="dark"]) .faq-q:hover { background: var(--border) !important; }
html:not([data-theme="dark"]) .faq-item.open .faq-q {
  background: rgba(245,180,0,.08) !important;
  color: #7a5c00 !important;
}

/* Contact card */
html:not([data-theme="dark"]) .contact-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  color: var(--text) !important;
}
html:not([data-theme="dark"]) .contact-label { color: var(--text-muted) !important; }

/* Testimonials */
html:not([data-theme="dark"]) .testi-name { color: var(--text) !important; }
html:not([data-theme="dark"]) .testi-role { color: var(--text-muted) !important; }
html:not([data-theme="dark"]) .testi-text { color: var(--text-muted) !important; }

/* Section alt en light mode */
html:not([data-theme="dark"]) .section-alt {
  background: var(--surface-2) !important;
}

/* Flash banner en light mode */
html:not([data-theme="dark"]) .flash-banner,
html:not([data-theme="dark"]) .flash-banner-v2 {
  background: linear-gradient(135deg, rgba(245,180,0,.08), rgba(245,180,0,.05)) !important;
  border-color: rgba(245,180,0,.2) !important;
}

/* Timer en light mode */
html:not([data-theme="dark"]) .timer-num-v2 { color: var(--text) !important; }
html:not([data-theme="dark"]) .timer-lbl-v2 { color: var(--text-muted) !important; }
html:not([data-theme="dark"]) .timer-block-v2 {
  background: var(--surface) !important;
  border: 1px solid var(--border) !important;
}

/* Mobile drawer — toujours sombre (branding) */
#mobileDrawer {
  background: linear-gradient(180deg, #0D1423 0%, #060C1A 100%) !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
}
.drawer-header {
  background: rgba(245,180,0,.04) !important;
  border-bottom: 1px solid rgba(255,255,255,.07) !important;
}
.drawer-logo-name { color: #fff !important; }

/* Footer — toujours sombre (branding), neutralise le gradient transparent de main.css */
footer,
footer.footer,
.footer-v3,
.footer-section {
  background: #0D1423 !important;
  background-image: none !important;
  background-color: #0D1423 !important;
}
/* Surcharge spécifique light mode (au cas où une règle héritée serait plus spécifique) */
html:not([data-theme="dark"]) footer,
html:not([data-theme="dark"]) footer.footer,
html:not([data-theme="dark"]) .footer-v3,
html:not([data-theme="dark"]) .footer-section,
html[data-theme="light"] footer,
html[data-theme="light"] .footer-v3,
html[data-theme="light"] .footer-section {
  background: #0D1423 !important;
  background-image: none !important;
  background-color: #0D1423 !important;
}
html:not([data-theme="dark"]) .footer-desc { color: rgba(255,255,255,0.5) !important; }
html:not([data-theme="dark"]) .footer-col-title { color: rgba(255,255,255,0.38) !important; }
html:not([data-theme="dark"]) .footer-bottom { color: rgba(255,255,255,0.35) !important; }

/* Scroll-to-top */
html:not([data-theme="dark"]) .scroll-top-btn {
  background: var(--surface) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
  box-shadow: var(--shadow-md) !important;
}

/* Trust bar */
html:not([data-theme="dark"]) .trust-bar {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}
html:not([data-theme="dark"]) .trust-item { color: var(--text-muted) !important; }
html:not([data-theme="dark"]) .trust-item:hover { color: var(--text) !important; }
html:not([data-theme="dark"]) .trust-item-v2 { color: var(--text-muted) !important; }

/* Proof bar hero */
html:not([data-theme="dark"]) .hero-proof-bar { border-top-color: var(--border) !important; }
html:not([data-theme="dark"]) .hero-proof-item strong { color: var(--text) !important; }
html:not([data-theme="dark"]) .hero-proof-item span { color: var(--text-muted) !important; }

/* Bottom nav en light mode */
html:not([data-theme="dark"]) .bottom-nav,
html:not([data-theme="dark"]) #bottomNav {
  background: rgba(255,255,255,.98) !important;
  border-top-color: rgba(0,0,0,.08) !important;
}
html:not([data-theme="dark"]) .bnav-item { color: rgba(0,0,0,.4) !important; }
html:not([data-theme="dark"]) .bnav-item.active { color: #E6A800 !important; }
html:not([data-theme="dark"]) .bnav-ico { color: inherit; }

/* WA CTA section light */
html:not([data-theme="dark"]) .wa-cta-section {
  background: linear-gradient(135deg, rgba(37,211,102,.06), rgba(18,140,126,.04)) !important;
}
html:not([data-theme="dark"]) .wa-cta-title { color: var(--text) !important; }
html:not([data-theme="dark"]) .wa-cta-sub { color: var(--text-muted) !important; }

/* Texte muted global en light mode */
html[data-theme="light"] .text-muted,
html:not([data-theme]) .text-muted {
  color: #475569 !important;
}
html[data-theme="light"] .text-sec,
html:not([data-theme]) .text-sec {
  color: #475569 !important;
}

/* Dropdown navigation en light mode */
html:not([data-theme="dark"]) .nav-dropdown {
  background: rgba(255,255,255,.97) !important;
  border-color: rgba(0,0,0,.09) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.15) !important;
}
html:not([data-theme="dark"]) .nav-dd-item { color: #333 !important; }
html:not([data-theme="dark"]) .nav-dd-item:hover {
  background: rgba(245,180,0,.1) !important;
  color: #111 !important;
}

/* ══════════════════════════════════════════════
   27. DARK MODE — Produits & Sections
══════════════════════════════════════════════ */
html[data-theme="dark"] .prod-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
  box-shadow: var(--shadow-sm) !important;
}
html[data-theme="dark"] .prod-card:hover {
  border-color: rgba(245,180,0,.35) !important;
  box-shadow: 0 12px 40px rgba(245,180,0,.12) !important;
}
html[data-theme="dark"] .prod-name { color: var(--text) !important; }
html[data-theme="dark"] .prod-cat { color: var(--text-faint) !important; }

html[data-theme="dark"] .prod-card-v2 {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] .prod-card-v2:hover {
  border-color: rgba(245,180,0,.4) !important;
  box-shadow: 0 16px 48px rgba(245,180,0,.12) !important;
}

html[data-theme="dark"] .why-card-v2,
html[data-theme="dark"] .how-card-v2,
html[data-theme="dark"] .testi-card-v2 {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}
html[data-theme="dark"] .why-card-v2:hover,
html[data-theme="dark"] .how-card-v2:hover,
html[data-theme="dark"] .testi-card-v2:hover {
  border-color: rgba(245,180,0,.25) !important;
}

html[data-theme="dark"] .cat-card { background: var(--surface) !important; border-color: var(--border) !important; }
html[data-theme="dark"] .cat-name { color: var(--text) !important; }

html[data-theme="dark"] .section-h2 { color: var(--text) !important; }
html[data-theme="dark"] .section-title { color: var(--text) !important; }
html[data-theme="dark"] .section-label {
  color: var(--primary) !important;
  background: rgba(245,180,0,.08) !important;
  border-color: rgba(245,180,0,.2) !important;
}

/* Order track dark */
html[data-theme="dark"] .order-track-card {
  background: var(--surface) !important;
  border-color: var(--border-strong) !important;
}

/* Flash banner dark */
html[data-theme="dark"] .flash-banner,
html[data-theme="dark"] .flash-banner-v2 {
  background: linear-gradient(135deg, rgba(245,180,0,.08), rgba(230,168,0,.05)) !important;
  border-color: rgba(245,180,0,.2) !important;
}

/* Timer dark */
html[data-theme="dark"] .timer-block-v2 {
  background: var(--surface-2) !important;
  border-color: var(--border-strong) !important;
}
html[data-theme="dark"] .timer-num-v2 { color: var(--text) !important; }
html[data-theme="dark"] .timer-lbl-v2 { color: var(--text-faint) !important; }

/* Body dark background */
html[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, rgba(245,180,0,.07), rgba(245,180,0,.04)) !important;
}

/* Scroll-to-top dark */
html[data-theme="dark"] .scroll-top-btn {
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border: 1px solid var(--border) !important;
}

/* ══════════════════════════════════════════════
   28. ADMIN TABLE — Styles complets light/dark
══════════════════════════════════════════════ */
html[data-theme="light"] .admin-table td,
html[data-theme="light"] .admin-table th,
html:not([data-theme]) .admin-table td,
html:not([data-theme]) .admin-table th {
  color: var(--text);
}
html[data-theme="light"] .admin-table tbody tr:hover,
html:not([data-theme]) .admin-table tbody tr:hover {
  background: var(--surface-2);
}

/* ══════════════════════════════════════════════
   29. TYPOGRAPHIE — Améliorations globales
══════════════════════════════════════════════ */

/* Titres de page */
.page-title {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.4px;
  line-height: 1.2;
}

.section-h2 {
  font-size: clamp(20px, 3vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.3px;
}

/* Sous-titres */
.section-sub {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 600px;
}

/* Prix */
.price-main {
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: -0.5px;
}

.price-old {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-faint);
  text-decoration: line-through;
}

/* Badge remise */
.discount-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
}

/* ══════════════════════════════════════════════
   30. PRODUIT PAGE — Améliorations
══════════════════════════════════════════════ */
.prod-detail-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.prod-detail-info { padding: 24px; }

.prod-detail-name {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.25;
}

.prod-detail-desc {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 20px;
}

/* Durée/options */
.duration-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.duration-option {
  padding: 8px 16px;
  border-radius: var(--radius);
  border: 1.5px solid var(--border);
  background: var(--surface-2);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.duration-option:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: rgba(245,180,0,.06);
}

.duration-option.selected {
  border-color: var(--primary);
  background: rgba(245,180,0,.12);
  color: #7a5c00;
  font-weight: 700;
}

html[data-theme="dark"] .duration-option.selected {
  color: var(--primary);
  background: rgba(245,180,0,.14);
}

/* ══════════════════════════════════════════════
   31. PANIER / CHECKOUT
══════════════════════════════════════════════ */
.cart-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:last-child { border-bottom: none; }

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

.cart-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-meta {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

.cart-item-price {
  font-size: 15px;
  font-weight: 800;
  color: var(--primary);
  white-space: nowrap;
}

.cart-summary {
  background: var(--surface-2);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-top: 16px;
}

.cart-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  font-size: 13px;
  color: var(--text-muted);
}

.cart-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 8px;
  padding-top: 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--text);
}

.cart-summary-row.total .amount { color: var(--primary); }

/* ══════════════════════════════════════════════
   32. PAIEMENT SUCCESS / ECHEC
══════════════════════════════════════════════ */
.payment-result-wrap {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.payment-result-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px 32px;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.payment-result-icon { font-size: 56px; margin-bottom: 16px; }

.payment-result-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.payment-result-sub {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 24px;
}

/* ══════════════════════════════════════════════
   33. DASHBOARD CLIENT — Sections améliorées
══════════════════════════════════════════════ */
.client-dash-header {
  padding: 20px 0 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.client-dash-greeting {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
}

.client-dash-greeting span { color: var(--primary); }

.client-dash-sub {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* Stats rapides client */
.client-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 24px;
}

.client-stat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  text-align: center;
  transition: box-shadow var(--transition);
}

.client-stat-card:hover { box-shadow: var(--shadow-md); }

.client-stat-value {
  font-size: 24px;
  font-weight: 900;
  color: var(--primary);
  line-height: 1;
  margin-bottom: 4px;
}

.client-stat-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

/* Section titre dashboard */
.dash-section-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dash-section-title::before {
  content: '';
  width: 3px;
  height: 16px;
  background: var(--primary);
  border-radius: 2px;
}

/* ══════════════════════════════════════════════
   34. MODALS — Styles cohérents
══════════════════════════════════════════════ */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
}

.modal-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.modal-close:hover { background: var(--danger-bg); border-color: var(--danger-border); color: var(--danger); }

.modal-body { padding: 20px; }

.modal-footer {
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

/* ══════════════════════════════════════════════
   35. ACCESSIBILITÉ — Contraste minimum
══════════════════════════════════════════════ */

/* Ensure minimum contrast on light mode */
html[data-theme="light"] .form-label,
html:not([data-theme]) .form-label {
  color: #1E293B;
}

/* Texte sur fond jaune/primary toujours sombre */
.btn-primary,
.btn-primary *,
.filter-chip.active,
.filter-btn.active,
.cat-pill.active {
  color: #0F172A !important;
}

/* ══════════════════════════════════════════════
   36. ANIMATIONS & TRANSITIONS
══════════════════════════════════════════════ */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-ring {
  0%   { box-shadow: 0 0 0 0 rgba(245,180,0,0.4); }
  70%  { box-shadow: 0 0 0 8px rgba(245,180,0,0); }
  100% { box-shadow: 0 0 0 0 rgba(245,180,0,0); }
}

.animate-fadeIn { animation: fadeIn 0.3s ease forwards; }
.animate-slideUp { animation: slideUp 0.35s ease forwards; }
.pulse-primary { animation: pulse-ring 2s infinite; }

/* Transition theme smooth */
html.theme-transitioning,
html.theme-transitioning *,
html.theme-transitioning *::before,
html.theme-transitioning *::after {
  transition: background-color 350ms ease, border-color 350ms ease, color 250ms ease, box-shadow 250ms ease !important;
}
html.theme-transitioning *[style*="animation"],
html.theme-transitioning canvas { transition: none !important; }

/* ══════════════════════════════════════════════
   37. NAVIGATION DROPDOWN — Dark mode
══════════════════════════════════════════════ */
html[data-theme="dark"] .nav-dropdown {
  background: rgba(15,23,42,.97) !important;
  border-color: rgba(255,255,255,.10) !important;
  box-shadow: 0 30px 80px rgba(0,0,0,.6) !important;
}
html[data-theme="dark"] .nav-dd-item { color: var(--text-muted) !important; }
html[data-theme="dark"] .nav-dd-item:hover {
  background: rgba(245,212,38,.08) !important;
  color: var(--text) !important;
}
html[data-theme="dark"] .nav-dd-ico { background: rgba(255,255,255,.06) !important; }
html[data-theme="dark"] .nav-dd-count { color: var(--text-faint) !important; }

/* ══════════════════════════════════════════════
   38. DARK MODE — Body et sub-cartes
══════════════════════════════════════════════ */
html[data-theme="dark"] .sub-card,
html[data-theme="dark"] .ref-card {
  background: var(--surface) !important;
  border-color: var(--border) !important;
}

html[data-theme="dark"] .faq-item { border-color: var(--border) !important; }
html[data-theme="dark"] .faq-q {
  background: var(--surface-2) !important;
  color: var(--text) !important;
}
html[data-theme="dark"] .faq-q:hover { background: var(--surface-3) !important; }
html[data-theme="dark"] .faq-item.open .faq-q {
  background: rgba(245,180,0,.08) !important;
  color: var(--primary) !important;
}

html[data-theme="dark"] .section-alt {
  background: linear-gradient(180deg, rgba(30,41,59,.08) 0%, var(--bg) 100%) !important;
}

html[data-theme="dark"] .section-dark {
  background: linear-gradient(145deg, #141E30, #1A2540) !important;
}

html[data-theme="dark"] #splashScreen { background: var(--bg) !important; }
html[data-theme="dark"] #notifPrompt {
  background: var(--surface) !important;
  border-color: rgba(245,180,0,.2) !important;
}

/* Trust items dark */
html[data-theme="dark"] .trust-bar {
  background: linear-gradient(90deg, rgba(15,23,42,.95) 0%, rgba(15,23,42,.6) 50%, rgba(15,23,42,.95) 100%) !important;
  border-color: rgba(255,255,255,.06) !important;
}
html[data-theme="dark"] .trust-item,
html[data-theme="dark"] .trust-item-v2 {
  color: rgba(255,255,255,.7) !important;
}
html[data-theme="dark"] .trust-item:hover,
html[data-theme="dark"] .trust-item-v2:hover {
  color: #fff !important;
}

/* Why/How dark */
html[data-theme="dark"] .why-ico-wrap {
  background: linear-gradient(135deg,rgba(245,180,0,.12),rgba(230,168,0,.08)) !important;
  border-color: rgba(245,180,0,.2) !important;
}
html[data-theme="dark"] .why-card-title,
html[data-theme="dark"] .how-card-title { color: var(--text) !important; }
html[data-theme="dark"] .why-card-desc { color: var(--text-muted) !important; }

/* Skeleton dark */
html[data-theme="dark"] .skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.04) 0%, rgba(255,255,255,.08) 50%, rgba(255,255,255,.04) 100%) !important;
  background-size: 200% 100% !important;
}

/* Mobile CTA bar dark */
html[data-theme="dark"] .mobile-cta-bar {
  background: rgba(15,23,42,.97) !important;
  border-top-color: rgba(255,255,255,.08) !important;
}

/* Fav btn dark */
html[data-theme="dark"] .fav-btn {
  background: rgba(0,0,0,.55) !important;
  border-color: transparent !important;
}

/* Buttons dark mode overrides */
html[data-theme="dark"] .btn-ghost {
  background: rgba(255,255,255,.06) !important;
  border-color: rgba(255,255,255,.12) !important;
  color: var(--text-muted) !important;
}
html[data-theme="dark"] .btn-ghost:hover {
  background: rgba(255,255,255,.10) !important;
  color: var(--text) !important;
}
html[data-theme="dark"] .btn-outline {
  border-color: rgba(255,255,255,.18) !important;
  color: var(--text-muted) !important;
}
html[data-theme="dark"] .btn-outline:hover {
  border-color: var(--primary) !important;
  background: rgba(245,180,0,.08) !important;
  color: var(--primary) !important;
}

/* Cart dark */
html[data-theme="dark"] .cart-drawer {
  background: var(--surface) !important;
  border-left-color: var(--border) !important;
}
html[data-theme="dark"] .cart-head,
html[data-theme="dark"] .cart-foot {
  background: var(--surface-2) !important;
  border-color: var(--border) !important;
}

/* Wheel modal dark */
html[data-theme="dark"] #wheelModal > div:first-child {
  background: rgba(15,23,42,.97) !important;
}

/* Drawer dark items */
html[data-theme="dark"] .drawer-nav-item { color: rgba(255,255,255,.75) !important; }
html[data-theme="dark"] .drawer-nav-item:hover {
  background: rgba(255,255,255,.05) !important;
  color: #fff !important;
}
html[data-theme="dark"] .drawer-nav-item.active {
  color: var(--primary) !important;
  background: rgba(245,180,0,.06) !important;
}

/* Bottom nav dark */
html[data-theme="dark"] .bottom-nav,
html[data-theme="dark"] #bottomNav {
  background: rgba(15,23,42,.97) !important;
  border-top-color: rgba(255,255,255,.07) !important;
}
html[data-theme="dark"] .bnav-item { color: rgba(255,255,255,.4) !important; }
html[data-theme="dark"] .bnav-item.active,
html[data-theme="dark"] .bnav-item:hover { color: var(--primary) !important; }

/* Search drop dark */
html[data-theme="dark"] .search-drop {
  background: rgba(15,23,42,.99) !important;
  border-color: rgba(255,255,255,.1) !important;
}
html[data-theme="dark"] .sdrop-item { color: rgba(255,255,255,.8) !important; }
html[data-theme="dark"] .sdrop-item:hover { background: rgba(255,255,255,.07) !important; }

/* Scrollbar dark */
html[data-theme="dark"] ::-webkit-scrollbar-track { background: var(--surface); }
html[data-theme="dark"] ::-webkit-scrollbar-thumb { background: var(--primary); }

/* ══════════════════════════════════════════════
   39. PAGEBREADCRUMB & UI UTILS
══════════════════════════════════════════════ */
html:not([data-theme="dark"]) .page-breadcrumb span { color: var(--text-muted) !important; }
html:not([data-theme="dark"]) .page-breadcrumb span:last-child { color: var(--text) !important; }
html[data-theme="dark"] .page-breadcrumb span:not(:last-child):hover { color: var(--primary) !important; }

/* ══════════════════════════════════════════════
   40. LOGO en light mode
══════════════════════════════════════════════ */
html:not([data-theme="dark"]) .logo-sen { color: var(--text) !important; }
html:not([data-theme="dark"]) .logo-mkt { display: none !important; }
html[data-theme="dark"] .logo-sen { color: #fff !important; }

/* ══════════════════════════════════════════════
   41. NAV ITEMS — uniformité light/dark mode
      Supprime tout encadré/bordure sur les items,
      y compris le dropdown Catégories
══════════════════════════════════════════════ */
.sv-desktop-nav .nav-item,
.sv-desktop-nav .nav-item-dropdown {
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
}
/* Light mode : couleur lisible sur fond blanc */
html:not([data-theme="dark"]) .sv-desktop-nav .nav-item {
  color: rgba(15,23,42,0.6) !important;
  border: none !important;
  outline: none !important;
  background: transparent !important;
}
html:not([data-theme="dark"]) .sv-desktop-nav .nav-item:hover {
  color: #0F172A !important;
  background: rgba(0,0,0,0.05) !important;
}
html:not([data-theme="dark"]) .sv-desktop-nav .nav-item.active {
  color: #0F172A !important;
  background: transparent !important;
}
html:not([data-theme="dark"]) .sv-desktop-nav .nav-item.active::after {
  background: linear-gradient(90deg, #F5B400, #E6A800) !important;
}
/* Dark mode nav */
html[data-theme="dark"] .sv-desktop-nav .nav-item {
  color: rgba(255,255,255,0.55) !important;
  border: none !important;
  background: transparent !important;
}
html[data-theme="dark"] .sv-desktop-nav .nav-item:hover {
  color: #fff !important;
  background: rgba(255,255,255,0.07) !important;
}
html[data-theme="dark"] .sv-desktop-nav .nav-item.active {
  color: #fff !important;
}

/* ══════════════════════════════════════════════
   41. TRANSITIONS PROPRES — Thème
══════════════════════════════════════════════ */
* {
  transition-property: background-color, border-color, color, box-shadow;
  transition-duration: 0.15s;
  transition-timing-function: ease;
}

/* Exceptions — éléments qui ne doivent pas transitionner */
img, svg, canvas, video,
.no-transition,
.btn:active,
input[type="range"],
[style*="animation"],
.skeleton { transition: none !important; }
