/* ==========================================================
   Dashboard d'administration, mêmes couleurs que le site
   ========================================================== */

:root {
  --navy: #0a2a66;
  --navy-deep: #071c47;
  --navy-line: #1d4796;
  --blue: #2b8cd8;
  --sky: #eaf2fd;
  --sky-text: #bbd3f5;
  --yellow: #ffc72c;
  --orange: #f57c00;
  --black: #000;
  --ink: #1b1f27;
  --muted: #5b6575;
  --line: #e3eaf5;
  --bg: #f4f7fc;
  --white: #fff;
  --error: #b3261e;
  --ok: #1b7a43;
  --radius: 14px;
  --font-display: "Bodoni Moda", Georgia, serif;
  --font-body: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body.admin {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: var(--navy);
  text-underline-offset: 3px;
}

a:hover {
  color: var(--blue);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  padding: 0.6rem 1rem;
  background: var(--yellow);
  color: var(--black);
  font-weight: 700;
}

.skip-link:focus {
  left: 0;
}

[hidden] {
  display: none !important;
}

/* ---------- Structure ---------- */

.shell {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  min-height: 100vh;
}

.side {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  padding: 1.1rem 1rem;
  background: var(--navy);
  color: var(--white);
  overflow-y: auto;
}

.side__brand {
  display: block;
  margin-bottom: 1.4rem;
  padding: 0.3rem;
  background: var(--white);
  border-radius: var(--radius);
}

.side__brand img {
  width: 100%;
  height: 74px;
  object-fit: cover;
  object-position: 50% 47%;
}

.nav {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav a {
  display: block;
  padding: 0.65rem 0.9rem;
  border-radius: 10px;
  color: var(--sky-text);
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav a.is-active {
  background: var(--yellow);
  color: var(--black);
}

.side :focus-visible,
.top :focus-visible {
  outline-color: var(--yellow);
}

.main {
  min-width: 0;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1.75rem;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}

.top__user {
  margin: 0;
  color: var(--muted);
}

.content {
  max-width: 1100px;
  padding: 1.75rem;
}

/* ---------- En-têtes de page ---------- */

.page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem 1.2rem;
  margin-bottom: 1.4rem;
}

.page-head h1 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.2;
  color: var(--navy);
}

.page-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.breadcrumb {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Boutons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: none;
  font: 700 0.95rem/1.2 var(--font-body);
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}

.btn--primary {
  background: var(--orange);
  color: var(--navy-deep);
}

.btn--primary:hover {
  background: var(--yellow);
  color: var(--navy-deep);
}

.btn--secondary {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--secondary:hover {
  background: var(--navy);
  color: var(--white);
}

.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: var(--white);
}

.btn--ghost:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.btn--danger {
  background: var(--error);
  color: var(--white);
}

.btn--danger:hover {
  background: #8c1d18;
  color: var(--white);
}

.btn--danger-ghost {
  border-color: #e8c4c1;
  color: var(--error);
  background: var(--white);
}

.btn--danger-ghost:hover {
  background: var(--error);
  border-color: var(--error);
  color: var(--white);
}

.btn--small {
  padding: 0.4rem 0.85rem;
  font-size: 0.85rem;
}

.btn--block {
  width: 100%;
  padding-block: 0.9rem;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- Messages ---------- */

.alert {
  margin-bottom: 1.2rem;
  padding: 0.85rem 1.1rem;
  border-radius: 12px;
  border-left: 5px solid;
}

.alert--success {
  background: #e6f4ec;
  border-color: var(--ok);
  color: #14532d;
}

.alert--error {
  background: #fdecea;
  border-color: var(--error);
  color: #7a1913;
}

.empty {
  padding: 2rem;
  text-align: center;
  color: var(--muted);
  background: var(--white);
  border: 1px dashed #b9c6db;
  border-radius: var(--radius);
}

.muted {
  color: var(--muted);
}

/* ---------- Cartes ---------- */

.card {
  margin-bottom: 1.2rem;
  padding: 1.4rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.card--flush {
  padding: 0;
  overflow: hidden;
}

.card h2 {
  margin-bottom: 0.9rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.card__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.6rem;
}

.card__head h2 {
  margin: 0;
}

.card__lead {
  margin-bottom: 1rem;
  color: var(--muted);
}

.card__sub {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  color: var(--ink);
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.4rem;
}

.stack {
  display: grid;
  gap: 1rem;
}

.card .field + .grid-2,
.card .grid-2 + .field {
  margin-top: 1rem;
}

/* ---------- Statistiques ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1rem;
  margin: 0 0 1.2rem;
  padding: 0;
  list-style: none;
}

.stat {
  display: flex;
  flex-direction: column;
  padding: 1.1rem 1.2rem;
  background: var(--white);
  border: 1px solid var(--line);
  border-top: 5px solid var(--blue);
  border-radius: var(--radius);
}

.stat:nth-child(2) {
  border-top-color: var(--yellow);
}

.stat:nth-child(3) {
  border-top-color: var(--orange);
}

.stat:nth-child(4) {
  border-top-color: var(--navy);
}

.stat__num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.3rem;
  line-height: 1.1;
  color: var(--navy);
}

.stat__label {
  color: var(--muted);
  font-size: 0.92rem;
}

.bars {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bar {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 2.2rem;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.93rem;
}

.bar__track {
  height: 12px;
  overflow: hidden;
  background: var(--sky);
  border-radius: 999px;
}

.bar__fill {
  display: block;
  height: 100%;
  background: var(--blue);
  border-radius: 999px;
}

.bar__fill--alt {
  background: var(--orange);
}

.bar__value {
  text-align: right;
  font-weight: 700;
}

/* ---------- Tableaux ---------- */

.table-wrap {
  overflow-x: auto;
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.93rem;
  border: 1px solid #b9c7de;
}

/* Contours visibles : chaque cellule est encadrée */
.table th,
.table td {
  padding: 0.75rem 1rem;
  text-align: left;
  vertical-align: middle;
  border: 1px solid #b9c7de;
}

/* Dans une carte : le contour de la carte sert de bordure extérieure (pas de double trait) */
.card--flush .table {
  border: 0;
}

.card--flush .table tr > :first-child {
  border-left: 0;
}

.card--flush .table tr > :last-child {
  border-right: 0;
}

.card--flush .table thead tr:first-child > * {
  border-top: 0;
}

.card--flush .table tbody tr:last-child > * {
  border-bottom: 0;
}

.table thead th {
  background: var(--sky);
  color: var(--navy);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}


.table tbody tr:hover {
  background: #f9fbfe;
}

.table__title {
  display: block;
  font-weight: 700;
}

.table__sub {
  font-size: 0.85rem;
  color: var(--muted);
}

.table__actions {
  text-align: right;
  white-space: nowrap;
}

.table__actions > * {
  display: inline-block;
  vertical-align: middle;
  margin-left: 0.4rem;
}

.table__actions > *:first-child {
  margin-left: 0;
}

.table__actions form {
  margin-bottom: 0;
  margin-top: 0;
}

.badge {
  display: inline-block;
  margin: 0.1rem 0.15rem 0.1rem 0;
  padding: 0.1rem 0.65rem;
  border-radius: 999px;
  background: #e6eaf2;
  color: #333a46;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge--ok {
  background: #e0f2e8;
  color: #14532d;
}

.badge--warn {
  background: #fff1d6;
  color: #7a4a00;
}

.badge--muted {
  background: #eceff5;
  color: #5b6575;
}

/* ---------- Formulaires ---------- */

.form {
  display: block;
}

.field {
  display: grid;
  gap: 0.35rem;
  align-content: start;
}

.field label {
  font-weight: 600;
  font-size: 0.93rem;
}

.field__req {
  color: var(--error);
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1.5px solid #b9c6db;
  border-radius: 10px;
  background: var(--white);
  font: inherit;
  color: var(--ink);
}

.field textarea {
  resize: vertical;
  line-height: 1.5;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(43, 140, 216, 0.25);
}

.field__hint {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.field__error {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--error);
}

.field:has(.field__error) input,
.field:has(.field__error) select,
.field:has(.field__error) textarea {
  border-color: var(--error);
}

.check {
  display: grid;
  gap: 0.2rem;
}

.check__label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 600;
  cursor: pointer;
}

.check__label input {
  width: 20px;
  height: 20px;
  accent-color: var(--navy);
}

.check .field__hint {
  margin-left: 1.9rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  padding: 0.4rem 0 2rem;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
  max-width: 100%;
}

.inline-form select {
  min-width: 0;
  max-width: 100%;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid #b9c6db;
  border-radius: 10px;
  background: var(--white);
  font: inherit;
}

.card__head .inline-form {
  flex: 0 1 460px;
}

.filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: end;
}

.filters__actions {
  display: flex;
  gap: 0.5rem;
}

.result-count {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.93rem;
}

/* ---------- Programme dynamique ---------- */

.repeater__rows {
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
}

.session-row {
  padding: 1rem;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
}

.session-row__grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem;
}

