
/* Concept : la page suit le parcours d'un randonneur. Le trek promis en haut, la preuve par l'app réelle, puis le départ. Fond papier de topo-guide, écrans de l'app en sombre comme sur le téléphone. */
:root {
  --bg: #fffaf4;
  --surface: #fff4ea;
  --surface-2: #f5ebdf;
  --text: #1f2c2f;
  --muted: #4a5b5f;
  --line: rgba(31, 44, 47, 0.13);
  --brand: #3d6169;
  --accent: #a94f4f;
  --glacier: #7eafb5;
  --sun: #f7d690;
  --btn-bg: #1f2c2f;
  --btn-fg: #fff4ea;
  --btn-hover: #31464a;
  --night: #16272b;
  --night-text: #fff4ea;
  --night-muted: #b9c8c9;
  --focus: #3d6169;

  /* écrans de l'app : toujours sombres */
  --app-bg: #141414;
  --app-card: #1f1f1f;
  --app-text: #f4efe6;
  --app-muted: #a9a49b;
  --app-line: rgba(244, 239, 230, 0.14);
  --app-blue: #88abb4;
  --app-yellow: #f6e0a9;
  --app-navy: #5f6183;
  --app-pink: #e08a8a;

  --f-display: 'Poppins', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Poppins', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-data: 'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem);
  --step-3: clamp(2.25rem, 1.4rem + 4vw, 4.25rem);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111c1f; --surface: #172629; --surface-2: #1d2f33; --text: #f3ece2; --muted: #b3c1c3;
    --line: rgba(243, 236, 226, 0.14); --brand: #9cc5cb; --accent: #ec9a9a; --btn-bg: #fff4ea; --btn-fg: #1f2c2f;
    --btn-hover: #f1e3d3; --night: #0b1416; --night-text: #fff4ea; --night-muted: #b9c8c9; --focus: #9cc5cb; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #111c1f; --surface: #172629; --surface-2: #1d2f33; --text: #f3ece2; --muted: #b3c1c3;
  --line: rgba(243, 236, 226, 0.14); --brand: #9cc5cb; --accent: #ec9a9a; --btn-bg: #fff4ea; --btn-fg: #1f2c2f;
  --btn-hover: #f1e3d3; --night: #0b1416; --night-text: #fff4ea; --night-muted: #b9c8c9; --focus: #9cc5cb; color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: var(--step-0); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 600; text-wrap: balance; }
h1 { font-size: var(--step-3); line-height: 1.04; letter-spacing: -0.025em; }
h2 { font-size: var(--step-2); line-height: 1.1; letter-spacing: -0.02em; }
h3 { font-size: var(--step-1); line-height: 1.3; letter-spacing: -0.01em; }
a { color: var(--brand); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.data { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 720px) { .wrap { padding-left: max(32px, env(safe-area-inset-left, 0px)); padding-right: max(32px, env(safe-area-inset-right, 0px)); } }
.band { padding-block: 72px; }
@media (min-width: 900px) { .band { padding-block: 112px; } }
.lead { color: var(--muted); max-width: 58ch; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 16px; border-radius: 10px; z-index: 40; }
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

/* repère de section : les trois balises du logo */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-data); font-size: var(--step--1); font-weight: 500; color: var(--brand); }
.marks { display: inline-flex; gap: 3px; }
.marks i { width: 7px; height: 7px; border-radius: 2px; transform: rotate(45deg); }
.marks i:nth-child(1) { background: #7eafb5; } .marks i:nth-child(2) { background: #f2cf86; } .marks i:nth-child(3) { background: #c96868; }

/* boutons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 14px; font: 600 1rem/1.2 var(--f-body); text-decoration: none; border: 0; cursor: pointer; transition: background-color .2s ease, transform .1s ease; }
.btn:active { transform: scale(0.98); }
.btn-main { background: var(--btn-bg); color: var(--btn-fg); }
.btn-main:hover { background: var(--btn-hover); color: var(--btn-fg); }
.btn-line { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); }
.btn svg { flex: none; }
.stores { display: flex; flex-wrap: wrap; gap: 10px; }
.store { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 20px 0 16px; border-radius: 14px; text-decoration: none; background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s ease; }
.store:hover { box-shadow: inset 0 0 0 1.5px var(--text); color: var(--text); }
.store small { display: block; font-size: 0.75rem; color: var(--muted); line-height: 1.2; }
.store b { display: block; font-weight: 600; font-size: 1rem; line-height: 1.2; }
.cta-note { font-size: var(--step--1); color: var(--muted); }
.cta-note strong { color: var(--text); font-weight: 500; }

/* en-tête */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 600; font-size: 1.125rem; letter-spacing: -0.01em; min-height: 44px; }
.logo img { width: 40px; height: auto; display: block; }
.nav { display: none; gap: 28px; font-size: 0.9375rem; }
.nav a { color: var(--muted); text-decoration: none; padding-block: 10px; }
.nav a:hover { color: var(--text); }
.top .btn { min-height: 44px; padding: 0 16px; font-size: 0.9375rem; white-space: nowrap; }
@media (min-width: 960px) { .nav { display: flex; } }

