/* ---------------------------------------------------------------
   Maquettes de l'application, dessinées en CSS.

   Plutôt que des captures d'écran : net à toutes les résolutions,
   quelques kilo-octets au lieu de plusieurs centaines, et les
   données affichées sont maîtrisées — une école de démonstration
   à deux élèves ne donne envie à personne.
   --------------------------------------------------------------- */

.demo { position: relative; }

/* ── Onglets de navigation ───────────────────────────────────── */

.demo-onglets {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 26px;
}
.demo-onglet {
  padding: 9px 17px;
  border-radius: 22px;
  border: 1px solid var(--bord);
  background: var(--surface);
  color: var(--texte-2);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: all .22s;
  white-space: nowrap;
}
.demo-onglet:hover { border-color: var(--bleu); color: var(--bleu); }
.demo-onglet.actif {
  background: var(--marine);
  border-color: var(--marine);
  color: #fff;
}

/* ── Cadre de l'application ──────────────────────────────────── */

.demo-cadre {
  border-radius: 14px;
  overflow: hidden;
  box-shadow: var(--ombre);
  border: 1px solid var(--bord);
  background: var(--fond);
}

/* Barre de titre façon fenêtre Windows */
.demo-titre {
  background: #EDF1F7;
  border-bottom: 1px solid var(--bord);
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.demo-titre .pt { width: 10px; height: 10px; border-radius: 50%; }
.demo-titre .pt:nth-child(1) { background: #FF5F57; }
.demo-titre .pt:nth-child(2) { background: #FEBC2E; }
.demo-titre .pt:nth-child(3) { background: #28C840; }
.demo-titre .nom {
  margin-left: 8px;
  font-size: 12px;
  color: var(--texte-3);
  font-weight: 500;
}

.demo-corps { display: flex; min-height: 440px; }

/* ── Barre latérale ──────────────────────────────────────────── */

.demo-barre {
  width: 178px;
  background: var(--marine);
  padding: 14px 0;
  flex-shrink: 0;
}
.demo-barre .marque {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px 12px;
  border-bottom: 1px solid rgba(255,255,255,.1);
  margin-bottom: 10px;
}
.demo-barre .marque .rond {
  width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(150deg, #0095F0, #013a8f);
  border: 1px solid rgba(255,255,255,.25);
  flex-shrink: 0;
}
.demo-barre .marque span { color: #fff; font-size: 12px; font-weight: 700; }

.demo-barre .ecole {
  display: flex; align-items: center; gap: 8px;
  padding: 0 14px 14px;
}
.demo-barre .ecole .pastille {
  width: 26px; height: 26px; border-radius: 7px;
  background: #fff; color: var(--marine);
  display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 700; flex-shrink: 0;
}
.demo-barre .ecole b { color: #fff; font-size: 11px; display: block; }
.demo-barre .ecole small { color: #7FA6D4; font-size: 9.5px; }

.demo-barre .item {
  padding: 8px 14px;
  color: #A9C7E8;
  font-size: 11.5px;
  display: flex; align-items: center; gap: 9px;
}
.demo-barre .item .ic {
  width: 13px; text-align: center; opacity: .8; font-size: 11px;
}
.demo-barre .item.actif {
  background: rgba(255,255,255,.1);
  color: #fff;
  font-weight: 600;
  border-left: 2.5px solid var(--ciel);
  padding-left: 11.5px;
}

/* ── Zone de contenu ─────────────────────────────────────────── */

.demo-ecran { flex: 1; background: var(--fond); overflow: hidden; }

.demo-entete {
  background: var(--surface);
  border-bottom: 1px solid var(--bord);
  padding: 13px 18px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.demo-entete h4 { font-size: 15px; font-weight: 700; }
.demo-entete .sous { font-size: 10.5px; color: var(--texte-2); }
.demo-entete .droite { margin-left: auto; display: flex; gap: 7px; }

.faux-bouton {
  padding: 6px 12px;
  border-radius: 7px;
  font-size: 10.5px;
  font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--bord);
  color: var(--texte-2);
  white-space: nowrap;
}
.faux-bouton.plein {
  background: var(--bleu); color: #fff; border-color: var(--bleu);
}
.faux-bouton.ambre {
  background: var(--ambre); color: #fff; border-color: var(--ambre);
}
.faux-champ {
  flex: 1;
  max-width: 190px;
  padding: 6px 11px;
  border-radius: 7px;
  border: 1px solid var(--bord);
  background: var(--surface);
  font-size: 10.5px;
  color: var(--texte-3);
}

.demo-contenu { padding: 16px 18px; }

/* ── Cartes de chiffres ──────────────────────────────────────── */

.demo-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 14px;
}
.demo-stat {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: 9px;
  padding: 11px 13px;
}
.demo-stat .lbl { font-size: 9.5px; color: var(--texte-2); }
.demo-stat .val { font-size: 19px; font-weight: 700; margin-top: 1px; }
.demo-stat.bleu { background: var(--bleu-clair); border-color: #C5DEF6; }
.demo-stat.bleu .val { color: var(--bleu); }
.demo-stat.ambre { background: var(--ambre-clair); border-color: #F0DEC0; }
.demo-stat.ambre .val { color: var(--ambre); }

/* ── Graphique ───────────────────────────────────────────────── */

.demo-carte {
  background: var(--surface);
  border: 1px solid var(--bord);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.demo-carte .titre {
  font-size: 12px; font-weight: 700; margin-bottom: 12px;
  display: flex; align-items: center;
}
.demo-carte .titre .legende {
  margin-left: auto; font-size: 9.5px; font-weight: 400;
  color: var(--texte-2); display: flex; gap: 11px;
}
.demo-carte .titre .legende i {
  width: 8px; height: 8px; border-radius: 2px;
  display: inline-block; margin-right: 4px;
}

.demo-graphe {
  display: flex; align-items: flex-end; gap: 12px; height: 110px;
}
.demo-graphe .mois { flex: 1; text-align: center; }
.demo-graphe .paire {
  display: flex; align-items: flex-end; gap: 3px;
  height: 92px; justify-content: center;
}
.demo-graphe .bar { width: 40%; border-radius: 3px 3px 0 0; }
.demo-graphe .bar.r { background: var(--bleu); }
.demo-graphe .bar.d { background: var(--ambre); }
.demo-graphe .etq { font-size: 9px; color: var(--texte-3); margin-top: 5px; }

/* ── Tableaux ────────────────────────────────────────────────── */

.demo-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.demo-table th {
  text-align: left; font-size: 9.5px; color: var(--texte-2);
  font-weight: 600; padding: 8px 6px;
  border-bottom: 1px solid var(--bord);
}
.demo-table td {
  padding: 9px 6px; border-bottom: 1px solid #EEF2F7;
}
.demo-table tr:last-child td { border-bottom: 0; }
.demo-table .droite { text-align: right; }
.demo-table b { font-weight: 600; }
.demo-table .mini { font-size: 9.5px; color: var(--texte-3); }

.jeton {
  width: 24px; height: 24px; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 700;
  background: var(--bleu-clair); color: var(--bleu);
}
.jeton.f { background: #FCE7F3; color: #9D174D; }

.pilule {
  display: inline-block; padding: 2px 8px; border-radius: 20px;
  font-size: 9px; font-weight: 700;
}
.pilule.vert { background: var(--vert-clair); color: var(--vert); }
.pilule.bleu { background: var(--bleu-clair); color: var(--bleu); }
.pilule.ambre { background: var(--ambre-clair); color: var(--ambre); }
.pilule.rouge { background: #FCE8E6; color: #B3261E; }

.jauge {
  height: 5px; background: #E7ECF3; border-radius: 3px; overflow: hidden;
  width: 90px; display: inline-block; vertical-align: middle;
}
.jauge i { display: block; height: 100%; border-radius: 3px; }

/* ── Grille d'emploi du temps ────────────────────────────────── */

.demo-edt { width: 100%; border-collapse: collapse; font-size: 9.5px; }
.demo-edt th {
  background: var(--marine); color: #fff; padding: 7px 4px;
  font-size: 9.5px; font-weight: 600;
}
.demo-edt td {
  border: 1px solid var(--bord); height: 34px; padding: 2px;
  vertical-align: top; background: var(--surface);
}
.demo-edt td.heure {
  background: var(--fond); text-align: right; padding-right: 6px;
  color: var(--texte-3); font-size: 9px; width: 38px;
  vertical-align: middle; border-right: 1px solid var(--bord);
}
.cours {
  background: var(--bleu-clair); border-left: 2px solid var(--bleu);
  border-radius: 3px; padding: 3px 5px; height: 100%;
}
.cours b { display: block; color: var(--bleu); font-size: 9px; }
.cours span { color: var(--texte-2); font-size: 8px; }
.cours.pause { background: var(--fond); border-left-color: var(--texte-3); }
.cours.pause b { color: var(--texte-2); }

/* ── Panneaux du carrousel ───────────────────────────────────── */

.demo-panneau { display: none; }
.demo-panneau.actif { display: block; animation: fondu .45s ease; }

@keyframes fondu {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

/* ── Téléphone ───────────────────────────────────────────────── */

@media (max-width: 820px) {
  .demo-barre { display: none; }
  .demo-stats { grid-template-columns: repeat(2, 1fr); }
  .demo-corps { min-height: 0; }
  .cacher-petit { display: none; }
  .demo-onglets { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
}

@media (max-width: 560px) {
  .demo-entete { flex-wrap: wrap; gap: 8px; padding: 11px 13px; }
  .demo-entete .droite { margin-left: 0; width: 100%; }
  .faux-champ { max-width: none; }
  .demo-contenu { padding: 12px 13px; }
  .demo-table { font-size: 10px; }
  .demo-graphe { gap: 7px; height: 92px; }
  .demo-graphe .paire { height: 74px; }
}
