/* ─── RESET & BASE ────────────────────────────────────────────────── */
:root {
  --bg: #F5EFE2;
  --bg-warm: #EAE0CB;
  --paper: #FAF6EC;
  --ink: #1A1612;
  --ink-soft: #4A4339;
  --ink-fade: #8A8275;
  --rule: #C9C0AB;
  --rule-soft: #DDD3BD;
  --nord: #1B3A5C;
  --nord-light: #4A6B8A;
  --terra: #B85F2E;
  --terra-light: #E0A37A;
  --rouge: #A8362E;
  --green: #7B9E6B;
  --purple: #6B4C8A;
  --serif: 'Fraunces', Georgia, serif;
  --sans: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --drawer-w: 280px;
  --header-h: 48px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  font-size: 14px;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: none; cursor: pointer; color: inherit; }
ul { list-style: none; }
input, textarea { font: inherit; }

/* ─── HEADER ──────────────────────────────────────────────────────── */
.app-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-h);
  background: rgba(245, 239, 226, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
  z-index: 30;
  display: flex;
  align-items: center;
  padding: 0 12px;
  gap: 8px;
}

.menu-toggle, .app-action {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.menu-toggle { margin-left: -6px; }
.menu-toggle svg { width: 20px; height: 20px; }
.app-action svg { width: 18px; height: 18px; }

.app-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  flex: 1;
  text-align: center;
}
.app-title em { font-style: italic; color: var(--terra); }

/* ─── DRAWER ──────────────────────────────────────────────────────── */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26, 22, 18, 0.4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 0; bottom: 0; left: 0;
  width: var(--drawer-w);
  max-width: 85vw;
  background: var(--paper);
  z-index: 50;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  box-shadow: 2px 0 20px rgba(0, 0, 0, 0.1);
}
.drawer.open { transform: translateX(0); }

.drawer-header {
  padding: 14px 16px 12px;
  border-bottom: 1px solid var(--rule);
}
.drawer-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 2px;
}
.drawer-title em { font-style: italic; color: var(--terra); }
.drawer-subtitle {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-fade);
}

.drawer-nav {
  flex: 1;
  overflow-y: auto;
  padding: 4px 0 12px;
  -webkit-overflow-scrolling: touch;
}

.drawer-section { border-bottom: 1px solid var(--rule-soft); }
.drawer-section:last-child { border-bottom: none; }

.drawer-section-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--ink-fade);
  padding: 12px 16px 4px;
}

.drawer-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.drawer-link:hover { background: rgba(184, 95, 46, 0.05); }
.drawer-link.active {
  color: var(--ink);
  font-weight: 500;
  border-left-color: var(--terra);
  background: rgba(184, 95, 46, 0.08);
}
.drawer-link .leading {
  width: 24px;
  flex-shrink: 0;
  text-align: center;
  font-size: 14px;
  color: var(--ink-fade);
}
.drawer-link.active .leading { color: var(--terra); }

/* ─── ACCORDION GROUPS ────────────────────────────────────────────── */
.accordion-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 9px 16px;
  font-size: 13.5px;
  color: var(--ink-soft);
  text-align: left;
  font-weight: 500;
  transition: background 0.12s;
}
.accordion-toggle:hover { background: rgba(184, 95, 46, 0.05); }
.accordion-toggle .chevron {
  width: 14px;
  flex-shrink: 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-fade);
  transition: transform 0.2s;
  line-height: 1;
}
.accordion.open .accordion-toggle .chevron { transform: rotate(90deg); }

.accordion-toggle .group-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.accordion.cph    .accordion-toggle .group-dot { background: var(--nord); }
.accordion.road   .accordion-toggle .group-dot { background: var(--terra); }
.accordion.retour .accordion-toggle .group-dot { background: var(--purple); }

.accordion-toggle .label { flex: 1; }
.accordion-toggle .count {
  font-size: 10px;
  color: var(--ink-fade);
  letter-spacing: 0.05em;
  font-variant-numeric: tabular-nums;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}
