/* DA Louis — tokens officiels */
:root {
  --bg: #edf0f0;
  --ink: #03256c;
  --accent: #3694f7;
  --good: #38bb33;
  --bad: #ff3236;
  --surface: #ffffff;
  --bg-2: #dfe5e5;
  --muted: #64708c;
  --line: #d6dcdc;
  --accent-dark: #1f7fe0;
  --accent-soft: #e3f0fe;
  --good-soft: #e4f6e3;
  --shadow: 0 1px 2px rgba(3, 37, 108, 0.05), 0 14px 34px rgba(3, 37, 108, 0.1);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  /* halo froid discret */
  background-image:
    radial-gradient(1100px 520px at 12% -8%, rgba(54, 148, 247, 0.1), transparent 60%),
    radial-gradient(900px 480px at 110% 8%, rgba(3, 37, 108, 0.06), transparent 55%);
}

.wrap {
  flex: 1;
  width: 100%;
  max-width: 1080px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 64px) 20px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}

/* ---- Pitch ---- */
.pitch { padding-top: 6px; }

.eyebrow {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #cfe4fd;
  padding: 6px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}

h1 {
  font-size: clamp(1.9rem, 4.2vw, 3rem);
  line-height: 1.08;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
h1 em {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  letter-spacing: 0;
}
h1 .ink { color: var(--ink); display: inline; }

.lede {
  font-size: 1.05rem;
  color: #33406b;
  max-width: 46ch;
  margin-bottom: 24px;
}
.lede strong { color: var(--ink); font-weight: 700; }

.checks { list-style: none; display: grid; gap: 12px; margin-bottom: 26px; }
.checks li {
  position: relative;
  padding-left: 30px;
  font-size: 0.96rem;
  color: #33406b;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: 2px;
  width: 20px; height: 20px;
  border-radius: 6px;
  background: var(--good-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%2338bb33' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center/13px no-repeat;
}
.checks li strong { color: var(--ink); }

.assure {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding-top: 18px;
}
.assure .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px var(--good-soft);
  flex: none;
}

/* ---- Carte de réservation ---- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(22px, 3vw, 32px);
  position: sticky;
  top: 28px;
}
.card h2 { font-size: 1.25rem; font-weight: 800; letter-spacing: -0.01em; }
.card .sub { color: var(--muted); font-size: 0.9rem; margin: 4px 0 20px; }

.field { margin-bottom: 15px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 6px;
}
label .opt { color: var(--line); font-weight: 600; letter-spacing: 0; text-transform: none; }
input, textarea {
  width: 100%;
  padding: 12px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  font-size: 0.96rem;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input::placeholder, textarea::placeholder { color: #a7b0c4; }
input:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
textarea { resize: vertical; min-height: 74px; }
.hint { font-size: 0.78rem; color: var(--muted); margin-top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 12px;
  font-size: 0.98rem;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.05s, opacity 0.15s, background 0.15s;
}
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--ink); color: #fff; margin-top: 8px; }
.btn.primary:hover { background: #06318a; }
.btn.primary:disabled { background: var(--bg-2); color: #9aa4bd; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--accent-dark); border: 1px solid var(--line); }
.btn.ghost:hover { border-color: var(--accent); }

.back {
  background: none; border: none; color: var(--accent-dark);
  font: inherit; font-size: 0.85rem; font-weight: 600;
  cursor: pointer; padding: 0; margin-bottom: 14px;
}
.back:hover { text-decoration: underline; }

.formerr {
  margin-top: 12px;
  background: #ffe5e5;
  color: #c31f22;
  border: 1px solid #f3b0b1;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 0.85rem;
}

/* ---- Sélecteur de créneaux ---- */
.days {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 6px;
  scrollbar-width: thin;
}
.day {
  flex: none;
  min-width: 66px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.12s, background 0.12s;
}
.day:hover { border-color: var(--accent); }
.day.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.day .dow { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); font-weight: 700; }
.day.active .dow { color: #b9cdf2; }
.day .dnum { font-size: 1.2rem; font-weight: 800; line-height: 1.2; }
.day .mon { font-size: 0.68rem; color: var(--muted); }
.day.active .mon { color: #b9cdf2; }

.times {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(84px, 1fr));
  gap: 8px;
  margin: 14px 0 4px;
}
.slot {
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.slot:hover { border-color: var(--accent); background: var(--accent-soft); }
.slot.active { background: var(--accent); border-color: var(--accent); color: #fff; }

.empty { color: var(--muted); font-size: 0.9rem; padding: 24px 0; text-align: center; }

/* ---- Confirmation ---- */
#step-done { text-align: center; }
.done-badge {
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--good-soft); color: var(--good);
  display: grid; place-items: center;
  font-size: 1.9rem; font-weight: 800;
  margin: 6px auto 14px;
  box-shadow: 0 0 0 6px rgba(56, 187, 51, 0.08);
}
.done-box {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 18px;
  margin: 16px 0;
  display: grid;
  gap: 10px;
}
.done-box p { font-size: 0.92rem; color: #33406b; }
.mini { font-size: 0.86rem; color: var(--muted); }

/* ---- Footer ---- */
.foot {
  text-align: center;
  padding: 22px 20px 30px;
  font-size: 0.8rem;
  color: var(--muted);
}

.spin { pointer-events: none; opacity: 0.7; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  .wrap { grid-template-columns: 1fr; }
  .card { position: static; }
  .pitch { text-align: left; }
}