.session-row__wide {
  grid-column: 1 / -1;
}

.session-row__tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

/* ---------- Images (flyer, photos) ---------- */

.media-field {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-start;
}

.media-field__preview {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  overflow: hidden;
  background: var(--sky);
  border: 1.5px dashed #9aa8c2;
  color: var(--muted);
  font-size: 0.85rem;
}

.media-field__preview--rect {
  width: 180px;
  min-height: 120px;
  border-radius: 12px;
}

.media-field__preview--round {
  width: 84px;
  height: 84px;
  border-radius: 50%;
}

.media-field__preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-field__preview--rect img {
  height: auto;
  object-fit: contain;
}

.media-field__body {
  display: grid;
  flex: 1;
  gap: 0.4rem;
  min-width: 220px;
}

.media-field__body label:first-child {
  font-weight: 600;
  font-size: 0.93rem;
}

.media-field input[type="file"] {
  max-width: 100%;
  font: inherit;
  font-size: 0.9rem;
}

.media-field__remove {
  margin-top: 0.2rem;
  font-size: 0.9rem;
  color: var(--error);
}

.media-wide {
  grid-column: 1 / -1;
}

.member-row {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
}

.member-row__photo {
  display: grid;
  gap: 0.4rem;
  justify-items: start;
}

.member-row__photo input[type="file"] {
  width: 100%;
  font-size: 0.8rem;
}

