/* Identité « Planning Padel »
   Mise en page : colonne centrale 1080 px, en-tête translucide collant, navigation
   en contrôle segmenté, cartes très arrondies. Signature : le terrain de padel vu
   du dessus (bleu court, lignes blanches) et le jaune de la balle en accent rare. */
:root {
  --bg: #f5f5f7;
  --surface: #ffffff;
  --surface-2: #f2f3f6;
  --ink: #1d1d1f;
  --muted: #6e6e73;
  --line: #e2e4e9;
  --court: #1f5fbf;          /* bleu du terrain : accent principal */
  --court-deep: #143f86;
  --court-line: #ffffff;
  --court-ink: #ffffff;
  --ball: #d4ef3c;           /* jaune balle : signature, usage rare */
  --ball-ink: #1d1d1f;
  --open: #1f8a4c;           /* vert : ouvert aux demandes / place disponible */
  --open-soft: #e6f5ec;
  --cancel: #cf3229;         /* rouge : séance annulée */
  --cancel-soft: #fdecea;
  --closed: #86868b;         /* gris : terminée, bloquée ou complète */
  --closed-soft: #f0f0f2;
  --warn: #a85a00;
  --warn-soft: #fff4e2;
  --info: #1f5fbf;
  --info-soft: #eaf1fc;
  --demo: #4a3500;
  --demo-bg: #fff3c4;
  --focus: #1f5fbf;
  --on-color: #ffffff;
  --glass: rgba(255, 255, 255, .78);
  --shadow: 0 1px 1px rgba(0, 0, 0, .03), 0 6px 24px rgba(0, 0, 0, .06);
  --shadow-lift: 0 2px 4px rgba(0, 0, 0, .04), 0 16px 40px rgba(0, 0, 0, .10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 18px;
  --radius-s: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --ink: #f5f5f7; --muted: #98989d; --line: #38383a;
    --court: #4b8ef0; --court-deep: #1d4f9e; --court-ink: #ffffff; --open: #34c467; --open-soft: #10291a;
    --cancel: #ff5f55; --cancel-soft: #331311; --closed: #8e8e93; --closed-soft: #2a2a2c; --warn: #ffa63d; --warn-soft: #33240d;
    --info: #4b8ef0; --info-soft: #14243d; --demo: #ffe08a; --demo-bg: #2b2412; --focus: #4b8ef0; --on-color: #000000;
    --glass: rgba(28, 28, 30, .72); --shadow: 0 0 0 1px rgba(255,255,255,.04); --shadow-lift: 0 0 0 1px rgba(255,255,255,.06), 0 16px 40px rgba(0,0,0,.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000; --surface: #1c1c1e; --surface-2: #2c2c2e; --ink: #f5f5f7; --muted: #98989d; --line: #38383a;
  --court: #4b8ef0; --court-deep: #1d4f9e; --court-ink: #ffffff; --open: #34c467; --open-soft: #10291a;
  --cancel: #ff5f55; --cancel-soft: #331311; --closed: #8e8e93; --closed-soft: #2a2a2c; --warn: #ffa63d; --warn-soft: #33240d;
  --info: #4b8ef0; --info-soft: #14243d; --demo: #ffe08a; --demo-bg: #2b2412; --focus: #4b8ef0; --on-color: #000000;
  --glass: rgba(28, 28, 30, .72); --shadow: 0 0 0 1px rgba(255,255,255,.04); --shadow-lift: 0 0 0 1px rgba(255,255,255,.06), 0 16px 40px rgba(0,0,0,.5);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--font); font-size: 16px; line-height: 1.47; letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
a { color: var(--court); text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; text-wrap: balance; }
h1 { font-size: 2.6rem; font-weight: 700; letter-spacing: -.035em; line-height: 1.05; }
h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.15; }
h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -.015em; line-height: 1.25; }
p { margin: 0; }
small, .small { font-size: .875rem; }
.muted { color: var(--muted); }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--focus) 55%, transparent); outline-offset: 2px; border-radius: 8px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ---------- Bandeau démonstration ---------- */
.demo-bar {
  background: var(--demo-bg); color: var(--demo);
  padding: 7px 16px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center;
  font-size: .82rem; border-bottom: 1px solid color-mix(in srgb, var(--demo) 15%, transparent);
}
.demo-bar strong { font-weight: 600; }
.demo-bar .clock { font-variant-numeric: tabular-nums; }
.demo-bar button, .demo-bar input {
  background: color-mix(in srgb, var(--demo) 8%, transparent); border: 0; border-radius: 99px; padding: 3px 11px; color: var(--demo); cursor: pointer; font-size: .8rem;
}
.demo-bar button:hover { background: color-mix(in srgb, var(--demo) 16%, transparent); }
.demo-bar input[type="datetime-local"] { width: auto; padding: 3px 11px; border: 0; border-radius: 99px; font-size: .8rem; background: color-mix(in srgb, var(--demo) 8%, transparent); color: var(--demo); }
.demo-bar .warn-storage { background: var(--cancel); color: var(--on-color); padding: 2px 10px; border-radius: 99px; font-weight: 600; }
.demo-bar .grow { flex: 1 1 auto; }
.demo-tools { display: contents; }
.demo-tools-toggle { display: none; }
@media (max-width: 720px) {
  .demo-tools-toggle { display: inline-block; }
  .demo-tools { display: none; }
  .demo-tools.show { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; width: 100%; }
}

