/* ============================================================
   ROUTINES — Labo POC Up-me
   Styles custom (purement complémentaires de Velzon Bootstrap 5)
   Aucune redéfinition des classes Bootstrap. On préfixe tout en .route-*

   Sommaire
   --------
   1.  Variables & tokens
   2.  Shell (wrapper / topbar / subnav / main)
   3.  Cockpit (hero / streak / KPIs / today / energy / quick)
   4.  Bibliothèque (chips / filtres / cards)
   5.  Mes routines (grid / cards / list)
   6.  Studio (builder, drag & drop, suggestions)
   7.  Planning (grille hebdo)
   8.  Push (preview, history)
   9.  Tracker (heatmap, history)
   10. Stats
   11. Coach IA
   12. Communauté
   13. Réglages
   14. Modales (overrides légers)
   15. FAB / Mic / Confettis
   16. Tooltips & utilities
   17. Dark mode adaptations
   18. Responsive (mobile)
   19. Animations & keyframes
   ============================================================ */


/* =============================================================
   1. VARIABLES & TOKENS
   ============================================================= */

:root {
  /* Routines : palette dérivée des couleurs Velzon */
  --route-radius: 0.85rem;
  --route-radius-sm: 0.5rem;
  --route-radius-lg: 1.2rem;

  --route-shadow-card: 0 1px 2px rgba(56, 65, 74, 0.04);
  --route-shadow-card-hover: 0 8px 24px rgba(56, 65, 74, 0.12);
  --route-shadow-elevated: 0 14px 38px rgba(56, 65, 74, 0.16);

  --route-transition-base: 200ms cubic-bezier(0.4, 0, 0.2, 1);
  --route-transition-slow: 400ms cubic-bezier(0.4, 0, 0.2, 1);

  /* Couleurs domaines (cohérent Velzon soft-* mais avec teintes propres) */
  --route-color-sport: #ef476f;
  --route-color-sleep: #6366f1;
  --route-color-hygiene: #06b6d4;
  --route-color-work: #3b82f6;
  --route-color-mindfulness: #8b5cf6;
  --route-color-learning: #f59e0b;
  --route-color-creativity: #ec4899;
  --route-color-family: #10b981;
  --route-color-nutrition: #84cc16;
  --route-color-finance: #14b8a6;

  /* Heatmap — 5 niveaux */
  --route-heat-0: #f1f3f5;
  --route-heat-1: #c7e6cd;
  --route-heat-2: #79c890;
  --route-heat-3: #2da563;
  --route-heat-4: #0f6e3a;

  /* Subnav blur */
  --route-subnav-bg: rgba(255, 255, 255, 0.85);
  --route-topbar-bg: #fff;
}

[data-bs-theme="dark"] {
  --route-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.18);
  --route-shadow-card-hover: 0 8px 24px rgba(0, 0, 0, 0.36);
  --route-shadow-elevated: 0 14px 38px rgba(0, 0, 0, 0.55);

  --route-heat-0: #1a2332;
  --route-heat-1: #1d4a36;
  --route-heat-2: #2d7956;
  --route-heat-3: #46b07c;
  --route-heat-4: #7adfac;

  --route-subnav-bg: rgba(31, 41, 55, 0.85);
  --route-topbar-bg: #1f2937;
}


/* =============================================================
   2. SHELL : WRAPPER / TOPBAR / SUBNAV / MAIN
   ============================================================= */

.route-shell {
  background: var(--vz-body-bg);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  font-family: var(--vz-font-sans-serif);
}

.route-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.route-topbar {
  position: sticky;
  top: 0;
  background: var(--route-topbar-bg);
  border-bottom: 1px solid var(--vz-border-color-translucent);
  z-index: 1020;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.route-topbar-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.route-topbar-left {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-grow: 1;
  min-width: 0;
}

.route-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--vz-heading-color);
  font-weight: 600;
  font-size: 1.1rem;
}

.route-brand i {
  font-size: 1.5rem;
  color: var(--vz-primary);
}

.route-brand-text {
  letter-spacing: -0.5px;
}

.route-breadcrumb {
  border-left: 1px solid var(--vz-border-color);
  padding-left: 1.25rem;
  min-width: 0;
}

.route-breadcrumb h5 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.route-breadcrumb small {
  color: var(--vz-text-muted);
  font-size: 0.78rem;
}

.route-topbar-right {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* --- Subnav ---
   Pas de sticky/backdrop-filter en intégration Up-me native :
   le topbar Velzon a déjà son propre sticky, et le backdrop-filter
   crée un stacking context qui peut intercepter les clics.
   On garde un look propre sans empiler les couches. */

.route-subnav {
  background: transparent;
  border-bottom: 1px solid var(--vz-border-color-translucent);
  margin-bottom: 1rem;
}

/* Subnav (Cockpit / Bibliothèque / etc.) sur une seule ligne avec scrollbar
   fine visible si débordement, et molette verticale → scroll horizontal via
   listener attaché en JS. */
.route-subnav-scroll {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem 0.75rem;
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--vz-border-color) transparent;
}

