/* Console Kora Lab : reprend les composants de l'application (app.css) aux couleurs de la charte Kora Lab V14. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-ext-600.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/inter-latin-600.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/inter-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-ext-400.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-sans-latin-400.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dm-sans-latin-ext-500.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dm-sans-latin-500.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-ext-700.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+20A0-20AB, U+20AD-20C0, U+2113; }
@font-face { font-family: "DM Sans"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/dm-sans-latin-700.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212; }

body[data-espace="kora"] {
  --nuit: #0A1D6B; --nuit-2: #0E2580; --creme: #F5EFE6; --kaki: #B7C6F4; --or: #F5A623;
  --encre: #0B1747; --encre-2: #45507A; --fond: #F5EFE6; --papier: #FFFFFF; --doux: #FAF7F2;
  --filet: #E2DCD0; --filet-fort: #B4B3C6;
  --accent: #0E2580; --accent-fond: #E5EAFA; --accent-vif: #F5A623;
  --police: "DM Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
body[data-espace="kora"] h1, body[data-espace="kora"] h2, body[data-espace="kora"] .synthese dd, body[data-espace="kora"] .espace-nom b, body[data-espace="kora"] .marque b { font-family: "Inter", system-ui, sans-serif; font-weight: 600; letter-spacing: -0.03em; }
body[data-espace="kora"] h2 { letter-spacing: -0.015em; }
body[data-espace="kora"] .jeton { background: var(--roi, #0E2580); box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.4); color: var(--or); }
body[data-espace="kora"] .nav ul::before { background: rgba(245, 166, 35, 0.16); box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.45); }
body[data-espace="kora"] .nav a[aria-current="page"] { color: var(--or); }
body.hors-session .app { padding-bottom: 0; }
body.hors-session { background: var(--nuit); }

/* Symbole Kora Lab : les cordes de kora en or */
.symbole { width: 40px; height: 40px; flex: none; border-radius: 11px; background: #0E2580; box-shadow: inset 0 0 0 1px rgba(245, 166, 35, 0.35); display: grid; place-items: center; }
.symbole svg { width: 26px; height: 26px; fill: none; stroke: #F5A623; stroke-width: 2.2; stroke-linecap: round; }

/* Connexion : fond en ondes, boîte claire */
#ondes { position: fixed; inset: 0; z-index: 0; width: 100%; height: 100%; pointer-events: none; }
body:not(.hors-session) #ondes { display: none; }
.app { position: relative; z-index: 1; }
.kx { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.vue:has(.kx) { max-width: none; padding: 0; }
.kx-boite { width: 100%; max-width: 440px; background: var(--papier); border-radius: 22px; padding: 28px 24px; display: grid; gap: 16px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.6); animation: kx-entree 700ms cubic-bezier(0.22, 1, 0.36, 1); }
.kx-boite h1 { font-size: 1.75rem; }
.kx-logo { width: 150px; height: auto; }
@keyframes kx-entree { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.kx-hors { color: var(--kaki); font-size: 0.875rem; text-align: center; margin-top: 14px; }
.kx-hors a { color: var(--creme); }

/* Marque dans la navigation */
.nav .marque { gap: 12px; }
.nav .marque b { display: block; }

/* Fiche école */
.grille-actions { display: grid; gap: 10px; }
@container (min-width: 520px) { .grille-actions { grid-template-columns: 1fr 1fr; } }
.grille-actions .btn { justify-content: flex-start; white-space: normal; text-align: left; line-height: 1.25; padding-top: 10px; padding-bottom: 10px; }
.espace-bas { margin: -6px 0 18px; }
.prefixe { display: flex; align-items: stretch; border: 1.5px solid var(--filet-fort); border-radius: 12px; background: var(--papier); overflow: hidden; }
.prefixe span { display: flex; align-items: center; padding: 0 10px; background: var(--doux); color: var(--encre-2); font-size: 0.875rem; border-right: 1px solid var(--filet); white-space: nowrap; max-width: 55%; overflow: hidden; text-overflow: ellipsis; }
.prefixe input { border: 0 !important; border-radius: 0 !important; flex: 1; min-width: 0; }
.prefixe:focus-within { outline: 3px solid var(--or); outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset > .libelle { font-weight: 800; margin-bottom: 8px; padding: 0; }
.bandeau-activer { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 16px 18px; margin-bottom: 4px; border-radius: 16px; background: #FFF6E3; border: 1px solid #F1C56C; }
.bandeau-activer p { flex: 1 1 260px; min-width: 0; }
.bandeau-activer b { color: var(--encre); }

/* Réglages */
.case-seule { display: flex; gap: 12px; align-items: flex-start; min-height: 44px; cursor: pointer; font-weight: 600; }
.case-seule input { width: 22px; height: 22px; margin-top: 2px; flex: none; accent-color: var(--accent); }

/* Double authentification */
.etapes { list-style: decimal; padding-left: 20px; display: grid; gap: 4px; }
.qr-totp { width: 200px; max-width: 100%; background: #fff; padding: 8px; border: 1px solid var(--filet); border-radius: 12px; }
.qr-totp svg { width: 100%; height: auto; }
.cle-totp { word-break: break-all; font-weight: 700; color: var(--encre); }

@media (prefers-reduced-motion: reduce) { .kx-boite { animation: none; } }

/* Barre de navigation du bas (téléphone) : libellés courts ; menu latéral (ordinateur) : libellés complets. */
.nav .court { display: inline; }
.nav .long { display: none; }
@media (min-width: 1024px) { .nav .court { display: none; } .nav .long { display: inline; } }