.accordion.open .accordion-content { max-height: 600px; }

.day-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 6px 32px;
  font-size: 12.5px;
  color: var(--ink-soft);
  border-left: 3px solid transparent;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.day-item:hover { background: rgba(184, 95, 46, 0.05); }
.day-item.active {
  color: var(--ink);
  font-weight: 500;
  border-left-color: var(--terra);
  background: rgba(184, 95, 46, 0.08);
}
.day-item .day-date {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  color: var(--ink-fade);
  width: 32px;
  flex-shrink: 0;
  letter-spacing: 0.02em;
}
.day-item.active .day-date { color: var(--terra); }
.day-item .day-title-mini {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.drawer-footer {
  padding: 10px 16px;
  border-top: 1px solid var(--rule);
  font-size: 10px;
  color: var(--ink-fade);
  letter-spacing: 0.04em;
  text-align: center;
}

/* ─── MAIN ────────────────────────────────────────────────────────── */
main {
  padding-top: var(--header-h);
  min-height: 100vh;
}

.view {
  display: none;
  animation: fade 0.25s;
  padding-bottom: 60px;
}
.view.active { display: block; }

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

/* ─── HERO + APERÇU ───────────────────────────────────────────────── */
.hero-mobile {
  padding: 22px 16px 14px;
  text-align: center;
}
.hero-meta {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 10px;
  font-weight: 600;
}
.hero-mobile h1 {
  font-family: var(--serif);
  font-size: clamp(34px, 9.5vw, 50px);
  font-weight: 300;
  line-height: 0.92;
  letter-spacing: -0.02em;
  margin-bottom: 10px;
}
.hero-mobile h1 em {
  font-style: italic;
  color: var(--terra);
  font-weight: 400;
}
.hero-tagline {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 360px;
  margin: 0 auto 16px;
}

.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  padding: 12px 12px;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  margin: 0 12px;
}
.stat-num {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  color: var(--nord);
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.stat-label {
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-top: 3px;
  font-weight: 600;
  text-align: center;
}

.svg-map {
  padding: 14px;
  display: flex;
  justify-content: center;
}
.svg-map svg {
  width: 100%;
  max-width: 260px;
  height: auto;
}

/* ─── SECTIONS ────────────────────────────────────────────────────── */
.section { padding: 18px 16px; }

.section-mini-header {
  padding: 18px 16px 10px;
  border-bottom: 1px solid var(--rule-soft);
  margin-bottom: 14px;
}

.section-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--terra);
  margin-bottom: 4px;
}

.section-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 300;
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 6px;
}
.section-title em { font-style: italic; color: var(--nord); }

.section-intro {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-top: 4px;
}

/* ─── TIMELINE ────────────────────────────────────────────────────── */
.timeline-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  background: var(--rule-soft);
  border-top: 1px solid var(--rule-soft);
  border-bottom: 1px solid var(--rule-soft);
}
.tl-row {
  display: flex;
  gap: 10px;
  padding: 9px 10px;
  background: var(--paper);
  align-items: center;
  cursor: pointer;
  transition: background 0.12s;
}
.tl-row:hover, .tl-row:active { background: var(--bg-warm); }

.tl-marker {
  width: 3px;
  align-self: stretch;
  flex-shrink: 0;
  border-radius: 2px;
}
.tl-row.cph    .tl-marker { background: var(--nord); }
.tl-row.road   .tl-marker { background: var(--terra); }
.tl-row.retour .tl-marker { background: var(--purple); }

.tl-date-block { width: 56px; flex-shrink: 0; }
.tl-date-day {
  font-family: var(--serif);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.1;
}
.tl-date-num {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--ink-fade);
  margin-top: 1px;
  font-variant-numeric: tabular-nums;
}