.route-subnav-scroll::-webkit-scrollbar {
  height: 8px;
}

.route-subnav-scroll::-webkit-scrollbar-track {
  background: transparent;
}

.route-subnav-scroll::-webkit-scrollbar-thumb {
  background: var(--vz-border-color);
  border-radius: 4px;
}

.route-subnav-scroll::-webkit-scrollbar-thumb:hover {
  background: var(--vz-text-muted);
}

.route-subnav .nav-pills {
  flex-wrap: nowrap;
  gap: 0.25rem;
}

.route-subnav .nav-pills .nav-link {
  white-space: nowrap;
  font-weight: 500;
  font-size: 0.875rem;
  padding: 0.5rem 0.875rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--vz-body-color);
  border-radius: var(--route-radius-sm);
  transition: all var(--route-transition-base);
}

.route-subnav .nav-pills .nav-link i {
  font-size: 1rem;
}

.route-subnav .nav-pills .nav-link:hover:not(.active) {
  background: var(--vz-light);
  color: var(--vz-primary);
}

.route-subnav .nav-pills .nav-link.active {
  background: var(--vz-primary);
  color: #fff;
}

.route-subnav .nav-pills .nav-link .badge {
  font-size: 0.65rem;
  padding: 0.15em 0.45em;
}

/* --- Main --- */

.route-main {
  flex-grow: 1;
  max-width: 1600px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem;
}

.route-view {
  animation: routeViewIn var(--route-transition-slow);
}

.route-view[hidden] {
  display: none !important;
}

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


/* =============================================================
   3. COCKPIT
   ============================================================= */

.route-hero-card {
  background: linear-gradient(135deg, rgba(63, 92, 246, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
  border: 1px solid rgba(63, 92, 246, 0.18);
  overflow: hidden;
  position: relative;
}

.route-hero-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

[data-bs-theme="dark"] .route-hero-card {
  background: linear-gradient(135deg, rgba(63, 92, 246, 0.22) 0%, rgba(124, 58, 237, 0.18) 100%);
}

[data-bs-theme="dark"] .route-hero-card::before {
  background: radial-gradient(circle, rgba(255, 255, 255, 0.05) 0%, transparent 60%);
}

.route-hero-card .card-body {
  position: relative;
  z-index: 2;
}

/* --- Streak bubble --- */

.route-streak-bubble {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  margin: 0 auto;
  background: linear-gradient(135deg, #f59e0b 0%, #ef4444 100%);
  border-radius: 50%;
  color: #fff;
  position: relative;
  box-shadow: 0 12px 28px rgba(239, 68, 68, 0.36);
  animation: streakBreathe 3s ease-in-out infinite;
}

.route-streak-bubble::before {
  content: '';
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.route-streak-flame {
  font-size: 2rem;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.route-streak-num {
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  font-family: var(--vz-font-secondary);
}

.route-streak-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  opacity: 0.92;
  margin-top: 0.25rem;
}

@keyframes streakBreathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}

/* --- KPIs --- */

.route-kpi-card {
  height: 100%;
  transition: transform var(--route-transition-base), box-shadow var(--route-transition-base);
}

.route-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--route-shadow-card-hover);
}

/* --- Today list --- */

.route-today-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.route-today-item {
  display: flex;
  align-items: center;
  gap: 0.875rem;
  padding: 0.875rem 1rem;
  border-radius: var(--route-radius-sm);
  background: var(--vz-light);
  border: 1px solid transparent;
  transition: all var(--route-transition-base);
  cursor: pointer;
}

.route-today-item:hover {
  border-color: var(--vz-primary);
  background: var(--vz-card-bg);
  box-shadow: var(--route-shadow-card);
}

.route-today-item .route-today-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.route-today-item .route-today-info {
  flex-grow: 1;
  min-width: 0;
}

.route-today-item .route-today-title {
  font-weight: 600;
  margin: 0;
}

.route-today-item .route-today-meta {
  font-size: 0.78rem;
  color: var(--vz-text-muted);
}

.route-today-item .route-today-time {
  font-weight: 600;
  color: var(--vz-primary);
  font-family: var(--vz-font-secondary);
  white-space: nowrap;
}

.route-today-item.is-done {
  opacity: 0.65;
}

.route-today-item.is-done .route-today-title {
  text-decoration: line-through;
}

.route-today-item.is-now {
  border-color: var(--vz-success);
  background: rgba(10, 179, 156, 0.08);
}

.route-today-item.is-now::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--vz-success);
  border-radius: 50%;
  animation: nowPulse 1.5s ease-in-out infinite;
}

@keyframes nowPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.4); }
}

/* --- Energy picker --- */

.route-energy-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.route-energy-btn {
  flex: 1;
  min-width: 60px;
  padding: 0.6rem 0.4rem;
  border-radius: var(--route-radius-sm);
  background: var(--vz-light);
  border: 2px solid transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: all var(--route-transition-base);
  font-size: 0.75rem;
  color: var(--vz-text-muted);
}

