/* couleur principal et valeur reutiliser dans toute les pages */
:root {
  --ink: #110c18;
  --panel: #1b1326;
  --line: #3a2850;
  --muted: #a69bb5;
  --paper: #f5f0ff;
  --gold: #9b6cff;
  --red: #9d302e;
  --green: #4f8c66;
  --amber: #bd7b2d;
  --radius: 14px;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: #e9e7e1;
  background: #0f0a16;
}
.badge.scope-global {
  background: #4a2770;
  color: #e0ccff;
  border: 1px solid #7148a0;
}
/* affichage des deadline avec les niveau d'urgence */
.deadline-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.deadline-list {
  display: grid;
  gap: 12px;
}
.deadline-card {
  margin: 0;
  padding: 17px;
  border: 1px solid #3a2850 !important;
  border-left: 4px solid #7650a2 !important;
  border-radius: 10px;
  background: #181020;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.deadline-card.urgent {
  border-left-color: #d28a38 !important;
  background: #211725;
}
.deadline-card.critical {
  border-left-color: #e15450 !important;
  background: #28131f;
}
.deadline-card.overdue {
  border-left-color: #ff5b62 !important;
  background: #2d111d;
}
.deadline-main {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.deadline-main small {
  display: block;
  margin-top: 6px;
}
.countdown {
  margin-top: 15px;
  color: #cbb2ff;
  font:
    700 13px ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  letter-spacing: 0.025em;
}
.deadline-card.urgent .countdown {
  color: #efb864;
}
.deadline-card.critical .countdown,
.deadline-card.overdue .countdown {
  color: #ff8989;
}
.time-progress {
  height: 5px;
  margin-top: 11px;
  border-radius: 10px;
  overflow: hidden;
  background: #352542;
}
.time-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #7447b0, #b18aff);
}
.deadline-pass {
  color: #bce8c9;
  background: #234332;
  border-color: #35684a;
}
.deadline-pass:hover {
  background: #2e5941;
}
@media (max-width: 640px) {
  .deadline-main {
    display: block;
  }
  .deadline-main .actions {
    margin-top: 12px;
  }
  .countdown {
    font-size: 11px;
    line-height: 1.6;
  }
}
.member-training-panel {
  margin-bottom: 18px;
  border-color: #563b70;
}
.member-training-panel .panel-head {
  background: linear-gradient(90deg, rgba(126, 76, 178, 0.16), transparent);
}
.record-count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  margin-left: 7px;
  border-radius: 20px;
  color: #ddcbff;
  background: #4a2770;
  font:
    700 12px ui-sans-serif,
    system-ui;
}
.training-record {
  position: relative;
  padding: 15px 0;
  border-bottom: 1px solid #32223f;
}
.training-record:last-child {
  border: 0;
}
.training-record-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
}
.training-record-head b {
  display: block;
}
.training-record-head small {
  display: block;
  margin-top: 6px;
  color: var(--muted);
}
.training-record p {
  margin: 10px 0 0;
  color: #c8c0d1;
}
.training-score {
  display: inline-block;
  margin-top: 10px;
  color: #cbb2ff;
}
.legacy-training-panel {
  display: none;
}
.guard-logo {
  object-fit: contain;
}
.login-logo {
  width: 92px;
  height: 112px;
  filter: drop-shadow(0 12px 24px rgba(155, 108, 255, 0.3));
}
.side-logo {
  width: 42px;
  height: 54px;
}
.modal-error {
  margin: 16px 0 0;
}
.btn:disabled {
  cursor: wait;
  opacity: 0.65;
}
/* fenetre par dessus la page pour tout les formulaire */
.modal-overlay {
  position: fixed;
  z-index: 30;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 14px;
  background: rgba(8, 3, 14, 0.78);
  backdrop-filter: blur(5px);
}
.modal-card {
  width: min(680px, 100%);
  max-height: 88vh;
  overflow: auto;
  border: 1px solid #684491;
  border-radius: 14px;
  color: #eee;
  background: linear-gradient(145deg, #21152e, #160d20);
  box-shadow:
    0 25px 80px #000,
    0 0 45px rgba(124, 58, 237, 0.12);
}
.btn.primary {
  color: #fff !important;
  box-shadow: 0 8px 24px rgba(124, 58, 237, 0.25);
}
.btn.secondary {
  background: #281b35 !important;
  border-color: #4c3562 !important;
}
.stat:hover,
.panel:hover {
  border-color: #51366b;
}
.topbar {
  box-shadow: 0 10px 35px rgba(7, 2, 11, 0.22);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 70% -20%, #3c1f59 0, transparent 36%), #0f0a16;
}
.hidden {
  display: none !important;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
.kicker {
  margin: 0 0 7px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.17em;
}
.muted {
  color: var(--muted);
}
/* ecran de connexion avec le fond violet de la garde */
.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.82), rgba(0, 0, 0, 0.42)),
    radial-gradient(circle at 75% 45%, #4d236d, #120b1b 48%);
}
.login-screen:after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 89px,
      rgba(155, 108, 255, 0.055) 90px
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 89px,
      rgba(155, 108, 255, 0.055) 90px
    );
}
.login-card {
  z-index: 1;
  width: min(440px, 100%);
  padding: 44px;
  border: 1px solid #5f3e80;
  border-radius: 4px;
  background: rgba(18, 11, 27, 0.95);
  box-shadow:
    0 28px 90px #050208,
    0 0 60px rgba(124, 58, 237, 0.14);
}
.login-card h1 {
  font-family: Georgia, serif;
  font-size: 38px;
  margin: 17px 0 8px;
}
.login-card form {
  display: grid;
  gap: 18px;
  margin-top: 30px;
}
.login-card label,
.form-grid label {
  display: grid;
  gap: 8px;
  color: #c8c5bd;
  font-size: 13px;
  font-weight: 650;
}
.seal {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  color: var(--gold);
  font:
    700 12px Georgia,
    serif;
  box-shadow:
    inset 0 0 0 4px #171717,
    inset 0 0 0 5px #56482f;
}
.seal.large {
  width: 70px;
  height: 70px;
  font-size: 17px;
  margin-bottom: 22px;
}
/* structure general avec le menu a gauche et le contenue a droite */
.app {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 248px 1fr;
}
.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  background: #120d19;
}
.brand {
  height: 86px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 0 22px;
  border-bottom: 1px solid var(--line);
}
.brand b {
  font:
    700 20px Georgia,
    serif;
}
.brand span,
.session span {
  display: block;
  margin-top: 3px;
  font-size: 11px;
  color: var(--muted);
}
nav {
  padding: 24px 12px;
  display: grid;
  gap: 5px;
}
nav button {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 0;
  border-radius: 8px;
  color: #aeb3b9;
  background: transparent;
  text-align: left;
  font-weight: 650;
}
nav button span {
  width: 22px;
  color: #727982;
  text-align: center;
}
nav button:hover,
nav button.active {
  color: #fff;
  background: #2a1d38;
}
nav button.active {
  box-shadow: inset 3px 0 var(--gold);
}
.session {
  margin-top: auto;
  display: grid;
  grid-template-columns: 36px 1fr 28px;
  align-items: center;
  gap: 10px;
  padding: 18px;
  border-top: 1px solid var(--line);
}
.avatar {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #392154;
  color: #d7c2ff;
  font-weight: 800;
}
.session button,
.icon-close {
  border: 0;
  background: none;
  color: #9298a0;
  font-size: 20px;
}
main {
  min-width: 0;
}
.topbar {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(15, 10, 22, 0.88);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 5;
}
.topbar h2 {
  margin: 0;
  font:
    700 24px Georgia,
    serif;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.sync {
  font-size: 12px;
  color: #a78bfa;
}
.btn {
  border: 1px solid transparent;
  border-radius: 7px;
  padding: 10px 15px;
  font-weight: 750;
}
.btn.primary {
  color: #17130c;
  background: var(--gold);
}
.btn.primary:hover {
  background: #ad88ff;
}
.btn.secondary {
  color: #ddd;
  background: #22262b;
  border-color: #3b4047;
}
.btn.danger {
  color: #efc3bd;
  background: #401e1d;
  border-color: #70302d;
}
.btn.small {
  padding: 7px 10px;
  font-size: 12px;
}
#content {
  padding: 32px;
  max-width: 1500px;
  margin: auto;
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 26px;
}
.hero h1 {
  font:
    700 34px Georgia,
    serif;
  margin: 0 0 8px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}
