/* Ride Club V4 : mise en page des pages publiques (univers clair). Les couleurs et composants viennent de v4.css. */
.v4-page { display: flex; flex-direction: column; min-height: 100vh; }
.v4-home { flex: 1; padding-bottom: 28px; }
.v4-choices { display: grid; gap: 12px; margin-top: 30px; }
.v4-choices .v4-btn { justify-content: space-between; text-align: left; }
.v4-code { margin-top: 26px; }
.v4-code .v4-label { margin-bottom: 2px; font-size: 1.125rem; font-weight: 900; }
.v4-code-hint { margin: 0 0 14px; }
.v4-terms { margin: 22px 0 0; }
.v4-footer { display: flex; flex-direction: column; gap: 6px; padding: 22px 0 28px; border-top: 1px solid var(--v4-rule); color: var(--v4-soft); font-size: .8125rem; font-weight: 700; }
.v4-footer p { margin: 0; color: var(--v4-ink); font-weight: 800; }
.v4-footer nav { display: flex; flex-wrap: wrap; gap: 0 18px; }
.v4-footer a { display: inline-flex; align-items: center; min-height: 44px; color: var(--v4-soft); text-decoration: none; }
.v4-footer a:hover { color: var(--v4-ink); text-decoration: underline; }
@media (min-width: 720px) {
  .v4-h1 { margin-top: 56px; }
  .v4-choices { grid-template-columns: 1fr 1fr; }
}

