/* Héros, montée, boucles, infos, FAQ. */

/* ---------- Héros ---------- */
.hero { position: relative; min-height: min(940px, calc(100svh - var(--head) - 36px)); display: flex; align-items: flex-start; overflow: hidden; background: var(--asphalt); }
.hero__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 38% 42%; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(19, 22, 20, .94) 0%, rgba(19, 22, 20, .82) 30%, rgba(19, 22, 20, .2) 58%, rgba(19, 22, 20, 0) 72%); }
.hero__text { position: relative; z-index: 2; box-sizing: content-box; width: min(920px, 56%); padding: clamp(40px, 9vh, 120px) 0 0 var(--edge); }
/* Composition fixe : « Location de vélos » mesure 6,57 em, le corps est borné pour que cette ligne tienne toujours. */
.hero h1 { font-size: clamp(56px, min(7.8vw, 13vh), 136px); font-weight: 900; line-height: 0.86; letter-spacing: -0.012em; color: var(--white); }
.br-m { display: none; }
.hero__lede { max-width: 31em; margin: clamp(18px, 3vh, 30px) 0 clamp(22px, 3.6vh, 34px); font-size: 19px; color: var(--text); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; }
.hero__sign { position: absolute; z-index: 2; right: var(--edge); top: clamp(60px, 14vh, 150px); width: 262px; transform: rotate(-1.2deg); }
.hero__profile { position: absolute; z-index: 1; left: 0; right: 0; bottom: 0; height: clamp(130px, 27%, 250px); pointer-events: none; }
.hero__profile svg { width: 100%; height: 100%; }
.hero__profile .hp-area { fill: var(--asphalt); }
.hero__profile .hp-line { fill: none; stroke: var(--chart); stroke-width: 3; vector-effect: non-scaling-stroke; }
.hero__profile .hp-tick { stroke: rgba(255, 255, 255, .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hp { position: absolute; bottom: 16px; font: 600 13px/1 var(--mono); color: var(--stone); }
.hp--a { left: var(--gut); }
.hp--b { right: var(--gut); color: var(--chart); }
.hp__s { display: none; }

/* ---------- La montée ---------- */
.climb { position: relative; padding: 36px 0 120px; }
.climb__stage { background: var(--asphalt); padding-top: 24px; }
.climb__head { margin-bottom: 26px; }
.climb__head h2 { font-size: clamp(40px, 5.2vw, 78px); }
.climb__head p { margin: 14px 0 0; max-width: 64em; color: var(--stone); }
.climb__grid { display: grid; grid-template-columns: minmax(0, 1fr) clamp(300px, 29vw, 420px); gap: 32px; align-items: start; }
.climb__chart { position: relative; }
#climb-svg { width: 100%; overflow: visible; touch-action: pan-y; cursor: crosshair; }
#climb-svg:focus-visible { outline-offset: 6px; }
.c-axis line { stroke: rgba(255, 255, 255, .08); }
.c-axis text { fill: var(--muted); font: 500 11px var(--mono); }
.c-ghost { fill: rgba(255, 255, 255, .035); stroke: rgba(255, 255, 255, .22); stroke-dasharray: 3 4; }
.c-km { stroke: var(--asphalt); stroke-width: 1.5; }
.c-km.g1 { fill: var(--g1); } .c-km.g2 { fill: var(--g2); } .c-km.g3 { fill: var(--g3); } .c-km.g4 { fill: var(--g4); }
.c-pct { font: 700 12px var(--mono); fill: var(--ink); }
.c-pct.g1 { fill: var(--text); }
.c-tun { stroke: var(--chart); stroke-width: 1; }
.c-hatch { fill: var(--chart); }
.c-line { fill: none; stroke: var(--white); stroke-width: 2.5; stroke-linejoin: round; }
.c-note { opacity: 0; transition: opacity .35s; }
.c-note.is-on { opacity: 1; }
.c-ann line { stroke: var(--stone); stroke-width: 1; }
.c-ann text { fill: var(--text); font: 600 13px var(--sans); }
.c-cursor line { stroke: var(--white); stroke-dasharray: 2 3; }
.c-cursor circle { fill: var(--chart); stroke: var(--asphalt); stroke-width: 3; }
.borne { position: absolute; left: 0; top: 0; width: 200px; pointer-events: none; background: #f3f4f3; color: var(--ink); border-radius: 5px; padding: 4px; box-shadow: 0 10px 28px rgba(0, 0, 0, .4); transition: transform .12s ease-out, opacity .25s; }
.borne p { margin: 0; }
.bn-km { padding: 6px 10px 4px; background: var(--chart); border-radius: 2px 2px 0 0; font: 800 20px/1 var(--display); text-transform: uppercase; }
.bn-alt { padding: 5px 10px 0; border-inline: 2px solid var(--ink); font: 900 36px/1 var(--display); }
.bn-txt { padding: 2px 10px 8px; border: 2px solid var(--ink); border-top: 0; border-radius: 0 0 2px 2px; }
.bn-pct { font: 700 13px/1.5 var(--mono); }
.bn-top { font-size: 13px; line-height: 1.35; }
.borne.is-rest { opacity: 0; }
.climb__side { min-width: 0; }
.climb__map { background: #171a18; }
.climb__map svg { width: 100%; height: auto; }
.climb__map figcaption { padding: 8px 12px 10px; font-size: 12px; color: var(--muted); }
.climb__facts { margin: 12px 0 0; }
.climb__facts div { display: flex; justify-content: space-between; gap: 16px; padding: 3px 0; font-size: 14px; color: var(--stone); }
.climb__facts dd { margin: 0; font: 600 13px/1.6 var(--mono); color: var(--text); white-space: nowrap; }
.m-cliff, .m-cliff-h, .m-water, .m-route, .m-prog, .m-tun, .m-scale, .m-col, .m-dot { fill: none; vector-effect: non-scaling-stroke; }
.m-cliff { stroke: #69706b; stroke-width: 1; }
.m-cliff-h { stroke: #69706b; stroke-width: 5; stroke-dasharray: 1 3; opacity: .7; }
.m-water { stroke: var(--water); stroke-width: 1.6; }
.m-route { stroke: rgba(255, 255, 255, .3); stroke-width: 3; stroke-linejoin: round; }
.m-prog { stroke: var(--chart); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.m-tun { stroke: var(--asphalt); stroke-width: 7; stroke-dasharray: 2 2; }
.m-col { fill: var(--asphalt); stroke: var(--white); stroke-width: 2; }
.m-shop { fill: var(--chart); }
.m-dot { fill: var(--chart); stroke: var(--asphalt); stroke-width: 3; }
.m-scale { stroke: var(--text); stroke-width: 2; }
.m-north { fill: var(--text); }
.m-lab { fill: var(--text); font: 600 150px var(--sans); paint-order: stroke; stroke: #171a18; stroke-width: 36px; stroke-linejoin: round; }
.m-lab--strong { fill: var(--chart); font-weight: 800; }
.m-lab--area { fill: var(--muted); font: 800 230px var(--display); text-transform: uppercase; }
.m-lab--water { fill: var(--water); font-size: 130px; }
.m-lab--small { font-size: 120px; }
.climb__legend { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 18px; padding-bottom: 12px; }
.lgd { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: 14px; color: var(--stone); }
.lgd__i { display: inline-flex; align-items: center; gap: 8px; margin-right: 14px; white-space: nowrap; }
.lgd__k { width: 22px; height: 12px; }
.lgd__k.g1 { background: var(--g1); } .lgd__k.g2 { background: var(--g2); } .lgd__k.g3 { background: var(--g3); } .lgd__k.g4 { background: var(--g4); }
.lgd__k--h { height: 9px; border: 1px solid var(--chart); background: repeating-linear-gradient(45deg, var(--chart) 0 2px, transparent 2px 5px); }
.src { margin: 0; font-size: 13px; color: var(--muted); }

/* Épinglée, la scène occupe l’écran sous l’en-tête et son contenu s’y centre (mêmes seuils que profile.js). */
@media (min-width: 1024px) and (min-height: 760px) and (prefers-reduced-motion: no-preference) {
  .climb__stage { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 76px); padding-top: 0; }
}

/* Estimation du temps */
.est { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; position: relative; margin-top: 96px; padding-top: 40px; }
.est::before { content: ""; position: absolute; top: 0; left: var(--gut); right: var(--gut); height: 4px; background: var(--chart); }
.est__intro p { margin-top: 16px; color: var(--stone); }
.est .opts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.est .opt { text-align: left; }
.est__out { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 28px; align-content: start; }
.est__out div { border-left: 3px solid var(--line); padding-left: 14px; }
.est__out dt { font-size: 14px; color: var(--muted); }
.est__out dd { margin: 4px 0 0; font: 800 34px/1 var(--display); color: var(--white); }
.est__out .est__main { grid-column: 1 / -1; border-left-color: var(--chart); }
.est__out .est__main dd { font-size: 76px; font-weight: 900; color: var(--chart); }
.est__note { grid-column: 2 / -1; margin: -24px 0 0; font-size: 13px; color: var(--muted); }

.climb__photos { display: grid; grid-template-columns: 1.7fr 1fr; gap: 28px; margin-top: 96px; align-items: end; }
.ph__f { overflow: hidden; }
.ph__f img { transform: scale(1.12); }
.climb__photos .ph--wide img { aspect-ratio: 4 / 3; }
.climb__photos .ph--tall { margin-bottom: 64px; }
.climb__photos .ph--tall img { aspect-ratio: 3 / 4; }

/* ---------- Boucles ---------- */
.loops { padding: 140px 0 120px; }
.loops__head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px 64px; align-items: end; margin-bottom: 56px; }
.loops__head p { margin: 0; color: var(--stone); }
.loop { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr); gap: 20px 56px; padding: 40px 0; border-top: 1px solid var(--line); }
.loop__name { font-size: clamp(32px, 3.2vw, 46px); }
.loop__stats { display: flex; flex-wrap: wrap; gap: 6px 26px; margin: 18px 0 0; }
.loop__stats div { display: flex; flex-direction: column; }
.loop__stats dt { order: 2; font-size: 13px; color: var(--muted); }
.loop__stats dd { order: 1; margin: 0; font: 800 30px/1 var(--display); color: var(--white); }
.loop__prof { position: relative; padding-top: 190px; margin-bottom: 18px; }
.loop__svg { width: 100%; height: 120px; }
.lp-mark { position: absolute; transform: translateX(-50%) rotate(180deg); writing-mode: vertical-rl; font: 600 11.5px/1 var(--mono); color: var(--text); white-space: nowrap; }
.lp-dot { position: absolute; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; background: var(--asphalt); border: 2px solid var(--white); }
.loop__svg .lp-area { fill: rgba(212, 242, 46, .075); }
.loop__svg .lp-line { fill: none; stroke: var(--chart); stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.loop__svg .lp-base { stroke: var(--line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.loop__ph { margin-top: 30px; max-width: 460px; }
.loop__ph img { aspect-ratio: 4 / 3; transform: scale(1.06); }
.loop__body p { color: var(--stone); max-width: 62ch; }
.loop__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; font-size: 14px; color: var(--muted); }
.loop__meta strong { color: var(--text); font-weight: 600; }
.gravel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: center; margin-top: 88px; }
.gravel .ph img { aspect-ratio: 3 / 4; }
.gravel__txt p { color: var(--stone); max-width: 58ch; margin-top: 18px; }

/* ---------- Infos (fond calcaire) ---------- */
.info { background: var(--calc); color: var(--ink); padding: 120px 0 96px; }
.info :focus-visible { outline-color: var(--ink); }
.bulletin :focus-visible { outline-color: var(--chart); }
.info__head { margin-bottom: 48px; }
.info__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: 48px; align-items: start; }
.bulletin { background: var(--asphalt); color: var(--text); padding: 30px 30px 18px; }
.bulletin h3 { color: var(--chart); }
.bulletin__date { margin: 8px 0 18px; font: 500 13px var(--mono); color: var(--muted); }
.bulletin ul { margin: 0; padding: 0; list-style: none; }
.bulletin li { padding: 10px 0 12px; font-size: 15.5px; color: var(--stone); }
.bulletin li strong { color: var(--white); }
.info__blocks { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 40px; }
.ib h3 { font-size: 28px; margin-bottom: 10px; }
.ib p { font-size: 16px; }
.ib .small { color: var(--ink-2); }
.ib a { font-weight: 700; }
.now { font: 600 14px var(--mono); }
.now b { font-weight: 800; }
.now::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 8px; background: var(--ink-2); }
.now.is-open::before { background: #3d7a1f; }
.hours { margin: 0 0 12px; font-size: 16px; }
.hours div + div { margin-top: 8px; }
.hours dt { font-weight: 700; }
.hours dd { margin: 0; }
.ph--town { margin-top: 64px; }
.ph--town img { aspect-ratio: 12 / 5; }
.ph--town figcaption { color: var(--ink-2); max-width: none; }

/* ---------- FAQ ---------- */
.faq { background: var(--asphalt-2); padding: 120px 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr); gap: 48px; align-items: start; }
.faq h2 { position: sticky; top: calc(var(--head) + 32px); }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; gap: 24px; min-height: 64px; align-items: center; padding: 18px 0; cursor: pointer; list-style: none; font: 700 19px/1.3 var(--sans); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; display: grid; place-items: center; background: var(--asphalt-3); color: var(--chart); font: 600 22px/1 var(--mono); transition: transform .25s; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 24px; max-width: 64ch; color: var(--stone); }

@media (max-width: 1023px) {
  .loops__head, .info__grid, .faq__grid { grid-template-columns: minmax(0, 1fr); }
  .climb__grid { grid-template-columns: minmax(0, 1fr); }
  .climb__side { max-width: 560px; }
  .est { grid-template-columns: 1fr 1fr; gap: 36px; }
  .est__out { grid-column: 1 / -1; }
  .est__note { grid-column: 1 / -1; margin-top: -12px; }
  .loop { grid-template-columns: minmax(0, 1fr); }
  .faq h2 { position: static; }
}
@media (max-width: 759px) {
  .hero { display: block; min-height: 0; }
  .hero::before { display: none; }
  .hero__img { display: block; position: relative; height: 64svh; min-height: 420px; max-height: 620px; }
  .hero__img img { object-position: 50% 45%; }
  .hero__text { box-sizing: border-box; width: auto; padding: 8px var(--gut) 0; margin-top: -2px; }
  .hero h1 { font-size: clamp(44px, 14.4vw, 76px); }
  .br-m { display: inline; }
  .br-d { display: none; }
  .hero__lede { font-size: 17px; margin: 20px 0 26px; }
  .hero__sign { position: relative; right: auto; top: auto; width: auto; max-width: 340px; margin: 40px var(--gut) 0; transform: none; }
  .hero__profile { position: absolute; top: calc(min(620px, max(420px, 64svh)) - 90px); bottom: auto; height: 92px; }
  .hp { bottom: 6px; font-size: 11px; }
  .hp__x { display: none; }
  .hp__s { display: inline; }
  .climb { padding: 48px 0 88px; }
  .climb__head { margin-bottom: 18px; }
  .climb__chart { padding-top: 70px; }
  .c-pct { font-size: 9.5px; letter-spacing: -0.02em; }
  .borne { width: auto; right: 0; display: flex; align-items: stretch; padding: 3px; transform: none !important; transition: none; }
  .bn-km { display: flex; align-items: center; border-radius: 2px 0 0 2px; font-size: 16px; }
  .bn-alt { display: flex; align-items: center; border-inline: 0; border-block: 2px solid var(--ink); font-size: 24px; padding: 0 10px; }
  .bn-txt { flex: 1; border: 2px solid var(--ink); border-left: 0; border-radius: 0 2px 2px 0; padding: 4px 8px; }
  .bn-pct { font-size: 12px; line-height: 1.3; }
  .bn-top { font-size: 12px; line-height: 1.3; }
  .m-lab { font-size: 210px; stroke-width: 44px; }
  .m-lab--area { font-size: 280px; }
  .m-lab--small { font-size: 180px; }
  .est { grid-template-columns: minmax(0, 1fr); margin-top: 64px; }
  .est__out .est__main dd { font-size: 60px; }
  .climb__photos { grid-template-columns: minmax(0, 1fr); margin-top: 56px; }
  .climb__photos .ph--tall { margin: 0; }
  .loops { padding: 88px 0; }
  .loop__stats dd { font-size: 26px; }
  .loop__prof { padding-top: 176px; }
  .lp-mark { font-size: 10.5px; }
  .gravel { grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 56px; }
  .gravel .ph img { aspect-ratio: 4 / 3; }
  .info { padding: 88px 0 72px; }
  .info__blocks { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .ph--town { margin-top: 48px; }
  .ph--town img { aspect-ratio: 4 / 3; }
  .bulletin { padding: 24px 20px 12px; margin: 0 calc(var(--gut) * -1); }
  .faq { padding: 88px 0; }
  .faq summary { font-size: 17px; }
}
