/* Coups de main (maquettes 6c desktop, 6e mobile) */

.wpx-hero {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch;
  padding-top: 32px; padding-bottom: 18px;
}
.wpx-hero__copy { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }
.wpx-h1 { font-size: 40px; font-weight: 900; letter-spacing: -.03em; line-height: 1.02; text-wrap: balance; }
.wpx-lead { font-size: 15px; color: var(--wp-ink-2); }

.wpx-door {
  display: flex; flex-direction: column; gap: 8px; border-radius: 16px; padding: 22px; color: var(--wp-ink); text-decoration: none;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wpx-door:hover { transform: translateY(-2px); box-shadow: var(--wp-shadow-pop); }
.wpx-door--need { background: var(--wp-acc); }
.wpx-door--give { background: var(--wp-paper); border: 2px solid var(--wp-ink); }
.wpx-door__t { font-size: 24px; font-weight: 900; line-height: 1.1; }
.wpx-door__short { display: none; }
.wpx-door__p { font-size: 14px; line-height: 1.45; }
.wpx-door--give .wpx-door__p { color: var(--wp-ink-2); }
.wpx-door__b { margin-top: auto; text-align: center; border-radius: 999px; padding: 11px; font-size: 14px; font-weight: 800; }
.wpx-door--need .wpx-door__b { background: var(--wp-ink); color: var(--wp-paper); }
.wpx-door--give .wpx-door__b { border: 1px solid var(--wp-ink); }

.wpx-filters { display: flex; align-items: center; gap: 12px; }
.wpx-types { flex: 1; min-width: 0; }
.wpx-types .wp-chip { font-size: 13px; padding: 7px 12px; white-space: nowrap; }
.wpx-types .wp-chip span { font: 400 11px/1 var(--wp-mono); opacity: .6; }
.wpx-commune { flex-shrink: 0; margin: 0; }
.wpx-commune select {
  border: 1px solid var(--wp-line-2); border-radius: 999px; background-color: var(--wp-paper); color: var(--wp-ink);
  font: 600 13px/1.2 var(--wp-sans); padding: 7px 30px 7px 12px; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--wp-ink) 50%), linear-gradient(135deg, var(--wp-ink) 50%, transparent 50%);
  background-position: calc(100% - 16px) 52%, calc(100% - 11px) 52%; background-size: 5px 5px; background-repeat: no-repeat;
}

.wpx-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; padding-top: 20px; padding-bottom: 40px; }
.wpx-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.wpx-near { display: none; font-size: 13px; color: var(--wp-muted); }

.wpx-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wpx-req {
  position: relative; background: var(--wp-paper); border-radius: 14px; padding: 16px 18px; display: flex; gap: 16px; align-items: center;
  border-left: 4px solid transparent;
}
.wpx-req.is-urgent { border-left-color: var(--wp-acc); }
.wpx-req__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wpx-req__meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wpx-req__k { font: 500 10px/1.3 var(--wp-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--wp-acc-2); }
.wpx-req__km { display: none; }
.wpx-req__w { font-size: 12px; color: var(--wp-faint); }
.wpx-req__t { font-size: 17px; font-weight: 800; line-height: 1.25; overflow-wrap: anywhere; }
.wpx-req__t a::after { content: ''; position: absolute; inset: 0; }
.wpx-req__x { font-size: 14px; line-height: 1.45; color: var(--wp-ink-2); }
.wpx-req__by { font-size: 12px; color: var(--wp-muted); }
.wpx-req__acts { display: flex; flex-direction: column; gap: 6px; flex-shrink: 0; position: relative; z-index: 1; }
.wpx-req__go, .wpx-req__msg { text-align: center; border-radius: 999px; padding: 9px 14px; font-size: 13px; white-space: nowrap; text-decoration: none; }
.wpx-req__go { background: var(--wp-ink); color: var(--wp-paper); font-weight: 700; }
.wpx-req__go:hover { background: var(--wp-dark); color: var(--wp-paper); }
.wpx-req__msg { border: 1px solid var(--wp-line-2); color: var(--wp-ink); font-weight: 600; }
.wpx-req__msg:hover { border-color: var(--wp-ink); }