.member-row__fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
}

.member-row__wide {
  grid-column: 1 / -1;
}

/* ---------- Pagination ---------- */

.pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  justify-content: center;
  margin: 1.2rem 0;
}

.pager__item {
  min-width: 2.4rem;
  padding: 0.4rem 0.8rem;
  text-align: center;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
}

a.pager__item:hover {
  border-color: var(--navy);
}

.pager__item.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.pager__item.is-disabled {
  color: #9aa3b2;
}

/* ---------- Connexion ---------- */

.admin--login {
  background: var(--navy);
}

.login {
  display: grid;
  min-height: 100vh;
  padding: 1.5rem;
  place-items: center;
}

.login__card {
  width: min(430px, 100%);
  padding: 2rem 1.8rem;
  background: var(--white);
  border-radius: 20px;
  box-shadow: 0 24px 50px -20px rgba(0, 0, 0, 0.5);
}

.login__logo {
  width: 200px;
  height: 86px;
  margin: 0 auto 0.8rem;
  object-fit: cover;
  object-position: 50% 47%;
}

.login__title {
  margin-bottom: 0.2rem;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.8rem;
  color: var(--navy);
}

.login__intro {
  margin-bottom: 1.4rem;
  text-align: center;
  color: var(--muted);
}

.login .field {
  margin-bottom: 1rem;
}

.login .check {
  margin-bottom: 1.2rem;
}

.login__back {
  margin: 1.2rem 0 0;
  text-align: center;
  font-size: 0.93rem;
}

/* ---------- Adaptation aux petits écrans ---------- */