/* ---------- Structure ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding-inline: 20px; }
.app-header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  background: var(--glass); -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.app-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding-block: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; }
.brand-mark { width: 34px; height: 34px; flex: none; display: block; }
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name { font-family: var(--font-display); font-size: 1.12rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.brand-sub { font-size: .74rem; color: var(--muted); }
.who { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; }
.role-tag { font-size: .7rem; font-weight: 600; letter-spacing: .02em; padding: 3px 9px; border-radius: 99px; background: var(--surface-2); color: var(--muted); }
.role-tag.admin { background: var(--ink); color: var(--bg); }

.tabs {
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; padding: 3px; margin-bottom: 10px;
  background: var(--surface-2); border-radius: 99px; width: fit-content; max-width: 100%;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  background: none; border: 0; padding: 6px 15px; cursor: pointer; color: var(--muted); border-radius: 99px;
  font-size: .9rem; font-weight: 500; white-space: nowrap; transition: background .2s, color .2s;
}
.tabs button:hover { color: var(--ink); }
.tabs button[aria-current="page"] { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.tabs button .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--cancel); margin-left: 6px; vertical-align: middle; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.subtabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 6px 14px; cursor: pointer; font-size: .86rem; color: var(--muted); }
.subtabs button:hover { color: var(--ink); }
.subtabs button[aria-current="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

main { padding-block: 28px 80px; }
.stack { display: flex; flex-direction: column; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row.between { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 18px; }
.grid-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.panel { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); min-width: 0; }
.panel.flat { box-shadow: none; border: 1px solid var(--line); }
.panel h2 + *, .panel h3 + * { margin-top: 10px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kicker { font-size: .78rem; font-weight: 600; color: var(--court); letter-spacing: .01em; }

/* ---------- Boutons et champs ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border-radius: 99px; border: 0; background: var(--surface-2); padding: 9px 18px; cursor: pointer;
  font-weight: 500; font-size: .94rem; line-height: 1.2; color: var(--ink); transition: background .15s, transform .1s, opacity .15s;
}
.btn:hover:not(:disabled) { background: color-mix(in srgb, var(--ink) 9%, var(--surface-2)); }
.btn:active:not(:disabled) { transform: scale(.98); }
.btn.primary { background: var(--court); color: var(--court-ink); }
.btn.primary:hover:not(:disabled) { background: color-mix(in srgb, #000 12%, var(--court)); }
.btn.go { background: var(--open); color: var(--on-color); }
.btn.go:hover:not(:disabled) { background: color-mix(in srgb, #000 12%, var(--open)); }
.btn.danger { color: var(--cancel); background: var(--cancel-soft); }
.btn.danger:hover:not(:disabled) { background: color-mix(in srgb, var(--cancel) 18%, var(--surface)); }
.btn.ghost { background: none; color: var(--court); padding-inline: 8px; }
.btn.small { padding: 5px 12px; font-size: .84rem; }
.btn:disabled { opacity: .4; cursor: not-allowed; }

label.field { display: flex; flex-direction: column; gap: 6px; font-size: .86rem; font-weight: 500; color: var(--muted); min-width: 0; }
label.field span.hint { font-weight: 400; font-size: .8rem; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="time"],
input[type="datetime-local"], select, textarea {
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: var(--radius-s); padding: 10px 12px; min-width: 0; width: 100%;
  font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--court); box-shadow: 0 0 0 4px color-mix(in srgb, var(--court) 18%, transparent); }
textarea { min-height: 74px; resize: vertical; }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 12px; align-items: end; }
.check {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-s); cursor: pointer;
  background: var(--surface-2); border: 1.5px solid transparent; transition: border-color .15s, background .15s;
}
.check:has(input:checked) { border-color: var(--court); background: var(--info-soft); }
.check input { width: 20px; height: 20px; margin-top: 1px; accent-color: var(--court); flex: none; }
.check.disabled { opacity: .5; cursor: not-allowed; }
.check strong { display: block; font-weight: 600; color: var(--ink); }
.checks { display: grid; gap: 8px; }

/* ---------- Messages ---------- */
.note { border-radius: var(--radius-s); padding: 14px 16px; background: var(--surface-2); }
.note.ok { background: var(--open-soft); }
.note.info { background: var(--info-soft); }
.note.warn { background: var(--warn-soft); }
.note.bad { background: var(--cancel-soft); }
.note.blocked { background: var(--closed-soft); }
.note strong { display: block; margin-bottom: 2px; }
.note ul { margin: 6px 0 0; padding-left: 20px; }
.toast-zone { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(20px + env(safe-area-inset-bottom, 0px)); display: flex; flex-direction: column; gap: 8px; z-index: 50; width: max-content; max-width: min(460px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 14px; box-shadow: var(--shadow-lift); font-size: .92rem; animation: rise .25s ease-out; }
.toast.err { background: var(--cancel); color: var(--on-color); }
@keyframes rise { from { transform: translateY(8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Résumé personnel ---------- */
.me-card { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: start; padding: 24px; }
.me-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; font-size: 1.25rem; font-weight: 700; background: var(--surface-2); color: var(--muted); }
.me-card.ok .me-icon, .me-card.open .me-icon { background: var(--open-soft); color: var(--open); }
.me-card.info .me-icon { background: var(--info-soft); color: var(--info); }
.me-card.warn .me-icon { background: var(--warn-soft); color: var(--warn); }
.me-card.bad .me-icon { background: var(--cancel-soft); color: var(--cancel); }
.me-title { font-family: var(--font-display); font-size: 1.45rem; font-weight: 700; letter-spacing: -.025em; line-height: 1.2; }
.me-detail { color: var(--muted); margin-top: 6px; max-width: 70ch; }

.steps { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; counter-reset: s; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--muted); padding: 5px 12px 5px 5px; border-radius: 99px; background: var(--surface); box-shadow: var(--shadow); }
.steps li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); font-size: .74rem; font-weight: 700; }
.steps li.done::before { content: "✓"; background: var(--open); color: var(--on-color); }
.steps li.now { color: var(--ink); font-weight: 600; }
.steps li.now::before { background: var(--court); color: var(--court-ink); }
.steps .arrow { background: none; padding: 0; box-shadow: none; color: var(--line); }
.steps .arrow::before { display: none; }

