/* ── Accueil ── */
.hero { position: relative; overflow: hidden; margin-top: -28px; padding-block: 40px 24px; isolation: isolate; }
.hero .africa { width: 430px; right: 0; top: 24px; opacity: .95; }
.onair sup { font-size: .65em; line-height: 0; }
.hero-in { position: relative; z-index: 1; display: grid; gap: 18px; max-width: 860px; }
@media (max-width: 900px) { .hero .africa { width: 300px; right: -60px; top: 10px; opacity: .45; } }
.hero h1 { max-width: 15ch; font-size: clamp(2rem, 6.5vw, 3.4rem); }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 48ch; }

.choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 10px; }
.choice {
  display: grid; gap: 8px; text-align: left; cursor: pointer; padding: 22px; border-radius: var(--r-lg);
  background: var(--bg); border: 1.5px solid var(--line); box-shadow: var(--shadow);
  transition: border-color .15s, transform .15s, background .15s; min-width: 0;
}
.choice:hover { border-color: var(--orange); transform: translateY(-2px); }
.choice-tag { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--orange); }
.choice-title { font-family: var(--f-display); font-weight: 600; font-size: 1.6rem; line-height: 1.1; }
.choice-text { color: var(--muted); }
.choice-go { margin-top: 6px; font-weight: 700; }

.facts { list-style: none; padding: 0; margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px 24px; }
.facts li { display: grid; gap: 2px; padding-top: 12px; border-top: 1px solid var(--line); }
.facts b { font-size: 1.35rem; font-family: var(--f-display); font-weight: 600; }
.facts b.mono { font-family: var(--f-mono); }
.facts span { color: var(--muted); font-size: .92rem; }

/* ── Étapes ── */
.steps { list-style: none; padding: 0; margin: 0 auto 22px; max-width: 760px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; counter-reset: s; }
.steps li { counter-increment: s; font-size: .8rem; font-weight: 700; color: var(--muted); }
.steps li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 6px; }
.steps li span::before { content: counter(s) " · "; }
.steps li.on { color: var(--ink); }
.steps li.on::before, .steps li.past::before { background: var(--orange); }
.step { display: grid; gap: 14px; align-content: start; }
.back { justify-self: start; background: none; border: 0; padding: 6px 0; color: var(--muted); font-weight: 600; cursor: pointer; }
.back:hover { color: var(--ink); }

