html {
  background-color: #f4c000;
}
/* ==============================
   RESET DE BASE
   ============================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* ==============================
   THEME SOWASH – PALETTE
   ============================== */
:root {
  --bg-base: #091c25;
  --bg-alt: #0d2937;

  --primary: #186d8d;
  --primary-soft: rgba(24, 109, 141, 0.14);

  --accent: #fedb33;
  --accent-soft: rgba(254, 219, 51, 0.18);

  --text-main: #f5f7fb;
  --text-muted: rgba(245, 247, 251, 0.72);

  --card-bg: rgba(7, 19, 29, 0.78);
  --card-strong: rgba(12, 33, 48, 0.34);
  --card-border: rgba(150, 193, 215, 0.25);

  --shadow-soft: 0 16px 40px rgba(0, 0, 0, 0.45);
  --shadow-strong: 0 22px 70px rgba(0, 0, 0, 0.75);

  --radius-lg: 22px;
  --radius-md: 16px;
  --radius-sm: 12px;

  --error: #ff4b5c;
}

/* ==============================
   BODY & FOND GLOBAL
   ============================== */
body {
  font-family: 'Urbanist', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text-main);
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(900px 700px at 10% 0%, rgba(24, 109, 141, 0.6), transparent 60%),
    radial-gradient(800px 600px at 90% 100%, rgba(254, 219, 51, 0.45), transparent 55%),
    linear-gradient(145deg, #02070c 0%, var(--bg-base) 40%, #02070c 100%);
}

/* Légère texture pour casser l’aplat */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  mix-blend-mode: soft-light;
  z-index: -1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.35'/%3E%3C/svg%3E");
}

/* ==============================
   CONTAINER PRINCIPAL
   ============================== */
.page {
  padding: 22px 18px 30px;
  max-width: 980px;
  margin: 0 auto;
}

/* Animation entrée */
.fade-in {
  opacity: 0;
  transform: translateY(26px);
  animation: fadeSlide 0.6s ease forwards;
}

@keyframes fadeSlide {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==============================
   BOUTON RETOUR
   ============================== */
.back-btn {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;

  background: radial-gradient(circle at 10% 0%, rgba(254, 219, 51, 0.25), transparent 60%),
              rgba(3, 14, 24, 0.9);
  border: 1px solid rgba(254, 219, 51, 0.35);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  color: var(--text-main);
  font-size: 1.8rem;
  font-weight: 900;

  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
  margin-bottom: 14px;
}

.back-btn:hover {
  transform: translateX(-3px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7);
}

/* ==============================
   TITRE PRINCIPAL
   ============================== */
.main-title {
  font-weight: 900;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.main-title::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  margin-top: 6px;
  background: linear-gradient(90deg, var(--accent), var(--primary));
}

/* ==============================
   BARRE D’ÉTAPES
   ============================== */
.steps {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 18px;
}

.step {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;

  font-weight: 800;
  font-size: 0.95rem;

  background: rgba(7, 25, 39, 0.9);
  border: 1px solid rgba(150, 193, 215, 0.5);
  color: rgba(245, 247, 251, 0.6);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.65);

  opacity: 0.55;
  transition: 0.18s ease;
}

.step.active {
  opacity: 1;
  color: #010308;
  border-color: var(--accent);
  background: radial-gradient(circle at 20% 0%, rgba(254, 219, 51, 0.8), rgba(254, 219, 51, 0.9));
  box-shadow: 0 16px 46px rgba(254, 219, 51, 0.55);
}

.line {
  height: 2px;
  flex: 1;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(24, 109, 141, 0.15), rgba(254, 219, 51, 0.6));
  opacity: 0.9;
}

/* ==============================
   CARDS / PANELS
   ============================== */
.card {
  border-radius: var(--radius-lg);
  padding: 18px 18px 20px;
  margin-bottom: 18px;

  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.card.step-panel.active {
  background: var(--card-strong);
}

/* Affichage/masquage des panneaux */
.step-panel {
  display: none;
}
.step-panel.active {
  display: block;
}

/* ==============================
   GRILLE / LAYOUT
   ============================== */
.grid-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

.grid-2 .span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 860px) {
  .grid-2 {
    grid-template-columns: 1fr;
  }
}

/* ==============================
   LABELS + INPUTS
   ============================== */
.label {
  display: block;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--text-main);
}

