:root { color-scheme: dark; --bg: #0b0b0f; --panel: #15151c; --raised: #1d1d26; --border: #34343e; --text: #f3f4f6; --muted: #adaebb; --accent: #b4232a; --accent-hover: #c92f36; --focus: #fbbf24; }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 system-ui, -apple-system, sans-serif; }
::selection { background: #b4232a; color: #fff; }
html { scrollbar-color: #626273 var(--bg); scrollbar-width: thin; }
[hidden] { display: none !important; }
a { color: #f3f4f6; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, a, input, select, textarea, summary { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
button, .button { cursor: pointer; border: 1px solid var(--border); border-radius: 10px; background: var(--raised); color: var(--text); min-height: 46px; padding: 11px 18px; font-weight: 650; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-align: center; }
button:hover, .button:hover { background: #292933; }
button:disabled { cursor: wait; opacity: .65; }
.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.primary:hover { background: var(--accent-hover); }
.text-button { background: transparent; border-color: transparent; color: var(--muted); font-size: 14px; padding-inline: 8px; }
.topbar, .footer { max-width: 1280px; margin: auto; padding: 24px 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-size: 21px; font-weight: 760; }
.brand img { object-fit: contain; }
.account { display: flex; align-items: center; flex-wrap: wrap; justify-content: end; gap: 12px; font-size: 14px; color: var(--muted); }
.onboarding-layout { display: grid; grid-template-columns: minmax(260px, 350px) minmax(0, 1fr); gap: 72px; max-width: 1200px; min-height: calc(100vh - 180px); margin: 28px auto 0; padding: 20px 40px 60px; }
.journey { display: flex; flex-direction: column; padding-top: 12px; }
.journey h1 { font-size: clamp(28px, 2.7vw, 38px); line-height: 1.15; letter-spacing: -.03em; margin: 0 0 20px; font-weight: 750; }
.journey-intro p { color: var(--muted); max-width: 30ch; margin: 0; }
.steps { padding: 0; margin: 44px 0; list-style: none; display: grid; gap: 20px; }
.steps li { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; }
.steps li span { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--border); border-radius: 50%; font-variant-numeric: tabular-nums; flex-shrink: 0; }
.steps [aria-current] { color: #fff; font-weight: 700; }
.steps [aria-current] span { background: var(--accent); border-color: var(--accent); }
.steps .done { color: #d8d8df; }
.steps .done span { border-color: #a6a7b3; }
.journey-note { color: var(--muted); font-size: 13px; margin-top: auto; max-width: 32ch; }
.workspace { min-width: 0; padding: 32px 0 0; }
h2 { font-size: clamp(25px, 2.3vw, 32px); line-height: 1.2; letter-spacing: -.025em; margin: 0 0 14px; font-weight: 740; text-wrap: balance; }
h2[tabindex="-1"]:focus { outline: none; }
h3 { margin: 0; font-size: 18px; line-height: 1.3; }
p { margin: 0 0 20px; }
.muted, .help { color: var(--muted); }
.help { font-size: 13px; margin: 8px 0 0; }
.intro { color: var(--muted); max-width: 58ch; margin-bottom: 28px; }
.form { display: grid; gap: 22px; }
.eva-link-form { margin-top: 24px; }
.field { display: grid; gap: 8px; min-width: 0; }
label, .field-title { font-size: 14px; font-weight: 600; }
label small, .field-title small { color: var(--muted); font-weight: 400; }
input:not([type=checkbox]):not([type=radio]), select, textarea { width: 100%; min-width: 0; border: 1px solid var(--border); border-radius: 10px; color: var(--text); background: var(--panel); padding: 12px 14px; min-height: 48px; caret-color: #ff7a7d; }
input::placeholder, textarea::placeholder { color: #a6a7b3; }
input[type=file] { font-size: 13px; }
input::file-selector-button { border: 0; border-radius: 5px; padding: 5px 9px; background: #34343e; color: white; margin-right: 10px; }
textarea { resize: vertical; min-height: 95px; }
.logo-field { display: flex; align-items: center; gap: 18px; }
.logo-preview { width: 76px; height: 76px; background: var(--raised); border: 1px solid var(--border); border-radius: 14px; display: grid; place-items: center; overflow: hidden; flex-shrink: 0; color: var(--muted); font-weight: 750; }
.logo-preview img { width: 100%; height: 100%; object-fit: contain; }
.logo-field .field { flex: 1; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 22px; border-top: 1px solid var(--border); }
.actions .primary { margin-left: auto; }
.selection-layout { grid-template-columns: minmax(220px, 300px) minmax(0, 640px); gap: 64px; }
.selection-layout .journey-note { display: none; }
.choice-list { display: grid; gap: 12px; margin-bottom: 24px; }
.team-choice { display: flex; gap: 16px; align-items: center; width: 100%; min-height: 96px; border: 1px solid var(--border); border-radius: 14px; padding: 20px; background: var(--panel); text-decoration: none; text-align: left; }
.team-choice:hover { background: var(--raised); border-color: var(--muted); }
.team-choice[aria-pressed=true] { border-color: var(--accent); background: var(--raised); }
.team-choice strong { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 17px; line-height: 1.4; }
.team-initials { display: grid; place-items: center; width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; background: var(--raised); color: var(--text); font-size: 16px; font-weight: 700; }
.team-choice .team-initials { position: relative; overflow: hidden; }
.team-choice-logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: var(--raised); }
.team-open { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; color: var(--muted); font-size: 14px; }
.create-dashboard-action { margin-bottom: 24px; }
.create-dashboard-action .button { width: 100%; min-height: 48px; background: transparent; }
.create-dashboard-action .button:hover { background: var(--raised); }
@media (max-width: 640px) {
  .team-choice { padding: 16px; gap: 12px; }
  .team-initials { width: 40px; height: 40px; }
  .team-open { font-size: 0; gap: 0; }
  .selection-layout .journey { display: none; }
  .selection-layout .workspace { padding-top: 12px; }
}
.pending { margin: 24px 0; padding: 16px 0; border-block: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.pending h3 { color: var(--text); margin-bottom: 8px; }
.pending p { margin: 6px 0; }
.separator { display: flex; gap: 15px; align-items: center; color: var(--muted); font-size: 13px; margin: 26px 0; }
.separator::before, .separator::after { content: ''; height: 1px; flex: 1; background: var(--border); }
summary { cursor: pointer; color: var(--muted); font-size: 14px; padding-block: 8px; }
details[open] .field { margin-top: 15px; }
.search-results { display: grid; gap: 4px; }
.search-results:empty { display: none; }
.search-results button { text-align: left; justify-content: start; font-size: 14px; }
.search-results .team-choice { display: flex; align-items: center; gap: 12px; min-height: 44px; }
.search-results .team-choice img { width: 40px; height: 40px; object-fit: contain; flex-shrink: 0; }
.search-results .team-choice-fallback { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; font-size: .7rem; font-weight: 700; background: rgba(127, 127, 127, .15); }
.search-results .team-choice-fallback[hidden] { display: none; }
.member-roster { margin: 24px 0 0; }
.member-roster h3 { font-size: 15px; margin: 0 0 8px; }
.member-roster ul { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; }
.member-roster li { display: flex; gap: 8px; align-items: center; min-height: 44px; padding: 6px 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.member-roster li:last-child { border-bottom: 0; }
.member-roster li button { margin-left: auto; }
.venues { display: grid; gap: 0; max-height: 220px; overflow-y: auto; border: 1px solid var(--border); border-radius: 10px; }
.venue-row { display: flex; gap: 10px; align-items: center; padding: 12px; border-bottom: 1px solid var(--border); font-size: 14px; }
.venue-row:last-child { border-bottom: 0; }
.venue-row label { display: flex; gap: 10px; align-items: center; flex: 1; font-weight: 450; min-width: 0; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--accent); flex-shrink: 0; }
.venue-row button { min-height: 30px; padding: 4px 9px; font-size: 12px; flex-shrink: 0; }
.venue-row button[aria-pressed=true] { color: #fff; background: var(--accent); border-color: var(--accent); }
.status { color: var(--muted); font-size: 14px; margin: 18px 0 0; }
.status:empty { display: none; }
.status[role=alert] { color: #ffb5b7; }
.player-result { padding: 20px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel); margin: 20px 0; }
.player-result p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.benefits { padding-left: 20px; color: var(--muted); display: grid; gap: 12px; margin: 28px 0; }
.footer { color: var(--muted); font-size: 12px; }
.footer a { color: var(--muted); }
.skip-link { position: absolute; top: 0; left: 20px; transform: translateY(-150%); z-index: 10; padding: 12px; background: var(--accent); }
.skip-link:focus { transform: none; }
@media (max-width: 860px) {
  .onboarding-layout { gap: 32px; grid-template-columns: 240px minmax(0, 1fr); padding-inline: 24px; }
  .topbar, .footer { padding-inline: 24px; }
  .two-fields { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .topbar { padding: 18px 20px; align-items: start; }
  .account { gap: 0; flex-direction: column; align-items: end; }
  .onboarding-layout { display: block; margin-top: 0; padding: 14px 20px 36px; min-height: calc(100svh - 165px); }
  .journey { padding-top: 0; }
  .journey h1 { font-size: 25px; }
  .journey-intro p, .journey-note { display: none; }
  .steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); margin: 24px 0 0; gap: 6px; }
  .steps li { font-size: 0; border-bottom: 2px solid var(--border); padding-bottom: 8px; justify-content: center; }
  .steps li span { font-size: 12px; width: 26px; height: 26px; }
  .steps [aria-current] { border-bottom-color: #ff7a7d; }
  .steps.member-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workspace { padding-top: 30px; }
  .actions { align-items: stretch; }
  .actions > * { flex: 1; }
  .logo-field { gap: 12px; }
  .logo-preview { width: 60px; height: 60px; }
  .footer { padding: 15px 20px; }
}
/* Section Coaching du panel de sélection (lot 1). */
.coaching-panel .actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 12px; }
/* Analyses de débriefs côté coach (coach-reviews.js). */
.coach-review-row { padding: 8px 0; border-top: 1px solid var(--border); }
.coach-review-row:first-of-type { border-top: 0; }
.coach-review-message { font-style: italic; overflow-wrap: anywhere; }
.coach-review-video { position: relative; aspect-ratio: 16 / 9; margin: 12px 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.coach-review-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.coach-review-debrief { display: grid; gap: 4px; margin: 12px 0 20px; }
.coach-review-debrief h4 { margin: 12px 0 4px; }
.coach-review-debrief ul { margin: 0; padding-left: 1.2rem; }
.coach-review-feedback { white-space: pre-wrap; overflow-wrap: anywhere; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel); }
[data-coach-review-form] textarea { width: 100%; min-height: 12rem; resize: vertical; }
/* Réclamation d'un dashboard (/claim/<jeton>, îlot coach-claim-page) : compte Discord qui deviendra créateur. */
.claim-account { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--raised); }
.claim-account img { width: 40px; height: 40px; border-radius: 50%; flex: none; }
.claim-account p { flex: 1 1 16rem; margin: 0; }