.tl-content { flex: 1; min-width: 0; }
.tl-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.15;
  margin-bottom: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tl-subtitle {
  font-size: 11px;
  color: var(--ink-fade);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-arrow {
  color: var(--ink-fade);
  font-size: 14px;
  flex-shrink: 0;
}

/* ─── DAY VIEW ────────────────────────────────────────────────────── */
.day-header {
  padding: 14px 16px 12px;
  text-align: center;
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}
.day-phase {
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 4px;
  font-weight: 700;
}
.day-header.cph    .day-phase { color: var(--nord); }
.day-header.road   .day-phase { color: var(--terra); }
.day-header.retour .day-phase { color: var(--purple); }

.day-date {
  font-family: var(--serif);
  font-style: italic;
  font-size: 12px;
  color: var(--ink-fade);
  margin-bottom: 2px;
}
.day-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
}
.day-subtitle {
  font-size: 11.5px;
  color: var(--ink-soft);
  font-style: italic;
}

.day-note {
  margin: 10px 12px;
  padding: 8px 11px;
  background: rgba(184, 95, 46, 0.08);
  border-left: 3px solid var(--terra);
  border-radius: 3px;
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--ink-soft);
}
.day-note strong {
  color: var(--terra);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.day-steps { padding: 4px 12px 12px; }

.step {
  display: flex;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dashed var(--rule-soft);
}
.step:last-child { border-bottom: none; }

.step-time {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
  font-weight: 700;
  color: var(--terra);
  width: 38px;
  flex-shrink: 0;
  padding-top: 1px;
  letter-spacing: 0.01em;
}

.step-content { flex: 1; min-width: 0; }
.step-place {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 1px;
  display: flex;
  align-items: baseline;
  gap: 5px;
  line-height: 1.25;
}
.step-icon { font-size: 12px; line-height: 1; }
.step-meta {
  font-size: 10.5px;
  color: var(--ink-fade);
  font-style: italic;
  margin-bottom: 3px;
  line-height: 1.3;
}
.step-text {
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--ink-soft);
}

/* Day nav prev/next */
.day-nav {
  display: flex;
  gap: 1px;
  margin: 14px 12px 0;
  background: var(--rule-soft);
  border-radius: 6px;
  overflow: hidden;
}
.day-nav-btn {
  flex: 1;
  background: var(--paper);
  padding: 9px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
  transition: background 0.12s;
  min-height: 48px;
  cursor: pointer;
}
.day-nav-btn:disabled { opacity: 0.35; cursor: not-allowed; }
.day-nav-btn:not(:disabled):hover { background: var(--bg-warm); }
.day-nav-btn.next { justify-content: flex-end; text-align: right; }
.day-nav-arrow { font-size: 18px; color: var(--terra); line-height: 1; }
.day-nav-label {
  font-size: 8.5px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 1px;
  font-weight: 600;
}
.day-nav-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 110px;
}

/* ─── CARTES (LEAFLET) ────────────────────────────────────────────── */
.maps-tabs {
  display: flex;
  padding: 8px 12px 0;
  position: sticky;
  top: var(--header-h);
  background: var(--bg);
  z-index: 10;
  border-bottom: 1px solid var(--rule);
}
.maps-tab {
  flex: 1;
  padding: 8px 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-fade);
  border-bottom: 2px solid transparent;
  transition: color 0.15s, border-color 0.15s;
  text-align: center;
}
.maps-tab.active {
  color: var(--terra);
  border-bottom-color: var(--terra);
}

.map-container {
  height: calc(100vh - var(--header-h) - 38px - 70px);
  min-height: 320px;
  background: var(--bg-warm);
  position: relative;
  z-index: 0;
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  padding: 8px 12px;
  background: var(--paper);
  border-top: 1px solid var(--rule);
  font-size: 10.5px;
}
.legend-item { display: flex; align-items: center; gap: 4px; color: var(--ink-soft); }
.legend-dot { width: 9px; height: 9px; border-radius: 50%; }

/* Leaflet popup overrides */
.leaflet-popup-content-wrapper {
  background: var(--paper);
  border-radius: 5px;
  padding: 0;
  font-family: var(--sans);
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}
.leaflet-popup-content {
  margin: 0;
  padding: 9px 11px;
  font-size: 12px;
  line-height: 1.4;
  width: auto !important;
  min-width: 180px;
  max-width: 240px;
}
.leaflet-popup-tip { background: var(--paper); }