/* ---------- Landings (chauffeur et suivantes) ---------- */
.v4-landing main { padding-bottom: 12px; }
.v4-invite { display: inline-flex; align-items: center; min-height: 36px; margin: 22px 0 -10px; padding: 0 16px; border-radius: var(--v4-pill); background: var(--v4-cream); font-size: .9375rem; font-weight: 900; }
.v4-join { margin-top: 26px; }
.v4-join-row { display: grid; gap: 10px; }
.v4-join .v4-small { margin: 10px 0 0; }
.v4-join .join-status:empty { display: none; }
.v4-ask { display: flex; flex-wrap: wrap; gap: 0 20px; margin: 8px 0 0; }
.v4-ask a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 800; text-underline-offset: 3px; }
.v4-counter { margin: 14px 0 0; }
.v4-section { margin-top: 56px; }
.v4-section > .v4-h2 + * { margin-top: 16px; }
.v4-h3 { margin: 28px 0 0; font-size: 1.0625rem; font-weight: 900; }
.v4-lead--small { font-size: 1.0625rem; }
/* Simulateur */
.v4-sim { padding: 26px 22px; }
.v4-sim .v4-h2 label { cursor: pointer; }
.v4-sim-row { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.v4-sim-count { flex: none; min-width: 2.2ch; font-size: 2rem; font-weight: 900; text-align: right; }
.v4-range { --v4-fill: 21%; flex: 1; height: 44px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.v4-range::-webkit-slider-runnable-track { height: 10px; border-radius: var(--v4-pill); background: linear-gradient(to right, var(--v4-ink) var(--v4-fill), var(--v4-rule) var(--v4-fill)); }
.v4-range::-moz-range-track { height: 10px; border-radius: var(--v4-pill); background: var(--v4-rule); }
.v4-range::-moz-range-progress { height: 10px; border-radius: var(--v4-pill); background: var(--v4-ink); }
.v4-range::-webkit-slider-thumb { width: 30px; height: 30px; margin-top: -10px; border: 4px solid var(--v4-ink); border-radius: 50%; background: var(--v4-gold); -webkit-appearance: none; appearance: none; }
.v4-range::-moz-range-thumb { width: 22px; height: 22px; border: 4px solid var(--v4-ink); border-radius: 50%; background: var(--v4-gold); }
.v4-sim-result { margin: 10px 0 0; }
.v4-sim-result strong { font-size: clamp(3rem, 15vw, 4.5rem); font-weight: 900; line-height: 1; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; }
.v4-sim-result span { margin-left: 4px; font-size: 1.125rem; font-weight: 800; color: var(--v4-soft); }
.v4-sim .v4-small { margin: 12px 0 0; }
.v4-sim-warning { display: inline-flex; margin: 12px 0 0; padding: 6px 14px; border-radius: var(--v4-pill); background: var(--v4-paper); font-size: .875rem; font-weight: 900; }
/* Étapes */
.v4-steps { display: grid; gap: 14px; margin: 18px 0 0; padding: 0; list-style: none; counter-reset: none; }
.v4-steps li { display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: start; }
.v4-steps span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--v4-gold); font-size: 1.125rem; font-weight: 900; }
.v4-steps p { margin: 9px 0 0; font-size: 1.0625rem; font-weight: 800; line-height: 1.4; }
.v4-sample { display: grid; justify-items: center; gap: 10px; margin-top: 28px; text-align: center; }
/* Preuve sociale */
.v4-proof { padding-top: 28px; border-top: 1px solid var(--v4-rule); }
.v4-proof-figure { margin: 0; font-size: clamp(2rem, 9vw, 2.75rem); font-weight: 900; line-height: 1.05; letter-spacing: var(--v4-track-title); }
.v4-proof .v4-small { margin: 8px 0 0; }
.v4-quote { margin: 22px 0 0; padding: 0 0 0 18px; border-left: 4px solid var(--v4-gold); }
.v4-quote p { margin: 0; font-size: 1.0625rem; font-weight: 700; line-height: 1.5; }
.v4-quote strong { font-weight: 900; }
.v4-quote footer { margin-top: 10px; color: var(--v4-soft); font-size: .875rem; font-weight: 800; }
.v4-pitch { margin: 16px 0 0; }
.v4-pitch p { margin: 0; font-size: 1.125rem; font-weight: 800; line-height: 1.5; }
.v4-moments { display: grid; gap: 10px; margin: 14px 0 0; padding: 0; list-style: none; }
.v4-moments li { display: flex; align-items: center; min-height: 52px; padding: 0 20px; border: 1.5px solid var(--v4-rule); border-radius: var(--v4-pill); font-weight: 800; }
/* Questions (le script replie les réponses) */
.v4-faq { margin-top: 12px; border-top: 1px solid var(--v4-rule); }
.v4-faq .faq-item { border-bottom: 1px solid var(--v4-rule); }
.v4-faq .faq-heading { margin: 0; }
.v4-faq .faq-question { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 60px; padding: 12px 0; border: 0; background: none; color: var(--v4-ink); font: 800 1.0625rem/1.3 var(--v4-font); text-align: left; cursor: pointer; }
.v4-faq .faq-question::after { content: ""; flex: none; width: 10px; height: 10px; margin-right: 6px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg) translateY(-3px); transition: transform 200ms var(--v4-ease); }
.v4-faq .faq-question[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-3px); }
.v4-faq .faq-answer p { margin: 0 0 16px; color: var(--v4-soft); font-size: 1rem; font-weight: 700; line-height: 1.5; }
.v4-join-box { padding: 26px 22px; }
.v4-join-box .v4-join { margin-top: 14px; }
@media (min-width: 720px) {
  .v4-join-row { grid-template-columns: 1fr auto; }
  .v4-join-row .v4-btn { width: auto; }
}
.faq-ready.v4-faq .faq-answer, .v4-faq.faq-ready .faq-answer { display: grid; grid-template-rows: 0fr; opacity: 0; }
.v4-faq.faq-ready .faq-answer > div { min-height: 0; overflow: hidden; visibility: hidden; }
.v4-faq.faq-ready .faq-item.is-open .faq-answer { grid-template-rows: 1fr; opacity: 1; }
.v4-faq.faq-ready .faq-item.is-open .faq-answer > div { visibility: visible; }
@media (prefers-reduced-motion: no-preference) {
  .v4-faq.faq-ready .faq-answer { transition: grid-template-rows 250ms var(--v4-ease), opacity 250ms var(--v4-ease); }
  .v4-faq.faq-ready .faq-answer > div { transition: visibility 250ms; }
  .v4-faq.faq-still .faq-answer, .v4-faq.faq-still .faq-answer > div { transition: none; }
}

/* ---------- Page ouverte par le QR (passager) ---------- */
.v4-scan { flex: 1; padding-bottom: 28px; }
.v4-invitation { display: flex; align-items: center; gap: 14px; margin: 12px 0 0; padding: 12px 18px 12px 12px; border-radius: var(--v4-pill); background: var(--v4-cream); }
.v4-invitation strong { display: block; font-size: 1rem; font-weight: 900; }
.v4-invitation span span { color: var(--v4-soft); font-size: .875rem; font-weight: 700; }
.v4-face { display: grid; place-items: center; flex: none; width: 56px; height: 56px; border-radius: 50%; background: var(--v4-ink); color: var(--v4-paper); font-size: 1.375rem; font-weight: 900; object-fit: cover; }
.v4-scan .v4-h1 { margin-top: 22px; }
.v4-scan-ticket { margin-top: 24px; }
.v4-scan-ticket .promo-status:empty { display: none; }
.v4-scan-ticket .promo-status { margin: 10px 0 0; font-weight: 800; color: var(--v4-ink); }
.v4-scan .v4-steps { margin-top: 24px; }
.v4-steps small { display: block; margin-top: 4px; color: var(--v4-soft); font-size: .875rem; font-weight: 700; }
.v4-scan .passenger-cta { margin-top: 24px; }
.v4-later { margin-top: 14px; }
.v4-later summary { display: flex; align-items: center; justify-content: center; min-height: 48px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; list-style: none; cursor: pointer; }
.v4-later summary::-webkit-details-marker { display: none; }
.v4-later form { display: grid; gap: 10px; margin-top: 8px; }
.v4-later .offer-trap { position: absolute; left: -9999px; }
.promo-copy-buffer { position: fixed; top: -100px; opacity: 0; }