.input {
  width: 100%;
  padding: 13px 14px;
  border-radius: 14px;

  border: 1px solid rgba(150, 193, 215, 0.55);
  background: rgba(5, 18, 28, 0.96);
  color: var(--text-main);

  font-size: 1rem;
  outline: none;

  transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, transform 0.08s ease;
}

.input::placeholder {
  color: rgba(245, 247, 251, 0.45);
}

.input:focus {
  border-color: var(--accent);
  background: #07131f;
  box-shadow: 0 0 0 1px rgba(254, 219, 51, 0.7), 0 0 0 8px rgba(254, 219, 51, 0.16);
  transform: translateY(-1px);
}

textarea.input {
  resize: vertical;
  min-height: 90px;
}

/* Icône du calendrier du champ date – teinte jaune SoWash */
input[type="date"].input {
  color: var(--text-main);
}

/* WebKit (Chrome, Edge, Safari...) */
input[type="date"].input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  filter: invert(86%) sepia(72%) saturate(775%) hue-rotate(359deg) brightness(102%) contrast(101%);
}


/* Hints + erreurs */
.hint {
  margin-top: 6px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Messages de statut carnet / coupon en jaune SoWash */
#carnetStatus,
#couponStatus {
  color: #fedb33;
  font-weight: 600;
}


.error-msg {
  color: var(--error);
  font-weight: 600;
}

/* ==============================
   ACTIONS & BOUTONS
   ============================== */
.actions {
  margin-top: 16px;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.btn {
  border-radius: 14px;
  border: 1px solid rgba(150, 193, 215, 0.5);
  background: rgba(5, 19, 29, 0.9);
  color: var(--text-main);

  padding: 11px 18px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;

  transition: transform 0.15s ease, box-shadow 0.18s ease, background-color 0.15s ease, border-color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
  background: rgba(10, 32, 48, 0.95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

.btn:active {
  transform: translateY(0);
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.7);
}

.btn.primary {
  border-color: rgba(254, 219, 51, 0.85);
  background: linear-gradient(160deg, #fedb33, #f7c609);
  color: #050608;
  box-shadow: 0 18px 50px rgba(254, 219, 51, 0.6);
}

.btn.primary:hover {
  box-shadow: 0 22px 60px rgba(254, 219, 51, 0.75);
}

/* Boutons étroits en inline (code carnet/coupon) */
.inline {
  display: flex;
  gap: 10px;
}
.inline .btn {
  white-space: nowrap;
}

/* ==============================
   VOLET DÉROULANT CODE (CARNET / COUPON)
   ============================== */
.code-toggle {
  width: 100%;
  border-radius: 16px;
  border: 1px solid rgba(150, 193, 215, 0.55);
  background: rgba(5, 18, 28, 0.96);
  color: var(--text-main);
  padding: 11px 13px;
  font-weight: 800;
  font-size: 0.98rem;
  cursor: pointer;

  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;

  transition: transform 0.15s ease, box-shadow 0.18s ease, background-color 0.15s ease, border-color 0.18s ease;
}

.code-toggle:hover {
  transform: translateY(-1px);
  background: rgba(10, 32, 48, 0.95);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
  border-color: var(--accent);
}

.code-toggle-icon {
  font-size: 1rem;
}

/* Panel replié/déplié */
.code-panel {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height 0.3s ease, opacity 0.25s ease, transform 0.25s ease;
}

.code-panel.open {
  max-height: 320px; /* suffisant pour le contenu, ajuste si besoin */
  opacity: 1;
  transform: translateY(0);
  margin-top: 8px;
}
/* ==============================
   ROULETTE HORAIRE
   ============================== */
.wheel-wrap {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 16px;
  align-items: flex-start;
}

@media (max-width: 860px) {
  .wheel-wrap {
    grid-template-columns: 1fr;
  }
}

.wheel {
  position: relative;
  border-radius: 18px;
  height: 220px;
  overflow: hidden;

  border: 1px solid rgba(150, 193, 215, 0.55);
  background: radial-gradient(circle at 50% 0%, rgba(24, 109, 141, 0.3), rgba(4, 15, 24, 0.98));
  box-shadow: var(--shadow-soft);
}

.wheel-list {
  list-style: none;
  height: 220px;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  padding: 90px 0;
  scrollbar-width: none;
}
.wheel-list::-webkit-scrollbar {
  display: none;
}

.wheel-list li {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  scroll-snap-align: center;
  opacity: 0.3;
  color: var(--text-main);
  transition: 0.15s ease;
}

.wheel-list li.active {
  opacity: 1;
  transform: scale(1.07);
  color: var(--accent);
}

.wheel-overlay {
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 46px;
  pointer-events: none;
  border-top: 1px solid rgba(254, 219, 51, 0.5);
  border-bottom: 1px solid rgba(254, 219, 51, 0.5);
  box-shadow: 0 0 40px rgba(0, 0, 0, 0.8) inset;
}

/* Heure sélectionnée */
.wheel-side .pill {
  border-radius: 18px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;

  background: rgba(6, 20, 32, 0.98);
  border: 1px solid rgba(150, 193, 215, 0.7);
  box-shadow: 0 14px 38px rgba(0, 0, 0, 0.7);
}

.pill-label {
  color: var(--text-muted);
  font-weight: 700;
}
.pill-value {
  font-weight: 900;
  font-size: 1.05rem;
}

/* ==============================
   BLOCS (TYPE LAVAGE / OPTIONS)
   ============================== */
.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 18px;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

.block {
  border-radius: 18px;
  padding: 14px 14px 12px;

  background: rgba(5, 18, 28, 0.96);
  border: 1px solid rgba(150, 193, 215, 0.4);
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.7);
}

.block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.block-title {
  font-weight: 900;
  font-size: 1.12rem;
}

/* Bouton aide (carnet) */
.help {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-weight: 900;
  cursor: pointer;

  background: rgba(6, 21, 34, 0.96);
  border: 1px solid rgba(150, 193, 215, 0.8);
  color: var(--text-main);

  transition: 0.16s ease;
}
.help:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65);
}

