/* ==========================================================================
   GammaInvest — Roadmaps de l'Observatoire (feuille dédiée, comme
   glossaire-library.css ou sim-transition.css). Réutilise systématiquement
   les variables et composants existants (--navy, --gold*, --pg-glass*,
   .card, .tag, .btn) ; ce fichier ajoute uniquement la mise en page propre
   aux Roadmaps (préfixe .rm-), sans dupliquer ni redéfinir les composants
   déjà présents dans style.css.

   Thème : comme toutes les autres pages du site (Observatoire, Glossaire,
   Shop...), les pages Roadmap sont claires par défaut pour un visiteur
   public, et basculent en thème sombre Premium uniquement si
   localStorage.gi_premium_theme==='1' ajoute .dark-section sur <main> (voir
   le petit script inline déjà présent dans chaque page roadmap-*.html).
   Toutes les règles ci-dessous suivent donc le même schéma déjà établi par
   style.css : définition claire par défaut, puis un bloc dédié
   ".dark-section .rm-*" qui bascule chaque composant en thème sombre/verre.
   ========================================================================== */

/* ---------- Hero ---------- */
.rm-hero {
  padding: 48px 0 28px;
}
.rm-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.rm-hero-icon {
  font-size: 34px;
  line-height: 1;
  margin-bottom: 10px;
}
.rm-hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
  font-size: 13px;
  color: var(--text-secondary);
}
.rm-hero-meta svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

.rm-fav-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid var(--border-strong);
  background: transparent;
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color .15s ease, color .15s ease, transform .15s ease;
}
.rm-fav-btn svg { width: 19px; height: 19px; }
.rm-fav-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.rm-fav-btn.is-active { border-color: var(--gold); color: var(--gold-dark); background: rgba(201, 162, 75, 0.12); }
.rm-fav-btn.is-active svg { fill: currentColor; }
.rm-fav-btn.pulse { animation: rm-pop .35s ease; }

/* ---------- Barre de progression premium ---------- */
.rm-progress-wrap { margin-top: 22px; max-width: 560px; }
.rm-progress-label {
  display: flex;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-secondary);
  margin-bottom: 8px;
}
.rm-progress-label strong { color: var(--gold-dark); font-size: 13px; }
.rm-progress-track {
  height: 10px;
  border-radius: 999px;
  background: var(--off-white);
  overflow: hidden;
  position: relative;
}
.rm-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold), var(--gold-light));
  width: 0%;
  transition: width .7s cubic-bezier(.22, 1, .36, 1);
  box-shadow: 0 0 14px rgba(201, 162, 75, 0.35);
}

/* ---------- Mise en page : sidebar + colonne principale ---------- */
.rm-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) {
  .rm-layout { grid-template-columns: 1fr; }
  .rm-sidebar { position: static !important; order: 2; }
}

.rm-sidebar {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-bottom: 10px;
}

/* Liste des étapes (menu latéral fixe) */
.rm-steps-nav {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-sm);
}
.rm-steps-nav-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  padding: 4px 8px 10px;
}
.rm-steps-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  text-align: left;
  padding: 9px 8px;
  border-radius: 10px;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  font-family: inherit;
  line-height: 1.3;
}
.rm-steps-nav-item:hover { background: var(--off-white); color: var(--text); }
.rm-steps-nav-item.is-current { background: rgba(201, 162, 75, 0.12); color: var(--gold-dark); font-weight: 700; }
.rm-steps-nav-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  background: var(--off-white);
  color: var(--text-secondary);
}
.rm-steps-nav-item.is-done .rm-steps-nav-num { background: var(--success); color: var(--white); }
.rm-steps-nav-item.is-done .rm-steps-nav-num::after { content: '✓'; }
.rm-steps-nav-item.is-done .rm-steps-nav-num span { display: none; }

/* ---------- GPS Patrimonial ---------- */
.rm-gps {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.rm-gps-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gold-dark);
  margin-bottom: 4px;
}
.rm-gps-sub { font-size: 12px; color: var(--text-secondary); margin-bottom: 14px; }
.rm-gps-level {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 6px 0;
  font-size: 12.5px;
  color: var(--text-secondary);
}
.rm-gps-level.is-current { color: var(--text); font-weight: 700; }
.rm-gps-bar { display: flex; gap: 3px; }
.rm-gps-seg { width: 9px; height: 9px; border-radius: 3px; background: var(--border); }
.rm-gps-level.is-current .rm-gps-seg.is-filled,
.rm-gps-level.is-past .rm-gps-seg { background: var(--gold); }