.popup-name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 13.5px;
  margin-bottom: 2px;
  color: var(--ink);
  line-height: 1.2;
}
.popup-type {
  font-size: 8.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-fade);
  margin-bottom: 4px;
  font-weight: 700;
}
.popup-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin-bottom: 6px;
}
.popup-link {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  color: var(--terra);
  letter-spacing: 0.05em;
  padding: 4px 8px;
  background: rgba(184, 95, 46, 0.1);
  border-radius: 3px;
  text-transform: uppercase;
}
.popup-link:hover { background: rgba(184, 95, 46, 0.2); }

.custom-marker {
  width: 22px;
  height: 22px;
  border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}
.custom-marker.starred::before {
  content: '★';
  display: block;
  transform: rotate(45deg);
  color: var(--paper);
  font-size: 11px;
  line-height: 1;
}

/* ─── DAY MAP (mini-carte de la journée) ──────────────────────────── */
.day-map-wrap {
  position: relative;
  border-bottom: 1px solid var(--rule);
}
.day-map {
  height: 220px;
  background: var(--bg-warm);
}
.day-map-marker {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--nord);
  color: var(--paper);
  border: 2px solid var(--paper);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
}
.day-map-toggle {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px 5px 7px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  font-family: var(--sans);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
  transition: opacity 0.15s, color 0.15s;
}
.day-map-toggle:hover { opacity: 0.85; }
.day-map-toggle-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--nord);
  flex: none;
}
.day-map-toggle.off {
  color: var(--ink-fade);
}
.day-map-toggle.off .day-map-toggle-dot {
  background: transparent;
  border: 1.5px solid var(--ink-fade);
}

/* ─── WEATHER VIEW ────────────────────────────────────────────────── */
.weather-wrap { padding: 0; }

.weather-loading {
  padding: 30px 20px;
  text-align: center;
  color: var(--ink-fade);
  font-style: italic;
  font-size: 13px;
}

.weather-error-box {
  margin: 12px 16px;
  padding: 14px 16px;
  background: rgba(168, 54, 46, 0.06);
  border-left: 3px solid var(--rouge);
  border-radius: 4px;
  font-size: 12.5px;
  line-height: 1.5;
}

.weather-error-box p { margin-bottom: 6px; }
.weather-error-box ul { margin-top: 6px; }
.weather-fallback-links li { padding: 4px 0; }

.weather-cities {
  padding: 4px 12px 12px;
}

.weather-city {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  margin-bottom: 12px;
  overflow: hidden;
}

.weather-city-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  border-bottom: 1px solid var(--rule-soft);
  background: var(--bg-warm);
}

.weather-city-header h3 {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.weather-sources {
  display: flex;
  gap: 8px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.weather-sources a {
  color: var(--terra);
  padding: 3px 6px;
  background: rgba(184, 95, 46, 0.08);
  border-radius: 3px;
}

.weather-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 1px;
  background: var(--rule-soft);
}

.weather-day {
  background: var(--paper);
  padding: 8px 4px;
  text-align: center;
  font-size: 11px;
}

.wd-date {
  margin-bottom: 4px;
}

.wd-day {
  font-weight: 600;
  display: block;
  font-size: 10px;
  color: var(--ink-soft);
}

.wd-num {
  font-variant-numeric: tabular-nums;
  font-size: 9.5px;
  color: var(--ink-fade);
  letter-spacing: 0.02em;
}

.wd-icon {
  font-size: 22px;
  line-height: 1;
  margin: 4px 0;
}

.wd-temp {
  font-variant-numeric: tabular-nums;
  font-size: 11px;
}

.wd-max {
  font-weight: 700;
  color: var(--ink);
}

.wd-min {
  color: var(--ink-fade);
  margin-left: 4px;
}

.wd-prec {
  font-size: 9.5px;
  color: var(--nord);
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
}

.weather-footnote {
  margin: 0 16px;
  padding: 10px 0;
  font-size: 11px;
  color: var(--ink-fade);
  font-style: italic;
  line-height: 1.5;
  border-top: 1px solid var(--rule-soft);
}

/* ─── NOTA BENE ───────────────────────────────────────────────────── */
.nota-list { padding: 0 12px 12px; }

.nota-block {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.nota-block-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--rule-soft);
  display: flex;
  align-items: center;
  gap: 7px;
}

