:root {
  --bg: #f4ece1;
  --bg-alt: #ede2d1;
  --ink: #2a241d;
  --ink-soft: #5b5147;
  --ink-mute: #8a7f73;
  --line: #d9cdbc;
  --sky: #4a7a99;
  --terre: #b25d3a;
  --route: #6f655a;
  --card: #fbf6ec;
  --shadow: 0 1px 2px rgba(42, 36, 29, 0.04),
    0 8px 24px -16px rgba(42, 36, 29, 0.12);
  --radius: 14px;
  --maxw: 980px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: var(--sky);
  text-decoration: none;
  text-underline-offset: 3px;
}

a:hover {
  text-decoration: underline;
}

strong {
  font-weight: 600;
  color: var(--ink);
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(244, 236, 225, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: 60px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.logo:hover {
  text-decoration: none;
}

.site-header nav {
  display: flex;
  gap: 22px;
  font-size: 15px;
}

.site-header nav a {
  color: var(--ink-soft);
}

.site-header nav a:hover {
  color: var(--terre);
  text-decoration: none;
}

/* ---------- Hero ---------- */

.hero {
  padding: 80px 0 64px;
  border-bottom: 1px solid var(--line);
}

.kicker {
  margin: 0 0 16px;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terre);
  font-weight: 500;
}

.hero h1 {
  margin: 0 0 24px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.lede {
  margin: 0 0 28px;
  max-width: 62ch;
  font-size: 19px;
  line-height: 1.6;
  color: var(--ink-soft);
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 14px;
  color: var(--ink-soft);
}

/* ---------- Sections ---------- */

.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--line);
}

.section-alt {
  background: var(--bg-alt);
}

.section-head {
  max-width: 62ch;
  margin: 0 0 48px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terre);
  font-weight: 500;
}

.section h2 {
  margin: 0 0 16px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.section-lede {
  margin: 0;
  font-size: 17px;
  color: var(--ink-soft);
}

/* ---------- Itineraires : cards ---------- */

.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgba(42, 36, 29, 0.05),
    0 18px 36px -22px rgba(42, 36, 29, 0.22);
}

.card-tag {
  display: inline-block;
  margin-bottom: 12px;
  padding: 4px 10px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.04em;
}

.card h3 {
  margin: 0 0 12px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* ---------- Tips ---------- */

.tips {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 720px) {
  .tips {
    grid-template-columns: 1fr 1fr;
  }
}

.tip {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
}

.tip h3 {
  margin: 0 0 10px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 19px;
  letter-spacing: -0.005em;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 10px;
}

.tip h3 span {
  font-size: 22px;
  line-height: 1;
}

.tip p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 16px;
}

@media (min-width: 720px) {
  .tip--wide {
    grid-column: 1 / -1;
  }
}

.tip__intro {
  margin: 0 0 16px !important;
}

.tip__note {
  margin: 14px 0 0 !important;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 14px !important;
  color: var(--ink-mute) !important;
}

/* Budget table */
.budget-table-wrap {
  overflow-x: auto;
  margin: 0 -4px;
}

.budget-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.budget-table th,
.budget-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.budget-table thead th {
  font-family: ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-transform: uppercase;
  border-bottom: 1.5px solid var(--ink-mute);
  background: var(--bg);
}

.budget-table tbody th {
  font-weight: 500;
  color: var(--ink);
}

.budget-table tbody td {
  color: var(--ink-soft);
}

.budget-table tbody tr:last-child th,
.budget-table tbody tr:last-child td {
  border-bottom: 0;
}

.budget-table tbody tr:hover {
  background: var(--bg);
}

.budget-table tbody td:last-child {
  white-space: nowrap;
  color: var(--ink);
}

/* ---------- Checklist ---------- */

.checklist-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
}

@media (min-width: 720px) {
  .checklist-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.checklist-col h3 {
  margin: 0 0 14px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
}

.checklist li {
  position: relative;
  padding: 10px 0 10px 28px;
  border-bottom: 1px dashed var(--line);
  color: var(--ink-soft);
  font-size: 16px;
}

.checklist li:last-child {
  border-bottom: 0;
}

.checklist li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--route);
  border-radius: 4px;
  background: transparent;
}

/* ---------- Carte ---------- */

.wrap-wide {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

.map-wrap {
  margin-top: 8px;
}

#map {
  width: 100%;
  height: 540px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background: var(--card);
  overflow: hidden;
  z-index: 0;
}

@media (max-width: 720px) {
  #map {
    height: 420px;
  }
}

.map-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 18px 0 0;
  font-size: 14px;
  color: var(--ink-mute);
}

.legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease,
    border-color 0.15s ease, opacity 0.15s ease;
}

.legend-btn:hover {
  border-color: var(--ink-mute);
}

.legend-btn:not(.is-on) {
  opacity: 0.5;
  text-decoration: line-through;
  text-decoration-color: var(--ink-mute);
}

.legend-btn:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
}

.legend-hint {
  font-size: 12px;
  color: var(--ink-mute);
  margin-left: 4px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 0;
  border-radius: 999px;
  vertical-align: middle;
  transform: translateY(-1px);
  box-shadow: 0 0 0 2px var(--bg);
}