.route-energy-btn:hover {
  background: var(--vz-card-bg);
  border-color: var(--vz-border-color);
}

.route-energy-btn.active {
  background: rgba(63, 92, 246, 0.12);
  border-color: var(--vz-primary);
  color: var(--vz-primary);
  font-weight: 600;
}

.route-energy-emoji {
  font-size: 1.5rem;
}

.route-energy-label {
  font-size: 0.72rem;
}

/* --- Mini heatmap --- */

.route-mini-heatmap {
  display: grid;
  grid-template-columns: repeat(28, 1fr);
  gap: 3px;
}

.route-mini-heatmap-cell {
  aspect-ratio: 1;
  border-radius: 2px;
  background: var(--route-heat-0);
  transition: transform var(--route-transition-base);
}

.route-mini-heatmap-cell:hover {
  transform: scale(1.4);
  box-shadow: 0 0 0 2px var(--vz-primary);
}

.route-mini-heatmap-cell.heat-1 { background: var(--route-heat-1); }
.route-mini-heatmap-cell.heat-2 { background: var(--route-heat-2); }
.route-mini-heatmap-cell.heat-3 { background: var(--route-heat-3); }
.route-mini-heatmap-cell.heat-4 { background: var(--route-heat-4); }

/* --- Quick actions --- */

.route-quick-actions {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.6) 0%, rgba(255, 255, 255, 0.3) 100%);
}

[data-bs-theme="dark"] .route-quick-actions {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.04) 0%, rgba(255, 255, 255, 0.02) 100%);
}

.route-quick-btn {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  border-radius: var(--route-radius);
  background: var(--vz-card-bg);
  border: 1px solid var(--vz-border-color);
  cursor: pointer;
  transition: all var(--route-transition-base);
  color: var(--vz-body-color);
}

.route-quick-btn:hover {
  border-color: var(--vz-primary);
  background: rgba(63, 92, 246, 0.06);
  transform: translateY(-2px);
}

.route-quick-btn i {
  font-size: 1.75rem;
  color: var(--vz-primary);
}

.route-quick-btn span {
  font-weight: 500;
  font-size: 0.875rem;
}


/* =============================================================
   4. BIBLIOTHÈQUE
   ============================================================= */

/* --- Domain chips --- */

/* Chips domaine sur une seule ligne avec scroll horizontal si ça déborde.
   Scrollbar fine et visible pour que l'utilisateur sache qu'il peut scroller. */
.route-domain-chips {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--vz-border-color) transparent;
}

.route-domain-chips::-webkit-scrollbar {
  height: 8px;
}

.route-domain-chips::-webkit-scrollbar-track {
  background: transparent;
}

.route-domain-chips::-webkit-scrollbar-thumb {
  background: var(--vz-border-color);
  border-radius: 4px;
}

.route-domain-chips::-webkit-scrollbar-thumb:hover {
  background: var(--vz-text-muted);
}

.route-domain-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.875rem;
  border-radius: 999px;
  background: var(--vz-light);
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 0.85rem;
  color: var(--vz-body-color);
  transition: all var(--route-transition-base);
  font-weight: 500;
  flex-shrink: 0;
  white-space: nowrap;
}

.route-domain-chip:hover {
  background: var(--vz-card-bg);
  border-color: var(--vz-border-color);
}

.route-domain-chip.active {
  background: var(--vz-primary);
  color: #fff;
  border-color: var(--vz-primary);
}

.route-domain-chip i {
  font-size: 1rem;
}

.route-domain-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  background: rgba(0, 0, 0, 0.08);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
}

.route-domain-chip.active .route-domain-count {
  background: rgba(255, 255, 255, 0.25);
}

/* --- Filter row --- */

.route-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.route-filter-item {
  min-width: 140px;
}

.route-filter-item .search-box {
  position: relative;
}

.route-filter-item .search-box .search-icon {
  position: absolute;
  right: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--vz-text-muted);
  pointer-events: none;
}

.route-filter-item .search-box input {
  padding-right: 2rem;
}

/* --- Library grid --- */

.route-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
}

.route-library-card {
  position: relative;
  /* Fond blanc forcé en explicite (#fff) pour éviter qu'une variable CSS
     redéfinie ailleurs ne donne une teinte grisée. Cohérence Dosage. */
  background: #fff;
  border-radius: var(--route-radius);
  overflow: hidden;
  box-shadow: var(--route-shadow-card);
  border: 1px solid var(--vz-border-color);
  transition: all var(--route-transition-base);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

[data-bs-theme="dark"] .route-library-card {
  background: var(--vz-card-bg);
}

.route-library-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--route-shadow-card-hover);
  border-color: var(--vz-primary);
}

.route-library-card-banner {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.route-library-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.18) 100%);
}

.route-library-card-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex-grow: 1;
}

