/* Jordan STIEN - (c) 2026 - Usage Pédagogique
 * Tableau de bord local de la nuit, sur les jetons de amethyste-apps.css (thème nuit).
 */

body { min-height: 100vh; display: flex; flex-direction: column; }
.theme-nuit {
  background:
    radial-gradient(1000px 460px at 90% -10%, rgba(139, 92, 246, .16), transparent 62%),
    radial-gradient(800px 380px at -10% 10%, rgba(6, 182, 212, .08), transparent 60%),
    var(--light-bg);
}
main.conteneur { flex: 1; width: 100%; }
main.etroit { max-width: 760px; }
.entete { flex-wrap: wrap; position: sticky; top: 0; z-index: 5; background: rgba(21, 15, 40, .94); }
.marques { display: flex; align-items: center; gap: 1rem; color: var(--heading-color); }
.marques svg { height: 38px; width: auto; }
.separateur { width: 1px; height: 30px; background: var(--border-color); }
.horloge { text-align: center; }
.horloge-libelle { display: block; font-size: .75rem; color: var(--muted-color); text-transform: uppercase; letter-spacing: .1em; }
.horloge strong { font: 700 2.2rem/1 var(--font-mono); color: var(--heading-color); letter-spacing: .04em; }
.identite { display: flex; gap: .6rem; align-items: center; color: var(--body-color); }
.pastille.info { background: var(--etat-info); color: #0a0a1a; }
.pastille.neutre { background: var(--border-color); color: var(--heading-color); }
.meta { color: var(--muted-color); font-size: .9rem; }
.message { padding: .8rem 1rem; border-radius: var(--radius-sm); border: 1px solid var(--etat-critique); color: var(--heading-color); background: rgba(201, 48, 58, .12); }

.tuiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin-bottom: 1.25rem; }
.tuile { background: var(--surface); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 1rem 1.2rem; box-shadow: var(--shadow-md); }
.tuile span { display: block; color: var(--muted-color); font-size: .86rem; }
.tuile strong { display: block; font-size: 2rem; color: var(--heading-color); margin-top: .2rem; }
.tuile small { color: var(--muted-color); }
.tuile.alerte strong { color: #ff7a82; }

.grille { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; }
@media (max-width: 960px) { .grille { grid-template-columns: 1fr; } }
.carte { box-shadow: var(--shadow-md); }
.carte h2 { font-size: 1.25rem; }
ul { list-style: none; margin: 0; padding: 0; }

.verifications li { border-top: 1px solid var(--border-color); padding: .8rem 0; }
.verifications li:first-child { border-top: 0; }
.verif-tete { display: flex; justify-content: space-between; gap: .6rem; align-items: center; }
.verif-titre { font-weight: 700; color: var(--heading-color); }
.verif-message { color: var(--body-color); font-size: .92rem; margin: .3rem 0; }
.jauge { height: 8px; border-radius: 4px; background: var(--border-color); overflow: hidden; margin: .4rem 0; }
.jauge > span { display: block; height: 100%; width: 0; background: var(--gradient-nuit); transition: width .5s ease; }
.code {
  display: inline-block; margin-top: .3rem; padding: .35rem .7rem; border-radius: var(--radius-sm);
  background: #0b0716; border: 1px solid var(--accent-start); color: #fff;
  font: 700 1.1rem var(--font-mono); letter-spacing: .08em; user-select: all;
}

.pager li, .fil-messages li { border-top: 1px solid var(--border-color); padding: .55rem 0; font-size: .92rem; }
.pager li:first-child, .fil-messages li:first-child { border-top: 0; }
.pager .firing { color: #ff7a82; font-weight: 700; }
.pager .resolved { color: var(--etat-ok); font-weight: 700; }
.fil-messages .auteur { color: var(--heading-color); font-weight: 700; }
.fil-messages .horaire { color: var(--muted-color); font-family: var(--font-mono); font-size: .82rem; }

form.pile { display: grid; gap: .8rem; }
label { display: grid; gap: .3rem; font-weight: 600; color: var(--heading-color); }
label .aide { font-weight: 400; color: var(--muted-color); font-size: .85rem; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
.pied a { color: var(--muted-color); }