@media (max-width: 960px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .side {
    position: static;
    height: auto;
    padding: 0.7rem 1rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.6rem 1rem;
  }

  .side__brand {
    margin: 0;
    width: 130px;
  }

  .side__brand img {
    height: 52px;
  }

  .side nav {
    flex: 1 1 100%;
    min-width: 0;
    max-width: 100%;
    overflow-x: auto;
  }

  .nav {
    display: flex;
    gap: 0.3rem;
    white-space: nowrap;
  }

  .top {
    padding-inline: 1rem;
  }

  .content {
    padding: 1.2rem 1rem;
  }

  .grid-2 {
    grid-template-columns: minmax(0, 1fr);
  }

  .filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .session-row__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .session-row__grid > .field:first-child {
    grid-column: 1 / -1;
  }

  .member-row {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 520px) {
  .bar {
    grid-template-columns: 90px minmax(0, 1fr) 2rem;
  }

  .top {
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}

/* ---------- Code QR ---------- */
.qr-card__body {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  align-items: flex-start;
  margin-top: 1rem;
}

.qr-card__preview {
  flex: 0 0 auto;
  width: 220px;
  max-width: 100%;
  padding: 0.5rem;
  border: 1px solid var(--line, #e3eaf5);
  border-radius: 16px;
  background: #fff;
}

.qr-card__preview svg {
  display: block;
  width: 100%;
  height: auto;
}

.qr-card__side {
  flex: 1 1 260px;
  min-width: 0;
}

.qr-card__label {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.qr-card__url {
  margin: 0 0 0.8rem;
  overflow-wrap: anywhere;
}

.qr-card__warn {
  margin: 0 0 0.8rem;
  padding: 0.6rem 0.8rem;
  border-radius: 10px;
  background: #fff4d6;
  color: #5c4300;
  font-size: 0.9rem;
}

.qr-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.qr-card__hint {
  margin-top: 0.6rem;
}


/* ---------- Présences ---------- */
.attendance-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 1rem;
  padding: 0.8rem 1.1rem;
  border-radius: 14px;
  background: #eaf2fd;
  color: #0a2a66;
}

.attendance-bar__stat {
  margin: 0;
  font-size: 1.05rem;
}

.attendance-bar__stat strong {
  font-size: 1.3rem;
}

.presence-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.4rem;
  padding: 0.25rem 0.7rem 0.25rem 0.4rem;
  border: 1px solid #c9d6ea;
  border-radius: 999px;
  background: #fff;
  color: #333a46;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
}

.presence-btn__box {
  display: inline-block;
  width: 1.3rem;
  height: 1.3rem;
  border: 2px solid #9fb2d1;
  border-radius: 50%;
  background: #fff;
}

.presence-btn.is-on {
  border-color: #1d8a4a;
  background: #e5f6ec;
  color: #14683a;
}

.presence-btn.is-on .presence-btn__box {
  border-color: #1d8a4a;
  background: #1d8a4a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E") center / 80% no-repeat;
}

.presence-btn:focus-visible {
  outline: 3px solid #2b8cd8;
  outline-offset: 2px;
}

tr.is-present td {
  background: #f6fcf8;
}


/* ---------- Statistiques hommes / femmes ---------- */
.stat__num small {
  font-size: 0.5em;
  font-weight: 700;
  opacity: 0.7;
}

.sex {
  margin-bottom: 1.5rem;
}

.sex__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 0.8rem;
}

.sex__item {
  display: flex;
  flex-direction: column;
  padding: 0.9rem 1.1rem;
  border-radius: 14px;
}

.sex__item--m {
  background: #eaf2fd;
  color: #0a2a66;
}

.sex__item--f {
  background: #fff1dc;
  color: #8a4a00;
}

.sex__num {
  font-size: 2rem;
  font-weight: 800;
  line-height: 1.1;
}

.sex__label {
  font-weight: 700;
}

.sex__present {
  font-size: 0.85rem;
  opacity: 0.85;
}

.sex__bar {
  display: flex;
  height: 1.7rem;
  overflow: hidden;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.7rem;
  text-align: center;
}

.sex__bar-m {
  background: #2b8cd8;
  color: #fff;
}

.sex__bar-f {
  background: #f57c00;
  color: #fff;
}

.attendance-bar__split {
  font-size: 0.95rem;
  opacity: 0.85;
}

.card--flush {
  border-color: #b9c7de;
}

.role-help {
  line-height: 1.6;
}

/* ---------- Participants ---------- */
.check-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .5rem 1rem; margin-top: .75rem; }

/* ---------- Statistiques de présence ---------- */
.stat-tiles { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.stat-tile { display: flex; flex-direction: column; min-width: 8rem; padding: .6rem 1rem; border-radius: 12px; background: #fff; border: 1px solid #c9d6ea; }
.stat-tile__n { font-size: 1.7rem; font-weight: 700; line-height: 1.1; }
.stat-tile__l { font-size: .9rem; }
.stat-tile__s { font-size: .8rem; opacity: .8; }
.stat-tile--ok { border-color: #2e8b57; } .stat-tile--ok .stat-tile__n { color: #1d6b3f; }
.stat-tile--warn { border-color: #c77a12; } .stat-tile--warn .stat-tile__n { color: #9a5a05; }
.attendance-bar__btns { display: flex; flex-wrap: wrap; gap: .5rem; }

.presence-stats { margin-bottom: 1.5rem; }
.presence-bar { height: .7rem; margin-top: .8rem; border-radius: 999px; background: #f3dcb8; overflow: hidden; }
.presence-bar__on { display: block; height: 100%; background: #2e8b57; }

/* Tuiles de présence du tableau de bord : pleine largeur */
.presence-stats .stat-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; width: 100%; }
.presence-stats .stat-tile { min-width: 0; width: 100%; }
@media (max-width: 560px) { .presence-stats .stat-tiles { grid-template-columns: 1fr; } }

/* ---------- Onglets de la liste des inscrits ---------- */
.view-tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1rem; }
.view-tabs a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border: 1px solid #c9d6ea; border-radius: 999px; background: #fff; color: #0a2a66; font-weight: 600; text-decoration: none; }
.view-tabs a.is-active { background: #0a2a66; border-color: #0a2a66; color: #fff; }
.view-tabs__n { min-width: 1.6rem; padding: .05rem .45rem; border-radius: 999px; background: #eaf2fd; color: #0a2a66; font-size: .85rem; text-align: center; }
.view-tabs a.is-active .view-tabs__n { background: #ffc72c; color: #0a2a66; }
tr.is-leaving { opacity: 0; transition: opacity .4s ease; }