.nota-icon {
  font-size: 13px;
}

.nota-items { padding: 4px 0; }

.nota-item {
  display: flex;
  flex-direction: column;
  padding: 7px 12px;
  border-bottom: 1px dashed var(--rule-soft);
  gap: 1px;
}

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

.nota-item dt {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-fade);
  font-weight: 600;
}

.nota-item dd {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

/* ─── RESTOS ──────────────────────────────────────────────────────── */
.restos-list { padding: 0 12px 12px; }

.resto-city {
  margin-bottom: 16px;
}

.resto-city-title {
  font-family: var(--serif);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 6px 4px 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 6px;
  color: var(--nord);
}

.resto-item {
  display: flex;
  gap: 10px;
  padding: 9px 8px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 5px;
  margin-bottom: 5px;
  align-items: center;
  transition: background 0.12s;
}
.resto-item:hover { background: var(--bg-warm); }

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

.resto-name {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.2;
  margin-bottom: 1px;
}

.resto-cat {
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--terra);
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 3px;
}

.resto-note {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.4;
}

.resto-arrow {
  color: var(--terra);
  font-size: 14px;
  flex-shrink: 0;
}

/* ─── PHRASES ─────────────────────────────────────────────────────── */
.phrases-list { padding: 0 12px 12px; }

.phrase-block { margin-bottom: 16px; }

.phrase-block-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  padding: 5px 4px 4px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 4px;
  color: var(--nord);
}

.phrase-table {
  width: 100%;
  border-collapse: collapse;
}

.phrase-table tr {
  border-bottom: 1px dashed var(--rule-soft);
}

.phrase-table tr:last-child {
  border-bottom: none;
}

.phrase-table td {
  padding: 6px 6px;
  font-size: 12px;
  vertical-align: top;
  line-height: 1.4;
}

.ph-fr {
  color: var(--ink-soft);
  width: 38%;
}

.ph-da {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink);
  width: 32%;
}

.ph-phon {
  color: var(--terra);
  font-style: italic;
  font-size: 11px;
  width: 30%;
}

/* ─── CONVERSION ──────────────────────────────────────────────────── */
.convert-card {
  margin: 0 12px 16px;
  padding: 14px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.convert-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: var(--bg-warm);
  border-radius: 5px;
}

.convert-label {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 14px;
  color: var(--nord);
  width: 36px;
}

.convert-row input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--ink);
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 0;
}

.convert-row input:focus { color: var(--terra); }

.convert-arrow {
  font-size: 18px;
  color: var(--terra);
  font-weight: 700;
}

.convert-quick {
  margin: 0 12px 12px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
}

.convert-quick-title {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-fade);
  font-weight: 600;
  margin-bottom: 8px;
}

.convert-quick-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.convert-quick-table th {
  text-align: left;
  padding: 4px 8px;
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-fade);
  font-weight: 600;
  border-bottom: 1px solid var(--rule-soft);
}

.convert-quick-table td {
  padding: 5px 8px;
  border-bottom: 1px dashed var(--rule-soft);
}

.convert-quick-table tr:last-child td { border-bottom: none; }

.convert-quick-table td:nth-child(2),
.convert-quick-table td:nth-child(4) {
  color: var(--terra);
  font-weight: 500;
}

.convert-tips {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--rule-soft);
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.5;
}

/* ─── CHECKLIST ───────────────────────────────────────────────────── */
.checklist-progress {
  margin: 0 12px 14px;
  padding: 10px 12px;
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
}

