/* v4.css */
/* Ride Club V4 : direction artistique tranchée par Victor le 17/10/2026 (docs/refonte-v4/DA-V4.md).
   Pages publiques claires et chaleureuses (piste C), code ENTREPRISE et QR en billet d'or (piste A),
   espace parrain sombre, arrondi, montants lisibles comme un panneau (piste B).
   Règles : aucun dégradé, aucune couleur posée sur une autre couleur, l'or en aplat avec du texte noir dessus. */

@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("/assets/fonts/nunito-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 600 900; font-display: swap; src: url("/assets/fonts/nunito-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* Barlow Condensed 800 (licence OFL, fonts/BARLOW-LICENCE.txt) : montants et statuts de l'espace parrain, rien d'autre. */
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-800.woff2") format("woff2"), url("/assets/fonts/barlow-condensed-800.ttf") format("truetype"); }

/* ---------- Tokens ---------- */
:root {
  --v4-gold: #C9A227;
  --v4-ink: #0D0E0C;
  /* Pages publiques */
  --v4-paper: #FFFDF8;
  --v4-cream: #F6EFD8;
  --v4-soft: #5C584E;
  --v4-rule: #D9D2BE;
  --v4-white: #FFFFFF;
  /* Espace parrain */
  --v4-night: #0D0E0C;
  --v4-surface: #1A1B18;
  --v4-text: #F4F1E8;
  --v4-text-soft: #A39F93;
  --v4-silver: #C3C6CB;
  --v4-night-rule: #2A2B27;
  /* Typographie */
  --v4-font: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --v4-figures: "Barlow Condensed", "Arial Narrow", "Nunito", sans-serif;
  --v4-track-title: -0.035em;
  /* Formes et rythme */
  --v4-pill: 999px;
  --v4-radius: 24px;
  --v4-radius-small: 16px;
  --v4-button: 62px;
  --v4-target: 44px;
  --v4-gutter: 20px;
  --v4-ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Univers clair (pages publiques) ---------- */
.v4-light { margin: 0; min-height: 100vh; color: var(--v4-ink); background: var(--v4-paper); font-family: var(--v4-font); font-weight: 600; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.v4-light *, .v4-dark * { box-sizing: border-box; }
.v4-light a { color: inherit; }
.v4-wrap { width: 100%; max-width: 560px; margin: 0 auto; padding: 0 var(--v4-gutter); }
.v4-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v4-skip { position: absolute; left: 12px; top: -60px; padding: 12px 18px; border-radius: var(--v4-pill); background: var(--v4-ink); color: var(--v4-paper); font-weight: 800; z-index: 10; }
.v4-skip:focus { top: 12px; }
:where(.v4-light, .v4-dark) :focus-visible { outline: 3px solid var(--v4-ink); outline-offset: 3px; }
.v4-dark :focus-visible { outline-color: var(--v4-gold); }

.v4-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 72px; }
.v4-top img { display: block; height: 30px; width: auto; }
.v4-top-link { display: inline-flex; align-items: center; white-space: nowrap; min-height: var(--v4-target); padding: 0 18px; border: 1.5px solid var(--v4-rule); border-radius: var(--v4-pill); font-size: .9375rem; font-weight: 800; text-decoration: none; }
.v4-top-link:hover { border-color: var(--v4-ink); }

.v4-h1 { margin: 28px 0 0; font-size: clamp(2.125rem, 9vw, 3.25rem); font-weight: 900; line-height: 1.02; letter-spacing: var(--v4-track-title); text-wrap: balance; }
.v4-h1 em { font-style: normal; display: inline-block; padding: 0 .16em; border-radius: 12px; background: var(--v4-gold); color: var(--v4-ink); }
.v4-lead { margin: 18px 0 0; color: var(--v4-soft); font-size: 1.125rem; font-weight: 700; line-height: 1.45; text-wrap: pretty; }
.v4-h2 { margin: 0; font-size: 1.375rem; font-weight: 900; line-height: 1.15; letter-spacing: -0.02em; }
.v4-small { color: var(--v4-soft); font-size: .8125rem; font-weight: 700; line-height: 1.45; }

/* ---------- Boutons (62 px, en pilule) ---------- */
.v4-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: var(--v4-button); padding: 0 26px; border: 0; border-radius: var(--v4-pill); font: 900 1.0625rem/1.15 var(--v4-font); letter-spacing: -0.01em; text-align: center; text-decoration: none; cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform 100ms ease-out, background-color 160ms ease; }
.v4-btn:active { transform: scale(.97); }
.v4-btn svg { flex: none; width: 22px; height: 22px; }
.v4-btn--primary { background: var(--v4-gold); color: var(--v4-ink); }
.v4-btn--secondary { background: var(--v4-cream); color: var(--v4-ink); }
.v4-btn--ink { background: var(--v4-ink); color: var(--v4-gold); }
.v4-btn--ghost { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px var(--v4-rule); }
.v4-dark .v4-btn--ghost { box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .28); }
.v4-btn--small { width: auto; min-height: var(--v4-target); padding: 0 18px; font-size: .9375rem; }
.v4-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* ---------- Champs (pilule blanche, focus encre 2,5 px) ---------- */
.v4-label { display: block; margin: 0 0 8px; font-size: .9375rem; font-weight: 800; }
.v4-input { width: 100%; min-height: 58px; padding: 0 22px; border: 1.5px solid var(--v4-soft); border-radius: var(--v4-pill); background: var(--v4-white); color: var(--v4-ink); font: 800 1.0625rem var(--v4-font); outline: none; transition: border-color 140ms ease, box-shadow 140ms ease; }
/* Audit X4 : la bordure d'un champ se voit (contraste 7:1 au lieu de 1,5:1), le texte d'exemple se lit (5:1). */
.v4-input::placeholder { color: #6F6A5E; font-weight: 700; }
.v4-input:focus { border-color: var(--v4-ink); box-shadow: 0 0 0 1px var(--v4-ink); }
.v4-input--code { text-transform: uppercase; letter-spacing: .14em; font-weight: 900; }
.v4-field-row { display: flex; gap: 10px; }
.v4-field-row .v4-input { flex: 1; min-width: 0; }
.v4-field-row .v4-btn { width: auto; flex: none; }
.v4-error { margin: 8px 0 0; color: #8A1C12; font-size: .875rem; font-weight: 800; }

/* ---------- Encadrés crème ---------- */
.v4-box { padding: 22px; border-radius: var(--v4-radius); background: var(--v4-cream); }

/* ---------- Billet d'or : code ENTREPRISE (horizontal) et QR (vertical) ---------- */
.v4-ticket { --notch: 22px; position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 100%; align-items: center; gap: 0; border-radius: var(--v4-radius); background: var(--v4-gold); color: var(--v4-ink); isolation: isolate; }
/* Découpes rondes de chaque côté de la perforation, de la couleur du fond de la page. */
.v4-ticket::before, .v4-ticket::after { content: ""; position: absolute; top: calc(50% - var(--notch) / 2); width: var(--notch); height: var(--notch); border-radius: 50%; background: var(--v4-ticket-hole, var(--v4-paper)); }
.v4-ticket::before { left: calc(var(--notch) / -2); }
.v4-ticket::after { right: calc(var(--notch) / -2); }
.v4-ticket-main { min-width: 0; padding: 20px 14px 20px 24px; }
.v4-ticket-kicker { margin: 0; font-size: .75rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.v4-ticket-code { margin: 4px 0 0; overflow-wrap: anywhere; font-size: clamp(1.5rem, 7.4vw, 2.5rem); font-weight: 900; line-height: 1; letter-spacing: .01em; }
.v4-ticket-serial { margin: 8px 0 0; font-size: .75rem; font-weight: 800; letter-spacing: .08em; opacity: .78; }
.v4-ticket-stub { display: flex; align-items: center; height: 100%; padding: 16px calc(var(--notch) / 2 + 12px) 16px 14px; border-left: 2px dashed rgba(13, 14, 12, .42); }
.v4-copy { min-height: var(--v4-target); padding: 0 16px; white-space: nowrap; border: 0; border-radius: var(--v4-pill); background: var(--v4-ink); color: var(--v4-gold); font: 900 .9375rem var(--v4-font); cursor: pointer; }
.v4-copy:active { transform: scale(.96); }
/* QR : même billet en vertical, perforation horizontale, plaque claire sous le QR pour que le scan marche. */
.v4-ticket--qr { --notch: 26px; grid-template-columns: 1fr; justify-items: center; width: min(100%, 340px); margin: 0 auto; padding: 24px 22px 0; text-align: center; }
.v4-ticket--qr::before, .v4-ticket--qr::after { top: auto; bottom: 94px; }
.v4-qr-plate { padding: 14px; border-radius: 18px; background: var(--v4-white); }
.v4-qr-plate img, .v4-qr-plate svg { display: block; width: 100%; max-width: 236px; height: auto; }
.v4-ticket--qr .v4-ticket-stub { flex-direction: column; justify-content: center; width: 100%; height: 108px; margin-top: 20px; padding: 0 16px; border-left: 0; border-top: 2px dashed rgba(13, 14, 12, .42); }
.v4-qr-claim { margin: 0; font-size: 1.375rem; font-weight: 900; letter-spacing: -0.02em; }
.v4-qr-name { margin: 2px 0 0; font-size: .9375rem; font-weight: 800; }

/* ---------- Pastilles de statut client ---------- */
.v4-pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 12px; border-radius: var(--v4-pill); font: 800 .8125rem/1 var(--v4-figures); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.v4-pill--validated { border: 1.5px solid currentColor; }
.v4-pill--paid { background: var(--v4-text); color: var(--v4-ink); }
.v4-pill--sent { background: var(--v4-gold); color: var(--v4-ink); }
.v4-pill--signed { border: 1.5px dashed currentColor; }
.v4-light .v4-pill--paid { background: var(--v4-cream); }

/* ---------- Jeton (médaille du rang) ---------- */
.v4-token { --metal: var(--v4-gold); position: relative; display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 50%; background: var(--metal); color: var(--v4-ink); }
.v4-token::before { content: ""; position: absolute; inset: 5px; border: 2px dashed rgba(13, 14, 12, .45); border-radius: 50%; }
.v4-token-count { position: relative; font: 800 1.625rem/1 var(--v4-figures); letter-spacing: .01em; }
.v4-token-stripes { position: absolute; bottom: -6px; display: flex; gap: 3px; }
.v4-token-stripes i { width: 7px; height: 14px; border-radius: 2px; background: var(--metal); box-shadow: 0 0 0 2px var(--v4-surface); }
.v4-token--argent { --metal: var(--v4-silver); }
.v4-token--bronze { --metal: #B07A4A; }
.v4-token--recrue, .v4-token--lance { --metal: #6E6A60; }

/* ---------- Univers sombre (espace parrain) ---------- */
.v4-dark { color: var(--v4-text); background: var(--v4-night); font-family: var(--v4-font); font-weight: 700; --v4-ticket-hole: var(--v4-night); }
.v4-space { display: flex; flex-direction: column; gap: 22px; width: 100%; max-width: 560px; margin: 0 auto; padding: 18px var(--v4-gutter) 128px; }
.v4-hello { margin: 0; font-size: 1.75rem; font-weight: 900; letter-spacing: var(--v4-track-title); }
.v4-hero-label { margin: 0; color: var(--v4-text-soft); font-size: .9375rem; font-weight: 800; }
.v4-hero { margin: 2px 0 0; color: var(--v4-gold); font: 800 clamp(4rem, 21vw, 5.25rem)/.92 var(--v4-figures); letter-spacing: -0.005em; font-variant-numeric: tabular-nums; }
.v4-hero-note { margin: 8px 0 0; color: var(--v4-text-soft); font-size: .875rem; font-weight: 700; }
.v4-lines { margin: 0; padding: 0; list-style: none; }
.v4-lines li { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; min-height: 52px; padding: 12px 0; border-top: 1px solid var(--v4-night-rule); }
.v4-lines li:last-child { border-bottom: 1px solid var(--v4-night-rule); }
.v4-lines span { color: var(--v4-text-soft); font-size: 1rem; font-weight: 800; }
.v4-lines strong { font: 800 1.75rem/1 var(--v4-figures); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.v4-card { padding: 20px; border-radius: var(--v4-radius); background: var(--v4-surface); }
.v4-card-title { margin: 0; font-size: 1.0625rem; font-weight: 900; letter-spacing: -0.01em; }
.v4-rank { display: flex; align-items: center; gap: 16px; width: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.v4-rank-body { flex: 1; min-width: 0; }
.v4-rank-name { margin: 0; font-size: 1.25rem; font-weight: 900; }
.v4-progress { display: block; width: 100%; height: 10px; margin: 10px 0 8px; }
.v4-progress-track { fill: var(--v4-night); }
.v4-progress-fill { fill: var(--v4-gold); }
.v4-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.v4-rank-next { margin: 0; color: var(--v4-text-soft); font-size: .875rem; font-weight: 800; }
.v4-clients { margin: 8px 0 0; padding: 0; list-style: none; }
.v4-clients li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; border-top: 1px solid var(--v4-night-rule); }
.v4-client-who { min-width: 0; }
.v4-client-who strong { display: block; font-size: 1rem; font-weight: 900; }
.v4-client-who small { color: var(--v4-text-soft); font-size: .8125rem; font-weight: 700; }
.v4-empty { margin: 8px 0 0; color: var(--v4-text-soft); font-size: .9375rem; font-weight: 700; }
.v4-text-link { display: inline-flex; align-items: center; min-height: var(--v4-target); padding: 0; border: 0; background: none; color: var(--v4-gold); font: 900 .9375rem var(--v4-font); cursor: pointer; text-decoration: none; }

/* Barre d'onglets flottante, en pilule ; l'onglet actif est une pilule or. */
.v4-tabbar { position: fixed; left: 50%; bottom: max(14px, env(safe-area-inset-bottom)); z-index: 40; display: flex; gap: 2px; width: min(calc(100% - 24px), 520px); padding: 6px; border-radius: var(--v4-pill); background: var(--v4-surface); box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px var(--v4-night-rule); transform: translateX(-50%); }
.v4-tab { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; padding: 0 2px; border: 0; border-radius: var(--v4-pill); background: none; color: var(--v4-text-soft); font: 800 .6875rem var(--v4-font); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.v4-tab svg { width: 22px; height: 22px; }
.v4-tab[aria-current="page"] { background: var(--v4-gold); color: var(--v4-ink); }

@media (prefers-reduced-motion: reduce) {
  .v4-btn, .v4-copy, .v4-input { transition: none; }
  .v4-btn:active, .v4-copy:active { transform: none; }
}
@media (prefers-contrast: more) {
  .v4-input { border-color: var(--v4-ink); }
  .v4-lines li, .v4-clients li { border-color: var(--v4-text-soft); }
}
.v4-light .sr-only, .v4-dark .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.v4-nowrap { white-space: nowrap; }
/* Un élément marqué hidden reste caché, quel que soit son affichage (grilles des formulaires, étapes du code). */
.v4-light [hidden], .v4-dark [hidden] { display: none !important; }
/* Jetons : tailles (liste, écran des rangs, fête) et métaux à plat. L'argent #C3C6CB est réservé au rang Argent. */
.v4-token--s { width: 56px; height: 56px; }
.v4-token--s .v4-token-count { font-size: 1.375rem; }
.v4-token--m { width: 76px; height: 76px; }
.v4-token--m .v4-token-count { font-size: 1.875rem; }
.v4-token--l { width: 110px; height: 110px; }
.v4-token--l .v4-token-count { font-size: 2.75rem; }
.v4-token--l::before { inset: 8px; border-width: 3px; }
.v4-token--xl { width: 150px; height: 150px; }
.v4-token--xl .v4-token-count { font-size: 3.75rem; }
.v4-token--xl::before { inset: 10px; border-width: 3px; }
.v4-token--l .v4-token-stripes i, .v4-token--xl .v4-token-stripes i { width: 10px; height: 20px; }
.v4-token--or, .v4-token--platine, .v4-token--saphir, .v4-token--diamant, .v4-token--elite, .v4-token--legende { --metal: var(--v4-gold); }
.v4-token--long .v4-token-count { font-size: .78em; letter-spacing: -0.02em; }
.v4-token--s.v4-token--long .v4-token-count { font-size: 1.0625rem; }
.v4-token--m.v4-token--long .v4-token-count { font-size: 1.375rem; }

/* « Tes résultats » : le parcours chiffré du parrain (ParrainStats, 18/10/2026). */
.v4-stats { display: grid; gap: 14px; }
.v4-stats-periods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.v4-stats-period { min-height: var(--v4-target); padding: 0 6px; white-space: nowrap; border: 1px solid var(--v4-night-rule); border-radius: var(--v4-pill); background: none; color: var(--v4-text-soft); font: 800 .875rem var(--v4-font); cursor: pointer; }
.v4-stats-period[aria-pressed="true"] { border-color: var(--v4-gold); background: var(--v4-gold); color: var(--v4-ink); }
.v4-stats-scans { margin: 0; color: var(--v4-text-soft); font-size: .9375rem; font-weight: 800; }
.v4-stats-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.v4-stats-steps li { display: grid; gap: 6px; }
.v4-stats-label { display: flex; justify-content: space-between; gap: 12px; font-size: .9375rem; font-weight: 700; }
.v4-stats-label strong { font-weight: 900; font-variant-numeric: tabular-nums; }
.v4-stats-steps small, .v4-stats-overall small, .v4-stats-days figcaption { color: var(--v4-text-soft); font-size: .8125rem; font-weight: 700; }
.v4-stats-bar { display: block; width: 100%; height: 8px; }
.v4-stats-track { fill: var(--v4-night-rule); }
.v4-stats-fill { fill: var(--v4-gold); }
.v4-stats-overall { display: grid; gap: 2px; margin: 0; padding-top: 12px; border-top: 1px solid var(--v4-night-rule); }
.v4-stats-overall span { color: var(--v4-text-soft); font-size: .9375rem; font-weight: 800; }
.v4-stats-overall strong { color: var(--v4-gold); font-size: 2rem; font-weight: 900; line-height: 1.1; }
.v4-stats-note { margin: 0; color: var(--v4-text-soft); font-size: .9375rem; font-weight: 700; }
.v4-stats-days { margin: 0; display: grid; gap: 4px; }
.v4-stats-days svg { display: block; width: 100%; height: 56px; }
.v4-stats-tips { display: grid; gap: 8px; margin: 0; padding: 12px 14px; border-radius: var(--v4-radius-small); background: var(--v4-night-rule); list-style: none; font-size: .9375rem; font-weight: 700; }

/* Argent « en route » : 1re course faite, Bolt pas encore payé (19/10/2026). */
.v4-enroute { margin-top: 14px; padding: 16px; border: 2px solid var(--v4-gold); border-radius: var(--v4-radius); background: rgba(201, 162, 39, .08); }
.v4-enroute-amount { margin: 0; color: var(--v4-gold); font: 800 2.25rem/1 var(--v4-figures); }
.v4-enroute-amount span { font: 900 1rem var(--v4-font); color: var(--v4-text); }
.v4-enroute-text { margin: 8px 0 12px; color: var(--v4-text); font-size: .9375rem; font-weight: 700; }
.v4-enroute-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 0; padding: 0; list-style: none; }
.v4-enroute-steps li { display: grid; gap: 6px; color: var(--v4-text-soft); font-size: .8125rem; font-weight: 800; }
.v4-enroute-steps i { display: block; height: 6px; border-radius: 3px; background: var(--v4-night-rule); }
.v4-enroute-steps li.is-done { color: var(--v4-gold); }
.v4-enroute-steps li.is-done i { background: var(--v4-gold); }

/* Le rang en jeu : échelle de paliers visible dès l'accueil. */
.v4-rank-card { display: grid; gap: 14px; }
.v4-rank-now { display: flex; align-items: center; gap: 16px; }
.v4-rank-count { margin: 0; color: var(--v4-text-soft); font-size: .875rem; font-weight: 800; }
.v4-rank-unlock { margin: 6px 0 0; font-size: .9375rem; font-weight: 700; }
.v4-rank-unlock strong { color: var(--v4-gold); }
.v4-gold-text { color: var(--v4-gold); }
.v4-progress-enroute { fill: rgba(201, 162, 39, .38); }
.v4-ladder { display: flex; gap: 10px; margin: 0; padding: 4px 2px 8px; overflow-x: auto; list-style: none; scroll-snap-type: x proximity; }
.v4-ladder-step { flex: none; display: grid; justify-items: center; gap: 6px; width: 76px; scroll-snap-align: start; text-align: center; }
.v4-ladder-step .v4-token { width: 52px; height: 52px; }
.v4-ladder-step .v4-token-count { font-size: 1.25rem; }
.v4-ladder-name { font-size: .8125rem; font-weight: 900; }
.v4-ladder-need { color: var(--v4-text-soft); font-size: .75rem; font-weight: 700; }
/* Audit R37 : un rang verrouillé reste lisible (contraste 4,5:1 au moins) ; c'est l'insigne grisé et son cadenas qui disent « pas encore ». */
.v4-ladder-step.is-locked .v4-ladder-name { color: var(--v4-text-soft); }
.v4-ladder-step.is-current .v4-token { box-shadow: 0 0 0 3px var(--v4-surface), 0 0 0 6px var(--v4-gold); }
.v4-ladder-step.is-next .v4-token { box-shadow: 0 0 0 3px var(--v4-surface), 0 0 0 5px var(--v4-text-soft); }
@media (prefers-reduced-motion: no-preference) {
  .v4-ladder-step.is-next .v4-token { animation: v4-next-pulse 2.4s ease-in-out infinite; }
  @keyframes v4-next-pulse { 50% { box-shadow: 0 0 0 3px var(--v4-surface), 0 0 0 8px rgba(201, 162, 39, .55); } }
}

/* Cascade de l'argent (audit R1) : une barre, quatre parts, du plus lointain au plus concret. Or à plat, jamais de dégradé. */
.v4-cascade { display: block; width: 100%; height: 12px; margin-top: 16px; border-radius: 6px; overflow: hidden; background: var(--v4-night-rule); }
.v4-cascade--waiting { fill: #6E5A1C; background: #6E5A1C; }
.v4-cascade--available { fill: var(--v4-gold); background: var(--v4-gold); }
.v4-cascade--withdrawing { fill: #E3C766; background: #E3C766; }
.v4-cascade--paid { fill: #F3EFE3; background: #F3EFE3; }
.v4-dot { display: inline-block; width: 10px; height: 10px; margin-right: 8px; border-radius: 50%; vertical-align: baseline; }
.v4-lines span small { display: block; margin-top: 4px; font-size: .8125rem; font-weight: 700; line-height: 1.35; }

/* v4-public.css */
/* 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; }
/* Audit S9 : deux groupes de liens au-dessus des informations. */
.v4-footer-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 10px; }
.v4-footer-groups nav { flex-direction: column; align-items: flex-start; }
.v4-footer-groups a { min-height: 44px; }
.v4-footer .v4-footer-title { margin: 0; color: var(--v4-ink); font-size: .75rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
@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); }

/* Page passager, audit du 19/10/2026 : marque discrète, réassurance, sortie sans numéro, SIREN choisi. */
.v4-brandline { margin: 14px 0 0; font-size: .8125rem; color: var(--v4-soft); letter-spacing: .02em; }
.v4-brandline strong { color: var(--v4-ink); font-weight: 900; }
.v4-reassure { margin-top: 6px; }
.v4-skip-number { display: inline-block; margin-top: 10px; font-size: .875rem; }
.v4-scan .passenger-cta { margin-top: 14px; width: 100%; }
.v4-siren-picked { margin-top: 12px; padding: 12px 14px; border-radius: 12px; background: var(--v4-cream); }
.v4-siren-picked p { margin: 0; }
.v4-siren-number { font-size: 1.125rem; letter-spacing: .04em; font-variant-numeric: tabular-nums; }
.v4-siret-results:empty { display: none; }
.v4-siren-number { white-space: nowrap; }
.v4-step-nav { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.v4-step-nav a { display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; border-radius: 999px; background: var(--v4-cream); font-weight: 800; }
.tutorial .v4-scan-ticket { margin-top: 18px; }
.v4-steps li[id] { scroll-margin-top: 16px; }
/* Machine de contenu (S15) : fil d'Ariane, signature, « À lire aussi », index des guides */
.v4-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 0; padding: 0; list-style: none; color: var(--v4-soft); font-size: .875rem; font-weight: 700; }
.v4-breadcrumb li + li::before { content: "›"; margin-right: 6px; }
.v4-breadcrumb a { color: inherit; font-weight: 700; }
.v4-article .v4-breadcrumb + .v4-h1 { margin-top: 12px; }
.v4-byline { margin-top: 10px !important; color: var(--v4-soft); }
.v4-related { margin-top: 40px; }
.v4-related h2 { margin-top: 0; }
.v4-guides-group h2 { margin-top: 32px; }
.v4-guides--index .v4-guide { min-height: 0; padding: 14px 22px; border-radius: 18px; }
.v4-guides--index .v4-guide span { display: flex; flex-direction: column; gap: 4px; }
.v4-guides--index .v4-guide small { color: #4A473F; font-size: .9375rem; font-weight: 600; line-height: 1.45; }
.v4-article .v4-guides { padding-left: 0; }
.v4-article .v4-guides li + li { margin-top: 0; }
/* Articles enrichis : résumé « En bref », sommaire, tableaux, sources */
.v4-tldr { margin-top: 28px; padding: 20px 22px; border-radius: 18px; background: var(--v4-cream); }
.v4-tldr h2 { margin-top: 0 !important; font-size: 1.125rem !important; }
.v4-tldr ul { margin-top: 10px; }
.v4-toc { margin-top: 24px; padding: 16px 22px; border: 1.5px solid #E7E1D2; border-radius: 18px; }
.v4-toc-title { margin: 0 !important; font-size: .875rem !important; font-weight: 900 !important; text-transform: uppercase; letter-spacing: .06em; color: var(--v4-soft) !important; }
.v4-toc ol { margin-top: 8px; }
.v4-toc li { font-size: 1rem !important; }
.v4-article h2[id] { scroll-margin-top: 24px; }
.v4-table { margin-top: 16px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.v4-table table { width: 100%; border-collapse: collapse; font-size: .9375rem; }
.v4-table table:has(th:nth-child(3)) { min-width: 520px; }
.v4-table th, .v4-table td { padding: 10px 12px; border-bottom: 1px solid #E7E1D2; text-align: left; vertical-align: top; line-height: 1.45; }
.v4-table th { font-weight: 900; background: var(--v4-cream); }
.v4-sources ol li, .v4-sources p { font-size: .9375rem !important; }
.v4-sources a { font-weight: 700; overflow-wrap: anywhere; }
/* Appels à rejoindre Ride Club dans les articles (ContentCta, 19/10/2026) : une ligne en haut, une carte claire au milieu, une carte sombre à la fin. */
.v4-article .v4-cta-line { margin-top: 16px; padding: 2px 0 2px 14px; border-left: 3px solid var(--v4-gold); font-size: .9375rem; line-height: 1.5; }
.v4-cta-card { margin-top: 36px; padding: 24px 22px; border-radius: var(--v4-radius); }
.v4-cta-card--middle { background: var(--v4-white); box-shadow: inset 0 0 0 1.5px var(--v4-rule); }
.v4-cta-card--end { background: var(--v4-ink); }
.v4-article .v4-cta-card p { margin: 0; }
.v4-article .v4-cta-kicker { font-size: .8125rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: var(--v4-soft); }
.v4-article .v4-cta-title { margin-top: 6px; color: var(--v4-ink); font-size: 1.375rem; font-weight: 900; line-height: 1.2; letter-spacing: -0.02em; }
.v4-article .v4-cta-text { margin-top: 8px; }
.v4-article .v4-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 18px; margin-top: 18px; }
.v4-cta-actions .v4-btn { width: auto; flex: 1 1 260px; }
.v4-article .v4-cta-second { display: inline-flex; align-items: center; min-height: var(--v4-target); color: inherit; }
.v4-article .v4-cta-card--end .v4-cta-kicker { color: var(--v4-text-soft); }
.v4-article .v4-cta-card--end .v4-cta-title, .v4-article .v4-cta-card--end .v4-cta-text, .v4-article .v4-cta-card--end .v4-cta-second { color: var(--v4-text); }
@media (max-width: 520px) { .v4-cta-actions .v4-btn { flex-basis: 100%; } .v4-article .v4-cta-second { width: 100%; justify-content: center; } }

/* film/film.css */
/* Films stop motion Ride Club : la scène garde le format vertical 9:16, quelle que soit la largeur. */
/* Audit S5 : la place du film (9:16) est réservée avant son chargement : la page ne saute pas quand il apparaît. */
.film { margin: 0 auto; position: relative; width: min(100%, 360px); aspect-ratio: 9 / 16; border-radius: 22px; background: #0D0E0C; }
.film-stage { aspect-ratio: 9 / 16; width: 100%; border-radius: 22px; overflow: hidden; background: #0D0E0C; }
.film-stage svg { display: block; width: 100%; height: 100%; }
.film-toggle { position: absolute; right: 12px; bottom: 12px; min-height: 36px; padding: 0 14px; border: 0; border-radius: 18px; background: #0D0E0Ccc; color: #F6EFD8; font: 800 .8125rem Nunito, sans-serif; cursor: pointer; }
.film-sheet { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; background: #222; padding: 6px; }
.film-sheet figure { margin: 0; color: #ccc; font: 12px sans-serif; }
.film-sheet svg { width: 100%; height: auto; display: block; }
.film-preview { display: flex; gap: 24px; flex-wrap: wrap; padding: 24px; background: #333; font-family: Nunito, sans-serif; color: #eee; }
.v4-film .v4-h2 { text-align: center; }
.film-toggle:focus-visible { outline: 3px solid #C9A227; outline-offset: 2px; }

/* v4-skin.css */
/* Ride Club V4 : passe les feuilles d'avant (access.css, espace partenaire…) à la direction artistique V4.
   Chargée en dernier sur chaque page publique (PublicPage::head). Les anciennes variables pointent vers les tokens V4. */
.v4-light {
  --ink: var(--v4-ink);
  --muted: var(--v4-soft);
  --border: var(--v4-rule);
  --border-strong: var(--v4-rule);
  --paper: var(--v4-white);
  --brand: var(--v4-gold);
  --brand-deep: var(--v4-gold);
  --brand-tint: var(--v4-cream);
  --dark: var(--v4-ink);
  --dark-raised: #26271F;
  --on-dark: var(--v4-paper);
  --radius: var(--v4-radius-small);
  --gutter: var(--v4-gutter);
  --ease: var(--v4-ease);
}

/* ---------- Pages d'accès : connexion, code, inscription, profil ---------- */
.v4-light .access-main { flex: 1; width: 100%; max-width: 560px; margin: 0; padding: 28px 0 40px; }
.v4-light .access-main h1 { margin: 0; font-size: clamp(2.125rem, 9vw, 2.75rem); font-weight: 900; line-height: 1.04; letter-spacing: var(--v4-track-title); }
.v4-light .access-lead { margin: 14px 0 0; color: var(--v4-soft); font-size: 1.125rem; font-weight: 700; line-height: 1.45; }
.v4-light .join-form { display: grid; gap: 10px; margin-top: 24px; }
.v4-light .join-label { display: block; font-size: .9375rem; font-weight: 800; }
.v4-light .join-row { display: grid; gap: 10px; }
.v4-light .join-row input, .v4-light .form-field input, .v4-light .code-input {
  width: 100%; min-height: 58px; padding: 0 22px; border: 1.5px solid var(--v4-soft); border-radius: var(--v4-pill); background: var(--v4-white);
  color: var(--v4-ink); font: 800 1.0625rem var(--v4-font); outline: none;
}
.v4-light .join-row input:focus, .v4-light .form-field input:focus, .v4-light .code-input:focus { border-color: var(--v4-ink); box-shadow: 0 0 0 1px var(--v4-ink); outline: none; }
.v4-light .code-input { min-height: 72px; font-size: 2rem; font-weight: 900; letter-spacing: .3em; text-align: center; }
.v4-light .join-button, .v4-light .access-button {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: var(--v4-button); margin: 0; padding: 0 26px; border: 0; border-radius: var(--v4-pill);
  background: var(--v4-gold); color: var(--v4-ink); font: 900 1.0625rem var(--v4-font); cursor: pointer; transform: none; transition: transform 100ms ease-out;
}
.v4-light .access-button { margin-top: 8px; }
.v4-light .join-button:active, .v4-light .access-button:active { transform: scale(.97); }
.v4-light .access-button:hover, .v4-light .join-button:hover { background: var(--v4-gold); transform: none; }
.v4-light .access-button-quiet { background: var(--v4-ink); color: var(--v4-gold); }
.v4-light .access-button-quiet:hover { background: var(--v4-ink); }
.v4-light .join-status { margin: 0; color: var(--v4-ink); font-size: .9375rem; font-weight: 800; }
.v4-light .join-status:empty { display: none; }
.v4-light .access .join-form.is-sent .join-status, .v4-light.access .join-form.is-sent .join-status { color: var(--v4-ink); }
.v4-light .access-aside { color: var(--v4-soft); font-weight: 700; }
.v4-light .access-aside a, .v4-light .access-main a { color: var(--v4-ink); font-weight: 800; text-underline-offset: 3px; }
.v4-light .code-link { color: var(--v4-ink); font-weight: 800; }
.v4-light .admin-login { border-top-color: var(--v4-rule); }
.v4-light .form-alert { border-radius: var(--v4-radius-small); }
.v4-light .access-form { gap: 18px; }
.v4-light .form-field label, .v4-light .choice-field legend { font-size: .9375rem; font-weight: 800; }
.v4-light .field-help { color: var(--v4-soft); font-weight: 700; }
.v4-light .company-card { padding: 16px 20px; border-radius: var(--v4-radius); background: var(--v4-cream); color: var(--v4-ink); }
.v4-light .company-card strong { color: var(--v4-ink); font-weight: 900; }
.v4-light .choice-option, .v4-light .consent { align-items: center; min-height: 58px; padding: 14px 20px; border: 1.5px solid var(--v4-rule); border-radius: var(--v4-radius); background: var(--v4-white); font-weight: 700; }
.v4-light .choice-option:has(input:checked) { border-color: var(--v4-ink); background: var(--v4-cream); }
.v4-light .choice-option input, .v4-light .consent input { accent-color: var(--v4-ink); }
.v4-light .consent-highlight { border-color: transparent; background: var(--v4-cream); }
.v4-light .access-email { color: var(--v4-soft); font-weight: 700; }
@media (min-width: 720px) {
  .v4-light .join-row { grid-template-columns: 1fr auto; }
  .v4-light .join-row .join-button { width: auto; }
}
.v4-light .code-link:disabled { color: var(--v4-soft); text-decoration: none; }
.v4-light main img { max-width: 100%; height: auto; }

/* ---------- Formulaire Partenaires ---------- */
.v4-light .pa-form { display: grid; gap: 16px; margin-top: 18px; }
.v4-light .pa-grid { display: grid; gap: 16px; }
.v4-light .pa-field { display: grid; gap: 8px; }
.v4-light .pa-label { font-size: .9375rem; font-weight: 800; }
.v4-light .pa-input { width: 100%; min-height: 58px; padding: 0 22px; border: 1.5px solid var(--v4-soft); border-radius: var(--v4-pill); background: var(--v4-white); color: var(--v4-ink); font: 800 1.0625rem var(--v4-font); outline: none; }
.v4-light select.pa-input { -webkit-appearance: none; appearance: none; }
.v4-light .pa-textarea { min-height: 110px; padding: 16px 22px; border-radius: var(--v4-radius); resize: vertical; }
.v4-light .pa-input:focus { border-color: var(--v4-ink); box-shadow: 0 0 0 1px var(--v4-ink); }
.v4-light .pa-input[aria-invalid="true"] { border-color: #8A1C12; }
.v4-light .pa-hint { margin: 0; color: var(--v4-soft); font-size: .8125rem; font-weight: 700; }
.v4-light .pa-trap { position: absolute; left: -9999px; }
.v4-light .pa-consent { display: flex; gap: 12px; align-items: flex-start; padding: 14px 18px; border-radius: var(--v4-radius); background: var(--v4-white); font-weight: 700; line-height: 1.45; }
.v4-light .pa-consent input { flex: none; width: 22px; height: 22px; margin-top: 1px; accent-color: var(--v4-ink); }
.v4-light .pa-status { margin: 0; color: #8A1C12; font-weight: 800; }
.v4-light .pa-status:empty { display: none; }
.v4-light .pa-done { margin-top: 18px; padding: 20px; border-radius: var(--v4-radius); background: var(--v4-white); }
.v4-light .pa-done h3 { margin: 0; font-size: 1.125rem; font-weight: 900; }
.v4-example { margin-top: 22px; padding: 20px 22px; }
.v4-example p { margin: 6px 0 0; font-weight: 700; line-height: 1.45; }
.v4-example .v4-label { margin: 0; }
@media (min-width: 720px) { .v4-light .pa-grid { grid-template-columns: 1fr 1fr; } }

