/* Agenda — compléments à la charte (style.css commun aux apps La Parisienne) */
.container.large { max-width: 1400px; }
.topbar-inner { max-width: 1400px; }

/* choix de l'équipe */
.selecteur { margin-bottom: 1rem; display: flex; flex-direction: column; gap: 0.6rem; }
.onglets-b, .onglets-p { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.pastille { text-decoration: none; padding: 0.45rem 1rem; border-radius: 50px; border: 2px solid var(--bordure);
  color: var(--brun); font-weight: 700; font-size: 0.85rem; background: var(--blanc); }
.pastille.dc { border-color: #e9b7c6; }
.pastille.actif { background: var(--brun); color: var(--beige); border-color: var(--brun); }
.pastille.dc.actif { background: #3b3437; border-color: #3b3437; color: #fff; }
.onglets-p a { text-decoration: none; color: var(--brun); font-weight: 700; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 1px; padding: 0.35rem 0.2rem; border-bottom: 3px solid transparent; margin-right: 0.8rem; }
.onglets-p a.actif { border-bottom-color: var(--dore); color: var(--dore); }

.semaine-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; }
.semaine-nav input[type=date] { padding: 0.3rem 0.5rem; font-size: 0.85rem; }
.statut { margin-bottom: 0.8rem; }

/* grille */
table.grille-planning th, table.grille-planning td { padding: 0.45rem 0.4rem; }
table.grille-planning .col-nom { min-width: 170px; position: sticky; left: 0; background: var(--blanc); z-index: 1; }
table.grille-planning thead .col-nom, table.grille-planning tfoot .col-nom { background: var(--beige); }
table.grille-planning tfoot th { background: var(--beige); color: var(--brun); text-align: center; font-size: 0.8rem; }
table.grille-planning th.auj { background: var(--dore); color: var(--brun-dark); }
.case-h { min-width: 104px; text-align: center; cursor: pointer; border-left: 1px solid var(--bordure); line-height: 1.25; }
.case-h:hover, .case-h:focus { background: #fff6e3; outline: 2px solid var(--dore); outline-offset: -2px; }
.case-h .h-txt { display: block; font-weight: 700; color: var(--brun); font-size: 0.88rem; white-space: nowrap; }
.case-h small { display: block; color: var(--text-muted); font-size: 0.72rem; }
.case-h small.note { font-style: italic; }
.case-h .vide { color: #d7c7b1; font-size: 1.3rem; }
.case-h.travail { background: #fbf3e2; }
.case-h.repos .h-txt, .case-h.conge .h-txt { color: var(--text-muted); font-weight: 400; }
.case-h.repos { background: #f3efe8; }
.case-h.conge { background: repeating-linear-gradient(45deg, #eef5ef, #eef5ef 6px, #e2eee4 6px, #e2eee4 12px); }
.case-h.conge .h-txt { color: #24543a; font-weight: 700; }
.case-h.ecole, .case-h.formation { background: #eaf1f8; }
.case-h.ecole .h-txt, .case-h.formation .h-txt { color: #2b4f75; }
.case-h.absence { background: #f8e3e1; }
.case-h.absence .h-txt { color: var(--danger); }
.case-h.ailleurs { background: #f1ede6; opacity: 0.75; }
.alerte-ligne { color: var(--danger); font-size: 0.72rem; font-weight: 700; margin-top: 2px; }
.alerte-txt { color: var(--danger) !important; font-weight: 700; }
td.total.trop strong { color: var(--danger); }

.barre-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1rem; }
.barre-actions .actions-rapides { margin: 0; }
.barre-actions form.publier { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
form.renfort select { max-width: 320px; }

/* fenêtre de saisie */
dialog.dialogue { width: min(520px, calc(100vw - 32px)); border: 0; padding: 1.3rem 1.4rem; }
dialog::backdrop { background: rgba(58, 32, 16, 0.45); }
.types, .creneaux { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.4rem 0 0.8rem; }
.types button.actif { background: var(--brun); color: var(--beige); }
.creneaux button small { font-weight: 400; opacity: 0.8; }
.actions-dialogue { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.form-ligne input[type=time] { min-width: 8rem; }

/* mon planning */
.jours-liste { display: flex; flex-direction: column; gap: 0.5rem; }
.jour-carte { display: flex; gap: 0.9rem; align-items: center; background: var(--blanc); border: 1px solid var(--bordure);
  border-radius: var(--radius); padding: 0.6rem 0.9rem; }
.jour-carte.auj { border: 2px solid var(--dore); }
.jour-carte.travail { border-left: 5px solid var(--brun); }
.jour-carte.conge { border-left: 5px solid #2e7d4f; }
.jour-carte.ecole, .jour-carte.formation { border-left: 5px solid #2b4f75; }
.jour-date { display: flex; flex-direction: column; align-items: center; width: 2.6rem; flex: none; color: var(--text-muted);
  font-size: 0.72rem; text-transform: uppercase; font-weight: 700; }
.jour-date b { font-family: 'Playfair Display', serif; font-size: 1.5rem; color: var(--brun); line-height: 1; }
.jour-h { font-weight: 700; font-size: 1.05rem; color: var(--brun); }
.collegues { font-size: 0.82rem; margin-top: 2px; }

/* administration */
.case.petite { font-size: 0.82rem; align-items: center; gap: 0.3rem; margin-right: 0.6rem; display: inline-flex; }
.case.petite input { width: 1.1rem; height: 1.1rem; margin: 0; }
.postes-cases { min-width: 260px; }
.form-ligne.compact { gap: 0.5rem; align-items: center; }
.form-ligne.compact select, .form-ligne.compact input { padding: 0.4rem 0.5rem; font-size: 0.88rem; }
form.droit { display: inline-flex; align-items: center; gap: 0.2rem; margin: 0 0.3rem 0.3rem 0; }
button.lien { background: none; color: var(--danger); padding: 0 0.3rem; font-size: 0.9rem; }
button.lien:hover { background: none; transform: none; }

.bandeau-install { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 50; background: var(--brun); color: var(--blanc);
  border-radius: 14px; padding: 12px 14px; box-shadow: 0 6px 20px rgba(0,0,0,.25); display: flex; gap: 10px; align-items: center; }
.bandeau-install[hidden] { display: none !important; }
.bandeau-install img { border-radius: 9px; flex-shrink: 0; }
.bandeau-install .fermer { background: none; color: var(--blanc); font-size: 1.4rem; line-height: 1; padding: 0 4px; }

@media (max-width: 700px) {
  table.grille-planning .col-nom { min-width: 120px; }
  .case-h { min-width: 88px; }
  .barre-actions { flex-direction: column; align-items: stretch; }
}
@media print {
  .case-h .vide { visibility: hidden; }
}
.total small.mois { color: var(--text-muted); font-size: 0.72rem; white-space: nowrap; }

/* récap mensuel */
table.recap td, table.recap th { white-space: nowrap; }
table.recap td.n.plus { color: #2b4f75; font-weight: 700; }
table.recap td.n.moins { color: var(--danger); font-weight: 700; }
table.recap tr.inactif td { opacity: 0.6; }
table.recap tfoot th { background: var(--beige); color: var(--brun); }
.case-h.maladie { background: #f8e3e1; }
.case-h.maladie .h-txt { color: var(--danger); }
.case-h.paternite, .case-h.maternite { background: #f1e8f6; }
.case-h.paternite .h-txt, .case-h.maternite .h-txt { color: #5b3a75; }
.jour-carte.maladie { border-left: 5px solid var(--danger); }
.jour-carte.paternite, .jour-carte.maternite { border-left: 5px solid #5b3a75; }
details.periode { margin-bottom: 1rem; }
details.periode summary { cursor: pointer; }
details.periode form { margin-top: 0.8rem; flex-wrap: wrap; gap: 0.6rem; align-items: flex-end; }
