/* Fiches de révision et schémas (fiches.js, lot F, 16/11). Recopié de l'app du Mac, mêmes classes et mêmes valeurs :
   static/fiche.css (pleine page de la fiche, capture RemNote 2026-11-07/27 : bandeau #2F6DCD de 67 px, « Retour »
   empilé, colonne de 800 px, ligne « Guide d'étude » #1E4477 et son trait, rubriques 25 px / 34 px graisse 700, puces
   16 px / 24 px, « Voir dans le cours » cyan, « non sourcé » orange, « Sujets clés » en tableau, liste des fiches) et
   static/etude.css (schéma en arbre .sch-arbre, liste « Déjà faits sur ce cours »).
   Déduit : la pleine page n'est pas posée par-dessus l'écran (position fixe sur le Mac) mais tient tout l'écran de la
   page ; le bandeau reste en haut en défilant (sticky, comme sur le Mac) ; cibles tactiles de 44 px autour des
   boutons dont le dessin reste celui du Mac ; barre du haut d'une liste ou d'un schéma : celle d'un document (53 px au
   téléphone, 44 px à l'iPad, document.css), le titre du document en 16 px graisse 500 gray-40 comme le fil. */

:root {
  /* static/cours.css */
  --rn-horaire-fond: rgb(231, 246, 255);   /* cyan-5 */
  --rn-horaire: rgb(19, 91, 150);           /* cyan-70 */
}

