/* Personnalisations Toast : modifier ici, jamais dans sb-admin-2.min.css */
#confirmationActionMessage { white-space: pre-line; }
#matieres-prof-grille > :target, #chapitres-liste :target { scroll-margin-top: 6rem; }
[id^="suivi-travail-"], [id^="suivi-chapitre-"] { scroll-margin-top: 6rem; }
/* Taille commune des retours, indépendamment des styles locaux de la page. */
.btn.toast-retour { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 2rem; padding: .25rem .5rem; font-size: .875rem; line-height: 1.5; white-space: nowrap; }
.btn.toast-retour > .lucide, .btn.toast-retour > [data-lucide] { display: block; width: 1rem; height: 1rem; margin: 0; vertical-align: middle; }
.btn.toast-matiere-modifier { color: var(--toast-texte-secondaire); }
.btn.toast-matiere-modifier:hover, .btn.toast-matiere-modifier:focus-visible { color: var(--toast-bleu-action); background-color: var(--toast-bleu-fond); text-decoration: none; }
.btn.toast-matiere-modifier:focus-visible { outline: 2px solid var(--toast-bleu-action); outline-offset: 2px; }
/* Un bouton indisponible ne doit jamais réagir au survol, même via son icône.
   Règle commune aux contrôles natifs et aux liens présentés comme des boutons,
   y compris dans un fieldset désactivé et pendant le traitement d'un formulaire. */