/* hero */
.hero { padding-block: 40px 56px; }
.hero .wrap { display: grid; gap: 40px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero-actions { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.hero-actions .btn-main { min-height: 58px; font-size: 1.0625rem; padding: 0 28px; }
.hero-links { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: var(--step--1); }
.hero-links a { color: var(--muted); padding-block: 8px; }
.hero-art { justify-self: center; position: relative; }
@media (min-width: 900px) {
  .hero { padding-block: 64px 96px; }
  .hero .wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 64px; }
  .hero-art { justify-self: end; }
}

/* téléphone */
.phone { width: min(320px, 82vw); aspect-ratio: 390 / 820; border-radius: 46px; background: #2a2a2a; padding: 10px; box-shadow: 0 30px 70px rgba(16, 32, 36, 0.28); max-width: 100%; }
.screen { width: 100%; height: 100%; border-radius: 37px; background: var(--app-bg); color: var(--app-text); overflow: hidden; position: relative; font-size: 13px; line-height: 1.45; }
.island { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; border-radius: 14px; background: #000; z-index: 3; }
.scr-pad { padding: 50px 18px 18px; display: flex; flex-direction: column; gap: 12px; height: 100%; }
.scr-head { display: flex; gap: 10px; align-items: center; }
.scr-head b { display: block; font-size: 17px; font-weight: 600; }
.scr-head span { color: var(--app-muted); font-size: 11.5px; }
.app-tag { color: var(--app-muted); font-size: 11.5px; }
.day { display: flex; gap: 10px; align-items: center; }
.day .n { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--app-blue); display: grid; place-items: center; font-weight: 600; font-size: 12px; flex: none; }
.day b { font-size: 14px; font-weight: 600; }
.day em { font-style: normal; color: var(--app-muted); font-size: 11.5px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-block: 1px solid var(--app-line); padding-block: 8px; }
.stats span { display: block; color: var(--app-muted); font-size: 10px; }
.stats b { font-family: var(--f-data); font-weight: 500; font-size: 12px; }
.profile svg { width: 100%; height: auto; display: block; }
.poi { display: flex; gap: 10px; align-items: center; padding-block: 8px; border-bottom: 1px solid var(--app-line); }
.poi .km { width: 50px; font-family: var(--f-data); font-size: 10.5px; white-space: nowrap; }
.poi .ic { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; flex: none; }
.poi .t { flex: 1; min-width: 0; }
.poi .t small { display: block; font-size: 10px; }
.poi .t b { font-size: 12.5px; font-weight: 600; }
.poi .alt { font-family: var(--f-data); font-size: 11px; }

/* bandeau de preuves */
.facts { border-block: 1px solid var(--line); background: var(--surface); }
.facts ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; }
.facts li { padding: 18px 12px 18px 0; display: flex; flex-direction: column; gap: 2px; }
.facts li b { font-family: var(--f-data); font-weight: 500; font-size: 1.25rem; }
.facts li span { font-size: var(--step--1); color: var(--muted); line-height: 1.4; }
@media (min-width: 900px) { .facts ul { grid-template-columns: repeat(4, minmax(0, 1fr)); } .facts li { padding: 24px 24px 24px 0; } .facts li + li { padding-left: 24px; border-left: 1px solid var(--line); } }

/* démo */
.demo .wrap { display: grid; gap: 48px; align-items: start; }
.demo-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.steps { display: grid; gap: 4px; counter-reset: s; margin-top: 8px; }
.steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.steps li::before { counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%; background: var(--btn-bg); color: var(--btn-fg); display: grid; place-items: center; font-weight: 600; font-size: 0.9375rem; }
.steps b { display: block; font-weight: 600; }
.steps span { color: var(--muted); font-size: 0.9375rem; }
.demo-art { justify-self: center; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.demo-hint { font-size: var(--step--1); color: var(--muted); text-align: center; }
@media (min-width: 900px) { .demo .wrap { grid-template-columns: minmax(0, 1fr) auto; gap: 80px; } .demo-art { position: sticky; top: 96px; } }

.q-prog { display: flex; align-items: center; gap: 8px; }
.q-prog .bars { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.q-prog .bars i { height: 4px; border-radius: 2px; background: #3a3a3a; }
.q-prog .bars i.on { background: var(--app-blue); }
.q-prog span { font-size: 11px; color: var(--app-muted); font-family: var(--f-data); }
.q-kick { font-size: 10.5px; font-weight: 600; letter-spacing: 0.06em; color: var(--app-muted); margin-top: 6px; }
.q-title { font-size: 19px; font-weight: 600; line-height: 1.2; }
.q-sub { color: var(--app-muted); font-size: 12px; }
.q-opts { display: grid; gap: 8px; margin-top: 4px; }
.q-opts.grid3 { grid-template-columns: repeat(3, 1fr); }
.q-opt { min-height: 46px; border-radius: 12px; border: 1.5px solid var(--app-line); background: transparent; color: var(--app-text); font: 500 13px/1.25 var(--f-body); text-align: left; padding: 10px 12px; cursor: pointer; display: flex; gap: 10px; align-items: center; }
.q-opts.grid3 .q-opt { flex-direction: column; justify-content: center; text-align: center; gap: 0; min-height: 58px; }
.q-opts.grid3 .q-opt b { font-size: 18px; font-weight: 600; }
.q-opt small { display: block; color: var(--app-muted); font-size: 11px; font-weight: 400; }
.q-opt:hover { border-color: var(--app-blue); }
.q-opt[aria-pressed="true"] { background: var(--app-blue); border-color: var(--app-blue); color: #141414; }
.q-opt[aria-pressed="true"] small { color: #141414; }
.q-opt .sq { width: 30px; height: 30px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.q-opt:focus-visible, .scr-btn:focus-visible { outline: 3px solid var(--app-yellow); outline-offset: 2px; }
.scr-btn { margin-top: auto; min-height: 46px; border-radius: 12px; border: 0; background: var(--app-blue); color: #141414; font: 600 14px/1 var(--f-body); display: flex; align-items: center; justify-content: center; text-decoration: none; cursor: pointer; }
.scr-link { background: none; border: 0; color: var(--app-muted); font: 500 12px var(--f-body); text-decoration: underline; cursor: pointer; padding: 8px; }
.res-list { display: grid; gap: 0; }
.res-list li { display: grid; grid-template-columns: 34px 1fr; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--app-line); }
.res-list li .n { font-family: var(--f-data); color: var(--app-blue); font-size: 12px; padding-top: 1px; }
.res-list b { font-size: 12.5px; font-weight: 600; display: block; }
.res-list span { font-family: var(--f-data); font-size: 11px; color: var(--app-muted); }
.res-sum { font-family: var(--f-data); font-size: 11.5px; color: var(--app-muted); }

/* fonctionnalités */
.feat-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; }
.feat { display: grid; gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 24px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.panel p { color: var(--muted); font-size: 0.9375rem; }
.panel.big { background: var(--night); color: var(--night-text); border-color: transparent; }
.panel.big p { color: var(--night-muted); }
.legs { display: grid; margin-top: 8px; }
.legs li { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid rgba(255, 244, 234, 0.14); font-family: var(--f-data); font-size: 0.875rem; }
.legs li .bar { height: 8px; border-radius: 4px; background: rgba(255, 244, 234, 0.12); overflow: hidden; }
.legs li .bar i { display: block; height: 100%; background: var(--glacier); border-radius: 4px; }
.legs li.rest .bar i { background: transparent; }
.big-num { font-family: var(--f-data); font-weight: 500; font-size: 2.25rem; line-height: 1; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-data); font-size: 0.75rem; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--text); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
@media (min-width: 760px) { .feat { grid-template-columns: repeat(2, minmax(0, 1fr)); } .panel.big { grid-row: span 2; } .panel.wide { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; } .panel.wide > div { max-width: 62ch; display: flex; flex-direction: column; gap: 8px; } }
@media (min-width: 1100px) { .feat { grid-template-columns: 1.15fr 1fr 1fr; } .panel.big { grid-row: span 2; } .panel { padding: 28px; } }

/* treks */
.treks-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 32px; }
.treks { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.trek { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.trek:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(16, 32, 36, 0.12); color: var(--text); }
.trek svg { display: block; width: 100%; height: auto; }
.trek-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; }
.trek-body .m { font-family: var(--f-data); font-size: 0.75rem; color: var(--muted); }
.trek-body h3 { font-size: 1.125rem; }
.trek-data { display: flex; flex-wrap: wrap; gap: 4px 14px; font-family: var(--f-data); font-size: 0.8125rem; color: var(--muted); }
.diff { display: flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.pips { display: inline-flex; gap: 3px; }
.pips i { width: 14px; height: 6px; border-radius: 3px; background: var(--line); }
.pips i.on { background: var(--accent); }

/* avis */
.quotes { display: grid; grid-auto-flow: column; grid-auto-columns: min(82%, 320px); gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; margin-top: 32px; }
.quotes li { scroll-snap-align: start; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.quotes p { font-size: 1.0625rem; line-height: 1.5; }
.quotes span { font-family: var(--f-data); font-size: 0.75rem; color: var(--muted); }
@media (min-width: 900px) { .quotes { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; } }

/* tarifs */
.price-head { display: flex; flex-direction: column; gap: 16px; margin-bottom: 40px; max-width: 640px; }
.plans { display: grid; gap: 16px; }
.plan { border-radius: 24px; padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; border: 1px solid var(--line); background: var(--surface); }
.plan.main { background: var(--night); color: var(--night-text); border-color: transparent; }
.plan .kind { font-family: var(--f-data); font-size: 0.8125rem; color: var(--muted); }
.plan.main .kind { color: var(--night-muted); }
.plan .price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.plan .price b { white-space: nowrap; }
.plan .price b { font-size: 3rem; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.plan .price span { color: var(--muted); }
.plan.main .price span { color: var(--night-muted); }
.plan ul { display: grid; gap: 10px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 0.9375rem; }
.plan li svg { margin-top: 4px; }
.plan .btn { margin-top: auto; }
.plan.main .btn-main { background: var(--sun); color: #1f2c2f; }
.plan.main .btn-main:hover { background: #fbe3ad; }
.plan .fine { font-size: 0.8125rem; color: var(--muted); }
.plan.main .fine { color: var(--night-muted); }
@media (min-width: 760px) { .plans { grid-template-columns: 1fr 1.15fr; align-items: stretch; } .plan { padding: 36px; } }

/* FAQ */
.faq .wrap { display: grid; gap: 32px; }
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 0; font-weight: 600; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform .2s ease; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; max-width: 62ch; }
@media (min-width: 900px) { .faq .wrap { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 80px; } }

/* départ */
.final { background: var(--night); color: var(--night-text); }
.final .wrap { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.final p { color: var(--night-muted); max-width: 56ch; }
.final .btn-main { background: var(--sun); color: #1f2c2f; }
.final .btn-main:hover { background: #fbe3ad; }
.final .store { background: rgba(255, 244, 234, 0.08); color: var(--night-text); box-shadow: inset 0 0 0 1px rgba(255, 244, 234, 0.2); }
.final .store small { color: var(--night-muted); }
.final .store:hover { box-shadow: inset 0 0 0 1.5px var(--night-text); color: var(--night-text); }
.final .data { color: var(--night-muted); font-size: var(--step--1); }

/* pied de page */
.foot { padding-block: 48px calc(48px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); font-size: 0.9375rem; }
.foot .wrap { display: grid; gap: 32px; }
.foot h2 { font-size: 0.875rem; font-weight: 600; margin-bottom: 10px; letter-spacing: 0; }
.foot ul { display: grid; gap: 2px; }
.foot a { color: var(--muted); text-decoration: none; display: inline-block; padding-block: 6px; }
.foot a:hover { color: var(--text); text-decoration: underline; }
.foot .legal { color: var(--muted); font-size: 0.8125rem; }
@media (min-width: 760px) { .foot .wrap { grid-template-columns: 1.4fr 1fr 1fr 1fr; } .foot .legal { grid-column: 1 / -1; } }

/* menu téléphone */
.menu-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; border-radius: 12px; border: 1.5px solid var(--line); background: transparent; color: var(--text); font: 600 0.9375rem var(--f-body); cursor: pointer; }
.menu-btn .bars3 { width: 16px; height: 2px; background: currentColor; box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor; }
.top-cta { display: none; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px rgba(16, 32, 36, 0.12); padding: 8px max(16px, env(safe-area-inset-right, 0px)) 20px max(16px, env(safe-area-inset-left, 0px)); display: grid; gap: 2px; }
.menu-panel a:not(.btn) { display: block; padding: 14px 4px; font-size: 1.0625rem; color: var(--text); text-decoration: none; border-bottom: 1px solid var(--line); }
.menu-panel .btn { margin-top: 14px; }
.menu-panel[hidden] { display: none; }
@media (min-width: 960px) { .menu-btn, .menu-panel { display: none !important; } .top-cta { display: inline-flex; } }

/* bandeau d'avis qui défile */
.ticker { background: var(--night); color: var(--night-text); overflow: hidden; padding-block: 18px; }
.ticker-head { display: flex; align-items: center; gap: 10px; font-family: var(--f-data); font-size: var(--step--1); color: var(--night-muted); margin-bottom: 12px; }
.ticker-track { display: flex; width: max-content; gap: 14px; animation: tick 48s linear infinite; }
.ticker:hover .ticker-track, .ticker:focus-within .ticker-track { animation-play-state: paused; }
.ticker ul { display: flex; gap: 14px; }
.ticker li { flex: none; width: min(78vw, 340px); background: rgba(255, 244, 234, 0.07); border: 1px solid rgba(255, 244, 234, 0.14); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.ticker li p { font-size: 0.9375rem; line-height: 1.45; }
.ticker li span { font-family: var(--f-data); font-size: 0.75rem; color: var(--night-muted); }
@keyframes tick { to { transform: translateX(calc(-50% - 7px)); } }
@media (prefers-reduced-motion: reduce) { .ticker-track { animation: none; overflow-x: auto; width: auto; } .ticker-track ul[aria-hidden] { display: none; } }

/* animations */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes floatIn { from { opacity: 0; transform: translateY(40px) rotate(3deg); } to { opacity: 1; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fill { from { opacity: 0; } to { opacity: 1; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.25; } 50% { opacity: 1; } }
@keyframes walk { to { stroke-dashoffset: -48; } }
@keyframes qIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.rise { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; animation-delay: var(--d, 0s); }
.float-in { animation: floatIn .9s cubic-bezier(.2, .7, .2, 1) .25s both; }
.bob { animation: bob 6s ease-in-out 1.4s infinite; }
.draw { stroke-dasharray: 1; animation: draw 1.6s ease-out .8s both; }
.fill-in { animation: fill .8s ease 1.6s both; }
.pop { animation: rise .5s ease both; animation-delay: var(--d, 1.8s); }
.q.anim { animation: qIn .35s ease both; }
.trek-img { overflow: hidden; aspect-ratio: 16 / 10; background: var(--surface-2); }
.trek-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s ease; }
.trek:hover .trek-img img { transform: scale(1.06); }
/* apparition au défilement : une seule fois, contenu visible si le script ne tourne pas */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal:nth-child(2) { transition-delay: .08s; } .js .reveal:nth-child(3) { transition-delay: .16s; } .js .reveal:nth-child(4) { transition-delay: .24s; } .js .reveal:nth-child(5) { transition-delay: .32s; }
.js .legs .bar i { transform: scaleX(0); transform-origin: left; transition: transform 1s cubic-bezier(.2, .7, .2, 1) .35s; }
.js .in .legs .bar i { transform: scaleX(1); }
@media (prefers-reduced-motion: reduce) { .js .reveal, .js .legs .bar i { opacity: 1; transform: none; } }
.stars { position: absolute; inset: 0; pointer-events: none; -webkit-mask-image: linear-gradient(100deg, transparent 0 46%, #000 64%); mask-image: linear-gradient(100deg, transparent 0 46%, #000 64%); }
@media (max-width: 759px) { .stars { -webkit-mask-image: linear-gradient(to bottom, #000 0 9%, transparent 16%); mask-image: linear-gradient(to bottom, #000 0 9%, transparent 16%); } }
.stars i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff4ea; animation: twinkle 3.2s ease-in-out infinite; animation-delay: var(--d); }
.final { position: relative; overflow: hidden; }
.final .wrap { position: relative; }
.trail { position: absolute; right: 0; bottom: 0; width: min(560px, 70%); height: auto; opacity: .5; pointer-events: none; }
.trail path { animation: walk 2.4s linear infinite; }
@media (prefers-reduced-motion: reduce) { .rise, .float-in, .bob, .draw, .fill-in, .pop, .q.anim, .reveal, .legs .bar i, .stars i, .trail path { animation: none !important; } .draw { stroke-dasharray: none; } }

/* blog (accueil) */
.posts { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.post { display: flex; flex-direction: column; border-radius: 20px; overflow: hidden; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: transform .2s ease, box-shadow .2s ease; }
.post:hover { transform: translateY(-3px); box-shadow: 0 16px 30px rgba(16, 32, 36, 0.12); color: var(--text); }
.post .trek-img { aspect-ratio: 16 / 9; }
.post:hover .trek-img img { transform: scale(1.06); }
.post-body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; }
.post-body .m { font-family: var(--f-data); font-size: 0.75rem; color: var(--brand); }
.post-body h3 { font-size: 1.0625rem; line-height: 1.35; }
.post-body p { color: var(--muted); font-size: 0.875rem; line-height: 1.5; }

/* barre d'action mobile */
.sticky { position: fixed; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--bg); border-top: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) calc(10px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px)); display: flex; gap: 12px; align-items: center; transform: translateY(110%); transition: transform .25s ease; }
.sticky.show { transform: none; }
.sticky .btn { flex: 1; min-height: 50px; white-space: nowrap; padding: 0 16px; }
.sticky span { font-size: 0.75rem; color: var(--muted); line-height: 1.3; max-width: 110px; }
@media (min-width: 900px) { .sticky { display: none; } }

.crumb { font-family: var(--f-data); font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; }
.crumb a { color: var(--muted); }
.art-head { padding-block: 40px 24px; display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.art-head h1 { font-size: clamp(2rem, 1.3rem + 3vw, 3.25rem); }
.art-meta { font-family: var(--f-data); font-size: var(--step--1); color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 16px; }
.cat { display: inline-flex; align-self: flex-start; font-family: var(--f-data); font-size: 0.75rem; padding: 6px 10px; border-radius: 999px; background: var(--surface-2); color: var(--brand); }
.cover { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 9; max-width: 1000px; background: var(--surface-2); }
.cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prose { max-width: 700px; padding-block: 40px 24px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: 1.625rem; margin-top: 2em; line-height: 1.2; }
.prose h3 { font-size: 1.1875rem; margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; display: grid; gap: .4em; }
.prose ul { list-style: disc; } .prose ol { list-style: decimal; }
.prose li::marker { color: var(--accent); }
.prose blockquote { margin: 1.2em 0 0; padding: 14px 18px; border-radius: 14px; background: var(--surface); color: var(--muted); }
.prose strong { font-weight: 600; }
.prose .tbl { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; }
.prose table { border-collapse: collapse; width: 100%; font-size: .9375rem; }
.prose th, .prose td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { background: var(--surface); font-weight: 600; }
.prose tr:last-child td { border-bottom: 0; }
.cta-box { max-width: 700px; background: var(--night); color: var(--night-text); border-radius: 22px; padding: 28px; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; margin-block: 16px 56px; }
.cta-box h2 { font-size: 1.5rem; }
.cta-box p { color: var(--night-muted); }
.cta-box .btn-main { background: var(--sun); color: #1f2c2f; }
.cta-box .btn-main:hover { background: #fbe3ad; }
.cta-box .cta-note { color: var(--night-muted); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 8px 28px; }
.filters button { min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid var(--line); background: transparent; color: var(--text); font: 500 .9375rem var(--f-body); cursor: pointer; }
.filters button[aria-pressed="true"] { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.post[hidden] { display: none; }

/* ===== moteur du blog (articles écrits avec le générateur) ===== */
.prose .lead { font-size: 1.1875rem; line-height: 1.6; color: var(--text); max-width: none; }
.prose a { overflow-wrap: anywhere; }
.prose figure img { width: 100%; height: auto; border-radius: 16px; display: block; }
.prose figcaption { font-family: var(--f-data); font-size: var(--step--1); color: var(--muted); margin-top: 8px; }
.callout { background: var(--surface); border-radius: 16px; padding: 16px 20px; }
.callout > * + * { margin-top: .6em; }
.callout--warning { background: color-mix(in srgb, var(--accent) 12%, var(--bg)); }
.callout--warning strong { color: var(--accent); }
.draft-note { align-self: flex-start; font-family: var(--f-data); font-size: var(--step--1); background: var(--sun); color: #1f2c2f; padding: 6px 12px; border-radius: 10px; }
.post .trek-img .no-cover { display: block; width: 100%; height: 100%; background: radial-gradient(circle at 30% 70%, transparent 0 18px, var(--line) 19px 20px, transparent 21px 34px, var(--line) 35px 36px, transparent 37px), var(--surface-2); }
.blog-empty { padding: 48px 0; display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.blog-empty p { color: var(--muted); }
.filter-empty { color: var(--muted); padding-block: 24px; }