/* ==============================
   CHOIX (RADIOS / CHECKBOXES)
   ============================== */
.choice {
  border-radius: 16px;
  padding: 11px 12px;
  margin-bottom: 10px;
  cursor: pointer;
  user-select: none;

  background: rgba(7, 23, 36, 0.96);
  border: 1px solid rgba(150, 193, 215, 0.45);

  transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.15s ease;
}

.radio-list .choice,
.check-list .choice {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  align-items: center;
  column-gap: 10px;
}

.choice input {
  margin-right: 4px;
  width: 18px;
  height: 18px;
}

.choice-main {
  font-weight: 800;
}

.choice-price {
  font-weight: 900;
  color: var(--accent);
}

.choice:hover {
  transform: translateY(-1px);
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(24, 109, 141, 0.45), rgba(7, 23, 36, 0.98));
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.9);
}

/* ==============================
   DIVERS
   ============================== */
.divider {
  height: 1px;
  background: rgba(150, 193, 215, 0.45);
  margin: 12px 0;
  border: none;
}

/* Compteur carnet */
.counter {
  margin-top: 10px;
  border-radius: 16px;
  padding: 9px 11px;
  display: flex;
  justify-content: space-between;
  align-items: center;

  background: rgba(5, 18, 28, 0.96);
  border: 1px solid rgba(150, 193, 215, 0.7);
}

/* Total intermédiaire */
.total-box {
  margin-top: 12px;
  border-radius: 18px;
  padding: 11px 14px;

  background: radial-gradient(circle at 0 0, rgba(254, 219, 51, 0.28), rgba(7, 22, 35, 0.98));
  border: 1px solid rgba(254, 219, 51, 0.7);

  display: flex;
  align-items: center;
  justify-content: space-between;

  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.9);
}
.total-box b {
  font-size: 1.12rem;
}

/* ==============================
   RÉCAPITULATIF (SUMMARY)
   ============================== */
.summary {
  border-radius: 18px;
  padding: 13px 14px;
  line-height: 1.7;

  background: rgba(5, 18, 28, 0.98);
  border: 1px solid rgba(150, 193, 215, 0.6);
  box-shadow: 0 18px 55px rgba(0, 0, 0, 0.85);
}

.summary .row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.96rem;
}

.summary .row + .row {
  margin-top: 2px;
}

.summary b {
  font-weight: 900;
}

.summary .muted {
  color: var(--text-muted);
}

/* ==============================
   PAYBAR (TOTAL + BOUTONS PAIEMENT)
   ============================== */
.paybar {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.pay-total {
  border-radius: 18px;
  padding: 9px 12px;
  display: flex;
  gap: 10px;
  align-items: center;

  background: radial-gradient(circle at 0 0, rgba(254, 219, 51, 0.22), rgba(5, 18, 28, 0.98));
  border: 1px solid rgba(254, 219, 51, 0.7);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.9);
}

.pay-total span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.pay-total b {
  font-size: 1.1rem;
}