/* ---------- Coach Gamma ---------- */
.rm-coach {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 32px 0;
  display: flex;
  gap: 16px;
  box-shadow: var(--shadow-sm);
}
.rm-coach-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 60%, var(--gold-dark));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
}
.rm-coach-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); margin-bottom: 6px; }
.rm-coach-msg { font-size: 14.5px; line-height: 1.55; color: var(--text); margin-bottom: 12px; }
.rm-coach-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- Étapes : tableau Kanban (À faire / En cours / Terminé) ----------
   Remplace l'ancienne liste verticale unique par 3 colonnes façon Trello,
   dans l'identité GammaInvest. Chaque étape est une carte avec une case à
   cocher qui fait avancer la progression : cocher une étape la fait passer
   dans la colonne "Terminé" (avec l'animation de validation existante). */
.rm-kanban {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) {
  .rm-kanban { grid-template-columns: 1fr; }
}

.rm-kanban-col {
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  min-height: 120px;
}
.rm-kanban-col-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 14px;
}
.rm-kanban-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 8px;
}
.rm-kanban-col-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border-strong); flex-shrink: 0; }
.rm-kanban-col--doing .rm-kanban-col-dot { background: var(--gold); }
.rm-kanban-col--done .rm-kanban-col-dot { background: var(--success); }
.rm-kanban-col-count {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-secondary);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 1px 8px;
}
.rm-kanban-col-body { display: flex; flex-direction: column; gap: 10px; }
.rm-kanban-empty { font-size: 12.5px; color: var(--text-secondary); padding: 10px 6px; text-align: center; }

.rm-step {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: border-color .3s ease, background .3s ease, box-shadow .2s ease, transform .15s ease;
  scroll-margin-top: 90px;
}
.rm-step:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.rm-step.is-complete { border-color: rgba(31, 138, 95, 0.35); }
.rm-step.is-current { border-color: var(--gold); }

.rm-step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.rm-step-check {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--border-strong);
  background: var(--white);
  color: transparent;
  cursor: pointer;
  transition: background .3s ease, border-color .3s ease, color .3s ease, transform .15s ease;
  padding: 0;
}
.rm-step-check svg { width: 14px; height: 14px; }
.rm-step-check:hover { border-color: var(--gold); }
.rm-step.is-complete .rm-step-check { background: var(--success); border-color: var(--success); color: var(--white); }
.rm-step-num {
  flex-shrink: 0;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  background: rgba(201, 162, 75, 0.12);
  color: var(--gold-dark);
}
.rm-step-headtext { flex: 1; min-width: 0; }
.rm-step-title { font-size: 14.5px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.35; }
.rm-step.is-complete .rm-step-title { color: var(--text-secondary); text-decoration: line-through; text-decoration-color: rgba(31, 138, 95, 0.5); }
.rm-step-meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 11.5px; color: var(--text-secondary); }
.rm-step-arrow { flex-shrink: 0; width: 16px; height: 16px; color: var(--text-secondary); transition: transform .25s ease; }
.rm-step.is-open { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 75, 0.14), var(--shadow-md); }
.rm-step.is-open .rm-step-arrow { transform: rotate(90deg); color: var(--gold-dark); }

/* Le contenu détaillé (.rm-step-body) n'est plus déplié en accordéon dans
   la carte : il est déplacé tel quel dans la modale (voir openStepModal
   dans roadmap-engine.js), qui force son affichage via un style inline.
   Il reste donc caché ici par défaut, quel que soit l'état de la carte. */
.rm-step-body { display: none; padding: 0 18px 18px 54px; }
.rm-step-desc { font-size: 13.5px; line-height: 1.6; color: var(--text); margin-bottom: 14px; }
.rm-step-block { margin-bottom: 16px; }
.rm-step-block h5 {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--gold-dark); margin-bottom: 8px;
}
.rm-step-prereq { font-size: 12.5px; color: var(--text-secondary); }
.rm-checklist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.rm-checklist li { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text); }
.rm-checklist input { margin-top: 3px; width: 15px; height: 15px; accent-color: var(--gold); flex-shrink: 0; }
.rm-checklist label.is-checked { color: var(--text-secondary); text-decoration: line-through; }

