/* ==========================================================================
   NOX · espaces Client et Chauffeur (/client/, /chauffeur/).
   S'appuie sur nox.css (hero, services, sécurité, NOX+, partenaires, abonnement, FAQ, téléchargement)
   et content.css (fil d'Ariane, FAQ de page). Ici : les blocs propres à ces deux pages.
   ========================================================================== */

/* ---------- Hero ---------- */
.hero--space { min-height: min(100svh, 920px); padding-bottom: 80px; }
.hero--space .hero-title { font-size: clamp(40px, 5.2vw, 76px); }
.hero--space .crumbs ol { margin-bottom: 18px; }
.hero--space .hero-title { margin-top: 20px; }
.space-toc { margin-top: 36px; display: grid; gap: 10px; min-width: 0; }
.space-toc > span { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(220, 228, 245, 0.6); }
.space-toc ul { display: flex; flex-wrap: wrap; gap: 8px; }
.space-toc a { display: inline-flex; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: rgba(255, 255, 255, 0.86); background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14); transition: background-color 0.25s, color 0.25s; }
.space-toc a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.hero--space .scr-map .route--loop { stroke-dasharray: 1; animation: draw 2.4s var(--ease) 0.6s both; }
.offer--hero { transform: none; width: min(350px, 100%); }
.offer-car { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--paper); font-size: 14px; font-weight: 600; }

/* ---------- Section nuit arrondie ---------- */
.night-sec {
  position: relative;
  color: #fff;
  background: radial-gradient(60% 40% at 90% 10%, rgba(35, 80, 200, 0.25), transparent 70%), var(--nox);
  border-radius: var(--r-xl);
  margin-inline: clamp(0px, 1.2vw, 16px);
  padding: clamp(84px, 10vw, 130px) 0;
}
.night-sec .head p { color: var(--text-night); }
.night-sec .bg-word { top: 6%; }

