/* ============================================================
   velo.css — Voyages Vélo Mike & Co
   Version : 2.1 | Juin 2026
   ============================================================ */

:root {
  --loire:      #4CAF50;
  --moselle:    #2196F3;
  --rhin:       #9C27B0;
  --bourgogne:  #FF5722;
  --meuse:      #607D8B;
  --green-dark: #1a472a;
  --green-mid:  #2d6a4f;
  --green-light:#40916c;
  --bg:         #f5f5f0;
  --card:       #ffffff;
  --text:       #2c2c2c;
  --muted:      #666;
  --border:     #e0e0e0;
  --radius:     12px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: var(--green-dark); }
h3 {
  font-size: 0.95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 18px 0 8px;
}

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 50%, var(--green-light) 100%);
  color: white;
  padding: 40px 24px 32px;
  text-align: center;
}
.hero h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.hero p  { opacity: .85; font-size: 1.05rem; max-width: 600px; margin: 0 auto 20px; }
.badges  { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.badge {
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 20px;
  padding: 4px 14px;
  font-size: .82rem;
  font-weight: 500;
}

/* ── Hero sous-pages ── */
.hero-sub {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 100%);
  color: white;
  padding: 28px 24px 24px;
}
.hero-sub h1 { font-size: 1.5rem; font-weight: 700; margin-bottom: 4px; }
.hero-sub .breadcrumb { opacity: .75; font-size: .88rem; }
.hero-sub .breadcrumb a { color: rgba(255,255,255,.85); text-decoration: none; }
.hero-sub .breadcrumb a:hover { text-decoration: underline; }

/* ── Nav principale ── */
.nav {
  background: white;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  display: flex;
  overflow-x: auto;
  padding: 0 12px;
  gap: 2px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}
.nav::-webkit-scrollbar { display: none; }
.nav button {
  background: none;
  border: none;
  padding: 14px 14px;
  font-size: .88rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
  transition: all .2s;
  touch-action: manipulation;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
  scroll-snap-align: start;
}
.nav button:hover { color: var(--text); }
.nav button.active { color: var(--green-dark); border-bottom-color: var(--green-dark); font-weight: 600; }

/* ── Sections ── */
.section { display: none; padding: 20px 16px; max-width: 960px; margin: 0 auto; }
.section.active { display: block; }
#carte.section { max-width: 100%; padding: 16px; }
#carte .carte-inner { max-width: 960px; margin: 0 auto; }

/* ── Carte Leaflet ── */
#map {
  height: 540px;
  border-radius: var(--radius);
  box-shadow: 0 2px 16px rgba(0,0,0,.14);
  margin-bottom: 12px;
  z-index: 1;
}
.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}
.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: white;
  border-radius: 20px;
  padding: 7px 14px;
  font-size: .84rem;
  font-weight: 500;
  box-shadow: 0 1px 4px rgba(0,0,0,.09);
  cursor: pointer;
  transition: transform .15s, box-shadow .15s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  border: 1.5px solid transparent;
  user-select: none;
}
.legend-item:hover, .legend-item:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(0,0,0,.14);
}
.legend-item.all-view { background: #f0f4f0; border-color: #c8d8c8; }
.legend-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }

/* ── Popups Leaflet ── */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 4px 20px rgba(0,0,0,.18) !important;
  padding: 0 !important;
  overflow: hidden;
}
.leaflet-popup-content { margin: 0 !important; width: 255px !important; }
.leaflet-popup-tip-container { margin-top: -1px; }