.wpx-h2 { font-size: 20px; font-weight: 900; margin-top: 14px; }
.wpx-done { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wpx-done li { background: var(--wp-paper); border-radius: 14px; padding: 16px 18px; display: flex; gap: 12px; align-items: center; }
.wpx-done__tag { background: #2E7D3A; color: var(--wp-paper); font: 500 10px/1.2 var(--wp-mono); text-transform: uppercase; padding: 4px 8px; border-radius: 4px; flex-shrink: 0; }
.wpx-done__t { flex: 1; min-width: 0; font-size: 15px; font-weight: 700; color: var(--wp-ink); }
.wpx-done__m { font-size: 13px; color: var(--wp-muted); text-align: right; }

.wpx-steps { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.wpx-steps li { background: var(--wp-paper); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 2px; }
.wpx-steps b { font-size: 24px; font-weight: 900; color: var(--wp-acc-2); }
.wpx-steps strong { font-size: 15px; font-weight: 800; }
.wpx-steps span { font-size: 13px; color: var(--wp-muted); }

.wpx-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.wpx-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wpx-stat { background: var(--wp-paper); border-radius: 12px; padding: 14px; }
.wpx-stat b { display: block; font-size: 28px; font-weight: 900; line-height: 1.1; }
.wpx-stat span { font-size: 12px; color: var(--wp-muted); }
.wpx-follow { margin: -8px 0 0; }
.wpx-box { display: flex; flex-direction: column; gap: 8px; }
.wpx-side__h { font-size: 16px; font-weight: 800; }
.wpx-side__p { font-size: 13px; line-height: 1.5; color: var(--wp-ink-2); }
.wpx-side__a { font-size: 13px; font-weight: 700; }
.wpx-skills { display: flex; flex-wrap: wrap; gap: 6px; }
.wpx-skills span { font-size: 12px; padding: 6px 10px; border-radius: 999px; background: var(--wp-bg); }
.wpx-tools { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.wpx-tools a { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 600; color: var(--wp-ink); border-bottom: 1px solid var(--wp-line); padding-bottom: 7px; }
.wpx-tools small { font-size: 12px; font-weight: 400; color: var(--wp-muted); }
.wpx-alone__h { font-size: 18px; font-weight: 900; line-height: 1.15; color: var(--wp-on-dark); }
.wpx-alone__p { font-size: 13px; color: var(--wp-on-dark-2); }

/* ---------- Covoiturage (maquette 6d) ---------- */
.wpv-head { display: flex; align-items: flex-end; gap: 20px; padding-top: 28px; }
.wpv-head__copy { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.wpv-head .wpx-h1 { line-height: 1; }
.wpv-head__acts { display: flex; gap: 8px; flex-shrink: 0; }
.wpv-btn-paper { background: var(--wp-paper); }
.wpv-btn-soft { border-color: var(--wp-line-2); }
.wpv-body { display: flex; flex-direction: column; gap: 18px; padding-top: 18px; padding-bottom: 40px; }

.wpv-search {
  background: var(--wp-paper); border-radius: 14px; padding: 10px; display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 170px 160px auto; gap: 8px; align-items: stretch;
}
.wpv-field { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--wp-line); border-radius: 10px; padding: 9px 12px; min-width: 0; cursor: text; }
.wpv-field:focus-within { border-color: var(--wp-ink); }
.wpv-field > span { font-size: 11px; color: var(--wp-muted); }
.wpv-field input, .wpv-field select {
  border: 0; background: transparent; padding: 0; font: 600 15px/1.3 var(--wp-sans); color: var(--wp-ink); outline: none; min-width: 0; width: 100%;
}
.wpv-field input::placeholder { color: var(--wp-faint); font-weight: 400; }
.wpv-field--sel { cursor: pointer; position: relative; }
.wpv-field--sel select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 16px; }
.wpv-field--sel::after { content: '▾'; position: absolute; right: 12px; bottom: 10px; font-size: 12px; pointer-events: none; }
.wpv-search__go { border: 0; border-radius: 10px; background: var(--wp-ink); color: var(--wp-paper); font: 800 15px/1 var(--wp-sans); padding: 0 20px; cursor: pointer; }
.wpv-search__go:hover { background: var(--wp-dark); }

.wpv-freq { display: flex; align-items: center; gap: 8px; }
.wpv-freq__k { font: 400 11px/1.2 var(--wp-mono); color: var(--wp-muted); flex-shrink: 0; }
.wpv-freq__chips { flex: 1; min-width: 0; }
.wpv-freq .wp-chip { font-size: 13px; padding: 7px 12px; white-space: nowrap; }
.wpv-freq .wp-chip span { font: 400 11px/1 var(--wp-mono); opacity: .6; }
.wpv-alert { position: relative; flex-shrink: 0; }
.wpv-alert__btn { list-style: none; cursor: pointer; border-color: var(--wp-ink); display: inline-flex; align-items: center; gap: 6px; }
.wpv-alert__btn::-webkit-details-marker { display: none; }
.wpv-alert__btn .lw-icon { font-size: 16px; }
.wpv-alert[open] .wpv-alert__btn { background: var(--wp-ink); color: var(--wp-paper); }
.wpv-alert__pop {
  position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; width: 300px; background: var(--wp-paper); border: 1px solid var(--wp-line);
  border-radius: var(--wp-r-lg); box-shadow: var(--wp-shadow-pop); padding: 14px; display: flex; flex-direction: column; gap: 10px;
}
.wpv-alert__form { display: flex; flex-direction: column; gap: 8px; }
.wpv-alert__form label { display: flex; flex-direction: column; gap: 2px; border: 1px solid var(--wp-line); border-radius: 10px; padding: 7px 10px; }
.wpv-alert__form label span { font-size: 11px; color: var(--wp-muted); }
.wpv-alert__form input { border: 0; background: transparent; padding: 0; font: 600 14px/1.3 var(--wp-sans); color: var(--wp-ink); outline: none; }
.wpv-alert__mine { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--wp-line); display: flex; flex-direction: column; gap: 4px; }
.wpv-alert__mine li { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.wpv-alert__mine form { display: contents; }
.wpv-alert__mine button { border: 0; background: transparent; color: var(--wp-muted); font: 400 18px/1 var(--wp-sans); cursor: pointer; padding: 2px 6px; }
.wpv-alert__mine button:hover { color: var(--wp-acc-2); }

.wpv-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.wpv-bar .wp-chip { font-size: 13px; padding: 7px 12px; }

.wpv-empty { background: var(--wp-paper); border: 1px dashed #C9C1B0; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 10px; }
.wpv-empty__h { font-size: 22px; font-weight: 900; line-height: 1.15; }
.wpv-empty__p { font-size: 15px; line-height: 1.5; color: var(--wp-ink-2); max-width: 68ch; }
.wpv-empty__alt { font-size: 13px; color: var(--wp-ink-2); border-top: 1px solid var(--wp-line); padding-top: 10px; }
.wpv-empty__alt a { font-weight: 700; color: var(--wp-ink); }

.wpv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wpv-ride { position: relative; background: var(--wp-paper); border-radius: 14px; padding: 16px 18px; display: flex; gap: 14px; align-items: center; border-left: 4px solid var(--wp-acc); }
.wpv-ride.is-search { border-left-color: #2F5C8A; }
.wpv-ride__av {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0; overflow: hidden; position: relative; background: var(--wp-dark-2, #36503F);
  display: flex; align-items: center; justify-content: center;
}
.wpv-ride__av::before { content: attr(data-i); color: var(--wp-paper); font-weight: 800; font-size: 17px; }
.wpv-ride__av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wpv-ride__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.wpv-ride__meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.wpv-ride__tag { font: 500 10px/1.3 var(--wp-mono); text-transform: uppercase; letter-spacing: .06em; color: var(--wp-acc-2); }
.wpv-ride.is-search .wpv-ride__tag { color: #2F5C8A; }
.wpv-ride__f { font-size: 11px; font-weight: 700; border: 1px solid var(--wp-line-2); border-radius: 999px; padding: 2px 8px; }
.wpv-ride__w { font-size: 12px; color: var(--wp-faint); }
.wpv-ride__route { font-size: 19px; font-weight: 900; letter-spacing: -.01em; line-height: 1.2; overflow-wrap: anywhere; }
.wpv-ride__route a::after { content: ''; position: absolute; inset: 0; }
.wpv-ride__route span[aria-hidden] { color: var(--wp-acc-2); }
.wpv-ride__facts { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--wp-ink-2); }

.wpv-steps {
  list-style: none; margin: 0; background: var(--wp-dark); color: var(--wp-on-dark); border-radius: 14px; padding: 22px;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px;
}
.wpv-steps li { display: flex; flex-direction: column; gap: 4px; }
.wpv-steps .wp-kick { font-size: 11px; }
.wpv-steps strong { font-size: 16px; font-weight: 800; }
.wpv-steps li > span:last-child { font-size: 13px; color: var(--wp-on-dark-2); }
.wpv-tips { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.wpv-tips .wp-card { display: flex; flex-direction: column; gap: 4px; }
.wpv-tips__a { font-weight: 800; color: var(--wp-ink); }
.wpv-follow { display: flex; justify-content: flex-end; }
.wpv-search--vol { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)) auto; }
.wpv-bar__h { margin-top: 0; }
.wpv-domains { margin-top: 2px; }

/* ---------- Alertes du quartier ---------- */
.wpa-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wpa-kind { background: var(--wp-paper); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; }
.wpa-kind strong { font-size: 16px; font-weight: 800; }
.wpa-kind p { font-size: 13px; line-height: 1.5; color: var(--wp-ink-2); }
.wpa-search { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) auto; }
.wpa-grid { padding: 0; }
.wpa-rules { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.45; color: var(--wp-ink-2); }

@media (max-width: 1100px) {
  .wpx-hero { grid-template-columns: 1fr 1fr; }
  .wpx-hero__copy { grid-column: 1 / -1; }
}
@media (max-width: 960px) {
  .wpx-grid { grid-template-columns: minmax(0, 1fr); }
  .wpx-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .wpx-follow { margin: 0; }
  .wpv-head { flex-direction: column; align-items: flex-start; gap: 14px; }
  .wpv-search { grid-template-columns: 1fr 1fr; }
  .wpv-search__go { grid-column: 1 / -1; padding: 13px; }
  .wpv-freq { flex-wrap: wrap; }
  .wpv-freq__chips { flex: 1 1 100%; order: 2; }
  .wpv-freq__k { order: 1; flex: 1; }
  .wpv-alert { order: 1; }
}

/* ---------- Mobile (maquette 6e, écran « Coups de main ») ---------- */
@media (max-width: 760px) {
  .wpx-hero { gap: 8px; padding-top: 10px; padding-bottom: 8px; }
  .wpx-hero__copy { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .wpx-door { border-radius: 14px; padding: 14px; gap: 0; }
  .wpx-door__t { font-size: 15px; line-height: 1.15; }
  .wpx-door__long, .wpx-door__p, .wpx-door__b { display: none; }
  .wpx-door__short { display: inline; }

  .wpx-filters { gap: 6px; }
  .wpx-types { margin: 0 calc(var(--wp-gut) * -1); padding: 0 var(--wp-gut); }
  .wpx-types .wp-chip { font-size: 12px; padding: 6px 10px; }
  .wpx-types .wp-chip span { display: none; }
  .wpx-filters { flex-direction: column; align-items: stretch; }
  .wpx-commune { align-self: flex-start; }
  .wpx-commune select { font-size: 12px; padding: 6px 26px 6px 10px; }

  .wpx-grid { padding-top: 8px; gap: 20px; padding-bottom: 28px; }
  .wpx-main { gap: 8px; }
  .wpx-near { display: block; }
  .wpx-req { flex-direction: column; align-items: stretch; gap: 6px; padding: 12px; border-radius: 12px; }
  .wpx-req__w, .wpx-req__x, .wpx-req__by { display: none; }
  .wpx-req__km { display: inline; }
  .wpx-req__t { font-size: 14px; }
  .wpx-req__acts { flex-direction: row; }
  .wpx-req__go, .wpx-req__msg { font-size: 12px; padding: 7px 12px; }

  .wpx-done li { flex-wrap: wrap; padding: 12px; gap: 6px 10px; }
  .wpx-done__m { flex: 1 1 100%; text-align: left; font-size: 12px; }
  .wpx-steps { grid-template-columns: minmax(0, 1fr); }
  .wpx-side { display: flex; }

  .wpv-head { padding-top: 12px; gap: 12px; }
  .wpv-head .wpx-h1 { font-size: 28px; }
  .wpv-head .wpx-lead { font-size: 14px; }
  .wpv-head__acts { width: 100%; }
  .wpv-head__acts .wp-btn { flex: 1; justify-content: center; font-size: 14px; padding: 11px 12px; }
  .wpv-body { gap: 14px; padding-top: 12px; padding-bottom: 28px; }
  .wpv-search { padding: 8px; gap: 6px; }
  .wpv-field { padding: 7px 10px; }
  .wpv-field input, .wpv-field select { font-size: 14px; }
  .wpv-freq__chips { margin: 0 calc(var(--wp-gut) * -1); padding: 0 var(--wp-gut); }
  .wpv-freq .wp-chip { font-size: 12px; padding: 6px 10px; }
  .wpv-alert__pop { width: min(300px, calc(100vw - 2 * var(--wp-gut))); }
  .wpv-ride { flex-wrap: wrap; padding: 12px; gap: 10px; border-radius: 12px; }
  .wpv-ride__av { width: 36px; height: 36px; }
  .wpv-ride__body { flex: 1 1 calc(100% - 50px); }
  .wpv-ride__route { font-size: 16px; }
  .wpv-ride__facts { font-size: 12px; }
  .wpv-ride .wpx-req__acts { flex-direction: row; width: 100%; }
  .wpv-ride .wpx-req__go, .wpv-ride .wpx-req__msg { font-size: 12px; padding: 8px 12px; }
  .wpv-ride .wpx-req__go { flex: 1; }
  .wpv-empty { padding: 18px; }
  .wpv-empty__h { font-size: 19px; }
  .wpv-empty__p { font-size: 14px; }
  .wpv-empty .wp-btn { flex: 1 1 100%; justify-content: center; }
  .wpv-steps { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 18px; }
  .wpv-tips { grid-template-columns: minmax(0, 1fr); }
  .wpv-follow { justify-content: flex-start; }
  .wpa-kinds { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wpa-kind { padding: 12px 14px; }
  .wpa-kind p { display: none; }
  .wpa-search { grid-template-columns: 1fr 1fr; }
}