/* ── Calendrier ── */
.cal { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; background: var(--bg); }
.cal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.cal-head strong { font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; text-transform: capitalize; }
.cal-nav { width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--bg); font-size: 1.3rem; cursor: pointer; }
.cal-nav:disabled { opacity: .3; cursor: default; }
.cal-dow, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-dow span { text-align: center; font-size: .75rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 4px; }
.day {
  aspect-ratio: 1; min-width: 0; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  display: grid; place-items: center; position: relative; font-family: var(--f-mono); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums;
}
.day::after { content: ""; position: absolute; bottom: 14%; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.day.few::after { background: var(--warn); }
.day.full, .day.closed { cursor: default; color: var(--muted); background: var(--paper); border-color: transparent; }
.day.full { text-decoration: line-through; }
.day.full::after { background: var(--bad); }
.day.closed::after { display: none; }
.day.blank { visibility: hidden; }
.day:not(.full):not(.closed):hover { border-color: var(--orange); }
.day.sel { background: var(--orange); color: var(--orange-ink); border-color: var(--orange); }
.day.sel::after { background: var(--orange-ink); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: .82rem; color: var(--muted); }
.cal-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.lg-open { background: var(--ok); } .lg-few { background: var(--warn); } .lg-full { background: var(--bad); }
.cal.loading .cal-grid { opacity: .5; }

/* ── Créneaux ── */
.slots { display: grid; gap: 8px; scroll-margin-top: 80px; }
.slot-group { display: grid; gap: 8px; margin-top: 10px; }
.slot-group h3 { font-family: var(--f-body); font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.slot-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; }
.slot {
  min-height: 48px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg); cursor: pointer;
  font-family: var(--f-mono); font-weight: 600; font-size: 1rem; font-variant-numeric: tabular-nums;
}
.slot:hover:not(:disabled) { border-color: var(--orange); }
.slot:disabled { color: var(--muted); background: var(--paper); border-color: transparent; text-decoration: line-through; cursor: default; }
.slot.sel { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.empty { padding: 18px; border-radius: var(--r-md); background: var(--paper); color: var(--muted); }

/* ── Forfaits ── */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px; margin-top: 6px; }
.pack {
  position: relative; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 10px; padding: 22px; border-radius: var(--r-lg);
  border: 1.5px solid var(--line); background: var(--bg); text-align: left; cursor: pointer; min-width: 0; transition: border-color .15s, transform .15s;
}
.pack:hover:not(.off) { border-color: var(--orange); transform: translateY(-2px); }
.pack.hl { border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.pack.sel { border-color: var(--orange); background: var(--orange-soft); }
.pack.off { opacity: .55; cursor: not-allowed; }
.pack-top { display: flex; justify-content: space-between; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.pack-name { font-family: var(--f-display); font-weight: 600; font-size: 1.25rem; }
.pack-badge { font-size: .74rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--orange); color: var(--orange-ink); white-space: nowrap; }
.pack-tag { color: var(--muted); font-size: .92rem; }
.pack-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.pack-price b { font-family: var(--f-mono); font-size: 1.9rem; font-weight: 600; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pack-price span { color: var(--muted); font-weight: 600; }
.pack ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .95rem; }
.pack li { padding-left: 22px; position: relative; }
.pack li::before { content: ""; position: absolute; left: 2px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--orange); border-bottom: 2px solid var(--orange); transform: rotate(-45deg); }
.pack-time { display: flex; gap: 8px; align-items: center; font-size: .9rem; padding-top: 10px; border-top: 1px dashed var(--line); }
.pack-time .mono { font-weight: 600; }
.pack-off { font-size: .88rem; color: var(--bad); font-weight: 600; }

/* ── Formulaire ── */
.form { display: grid; gap: 14px; margin-top: 4px; }
.row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-weight: 700; font-size: .94rem; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); font-size: .85rem; }
.field small { color: var(--muted); font-size: .84rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: var(--bg);
}
.field textarea { resize: vertical; min-height: 92px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 4px var(--orange-soft); }
.field .invalid { border-color: var(--bad); }
.phone { display: flex; align-items: stretch; }
.phone .dial { display: grid; place-items: center; padding: 0 12px; border: 1.5px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--paper); font-weight: 600; min-width: 64px; }
.phone input { border-radius: 0 12px 12px 0; }
.remote { border: 1.5px solid var(--orange); border-radius: var(--r-md); padding: 14px; margin: 0; display: grid; gap: 10px; background: var(--orange-soft); }
.remote legend { font-weight: 700; padding: 0 6px; }
.radio { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; padding: 10px; border-radius: 12px; background: var(--bg); border: 1.5px solid transparent; }
.radio:has(input:checked) { border-color: var(--orange); }
.radio input { margin-top: 4px; accent-color: var(--orange); width: 18px; height: 18px; }
.radio span { display: grid; gap: 2px; }
.radio small { color: var(--muted); }
.check { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.check input { margin-top: 3px; width: 20px; height: 20px; accent-color: var(--orange); flex: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--bad); background: var(--bad-soft); padding: 12px 14px; border-radius: 12px; font-weight: 600; }

