/* Simpl. – prototype du parcours de réservation */
:root {
  --ink: #100C08;
  --text: #454545;
  --muted: #857C72;
  --line: #E7DFD4;
  --line-strong: #CBBFB1;
  --bg: #FBF8F4;
  --card: #FFFFFF;
  --beige: #F2ECE3;
  --pink: #F6E4E5;
  --pink-strong: #E9C9CB;
  --green: #2F7A4F;
  --green-bg: #E3F1E8;
  --orange: #A85A16;
  --orange-dot: #E08A3C;
  --orange-bg: #FBEBDC;
  --r-lg: 24px;
  --r-md: 16px;
  --r-sm: 12px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(16, 12, 8, .04), 0 10px 30px rgba(16, 12, 8, .07);
  --font-title: 'Instrument Sans', system-ui, sans-serif;
  --font: 'IBM Plex Sans', system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-title); color: var(--ink); margin: 0; letter-spacing: -.02em; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.ic { flex: none; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- barre prototype + en-tête ---------- */
.demo-bar { background: var(--ink); color: #F2ECE3; font-size: 12px; text-align: center; padding: 6px 16px; letter-spacing: .03em; }
.topbar { position: sticky; top: 0; z-index: 20; background: rgba(251, 248, 244, .9); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { max-width: 1180px; margin: 0 auto; height: 64px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo img { height: 22px; width: auto; }
.top-actions { display: flex; align-items: center; gap: 6px; }
.top-link { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--pill); text-decoration: none; font-weight: 500; color: var(--ink); font-size: 15px; }
.top-link:hover { background: var(--beige); }
.top-link.no-avatar { padding-left: 12px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pink); color: var(--ink); display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.pill-outline { border: 1px solid var(--ink); border-radius: var(--pill); padding: 8px 18px; text-transform: uppercase; font-size: 13px; letter-spacing: .05em; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap; }
.pill-outline:hover { background: var(--ink); color: #fff; }
@media (max-width: 640px) {
  .top-link .lbl { display: none; }
  .top-link { padding: 6px; }
  .top-link.no-avatar { padding: 8px; }
}

/* ---------- boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 26px; border-radius: var(--pill); font-weight: 600; font-size: 16px; text-decoration: none; transition: transform .15s, background .15s, color .15s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2E2722; }
.btn-dark.is-off { background: #D3CAC0; color: #fff; }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-soft { background: var(--beige); color: var(--ink); }
.btn-soft:hover { background: #E9E0D3; }
.btn-block { width: 100%; }
.btn-sm { min-height: 38px; padding: 0 14px; font-size: 14px; font-weight: 500; }
.link-btn { text-decoration: underline; text-underline-offset: 3px; color: var(--ink); font-weight: 500; font-size: 14px; }

/* ---------- accueil ---------- */
.hero { display: grid; gap: 24px; padding: 28px 0 8px; align-items: center; }
.eyebrow { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.hero h1 { font-size: clamp(36px, 7vw, 62px); }
.lead { font-size: 18px; max-width: 36ch; margin-top: 16px; }
.hero-media { display: none; }
.arch { border-radius: 999px 999px 28px 28px; object-fit: cover; width: 100%; }
@media (min-width: 860px) {
  .hero { grid-template-columns: 1.15fr .85fr; padding: 48px 0 16px; gap: 48px; }
  .hero-media { display: block; justify-self: end; width: min(100%, 380px); }
  .hero-media .arch { aspect-ratio: 4 / 5; }
}
.next-card { display: flex; gap: 14px; align-items: center; margin-top: 24px; padding: 12px 16px 12px 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); text-decoration: none; max-width: 460px; transition: box-shadow .2s; }
.next-card:hover { box-shadow: var(--shadow); }
.next-card .mini-date { flex: none; }
.next-card p { font-size: 14px; }
.next-card strong { color: var(--ink); }
.next-card .ic { margin-left: auto; color: var(--muted); }

.section { padding: 28px 0 32px; }
.section-head { margin-bottom: 20px; }
.section-head h2 { font-size: clamp(24px, 4vw, 34px); }
.section-head p { margin-top: 6px; color: var(--muted); }

.sites { display: grid; gap: 16px; }
@media (min-width: 720px) { .sites { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.site-card { background: var(--card); border-radius: var(--r-lg); overflow: hidden; text-decoration: none; color: inherit; border: 1px solid var(--line); display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s; }
.site-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.site-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--beige); }
.site-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.site-card:hover .site-photo img { transform: scale(1.04); }
.site-photo .badge { position: absolute; left: 12px; top: 12px; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .1); }
.site-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.site-body h3 { font-size: 24px; margin-bottom: 4px; }
.site-body h3 small { font-family: var(--font); font-weight: 400; font-size: 15px; color: var(--muted); letter-spacing: 0; margin-left: 6px; }
.site-body .btn { margin-top: auto; }
.site-body .meta:last-of-type { margin-bottom: 14px; }
.meta { display: flex; align-items: center; gap: 8px; font-size: 15px; }
.meta .ic { color: var(--muted); }

.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 500; padding: 5px 10px; border-radius: var(--pill); white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--green); background: var(--green-bg); }
.badge.peu { color: var(--orange); background: var(--orange-bg); }
.badge.complet { color: var(--muted); background: #EFEAE3; }

.reassure { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; padding: 8px 0 48px; }
@media (min-width: 860px) { .reassure { grid-template-columns: repeat(4, 1fr); } }
.reassure div { background: var(--beige); border-radius: var(--r-md); padding: 16px; font-size: 14px; }
.reassure .ic { color: var(--ink); }
.reassure strong { display: block; color: var(--ink); font-size: 15px; margin: 10px 0 2px; }

/* ---------- étapes ---------- */
.stepper { display: flex; gap: 6px; list-style: none; padding: 18px 0 0; margin: 0; }
.stepper li { flex: 1; min-width: 0; font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stepper li::before { content: ""; display: block; height: 4px; border-radius: 4px; background: var(--line); margin-bottom: 8px; transition: background .3s; }
.stepper li.done::before, .stepper li.current::before { background: var(--ink); }
.stepper li.current { color: var(--ink); font-weight: 600; overflow: visible; }
.step-mobile { display: none; font-size: 12px; font-weight: 600; color: var(--ink); margin-top: 8px; }
@media (max-width: 640px) {
  .stepper li span { display: none; }
  .step-mobile { display: block; }
}

/* ---------- mise en page du parcours ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; padding: 12px 0 120px; }
.flow-side { display: none; }
@media (min-width: 1024px) {
  .flow { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; padding-bottom: 64px; }
  .flow-side { display: block; position: sticky; top: 88px; align-self: start; }
}
.back { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; color: var(--muted); text-decoration: none; margin: 12px 0 14px; }
.back:hover { color: var(--ink); }
.page-title { font-size: clamp(28px, 4.5vw, 40px); }
.page-lead { margin-top: 8px; max-width: 52ch; }
.site-mini { display: flex; gap: 14px; align-items: center; }
.site-mini img { width: 64px; height: 72px; border-radius: 999px 999px 12px 12px; object-fit: cover; flex: none; }
.site-mini p { margin-top: 4px; font-size: 14px; color: var(--muted); }
.block { padding: 26px 0; border-bottom: 1px solid var(--line); }
.block:last-child { border-bottom: 0; }
.block-title { font-size: 20px; display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.n { width: 28px; height: 28px; border-radius: 50%; background: var(--ink); color: #fff; font: 600 14px/1 var(--font); letter-spacing: 0; display: grid; place-items: center; flex: none; }
.sub { font: 600 16px/1.3 var(--font); color: var(--ink); margin: 22px 0 10px; letter-spacing: 0; display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.sub small { font-weight: 400; font-size: 13px; color: var(--muted); }

/* cartes de choix */
.choices { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 720px) { .choices.four { grid-template-columns: repeat(4, 1fr); } }
.choice { position: relative; text-align: left; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 104px; transition: border-color .15s, box-shadow .15s, background .15s; }
.choice:hover:not(:disabled) { border-color: var(--line-strong); }
.choice[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.choice[aria-pressed="true"]::after { content: ""; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat; }
.choice:disabled { opacity: .45; }
.choice .t { font-weight: 600; color: var(--ink); }
.choice .d { font-size: 13px; color: var(--muted); }
.choice .p { font: 600 24px/1.1 var(--font-title); color: var(--ink); margin-top: auto; padding-top: 10px; }
.choice .p small { font: 400 13px var(--font); color: var(--muted); }
.choice .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--pink); display: grid; place-items: center; color: var(--ink); margin-bottom: 10px; }
.choice .tag { position: absolute; top: -10px; left: 12px; background: var(--pink); color: var(--ink); font-size: 11px; font-weight: 600; padding: 2px 9px; border-radius: var(--pill); border: 1px solid var(--pink-strong); }

/* bandeau de dates */
.strip { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; padding: 12px 16px 12px; margin: 0 -16px; scrollbar-width: none; }
.strip::-webkit-scrollbar { display: none; }
@media (min-width: 720px) { .strip { margin: 0; padding: 12px 4px 12px; scrollbar-width: thin; } }
.day { flex: none; width: 62px; scroll-snap-align: start; border: 1.5px solid var(--line); background: #fff; border-radius: 16px; padding: 10px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 1px; transition: border-color .15s; }
.day:hover:not(:disabled) { border-color: var(--line-strong); }
.day .dw { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.day .dn { font: 600 22px/1.15 var(--font-title); color: var(--ink); }
.day .dm { font-size: 11px; color: var(--muted); }
.dot { width: 6px; height: 6px; border-radius: 50%; margin-top: 5px; background: var(--green); }
.dot.peu { background: var(--orange-dot); }
.dot.complet { background: transparent; box-shadow: inset 0 0 0 1px var(--line-strong); }
.day[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.day[aria-pressed="true"] .dw, .day[aria-pressed="true"] .dn, .day[aria-pressed="true"] .dm { color: #fff; }
.day:disabled { opacity: .45; }

/* créneaux horaires */
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
@media (min-width: 560px) { .slots { grid-template-columns: repeat(5, 1fr); } }
.slot { border: 1.5px solid var(--line); background: #fff; border-radius: var(--r-sm); padding: 9px 4px; display: flex; flex-direction: column; align-items: center; min-height: 58px; justify-content: center; transition: background .15s, border-color .15s; }
.slot:hover:not(:disabled) { border-color: var(--line-strong); }
.slot strong { color: var(--ink); font-size: 16px; font-weight: 600; }
.slot span { font-size: 12px; color: var(--green); }
.slot span.peu { color: var(--orange); }
.slot.in-range { background: var(--pink); border-color: var(--pink-strong); }
.slot[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); }
.slot[aria-pressed="true"] strong, .slot[aria-pressed="true"] span { color: #fff; }
.slot:disabled { opacity: .45; }
.slot:disabled strong { text-decoration: line-through; }
.placeholder { background: var(--beige); border-radius: var(--r-md); padding: 18px; font-size: 14px; color: var(--muted); text-align: center; }

.duree { display: flex; align-items: center; justify-content: space-between; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 12px 12px 16px; margin-top: 14px; }
.duree .t { font-weight: 600; color: var(--ink); }
.duree .d { font-size: 13px; color: var(--muted); }
.num { display: flex; align-items: center; gap: 10px; }
.num strong { font: 600 22px/1 var(--font-title); min-width: 46px; text-align: center; color: var(--ink); }
.round { width: 42px; height: 42px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; background: #fff; color: var(--ink); }
.round:hover:not(:disabled) { border-color: var(--ink); }
.round:disabled { opacity: .35; }

.hint { display: flex; gap: 12px; align-items: flex-start; background: var(--pink); border-radius: var(--r-md); padding: 14px 16px; margin-top: 12px; font-size: 14px; color: var(--ink); }
.hint .ic { margin-top: 1px; }
.hint button { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* calendrier */
.cal { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; max-width: 480px; }
.cal-prev, .cal-next { position: absolute; top: 10px; width: 38px; height: 38px; z-index: 1; }
.cal-prev { left: 12px; }
.cal-next { right: 12px; }
.cal-months { display: grid; gap: 28px; }
.cal-month + .cal-month { display: none; }
.cal-title { display: block; text-align: center; font: 600 18px/38px var(--font-title); color: var(--ink); text-transform: capitalize; margin-bottom: 6px; }
@media (min-width: 720px) {
  .cal { max-width: none; padding: 14px 20px 16px; }
  .cal-months { grid-template-columns: 1fr 1fr; }
  .cal-month + .cal-month { display: block; }
}
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.cal-dow { font-size: 12px; color: var(--muted); padding: 6px 0; }
.cal-day { aspect-ratio: 1; min-height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 500; color: var(--ink); position: relative; font-size: 15px; transition: background .12s; }
.cal-day:hover:not(:disabled) { background: var(--beige); }
.cal-day i { position: absolute; bottom: 5px; left: 50%; margin-left: -2px; width: 4px; height: 4px; border-radius: 50%; background: var(--green); }
.cal-day i.peu { background: var(--orange-dot); }
.cal-day:disabled { color: #CDC4B9; }
.cal-day.today:not([aria-pressed="true"]) { box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.cal-day[aria-pressed="true"] { background: var(--ink); color: #fff; }
.cal-day[aria-pressed="true"] i { background: #fff; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .dot { margin: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--beige); border-radius: var(--pill); padding: 5px 6px 5px 12px; font-size: 14px; color: var(--ink); }
.chip button { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; }
.chip button:hover { background: #fff; }
.tip { font-size: 13px; color: var(--muted); margin-top: 10px; display: flex; gap: 6px; align-items: center; }

/* listes (semaine / mois) */
.list { display: grid; gap: 8px; }
@media (min-width: 720px) { .list.cols { grid-template-columns: 1fr 1fr; } }
.row { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; text-align: left; width: 100%; transition: border-color .15s; }
.row:hover:not(:disabled) { border-color: var(--line-strong); }
.row[aria-pressed="true"] { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.row:disabled { opacity: .5; }
.row .t { font-weight: 600; color: var(--ink); display: block; }
.row .d { font-size: 13px; color: var(--muted); }
.row .badge { margin-left: auto; }
.radio { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line-strong); flex: none; transition: border .15s; }
.row[aria-pressed="true"] .radio { border: 7px solid var(--ink); }

/* récapitulatif */
.summary { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.summary-photo { height: 116px; width: 100%; object-fit: cover; }
.summary-in { padding: 20px; }
.summary h3 { font-size: 21px; }
.summary .addr { font-size: 13px; color: var(--muted); margin: 3px 0 14px; }
.sum-list { margin: 0; display: grid; gap: 10px; padding: 14px 0; border-top: 1px solid var(--line); }
.sum-list div { display: flex; gap: 10px; font-size: 14px; }
.sum-list dt { color: var(--muted); width: 74px; flex: none; }
.sum-list dd { margin: 0; color: var(--ink); font-weight: 500; }
.lines { padding: 12px 0; display: grid; gap: 6px; font-size: 14px; border-top: 1px solid var(--line); }
.lines div { display: flex; justify-content: space-between; gap: 12px; }
.total { display: flex; justify-content: space-between; align-items: baseline; padding-top: 12px; border-top: 1px dashed var(--line-strong); color: var(--ink); font-weight: 500; }
.total strong { font: 600 30px var(--font-title); }
.ht { font-size: 12px; color: var(--muted); margin: 2px 0 16px; text-align: right; }
.fine { display: flex; gap: 8px; align-items: center; justify-content: center; font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; }
.empty-note { font-size: 14px; color: var(--muted); padding: 12px 0 16px; border-top: 1px solid var(--line); }

/* barre fixe mobile */
.mbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: space-between; gap: 12px; box-shadow: 0 -8px 24px rgba(16, 12, 8, .06); }
.mbar .tot { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.mbar .tot strong { font: 600 22px var(--font-title); color: var(--ink); }
.mbar .tot span { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mbar .btn { flex: none; min-height: 48px; padding: 0 22px; }
@media (min-width: 1024px) { .mbar { display: none; } }

/* matériel */
.included { background: var(--beige); border-radius: var(--r-md); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14px; color: var(--ink); margin-top: 18px; }
.included span { display: inline-flex; align-items: center; gap: 6px; }
.included .ic { color: var(--green); }
.opts { display: grid; gap: 8px; }
@media (min-width: 720px) { .opts { grid-template-columns: 1fr 1fr; } }
.opt { display: flex; align-items: center; gap: 14px; background: #fff; border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 14px 16px; width: 100%; text-align: left; transition: border-color .15s; }
.opt:hover { border-color: var(--line-strong); }
.opt[aria-pressed="true"] { border-color: var(--ink); }
.opt .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--beige); display: grid; place-items: center; color: var(--ink); flex: none; }
.opt .t { font-weight: 600; color: var(--ink); display: block; }
.opt .d { font-size: 13px; color: var(--muted); }
.switch { margin-left: auto; width: 46px; height: 28px; border-radius: var(--pill); background: #DDD4C9; position: relative; flex: none; transition: background .2s; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
[aria-pressed="true"] > .switch { background: var(--ink); }
[aria-pressed="true"] > .switch::after { transform: translateX(18px); }

/* formulaires */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; color: var(--ink); }
.field input, .field select, .field textarea { min-height: 50px; border: 1.5px solid var(--line); border-radius: var(--r-sm); padding: 0 14px; font: inherit; background: #fff; color: var(--ink); width: 100%; transition: border-color .15s; }
.field textarea { padding: 12px 14px; min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field .help { font-size: 13px; color: var(--muted); }
.grid2 { display: grid; gap: 0 12px; grid-template-columns: 1fr 1fr; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 6px 0 18px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); margin: 1px 0 0; flex: none; }
.code-input { letter-spacing: .5em; font: 600 22px var(--font-title) !important; text-align: center; }

.auth { max-width: 520px; }
.tabs { display: inline-flex; background: var(--beige); border-radius: var(--pill); padding: 4px; margin: 20px 0; }
.tabs button { padding: 10px 18px; border-radius: var(--pill); font-weight: 500; font-size: 15px; color: var(--muted); }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.demo-box { border: 1.5px dashed #D6C9B9; border-radius: var(--r-md); padding: 12px 12px 12px 16px; font-size: 14px; display: flex; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 22px; flex-wrap: wrap; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.who { display: flex; gap: 14px; align-items: center; }
.who .avatar { width: 48px; height: 48px; font-size: 17px; }
.who strong { color: var(--ink); display: block; }

/* paiement */
.recap { display: grid; gap: 14px; margin-top: 20px; }
.recap-row { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.recap-row .ic { color: var(--muted); margin-top: 2px; }
.recap-row strong { color: var(--ink); display: block; font-weight: 600; }
.recap-row a { font-size: 14px; }
.pay { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
.pay .ico { width: 44px; height: 44px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex: none; }
.pay strong { color: var(--ink); display: block; }
.cards { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cards span { font-size: 11px; font-weight: 600; letter-spacing: .04em; border: 1px solid var(--line); border-radius: 6px; padding: 3px 7px; color: var(--ink); background: #fff; }

/* fenêtres */
.overlay { position: fixed; inset: 0; background: rgba(16, 12, 8, .45); display: grid; place-items: center; z-index: 50; padding: 16px; animation: fade .2s; }
.dialog { background: #fff; border-radius: var(--r-lg); padding: 26px 24px 22px; max-width: 400px; width: 100%; text-align: center; animation: rise .25s; }
.dialog h3 { font-size: 22px; margin-bottom: 8px; }
.dialog p { font-size: 15px; }
.dialog .btns { display: grid; gap: 8px; margin-top: 20px; }
.spinner { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--ink); animation: spin .8s linear infinite; margin: 4px auto 16px; }

/* confirmation */
.confirm { max-width: 560px; margin: 0 auto; padding: 36px 0 64px; text-align: center; }
.confirm-icon { width: 76px; height: 76px; border-radius: 50%; background: var(--green-bg); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .55s cubic-bezier(.2, .9, .3, 1.3) both; }
.confirm h1 { font-size: clamp(30px, 6vw, 42px); }
.confirm > p { margin-top: 10px; }
.ticket { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 26px 0 20px; }
.ticket img { height: 150px; object-fit: cover; width: 100%; }
.ticket-in { padding: 20px; display: grid; gap: 12px; }
.ticket-when { font: 600 24px/1.2 var(--font-title); color: var(--ink); }
.ticket-foot { display: flex; justify-content: space-between; gap: 12px; padding: 14px 20px; background: var(--beige); font-size: 14px; border-top: 1px dashed var(--line-strong); color: var(--ink); }
.actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .actions { grid-template-columns: 1fr 1fr; } }
.confirm .link-btn { display: inline-block; margin-top: 18px; }

/* mes réservations */
.account-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; padding: 32px 0 4px; flex-wrap: wrap; }
.account-head p { margin-top: 6px; }
.resa-list { display: grid; gap: 12px; padding: 4px 0 64px; }
@media (min-width: 860px) { .resa-list { grid-template-columns: 1fr 1fr; } }
.resa { display: flex; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; align-items: flex-start; }
.mini-date { flex: none; width: 60px; text-align: center; background: var(--pink); border-radius: 999px 999px 14px 14px; padding: 14px 0 8px; color: var(--ink); }
.mini-date b { display: block; font: 600 26px/1 var(--font-title); }
.mini-date span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.resa.past .mini-date { background: var(--beige); }
.resa-body { flex: 1; min-width: 0; }
.resa-body h3 { font-size: 18px; margin-bottom: 4px; }
.resa-body .meta { font-size: 14px; margin-top: 2px; }
.resa-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.resa-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.empty { text-align: center; padding: 48px 16px; background: #fff; border: 1px dashed var(--line-strong); border-radius: var(--r-lg); grid-column: 1 / -1; }
.empty p { margin: 8px 0 18px; }
.invoices { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin-bottom: 64px; }
.inv { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-top: 1px solid var(--line); font-size: 14px; }
.inv:first-child { border-top: 0; }
.inv .t { color: var(--ink); font-weight: 600; display: block; }
.inv .amount { margin-left: auto; color: var(--ink); font-weight: 600; white-space: nowrap; }

/* pied de page + notifications */
.foot { border-top: 1px solid var(--line); padding: 28px 16px 120px; text-align: center; font-size: 13px; color: var(--muted); display: grid; gap: 6px; justify-items: center; }
.foot strong { font: 600 18px var(--font-title); color: var(--ink); }
@media (min-width: 1024px) { .foot { padding-bottom: 36px; } }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: var(--pill); font-size: 14px; z-index: 60; transition: opacity .25s, transform .25s; pointer-events: none; width: max-content; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
body.has-mbar #toast { bottom: 100px; }
@media (min-width: 1024px) { body.has-mbar #toast { bottom: 24px; } }

/* animations */
.enter > * { animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { 0% { transform: scale(.5); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* choix multiples */
.day { position: relative; }
.dcount { position: absolute; top: -8px; right: -4px; background: var(--pink-strong); color: var(--ink); font-size: 10px; font-weight: 600; padding: 1px 6px; border-radius: var(--pill); border: 2px solid var(--bg); }
.slot strong { font-size: 14px; }
.box { width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid var(--line-strong); flex: none; display: grid; place-items: center; transition: background .15s; }
.row[aria-pressed="true"] .box { background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--ink); }
.chip b { font-weight: 600; }

/* panier (icône) */
.top-link.cart { position: relative; }
.cart-n { position: absolute; top: 0; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--pill); background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; border: 2px solid var(--bg); }

/* jours passés (régularisation) */
.day.past-day:not(:disabled), .cal-day.past-day:not(:disabled) { background: repeating-linear-gradient(135deg, #fff 0 6px, #F7F2EB 6px 12px); }
.cal-day.past-day[aria-pressed="true"], .day.past-day[aria-pressed="true"] { background: var(--ink); }

/* bandeau évènement de l'accueil */
.event-banner { display: flex; align-items: center; gap: 16px; background: var(--pink); border-radius: var(--r-lg); padding: 12px; text-decoration: none; margin-bottom: 28px; flex-wrap: wrap; }
.event-banner img { width: 72px; height: 72px; border-radius: 999px 999px 14px 14px; object-fit: cover; }
.event-banner div { display: grid; gap: 2px; flex: 1 1 200px; font-size: 14px; }
.event-banner strong { font: 600 20px var(--font-title); color: var(--ink); }
.event-banner .btn { margin-left: auto; }

/* évènements */
.events { display: grid; gap: 16px; padding: 4px 0 64px; }
@media (min-width: 720px) { .events { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .events { grid-template-columns: repeat(3, 1fr); } }
.event { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.event-photo { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--beige); }
.event-photo img { width: 100%; height: 100%; object-fit: cover; }
.event-photo .mini-date { position: absolute; left: 12px; bottom: 12px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.event-b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 5px; flex: 1; }
.event-b h3 { font-size: 22px; margin-bottom: 4px; }
.event-b .meta { font-size: 14px; }
.event-desc { font-size: 14px; margin-top: 6px; }
.event-det { font-size: 13px; color: var(--muted); }
.places { display: grid; gap: 6px; font-size: 13px; margin: 10px 0 4px; color: var(--muted); }
.meter-s { height: 6px; background: var(--beige); border-radius: var(--pill); overflow: hidden; }
.meter-s i { display: block; height: 100%; background: var(--ink); border-radius: var(--pill); }
.peu-t { color: var(--orange); font-weight: 600; }
.event-prix { font: 600 24px var(--font-title); color: var(--ink); margin: auto 0 10px; padding-top: 8px; }
.event-prix s { font: 400 16px var(--font); color: var(--muted); margin-right: 4px; }
.event-prix small { font: 400 13px var(--font); color: var(--muted); }

/* panier */
.cart-list { display: grid; gap: 10px; margin-top: 20px; }
.cart-item { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.cart-item img { width: 72px; height: 72px; border-radius: 12px; object-fit: cover; flex: none; }
.ci-b { flex: 1; min-width: 0; }
.ci-b h3 { font-size: 18px; margin: 2px 0; }
.ci-b p { font-size: 14px; }
.ci-k { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.ci-lines { font-size: 13px !important; color: var(--muted); margin-top: 4px; }
.ci-p { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ci-p strong { color: var(--ink); font-size: 16px; white-space: nowrap; }
.icon-x { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--muted); }
.icon-x:hover { background: var(--beige); color: var(--ink); }
@media (max-width: 520px) { .cart-item img { width: 56px; height: 56px; } }
.cart-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.promo-f { display: flex; gap: 8px; max-width: 420px; }
.promo-f input { flex: 1; min-width: 0; min-height: 42px; border: 1.5px solid var(--line); border-radius: var(--pill); padding: 0 16px; font: inherit; text-transform: uppercase; background: #fff; }
.promo-f input:focus { outline: none; border-color: var(--ink); }
.promo-l { color: var(--green); }

/* mon espace */
.stats-line { display: flex; gap: 6px 16px; flex-wrap: wrap; margin-top: 8px; font-size: 14px; color: var(--muted); }
.stats-line b { color: var(--ink); }
.tabs-scroll { display: flex; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.tabs a { padding: 10px 16px; border-radius: var(--pill); font-weight: 500; font-size: 15px; color: var(--muted); text-decoration: none; white-space: nowrap; }
.tabs a[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .08); }
.grid3 { display: grid; gap: 0 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid3 { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px) { .grid2 { grid-template-columns: 1fr; } }
.toggle-line { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: var(--ink); font-weight: 500; }
.toggle-line span { display: inline-flex; gap: 8px; align-items: center; }
.profil { max-width: 760px; padding-bottom: 64px; }
.profil-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.who { flex-wrap: wrap; }

/* fenêtres larges : modification, facture */
.dialog-wide { max-width: 560px; text-align: left; max-height: calc(100vh - 32px); overflow-y: auto; }
.dialog-wide h3 { text-align: left; }
.mod-list { display: grid; gap: 8px; }
.mod-row { display: flex; align-items: center; gap: 12px; background: var(--beige); border-radius: var(--r-sm); padding: 10px 12px; font-size: 14px; color: var(--ink); }
.mod-row span { flex: 1; }
.mod-row input { min-height: 42px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 10px; font: inherit; background: #fff; }
.row-btns { grid-template-columns: 1fr 1fr; }
.invoice { font-size: 14px; color: var(--ink); }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.inv-head img { height: 22px; width: auto; }
.inv-head div { text-align: right; display: grid; }
.inv-head strong { font: 600 18px var(--font-title); }
.inv-head span, .inv-parties span, .inv-t span { color: var(--muted); font-size: 13px; }
.inv-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; }
.inv-parties div { display: grid; gap: 2px; }
.inv-parties small { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.inv-t { width: 100%; border-collapse: collapse; }
.inv-t th { text-align: left; font-weight: 500; color: var(--muted); font-size: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.inv-t th:last-child, .inv-t td:last-child { text-align: right; white-space: nowrap; }
.inv-t td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.inv-t td span { display: block; }
.inv-tot { margin: 12px 0 0 auto; max-width: 260px; display: grid; gap: 6px; }
.inv-tot div { display: flex; justify-content: space-between; gap: 16px; }
.inv-tot dt { color: var(--muted); }
.inv-tot dd { margin: 0; }
.inv-tot .big { border-top: 1px solid var(--ink); padding-top: 8px; font-weight: 600; font-size: 16px; }
.inv-tot .big dt { color: var(--ink); }

@media print {
  body > *:not(#modal) { display: none !important; }
  .overlay { position: static; background: none; padding: 0; }
  .dialog { box-shadow: none; max-width: none; max-height: none; overflow: visible; }
  .no-print { display: none !important; }
}
