:root {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #f7f5ef;
  background: #070808;
  --gold: #f5bd16;
  --gold-dark: #2b2209;
  --gold-line: rgba(245,189,22,.35);
  --text-muted: #969a9f;
  --panel: rgba(16,17,17,.94);
  --line: rgba(255,255,255,.10);
  --shadow: 0 24px 70px rgba(0,0,0,.34);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; background: radial-gradient(circle at 85% 8%, #241b08 0, transparent 31%), linear-gradient(135deg,#101212,#060707 60%); }
button,input,select,textarea { font: inherit; }
button,a { -webkit-tap-highlight-color: transparent; }
.layout { min-height: 100vh; display: grid; grid-template-columns: 265px minmax(0,1fr); }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 26px 18px; border-right: 1px solid var(--line); background: rgba(6,7,7,.94); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 8px 23px; border-bottom: 1px solid var(--line); }
.brand img { width: 78px; height: 78px; object-fit: contain; }
.brand strong { display: block; font-size: 17px; line-height: 1.15; }
.brand small { display: block; margin-top: 5px; color: var(--gold); font-size: 9px; font-weight: 900; letter-spacing: 1.6px; }
.sidebar nav { display: grid; gap: 7px; margin-top: 24px; }
.nav-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 13px 14px; border: 1px solid transparent; border-radius: 13px; color: #a9adb1; background: transparent; cursor: pointer; text-align: left; transition: .16s ease; }
.nav-item span { display: grid; place-items: center; width: 22px; color: #73777b; }
.nav-item:hover,.nav-item.active { color: #fff; border-color: var(--gold-line); background: rgba(245,189,22,.10); }
.nav-item.active span { color: var(--gold); }
.sidebar-foot { margin: auto 8px 0; color: #666b70; font-size: 11px; line-height: 1.6; }
.main { width: 100%; max-width: 1640px; margin: 0 auto; padding: 38px clamp(24px,4vw,62px) 60px; }
.header { display: flex; align-items: center; justify-content: space-between; gap: 25px; margin-bottom: 28px; }
.header h1 { margin: 7px 0 9px; font: 850 clamp(35px,4vw,58px)/1 Manrope,Inter,sans-serif; letter-spacing: -2.2px; }
.overline { margin: 0; color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: 2px; }
.subtle { color: var(--text-muted); }
.user-card { display: flex; align-items: center; gap: 11px; padding: 9px 10px 9px 12px; border: 1px solid var(--line); border-radius: 17px; background: rgba(255,255,255,.04); box-shadow: var(--shadow); }
.user-card img { width: 42px; height: 42px; object-fit: cover; border-radius: 12px; }
.user-card strong,.user-card small { display: block; }
.user-card small { margin-top: 3px; color: var(--text-muted); font-size: 10px; }
.surface { border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: var(--shadow); }
.hero { min-height: 170px; display: flex; align-items: center; justify-content: space-between; gap: 30px; overflow: hidden; padding: 30px 34px; border-color: var(--gold-line); background: linear-gradient(110deg,rgba(29,26,16,.98),rgba(15,16,16,.96) 65%,rgba(63,46,7,.72)); }
.hero h2 { margin: 8px 0; font: 850 clamp(26px,3vw,39px)/1.1 Manrope,Inter,sans-serif; letter-spacing: -1px; }
.hero p:last-child { max-width: 710px; color: #a6aaad; line-height: 1.65; }
.hero img { width: 132px; height: 132px; object-fit: contain; }
.stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin: 18px 0; }
.stat { min-height: 126px; padding: 20px; display: grid; grid-template-columns: 30px 1fr; align-content: start; gap: 10px; overflow: hidden; }
.stat > span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; color: var(--gold); background: rgba(245,189,22,.12); }
.stat > span svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.stat small { align-self: center; color: #a7aaae; font-weight: 700; }
.stat > strong { grid-column: 1/-1; font-size: 36px; }
.section { padding: 24px; }
.section-head { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 19px; }
.section-head h2 { margin: 0; font: 800 25px Manrope,Inter,sans-serif; }
.section-head p { margin: 5px 0 0; }
.button { display: inline-flex; justify-content: center; align-items: center; padding: 11px 16px; border: 1px solid var(--line); border-radius: 11px; color: #fff; background: rgba(255,255,255,.05); font-weight: 800; cursor: pointer; text-decoration: none; }
.button.primary { color: #090907; border-color: #ffd85a; background: var(--gold); }
.button.quiet:hover { color: var(--gold); border-color: var(--gold-line); }
.full { width: 100%; margin-top: 18px; }
.tabs { display: flex; gap: 7px; overflow-x: auto; margin-bottom: 18px; padding: 5px; border: 1px solid var(--line); border-radius: 15px; background: rgba(255,255,255,.025); }
.tabs button { flex: 0 0 auto; padding: 10px 14px; border: 1px solid transparent; border-radius: 10px; color: #a8acae; background: transparent; font-weight: 750; cursor: pointer; }
.tabs button.active { color: #090907; border-color: #ffd85a; background: var(--gold); }
.list { display: grid; gap: 10px; }
.list-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 16px; padding: 17px 18px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.list-row p,.list-row small { display: block; margin: 6px 0 0; color: var(--text-muted); line-height: 1.5; }
.row-actions { display: flex; align-items: center; gap: 8px; }
.pill { padding: 5px 9px; border: 1px solid var(--gold-line); border-radius: 999px; color: var(--gold); background: rgba(245,189,22,.10); font-size: 10px; font-weight: 850; text-transform: uppercase; }
.icon-button { width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 9px; color: #ddd; background: rgba(255,255,255,.04); cursor: pointer; }
.empty { display: grid; justify-items: center; padding: 45px 20px; border: 1px dashed var(--line); border-radius: 15px; color: var(--text-muted); text-align: center; }
.empty > span { color: var(--gold); font-size: 31px; }
.empty strong { margin-top: 9px; color: #eee; }
.empty p { margin: 6px 0 0; }
.calendar-head { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding-bottom: 20px; border-bottom: 1px solid var(--line); text-align: center; }
.calendar-head h2 { margin: 6px 0 0; text-transform: capitalize; }
.date-nav { display: flex; gap: 7px; }
.calendar-head input { justify-self: end; padding: 10px; border: 1px solid var(--line); border-radius: 10px; background: #0b0c0c; color: #fff; }
.timeline { margin-top: 18px; overflow: hidden; border: 1px solid var(--line); border-radius: 16px; }
.time-row { display: grid; grid-template-columns: 95px 1fr; min-height: 82px; border-bottom: 1px solid var(--line); }
.time-row:last-child { border-bottom: 0; }
.hour { display: flex; flex-direction: column; justify-content: center; padding: 13px 17px; background: rgba(255,255,255,.02); }
.hour strong { color: var(--gold); }
.hour small { margin-top: 3px; color: var(--text-muted); }
.slot { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin: 8px 10px; padding: 12px 16px; border: 1px solid transparent; border-radius: 11px; color: #eee; background: rgba(255,255,255,.025); text-align: left; cursor: pointer; }
.slot span strong,.slot span small { display: block; }
.slot span small { margin-top: 4px; color: var(--text-muted); }
.slot > b { color: var(--gold); font-size: 12px; }
.booked .slot { border-color: var(--gold-line); background: rgba(245,189,22,.09); }
.slot:disabled { cursor: wait; opacity: .65; }
.toast { position: fixed; right: 24px; bottom: 24px; z-index: 1000; max-width: min(420px, calc(100vw - 32px)); padding: 14px 18px; border: 1px solid rgba(255,94,94,.45); border-radius: 12px; color: #fff; background: #321616; box-shadow: 0 18px 45px rgba(0,0,0,.45); font-weight: 750; opacity: 0; transform: translateY(12px); transition: .2s ease; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.success { border-color: rgba(77,221,145,.45); background: #123123; }
.admin-list { display: grid; gap: 12px; }
.admin-user { display: grid; grid-template-columns: minmax(230px,.7fr) 1.4fr; align-items: center; gap: 18px; padding: 16px; }
.person { display: flex; align-items: center; gap: 11px; }
.person img { width: 45px; height: 45px; border-radius: 12px; object-fit: cover; }
.person small { display: block; margin-top: 4px; color: var(--text-muted); font-size: 10px; }
.admin-user form { display: grid; grid-template-columns: repeat(2,minmax(120px,1fr)); gap: 8px; }
.admin-user form input,.admin-user form select { min-width: 0; padding: 10px; border: 1px solid var(--line); border-radius: 9px; color: #fff; background: #090a0a; }
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.auth-box { width: min(510px,100%); text-align: center; }
.auth-box > img { width: 145px; height: 145px; object-fit: contain; }
.auth-card { padding: 39px; }
.auth-card h1 { margin: 9px 0 13px; font: 850 42px/1 Manrope,Inter,sans-serif; letter-spacing: -1.5px; }
.auth-box > small { display: block; margin-top: 14px; color: #686c70; }
.success { margin: 18px 0 0; color: #4ddd91; }
dialog { width: min(720px,94vw); padding: 25px; border: 1px solid var(--gold-line); border-radius: 20px; color: #fff; background: #111212; box-shadow: 0 35px 100px rgba(0,0,0,.7); }
dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(7px); }
.form { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.form .wide { grid-column: 1/-1; }
.form h2 { margin: 0 0 4px; }
.form label { display: grid; gap: 7px; color: #b4b7ba; font-size: 11px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
.form input,.form select,.form textarea { width: 100%; padding: 12px; border: 1px solid rgba(255,255,255,.14); border-radius: 11px; color: #fff; background: #090a0a; outline: none; text-transform: none; letter-spacing: 0; }
.form textarea { min-height: 110px; resize: vertical; }
.form [hidden] { display: none; }
.form-actions { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 1050px) { .stats { grid-template-columns: repeat(2,1fr); } .admin-user { grid-template-columns: 1fr; } }
@media (max-width: 820px) { .layout { grid-template-columns: 1fr; } .sidebar { position: relative; height: auto; padding: 15px; } .brand { padding-bottom: 14px; } .brand img { width: 58px; height: 58px; } .sidebar nav { display: flex; overflow-x: auto; margin-top: 14px; } .nav-item { flex: 0 0 auto; width: auto; } .sidebar-foot { display: none; } .main { padding: 25px 18px 42px; } .header { align-items: flex-start; flex-direction: column; } .user-card { width: 100%; } .user-card .button { margin-left: auto; } .calendar-head { grid-template-columns: 1fr; } .calendar-head input,.date-nav { justify-self: center; } }
@media (max-width: 590px) { .stats,.form { grid-template-columns: 1fr; } .form .wide { grid-column: auto; } .hero { padding: 24px; } .hero img { display: none; } .section { padding: 17px; } .section-head { align-items: flex-start; flex-direction: column; } .list-row { grid-template-columns: 1fr; } .time-row { grid-template-columns: 66px 1fr; } .hour { padding: 10px; } .slot { align-items: flex-start; flex-direction: column; } .admin-user form { grid-template-columns: 1fr; } }

/* Structure visuelle du panel principal MSSClick */
.layout { display: block; min-height: 100vh; }
.sidebar { position: fixed; z-index: 50; inset: 0 auto 0 0; width: 118px; height: 100vh; padding: 20px 14px; align-items: center; border-right: 1px solid rgba(255,255,255,.07); background: rgba(5,6,6,.92); backdrop-filter: blur(22px); }
.brand { width: 100%; justify-content: center; padding: 0 0 22px; border-bottom: 0; }
.brand img { width: 70px; height: 70px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.38)); }
.brand > div { display: none; }
.sidebar nav { display: flex; flex: 1; flex-direction: column; justify-content: center; gap: 10px; width: 100%; margin: 0; }
.nav-item { position: relative; display: grid; place-items: center; width: 60px; height: 60px; margin: 0 auto; padding: 0; border: 1px solid rgba(255,255,255,.06); border-radius: 50%; background: rgba(255,255,255,.045); box-shadow: 0 10px 25px rgba(0,0,0,.20); }
.nav-item span { width: auto; color: #9ca0a5; font-size: 21px; }
.nav-item .nav-icon { display: grid; place-items: center; width: 24px; height: 24px; }
.nav-item .nav-icon svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.nav-item b { position: absolute; left: 72px; padding: 8px 11px; border: 1px solid var(--line); border-radius: 9px; color: #fff; background: #111313; box-shadow: 0 10px 30px rgba(0,0,0,.4); font-size: 12px; white-space: nowrap; opacity: 0; pointer-events: none; transform: translateX(-6px); transition: .16s ease; }
.nav-item:hover b,.nav-item:focus-visible b { opacity: 1; transform: translateX(0); }
.nav-item:hover,.nav-item.active { color: #090907; border-color: #ffd85a; background: var(--gold); transform: translateY(-1px); }
.nav-item.active span,.nav-item:hover span { color: #111; }
.sidebar-foot { display: none; }
.main { width: auto; max-width: 1720px; min-height: 100vh; margin: 0 auto; padding: 30px clamp(26px,4vw,68px) 68px calc(118px + clamp(26px,4vw,68px)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 66px; margin-bottom: 42px; }
.search-box { display: flex; align-items: center; gap: 12px; width: min(620px,52vw); padding: 0 18px; border: 1px solid rgba(255,255,255,.09); border-radius: 999px; color: #777c81; background: rgba(255,255,255,.055); backdrop-filter: blur(18px); }
.search-box span { font-size: 25px; line-height: 1; }
.search-box input { width: 100%; height: 52px; border: 0; outline: 0; color: #f5f5f2; background: transparent; }
.search-box input::placeholder { color: #74787d; }
.user-card { flex: 0 0 auto; background: rgba(33,29,18,.76); box-shadow: 0 18px 45px rgba(0,0,0,.28); }
.header { margin: 0 0 28px; }
.header h1 { font-size: clamp(42px,4vw,64px); }
.hero { min-height: 210px; }
.stats { gap: 18px; }
.stat { min-height: 142px; }
.profile-hero { display: flex; align-items: center; gap: 24px; padding: 28px 30px; margin-bottom: 20px; background: linear-gradient(125deg,rgba(255,191,0,.10),rgba(18,19,18,.96) 48%,rgba(255,191,0,.07)); }
.profile-hero > img,.profile-avatar-fallback { width: 92px; height: 92px; flex: 0 0 92px; border: 2px solid rgba(255,194,0,.5); border-radius: 26px; object-fit: cover; box-shadow: 0 18px 40px rgba(0,0,0,.34); }
.profile-avatar-fallback { display: grid; place-items: center; color: #111; background: var(--gold); font-size: 34px; font-weight: 900; }
.profile-hero h2 { margin: 2px 0 5px; font-size: clamp(30px,3vw,44px); }
.profile-hero p { margin: 0; color: var(--muted); }
.profile-identifiers { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.profile-identifiers span { padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; color: #b9bdc0; background: rgba(255,255,255,.035); font-size: 12px; }
.profile-stats { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; margin-bottom: 20px; }
.profile-stats article { position: relative; min-height: 116px; padding: 20px; overflow: hidden; }
.profile-stats article::after { content: ""; position: absolute; right: -22px; bottom: -32px; width: 85px; height: 85px; border-radius: 50%; background: rgba(255,191,0,.07); }
.profile-stats small { display: block; color: var(--muted); font-weight: 700; }
.profile-stats strong { display: block; margin-top: 12px; color: #fff; font-size: 34px; }
.profile-activity-list { display: grid; gap: 8px; }
.profile-activity { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: rgba(255,255,255,.025); }
.profile-activity strong,.profile-activity small { display: block; }
.profile-activity small { margin-top: 4px; color: var(--muted); }
.council-dialog { width: min(900px,95vw); }
.council-help { margin: -2px 0 4px; }
.exam-intro { display: flex; justify-content: space-between; gap: 14px; margin: 8px 0 12px; padding: 14px 16px; border: 1px solid var(--gold-line); border-radius: 13px; background: rgba(245,189,22,.07); }
.exam-intro span { color: #b6b9bb; font-size: 12px; }
.exam-grid { display: grid; gap: 8px; }
.exam-row { display: grid; grid-template-columns: minmax(190px,1fr) 155px; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.025); }
.exam-row strong,.exam-row small { display: block; }
.exam-row small { margin-top: 4px; color: var(--text-muted); }
.exam-row .spell-field { grid-column: 1/-1; min-height: 72px; }
.council-result-preview { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 13px; background: #090a0a; }
.council-result-preview span { color: var(--text-muted); }
.council-result-preview strong.passed,.result-pill.passed { color: #62e49d; }
.council-result-preview strong.review,.result-pill.review { color: #ffbe54; }
.council-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; }
.council-card { padding: 20px; }
.council-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; }
.council-card h3 { margin: 5px 0; font-size: 23px; }
.council-card-head p:not(.overline) { margin: 0; color: var(--text-muted); }
.result-pill { padding: 7px 10px; border: 1px solid currentColor; border-radius: 999px; background: rgba(255,255,255,.025); font-size: 11px; font-weight: 900; text-transform: uppercase; }
.council-progress { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 12px; margin: 18px 0 14px; }
.council-progress > div { height: 7px; overflow: hidden; border-radius: 999px; background: rgba(255,255,255,.08); }
.council-progress > div span { display: block; height: 100%; border-radius: inherit; background: var(--gold); }
.council-progress strong { font-size: 12px; }
.requirement-summary { display: flex; flex-wrap: wrap; gap: 7px; }
.requirement-summary span { padding: 6px 8px; border: 1px solid var(--line); border-radius: 9px; font-size: 11px; }
.requirement-summary .ok { color: #62e49d; border-color: rgba(98,228,157,.25); background: rgba(98,228,157,.07); }
.requirement-summary .ko { color: #ff8b7d; border-color: rgba(255,139,125,.25); background: rgba(255,139,125,.07); }
.spell-summary,.council-notes { margin: 14px 0 0; color: #b7babc; font-size: 13px; line-height: 1.55; }
.council-card footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); color: var(--text-muted); }

@media (max-width: 820px) {
  .sidebar { top: auto; right: 0; width: 100%; height: 82px; padding: 10px 12px; border-top: 1px solid var(--line); border-right: 0; }
  .brand,.sidebar-foot { display: none; }
  .sidebar nav { flex-direction: row; justify-content: flex-start; gap: 8px; overflow-x: auto; }
  .nav-item { flex: 0 0 54px; width: 54px; height: 54px; }
  .nav-item b { display: none; }
  .main { padding: 22px 18px 112px; }
  .topbar { align-items: stretch; flex-direction: column-reverse; gap: 13px; margin-bottom: 30px; }
  .search-box,.user-card { width: 100%; }
  .header { display: block; }
  .profile-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .council-list { grid-template-columns: 1fr; }
}

@media (max-width: 590px) {
  .search-box { padding: 0 14px; }
  .header h1 { font-size: 42px; letter-spacing: -1.6px; }
  .user-card { gap: 8px; }
  .user-card .button { padding-inline: 12px; }
  .profile-hero { align-items: flex-start; flex-direction: column; }
  .profile-stats { grid-template-columns: 1fr; }
  .exam-row { grid-template-columns: 1fr; }
  .exam-intro,.council-result-preview { align-items: flex-start; flex-direction: column; }
}