.rm-resources { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-resource-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--text);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.rm-resource-link:hover { border-color: var(--gold); color: var(--gold-dark); background: rgba(201, 162, 75, 0.08); }
.rm-resource-link svg { width: 13px; height: 13px; }

.rm-step-validate {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1.5px solid var(--gold);
  background: transparent;
  color: var(--gold-dark);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  font-family: inherit;
  transition: background .2s ease, color .2s ease, transform .12s ease;
}
.rm-step-validate:hover { background: rgba(201, 162, 75, 0.1); }
.rm-step-validate.is-done {
  border-color: var(--success);
  background: rgba(31, 138, 95, 0.1);
  color: var(--success);
  cursor: default;
}
.rm-step-validate.bump { animation: rm-pop .4s ease; }
.rm-step-validate svg { width: 15px; height: 15px; }

@keyframes rm-pop {
  0% { transform: scale(1); }
  35% { transform: scale(1.14); }
  60% { transform: scale(0.96); }
  100% { transform: scale(1); }
}
@keyframes rm-check-in {
  0% { opacity: 0; transform: scale(0.5) rotate(-10deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); }
}
.rm-step-check.just-completed svg,
.rm-step-num.just-completed svg { animation: rm-check-in .4s cubic-bezier(.34, 1.56, .64, 1); }
.rm-step.just-completed { animation: rm-card-vibrate .4s ease; }
@keyframes rm-card-vibrate {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-3px) rotate(-0.5deg); }
  40% { transform: translateX(3px) rotate(0.5deg); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(2px); }
}

/* ---------- Modale de détail d'étape (arrière-plan flouté) ---------- */
.rm-step-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(10, 31, 60, 0.45);
  backdrop-filter: blur(7px) saturate(1.1);
  -webkit-backdrop-filter: blur(7px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.rm-step-modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity .22s ease;
}
.rm-step-modal {
  width: 100%;
  max-width: 600px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px 28px 30px;
  transform: translateY(16px) scale(.97);
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.rm-step-modal-overlay.is-open .rm-step-modal { transform: translateY(0) scale(1); }
.rm-step-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.rm-step-modal-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); margin-bottom: 4px; }
.rm-step-modal-title { font-size: 19px; margin: 0 0 6px; color: var(--text); }
.rm-step-modal-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  background: var(--white);
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.rm-step-modal-close:hover { border-color: var(--gold); color: var(--gold-dark); background: rgba(201, 162, 75, 0.08); }
.rm-step-modal-close svg { width: 16px; height: 16px; }
.rm-step-modal-body .rm-step-body { padding: 0; }
body.rm-modal-open { overflow: hidden; }

.dark-section .rm-step-modal-overlay { background: rgba(2, 6, 14, 0.6); }
.dark-section .rm-step-modal { background: var(--pg-glass-strong); border: 1px solid var(--pg-glass-border-strong); }
.dark-section .rm-step-modal-head { border-bottom-color: var(--pg-glass-border); }
.dark-section .rm-step-modal-title { color: var(--white); }
.dark-section .rm-step-modal-close { background: rgba(255, 255, 255, 0.04); border-color: var(--pg-glass-border); color: rgba(255, 255, 255, 0.6); }

/* ---------- Cinématique de progression (validation -> colonne Terminé) --
   Repère lumineux qui trace, au-dessus de la page, le trajet réel entre la
   carte validée et la colonne "Terminé" — un arc et un trait qui se dessine,
   façon trajet GPS (cohérent avec le "GPS Patrimonial" de la sidebar),
   plutôt qu'un effet générique. Purement décoratif, jamais créé si
   prefers-reduced-motion (voir playStepFlight dans roadmap-engine.js). --- */
