:root {
  --fond: #f6f2ec;
  --texte: #1a1714;
  --bordure: #e3ddd7;
  --vert: #4e6648;
  --rouge: #b3382c;
  --ambre: #c98a1c;
  --neutre: #8a8378;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, sans-serif; background: var(--fond); color: var(--texte); }

.entete { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; padding: 0.75rem 1rem; border-bottom: 1px solid var(--bordure); background: white; }
.entete nav { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.entete nav a { color: var(--texte); text-decoration: none; font-size: 0.9rem; padding: 0.3rem 0.6rem; border-radius: 6px; }
.entete nav a.nav-actif { background: var(--texte); color: white; }

.contenu { padding: 1rem 1.5rem; width: 100%; }

.bouton-primaire { background: var(--texte); color: white; border: none; border-radius: 6px; padding: 0.6rem 1rem; cursor: pointer; text-decoration: none; display: inline-block; }
.bouton-secondaire { display: inline-block; background: white; color: var(--texte); border: 1px solid var(--bordure); border-radius: 6px; padding: 0.6rem 1rem; cursor: pointer; text-decoration: none; font: inherit; }
.bouton-danger { color: var(--rouge); border-color: var(--rouge); }

.carte { background: white; border: 1px solid var(--bordure); border-radius: 8px; padding: 1rem; margin-bottom: 0.75rem; }

.ligne-eleve { display: flex; flex-direction: column; gap: 0.5rem; opacity: 0.5; }
.ligne-eleve.cochee { opacity: 1; }
.ligne-eleve-entete { display: flex; align-items: center; gap: 0.75rem; }
.badge-note { font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px; }
.badge-note-ok { background: #e4ede1; color: var(--vert); }
.badge-note-plafonnee { background: #f6dede; color: var(--rouge); }
.avertissement-plafonnage { color: var(--rouge); font-size: 0.85rem; }

.grille-indicateurs { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.indicateur { display: flex; flex-direction: column; gap: 0.25rem; }
.indicateur label { font-size: 0.7rem; font-weight: 600; color: var(--neutre); }
.niveaux { display: flex; gap: 0.15rem; }
.niveaux button { width: 28px; height: 28px; border: 1px solid var(--bordure); border-radius: 6px; background: white; cursor: pointer; font-weight: 600; }
.niveaux button.actif { background: var(--texte); color: white; }

table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
th, td { padding: 0.5rem 0.4rem; border-bottom: 1px solid var(--bordure); text-align: left; }

@media print {
  .no-print { display: none !important; }
}
