* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0; background: var(--fond); color: var(--encre);
  font: 0.9375rem/1.55 var(--pile);
  -webkit-text-size-adjust: 100%;
}
a { color: var(--sur-douce); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lien-evitement:focus {
  position: fixed; top: .6rem; left: .6rem; z-index: 70;
  width: auto; height: auto; margin: 0; padding: .6rem .9rem;
  overflow: visible; clip-path: none;
  min-height: 44px; display: inline-flex; align-items: center;
  background: var(--surface); color: var(--encre); font-weight: 700;
  border: 1px solid var(--trait-fort); border-radius: var(--r-champ);
  box-shadow: var(--ombre-forte);
}
main { max-width: 1240px; margin: 0 auto; padding: 1.1rem 1rem 3rem; }
.topbar-recherche { display: none; }
.pied { display: contents; }
.pied-pile {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; gap: .5rem; width: min(92vw, 26rem); pointer-events: none;
}
.pied-pile > :is(.pile-messages, .bande-alerte) { position: static; width: auto; margin: 0; }
.topbar-notifications { display: none; }
.topbar-vous, .topbar-loupe { display: none; }
.bloc {
  background: var(--carte); border: 1px solid var(--trait); border-radius: var(--r-vignette);
  padding: 1.1rem; margin-bottom: 1.1rem; box-shadow: var(--ombre);
}
.bloc h2 {
  font-size: var(--t-5); margin: 0 0 .9rem; color: var(--encre-douce); font-weight: 700;
}
.bandeau {
  padding: .8rem 1rem; border-radius: var(--r-vignette); margin-bottom: 1.1rem;
  border: 1px solid var(--ambre); background: var(--ambre-fond); color: var(--encre);
  box-shadow: var(--ombre);
  display: flex; flex-direction: column; gap: .6rem; align-items: flex-start;
}
.bandeau p { margin: 0; text-wrap: pretty; }
.bandeau strong { color: var(--encre); }
.bande-alerte {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .8rem; padding: .7rem .8rem; box-sizing: border-box;
  border-radius: var(--r-tuile); background: var(--surface-3); color: var(--encre);
  box-shadow: var(--ombre-forte); pointer-events: auto;
}
.bande-pastille { flex: none; display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; }
.bande-pastille.ambre { background: var(--ambre-fond); color: var(--ambre); }
.bande-pastille.rouge { background: var(--rouge-fond); color: var(--rouge); }
.bande-texte { flex: 1 1 10rem; min-width: 0; margin: 0; display: grid; gap: .1rem; font-size: var(--t-3); text-wrap: pretty; }
.bande-texte strong { font-size: var(--t-4); font-weight: 700; }
.bande-texte span { color: var(--encre-2); }
.bande-alerte > .bouton { flex: none; }
body:has([data-mode-selection]) .bande-alerte { display: none; }
.cartes { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.paire {
  display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0;
  border-bottom: 1px solid var(--trait); font-size: var(--t-4);
}
.paire:last-of-type { border-bottom: none; }
.paire dt { color: var(--encre-douce); margin: 0; }
.paire dd { margin: 0; text-align: right; font-weight: 600; }
.resume-jour {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr));
}
.defilante { overflow-x: auto; border-radius: var(--r-champ); }
table { border-collapse: collapse; width: 100%; font-size: var(--t-4); }
th, td {
  padding: .6rem .6rem; text-align: left; border-bottom: 1px solid var(--trait);
  vertical-align: top;
}
thead th {
  position: sticky; top: 0; background: var(--carte-douce); color: var(--encre-douce);
  font-weight: 700; font-size: var(--t-1); text-transform: uppercase; letter-spacing: .08em;
  white-space: nowrap; border-bottom: 2px solid var(--trait-fort); z-index: 1;
}
tbody tr:hover { background: var(--carte-douce); }
td.nombre, th.nombre { text-align: right; font-variant-numeric: tabular-nums; }
.entete-tri {
  display: inline-flex; align-items: center; gap: .3rem;
  color: inherit; text-decoration: none;
}
.entete-tri:hover, .entete-tri:focus-visible { text-decoration: underline; }
.tri-chevron { font-size: .9em; color: var(--sur-douce); }
tr.semaine-courante { background: var(--accent-doux); }
tr.semaine-courante:hover { background: var(--accent-doux); }
tr.semaine-courante td:first-child { box-shadow: inset 3px 0 0 var(--accent); }
.calculee { font-variant-numeric: tabular-nums; color: var(--encre); }
.saisie {
  font-variant-numeric: tabular-nums; color: var(--sur-douce); font-weight: 700;
  text-decoration: underline dotted var(--accent); text-underline-offset: 3px;
}
.badge {
  display: inline-block; padding: .1rem .5rem; border-radius: var(--r-pastille);
  font-size: var(--t-1); font-weight: 700; letter-spacing: .01em; white-space: nowrap;
}
.badge.vert { background: var(--vert-fond); color: var(--vert); }
.badge.ambre { background: var(--ambre-fond); color: var(--ambre); }
.badge.rouge { background: var(--rouge-fond); color: var(--rouge); }
.badge.neutre { background: var(--accent-fond); color: var(--sur-douce); }
.badge.gris { background: var(--surface-3); color: var(--encre-2); }
.badge.accent { background: var(--accent); color: var(--sur-accent); }
.fraicheur { margin: .9rem 0 0; font-size: var(--t-1); color: var(--encre-tenue); }
.vide { color: var(--encre-douce); font-style: italic; margin: .2rem 0; }
.sans-valeur { color: var(--encre-3); }
.alertes { margin: 0; padding-left: 1.1rem; }
.alertes li { margin-bottom: .4rem; }
.ecran-jour { display: grid; gap: 1.7rem; align-items: start; }
.colonne-jour { display: flex; flex-direction: column; gap: 1.7rem; min-width: 0; }
.groupe-aujourdhui {
  display: flex; flex-direction: column; gap: 1.7rem; min-width: 0;
}
.section-jour { display: flex; flex-direction: column; gap: .9rem; min-width: 0; }
.titre-section-jour {
  margin: 0; min-height: var(--h-chrome); display: flex; align-items: center;
  font-size: var(--t-5); line-height: 1.15; font-weight: 700; letter-spacing: -.01em;
  color: var(--encre);
}
.lien-ancre {
  display: inline-flex; align-items: center; gap: .2rem;
  color: inherit; text-decoration: none;
}
.lien-ancre:hover { text-decoration: none; color: var(--sur-douce); }
.lien-ancre:hover .icone { transform: translateX(2px); }
.lien-ancre .icone { color: var(--encre-tenue); transition: transform var(--d-survol) var(--courbe); }
.lien-ancre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: var(--r-petit); }
[data-ancre] { scroll-margin-top: var(--haut-collant, 1rem); }
[data-ancre]:target {
  border-radius: var(--r-vignette);
  animation: signale-ancre .9s var(--courbe) 1;
}
@keyframes signale-ancre {
  from { box-shadow: 0 0 0 2px var(--accent); }
  to { box-shadow: 0 0 0 2px transparent; }
}
.enligne { display: flex; gap: .5rem; flex-wrap: wrap; align-items: flex-end; }
form.enligne + form.enligne { margin-top: .5rem; }
label.case-enligne { display: inline-flex; align-items: center; gap: .3rem;
  margin-bottom: 0; text-transform: none; }
label.case-enligne input { padding: 0; }
label { display: block; font-size: var(--t-2); color: var(--encre-douce); margin-bottom: .2rem;
  font-weight: 600; letter-spacing: .02em; }