.cp-bar {
  height: 4px;
  background: var(--rule-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 6px;
}

.cp-fill {
  height: 100%;
  background: var(--terra);
  transition: width 0.3s;
  border-radius: 2px;
}

.cp-text {
  font-size: 11px;
  color: var(--ink-fade);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.checklist-list { padding: 0 12px 12px; }

.check-block {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.check-block-title {
  font-family: var(--serif);
  font-size: 13.5px;
  font-weight: 500;
  padding: 8px 12px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--rule-soft);
}

.check-item {
  border-bottom: 1px dashed var(--rule-soft);
}
.check-item:last-child { border-bottom: none; }

.check-item label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 12.5px;
  line-height: 1.4;
}

.check-item input[type=checkbox] {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--terra);
}

.check-item.done .check-text {
  color: var(--ink-fade);
  text-decoration: line-through;
}

.check-actions {
  text-align: center;
  padding-top: 8px;
}

.check-reset {
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-fade);
  padding: 7px 14px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  font-weight: 600;
  transition: color 0.15s, border-color 0.15s;
}

.check-reset:hover {
  color: var(--rouge);
  border-color: var(--rouge);
}

/* ─── URGENCES ────────────────────────────────────────────────────── */
.urgences-list { padding: 0 12px 12px; }

.urg-block {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: 6px;
  margin-bottom: 10px;
  overflow: hidden;
}

.urg-block-title {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  padding: 9px 12px;
  background: var(--bg-warm);
  border-bottom: 1px solid var(--rule-soft);
}

.urg-item {
  padding: 7px 12px;
  border-bottom: 1px dashed var(--rule-soft);
}
.urg-item:last-child { border-bottom: none; }

.urg-label {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-fade);
  font-weight: 600;
  margin-bottom: 2px;
}

.urg-value {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
}

.urg-tel {
  display: inline-block;
  color: var(--terra);
  padding: 3px 8px;
  background: rgba(184, 95, 46, 0.08);
  border-radius: 3px;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.urg-tel:hover { background: rgba(184, 95, 46, 0.18); }

/* ─── NOTES PERSO ─────────────────────────────────────────────────── */
.notes-wrap {
  padding: 0 12px 12px;
}

#notes-textarea {
  width: 100%;
  min-height: 320px;
  padding: 12px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 6px;
  font-family: var(--sans);
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink);
  resize: vertical;
  outline: none;
  transition: border-color 0.15s;
}

#notes-textarea:focus { border-color: var(--terra); }

.notes-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-fade);
  letter-spacing: 0.04em;
}

.notes-clear {
  font-size: 11px;
  color: var(--ink-fade);
  padding: 4px 10px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  letter-spacing: 0.05em;
  transition: color 0.15s, border-color 0.15s;
}

.notes-clear:hover {
  color: var(--rouge);
  border-color: var(--rouge);
}

/* ─── RESPONSIVE ──────────────────────────────────────────────────── */
@media (min-width: 720px) {
  body { font-size: 14.5px; }
  .section { padding: 28px 24px; }
  .section-title { font-size: 28px; }
  .day-title { font-size: 28px; }
  .hero-mobile h1 { font-size: 56px; }
  .hero-mobile { padding: 32px 24px 20px; }
  .step-time { font-size: 12px; width: 44px; }
  .step-place { font-size: 15px; }
  .step-text { font-size: 13.5px; }
  .nota-list, .restos-list, .phrases-list, .urgences-list, .checklist-list { padding: 0 24px 16px; }
  .convert-card, .convert-quick, .checklist-progress { margin-left: 24px; margin-right: 24px; }
}

@media (min-width: 1024px) {
  body { padding-left: var(--drawer-w); }
  .drawer {
    transform: translateX(0);
    box-shadow: none;
    border-right: 1px solid var(--rule);
  }
  .drawer-overlay { display: none; }
  .menu-toggle { display: none; }
  .app-header { left: var(--drawer-w); }
}
