/* Style du portail : sobre, lisible à l'écran et à l'impression. */
:root {
  --encre: #1f2937; --gris: #6b7280; --trait: #e5e7eb; --fond: #f9fafb; --accent: #1d4ed8; --carte: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--encre); background: var(--fond); }
header { background: var(--carte); border-bottom: 1px solid var(--trait); padding: 12px 24px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
header a { color: var(--encre); text-decoration: none; }
header .titre { font-weight: 700; }
header nav { display: flex; gap: 16px; margin-left: auto; font-size: 14px; }
header nav a { color: var(--gris); }
main { padding: 24px; max-width: 1400px; margin: 0 auto; }
h1 { font-size: 22px; margin: 0 0 4px; }
h2 { font-size: 17px; margin: 28px 0 10px; }
.sous-titre { color: var(--gris); margin: 0 0 20px; }
.liens { display: flex; flex-wrap: wrap; gap: 6px; }
.liens a { background: var(--carte); border: 1px solid var(--trait); border-radius: 6px; padding: 4px 10px; color: var(--encre); text-decoration: none; font-size: 14px; }
.liens a:hover { border-color: var(--accent); color: var(--accent); }
.encart { background: var(--carte); border: 1px solid var(--trait); border-radius: 8px; padding: 14px 18px; margin-bottom: 16px; }
.ok { color: #047857; } .ko { color: #b91c1c; }
table.semaine { border-collapse: collapse; width: 100%; table-layout: fixed; background: var(--carte); }
table.semaine th, table.semaine td { border: 1px solid var(--trait); vertical-align: top; padding: 3px; }
table.semaine th { background: #f3f4f6; font-size: 13px; font-weight: 600; padding: 6px; }
table.semaine th.heure { width: 92px; text-align: left; color: var(--gris); font-weight: 500; }
table.semaine td { height: 58px; }
.cases { display: flex; gap: 3px; height: 100%; }
.seance { flex: 1; min-width: 0; border-radius: 5px; padding: 3px 5px; font-size: 12px; line-height: 1.25; border-left: 4px solid rgba(0,0,0,.25); overflow: hidden; }
.seance .matiere { font-weight: 700; }
.seance .detail { color: #374151; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.seance.suite { opacity: .55; font-style: italic; }
.chiffres { color: var(--gris); font-size: 14px; margin-bottom: 12px; }
table.liste { border-collapse: collapse; background: var(--carte); font-size: 14px; }
table.liste td, table.liste th { border-bottom: 1px solid var(--trait); padding: 5px 12px; text-align: left; }
/* Formulaires (demandes, mot de passe) */
input, select, textarea { max-width: 100%; font: inherit; }
form p input:not([type=checkbox]), form p select, form p textarea { width: 100%; padding: 6px; }
/* Téléphone : menu sur plusieurs lignes, marges réduites, tableaux défilants */
@media (max-width: 700px) {
  header { padding: 10px 14px; gap: 6px; }
  header nav { margin-left: 0; flex-wrap: wrap; gap: 4px 14px; }
  header nav a { overflow-wrap: anywhere; }
  main { padding: 14px; }
  table.liste { display: block; overflow-x: auto; }
  .defile { overflow-x: auto; } .defile table.semaine { min-width: 640px; }
}
@media print {
  header, .pas-imprimer { display: none; }
  body { background: #fff; } main { padding: 0; }
  .seance { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