/* ---------- Navigation semaine ---------- */
.weeknav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.weeknav .label { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -.03em; min-width: 0; margin-inline: 4px; }
.phase { font-size: .92rem; color: var(--muted); margin-top: -8px; }

/* ---------- Terrain de padel (signature) ---------- */
.court { display: block; width: 100%; height: auto; }
.court .turf { fill: var(--court); }
.court .wall { fill: none; stroke: color-mix(in srgb, var(--court) 30%, var(--surface)); stroke-width: 3; }
.court .ln { stroke: var(--court-line); stroke-width: 1.4; fill: none; opacity: .9; }
.court .net { stroke: var(--court-line); stroke-width: 2.4; opacity: .95; }
.court .slot { fill: color-mix(in srgb, var(--court-line) 16%, transparent); stroke: color-mix(in srgb, var(--court-line) 55%, transparent); stroke-width: 1.2; stroke-dasharray: 3 3; }
.court .slot.filled { fill: var(--court-line); stroke: none; }
.court .slot.pending { fill: none; stroke: var(--ball); stroke-width: 2; stroke-dasharray: none; }
.court .slot.me { fill: var(--ball); stroke: none; }
.court .ini { font: 600 10px var(--font); fill: var(--court-deep); text-anchor: middle; dominant-baseline: central; letter-spacing: 0; }
.court .ini.me { fill: var(--ball-ink); }
.court.cancelled .turf { fill: var(--closed); }
.court.done .turf { fill: color-mix(in srgb, var(--court) 45%, var(--closed)); }
.courts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.court-fig { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.court-fig figcaption { font-size: .78rem; color: var(--muted); text-align: center; }
.court-fig figcaption b { color: var(--ink); font-weight: 600; }
.courts-editor { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.court-ed { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: var(--radius-s); background: var(--surface); border: 1px solid var(--line); }
.court-ed:has(input[type="checkbox"][id$="-on2"]:not(:checked)) .lv-field, .court-ed:has(input[type="checkbox"][id$="-on2"]:not(:checked)) .field.inline { opacity: .4; }
label.field.inline { flex-direction: row; align-items: center; gap: 8px; }
label.field.inline input { width: 70px; }

/* ---------- Cartes de séance ---------- */
.session { position: relative; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); display: flex; flex-direction: column; min-width: 0; }
.session-head { padding: 20px 22px 14px; display: flex; flex-direction: column; gap: 8px; }
.session.st-cancel { background: color-mix(in srgb, var(--cancel-soft) 70%, var(--surface)); }
.session-when { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.03em; }
.session-time { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; }
.session-court { padding: 0 22px 4px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 600; padding: 4px 10px; border-radius: 99px; color: var(--muted); background: var(--closed-soft); width: fit-content; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--closed); }
.pill span[aria-hidden] { display: none; }
.pill.open { color: var(--open); background: var(--open-soft); }
.pill.open::before { background: var(--open); }
.pill.cancel { color: var(--cancel); background: var(--cancel-soft); }
.pill.cancel::before { background: var(--cancel); }
.tag { display: inline-flex; align-items: center; gap: 5px; font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 99px; color: var(--muted); background: var(--surface-2); width: fit-content; }
.tag.changed { color: var(--warn); background: var(--warn-soft); }
.ticket { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; font-weight: 700; padding: 4px 11px; border-radius: 99px; background: var(--ball); color: var(--ball-ink); width: fit-content; }
.counters { margin: 10px 22px 0; padding: 11px 14px; background: var(--surface-2); border-radius: var(--radius-s); font-size: .92rem; font-variant-numeric: tabular-nums; color: var(--muted); }
.counters b { font-weight: 700; color: var(--ink); }
.session-body { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 14px; }
.people h4 { font-family: var(--font); font-size: .78rem; color: var(--muted); font-weight: 600; margin-bottom: 7px; letter-spacing: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0; }
.chips li { font-size: .86rem; padding: 4px 11px; border-radius: 99px; background: var(--surface-2); }
.chips li.me { background: var(--ball); color: var(--ball-ink); font-weight: 600; }
.no { color: var(--muted); font-size: .85em; margin-left: 4px; }
.chips li.me .no { color: inherit; opacity: .7; }
ol.ranked { margin: 0; padding-left: 22px; font-size: .9rem; }
ol.ranked li { padding-block: 1px; }
ol.ranked li.me { font-weight: 700; }
.empty { color: var(--muted); font-size: .86rem; }