:is(button, input[type="button"], input[type="submit"], input[type="reset"], input[type="image"], .btn, [role="button"], .dropdown-item):is(:disabled, .disabled, [aria-disabled="true"]),
:is(button, input[type="button"], input[type="submit"], input[type="reset"], input[type="image"], .btn, [role="button"], .dropdown-item):is(:disabled, .disabled, [aria-disabled="true"]) * {
    pointer-events: none !important;
    transition: none !important;
}
a[href^="mailto:"] { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .15em; transition: color .15s ease, text-decoration-color .15s ease; }
a[href^="mailto:"]:hover, a[href^="mailto:"]:focus-visible { color: var(--toast-bleu-action) !important; text-decoration-color: currentColor !important; }
.toast-suivi-prof { color: var(--toast-texte); }
.toast-suivi-filtres, .toast-suivi-intro, .toast-suivi-synthese, .toast-suivi-entete { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.toast-suivi-filtres > .form-control { width: auto; max-width: 16rem; }
@media (min-width: 1200px) {
    .toast-suivi-filtres > [data-libelles-matieres] { max-width: min(36rem, 100%); }
}
.toast-suivi-filtres [data-suivi-etudiant] { margin-left: auto; }
.toast-suivi-intro { justify-content: space-between; }
.toast-suivi-synthese { font-size: .8rem; gap: .5rem 1rem; }
.toast-suivi-synthese > span { white-space: nowrap; }
[data-suivi-individuel] [data-suivi-matiere] > .toast-suivi-intro > h2 { font-size: 1.15rem; font-weight: 600; }
[data-suivi-individuel] [data-suivi-matiere] > .toast-suivi-intro > .toast-suivi-synthese { font-size: .95rem; }
[data-suivi-individuel] [data-suivi-matiere] > .toast-suivi-intro .toast-suivi-consultations { font-size: .95rem; }
.toast-suivi-prof .lucide { width: 16px; height: 16px; flex-shrink: 0; }
.toast-suivi-icone-neutre { color: var(--toast-texte-secondaire); stroke-width: 1.5; }
.toast-suivi-icone-visibilite { stroke-width: 1.5; }
.toast-suivi-icone-visibilite--aucun { color: var(--toast-texte-secondaire); }
.toast-suivi-icone-visibilite--partiel { color: var(--toast-bleu-action); }
.toast-suivi-icone-visibilite--tous { color: var(--toast-succes-action); }
.toast-chapitre-compteur-visibilite { color: var(--toast-texte-secondaire); }
.toast-suivi-entete { padding: .65rem .75rem; cursor: pointer; list-style: none; }
.toast-suivi-entete::-webkit-details-marker { display: none; }
.toast-suivi-entete:hover { background: var(--toast-bleu-fond); }
.toast-suivi-chapitre > .toast-suivi-entete { background-color: var(--toast-fond-elevation); background-image: linear-gradient(color-mix(in srgb, var(--toast-bleu-fond) 40%, transparent), color-mix(in srgb, var(--toast-bleu-fond) 40%, transparent)); }
.toast-suivi-chapitre > .toast-suivi-entete:hover { background-color: var(--toast-fond-elevation); background-image: linear-gradient(var(--toast-bleu-fond), var(--toast-bleu-fond)); }
.toast-suivi-entete:focus-visible { outline: 2px solid var(--toast-bleu-action); outline-offset: -2px; }
.toast-suivi-titre { min-width: 0; flex: 1 1 13rem; overflow-wrap: anywhere; font-size: .875rem; }
.toast-suivi-chevron { transition: transform .15s; }
details[open] > summary > .toast-suivi-chevron { transform: rotate(90deg); }
.toast-suivi-travail { border: 1px solid var(--toast-bordure); border-radius: .35rem; margin-bottom: .4rem; }
.toast-suivi-travail:last-child { margin-bottom: 0; }
.toast-suivi-travail[open] { --toast-suivi-accent-ouvert: color-mix(in srgb, var(--toast-bleu-action) 50%, var(--toast-texte-secondaire)); --toast-suivi-bordure-ouverte: color-mix(in srgb, var(--toast-suivi-accent-ouvert) 28%, var(--toast-bordure)); border-color: var(--toast-suivi-bordure-ouverte); }
.toast-suivi-travail[open] > .toast-suivi-entete { background: var(--toast-bleu-fond); border-bottom: 1px solid var(--toast-suivi-bordure-ouverte); border-radius: .3rem .3rem 0 0; }
.toast-suivi-travail[open] > .toast-suivi-entete > .toast-suivi-titre { color: var(--toast-suivi-accent-ouvert); }
.toast-suivi-travail[open] > .toast-suivi-entete > .toast-suivi-chevron { color: var(--toast-suivi-accent-ouvert); }
/* Même bandeau ouvert pour les listes de chapitres, de travaux, de matières et de jours. */
:is(.toast-suivi-chapitre, .toast-suivi-travail, .toast-groupe-matiere, .toast-agenda-journee)[open] > :is(.toast-suivi-entete, .toast-groupe-entete, .toast-agenda-resume) { background-color: var(--toast-fond-elevation); background-image: linear-gradient(color-mix(in srgb, var(--toast-bleu-action) 12%, transparent), color-mix(in srgb, var(--toast-bleu-action) 12%, transparent)); }
:is(.toast-suivi-chapitre, .toast-suivi-travail, .toast-groupe-matiere, .toast-agenda-journee)[open] > :is(.toast-suivi-entete, .toast-groupe-entete, .toast-agenda-resume):hover { background-image: linear-gradient(color-mix(in srgb, var(--toast-bleu-action) 16%, transparent), color-mix(in srgb, var(--toast-bleu-action) 16%, transparent)); }
.toast-suivi-repartition { display: flex; flex: 0 1 26rem; flex-direction: column; gap: .15rem; }
.toast-suivi-repartition > .small { font-size: .7rem; }
.toast-suivi-barre { display: flex; overflow: hidden; height: .9rem; border-radius: .3rem; background: var(--toast-fond-elevation); min-width: 5rem; }
.toast-suivi-barre > span { display: flex; align-items: center; justify-content: center; height: 100%; min-width: 0; font-size: .65rem; line-height: 1; text-align: center; }
.toast-suivi-prof [data-palier="non-commence"] { --suivi-couleur: var(--toast-case-bordure); }
.toast-suivi-prof [data-palier="faible"] { --suivi-couleur: var(--toast-danger-action); }
.toast-suivi-prof [data-palier="moyen"] { --suivi-couleur: var(--toast-orange-action); }
.toast-suivi-prof [data-palier="avance"] { --suivi-couleur: var(--toast-bleu-action); }
.toast-suivi-prof [data-palier="termine"] { --suivi-couleur: var(--toast-succes-action); }
.toast-suivi-barre > span { background: var(--suivi-couleur); color: #fff; }
.toast-suivi-barre > [data-palier="non-commence"] { color: var(--toast-texte); }
[data-theme="dark"] .toast-suivi-barre > span { color: #172033; }
.toast-suivi-barre-individuelle { height: .5rem; flex: 1; }
.toast-suivi-progression { display: flex; align-items: center; gap: .5rem; min-width: 10rem; font-size: .8rem; }
.toast-suivi-progression > span:last-child { white-space: nowrap; }
.toast-suivi-consultations { color: var(--suivi-couleur); white-space: nowrap; font-size: .75rem; }
.toast-suivi-consultation-individuelle { font-size: .75rem; font-weight: 400; text-align: left; }
.toast-suivi-non-consulte { color: var(--toast-orange-action); }
[data-theme="dark"] .toast-suivi-consultations:not([data-palier="termine"]),
[data-theme="dark"] .toast-suivi-non-consulte { color: var(--toast-danger-texte); }
.toast-suivi-table { table-layout: fixed; min-width: 36rem; }
.toast-suivi-col-etudiant { width: 36%; }
.toast-suivi-col-avancement { width: 28%; }
.toast-suivi-table-consultations .toast-suivi-col-avancement { width: 64%; }
.toast-suivi-etat { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .8rem; }
.toast-suivi-etat > span, .toast-suivi-etat > a { flex: 0 1 auto; }
.toast-suivi-a-rendre { color: var(--toast-attention-action); }
.toast-suivi-table th, .toast-suivi-table td { padding: .5rem .75rem; vertical-align: middle; }
.toast-suivi-table td:first-child { min-width: 11rem; }
.toast-suivi-table tbody tr:hover { background: var(--toast-bleu-fond); }
.toast-suivi-etudiant-lien { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .15rem .3rem; margin-left: -.3rem; border-radius: .3rem; color: var(--toast-texte); font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.toast-suivi-etudiant-lien > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 20rem; }
.toast-suivi-etudiant-lien .lucide { width: 14px; height: 14px; color: var(--toast-texte-secondaire); stroke-width: 1.5; }
.toast-suivi-etudiant-lien > .toast-suivi-etudiant-chevron { opacity: .5; }
.toast-suivi-etudiant-lien:hover, .toast-suivi-etudiant-lien:focus-visible { color: var(--toast-bleu-action-survol); background: var(--toast-bleu-fond); text-decoration: none; }
.toast-suivi-etudiant-lien:hover .lucide, .toast-suivi-etudiant-lien:focus-visible .lucide { color: inherit; opacity: 1; }
.toast-suivi-etudiant-lien:focus-visible { outline: 2px solid var(--toast-bleu-focus); outline-offset: 2px; }
.toast-suivi-tri { border: 0; padding: 0; background: transparent; color: inherit; font: inherit; font-weight: 700; white-space: nowrap; }
.toast-suivi-tri:hover { color: var(--toast-texte); }
.toast-suivi-tri .lucide { width: 12px; height: 12px; }
.toast-suivi-individuel { display: grid; grid-template-columns: minmax(12rem, 1fr) minmax(8rem, .7fr) minmax(12rem, 1fr); align-items: center; gap: .75rem; padding: .65rem .75rem; border-bottom: 1px solid var(--toast-bordure); }
.toast-suivi-individuel:last-child { border-bottom: 0; }
.toast-suivi-individuel-sans-suivi > .toast-suivi-progression { grid-column: 2 / -1; }
.toast-suivi-legende { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; }
.toast-suivi-legende > span::before { content: ''; display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: var(--suivi-couleur); margin-right: .25rem; }
.toast-suivi-retour { display: inline-flex; gap: .35rem; align-items: center; }
@media (max-width: 767.98px) {
    .toast-suivi-filtres > .form-control { max-width: 100%; }
    .toast-suivi-filtres [data-suivi-etudiant] { margin-left: 0; }
    .toast-suivi-repartition { flex-basis: 100%; order: 1; }
    .toast-suivi-individuel { grid-template-columns: minmax(0, 1fr); gap: .4rem; }
    .toast-suivi-individuel-sans-suivi > .toast-suivi-progression { grid-column: auto; }
    .toast-suivi-synthese { gap: .4rem .65rem; font-size: .75rem; }
}
.toast-rendus-filtres { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.toast-rendus-filtres > .form-control { width: auto; max-width: 13rem; }
.toast-rendus-filtres > input.form-control { flex: 1 1 12rem; max-width: 20rem; }
.toast-rendus-contexte { display: flex; align-items: center; flex-wrap: wrap; gap: .75rem 1rem; }
.toast-rendus-contexte .btn { display: inline-flex; align-items: center; gap: .35rem; flex-shrink: 0; }
.toast-rendus-contexte > nav { min-width: 0; }
.toast-rendus-contexte .toast-breadcrumb { margin-bottom: 0; }
.toast-rendus-restitution { flex: 1 1 100%; color: var(--toast-texte-secondaire); }
.toast-rendus-restitution .lucide { width: .9rem; height: .9rem; vertical-align: -.15rem; }
.toast-rendus-prof .btn .lucide { width: 16px; height: 16px; }
.toast-rendus-table td { vertical-align: middle; padding: .5rem; }
.toast-rendus-table th { padding: .5rem; }
.toast-correction-onglet { border: 1px solid var(--toast-bordure); color: var(--toast-texte); }
.toast-correction-onglet:hover, .toast-correction-onglet:focus, .toast-correction-onglet.active { background: var(--toast-fond-elevation); border-color: var(--toast-case-bordure); color: var(--toast-texte); }
.toast-correction-onglet.active { font-weight: 700; }
.toast-corrections-table td:first-child { min-width: 14rem; }
.toast-corrections-table .toast-rendu-travail-texte small .lucide { width: .8rem; height: .8rem; }
.toast-correction-action { display: inline-flex; align-items: center; justify-content: center; width: 2rem; height: 2rem; padding: .3rem; border: 1px solid currentColor; border-radius: .4rem; background: transparent; }
.toast-correction-action .lucide { width: 19px; height: 19px; }
.toast-correction-marquer { color: var(--toast-succes-action); }
.toast-correction-marquer:hover, .toast-correction-marquer:focus { color: var(--toast-succes-survol); background: var(--toast-succes-fond); }
.toast-correction-retirer { color: var(--toast-danger-action); }
.toast-correction-retirer:hover, .toast-correction-retirer:focus { color: var(--toast-danger-survol); background: var(--toast-danger-fond); }
.toast-correction-action:focus-visible { outline: 3px solid var(--toast-bleu-focus); outline-offset: 2px; }
.toast-prof-dashboard { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; align-items: stretch; gap: 1.25rem; margin-bottom: 1rem; container-type: inline-size; container-name: tableau-professeur; }
.toast-prof-dashboard-principal, .toast-prof-dashboard-lateral { display: contents; }
.toast-prof-dashboard .toast-corrections { grid-column: 1; grid-row: 1; margin-bottom: 0 !important; }
.toast-prof-dashboard .toast-prof-devoirs { grid-column: 2; grid-row: 1; margin-bottom: 0 !important; }
.toast-prof-dashboard .toast-prof-derniers-rendus { grid-column: 2; grid-row: 2; }
.toast-prof-dashboard .toast-prof-indicateurs { grid-column: 1; grid-row: 2; min-width: 0; align-self: stretch; }
.toast-indicateurs-synthese { display: flex; flex-wrap: wrap; gap: .25rem .75rem; font-size: .78rem; }
.toast-indicateurs-listes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
@container tableau-professeur (min-width: 80rem) {
    .toast-indicateurs-listes { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
    .toast-indicateurs-listes > section { padding: .85rem 1rem; }
    .toast-indicateurs-listes h3 { margin-bottom: .55rem; }
    .toast-indicateur-etudiant { padding: .5rem 0; }
}
@container (max-width: 30rem) {
    .toast-indicateurs-listes { grid-template-columns: minmax(0, 1fr); }
}
.toast-indicateurs-listes > section { min-width: 0; padding: .55rem .65rem; border: 1px solid var(--toast-bordure); border-radius: .4rem; }
.toast-indicateurs-listes h3 { margin-bottom: .3rem; font-size: .85rem; }
.toast-indicateur-etudiant { padding: .3rem 0; }
.toast-indicateur-etudiant + li { border-top: 1px solid var(--toast-bordure); }
.toast-indicateur-detail { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.toast-indicateur-lien { display: flex; align-items: center; gap: .35rem; min-width: 0; margin: -.15rem -.3rem 0; padding: .15rem .3rem; border-radius: .3rem; color: var(--toast-texte); font-size: .78rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.toast-indicateur-lien > span:nth-child(2) { overflow: hidden; min-width: 0; text-overflow: ellipsis; white-space: nowrap; }
.toast-indicateurs-listes [data-indicateur="a_jour"] { --indicateur-couleur: var(--toast-succes-action); --indicateur-fond: var(--toast-succes-fond); }
.toast-indicateurs-listes [data-indicateur="recents"] { --indicateur-couleur: var(--toast-bleu-action); --indicateur-fond: var(--toast-bleu-fond); }
.toast-indicateurs-listes [data-indicateur="retards"] { --indicateur-couleur: var(--toast-danger-action); --indicateur-fond: var(--toast-danger-fond); }
.toast-indicateurs-listes [data-indicateur="sans_maj"] { --indicateur-couleur: var(--toast-attention-action); --indicateur-fond: var(--toast-attention-fond); }
.toast-indicateur-lien:hover, .toast-indicateur-lien:focus-visible { color: var(--toast-texte); background: color-mix(in srgb, var(--indicateur-fond, var(--toast-bleu-fond)) 40%, transparent); text-decoration: none; }
.toast-indicateur-lien:hover > span:nth-child(2), .toast-indicateur-lien:focus-visible > span:nth-child(2) { color: color-mix(in srgb, var(--toast-texte) 75%, var(--indicateur-couleur, var(--toast-bleu-action))); }
.toast-indicateur-lien:focus-visible { outline: 2px solid var(--indicateur-couleur, var(--toast-bleu-focus)); outline-offset: 2px; }
.toast-indicateur-lien .toast-suivi-etudiant-chevron { flex: 0 0 auto; width: 14px; height: 14px; color: var(--toast-texte-secondaire); opacity: .5; }
.toast-indicateur-lien:hover .toast-suivi-etudiant-chevron, .toast-indicateur-lien:focus-visible .toast-suivi-etudiant-chevron { color: inherit; opacity: 1; }
.toast-indicateur-rang { flex: 0 0 1.25rem; color: var(--toast-texte-secondaire); font-weight: 700; text-align: center; }
.toast-indicateur-valeur { margin-left: 0 !important; color: var(--toast-texte-secondaire); font-size: .78rem; white-space: nowrap; }
.toast-indicateur-lien small { margin-left: auto; white-space: nowrap; }
.toast-indicateur-detail { margin-top: .1rem; color: var(--toast-texte-secondaire); line-height: 1.2; }
.toast-indicateur-detail > a { flex-shrink: 0; padding: .15rem .3rem; }
.toast-indicateur-detail .lucide { width: 15px; height: 15px; }
.toast-prof-dashboard .card-header { display: flex; align-items: center; min-height: 3.5rem; box-sizing: border-box; }
.toast-prof-devoirs .toast-prof-rendus-pied { margin-top: auto; }
.toast-prof-dashboard-principal, .toast-prof-derniers-rendus { min-width: 0; }
.toast-prof-dashboard-lateral { min-width: 0; }
.toast-prof-dashboard .card-header { color: var(--toast-selection-texte); background: var(--toast-selection-fond); }
.toast-prof-devoirs li + li { border-top: 1px solid var(--toast-bordure); }
.toast-prof-devoir-lien { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; color: var(--toast-texte); }
.toast-prof-devoir-lien:hover, .toast-prof-devoir-lien:focus { background: var(--toast-selection-fond); color: var(--toast-texte); text-decoration: none; }
.toast-prof-devoir-lien:focus-visible { outline: 2px solid var(--toast-selection-action); outline-offset: -2px; }
.toast-prof-devoir-lien time { flex-shrink: 0; color: var(--toast-selection-action); font-size: .8rem; font-weight: 700; }
.toast-prof-devoir-texte { min-width: 0; }
.toast-prof-devoir-texte strong, .toast-prof-devoir-texte small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-prof-devoir-texte strong { font-size: .8rem; }
.toast-prof-devoir-texte small { font-size: .7rem; color: var(--toast-texte-secondaire); }
.toast-prof-rendus-recents > li { padding: .55rem .75rem; border-bottom: 1px solid var(--toast-bordure); }
.toast-prof-rendus-recents > li:last-child { border-bottom: 0; }
.toast-prof-rendus-recents > li:hover { background: var(--toast-bleu-fond); }
.toast-prof-rendu-entete, .toast-prof-rendu-detail { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.toast-prof-rendu-entete { margin-bottom: .2rem; font-size: .78rem; }
.toast-prof-rendu-entete > strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-prof-rendu-entete > time { flex-shrink: 0; color: var(--toast-texte-secondaire); font-size: .68rem; }
.toast-prof-rendu-travail { display: flex; align-items: center; gap: .35rem; flex: 1; min-width: 0; color: var(--toast-texte-secondaire); font-size: .75rem; }
.toast-prof-rendu-travail > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-prof-rendu-travail:hover, .toast-prof-rendu-travail:focus { color: var(--toast-bleu-action-survol); text-decoration: none; }
.toast-prof-rendu-detail .lucide { width: 15px; height: 15px; }
.toast-prof-rendu-travail > .lucide { color: var(--toast-bleu-action); }
.toast-prof-rendus-pied { padding: .6rem .75rem; border-top: 1px solid var(--toast-bordure); font-size: .75rem; }
.toast-prof-rendus-pied a { display: flex; align-items: center; justify-content: space-between; color: var(--toast-bleu-action); }
.toast-prof-rendus-pied a:hover { color: var(--toast-bleu-action-survol); }
.toast-prof-rendus-pied .lucide { width: 15px; height: 15px; }
@container tableau-professeur (min-width: 80rem) {
    .toast-indicateurs-listes h3 { margin-bottom: .6rem; }
    .toast-indicateur-lien { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr) auto auto; column-gap: .35rem; row-gap: .2rem; font-size: .82rem; }
    .toast-indicateur-rang { grid-column: 1; grid-row: 1; }
    .toast-indicateur-lien > span:nth-child(2) { grid-column: 2; grid-row: 1; }
    .toast-indicateur-lien > small.text-muted { grid-column: 3; grid-row: 1; }
    .toast-indicateur-lien .toast-suivi-etudiant-chevron { grid-column: 4; grid-row: 1; }
    .toast-indicateur-lien .toast-indicateur-valeur { grid-column: 2; grid-row: 2; justify-self: start; }
}
@media (min-width: 1200px) {
    .toast-prof-dashboard .toast-prof-indicateurs,
    .toast-prof-dashboard .toast-prof-derniers-rendus { display: flex; align-self: stretch; }
    .toast-prof-dashboard .toast-prof-indicateurs > .card,
    .toast-prof-dashboard .toast-prof-derniers-rendus > .card { display: flex; flex: 1 1 auto; flex-direction: column; }
    .toast-prof-dashboard .toast-prof-indicateurs .card-body,
    .toast-prof-dashboard .toast-prof-derniers-rendus .toast-prof-rendus-recents,
    .toast-prof-dashboard .toast-prof-derniers-rendus > .card > .text-muted { flex: 1 1 auto; }
}
@media (max-width: 1199.98px) {
    .toast-prof-dashboard { grid-template-columns: minmax(0, 1fr); }
    .toast-prof-dashboard-principal, .toast-prof-dashboard-lateral { display: block; }
    .toast-prof-dashboard .toast-prof-devoirs { margin-bottom: 1.25rem !important; }
    .toast-prof-dashboard .toast-prof-indicateurs { margin-top: 1.25rem; }
}
/* Cases communes à toute l’application, y compris les listes et les préférences. */
input[type="checkbox"] { appearance: none; display: inline-grid; place-content: center; flex-shrink: 0; width: 1.2rem; height: 1.2rem; margin: 0; vertical-align: middle; border: 1px solid var(--toast-case-bordure); border-radius: .3rem; background: var(--toast-fond-carte); cursor: pointer; transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease; }
input[type="checkbox"]:hover:not(:disabled) { border-color: var(--toast-bleu-action); background-color: var(--toast-bleu-fond); }
input[type="checkbox"]:checked { border-color: var(--toast-bleu-action); background: var(--toast-bleu-action); }
input[type="checkbox"]:checked::before { content: ""; width: .36rem; height: .62rem; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); }
input[type="checkbox"]:indeterminate { border-color: var(--toast-bleu-action); background: var(--toast-bleu-action); }
input[type="checkbox"]:indeterminate::before { content: ""; width: .62rem; height: 2px; border: 0; transform: none; border-radius: 1px; background: #fff; }
input[type="checkbox"]:focus-visible { outline: 3px solid var(--toast-bleu-focus); outline-offset: 2px; }
input[type="checkbox"]:disabled { opacity: .45; cursor: not-allowed; }
.toast-case-option { display: flex; align-items: flex-start; gap: .5rem; }
.toast-case-option input[type="checkbox"] { margin-top: .1rem; }
.toast-case-libelle { margin-bottom: 0; cursor: pointer; }
.toast-rendu-tri { display: inline-flex; align-items: center; gap: .3rem; color: inherit; text-decoration: none; white-space: nowrap; }
.toast-rendu-tri:hover, .toast-rendu-tri:focus, .toast-rendu-tri.active { color: inherit; text-decoration: none; }
.toast-rendu-tri:hover .lucide, .toast-rendu-tri:focus .lucide { opacity: 1; }
.toast-rendu-tri .lucide { width: 14px; height: 14px; opacity: .55; }
.toast-rendu-tri.active .lucide { opacity: 1; }
.toast-rendus-table td:nth-child(2) { min-width: 9rem; }
.toast-rendus-table .toast-rendu-col-travail { min-width: 12rem; }
.toast-rendus-table .toast-rendu-col-fichier { min-width: 12rem; max-width: 25rem; overflow-wrap: anywhere; }
.toast-rendu-fichier { display: flex; align-items: center; gap: .5rem; }
.toast-rendu-fichier .lucide { width: 18px; height: 18px; }
.toast-rendu-fichier-texte { display: flex; flex: 1 1 auto; align-items: baseline; min-width: 0; gap: .25rem; white-space: nowrap; }
.toast-rendu-nom { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.toast-rendu-fichier-texte > small { flex-shrink: 0; }
.toast-rendu-actions { white-space: nowrap; }
.toast-rendu-actions a { display: inline-flex; align-items: center; justify-content: center; margin-left: .4rem; }
.toast-rendu-actions a:first-child { margin-left: 0; }
.toast-rendu-actions .toast-depot-supprimer { color: var(--toast-rouge-action); }
.toast-rendu-travail-lien { display: flex; align-items: center; gap: .4rem; max-width: 100%; color: inherit; line-height: 1.15; }
.toast-rendu-travail-lien:hover { color: var(--toast-bleu-action); text-decoration: none; }
.toast-rendu-travail-icone { display: inline-flex; flex: 0 0 1.75rem; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: .35rem; color: var(--toast-bleu-action); background: var(--toast-bleu-fond); }
.toast-rendu-travail-icone .lucide { width: 1rem; height: 1rem; }
.toast-rendu-travail-texte { display: block; min-width: 0; overflow: hidden; }
.toast-rendu-travail-titre, .toast-rendu-travail-texte small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-rendu-travail-texte small { color: var(--toast-texte-secondaire, #6c757d); font-size: .78rem; }
.toast-rendus-prof .toast-rendu-travail-lien { padding: .15rem .3rem; margin-left: -.3rem; border-radius: .3rem; color: var(--toast-texte); font-size: .875rem; font-weight: 600; line-height: 1.3; text-decoration: none; }
.toast-rendus-prof .toast-rendu-travail-icone { flex: 0 0 20px; width: 20px; height: 20px; background: none; color: var(--toast-texte-secondaire); }
.toast-rendus-prof .toast-rendu-travail-lien .lucide { width: 14px; height: 14px; stroke-width: 1.5; }
.toast-rendus-prof .toast-rendu-travail-icone .lucide { width: 20px; height: 20px; }
.toast-rendus-prof .toast-rendu-travail-texte small { font-weight: 400; }
.toast-rendus-prof .toast-rendu-travail-chevron { flex-shrink: 0; color: var(--toast-texte-secondaire); opacity: .5; }
.toast-rendus-prof .toast-rendu-travail-lien:hover, .toast-rendus-prof .toast-rendu-travail-lien:focus-visible { color: var(--toast-bleu-action-survol); background: var(--toast-bleu-fond); text-decoration: none; }
.toast-rendus-prof .toast-rendu-travail-lien:hover .toast-rendu-travail-icone, .toast-rendus-prof .toast-rendu-travail-lien:focus-visible .toast-rendu-travail-icone,
.toast-rendus-prof .toast-rendu-travail-lien:hover .toast-rendu-travail-chevron, .toast-rendus-prof .toast-rendu-travail-lien:focus-visible .toast-rendu-travail-chevron { color: inherit; opacity: 1; }
.toast-rendus-prof .toast-rendu-travail-lien:focus-visible { outline: 2px solid var(--toast-bleu-focus); outline-offset: 2px; }
.toast-confirmation .modal-content { border-radius: .5rem; }
.toast-confirmation .modal-footer { padding: .75rem 1rem; }
.toast-confirmation .modal-title .lucide { width: 18px; height: 18px; }
#confirmationModifications [data-modifications-revenir] { min-height: 2.5rem; font-weight: 700; color: #fff; background-color: #334155; border-color: #334155; }
#confirmationModifications [data-modifications-revenir]:hover,
#confirmationModifications [data-modifications-revenir]:focus,
#confirmationModifications [data-modifications-revenir]:active { color: #fff; background-color: #1e293b; border-color: #1e293b; }
a[data-telechargement] .lucide-download, .toast-depot-telecharger .lucide, .toast-depot-actions .toast-depot-telecharger { color: var(--toast-bleu-action); }
.toast-depot-telecharger, .toast-depot-supprimer { border-radius: .25rem; transition: color .15s ease, background-color .15s ease, box-shadow .15s ease; }
.toast-depot-telecharger:hover, .toast-depot-telecharger:focus-visible { background-color: var(--toast-bleu-fond); box-shadow: 0 0 0 .2rem var(--toast-bleu-fond); }
a[data-telechargement]:hover .lucide-download, a[data-telechargement]:focus-visible .lucide-download,
.toast-depot-actions .toast-depot-telecharger:hover, .toast-depot-actions .toast-depot-telecharger:focus-visible,
.toast-depot-telecharger:hover .lucide, .toast-depot-telecharger:focus-visible .lucide { color: var(--toast-bleu-action-survol); }
.toast-rendu-actions .toast-depot-supprimer:hover, .toast-rendu-actions .toast-depot-supprimer:focus-visible,
.toast-depot-actions .toast-depot-supprimer:hover, .toast-depot-actions .toast-depot-supprimer:focus-visible { color: var(--toast-rouge-action-survol); background-color: var(--toast-rouge-fond); box-shadow: 0 0 0 .2rem var(--toast-rouge-fond); }
.toast-rendus-prof #telechargerRendus { background-color: var(--toast-bleu-action); border-color: var(--toast-bleu-action); color: var(--toast-bleu-bouton-texte); }
.toast-rendus-prof #telechargerRendus .lucide { color: inherit; }
.toast-rendus-prof #telechargerRendus:hover:not(:disabled) { color: var(--toast-bleu-bouton-texte); background-color: var(--toast-bleu-action-survol); border-color: var(--toast-bleu-action-survol); }
/* Empêcher toute interaction pendant la soumission d’un formulaire. */
.toast-form-processing {
    position: fixed;
    inset: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 23, 42, .35);
    cursor: wait;
}
.toast-form-processing-message {
    margin: 1rem;
    padding: 1rem 1.5rem;
    border-radius: .6rem;
    background: var(--toast-fond-carte, #fff);
    color: var(--toast-texte, #34425a);
    box-shadow: 0 .5rem 2rem rgba(0, 0, 0, .2);
}
.toast-form-processing .spinner-border {
    animation: spinner-border .85s linear infinite;
}
.toast-export-progression { width: min(26rem, calc(100vw - 6rem)); max-width: 100%; min-width: 0; margin-top: .8rem; overflow-wrap: normal; }
.toast-form-processing-message:has(.toast-export-progression) { width: min(30rem, calc(100vw - 2rem)); min-width: 0; }
.toast-export-progression > p,
.toast-export-progression > strong {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.toast-export-progression > p { height: 1.5em; line-height: 1.5; }
.toast-sauvegarde-progression { max-width: 100%; min-width: 0; overflow-wrap: normal; }
.toast-sauvegarde-progression .toast-sauvegarde-detail[hidden] { display: block; visibility: hidden; }
.toast-sauvegarde-progression .toast-sauvegarde-fichier-barre[hidden] { display: inline-block; visibility: hidden; }
.toast-export-progression progress { width: calc(100% - 3.8rem); height: .65rem; vertical-align: middle; accent-color: var(--toast-bleu-action); border: 0; border-radius: 1rem; overflow: hidden; background: var(--toast-fond-elevation, #edf0f7); }
.toast-export-progression progress::-webkit-progress-bar { background: var(--toast-fond-elevation, #edf0f7); border-radius: 1rem; }
.toast-export-progression progress::-webkit-progress-value { background: var(--toast-bleu-action); border-radius: 1rem; transition: width .15s ease; }
.toast-export-progression progress::-moz-progress-bar { background: var(--toast-bleu-action); border-radius: 1rem; }
.toast-export-progression progress:indeterminate { background: linear-gradient(90deg, transparent, var(--toast-bleu-action), transparent) 0 0 / 50% 100% no-repeat var(--toast-fond-elevation, #edf0f7); animation: toast-transfert-attente 1.5s ease-in-out infinite alternate; }
.toast-export-progression progress:indeterminate::-webkit-progress-bar { background: transparent; }
.toast-transfert-nom { color: var(--toast-texte-secondaire, #6c757d); }
@keyframes toast-transfert-attente { to { background-position: 100% 0; } }
.toast-export-pourcentage { display: inline-block; width: 3.8rem; text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
    .toast-export-progression progress { transition: none; }
    .toast-export-progression progress:indeterminate { animation: none; }
    .toast-form-processing .spinner-border {
        animation-duration: 1.5s;
    }
}

:root {
    --toast-niveau-premiere-texte: #176b68;
    --toast-niveau-premiere-fond: #e3f3f0;
    --toast-niveau-deuxieme-texte: #6842a6;
    --toast-niveau-deuxieme-fond: #f0eaf8;
    --toast-fond: #f8f9fc;
    --toast-fond-carte: #fff;
    --toast-fond-elevation: #f3f5f9;
    --toast-bordure: #e0e5ee;
    --toast-texte: #34425a;
    --toast-texte-secondaire: #606d81;
    --toast-accent: #f6c23e;
    --toast-bleu-menu: #6e8eeb;
    --toast-bleu-action: #0d6efd;
    --toast-bleu-action-survol: #0a58ca;
    --toast-bleu-fond: rgba(13, 110, 253, .1);
    --toast-bleu-focus: rgba(13, 110, 253, .25);
    --toast-bleu-bouton-texte: #fff;
    --toast-succes-action: #24734c;
    --toast-succes-survol: #1e603f;
    --toast-succes-fond: #e6f3eb;
    --toast-attention-action: #865900;
    --toast-attention-fond: #fff2cc;
    --toast-attention-bouton-texte: #26344b;
    --toast-orange-action: #bc4f00;
    --toast-orange-fond: #fff0df;
    --toast-info-action: #0b7285;
    --toast-info-fond: #e0f3f6;
    --toast-secondaire-action: #64748b;
    --toast-secondaire-survol: #526276;
    --toast-secondaire-fond: #eef1f5;
    --toast-case-bordure: #9aa6b8;
    --toast-danger-action: #b0273d;
    --toast-danger-survol: #931f32;
    --toast-danger-fond: #fbeaec;
    --toast-danger-texte: #b0273d;
    --toast-violet-action: #6f42c1;
    --toast-violet-fond: #f1eafa;
    --toast-selection-action: var(--toast-secondaire-action);
    --toast-selection-fond: var(--toast-secondaire-fond);
    --toast-selection-texte: var(--toast-texte);
    --toast-selection-bordure: var(--toast-bordure);
    --toast-rouge-action: var(--toast-danger-action);
    --toast-rouge-action-survol: var(--toast-danger-survol);
    --toast-rouge-fond: var(--toast-danger-fond);
    --toast-chevron-right: url('../icons/chevron-right.svg');
    --toast-chevron-down: url('../icons/chevron-down.svg');
}

/* Boutons sémantiques Bootstrap : même palette sur toutes les pages. */
.btn-primary, .btn-success, .btn-danger, .btn-warning, .btn-info, .btn-secondary {
    color: #fff;
    transition: color .15s ease, background-color .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.toast-matiere-niveau { display: inline-block; padding: .12rem .4rem; border: 1px solid var(--niveau-bordure, var(--toast-bordure)); border-radius: .35rem; color: var(--niveau-texte, var(--toast-texte-secondaire)); background: var(--niveau-fond, var(--toast-fond-carte)); font-size: .68rem; font-weight: 600; line-height: 1.25; vertical-align: middle; white-space: nowrap; }
.toast-matiere-niveau-premiere { --niveau-texte: var(--toast-niveau-premiere-texte); --niveau-fond: var(--toast-niveau-premiere-fond); --niveau-bordure: var(--toast-niveau-premiere-texte); }
.toast-matiere-niveau-deuxieme { --niveau-texte: var(--toast-niveau-deuxieme-texte); --niveau-fond: var(--toast-niveau-deuxieme-fond); --niveau-bordure: var(--toast-niveau-deuxieme-texte); }
select[name="niveau"] option[value="1ère année"] { color: var(--toast-niveau-premiere-texte); background: var(--toast-niveau-premiere-fond); }
select[name="niveau"] option[value="2ème année"] { color: var(--toast-niveau-deuxieme-texte); background: var(--toast-niveau-deuxieme-fond); }
.btn-primary { background-color: var(--toast-bleu-action); border-color: var(--toast-bleu-action); color: var(--toast-bleu-bouton-texte); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active, .btn-primary.active, .show > .btn-primary.dropdown-toggle { background-color: var(--toast-bleu-action-survol); border-color: var(--toast-bleu-action-survol); color: var(--toast-bleu-bouton-texte); }
.btn-success { background-color: var(--toast-succes-action); border-color: var(--toast-succes-action); }
.btn-success:hover, .btn-success:focus, .btn-success:active, .btn-success.active { background-color: var(--toast-succes-survol); border-color: var(--toast-succes-survol); color: #fff; }
.btn-danger { background-color: var(--toast-danger-action); border-color: var(--toast-danger-action); }
.btn-danger:hover, .btn-danger:focus, .btn-danger:active, .btn-danger.active { background-color: var(--toast-danger-survol); border-color: var(--toast-danger-survol); color: #fff; }
.btn-warning { background-color: var(--toast-attention-action); border-color: var(--toast-attention-action); color: var(--toast-attention-bouton-texte); }
.btn-warning:hover, .btn-warning:focus, .btn-warning:active, .btn-warning.active { filter: brightness(.92); color: var(--toast-attention-bouton-texte); }
.btn-info { background-color: var(--toast-info-action); border-color: var(--toast-info-action); }
.btn-info:hover, .btn-info:focus, .btn-info:active, .btn-info.active { filter: brightness(.92); color: #fff; }
.btn-secondary { background-color: var(--toast-secondaire-action); border-color: var(--toast-secondaire-action); }
.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active, .btn-secondary.active { background-color: var(--toast-secondaire-survol); border-color: var(--toast-secondaire-survol); color: #fff; }
.btn-primary:focus, .btn-success:focus, .btn-danger:focus, .btn-warning:focus, .btn-info:focus, .btn-secondary:focus { box-shadow: 0 0 0 .2rem var(--toast-bleu-focus); }
.btn-outline-primary { color: var(--toast-bleu-action); border-color: var(--toast-bleu-action); }
.btn-outline-primary:hover, .btn-outline-primary:focus, .btn-outline-primary:active { background-color: var(--toast-bleu-action); border-color: var(--toast-bleu-action); color: #fff; }
.btn-outline-success { color: var(--toast-succes-action); border-color: var(--toast-succes-action); }
.btn-outline-success:hover, .btn-outline-success:focus, .btn-outline-success:active { background-color: var(--toast-succes-action); border-color: var(--toast-succes-action); color: #fff; }
.btn-outline-danger { color: var(--toast-danger-action); border-color: var(--toast-danger-action); }
.btn-outline-danger:hover, .btn-outline-danger:focus, .btn-outline-danger:active { background-color: var(--toast-danger-action); border-color: var(--toast-danger-action); color: #fff; }
.btn-outline-warning { color: var(--toast-attention-action); border-color: var(--toast-attention-action); }
.btn-outline-warning:hover, .btn-outline-warning:focus, .btn-outline-warning:active { background-color: var(--toast-attention-action); border-color: var(--toast-attention-action); color: #fff; }
.btn-outline-info { color: var(--toast-info-action); border-color: var(--toast-info-action); }
.btn-outline-info:hover, .btn-outline-info:focus, .btn-outline-info:active { background-color: var(--toast-info-action); border-color: var(--toast-info-action); color: #fff; }
.btn-outline-secondary { color: var(--toast-secondaire-action); border-color: var(--toast-secondaire-action); }
.btn-outline-secondary:hover, .btn-outline-secondary:focus, .btn-outline-secondary:active { background-color: var(--toast-secondaire-action); border-color: var(--toast-secondaire-action); color: #fff; }
.text-primary { color: var(--toast-bleu-action) !important; }
.text-success { color: var(--toast-succes-action) !important; }
.text-danger { color: var(--toast-danger-texte) !important; }
.text-warning { color: var(--toast-attention-action) !important; }
/* Garder un contraste identique pour le cartouche dans les deux thèmes. */
.badge.toast-rendu-exige,
[data-theme="dark"] .badge.toast-rendu-exige { background-color: #f6c23e; color: #1a1a1a; }
.text-info { color: var(--toast-info-action) !important; }
.text-secondary { color: var(--toast-secondaire-action) !important; }
.bg-primary { background-color: var(--toast-bleu-fond) !important; color: var(--toast-texte); }
.bg-success { background-color: var(--toast-succes-fond) !important; color: var(--toast-texte); }
.bg-danger { background-color: var(--toast-danger-fond) !important; color: var(--toast-texte); }
.bg-warning { background-color: var(--toast-attention-fond) !important; color: var(--toast-texte); }
.bg-info { background-color: var(--toast-info-fond) !important; color: var(--toast-texte); }
.bg-secondary { background-color: var(--toast-secondaire-fond) !important; color: var(--toast-texte); }
/* Les SVG héritent de la couleur Bootstrap de leur contexte. */
.toast-password-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 2.5rem; color: var(--toast-texte-secondaire, #6e707e); background: var(--toast-fond-carte, #fff); border: 1px solid var(--toast-bordure, #d1d3e2); touch-action: none; user-select: none; -webkit-touch-callout: none; }
.toast-password-group.is-invalid ~ .invalid-feedback { display: block; }
.toast-password-toggle:hover, .toast-password-toggle:focus { color: var(--toast-texte, #34425a); background: var(--toast-fond-elevation, #f3f5f9); }
.toast-password-toggle:focus-visible { outline: 2px solid #4e73df; outline-offset: 2px; }
.toast-login-input.toast-password-group > .form-control { border-radius: 0; }
.toast-login-input .toast-password-toggle { border-color: #d8dfeb; border-radius: 0 .4rem .4rem 0; }
.lucide,
[data-lucide] {
    display: inline-block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    vertical-align: -.2em;
}
.toast-icon-md { width: 24px; height: 24px; }
.toast-icon-lg { width: 32px; height: 32px; }
.toast-brand-name {
    font-family: 'Pacifico', cursive;
    font-size: 1.45rem;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0;
}
.toast-brand-icon {
    color: var(--toast-accent);
}
.toast-brand-icon img { display: block; width: 2rem; height: 2rem; }
.sidebar .sidebar-brand .sidebar-brand-text {
    text-transform: none;
}
.sidebar .sidebar-heading { padding: .8rem 1rem .35rem; color: rgba(255,255,255,.45); font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
/* Navigation professeur : panneaux natifs, indépendants des collapses SB Admin. */
.toast-prof-sidebar .toast-nav-group { position: relative; }
.toast-prof-sidebar .nav-item > .nav-link,
.toast-prof-sidebar .nav-item .toast-nav-toggle { display: flex; align-items: center; gap: .55rem; width: 100%; padding: .8rem 1rem; text-align: left; font-size: .875rem; }
.toast-prof-sidebar .toast-nav-toggle { list-style: none; cursor: pointer; }
.toast-prof-sidebar .toast-nav-toggle::-webkit-details-marker { display: none; }
.toast-prof-sidebar .toast-nav-toggle::marker { content: ''; }
.sidebar.toast-prof-sidebar .nav-item .nav-link .lucide { width: 18px; height: 18px; margin: 0; color: rgba(255,255,255,.85); }
.toast-prof-sidebar .toast-nav-toggle > span { min-width: 0; overflow-wrap: anywhere; }
.sidebar.toast-prof-sidebar .nav-item .nav-link .toast-nav-chevron { width: 15px; height: 15px; margin-left: auto; }
.toast-prof-sidebar .toast-nav-group[open] > .toast-nav-toggle .toast-nav-chevron { transform: rotate(90deg); }
.toast-prof-sidebar .toast-nav-panel { margin: 0 .75rem .65rem; padding: .55rem; border: 1px solid var(--toast-bordure, #e3e7ef); border-radius: .3rem; background: var(--toast-fond-carte, #fff); color: var(--toast-texte, #26344b); }
.toast-prof-sidebar .toast-sidebar-subheading { margin: .7rem 0 .3rem; padding: .32rem .5rem; border-left: 2px solid var(--toast-bleu-menu); border-radius: 0 .2rem .2rem 0; background: var(--toast-fond-elevation, #f0f3f8); color: var(--toast-texte, #33415c); font-size: .72rem; font-weight: 800; letter-spacing: .035em; line-height: 1.35; }
.toast-prof-sidebar .toast-sidebar-subheading:first-child { margin-top: 0; }
.toast-prof-sidebar .toast-nav-panel hr { margin: .7rem 0; border-color: var(--toast-bordure, #e3e7ef); }
.toast-prof-sidebar .toast-sidebar-sub-link { display: flex; align-items: center; gap: .45rem; margin-left: .35rem; padding: .46rem .5rem; color: var(--toast-texte, #26344b); font-size: .86rem; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.toast-prof-sidebar .toast-sidebar-sub-link > .lucide { flex-shrink: 0; width: 15px; height: 15px; color: var(--toast-texte-secondaire); }
.toast-prof-sidebar .toast-nav-panel .toast-sidebar-sub-link[data-menu-matiere-favorite] > .lucide { width: 10px; height: 10px; color: #ffd35b; fill: #ffd35b; stroke: #956300; }
.toast-prof-sidebar .toast-sidebar-sub-link[data-menu-matiere-favorite] > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.toast-prof-sidebar .toast-sidebar-sub-link:hover,
.toast-prof-sidebar .toast-sidebar-sub-link:focus-visible { background: var(--toast-fond-elevation, #f0f3f8); color: var(--toast-texte, #26344b); text-decoration: none; }
.toast-prof-sidebar .toast-sidebar-sub-link.active { background: var(--toast-fond-elevation, #edf2ff); box-shadow: inset 1px 0 var(--toast-bleu-menu); font-weight: 800; }
.toast-prof-sidebar .toast-nav-toggle:focus-visible,
.toast-prof-sidebar .toast-sidebar-sub-link:focus-visible { outline: 2px solid #8babff; outline-offset: -2px; }
.toast-prof-sidebar .toast-nav-empty { padding: .5rem 1rem; color: rgba(255,255,255,.7); font-size: .8rem; }
.toast-prof-sidebar .sidebar-divider { margin-bottom: .35rem; }
.sidebar.toast-prof-sidebar .nav-item .nav-link .toast-pronote-icon { width: 18px; height: 18px; margin: 0; flex-shrink: 0; }
.sidebar.toast-prof-sidebar .nav-item .nav-link .toast-pronote-external { width: 13px; height: 13px; margin-left: auto; opacity: .7; }
.toast-prof-sidebar.toggled .toast-nav-panel { position: absolute; top: 0; left: calc(100% + .5rem); z-index: 1035; width: min(17rem, calc(100vw - 7.5rem)); max-height: calc(100vh - 1.5rem); overflow-y: auto; margin: 0; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.2); }
.toast-prof-sidebar.toggled .nav-item .toast-nav-chevron { display: none; }
.toast-prof-sidebar.toggled .nav-item .toast-pronote-external { display: none; }
.toast-prof-sidebar.toggled .toast-nav-empty { display: none; }
@media (max-width: 767.98px) {
    .toast-prof-sidebar .toast-nav-panel { position: absolute; top: 0; left: calc(100% + .5rem); z-index: 1035; width: min(17rem, calc(100vw - 7.5rem)); max-height: calc(100vh - 1.5rem); overflow-y: auto; margin: 0; box-shadow: 0 .5rem 1.5rem rgba(0,0,0,.2); }
    .toast-prof-sidebar .nav-item .toast-nav-chevron { display: none; }
    .toast-prof-sidebar .nav-item .toast-pronote-external { display: none; }
    .toast-prof-sidebar .toast-nav-empty { display: none; }
}
.sidebar .nav-link[aria-current='page'] {
    font-weight: 700;
}
.sidebar .nav-item .nav-link .lucide { margin-right: .5rem; }
.sidebar-dark .nav-item .nav-link .lucide { color: rgba(255, 255, 255, .3); }
.sidebar-dark .nav-item.active .nav-link .lucide,
.sidebar-dark .nav-item .nav-link:hover .lucide,
.sidebar-dark .nav-item .nav-link:focus .lucide,
.sidebar-dark .nav-item .nav-link:active .lucide { color: #fff; }
.sidebar-light .nav-item .nav-link .lucide { color: #d1d3e2; }
.sidebar-light .nav-item.active .nav-link .lucide,
.sidebar-light .nav-item .nav-link:hover .lucide,
.sidebar-light .nav-item .nav-link:focus .lucide,
.sidebar-light .nav-item .nav-link:active .lucide { color: #6e707e; }
/* Remplacer les glyphes de flèche intégrés au CSS SB Admin 2. */
.sidebar #sidebarToggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, .8);
}
.sidebar #sidebarToggle::after,
.sidebar.toggled #sidebarToggle::after { content: none; font-family: inherit; }
.sidebar.toggled #sidebarToggle .lucide { transform: rotate(180deg); }
.sidebar .nav-item.dropdown .dropdown-toggle::after,
.topbar .nav-item.dropdown .dropdown-toggle::after,
.sidebar .nav-item .nav-link[data-toggle='collapse']::after,
.card .card-header[data-toggle='collapse']::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    font-family: inherit;
    background-color: currentColor;
    -webkit-mask: var(--toast-chevron-down) center / contain no-repeat;
    mask: var(--toast-chevron-down) center / contain no-repeat;
}
.sidebar .nav-item.dropdown .dropdown-toggle::after,
.topbar .nav-item.dropdown .dropdown-toggle::after,
.sidebar .nav-item .nav-link[data-toggle='collapse'].collapsed::after,
.card .card-header[data-toggle='collapse'].collapsed::after {
    content: '';
    -webkit-mask-image: var(--toast-chevron-right);
    mask-image: var(--toast-chevron-right);
}
.sidebar .nav-item.dropdown.show .dropdown-toggle::after,
.topbar .nav-item.dropdown.show .dropdown-toggle::after {
    content: '';
    -webkit-mask-image: var(--toast-chevron-down);
    mask-image: var(--toast-chevron-down);
}
.card .card-header[data-toggle='collapse']::after { top: 1rem; right: 1rem; }
/* Fil d’Ariane du layout commun. */
.toast-breadcrumb {
    padding: 0;
    margin-bottom: 1.25rem;
    background-color: transparent;
    font-size: .875rem;
}
.toast-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    content: '›';
}
.toast-breadcrumb .toast-breadcrumb-icone { width: 14px; height: 14px; }
.toast-document-image, .toast-document-video { display: block; max-width: 100%; max-height: 80vh; margin: 0 auto; object-fit: contain; }
.toast-document-texte { width: 100%; height: 75vh; border: 1px solid var(--toast-bordure, #e0e5ee); background: white; }
.toast-document-navigation { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1rem; }
.toast-document-navigation > nav { flex: 0 1 auto; width: auto; min-width: 0; padding: 0; }
.toast-document-navigation .toast-breadcrumb { margin-bottom: 0; }
.toast-document-navigation > .btn { flex-shrink: 0; }
/* Menu réduit : seules les icônes de navigation restent visibles. */
.sidebar.toggled .sidebar-heading,
.sidebar.toggled .nav-item .nav-link > span {
    display: none;
}
.sidebar.toggled .nav-item .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
}
.sidebar.toggled .nav-item .nav-link .lucide {
    margin-right: 0;
}
/* Les cartes restent lisibles même sans données chiffrées. */
.card-header h2 {
    line-height: 1.5;
}
.scroll-to-top {
    cursor: pointer;
}
@media (max-width: 767.98px) {
    .toast-brand-name {
        font-size: 1.1rem;
    }
    .sidebar .sidebar-heading,
    .sidebar .nav-item .nav-link > span {
        display: none;
    }
    .sidebar .nav-item .nav-link {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .sidebar .nav-item .nav-link .lucide {
        margin-right: 0;
    }
}

/* Titre de la page et menu du compte dans l'en-tête. */
.toast-recherche-bandeau { flex: 0 1 18rem; min-width: 0; margin-right: .75rem; }
.toast-recherche-formulaire { display: flex; gap: .35rem; margin: 0; }
.toast-recherche-formulaire > input { min-width: 0; }
.toast-recherche-formulaire > button { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; height: calc(1.5em + .5rem + 2px); }
.toast-recherche-formulaire > button > .lucide { width: 1rem; height: 1rem; }
#recherche-mobile-toggle[hidden] { display: none !important; }
@media (max-width: 991.98px) {
    .toast-page-topbar:has(.toast-recherche-bandeau) { flex-wrap: wrap; }
    .toast-recherche-bandeau { order: 3; flex: 1 0 100%; margin: .75rem 0 0; }
    .toast-recherche-bandeau.toast-recherche-repliee { display: none; }
    .toast-page-title { flex: 1 1 auto; white-space: nowrap; overflow-wrap: normal; }
}
.topbar.toast-page-topbar {
    height: auto;
    min-height: 4.375rem;
    padding-top: .75rem;
    padding-bottom: .75rem;
}
.topbar.toast-admin-topbar { background-color: #fff5df !important; border-bottom: 3px solid #d6a448; }
.toast-admin-profile-toggle,
.toast-admin-profile-toggle:hover,
.toast-admin-profile-toggle:focus { gap: .4rem; padding: .35rem .65rem; border: 1px solid #e6c77f; border-radius: 999px; background: #fffdf7; color: #765411 !important; font-weight: 800; }
.toast-admin-profile-toggle > .lucide { margin-right: 0 !important; color: inherit !important; }
.toast-admin-profile-toggle::after { margin-left: .35rem; }
.toast-profile-menu .toast-profile-admin-link { color: #765411; font-weight: 700; }
.toast-profile-menu .toast-profile-admin-link > .lucide { color: inherit; }
.toast-profile-menu .toast-profile-admin-link:hover,
.toast-profile-menu .toast-profile-admin-link:focus { background-color: #fff3cd; color: #62450d; }
.toast-page-title {
    display: flex;
    align-items: center;
    gap: .6rem;
    flex: 1;
    min-width: 0;
    margin: 0 1rem 0 0;
    font-size: 1.5rem;
    line-height: 1.25;
    overflow-wrap: anywhere;
}
.toast-page-title > .lucide { flex-shrink: 0; width: 1.65rem; height: 1.65rem; }
.toast-page-title > span { min-width: 0; }
.toast-page-topbar > .dropdown,
.toast-page-topbar > #sidebarToggleTop { flex-shrink: 0; }
.toast-profile-form { margin: 0; }
.toast-profile-toggle,
.toast-profile-toggle:hover,
.toast-profile-toggle:focus { text-decoration: none; }
.topbar .dropdown .toast-profile-menu {
    width: 13rem;
    min-width: 0;
    max-width: calc(100vw - 2rem);
}
.toast-profile-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: .65rem;
    padding: .5rem 1rem;
    cursor: pointer;
    white-space: normal;
}
.toast-profile-menu .dropdown-item:hover,
.toast-profile-menu .dropdown-item:focus,
.toast-profile-menu .dropdown-item:active { background-color: var(--toast-bleu-fond); color: var(--toast-texte); }
.toast-profile-menu .dropdown-item.text-danger,
.toast-profile-menu .dropdown-item.text-danger:hover,
.toast-profile-menu .dropdown-item.text-danger:focus,
.toast-profile-menu .dropdown-item.text-danger:active { color: var(--toast-danger-texte) !important; }
.toast-profile-menu .dropdown-item.text-danger:hover,
.toast-profile-menu .dropdown-item.text-danger:focus { background-color: var(--toast-danger-fond); }
.toast-profile-menu .dropdown-item > .lucide { flex-shrink: 0; }
.toast-profile-menu .dropdown-item > span { min-width: 0; }
@media (max-width: 575.98px) {
    .toast-page-title { font-size: 1.15rem; gap: .45rem; margin-right: .5rem; }
    .toast-page-title > .lucide { width: 1.3rem; height: 1.3rem; }
    .toast-profile-toggle { padding: .375rem .25rem; }
}

/* Page publique de connexion. */
.toast-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: radial-gradient(ellipse at top, #354563 0%, #202938 65%);
}
.toast-login-main {
    flex: 1;
    display: grid;
    place-items: center;
    padding: 3rem 1.25rem;
}
.toast-login-shell {
    width: 100%;
    max-width: 28rem;
}
.toast-login-brand {
    margin-bottom: 2rem;
    color: #dce4f0;
}
.toast-login-wordmark {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
    margin-bottom: .75rem;
}
.toast-login-wordmark .toast-brand-name {
    color: #fff;
    font-size: 2.9rem;
    line-height: 1.3;
}
.toast-login-brand p {
    font-family: 'Pacifico', cursive;
    font-size: 1.4rem;
    line-height: 1.45;
}
.toast-login-card {
    border: 0;
    border-radius: .85rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, .22);
    overflow: hidden;
}
.toast-login-card .card-body { padding: 2rem; }
.toast-login-label {
    color: #414b60;
    font-size: .875rem;
    font-weight: 700;
}
.toast-login-input .input-group-text {
    background-color: #f6f8fc;
    color: #7c89a2;
    border-color: #d8dfeb;
    border-radius: .4rem 0 0 .4rem;
}
.toast-login-input .form-control {
    height: 3.1rem;
    border-color: #d8dfeb;
    border-radius: 0 .4rem .4rem 0;
    font-size: .9rem;
}
.toast-login-input:focus-within .input-group-text {
    color: #4e73df;
    border-color: #bac8f3;
}
.toast-login-submit {
    padding: .8rem 1rem;
    border-radius: .4rem;
    font-weight: 700;
}
.toast-login-forgot:disabled { opacity: .65; }
.toast-login-page .sticky-footer {
    background-color: rgba(255, 255, 255, .05) !important;
    border-top: 1px solid rgba(255, 255, 255, .08);
    padding: 1.4rem 1rem;
    color: #c7d1e1;
}
.toast-login-page .copyright { line-height: 1.6; }
@media (max-width: 575.98px) {
    .toast-login-main { padding: 2rem 1rem; }
    .toast-login-card .card-body { padding: 1.5rem; }
    .toast-login-wordmark .toast-brand-name { font-size: 2.5rem; }
    .toast-login-brand p { font-size: 1.2rem; }
}
/* Consultation des journaux : détails lisibles dans les thèmes clair et sombre. */
.toast-journal-details { min-width: 8rem; max-width: 36rem; }
/*.toast-compte-preferences .card-header { padding: .55rem .85rem !important; }*/
.toast-compte-preferences > .card { flex: 1 0 auto; }
/*.toast-compte-preferences .card-header h2 { font-size: .85rem; }*/
.toast-compte-preferences .card-body { padding: .75rem .85rem; }
.toast-compte-preferences .small, .toast-compte-preferences .toast-case-libelle { font-size: .8rem; line-height: 1.4; }
.toast-compte-preferences p { margin-bottom: .6rem; }
.toast-compte-preferences .btn { padding: .25rem .65rem; font-size: .8rem; }
.toast-journaux-table { font-size: .78rem; line-height: 1.3; }
.toast-journaux-table th, .toast-journaux-table td { padding: .35rem .5rem; vertical-align: middle; }
.toast-journaux-table .badge { font-size: .68rem; padding: .2em .4em; }
.toast-demandes-indicateur { font-size: .95rem; }
.toast-demandes-indicateur .toast-demandes-compteur { min-width: 1.9rem; padding: .35em .65em; font-size: .9rem; }
.toast-parametres-header { background-color: var(--toast-fond-elevation); border-bottom-color: var(--toast-bordure); }
.toast-smtp-confidentialite { font-size: .9rem; line-height: 1.45; }
.toast-journaux-table .toast-journal-details { min-width: 4.5rem; }
.toast-journaux-table .toast-journal-details pre { font-size: .72rem; max-height: 18rem; }
.toast-journaux-filtres .card-body { padding: .65rem .8rem; }
.toast-filtres-bascule[aria-expanded="false"] .toast-filtres-masquer, .toast-filtres-bascule[aria-expanded="true"] .toast-filtres-afficher { display: none; }
.toast-filtres-bascule .lucide { width: 15px; height: 15px; }
#formFiltresJournaux { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: end; gap: .5rem .65rem; }
#formFiltresJournaux > .form-row { display: contents; }
#formFiltresJournaux .form-group { grid-column: span 2; flex: none; max-width: none; width: auto; min-width: 0; padding: 0; margin: 0; }
#formFiltresJournaux .toast-filtre-journal, #formFiltresJournaux .toast-filtre-evenement { grid-column: span 3; }
#formFiltresJournaux .toast-filtre-recherche { grid-column: span 4; }
#formFiltresJournaux .toast-filtre-pagination { grid-column: span 1; }

/* Liste des demandes : les contrôles DataTables restent lisibles et espacés,
   quelle que soit la structure générée par la version de DataTables chargée. */
.toast-tableau-administration .dt-container,
.toast-tableau-administration .dataTables_wrapper { padding: .75rem 1rem 1rem; }
.toast-sauvegarde-recapitulatif tbody tr { height: 2.5rem; }
.toast-sauvegarde-recapitulatif tfoot tr { height: 2.5rem; }
.toast-sauvegarde-recapitulatif tbody th,
.toast-sauvegarde-recapitulatif tbody td,
.toast-sauvegarde-recapitulatif tfoot th,
.toast-sauvegarde-recapitulatif tfoot td { vertical-align: middle; }
.toast-tableau-administration .dt-layout-row,
.toast-tableau-administration .dataTables_wrapper > .row { margin-right: 0; margin-left: 0; }
.toast-tableau-administration .dt-layout-row:last-child,
.toast-tableau-administration .dataTables_wrapper > .row:last-child,
.toast-tableau-administration .dt-paging,
.toast-tableau-administration .dataTables_paginate { border-top: 0 !important; }
.toast-tableau-administration .dt-paging,
.toast-tableau-administration .dataTables_paginate { display: flex; justify-content: flex-end; margin-top: .85rem; }
.toast-tableau-administration .pagination { gap: .3rem; margin: 0; }
.toast-tableau-administration .page-item { border-top: 0 !important; }
.toast-tableau-administration .page-item + .page-item { margin-left: 0; }
.toast-tableau-administration .pagination li + li { border-top: 0; }
.toast-tableau-administration #tableau-classes-admin th:not(:nth-child(2)),
.toast-tableau-administration #tableau-classes-admin td:not(:nth-child(2)) { width: 1%; white-space: nowrap; }
.toast-tableau-administration #tableau-classes-admin th:nth-child(2),
.toast-tableau-administration .toast-classes-colonne-matieres { width: auto; white-space: normal; overflow-wrap: anywhere; }
.toast-tableau-administration .toast-classes-colonne-matieres { font-size: .78rem; }
@media (max-width: 991.98px) {
    .toast-tableau-administration #tableau-classes-admin th:not(:nth-child(2)),
    .toast-tableau-administration #tableau-classes-admin td:not(:nth-child(2)) { width: auto; white-space: normal; }
}
@media (max-width: 767.98px) {
    .toast-tableau-administration #tableau-classes-admin th:nth-child(2),
    .toast-tableau-administration #tableau-classes-admin td:nth-child(2) { display: none; }
}
.toast-tableau-administration .page-link,
.toast-tableau-administration button.dt-paging-button { display: inline-flex; align-items: center; justify-content: center; min-width: 2.15rem; min-height: 2.15rem; margin: 0; padding: .375rem .55rem; border-radius: .3rem; line-height: 1; text-decoration: none; }
.toast-tableau-administration .page-link,
.toast-tableau-administration button.dt-paging-button { border: 1px solid var(--toast-bordure); background: var(--toast-fond-carte); color: var(--toast-texte); }
.toast-tableau-administration .page-item:not(.disabled) .page-link:hover,
.toast-tableau-administration .page-item:not(.disabled) .page-link:focus-visible,
.toast-tableau-administration button.dt-paging-button:hover:not(.disabled),
.toast-tableau-administration button.dt-paging-button:focus-visible { background: var(--toast-bleu-fond); color: var(--toast-bleu-action); border-color: var(--toast-bleu-action); }
.toast-tableau-administration .page-item.active .page-link,
.toast-tableau-administration button.dt-paging-button.current { background: var(--toast-bleu-action); color: var(--toast-bleu-bouton-texte); border-color: var(--toast-bleu-action); }
.toast-tableau-administration .page-item.disabled .page-link,
.toast-tableau-administration button.dt-paging-button.disabled { opacity: .5; cursor: not-allowed; }
.toast-tableau-administration .dt-layout-row:first-child,
.toast-tableau-administration .dataTables_wrapper > .row:first-child { margin-bottom: .85rem; }
.toast-filtres-demandes .form-control,
.toast-filtres-matieres-admin .form-control { flex: 0 1 auto; width: fit-content; max-width: 100%; }
#formFiltresJournaux label { margin-bottom: .15rem; font-size: .75rem; line-height: 1.2; }
#formFiltresJournaux .form-control { height: 1.9rem; padding: .2rem .4rem; font-size: .78rem; }
#formFiltresJournaux .toast-filtres-actions { grid-column: span 3; gap: .4rem; }
#formFiltresJournaux .btn { font-size: .78rem; padding: .25rem .5rem; }
#formFiltresJournaux .btn .lucide { width: 15px; height: 15px; }
@media (max-width: 1199.98px) {
    #formFiltresJournaux { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    #formFiltresJournaux .toast-filtre-journal, #formFiltresJournaux .toast-filtre-evenement, #formFiltresJournaux .toast-filtre-pagination, #formFiltresJournaux .toast-filtres-actions { grid-column: span 2; }
}
@media (max-width: 575.98px) {
    #formFiltresJournaux { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    #formFiltresJournaux .form-group { grid-column: span 1; }
    #formFiltresJournaux .toast-filtre-journal, #formFiltresJournaux .toast-filtre-recherche, #formFiltresJournaux .toast-filtres-actions { grid-column: span 2; }
}
.toast-journal-details summary { cursor: pointer; }
#tableau-taches tr[data-tache] { cursor: pointer; }
.toast-taches-blocs { --toast-tache-accent: var(--toast-selection-action); --toast-tache-fond-selection: var(--toast-selection-fond); --toast-tache-texte-selection: var(--toast-selection-texte); --toast-tache-bordure-selection: var(--toast-selection-bordure); }
.toast-rendus-prof [data-rendus-resultats] > form > .card-header,
.toast-archives > .card > .card-header,
.toast-matiere-formulaire > .card > .card-header,
.toast-formulaire-admin > .card > .card-header,
.toast-taches-blocs > section > .card > .card-header { background-color: var(--toast-selection-fond); border-bottom-color: var(--toast-selection-bordure); color: var(--toast-selection-texte); }
.toast-archives > .card > .card-header h2,
.toast-matiere-formulaire > .card > .card-header h2,
.toast-formulaire-admin > .card > .card-header h2,
.toast-taches-blocs > section > .card > .card-header h2 { color: inherit; }
.toast-formulaire-admin > .card > .card-header h2 { font-size: 1.05rem; font-weight: 800; line-height: 1.4; }
.toast-taches-blocs .btn-tache-supprimer { background-color: transparent; border-color: var(--toast-danger-action); color: var(--toast-danger-action); }
.toast-taches-blocs .btn-tache-supprimer:hover, .toast-taches-blocs .btn-tache-supprimer:focus { background-color: var(--toast-danger-action); border-color: var(--toast-danger-action); color: #fff; }
#filtres-taches .form-control-sm { font-size: .78rem; height: 1.85rem; padding: .2rem .4rem; }
#tableau-taches tr[aria-pressed="true"] > td { background: var(--toast-tache-fond-selection) !important; color: var(--toast-tache-texte-selection) !important; border-color: var(--toast-tache-bordure-selection); }
#tableau-taches tr[aria-pressed="true"] > td:first-child { box-shadow: inset 4px 0 var(--toast-tache-accent); padding-left: .65rem; }
#tableau-taches tr[aria-pressed="true"] .text-muted { color: var(--toast-tache-texte-selection) !important; opacity: .82; }
[data-theme="dark"] .toast-taches-blocs .btn-tache-supprimer { border-color: var(--toast-danger-action); color: var(--toast-danger-texte); }
[data-theme="dark"] .toast-taches-blocs .btn-tache-supprimer:hover, [data-theme="dark"] .toast-taches-blocs .btn-tache-supprimer:focus { background-color: var(--toast-danger-action); border-color: var(--toast-danger-action); color: #fff; }
.toast-taches-condensees { table-layout: fixed; font-size: .875rem; }
.toast-taches-condensees tbody tr[data-tache]:hover > td { background-color: var(--toast-selection-fond); }
.toast-taches-condensees th:last-child { width: 6rem; }
.toast-taches-condensees td { padding: .5rem .35rem; vertical-align: middle; overflow-wrap: anywhere; }
.toast-tache-titre { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
#tableau-taches tr[data-tache]:focus-visible { outline: 2px solid var(--toast-selection-action); outline-offset: -2px; }
input[type="date"].form-control::-webkit-calendar-picker-indicator { cursor: pointer; }
.toast-journal-details pre { color: inherit; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 26rem; overflow-y: auto; }