.rm-flight-overlay { position: fixed; inset: 0; z-index: 9997; pointer-events: none; }
.rm-flight-path {
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-dasharray: 4 8;
  opacity: 0;
  animation: rm-flight-path-draw .65s ease forwards;
}
.rm-flight-marker {
  position: absolute;
  top: 0;
  left: 0;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(201, 162, 75, 0.22), 0 0 14px rgba(201, 162, 75, 0.55);
  offset-distance: 0%;
  opacity: 0;
  animation: rm-flight-move .65s cubic-bezier(.4, 0, .2, 1) forwards;
}
@keyframes rm-flight-move {
  0% { offset-distance: 0%; opacity: 0; }
  8% { opacity: 1; }
  100% { offset-distance: 100%; opacity: 1; }
}
@keyframes rm-flight-path-draw {
  0% { opacity: 0; }
  15% { opacity: .55; }
  80% { opacity: .55; }
  100% { opacity: 0; }
}

/* ---------- Notes personnelles ---------- */
.rm-notes {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
  margin: 32px 0;
  box-shadow: var(--shadow-sm);
}
.rm-notes-title { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); margin-bottom: 12px; }
.rm-notes textarea {
  width: 100%;
  min-height: 110px;
  resize: vertical;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
}
.rm-notes textarea:focus { outline: none; border-color: var(--gold); }
.rm-notes-status { margin-top: 8px; font-size: 12px; color: var(--text-secondary); }

/* ---------- Objectifs hebdomadaires ---------- */
.rm-weekly {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  box-shadow: var(--shadow-sm);
}
.rm-weekly-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--gold-dark); margin-bottom: 10px; }
.rm-weekly-item { display: flex; align-items: center; gap: 9px; padding: 6px 0; font-size: 13px; color: var(--text); }
.rm-weekly-item input { width: 15px; height: 15px; accent-color: var(--gold); }
.rm-weekly-item.is-done { color: var(--success); text-decoration: line-through; }

/* ---------- Défis / badges ----------
   Notification flottante ponctuelle : toujours sombre quelle que soit la
   page (comme un "toast"/snackbar classique), pour rester lisible et bien
   visible par-dessus n'importe quel contenu, clair ou sombre. */
.rm-badges-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #12233f, #0a1a30);
  border: 1px solid rgba(201, 162, 75, 0.32);
  border-radius: 16px;
  padding: 14px 20px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
  transform: translateY(20px);
  opacity: 0;
  transition: transform .4s cubic-bezier(.22, 1, .36, 1), opacity .4s ease;
}
.rm-badges-toast.is-visible { transform: translateY(0); opacity: 1; }
.rm-badges-toast-icon { font-size: 26px; }
.rm-badges-toast-title { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--gold-light); }
.rm-badges-toast-label { font-size: 14px; font-weight: 700; color: var(--white); }

/* ---------- Navigation précédent / suivant ---------- */
.rm-roadmap-nav {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.rm-roadmap-nav-link {
  flex: 1;
  min-width: 220px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px 20px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--white);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, background .15s ease, transform .15s ease;
}
.rm-roadmap-nav-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.rm-roadmap-nav-link.is-next { text-align: right; align-items: flex-end; }
.rm-roadmap-nav-eyebrow { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-secondary); }
.rm-roadmap-nav-name { font-size: 15px; font-weight: 700; color: var(--text); }

/* ---------- Breadcrumb ---------- */
.rm-breadcrumb { font-size: 12.5px; color: var(--text-secondary); margin-bottom: 14px; }
.rm-breadcrumb a { color: var(--text-secondary); text-decoration: none; }
.rm-breadcrumb a:hover { color: var(--gold-dark); }

/* ---------- Aperçu (visiteur non-Premium) ----------
   .rm-main--public n'a pas de sidebar à côté (contrairement à la vue
   Premium) : il occupe donc directement toute la largeur du container,
   sans passer par la grille .rm-layout. La grille de cartes ci-dessous
   utilise cet espace pleine largeur au lieu de s'écraser dans une colonne
   étroite. */
.rm-main--public { width: 100%; }

.rm-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 18px;
}
@media (max-width: 900px) { .rm-preview-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rm-preview-grid { grid-template-columns: 1fr; } }

.rm-step--preview { cursor: default; }
.rm-step--preview:hover { transform: none; box-shadow: var(--shadow-sm); }
.rm-step--preview .rm-step-head { cursor: default; }

