/* =====================================================================
   PRATIKO — écrans métier (assistant, planning, cours, élèves, équipe)
   ===================================================================== */
.pk-grille-formulaire { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; }
.pk-en-ligne { display: inline; }
.pk-liste--simple { list-style: none; padding: 0; }
.pk-liste--simple li { padding: 8px 0; border-bottom: 1px solid var(--pk-bordure); }
.pk-texte-preformate { white-space: pre-line; }
.pk-cases-colonnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px 16px; }
.pk-champ input[type="date"], .pk-champ input[type="tel"], .pk-champ input[type="file"], .pk-champ textarea { width: 100%; min-height: 46px; padding: 10px 14px; font: 400 16px/1.4 var(--pk-font-texte); border: 1.5px solid var(--pk-bordure); border-radius: var(--pk-rayon); background: var(--pk-surface); color: var(--pk-encre); }
.pk-champ input[type="color"] { width: 64px; height: 46px; padding: 4px; border: 1.5px solid var(--pk-bordure); border-radius: var(--pk-rayon); background: var(--pk-surface); }
.pk-champ select + input { margin-top: 6px; width: 100%; min-height: 40px; padding: 8px 12px; border: 1.5px dashed var(--pk-bordure); border-radius: var(--pk-rayon); font: 400 15px var(--pk-font-texte); }
.pk-recherche select { min-height: 46px; padding: 8px 12px; border: 1.5px solid var(--pk-bordure); border-radius: var(--pk-rayon); background: var(--pk-surface); font: 400 15px var(--pk-font-texte); }

/* Pastille de couleur (cours, prof) : couleur posée par pratiko.js depuis data-couleur (compatible CSP). */
.pk-pastille-couleur { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: var(--pk-couleur, var(--pk-indigo)); margin-right: 6px; vertical-align: middle; flex: none; }

/* Assistant de démarrage */
.pk-etapier ol { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 20px; }
.pk-etapier__etape a { display: flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--pk-surface); border: 1px solid var(--pk-bordure); color: var(--pk-encre); text-decoration: none; font-weight: 600; font-size: 15px; }
.pk-etapier__rond { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--pk-indigo-clair); color: var(--pk-indigo); font-size: 13px; }
.pk-etapier__etape.est-faite .pk-etapier__rond { background: var(--pk-menthe-clair); color: var(--pk-menthe-texte); }
.pk-etapier__etape.est-courante a { border-color: var(--pk-indigo); box-shadow: 0 0 0 2px var(--pk-indigo-clair); }
.pk-assistant h2 { margin-top: 28px; }
.pk-assistant__suite { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--pk-bordure); justify-content: flex-end; }
.pk-liste-cours { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 6px; }
.pk-liste-equipe { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.pk-liste-equipe li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--pk-bordure); }
.pk-liste-equipe__nom { flex: 1; min-width: 180px; }
.pk-barre-progression { height: 10px; background: var(--pk-indigo-clair); border-radius: 999px; overflow: hidden; margin: 8px 0 16px; }
.pk-barre-progression > span { display: block; height: 100%; width: var(--pk-progression, 0%); background: var(--pk-indigo); border-radius: 999px; }

/* Planning semaine */
.pk-planning__titre { margin: 0; font-size: 1.5rem; }
.pk-semaine { display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.pk-semaine__jour { background: var(--pk-surface); border: 1px solid var(--pk-bordure); border-radius: var(--pk-rayon); padding: 10px; min-height: 160px; display: flex; flex-direction: column; gap: 8px; }
.pk-semaine__jour.est-aujourdhui { border-color: var(--pk-indigo); box-shadow: 0 0 0 2px var(--pk-indigo-clair); }
.pk-semaine__entete { font-family: var(--pk-font-texte); font-size: 14px; font-weight: 700; margin: 0 0 4px; color: var(--pk-encre-doux); }
.pk-semaine__vide { color: var(--pk-encre-doux); opacity: .4; margin: 0; }
.pk-seance { display: grid; gap: 2px; padding: 8px 10px; border-radius: var(--pk-rayon-sm); background: var(--pk-fond-app); border-left: 4px solid var(--pk-couleur, var(--pk-indigo)); color: var(--pk-encre); text-decoration: none; font-size: 14px; }
.pk-seance:hover { background: var(--pk-indigo-clair); }
.pk-seance__heure { font-variant-numeric: tabular-nums; color: var(--pk-encre-doux); font-size: 13px; }
.pk-seance__infos { color: var(--pk-encre-doux); font-size: 12px; }
.pk-seance--annulee, .pk-seance--deplacee { opacity: .65; text-decoration: line-through; }

/* Planning mois */
.pk-mois { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pk-mois__entete { text-align: center; font-weight: 700; font-size: 13px; color: var(--pk-encre-doux); padding: 4px; }
.pk-mois__jour { background: var(--pk-surface); border: 1px solid var(--pk-bordure); border-radius: var(--pk-rayon-sm); min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; overflow: hidden; }
.pk-mois__jour.est-hors-mois { opacity: .45; }
.pk-mois__jour.est-aujourdhui { border-color: var(--pk-indigo); }
.pk-mois__numero { font-weight: 700; color: var(--pk-encre); text-decoration: none; font-size: 14px; }
.pk-mois__seance { display: block; font-size: 12px; padding: 1px 6px; border-radius: 6px; background: var(--pk-fond-app); border-left: 3px solid var(--pk-couleur, var(--pk-indigo)); color: var(--pk-encre); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Appel depuis l'ordinateur */
.pk-appel { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.pk-appel__eleve { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--pk-bordure); }
.pk-appel__choix { display: flex; gap: 6px; }
.pk-appel__option { position: relative; }
.pk-appel__option input { position: absolute; opacity: 0; inset: 0; }
.pk-appel__option span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--pk-bordure); cursor: pointer; font-size: 14px; font-weight: 600; }
.pk-appel__option input:focus-visible + span { box-shadow: var(--pk-focus); }
.pk-appel__option--present input:checked + span { background: var(--pk-menthe-texte); border-color: var(--pk-menthe-texte); color: #fff; }
.pk-appel__option--absent input:checked + span { background: var(--pk-rouge); border-color: var(--pk-rouge); color: #fff; }
.pk-appel__option--excuse input:checked + span { background: var(--pk-ambre-texte); border-color: var(--pk-ambre-texte); color: #fff; }

/* Import */
.pk-correspondance { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.pk-correspondance select { width: 100%; min-height: 42px; border: 1.5px solid var(--pk-bordure); border-radius: var(--pk-rayon); padding: 6px 10px; background: var(--pk-surface); }
.pk-tableau tr.est-erreur td { background: var(--pk-rouge-clair); }
.pk-tableau tr.est-doublon td { background: var(--pk-ambre-clair); }

/* Menu : accès rapide à l'appel */
.pk-menu__lien--appel { margin-top: 6px; background: rgba(255, 107, 74, .16); }
.pk-menu__lien--appel:hover { background: rgba(255, 107, 74, .28); }

@media (max-width: 860px) {
  .pk-semaine { grid-template-columns: 1fr; }
  .pk-semaine__jour { min-height: 0; }
  .pk-mois__seance { display: none; }
}