input, select, textarea, button {
  font: inherit; padding: .5rem .6rem; border: 1px solid var(--trait-fort);
  border-radius: var(--r-petit); background: var(--carte); color: var(--encre);
}
input, select, textarea { border-color: var(--trait-champ); }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent); outline-offset: 1px;
}
button {
  cursor: pointer; background: var(--accent); color: var(--sur-accent); border-color: transparent;
  border-radius: var(--r-pastille); padding-inline: 1.1rem;
  font-weight: 700; transition: filter var(--d-survol) var(--courbe), transform var(--d-pression) var(--courbe);
}
button:hover:not(:disabled) { filter: brightness(1.08); }
button:active:not(:disabled) { transform: scale(.97); }
button.discret { background: var(--accent-fond); color: var(--sur-douce); border-color: transparent; }
a.bouton.secondaire, button.secondaire { background: var(--surface-3); color: var(--encre); border-color: transparent; }
button:disabled { opacity: .55; cursor: progress; }
.filtres { display: flex; gap: .6rem; flex-wrap: wrap; margin-bottom: .9rem; }
.choix-homonymie { display: flex; gap: .9rem; flex-wrap: wrap; margin-top: .5rem; }
.ligne-homonymie > td { border-top: none; padding-top: 0; }
.choix-homonymie-intitule {
  flex: 0 0 100%; margin: 0; font-size: var(--t-3); font-weight: 700; color: var(--encre-2);
}
.choix-homonymie label {
  display: inline-flex; align-items: center; gap: .4rem; margin: 0; min-height: var(--h-chrome);
  font-size: var(--t-3); font-weight: 600; color: var(--encre); cursor: pointer;
}
.choix-homonymie input { min-height: 0; width: 1.05rem; height: 1.05rem; padding: 0; }
details.aide { margin-top: .6rem; font-size: var(--t-3); color: var(--encre-douce); }
details.aide summary { cursor: pointer; color: var(--sur-douce); font-weight: 600; }
dialog.dialogue.feuille {
  width: 100%; max-width: none; height: auto; max-height: 85dvh; margin: auto 0 0;
  border: 0; border-radius: var(--r-carte) var(--r-carte) 0 0; box-shadow: var(--ombre-forte);
  overflow-y: auto;
  padding: 1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
}
body:has(dialog.feuille[open]) { overflow: hidden; }
.feuille-entete { display: flex; align-items: center; justify-content: space-between; margin-bottom: .7rem; }
.feuille-entete h2 { margin: 0; font-size: var(--t-5); }
.feuille-liens { display: flex; flex-direction: column; gap: .2rem; }
.feuille-liens a, .feuille-liens button {
  padding: .7rem .6rem; border-radius: var(--r-champ); color: var(--encre); text-decoration: none; font-weight: 700;
}
.feuille-liens button { background: transparent; border: 0; text-align: left; font: inherit; }
.feuille-liens button[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.feuille-liens button[aria-current="true"] { background: var(--accent-fond); color: var(--sur-douce); }
.feuille-liens .separateur-feuille { border-top: 1px solid var(--trait); margin-top: .4rem; padding-top: .4rem; }
.date-reprise { font-variant-numeric: tabular-nums; font-weight: 600; }
.feuille-liens a.actif { background: var(--accent-doux); color: var(--sur-douce); }
.selecteur-ouvrage-ou-cours {
  display: flex; align-items: center; gap: .6rem; width: 100%; min-height: var(--h-saisie);
  padding: .5rem .7rem; border-radius: var(--r-champ); background: var(--carte-douce);
  border: 1px solid var(--trait); text-align: left; color: var(--encre); margin: 0;
}
.selecteur-ouvrage-ou-cours .icone { color: var(--encre-tenue); flex: none; margin-left: auto; }
.detail-choix-retenu { flex: 1; min-width: 0; font-weight: 600; }
#filtre-ouvrage-ou-cours { width: 100%; margin-bottom: .7rem; }
.liste-ouvrages-et-cours { max-height: var(--h-feuille, 44dvh); overflow-y: auto; margin: 0; padding: 0; }
.groupe-ouvrages-et-cours { list-style: none; }
.groupe-ouvrages-et-cours + .groupe-ouvrages-et-cours { margin-top: .5rem; }
.groupe-liste {
  display: block; padding: .5rem .6rem .3rem;
  font-size: var(--t-1); font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--encre-3);
}
.liste-ouvrages-et-cours [role="option"] {
  display: flex; align-items: center; min-height: var(--h-saisie);
  padding: .4rem .6rem; border-radius: var(--r-champ);
  cursor: pointer; font-weight: 600;
}
.liste-ouvrages-et-cours [role="option"]:hover { background: var(--carte-douce); }
.liste-ouvrages-et-cours [role="option"].visee { background: var(--accent-fond-doux); }
.liste-ouvrages-et-cours [role="option"][aria-selected="true"] { color: var(--sur-douce); }
.feuille-raccourcis {
  margin: .5rem 0 0; padding-top: .5rem; border-top: 1px solid var(--trait);
  color: var(--encre-3); font-size: var(--t-2);
}
.barre-progres { display: block; margin-top: .4rem; height: 8px; border-radius: var(--r-pastille); background: var(--trait); }
.barre-progres-remplissage::-webkit-meter-optimum-value, .barre-progres-remplissage::-moz-meter-bar {
  border-radius: inherit; background: var(--teinte, var(--accent));
}
.bouton-lien {
  display: block; width: 100%; text-align: center; margin-top: .7rem; padding: .6rem;
  border-radius: var(--r-vignette); background: var(--accent); color: var(--sur-accent);
  font-weight: 700; text-decoration: none;
}
.bouton-lien.secondaire {
  background: var(--accent-fond); color: var(--sur-douce);
}
.liste-historique { list-style: none; margin: 0; padding: 0; }
.ligne-historique {
  display: flex; align-items: center; gap: .6rem; padding: .6rem .5rem .6rem .7rem;
  border-left: 3px solid var(--trait-fort); border-bottom: 1px solid var(--trait);
}
.ligne-historique:last-child { border-bottom: none; }
.ligne-historique.filet-vert { border-left-color: var(--vert); }
.ligne-historique.filet-ambre { border-left-color: var(--ambre); }
.ligne-historique.filet-rouge { border-left-color: var(--rouge); }
.ligne-historique .historique-detail { flex: 1; min-width: 0; }
.ligne-historique .historique-detail small { display: block; color: var(--encre-tenue); font-size: var(--t-2); }
.ligne-historique .horodatage {
  flex: none; width: 76px; text-align: right;
  color: var(--encre-3); font-variant-numeric: tabular-nums;
}
.barre-mobile { display: none; }
.piste { height: 6px; border-radius: var(--r-pastille); background: var(--surface-3); }
.remplissage::-webkit-meter-optimum-value, .remplissage::-moz-meter-bar { border-radius: inherit; background: var(--encre-3); }
.remplissage.suffisant::-webkit-meter-optimum-value, .remplissage.suffisant::-moz-meter-bar { background: var(--vert); }
.remplissage.insuffisant::-webkit-meter-optimum-value, .remplissage.insuffisant::-moz-meter-bar { background: var(--rouge); }
.vignettes-epreuves { display: grid; gap: .6rem; grid-template-columns: minmax(0, 1fr); }
.vignette-epreuve { padding: .7rem; border-radius: var(--r-vignette); background: var(--surface-3); }
a.vignette-epreuve { display: block; text-decoration: none; color: inherit; }
a.vignette-epreuve:hover { box-shadow: inset 0 0 0 1px var(--trait-fort); }
a.vignette-epreuve .entete-vignette { align-items: flex-start; }
.entete-vignette { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .4rem; }
.libelle-vignette { display: block; margin: 0; font-weight: 700; color: var(--encre); }
.chiffre-vignette { font-size: var(--t-6); font-weight: 700; font-variant-numeric: tabular-nums; margin: 0; color: var(--encre); line-height: 1.15; }
.detail-vignette { font-size: var(--t-2); color: var(--encre-2); margin: .2rem 0 0; }
.detail-vignette.alerte { color: var(--rouge); }
.carte-saisie-lecture {
  display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem;
  width: 100%; box-sizing: border-box; margin-top: .8rem;
  padding: .6rem .9rem; border-radius: var(--r-vignette);
  background: var(--surface-3); border: 1px solid var(--trait-fort);
}
.carte-saisie-lecture > .libelle-vignette { flex: none; margin: 0; }
.groupe-onglets-lecture { display: flex; gap: .2rem; padding: 2px; border-radius: var(--r-pastille); background: var(--surface); }
.groupe-onglets-lecture [role="tab"] {
  border: 0; border-radius: var(--r-pastille); padding: .3rem .7rem; font-size: var(--t-2);
  font-weight: 600; background: transparent; color: var(--encre-2); min-height: 0;
}
.groupe-onglets-lecture [role="tab"][aria-selected="true"] {
  background: var(--accent-fond); color: var(--sur-douce); font-weight: 700;
}
.panneau-saisie-lecture {
  display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .7rem;
  flex: 1 1 auto; min-width: 0; justify-content: flex-end; margin: 0;
}
.groupe-saisie-lecture {
  display: flex; align-items: center; gap: .3rem; flex: 1 1 17rem; min-width: 0;
  justify-content: flex-end; height: 44px; margin: 0;
}
.bouton-pas-page {
  width: 44px; height: 44px; min-height: 0; padding: 0; border-radius: var(--r-pastille);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-3); border: 1px solid transparent; color: var(--encre);
}
.groupe-saisie-lecture > button.discret {
  flex: none; height: 44px; min-height: 0; padding: 0 .5rem; font-size: var(--t-2);
  font-weight: 700; color: var(--encre-2);
}
.page-lecture-champ { display: flex; align-items: baseline; gap: .3rem; padding: 0 .2rem; min-width: 0; }
.page-lecture-affichage {
  background: none; border: 0; padding: 0 .2rem; min-height: 0; color: var(--encre);
  font-size: var(--t-6); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums;
  letter-spacing: -.01em; cursor: text;
}
.page-lecture-saisie {
  width: 4.2rem; height: 44px; min-height: 0; text-align: center; background: var(--surface);
  border: 1px solid var(--accent); border-radius: var(--r-champ); padding: .1rem .2rem;
  color: var(--encre); font-weight: 700; font-variant-numeric: tabular-nums;
}
.page-lecture-legende { font-size: var(--t-2); color: var(--encre-3); white-space: nowrap; }
.passe-due-libelle { font-size: var(--t-2); color: var(--encre-2); white-space: nowrap; }
.panneau-saisie-lecture > .bouton.secondaire {
  flex: 0 0 auto; min-width: 11rem; height: 44px; min-height: 0; justify-content: center; white-space: nowrap;
}
.paire-note { display: inline-flex; align-items: center; gap: .3rem; }
.paire-note input { width: 4.5rem; }
fieldset.large { border: 0; margin: 0; padding: 0; min-width: 0; }
.libelle-groupe { display: block; padding: 0; font-size: var(--t-3); font-weight: 600; color: var(--encre); margin-bottom: .3rem; }
.cases-mobilises {
  display: flex; flex-wrap: wrap; gap: .3rem; max-height: 11rem; overflow-y: auto;
  border: 1px solid var(--trait); border-radius: var(--r-vignette); padding: .4rem;
}
.case-mobilise {
  display: inline-flex; align-items: center; gap: .4rem; min-height: 44px;
  padding: 0 .5rem; border-radius: var(--r-pastille); cursor: pointer; font-size: var(--t-3);
}
.case-mobilise:hover { background: var(--surface-3); }
.pastilles-filtre { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: .9rem; }
.pastilles-filtre a {
  display: inline-flex; align-items: center;
  padding: .4rem .8rem; border-radius: var(--r-pastille); font-size: var(--t-3); font-weight: 700;
  background: var(--surface-3); color: var(--encre-2); text-decoration: none;
  transition: background var(--d-survol) var(--courbe), color var(--d-survol) var(--courbe);
}
.pastilles-filtre a:hover { background: var(--trait-fort); text-decoration: none; }
.pastilles-filtre a.actif { background: var(--accent); color: var(--accent-encre); }
.ligne-regularite {
  display: flex; align-items: center; gap: .9rem; padding: .9rem; border-radius: var(--r-vignette);
  background: var(--surface-3);
}
.ligne-regularite + .ligne-regularite { margin-top: .6rem; }
.anneau-regularite { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.anneau-regularite > * { grid-area: 1 / 1; }
.anneau-svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.anneau-piste, .anneau-valeur { fill: none; stroke-width: 7; }
.anneau-piste { stroke: var(--surface-3); }
.anneau-valeur { stroke: var(--accent); }
.anneau-centre {
  width: 38px; height: 38px; border-radius: 50%; background: var(--surface); display: grid; place-items: center;
  font-size: var(--t-2); font-weight: 700; color: var(--encre); font-variant-numeric: tabular-nums;
}
.detail-regularite { flex: 1; min-width: 0; }
.libelle-regularite { font-weight: 700; margin: 0; }
.meta-regularite { font-size: var(--t-3); color: var(--encre-2); margin: .2rem 0 0; text-wrap: pretty; }
.consecutifs-regularite { text-align: right; flex: none; }
.consecutifs-regularite .chiffre-consecutifs {
  display: block; font-weight: 700; font-size: var(--t-5); color: var(--encre); font-variant-numeric: tabular-nums;
}
.consecutifs-regularite span:last-child { font-size: var(--t-1); color: var(--encre-3); }
.actions-lot-collantes {
  position: sticky; bottom: 0; z-index: 6;
  margin-top: .6rem; padding: .6rem 0;
  background: var(--surface); border-top: 1px solid var(--trait);
}
.coque { display: contents; }
@media (min-width: 641px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .bouton-retour-aujourdhui { display: none; }
  .carte-consigner input[name="dureeMin"] { width: 6rem; }
  body { font: 0.9375rem/1.5 var(--pile); }
  .coque {
    display: grid;
    grid-template-rows: auto 1fr;
    grid-template-columns: var(--lat) minmax(0, 1fr);
    min-height: 100dvh;
    background: var(--fond);
    --pad-haut: 1.6rem;
    --pad-bas: 3rem;
    --gap-cartes: 1.1rem;
    --gap-entete: 1.4rem;
    --gap-groupes: 1.6rem;
    --titre-ecran: var(--t-7);
    --haut-collant: calc(var(--topbar) + 16px);
    --aligne: 1.7rem;
  }
  .barre-mobile { display: none !important; }
  .panneau-consigner .selecteur-ouvrage-ou-cours { min-height: var(--h-saisie); }
  dialog.dialogue.feuille-centree {
    margin: auto; width: min(92vw, 32rem); max-height: 80dvh;
    border-radius: var(--r-carte);
    padding-bottom: 1.1rem;
  }
  .suivi-mobile { display: none !important; }
  .topbar {
    grid-column: 2;
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: .7rem;
    height: var(--topbar); padding: .6rem calc(var(--aligne) + .5rem) 0 calc(var(--aligne) + 1.4rem);
    background: linear-gradient(var(--fond) 70%, transparent);
  }
  .topbar::before {
    content: ""; position: absolute; z-index: -1; inset: .6rem var(--aligne) 0;
    border-radius: var(--r-pastille); background: var(--surface-2);
  }
  .topbar-ecran { flex: 1 1 auto; min-width: 0; }
  .topbar-titre {
    margin: 0; font-size: var(--titre-ecran); letter-spacing: -.025em;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .topbar .lockup { display: none; }
  .topbar-recherche, .topbar-notifications {
    display: inline-flex; align-items: center; gap: .5rem; order: 1;
    height: min(2.75rem, calc(var(--topbar) - .6rem)); border: 0; border-radius: var(--r-pastille);
    background: var(--surface); color: var(--encre-2);
  }
  .topbar-recherche:hover:not(:disabled), .topbar-notifications:hover:not(:disabled) {
    filter: none; color: var(--encre); background: var(--surface-3);
  }
  .topbar-recherche .icone, .topbar-notifications .icone { width: 18px; height: 18px; flex: none; }
  .topbar-recherche {
    flex: 0 1 420px; min-width: 0; max-width: 420px; padding: 0 .6rem 0 1.1rem;
    font-size: var(--t-3); font-weight: 500; text-align: left;
  }
  .topbar-recherche-invite { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .topbar-recherche-raccourci {
    flex: none; padding: .1rem .4rem; border-radius: var(--r-petit);
    background: var(--surface); border: 1px solid var(--trait);
    font: inherit; font-size: var(--t-1); color: var(--encre-douce);
  }
  .topbar-notifications { justify-content: center; flex: none; min-width: 2.75rem; padding: 0 .5rem; }
  .topbar-notifications .compteur-nav { margin-left: 0; }
  .barre-laterale {
    grid-row: 1 / 3; grid-column: 1;
    position: sticky; top: 0; align-self: start;
    height: 100dvh; margin: 0;
    border-radius: 0 var(--r-carte) var(--r-carte) 0; background: var(--lateral); --surface: var(--lateral);
    display: flex; flex-direction: column; overflow: hidden;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .barre-laterale nav {
    flex: 1; min-height: 0; overflow-y: auto;
    padding: .4rem .8rem .8rem; display: flex; flex-direction: column; gap: .2rem;
    background:
      linear-gradient(var(--surface) 30%, transparent) top / 100% 1.5rem no-repeat local,
      linear-gradient(transparent, var(--surface) 70%) bottom / 100% 1.5rem no-repeat local,
      radial-gradient(farthest-side at 50% 0, var(--trait-fort), transparent) top / 100% .5rem no-repeat scroll,
      radial-gradient(farthest-side at 50% 100%, var(--trait-fort), transparent) bottom / 100% .5rem no-repeat scroll;
  }
  .tete-laterale {
    flex: none; display: flex; align-items: center; gap: .4rem;
    padding: 1.1rem 1rem .7rem 1.4rem;
  }
  .tete-laterale .lockup {
    display: flex; align-items: center; gap: .6rem; flex: 1; min-width: 0;
    color: inherit; text-decoration: none; border-radius: var(--r-champ);
  }
  .tete-laterale .lockup:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .tete-laterale .marque {
    width: var(--h-chrome); height: var(--h-chrome); border-radius: var(--r-champ); background: var(--accent);
    padding: 3.5px; flex: none;
  }
  .tete-laterale .lockup span {
    font-weight: 700; letter-spacing: -.01em; font-size: var(--t-3); color: var(--encre);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .bouton-nav {
    width: var(--h-chrome); height: var(--h-chrome); padding: 0; flex: none; border-radius: var(--r-tuile);
    display: grid; place-items: center;
    background: transparent; border-color: transparent; color: var(--encre-3);
  }
  .bouton-nav:hover:not(:disabled) { background: var(--surface-3); color: var(--encre); filter: none; }
  .bouton-nav:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
  .bouton-nav .glyphe-deplier { display: none; }
  .bouton-nav .glyphe-replier .icone { transform: rotate(180deg); }
  .bouton-nav-topbar { display: none; }
  .barre-laterale a {
    position: relative; display: flex; align-items: center; gap: .8rem;
    min-height: 3rem; padding: 0 1rem; border-radius: var(--r-pastille); font-size: var(--t-4);
    font-weight: 600; color: var(--encre-2); text-decoration: none;
  }
  .barre-laterale a:hover { background: var(--survol-lateral); text-decoration: none; }
  .barre-laterale .glyphe { flex: none; color: var(--encre-3); }
  .barre-laterale .lib { flex: 1; }
  .barre-laterale a.actif { font-weight: 700; color: var(--encre); background: var(--accent-fond); }
  .barre-laterale a.actif .glyphe { color: var(--sur-douce); }
  .nav-bas { margin-top: auto; padding-top: .6rem; display: flex; flex-direction: column; gap: .2rem; border-top: 1px solid var(--trait); }
  .titre-groupe {
    font-size: var(--t-2); text-transform: uppercase; letter-spacing: .08em; font-weight: 700;
    color: var(--encre-3); padding: 0 1rem .1rem; margin-top: .6rem;
  }
  .titre-groupe:first-child { margin-top: 0; }
  .dernier-calcul {
    flex: none; margin: 0 .8rem .4rem; border-radius: var(--r-tuile); background: var(--surface-2);
    padding: .6rem 1rem; color: var(--encre-3); font-size: var(--t-1); line-height: 1.4;
  }
  .dernier-calcul .valeur { display: block; color: var(--encre-2); font-variant-numeric: tabular-nums; }
  main {
    grid-row: 2; grid-column: 2; max-width: none; margin: 0;
    padding: var(--pad-haut) 1.7rem var(--pad-bas); min-width: 0;
  }
  .fraicheur { font-size: var(--t-2); }
  .entete-ecran:not(.entete-riche), .entete-ecran h1 { display: none; }
  .entete-ecran { margin-bottom: var(--gap-entete); }
  .bloc {
    background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-tuile);
    box-shadow: var(--ombre); padding: 1.1rem; margin-bottom: var(--gap-cartes);
  }
  .bloc h2 {
    font-size: var(--t-5); margin: 0 0 .9rem; color: var(--encre-3); font-weight: 700;
  }
  .cartes { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
  table { font-size: var(--t-4); }
  th, td { border-bottom: none; border-top: 1px solid var(--trait); padding: .5rem .8rem; }
  td > select, td select { padding: .3rem .5rem; }
  td button.icone-seul { padding: .2rem .4rem; }
  thead th {
    background: var(--surface); color: var(--encre-2); font-weight: 700; font-size: var(--t-2);
    letter-spacing: .08em; border-bottom: 2px solid var(--trait);
    position: sticky; top: var(--haut-collant);
  }
  .defilante { overflow-x: visible; }
  .defilante[data-large] { overflow-x: auto; }
  .defilante[data-large] thead th { position: static; top: auto; }
  tbody tr:hover { background: var(--surface-3); }
  .calculee { color: var(--encre); }
  .saisie { color: var(--sur-douce); text-decoration-color: var(--accent); }
  .vignettes-epreuves { gap: .8rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .vignette-epreuve { padding: .9rem; }
  .chiffre-vignette { font-size: var(--t-6); }
}
@media (min-width: 641px) and (max-width: 1040px) and (not ((pointer: coarse) and (max-height: 520px))) {
  main { padding: var(--pad-haut) 1.1rem var(--pad-bas); }
  .coque { --aligne: 1.1rem; }
}
@media (min-width: 901px) and (not ((pointer: coarse) and (max-height: 520px))) {
  :root[data-nav="repliee"] .coque { --lat: 96px; }
  :root[data-nav="repliee"] .barre-laterale a {
    flex-direction: column; justify-content: flex-start; gap: .3rem; width: 100%; min-height: 0; padding: .4rem 0 .5rem;
    background: none; font-size: var(--t-2); text-align: center;
  }
  :root[data-nav="repliee"] .barre-laterale .indic {
    display: grid; place-items: center; width: 3.5rem; height: 2rem; border-radius: var(--r-pastille);
  }
  :root[data-nav="repliee"] .barre-laterale a:hover .indic { background: var(--survol-lateral); }
  :root[data-nav="repliee"] .barre-laterale a.actif .indic { background: var(--accent-fond); }
  :root[data-nav="repliee"] .barre-laterale .lib { flex: none; line-height: 1rem; }
  :root[data-nav="repliee"] .barre-laterale a .compteur-nav {
    position: absolute; top: .2rem; left: calc(50% + .5rem); margin: 0;
    min-width: 1rem; padding: 0 .2rem; font-size: var(--t-1); line-height: 1.3; text-align: center;
    background: var(--accent); color: var(--sur-accent);
  }
  :root[data-nav="repliee"] .barre-laterale nav { padding: .4rem .4rem .8rem; }
  :root[data-nav="repliee"] .dernier-calcul,
  :root[data-nav="repliee"] .tete-laterale .lockup span { display: none; }
  :root[data-nav="repliee"] .tete-laterale { flex-direction: column; gap: .4rem; padding: 1rem 0 .4rem; }
  :root[data-nav="repliee"] .bouton-nav .glyphe-replier { display: none; }
  :root[data-nav="repliee"] .bouton-nav .glyphe-deplier { display: block; }
}
@media (min-width: 901px) and (max-width: 1040px) and (not ((pointer: coarse) and (max-height: 520px))) {
  :root:not([data-nav="depliee"]) .coque { --lat: 96px; }
  :root:not([data-nav="depliee"]) .barre-laterale a {
    flex-direction: column; justify-content: flex-start; gap: .3rem; width: 100%; min-height: 0; padding: .4rem 0 .5rem;
    background: none; font-size: var(--t-2); text-align: center;
  }
  :root:not([data-nav="depliee"]) .barre-laterale .indic {
    display: grid; place-items: center; width: 3.5rem; height: 2rem; border-radius: var(--r-pastille);
  }
  :root:not([data-nav="depliee"]) .barre-laterale a:hover .indic { background: var(--survol-lateral); }
  :root:not([data-nav="depliee"]) .barre-laterale a.actif .indic { background: var(--accent-fond); }
  :root:not([data-nav="depliee"]) .barre-laterale .lib { flex: none; line-height: 1rem; }
  :root:not([data-nav="depliee"]) .barre-laterale a .compteur-nav {
    position: absolute; top: .2rem; left: calc(50% + .5rem); margin: 0;
    min-width: 1rem; padding: 0 .2rem; font-size: var(--t-1); line-height: 1.3; text-align: center;
    background: var(--accent); color: var(--sur-accent);
  }
  :root:not([data-nav="depliee"]) .barre-laterale nav { padding: .4rem .4rem .8rem; }
  :root:not([data-nav="depliee"]) .dernier-calcul,
  :root:not([data-nav="depliee"]) .tete-laterale .lockup span { display: none; }
  :root:not([data-nav="depliee"]) .tete-laterale { flex-direction: column; gap: .4rem; padding: 1rem 0 .4rem; }
  :root:not([data-nav="depliee"]) .bouton-nav .glyphe-replier { display: none; }
  :root:not([data-nav="depliee"]) .bouton-nav .glyphe-deplier { display: block; }
}
  .barre-laterale a { min-height: 3rem; }
}
@media (min-width: 641px) and (max-width: 900px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .coque { grid-template-columns: 0 minmax(0, 1fr); }
  .barre-laterale {
    position: fixed; left: -260px; top: var(--topbar); bottom: 0; height: auto;
    width: 260px; z-index: 40; box-shadow: var(--ombre);
    visibility: hidden;
    padding-bottom: env(safe-area-inset-bottom);
  }
  :root[data-nav="ouverte"] .barre-laterale { left: 0; visibility: visible; }
  :root[data-nav="ouverte"] body::after { content: ""; position: fixed; inset: 0; z-index: 28; }
  :root:not([data-nav="ouverte"]) .bouton-nav .glyphe-replier { display: none; }
  :root:not([data-nav="ouverte"]) .bouton-nav .glyphe-deplier { display: block; }
  .barre-laterale .bouton-nav { display: none; }
  .bouton-nav-topbar { display: grid; }
  .topbar-recherche-raccourci { display: none; }
  .topbar-recherche { flex: 1 1 auto; }
}
@media (min-width: 641px) and (pointer: coarse) and (not ((pointer: coarse) and (max-height: 520px))) {
  .cible-tactile { min-height: var(--h-saisie); display: inline-flex; align-items: center; }
  .topbar-recherche { height: var(--h-saisie); }
  .bouton-nav { width: var(--h-saisie); height: var(--h-saisie); }
  .barre-laterale a { min-height: var(--h-saisie); }
  .feuille-liens a, .feuille-liens button { min-height: var(--h-saisie); display: flex; align-items: center; }
  a.bouton, button.bouton { min-height: var(--h-saisie); }
  button.icone-seul { min-width: var(--h-saisie); min-height: var(--h-saisie); }
  td select, td button { min-height: var(--h-saisie); }
}
@media (min-width: 1440px) {
  main > * { max-width: 1560px; margin-inline: auto; }
  .coque { --aligne: calc(2.6rem + max(0px, (100% - 5.2rem - 1560px) / 2)); }
  .etat-vide-corps, .aide, .sous-titre-ecran, .bloc > p, .alertes { max-width: 75ch; }
  main { padding-inline: 2.6rem; }
  .ecran-jour {
    grid-template-columns: minmax(0, 1fr) var(--colonne-laterale);
    column-gap: 2.2rem;
  }
  .ecran-jour > .resume-jour {
    grid-column: 2; grid-row: 1;
    grid-template-columns: 1fr;
    position: sticky; top: var(--haut-collant); align-self: start;
  }
  .ecran-jour > .colonne-jour { grid-column: 1; grid-row: 1; }
  #lot {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    column-gap: 1.7rem;
    align-items: start;
  }
  #lot > h2, #lot > .etapes-lot, #lot > .etat-vide, #lot > details { grid-column: 1 / -1; }
  #lot > #lot-saisie { grid-column: 1; }
  #lot > #lot-resultat, #lot > .actions-lot-collantes { grid-column: 2; }
  #lot > .actions-lot-collantes { margin-top: .6rem; }
  .cartes { grid-template-columns: repeat(auto-fill, minmax(290px, 440px)); justify-content: start; }
}
@media (min-width: 641px) and (max-height: 820px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .coque {
    --topbar: 54px; --pad-haut: 1.15rem; --pad-bas: 2rem; --gap-cartes: .9rem;
    --gap-entete: 1rem; --gap-groupes: 1.15rem; --titre-ecran: var(--t-6);
  }
}
@media (min-width: 641px) and (max-height: 660px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .coque {
    --topbar: 48px; --pad-haut: .8rem; --gap-cartes: .75rem; --gap-entete: .75rem;
    --gap-groupes: .9rem; --titre-ecran: var(--t-5);
  }
  .dernier-calcul { display: none; }
}
@media (min-width: 641px) and (max-height: 560px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .topbar { position: static; top: auto; }
  .topbar::before { display: none; }
  thead th { position: static; top: auto; }
  .coque { --pad-bas: 1.4rem; }
}
@media (min-width: 641px) and (min-height: 1000px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .coque { --pad-haut: 2.2rem; --gap-cartes: 1.35rem; --gap-entete: 1.8rem; --gap-groupes: 2rem; }
}
@media (min-width: 641px) and (min-height: 1300px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .coque { --pad-haut: 3rem; --gap-cartes: 1.6rem; }
}
@media (max-width: 640px), (pointer: coarse) and (max-height: 520px) {
  .badge { white-space: normal; overflow-wrap: anywhere; }
  .topbar {
    display: flex; align-items: center; gap: .4rem;
    margin: calc(.5rem + env(safe-area-inset-top)) calc(.6rem + env(safe-area-inset-right)) 0 calc(.6rem + env(safe-area-inset-left));
    padding: .3rem .3rem .3rem .4rem;
    background: var(--surface-2); border-radius: var(--r-pastille);
  }
  .bouton-nav-topbar { display: none; }
  .topbar .lockup {
    display: flex; flex: none;
    min-width: var(--h-saisie); min-height: var(--h-saisie);
    align-items: center; justify-content: center;
  }
  .topbar .lockup span { display: none; }
  .topbar .marque {
    display: block; width: 34px; height: 34px; padding: .3rem;
    border-radius: var(--r-champ); background: var(--marque);
  }
  .topbar-ecran { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .topbar-titre {
    margin: 0;
    font-size: var(--t-5); font-weight: 700; letter-spacing: -.01em; color: var(--encre);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  }
  .topbar-vous, .topbar-loupe {
    position: relative; display: grid; place-items: center; flex: none;
    width: var(--h-saisie); height: var(--h-saisie); padding: 0;
    border: 0; border-radius: 50%; background: transparent; color: var(--encre-2);
  }
  .entete-ecran { display: none; }
  .barre-laterale { display: none; }
  body {
    --pad-contenu: .7rem;
    --gap-cartes: .8rem;
    --gap-groupes: 1.6rem;
    --titre-section: 1.05rem;
    --h-onglets: 5.25rem;
    --h-feuille: 44dvh;
    --haut-collant: calc(.5rem + env(safe-area-inset-top));
  }
  main { flex: 1 0 auto; margin: 0; padding: var(--pad-contenu) calc(.6rem + env(safe-area-inset-right)) var(--pad-contenu) calc(.6rem + env(safe-area-inset-left)); }
  body:has(.pied) { display: flex; flex-direction: column; min-height: 100dvh; }
  .pied { display: block; margin-top: auto; position: sticky; bottom: 0; z-index: 25; }
  .pied-pile {
    position: absolute; left: 0; right: 0; bottom: 100%; width: auto;
    display: grid; gap: .5rem; padding: 0 .6rem .6rem; pointer-events: none;
  }
  .barre-mobile {
    display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .1rem;
    background: var(--surface-2); border-top: 1px solid var(--trait-fort); box-shadow: var(--ombre-forte);
    border-radius: var(--r-vignette) var(--r-vignette) 0 0;
    padding: .5rem calc(.4rem + env(safe-area-inset-right)) calc(.5rem + env(safe-area-inset-bottom)) calc(.4rem + env(safe-area-inset-left));
    min-height: calc(var(--h-onglets) + env(safe-area-inset-bottom));
  }
  .barre-mobile a {
    position: relative;
    display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: .5rem;
    background: none; border: none; color: var(--encre-douce); font-size: var(--t-1); font-weight: 700;
    padding: .6rem .1rem .3rem; border-radius: var(--r-champ); text-decoration: none;
  }
  .barre-mobile svg.icone { position: relative; width: 1.35rem; height: 1.35rem; }
  .barre-mobile a::before {
    content: ""; position: absolute; top: .225rem; left: 50%; width: 3.5rem; height: 2rem;
    transform: translateX(-50%); border-radius: var(--r-pastille);
  }
  .barre-mobile a.actif { color: var(--sur-douce); }
  .barre-mobile a.actif::before { background: var(--accent-fond); }
  .barre-mobile a .compteur-nav, .topbar-vous .compteur-nav {
    position: absolute; top: .1rem; left: calc(50% + .6rem); margin: 0;
    min-width: 1.1rem; padding: 0 .3rem; line-height: 1.5; text-align: center;
    background: var(--accent); color: var(--sur-accent);
  }
  .bloc { padding: .9rem; border-radius: var(--r-tuile); margin-bottom: var(--gap-cartes); }
  .cartes { grid-template-columns: 1fr; gap: var(--gap-cartes); }
  .paire { font-size: var(--t-4); }
  input:not([type="checkbox"]):not([type="radio"]), select, button { min-height: 44px; }
  .cible-tactile { min-height: 44px; display: inline-flex; align-items: center; }
  button.icone-seul { min-width: 44px; }
  .choix-homonymie { flex-direction: column; gap: .3rem; }
  .choix-homonymie label { min-height: 44px; width: 100%; }
  tbody tr:has(+ .ligne-homonymie) {
    margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  }
  tbody tr.ligne-homonymie {
    border-top: none; border-top-left-radius: 0; border-top-right-radius: 0;
    padding-top: 0;
  }
  .feuille-recherche, .feuille-notifications-entree { display: flex; align-items: center; gap: .6rem; background: var(--surface-3); }
  .barre-liste .case-tout-selectionner { min-height: 44px; padding: .5rem .5rem; margin: -.5rem -.5rem; }
  .barre-liste .case-tout-selectionner input, td.cellule-selection input.selection {
    width: 24px; height: 24px; min-height: 24px;
  }
  td.cellule-selection { width: 3rem; padding: .5rem .3rem; }
  form.enligne > div, .filtres > div { flex: 1 1 100%; }
  .filtres > div, form.enligne > div, .bloc > div { min-width: 0; }
  input, select, textarea { max-width: 100%; }
  input, select, textarea { font-size: 16px !important; }
  .defilante { overflow-x: visible; }
  .tout-afficher { display: none; }
  table, tbody { display: block; width: 100%; }
  thead { display: none; }
  tbody tr {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: .1rem .7rem; border: 1px solid var(--trait); border-radius: var(--r-tuile);
    padding: .6rem .7rem; margin-bottom: .6rem; background: var(--carte-douce);
  }
  tbody tr:hover { background: var(--carte-douce); }
  tbody td {
    display: flex; flex-direction: column; gap: .1rem; align-items: flex-start;
    padding: .3rem 0; border-bottom: none; text-align: left;
    overflow-wrap: anywhere;
  }
  tbody td::before {
    content: attr(data-intitule);
    color: var(--encre-tenue); font-size: var(--t-1); text-transform: uppercase;
    letter-spacing: .08em; font-weight: 700;
  }
  tbody td:has(> form.enligne) { grid-column: 1 / -1; }
  td > form.enligne { flex-wrap: wrap; }
  tbody td[data-role="titre"],
  tbody tr:not(:has([data-role="titre"])) td:first-child {
    grid-column: 1 / -1; border-bottom: 1px solid var(--trait);
    padding-bottom: .5rem; margin-bottom: .2rem; font-size: var(--t-5); font-weight: 700;
  }
  tbody td[data-role="titre"]::before,
  tbody tr:not(:has([data-role="titre"])) td:first-child::before { content: none; }
  tbody td[data-role="secondaire"] { display: none; }
  tbody td[data-role="action"] {
    grid-column: 1 / -1; flex-direction: row; align-items: center; gap: .6rem;
    border-top: 1px solid var(--trait); margin-top: .2rem; padding-top: .5rem;
  }
  tbody td[data-role="action"]::before { font-size: var(--t-1); }
  tbody td.cellule-selection { grid-column: 1 / -1; order: -1; padding: 0; }
  .actions-lot-collantes {
    position: sticky; bottom: calc(var(--h-onglets, 64px) + env(safe-area-inset-bottom));
    z-index: 6; margin: .6rem -.6rem 0; padding: .6rem;
    background: var(--surface); border-top: 1px solid var(--trait);
    box-shadow: var(--ombre-forte);
  }
  .actions-lot-collantes button { flex: 1 1 45%; justify-content: center; }
  .actions-lot-collantes .aide { flex: 1 1 100%; margin: 0; }
  .carte-consigner form.enligne > div:has(input[type="date"]),
  .carte-consigner form.enligne > div:has(input[name="dureeMin"]) { flex: 1 1 45%; }
  .carte-consigner form.enligne > button { flex: 1 1 100%; justify-content: center; }
  .cellule-editable {
    min-height: 44px; display: inline-flex; align-items: center;
    padding: .3rem .4rem;
    text-decoration: underline dotted var(--trait-fort); text-underline-offset: 3px;
  }
  .cellule-editable.edition { text-decoration: none; }
  .barre-outils-liste .pastilles-filtre[data-champ="periode"],
  .barre-outils-liste .pastilles-filtre[data-champ="objectif"] { display: none; }
  .bouton-retour-aujourdhui {
    position: fixed; right: .9rem;
    bottom: calc(var(--h-onglets, 64px) + .7rem + env(safe-area-inset-bottom));
    z-index: 24; border-radius: var(--r-pastille); padding: .7rem 1.1rem;
    box-shadow: var(--ombre-forte); min-height: 44px;
  }
  tbody td:empty { display: none; }
  tbody td:has(.choix-homonymie) { grid-column: 1 / -1; }
  tr.semaine-courante td:first-child { box-shadow: none; }
  tr.semaine-courante { outline: 2px solid var(--accent); }
  .suivi-desktop { display: none !important; }
  .glissable { position: relative; overflow: hidden; touch-action: pan-y; }
  .glissable::before {
    content: '✓'; position: absolute; inset: 0; z-index: 0; border-radius: inherit;
    display: flex; align-items: center; justify-content: flex-start;
    padding-left: 1.1rem; font-size: var(--t-6); font-weight: 700;
    background: var(--vert-fond); color: var(--vert); opacity: var(--gp, 0);
  }
  .glissable[data-sens="annuler"]::before { content: '↩'; background: var(--ambre-fond); color: var(--ambre); }
  .glissable > td, .glissable-contenu {
    position: relative; z-index: 1; background: inherit; transform: translateX(var(--dx, 0px));
  }
  .glissable:not(.glissement-en-cours) > td, .glissable:not(.glissement-en-cours) .glissable-contenu {
    transition: transform var(--d-survol) var(--courbe);
  }
}
.page-message { --pad-haut: 1.6rem; --pad-bas: 3rem; --aligne: 1.7rem; }
.page-message main { max-width: 1240px; margin: 0 auto; }
.page-message .topbar .lockup { display: flex; flex: none; align-items: center; gap: .5rem; text-decoration: none; }
.page-message .topbar .lockup span { color: var(--encre); font-weight: 700; }
.page-message .topbar .marque {
  display: block; width: 34px; height: 34px; padding: .3rem;
  border-radius: var(--r-champ); background: var(--marque);
}
.page-message main { padding-bottom: calc(3rem + env(safe-area-inset-bottom)); }
@media (max-width: 640px) and (max-height: 700px), (pointer: coarse) and (max-height: 520px) {
  body { --pad-contenu: .6rem; --gap-cartes: .6rem; --gap-groupes: 1.1rem; --titre-section: .95rem; }
}
@media (max-width: 640px) and (max-height: 520px), (pointer: coarse) and (max-height: 520px) {
  body {
    --pad-contenu: .45rem; --gap-cartes: .5rem; --gap-groupes: .85rem;
    --titre-section: .9rem; --h-onglets: 3.25rem; --h-feuille: 62dvh;
  }
  .barre-mobile a {
    flex-direction: row; justify-content: center; gap: .4rem; min-height: 44px; padding-top: .3rem;
  }
  .barre-mobile a::before { display: none; }
  .barre-mobile a.actif { background: var(--accent-fond); }
}
@media (max-width: 640px) and (min-height: 880px) {
  body { --pad-contenu: 1.05rem; --gap-cartes: 1rem; }
}
:root[data-bascule] *, :root[data-bascule] *::before, :root[data-bascule] *::after {
  transition: none !important;
}
.actions-ecran { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; margin-bottom: 1.1rem; }
.gestes-compte { display: flex; gap: .4rem; flex-wrap: wrap; }
.actions-ecran .espaceur { flex: 1; }
.actions-ecran a.bouton, .actions-ecran button, .barre-liste button, .dialogue-pied button,
button.icone-seul, .dialogue-entete button {
  display: inline-flex; align-items: center; gap: .4rem;
}
.actions-ecran a.bouton {
  padding: .5rem .8rem; border-radius: var(--r-champ); background: var(--accent); color: var(--sur-accent);
  font-weight: 700; text-decoration: none; border: 1px solid transparent;
}
.actions-ecran a.bouton:hover { filter: brightness(1.08); text-decoration: none; }
.actions-ecran :is(a.bouton, button), :is(.entete-section, .etat-vide-actions) :is(a.bouton, button.bouton) {
  white-space: normal; text-align: center; max-width: 100%;
}
.actions-ecran .icone, .barre-liste .icone, .dialogue-entete .icone, button.icone-seul .icone { width: 18px; height: 18px; }
.ancres { display: flex; gap: .4rem; flex-wrap: wrap; margin: -.3rem 0 1.1rem; }
.ancres a {
  padding: .3rem .7rem; border-radius: var(--r-pastille); border: 1px solid var(--trait-fort);
  color: var(--encre-2, var(--encre-douce)); font-size: var(--t-3); font-weight: 600; text-decoration: none;
  background: var(--surface, var(--carte));
}
.ancres a:hover { color: var(--sur-douce); border-color: var(--accent); text-decoration: none; }
.barre-liste { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin: .2rem 0 .8rem; }
.barre-liste .espaceur { flex: 1; }
button.icone-seul { padding: .3rem .5rem; }
button.dialogue-fermer, .feuille-entete button {
  flex: none; width: 3rem; height: 3rem; padding: 0; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--encre-2);
}
button.dialogue-fermer:hover:not(:disabled), .feuille-entete button:hover:not(:disabled) {
  background: var(--survol-lateral); filter: none;
}
td.cellule-actions, th.cellule-actions { white-space: nowrap; text-align: right; }
td > form.enligne { flex-wrap: nowrap; align-items: center; }
td.cellule-actions form.enligne { display: inline-flex; }
td.cellule-selection { width: 2.2rem; }
td.cellule-selection input { margin: 0; }
tbody tr:has(.selection:checked) { background: var(--accent-fond, var(--accent-doux)); }
.liens-objectif { display: inline-flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
dialog.dialogue {
  border: 1px solid var(--trait); border-radius: var(--r-carte);
  background: var(--surface, var(--carte)); color: var(--encre); padding: 0;
  width: min(92vw, 40rem); max-height: min(90dvh, 60rem); box-shadow: var(--ombre-forte);
  display: none; flex-direction: column; overflow: hidden;
  opacity: 0; transform: translateY(8px);
  transition: opacity var(--d-survol) var(--courbe-sortie), transform var(--d-survol) var(--courbe-sortie),
    display var(--d-survol) allow-discrete, overlay var(--d-survol) allow-discrete;
}
dialog.dialogue[open] { display: flex; opacity: 1; transform: none; transition-duration: var(--d-ecran); transition-timing-function: var(--courbe); }
@starting-style { dialog.dialogue[open] { opacity: 0; transform: translateY(8px); } }
dialog.dialogue.large { width: min(96vw, 66rem); }
dialog.dialogue::backdrop, :root[data-nav="ouverte"] body::after {
  background: rgba(11, 14, 19, .55); backdrop-filter: blur(2px);
}
dialog.dialogue::backdrop {
  opacity: 0;
  transition: opacity var(--d-survol) var(--courbe-sortie), display var(--d-survol) allow-discrete, overlay var(--d-survol) allow-discrete;
}
dialog.dialogue[open]::backdrop { opacity: 1; transition-timing-function: var(--courbe); }
@starting-style { dialog.dialogue[open]::backdrop { opacity: 0; } }
.dialogue-entete {
  display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem .4rem 1.4rem;
  border-bottom: 1px solid var(--trait); flex: none;
}
.dialogue-entete h2 {
  margin: 0; font-size: var(--t-5); font-weight: 700; letter-spacing: -.01em;
  text-transform: none; color: var(--encre);
}
.dialogue-entete .glyphe-retour { display: none; }
.dialogue-entete > :first-child { flex: 1; min-width: 0; }
.dialogue-corps { padding: 1rem 1.1rem 1.1rem; overflow: auto; min-height: 0; flex: 1 1 auto; }
.dialogue-corps h3 { font-size: var(--t-4); margin: 1.1rem 0 .5rem; }
.dialogue-corps h3:first-child { margin-top: 0; }
dialog.dialogue > form { display: flex; flex-direction: column; min-height: 0; flex: 1 1 auto; }
.dialogue-pied {
  flex: none; display: flex; justify-content: flex-end; gap: .5rem; flex-wrap: wrap;
  padding: .8rem 1.1rem; border-top: 1px solid var(--trait); background: var(--surface, var(--carte));
}
.dialogue-pied .espaceur { flex: 1; }
.dialogue-pied .pied-destructif { margin-right: auto; }
.champs { display: grid; gap: .7rem .8rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.champs > .large { grid-column: 1 / -1; }
.champs input, .champs select, .champs textarea { width: 100%; box-sizing: border-box; }
.champs textarea { font-family: ui-monospace, monospace; font-size: var(--t-3); }
.champs .valeur-fixe { padding: .5rem 0; color: var(--encre-2, var(--encre-douce)); }
.dialogue .aide { margin-top: 1rem; }
.revele {
  margin-top: 1rem; padding: .9rem 1rem; border-radius: var(--r-champ);
  background: var(--accent-fond); border: 1px solid var(--accent);
}
.revele > p { margin: .4rem 0; font-size: var(--t-3); }
.revele-titre { font-weight: 600; color: var(--sur-douce); }
.revele-valeur {
  margin: .4rem 0 .8rem; padding: .6rem .7rem; border-radius: var(--r-petit);
  background: var(--surface-3); border: 1px solid var(--trait); overflow-x: auto;
}
.revele-valeur code {
  font-family: ui-monospace, monospace; font-size: var(--t-3);
  white-space: pre-wrap; overflow-wrap: anywhere; user-select: all;
}
.abonnements-agenda { margin-top: 1.1rem; }
.abonnements-agenda h3 { margin: 0 0 .5rem; font-size: var(--t-4); }
.confirmation-liste { margin: 0 0 .6rem; padding-left: 1.1rem; max-height: 12rem; overflow: auto; font-size: var(--t-4); font-weight: 600; }
dialog.dialogue#palette-recherche { width: min(94vw, 34rem); }
#palette-recherche .dialogue-corps { display: flex; flex-direction: column; gap: .7rem; }
#palette-recherche input[type="search"] { width: 100%; }
.palette-resultats {
  max-height: min(48dvh, 26rem); overflow-y: auto; margin: 0 -.4rem; padding: 0 .4rem;
}
.palette-resultats:empty { display: none; }
.palette-famille {
  margin: .6rem 0 .2rem; padding: 0 .6rem;
  font-size: var(--t-1); font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--encre-douce);
}
.palette-famille:first-child { margin-top: 0; }
.feuille-liens a.palette-resultat { display: block; padding: .5rem .6rem; line-height: 1.35; }
.palette-resultat-libelle { display: block; font-weight: 700; color: inherit; }
.palette-resultat-detail { display: block; font-size: var(--t-2); color: var(--encre-douce); }
.feuille-liens a.palette-resultat:hover { background: var(--accent-doux); color: var(--sur-douce); }
.feuille-liens a.palette-resultat:hover .palette-resultat-detail,
.feuille-liens a.palette-resultat.actif .palette-resultat-detail { color: inherit; }
.onglets { display: flex; gap: .2rem; flex-wrap: wrap; border-bottom: 1px solid var(--trait); margin-bottom: 1rem; }
.onglets [role="tab"] {
  background: transparent; color: var(--encre-2, var(--encre-douce)); border: 0; border-bottom: 2px solid transparent;
  border-radius: 0; padding: .5rem .7rem; font-weight: 600; margin-bottom: -1px;
}
.onglets [role="tab"]:hover:not(:disabled) { filter: none; color: var(--encre); background: var(--surface-3, var(--carte-douce)); }
.onglets [role="tab"][aria-selected="true"] { color: var(--sur-douce); border-bottom-color: var(--accent); }
.onglets [role="tab"]:active { transform: none; }
[role="tabpanel"][hidden] { display: none; }
.sous-bloc { border: 1px solid var(--trait); border-radius: var(--r-vignette); padding: .8rem; margin-bottom: .8rem; }
.sous-bloc-entete { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-bottom: .5rem; }
.sous-bloc-entete strong { font-size: var(--t-4); }
.sous-bloc-entete .espaceur { flex: 1; }
.sous-bloc .meta { font-size: var(--t-3); color: var(--encre-2, var(--encre-douce)); margin: .2rem 0 .5rem; }
details.repli > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: .4rem;
  color: var(--sur-douce); font-weight: 600; font-size: var(--t-4); padding: .2rem 0;
}
details.repli > summary::-webkit-details-marker { display: none; }
details.repli > summary::before { content: "▸"; font-size: var(--t-2); transition: transform var(--d-survol) var(--courbe); }
details.repli[open] > summary::before { transform: rotate(90deg); }
details.repli > summary .resume { font-weight: 400; color: var(--encre-2, var(--encre-douce)); }
details.repli[open] > summary { margin-bottom: .8rem; }
@media (max-width: 640px), (pointer: coarse) and (max-height: 520px) {
  dialog.dialogue, dialog.dialogue.large {
    width: 100vw; height: 100dvh; max-height: none; max-width: none; margin: 0; inset: 0;
    border-radius: 0; border: 0; box-shadow: none;
  }
  dialog.dialogue:not(.feuille):not([open]) { transform: translateX(6%); }
  @starting-style { dialog.dialogue:not(.feuille)[open] { opacity: 0; transform: translateX(6%); } }
  .dialogue-entete { order: 0; }
  .compte-panneau .dialogue-fermer { order: -1; }
  .compte-panneau .glyphe-fermer { display: none; }
  .compte-panneau .glyphe-retour { display: inline-flex; }
  .dialogue-pied { padding-bottom: calc(.8rem + env(safe-area-inset-bottom)); }
  .dialogue-pied > button[type="submit"] { flex: 1; }
  .actions-ecran a.bouton, .actions-ecran button { flex: 1; justify-content: center; }
  dialog.dialogue.dialogue-feuille {
    width: 100vw; height: auto; max-height: 90dvh; margin: auto 0 0; inset: auto 0 0 0;
    border-radius: var(--r-carte) var(--r-carte) 0 0; box-shadow: var(--ombre-forte); overscroll-behavior: contain;
  }
  dialog.dialogue.dialogue-feuille::before {
    content: ""; flex: none; align-self: center; width: 3.2rem; height: .4rem; margin-top: .7rem;
    border-radius: var(--r-pastille); background: var(--trait-fort);
  }
  dialog.dialogue.dialogue-feuille:not([open]) { transform: translateY(2rem); }
  @starting-style { dialog.dialogue.dialogue-feuille:not(.feuille)[open] { opacity: 0; transform: translateY(2rem); } }
}
.masque-visuellement {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
:root[data-clavier="apple"] .raccourci-autre,
:root:not([data-clavier="apple"]) .raccourci-apple { display: none; }
meter, progress { -webkit-appearance: none; appearance: none; display: block; border: 0; }
meter::-webkit-meter-bar, progress::-webkit-progress-bar { background: none; border-radius: inherit; }
.teinte-vert, .teinte-ambre, .teinte-rouge, .teinte-accent, .teinte-accent-fond, .teinte-trait-fort, .teinte-defaut { color: var(--teinte); fill: var(--teinte); }
.teinte-vert { --teinte: var(--vert); } .teinte-ambre { --teinte: var(--ambre); } .teinte-rouge { --teinte: var(--rouge); }
.teinte-accent { --teinte: var(--accent); } .teinte-accent-fond { --teinte: var(--accent-fond); }
.teinte-trait-fort { --teinte: var(--trait-fort); } .teinte-defaut { --teinte: var(--encre-3); }
.chevron-plan-mobile { flex: none; color: var(--encre-4); display: inline-flex; }
.largeur-4 { width: 4rem; }
.largeur-5 { width: 5rem; }
.largeur-pleine { width: 100%; }
.texte-douce { color: var(--encre-douce); }
.espace-6 { margin-top: .6rem; }
.espace-10 { margin-top: 1rem; }
.marge-fine { margin: .2rem 0; }
.separateur-7 { border-top: 1px solid var(--trait); margin-top: .7rem; padding-top: .7rem; }
.separateur-9 { border-top: 1px solid var(--trait); margin-top: .9rem; padding-top: .9rem; }
.pied-apercu-import { font-size: var(--t-3); color: var(--encre-2); }
a.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  padding: .4rem 1rem; min-height: var(--h-chrome); border-radius: var(--r-pastille); border: 1px solid transparent;
  background: var(--surface-3); color: var(--encre); font-size: var(--t-3); font-weight: 700;
  text-decoration: none; white-space: nowrap;
}
a.bouton:hover { filter: brightness(1.08); text-decoration: none; }
button.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
  min-height: var(--h-chrome); white-space: nowrap;
}
a.bouton.primaire, button.primaire {
  background: var(--accent); color: var(--sur-accent); border-color: transparent;
}
a.bouton.discret { background: var(--accent-fond); color: var(--sur-douce); }
a.bouton.danger, button.bouton.danger, button.discret.danger {
  background: var(--rouge-fond); color: var(--rouge); border-color: transparent;
}
.barre-outils-liste {
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
  min-height: var(--h-saisie); padding: .6rem 1.1rem; border-bottom: 1px solid var(--trait);
}
.barre-outils-liste .espaceur { flex: 1; }
.barre-outils-liste .pastilles-filtre { margin-bottom: 0; }
.barre-outils-reste { display: contents; }
.recherche-liste { display: flex; align-items: center; flex: 1 1 240px; max-width: 360px; min-width: 0; }
.recherche-liste-boite {
  display: flex; align-items: center; gap: .5rem; flex: 1; min-width: 0;
  padding: 0 .8rem; border-radius: var(--r-champ); background: var(--surface-3); color: var(--encre-2);
}
.recherche-liste-boite .icone { width: 17px; height: 17px; flex: none; }
.recherche-liste-boite input {
  flex: 1; min-width: 0; border: 0; background: transparent; color: var(--encre);
  padding: .5rem 0; font-size: var(--t-4);
}
.recherche-liste-boite input::placeholder { color: var(--encre-2); }
.recherche-liste-boite:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.recherche-liste-boite input:focus-visible { outline: none; }
.compteur-liste {
  margin: 0; font-size: var(--t-3); font-weight: 600; color: var(--encre-3);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.interrupteur-filtre {
  display: inline-flex; align-items: center; gap: .6rem; min-height: var(--h-chrome);
  font-size: var(--t-3); font-weight: 600; color: var(--encre-2);
  text-decoration: none; white-space: nowrap; border-radius: var(--r-champ);
}
.interrupteur-filtre:hover { color: var(--encre); text-decoration: none; }
.interrupteur-piste {
  position: relative; flex: none; width: 36px; height: 20px;
  border-radius: var(--r-pastille); background: var(--surface-3);
  transition: background-color var(--d-survol) var(--courbe);
}
.interrupteur-pastille {
  position: absolute; top: 2px; left: 2px; width: 16px; height: 16px;
  border-radius: 50%; background: var(--surface);
  transition: transform var(--d-survol) var(--courbe);
}
.interrupteur-filtre[data-etat="actif"] .interrupteur-piste { background: var(--accent); }
.interrupteur-filtre[data-etat="actif"] .interrupteur-pastille { transform: translateX(16px); }
.compteur-nav {
  margin-left: auto; font-size: var(--t-2); font-weight: 600; color: var(--encre-3);
  font-variant-numeric: tabular-nums; padding: 0 .4rem; border-radius: var(--r-pastille);
  background: var(--surface-2);
}
.liste-notifications {
  list-style: none; margin: 0 0 .8rem; padding: 0; display: flex; flex-direction: column; gap: .6rem;
}
.notification { border-radius: var(--r-tuile); }
.notification.non-lue { background: var(--surface-3); }
.notification-ligne { display: block; width: 100%; padding: .6rem .7rem; border: 0; background: none; font: inherit; color: inherit; text-align: left; text-decoration: none; cursor: pointer; }
.notification-ligne > * { display: block; }
.notification-titre { font-weight: 700; }
.notification-corps { margin-top: .2rem; color: var(--encre-2); }
.notification .fraicheur { margin-top: .3rem; }
.notification-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .5rem; }
.notification-actions form { margin: 0; }
.tri-liste { display: flex; align-items: center; }
.tri-liste-boite {
  display: inline-flex; align-items: center; gap: .3rem; margin: 0;
  padding: .3rem .5rem .3rem .8rem; border: 1px solid var(--trait-fort); border-radius: var(--r-champ);
  background: var(--surface); color: var(--encre-2); font-size: var(--t-3); font-weight: 600;
  letter-spacing: normal; text-transform: none;
}
.tri-liste-boite:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.tri-liste-choix {
  border: 0; background: transparent; color: var(--encre); padding: .2rem .2rem;
  font-size: var(--t-3); font-weight: 600;
}
.tri-liste-choix:focus-visible { outline: none; }
.pied-liste {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding: .7rem 1.1rem; border-top: 1px solid var(--trait);
}
.pied-liste .espaceur { flex: 1; }
.pied-liste-decompte {
  margin: 0; font-size: var(--t-3); color: var(--encre-3); font-variant-numeric: tabular-nums;
}
.etat-vide {
  display: flex; flex-direction: column; align-items: flex-start; gap: .6rem;
  padding: 1.7rem 1.4rem;
}
.etat-vide-pictogramme {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: var(--r-tuile); background: var(--accent-fond); color: var(--sur-douce);
}
.etat-vide-titre {
  margin: 0; font-size: var(--t-5); font-weight: 700; letter-spacing: -.015em;
  text-transform: none; color: var(--encre);
}
.etat-vide-corps { margin: 0; max-width: 46ch; font-size: var(--t-4); color: var(--encre-2); }
.etat-vide-actions { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }
.aide:not(details) {
  margin: .3rem 0 0; font-size: var(--t-3); color: var(--encre-2); font-style: normal;
  max-width: 60ch;
}
.cellule-editable { position: relative; cursor: text; border-radius: var(--r-petit); }
.cellule-editable:hover { box-shadow: inset 0 0 0 1px var(--trait-fort); }
.cellule-editable:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cellule-editable input {
  width: 100%; min-width: 0; padding: .2rem .3rem; font: inherit;
  border: 1px solid var(--accent); border-radius: var(--r-petit); background: var(--surface);
}
.cellule-editable .rang-chapitre-ou-seance { display: inline-block; min-width: 1.3rem; }
.cellule-editable .rang-chapitre-ou-seance + input { width: calc(100% - 1.8rem); }
.cellule-editable.nombre input { text-align: right; font-variant-numeric: tabular-nums; }
.cellule-editable.edition, .cellule-editable.edition:hover { box-shadow: none; }
.cellule-editable input:focus-visible { outline: none; }
.cellule-editable.echec { box-shadow: inset 0 0 0 2px var(--rouge); }
.cellule-editable.echec input { border-color: var(--rouge); }
tr[aria-busy="true"] { opacity: .72; }
th.cellule-selection { width: 34px; }
td.cellule-selection, th.cellule-selection { padding-left: 1.1rem; padding-right: .5rem; }
.case-selection {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  margin: -14px; padding: .9rem; cursor: pointer;
}
.case-selection input { width: 16px; height: 16px; min-height: 0; margin: 0; }
.barre-selection {
  display: flex; align-items: center; gap: .7rem; flex-wrap: wrap;
  padding: .6rem 1.1rem; background: var(--accent-fond); color: var(--sur-douce);
  border-bottom: 1px solid var(--trait);
}
.barre-selection .espaceur { flex: 1; }
.barre-selection-decompte {
  margin: 0; font-size: var(--t-4); font-weight: 700; color: var(--sur-douce);
  font-variant-numeric: tabular-nums;
}
.barre-selection-elargir { margin: 0; font-size: var(--t-3); color: var(--sur-douce); }
.barre-selection-elargir a { color: var(--sur-douce); font-weight: 700; }
.barre-selection-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.pile-messages {
  position: fixed; right: 1rem; z-index: 60;
  bottom: calc(var(--h-onglets, 0px) + 1rem + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: stretch; gap: .5rem;
  width: min(92vw, 26rem); pointer-events: none;
}
.message {
  display: flex; align-items: flex-start; gap: .6rem; pointer-events: auto;
  padding: .6rem .7rem .6rem .9rem; border-radius: var(--r-tuile); box-shadow: var(--ombre-forte);
  background: var(--encre); color: var(--fond); font-size: var(--t-3); font-weight: 600;
  animation: arrivee var(--d-toast) var(--courbe);
}
.message-texte { margin: 0; flex: 1; min-width: 0; }
.message-succes { background: var(--vert-fond); color: var(--vert); }
.message-echec { background: var(--rouge-fond); color: var(--rouge); }
.message-mise-a-jour { background: var(--ambre-fond); color: var(--ambre); }
.bandeau-mise-a-jour { background: var(--ambre-fond); color: var(--ambre); }
.bandeau-mise-a-jour {
  flex: 0 1 auto; min-width: 0; margin: 0; padding: .3rem .7rem; border-radius: var(--r-pastille);
  font-size: var(--t-3); font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.message-reessayer, .message-fermer {
  flex: none; background: transparent; color: inherit; border: 1px solid currentColor;
  border-radius: var(--r-petit); padding: .2rem .5rem; font-size: var(--t-2); font-weight: 700;
}
.message-fermer { border-color: transparent; padding: .2rem .4rem; opacity: .75; }
.message-fermer:hover:not(:disabled) { opacity: 1; filter: none; }
.message-reessayer:hover:not(:disabled) { filter: none; opacity: .8; }
[aria-invalid="true"] { border-color: var(--rouge); border-width: 2px; }
.erreur-champ { margin: .3rem 0 0; color: var(--rouge); font-size: var(--t-2); font-weight: 600; }
.alerte-fenetre { margin: 0 1rem .5rem; padding: .5rem .7rem; border-radius: var(--r-petit);
  background: var(--rouge-fond); color: var(--rouge); font-size: var(--t-3); font-weight: 600; }
.attente-fenetre { background: var(--ambre-fond); color: var(--ambre); font-weight: 400; }
.attente-fenetre strong { display: block; }
.passe {
  display: inline-block; width: 22px; height: 6px; border-radius: var(--r-pastille);
  margin-right: 3px; background: var(--trait);
}
.rang-chapitre-ou-seance { color: var(--encre-3); font-variant-numeric: tabular-nums; }
.sous-titre-ecran { margin: 0; font-size: var(--t-3); color: var(--encre-2); }
#recherche-reglages { max-width: 280px; }
.fil-ariane {
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
  margin: -.2rem 0 .9rem; font-size: var(--t-3); color: var(--encre-2);
}
.fil-ariane a { color: var(--encre-2); text-decoration: none; }
.fil-ariane a:hover { color: var(--sur-douce); text-decoration: underline; }
.fil-ariane-sep { color: var(--encre-3); }
.fil-ariane [aria-current="page"] { font-weight: 700; color: var(--encre); }
.sous-texte { color: var(--encre-2); }
.intertitre-bloc {
  font-size: var(--t-2); text-transform: uppercase; letter-spacing: .08em;
  color: var(--encre-2); margin: 1.1rem 0 .5rem;
}
.zone-collee { width: 100%; font-family: ui-monospace, monospace; }
.actions-bloc { margin-top: .6rem; display: flex; gap: .5rem; flex-wrap: wrap; }
.etapes-lot { display: flex; gap: .5rem; margin-bottom: .9rem; }
.etape-lot {
  flex: 1; text-align: center; border-radius: var(--r-champ); padding: .4rem .5rem;
  font-size: var(--t-2); font-weight: 700; background: var(--surface-3); color: var(--encre-2);
}
.etape-lot.courante { background: var(--accent-fond); color: var(--sur-douce); }
.etape-lot.faite { background: var(--vert-fond); color: var(--vert); }
@media (max-width: 640px), (pointer: coarse) and (max-height: 520px) {
  .barre-outils-liste, .pied-liste, .barre-selection { padding-left: .7rem; padding-right: .7rem; }
  .recherche-liste { flex: 1 1 100%; max-width: none; }
  .tri-liste, .tri-liste-boite, .tri-liste-choix { flex: 1; }
  a.bouton { min-height: 44px; }
}
@view-transition { navigation: auto; }
main { view-transition-name: contenu; }
.barre-laterale a.actif, .barre-mobile a.actif { view-transition-name: repere; }
::view-transition-group(repere) { animation-duration: var(--d-ecran); animation-timing-function: var(--courbe); }
::view-transition-new(contenu) { animation: arrivee var(--d-ecran) var(--courbe) both; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  @view-transition { navigation: none; }
}
:root[data-mouvement="aucun"] *, :root[data-mouvement="aucun"] *::before, :root[data-mouvement="aucun"] *::after,
:root[data-mouvement="aucun"]::view-transition-group(*), :root[data-mouvement="aucun"]::view-transition-old(*),
:root[data-mouvement="aucun"]::view-transition-new(*) { transition: none !important; animation: none !important; }
@media (forced-colors: active) {
  .barre-laterale a.actif,
  .feuille-liens a.actif,
  .barre-mobile a.actif,
  .pastilles-filtre a.actif { outline: 2px solid; outline-offset: -2px; }
  .bouton-nav, .topbar-recherche { border: 1px solid; }
}
.tuile[data-detail] { cursor: pointer; }
.tuile-situation > form.enligne { margin: 0; }
.tuile-situation > form.enligne > button { width: 100%; min-height: var(--h-saisie); }
.carte-consigner {
  display: flex; flex-direction: column; gap: .7rem;
  padding: 1.1rem; min-width: 0;
  border: 1px solid var(--trait); border-radius: var(--r-vignette);
  background: var(--surface);
}
.onglets-consigner { display: flex; flex-wrap: wrap; gap: .5rem; }
.onglets-consigner [role="tab"] {
  min-height: var(--h-saisie); padding: 0 .9rem; border-radius: var(--r-champ);
  border: 1px solid var(--trait); background: transparent; color: var(--encre-2);
  font-size: var(--t-4); font-weight: 600;
}
.onglets-consigner [role="tab"][aria-selected="true"] {
  background: var(--accent-fond); color: var(--sur-douce); border-color: transparent;
}
.panneau-consigner {
  display: flex; flex-direction: column; gap: .7rem; min-width: 0;
}
.panneau-consigner .chrono { display: flex; flex-direction: column; gap: .7rem; }
.dialogue-surtitre {
  margin: 0 0 .1rem; font-size: var(--t-2); color: var(--encre-2);
}
.bloc-nu { margin-bottom: 1.1rem; }
.titre-liste {
  font-size: var(--t-2); margin: 0 0 .9rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--encre-3); font-weight: 700;
}
.grille-tuiles {
  display: grid; gap: .9rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.groupe-suivi { min-width: 0; }
.groupe-suivi + .groupe-suivi { margin-top: 1.7rem; }
.groupe-suivi-titre {
  font-size: var(--t-1); margin: 0 0 .8rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--encre-3); font-weight: 700;
}
.tuile {
  position: relative;
  display: grid; grid-template-rows: 1fr auto; gap: .7rem;
  align-items: stretch; align-content: normal;
  background: var(--carte-douce); border: 1px solid var(--trait);
  border-top: 3px solid var(--ton-tuile);
  border-radius: var(--r-tuile);
  box-shadow: none;
  padding: .9rem .9rem; margin-bottom: 0;
}
.tuile.ton-vert { --ton-tuile: var(--vert); }
.tuile.ton-ambre { --ton-tuile: var(--ambre); }
.tuile.ton-rouge { --ton-tuile: var(--rouge); }
.tuile.ton-accent { --ton-tuile: var(--accent); }
.tuile.ton-neutre { --ton-tuile: var(--trait-fort); }
.tuile[data-href] { cursor: pointer; }
.tuile:hover { border-color: var(--trait-fort); border-top-color: var(--ton-tuile); }
.tuile:focus-within { outline: 2px solid var(--accent); outline-offset: 2px; }
.tuile:has(.selection:checked) { background: var(--accent-fond-doux); }
.tuile-tete { display: flex; flex-wrap: wrap; align-items: flex-start; align-self: start; gap: .3rem .6rem; min-width: 0; }
.tuile-identite { flex: 1 1 10rem; min-width: 0; display: flex; flex-direction: column; gap: .1rem; }
.tuile-titre {
  margin: 0; font-size: var(--t-4); font-weight: 700; line-height: 1.35;
  color: var(--encre); overflow-wrap: anywhere; text-wrap: pretty;
}
.tuile-titre a { color: var(--encre); text-decoration: none; }
.tuile-titre a:hover { text-decoration: underline; }
.tuile-ouvrir { appearance: none; background: none; border: 0; padding: 0; margin: 0; font: inherit; color: inherit; text-align: inherit; cursor: pointer; }
.tuile-titre a::after { content: ''; position: absolute; inset: 0; }
.tuile .case-selection { display: none; }
[data-mode-selection] .tuile .case-selection { display: inline-grid; position: relative; z-index: 1; }
.tuile-tete > .case-selection { flex: none; margin: 0; }
[data-mode-selection] .tuile-titre a::after { content: none; }
.tuile-volume { margin: 0; font-size: var(--t-3); color: var(--encre-2); font-variant-numeric: tabular-nums; }
.tuile-pastilles { flex: none; display: flex; align-items: center; gap: .3rem; }
.tuile-situation { display: flex; flex-direction: column; gap: .4rem; }
.tuile-chiffre {
  margin: 0; font-size: var(--t-6); font-weight: 700; line-height: 1.15;
  font-variant-numeric: tabular-nums; color: var(--encre);
}
.tuile-indetermine { margin: 0; font-size: var(--t-3); color: var(--encre-2); }
.tuile-reste { margin: 0; font-size: var(--t-3); font-weight: 700; color: var(--encre); font-variant-numeric: tabular-nums; }
.tuile-rythme { font-weight: 400; color: var(--encre-2); }
.tuile-reste > .tuile-rythme:not(:first-child)::before { content: " · "; }
.tuile-prochaine { margin: 0; font-size: var(--t-3); color: var(--encre-2); }
.tuile-bas { display: flex; align-items: center; gap: .6rem; }
.tuile-serie { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: .5rem; }
.tuile-serie-graphique { height: 26px; flex: 1; min-width: 0; }
.tuile-serie-trait { stroke: var(--ton-tuile); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.tuile-serie-legende { flex: none; font-size: var(--t-1); color: var(--encre-2); }
.tuile-bas > .tuile-saisir:only-child { margin-left: auto; }
.tuile-saisir {
  position: relative; z-index: 1;
  flex: none; display: inline-flex; align-items: center; width: auto; margin-top: 0;
  height: var(--h-chrome); box-sizing: border-box; padding: 0 .9rem;
  border-radius: var(--r-champ); font-size: var(--t-3);
}
.tuile-ecart { font-size: var(--t-3); font-weight: 700; }
.tuile-ecart.ecart-vert { color: var(--vert); }
.tuile-ecart.ecart-ambre { color: var(--ambre); }
.tuile-ecart.ecart-rouge { color: var(--rouge); }
.tuile-ecart.ecart-neutre { color: var(--encre-2); }
.synthese-suivi {
  border-radius: var(--r-carte);
  padding: 1.4rem 1.4rem;
  margin-bottom: 1.7rem;
  container-type: inline-size;
  container-name: synthese-suivi;
}
.synthese-suivi-grille {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 1.7rem;
}
@container synthese-suivi (max-width: 900px) {
  .synthese-suivi-grille { grid-template-columns: minmax(0, 1fr); }
}
.synthese-suivi-portee { margin: 0 0 1.1rem; }
.synthese-suivi-portee .pastilles-filtre { margin-bottom: 0; }
.synthese-trajectoire, .synthese-rythme { min-width: 0; }
.synthese-trajectoire { margin: 0; }
.synthese-suivi.ton-vert { --ton-synthese: var(--vert); --ton-synthese-fond: var(--vert-fond); }
.synthese-suivi.ton-ambre { --ton-synthese: var(--ambre); --ton-synthese-fond: var(--ambre-fond); }
.synthese-suivi.ton-rouge { --ton-synthese: var(--rouge); --ton-synthese-fond: var(--rouge-fond); }
.synthese-suivi.ton-neutre { --ton-synthese: var(--sur-douce); --ton-synthese-fond: var(--accent-fond); }
.synthese-suivi-surtitre {
  font-size: var(--t-2); margin: 0 0 .3rem; text-transform: uppercase;
  letter-spacing: .08em; font-weight: 700; color: var(--encre-2);
}
.synthese-suivi-chiffre-ligne { display: flex; align-items: baseline; flex-wrap: wrap; gap: .6rem; margin: 0; }
.synthese-suivi-chiffre {
  font-size: 2.6rem; font-weight: 700; letter-spacing: -.04em; line-height: 1;
  font-variant-numeric: tabular-nums; color: var(--encre);
}
.synthese-suivi-mention { font-size: var(--t-4); font-weight: 600; color: var(--ton-synthese); }
.synthese-rythme { display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.synthese-suivi-reste-valeur {
  margin: 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -.035em;
  font-variant-numeric: tabular-nums; color: var(--encre);
}
.synthese-suivi-reste-detail { margin: .2rem 0 0; font-size: var(--t-3); color: var(--encre-2); }
.synthese-suivi-indetermine {
  display: flex; flex-direction: column; align-items: flex-start; gap: .4rem;
  margin-top: .6rem; padding: .6rem .7rem; border-radius: var(--r-vignette);
  border: 1px solid var(--ambre); background: var(--ambre-fond);
}
.synthese-suivi-indetermine p { margin: 0; font-size: var(--t-3); color: var(--encre-2); }
.synthese-suivi-rythmes { display: flex; flex-direction: column; gap: .5rem; }
.synthese-suivi-rythme-ligne { display: flex; align-items: center; gap: .6rem; }
.synthese-suivi-rythme-libelle { flex: none; width: 5.5rem; font-size: var(--t-2); color: var(--encre-2); }
.synthese-suivi-rythme-valeur {
  flex: none; font-size: var(--t-3); font-weight: 700; font-variant-numeric: tabular-nums; color: var(--encre);
}
.synthese-suivi-rythme-observe .synthese-suivi-rythme-valeur { color: var(--ton-synthese); }
.synthese-suivi-verdict {
  margin: 0; padding: .7rem .9rem; border-radius: var(--r-tuile);
  background: var(--ton-synthese-fond); color: var(--ton-synthese);
  font-size: var(--t-3); font-weight: 600;
  transition: background-color var(--d-survol) var(--courbe);
}
.case-tout-selectionner {
  display: inline-flex; align-items: center; gap: .5rem; min-height: var(--h-chrome);
  padding: 0 .2rem; font-size: var(--t-3); font-weight: 600; color: var(--encre-2); cursor: pointer;
}
.case-tout-selectionner input { width: 16px; height: 16px; min-height: 0; margin: 0; }
[data-liste-selection]:not([data-mode-selection]) .case-tout-selectionner { display: none; }
.carte-frise { padding: 1.1rem 1.4rem 1.4rem; }
.frise {
  position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
  gap: 3px; height: 38px; margin: .9rem 0 .7rem;
}
.case-frise { border-radius: var(--r-petit); }
.case-frise.case-vert { background: var(--vert); }
.case-frise.case-ambre { background: var(--ambre); }
.case-frise.case-accent { background: var(--accent); }
.case-frise.case-rouge { background: var(--rouge); }
.case-frise.case-neutre { background: var(--surface-3); border: 1px solid var(--trait); }
.repere-frise, .remplissage-frise { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.repere-frise { top: -5px; height: calc(100% + 10px); }
.repere-frise line { stroke: var(--encre); stroke-width: 2; vector-effect: non-scaling-stroke; }
.remplissage-frise rect { fill: var(--accent); }
.legende-frise { display: flex; gap: 1.1rem; flex-wrap: wrap; align-items: center; }
.legende-frise .espaceur { flex: 1; }
.entree-legende {
  display: inline-flex; align-items: center; gap: .4rem;
  font-size: var(--t-2); color: var(--encre-2);
}
.pastille-legende { width: 10px; height: 10px; border-radius: 3px; flex: none; }
.barre-legende { width: 2px; height: 12px; background: var(--encre); flex: none; }
.liste-fluide { display: flex; flex-direction: column; }
.ligne-fluide {
  display: flex; align-items: center; gap: .5rem 1rem; flex-wrap: wrap;
  padding: .7rem 1.4rem; border-bottom: 1px solid var(--trait);
}
.ligne-fluide:last-child { border-bottom: none; }
.ligne-fluide:hover { background: var(--carte-douce); }
.ligne-fluide .badge { flex: none; }
 * Une rubrique par ligne : l'intitule au-dessus, la valeur en dessous, et
 * l'origine d'une valeur deduite en troisieme ligne. Deux colonnes des qu'il y
 * a la place — huit rubriques empilees, c'est une fenetre qui defile.
 */
.dialogue-corps .rubrique-detail + .rubrique-detail { border-top: 1px solid var(--trait); }
.rubrique-detail {
  display: flex; flex-direction: column; gap: .2rem; padding: .6rem 0;
}
.rubrique-detail-intitule {
  font-size: var(--t-1); font-weight: 700; text-transform: uppercase;
  letter-spacing: .08em; color: var(--encre-3);
}
.rubrique-detail-valeur {
  font-size: var(--t-4); font-weight: 600; color: var(--encre);
  display: flex; align-items: center; gap: .4rem; flex-wrap: wrap;
}
.rubrique-detail-valeur .cellule-editable { padding: .1rem .3rem; margin-left: -.3rem; }
.rubrique-detail-aide { font-size: var(--t-2); color: var(--encre-2); }
@media (max-width: 640px), (pointer: coarse) and (max-height: 520px) {
  .onglets {
    flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch; scrollbar-width: none;
    margin-inline: -1.1rem; padding-inline: 1.1rem;
  }
  .onglets::-webkit-scrollbar { display: none; }
  .onglets [role="tab"] {
    flex: none; scroll-snap-align: start; min-height: 44px;
    border-radius: var(--r-champ) var(--r-champ) 0 0;
  }
  .onglets [role="tab"][aria-selected="true"] { background: var(--accent-fond); }
  .dialogue-corps { scroll-padding-bottom: 8rem; }
  .frise { height: 26px; }
  .carte-frise { padding: 1rem; }
  .ligne-fluide { padding: .7rem 1rem; }
  .synthese-suivi { padding: .9rem; border-radius: var(--r-tuile); margin-bottom: var(--gap-cartes); }
}
@media (min-width: 641px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .barre-selection {
    position: fixed; left: calc(var(--lat) + 2rem); right: 2rem; bottom: 1rem; z-index: 24;
    background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--r-vignette); box-shadow: var(--ombre-forte);
  }
  [data-liste-selection][data-mode-selection] { padding-bottom: 5rem; }
  .defilante:not([data-large]) > table { display: block; width: 100%; }
  .defilante:not([data-large]) > table > thead { display: block; }
  .defilante:not([data-large]) > table > thead > tr {
    display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .4rem; margin-bottom: .7rem;
  }
  .defilante:not([data-large]) > table > thead > tr:not(:has(> th[aria-sort], > th.cellule-selection)) { display: none; }
  .defilante:not([data-large]) > table > thead th {
    position: static; top: auto; width: auto; padding: 0; border: none; background: none;
    text-transform: none; letter-spacing: normal;
  }
  .defilante:not([data-large]) > table > thead th:not([aria-sort]):not(.cellule-selection) { display: none; }
  .defilante:not([data-large]) > table > thead th.cellule-selection { margin-right: .4rem; }
  .defilante:not([data-large]) > table > thead th[aria-sort] > a {
    display: inline-flex; align-items: center; gap: .3rem; padding: .3rem .7rem;
    border: 1px solid var(--trait); border-radius: var(--r-pastille); background: var(--surface);
    color: var(--encre-2); font-size: var(--t-2); font-weight: 600; text-decoration: none;
  }
  .defilante:not([data-large]) > table > thead th[aria-sort="ascending"] > a,
  .defilante:not([data-large]) > table > thead th[aria-sort="descending"] > a {
    background: var(--accent-fond); border-color: var(--accent); color: var(--sur-douce);
  }
  .defilante:not([data-large]) > table > tbody {
    display: grid; gap: var(--gap-cartes, .9rem); width: 100%;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  }
  .defilante:not([data-large]) > table > tbody:has(> .ligne-homonymie) { grid-template-columns: minmax(0, 1fr); }
  .defilante:not([data-large]) > table > tbody > tr {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(7.5rem, 1fr));
    gap: .1rem .7rem; align-content: start;
    border: 1px solid var(--trait); border-radius: var(--r-tuile);
    padding: .6rem .7rem; margin: 0; background: var(--carte-douce);
  }
  .defilante:not([data-large]) > table > tbody > tr:hover { background: var(--surface-3); }
  .defilante:not([data-large]) > table > tbody > tr > td {
    display: flex; flex-direction: column; gap: .1rem; align-items: flex-start;
    width: auto; padding: .3rem 0; border: none; text-align: left; white-space: normal;
    overflow-wrap: anywhere;
  }
  .defilante:not([data-large]) > table > tbody > tr > td::before {
    content: attr(data-intitule);
    color: var(--encre-tenue); font-size: var(--t-1); text-transform: uppercase;
    letter-spacing: .08em; font-weight: 700;
  }
  .defilante:not([data-large]) > table > tbody > tr > td[data-role="titre"],
  .defilante:not([data-large]) > table > tbody > tr:not(:has([data-role="titre"])) > td:first-child {
    grid-column: 1 / -1; border-bottom: 1px solid var(--trait);
    padding-bottom: .5rem; margin-bottom: .2rem; font-size: var(--t-5); font-weight: 700;
  }
  .defilante:not([data-large]) > table > tbody > tr > td[data-role="titre"]::before,
  .defilante:not([data-large]) > table > tbody > tr:not(:has([data-role="titre"])) > td:first-child::before { content: none; }
  .defilante:not([data-large]) > table > tbody > tr > td[data-role="secondaire"] { display: none; }
  .defilante:not([data-large]) > table > tbody > tr > td[data-role="action"] {
    grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem;
    border-top: 1px solid var(--trait); margin-top: .2rem; padding-top: .5rem;
  }
  .defilante:not([data-large]) > table > tbody > tr > td.cellule-selection { grid-column: 1 / -1; order: -1; padding: 0; }
  .defilante:not([data-large]) > table > tbody > tr > td:empty { display: none; }
  .defilante:not([data-large]) > table > tbody > tr > td:has(.choix-homonymie) { grid-column: 1 / -1; }
  .defilante:not([data-large]) > table > tbody > tr:has(+ .ligne-homonymie) {
    border-bottom-left-radius: 0; border-bottom-right-radius: 0;
  }
  .defilante:not([data-large]) > table > tbody > tr.ligne-homonymie {
    margin-top: calc(-1 * var(--gap-cartes, .9rem)); border-top: none;
    border-top-left-radius: 0; border-top-right-radius: 0; padding-top: 0;
  }
  .defilante:not([data-large]) > table > tbody > tr.semaine-courante { outline: 2px solid var(--accent); }
  .defilante:not([data-large]) > table > tbody > tr.semaine-courante > td:first-child { box-shadow: none; }
  .defilante:not([data-large]) > table > tbody > tr:has(.selection:checked) { background: var(--accent-fond, var(--accent-doux)); }
}
:root[data-peau="sombre"] select option { background: var(--surface); color: var(--encre); }
@media (prefers-color-scheme: dark) {
  :root:not([data-peau]) select option { background: var(--surface); color: var(--encre); }
}
.entete-riche > h1 { grid-column: 1; grid-row: 1; margin: 0; min-width: 0; }
.auteur-fiche { margin: .2rem 0 0; font-size: var(--t-3); color: var(--encre-2); }
.entete-riche > .auteur-fiche { grid-column: 1; grid-row: 1; margin: 0; }
.pastilles-fiche { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; justify-content: flex-end; }
.entete-riche > .pastilles-fiche { grid-column: 2; grid-row: 1; }
.entete-fiche-pouce { display: none; }
.fiche > .barre-liste .bouton,
.fiche [data-basculer-selection],
.fiche .page-lecture-affichage { min-height: 44px; }
.fiche .section-fiche { margin-bottom: 1.7rem; }
.fiche > .barre-liste { margin-bottom: 1.1rem; }
.vignette-epreuve.mise-en-avant { background: var(--accent-fond-doux); border: 1px solid var(--trait-fort); }
.trajectoire-manuel {
  margin-top: .8rem; padding: .9rem .9rem; border-radius: var(--r-vignette);
  background: var(--surface-3); border: 1px solid var(--trait-fort);
}
.trajectoire-entete { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem .6rem; margin-bottom: .7rem; }
.trajectoire-entete .libelle-vignette { margin: 0; }
.trajectoire-entete .espaceur { flex: 1; }
.trajectoire-echeance { margin: 0; font-size: var(--t-3); color: var(--encre-2); font-variant-numeric: tabular-nums; }
.trajectoire-piste { flex: 1; height: 14px; border-radius: var(--r-pastille); border: 1px solid var(--trait); background: var(--surface); }
.fiche .groupe-onglets-lecture [role="tab"],
.tiroir .groupe-onglets-lecture [role="tab"] { min-height: 44px; padding: 0 .9rem; }
.bouton-pas-page.pas-large { width: auto; min-width: 44px; padding: 0 .7rem; font-size: var(--t-3); font-weight: 700; white-space: nowrap; }
.fiche .panneau-saisie-lecture > .bouton-consigner {
  flex: 0 0 13rem; width: 13rem; min-width: 13rem; height: 44px; min-height: 0;
  justify-content: center; white-space: nowrap;
}
.fiche .carte-frise.frise-fiche {
  background: var(--surface-3); border: 1px solid var(--trait-fort); border-radius: var(--r-vignette);
  box-shadow: none; padding: .9rem .9rem; margin-bottom: 1.7rem;
}
.frise-fiche .frise { margin-top: 0; }
.frise.frise-ponderee { display: flex; }
.poids-frise-1 { flex: 1 1 0; } .poids-frise-2 { flex: 2 1 0; } .poids-frise-3 { flex: 3 1 0; }
.poids-frise-4 { flex: 4 1 0; } .poids-frise-5 { flex: 5 1 0; } .poids-frise-6 { flex: 6 1 0; }
.poids-frise-7 { flex: 7 1 0; } .poids-frise-8 { flex: 8 1 0; } .poids-frise-9 { flex: 9 1 0; }
.poids-frise-10 { flex: 10 1 0; }
.case-frise.case-entamee {
  position: relative; overflow: hidden; background: var(--surface-3); border: 1px solid var(--trait);
}
.frise-fiche .pastille-legende.case-vert { background: var(--vert); }
.frise-fiche .pastille-legende.case-ambre { background: var(--ambre); }
.frise-fiche .pastille-legende.case-accent { background: var(--accent); }
.frise-fiche .pastille-legende.case-rouge { background: var(--rouge); }
.frise-fiche .pastille-legende.case-neutre { background: var(--surface-3); border: 1px solid var(--trait-fort); box-sizing: border-box; }
.entete-fiche-liste { display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-bottom: .9rem; }
.entete-fiche-liste h2 {
  margin: 0; display: inline-flex; align-items: center; height: var(--h-chrome);
  font-size: var(--t-5); font-weight: 700; letter-spacing: .04em; text-transform: none; color: var(--encre-douce);
}
.outils-fiche-liste { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: .6rem; }
.outils-fiche-liste > .zone-selection { flex: 1 1 auto; min-width: 0; }
.fiche .liste-fluide.grille-fiche {
  display: grid; gap: .9rem; padding-top: 0;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}
.fiche .ligne-fluide.tuile-fiche {
  display: grid; grid-template-rows: 1fr auto; gap: .7rem; align-items: stretch; align-content: normal;
  min-height: 44px; padding: .9rem .9rem; cursor: pointer;
  border: 1px solid var(--trait); border-top: 3px solid var(--trait-fort); border-radius: var(--r-tuile);
  background: var(--carte-douce);
}
.fiche .ligne-fluide.tuile-fiche:hover { background: var(--carte-douce); border-color: var(--trait-fort); }
.fiche .tuile-fiche.ton-vert { border-top-color: var(--vert); }
.fiche .tuile-fiche.ton-ambre { border-top-color: var(--ambre); }
.fiche .tuile-fiche.ton-rouge { border-top-color: var(--rouge); }
.fiche .tuile-fiche.ton-accent { border-top-color: var(--accent); }
.fiche .tuile-fiche:has(.tuile-ouvrir:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.fiche .tuile-fiche:has(.selection:checked) { background: var(--accent-fond-doux); }
.tuile-fiche-tete { display: flex; flex-wrap: nowrap; align-items: flex-start; align-self: start; gap: .6rem; min-width: 0; }
.tuile-fiche-titre {
  flex: 1 1 auto; min-width: 0; margin: 0; font-size: var(--t-4); font-weight: 700; line-height: 1.35;
  color: var(--encre); overflow-wrap: anywhere;
}
.tuile-fiche-tete > .badge { flex: none; }
.tuile-fiche-situation {
  margin: 0; font-size: var(--t-3); font-weight: 600; color: var(--encre-2); font-variant-numeric: tabular-nums;
}
.tuile-glissable { display: contents; }
.tuile-fiche .case-selection { display: none; flex: none; margin: 0; }
[data-mode-selection] .tuile-fiche .case-selection { display: inline-grid; }
dialog.dialogue.dialogue-chapitre { width: min(94vw, 34rem); }
dialog.dialogue.dialogue-seance { width: min(94vw, 34rem); }
dialog.dialogue.dialogue-relectures { width: min(94vw, 32rem); }
.dialogue-seance .dialogue-corps { display: flex; flex-direction: column; gap: .9rem; }
.dialogue-seance .dialogue-corps > * { margin-top: 0; }
.section-fenetre {
  display: flex; flex-direction: column; gap: .5rem;
  padding-top: .8rem; border-top: 1px solid var(--trait);
}
.section-fenetre > .libelle-vignette { margin: 0; }
.section-fenetre form.enligne { margin: 0; align-items: center; }
.section-fenetre select { flex: 1 1 14rem; min-width: 0; }
.lien-document { margin: 0; font-size: var(--t-3); color: var(--encre-3); }
.ligne-lue {
  display: flex; align-items: center; flex-wrap: wrap; gap: .6rem; margin-top: .9rem;
  padding: .6rem .7rem; border-radius: var(--r-champ); background: var(--surface-3);
}
.ligne-lue-intitule { font-size: var(--t-3); color: var(--encre-2); }
.ligne-lue strong { font-size: var(--t-4); color: var(--encre); font-variant-numeric: tabular-nums; }
.ligne-lue .espaceur { flex: 1; }
.relectures-chapitre { margin: .6rem 0 0; font-size: var(--t-3); color: var(--encre-2); }
.relectures-dues { display: grid; gap: .4rem; margin-top: .6rem; }
.tiroir-sous-titre { margin: .1rem 0 0; font-size: var(--t-2); color: var(--encre-2); }
.dialogue-corps.tiroir-corps { padding: 1.1rem; display: flex; flex-direction: column; gap: 1.1rem; }
.tiroir-corps > form { display: flex; flex-direction: column; gap: 1.1rem; }
.tiroir-section > .libelle-vignette { margin: 0 0 .6rem; }
.tiroir-section .aide { margin-top: .6rem; }
.dialogue-pied.tiroir-pied { background: var(--surface-2); }
.compte-chapitres { font-weight: 600; color: var(--encre-3); }
.intitule-champ { display: block; font-size: var(--t-2); color: var(--encre-douce); margin-bottom: .2rem; }
.tiroir-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.tiroir-actions.fin { justify-content: flex-end; margin: .6rem 0 0; }
.reglage-relectures .groupe-onglets-lecture { display: inline-flex; background: var(--surface-3); }
.nombre-passes {
  display: inline-flex; align-items: center; gap: .5rem; margin: .6rem 0 0; font-size: var(--t-3); color: var(--encre-2);
}
.nombre-passes select { min-height: 44px; }
.lot-chapitres { margin-bottom: .6rem; }
.lot-chapitres > summary {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 .8rem; cursor: pointer;
  list-style: none; border: 1px solid var(--trait-fort); border-radius: var(--r-champ);
  color: var(--sur-douce); font-weight: 600; font-size: var(--t-4);
}
.lot-chapitres > summary::-webkit-details-marker { display: none; }
.lot-chapitres .sous-bloc { margin: .6rem 0 0; }
.lot-chapitres textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: var(--t-3); }
.chapitres-configures {
  list-style: none; margin: 0; padding: 0; border: 1px solid var(--trait); border-radius: var(--r-champ); overflow: hidden;
}
.chapitre-configure {
  display: flex; align-items: center; gap: .6rem; min-height: 44px; padding: 0 .3rem 0 .7rem;
  border-bottom: 1px solid var(--trait);
}
.chapitre-configure:last-child { border-bottom: none; }
.chapitre-configure-rang { flex: none; width: 1.4rem; font-size: var(--t-2); color: var(--encre-3); font-variant-numeric: tabular-nums; }
.chapitre-configure-titre { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--t-4); }
.chapitre-configure-bornes { flex: none; font-size: var(--t-2); color: var(--encre-2); font-variant-numeric: tabular-nums; }
.chapitre-configure .icone-seul { min-width: 44px; min-height: 44px; }
@media (min-width: 641px) and (not ((pointer: coarse) and (max-height: 520px))) {
  .entete-ecran.entete-riche {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .8rem; align-items: center;
  }
  dialog.dialogue.tiroir {
    position: fixed; inset: 0 0 0 auto; margin: 0; width: 32rem; max-width: 92vw;
    height: 100dvh; max-height: none; border: none; border-left: 1px solid var(--trait-fort);
    border-radius: 0; box-shadow: var(--ombre-forte);
  }
  dialog.dialogue.tiroir:not([open]) { transform: translateX(2rem); }
  @starting-style { dialog.dialogue.tiroir[open] { opacity: 0; transform: translateX(2rem); } }
}
@media (max-width: 640px), (pointer: coarse) and (max-height: 520px) {
  .entete-fiche-pouce { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .6rem; margin: 0 0 .9rem; }
  .entete-fiche-pouce .auteur-fiche { flex: 1 1 100%; margin: 0; }
  .entete-fiche-pouce .pastilles-fiche { justify-content: flex-start; }
  .fiche .panneau-saisie-lecture > .bouton-consigner { flex: 1 1 100%; width: 100%; min-width: 0; }
  .frise.frise-egale-au-pouce .case-frise { flex: 1 1 0; }
  .entete-fiche-liste h2 { flex: 1 1 100%; }
  .outils-fiche-liste { justify-content: flex-start; }
}
@media (max-width: 640px), (pointer: coarse) and (max-height: 520px) {
  .synthese-suivi-grille { display: flex; flex-direction: column; gap: .9rem; }
  .synthese-trajectoire, .synthese-rythme { display: contents; }
  .synthese-trajectoire > .synthese-suivi-surtitre { order: 1; margin-bottom: 0; }
  .synthese-suivi-chiffre-ligne { order: 2; }
  .synthese-suivi-verdict { order: 3; }
  .synthese-suivi-reste { order: 4; }
  .synthese-suivi-rythmes { order: 5; }
  .synthese-suivi-courbe { order: 6; width: 100%; height: auto; margin-top: 0; }
  .synthese-suivi-legende { order: 7; margin-top: 0; }
  .synthese-suivi-portee .pastilles-filtre {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -.9rem; padding-inline: .9rem;
  }
  .synthese-suivi-portee .pastilles-filtre::-webkit-scrollbar { display: none; }
  .synthese-suivi-portee .pastilles-filtre a { flex: none; }
  .barre-outils-liste { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: .5rem; padding: .6rem .7rem; }
  .recherche-liste { max-width: none; }
  .recherche-liste-boite { min-height: 44px; }
  .barre-outils-reste {
    display: flex; align-items: center; gap: .5rem; position: relative;
    overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
    margin-inline: -12px; padding-inline: .7rem;
  }
  .barre-outils-reste::-webkit-scrollbar { display: none; }
  .barre-outils-reste > * { flex: none; scroll-snap-align: start; }
  .barre-outils-reste > .espaceur { flex: 1 1 auto; min-width: 0; }
  .barre-outils-reste .pastilles-filtre { flex-wrap: nowrap; margin-bottom: 0; }
  .barre-selection {
    position: fixed; left: 0; right: 0;
    bottom: calc(var(--h-onglets, 64px) + env(safe-area-inset-bottom));
    z-index: 24; flex-direction: column; align-items: stretch; gap: .5rem;
    padding: .7rem .7rem; border-top: 1px solid var(--trait-fort); border-bottom: 0;
    box-shadow: var(--ombre-forte);
  }
  .barre-selection .espaceur { display: none; }
  .barre-selection-actions {
    flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none;
    margin-inline: -12px; padding-inline: .7rem;
  }
  .barre-selection-actions::-webkit-scrollbar { display: none; }
  .barre-selection-actions .bouton { flex: none; min-height: 44px; }
  [data-liste-selection][data-mode-selection] { padding-bottom: 7rem; }
  .tuile-saisir { height: 44px; padding: 0 1rem; }
  .tuile-pastilles { flex-wrap: wrap; justify-content: flex-end; max-width: 45%; }
  #entete-detail { display: flex; flex-direction: column; gap: .9rem; }
  #entete-detail > .vignettes-epreuves { order: 1; }
  #entete-detail > .carte-saisie-lecture { order: 2; margin-top: 0; }
  #entete-detail > .trajectoire-manuel { order: 3; margin-top: 0; }
  .carte-saisie-lecture > .espaceur { flex: 0 0 100%; height: 0; }
  .fiche .panneau-saisie-lecture { flex: 1 1 100%; }
  .fiche .groupe-saisie-lecture { flex: 1 1 100%; justify-content: space-between; }
  .trajectoire-piste { order: 3; flex: 1 0 100%; }
  .tuile-glissable { display: block; border-radius: var(--r-tuile); }
  .entete-fiche-pouce .pastilles-fiche .badge {
    display: inline-flex; align-items: center; height: 44px; box-sizing: border-box;
    padding: 0 .9rem; font-size: var(--t-2);
  }
  .case-tout-selectionner { min-height: var(--h-saisie); }
  details.aide > summary { min-height: var(--h-saisie); padding: .7rem 0; }
}
.ecran { display: flex; flex-direction: column; gap: 1.7rem; }
.ecran > .bloc, .ecran > .bloc-nu { margin-bottom: 0; }
.section-ecran { display: flex; flex-direction: column; gap: .7rem; }
.entete-section { display: flex; align-items: center; gap: .7rem; min-height: var(--h-chrome); flex-wrap: wrap; }
.entete-section > .espaceur { flex: 1; }
h2.titre-section {
  margin: 0; font-size: var(--t-5); font-weight: 700; letter-spacing: -.01em;
  line-height: 1.15; color: var(--encre); text-transform: none;
}
.section-ecran > .defilante[data-large] {
  background: var(--surface); border: 1px solid var(--trait); border-radius: var(--r-tuile);
}
.tuile-bas-reprise { flex-wrap: wrap; row-gap: .5rem; }
.tuile-commandes-semaine { display: flex; align-items: center; flex-wrap: wrap; gap: .4rem; }
.tuile-commandes-semaine, .tuile-bas-reprise .case-reprise { position: relative; z-index: 1; }
.case-reprise {
  display: inline-flex; align-items: center; gap: .4rem; flex: none;
  min-height: var(--h-saisie); box-sizing: border-box;
  font-size: var(--t-3); font-weight: 600; color: var(--encre-2); cursor: pointer;
}
.case-reprise input { width: 20px; height: 20px; margin: 0; flex: none; }
.case-reprise:hover { color: var(--encre); }
.bande-ecran {
  display: flex; align-items: center; gap: 1.4rem; flex-wrap: wrap;
  background: var(--surface-3); border: 1px solid var(--trait-fort);
  border-radius: var(--r-vignette); padding: .9rem .9rem;
}
.bande-ecran > h2 { flex: none; margin: 0; font-size: var(--t-5); font-weight: 700; letter-spacing: -.01em; }
.bande-ecran > p { flex: 1 1 14rem; margin: 0; font-variant-numeric: tabular-nums; color: var(--encre-2); }
.tri-sens {
  display: inline-grid; place-items: center; flex: none;
  width: var(--h-chrome); height: var(--h-chrome); box-sizing: border-box;
  border: 1px solid var(--trait); border-radius: var(--r-champ);
  background: var(--surface); color: var(--encre-2); text-decoration: none; font-size: var(--t-4);
}
.tri-sens:hover { color: var(--encre); border-color: var(--trait-fort); text-decoration: none; }
.tri-sens[data-sens="desc"] { background: var(--accent-fond); border-color: var(--accent); color: var(--sur-douce); }