.rm-preview-more {
  padding: 16px 22px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--border-strong);
  background: var(--off-white);
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
}

/* ---------- Hub des Roadmaps (roadmaps.html) ---------- */
.rm-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .rm-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .rm-hub-grid { grid-template-columns: 1fr; } }
.rm-hub-card {
  display: block;
  padding: 24px;
  border-radius: var(--radius-lg);
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.rm-hub-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.rm-hub-card-icon { font-size: 28px; margin-bottom: 10px; }
.rm-hub-card-lock { display: inline-block; margin-bottom: 10px; }
.rm-hub-card h3 { font-size: 16px; color: var(--text); margin-bottom: 6px; }
.rm-hub-card p { font-size: 13px; color: var(--text-secondary); margin-bottom: 14px; }
.rm-hub-card-progress { height: 6px; border-radius: 999px; background: var(--off-white); overflow: hidden; margin-bottom: 8px; }
.rm-hub-card-progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold-dark), var(--gold-light)); border-radius: 999px; }
.rm-hub-card-foot { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--text-secondary); }

/* ==========================================================================
   Thème sombre (Premium) — bascule chaque composant en verre/or dès que
   .dark-section est présent sur <main> (ajouté par le script inline de la
   page si localStorage.gi_premium_theme==='1', exactement comme partout
   ailleurs sur le site). Rien ici n'est visible pour un visiteur public.
   ========================================================================== */
.dark-section .rm-hero-meta { color: rgba(255, 255, 255, 0.55); }
.dark-section .rm-breadcrumb a:hover { color: var(--gold-light); }

.dark-section .rm-fav-btn { border-color: rgba(255, 255, 255, 0.2); color: rgba(255, 255, 255, 0.6); }
.dark-section .rm-fav-btn:hover { color: var(--gold-light); }
.dark-section .rm-fav-btn.is-active { color: var(--gold); }

.dark-section .rm-progress-label { color: rgba(255, 255, 255, 0.55); }
.dark-section .rm-progress-label strong { color: var(--gold-light); }
.dark-section .rm-progress-track { background: rgba(255, 255, 255, 0.08); }
.dark-section .rm-progress-fill { box-shadow: 0 0 14px rgba(201, 162, 75, 0.5); }

.dark-section .rm-steps-nav,
.dark-section .rm-gps,
.dark-section .rm-coach,
.dark-section .rm-notes,
.dark-section .rm-weekly,
.dark-section .rm-hub-card,
.dark-section .rm-roadmap-nav-link {
  background: var(--pg-glass);
  border-color: var(--pg-glass-border);
  border-top-color: var(--pg-gold-line);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.dark-section .rm-hub-card:hover,
.dark-section .rm-roadmap-nav-link:hover {
  border-color: var(--gold);
  background: var(--pg-glass-strong);
}

.dark-section .rm-steps-nav-title,
.dark-section .rm-gps-title,
.dark-section .rm-coach-title,
.dark-section .rm-notes-title,
.dark-section .rm-weekly-title,
.dark-section .rm-step-block h5 { color: var(--gold-light); }

.dark-section .rm-steps-nav-item { color: rgba(255, 255, 255, 0.6); }
.dark-section .rm-steps-nav-item:hover { background: rgba(255, 255, 255, 0.05); color: rgba(255, 255, 255, 0.85); }
.dark-section .rm-steps-nav-item.is-current { background: rgba(201, 162, 75, 0.12); color: var(--gold-light); }
.dark-section .rm-steps-nav-num { background: rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.55); }

.dark-section .rm-gps-sub { color: rgba(255, 255, 255, 0.45); }
.dark-section .rm-gps-level { color: rgba(255, 255, 255, 0.5); }
.dark-section .rm-gps-level.is-current { color: var(--white); }
.dark-section .rm-gps-seg { background: rgba(255, 255, 255, 0.12); }

.dark-section .rm-coach-msg { color: rgba(255, 255, 255, 0.85); }

.dark-section .rm-kanban-col { background: rgba(255, 255, 255, 0.03); border-color: var(--pg-glass-border); }
.dark-section .rm-kanban-col-title { color: rgba(255, 255, 255, 0.55); }
.dark-section .rm-kanban-col-count { background: var(--pg-glass); border-color: var(--pg-glass-border); color: rgba(255, 255, 255, 0.6); }
.dark-section .rm-kanban-empty { color: rgba(255, 255, 255, 0.4); }