/* Étapes numérotées */
.steps4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; counter-reset: none; }
.steps4--six { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps4 li {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 250px;
  padding: 26px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 0 0 1px var(--line-night), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: box-shadow 0.35s var(--ease), background-color 0.35s;
}
.steps4--six li { min-height: 190px; }
.steps4 li:hover { box-shadow: inset 0 0 0 1.5px rgba(157, 181, 255, 0.55), 0 30px 60px -36px rgba(0, 6, 20, 0.9); }
.steps4-num { position: absolute; right: 16px; top: 4px; font-weight: 800; font-size: 92px; line-height: 1; letter-spacing: -0.06em; color: transparent; -webkit-text-stroke: 1.5px rgba(157, 181, 255, 0.4); pointer-events: none; }
.steps4 i { width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; background: var(--accent); color: #fff; box-shadow: 0 14px 28px -12px rgba(35, 80, 200, 0.9); margin-bottom: 14px; }
.steps4--six b { margin-top: 64px; }
.steps4 b { font-size: 20px; font-weight: 800; letter-spacing: -0.025em; line-height: 1.2; }
.steps4 span:not(.steps4-num) { font-size: 15px; color: var(--text-night); }

.later { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 22px; padding: 24px 28px; border-radius: var(--r-lg); background: radial-gradient(80% 120% at 100% 0%, rgba(35, 80, 200, 0.45), transparent 70%), rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px var(--line-night); }
.later-copy { display: flex; gap: 16px; align-items: flex-start; max-width: 520px; }
.later-ico { flex: none; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--accent-soft); background: rgba(157, 181, 255, 0.12); }
.later-copy div { display: grid; gap: 4px; }
.later-copy b { font-size: 18px; letter-spacing: -0.02em; }
.later-copy span { font-size: 15px; color: var(--text-night); }
.later-facts { display: flex; flex-wrap: wrap; gap: 10px; }
.later-facts div { padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-night); }
.later-facts dt { font-size: 12px; color: var(--text-night); }
.later-facts dd { font-weight: 700; font-size: 15px; }
.night-ctas { margin-top: 32px; display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Prix : déroulé du paiement ---------- */
.pay-flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: pay; }
.pay-flow::before { content: ""; position: absolute; z-index: 1; left: 34px; right: 34px; top: 33px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--accent-soft), var(--accent)); transform: scaleX(var(--pf, 1)); transform-origin: 0 50%; }
.pay-flow li { position: relative; display: grid; gap: 6px; padding: 76px 26px 28px; border-radius: var(--r-lg); background: var(--paper); }
.pay-flow li::before { counter-increment: pay; content: counter(pay); position: absolute; z-index: 2; left: 18px; top: 16px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--nox); box-shadow: 0 0 0 6px var(--white); }
.pay-flow small { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.pay-flow b { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; }
.pay-flow span { color: var(--muted); font-size: 15px; }

.rules { margin-top: 16px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rules--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 20px; }
.rule { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 6px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.section--white .rule { background: var(--paper); box-shadow: none; }
.rule i { grid-row: span 2; width: 48px; height: 48px; border-radius: 15px; display: grid; place-items: center; color: var(--nox); background: var(--sky); }
.rule b { font-size: 18px; letter-spacing: -0.02em; align-self: center; }
.rule p { font-size: 15px; color: var(--muted); }

/* ---------- Sécurité : grille avec 4 cartes secondaires ---------- */
.espace .skills { grid-template-rows: auto auto; }

/* ---------- Parrainage ---------- */
.referral { margin-top: clamp(48px, 6vw, 80px); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(26px, 4vw, 44px); border-radius: var(--r-xl); color: #fff; background: radial-gradient(70% 120% at 100% 0%, rgba(58, 102, 224, 0.6), transparent 70%), var(--nox); }
.referral-gift { width: 108px; height: 108px; border-radius: 32px; display: grid; place-items: center; color: #fff; background: linear-gradient(145deg, var(--accent-hi), var(--accent)); box-shadow: 0 30px 50px -20px rgba(35, 80, 200, 0.9), inset 0 1px 0 rgba(255, 255, 255, 0.35); transform: rotate(-8deg); animation: float 5s var(--ease) infinite alternate; }
@keyframes float { to { transform: rotate(4deg) translateY(-8px); } }
.referral .tag { background: rgba(255, 255, 255, 0.08); color: #fff; box-shadow: inset 0 0 0 1px var(--line-night); margin-bottom: 14px; }
.referral h3 { font-size: clamp(26px, 3vw, 40px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.referral p { margin-top: 12px; color: var(--text-night); max-width: 62ch; }

/* ---------- Soirées : cartes empilées à droite ---------- */
.venue--stack { margin: 0; grid-template-columns: 1fr; }

/* ---------- Bascule vers l'autre espace ---------- */
.switch-sec { padding: clamp(56px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.switch { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(18px, 3vw, 36px); padding: clamp(22px, 3vw, 34px); border-radius: var(--r-xl); text-decoration: none; color: var(--ink); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 40px 70px -50px rgba(1, 25, 51, 0.5); transition: box-shadow 0.35s var(--ease), transform 0.35s var(--ease); }
.switch:hover { box-shadow: inset 0 0 0 1.5px var(--nox), 0 40px 70px -40px rgba(1, 25, 51, 0.55); }
.switch img { width: 120px; height: 120px; border-radius: 32px; box-shadow: 0 24px 40px -20px rgba(1, 25, 51, 0.6); }
.switch-txt { display: grid; gap: 6px; }
.switch-txt small { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.switch-txt b { font-size: clamp(22px, 2.4vw, 32px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.switch-txt span { color: var(--muted); }
.switch:hover .btn svg { transform: translateX(4px); }
.download-fine { margin-top: 18px; font-size: 14px; color: var(--text-night); }
.download-fine a { color: #fff; font-weight: 600; }

/* ---------- Chauffeur : documents ---------- */
.docs { display: grid; grid-template-columns: minmax(0, 1.25fr) repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.docs-col { padding: 26px; border-radius: var(--r-lg); background: var(--paper); }
.docs-col--all { color: #fff; background: radial-gradient(80% 60% at 100% 0%, rgba(35, 80, 200, 0.55), transparent 70%), var(--nox); }
.docs-col header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.docs-col header i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--nox); background: var(--white); }
.docs-col--all header i { background: var(--accent); color: #fff; }
.docs-col header b { font-size: 18px; letter-spacing: -0.02em; line-height: 1.25; }
.docs-col li { display: grid; gap: 2px; padding: 12px 0; border-top: 1px solid var(--line); }
.docs-col--all li { border-color: var(--line-night); }
.docs-col li b { font-size: 15.5px; }
.docs-col li span { font-size: 14px; color: var(--muted); }
.docs-col--all li span { color: var(--text-night); }
.docs-note { margin-top: 10px; font-size: 14px; color: var(--muted); }
.docs-note a { color: var(--accent); font-weight: 600; text-underline-offset: 3px; }
.fine--center { text-align: center; margin-top: 26px; }

/* ---------- Chauffeur : vérification ---------- */
.verify { margin-top: 16px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.verify article { display: grid; gap: 8px; align-content: start; padding: 24px; border-radius: var(--r-lg); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line-night); }
.verify i { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; color: var(--accent-soft); background: rgba(157, 181, 255, 0.12); margin-bottom: 6px; }
.verify b { font-size: 18px; letter-spacing: -0.02em; }
.verify span { font-size: 15px; color: var(--text-night); }
.verify-go { background: linear-gradient(150deg, var(--accent-hi), var(--accent) 60%, #1a3d9e) !important; box-shadow: 0 30px 50px -26px rgba(35, 80, 200, 0.9) !important; }
.verify-go ul { display: grid; gap: 10px; margin-top: 6px; }
.verify-go li { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.verify-go li::before { content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232350c8' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }

/* ---------- Chauffeur : revenus ---------- */
.money-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.money-card { padding: clamp(24px, 3vw, 36px); border-radius: var(--r-xl); background: var(--white); box-shadow: inset 0 0 0 1px var(--line), 0 60px 90px -50px rgba(1, 25, 51, 0.55); }
.money-kicker { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.money-bar { display: flex; height: 18px; margin: 18px 0 22px; border-radius: 999px; overflow: hidden; background: var(--paper); }
.money-bar span { display: block; height: 100%; transform-origin: 0 50%; }
.money-bar-you { background: linear-gradient(90deg, var(--nox), var(--accent)); }
.money-bar-nox { background: var(--accent-soft); }
.js .money-card .money-bar span { transform: scaleX(0); transition: transform 1.2s var(--ease) 0.2s; }
.js .money-card.is-in .money-bar span { transform: none; }
.js .money-card.is-in .money-bar-nox { transition-delay: 1s; }
.money-card dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.money-card dt { color: var(--muted); }
.money-card dd { font-weight: 700; white-space: nowrap; }
.money-net dt { color: var(--ink); font-weight: 700; }
.money-net dd { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; color: var(--nox); }
.money-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Chauffeur : abonnement ---------- */
.pro-fine { margin-top: 22px; font-size: 14px; color: var(--text-night); max-width: 60ch; }
.sub-card {
  position: relative;
  width: min(360px, 100%);
  aspect-ratio: 1.58;
  padding: 26px;
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #fff;
  background: radial-gradient(120% 90% at 100% 0%, rgba(58, 102, 224, 0.9), transparent 55%), linear-gradient(135deg, #0b2a5c, var(--nox));
  box-shadow: 0 50px 80px -40px rgba(0, 6, 20, 0.95), inset 0 1px 0 rgba(255, 255, 255, 0.25), inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: rotateY(-14deg) rotateX(8deg);
}
.sub-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.16) 48%, transparent 60%); transform: translateX(-60%); animation: sheen 5s var(--ease) infinite; pointer-events: none; }
.sub-card-top { display: flex; align-items: baseline; gap: 8px; }
.sub-card-top .logo { font-size: 26px; }
.sub-card-top span { font-weight: 800; font-size: 15px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-soft); }
.sub-card-state { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #b9f0cf; }
.sub-card-state i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc84; box-shadow: 0 0 0 4px rgba(61, 220, 132, 0.2); }
.sub-card-price { margin-top: auto; display: flex; align-items: baseline; gap: 8px; }
.sub-card-price b { font-size: 46px; font-weight: 800; letter-spacing: -0.05em; line-height: 1; }
.sub-card-price span { color: var(--text-night); }
.sub-card-next { margin-top: 6px; font-size: 13px; color: var(--text-night); }

/* ---------- Chauffeur : niveaux ---------- */
.levels { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.level { --metal: linear-gradient(135deg, #b5793f, #e7b07a 50%, #8a5a2b); position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px; padding: 30px 24px 24px; border-radius: var(--r-lg); background: var(--white); box-shadow: inset 0 0 0 1px var(--line); }
.level::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--metal); }
.level--argent { --metal: linear-gradient(135deg, #8c96a8, #e3e8f0 50%, #6f7a8d); }
.level--or { --metal: linear-gradient(135deg, #c8961e, #f6d77a 50%, #a77812); }
.level--platine { --metal: linear-gradient(135deg, #5a6b8f, #dfe7ff 50%, #3e4d70); color: #fff; background: radial-gradient(80% 60% at 100% 0%, rgba(58, 102, 224, 0.6), transparent 70%), var(--nox); box-shadow: 0 40px 70px -40px rgba(1, 25, 51, 0.8); }
.level small { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.level--platine small { color: var(--accent-soft); }
.level > b { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; background: var(--metal); -webkit-background-clip: text; background-clip: text; color: transparent; }
.level-req { font-size: 14px; font-weight: 700; }
.level ul { margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 14px; }
.level--platine ul { border-color: var(--line-night); }
.level li { display: flex; gap: 8px; }
.level li::before { content: ""; flex: none; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat; }

/* ---------- Chauffeur : formation et aide ---------- */
.help-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.modules { display: grid; gap: 10px; counter-reset: mod; }
.modules li { position: relative; display: grid; gap: 2px; padding: 18px 20px 18px 74px; border-radius: var(--r-md); background: var(--paper); }
.modules li::before { counter-increment: mod; content: "0" counter(mod); position: absolute; left: 20px; top: 50%; margin-top: -19px; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: #fff; background: var(--nox); }
.modules b { font-size: 17px; }
.modules span { font-size: 15px; color: var(--muted); }
.help-card { padding: clamp(26px, 3vw, 38px); border-radius: var(--r-xl); color: #fff; background: radial-gradient(80% 60% at 0% 100%, rgba(35, 80, 200, 0.55), transparent 70%), var(--nox); box-shadow: 0 50px 80px -50px rgba(1, 25, 51, 0.8); }
.help-card .tag { background: var(--nox-3); }
.help-card h3 { font-size: clamp(26px, 2.6vw, 36px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; }
.help-card > p { margin-top: 12px; color: var(--text-night); font-size: 15px; }
.help-list { margin-top: 22px; display: grid; gap: 10px; }
.help-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.06); box-shadow: inset 0 0 0 1px var(--line-night); }
.help-list svg { flex: none; color: var(--accent-soft); margin-top: 2px; }
.help-list span { display: grid; font-size: 14px; color: var(--text-night); }
.help-list b { font-size: 15.5px; color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .steps4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps4--six { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .docs { grid-template-columns: 1fr 1fr; }
  .docs-col--all { grid-column: span 2; }
  .verify { grid-template-columns: 1fr 1fr; }
  .verify-go { grid-column: span 2; }
  .money-grid, .help-grid { grid-template-columns: 1fr; }
  .levels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rules--3 { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .hero--space { padding-top: calc(var(--nav-h) + 48px); }
  .pay-flow { grid-template-columns: 1fr; }
  .pay-flow::before { left: 35px; right: auto; top: 34px; bottom: 34px; width: 3px; height: auto; }
  .switch { grid-template-columns: auto minmax(0, 1fr); }
  .switch .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 680px) {
  .steps4, .steps4--six, .rules, .docs, .verify, .levels { grid-template-columns: 1fr; }
  .docs-col--all, .verify-go { grid-column: auto; }
  .steps4 li { min-height: 0; }
  .steps4--six b { margin-top: 40px; }
  .referral { grid-template-columns: 1fr; }
  .referral-gift { width: 84px; height: 84px; border-radius: 26px; }
}
@media (max-width: 560px) {
  .space-toc ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); scrollbar-width: none; }
  .space-toc ul::-webkit-scrollbar { display: none; }
  .space-toc a { white-space: nowrap; }
  .later { padding: 20px; }
  .later-facts { width: 100%; }
  .later-facts div { flex: 1 1 100%; }
  .switch { grid-template-columns: 1fr; }
  .switch img { width: 88px; height: 88px; border-radius: 24px; }
  .switch .btn { width: 100%; white-space: normal; text-align: center; }
  .sub-card { transform: rotateY(-6deg) rotateX(4deg); }
  .money-net dd { font-size: 26px; }
  .modules li { padding-left: 68px; }
}
@media (prefers-reduced-motion: reduce) {
  .js .money-card .money-bar span { transform: none; }
  .referral-gift { animation: none; }
}