/* ---------- Tableaux et statistiques ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius-s); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .88rem; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: .74rem; font-weight: 600; color: var(--muted); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, var(--surface)); }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.stat { background: var(--surface); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.stat .v { font-family: var(--font-display); font-size: 2.3rem; font-weight: 700; letter-spacing: -.04em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat .l { font-weight: 600; font-size: .9rem; margin-top: 4px; }
.stat .p { font-size: .76rem; color: var(--muted); }
.badge { display: inline-block; font-size: .74rem; padding: 2px 9px; border-radius: 99px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.badge.ok { background: var(--open-soft); color: var(--open); }
.badge.bad { background: var(--cancel-soft); color: var(--cancel); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.info { background: var(--info-soft); color: var(--info); }
details > summary { cursor: pointer; font-weight: 600; }
code, .mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .86em; }
.code-box { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 1.5rem; letter-spacing: .12em; padding: 12px 18px; border-radius: var(--radius-s); background: var(--surface-2); user-select: all; width: fit-content; }
pre.dump { max-height: 320px; overflow: auto; background: var(--surface-2); padding: 12px; border-radius: var(--radius-s); font-size: .78rem; }

/* ---------- Connexion ---------- */
.auth { max-width: 1040px; margin: 0 auto; padding-block: 48px 72px; padding-inline: 20px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr)); gap: 40px; align-items: start; }
.auth-hero { display: flex; flex-direction: column; gap: 14px; }
.auth-hero .logo-lg { width: 64px; height: 64px; }
.auth-hero h1 { font-size: 3.2rem; }
.auth-hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 46ch; line-height: 1.5; }
.auth-hero .court-art { margin-top: 6px; max-width: 460px; filter: drop-shadow(0 18px 30px rgba(20, 63, 134, .22)); }
.auth .panel { padding: 28px; }
.boot { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 20px; color: var(--muted); }
.boot .spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--court); animation: spin .9s linear infinite; margin: 0 auto 14px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Guide de scénario ---------- */
.guide { background: var(--surface); box-shadow: var(--shadow); border-radius: var(--radius); padding: 18px 20px; border-left: 4px solid var(--ball); }
.guide ol { margin: 8px 0 0; padding-left: 20px; }
.guide .expected { margin-top: 10px; }