/* ---------------------------------------------------------------- pleine page d'une fiche (fiche.css) */
.page-fiche { background: var(--rn-fond); color: var(--rn-texte); font-family: var(--rn-police); }
.fi-bandeau {
  position: sticky; top: 0; z-index: 2;
  display: flex; align-items: center; gap: 16px;
  height: 67px; padding: 0 16px 0 8px;
  background: #2f6dcd; color: #fff;
}
.fi-retour {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 72px; min-height: var(--cible); padding: 6px 8px; border-radius: 6px;
  color: #fff; font: 500 14px/18px var(--rn-police);
}
.fi-retour svg { width: 16px; height: 16px; }
.fi-titres { min-width: 0; }
.fi-nom { margin: 0; font: 700 16px/22px var(--rn-police); }
.fi-sous { margin: 0; font: 400 14px/20px var(--rn-police); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.fi-colonne { max-width: 800px; margin: 0 auto; padding: 24px 16px 96px; }
.fi-entete {
  display: flex; align-items: center; gap: 12px; padding: 4px 0 16px;
  border-bottom: 1px solid var(--rn-bord); font: 600 16px/24px var(--rn-police);
}
.fi-icone { width: 22px; height: 22px; color: #1e4477; flex: none; }

.fi-rubrique { display: flex; align-items: center; gap: 10px; margin: 28px 0 4px; font: 700 25px/34px var(--rn-police); color: var(--rn-texte); }
.fi-emoji { font-size: .9em; line-height: 1; }
.fi-points { margin: 0; padding-left: 28px; }
.fi-points li { margin: 0 0 8px; font: 400 16px/24px var(--rn-police); overflow-wrap: anywhere; }
.fi-points li::marker { color: var(--rn-texte); }
.fi-points ul { margin: 6px 0 0; padding-left: 28px; list-style: circle; }
.fi-points strong { font-weight: 700; }
/* « Voir dans le cours » : le dessin du Mac (pastille cyan de 20 px, dans le span), le bouton fait 44 px de haut
   et ses marges négatives gardent l'interligne de la puce */
.fi-voir {
  display: inline-flex; align-items: center; height: var(--cible); margin: -12px 0 -12px 4px; vertical-align: middle;
}
.fi-voir span {
  padding: 0 6px; border-radius: 4px;
  background: var(--rn-horaire-fond); color: var(--rn-horaire); font: 500 12px/20px var(--rn-police);
}
.fi-marque {
  display: inline-block; margin-left: 6px; padding: 0 6px;
  border: 1px solid var(--orange); border-radius: 4px; background: var(--orange-fond);
  color: #a35a00; font: 600 11px/16px var(--rn-police); vertical-align: 2px;
}
.fi-note { margin: 24px 0 0; font: 400 14px/20px var(--rn-police); color: var(--rn-texte-2); }
.fi-sujets { margin: 24px 0 8px; border: 1px solid #dfe3ee; border-radius: 8px; overflow: hidden; }
.fi-sujets-titre { margin: 0; padding: 8px 12px; background: #e9eefb; color: #3b63d6; font: 600 12px/16px var(--rn-police); }
.fi-sujets table { width: 100%; border-collapse: collapse; }
.fi-sujets th, .fi-sujets td { padding: 10px 12px; border-top: 1px solid #e8eaf0; vertical-align: top; text-align: left; font: 400 13px/18px var(--rn-police); overflow-wrap: anywhere; }
.fi-sujets th { width: 38%; color: var(--rn-texte); font-weight: 600; }
.fi-sujets td { color: #5b5b6b; }
.fi-sujets .fi-voir { margin-left: 4px; }

/* ---------------------------------------------------------------- liste et schéma : barre du haut et colonne */
.fiches-haut { display: flex; align-items: center; height: 53px; padding: 0 12px 0 10px; }
.fiches-fil {
  min-width: 0; min-height: var(--cible); padding: 0 6px;
  font: 500 16px/24px var(--rn-police); color: var(--rn-texte-3);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.fiches-colonne { padding: 8px 20px 32px; }

/* liste des fiches (fiche.css) */
.fi-liste-titre, .et-liste-titre { margin: 8px 0 8px; }
.fi-liste-titre { font: 600 12px/16px var(--rn-police); color: var(--rn-texte-3); }
.fi-carte {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  width: 100%; min-height: var(--cible); margin-bottom: 6px; padding: 10px 12px;
  border: 1px solid var(--rn-bord); border-radius: 8px; background: var(--rn-gris-0);
  color: var(--rn-texte); font: 400 14px/20px var(--rn-police); text-align: left;
}
.fi-carte-titre { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fi-carte-date { color: var(--rn-texte-3); white-space: nowrap; }

/* liste des schémas (etude.css) */
.et-liste-titre { font: 600 14px/24px var(--rn-police); color: var(--rn-texte-2); }
.et-carte {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px;
  width: 100%; min-height: var(--cible); margin: 0 0 8px; padding: 12px;
  background: var(--rn-gris-0); border: 1px solid var(--rn-bord-fort); border-radius: 8px;
  color: var(--rn-texte); font: 400 14px/20px var(--rn-police); text-align: left;
}
.et-carte-titre { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.et-carte-date { font-size: 12px; color: var(--rn-texte-3); }
.et-pastille { font: 500 12px/20px var(--rn-police); padding: 0 6px; border-radius: 4px; }
.et-pastille.schema { background: var(--rn-bleu-5); color: var(--rn-bleu-60); }

/* un schéma (etude.css) */
.et-titre { margin: 8px 0 2px; font: 700 18px/28px var(--rn-police); color: var(--rn-texte); }
.et-sous-titre { margin: 0 0 16px; font: 400 12px/20px var(--rn-police); color: var(--rn-texte-2); }
.et-note { margin-top: 16px; font: 400 14px/22px var(--rn-police); color: var(--rn-texte-2); }
.sch-arbre, .sch-arbre ul { list-style: none; margin: 0; padding: 0; }
.sch-arbre ul { margin-left: 14px; padding-left: 18px; }
.sch-arbre li { position: relative; margin: 0; padding: 3px 0; }
.sch-arbre ul > li::before { content: ""; position: absolute; left: -18px; top: 0; bottom: 0; border-left: 1px solid var(--rn-bord-fort); }
.sch-arbre ul > li:last-child::before { bottom: auto; height: 20px; }
.sch-arbre ul > li::after { content: ""; position: absolute; left: -18px; top: 20px; width: 16px; border-top: 1px solid var(--rn-bord-fort); }
.sch-noeud {
  display: inline-block; max-width: 100%; min-height: var(--cible); text-align: left; padding: 6px 10px;
  background: var(--rn-fond); border: 1px solid var(--rn-bord-fort); border-radius: 8px;
  color: var(--rn-texte); font: 400 14px/20px var(--rn-police); overflow-wrap: anywhere;
}
.sch-noeud.niv-0 { font-weight: 700; font-size: 16px; line-height: 24px; background: var(--rn-bleu-5); border-color: var(--rn-bleu-5); }
.sch-noeud.niv-1 { font-weight: 600; }
.sch-noeud[disabled] { cursor: default; color: var(--rn-texte); }
.sch-noeud.non-source, .sch-noeud.perdu { border-style: dashed; border-color: var(--orange); color: var(--rn-texte-2); }
.sch-marque {
  display: inline-block; margin-left: 8px; padding: 0 5px;
  font: 600 11px/16px var(--rn-police); color: #a35a00;
  background: var(--orange-fond); border: 1px solid var(--orange); border-radius: 5px; white-space: nowrap;
}

/* ---------------------------------------------------------------- iPad */
@media (min-width: 768px) {
  .fiches-haut { height: 44px; padding: 0 16px 0 12px; }
  .fiches-fil { font-size: 14px; line-height: 20px; }
  .fiches-colonne { max-width: 800px; margin: 0 auto; padding: 18px 48px 32px; }
}