/* ---------- Offre entreprise et guides ---------- */
.v4-figures { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 18px 0 0; }
.v4-figures div { padding: 14px 12px; border-radius: var(--v4-radius-small); background: var(--v4-cream); }
.v4-figures dt { font-size: 1.5rem; font-weight: 900; letter-spacing: -0.02em; }
.v4-figures dd { margin: 4px 0 0; color: var(--v4-soft); font-size: .8125rem; font-weight: 700; line-height: 1.3; }
.v4-cta-block { margin-top: 22px; }
.v4-cta-block .v4-small { margin: 10px 0 0; }
.v4-benefits { display: grid; gap: 12px; margin: 16px 0 0; padding: 0; list-style: none; }
.v4-benefits li { padding: 18px 20px; border: 1.5px solid var(--v4-rule); border-radius: var(--v4-radius); }
.v4-benefits h3 { margin: 0; font-size: 1.0625rem; font-weight: 900; }
.v4-benefits p { margin: 6px 0 0; color: var(--v4-soft); font-weight: 700; line-height: 1.45; }
.v4-who { margin-top: 18px; }
.v4-guides { display: grid; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.v4-guide { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; padding: 0 22px; border-radius: var(--v4-pill); background: var(--v4-cream); font-weight: 800; text-decoration: none; }
.v4-guide svg { flex: none; }
.v4-join-box .v4-small { margin: 14px 0 0; }

/* ---------- Textes longs : guides, conditions, confidentialité, mentions légales ---------- */
.v4-article { flex: 1; max-width: 680px; padding-bottom: 40px; }
.v4-article .v4-lead { margin-bottom: 8px; }
.v4-article h2 { margin: 36px 0 0; font-size: 1.375rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; }
.v4-article h3 { margin: 24px 0 0; font-size: 1.0625rem; font-weight: 900; }
.v4-article p, .v4-article li { color: #2E2C27; font-size: 1.0625rem; font-weight: 600; line-height: 1.6; }
.v4-article p { margin: 12px 0 0; }
.v4-article ul, .v4-article ol { margin: 12px 0 0; padding-left: 1.25em; }
.v4-article li + li { margin-top: 6px; }
.v4-article a { font-weight: 800; text-underline-offset: 3px; }
.v4-article .v4-btn { text-decoration: none; }
.v4-article-cta { margin: 24px 0 0 !important; }
.v4-article .legal-date { margin-top: 18px; color: var(--v4-soft); font-size: .9375rem; }
.v4-article .v4-h1 { margin-top: 20px; }

/* ---------- Parcours passager V4 : numéro, code, offre ---------- */
.v4-step { margin-top: 24px; }
.v4-box.v4-step { display: grid; gap: 12px; }
.v4-box.v4-step .v4-label { margin: 0; }
.v4-box.v4-step .v4-small { margin: 0; }
.v4-check-line { display: flex; align-items: flex-start; gap: 12px; min-height: 44px; font-weight: 700; line-height: 1.4; cursor: pointer; }
.v4-check-line input { flex: none; width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--v4-ink); }
.v4-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--v4-ink); font: 800 .9375rem var(--v4-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.v4-scan .offer-trap { position: absolute; left: -9999px; }
.v4-siret { display: grid; gap: 10px; margin-top: 22px; }
.v4-siret .v4-label { margin: 0; }
.v4-siret-results { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.v4-siret-results li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--v4-radius-small); background: var(--v4-white); }
.v4-siret-text { display: grid; gap: 2px; min-width: 0; }
.v4-siret-text strong { font-weight: 900; overflow-wrap: anywhere; }
.v4-siret-text span { color: var(--v4-soft); font-size: .8125rem; font-weight: 700; }
.v4-scan [data-go] { margin-top: 22px; }
.v4-other { justify-content: center; margin-top: 10px; }

/* Lieu pro : son logo (sa photo de profil) en carré sur la page du QR */
.v4-face--logo { border-radius: 12px; object-fit: contain; background: #fff; }

.v4-profiles { margin-top: 14px; }
.v4-profiles a { color: inherit; font-weight: 800; }
.v4-kicker { margin: 0 0 10px; font-size: .8125rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--v4-soft); }