.route-library-card-title {
  font-weight: 600;
  /* fs-15 (0.9375rem) — aligné Velzon card-title + cohérent avec Dosage. */
  font-size: 0.9375rem;
  color: var(--vz-heading-color);
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.route-library-card-source {
  font-size: 0.75rem;
  color: var(--vz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.route-library-card-desc {
  font-size: 0.85rem;
  color: var(--vz-body-color);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  flex-grow: 1;
}

.route-library-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.72rem;
  color: var(--vz-text-muted);
  align-items: center;
}

.route-library-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.route-library-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-top: 0.25rem;
}

.route-library-card-tag {
  font-size: 0.7rem;
  padding: 0.15rem 0.5rem;
  background: var(--vz-light);
  border-radius: 999px;
  color: var(--vz-text-muted);
}

.route-library-card-actions {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--vz-border-color);
  /* Pas de background : la card reste blanche bout-en-bout (cohérence Dosage). */
}

.route-library-card-actions .btn {
  flex: 1;
  font-size: 0.8rem;
}

/* Badge "signature" coin du card */

.route-library-card-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: #1f2937;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.route-library-card-badge i {
  color: #f59e0b;
}


/* =============================================================
   5. MES ROUTINES
   ============================================================= */

.route-mine-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1rem;
}

.route-mine-card {
  /* Fond blanc forcé pour cohérence Dosage. */
  background: #fff;
  border-radius: var(--route-radius);
  overflow: hidden;
  box-shadow: var(--route-shadow-card);
  border: 1px solid var(--vz-border-color);
  transition: all var(--route-transition-base);
  display: flex;
  flex-direction: column;
}

[data-bs-theme="dark"] .route-mine-card {
  background: var(--vz-card-bg);
}

.route-mine-card:hover {
  box-shadow: var(--route-shadow-card-hover);
  border-color: var(--vz-primary);
}

.route-mine-card-strip {
  height: 6px;
  width: 100%;
}

.route-mine-card-body {
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.route-mine-card-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.route-mine-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--route-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  flex-shrink: 0;
}

.route-mine-card-name {
  font-weight: 600;
  /* fs-15 — uniforme avec library card title et Dosage card title. */
  font-size: 0.9375rem;
  margin: 0;
  flex-grow: 1;
}

.route-mine-card-status {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.3px;
}

.route-mine-card-status.is-active {
  background: rgba(10, 179, 156, 0.12);
  color: #0ab39c;
}

.route-mine-card-status.is-paused {
  background: rgba(247, 184, 75, 0.16);
  color: #d68a1e;
}

.route-mine-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--vz-text-muted);
}

.route-mine-card-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.route-mine-card-bar {
  height: 4px;
  background: var(--vz-light);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.25rem;
}

.route-mine-card-bar-fill {
  height: 100%;
  background: var(--vz-primary);
  transition: width var(--route-transition-slow);
}

.route-mine-card-actions {
  display: flex;
  gap: 0.4rem;
  padding: 0.5rem 0.75rem;
  border-top: 1px solid var(--vz-border-color);
}

.route-mine-card-actions .btn {
  font-size: 0.75rem;
  padding: 0.3rem 0.5rem;
}

.route-mine-card-actions .btn-icon {
  padding: 0.3rem 0.45rem;
}

.route-mine-card-actions-grow {
  flex-grow: 1;
}


/* =============================================================
   6. STUDIO (BUILDER)
   ============================================================= */

.route-studio-meta,
.route-studio-schedule,
.route-studio-recap,
.route-studio-steps,
.route-studio-suggestions {
  margin-bottom: 1rem;
}

.route-studio-recap {
  background: linear-gradient(135deg, rgba(63, 92, 246, 0.06) 0%, rgba(124, 58, 237, 0.04) 100%);
  border: 1px dashed var(--vz-primary);
}

[data-bs-theme="dark"] .route-studio-recap {
  background: linear-gradient(135deg, rgba(63, 92, 246, 0.12) 0%, rgba(124, 58, 237, 0.08) 100%);
}

/* Color picker */

.route-color-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
  padding-top: 0.4rem;
}

.route-color-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all var(--route-transition-base);
  position: relative;
}

.route-color-swatch:hover {
  transform: scale(1.15);
}

.route-color-swatch.active {
  border-color: var(--vz-body-color);
  box-shadow: 0 0 0 2px var(--vz-card-bg) inset;
}