.dark-section .rm-step {
  background: var(--pg-glass);
  border-color: var(--pg-glass-border);
  box-shadow: 0 10px 34px rgba(0, 0, 0, 0.32);
}
.dark-section .rm-step.is-complete { border-color: rgba(31, 138, 95, 0.4); }
.dark-section .rm-step.is-current { border-color: var(--gold); }
.dark-section .rm-step-check { border-color: rgba(255, 255, 255, 0.25); background: rgba(255, 255, 255, 0.04); }
.dark-section .rm-step-num { color: var(--gold-light); }
.dark-section .rm-step-title { color: var(--white); }
.dark-section .rm-step.is-complete .rm-step-title { color: rgba(255, 255, 255, 0.5); }
.dark-section .rm-step-meta-row { color: rgba(255, 255, 255, 0.45); }
.dark-section .rm-step-arrow { color: rgba(255, 255, 255, 0.4); }
.dark-section .rm-step-desc { color: rgba(255, 255, 255, 0.8); }
.dark-section .rm-step-prereq { color: rgba(255, 255, 255, 0.55); }
.dark-section .rm-checklist li { color: rgba(255, 255, 255, 0.75); }
.dark-section .rm-checklist label.is-checked { color: rgba(255, 255, 255, 0.4); }

.dark-section .rm-resource-link { border-color: rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.75); }
.dark-section .rm-resource-link:hover { color: var(--gold-light); }

.dark-section .rm-step-validate { color: var(--gold-light); }
.dark-section .rm-step-validate.is-done { color: #6fe0ac; }

.dark-section .rm-notes textarea { background: rgba(255, 255, 255, 0.04); border-color: rgba(255, 255, 255, 0.12); color: var(--white); }
.dark-section .rm-notes-status { color: rgba(255, 255, 255, 0.4); }

.dark-section .rm-weekly-item { color: rgba(255, 255, 255, 0.65); }
.dark-section .rm-weekly-item.is-done { color: #6fe0ac; }

.dark-section .rm-roadmap-nav-eyebrow { color: rgba(255, 255, 255, 0.45); }
.dark-section .rm-roadmap-nav-name { color: var(--white); }

.dark-section .rm-breadcrumb { color: rgba(255, 255, 255, 0.45); }
.dark-section .rm-breadcrumb a { color: rgba(255, 255, 255, 0.6); }

/* CORRECTIF 2026-08-18 : seul le texte passait en blanc sous le thème
   sombre sitewide (.dark-section sur <main>, voir main.js) — la carte
   elle-même gardait son fond blanc d'origine (ligne ~675), ce qui donnait
   un titre blanc sur fond blanc, illisible (remonté par Jean). Repris sur
   le même style "carte verre" que .dark-section .card ailleurs sur le
   site plutôt que de forcer un fond blanc isolé au milieu d'une page
   sombre. */
.dark-section .rm-hub-card { background: var(--pg-glass); border: 1px solid var(--pg-glass-border); }
.dark-section .rm-hub-card h3 { color: var(--white); }
.dark-section .rm-hub-card p { color: rgba(255, 255, 255, 0.55); }
.dark-section .rm-hub-card-progress { background: rgba(255, 255, 255, 0.1); }
.dark-section .rm-hub-card-foot { color: rgba(255, 255, 255, 0.45); }

.dark-section .rm-preview-more {
  border-color: var(--pg-glass-border);
  background: var(--pg-glass);
  color: rgba(255, 255, 255, 0.55);
}

/* Respect des préférences système : réduit les animations de la barre, du
   pop de validation et des transitions d'étape (les autres transitions déjà
   gérées par le rideau cinématique sim-transition.css suivent déjà cette
   media query dans leur propre fichier). */
@media (prefers-reduced-motion: reduce) {
  .rm-progress-fill, .rm-step, .rm-fav-btn, .rm-step-validate, .rm-badges-toast, .rm-step-check,
  .rm-step-modal, .rm-step-modal-overlay, .rm-flight-marker, .rm-flight-path {
    transition: none !important;
    animation: none !important;
  }
}