.stat,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, #20162c, #15101d);
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.16);
}
.stat {
  padding: 20px;
}
.stat .label {
  font-size: 12px;
  color: #a5abb2;
}
.stat strong {
  display: block;
  margin-top: 12px;
  font:
    700 32px Georgia,
    serif;
}
.stat small {
  color: var(--muted);
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 0.7fr);
  gap: 18px;
}
.panel {
  overflow: hidden;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.panel-head h3 {
  font:
    700 17px Georgia,
    serif;
  margin: 0;
}
.panel-body {
  padding: 18px 20px;
}
.rank-row {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #25292e;
}
.rank-row:last-child {
  border: 0;
}
.rank-badge {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #2e1c43;
  color: #c9afff;
  font: 700 12px Georgia;
}
.rank-row span {
  color: var(--muted);
  font-size: 12px;
}
.progress {
  height: 5px;
  margin-top: 8px;
  border-radius: 5px;
  background: #362744;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  background: var(--gold);
}
.deadline {
  padding: 13px 0;
  border-bottom: 1px solid #262a2f;
}
.deadline:last-child {
  border: 0;
}
.deadline b {
  display: block;
  margin-bottom: 5px;
}
.deadline small {
  color: var(--muted);
}
.deadline.overdue small {
  color: #d36d67;
}
.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.search {
  flex: 1;
  max-width: 420px;
}
/* les tableau peuvent defiler sur les petit ecran sans tout casser */
.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #17101f;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}
th,
td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid #272b30;
}
th {
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #8f969f;
  background: #21162d;
}
td {
  font-size: 13px;
}
tbody tr:hover {
  background: #261a32;
}
.member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mini-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #332046;
  color: #c9afff;
  font-weight: 800;
}
.badge {
  display: inline-block;
  padding: 5px 8px;
  border-radius: 20px;
  background: #332640;
  color: #c7ccd1;
  font-size: 11px;
  font-weight: 750;
}
.badge.global,
.badge.validated {
  background: #293c34;
  color: #9ed0ad;
}
.badge.limited,
.badge.in-progress {
  background: #443157;
  color: #e1bd72;
}
.badge.visitor {
  background: #30253a;
}
.badge.failed {
  background: #402523;
  color: #e69b94;
}
.actions {
  display: flex;
  gap: 7px;
}
.empty {
  text-align: center;
  padding: 50px 20px;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  padding: 11px 12px;
  border: 1px solid #3a3f45;
  border-radius: 7px;
  outline: none;
  color: #eee;
  background: #130d1b;
}
input:focus,
select:focus,
textarea:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(199, 163, 90, 0.12);
}
textarea {
  min-height: 90px;
  resize: vertical;
}
dialog {
  width: min(680px, calc(100% - 28px));
  max-height: 88vh;
  overflow: auto;
  padding: 0;
  border: 1px solid #563b70;
  border-radius: 14px;
  color: #eee;
  background: #1b1224;
  box-shadow: 0 25px 80px #000;
}
dialog::backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(3px);
}
#modalForm {
  padding: 24px;
}
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 22px;
}
.modal-head h3 {
  margin: 0;
  font: 700 24px Georgia;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.form-grid .full {
  grid-column: 1/-1;
}
.checkline {
  display: flex !important;
  grid-auto-flow: column;
  justify-content: start;
  align-items: center;
}
.checkline input {
  width: auto;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.error {
  min-height: 18px;
  color: #df7c75;
  font-size: 13px;
}
#toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 20;
  transform: translateY(120px);
  opacity: 0;
  padding: 12px 16px;
  border: 1px solid #4b493f;
  border-radius: 8px;
  background: #24231f;
  color: #eee;
  transition: 0.25s;
}
#toast.show {
  transform: none;
  opacity: 1;
}
.timeline {
  display: grid;
  gap: 12px;
}
.timeline-item {
  padding: 15px;
  border-left: 3px solid var(--gold);
  background: #21162c;
}
.timeline-item p {
  margin: 7px 0;
  color: #c5c8cc;
}
.timeline-item small {
  color: var(--muted);
}
@media (max-width: 960px) {
  .app {
    grid-template-columns: 78px 1fr;
  }
  .brand > div:last-child,
  .session > div:nth-child(2),
  nav button:not(.active) span + *,
  nav button {
    font-size: 0;
  }
  .brand {
    padding: 0 17px;
  }
  .sidebar nav button {
    justify-content: center;
  }
  .sidebar nav button span {
    font-size: 19px;
  }
  .session {
    grid-template-columns: 36px 1fr;
    padding: 18px 12px;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
  }
  .split {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .app {
    display: block;
    padding-bottom: 72px;
  }
  .sidebar {
    position: fixed;
    z-index: 10;
    top: auto;
    bottom: 0;
    width: 100%;
    height: 68px;
    display: block;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .brand,
  .session {
    display: none;
  }
  nav {
    height: 100%;
    padding: 7px;
    display: flex;
    justify-content: space-around;
  }
  nav button {
    padding: 8px;
    display: grid;
    place-items: center;
    font-size: 0 !important;
  }
  nav button span {
    font-size: 19px;
  }
  .topbar {
    height: auto;
    min-height: 74px;
    padding: 14px 18px;
  }
  .sync {
    display: none;
  }
  #quickAdd {
    font-size: 0;
    padding: 10px;
  }
  #quickAdd:after {
    content: "+";
    font-size: 18px;
  }
  .topbar h2 {
    font-size: 20px;
  }
  #content {
    padding: 20px 14px;
  }
  .hero {
    display: block;
  }
  .cards {
    grid-template-columns: 1fr 1fr;
    gap: 10px;
  }
  .stat {
    padding: 15px;
  }
  .stat strong {
    font-size: 26px;
  }
  .split {
    display: block;
  }
  .split .panel {
    margin-bottom: 14px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-grid .full {
    grid-column: auto;
  }
  .toolbar {
    flex-wrap: wrap;
  }
  .toolbar .btn {
    flex: 1;
  }
  .header-actions {
    gap: 8px;
  }
}
.progress-overview {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 18px;
}
.attachment-link {
  display: block;
  width: max-content;
  margin-top: 7px;
  color: #c4a5ff;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}
.attachment-link:hover {
  text-decoration: underline;
}
.private-note {
  margin-left: 6px;
  background: #4b2a62;
  color: #e4caff;
  border: 1px solid #71468e;
}
.leaderboard {
  display: grid;
  gap: 10px;
}
.leader-row {
  display: grid;
  grid-template-columns: 44px 38px minmax(150px, 1fr) auto 80px;
  gap: 14px;
  align-items: center;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(110deg, #20142b, #15101c);
}
.leader-row.podium {
  border-color: #68458b;
  background: linear-gradient(110deg, #2b193d, #181020);
}
.leader-position {
  font: 700 22px Georgia;
  color: #b993ff;
  text-align: center;
}
.leader-person small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
.leader-metrics {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.leader-metrics span {
  padding: 5px 8px;
  border-radius: 12px;
  color: #bbb1c7;
  background: #2d2038;
  font-size: 11px;
}
.leader-row > strong {
  text-align: right;
  color: #d5baff;
}
/* calendrier et petite carte des evenement */
.calendar-title {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font: 700 22px Georgia;
  text-transform: capitalize;
}
.calendar-week,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
}
.calendar-week b {
  padding: 10px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.calendar-day {
  min-height: 135px;
  padding: 8px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.calendar-day.outside {
  opacity: 0.38;
}
.calendar-day > span {
  display: block;
  margin-bottom: 7px;
  color: #d7c9e7;
  font-weight: 800;
}
.calendar-event {
  margin-top: 5px;
  padding: 6px;
  border-radius: 6px;
  overflow: hidden;
  color: #eee;
  background: #39254d;
  font-size: 10px;
}
.calendar-event.deadline {
  border: 0;
  background: #4b283e;
}
.calendar-event b,
.calendar-event small {
  display: block;
  margin-bottom: 2px;
  color: #d7baff;
  font-size: 9px;
}
.calendar-event small {
  margin: 3px 0 0;
  color: #bdb3c7;
}
.calendar-actions {
  display: flex;
  gap: 7px;
}
.calendar-event.status-validated {
  border: 1px solid #3d7b58;
  background: #234332;
}
.calendar-event.status-failed {
  border: 1px solid #873f4a;
  background: #4e222c;
}
.calendar-event.status-in-progress {
  border: 1px solid #664695;
  background: #39254d;
}
.calendar-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
}
.calendar-event-head b {
  margin: 0;
}
.calendar-event-head em {
  padding: 2px 5px;
  border-radius: 8px;
  color: #e8dfff;
  background: rgba(0, 0, 0, 0.25);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}
.calendar-event.status-validated .calendar-event-head em {
  color: #bce8c9;
}
.calendar-event.status-failed .calendar-event-head em {
  color: #ffb7be;
}
.calendar-event.status-in-progress .calendar-event-head em {
  color: #d7baff;
}
.notification-trigger {
  position: relative;
}
.notification-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-left: 5px;
  padding: 0 5px;
  border-radius: 20px;
  color: #fff;
  background: #9b4bd1;
  font-size: 10px;
}
.notification-list {
  display: grid;
  gap: 2px;
}
.notification-item {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}
.notification-item.read {
  opacity: 0.58;
}
.notification-item p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.notification-dot {
  width: 8px;
  height: 8px;
  margin-top: 5px;
  border-radius: 50%;
  background: #9b6cff;
}
.notification-item.read .notification-dot {
  background: #51465e;
}
.badge.warning-notice {
  background: #2c3b4e;
  color: #aed3ff;
}
.badge.warning-minor {
  background: #4d4125;
  color: #f0d68b;
}
.badge.warning-major {
  background: #592f28;
  color: #ffb3a4;
}
.badge.warning-final-warning {
  background: #671f3a;
  color: #ffc1d6;
}
nav {
  overflow-y: auto;
}
.sidebar nav {
  scrollbar-width: thin;
  scrollbar-color: #5a3b78 transparent;
}
@media (max-width: 960px) {
  .progress-overview {
    grid-template-columns: 1fr 1fr;
  }
  .leader-row {
    grid-template-columns: 38px 34px 1fr auto;
  }
  .leader-metrics {
    grid-column: 3/-1;
  }
  .calendar {
    overflow-x: auto;
  }
  .calendar-week,
  .calendar-grid {
    min-width: 760px;
  }
}
@media (max-width: 640px) {
  .progress-overview {
    grid-template-columns: 1fr 1fr;
  }
  .leader-row {
    grid-template-columns: 34px 32px 1fr auto;
    padding: 12px;
  }
  .leader-metrics {
    grid-column: 1/-1;
  }
  .calendar-actions {
    margin-top: 14px;
  }
  .notification-trigger {
    font-size: 0;
    padding: 10px;
  }
  .notification-trigger:before {
    content: "🔔";
    font-size: 15px;
  }
  .notification-count {
    font-size: 10px;
  }
}
.report-list {
  display: grid;
  gap: 18px;
}
.report-card {
  overflow: hidden;
}
.report-stats {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  border-bottom: 1px solid var(--line);
}
.report-stats > div {
  padding: 18px 12px;
  border-right: 1px solid var(--line);
  text-align: center;
}
.report-stats > div:last-child {
  border-right: 0;
}
.report-stats strong {
  display: block;
  color: #d7baff;
  font: 700 27px Georgia;
}
.report-stats span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}
.report-member {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}
.report-member:last-child {
  border: 0;
}
.report-member span {
  color: var(--muted);
  font-size: 12px;
}
@media (max-width: 960px) {
  .report-stats {
    grid-template-columns: repeat(3, 1fr);
  }
  .report-stats > div:nth-child(3) {
    border-right: 0;
  }
}
@media (max-width: 640px) {
  .report-stats {
    grid-template-columns: 1fr 1fr;
  }
  .report-stats > div:nth-child(3) {
    border-right: 1px solid var(--line);
  }
  .report-stats > div:nth-child(even) {
    border-right: 0;
  }
  .report-member {
    display: block;
  }
  .report-member span {
    display: block;
    margin-top: 5px;
  }
}
@media (max-width: 640px) {
  .sidebar nav {
    justify-content: flex-start;
    overflow-x: auto;
  }
  .sidebar nav button {
    min-width: 48px;
    flex: 0 0 48px;
  }
}
select[multiple] {
  min-height: 148px;
  padding: 6px;
}
select[multiple] option {
  padding: 7px;
  border-radius: 4px;
}
select[multiple] option:checked {
  color: #fff;
  background: #6840a0;
}
.calendar-scope {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}
.calendar-extra {
  display: none;
}
.calendar-day.expanded {
  position: relative;
  z-index: 3;
  background: #21162c;
  box-shadow: 0 14px 35px rgba(0, 0, 0, 0.55);
}
.calendar-day.expanded .calendar-extra {
  display: block;
}
.calendar-more {
  width: 100%;
  margin-top: 6px;
  padding: 5px;
  border: 1px dashed #68458b;
  border-radius: 6px;
  color: #cdb5f6;
  background: #291c36;
  font-size: 10px;
  font-weight: 800;
}
.calendar-more:hover {
  background: #38244a;
}
.calendar-day.expanded .calendar-more {
  display: none;
}
.badge.disabled {
  background: #402523;
  color: #e69b94;
}
.session-profile {
  min-width: 0;
  padding: 5px 6px;
  border-radius: 7px;
  cursor: pointer;
}
.session-profile:hover,
.session-profile:focus {
  outline: none;
  background: #2a1d38;
}
.session-profile.nco-profile span {
  color: #d8b7ff;
}
.profile-card {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #17101f;
}
.profile-card h4 {
  margin: 0 0 6px;
  font: 700 20px Georgia;
}
.profile-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.profile-avatar {
  width: 52px;
  height: 52px;
  font-size: 18px;
}
.badge.nco-access {
  margin-left: 7px;
  color: #f0dcff;
  background: #572b78;
  border: 1px solid #8852ad;
}
.profile-notice {
  padding: 14px;
  border: 1px solid #68458b;
  border-radius: 9px;
  color: #d7c5e8;
  background: #251831;
}
/* bandeau qui descend en haut quand une annonce est pas encore lu */
.announcement-banner {
  position: sticky;
  z-index: 4;
  top: 86px;
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 13px 34px;
  border: 0;
  border-bottom: 1px solid #8d5abb;
  color: #fff;
  background: linear-gradient(90deg, #4d216f, #6d3295, #3d1a59);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
  text-align: left;
}
.announcement-banner span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.15em;
}
.announcement-banner b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.announcement-banner em {
  font-size: 11px;
  font-style: normal;
  color: #ead9f8;
}
.announcement-list {
  display: grid;
  gap: 12px;
}
.announcement-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px;
}
.announcement-card.inactive {
  opacity: 0.55;
}
.announcement-card h3 {
  margin: 0 0 8px;
  font: 700 20px Georgia;
}
.announcement-card p:not(.kicker) {
  margin: 0 0 9px;
  color: #c8bfd1;
}
.announcement-card small {
  color: var(--muted);
}
.announcement-full {
  padding: 8px;
}
.announcement-full > div {
  white-space: pre-wrap;
  color: #eee;
  font-size: 15px;
  line-height: 1.7;
}
@media (max-width: 640px) {
  .announcement-banner {
    top: 74px;
    grid-template-columns: 1fr;
    padding: 11px 16px;
    gap: 3px;
  }
  .announcement-banner em {
    display: none;
  }
  .announcement-card {
    display: block;
  }
  .announcement-card .actions {
    margin-top: 14px;
  }
}
.badge.announcement-target {
  margin-right: 3px;
  color: #dfcaff;
  background: #44245e;
  border: 1px solid #674081;
}