/* ── Conducteur (récap) ── */
.sheet { border: 1.5px solid var(--ink); border-radius: var(--r-md); overflow: hidden; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; background: var(--ink); color: var(--bg); flex-wrap: wrap; }
.sheet-head b { font-family: var(--f-mono); font-size: 1.15rem; font-variant-numeric: tabular-nums; }
.sheet-head span { font-size: .85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.sheet dl { margin: 0; display: grid; grid-template-columns: minmax(110px, 32%) 1fr; }
.sheet dt, .sheet dd { margin: 0; padding: 11px 16px; border-top: 1px solid var(--line); min-width: 0; overflow-wrap: anywhere; }
.sheet dt { color: var(--muted); font-size: .88rem; font-weight: 600; }
.sheet dd { font-weight: 600; }
.sheet .total dd { font-family: var(--f-mono); font-size: 1.15rem; color: var(--orange); }
.pay { padding: 14px 16px; border-radius: var(--r-md); background: var(--paper); display: grid; gap: 4px; }
.pay b { font-size: .95rem; }
.pay p { color: var(--muted); font-size: .95rem; }

/* ── Confirmation ── */
.done { text-align: left; }
.done h1 { max-width: 18ch; }
.ticket { position: relative; display: grid; gap: 6px; justify-items: start; padding: 22px; border-radius: var(--r-lg); background: var(--orange-soft); border: 1.5px dashed var(--orange); }
.ref { font-size: clamp(1.8rem, 8vw, 2.6rem); font-weight: 600; letter-spacing: .04em; color: var(--orange); }
.done-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ── Barre d'action ── */
.actionbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 25;
  padding: 12px max(16px, env(safe-area-inset-right, 0px)) calc(12px + env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
  background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--line);
}
.actionbar-in { max-width: 760px; margin: 0 auto; display: flex; align-items: center; gap: 14px; }
.actionbar-sum { flex: 1; min-width: 0; font-size: .92rem; line-height: 1.3; }
.actionbar-sum b { display: block; font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.actionbar-sum span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.actionbar .btn { flex: none; }

@media (max-width: 520px) {
  .hero { padding-top: 26px; }
  .hero .africa { display: none; }
  .cal { padding: 10px; }
  .cal-dow, .cal-grid { gap: 4px; }
  .day { border-radius: 10px; font-size: .92rem; }
  .sheet dl { grid-template-columns: 1fr; }
  .sheet dt { border-top: 1px solid var(--line); padding-bottom: 0; }
  .sheet dd { border-top: 0; padding-top: 2px; }
  .done-actions .btn { width: 100%; }
}

/* ── Glassmorphism ── */
.choice, .cal, .pack, .pay, .ticket, .remote, .empty, .sheet {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.choice:hover, .pack:hover:not(.off) { border-color: rgba(243, 105, 4, .55); box-shadow: 0 16px 40px rgba(94, 58, 36, .18), inset 0 1px 0 rgba(255, 255, 255, .9); }
.pack.hl { border-color: rgba(243, 105, 4, .6); box-shadow: 0 0 0 4px rgba(243, 105, 4, .12), var(--glass-shadow); }
.pack.sel { background: linear-gradient(140deg, rgba(255, 241, 230, .9), rgba(255, 224, 198, .6)); border-color: var(--orange); }
.ticket { border: 1.5px dashed rgba(243, 105, 4, .6); background: linear-gradient(140deg, rgba(255, 241, 230, .85), rgba(255, 255, 255, .5)); }
.remote { border: 1px solid rgba(243, 105, 4, .45); }
.radio { background: rgba(255, 255, 255, .7); }
.sheet { border: 1px solid var(--glass-border); }
.sheet-head { background: linear-gradient(120deg, var(--brown-deep), #2a1a10); color: #fff; }
.sheet dt, .sheet dd { border-top-color: rgba(110, 70, 40, .12); }
.day, .slot, .cal-nav { background: rgba(255, 255, 255, .62); border-color: rgba(255, 255, 255, .9); box-shadow: 0 2px 8px rgba(94, 58, 36, .07); }
.day.full, .day.closed, .slot:disabled { background: rgba(110, 70, 40, .07); border-color: transparent; box-shadow: none; }
.day.sel, .slot.sel { background: linear-gradient(180deg, #ff7d1f, var(--orange)); border-color: var(--orange); box-shadow: 0 6px 16px rgba(243, 105, 4, .3); }
.field input, .field select, .field textarea, .phone .dial { background: rgba(255, 255, 255, .7); border-color: rgba(110, 70, 40, .16); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
.phone .dial { background: rgba(255, 255, 255, .45); }
.facts li { border-top-color: rgba(110, 70, 40, .2); }
.steps li::before { background: rgba(110, 70, 40, .14); }
.actionbar { background: rgba(255, 255, 255, .6); border-top: 1px solid var(--glass-border); box-shadow: 0 -8px 30px rgba(94, 58, 36, .1); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); }
