/* GAZTAK · Comptoir basque : fond clair, rouge et vert du linge basque, bande rayée. */
:root {
  --bg: #f5f4f0; --surface: #ffffff; --ink: #1b1d1a; --muted: #62665f; --line: #e0ded7;
  --rouge: #c4122f; --vert: #11673a; --vert-soft: #e4f0e8; --rouge-soft: #fbe7ea;
  --ambre: #a35f00; --ambre-soft: #fcf0d9; --neutre-soft: #ecebe6;
  --display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;
  --radius: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121412; --surface: #1b1e1b; --ink: #ecebe6; --muted: #a5a9a1; --line: #2e322e;
    --rouge: #ff6075; --vert: #52c98b; --vert-soft: #16301f; --rouge-soft: #3b1a21;
    --ambre: #f2aa45; --ambre-soft: #35280f; --neutre-soft: #262a26; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121412; --surface: #1b1e1b; --ink: #ecebe6; --muted: #a5a9a1; --line: #2e322e;
  --rouge: #ff6075; --vert: #52c98b; --vert-soft: #16301f; --rouge-soft: #3b1a21;
  --ambre: #f2aa45; --ambre-soft: #35280f; --neutre-soft: #262a26; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: .01em; }
a { color: var(--vert); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid var(--vert); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.band { height: 12px; background: linear-gradient(to bottom, var(--rouge) 0 2px, transparent 2px 4px, var(--vert) 4px 6px, transparent 6px 8px, var(--rouge) 8px 10px, transparent 10px 12px); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }

.btn { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 14px; font-weight: 600; cursor: pointer; min-height: 42px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 6px; color: var(--ink); }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--rouge); border-color: var(--rouge); color: #fff; }
.btn.vert { background: var(--vert); border-color: var(--vert); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); padding-left: 8px; padding-right: 8px; }
.btn.danger { color: var(--rouge); }
.btn.block { width: 100%; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.busy { opacity: .6; pointer-events: none; }
.iconbtn { width: 42px; padding: 0; font-size: 20px; line-height: 1; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--vert); font-weight: 600; cursor: pointer; text-decoration: underline; }

.chip { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: var(--neutre-soft); color: var(--muted); white-space: nowrap; }
.chip.vert { background: var(--vert-soft); color: var(--vert); }
.chip.rouge { background: var(--rouge-soft); color: var(--rouge); }
.chip.ambre { background: var(--ambre-soft); color: var(--ambre); }

.notice { border-radius: 8px; padding: 10px 12px; font-size: 14px; background: var(--neutre-soft); }
.notice.ambre { background: var(--ambre-soft); border-left: 4px solid var(--ambre); }
.notice.rouge { background: var(--rouge-soft); border-left: 4px solid var(--rouge); }
.notice.vert { background: var(--vert-soft); border-left: 4px solid var(--vert); }

form.f { display: grid; gap: 10px; }
.f label, .field-label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.f input[type=text], .f input[type=tel], .f input[type=email], .f input[type=number], .f input[type=date], .f input[type=password], .f select, .f textarea,
.cfg input[type=number], .cfg input[type=text], .cfg input[type=email], .cfg select {
  width: 100%; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 9px 10px; min-height: 42px; }
.f textarea { min-height: 64px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.check input { width: 20px; height: 20px; margin-top: 1px; flex: none; accent-color: var(--vert); }
.err { color: var(--rouge); font-size: 14px; font-weight: 600; }
.hint { font-size: 13px; color: var(--muted); margin-top: 3px; }
.field { margin-bottom: 10px; }

.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; min-width: 44px; min-height: 44px; padding: 6px 10px; font-weight: 600; cursor: pointer; font-variant-numeric: tabular-nums; }
.pill[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.pill:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }

/* Pages client */
.client-page { max-width: 560px; margin: 0 auto; padding: 0 0 40px; }
.client { background: var(--surface); border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .client-page { padding: 24px 16px 40px; } .client { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; } }
.c-head { padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.c-head h1 { font-size: 32px; letter-spacing: .06em; }
.c-head .top { display: flex; align-items: center; gap: 8px; }
.c-head .top h1 { flex: 1; }
.langs { display: flex; gap: 4px; }
.lang { border: 1px solid var(--line); background: var(--surface); border-radius: 6px; padding: 4px 8px; min-height: 34px; min-width: 38px; font-weight: 600; font-size: 13px; cursor: pointer; }
.lang[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.c-body { padding: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.step-title { font-family: var(--display); font-size: 19px; font-weight: 700; margin-bottom: 8px; }
.days { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; }
.day { flex: none; width: 64px; text-align: center; padding: 6px 4px; line-height: 1.15; }
.day b { display: block; font-family: var(--display); font-size: 22px; }
.day span { display: block; font-size: 12px; }
.day em { display: block; font-size: 10px; font-style: normal; color: var(--muted); }
.day[aria-pressed="true"] em { color: inherit; }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.recap { background: var(--bg); border-radius: 10px; padding: 12px; font-size: 15px; }
.conds { font-size: 14px; background: var(--bg); border-radius: 10px; padding: 12px; }
.conds ul { margin: 6px 0 0; padding-left: 18px; }
.loading { padding: 40px 0; text-align: center; color: var(--muted); }
@media (max-width: 420px) { .slots { grid-template-columns: repeat(3, 1fr); } }