.route-color-swatch.active::after {
  content: '\eb7a';
  font-family: 'remixicon';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

/* Days picker */

.route-days-picker {
  display: flex;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.route-day-chip {
  flex: 1;
  min-width: 36px;
  height: 36px;
  border-radius: var(--route-radius-sm);
  background: var(--vz-light);
  border: 1px solid transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 0.8rem;
  color: var(--vz-body-color);
  transition: all var(--route-transition-base);
}

.route-day-chip:hover {
  border-color: var(--vz-border-color);
}

.route-day-chip.active {
  background: var(--vz-primary);
  color: #fff;
  border-color: var(--vz-primary);
}

/* Steps drag & drop */

.route-steps-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.route-step-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: var(--vz-light);
  border: 1px solid transparent;
  border-radius: var(--route-radius-sm);
  cursor: grab;
  transition: all var(--route-transition-base);
}

.route-step-item:hover {
  background: var(--vz-card-bg);
  border-color: var(--vz-primary);
  box-shadow: var(--route-shadow-card);
}

.route-step-item.sortable-ghost {
  opacity: 0.4;
  background: var(--vz-card-bg);
  border: 2px dashed var(--vz-primary);
}

.route-step-item.sortable-chosen {
  cursor: grabbing;
}

.route-step-handle {
  color: var(--vz-text-muted);
  cursor: grab;
  font-size: 1.1rem;
}

.route-step-icon {
  width: 36px;
  height: 36px;
  background: var(--vz-card-bg);
  border-radius: var(--route-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.route-step-info {
  flex-grow: 1;
  min-width: 0;
}

.route-step-title {
  font-weight: 500;
  margin: 0;
}

.route-step-meta {
  display: flex;
  gap: 0.6rem;
  font-size: 0.72rem;
  color: var(--vz-text-muted);
  margin-top: 0.1rem;
}

.route-step-type {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
}

.route-step-type.type-event {
  background: rgba(63, 92, 246, 0.14);
  color: var(--vz-primary);
}

.route-step-type.type-task {
  background: rgba(10, 179, 156, 0.14);
  color: #0ab39c;
}

.route-step-type.type-free_block {
  background: rgba(247, 184, 75, 0.16);
  color: #d68a1e;
}

.route-step-actions {
  display: flex;
  gap: 0.25rem;
}

.route-step-actions .btn-icon {
  width: 30px;
  height: 30px;
  font-size: 0.9rem;
  padding: 0;
}

/* Suggestions chips */

.route-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.route-suggestion-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: var(--vz-light);
  border: 1px dashed transparent;
  cursor: pointer;
  font-size: 0.8rem;
  color: var(--vz-body-color);
  transition: all var(--route-transition-base);
}

.route-suggestion-chip:hover {
  background: rgba(63, 92, 246, 0.1);
  border-color: var(--vz-primary);
  color: var(--vz-primary);
}

.route-suggestion-chip-icon {
  font-size: 1rem;
}


/* =============================================================
   7. PLANNING
   ============================================================= */

.route-planning-grid {
  display: grid;
  grid-template-columns: 60px repeat(7, 1fr);
  min-height: 600px;
}

.route-planning-cell {
  border-right: 1px solid var(--vz-border-color);
  border-bottom: 1px solid var(--vz-border-color);
  padding: 0.4rem;
  position: relative;
  min-height: 60px;
}

.route-planning-cell:last-child {
  border-right: none;
}

.route-planning-header {
  background: var(--vz-light);
  font-size: 0.78rem;
  font-weight: 600;
  text-align: center;
  padding: 0.6rem 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: var(--vz-body-color);
  position: sticky;
  top: 110px;
  z-index: 5;
}

.route-planning-header.is-today {
  background: rgba(63, 92, 246, 0.1);
  color: var(--vz-primary);
}

.route-planning-header-day {
  font-size: 1.25rem;
  display: block;
  font-weight: 700;
  margin-top: 0.1rem;
}

.route-planning-time {
  font-size: 0.7rem;
  color: var(--vz-text-muted);
  font-weight: 500;
  text-align: right;
  padding-right: 0.5rem;
  padding-top: 0.2rem;
  background: var(--vz-light);
}

.route-planning-block {
  position: absolute;
  left: 4px;
  right: 4px;
  border-radius: 4px;
  padding: 0.2rem 0.4rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  transition: all var(--route-transition-base);
}

.route-planning-block:hover {
  transform: scale(1.02);
  z-index: 10;
  box-shadow: var(--route-shadow-card-hover);
}

.route-planning-block.is-conflict {
  border: 2px dashed #fff;
  animation: pulseRing 1.5s ease-in-out infinite;
}

.route-planning-block-title {
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-planning-block-meta {
  font-size: 0.65rem;
  opacity: 0.85;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-planning-block.task-block {
  background: rgba(10, 179, 156, 0.18);
  color: #0ab39c;
  border: 1px solid #0ab39c;
}

.route-planning-block.free-block {
  background: rgba(247, 184, 75, 0.18);
  color: #d68a1e;
  border: 1px solid #d68a1e;
}

@keyframes pulseRing {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(245, 158, 11, 0); }
}

.route-planning-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.route-planning-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--vz-light);
  font-size: 0.78rem;
}

.route-planning-legend-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}


/* =============================================================
   8. PUSH AGENDA
   ============================================================= */

.route-push-routines {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  max-height: 280px;
  overflow-y: auto;
}

.route-push-routine-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.5rem 0.75rem;
  border-radius: var(--route-radius-sm);
  background: var(--vz-light);
  cursor: pointer;
  transition: all var(--route-transition-base);
  border: 1px solid transparent;
}

.route-push-routine-item:hover {
  background: var(--vz-card-bg);
  border-color: var(--vz-primary);
}

