/* Balades & circuits v4 : liste (/balades) et fiche circuit (maquette 11c). */

.wpt { padding: 20px 0 48px; }
.wpt-crumbs { margin-bottom: 16px; }
.wpt-h2 { font-size: 18px; font-weight: 900; margin: 0; }
.wpt-h4 { font-size: 15px; font-weight: 800; margin: 0; }
.wpt-p { font-size: 13px; line-height: 1.5; color: var(--wp-ink-2); margin: 0; }
.wpt-p a { font-weight: 700; color: var(--wp-ink); }
.wpt-kick { font: 500 11px/1.3 var(--wp-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--wp-acc); }
.wpt-link { font-size: 13px; font-weight: 700; color: var(--wp-ink); }
body.wp .wpt-link:hover { color: var(--wp-acc-2); }
.wpt-note { font-size: 12px; color: var(--wp-muted); margin: 0; }
.wpt-src { font-size: 12px; color: var(--wp-muted); margin: 0; overflow-wrap: anywhere; }
.wpt-src a { color: var(--wp-muted); text-decoration: underline; }
.wpt-card { background: var(--wp-paper); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.wpt-card--dark { background: var(--wp-dark); color: var(--wp-on-dark); }
.wpt-card--dark .wpt-p { color: var(--wp-on-dark-2); }
.wpt-card--dark .wpt-link { color: var(--wp-acc); }
.wpt-card__t { font-size: 17px; font-weight: 800; line-height: 1.2; color: var(--wp-paper); }
body.wp .wpt-card__t:hover { color: var(--wp-acc); }
.wpt-tips { margin: 4px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.5; color: var(--wp-ink-2); }

/* ---------- Fiche circuit ---------- */
.wpt-sheet { background: var(--wp-bg); border-radius: 14px; overflow: hidden; }
.wpt-hero { position: relative; height: 260px; background: var(--wp-dark); border-radius: 14px 14px 0 0; overflow: hidden; }
.wpt-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpt-hero__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(27, 26, 23, .1), rgba(27, 26, 23, .85)); }
.wpt-hero__in { position: absolute; left: 28px; right: 28px; bottom: 22px; color: #FBF9F4; display: flex; flex-direction: column; gap: 4px; }
.wpt-hero__k { font: 500 12px/1.3 var(--wp-mono); text-transform: uppercase; }
.wpt-h1 { font-size: 42px; font-weight: 900; letter-spacing: -.03em; line-height: 1.02; margin: 0; color: #FBF9F4; text-wrap: balance; }
.wpt-stats { display: grid; grid-template-columns: repeat(var(--n, 4), 1fr); background: var(--wp-paper); border-bottom: 1px solid var(--wp-line); margin: 0; }
.wpt-stats div { padding: 14px 20px; border-right: 1px solid var(--wp-line); display: flex; flex-direction: column-reverse; }
.wpt-stats div:last-child { border-right: 0; }
.wpt-stats dd { margin: 0; font-size: 26px; font-weight: 900; line-height: 1.1; }
.wpt-stats dt { font-size: 12px; color: var(--wp-muted); }
.wpt-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 22px; padding: 22px 28px 28px; align-items: start; }
.wpt-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wpt-desc { font-size: 15px; line-height: 1.6; color: var(--wp-ink-2); margin: 0; }
.wpt-map .trails-map { height: 340px; }
.wpt-way { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wpt-way a { background: var(--wp-paper); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 2px; color: var(--wp-ink); min-width: 0; }
body.wp .wpt-way a:hover { color: var(--wp-ink); box-shadow: inset 0 0 0 1px var(--wp-ink); }
.wpt-way span { font: 500 10px/1.3 var(--wp-mono); text-transform: uppercase; color: var(--wp-acc-2); }
.wpt-way b { font-size: 14px; font-weight: 700; line-height: 1.25; }
.wpt-way small { font-size: 12px; color: var(--wp-muted); }
.wpt-rel { display: flex; flex-direction: column; gap: 6px; }
.wpt-rel a { display: flex; justify-content: space-between; gap: 12px; background: var(--wp-paper); border-radius: 10px; padding: 11px 14px; font-size: 14px; color: var(--wp-ink); }
body.wp .wpt-rel a:hover { color: var(--wp-acc-2); }
.wpt-rel b { font-weight: 700; }
.wpt-rel span { color: var(--wp-muted); white-space: nowrap; }

.wpt-aside { display: flex; flex-direction: column; gap: 12px; }
.wpt-acts { gap: 8px; }
.wpt-acts form { margin: 0; }
.wpt-btn { display: flex; width: 100%; align-items: center; justify-content: center; padding: 10px; border-radius: 999px; border: 1px solid var(--wp-line-2); background: transparent; color: var(--wp-ink); font: 700 14px/1.2 var(--wp-sans); text-align: center; cursor: pointer; }
body.wp .wpt-btn:hover { border-color: var(--wp-ink); color: var(--wp-ink); }
.wpt-btn--acc { background: var(--wp-acc); border-color: var(--wp-acc); font-weight: 800; padding: 11px; }
body.wp .wpt-btn--acc:hover { background: var(--wp-acc-2); border-color: var(--wp-acc-2); }
.wpt-btn--ink { border-color: var(--wp-ink); }
.wpt-btn.is-on { background: var(--wp-ok, #2E5A3A); border-color: var(--wp-ok, #2E5A3A); color: var(--wp-paper); }
body.wp .wpt-btn.is-on:hover { color: var(--wp-paper); }
.wpt-small { font-size: 12px; color: var(--wp-muted); margin: 0; text-align: center; }
.wpt-acts .wpt-link { text-align: center; margin-top: 2px; }
.wpt-pause { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.wpt-pause li { display: flex; justify-content: space-between; gap: 8px; }
.wpt-pause a { font-weight: 700; color: var(--wp-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpt-pause span { color: var(--wp-muted); white-space: nowrap; }

/* ---------- Liste ---------- */
.wpt-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; padding-bottom: 18px; }
.wpt-title { font-size: 48px; font-weight: 900; letter-spacing: -.03em; line-height: 1; margin: 8px 0 0; }
.wpt-intro { font-size: 16px; line-height: 1.5; color: var(--wp-ink-2); max-width: 640px; margin: 10px 0 0; }
.wpt-top__btns { display: flex; gap: 8px; flex-shrink: 0; }
.wpt-search { display: flex; gap: 0; background: var(--wp-paper); border: 2px solid var(--wp-ink); border-radius: 14px; padding: 6px; align-items: stretch; }
.wpt-search label { display: flex; align-items: center; border-left: 1px solid var(--wp-line); }
.wpt-search .wpt-search__q { flex: 1; gap: 8px; padding: 0 12px; border-left: 0; }
.wpt-search__q .lw-icon { font-size: 20px; color: var(--wp-muted); }
.wpt-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 11px 0; font: 600 16px/1.2 var(--wp-sans); color: var(--wp-ink); outline: none; }
.wpt-search select { border: 0; background: transparent; padding: 0 12px; height: 100%; font: 500 14px/1 var(--wp-sans); color: var(--wp-ink); cursor: pointer; max-width: 210px; }
.wpt-search__go { background: var(--wp-acc); border: 0; border-radius: 10px; padding: 0 22px; font: 800 15px/1 var(--wp-sans); color: var(--wp-ink); cursor: pointer; }
.wpt-search__go:hover { background: var(--wp-acc-2); }
.wpt-chips { margin: 14px 0 0; align-items: center; }
.wpt-chips__sep { flex: 0 0 1px; height: 22px; background: var(--wp-line-2); margin: 0 4px; }

.wpt-explore { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 22px; margin-top: 18px; align-items: start; }
.wpt-list { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.wpt-list__hd { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.wpt-item { display: flex; gap: 12px; align-items: center; background: var(--wp-paper); border-radius: 12px; padding: 8px 10px 8px 8px; position: relative; content-visibility: auto; contain-intrinsic-size: auto 66px; }
.wpt-item.is-map-hidden { display: none; }
.wpt-item.is-map-active { box-shadow: inset 0 0 0 2px var(--wp-acc); }
.wpt-item__img { width: 64px; height: 50px; border-radius: 8px; background: var(--wp-sand-2); overflow: hidden; flex-shrink: 0; }
.wpt-item__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wpt-item__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.wpt-item__t, .wpt-h1, .wpt-rel b, .wpt-way b { overflow-wrap: anywhere; }
.wpt-item__t { font-size: 15px; font-weight: 800; line-height: 1.25; margin: 0; }
.wpt-item__t a { color: var(--wp-ink); }
.wpt-item__t a::after { content: ''; position: absolute; inset: 0; border-radius: inherit; }
body.wp .wpt-item__t a:hover { color: var(--wp-acc-2); }
.wpt-item__m { font-size: 12px; color: var(--wp-ink-2); }
.wpt-item__c { font-size: 12px; color: var(--wp-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpt-item__map { position: relative; z-index: 1; flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--wp-line-2); background: transparent; color: var(--wp-ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.wpt-item__map:hover { border-color: var(--wp-ink); }
.wpt-item__map .lw-icon { font-size: 18px; }
.wpt-side { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.wpt-side .trails-map--explorer { height: min(62vh, 560px); min-height: 360px; }
.wpt-side__cards { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-items: start; }
.wpt-side__cards .wpt-src { grid-column: 1 / -1; }
.wpt-side__cards .wp-btn { align-self: flex-start; }

@media (max-width: 1100px) {
  .wpt-explore { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wpt-side__cards { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .wpt-grid { grid-template-columns: minmax(0, 1fr); padding: 18px; }
  .wpt-aside { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); align-items: start; }
  .wpt-explore { grid-template-columns: minmax(0, 1fr); }
  .wpt-side { position: static; order: -1; }
  .wpt-side .trails-map--explorer { height: 340px; min-height: 280px; }
  .wpt-side__cards { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .wpt { padding-top: 12px; }
  .wpt-sheet { margin: 0 calc(var(--wp-gut) * -1); border-radius: 0; }
  .wpt-hero { height: 220px; border-radius: 0; }
  .wpt-hero__in { left: 16px; right: 16px; bottom: 16px; }
  .wpt-h1 { font-size: 28px; letter-spacing: -.02em; }
  .wpt-hero__k { font-size: 11px; }
  .wpt-stats { grid-template-columns: repeat(2, 1fr); }
  .wpt-stats div { padding: 12px 16px; border-bottom: 1px solid var(--wp-line); }
  .wpt-stats div:nth-child(2n) { border-right: 0; }
  .wpt-stats dd { font-size: 20px; }
  .wpt-grid { padding: 16px var(--wp-gut) 24px; gap: 16px; }
  .wpt-desc { font-size: 14px; }
  .wpt-map .trails-map { height: 260px; }
  .wpt-way { grid-template-columns: 1fr 1fr; }
  .wpt-rel a { flex-direction: column; gap: 2px; }
  .wpt-aside { display: flex; }

  .wpt-top { flex-direction: column; align-items: flex-start; padding-bottom: 14px; }
  .wpt-title { font-size: 30px; }
  .wpt-intro { font-size: 14px; }
  .wpt-top__btns { width: 100%; }
  .wpt-top__btns .wp-btn { flex: 1; justify-content: center; }
  .wpt-search { flex-wrap: wrap; border-width: 1px; padding: 4px; gap: 4px; }
  .wpt-search .wpt-search__q { flex: 1 1 100%; border-bottom: 1px solid var(--wp-line); }
  .wpt-search label:not(.wpt-search__q) { flex: 1 1 30%; border-left: 0; }
  .wpt-search select { width: 100%; padding: 10px 6px; font-size: 13px; max-width: none; }
  .wpt-search__go { flex: 1 1 100%; padding: 12px; }
  .wpt-side__cards { grid-template-columns: 1fr; }
}
