/* Ride Club : pages publiques. Couleurs du logo : noir profond, blanc, or. */
/* Nunito : la police du logo et du kit, pour les titres et les boutons. Le texte courant reste en police système. */
@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; }
:root {
  color-scheme: light;
  --brand: #c9a227;
  --brand-deep: #b08d1f;
  --brand-tint: #f6efd8;
  --on-brand-muted: #3d3208;
  --ink: #0d0e0c;
  --dark: #0d0e0c;
  --dark-raised: #262724;
  --on-dark: #ffffff;
  --on-dark-muted: #b9bbb6;
  --paper: #ffffff;
  --muted: #5d5f5b;
  --border: #dcdcd8;
  --radius: 12px;
  --gutter: clamp(20px, 5vw, 56px);
  --ease: cubic-bezier(.22, 1, .36, 1);
  --display: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  font-size: 16px;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-width: 320px; }
body { display: flex; flex-direction: column; min-height: 100dvh; margin: 0; color: var(--ink); background: var(--paper); font-size: 1rem; line-height: 1.55; }
a { color: inherit; text-underline-offset: 4px; }
button { font: inherit; }
svg { flex-shrink: 0; }
h1 { margin: 0; text-wrap: balance; }
h1, h2, h3, .home-subtitle, .choice-label, .promo-value, .passenger-cta, .access-button, .join-button, .tier-amount, .punchline, .step-number, .steps p { font-family: var(--display); }
p { margin: 0; text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; border-radius: 4px; }
.skip-link { position: fixed; top: 12px; left: 12px; z-index: 30; width: max-content; max-width: calc(100% - 24px); padding: 10px 16px; color: var(--on-dark); background: var(--dark); border-radius: 6px; transform: translateY(-200%); }
.skip-link:focus { transform: translateY(0); }

/* Marque, en-tête et pied de page communs */
.rc-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px var(--gutter); }
.rc-brand { display: inline-flex; align-items: center; min-height: 44px; }
.rc-brand img { display: block; width: auto; height: 34px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.rc-login { display: inline-flex; align-items: center; min-height: 44px; font-size: .9375rem; font-weight: 600; }
.rc-footer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; margin-top: auto; padding: 22px var(--gutter) 26px; font-size: .8125rem; }
.rc-footer nav { display: flex; flex-wrap: wrap; gap: 4px 22px; }
.rc-footer a { display: inline-flex; align-items: center; min-height: 44px; }

/* Accueil : fond noir du logo, l'or guide vers l'action */
.home { position: relative; overflow-x: hidden; color: var(--on-dark); background: var(--dark); }
.home::before { content: ""; position: absolute; inset: 0; z-index: 0; background: repeating-radial-gradient(circle at 100% 0, transparent 0 46px, var(--brand) 46px 47px); opacity: .28; mask-image: radial-gradient(circle at 100% 0, black 0, transparent 70%); pointer-events: none; }
.home > * { position: relative; z-index: 1; }
.home > .skip-link { position: fixed; z-index: 30; }
.home .rc-header { justify-content: flex-end; }
.home .rc-footer { color: var(--on-dark-muted); }
.home :focus-visible, .on-dark :focus-visible { outline-color: var(--brand); }
.home-main { display: flex; flex-direction: column; justify-content: center; flex: 1; width: min(1080px, 100%); margin-inline: auto; padding: clamp(28px, 7vh, 80px) var(--gutter) clamp(36px, 8vh, 96px); }
.home-logo img { height: auto; }
.home-logo .home-logo-stacked { display: block; width: min(62vw, 250px); }
.home-logo .home-logo-wide { display: none; width: min(100%, 520px); }
@media (min-width: 760px) { .home-logo .home-logo-stacked { display: none; } .home-logo .home-logo-wide { display: block; } }
.home-subtitle { max-width: 21ch; margin-top: clamp(18px, 3vh, 28px); font-size: clamp(1.375rem, 5.4vw, 2rem); font-weight: 650; letter-spacing: -.02em; line-height: 1.2; }
.home-choices { display: grid; gap: 14px; margin-top: clamp(32px, 6vh, 56px); }
.home-choice { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 104px; padding: 22px 24px; border-radius: var(--radius); text-decoration: none; transition: transform 180ms var(--ease), box-shadow 180ms var(--ease); }
.home-choice svg { transition: transform 180ms var(--ease); }
.home-choice:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgb(201 162 39 / .22); }
.home-choice:hover svg { transform: translateX(5px); }
.home-choice:active { transform: translateY(0); box-shadow: none; }
.choice-text { display: grid; gap: 5px; min-width: 0; }
.choice-label { font-size: clamp(1.375rem, 5.6vw, 1.75rem); font-weight: 750; letter-spacing: -.02em; line-height: 1.15; }
.choice-detail { font-size: 1rem; font-weight: 500; }
.home-choice-driver { color: var(--ink); background: var(--brand); }
.home-choice-driver .choice-detail { color: var(--on-brand-muted); font-weight: 600; }
.home-choice-passenger { color: var(--ink); background: var(--paper); }
.home-choice-passenger .choice-detail { color: var(--muted); }
@media (min-width: 760px) {
  .home-choices { grid-template-columns: 1fr 1fr; gap: 18px; }
  .home-choice { min-height: 136px; padding: 28px 30px; }
}