.route-push-routine-item input[type="checkbox"] {
  margin: 0;
  cursor: pointer;
}

.route-push-routine-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--route-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}

.route-push-routine-name {
  flex-grow: 1;
  font-size: 0.85rem;
  font-weight: 500;
}

.route-push-routine-meta {
  font-size: 0.7rem;
  color: var(--vz-text-muted);
}

.route-push-preview {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.route-push-day-group {
  border: 1px solid var(--vz-border-color);
  border-radius: var(--route-radius-sm);
  overflow: hidden;
}

.route-push-day-header {
  background: var(--vz-light);
  padding: 0.5rem 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
}

.route-push-day-count {
  font-size: 0.72rem;
  color: var(--vz-text-muted);
  margin-left: auto;
  font-weight: 400;
}

.route-push-day-items {
  padding: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.route-push-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 0.6rem;
  border-radius: var(--route-radius-sm);
  background: var(--vz-card-bg);
  border: 1px solid var(--vz-border-color);
  font-size: 0.78rem;
}

.route-push-item.is-conflict {
  border-color: var(--vz-warning);
  background: rgba(247, 184, 75, 0.06);
}

.route-push-item-time {
  font-weight: 600;
  color: var(--vz-primary);
  font-family: var(--vz-font-secondary);
  white-space: nowrap;
}

.route-push-item-type {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  flex-shrink: 0;
}

.route-push-item-type.type-event {
  background: rgba(63, 92, 246, 0.18);
  color: var(--vz-primary);
}

.route-push-item-type.type-task {
  background: rgba(10, 179, 156, 0.18);
  color: #0ab39c;
}

.route-push-item-title {
  flex-grow: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-push-item-conflict-badge {
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  background: rgba(247, 184, 75, 0.18);
  color: #d68a1e;
  border-radius: 999px;
  font-weight: 600;
}

.route-push-history {
  display: flex;
  flex-direction: column;
  max-height: 360px;
  overflow-y: auto;
}

.route-push-history-item {
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--vz-border-color);
  font-size: 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.route-push-history-item:last-child {
  border-bottom: none;
}

.route-push-history-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(10, 179, 156, 0.18);
  color: #0ab39c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.route-push-history-icon.is-rolled-back {
  background: rgba(245, 158, 11, 0.18);
  color: #d68a1e;
}

.route-push-history-info {
  flex-grow: 1;
  min-width: 0;
}

.route-push-history-title {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin: 0;
}

.route-push-history-meta {
  font-size: 0.7rem;
  color: var(--vz-text-muted);
}


/* =============================================================
   9. TRACKER
   ============================================================= */

.route-tracker-kpi {
  height: 100%;
}

.route-heatmap-large {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-bottom: 0.5rem;
}

.route-heat-week {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.route-heat-cell {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  background: var(--route-heat-0);
  cursor: pointer;
  transition: transform var(--route-transition-base);
  flex-shrink: 0;
}

.route-heat-cell:hover {
  transform: scale(1.5);
  box-shadow: 0 0 0 2px var(--vz-primary);
  position: relative;
  z-index: 10;
}

.route-heat-cell.heat-1 { background: var(--route-heat-1); }
.route-heat-cell.heat-2 { background: var(--route-heat-2); }
.route-heat-cell.heat-3 { background: var(--route-heat-3); }
.route-heat-cell.heat-4 { background: var(--route-heat-4); }

.route-heatmap-legend-cells {
  display: flex;
  gap: 3px;
  align-items: center;
}

.route-heatmap-legend-cells .route-heat-cell {
  cursor: default;
}

.route-history-list {
  max-height: 480px;
  overflow-y: auto;
}

.route-history-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--vz-border-color);
}

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

.route-history-date {
  text-align: center;
  width: 50px;
  flex-shrink: 0;
}

.route-history-date-day {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
}

