/* ==========================================================
   Moon Registration Forms — assistant multi-étapes
   Même direction artistique que le site Moon et l'app MoonApp.
   Toutes les classes sont préfixées « mw- » : aucun conflit avec le thème.
   Les couleurs suivent le thème Moon s'il est actif (variables --violet, --ink…,
   y compris en thème sombre), sinon les valeurs par défaut ci-dessous.
   ========================================================== */

.moon-wz, .mw-map, .mw-brief {
  --mw-accent: var(--violet, #6a35e8);
  --mw-accent-deep: var(--violet-deep, #4b1fc4);
  --mw-accent-light: var(--violet-light, #a98bff);
  --mw-accent-soft: var(--violet-soft, #efe9ff);
  --mw-grad: var(--grad, linear-gradient(135deg, #5b2be0 0%, #8a5cff 55%, #b79bff 100%));
  --mw-bg: var(--bg, #faf9fd);
  --mw-surface: var(--surface, #ffffff);
  --mw-tint: var(--tint, #f3f0fb);
  --mw-ink: var(--ink, #120e24);
  --mw-ink-2: var(--ink-2, #2b2640);
  --mw-muted: var(--muted, #6a6580);
  --mw-line: var(--line, rgba(38, 24, 92, .09));
  --mw-line-strong: var(--line-strong, rgba(38, 24, 92, .16));
  --mw-field: #e3def0;
  --mw-field-hover: #cfc7e6;
  --mw-placeholder: #a7a2b8;
  --mw-checked: linear-gradient(180deg, #fbf9ff, #f4efff);
  --mw-night: var(--night, #0e0b1f);
  --mw-danger: #d64545;
  --mw-danger-soft: #fdf2f2;
  --mw-success: #2cc178;
  --mw-font: var(--font-sans, "Inter", system-ui, -apple-system, sans-serif);
  --mw-title: var(--font-title, "Sora", "Inter", system-ui, sans-serif);
  --mw-serif: var(--font-serif, "Instrument Serif", Georgia, serif);
  --mw-radius: 16px;
  --mw-shadow-sm: var(--shadow-sm, 0 1px 2px rgba(18, 14, 36, .04), 0 4px 14px rgba(18, 14, 36, .05));
  --mw-shadow: var(--shadow, 0 2px 6px rgba(18, 14, 36, .04), 0 18px 44px -12px rgba(46, 22, 120, .16));
  --mw-ease: cubic-bezier(.22, .8, .24, 1);

  position: relative;
  max-width: 1200px;
  margin: 0 auto 40px;
  color: var(--mw-ink-2);
  font-family: var(--mw-font);
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.moon-wz--single { max-width: 760px; }

/* Thème sombre (thème Moon : html[data-theme="dark"]) */
html[data-theme="dark"] .moon-wz, html[data-theme="dark"] .mw-map, html[data-theme="dark"] .mw-brief {
  --mw-field: var(--line-strong, #374151);
  --mw-field-hover: #4b5563;
  --mw-placeholder: #6b7280;
  --mw-checked: linear-gradient(180deg, rgba(169, 139, 255, .12), rgba(169, 139, 255, .06));
  --mw-danger-soft: rgba(214, 69, 69, .12);
}

/* Remise à zéro locale (le thème du site peut styler globalement boutons, champs, titres) */
.moon-wz *, .moon-wz *::before, .moon-wz *::after { box-sizing: border-box; }
.moon-wz h2, .moon-wz h3, .moon-wz h4, .moon-wz p, .moon-wz ol, .moon-wz dl, .moon-wz dd, .moon-wz fieldset, .moon-wz legend { margin: 0; padding: 0; }
.moon-wz ol { list-style: none; }
.moon-wz a { color: inherit; }
.moon-wz button { font: inherit; letter-spacing: normal; text-transform: none; line-height: 1.2; min-height: 0; }
.moon-wz input, .moon-wz textarea { font: inherit; letter-spacing: normal; margin: 0; box-shadow: none; }
.moon-wz img { max-width: 100%; display: block; border: 0; border-radius: 0; box-shadow: none; }
.moon-wz [hidden] { display: none !important; }

.mw-ico {
  width: 1.15em; height: 1.15em;
  fill: none; stroke: currentColor; stroke-width: 1.8;
  stroke-linecap: round; stroke-linejoin: round;
  flex-shrink: 0; vertical-align: middle;
}

/* Chargement initial */
.moon-wz__loading { display: flex; justify-content: center; gap: 8px; padding: 80px 0; }
.moon-wz__loading span { width: 10px; height: 10px; border-radius: 50%; background: var(--mw-accent); animation: mw-dot 1s ease-in-out infinite; }
.moon-wz__loading span:nth-child(2) { animation-delay: .15s; }
.moon-wz__loading span:nth-child(3) { animation-delay: .3s; }
@keyframes mw-dot { 50% { transform: translateY(-8px); opacity: .4; } }
.moon-wz.is-ready .moon-wz__loading { display: none; }
.moon-wz__noscript { padding: 20px; border-radius: 16px; background: var(--mw-tint); }

/* ---------- Boutons ---------- */
.mw-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 26px;
  border: 1px solid transparent; border-radius: 999px;
  font-family: var(--mw-font); font-size: 15px; font-weight: 650; line-height: 1;
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: transform .35s var(--mw-ease), box-shadow .35s var(--mw-ease), background-color .25s, color .25s, border-color .25s, opacity .2s;
}
.mw-btn .mw-ico { width: 18px; height: 18px; }
.mw-btn .mw-ico--end { transition: transform .35s var(--mw-ease); }
.mw-btn:hover .mw-ico--end { transform: translateX(3px); }
.mw-btn--primary {
  background: var(--mw-grad); background-size: 140% 140%;
  color: #fff;
  box-shadow: 0 10px 24px -8px rgba(91, 43, 224, .55), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.mw-btn--primary:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -10px rgba(91, 43, 224, .65), inset 0 1px 0 rgba(255, 255, 255, .25); }
.mw-btn--ghost { background: var(--mw-surface); color: var(--mw-ink); border-color: var(--mw-line-strong); }
.mw-btn--ghost:hover { border-color: var(--mw-accent); color: var(--mw-accent); transform: translateY(-2px); }
.mw-btn--sm { padding: 11px 18px; font-size: 14px; }
.mw-btn--lg { padding: 17px 30px; font-size: 15.5px; }
.mw-btn:disabled { cursor: not-allowed; opacity: .6; transform: none; }
.mw-btn:focus-visible, .moon-wz :focus-visible { outline: 2px solid var(--mw-accent); outline-offset: 3px; }

/* ---------- Textes d'introduction ---------- */
.mw-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin-bottom: 16px !important;
  color: var(--mw-accent);
  font-size: 13px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
}
.mw-eyebrow .mw-ico {
  width: 26px; height: 26px; padding: 6px; border-radius: 8px;
  background: var(--mw-accent-soft); color: var(--mw-accent); stroke-width: 2;
}
.mw-title {
  color: var(--mw-ink);
  font-family: var(--mw-font);
  font-size: clamp(28px, 3vw, 36px); font-weight: 750; line-height: 1.1; letter-spacing: -.03em;
}
.mw-title em { font-family: var(--mw-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--mw-accent); }
.mw-lead { margin-top: 14px !important; color: var(--mw-muted); font-size: 15.5px; line-height: 1.65; }

/* ==========================================================
   Texte de présentation (au-dessus de l'assistant)
   ========================================================== */
.mw-brief {
  position: relative;
  display: grid; gap: clamp(24px, 4vw, 48px);
  max-width: 1200px;
  margin: 0 auto 28px;
  padding: clamp(26px, 4vw, 44px);
  border: 1px solid var(--mw-line);
  border-radius: 28px;
  background: var(--mw-surface);
  box-shadow: var(--mw-shadow-sm);
  color: var(--mw-ink-2);
  font-family: var(--mw-font); font-size: 16px; line-height: 1.65;
  text-align: left;
  -webkit-font-smoothing: antialiased;
}
.mw-brief--split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: start; }
.mw-brief *, .mw-brief *::before, .mw-brief *::after { box-sizing: border-box; }
.mw-brief h2, .mw-brief h3, .mw-brief p, .mw-brief ul, .mw-brief ol, .mw-brief li { margin: 0; padding: 0; }
.mw-brief ul, .mw-brief ol { list-style: none; }

html body .mw-brief .mw-brief__title {
  color: var(--mw-ink);
  font-family: var(--mw-title);
  font-size: clamp(26px, 3vw, 36px); font-weight: 750; line-height: 1.12; letter-spacing: -.03em;
}
html body .mw-brief .mw-brief__title em { font-family: var(--mw-serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--mw-accent); }
.mw-brief__text { margin-top: 16px; color: var(--mw-muted); font-size: 16px; }
.mw-brief__title + .mw-brief__text { margin-top: 16px; }
.mw-brief__main > :first-child { margin-top: 0; }
.mw-brief__text p + p, .mw-brief__note p + p { margin-top: 12px; }
.mw-brief a { color: var(--mw-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.mw-brief strong { color: var(--mw-ink); font-weight: 700; }

.mw-brief__points { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px !important; }
.mw-brief__points li {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 9px 16px 9px 10px;
  border-radius: 999px;
  background: var(--mw-accent-soft);
  color: var(--mw-ink); font-size: 14.5px; font-weight: 600; line-height: 1.3;
}
.mw-brief__points .mw-ico {
  width: 24px; height: 24px; padding: 5px; border-radius: 50%;
  background: var(--mw-accent); color: #fff; stroke-width: 2.6;
}

.mw-brief__side { display: grid; gap: 18px; }
html body .mw-brief .mw-brief__subtitle {
  color: var(--mw-ink);
  font-family: var(--mw-title); font-size: 17px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em;
}
.mw-brief__process ol { display: grid; gap: 14px; margin-top: 16px !important; counter-reset: mw-brief; }
.mw-brief__process li {
  position: relative;
  display: flex; gap: 14px; align-items: flex-start;
  counter-increment: mw-brief;
  font-size: 15px; line-height: 1.55;
}
.mw-brief__process li::before {
  content: counter(mw-brief);
  flex: 0 0 30px; display: grid; place-items: center;
  width: 30px; height: 30px; border-radius: 10px;
  background: var(--mw-grad); color: #fff;
  font-family: var(--mw-title); font-size: 14px; font-weight: 700; line-height: 1;
}
.mw-brief__process li span { padding-top: 4px; }

.mw-brief__note {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 20px 22px;
  border: 1px solid var(--mw-line);
  border-radius: 20px;
  background: var(--mw-tint);
  font-size: 14.5px; line-height: 1.6;
}
.mw-brief__note-ico {
  flex: 0 0 36px; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 12px;
  background: var(--mw-accent-soft); color: var(--mw-accent);
}
.mw-brief__note-ico .mw-ico { width: 20px; height: 20px; stroke-width: 2; }
.mw-brief__note .mw-brief__subtitle { margin-bottom: 6px !important; }
.mw-brief .mw-ico { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ==========================================================
   Assistant : panneau latéral + zone principale
   ========================================================== */
.mw-shell {
  display: grid;
  grid-template-columns: minmax(300px, 380px) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
.moon-wz--no-aside .mw-shell { grid-template-columns: minmax(0, 1fr); max-width: 820px; margin: 0 auto; }

.mw-aside {
  position: sticky; top: calc(var(--nav-h, 0px) + 24px);
  display: flex; flex-direction: column;
  min-height: 560px;
  padding: 34px 30px 28px;
  border-radius: 28px;
  background: var(--mw-night);
  color: rgba(255, 255, 255, .7);
  /* Pas de hauteur max : sur un écran peu haut, le bas du panneau (étapes, mention RGPD)
     était coupé. Plus haut que l'écran, il défile simplement avec la page. */
  overflow: hidden;
  isolation: isolate;
}
.admin-bar .mw-aside { top: calc(var(--nav-h, 0px) + 56px); }
.mw-aside::before {
  content: ""; position: absolute; z-index: -1;
  width: 520px; height: 520px; left: -220px; top: -240px;
  background: radial-gradient(circle, rgba(138, 92, 255, .45), transparent 65%);
}
.mw-aside::after {
  content: ""; position: absolute; z-index: -1;
  width: 400px; height: 400px; right: -220px; bottom: -200px;
  background: radial-gradient(circle, rgba(91, 43, 224, .35), transparent 65%);
}
.mw-aside__intro { margin-bottom: 30px; }
.mw-aside .mw-eyebrow { color: var(--mw-accent-light); }
.mw-aside .mw-eyebrow .mw-ico { background: rgba(169, 139, 255, .16); color: var(--mw-accent-light); }
.mw-aside .mw-title { color: #fff; font-size: 30px; }
.mw-aside .mw-title em { color: var(--mw-accent-light); }
.mw-aside .mw-lead { color: rgba(255, 255, 255, .68); font-size: 14.5px; }

.mw-steps { position: relative; display: grid; gap: 4px; }
.mw-steps::before {
  content: ""; position: absolute; left: 21px; top: 24px; bottom: 24px; width: 1.5px;
  background: rgba(255, 255, 255, .1);
}
.mw-steps__item {
  position: relative;
  display: flex; align-items: center; gap: 16px;
  padding: 7px 10px 7px 0;
  opacity: .5;
  transition: opacity .3s;
}
.mw-steps__item.is-active, .mw-steps__item.is-done { opacity: 1; }
.mw-steps__item.is-done { cursor: pointer; }
.mw-steps__item.is-done:hover .mw-steps__text strong { color: var(--mw-accent-light); }
.mw-steps__ico {
  position: relative; z-index: 1;
  display: grid; place-items: center; flex-shrink: 0;
  width: 44px; height: 44px; border-radius: 14px;
  background: #1c1737; color: rgba(255, 255, 255, .75);
  border: 1px solid rgba(255, 255, 255, .1);
  transition: background .35s, color .35s, box-shadow .35s, border-color .35s;
}
.mw-steps__ico > .mw-ico { width: 19px; height: 19px; }
.mw-steps__done {
  position: absolute; right: -5px; bottom: -5px;
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--mw-success); color: #fff;
  box-shadow: 0 0 0 3px var(--mw-night);
  transform: scale(0); transition: transform .35s var(--mw-ease);
}
.mw-steps__done .mw-ico { width: 11px; height: 11px; stroke-width: 3; }
.mw-steps__item.is-done .mw-steps__done { transform: scale(1); }
.mw-steps__item.is-active .mw-steps__ico {
  background: var(--mw-grad); color: #fff; border-color: transparent;
  box-shadow: 0 10px 26px -8px rgba(138, 92, 255, .8);
}
.mw-steps__text { display: flex; flex-direction: column; min-width: 0; }
.mw-steps__text strong { color: #fff; font-size: 15px; font-weight: 650; transition: color .2s; }
.mw-steps__text small {
  color: rgba(255, 255, 255, .5); font-size: 12.5px; line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}

.mw-aside__foot { display: grid; gap: 12px; margin-top: auto; padding-top: 26px; font-size: 13px; line-height: 1.5; }
.mw-aside__foot p { display: flex; gap: 10px; align-items: flex-start; }
.mw-aside__foot .mw-ico { width: 16px; height: 16px; margin-top: 1px; color: var(--mw-accent-light); }
.mw-aside__foot a { color: #fff; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .3); text-underline-offset: 3px; }

/* Zone principale */
.mw-main { min-width: 0; }
.mw-top { margin-bottom: 30px; }
.mw-top__count { display: flex; justify-content: space-between; margin-bottom: 10px !important; color: var(--mw-muted); font-size: 13px; font-weight: 600; }
.mw-top__count [data-step-name] { color: var(--mw-ink); }
.mw-bar { height: 6px; border-radius: 999px; background: var(--mw-tint); overflow: hidden; }
.mw-bar span {
  display: block; height: 100%; width: 0;
  border-radius: inherit;
  background: var(--mw-grad);
  box-shadow: 0 0 12px rgba(138, 92, 255, .6);
  transition: width .6s var(--mw-ease);
}

.mw-preselected {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 22px !important; padding: 12px 16px;
  border-radius: 14px;
  background: var(--mw-accent-soft); color: var(--mw-accent-deep);
  font-size: 14px;
}
html[data-theme="dark"] .mw-preselected { color: var(--mw-accent-light); }
.mw-preselected .mw-ico { width: 18px; height: 18px; }
.mw-preselected strong { color: inherit; }

/* Message d'erreur serveur */
.mw-notice {
  display: flex; align-items: flex-start; gap: 10px;
  margin-bottom: 24px; padding: 14px 18px;
  border: 1px solid rgba(214, 69, 69, .3); border-radius: 14px;
  background: var(--mw-danger-soft); color: var(--mw-danger);
  font-size: 14.5px; font-weight: 600; line-height: 1.5;
}
.mw-notice .mw-ico { width: 18px; height: 18px; margin-top: 2px; }

/* ---------- Étape ---------- */
.mw-step__head { margin-bottom: 30px; }
.mw-step__ico {
  display: inline-grid; place-items: center;
  width: 58px; height: 58px; margin-bottom: 20px;
  border-radius: 18px;
  background: var(--mw-grad); color: #fff;
  box-shadow: 0 14px 30px -10px rgba(91, 43, 224, .6);
}
.mw-step__ico .mw-ico { width: 26px; height: 26px; }
.mw-step__kicker { color: var(--mw-accent); font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.mw-step__title {
  margin-top: 8px !important;
  color: var(--mw-ink);
  font-family: var(--mw-font);
  font-size: clamp(28px, 3vw, 38px); font-weight: 750; line-height: 1.1; letter-spacing: -.03em;
  outline: none;
}
.mw-step__desc { margin-top: 10px !important; color: var(--mw-muted); font-size: 16px; }

.mw-fields { display: flex; flex-wrap: wrap; gap: 22px 16px; }
.mw-fields > * { flex: 1 1 100%; min-width: 0; }
.mw-fields > .mw-fld--half { flex: 1 1 calc(50% - 8px); }

/* ---------- Champs ---------- */
.mw-fld { margin: 0; padding: 0; border: 0; min-width: 0; }
.mw-fld--cond { display: none; }
.mw-fld--cond.is-shown { display: block; animation: mw-in .4s var(--mw-ease); }
@keyframes mw-in { from { opacity: 0; transform: translateY(-6px); } }

.mw-fld__label {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px;
  width: 100%;
  margin-bottom: 9px; padding: 0;
  color: var(--mw-ink); font-size: 14.5px; font-weight: 650; line-height: 1.4;
}
.mw-fld__label b { color: var(--mw-accent); font-weight: 700; }
.mw-fld__label i { color: var(--mw-muted); font-size: 12.5px; font-style: normal; font-weight: 500; }
.mw-fld__note { margin-left: auto; color: var(--mw-muted); font-size: 12.5px; font-weight: 500; }

.mw-fld__control { position: relative; }
.moon-wz .mw-fld__control input,
.moon-wz .mw-fld__control textarea,
.moon-wz .mw-route__control input {
  display: block;
  width: 100%; max-width: none;
  color: var(--mw-ink); font-family: var(--mw-font); font-size: 16px;
  background: var(--mw-surface);
  border: 1.5px solid var(--mw-field);
  border-radius: var(--mw-radius);
  outline: none;
  transition: border-color .2s, box-shadow .25s, background-color .2s;
}
.moon-wz .mw-fld__control input { height: 58px; padding: 0 18px 0 50px; }
.moon-wz .mw-fld__control textarea { min-height: 120px; padding: 16px 18px 16px 50px; resize: vertical; line-height: 1.6; }
.moon-wz .mw-fld__control > input:first-child, .moon-wz .mw-fld__control > textarea:first-child { padding-left: 18px; }
.moon-wz .mw-fld__control input::placeholder, .moon-wz .mw-fld__control textarea::placeholder, .moon-wz .mw-route__control input::placeholder { color: var(--mw-placeholder); opacity: 1; }
.moon-wz .mw-fld__control input:hover, .moon-wz .mw-fld__control textarea:hover { border-color: var(--mw-field-hover); }
.moon-wz .mw-fld__control input:focus, .moon-wz .mw-fld__control textarea:focus {
  border-color: var(--mw-accent);
  box-shadow: 0 0 0 4px rgba(106, 53, 232, .12);
}
.mw-fld__ico {
  position: absolute; left: 17px; top: 19px;
  width: 20px; height: 20px;
  color: #9d96b3; pointer-events: none;
  transition: color .2s;
}
.mw-fld__control:focus-within .mw-fld__ico { color: var(--mw-accent); }
.moon-wz .mw-fld__control input[type="date"], .moon-wz .mw-fld__control input[type="time"] { padding-right: 14px; }
.mw-fld__control input[type="date"]::-webkit-calendar-picker-indicator,
.mw-fld__control input[type="time"]::-webkit-calendar-picker-indicator { opacity: .5; cursor: pointer; }
html[data-theme="dark"] .mw-fld__control input[type="date"]::-webkit-calendar-picker-indicator,
html[data-theme="dark"] .mw-fld__control input[type="time"]::-webkit-calendar-picker-indicator { filter: invert(1); }

.mw-fld__error {
  display: flex; align-items: center; gap: 6px;
  color: var(--mw-danger); font-size: 13px; font-weight: 550;
}
.mw-fld__error:not(:empty) { margin-top: 8px !important; }
.mw-fld__error .mw-ico { width: 14px; height: 14px; }
.mw-fld.is-invalid .mw-fld__control input,
.mw-fld.is-invalid .mw-fld__control textarea { border-color: var(--mw-danger) !important; box-shadow: 0 0 0 4px rgba(214, 69, 69, .1) !important; }
.mw-fld.is-invalid .mw-fld__ico { color: var(--mw-danger); }

/* Champ piège anti-spam (invisible pour les humains) */
.mw-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Tuiles de choix */
.mw-choices { display: grid; gap: 10px; }
.mw-choices--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mw-choices--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mw-choices--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mw-choice { position: relative; display: block; margin: 0; cursor: pointer; }
.mw-choice input, .mw-gcard input, .mw-consent input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.mw-choice__box {
  display: flex; align-items: center; gap: 12px;
  height: 100%; min-height: 60px;
  padding: 12px 14px;
  border: 1.5px solid var(--mw-field); border-radius: var(--mw-radius);
  background: var(--mw-surface);
  transition: border-color .2s, background-color .2s, box-shadow .25s, transform .2s;
}
.mw-choice:hover .mw-choice__box { border-color: var(--mw-field-hover); transform: translateY(-1px); }
.mw-choice__ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--mw-tint); color: var(--mw-accent);
  transition: background-color .2s, color .2s;
}
.mw-choice__ico .mw-ico { width: 18px; height: 18px; }
.mw-choice__text { flex: 1; min-width: 0; overflow-wrap: anywhere; hyphens: auto; color: var(--mw-ink); font-size: 14.5px; font-weight: 600; line-height: 1.35; }
.mw-choice__text small { display: block; margin-top: 2px; color: var(--mw-muted); font-size: 12px; font-weight: 500; }
.mw-choice__mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 22px; height: 22px;
  border: 1.5px solid var(--mw-field);
  background: var(--mw-surface); color: transparent;
  transition: all .25s var(--mw-ease);
}
.mw-choice__mark--radio { border-radius: 50%; }
.mw-choice__mark--checkbox { border-radius: 7px; }
.mw-choice__mark .mw-ico { width: 13px; height: 13px; stroke-width: 3; transform: scale(.4); transition: transform .3s var(--mw-ease); }
.mw-choice input:checked + .mw-choice__box {
  border-color: var(--mw-accent);
  background: var(--mw-checked);
  box-shadow: 0 8px 22px -12px rgba(106, 53, 232, .5);
}
.mw-choice input:checked + .mw-choice__box .mw-choice__ico { background: var(--mw-accent); color: #fff; }
.mw-choice input:checked + .mw-choice__box .mw-choice__mark,
.mw-gcard input:checked + .mw-gcard__box .mw-choice__mark { background: var(--mw-accent); border-color: var(--mw-accent); color: #fff; }
.mw-choice input:checked + .mw-choice__box .mw-choice__mark .mw-ico,
.mw-gcard input:checked + .mw-gcard__box .mw-choice__mark .mw-ico { transform: scale(1); }
.mw-choice input:focus-visible + .mw-choice__box,
.mw-gcard input:focus-visible + .mw-gcard__box,
.mw-consent input:focus-visible + .mw-consent__mark { outline: 2px solid var(--mw-accent); outline-offset: 3px; }
.mw-fld.is-invalid .mw-choice__box, .mw-fld.is-invalid .mw-gcard__box { border-color: rgba(214, 69, 69, .45); }

/* Compteur (passagers) */
.mw-stepper {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 14px 14px 16px;
  border: 1.5px solid var(--mw-field); border-radius: 18px;
  background: var(--mw-surface);
}
.mw-stepper__ico {
  display: grid; place-items: center; flex-shrink: 0;
  width: 42px; height: 42px; border-radius: 13px;
  background: var(--mw-tint); color: var(--mw-accent);
}
.mw-stepper__ico .mw-ico { width: 20px; height: 20px; }
.mw-stepper__text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.mw-stepper__text strong { color: var(--mw-ink); font-size: 15.5px; font-weight: 650; }
.mw-stepper__text small { color: var(--mw-muted); font-size: 13px; }
.mw-stepper__ctrl { display: flex; align-items: center; gap: 6px; }
.moon-wz .mw-stepper__ctrl input {
  width: 44px; height: auto; padding: 0;
  border: 0; background: none;
  color: var(--mw-ink); font-size: 22px; font-weight: 750; text-align: center;
  -moz-appearance: textfield; appearance: textfield;
}
.mw-stepper__ctrl input::-webkit-inner-spin-button, .mw-stepper__ctrl input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.moon-wz .mw-stepper__btn {
  display: grid; place-items: center;
  width: 44px; height: 44px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--mw-field); background: var(--mw-surface); color: var(--mw-accent);
  cursor: pointer;
  transition: border-color .2s, background-color .2s, color .2s, transform .15s;
}
.moon-wz .mw-stepper__btn:hover:not(:disabled) { border-color: var(--mw-accent); background: var(--mw-accent); color: #fff; }
.moon-wz .mw-stepper__btn:active:not(:disabled) { transform: scale(.94); }
.moon-wz .mw-stepper__btn:disabled { opacity: .35; cursor: not-allowed; }
.mw-stepper__btn .mw-ico { width: 18px; height: 18px; stroke-width: 2.2; }

/* Trajet (départ / destination) */
.mw-route {
  position: relative;
  padding: 10px 70px 10px 18px;
  border: 1.5px solid var(--mw-field); border-radius: 22px;
  background: var(--mw-surface);
  box-shadow: var(--mw-shadow-sm);
}
.mw-route__rail {
  position: absolute; left: 36px; top: 58px; bottom: 58px; width: 2px;
  background: repeating-linear-gradient(180deg, var(--mw-accent-light) 0 4px, transparent 4px 9px);
}
.mw-route__fld { padding: 8px 0; }
.mw-route__label { display: block; margin: 0 0 2px 52px; color: var(--mw-muted); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.mw-route__control { display: flex; align-items: center; gap: 16px; }
.moon-wz .mw-route__control input { flex: 1; min-width: 0; height: 44px; padding: 0 12px; border: 0; border-radius: 12px; background: transparent; font-size: 16.5px; font-weight: 600; }
.moon-wz .mw-route__control input:focus { background: var(--mw-tint); box-shadow: none; }
.mw-route__dot {
  position: relative; z-index: 1;
  display: grid; place-items: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 12px;
}
.mw-route__dot .mw-ico { width: 17px; height: 17px; }
.mw-route__dot--from { background: var(--mw-accent-soft); color: var(--mw-accent); }
.mw-route__dot--to { background: var(--mw-grad); color: #fff; box-shadow: 0 8px 18px -8px rgba(91, 43, 224, .7); }
.moon-wz .mw-route__map {
  display: grid; place-items: center; flex-shrink: 0;
  width: 38px; height: 38px; padding: 0; border-radius: 12px;
  border: 1.5px solid var(--mw-field); background: var(--mw-surface); color: var(--mw-accent);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.moon-wz .mw-route__map:hover { border-color: var(--mw-accent); background: var(--mw-accent-soft); }
.mw-route__map .mw-ico { width: 17px; height: 17px; }
.mw-route__sep { display: block; height: 1px; margin-left: 52px; background: var(--mw-line); }
.moon-wz .mw-route__swap {
  position: absolute; right: 16px; top: 50%; margin-top: -21px;
  display: grid; place-items: center;
  width: 42px; height: 42px; padding: 0; border-radius: 50%;
  border: 1.5px solid var(--mw-field); background: var(--mw-surface); color: var(--mw-accent);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s;
}
.moon-wz .mw-route__swap:hover { border-color: var(--mw-accent); box-shadow: 0 6px 16px -8px rgba(106, 53, 232, .6); }
.mw-route__swap .mw-ico { width: 18px; height: 18px; }
.mw-route .mw-fld__error { margin-left: 52px; }
.moon-wz .mw-route .mw-fld.is-invalid .mw-route__control input { background: var(--mw-danger-soft); }

.mw-quick { margin-top: 20px; }
.mw-quick__title { display: flex; align-items: center; gap: 8px; margin-bottom: 12px !important; color: var(--mw-muted); font-size: 13px; font-weight: 650; }
.mw-quick__title .mw-ico { width: 15px; height: 15px; color: var(--mw-accent); }
.mw-quick__list { display: flex; flex-wrap: wrap; gap: 8px; }
.moon-wz .mw-quick__chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  border: 1.5px solid var(--mw-field); border-radius: 999px;
  background: var(--mw-surface); color: var(--mw-ink);
  font-size: 13.5px; font-weight: 600;
  cursor: pointer;
  transition: border-color .2s, color .2s, background-color .2s;
}
.mw-quick__chip .mw-ico { width: 15px; height: 15px; color: var(--mw-accent); }
.moon-wz .mw-quick__chip:hover { border-color: var(--mw-accent); color: var(--mw-accent); background: var(--mw-accent-soft); }

/* Cartes des gammes (API Moon) */
.mw-gcards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.mw-gcard { position: relative; display: block; margin: 0; cursor: pointer; }
.mw-gcard__box {
  position: relative;
  display: flex; flex-direction: column; height: 100%;
  border: 1.5px solid var(--mw-field); border-radius: 20px;
  background: var(--mw-surface);
  overflow: hidden;
  transition: border-color .2s, box-shadow .3s, transform .3s var(--mw-ease);
}
.mw-gcard:hover .mw-gcard__box { transform: translateY(-3px); box-shadow: var(--mw-shadow); }
.mw-gcard__img { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--mw-tint); color: var(--mw-accent); }
.moon-wz .mw-gcard__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--mw-ease); }
.mw-gcard:hover .mw-gcard__img img { transform: scale(1.05); }
.mw-gcard__placeholder { width: 40px; height: 40px; opacity: .7; }
.mw-gcard__body { display: flex; align-items: flex-start; gap: 10px; padding: 14px 14px 16px; }
.mw-gcard__text { display: flex; flex-direction: column; min-width: 0; }
.mw-gcard__text strong { color: var(--mw-ink); font-size: 15px; font-weight: 700; }
.mw-gcard__text small {
  margin-top: 2px; color: var(--mw-muted); font-size: 12.5px; line-height: 1.45;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.mw-gcard__seats {
  position: absolute; left: 10px; top: 10px;
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .92); color: #120e24;
  font-size: 12px; font-weight: 700;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .1);
}
.mw-gcard__seats .mw-ico { width: 13px; height: 13px; }
.mw-gcard .mw-choice__mark { position: absolute; right: 10px; top: 10px; width: 26px; height: 26px; border-color: rgba(255, 255, 255, .9); background: rgba(255, 255, 255, .7); }
.mw-gcard input:checked + .mw-gcard__box {
  border-color: var(--mw-accent);
  box-shadow: 0 0 0 3px rgba(106, 53, 232, .15), var(--mw-shadow);
}
.mw-gstate { display: flex; align-items: center; gap: 10px; grid-column: 1 / -1; padding: 18px; border-radius: 16px; background: var(--mw-tint); color: var(--mw-muted); font-size: 14.5px; }
.mw-gstate .mw-ico { width: 18px; height: 18px; color: var(--mw-accent); }
.mw-gstate--error { color: var(--mw-danger); background: var(--mw-danger-soft); }
.mw-gstate--error .mw-ico { color: var(--mw-danger); }
.mw-gcards > .mw-btn { justify-self: start; }

/* Consentement */
.mw-consent {
  display: flex; align-items: flex-start; gap: 14px;
  margin: 0; padding: 18px;
  border: 1.5px solid var(--mw-field); border-radius: var(--mw-radius);
  background: var(--mw-surface);
  cursor: pointer;
  transition: border-color .2s;
}
.mw-consent:hover { border-color: var(--mw-field-hover); }
.mw-consent__mark {
  display: grid; place-items: center; flex-shrink: 0;
  width: 24px; height: 24px; border-radius: 8px;
  border: 1.5px solid var(--mw-field); color: transparent;
  transition: all .25s var(--mw-ease);
}
.mw-consent__mark .mw-ico { width: 14px; height: 14px; stroke-width: 3; }
.mw-consent input:checked + .mw-consent__mark { background: var(--mw-accent); border-color: var(--mw-accent); color: #fff; }
.mw-consent__text { color: var(--mw-ink-2); font-size: 14px; font-weight: 500; line-height: 1.6; }
.mw-consent__text a { color: var(--mw-accent); text-decoration: underline; text-underline-offset: 3px; }
.mw-consent__text b { color: var(--mw-accent); }
.mw-fld.is-invalid .mw-consent { border-color: var(--mw-danger); }

/* Récapitulatif */
.mw-recap { display: grid; gap: 14px; margin-bottom: 26px; }
.mw-recap__card {
  padding: 20px 22px;
  border: 1px solid var(--mw-line); border-radius: 20px;
  background: var(--mw-surface);
  box-shadow: var(--mw-shadow-sm);
}
.mw-recap__card header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.mw-recap__ico {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 10px;
  background: var(--mw-accent-soft); color: var(--mw-accent);
}
.mw-recap__ico .mw-ico { width: 17px; height: 17px; }
.mw-recap__card h4 { flex: 1; margin: 0; color: var(--mw-ink); font-family: var(--mw-font); font-size: 16px; font-weight: 700; }
.moon-wz .mw-recap__edit {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 999px;
  border: 1px solid var(--mw-line-strong); background: var(--mw-surface);
  color: var(--mw-ink); font-size: 13px; font-weight: 600;
  cursor: pointer; transition: border-color .2s, color .2s;
}
.mw-recap__edit .mw-ico { width: 14px; height: 14px; }
.moon-wz .mw-recap__edit:hover { border-color: var(--mw-accent); color: var(--mw-accent); }
.mw-recap dl { display: grid; }
.mw-recap__row { display: grid; grid-template-columns: minmax(140px, 36%) 1fr; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--mw-line); }
.mw-recap__row:first-child { border-top: 0; padding-top: 0; }
.mw-recap__row dt { color: var(--mw-muted); font-size: 13.5px; font-weight: 500; }
.mw-recap__row dd { color: var(--mw-ink); font-size: 14.5px; font-weight: 600; overflow-wrap: anywhere; }
.mw-recap__empty { color: var(--mw-muted); font-size: 14px; }

/* ---------- Navigation bas de formulaire ---------- */
.mw-nav {
  position: sticky; bottom: 0; z-index: 10;
  display: flex; align-items: center; gap: 16px;
  margin-top: 36px; padding: 18px 0 22px;
  background: linear-gradient(180deg, transparent, var(--mw-bg) 35%);
}
.mw-nav__hint { margin: 0 auto !important; color: var(--mw-muted); font-size: 13px; }
.mw-nav__hint kbd {
  padding: 3px 8px; border-radius: 6px;
  border: 1px solid var(--mw-line-strong); border-bottom-width: 2px;
  background: var(--mw-surface); font: inherit; font-size: 12px; font-weight: 600; color: var(--mw-ink);
  box-shadow: none;
}
.mw-nav__prev.is-hidden { visibility: hidden; }
.mw-nav__next { min-width: 190px; padding: 17px 28px; }
.mw-nav__next.is-final { min-width: 260px; }
.mw-btn.is-loading { pointer-events: none; opacity: .85; }
.mw-btn.is-loading .mw-ico { animation: mw-send 1s ease-in-out infinite; }
@keyframes mw-send { 50% { transform: translate(4px, -4px); opacity: .4; } }

/* ---------- Confirmation ---------- */
.mw-success { padding: 50px 0 60px; text-align: center; animation: mw-in .6s var(--mw-ease); }
.mw-success__badge {
  position: relative;
  display: grid; place-items: center;
  width: 112px; height: 112px; margin: 0 auto 30px;
  border-radius: 50%;
  background: var(--mw-grad);
  box-shadow: 0 24px 60px -16px rgba(91, 43, 224, .7);
}
.mw-success__badge::before {
  content: ""; position: absolute; inset: -14px;
  border-radius: 50%;
  border: 1.5px solid rgba(138, 92, 255, .3);
  animation: mw-ring 2.4s var(--mw-ease) infinite;
}
@keyframes mw-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
.mw-success__badge svg { width: 60px; height: 60px; fill: none; stroke: #fff; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.mw-success__badge circle { opacity: .25; stroke-dasharray: 151; stroke-dashoffset: 151; animation: mw-draw .8s .1s var(--mw-ease) forwards; }
.mw-success__badge path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: mw-draw .6s .5s var(--mw-ease) forwards; }
@keyframes mw-draw { to { stroke-dashoffset: 0; } }
.mw-success__title { color: var(--mw-ink); font-family: var(--mw-font); font-size: clamp(28px, 3.6vw, 40px); font-weight: 750; letter-spacing: -.03em; line-height: 1.15; outline: none; }
.mw-success__text { max-width: 480px; margin: 14px auto 0 !important; color: var(--mw-muted); font-size: 16.5px; }
.mw-success__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* Badge qui « rebondit » + éclat de confettis */
.mw-success:not([hidden]) .mw-success__badge { animation: mw-pop .7s cubic-bezier(.34, 1.56, .64, 1) both; }
@keyframes mw-pop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.mw-confetti { position: absolute; inset: 50% auto auto 50%; width: 0; height: 0; pointer-events: none; }
.mw-confetti i {
  position: absolute; left: -4px; top: -6px;
  width: 8px; height: 12px; border-radius: 2px;
  background: var(--c);
  opacity: 0;
  transform: rotate(var(--a)) translateY(0);
  animation: mw-burst 1.1s calc(.35s + var(--s)) cubic-bezier(.15, .7, .3, 1) forwards;
}
.mw-confetti i:nth-child(3n) { width: 7px; height: 7px; border-radius: 50%; }
@keyframes mw-burst {
  0% { opacity: 1; transform: rotate(var(--a)) translateY(-56px) rotate(0); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: rotate(var(--a)) translateY(calc(-1 * var(--d) - 56px)) rotate(240deg); }
}

/* Compte à rebours avant la redirection */
.mw-success__redirect { display: grid; justify-items: center; gap: 10px; margin: 22px auto 0 !important; color: var(--mw-muted); font-size: 14px; }
.mw-success__redirect strong { color: var(--mw-accent); font-variant-numeric: tabular-nums; }
.mw-success__timer { display: block; width: 180px; height: 4px; border-radius: 4px; background: var(--mw-accent-soft); overflow: hidden; }
.mw-success__timer span { display: block; height: 100%; border-radius: inherit; background: var(--mw-grad); transform-origin: 0 50%; animation: mw-timer var(--t) linear forwards; }
@keyframes mw-timer { from { transform: scaleX(1); } to { transform: scaleX(0); } }
html[data-theme="dark"] .mw-success__timer { background: rgba(169, 139, 255, .16); }

/* ==========================================================
   Formulaire court sur une page (newsletter, contact)
   ========================================================== */
.mw-card {
  position: relative;
  padding: clamp(28px, 4vw, 48px);
  border: 1px solid var(--mw-line); border-radius: 28px;
  background: var(--mw-surface);
  box-shadow: var(--mw-shadow);
  overflow: hidden;
  isolation: isolate;
}
.mw-card::before {
  content: ""; position: absolute; z-index: -1;
  width: 420px; height: 420px; right: -200px; top: -240px;
  background: radial-gradient(circle, rgba(138, 92, 255, .14), transparent 65%);
}
.mw-card__head { margin-bottom: 30px; }
.mw-card .mw-title { font-size: clamp(26px, 3vw, 34px); }
.mw-card__foot {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px;
  width: 100%; margin-top: 8px;
}
.mw-card__privacy { display: flex; align-items: center; gap: 8px; color: var(--mw-muted); font-size: 13px; }
.mw-card__privacy .mw-ico { width: 15px; height: 15px; color: var(--mw-accent); }
.mw-card .mw-success { padding: 20px 0 10px; }
.mw-card .mw-fields + .mw-card__foot { margin-top: 26px; }

/* ==========================================================
   Sélection sur la carte (Mapbox)
   ========================================================== */
html.mw-lock { overflow: hidden; }
.mw-map {
  position: fixed; inset: 0; z-index: 100000;
  max-width: none; margin: 0;
  display: none; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(14, 11, 31, .6);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-family: var(--font-sans, "Plus Jakarta Sans", system-ui, sans-serif);
}
.mw-map.is-open { display: flex; animation: mw-fade .3s ease; }
@keyframes mw-fade { from { opacity: 0; } }
.mw-map__panel {
  display: flex; flex-direction: column; gap: 12px;
  width: min(820px, 100%); max-height: calc(100vh - 40px);
  padding: 22px;
  border-radius: 26px;
  background: var(--surface, #fff); color: var(--ink, #120e24);
  box-shadow: 0 40px 120px -20px rgba(14, 11, 31, .5);
  animation: mw-pop .45s cubic-bezier(.22, .8, .24, 1);
}
@keyframes mw-pop { from { opacity: 0; transform: translateY(20px) scale(.97); } }
.mw-map__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.mw-map__head h3 { display: flex; align-items: center; gap: 10px; margin: 0; color: inherit; font-size: 19px; font-weight: 750; letter-spacing: -.02em; }
.mw-map__head h3 .mw-ico { width: 20px; height: 20px; color: var(--violet, #6a35e8); }
.mw-map__close {
  display: grid; place-items: center;
  width: 40px; height: 40px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line-strong, rgba(38, 24, 92, .16)); background: transparent; color: inherit;
  cursor: pointer;
}
.mw-map__close .mw-ico { width: 18px; height: 18px; }
.mw-map__search { position: relative; display: flex; gap: 8px; }
.mw-map__search-ico { position: absolute; left: 15px; top: 14px; width: 18px; height: 18px; color: var(--muted, #6a6580); pointer-events: none; }
.mw-map__search input {
  flex: 1; min-width: 0; height: 46px; padding: 0 14px 0 42px;
  border: 1.5px solid #e3def0; border-radius: 14px;
  background: var(--surface, #fff); color: inherit; font: inherit; font-size: 15px;
  outline: none;
}
html[data-theme="dark"] .mw-map__search input { border-color: var(--line-strong, #374151); }
.mw-map__search input:focus { border-color: var(--violet, #6a35e8); box-shadow: 0 0 0 4px rgba(106, 53, 232, .12); }
.mw-map__results { display: grid; gap: 4px; max-height: 190px; overflow: auto; }
.mw-map__results button {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border: 0; border-radius: 12px;
  background: var(--tint, #f3f0fb); color: inherit; font: inherit; font-size: 14px; text-align: left;
  cursor: pointer;
}
.mw-map__results button:hover { color: var(--violet, #6a35e8); }
.mw-map__results .mw-ico { width: 16px; height: 16px; color: var(--violet, #6a35e8); }
.mw-map__msg { margin: 0; padding: 10px 12px; color: var(--muted, #6a6580); font-size: 14px; }
.mw-map__canvas { flex: 1; min-height: 340px; border-radius: 18px; overflow: hidden; background: var(--tint, #f3f0fb); }
.mw-map__selected { margin: 0; padding: 12px 14px; border-radius: 12px; background: var(--tint, #f3f0fb); color: var(--ink-2, #2b2640); font-size: 14px; font-weight: 600; }
.mw-map__foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }
.mw-map .mw-btn--ghost { background: transparent; color: inherit; border-color: var(--line-strong, rgba(38, 24, 92, .16)); }

/* ==========================================================
   Responsive
   ========================================================== */
@media (max-width: 1180px) {
  .mw-gcards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .mw-shell { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .mw-aside { position: relative; top: 0; min-height: 0; max-height: none; padding: 28px 24px; border-radius: 24px; }
  .mw-aside__intro { margin-bottom: 0; }
  .mw-aside .mw-title { font-size: 26px; }
  .mw-steps, .mw-aside__foot { display: none; }
  .mw-brief--split { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 640px) {
  .mw-step__ico { width: 50px; height: 50px; border-radius: 16px; margin-bottom: 16px; }
  .mw-step__head { margin-bottom: 24px; }
  .mw-step__desc { font-size: 15px; }
  .mw-fields > .mw-fld--half { flex-basis: 100%; }
  .mw-choices--3, .mw-choices--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mw-choices--2 { grid-template-columns: minmax(0, 1fr); }
  /* Tuiles étroites : la sélection reste visible par la bordure et l'icône colorées */
  .mw-choices--3 .mw-choice__mark, .mw-choices--4 .mw-choice__mark { display: none; }
  .mw-choices--3 .mw-choice__box, .mw-choices--4 .mw-choice__box { gap: 10px; padding: 10px 12px; }
  .mw-choices--3 .mw-choice__ico, .mw-choices--4 .mw-choice__ico { width: 32px; height: 32px; }
  .mw-choices--3 .mw-choice__text, .mw-choices--4 .mw-choice__text { font-size: 13.5px; }
  .mw-gcards { grid-template-columns: minmax(0, 1fr); }
  .mw-gcard__box { flex-direction: row; }
  .mw-gcard__img { flex: 0 0 38%; aspect-ratio: auto; min-height: 110px; }
  .mw-gcard__body { padding: 14px 40px 14px 14px; }
  .mw-gcard__seats { top: auto; bottom: 10px; }
  .mw-gcard .mw-choice__mark { top: 12px; right: 12px; border-color: var(--mw-field); background: var(--mw-surface); }
  .mw-route { padding: 8px 60px 8px 12px; }
  .mw-route__rail { left: 29px; }
  .mw-route__label, .mw-route__sep, .mw-route .mw-fld__error { margin-left: 48px; }
  .mw-route__control { gap: 10px; }
  .moon-wz .mw-route__swap { right: 10px; }
  .mw-recap__row { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .mw-nav { gap: 10px; padding: 14px 0 16px; }
  .mw-nav__hint { display: none; }
  .mw-nav__prev { padding: 16px; }
  .mw-nav__prev span { display: none; }
  .mw-nav__prev.is-hidden { display: none; }
  .mw-nav__next, .mw-nav__next.is-final { flex: 1; min-width: 0; }
  .mw-success__actions .mw-btn, .mw-card__foot .mw-btn { width: 100%; }
  .mw-card { border-radius: 22px; }
  .mw-brief { border-radius: 22px; padding: 24px 20px; }
  .mw-brief__note { padding: 16px; }
  .mw-map { padding: 0; }
  .mw-map__panel { height: 100%; max-height: none; border-radius: 0; padding: 16px; }
  .mw-map__search .mw-btn span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .moon-wz *, .moon-wz *::before, .moon-wz *::after, .mw-map, .mw-map * { animation: none !important; transition-duration: .01ms !important; }
}

/* Polices de l'application : Sora (titres, boutons, montants) + Inter (texte) */
.mw-title, .mw-step__title, .mw-success__title, .mw-btn, .mw-eyebrow, .mw-step__kicker, .mw-steps__text strong,
.mw-recap__card h4, .mw-gcard__text strong, .mw-stepper__text strong, .mw-stepper__ctrl input, .mw-map__head h3 { font-family: var(--mw-title); }

/* Titres protégés contre les styles globaux d'un kit Elementor (« .elementor-kit-XXX h2 ») */
html body .moon-wz .mw-title, html body .moon-wz .mw-step__title, html body .moon-wz .mw-success__title,
html body .moon-wz .mw-recap__card h4, html body .mw-map .mw-map__head h3 { font-family: var(--mw-title); color: var(--mw-ink); }
html body .moon-wz .mw-aside .mw-title { color: #fff; }
html body .moon-wz .mw-title em { font-family: var(--mw-serif); color: var(--mw-accent); }
html body .moon-wz .mw-aside .mw-title em { color: var(--mw-accent-light); }

/* Libellés, champs et boutons protégés contre un kit Elementor qui impose sa couleur de texte
   (« .elementor-kit-XXX label / input / button:hover { color: … } ») : illisible en thème sombre. */
html body .moon-wz .mw-fld__label { color: var(--mw-ink); }
html body .moon-wz .mw-route__label { color: var(--mw-muted); }
html body .moon-wz input:not([type="button"]):not([type="submit"]), html body .moon-wz textarea,
html body .mw-map input:not([type="button"]):not([type="submit"]) { color: var(--mw-ink); }
html body .moon-wz .mw-btn--primary, html body .moon-wz .mw-btn--primary:hover, html body .moon-wz .mw-btn--primary:focus { color: #fff; }
html body .moon-wz .mw-btn--ghost, html body .moon-wz .mw-btn--ghost:focus { color: var(--mw-ink); }
html body .moon-wz .mw-btn--ghost:hover { color: var(--mw-accent); }

/* ==========================================================
   Réservation façon app MoonApp ([moon_reservation_chauffeur_2]) :
   suggestions d'adresse, carte du trajet, passagers, options de
   confort, Moon Walk et carte « Validation de votre course ».
   ========================================================== */

/* Suggestions d'adresse */
.mw-route--search .mw-route__fld { position: relative; }
.mw-route.is-searching { z-index: 30; }
.mw-sugg {
  position: absolute; left: 40px; right: -52px; top: calc(100% - 6px); z-index: 40;
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; max-height: 360px; overflow: auto;
  padding: 6px; border: 1px solid var(--mw-line-strong); border-radius: 18px;
  background: var(--mw-surface);
  box-shadow: 0 24px 60px -18px rgba(18, 14, 36, .35);
  animation: mw-pop .25s var(--mw-ease);
}
.moon-wz .mw-sugg__item {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; border: 0; border-radius: 12px;
  background: transparent; color: var(--mw-ink); text-align: left; cursor: pointer;
}
.moon-wz .mw-sugg__item:hover, .moon-wz .mw-sugg__item.is-active { background: var(--mw-tint); }
.mw-sugg__ico { display: grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; border-radius: 50%; background: var(--mw-accent-soft); color: var(--mw-accent); }
.mw-sugg__ico .mw-ico { width: 17px; height: 17px; }
.mw-sugg__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mw-sugg__text strong, .mw-sugg__text small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.mw-sugg__text strong { color: var(--mw-ink); font-size: 14.5px; font-weight: 650; }
.mw-sugg__text small { color: var(--mw-muted); font-size: 12.5px; }
.mw-sugg__chev { width: 14px; height: 14px; color: var(--mw-line-strong); }
.mw-sugg__msg { display: flex; align-items: center; gap: 10px; margin: 0; padding: 12px; color: var(--mw-muted); font-size: 14px; }
.mw-sugg__spin {
  flex: 0 0 16px; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid var(--mw-accent-soft); border-top-color: var(--mw-accent);
  animation: mw-spin .8s linear infinite;
}
@keyframes mw-spin { to { transform: rotate(360deg); } }
.moon-wz .mw-quick__chip.is-loading { opacity: .6; cursor: progress; }

/* Carte du trajet (même rendu que l'app) */
.mw-rmap {
  position: relative; height: 320px; margin-top: 20px;
  border: 1.5px solid var(--mw-field); border-radius: 22px; overflow: hidden;
  background: var(--mw-tint); box-shadow: var(--mw-shadow-sm);
}
/* Plus spécifique que .mapboxgl-map { position: relative } de mapbox-gl.css (sinon hauteur 0). */
.mw-rmap .mw-rmap__canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.mw-rmap__info {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  display: inline-flex; align-items: center; gap: 6px; margin: 0;
  padding: 8px 12px; border-radius: 999px;
  background: var(--mw-surface); color: var(--mw-ink); box-shadow: var(--mw-shadow);
  font-size: 13.5px; font-weight: 700;
}
.mw-rmap__info .mw-ico { width: 15px; height: 15px; color: var(--mw-accent); }
.mw-rmap__info i { width: 1px; height: 14px; margin: 0 4px; background: var(--mw-line-strong); }
.mw-pin { display: flex; flex-direction: column; align-items: center; pointer-events: none; }
.mw-pin__label { padding: 6px 10px; border-radius: 10px; color: #fff; font: 800 11px/1.2 var(--mw-font, system-ui, sans-serif); white-space: nowrap; }
.mw-pin__tip { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 10px solid; }
.mw-pin__dot { width: 8px; height: 8px; margin-top: 2px; border-radius: 50%; }

/* Nombre de passagers */
.mw-pax { display: flex; flex-wrap: wrap; gap: 8px; }
.moon-wz .mw-pax__chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px; border: 1.5px solid var(--mw-field); border-radius: 20px;
  background: var(--mw-surface); color: var(--mw-ink); font-weight: 700; cursor: pointer;
  transition: border-color .2s, background .2s, color .2s;
}
.mw-pax__chip .mw-ico { width: 16px; height: 16px; color: var(--mw-muted); }
.moon-wz .mw-pax__chip:hover { border-color: var(--mw-field-hover); }
.moon-wz .mw-pax__chip.is-active { border-color: var(--mw-accent); background: var(--mw-accent-soft); color: var(--mw-accent); }
.mw-pax__chip.is-active .mw-ico { color: var(--mw-accent); }

/* Gamme trop petite pour le nombre de passagers : grisée, comme l'app */
.mw-gcard.is-inactive { cursor: not-allowed; }
.mw-gcard.is-inactive .mw-gcard__box { opacity: .55; filter: grayscale(.7); box-shadow: none; transform: none; }
.mw-gcard.is-inactive .mw-choice__mark { display: none; }
.mw-gcard__off {
  display: inline-block; margin-left: 8px; padding: 2px 8px; border: 1px solid var(--mw-line-strong); border-radius: 999px;
  color: var(--mw-muted); font-family: var(--mw-font); font-size: 11px; font-style: normal; font-weight: 600; vertical-align: middle;
}

/* Options de confort */
.mw-copts { display: grid; border: 1.5px solid var(--mw-field); border-radius: 18px; overflow: hidden; background: var(--mw-surface); }
.mw-copts > .mw-gstate, .mw-copts > .mw-btn { margin: 12px; }
.mw-copt { display: block; margin: 0; cursor: pointer; }
.mw-copt + .mw-copt { border-top: 1px solid var(--mw-line); }
.mw-copt input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.mw-copt__box { display: flex; align-items: center; gap: 14px; padding: 16px 18px; transition: background .2s; }
.mw-copt:hover .mw-copt__box { background: var(--mw-tint); }
.mw-copt__text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.mw-copt__text strong { color: var(--mw-ink); font-size: 15px; font-weight: 600; }
.mw-copt__text small { color: var(--mw-muted); font-size: 13px; }
.mw-copt__radio { position: relative; flex: 0 0 22px; width: 22px; height: 22px; border: 2px solid var(--mw-line-strong); border-radius: 50%; }
.mw-copt input:checked + .mw-copt__box { background: var(--mw-accent-soft); }
.mw-copt input:checked + .mw-copt__box strong { color: var(--mw-accent); font-weight: 700; }
.mw-copt input:checked + .mw-copt__box .mw-copt__radio { border-color: var(--mw-accent); }
.mw-copt input:checked + .mw-copt__box .mw-copt__radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--mw-accent); }
.mw-copt input:focus-visible + .mw-copt__box { box-shadow: inset 0 0 0 2px var(--mw-accent); }
.mw-copts__total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-top: 14px; padding: 14px 18px; border-radius: 14px; background: var(--mw-tint);
  color: var(--mw-muted); font-size: 14px;
}
.mw-copts__total strong { color: var(--mw-accent); font-family: var(--mw-title); font-size: 17px; }

/* Montant Moon Walk */
.mw-mwalk { display: grid; gap: 6px; padding: 20px; border: 1.5px solid var(--mw-accent-light); border-radius: 18px; background: var(--mw-accent-soft); }
html[data-theme="dark"] .mw-mwalk { background: rgba(169, 139, 255, .08); }
.mw-mwalk__hint { margin: 0; color: var(--mw-muted); font-size: 13.5px; font-weight: 500; }
.mw-mwalk label.mw-mwalk__hint { margin-top: 10px; }
.mw-mwalk__price { margin: 0 0 4px; color: var(--mw-ink); font-family: var(--mw-title); font-size: 26px; font-weight: 800; }

/* Validation de votre course : prix estimé */
.mw-estimate { margin-bottom: 22px; }
.mw-estimate > .mw-btn { margin-top: 10px; }
.mw-est__summary {
  display: flex; align-items: center; gap: 16px;
  padding: 18px; border: 1.5px solid var(--mw-accent); border-radius: 20px;
  background: var(--mw-surface); box-shadow: 0 0 0 3px rgba(106, 53, 232, .1), var(--mw-shadow-sm);
}
.mw-est__img { display: grid; place-items: center; flex: 0 0 96px; width: 96px; height: 68px; overflow: hidden; border-radius: 14px; background: var(--mw-tint); color: var(--mw-accent); }
.moon-wz .mw-est__img img { width: 100%; height: 100%; object-fit: cover; }
.mw-est__img .mw-ico { width: 30px; height: 30px; }
.mw-est__info { display: flex; flex-direction: column; flex: 1; min-width: 0; gap: 2px; }
.mw-est__info strong { color: var(--mw-ink); font-family: var(--mw-title); font-size: 16px; font-weight: 700; }
.mw-est__info small { color: var(--mw-muted); font-size: 13px; }
.mw-est__info small.is-accent { color: var(--mw-accent); font-weight: 600; }
.mw-est__price { display: flex; flex-direction: column; align-items: flex-end; text-align: right; }
.mw-est__price strong { color: var(--mw-ink); font-family: var(--mw-title); font-size: 28px; font-weight: 800; line-height: 1.1; white-space: nowrap; }
.mw-est__price small { color: var(--mw-accent); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.mw-est__details { display: grid; margin-top: 12px; padding: 6px 16px; border-radius: 18px; background: var(--mw-tint); }
.mw-est__row { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.mw-est__row + .mw-est__row { border-top: 1px solid var(--mw-line); }
.mw-est__ico { display: grid; place-items: center; flex: 0 0 30px; width: 30px; height: 30px; border-radius: 50%; background: var(--mw-accent-soft); color: var(--mw-accent); }
.mw-est__ico .mw-ico { width: 15px; height: 15px; }
.mw-est__label { flex: 1; color: var(--mw-muted); font-size: 14px; }
.mw-est__row strong { color: var(--mw-ink); font-size: 14.5px; font-weight: 700; }
.mw-est__note { display: flex; align-items: center; gap: 8px; margin: 10px 4px 0; color: var(--mw-muted); font-size: 12.5px; }
.mw-est__note .mw-ico { width: 14px; height: 14px; color: var(--mw-accent); }

/* Résultats du sélecteur sur carte : nom + adresse */
.mw-map__results button span { display: flex; flex-direction: column; min-width: 0; }
.mw-map__results button strong { font-size: 14px; font-weight: 650; }
.mw-map__results button small { color: var(--muted, #6a6580); font-size: 12.5px; }

@media (max-width: 640px) {
  .mw-sugg { left: -4px; right: -52px; }
  .mw-rmap { height: 260px; border-radius: 18px; }
  .mw-est__summary { flex-wrap: wrap; padding: 14px; }
  .mw-est__img { flex-basis: 76px; width: 76px; height: 56px; }
  .mw-est__price { flex-basis: 100%; flex-direction: row; align-items: baseline; justify-content: space-between; }
}