@media (max-width: 560px) {
  h1 { font-size: 2rem; }
  .auth-hero h1 { font-size: 2.4rem; }
  .weeknav .label { font-size: 1.4rem; }
  .session-when { font-size: 1.25rem; }
  .me-title { font-size: 1.2rem; }
  .who { margin-left: 0; }
  .panel, .me-card { padding: 18px; }
  th, td { padding: 8px 9px; }
}

/* ---------- Niveaux et intitulés ---------- */
.session-title { font-size: .8rem; font-weight: 700; color: var(--court); letter-spacing: .02em; text-transform: uppercase; }
.lvl { font-size: .82rem; color: var(--muted); font-weight: 500; }
.lvl span[aria-hidden] { color: var(--court); font-size: .7rem; }
.signal { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); white-space: nowrap; }
.lvl-tag { background: var(--info-soft); color: var(--info); }
.check.offlevel { cursor: default; border: 1.5px dashed var(--line); background: var(--surface); }
.check.offlevel .lock { width: 20px; text-align: center; color: var(--muted); flex: none; }
.check.offlevel label input { width: 18px; height: 18px; accent-color: var(--warn); }
.lv-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.lv-field legend { padding: 0; margin-bottom: 6px; }
.lv-opt { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; padding: 5px 11px; border-radius: 99px; background: var(--surface-2); cursor: pointer; }
.lv-opt:has(input:checked) { background: var(--info-soft); color: var(--info); font-weight: 600; }
.lv-opt input { accent-color: var(--court); }
.slot-box { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-s); background: var(--surface-2); }
.slot-box .lv-opt { background: var(--surface); }
.cat-row { padding-block: 4px; border-bottom: 1px solid var(--line); }
.lvl-row { padding-block: 6px; border-bottom: 1px solid var(--line); }
.lvl-row select { width: auto; padding: 6px 10px; font-size: .88rem; }

/* Inscription en un clic depuis la carte de séance */
.session-court.clickable { cursor: pointer; border-radius: var(--radius-s); transition: transform .15s; }
.session-court.clickable:hover { transform: scale(1.01); }
.session-court.clickable:hover .turf { filter: brightness(1.08); }
.quick-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 22px 0; }