/* Page passager : courte, lisible sur la banquette arrière */
.passenger .rc-header { border-bottom: 1px solid var(--border); }
.passenger-main { width: min(520px, 100%); margin-inline: auto; padding: clamp(28px, 6vh, 56px) var(--gutter) 40px; }
.passenger-main h1 { font-size: clamp(2.25rem, 10.5vw, 3.25rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.passenger-text { margin-top: 16px; color: var(--muted); font-size: 1.125rem; line-height: 1.5; }
.promo-code { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 6px 14px; margin-top: 28px; padding: 16px 22px 18px; border-radius: var(--radius); color: var(--on-dark); background: var(--dark); }
.promo-label { color: var(--on-dark-muted); font-size: .9375rem; font-weight: 550; }
.promo-value { grid-column: 1 / -1; grid-row: 2; color: var(--brand); font-size: clamp(1.875rem, 9.6vw, 2.75rem); font-weight: 800; letter-spacing: .04em; line-height: 1.1; white-space: nowrap; }
.promo-copy { grid-column: 2; grid-row: 1; min-height: 44px; padding: 9px 15px; border: 1px solid #6f716c; border-radius: 8px; color: var(--on-dark); background: transparent; font-size: .9375rem; font-weight: 600; cursor: pointer; transition: background-color 160ms var(--ease), border-color 160ms var(--ease); }
.promo-copy:hover { border-color: var(--brand); background: var(--dark-raised); }
.promo-copy:focus-visible { outline-color: var(--brand); }
.promo-status { grid-column: 1 / -1; grid-row: 3; min-height: 1.5em; color: var(--brand); font-size: .9375rem; font-weight: 550; }
.promo-copy-buffer { position: fixed; top: 0; left: 0; opacity: 0; pointer-events: none; }
.passenger-cta { display: flex; align-items: center; justify-content: center; min-height: 60px; margin-top: 16px; padding: 14px 24px; border-radius: var(--radius); color: var(--ink); background: var(--brand); font-size: 1.25rem; font-weight: 750; letter-spacing: -.01em; text-decoration: none; transition: background-color 160ms var(--ease), transform 160ms var(--ease); }
.passenger-cta:hover { background: var(--brand-deep); transform: translateY(-1px); }
.passenger-cta:active { transform: translateY(0); }
.passenger-note { margin-top: 14px; color: var(--muted); font-size: .875rem; text-align: center; }
.passenger .rc-footer { color: var(--muted); border-top: 1px solid var(--border); }

.passenger-banner { display: inline-block; margin-bottom: 18px; padding: 8px 14px; border-radius: 999px; color: var(--ink); background: var(--brand-tint); font-size: 1rem; line-height: 1.3; }
.passenger-steps { display: grid; gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.passenger-steps li { display: grid; grid-template-columns: 30px 1fr; align-items: start; gap: 12px; font-size: 1.0625rem; line-height: 1.4; }
.passenger-step-number { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--on-dark); background: var(--dark); font-family: var(--display); font-size: .9375rem; font-weight: 800; }
.passenger-reassure { margin-top: 16px; padding: 12px 14px; border-radius: var(--radius); background: var(--brand-tint); font-size: 1rem; font-weight: 600; line-height: 1.4; }
.offer-form { display: grid; margin-top: 22px; }
.offer-form .passenger-cta { width: 100%; border: 0; font-family: var(--display); cursor: pointer; }
.offer-label { margin-bottom: 8px; font-size: 1rem; font-weight: 650; }
.offer-input { width: 100%; min-height: 58px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--radius); color: var(--ink); background: var(--paper); font: inherit; font-size: 1.0625rem; }
.offer-input::placeholder { color: #6f716c; }
.offer-input[aria-invalid="true"] { border-color: #a3261c; }
.offer-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.offer-skip { margin-top: 6px; text-align: center; }
.offer-skip a { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: 1rem; }
.passenger .form-alert { margin: 0 0 14px; padding: 12px 14px; border: 1px solid #e0a39c; border-radius: 10px; color: #7a1c14; background: #fdf1ef; font-size: 1rem; font-weight: 550; }
.passenger-note-left { text-align: left; }

/* Entrée : le contenu est visible par défaut, l'animation ne fait que l'accompagner */
@media (prefers-reduced-motion: no-preference) {
  @keyframes rc-rise { from { opacity: 0; transform: translateY(14px); } }
  .home-main h1, .home-subtitle, .home-choice, .passenger-main > * { animation: rc-rise 620ms var(--ease) backwards; }
  .home-subtitle, .passenger-main > :nth-child(2) { animation-delay: 70ms; }
  .home-choice-driver, .passenger-main > :nth-child(3) { animation-delay: 150ms; }
  .home-choice-passenger, .passenger-main > :nth-child(4) { animation-delay: 220ms; }
  .passenger-main > :nth-child(5) { animation-delay: 280ms; }
}
@media (prefers-reduced-motion: reduce) {
  .home-choice, .home-choice svg, .passenger-cta, .promo-copy { transition: none; }
}