.map-popup-header { padding: 12px 15px 9px; border-bottom: 1px solid #f0f0f0; }
.map-popup-header h4 { font-size: .97rem; font-weight: 700; margin-bottom: 2px; line-height: 1.3; }
.map-popup-sub { font-size: .79rem; color: #888; }
.map-popup-body { padding: 9px 15px 13px; }
.map-popup-stats { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 9px; }
.map-popup-stat { background: #f5f5f0; border-radius: 6px; padding: 2px 7px; font-size: .75rem; color: #444; }
.map-popup-desc { font-size: .81rem; color: #555; margin-bottom: 9px; line-height: 1.45; }
.map-popup-btn {
  display: block;
  width: 100%;
  padding: 8px 12px;
  background: var(--green-dark);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: .83rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  transition: background .15s;
  margin-bottom: 6px;
}
.map-popup-btn:hover { background: var(--green-mid); }
.map-popup-link {
  display: block;
  text-align: center;
  font-size: .78rem;
  color: var(--green-dark);
  text-decoration: none;
  padding: 4px 0 0;
}
.map-popup-link:hover { text-decoration: underline; }
.map-popup-fvt {
  display: block;
  text-align: center;
  font-size: .78rem;
  color: var(--green-dark);
  text-decoration: none;
  padding: 6px 0 0;
  border-top: 1px solid #f0f0f0;
  margin-top: 6px;
}
.map-popup-fvt:hover { text-decoration: underline; }

/* ── Tableau comparatif ── */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  -webkit-overflow-scrolling: touch;
}
table { width: 100%; border-collapse: collapse; background: white; font-size: .9rem; }
th { background: var(--green-dark); color: white; padding: 12px 14px; text-align: left; font-weight: 600; white-space: nowrap; }
td { padding: 12px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f9f9f7; }

/* ── Petits éléments ── */
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; flex-shrink: 0; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 10px; font-size: .78rem; font-weight: 600; }
.tag-green  { background: #e8f5e9; color: #2e7d32; }
.tag-orange { background: #fff3e0; color: #e65100; }
.check { color: #43a047; font-size: 1.1rem; }
.warn  { color: #fb8c00; font-size: 1.1rem; }

/* ── Cards accordéon ── */
.cards { display: grid; gap: 20px; }
.card {
  background: white;
  border-radius: var(--radius);
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  overflow: hidden;
  border-left: 5px solid var(--border);
  cursor: pointer;
  transition: box-shadow .2s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
.card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.13); }
.card-header { display: flex; align-items: center; gap: 14px; padding: 18px 20px; }
.card-icon   { font-size: 1.8rem; flex-shrink: 0; }
.card-title  { flex: 1; min-width: 0; }
.card-title h2 { font-size: 1.1rem; font-weight: 700; }
.card-title .subtitle { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.card-meta   { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.card-toggle { color: var(--muted); font-size: 1.2rem; transition: transform .2s; flex-shrink: 0; }
.card.open .card-toggle { transform: rotate(180deg); }
.card-body   { display: none; padding: 0 20px 20px; border-top: 1px solid var(--border); }
.card.open .card-body { display: block; }

/* ── Stats ── */
.stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.stat  { background: var(--bg); border-radius: 8px; padding: 10px 14px; min-width: 100px; flex: 1; }
.stat-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stat-value { font-size: 1.1rem; font-weight: 700; margin-top: 2px; }

/* ── Tableau étapes ── */
.etapes { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: .88rem; }
.etapes th { background: #f5f5f0; color: var(--text); padding: 8px 10px; text-align: left; border-bottom: 2px solid var(--border); }
.etapes td { padding: 8px 10px; border-bottom: 1px solid var(--border); }
.etapes tr:last-child td { border-bottom: none; }
.jour { font-weight: 700; color: var(--muted); white-space: nowrap; }

/* ── Train box ── */
.train-box {
  background: #e3f2fd;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 12px 0;
  font-size: .88rem;
  border-left: 3px solid #1976d2;
}
.train-box strong { color: #1565c0; }

/* ── Listes ── */
.heberg-list { list-style: none; margin: 8px 0; }
.heberg-list li { padding: 6px 0; border-bottom: 1px solid var(--border); font-size: .88rem; }
.heberg-list li:last-child { border-bottom: none; }

/* ── Avis ── */
.avis {
  background: #f9f9f7;
  border-radius: 8px;
  padding: 12px 14px;
  margin: 8px 0;
  font-size: .87rem;
  font-style: italic;
  border-left: 3px solid #ccc;
}
.avis cite { display: block; font-style: normal; color: var(--muted); font-size: .78rem; margin-top: 4px; }

/* ── Barre de piste ── */
.piste-wrap { display: flex; align-items: center; gap: 8px; }
.piste-bar  { height: 8px; border-radius: 4px; background: #e0e0e0; flex: 1; overflow: hidden; min-width: 60px; }
.piste-fill { height: 100%; border-radius: 4px; background: #43a047; }
.piste-pct  { font-size: .82rem; font-weight: 700; min-width: 34px; text-align: right; }

/* ── Météo ── */
.meteo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; margin: 16px 0; }
.meteo-card {
  background: white;
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,.07);
  border-top: 4px solid var(--border);
}
.meteo-emoji { font-size: 2rem; margin-bottom: 6px; }
.meteo-rank  { font-size: .72rem; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.meteo-name  { font-weight: 700; font-size: .95rem; margin-bottom: 4px; }
.meteo-temp  { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.meteo-desc  { font-size: .78rem; color: var(--muted); }

/* ── Recommandation box ── */
.rec-box {
  background: linear-gradient(135deg, #e8f5e9, #f1f8e9);
  border: 1px solid #a5d6a7;
  border-radius: var(--radius);
  padding: 20px;
  margin: 16px 0;
}
.rec-box h3 { color: #2e7d32; margin-bottom: 8px; }

/* ── Aide au choix ── */
.choix-grid { display: grid; gap: 10px; }
.choix-row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: white;
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.choix-icon  { font-size: 1.4rem; flex-shrink: 0; width: 32px; text-align: center; }
.choix-label { color: var(--muted); font-size: .88rem; flex: 1; }
.choix-reco  { font-weight: 700; font-size: .92rem; }

/* ── Conseils ── */
.conseil-block { background: white; border-radius: var(--radius); padding: 20px; margin: 14px 0; box-shadow: 0 1px 4px rgba(0,0,0,.06); }
.conseil-block h3 { font-size: 1rem; margin-bottom: 10px; }
.conseil-block ul { padding-left: 18px; font-size: .9rem; }
.conseil-block li { margin-bottom: 6px; }

/* ── Titres de section ── */
.section-title    { font-size: 1.3rem; font-weight: 700; margin-bottom: 16px; }
.section-subtitle { color: var(--muted); font-size: .88rem; margin-bottom: 20px; margin-top: -12px; }

/* ── Couleurs thématiques ── */
.c-loire     { color: var(--loire); }
.c-moselle   { color: var(--moselle); }
.c-rhin      { color: var(--rhin); }
.c-bourgogne { color: var(--bourgogne); }
.c-meuse     { color: var(--meuse); }
.border-loire     { border-left-color: var(--loire)     !important; }
.border-moselle   { border-left-color: var(--moselle)   !important; }
.border-rhin      { border-left-color: var(--rhin)      !important; }
.border-bourgogne { border-left-color: var(--bourgogne) !important; }
.border-meuse     { border-left-color: var(--meuse)     !important; }
.btop-loire     { border-top-color: var(--loire)     !important; }
.btop-moselle   { border-top-color: var(--moselle)   !important; }
.btop-rhin      { border-top-color: var(--rhin)      !important; }
.btop-bourgogne { border-top-color: var(--bourgogne) !important; }
.btop-meuse     { border-top-color: var(--meuse)     !important; }
.dot-loire     { background: var(--loire); }
.dot-moselle   { background: var(--moselle); }
.dot-rhin      { background: var(--rhin); }
.dot-bourgogne { background: var(--bourgogne); }
.dot-meuse     { background: var(--meuse); }

/* ── Lien externe inline ── */
.ext-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: .82rem;
  color: var(--green-dark);
  text-decoration: none;
  font-weight: 500;
  padding: 2px 0;
}
.ext-link:hover { text-decoration: underline; }
.ext-link::after { content: '↗'; font-size: .7em; opacity: .7; }

/* ── Footer ── */
.site-footer {
  background: #1a1a1a;
  color: #bbb;
  padding: 24px 20px;
  margin-top: 40px;
  font-size: .82rem;
}
.site-footer .footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
}
.site-footer a { color: #8BC34A; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; }
.version-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  border-radius: 10px;
  padding: 1px 8px;
  font-size: .75rem;
  margin-left: 6px;
  font-weight: 600;
  color: #8BC34A;
}

/* ── Page versions ── */
.versions-page { max-width: 800px; margin: 0 auto; padding: 28px 20px 40px; }
.version-block {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,.07);
  border-left: 4px solid var(--green-dark);
}
.version-block.archived { border-left-color: #ccc; }
.version-num  { font-size: 1.2rem; font-weight: 700; color: var(--green-dark); }
.version-date { font-size: .82rem; color: var(--muted); margin-bottom: 12px; }
.version-block.archived .version-num { color: var(--muted); }
.version-list { list-style: none; padding: 0; }
.version-list li { padding: 5px 0 5px 18px; border-bottom: 1px solid var(--border); font-size: .9rem; position: relative; }
.version-list li::before { content: '✦'; position: absolute; left: 0; color: var(--green-dark); font-size: .7em; top: 8px; }
.version-list li:last-child { border-bottom: none; }
.version-block.archived .version-list li::before { color: #ccc; }
.archive-link { font-size: .82rem; margin-top: 10px; }

/* ── Page mentions légales ── */
.legal-page { max-width: 800px; margin: 0 auto; padding: 28px 20px 40px; }
.legal-section {
  background: white;
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 18px;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}
.legal-section h2 { font-size: 1.1rem; font-weight: 700; color: var(--green-dark); margin-bottom: 12px; text-transform: none; letter-spacing: 0; }
.legal-section p  { font-size: .9rem; color: #444; margin-bottom: 8px; line-height: 1.6; }
.legal-section p:last-child { margin-bottom: 0; }
.legal-section ul { padding-left: 18px; font-size: .9rem; color: #444; }
.legal-section li { margin-bottom: 6px; line-height: 1.5; }
.legal-notice { background: #f0f4f0; border-left: 3px solid var(--green-dark); border-radius: 6px; padding: 12px 14px; font-size: .85rem; color: #444; margin-top: 8px; }

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero { padding: 28px 16px 22px; }
  .hero h1 { font-size: 1.35rem; }
  .hero p  { font-size: .88rem; margin-bottom: 14px; }
  .badge { font-size: .75rem; padding: 3px 10px; }
  .nav button { padding: 12px 11px; font-size: .82rem; min-height: 46px; }
  .section { padding: 14px 12px; }
  #carte.section { padding: 10px 10px; }
  #map { height: 68vw; min-height: 280px; max-height: 420px; border-radius: 10px; }
  .map-legend { gap: 6px; }
  .legend-item { font-size: .78rem; padding: 6px 10px; }
  .legend-dot { width: 10px; height: 10px; }
  .section-title { font-size: 1.1rem; margin-bottom: 12px; }
  .section-subtitle { font-size: .82rem; margin-bottom: 14px; }
  .card-header { padding: 14px 14px; gap: 10px; }
  .card-icon { font-size: 1.5rem; }
  .card-title h2 { font-size: .97rem; }
  .card-title .subtitle { font-size: .76rem; }
  .card-body { padding: 0 14px 16px; }
  .stats { gap: 8px; }
  .stat { min-width: 80px; padding: 8px 10px; }
  .stat-value { font-size: .97rem; }
  .etapes { font-size: .78rem; }
  .etapes td, .etapes th { padding: 6px 7px; }
  table { font-size: .8rem; }
  td, th { padding: 9px 9px; }
  .meteo-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
  .choix-row { padding: 11px 12px; gap: 10px; }
  .choix-reco { font-size: .85rem; }
  .leaflet-popup-content { width: 218px !important; }
  .site-footer .footer-inner { flex-direction: column; align-items: flex-start; }
  .versions-page, .legal-page { padding: 16px 14px 32px; }
  .version-block, .legal-section { padding: 16px 16px; }
  .hero-sub { padding: 20px 16px 18px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 1.15rem; }
  .nav button { padding: 11px 9px; font-size: .78rem; }
  #map { height: 72vw; }
}

/* ══════════════════════════════════════
   QUIZ
══════════════════════════════════════ */
.quiz-wrap { max-width: 680px; margin: 0 auto; padding: 0 2px; }

.quiz-progress { margin: 0 0 26px; }
.quiz-bar { height: 6px; background: #e8e8e8; border-radius: 3px; margin-bottom: 12px; overflow: hidden; }
.quiz-bar-fill { height: 100%; background: linear-gradient(90deg, #4CAF50, #FF5722); border-radius: 3px; transition: width .45s ease; }
.quiz-steps { display: flex; justify-content: space-between; }
.quiz-step {
  width: 30px; height: 30px; border-radius: 50%;
  background: #e8e8e8; color: #999;
  font-size: .78rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  transition: background .3s, color .3s, box-shadow .3s;
}
.quiz-step.current { background: var(--accent); color: #fff; box-shadow: 0 0 0 4px rgba(33,150,243,.2); }
.quiz-step.done    { background: #4CAF50; color: #fff; }

.quiz-q { display: none; }
.quiz-q.active { display: block; animation: qFadeUp .3s ease; }
@keyframes qFadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.quiz-qnum { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.quiz-qtitle { font-size: 1.2rem; font-weight: 700; color: var(--text); margin: 0 0 18px; line-height: 1.35; }

.quiz-opts { display: grid; gap: 9px; }
.quiz-opt {
  display: flex; align-items: center; gap: 14px;
  padding: 13px 15px; border: 2px solid #e4e4e4; border-radius: 12px;
  background: #fff; cursor: pointer;
  transition: border-color .18s, background .18s;
  /* Mobile touch fixes */
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}
/* Hover desktop only — évite l'état collant sur mobile */
@media (hover: hover) {
  .quiz-opt:hover { border-color: var(--accent); background: #f0f7ff; }
}
/* Retour visuel immédiat au tap sur mobile */
.quiz-opt:active { border-color: var(--accent); background: #e8f4ff; transform: scale(.98); }
.quiz-opt.selected { border-color: #4CAF50; background: #f1f8e9; }
/* Empêche les enfants de capturer les events touch */
.opt-em, .opt-text, .opt-text strong, .opt-text small { pointer-events: none; }
.opt-em { font-size: 1.8rem; line-height: 1; flex-shrink: 0; }
.opt-text strong { display: block; font-size: .92rem; color: var(--text); margin-bottom: 2px; }
.opt-text small   { font-size: .78rem; color: var(--muted); }

/* Résultat */
#quiz-result { display: none; }
#quiz-result.active { display: block; animation: qFadeUp .4s ease; }

/* ── Boutons hébergement dans les étapes ── */
.heb-btns { display:inline-flex; gap:4px; margin-top:5px; flex-wrap:wrap; }
.heb-btn  { display:inline-flex; align-items:center; gap:2px; font-size:.68rem; padding:2px 6px;
            border-radius:10px; text-decoration:none; font-weight:600; white-space:nowrap;
            border:1px solid; line-height:1.4; transition:opacity .15s; }
.heb-btn:hover { opacity:.7; }
.heb-btn.fvt { color:#2d7a2d; border-color:#2d7a2d; background:#f0faf0; }
.heb-btn.cs  { color:#1b6b45; border-color:#1b6b45; background:#f0faf5; }
.heb-btn.bk  { color:#003580; border-color:#003580; background:#f0f4fb; }

/* ── Blocs sources hébergement (par route) ── */
.heb-sources-box { display:flex; flex-wrap:wrap; gap:8px; margin:10px 0 14px; }
.heb-source-btn { display:inline-flex; align-items:center; gap:5px; padding:8px 14px;
                  border-radius:8px; text-decoration:none; font-size:.83rem; font-weight:600;
                  border:1.5px solid; transition:opacity .15s; }
.heb-source-btn:hover { opacity:.75; }
.heb-src-fvt { color:#2d7a2d; border-color:#2d7a2d; background:#f0faf0; }
.heb-src-cs  { color:#1b6b45; border-color:#1b6b45; background:#f0faf5; }
.heb-src-bk  { color:#003580; border-color:#003580; background:#f0f4fb; }

/* ══════════════════════════════════════════════════════════════
   UX UPGRADE v2.2 — Nav · Stats strip · Étapes drawer · Heb-cards · CTAs
   ══════════════════════════════════════════════════════════════ */

/* ── Nav : icônes + labels ── */
.nav button {
  flex-direction: column;
  align-items: center;
  gap: 4px;
  min-width: 58px;
  min-height: 54px;
  padding: 8px 12px;
  font-size: .72rem;
}
.nav button i {
  font-size: 20px;
  line-height: 1;
  display: block;
}
.nav button span { white-space: nowrap; }

@media (max-width: 600px) {
  .nav button { min-width: 52px; padding: 8px 10px; font-size: .7rem; }
  .nav button i { font-size: 18px; }
}

/* ── Card stats strip (toujours visible) ── */
.card-stats-strip {
  display: flex;
  gap: 0;
  border-top: 1px solid var(--border);
  background: #fafaf8;
  overflow: hidden;
}
.css-item {
  flex: 1;
  padding: 8px 12px;
  border-right: 1px solid var(--border);
  min-width: 0;
}
.css-item:last-child { border-right: none; }
.css-val { font-size: .82rem; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.css-lbl { font-size: .68rem; color: var(--muted); margin-top: 1px; }
.css-piste-top { display: flex; align-items: baseline; gap: 6px; }
.css-bar { height: 3px; border-radius: 2px; background: #e0e0e0; margin-top: 5px; }
.css-bar-fill { height: 100%; border-radius: 2px; }

@media (max-width: 480px) {
  .css-item { padding: 6px 8px; }
  .css-val { font-size: .76rem; }
  .css-lbl { font-size: .64rem; }
}

/* ── Étapes : lignes cliquables ── */
.etape-row {
  cursor: pointer;
  transition: background .12s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.etape-row:hover { background: #f0f7f0; }
.etape-row.open   { background: #e8f5e9; }
.etape-nuit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.etape-chev {
  font-size: 15px;
  color: var(--muted);
  flex-shrink: 0;
  transition: transform .2s;
}
.etape-row.open .etape-chev { transform: rotate(180deg); }

/* ── Étapes : drawer ── */
.etape-drawer { display: none; }
.etape-drawer.open { display: table-row; }
.etape-drawer-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 10px 14px;
  background: #f9fdf9;
  border-top: 1px solid #c8e6c9;
}

/* ── CTA hébergements dans le drawer ── */
.cta-heb {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1.5px solid;
  text-decoration: none;
  transition: opacity .15s, box-shadow .15s;
  min-height: 52px;
}
.cta-heb:hover { opacity: .85; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.cta-heb > i:first-child { font-size: 22px; flex-shrink: 0; }
.cta-heb > div { flex: 1; min-width: 0; }
.cta-heb-name { font-size: .88rem; font-weight: 700; }
.cta-heb-desc { font-size: .75rem; margin-top: 1px; opacity: .8; }
.cta-ext-icon { font-size: 15px; flex-shrink: 0; opacity: .6; }

.cta-fvt { color: #2d7a2d; border-color: #2d7a2d; background: #f0faf0; }
.cta-cs  { color: #1b6b45; border-color: #1b6b45; background: #f0faf5; }
.cta-bk  { color: #003580; border-color: #003580; background: #f0f4fb; }

/* ── Hébergements cards (par route) ── */
.heb-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0 16px;
}
.heb-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid;
  text-decoration: none;
  transition: opacity .15s, box-shadow .15s;
}
.heb-card:hover { opacity: .85; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.heb-card-icon { font-size: 22px; flex-shrink: 0; }
.heb-card-body { flex: 1; }
.heb-card-name { font-size: .9rem; font-weight: 700; }
.heb-card-desc { font-size: .78rem; margin-top: 2px; opacity: .75; }
.heb-card-arrow { font-size: 16px; opacity: .5; flex-shrink: 0; }

.heb-card-fvt { color: #2d7a2d; border-color: #2d7a2d; background: #f0faf0; }
.heb-card-cs  { color: #1b6b45; border-color: #1b6b45; background: #f0faf5; }
.heb-card-bk  { color: #003580; border-color: #003580; background: #f0f4fb; }

/* ── CTA FVT page officielle ── */
.cta-fvt-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0 6px;
}
.cta-fvt-primary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 18px;
  border-radius: 8px;
  background: #4CAF50;
  color: #fff;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
  transition: opacity .15s;
}
.cta-fvt-primary:hover { opacity: .88; }
.cta-fvt-secondary {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid #4CAF50;
  color: #2d7a2d;
  background: #f0faf0;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 600;
  transition: opacity .15s;
}
.cta-fvt-secondary:hover { opacity: .82; }

/* ── CTA réservation train ── */
.cta-train {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 8px;
  background: #1565C0;
  color: #fff;
  text-decoration: none;
  font-size: .85rem;
  font-weight: 700;
  margin-top: 8px;
  transition: opacity .15s;
}
.cta-train:hover { opacity: .88; }

/* ── Suppression anciens styles remplacés ── */
.heb-sources-box, .heb-source-btn { display: none !important; }

/* ══════════════════════════════════════════════════════════════
   SÉJOUR — Compagnon de route
   ══════════════════════════════════════════════════════════════ */

.sejour-wrap {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 0 24px;
}

.sejour-init-msg {
  text-align: center;
  padding: 48px 20px;
  color: #aaa;
  font-size: .9rem;
}

.sejour-intro {
  font-size: .85rem;
  color: #888;
  margin: 0 0 16px;
}

/* Sélecteur de route */
.sejour-route-grid {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.sejour-route-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  font-size: .9rem;
  transition: background .12s, box-shadow .12s;
}
.sejour-route-btn:hover { background: #f8f8f8; box-shadow: 0 2px 8px rgba(0,0,0,.07); }

.srb-icon { font-size: 1.4rem; }
.srb-name { font-weight: 600; }

/* Tag route choisie */
.sejour-route-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  border: 1.5px solid;
  border-radius: 20px;
  padding: 4px 12px 4px 10px;
  margin-bottom: 14px;
}

.srt-reset {
  background: none;
  border: none;
  cursor: pointer;
  font-size: .75rem;
  color: inherit;
  opacity: .5;
  padding: 0 0 0 4px;
  line-height: 1;
}
.srt-reset:hover { opacity: 1; }

/* Sélecteur de jours */
.sday-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.sday-btn {
  padding: 6px 14px;
  border-radius: 8px;
  border: 1px solid #e0e0e0;
  background: #fff;
  color: #888;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background .12s, color .12s, border-color .12s;
}
.sday-btn:hover { background: #f5f5f5; }

/* Cards */
.scard {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 10px;
}

.scard-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.scard-label i { font-size: 13px; }

.scard-title {
  font-size: 1rem;
  color: #222;
  margin-bottom: 8px;
}

.scard-stats {
  display: flex;
  gap: 14px;
  font-size: .82rem;
  color: #777;
  flex-wrap: wrap;
}
.scard-stats i { font-size: 13px; vertical-align: -1px; }

.scard-bar-wrap { margin-top: 12px; }

.scard-bar {
  height: 4px;
  background: #eee;
  border-radius: 2px;
}
.scard-bar-fill {
  height: 100%;
  border-radius: 2px;
  transition: width .4s;
}
.scard-bar-labels {
  display: flex;
  justify-content: space-between;
  font-size: .68rem;
  color: #bbb;
  margin-top: 4px;
}

/* Météo */
.scard-weather-loading {
  font-size: .82rem;
  color: #aaa;
  display: flex;
  align-items: center;
  gap: 6px;
}
.scard-weather-main {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}
.scard-wicon { font-size: 1.5rem; color: #E9A01A; }
.scard-temp  { font-size: 1.6rem; font-weight: 700; color: #222; }
.scard-wdesc { font-size: .85rem; color: #777; }
.scard-wdetails { font-size: .78rem; color: #aaa; display: flex; gap: 14px; flex-wrap: wrap; }
.scard-wdetails i { font-size: 12px; vertical-align: -1px; }
.scard-wnote { font-style: italic; }

.spin {
  animation: spin 1s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Nuit */
.scard-nuit {
  font-size: .9rem;
  color: #444;
  margin-bottom: 12px;
}

/* Hébergement CTAs */
.scard-heb-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.scard-heb-btn {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 13px;
  border-radius: 10px;
  border: 1.5px solid;
  text-decoration: none;
  font-family: inherit;
  font-size: .85rem;
  transition: opacity .12s;
}
.scard-heb-btn:hover { opacity: .8; }
.scard-heb-btn > i:first-child { font-size: 1.1rem; flex-shrink: 0; }

.shb-name { font-weight: 700; font-size: .85rem; }
.shb-desc { font-size: .72rem; opacity: .8; margin-top: 1px; }
.shb-arrow { font-size: .8rem; opacity: .4; margin-left: auto; flex-shrink: 0; }

.shb-fvt { border-color: #3B6D11; color: #3B6D11; background: #EAF3DE; }
.shb-cs  { border-color: #0F6E56; color: #0F6E56; background: #E1F5EE; }
.shb-bk  { border-color: #185FA5; color: #185FA5; background: #E6F1FB; }

.scard-retour {
  font-size: .85rem;
  color: #888;
  display: flex;
  align-items: center;
  gap: 7px;
}

/* Journal */
.sj-textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: .85rem;
  font-family: inherit;
  color: #333;
  background: #fafaf8;
  resize: vertical;
  margin-top: 6px;
  transition: border-color .15s;
}
.sj-textarea:focus { outline: none; border-color: #4CAF50; }

.sj-footer {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.sj-save-btn {
  padding: 8px 16px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #fff;
  color: #555;
  font-size: .82rem;
  font-family: inherit;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: background .12s;
}
.sj-save-btn:hover { background: #f0f0f0; }
.sj-save-btn i { font-size: 14px; }

.sj-saved-badge {
  font-size: .78rem;
  color: #3B6D11;
  opacity: 0;
  transition: opacity .3s;
  display: flex;
  align-items: center;
  gap: 4px;
}
.sj-saved-badge i { font-size: 13px; }