.route-history-date-month {
  font-size: 0.7rem;
  color: var(--vz-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.route-history-info {
  flex-grow: 1;
  min-width: 0;
}

.route-history-title {
  font-weight: 500;
  margin: 0;
}

.route-history-meta {
  font-size: 0.75rem;
  color: var(--vz-text-muted);
}

.route-history-status {
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.route-history-status.is-done {
  background: rgba(10, 179, 156, 0.16);
  color: #0ab39c;
}

.route-history-status.is-partial {
  background: rgba(247, 184, 75, 0.18);
  color: #d68a1e;
}

.route-history-status.is-skipped {
  background: rgba(108, 117, 125, 0.18);
  color: #6c757d;
}


/* =============================================================
   10. STATS
   ============================================================= */

/* (charts via ApexCharts, pas de styling custom besoin) */


/* =============================================================
   11. COACH IA
   ============================================================= */

.route-coach-composer .route-method-btn.active,
.route-method-btn.active {
  background: var(--vz-primary);
  color: #fff;
  border-color: var(--vz-primary);
}

.route-coach-tips ul li {
  padding: 0.3rem 0;
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.route-coach-tips ul li::before {
  content: '\eb7a';
  font-family: 'remixicon';
  color: var(--vz-success);
  flex-shrink: 0;
}

.route-coach-result {
  min-height: 480px;
}

.route-coach-routine-card {
  border: 1px solid var(--vz-border-color);
  border-radius: var(--route-radius);
  padding: 1.25rem;
  background: var(--vz-card-bg);
  margin-bottom: 1rem;
}

.route-coach-routine-head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--vz-border-color);
}

.route-coach-routine-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--route-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.route-coach-routine-info h6 {
  margin: 0;
}

.route-coach-routine-info small {
  color: var(--vz-text-muted);
}

.route-coach-step {
  display: flex;
  gap: 0.75rem;
  padding: 0.5rem 0;
  align-items: flex-start;
}

.route-coach-step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--vz-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 600;
  flex-shrink: 0;
}

.route-coach-step-info {
  flex-grow: 1;
}

.route-coach-step-title {
  font-weight: 500;
  margin: 0;
}

.route-coach-step-desc {
  font-size: 0.78rem;
  color: var(--vz-text-muted);
  margin: 0;
}

.route-coach-step-time {
  font-size: 0.78rem;
  color: var(--vz-primary);
  font-family: var(--vz-font-secondary);
  font-weight: 500;
}

.route-coach-rationale {
  background: rgba(63, 92, 246, 0.06);
  border-left: 3px solid var(--vz-primary);
  padding: 0.75rem 1rem;
  border-radius: 0 var(--route-radius-sm) var(--route-radius-sm) 0;
  font-size: 0.85rem;
  margin-top: 0.75rem;
}


/* =============================================================
   12. COMMUNAUTÉ
   ============================================================= */

.route-community-tabs {
  display: flex;
  gap: 0.25rem;
  border-bottom: 1px solid var(--vz-border-color);
  margin-bottom: -1rem;
}

.route-community-tab {
  padding: 0.6rem 1.1rem;
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--vz-text-muted);
  border-bottom: 2px solid transparent;
  transition: all var(--route-transition-base);
}

.route-community-tab:hover {
  color: var(--vz-primary);
}

.route-community-tab.active {
  color: var(--vz-primary);
  border-bottom-color: var(--vz-primary);
}

.route-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem;
}

.route-community-card {
  background: var(--vz-card-bg);
  border-radius: var(--route-radius);
  overflow: hidden;
  box-shadow: var(--route-shadow-card);
  border: 1px solid var(--vz-border-color);
  display: flex;
  flex-direction: column;
  transition: all var(--route-transition-base);
}

.route-community-card:hover {
  box-shadow: var(--route-shadow-card-hover);
  transform: translateY(-2px);
}

.route-community-card-banner {
  height: 110px;
  position: relative;
  background-size: cover;
  background-position: center;
  background-color: var(--vz-secondary);
  display: flex;
  align-items: flex-end;
  padding: 0.75rem;
}

.route-community-card-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.55) 100%);
}

.route-community-card-author {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #fff;
}

.route-community-card-author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 700;
}

.route-community-card-author-name {
  font-size: 0.9rem;
  font-weight: 600;
}

.route-community-card-author-role {
  font-size: 0.7rem;
  opacity: 0.85;
}

.route-community-card-body {
  padding: 1rem;
  flex-grow: 1;
}

.route-community-card-title {
  font-weight: 600;
  margin: 0 0 0.4rem 0;
}

.route-community-card-quote {
  font-style: italic;
  color: var(--vz-text-muted);
  font-size: 0.85rem;
  border-left: 3px solid var(--vz-primary);
  padding-left: 0.75rem;
  margin: 0.6rem 0;
}

.route-community-card-summary {
  font-size: 0.85rem;
  color: var(--vz-body-color);
}

.route-community-card-foot {
  padding: 0.75rem 1rem;
  border-top: 1px solid var(--vz-border-color);
  display: flex;
  gap: 0.5rem;
}

.route-community-card-foot .btn {
  flex: 1;
  font-size: 0.8rem;
}


/* =============================================================
   13. RÉGLAGES
   ============================================================= */

/* (utilise les classes Velzon directement, rien à overrider) */


/* =============================================================
   14. MODALES (overrides légers)
   ============================================================= */

.modal-content {
  border-radius: var(--route-radius);
  border: none;
  box-shadow: var(--route-shadow-elevated);
}

.modal-header {
  border-bottom: 1px solid var(--vz-border-color);
  padding: 1rem 1.25rem;
}

.modal-footer {
  border-top: 1px solid var(--vz-border-color);
  padding: 1rem 1.25rem;
}


/* =============================================================
   15. FAB / MIC / CONFETTIS
   ============================================================= */

.route-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--vz-primary);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--route-shadow-elevated);
  cursor: pointer;
  z-index: 1050;
  transition: all var(--route-transition-base);
  display: none;
}

.route-fab:hover {
  transform: scale(1.08);
}