.legend-dot--nord {
  background: var(--sky);
}
.legend-dot--montagne {
  background: var(--route);
}
.legend-dot--mer {
  background: var(--terre);
}

.map-attribution {
  margin: 10px 0 0;
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}

/* Custom pins */
.map-pin-wrap {
  background: transparent !important;
  border: 0 !important;
}

.map-pin {
  display: block;
  width: 26px;
  height: 32px;
  position: relative;
  filter: drop-shadow(0 2px 4px rgba(42, 36, 29, 0.25));
}

.map-pin::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pin, #b25d3a);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'><path d='M13 0C5.82 0 0 5.82 0 13c0 9.5 13 19 13 19s13-9.5 13-19C26 5.82 20.18 0 13 0z'/></svg>")
    center / contain no-repeat;
          mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 26 32'><path d='M13 0C5.82 0 0 5.82 0 13c0 9.5 13 19 13 19s13-9.5 13-19C26 5.82 20.18 0 13 0z'/></svg>")
    center / contain no-repeat;
}

.map-pin__dot {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--card);
}

.map-pin-wrap:hover .map-pin {
  filter: drop-shadow(0 4px 8px rgba(42, 36, 29, 0.35));
  transform: translateY(-2px);
  transition: transform 0.15s ease;
}

/* Popups */
.leaflet-container {
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  box-shadow: 0 10px 30px -10px rgba(42, 36, 29, 0.35) !important;
  background: var(--card) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line);
}

.leaflet-popup-tip {
  background: var(--card) !important;
  border: 1px solid var(--line);
  border-top: 0;
  border-left: 0;
}

.leaflet-popup-content {
  margin: 16px 18px !important;
  line-height: 1.55 !important;
}

.map-popup__country {
  margin: 0 0 4px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--terre);
  font-weight: 500;
}

.map-popup__name {
  margin: 0 0 8px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.map-popup__desc {
  margin: 0 0 10px;
  font-size: 14px;
  color: var(--ink-soft);
}

.map-popup__tip {
  margin: 10px 0 0;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
  font-size: 13px;
  color: var(--ink-mute);
}

.map-popup__tip strong {
  color: var(--terre);
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 11px;
}

.leaflet-control-attribution {
  background: rgba(251, 246, 236, 0.9) !important;
  font-size: 10px !important;
  color: var(--ink-mute) !important;
}

.leaflet-control-attribution a {
  color: var(--sky) !important;
}

/* ---------- Spots list under map ---------- */

.spots-list-wrap {
  margin: 40px 0 0;
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.spots-list-title {
  margin: 0 0 20px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 500;
  font-size: 20px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.spots-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}

@media (min-width: 720px) {
  .spots-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1000px) {
  .spots-list {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

.spots-country__name {
  margin: 0 0 8px;
  font-family: ui-serif, Georgia, serif;
  font-weight: 500;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--terre);
}

.spots-country__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.spots-item {
  border-bottom: 1px dashed var(--line);
}

.spots-item:last-child {
  border-bottom: 0;
}

.spots-item__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 0;
  text-align: left;
  background: transparent;
  border: 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink-soft);
  cursor: pointer;
  transition: color 0.15s ease, padding-left 0.15s ease;
}

.spots-item__btn:hover {
  color: var(--ink);
  padding-left: 4px;
}

.spots-item__btn:focus-visible {
  outline: 2px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.spots-item__dot {
  flex-shrink: 0;
}

.spots-item__name {
  flex: 1;
}

/* ---------- Closing ---------- */

.closing {
  padding: 64px 0 80px;
}

.closing p {
  max-width: 62ch;
  margin: 0 0 14px;
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink);
  letter-spacing: -0.005em;
}

.signature {
  color: var(--terre) !important;
  font-size: 20px !important;
}

/* ---------- Footer ---------- */

.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid var(--line);
  background: var(--bg-alt);
}

.site-footer p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-mute);
}

/* ---------- Tweaks mobiles ---------- */

@media (max-width: 560px) {
  .site-header nav {
    gap: 14px;
    font-size: 14px;
  }

  .hero {
    padding: 56px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .card,
  .tip {
    padding: 22px;
  }
}

/* ---------- Print : checklist propre, le reste masqué ---------- */

@media print {
  :root {
    --bg: #fff;
    --bg-alt: #fff;
    --card: #fff;
    --line: #999;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 12pt;
    line-height: 1.5;
  }

  .site-header,
  .site-footer,
  .hero,
  #itineraires,
  #carte,
  #conseils,
  .closing,
  .map-wrap,
  .spots-list-wrap {
    display: none !important;
  }

  #checklist {
    padding: 0;
    border: 0;
  }

  #checklist .section-head {
    margin-bottom: 20px;
  }

  .checklist-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .checklist-col {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .checklist li {
    border-bottom: 0;
    padding: 5px 0 5px 24px;
    color: #000;
    font-size: 11pt;
  }

  .checklist li::before {
    top: 9px;
    border-color: #444;
  }

  a {
    color: #000;
    text-decoration: none;
  }
}
