/* ═══════════════════════════════════════════════════════════
   COLS DES PYRÉNÉES — design « aube en montagne »
   écru neige · ardoise · terracotta · crêtes bleu brume
   ═══════════════════════════════════════════════════════════ */
:root {
  --paper: #f6f4ee;
  --paper2: #edeae0;
  --card: #ffffff;
  --ink: #232b33;
  --ink2: #46525c;
  --muted: #8a939c;
  --line: rgba(35, 43, 51, .12);
  --accent: #b4532a;
  --green: #2a9d3a;
  --night: #242e37;
  --radius: 16px;
  --shadow: 0 8px 28px rgba(35, 43, 51, .08);
  --font-d: 'Barlow Condensed', 'Inter', sans-serif;
  --font-s: 'Caveat', 'Segoe Script', cursive;
  font-size: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--paper);
  /* quadrillage de cahier, très léger */
  background-image:
    linear-gradient(rgba(35, 43, 51, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(35, 43, 51, .045) 1px, transparent 1px);
  background-size: 26px 26px, 26px 26px;
  background-position: 0 0, 0 0;
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-d); text-transform: uppercase; letter-spacing: .015em; line-height: .95; }
::selection { background: #d8ccb8; color: var(--ink); }

/* ── surlignage marqueur (col gravi, façon fluo de cahier) ── */
.hl {
  background: linear-gradient(100deg,
    rgba(74, 189, 106, 0) 0.8%, rgba(74, 189, 106, .38) 3%,
    rgba(74, 189, 106, .32) 50%,
    rgba(74, 189, 106, .38) 97%, rgba(74, 189, 106, 0) 99.2%);
  border-radius: .35em .6em .4em .5em;
  padding: 0 .18em; margin: 0 -.08em;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.rough-annotation { pointer-events: none; }

/* ── doodles « dessins d'enfant » en fond ── */
.doodle {
  position: absolute; pointer-events: none; user-select: none;
  color: rgba(35, 43, 51, .30); z-index: 0;
}
main section { position: relative; }
.sd { color: rgba(35, 43, 51, .26); }
.dd-sun { top: 11%; right: 7%; width: 120px; color: rgba(180, 83, 42, .5); transform: rotate(9deg); animation: bob 6s ease-in-out infinite; }
.dd-cloud1 { top: 17%; left: 5%; width: 130px; color: rgba(35, 43, 51, .22); }
.dd-cloud2 { top: 30%; right: 22%; width: 85px; color: rgba(35, 43, 51, .16); transform: scaleX(-1); }
.dd-ossau-wrap { bottom: 37%; right: 6%; width: 180px; color: rgba(35, 43, 51, .34); transform: rotate(-2deg); }
.dd-ossau-wrap .dd-ossau { width: 100%; }
.doodle-label {
  display: block; text-align: center; margin-top: -6px;
  font-family: var(--font-s); font-size: 1.3rem; font-weight: 600;
  color: rgba(180, 83, 42, .65); transform: rotate(-4deg);
}
@keyframes bob { 0%, 100% { transform: rotate(9deg) translateY(0); } 50% { transform: rotate(7deg) translateY(-7px); } }
@media (prefers-reduced-motion: reduce) { .dd-sun { animation: none; } }

/* ── soulignement crayon en pur CSS (position toujours juste) ── */
.sec-head h2, .hero h1 .fancy {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 10' preserveAspectRatio='none'%3E%3Cpath d='M3 6.5 Q30 3 60 5.5 T120 5 T197 5.5' fill='none' stroke='%23b4532a' stroke-width='3' stroke-linecap='round' opacity='.95'/%3E%3Cpath d='M5 8.2 Q40 5.5 80 7 T196 6.8' fill='none' stroke='%23b4532a' stroke-width='1.8' stroke-linecap='round' opacity='.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 100%;
  background-size: 100% .16em;
  padding-bottom: .12em;
}
.hero-inner { position: relative; z-index: 2; }
@media (max-width: 900px) {
  .sd, .dd-cloud2, .dd-ossau-wrap { display: none; }
  .dd-sun { width: 80px; right: 4%; }
}

/* ── Révélations au scroll ── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s cubic-bezier(.22,1,.36,1), transform .8s cubic-bezier(.22,1,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; } .reveal.d2 { transition-delay: .22s; } .reveal.d3 { transition-delay: .34s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* ═══ Navigation ═══ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 3000;
  display: flex; align-items: center; gap: 1.4rem;
  padding: .8rem clamp(1rem, 4vw, 2.4rem);
  transition: background .35s, box-shadow .35s, padding .35s;
}
.nav.scrolled {
  background: rgba(246, 244, 238, .92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--line);
  padding-top: .55rem; padding-bottom: .55rem;
}
.brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); }
.brand-mk { width: 30px; flex: none; color: var(--accent); }
.brand-txt { font-family: var(--font-d); font-weight: 700; text-transform: uppercase; font-size: 1.15rem; letter-spacing: .04em; white-space: nowrap; }
.brand-txt em { font-family: var(--font-s); font-style: italic; text-transform: lowercase; letter-spacing: 0; font-size: .95em; }
.nav-links { display: flex; gap: 1.3rem; margin-left: auto; overflow-x: auto; scrollbar-width: none; min-width: 0; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  position: relative; text-decoration: none; color: var(--ink2);
  font-size: .82rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  padding: .2rem 0; white-space: nowrap; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--accent); }
.nav-burger { display: none; }

/* ═══ Hero — le ciel suit l'heure locale (voir heroSky dans ui.js) ═══ */
:root {
  --hero-sky1: #f2f3f2; --hero-sky2: #e4e9ec; --hero-sky3: #cfdae2; --hero-sky4: #b9c9d5;
  --hs-m1: #3a4a58; --hs-m2: #7d92a5; --hs-m3: #aebfce;
  --hs-ground: #8fa3b3; --hs-road: #c3cdd6; --hs-sun: #f2b134; --hs-bike: #14181f;
}
.hero {
  position: relative; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  background: linear-gradient(180deg, var(--hero-sky1) 0%, var(--hero-sky2) 40%, var(--hero-sky3) 75%, var(--hero-sky4) 100%);
  color: var(--ink); overflow: hidden;
  transition: background 1.5s ease;
}
.hero-scene { position: absolute; inset: 0; z-index: 1; overflow: hidden; }
.hero-img {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1;
  object-fit: cover; object-position: center bottom;
  filter: var(--hs-imgf, none); transition: filter 1.5s ease;
}
/* étoiles filantes (nuit seulement) */
.hs-filante { opacity: 0; }
.hero.hs-night .hs-filante.f1 { animation: filante1 11s linear infinite; }
.hero.hs-night .hs-filante.f2 { animation: filante2 17s linear infinite 6s; }
@keyframes filante1 {
  0%, 84% { opacity: 0; transform: translate(190px, 45px); }
  86% { opacity: 1; }
  93% { opacity: 0; transform: translate(520px, 170px); }
  100% { opacity: 0; transform: translate(520px, 170px); }
}
@keyframes filante2 {
  0%, 88% { opacity: 0; transform: translate(1280px, 55px); }
  90% { opacity: 1; }
  96% { opacity: 0; transform: translate(980px, 190px); }
  100% { opacity: 0; transform: translate(980px, 190px); }
}
@media (prefers-reduced-motion: reduce) { .hero.hs-night .hs-filante { animation: none; } }

/* dérive lente des nuages */
#hs-cloud-1, #hs-cloud-3, #hs-cloud-5 { animation: derive 46s ease-in-out infinite alternate; }
#hs-cloud-2, #hs-cloud-4, #hs-cloud-6 { animation: derive 58s ease-in-out infinite alternate-reverse; }
@keyframes derive { from { transform: translateX(-22px); } to { transform: translateX(22px); } }
@media (prefers-reduced-motion: reduce) { #hs-cloud-1, #hs-cloud-2, #hs-cloud-3, #hs-cloud-4, #hs-cloud-5, #hs-cloud-6 { animation: none; } }
.hero-tint { position: absolute; inset: 0; z-index: 3; background: var(--hs-tint, transparent); mix-blend-mode: multiply; transition: background 1.5s ease; }
.hero-sky-fx { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 4; }
.hero-sky-fx circle, .hero-sky-fx ellipse { transition: fill 1.5s ease, opacity 1.5s ease; }
#hs-sun { transition: transform 1.5s ease; }
#hs-stars { fill: #e9e6da; }
/* la petite vie du col, selon l'heure */
.hs-critter { position: absolute; z-index: 5; opacity: 0; transition: opacity 2s ease; pointer-events: none; }
.hs-marmottes { left: 13%; bottom: 3.5%; width: clamp(90px, 9vw, 140px); }
.hs-oiseau { top: 16%; left: -6%; width: 34px; }
.hero.hs-morning .hs-marmottes { opacity: 1; }
.hero.hs-day .hs-oiseau { opacity: 1; }
.marmotte-souffle { transform-box: fill-box; transform-origin: 50% 100%; animation: souffle 3.2s ease-in-out infinite; }
.marmotte-souffle.m2 { animation-duration: 4.1s; }
@keyframes souffle { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(1.045); } }
.hero.hs-day .hs-oiseau { animation: volero 42s linear infinite; }
.hs-oiseau svg { animation: battement 1.6s ease-in-out infinite; }
@keyframes volero { 0% { transform: translateX(0); } 100% { transform: translateX(118vw); } }
@keyframes battement { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (prefers-reduced-motion: reduce) {
  .marmotte-souffle, .hs-oiseau svg { animation: none; }
  .hero.hs-day .hs-oiseau { animation: none; left: 30%; }
}
/* nuit : textes clairs pour rester lisibles */
.hero.hs-night, .hero.hs-night h1, .hero.hs-night .hero-stats .stat b { color: #efece4; }
.hero.hs-night .lead, .hero.hs-night .hero-stats .stat span { color: #c3c8d2; }
.hero.hs-night .hero-stats { border-top-color: rgba(240, 237, 230, .28); }
.hero.hs-night .doodle { opacity: .35; }
.hero-inner {
  position: relative; z-index: 5;
  max-width: 1150px; width: 100%; margin: 0 auto;
  padding: 7rem clamp(1.2rem, 4vw, 2.4rem) 10rem;
}
.kicker {
  display: inline-flex; align-items: center; gap: .6rem;
  font-family: var(--font-s); font-size: 1.25rem; font-weight: 600;
  color: var(--accent); margin-bottom: 1.2rem;
}
.hero h1 {
  font-size: clamp(3.4rem, 10.5vw, 8rem);
  font-weight: 700; color: var(--ink);
}
.hero h1 .fancy, .hero h1 em.fancy {
  display: block;
  font-family: var(--font-s); font-style: normal; font-weight: 600;
  text-transform: lowercase; letter-spacing: 0;
  font-size: .78em; color: var(--accent);
}
.hero .lead {
  max-width: 580px; margin: 1.6rem 0 2.6rem;
  font-family: var(--font-s); font-size: 1.5rem; line-height: 1.3;
  color: var(--ink2);
}
.hero-stats {
  display: flex; flex-wrap: wrap; gap: 2.2rem 3rem;
  padding-top: 1.6rem; border-top: 1px solid rgba(35,43,51,.18);
  max-width: 820px;
}
.hero-stats .stat b { display: block; font-family: var(--font-d); font-weight: 700; font-size: 2.3rem; line-height: 1; color: var(--ink); }
.hero-stats .stat span { font-size: .7rem; color: var(--ink2); text-transform: uppercase; letter-spacing: .14em; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 2.4rem; transform: translateX(-50%);
  z-index: 6; width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.75); border-radius: 14px;
}
.scroll-cue span {
  position: absolute; left: 50%; top: 7px; width: 4px; height: 8px; margin-left: -2px;
  border-radius: 2px; background: #fff; animation: cue 1.8s infinite;
}
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 70% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ═══ Barre de filtres ═══ */
.toolbar {
  position: sticky; top: 52px; z-index: 2500;
  background: rgba(246, 244, 238, .93); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
  padding: .65rem clamp(1rem, 4vw, 2.4rem);
}
.toolbar-inner { max-width: 1150px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: .55rem; align-items: center; }
.searchbox {
  display: inline-flex; align-items: center; gap: .5rem;
  flex: 1 1 170px; max-width: 250px;
  border: 1.5px solid var(--line); border-radius: 99px; background: var(--card);
  padding: .45rem .9rem; color: var(--muted);
  transition: border-color .25s;
}
.searchbox:focus-within { border-color: var(--ink); }
.searchbox input { border: 0; outline: 0; background: none; font: inherit; font-size: .88rem; width: 100%; color: var(--ink); }
.chip {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 99px;
  padding: .42rem .8rem; font: inherit; font-size: .8rem; font-weight: 600;
  cursor: pointer; display: inline-flex; align-items: center; gap: .4rem;
  transition: all .22s cubic-bezier(.22,1,.36,1);
}
.chip:hover { transform: translateY(-1px); }
.chip .swatch { width: 10px; height: 10px; border-radius: 50%; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.toolbar .count { margin-left: auto; font-size: 1.05rem; color: var(--muted); white-space: nowrap; font-family: var(--font-s); font-weight: 500; }

/* menu déroulant custom */
.dd { position: relative; }
.dd-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  border: 1.5px solid var(--line); background: var(--card); border-radius: 99px;
  padding: .45rem 1rem; font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer;
  transition: all .22s;
}
.dd-btn:hover { transform: translateY(-1px); }
.dd-btn svg { transition: transform .3s; }
.dd.open .dd-btn svg { transform: rotate(180deg); }
.dd-panel {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; z-index: 50;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: 0 18px 46px rgba(35,43,51,.16);
  padding: .4rem; opacity: 0; visibility: hidden; transform: translateY(-8px) scale(.98);
  transition: all .28s cubic-bezier(.22,1,.36,1);
}
.dd.open .dd-panel { opacity: 1; visibility: visible; transform: none; }
.dd-item {
  display: block; width: 100%; text-align: left; border: 0; background: none;
  font: inherit; font-size: .85rem; padding: .5rem .8rem; border-radius: 9px; cursor: pointer;
  color: var(--ink2); transition: background .15s, color .15s, padding-left .2s;
}
.dd-item:hover { background: var(--paper2); padding-left: 1rem; }
.dd-item.sel { color: var(--accent); font-weight: 700; }

/* pilule de progression */
.progress-pill {
  position: relative; overflow: hidden; border: 1.5px solid var(--line); border-radius: 99px;
  background: var(--card); font: inherit; font-size: .78rem; font-weight: 700;
  padding: .42rem .9rem; cursor: pointer; color: var(--ink); transition: all .2s;
}
.progress-pill:hover { transform: translateY(-1px); }
.progress-pill i {
  position: absolute; left: 0; top: 0; bottom: 0; background: rgba(42,157,58,.16);
  transition: width .6s cubic-bezier(.22,1,.36,1);
}
.progress-pill span { position: relative; }

/* ═══ Sections ═══ */
main section { max-width: 1150px; margin: 0 auto; padding: clamp(3.2rem, 7vw, 5rem) clamp(1.2rem, 4vw, 2.4rem) 1rem; }
.sec-head { display: flex; align-items: baseline; gap: 1rem; }
.sec-num { font-family: var(--font-s); font-size: 1.25rem; font-weight: 600; color: var(--accent); flex: none; text-transform: lowercase; }
.sec-head h2 { font-size: clamp(2.1rem, 5vw, 3.1rem); font-weight: 700; }
.sec-rule { flex: 1; height: 1.5px; background: var(--line); transform-origin: left; }
.reveal.in .sec-rule { animation: rule 1s cubic-bezier(.22,1,.36,1); }
@keyframes rule { from { transform: scaleX(0); } }
section .sub { color: var(--muted); font-size: .95rem; margin: .5rem 0 1.6rem; max-width: 720px; }
section .sub em { font-family: var(--font-s); }

/* ═══ Carte ═══ */
.map-wrap {
  border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  position: relative;
}
#map { height: min(72vh, 640px); z-index: 1; }
.map-wrap.fullscreen { position: fixed; inset: 0; z-index: 3400; border-radius: 0; border: 0; }
.map-wrap.fullscreen #map { height: 100vh; height: 100svh; }
.map-ctl-btn {
  font-size: 15px; line-height: 30px; text-align: center; width: 30px; height: 30px;
  display: block; text-decoration: none; color: #333; background: #fff; cursor: pointer;
}
.leaflet-tooltip {
  font-family: 'Inter', sans-serif; font-size: .76rem; font-weight: 600;
  border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 4px 14px rgba(0,0,0,.14);
}
.marker-col {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%;
  color: #fff; font-weight: 700; font-size: 10px; font-family: var(--font-d);
  border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35);
  animation: pop .45s cubic-bezier(.34,1.56,.64,1) backwards;
  transition: transform .2s;
}
.marker-col:hover { transform: scale(1.25); }
.marker-col.closed { filter: grayscale(.85); opacity: .9; border-color: #b3402e; }
.marker-cluster-col {
  display: flex; align-items: center; justify-content: center;
  width: 100%; height: 100%; border-radius: 50%;
  background: var(--paper); color: var(--ink);
  font-weight: 700; font-size: 12px; font-family: var(--font-d);
  border: 2.5px solid var(--accent); box-shadow: 0 2px 8px rgba(0,0,0,.28);
  transition: transform .2s;
}
.marker-cluster-col:hover { transform: scale(1.15); }

/* ═══ Dernières infos route ═══ */
.roadnews {
  margin-top: 1.2rem; background: #fffdf7; border: 1.5px solid var(--line);
  border-radius: 14px; box-shadow: 2px 3px 0 rgba(35,43,51,.08); padding: 1rem 1.2rem 1.1rem;
}
.roadnews h3 { font-family: var(--font-d); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .04em; margin-bottom: .5rem; }
.roadnews ul { list-style: none; padding: 0; margin: 0; }
.roadnews li {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  padding: .5rem 0; border-bottom: 1px dashed var(--line); font-size: .88rem;
}
.roadnews li:last-child { border-bottom: 0; }
.rn-ico { flex: none; }
.rn-col {
  border: 0; background: none; padding: 0; cursor: pointer;
  font-family: var(--font-d); font-weight: 700; font-size: 1rem; color: var(--ink);
  text-decoration: underline dashed rgba(180,83,42,.5); text-underline-offset: 3px;
}
.rn-col:hover { color: var(--accent); }
.rn-txt { color: var(--ink2); flex: 1 1 240px; }
.rn-txt b { color: #b3402e; }
.rn-date { margin-left: auto; font-size: .7rem; color: var(--muted); white-space: nowrap; }
.rn-empty { color: #2e7d47; font-weight: 600; }
.rn-src { margin-top: .6rem; font-size: .7rem; color: var(--muted); line-height: 1.5; }

/* ═══ Calculateur de temps ═══ */
.calc { margin: .4rem 1.4rem 0; border: 1.5px dashed var(--line); border-radius: 12px; background: #fffdf7; }
.calc summary {
  cursor: pointer; padding: .6rem .9rem; font-family: var(--font-d); font-weight: 700;
  font-size: 1.05rem; list-style: none;
}
.calc summary::-webkit-details-marker { display: none; }
.calc summary::before { content: '▸ '; color: var(--accent); }
.calc[open] summary::before { content: '▾ '; }
.calc-hint { font-family: 'Inter', sans-serif; font-weight: 400; font-size: .75rem; color: var(--muted); }
.calc-form {
  display: flex; align-items: center; gap: .8rem; flex-wrap: wrap;
  padding: .2rem .9rem .5rem; font-size: .82rem;
}
.calc-form label { display: inline-flex; align-items: baseline; gap: .35rem; color: var(--ink2); }
.calc-form input {
  width: 62px; border: 1.5px solid var(--line); border-radius: 8px; padding: .25rem .4rem;
  font: inherit; background: var(--paper); text-align: right;
}
.calc-presets { display: inline-flex; gap: .35rem; align-items: center; flex-wrap: wrap; min-width: 0; color: var(--muted); font-size: .75rem; }
.calc-presets button {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: .2rem .6rem; font-size: .72rem; font-weight: 600; cursor: pointer;
}
.calc-presets button:hover { border-color: var(--accent); color: var(--accent); }
.calc-gear { padding: 0 .9rem .3rem; font-size: .82rem; color: var(--ink2); }
.calc-table { max-height: 200px; overflow-y: auto; margin: 0 .9rem; border: 1px solid var(--line); border-radius: 8px; }
.calc-table table { width: 100%; border-collapse: collapse; font-size: .76rem; min-width: 0; }
.calc-table th, .calc-table td { padding: .25rem .55rem; text-align: right; border-bottom: 1px solid rgba(35,43,51,.08); }
.calc-table th:first-child, .calc-table td:first-child { text-align: left; }
.calc-table thead th { position: sticky; top: 0; background: #fffdf7; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.calc-fine { padding: .45rem .9rem .7rem; font-size: .68rem; color: var(--muted); line-height: 1.5; }
.wreal-go {
  padding: .3rem .9rem; border-radius: 999px; border: 1.5px solid var(--ink);
  background: var(--ink); color: var(--paper); font-weight: 700; font-size: .78rem; cursor: pointer;
}
.wreal-go:hover { background: var(--accent); border-color: var(--accent); }
.wreal-res { padding: .2rem .9rem 0; font-size: .95rem; }
.wreal-res b { color: var(--accent); }

/* ═══ Badges du carnet ═══ */
.badges-title { margin-top: 1.2rem; }
.badges-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .55rem; margin-top: .5rem; }
.badge-card {
  position: relative; cursor: help;
  display: flex; flex-direction: column; align-items: center; gap: .15rem; text-align: center;
  border: 1.5px dashed var(--line); border-radius: 12px; padding: .6rem .4rem .55rem;
  background: rgba(246,244,238,.6); filter: grayscale(.9); opacity: .62;
}
.bd-tip {
  position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(4px);
  width: max-content; max-width: 230px; z-index: 20; pointer-events: none;
  background: #242e37; color: #f0ede4; font-size: .72rem; line-height: 1.45; font-weight: 400;
  padding: .5rem .7rem; border-radius: 9px; box-shadow: 0 8px 22px rgba(0,0,0,.28);
  opacity: 0; visibility: hidden; transition: opacity .18s, transform .18s;
  font-family: 'Inter', sans-serif; filter: grayscale(0);
}
.bd-tip::after {
  content: ''; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: #242e37;
}
.badge-card:hover .bd-tip, .badge-card:focus-visible .bd-tip, .badge-card:focus .bd-tip {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.badges-grid .badge-card:nth-child(-n+3) .bd-tip { bottom: auto; top: calc(100% + 8px); }
.badges-grid .badge-card:nth-child(-n+3) .bd-tip::after { top: auto; bottom: 100%; border-top-color: transparent; border-bottom-color: #242e37; }
.badge-card.earned {
  filter: none; opacity: 1; background: #fffdf7; border-style: solid;
  border-color: rgba(180,83,42,.45); box-shadow: 2px 3px 0 rgba(35,43,51,.08);
}
.bd-ico { line-height: 0; }
.bd-ico svg { width: 42px; height: 42px; display: block; }
.badge-card:not(.earned) .bd-ico svg { filter: grayscale(1) opacity(.42); }
.bd-name { font-family: var(--font-d); font-weight: 700; font-size: .82rem; line-height: 1.15; }
.bd-progress { font-family: var(--font-s); font-size: .95rem; color: var(--muted); }
.badge-card.earned .bd-progress { color: #2e7d47; font-weight: 600; }

/* ═══ Météo du week-end ═══ */
.wkweather {
  margin-top: 1.2rem; background: #fffdf7; border: 1.5px solid var(--line);
  border-radius: 14px; box-shadow: 2px 3px 0 rgba(35,43,51,.08); padding: 1rem 1.2rem 1.1rem;
}
.wkweather h3 { font-family: var(--font-d); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .04em; margin-bottom: .5rem; }
.wk-row {
  display: grid; grid-template-columns: 1fr 172px 172px; gap: .6rem; align-items: baseline;
  padding: .4rem 0; border-bottom: 1px dashed var(--line); font-size: .85rem;
}
.wk-row:last-child { border-bottom: 0; }
.wk-head { font-family: var(--font-d); text-transform: uppercase; font-size: .8rem; letter-spacing: .06em; color: var(--muted); border-bottom: 1.5px solid var(--line); }
.wk-zone { font-weight: 600; }
.wk-zone small { font-weight: 400; color: var(--muted); font-size: .72rem; }
.wk-cell { white-space: normal; line-height: 1.5; }
@media (max-width: 640px) {
  .wk-row { grid-template-columns: 1.15fr 1fr 1fr; font-size: .74rem; gap: .3rem; }
  .wk-row > * { min-width: 0; }
  .wk-zone small { display: none; }
}
.marker-col.done { box-shadow: 0 0 0 3px var(--green), 0 2px 6px rgba(0,0,0,.35); }
@keyframes pop { from { transform: scale(0); } }
.leaflet-popup-content-wrapper { border-radius: 14px; box-shadow: 0 16px 40px rgba(35,43,51,.28); font-family: 'Inter', sans-serif; }
.leaflet-popup-content { margin: 14px 18px; }
.popup h3 { font-size: 1.3rem; margin-bottom: .15rem; }
.popup .meta { color: var(--muted); font-size: .78rem; }
.popup a.btn {
  display: inline-block; margin-top: .55rem; background: var(--ink); color: #fff; text-decoration: none;
  font-size: .76rem; font-weight: 600; padding: .38rem .85rem; border-radius: 99px; transition: background .2s;
}
.popup a.btn:hover { background: var(--accent); }
.legend { display: flex; flex-wrap: wrap; gap: 1.1rem; margin-top: .9rem; font-size: .8rem; color: var(--muted); }
.legend i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; margin-right: .4rem; vertical-align: -1px; }

/* ═══ Le carnet ═══ */
.carnet { position: relative; }
.carnet-tabs {
  display: flex; gap: .5rem; padding-left: 3.2rem; flex-wrap: wrap;
  position: relative; z-index: 2;
}
.carnet-tab {
  border: 1px solid rgba(35,43,51,.22); border-bottom: none;
  border-radius: 10px 10px 0 0;
  font-family: var(--font-s); font-size: 1.12rem; font-weight: 600; color: var(--ink);
  padding: .4rem 1.1rem .55rem; cursor: pointer;
  transform: translateY(6px); opacity: .82;
  transition: transform .25s cubic-bezier(.22,1,.36,1), opacity .25s;
  box-shadow: 0 -3px 8px rgba(35,43,51,.05);
}
.carnet-tab:hover { transform: translateY(2px); opacity: 1; }
.carnet-tab.active { transform: translateY(0); opacity: 1; font-weight: 700; box-shadow: 0 -5px 12px rgba(35,43,51,.09); }
.carnet-book {
  position: relative; perspective: 2200px;
  background: #fffdf7;
  border: 1px solid rgba(35,43,51,.22); border-radius: 6px 14px 14px 6px;
  box-shadow: 0 16px 44px rgba(35,43,51,.14), inset 4px 0 12px rgba(35,43,51,.05);
  min-height: 460px; overflow: hidden;
}
.carnet-rings {
  position: absolute; left: 12px; top: 0; bottom: 0; width: 20px; z-index: 3;
  background-image: radial-gradient(circle at 50% 50%, #fffdf7 5px, #8a939c 6px, #8a939c 7.5px, transparent 8.5px);
  background-size: 20px 42px; background-position: 0 14px; background-repeat: repeat-y;
  pointer-events: none;
}
.carnet-page {
  position: relative; z-index: 1;
  max-height: 580px; overflow-y: auto;
  padding: 1.7rem 2.2rem 1.8rem 4.2rem;
  /* marge rouge de cahier, sans lignes derrière le texte */
  background-image:
    linear-gradient(90deg, transparent 52px, rgba(216,38,28,.22) 52px, rgba(216,38,28,.22) 53.5px, transparent 53.5px);
  transform-origin: left center;
}
.carnet-page.turn-out { transition: transform .3s cubic-bezier(.6,0,.9,.6), opacity .3s; transform: rotateY(-78deg); opacity: .25; }
.carnet-page.turn-in { animation: pagein .42s cubic-bezier(.16,.8,.3,1); }
@keyframes pagein { from { transform: rotateY(55deg); opacity: .3; } to { transform: rotateY(0); opacity: 1; } }
.carnet-page h4 {
  font-family: var(--font-s); font-size: 2rem; font-weight: 700; color: var(--ink);
  text-transform: none; letter-spacing: 0; margin-bottom: 1.1rem;
  text-decoration: underline wavy rgba(180,83,42,.5) 2px; text-underline-offset: 7px;
}
.carnet-page h5 {
  font-family: 'Inter', sans-serif; font-size: .78rem; font-weight: 700; color: var(--ink2);
  text-transform: uppercase; letter-spacing: .12em;
  margin: 1.4rem 0 .5rem; display: flex; align-items: center; gap: .6rem;
}
.carnet-massif { display: flex; align-items: center; gap: .55rem; }
.carnet-massif .carnet-emblem { width: 1.9rem; height: 1.9rem; flex: none; }
.carnet-list { list-style: none; column-width: 340px; column-gap: 3rem; }
.carnet-list li {
  font-family: 'Inter', sans-serif; font-size: .92rem; color: var(--ink);
  padding: .3rem .4rem; border-radius: 8px; cursor: pointer; break-inside: avoid;
  display: flex; align-items: baseline; gap: .45rem; flex-wrap: wrap;
  transition: background .15s;
}
.carnet-list li:hover { background: rgba(180, 83, 42, .07); }
.carnet-list li > span:nth-child(2) { font-weight: 600; }
.carnet-list li .cb { flex: none; width: 1.25rem; color: var(--muted); font-size: 1rem; }
.carnet-list li.is-done .cb { color: #1e7c2c; }
.carnet-list .ce-extra { color: var(--muted); font-size: .8rem; }
.carnet-list.tour { column-width: 420px; }
.carnet-list.tour li { display: block; padding: .45rem .4rem; }
.carnet-list.tour .ce-extra { display: block; margin-top: .1rem; line-height: 1.45; }
.carnet-note {
  font-family: var(--font-s); font-size: 1.45rem; font-weight: 600; color: var(--accent);
  margin-top: 1.3rem; transform: rotate(-.6deg);
}
.carnet-note.big { font-size: 1.6rem; line-height: 1.4; }
@media (max-width: 640px) {
  .carnet-page { padding: 1.2rem 1rem 1.4rem 3.4rem; max-height: 65vh; }
  .carnet-tabs {
    padding-left: 1.3rem; gap: .3rem;
    flex-wrap: nowrap; overflow-x: auto;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
    padding-bottom: 8px; margin-bottom: -8px;
  }
  .carnet-tabs::-webkit-scrollbar { display: none; }
  .carnet-tab { flex: 0 0 auto; white-space: nowrap; font-size: .92rem; padding: .3rem .62rem .5rem; }
  .carnet-list { column-width: auto; }
}

/* ═══ Classement ═══ */
.table-wrap { overflow-x: auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
table { width: 100%; border-collapse: collapse; font-size: .89rem; min-width: 760px; }
thead th {
  position: sticky; top: 0; background: var(--card);
  text-align: left; font-family: var(--font-d); text-transform: uppercase;
  font-size: .88rem; letter-spacing: .06em; color: var(--muted);
  padding: .9rem 1rem; border-bottom: 2px solid var(--ink);
  cursor: pointer; user-select: none; white-space: nowrap; transition: color .2s;
}
thead th:hover { color: var(--ink); }
thead th.sorted { color: var(--accent); }
tbody td { padding: .68rem 1rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
tbody tr { transition: background .18s; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: var(--paper); cursor: pointer; }
td.rank { font-family: var(--font-s); font-weight: 600; font-size: 1.15rem; width: 3.2rem; color: var(--ink2); }
td .colname { font-weight: 600; }
td .side { color: var(--muted); font-size: .98rem; display: block; font-family: var(--font-s); }
.badge { display: inline-block; font-family: var(--font-d); font-weight: 700; font-size: .78rem; color: #fff; border-radius: 7px; padding: .12rem .5rem; letter-spacing: .05em; }
.score-bar { display: inline-block; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #d9a441, var(--accent)); vertical-align: middle; margin-right: .5rem; }

/* ═══ Fiches ═══ */
.grid { margin-top: 1rem; }
/* massifs en colonnes : chaque massif est un bloc INSÉCABLE encadré,
   les blocs entiers se rangent côte à côte — un massif n'est jamais coupé */
.massif-flow { columns: 340px; column-gap: 1.2rem; }
.massif-block {
  break-inside: avoid; -webkit-column-break-inside: avoid; page-break-inside: avoid;
  display: inline-block; width: 100%;
  margin: 0 0 1.2rem; padding: .9rem .9rem .1rem;
  border: 1.5px dashed rgba(35, 43, 51, .22); border-radius: 16px;
  scroll-margin-top: 130px;
}
.massif-block .card { box-shadow: 0 2px 8px rgba(35, 43, 51, .07); }
.massif-toggle {
  margin-left: auto; flex: none; border: 1.5px solid rgba(35,43,51,.2); background: rgba(255,255,255,.65);
  border-radius: 999px; padding: .18rem .6rem; font-size: .68rem; font-weight: 700;
  font-family: 'Inter', sans-serif; text-transform: none; letter-spacing: 0; color: var(--ink2); cursor: pointer;
}
.massif-toggle:hover { border-color: var(--accent); color: var(--accent); }
.col-chips { display: flex; flex-wrap: wrap; gap: .4rem; padding-bottom: .9rem; }
.col-chip {
  border: 1.5px solid rgba(35,43,51,.18); background: #fffdf7; border-radius: 10px;
  padding: .32rem .6rem; font-size: .78rem; font-weight: 600; color: var(--ink);
  cursor: pointer; font-family: 'Inter', sans-serif; text-align: left;
  transition: border-color .15s, transform .15s;
}
.col-chip:hover { border-color: var(--accent); transform: translateY(-1px); }
.col-chip small { color: var(--muted); font-weight: 400; }
.col-chip.done { background: #e8f3ea; border-color: rgba(46,125,71,.4); }
.massif-grid { display: block; }
.massif-grid .card { break-inside: avoid; margin-bottom: .9rem; }
.massif-head {
  font-family: var(--font-d); text-transform: uppercase; letter-spacing: .04em;
  font-size: 1.5rem; margin: 0 0 .8rem; display: flex; align-items: baseline; gap: .7rem;
}
.massif-head::after { content: ''; flex: 1; border-bottom: 2px dashed var(--line); transform: translateY(-4px); }
.massif-emblem {
  width: 30px; height: 30px; flex: none; align-self: center;
  transform: rotate(-4deg); opacity: .92;
  filter: drop-shadow(1px 1.5px 0 rgba(35,43,51,.14));
}
.emblem-bg { opacity: .2; filter: saturate(.7); }
.decor-doodle { color: rgba(35, 43, 51, .18); }
/* doodles & panneaux de col générés (images), estompés en fond */
.decor-doodle-img { opacity: .34; }
.decor-sign { opacity: .3; }
.decor-color { opacity: .58; }
.decor-stick { opacity: .5; }
#decor-layer img { pointer-events: none; user-select: none; height: auto; max-height: 200px; display: block; }
.rank-more td { text-align: center; padding: .6rem; }
.rank-more button {
  border: 1.5px dashed var(--line); background: var(--paper); border-radius: 999px;
  padding: .45rem 1.2rem; font-size: .82rem; font-weight: 700; cursor: pointer;
  font-family: 'Inter', sans-serif; color: var(--ink2);
}
.rank-more button:hover { border-color: var(--accent); color: var(--accent); }
.rank-more:hover { background: none !important; cursor: default; }
#decor-layer svg { pointer-events: none; user-select: none; }
.massif-count { font-family: var(--font-s); font-size: 1.1rem; color: var(--muted); text-transform: none; letter-spacing: 0; }
.massif-anchors { display: flex; flex-wrap: wrap; gap: .45rem; margin-bottom: .4rem; }
.massif-anchors a {
  text-decoration: none; color: var(--ink); background: var(--card);
  border: 1.5px solid var(--line); border-radius: 999px; padding: .3rem .8rem;
  font-size: .8rem; font-weight: 600; transition: border-color .2s, color .2s;
}
.massif-anchors a:hover { border-color: var(--accent); color: var(--accent); }
.massif-anchors a small { color: var(--muted); font-weight: 400; }
.card.compact { cursor: pointer; transition: transform .18s, box-shadow .18s, border-color .18s; }
.card.compact:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(35,43,51,.11); border-color: var(--accent); }
.card.compact:hover .ks-open { opacity: 1; }
.card.compact .blurb {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.key-stats {
  display: flex; align-items: baseline; gap: .55rem; flex-wrap: wrap;
  padding: .5rem 1.15rem .95rem; font-family: var(--font-d); font-size: 1.06rem; font-weight: 600;
}
.key-stats .ks-sides {
  font-family: 'Inter', sans-serif; font-size: .68rem; font-weight: 600; color: var(--muted);
  border: 1px dashed var(--line); border-radius: 999px; padding: .1rem .5rem;
}
.key-stats .ks-open {
  margin-left: auto; font-family: 'Inter', sans-serif; font-size: .72rem; font-weight: 600;
  color: var(--accent); opacity: 0; transition: opacity .2s;
}
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 3px 12px rgba(35,43,51,.05);
  scroll-margin-top: 120px;
  display: flex; flex-direction: column;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.card:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(35,43,51,.12); }
.card.highlight { outline: 3px solid var(--accent); }
.card.is-done { border-color: rgba(42,157,58,.5); }
.done-ribbon {
  font-family: var(--font-s); font-size: 1.12rem; font-weight: 600; color: #1e7c2c;
  padding: .35rem 1.15rem 0; transform: rotate(-.8deg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* col dont la route est fermée : carte au fond rouge */
.card.is-closed { border-color: rgba(201,42,42,.6); background: #fdeceb; box-shadow: 0 3px 12px rgba(201,42,42,.12); }
.card.is-closed:hover { box-shadow: 0 14px 32px rgba(201,42,42,.2); border-color: #c92a2a; }
.closed-ribbon {
  font-family: var(--font-s); font-size: 1.12rem; font-weight: 700; color: #b3261e;
  padding: .35rem 1.15rem 0; transform: rotate(-.8deg);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-head { padding: 1.1rem 1.15rem .5rem; display: flex; align-items: start; gap: .7rem; }
.card-head h3 { font-size: 1.5rem; flex: 1; }
.col-link { cursor: pointer; transition: color .2s; }
.col-link:hover { color: var(--accent); }
.card-head .alt { font-family: var(--font-d); font-weight: 700; font-size: 1.3rem; color: var(--ink); white-space: nowrap; }
.modal-head .alt { font-family: var(--font-d) !important; font-weight: 700; color: var(--ink) !important; }
.card .zone { padding: 0 1.15rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 700; display: flex; align-items: baseline; gap: .5rem; }
.card .zone .wx {
  margin-left: auto; font-family: 'Inter', sans-serif; letter-spacing: 0;
  font-size: .72rem; font-weight: 600; color: var(--ink2); text-transform: none; white-space: nowrap;
}
.tdf {
  padding: .1rem 1.15rem .2rem; font-family: var(--font-s); font-size: 1.05rem;
  line-height: 1.3; color: #8a6a2f;
}
.modal-card .tdf { padding: .1rem 1.4rem .2rem; font-size: 1.15rem; }
.wx-line {
  margin: .3rem 1.4rem 0; padding: .35rem .7rem; border-radius: 10px;
  background: #eef3f6; border: 1px dashed rgba(35,43,51,.18);
  font-size: .82rem; color: var(--ink2);
}
.wx-forecast { display: flex; gap: .45rem; margin: .45rem 1.4rem 0; flex-wrap: wrap; }
.wx-day {
  flex: 1 1 0; min-width: 72px; display: flex; flex-direction: column; gap: .1rem;
  background: #eef3f6; border: 1px dashed rgba(35,43,51,.18); border-radius: 10px;
  padding: .35rem .3rem; text-align: center; font-size: .74rem; color: var(--ink2);
}
.wx-day .d { font-weight: 600; text-transform: uppercase; letter-spacing: .05em; font-size: .62rem; opacity: .6; }
.wx-day .i { font-size: 1.15rem; line-height: 1.2; }
.wx-day .t { font-weight: 600; }
.wx-day .w { font-size: .66rem; opacity: .7; }
.colstate {
  margin-left: .5rem; font-family: 'Inter', sans-serif; letter-spacing: 0; text-transform: none;
  font-size: .7rem; font-weight: 700; white-space: nowrap;
}
.colstate.ouvert { color: #2e7d47; }
.colstate.conditions { color: #b57b1e; }
.colstate.ferme { color: #b3402e; }
.state-line {
  margin: .3rem 1.4rem 0; padding: .35rem .7rem; border-radius: 10px;
  font-size: .82rem; font-weight: 600; border: 1px dashed rgba(35,43,51,.18);
}
.state-line.ouvert { background: #e8f3ea; color: #2e7d47; }
.state-line.conditions { background: #f8efdd; color: #8a5f14; }
.state-line.ferme { background: #f7e5e1; color: #a03422; }
.state-line .state-src { float: right; font-weight: 400; font-size: .68rem; opacity: .6; }
.push-bell {
  display: inline-block; margin-left: .6rem; cursor: pointer;
  border: 1.5px solid rgba(160,52,34,.4); background: #fff; color: #a03422;
  border-radius: 999px; padding: .2rem .65rem; font-size: .72rem; font-weight: 700;
  font-family: 'Inter', sans-serif;
}
.push-bell.on { background: #e8f3ea; border-color: rgba(46,125,71,.5); color: #2e7d47; }
.push-bell:hover { filter: brightness(1.05); }

/* ═══ Le mot des grimpeurs (signalements & avis) ═══ */
.community { margin: .6rem 1.4rem 0; border: 1.5px dashed var(--line); border-radius: 12px; background: #fffdf7; padding: .6rem .9rem .7rem; }
.com-head { font-family: var(--font-d); font-weight: 700; font-size: 1.05rem; }
.com-note { color: #b57b1e; letter-spacing: .1em; font-size: .85rem; }
.com-conditions, .com-avis { list-style: none; padding: 0; margin: .45rem 0 0; }
.com-conditions li, .com-avis li { padding: .25rem 0; font-size: .82rem; color: var(--ink2); border-bottom: 1px dashed rgba(35,43,51,.1); }
.com-conditions li:last-child, .com-avis li:last-child { border-bottom: 0; }
.com-avis li { font-family: var(--font-s); font-size: 1.05rem; }
.com-date { float: right; font-size: .68rem; color: var(--muted); }
.com-actions { display: flex; gap: .5rem; margin-top: .55rem; flex-wrap: wrap; }
.com-btn {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 999px;
  padding: .3rem .75rem; font-size: .76rem; font-weight: 600; cursor: pointer; font-family: 'Inter', sans-serif;
}
.com-btn:hover { border-color: var(--accent); color: var(--accent); }
.com-cancel { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: .76rem; text-decoration: underline; }
.com-form { margin-top: .55rem; display: flex; flex-direction: column; gap: .45rem; }
.com-form select, .com-form textarea {
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
  padding: .4rem .6rem; font: inherit; font-size: .82rem; resize: vertical;
}
.com-stars { display: flex; gap: .15rem; }
.com-stars button { border: 0; background: none; font-size: 1.5rem; cursor: pointer; color: rgba(35,43,51,.25); padding: 0 .1rem; }
.com-stars button.on { color: #e8a20c; }
.com-resolve {
  border: 0; background: none; cursor: pointer; padding: 0 .2rem;
  font-size: .7rem; color: var(--muted); text-decoration: underline dashed; font-family: 'Inter', sans-serif;
}
.com-resolve:hover { color: var(--accent); }
.com-resolved { font-size: .7rem; color: #2e7d47; font-weight: 600; }
.rn-updated { color: var(--muted); }
.wdir {
  display: inline-block; font-style: normal; font-weight: 700; line-height: 1;
  transform-origin: 50% 50%; cursor: help;
}

/* ═══ Planificateur de boucle ═══ */
.planner {
  margin-top: 1.6rem; background: #fffdf7; border: 1.5px solid var(--line);
  border-radius: 14px; box-shadow: 2px 3px 0 rgba(35,43,51,.08); padding: 1rem 1.2rem 1.1rem;
}
.planner h3 { font-family: var(--font-d); text-transform: uppercase; font-size: 1.25rem; letter-spacing: .04em; }
.planner-sub { font-size: .85rem; color: var(--ink2); margin: .25rem 0 .7rem; }
/* planificateur mis en avant (feature maison) */
.planner-hero { position: relative; margin-top: 1.2rem; border: 2px solid var(--accent); box-shadow: 3px 4px 0 rgba(180,83,42,.16); padding: 1.5rem 1.4rem 1.3rem; }
.planner-tag { position: absolute; top: -.72rem; left: 1.2rem; background: var(--accent); color: #fff5ee; font-family: var(--font-s); font-weight: 700; font-size: .82rem; letter-spacing: .02em; padding: .12rem .6rem; border-radius: 999px; box-shadow: 0 2px 5px rgba(180,83,42,.25); }
.loops-aside { margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px dashed var(--line); }
.loops-aside-title { font-family: var(--font-d); text-transform: uppercase; font-size: 1.1rem; letter-spacing: .04em; color: var(--ink2); }
/* section Guides */
.guides-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(255px, 1fr)); gap: 1.2rem; margin-top: 1rem; }
.guide-card { display: block; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem 1rem; text-decoration: none; color: inherit; box-shadow: 0 3px 12px rgba(35,43,51,.05); transition: transform .2s, box-shadow .2s, border-color .2s; }
.guide-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(35,43,51,.12); border-color: var(--accent); }
.guide-card h3 { font-size: 1.35rem; margin-bottom: .35rem; }
.guide-card p { font-family: var(--font-s); font-size: 1.12rem; line-height: 1.35; color: var(--ink2); margin-bottom: .55rem; }
.guide-go { font-family: var(--font-s); font-weight: 700; color: var(--accent); font-size: .98rem; }
.plan-picker { display: flex; gap: .45rem; flex-wrap: wrap; align-items: center; }
.plan-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  border: 1.5px solid rgba(180,83,42,.45); background: var(--paper); border-radius: 999px;
  padding: .3rem .4rem .3rem .75rem; font-size: .82rem; font-weight: 600;
}
.plan-chip button { border: 0; background: none; cursor: pointer; color: var(--muted); font-size: .8rem; padding: 0 .25rem; }
.plan-chip button:hover { color: #b3402e; }
#plan-input {
  border: 1.5px dashed var(--line); border-radius: 999px; background: transparent;
  padding: .35rem .8rem; font: inherit; font-size: .82rem; min-width: 170px;
}
.plan-actions { margin-top: .7rem; display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.plan-actions .share-btn:disabled { opacity: .5; cursor: default; }
.plan-hint { font-family: var(--font-s); font-size: 1rem; color: var(--muted); }
.plan-start { margin-top: .7rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.plan-start label { font-family: var(--font-s); font-weight: 600; color: var(--ink); }
.plan-start select { font: inherit; padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--ink); cursor: pointer; }
.plan-start-hint { font-family: var(--font-s); font-size: .95rem; color: var(--muted); }
.plan-start-pin { font-size: 22px; line-height: 1; text-align: center; filter: drop-shadow(0 1px 2px rgba(0,0,0,.45)); }
.plan-col-pin { background: #b4532a; color: #fff; border: 2px solid #fff; border-radius: 50%; text-align: center; line-height: 18px; font-weight: 700; font-size: 12px; box-shadow: 0 1px 3px rgba(0,0,0,.4); }
.plan-result {
  margin-top: .8rem; padding: .7rem .9rem; border: 1px dashed var(--line);
  border-radius: 10px; background: #eef3f6; font-size: .88rem; line-height: 1.5;
}
.plan-result-actions { display: flex; gap: .5rem; margin-top: .55rem; flex-wrap: wrap; }
.carnet-share { margin-top: .5rem; }
.share-btn {
  border: 1.5px solid var(--line); background: var(--terra, #b4532a); color: #fff;
  border-radius: 9px; padding: .45rem .9rem; font-weight: 600; font-size: .85rem;
  cursor: pointer; font-family: 'Inter', sans-serif;
}
.share-btn:hover { filter: brightness(1.08); }
.card .blurb { padding: .5rem 1.15rem .3rem; font-family: var(--font-s); font-size: 1.18rem; line-height: 1.32; color: var(--ink2); flex: 1; }
.side-tabs { display: flex; gap: .4rem; padding: .65rem 1.15rem 0; flex-wrap: wrap; }
.side-tabs button {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 9px;
  font: inherit; font-size: .73rem; font-weight: 600; padding: .3rem .6rem; cursor: pointer;
  transition: all .2s;
}
.side-tabs button:hover { border-color: var(--ink); }
.side-tabs button.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.side-tabs button.done-side { border-color: rgba(42,157,58,.55); color: #1e7c2c; }
.side-tabs button.done-side.active { background: var(--green); color: #fff; border-color: var(--green); }
.profile { padding: .45rem .65rem 0; }
.profile svg { display: block; width: 100%; height: auto; }
.profile .pline { stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.card.in .profile .pline, .reveal.in .profile .pline { animation: draw 1.6s .25s cubic-bezier(.4,0,.2,1) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.side-stats { display: flex; justify-content: space-between; gap: .3rem; padding: .55rem 1.15rem .8rem; text-align: center; }
.side-stats div b { display: block; font-family: var(--font-d); font-size: 1.3rem; }
.side-stats div span { font-size: .64rem; text-transform: uppercase; letter-spacing: .09em; color: var(--muted); }
.card-foot {
  display: flex; flex-wrap: wrap; justify-content: flex-start; align-items: center;
  padding: .65rem 1.15rem .95rem; gap: .45rem;
  border-top: 1px solid var(--line);
}
.card-foot a.strava { margin-left: auto; }
.compare-btn, .fly-btn, .done-btn {
  border: 1.5px solid var(--line); background: var(--paper); border-radius: 99px;
  font: inherit; font-size: .73rem; font-weight: 600; padding: .32rem .7rem; cursor: pointer;
  transition: all .2s; color: var(--ink2);
}
.compare-btn:hover, .fly-btn:hover { border-color: var(--ink); transform: translateY(-1px); }
.compare-btn.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.done-btn:hover { border-color: var(--green); color: var(--green); transform: translateY(-1px); }
.done-btn.on { background: var(--green); border-color: var(--green); color: #fff; }
.done-btn.big { font-size: .8rem; padding: .45rem .9rem; }
a.strava { font-size: .73rem; font-weight: 700; color: #fc4c02; text-decoration: none; }
a.strava:hover { text-decoration: underline; }

/* ═══ Strava (nav) ═══ */
.strava-zone { display: inline-flex; align-items: center; gap: .4rem; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.strava-note { flex-basis: 100%; text-align: right; font-size: .66rem; line-height: 1; margin-top: .3rem; color: #fc4c02; font-weight: 600; white-space: nowrap; }
.strava-connect {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #fc4c02; color: #fff !important; text-decoration: none;
  font-size: .74rem; font-weight: 700; padding: .42rem .85rem; border-radius: 99px;
  transition: transform .2s, box-shadow .2s;
}
.strava-connect:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(252,76,2,.35); }
.strava-user { font-size: .76rem; white-space: nowrap; color: var(--ink); }
.strava-user b { color: #fc4c02; }
.strava-filter, .strava-sync, .strava-out {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 99px;
  font: inherit; font-size: .72rem; font-weight: 600; padding: .3rem .55rem; cursor: pointer;
}
.strava-sync { background: #fc4c02; color: #fff; border-color: #fc4c02; }
.strava-sync:disabled { opacity: .6; cursor: wait; }
.strava-out { color: var(--muted); }

/* ═══ Fiche modale ═══ */
.modal { position: fixed; inset: 0; z-index: 4000; display: flex; align-items: center; justify-content: center; padding: 1.2rem; visibility: hidden; }
.modal.open { visibility: visible; }
.modal-bg { position: absolute; inset: 0; background: rgba(36,46,55,.55); backdrop-filter: blur(6px); opacity: 0; transition: opacity .35s; }
.modal.open .modal-bg { opacity: 1; }
.modal-card {
  position: relative; width: min(680px, 100%); max-height: 90vh; overflow-y: auto;
  background: var(--card); border-radius: 20px; box-shadow: 0 36px 80px rgba(0,0,0,.35);
  transform: translateY(40px) scale(.96); opacity: 0;
  transition: transform .4s cubic-bezier(.22,1,.36,1), opacity .4s;
}
.modal.open .modal-card { transform: none; opacity: 1; }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 5;
  width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--line);
  background: var(--card); font-size: .95rem; cursor: pointer; color: var(--ink2);
  transition: all .2s;
}
.modal-close:hover { background: var(--ink); color: #fff; }
.modal-head { padding: 1.4rem 3.2rem .4rem 1.4rem; display: flex; align-items: start; gap: .8rem; }
.modal-head h3 { font-size: 2rem; flex: 1; line-height: .95; }
.modal-head .alt { font-family: var(--font-s); font-weight: 600; font-size: 1.5rem; color: var(--muted); white-space: nowrap; }
.modal-card .zone { padding: 0 1.4rem; font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; color: var(--accent); font-weight: 700; }
.modal-card .blurb { padding: .5rem 1.4rem .2rem; font-family: var(--font-s); font-size: 1.25rem; line-height: 1.3; color: var(--ink2); }
.modal-card .side-tabs { padding: .7rem 1.4rem 0; }
.modal-profile { padding: .5rem .9rem 0; }
.modal-card .pline { animation: draw 1.4s .15s cubic-bezier(.4,0,.2,1) forwards; }
.modal-card .side-stats { padding: .6rem 1.4rem .4rem; }
.water-line {
  margin: .3rem 1.4rem 0; padding: .35rem .7rem; border-radius: 10px;
  background: #e6eef5; border: 1px dashed rgba(35,43,51,.18);
  font-size: .82rem; color: #2a5a7a; font-weight: 600;
}
.water-line .state-src { float: right; font-weight: 400; font-size: .68rem; opacity: .6; }
.prof-legend {
  padding: .1rem 1.4rem 0; font-size: .68rem; color: var(--muted);
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
}
.prof-legend i { display: inline-block; width: 14px; height: 8px; border-radius: 2px; margin-left: .3rem; }
.modal-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem;
  padding: .8rem 1.4rem 1.3rem; border-top: 1px solid var(--line); margin-top: .5rem;
}

/* ═══ Comparateur ═══ */
.compare-box { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; box-shadow: var(--shadow); }
.compare-box svg { width: 100%; height: auto; display: block; }
.compare-box svg path.cline { stroke-dasharray: 2400; stroke-dashoffset: 2400; animation: draw 2s .2s cubic-bezier(.4,0,.2,1) forwards; }
.compare-empty { text-align: center; padding: 2.2rem 1rem; color: var(--muted); font-family: var(--font-s); font-size: 1.25rem; }
.compare-empty .mnt { font-size: 2rem; letter-spacing: .3em; opacity: .45; }
.compare-legend { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; }
.compare-legend .leg { font-size: .84rem; color: var(--ink2); }
.compare-legend .leg i { display: inline-block; width: 20px; height: 4px; border-radius: 2px; margin-right: .55rem; vertical-align: 3px; }
.compare-bar {
  position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%);
  z-index: 2800; display: flex; gap: .45rem; align-items: center; flex-wrap: wrap;
  background: rgba(36,46,55,.95); backdrop-filter: blur(8px);
  padding: .55rem .8rem; border-radius: 99px; box-shadow: 0 14px 36px rgba(0,0,0,.35);
  max-width: min(94vw, 820px);
  animation: barin .4s cubic-bezier(.22,1,.36,1);
}
@keyframes barin { from { transform: translate(-50%, 80px); opacity: 0; } }
.compare-bar .pill {
  border: 2px solid transparent; border-radius: 99px; background: #38444f; color: #e8ebee;
  font-size: .73rem; font-weight: 600; padding: .28rem .7rem; white-space: nowrap;
  text-decoration: none; cursor: default; font-family: inherit;
}
.compare-bar .pill.rm { cursor: pointer; transition: background .2s; }
.compare-bar .pill.rm:hover { background: #4a5762; }
.compare-hint {
  margin-top: .6rem; text-align: center;
  font-family: var(--font-s); font-size: 1.05rem; color: var(--muted);
}
#compare-hover { cursor: crosshair; }
.compare-bar .pill.go { background: var(--accent); color: #fff; cursor: pointer; transition: transform .2s; }
.compare-bar .pill.go:hover { transform: scale(1.05); }
.compare-bar .pill.clear { background: transparent; border-color: #56626d; color: #a6afb8; cursor: pointer; font: inherit; font-size: .73rem; }

/* ═══ Boucles ═══ */
.loops-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 1.4rem; margin-top: 1rem; counter-reset: loop; }
.loop {
  position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.25rem 1.35rem 1.2rem; box-shadow: 0 3px 12px rgba(35,43,51,.05);
  overflow: hidden;
  transition: transform .35s cubic-bezier(.22,1,.36,1), box-shadow .35s;
}
.loop:hover { transform: translateY(-5px); box-shadow: 0 18px 38px rgba(35,43,51,.12); }
.loop::before {
  counter-increment: loop; content: counter(loop, decimal-leading-zero);
  position: absolute; top: -.4rem; right: .7rem;
  font-family: var(--font-s); font-weight: 600;
  font-size: 4.2rem; color: rgba(35,43,51,.08); pointer-events: none;
}
.loop h3 { font-size: 1.45rem; }
.loop-meta { font-size: .7rem; text-transform: uppercase; letter-spacing: .12em; color: var(--accent); font-weight: 700; margin: .2rem 0 .55rem; }
.loop p { font-family: var(--font-s); font-size: 1.18rem; line-height: 1.32; color: var(--ink2); margin-bottom: .8rem; }
.loop-cols { display: flex; flex-wrap: wrap; gap: .4rem; }
.loop-col {
  border: 2px solid; border-radius: 99px; padding: .18rem .6rem;
  font-size: .73rem; font-weight: 600; color: var(--ink); text-decoration: none; background: var(--card);
  transition: transform .2s, box-shadow .2s;
}
.loop-col:hover { transform: translateY(-2px); box-shadow: 0 6px 14px rgba(35,43,51,.13); }

/* ═══ Footer ═══ */
.foot-ridge { display: block; width: 100%; height: 60px; margin-top: 5rem; margin-bottom: -1px; }
footer {
  background: var(--night); color: #98a3ac;
  padding: 2.6rem clamp(1.2rem, 4vw, 2.4rem) 3rem; font-size: .85rem;
}
footer .inner { max-width: 1150px; margin: 0 auto; }
footer strong { color: #fff; }
footer .fine { margin-top: .7rem; font-size: .78rem; line-height: 1.7; max-width: 860px; }
footer a { color: #d09a7f; }
.cols-links-grid { column-count: 4; column-gap: 2rem; margin-top: .3rem; }
.cols-links-grid a { display: block; padding: .1rem 0; text-decoration: none; }
.cols-links-grid a:hover { text-decoration: underline; }
@media (max-width: 760px) { .cols-links-grid { column-count: 2; } }
:focus-visible { outline: 2.5px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ═══ Responsive ═══ */
@media (max-width: 860px) {
  .nav { gap: .8rem; }
  .brand-txt { display: none; }
  .toolbar { top: 46px; }
  /* menu déroulant : les liens de section passent derrière un burger */
  .nav-burger {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; margin-left: auto; flex: none;
    border: 1.5px solid var(--line); border-radius: 9px;
    background: var(--card); color: var(--ink); cursor: pointer;
  }
  .nav.menu-open .nav-burger { color: var(--accent); border-color: var(--accent); }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0; margin: 0; overflow: visible;
    background: rgba(246, 244, 238, .98); backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px rgba(35,43,51,.14);
    padding: .3rem 0 .5rem;
  }
  .nav.menu-open .nav-links { display: flex; }
  .nav-links a { padding: .7rem 1.4rem; font-size: .9rem; }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: rgba(180, 83, 42, .08); }
}
@media (max-width: 640px) {
  #map { height: 62vh; }
  .dd-panel { left: auto; right: 0; min-width: 190px; }
  .nav { gap: .6rem; }
  .hero-inner { padding-bottom: 8rem; }
  .hero-stats { gap: 1.3rem 1.8rem; }
  .hero-stats .stat b { font-size: 1.8rem; }
  .scroll-cue { display: none; }
  .toolbar .count { display: none; }
  /* filtres : défilement horizontal + fondu indiquant qu'il y a plus à droite */
  .toolbar { position: sticky; }
  .toolbar::after {
    content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 34px;
    background: linear-gradient(90deg, transparent, rgba(246,244,238,.95));
    pointer-events: none;
  }
  .toolbar-inner { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding-bottom: .2rem; }
  .key-stats .ks-open { opacity: .85; }
  .toolbar-inner::-webkit-scrollbar { display: none; }
  .toolbar .chip, .toolbar .dd-btn { white-space: nowrap; flex-shrink: 0; }
  .searchbox { flex-shrink: 0; }
  .strava-user, .strava-note { display: none; }
  .grid, .loops-grid, .massif-grid { grid-template-columns: 1fr; }
  .side-stats div b { font-size: 1.15rem; }
  .massif-anchors { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; padding-bottom: .3rem; }
  .massif-anchors::-webkit-scrollbar { display: none; }
  .massif-anchors a { white-space: nowrap; flex-shrink: 0; }
  /* fiche modale plein écran : lecture confortable au bord de la route */
  .modal { padding: 0; align-items: stretch; }
  .modal-card { max-height: none; height: 100%; border-radius: 0; border: 0; }
  .wx-forecast { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .wx-forecast::-webkit-scrollbar { display: none; }
  .wx-day { min-width: 84px; flex-shrink: 0; }
  .modal-actions button, .modal-actions a { padding: .6rem .9rem; }
}

/* ── Sélecteur de templates de story ─────────────────────── */
.story-picker {
  position: fixed; inset: 0; z-index: 4000;
  background: rgba(20, 24, 31, .82);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
}
.story-picker-panel {
  background: var(--card); color: var(--ink); border-radius: var(--radius);
  max-width: 760px; width: 100%; max-height: 90vh; overflow: auto;
  padding: 1.5rem 1.6rem 1.7rem; position: relative; box-shadow: 0 24px 64px rgba(20, 24, 31, .45);
}
.story-picker-panel h4 { margin: 0 0 .1rem; font-family: var(--font-d); font-size: 1.5rem; letter-spacing: .01em; }
.story-picker-sub { margin: 0 0 1.2rem; color: var(--muted); font-size: .95rem; }
.story-picker-hint { margin: 1.2rem 0 0; color: var(--muted); font-size: .82rem; }
.story-picker-x {
  position: absolute; top: .7rem; right: .8rem; width: 2rem; height: 2rem;
  border: 0; background: transparent; font-size: 1.1rem; cursor: pointer; color: var(--muted); border-radius: 50%;
}
.story-picker-x:hover { background: var(--paper2); color: var(--ink); }
.story-tpl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.story-tpl {
  border: 1px solid var(--line); background: var(--paper); border-radius: 12px;
  padding: .55rem; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: .5rem;
  font: inherit; color: var(--ink); transition: transform .12s, box-shadow .12s, border-color .12s;
}
.story-tpl:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(20, 24, 31, .18); border-color: var(--accent); }
.story-tpl-prev { width: 100%; height: auto; border-radius: 7px; display: block; box-shadow: 0 1px 4px rgba(20, 24, 31, .15); }
.story-tpl span { font-size: .88rem; font-weight: 600; }
/* damier derrière l'aperçu transparent, pour montrer qu'il n'a pas de fond */
.story-tpl.is-alpha .story-tpl-prev {
  background-color: #e7e5df;
  background-image:
    linear-gradient(45deg, #cfccc4 25%, transparent 25%), linear-gradient(-45deg, #cfccc4 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #cfccc4 75%), linear-gradient(-45deg, transparent 75%, #cfccc4 75%);
  background-size: 18px 18px; background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
@media (max-width: 640px) {
  .story-tpl-grid { grid-template-columns: repeat(2, 1fr); }
  .story-picker-panel { padding: 1.2rem 1.1rem 1.4rem; }
}
/* CTA « ajoute ta photo » + éditeur de composition */
.photo-cta {
  width: 100%; display: flex; align-items: center; gap: .9rem; text-align: left;
  padding: 1rem 1.2rem; border: 2px dashed var(--accent); background: var(--paper2);
  border-radius: 12px; cursor: pointer; font: inherit; color: var(--ink); transition: background .12s;
}
.photo-cta:hover { background: #f3e7df; }
.photo-cta .ph-ic { font-size: 2rem; line-height: 1; }
.photo-cta .ph-tx { display: flex; flex-direction: column; }
.photo-cta strong { font-family: var(--font-d); font-size: 1.2rem; }
.photo-cta small { color: var(--muted); font-size: .85rem; }
.story-or { text-align: center; color: var(--muted); font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; margin: 1.1rem 0 .8rem; }
.photo-editor-canvas {
  display: block; margin: .2rem auto 0; width: 100%; max-width: 288px; aspect-ratio: 1080 / 1920;
  border-radius: 10px; background: #0d1117; touch-action: none; cursor: grab; box-shadow: 0 6px 22px rgba(20, 24, 31, .3);
}
.photo-editor-canvas:active { cursor: grabbing; }
.photo-hint { text-align: center; color: var(--muted); font-size: .8rem; margin: .5rem 0 0; }
.photo-editor-controls { display: flex; align-items: center; gap: .7rem; margin: .8rem auto 0; max-width: 340px; }
.photo-editor-controls input[type=range] { flex: 1; accent-color: var(--accent); }
.photo-editor-actions { display: flex; gap: .6rem; margin: 1rem auto 0; max-width: 400px; }
.photo-editor-actions button {
  flex: 1; padding: .7rem 1rem; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.photo-editor-actions .primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.photo-editor-actions button:hover { filter: brightness(.97); }