/* ==============================
   MODAL (INFO CARNET)
   ============================== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.62);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 50;
}

.modal.show {
  display: flex;
}

.modal-card {
  width: min(520px, 100%);
  border-radius: 22px;
  padding: 16px 16px 14px;

  background: rgba(7, 20, 30, 0.98);
  border: 1px solid rgba(150, 193, 215, 0.8);
  box-shadow: var(--shadow-strong);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.modal-head h3 {
  font-weight: 900;
  font-size: 1.1rem;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 14px;
  font-weight: 900;
  cursor: pointer;

  background: rgba(5, 18, 28, 0.96);
  border: 1px solid rgba(150, 193, 215, 0.8);
  color: var(--text-main);

  transition: 0.16s ease;
}
.modal-close:hover {
  border-color: var(--accent);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.85);
}

.modal-text {
  color: var(--text-main);
  line-height: 1.6;
  margin-bottom: 14px;
  font-size: 0.96rem;
}

/* ==============================
   RESPONSIVE DIVERS
   ============================== */
@media (max-width: 600px) {
  .page {
    padding-inline: 14px;
  }

  .back-btn {
    width: 46px;
    height: 46px;
  }

  .card {
    padding: 16px;
  }

  .wheel-wrap {
    gap: 10px;
  }
}

/* ==============================
   ALERTES FLOTTANTES SOWASH (TOASTS)
   ============================== */
#swAlertContainer {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 120;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
}

.sw-alert {
  --sw-alert-duration: 3600ms;

  border-radius: 18px;
  padding: 10px 14px 9px;
  background: radial-gradient(circle at 0 0, rgba(254, 219, 51, 0.25), rgba(6, 21, 34, 0.98));
  border: 1px solid rgba(254, 219, 51, 0.8);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.9);

  color: var(--text-main);
  font-size: 0.95rem;

  opacity: 0;
  transform: translateY(-10px) translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  overflow: hidden;
}

.sw-alert--visible {
  opacity: 1;
  transform: translateY(0) translateX(0);
}

.sw-alert--hide {
  opacity: 0;
  transform: translateY(-6px) translateX(16px);
}

.sw-alert-inner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

/* Icône goutte/lavage */
.sw-alert-icon {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  flex-shrink: 0;

  background: radial-gradient(circle at 30% 10%, #ffffff, #fedb33);
  border: 1px solid rgba(254, 219, 51, 0.9);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7);

  display: flex;
  align-items: center;
  justify-content: center;
}

.sw-drop {
  width: 12px;
  height: 18px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  background: linear-gradient(180deg, #186d8d, #0b3246);
  position: relative;
}
.sw-drop::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 4px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
}

/* Texte */
.sw-alert-content {
  flex: 1;
}
.sw-alert-text {
  margin: 0;
  line-height: 1.5;
}

/* Barre de progression (disparition) */
.sw-alert-progress {
  margin-top: 6px;
  height: 3px;
  border-radius: 999px;
  background: rgba(254, 219, 51, 0.18);
  overflow: hidden;
}
.sw-alert-progress::before {
  content: "";
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ffffff);
  transform-origin: left;
  animation: swAlertProgress var(--sw-alert-duration) linear forwards;
}

@keyframes swAlertProgress {
  from { transform: scaleX(1); }
  to   { transform: scaleX(0); }
}

/* Variantes */
.sw-alert--error {
  border-color: var(--error);
}
.sw-alert--warning {
  border-color: var(--accent);
}
.sw-alert--info {
  border-color: rgba(150, 193, 215, 0.9);
}

/* Responsive : on recentre en mobile */
@media (max-width: 600px) {
  #swAlertContainer {
    left: 12px;
    right: 12px;
    top: 12px;
    align-items: stretch;
  }
}

/* ==============================
   CONDITIONS GÉNÉRALES (ÉTAPE PAIEMENT)
   ============================== */
.terms-box {
  margin-top: 14px;
  margin-bottom: 6px;
  border-radius: 16px;
  padding: 10px 12px;

  background: rgba(5, 18, 28, 0.96);
  border: 1px solid rgba(150, 193, 215, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.65);

  display: flex;
  flex-direction: column;
  gap: 4px;
}

.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.terms-label input[type="checkbox"] {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  accent-color: #fedb33;
}

.terms-label span {
  line-height: 1.5;
}

.terms-label a {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.terms-label a:hover {
  text-decoration-thickness: 2px;
}

.terms-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
}