/* Sportius Academy — identité visuelle
   Vert terrain (#0f4c3a), or (#e0a92b), fond clair ; titres en Barlow Condensed. */
:root {
  --sp-vert: #0f4c3a;
  --sp-vert-fonce: #0a3529;
  --sp-vert-clair: #e7f1ec;
  --sp-or: #e0a92b;
  --sp-fond: #f4f6f4;
  --sp-encre: #17211c;
  --sp-gris: #66746c;
  --sp-ligne: #dfe5e1;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-link-color-rgb: 15, 76, 58;
  --bs-link-hover-color-rgb: 10, 53, 41;
  --bs-primary: #0f4c3a;
  --bs-primary-rgb: 15, 76, 58;
}
body { background: var(--sp-fond); color: var(--sp-encre); font-size: 15px; }
h1, h2, h3, .titre-sport { font-family: "Barlow Condensed", "Inter", sans-serif; font-weight: 700; letter-spacing: .2px; }
h1 { font-size: 30px; margin: 0; }
h2 { font-size: 22px; }
.btn-primary { --bs-btn-bg: var(--sp-vert); --bs-btn-border-color: var(--sp-vert); --bs-btn-hover-bg: var(--sp-vert-fonce); --bs-btn-hover-border-color: var(--sp-vert-fonce); --bs-btn-active-bg: var(--sp-vert-fonce); --bs-btn-disabled-bg: #8aa79a; --bs-btn-disabled-border-color: #8aa79a; }
.btn-outline-primary { --bs-btn-color: var(--sp-vert); --bs-btn-border-color: var(--sp-vert); --bs-btn-hover-bg: var(--sp-vert); --bs-btn-hover-border-color: var(--sp-vert); }
.btn-or { background: var(--sp-or); color: #231a03; border: 0; font-weight: 600; }
.btn-or:hover { background: #c8931c; color: #231a03; }

/* Barre latérale */
aside.sp-sidebar { --bs-offcanvas-bg: var(--sp-vert); --bs-offcanvas-width: 260px; background-color: var(--sp-vert) !important; }
.sp-sidebar { width: 252px; background: var(--sp-vert); color: #dcebe3; min-height: 100vh; position: sticky; top: 0; }
.sp-sidebar .offcanvas-body { display: flex; flex-direction: column; padding: 0; }
.sp-marque { display: flex; align-items: center; gap: 10px; padding: 20px 20px 12px; color: #fff; text-decoration: none; }
.sp-marque .logo { width: 36px; height: 36px; border-radius: 10px; background: var(--sp-or); display: grid; place-items: center; color: var(--sp-vert-fonce); font-weight: 800; font-family: "Barlow Condensed"; font-size: 20px; }
.sp-marque .nom { font-family: "Barlow Condensed"; font-size: 22px; font-weight: 700; line-height: 1; }
.sp-marque .nom small { display: block; font-family: Inter; font-size: 11px; font-weight: 500; color: #a9c8b9; margin-top: 3px; }
.sp-academie { margin: 4px 14px 12px; padding: 10px 12px; background: rgba(255, 255, 255, .07); border-radius: 10px; font-size: 13px; }
.sp-academie select { background-color: rgba(255,255,255,.12); color: #fff; border: 1px solid rgba(255,255,255,.2); font-size: 13px; }
.sp-academie select option { color: #000; }
.sp-section { font-size: 11px; text-transform: none; color: #8fb3a1; font-weight: 600; padding: 14px 22px 4px; }
.sp-lien { display: flex; align-items: center; gap: 10px; padding: 8px 16px; margin: 1px 10px; border-radius: 8px; color: #dcebe3; text-decoration: none; font-size: 14px; }
.sp-lien:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sp-lien.actif { background: #fff; color: var(--sp-vert); font-weight: 600; }
.sp-lien .bi { font-size: 16px; width: 18px; }
.sp-pied { margin-top: auto; padding: 14px 20px; font-size: 11px; color: #8fb3a1; }

/* Contenu */
.sp-main { flex: 1; min-width: 0; }
.sp-topbar { background: #fff; border-bottom: 1px solid var(--sp-ligne); padding: 10px 24px; display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 10; }
.sp-contenu { padding: 24px; max-width: 1320px; }
.carte { background: #fff; border: 1px solid var(--sp-ligne); border-radius: 14px; padding: 20px; }
.carte + .carte { margin-top: 16px; }
.carte h2 { margin-bottom: 12px; }
.entete-page { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.entete-page .sous-titre { color: var(--sp-gris); margin-top: 4px; }

/* Indicateurs du tableau de bord */
.kpi { background: #fff; border: 1px solid var(--sp-ligne); border-radius: 14px; padding: 16px 18px; height: 100%; display: block; color: inherit; text-decoration: none; }
a.kpi:hover { border-color: var(--sp-vert); }
.kpi .valeur { font-family: "Barlow Condensed"; font-size: 38px; font-weight: 700; line-height: 1; }
.kpi .libelle { color: var(--sp-gris); font-size: 13px; margin-top: 6px; }
.kpi.alerte .valeur { color: #b42318; }
.kpi.attention .valeur { color: #b54708; }
.kpi.bon .valeur { color: var(--sp-vert); }

/* Tableaux */
.table-sp { margin: 0; }
.table-sp thead th { font-size: 12px; color: var(--sp-gris); font-weight: 600; border-bottom-width: 1px; background: #fafbfa; white-space: nowrap; }
.table-sp td { vertical-align: middle; }
.table-sp tr.cliquable { cursor: pointer; }
.table-sp tr.cliquable:hover td { background: var(--sp-vert-clair); }
.table-responsive { border-radius: 12px; }
.barre { height: 10px; background: var(--sp-vert-clair); border-radius: 6px; overflow: hidden; }
.barre span { display: block; height: 100%; background: var(--sp-vert); border-radius: 6px; }

/* Fiche joueur */
.avatar { width: 84px; height: 84px; border-radius: 16px; background: var(--sp-vert-clair); color: var(--sp-vert); display: grid; place-items: center; font-family: "Barlow Condensed"; font-size: 34px; font-weight: 700; object-fit: cover; }
.prop dt { color: var(--sp-gris); font-weight: 500; font-size: 13px; }
.prop dd { margin-bottom: 10px; }

/* Feuille de présence */
.feuille .btn-check + .btn { padding: 4px 9px; font-size: 13px; }
.feuille tr.bloque td { background: #fff6f5; }
.blocage { color: #b42318; font-size: 13px; }

/* Connexion */
.page-connexion { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
.page-connexion .visuel { background: var(--sp-vert); color: #fff; position: relative; overflow: hidden; padding: 48px; display: flex; flex-direction: column; justify-content: flex-end; }
.page-connexion .visuel svg { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .18; }
.page-connexion .visuel h1 { font-size: 48px; position: relative; }
.page-connexion .visuel p { position: relative; color: #cfe4d9; max-width: 46ch; }
.page-connexion .formulaire { display: flex; align-items: center; justify-content: center; padding: 32px; background: #fff; }
.page-connexion .formulaire > div { width: 100%; max-width: 380px; }
@media (max-width: 900px) {
  .page-connexion { grid-template-columns: minmax(0, 1fr); }
  .page-connexion .visuel { min-height: 220px; padding: 28px; }
  .page-connexion .visuel h1 { font-size: 34px; }
}
@media (max-width: 991.98px) {
  .sp-sidebar { min-height: auto; position: fixed; }
  .sp-contenu { padding: 16px; }
}
@media print {
  .sp-sidebar, .sp-topbar, .no-print { display: none !important; }
  .sp-contenu { padding: 0; }
  .carte { border: 0; }
}