.route-fab.is-open {
  background: var(--vz-danger);
  transform: rotate(45deg);
}

@media (max-width: 768px) {
  .route-fab {
    display: flex;
  }
}

.route-mic-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.86);
  z-index: 1090;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: #fff;
  text-align: center;
  padding: 2rem;
}

.route-mic-pulse {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--vz-danger);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  position: relative;
  animation: micPulse 1.5s ease-in-out infinite;
}

.route-mic-pulse::before,
.route-mic-pulse::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--vz-danger);
  animation: micPulseRing 1.5s ease-out infinite;
}

.route-mic-pulse::after {
  animation-delay: 0.4s;
}

@keyframes micPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes micPulseRing {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

.route-mic-label {
  font-size: 1.25rem;
  font-weight: 600;
  margin: 0;
}

.route-mic-transcript {
  max-width: 500px;
  font-size: 1rem;
  font-style: italic;
  opacity: 0.85;
  margin: 0;
  min-height: 1.5rem;
}

.route-confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1095;
}


/* =============================================================
   16. TOOLTIPS & UTILITIES
   ============================================================= */

.route-info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--vz-light);
  color: var(--vz-text-muted);
  font-size: 0.7rem;
  cursor: help;
  margin-left: 0.25rem;
}

.route-info-tip:hover {
  background: var(--vz-primary);
  color: #fff;
}


/* =============================================================
   17. DARK MODE ADAPTATIONS
   ============================================================= */

[data-bs-theme="dark"] .route-today-item {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .route-energy-btn {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .route-energy-btn.active {
  background: rgba(63, 92, 246, 0.22);
}

[data-bs-theme="dark"] .route-domain-chip {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .route-domain-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

[data-bs-theme="dark"] .route-suggestion-chip {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .route-suggestion-chip:hover {
  background: rgba(63, 92, 246, 0.18);
}

[data-bs-theme="dark"] .route-step-item {
  background: rgba(255, 255, 255, 0.04);
}

[data-bs-theme="dark"] .route-step-icon {
  background: rgba(255, 255, 255, 0.06);
}

[data-bs-theme="dark"] .route-mine-card-bar {
  background: rgba(255, 255, 255, 0.06);
}


/* =============================================================
   18. RESPONSIVE
   ============================================================= */

@media (max-width: 1024px) {
  .route-topbar-inner {
    padding: 0.6rem 1rem;
  }

  .route-main {
    padding: 1rem;
  }

  .route-streak-bubble {
    width: 160px;
    height: 160px;
    margin-top: 1.5rem;
  }

  .route-streak-num {
    font-size: 2.75rem;
  }
}

@media (max-width: 768px) {
  .route-breadcrumb {
    border-left: none;
    padding-left: 0.5rem;
  }

  .route-breadcrumb h5 {
    font-size: 0.95rem;
  }

  .route-breadcrumb small {
    display: none;
  }

  .route-topbar-right .btn-icon {
    width: 38px;
    height: 38px;
  }

  .route-streak-bubble {
    width: 140px;
    height: 140px;
  }

  .route-streak-num {
    font-size: 2.4rem;
  }

  .route-library-grid,
  .route-mine-grid,
  .route-community-grid {
    grid-template-columns: 1fr;
  }

  .route-planning-grid {
    grid-template-columns: 50px repeat(7, minmax(80px, 1fr));
    overflow-x: auto;
  }

  .route-energy-row {
    gap: 0.3rem;
  }

  .route-energy-btn {
    min-width: 50px;
    padding: 0.5rem 0.3rem;
  }

  .route-energy-emoji {
    font-size: 1.25rem;
  }

  .route-energy-label {
    font-size: 0.65rem;
  }

  .route-quick-btn {
    padding: 1rem 0.5rem;
  }

  .route-quick-btn i {
    font-size: 1.4rem;
  }

  .route-domain-chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.5rem;
  }

  .route-domain-chip {
    flex-shrink: 0;
  }
}

@media (max-width: 480px) {
  .route-subnav-scroll {
    padding: 0.4rem 1rem;
  }

  .route-subnav .nav-pills .nav-link {
    padding: 0.4rem 0.65rem;
    font-size: 0.78rem;
  }

  .route-subnav .nav-pills .nav-link i {
    font-size: 0.95rem;
  }

  .route-subnav .nav-pills .nav-link span:not(.badge) {
    display: none;
  }
}


/* =============================================================
   19. ANIMATIONS & KEYFRAMES (compléments)
   ============================================================= */

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

.route-fade-item {
  animation: routeItemFadeIn 300ms ease-out both;
}

@keyframes routeShake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.route-shake {
  animation: routeShake 350ms ease-in-out;
}

@keyframes checkmarkPop {
  0% { transform: scale(0) rotate(-45deg); }
  60% { transform: scale(1.2) rotate(0deg); }
  100% { transform: scale(1) rotate(0deg); }
}

.route-check-pop {
  animation: checkmarkPop 400ms ease-out both;
}


/* =============================================================
   END
   ============================================================= */
