/* Style commun des pages de contenu (guide, massifs, comparatif, suivi).
   Mêmes couleurs que l'accueil et que l'app. */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
:root {
  --green: #2E6B4F; --forest: #1B3226; --forest-deep: #14241B; --accent: #E8693D;
  --ink: #161D19; --muted: #68716B; --bg: #F7F6F2; --surface: #fff; --border: #E8E6E0; --soft: #E6EFE9;
}
html { scroll-behavior: smooth; }
body { font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: var(--green); }

nav.top { position: sticky; top: 0; z-index: 50; height: 62px; display: flex; align-items: center; justify-content: space-between; padding: 0 40px; background: rgba(247,246,242,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--border); }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.logo img { width: 32px; height: 32px; border-radius: 8px; }
.logo span { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -.5px; }
.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; }
.nav-links a:hover, .nav-links a.on { color: var(--ink); }
.nav-cta { background: var(--green); color: #fff; font-size: 14px; font-weight: 600; padding: 9px 20px; border-radius: 99px; text-decoration: none; }

.hero { background: linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%); color: #F4EEE2; padding: 88px 40px 72px; }
.hero.photo { background: linear-gradient(90deg, rgba(12,24,17,.86) 0%, rgba(12,24,17,.55) 55%, rgba(12,24,17,.2) 100%), url('/assets/hero-montblanc.jpg') center 60%/cover; }
.hero-in { max-width: 860px; margin: 0 auto; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 900; letter-spacing: -2px; line-height: 1.02; margin-bottom: 18px; }
.hero p { font-size: 18px; line-height: 1.6; color: rgba(244,238,226,.8); max-width: 620px; }

main.doc { max-width: 860px; margin: 0 auto; padding: 56px 40px 40px; }
.doc h2 { font-size: 28px; font-weight: 800; letter-spacing: -.8px; margin: 48px 0 14px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-size: 18px; font-weight: 700; margin: 26px 0 8px; }
.doc p, .doc li { font-size: 16px; line-height: 1.75; color: #374139; }
.doc p { margin-bottom: 14px; }
.doc ul { padding-left: 22px; margin-bottom: 14px; }
.doc li { margin-bottom: 6px; }
.note { font-size: 13px !important; color: var(--muted) !important; }

.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 20px; text-decoration: none; color: inherit; display: block; }
a.card:hover { border-color: var(--green); }
.card h3 { margin: 0 0 6px; font-size: 17px; }
.card p { font-size: 14px; line-height: 1.6; color: var(--muted); margin: 0; }
.card .meta { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .5px; text-transform: uppercase; margin-bottom: 8px; display: block; }

.callout { background: var(--soft); border-radius: 18px; padding: 20px 22px; margin: 22px 0; }
.callout p { margin: 0; color: var(--forest); }
.callout.warn { background: #FCEDE6; }
.callout.warn p { color: #7A2E14; }

.toc { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 18px 22px; margin-bottom: 8px; }
.toc ol { padding-left: 20px; }
.toc li { font-size: 15px; margin: 4px 0; }

table.cmp { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; margin: 18px 0; font-size: 15px; }
.cmp th, .cmp td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: top; }
.cmp thead th { background: var(--forest); color: #F4EEE2; font-size: 14px; }
.cmp thead th.us { background: var(--green); }
.cmp td.us { background: #F2F7F3; font-weight: 600; }
.cmp tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; }

.cta { background: var(--forest); color: #F4EEE2; border-radius: 24px; padding: 36px; margin: 56px 0 24px; display: flex; gap: 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta h2 { color: #F4EEE2; margin: 0 0 6px !important; font-size: 26px; }
.cta p { color: rgba(244,238,226,.8) !important; margin: 0 !important; }
.badge { display: inline-flex; align-items: center; gap: 10px; background: #000; color: #fff; border: 1px solid #a6a6a6; border-radius: 12px; padding: 9px 20px 9px 16px; text-decoration: none; }
.badge span { display: flex; flex-direction: column; font-size: 20px; font-weight: 600; letter-spacing: -.4px; line-height: 1.05; }
.badge small { font-size: 11px; font-weight: 500; letter-spacing: 0; }

footer.site { border-top: 1px solid var(--border); padding: 32px 40px; display: flex; flex-wrap: wrap; gap: 16px 28px; justify-content: space-between; align-items: center; font-size: 13px; color: var(--muted); }
footer.site ul { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); }

@media (max-width: 768px) {
  nav.top { padding: 0 20px; }
  .nav-links { display: none; }
  .hero { padding: 56px 20px 48px; }
  .hero p { font-size: 16px; }
  main.doc { padding: 40px 20px 24px; }
  .doc h2 { font-size: 24px; }
  .cta { padding: 26px 22px; }
  footer.site { padding: 28px 20px; }
}

/* Fiches randonnée */
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); }
.facts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-bottom: 18px; }
.facts div { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 14px; }
.facts b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.facts span { font-size: 12px; color: var(--muted); }
.trail-map { height: 380px; border-radius: 18px; border: 1px solid var(--border); background: #dfe6dc; z-index: 0; }
.trail-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; margin: 14px 0 8px; }
.trail-actions .note { margin: 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--green); color: #fff; border-radius: 99px; padding: 11px 20px; font-size: 14px; font-weight: 600; text-decoration: none; }
.card.trail p { font-variant-numeric: tabular-nums; }
@media (max-width: 768px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .facts div:last-child { grid-column: span 2; }
  .trail-map { height: 300px; }
}

/* Profil altimétrique */
.profile-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 14px 12px 6px; margin: 14px 0 8px; }
.profile-head { display: flex; justify-content: space-between; align-items: baseline; padding: 0 6px 6px; font-size: 14px; }
.profile-head span { color: var(--muted); font-variant-numeric: tabular-nums; }
.profile-wrap { position: relative; padding-top: 34px; }
.profile { width: 100%; touch-action: pan-y; cursor: crosshair; }
.profile svg { display: block; }
.profile .ax { font: 500 11px Inter, sans-serif; fill: var(--muted); font-variant-numeric: tabular-nums; }
.profile-tip { position: absolute; top: 0; left: 0; opacity: 0; pointer-events: none; transition: opacity .12s; background: var(--ink); color: #fff; border-radius: 10px; padding: 6px 10px; font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.profile-tip span { display: inline; margin-left: 6px; color: #F2C9B8; }
.wp-title { margin-top: 22px !important; }
.wp-list { list-style: none; padding: 0 !important; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; }
.wp-list li { display: grid; grid-template-columns: 58px 1fr auto; gap: 10px; align-items: center; padding: 11px 16px; margin: 0 !important; border-bottom: 1px solid var(--border); font-size: 15px; font-variant-numeric: tabular-nums; }
.wp-list li:last-child { border-bottom: none; }
.wp-list li:hover { background: #F2F7F3; }
.wp-list .km { color: var(--muted); font-size: 13px; }
.wp-list .nm { font-weight: 600; color: var(--ink); }
.wp-list .nm small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); }
.wp-list .al { font-weight: 700; color: var(--ink); }
