/* Charte du site Roller fourni : noir, or, navigation et accueil. */
:root {
  color-scheme: dark;
  --black: #080808;
  --surface: #0d0d0d;
  --surface-soft: #151515;
  --gold: #d4a656;
  --gold2: #e5be73;
  --goldDark: #a97c32;
  --text: #f5f5f5;
  --muted: #b8b8b8;
  --line: #303030;
  --gold-border: rgba(212, 166, 86, .65);
  --radius: 16px;
  --shadow: 0 8px 28px rgba(0, 0, 0, .3);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--black); color: var(--text); font: 15px/1.45 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
a { color: var(--gold); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold2); outline-offset: 3px; }
.layout { min-height: 100vh; }
.sidebar { position: fixed; z-index: 1000; inset: 0 auto 0 0; width: 250px; display: flex; flex-direction: column; background: linear-gradient(180deg, #000 0%, #080808 55%, #000 100%); color: #fff; box-shadow: 8px 0 28px rgba(0, 0, 0, .12); }
.brand { display: flex; align-items: center; justify-content: center; min-height: 92px; padding: 20px 19px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.brand-logo { display: block; width: 100%; max-width: 210px; height: auto; object-fit: contain; margin: 0 auto; }
.nav { flex: 1; padding: 18px 12px; overflow-y: auto; }
.nav button { display: flex; align-items: center; gap: 12px; width: 100%; margin: 3px 0; padding: 12px 13px; border: 1px solid transparent; border-radius: 9px; background: transparent; color: #e6ebf2; text-align: left; font-weight: 600; }
.nav .ico { width: 24px; flex: 0 0 24px; text-align: center; font-size: 18px; }
.nav button:hover { background: rgba(255, 255, 255, .07); }
.nav button.active { border-color: rgba(242, 199, 110, .55); background: linear-gradient(90deg, rgba(217, 164, 65, .33), rgba(217, 164, 65, .16)); color: #fff; box-shadow: inset 0 0 20px rgba(217, 164, 65, .08); }
.nav-label { margin: 16px 10px 7px; color: #a1a1a1; font-size: 11px; font-weight: 800; letter-spacing: .8px; }
.nav-separator { height: 1px; margin: 17px 9px 10px; background: rgba(255, 255, 255, .12); }
.side-bottom { padding: 17px 20px 21px; border-top: 1px solid rgba(255, 255, 255, .09); color: #a0a0a0; font-size: 12px; }
.sidebar-user-info { display: flex; align-items: center; gap: 10px; }
.sidebar-user-avatar { display: grid; place-items: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; background: rgba(212, 166, 86, .16); color: var(--gold2); font-weight: 800; }
.sidebar-user-text { min-width: 0; }
.sidebar-user-text strong { display: block; overflow-wrap: anywhere; color: #fff; font-size: 12px; }
.sidebar-user-text small { display: block; margin-top: 3px; color: var(--gold); }
.sidebar-logout { width: 100%; margin-top: 13px; padding: 8px 10px; border: 1px solid #303030; border-radius: 8px; background: transparent; color: #ccc; text-align: left; font-size: 12px; }
.sidebar-logout:hover { border-color: var(--gold); color: var(--gold2); }
.app-content { min-height: 100vh; margin-left: 250px; }
.topbar { min-height: 92px; padding: 18px 28px; background: linear-gradient(115deg, #000, #101010); color: #fff; border-bottom: 3px solid var(--gold); box-shadow: 0 4px 18px rgba(0, 0, 0, .18); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; max-width: 1180px; margin: auto; }
.top-left { display: flex; align-items: center; min-width: 0; }
.topbar h1 { margin: 0; font-size: 27px; font-weight: 800; letter-spacing: -.5px; }
.topbar h1::first-letter { color: var(--gold); }
.topbar p { margin: 5px 0 0; color: #c8c8c8; font-size: 14px; }
.user-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.user-name { font-size: 12px; font-weight: 650; }
main { max-width: 1180px; margin: 28px auto 60px; padding: 0 20px; }
.section { display: none; }
.section.active { display: block; }
.mobile-toggle { display: none; flex-shrink: 0; margin-right: 15px; padding: 8px 11px; border: 1px solid #303030; border-radius: 9px; background: #151515; color: #fff; }
.sidebar-overlay { display: none; }
.btn { width: auto; border: 1px solid transparent; border-radius: 9px; padding: 10px 15px; font-weight: 750; transition: transform .15s, background .15s, border-color .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #000; border-color: var(--gold); }
.btn-gold:hover { background: var(--gold2); border-color: var(--gold2); }
.btn-dark, .btn-outline { background: #151515; border-color: #3a3a3a; color: #fff; }
.btn-outline:hover { border-color: var(--gold); color: var(--gold2); }
.btn-small { padding: 7px 11px; font-size: 12px; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.eyebrow { color: var(--gold2); font-size: 10px; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; }

/* Accueil : panneau de présentation et formulaires côte à côte. */
.auth-shell { display: grid; grid-template-columns: 330px minmax(0, 1fr); overflow: hidden; border-radius: 15px; background: #080808; border: 1px solid var(--gold-border); box-shadow: 0 12px 35px rgba(0, 0, 0, .35); }
.auth-intro { position: relative; overflow: hidden; padding: 38px 30px; background: linear-gradient(145deg, #000, #181818); color: #fff; }
.auth-intro-content { position: relative; z-index: 1; }
.auth-brand-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 25px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 13px; background: rgba(255, 255, 255, .06); font-size: 27px; }
.auth-kicker { margin-bottom: 9px; color: var(--gold2); font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.auth-intro h2 { margin: 0; color: #fff; font-size: 35px; line-height: 1.05; letter-spacing: -.04em; }
.auth-intro h2 span { color: var(--gold); }
.auth-intro p { margin: 18px 0 27px; color: #c4c4c4; font-size: 12px; line-height: 1.65; }
.auth-features { display: flex; flex-direction: column; gap: 11px; }
.auth-features > div { display: flex; align-items: center; gap: 9px; color: #e3e3e3; font-size: 11px; }
.auth-features span { display: grid; place-items: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 50%; background: rgba(217, 164, 65, .15); color: var(--gold2); font-size: 10px; }
.auth-main { padding: 28px; background: #0d0d0d; color: #fff; }
.auth-columns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; }
.auth-panel { min-width: 0; }
.auth-login-panel { padding-right: 24px; border-right: 1px solid #303030; }
.auth-panel-heading { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; }
.auth-panel-icon { display: grid; place-items: center; width: 37px; height: 37px; flex: 0 0 37px; border-radius: 9px; background: #181818; border: 1px solid #292929; font-size: 17px; }
.auth-panel-heading h2 { margin: 0; color: #fff; font-size: 18px; }
.auth-panel-heading p { margin: 2px 0 0; color: #9da3ad; font-size: 10px; }
.auth-form { margin: 0; }
.field { display: grid; gap: 5px; margin: 0 0 12px; }
.field label { font-size: 12px; font-weight: 750; color: #d0d0d0; }
.field input, .field select, .field textarea, td select { width: 100%; padding: 10px 11px; border: 1px solid #3a3a3a; border-radius: 9px; background: #151515; color: #fff; }
.field input::placeholder, .field textarea::placeholder { color: #949494; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 2px rgba(212, 166, 86, .12); }
.field textarea { resize: vertical; min-height: 80px; }
.auth-form .field { gap: 4px; margin-bottom: 12px; }
.auth-form label { font-size: 10px; font-weight: 800; }
.auth-form input { border-radius: 8px; font-size: 12px; }
.auth-form .btn { margin-top: 3px; padding: 10px 12px; border-radius: 8px; font-size: 11px; font-weight: 900; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.form-grid .wide { grid-column: 1 / -1; }
.helper { font-size: 11px; color: var(--muted); margin-top: 10px; }
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus { -webkit-text-fill-color: #fff; caret-color: #fff; box-shadow: 0 0 0 1000px #151515 inset; }

/* Tableaux de bord, séances, classement et gestion. */
.dashboard-welcome { padding: 30px; margin-bottom: 22px; border: 1px solid var(--gold); border-radius: 16px; background: radial-gradient(circle at 80% 20%, rgba(212, 166, 86, .28), transparent 30%), linear-gradient(120deg, #000, #111); }
.dashboard-welcome h2 { margin: 8px 0; font-size: 30px; letter-spacing: -.5px; }
.dashboard-welcome p { margin: 0 0 18px; color: #c4c4c4; }
.summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.stat { padding: 20px; border: 1px solid rgba(212, 166, 86, .75); border-radius: 16px; background: #0d0d0d; box-shadow: var(--shadow); }
.stat-label { font-size: 13px; color: var(--muted); font-weight: 650; }
.stat-value { font-size: 25px; font-weight: 850; margin-top: 5px; color: #fff; }
.stat-note { font-size: 11px; color: #a0a0a0; }
.dashboard-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 20px; }
.auth-shell:not([hidden]) + #homeDashboard { margin-top: 22px; }
.dashboard-grid > .panel > h2 { padding-bottom: 17px; border-bottom: 1px solid #303030; }
.dashboard-panel-content { padding: 20px 0; }
.dashboard-panel-content .panel-sub { margin-top: 8px; }
.next-session-date { color: var(--gold); margin-bottom: 12px; font-size: 18px; font-weight: 850; text-transform: capitalize; }
.my-stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.my-stat { padding: 14px; border-radius: 11px; background: #151515; border: 1px solid #292929; }
.my-stat span { display: block; color: #b8b8b8; font-size: 12px; }
.my-stat strong { display: block; margin-top: 5px; color: #fff; font-size: 24px; }
.content-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 15px; margin: 0 0 20px; }
.content-head h2 { font-size: 25px; margin: 0; color: #fff; }
.content-head p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.filter { border: 1px solid #3a3a3a; background: #151515; color: #ccc; border-radius: 8px; padding: 8px 12px; font-size: 12px; font-weight: 700; }
.filter:hover { border-color: var(--gold); color: var(--gold2); }
.filter.active { border-color: var(--gold); background: rgba(212, 166, 86, .16); color: var(--gold2); }
.session-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.session-card { position: relative; background: #0d0d0d; border: 1px solid var(--gold-border); border-radius: var(--radius); box-shadow: 0 5px 18px rgba(0, 0, 0, .3); overflow: hidden; }
.session-card::before { content: ""; display: block; height: 4px; background: var(--gold); }
.session-card:hover { box-shadow: 0 10px 28px rgba(212, 166, 86, .12); }
.card-top { padding: 20px 22px 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.type-pill { display: inline-flex; align-items: center; gap: 7px; padding: 5px 9px; border-radius: 999px; font-size: 10px; font-weight: 850; letter-spacing: .055em; text-transform: uppercase; background: rgba(212, 166, 86, .16); color: var(--gold2); }
.type-pill.run { background: #10243d; color: #9bcaff; }
.type-pill.muscu { background: #241b38; color: #c9b2f6; }
.type-pill.conference { background: #10291b; color: #9be0b5; }
.session-card h3 { font-size: 19px; line-height: 1.3; margin: 12px 0 0; color: #fff; }
.status { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; font-weight: 850; color: var(--gold2); white-space: nowrap; }
.status.cancelled { color: #ffb3b3; }
.card-body { padding: 0 22px 20px; }
.detail { display: flex; gap: 10px; align-items: flex-start; padding-top: 11px; color: #e5e5e5; font-size: 13px; }
.detail .mini { width: 19px; color: var(--gold); font-weight: 800; }
.description { color: var(--muted); font-size: 12px; margin: 16px 0 0; overflow-wrap: anywhere; }
.card-bottom { border-top: 1px solid var(--line); padding: 14px 22px; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.capacity { font-size: 12px; color: var(--muted); }
.card-actions { display: flex; gap: 7px; flex-wrap: wrap; justify-content: flex-end; }
.empty { background: #0d0d0d; border: 1px dashed #444; border-radius: var(--radius); padding: 34px; text-align: center; color: var(--muted); }
.empty strong { display: block; color: #fff; font-size: 16px; margin-bottom: 5px; }
.notice { padding: 13px 15px; border: 1px solid #303030; border-left: 4px solid var(--gold); border-radius: 10px; margin: 0 0 18px; font-size: 13px; background: #151515; color: #fff; }
.notice.error { background: #321313; border-color: #733030; color: #ffcece; }
.notice.ok { background: #10291b; border-color: #2a563a; color: #c9f2d7; }
.ranking-wrap, .panel { background: #0d0d0d; border: 1px solid var(--gold-border); border-radius: var(--radius); box-shadow: var(--shadow); }
.ranking-wrap { overflow: hidden; }
.ranking-tabs { display: flex; flex-wrap: wrap; gap: 8px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; min-width: 560px; background: #0d0d0d; color: #f5f5f5; }
th, td { text-align: left; padding: 13px 16px; border-bottom: 1px solid #292929; }
th { font-size: 11px; color: var(--gold); background: #151515; text-transform: uppercase; letter-spacing: .07em; }
td { font-size: 13px; }
tbody tr:hover { background: #181818; }
.place { font-size: 17px; font-weight: 850; color: var(--gold); }
.referent-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: 20px; align-items: start; }
.panel { min-width: 0; padding: 22px; }
.panel h2, .panel h3 { margin: 0 0 5px; color: #fff; }
.panel h2 { font-size: 18px; }
.panel-sub { color: var(--muted); font-size: 12px; margin: 0 0 18px; }
.manage-item { border-top: 1px solid var(--line); padding: 14px 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.manage-item:first-child { border-top: 0; }
.manage-title { font-weight: 750; overflow-wrap: anywhere; }
.manage-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type="checkbox"] { accent-color: var(--gold); }
.loading { color: var(--muted); padding: 25px; }
.footer-note { margin: 24px 0 0; text-align: center; font-size: 11px; color: #a0a0a0; }
@media (max-width: 1100px) {
  .content-head { align-items: flex-start; flex-direction: column; }
  .filters { justify-content: flex-start; }
  .referent-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1000px) {
  .auth-shell { grid-template-columns: 260px minmax(0, 1fr); }
  .auth-columns { grid-template-columns: 1fr; }
  .auth-login-panel { padding: 0 0 22px; border-right: 0; border-bottom: 1px solid #303030; }
}
@media (max-width: 900px) {
  .sidebar { transform: translateX(-105%); transition: transform .22s ease; }
  .sidebar.open { transform: translateX(0); }
  .app-content { margin-left: 0; }
  .mobile-toggle { display: block; }
  .sidebar-overlay:not([hidden]) { display: block; position: fixed; z-index: 900; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: rgba(3, 10, 20, .68); backdrop-filter: blur(2px); }
}
@media (max-width: 760px) {
  .session-grid, .dashboard-grid { grid-template-columns: 1fr; }
  .summary { gap: 10px; }
  .stat { padding: 14px; }
  .stat-label { font-size: 11px; }
  .stat-note { font-size: 10px; }
}
@media (max-width: 700px) {
  .topbar { padding: 16px 18px; }
  .header-inner { gap: 10px; }
  .topbar h1 { font-size: 23px; }
  .topbar p { font-size: 11px; }
  .user-name, #authButton { display: none; }
  main { margin: 20px auto 45px; padding: 0 15px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-intro { padding: 25px 22px; }
  .auth-brand-icon, .auth-features { display: none; }
  .auth-intro h2 { font-size: 27px; }
  .auth-intro p { margin: 10px 0 0; }
  .auth-main { padding: 20px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-grid .wide { grid-column: auto; }
  .content-head h2 { font-size: 22px; }
  .dashboard-welcome { padding: 23px; }
  .dashboard-welcome h2 { font-size: 25px; }
  .dashboard-welcome p { font-size: 13px; }
  .manage-item { align-items: flex-start; flex-direction: column; }
}
@media (max-width: 380px) {
  .summary { grid-template-columns: 1fr; }
  .card-top, .card-bottom { flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
