/* Jarvis Card, maquette : administration, présences et absences, accès des familles. */
.seg-defile { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg-defile::-webkit-scrollbar { display: none; }
.seg-defile button { white-space: nowrap; flex: none; }
.pr-detail { display: grid; gap: 4px; justify-items: start; }
.pr-detail strong { font-size: 15px; }
.pr-detail > span { font-size: 13px; color: var(--muted); }
.pr-detail .badge { white-space: normal; }
.tbl td .badge { white-space: normal; line-height: 1.3; }
.pr-direct { display: flex; align-items: center; gap: 10px; margin: 0 20px 14px; padding: 10px 14px; border-radius: 12px; background: var(--ecole-soft); color: var(--ecole-lite); font-size: 14px; }
.pr-direct .ic { flex: none; width: 20px; height: 20px; }
.pr-direct strong { color: inherit; }
.pr-direct-vide { background: var(--surface-2); color: var(--muted); }
.pr-direct-vide .ic { color: var(--ecole-lite); }
.pr-case { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 14.5px; cursor: pointer; }
button.tuile { border: 1px solid var(--line); background: var(--surface); color: inherit; }
button.tuile:hover { border-color: var(--ecole-lite); }
button.bandeau-alerte { margin-bottom: 16px; }

/* Accès des familles */
.tbl .mono { white-space: nowrap; }
.ac-protege .ac-etapes { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 18px; }
.ac-protege .btn-block { width: auto; display: inline-flex; }
.ac-etapes { list-style: none; margin: 0 0 16px; padding: 0; counter-reset: etape; display: grid; gap: 14px; }
.ac-etapes li { counter-increment: etape; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 2px 12px; }
.ac-etapes li::before { content: counter(etape); grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ecole-soft); color: var(--ecole-lite); font-weight: 700; font-size: 14px; }
.ac-etapes strong { font-size: 14.5px; }
.ac-etapes span { font-size: 13.5px; color: var(--muted); line-height: 1.45; }

/* Aperçu d'un message WhatsApp */
.wa { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: #ECE5DD; }
.wa-tete { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #075E54; color: #fff; }
.wa-tete img { width: 34px; height: 34px; border-radius: 50%; background: #fff; padding: 3px; }
.wa-tete strong { display: block; font-size: 15px; line-height: 1.2; }
.wa-tete span { font-size: 12px; opacity: .85; }
.wa-fil { padding: 16px 14px 18px; }
.wa-bulle { position: relative; max-width: 92%; padding: 10px 12px 22px; border-radius: 4px 14px 14px 14px; background: #fff; color: #111B21; font-size: 14.5px; line-height: 1.5; box-shadow: 0 1px 1px rgb(0 0 0 / .12); }
.wa-heure { position: absolute; right: 10px; bottom: 5px; font-size: 11px; color: #667781; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wa { background: #0B141A; }
  :root:not([data-theme="light"]) .wa-tete { background: #1F2C34; }
  :root:not([data-theme="light"]) .wa-bulle { background: #202C33; color: #E9EDEF; }
  :root:not([data-theme="light"]) .wa-heure { color: #8696A0; }
}
:root[data-theme="dark"] .wa { background: #0B141A; }
:root[data-theme="dark"] .wa-tete { background: #1F2C34; }
:root[data-theme="dark"] .wa-bulle { background: #202C33; color: #E9EDEF; }
:root[data-theme="dark"] .wa-heure { color: #8696A0; }
