/* base.css — le socle, à la charte « Cahier bleu » : page, charpente,
   boutons, champs, feuilles, lignes, fenêtres, menus, toast.
   Trois largeurs : téléphone < 600, tablette 600–899, large ≥ 900.
   La navigation est dans la barre latérale (laterale.css) ; sur téléphone,
   elle devient un tiroir et les fenêtres des feuilles qui montent du bas. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; height: 100%; }
/* le PAPIER : un fond uni sous les vues */
body {
  margin: 0;
  min-height: 100%;
  background-color: var(--fond);
  background-image: var(--fond-degrade);
  background-attachment: fixed;
  color: var(--encre);
  font: 500 14px/1.45 var(--police);
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--police-titre); font-weight: 700; font-synthesis: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: var(--accent-texte); }
::placeholder { color: var(--encre-4); font-weight: 400; opacity: 1; }
[hidden] { display: none !important; }
svg.ico { flex: none; display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-bord); }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.titre { font-family: var(--police-titre); font-weight: 700; line-height: 1.2; font-synthesis: none; }
.gris { color: var(--encre-3); }
.petit { font-size: 13px; }
.pousse { flex: 1 1 0; min-width: 0; }
.tronque { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }

/* ————— l'application —————
   la barre latérale (laterale.css) à gauche, la vue à droite ; sur téléphone,
   la barre devient un tiroir et la vue prend tout l'écran */
#app { min-height: 100dvh; display: flex; align-items: stretch; }

.marque { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; border: none; background: none; padding: 0; }
/* l'icône de la marque dans un BADGE plein, arrondi : la seule note de couleur
   franche de la barre, comme une icône d'app */
.marque-tuile {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  background: var(--accent); color: var(--sur-accent);
  display: flex; align-items: center; justify-content: center;
}
.marque-nom { font-family: var(--police-titre); font-size: 21px; font-weight: 700; letter-spacing: -0.01em; line-height: 1; font-synthesis: none; }

.etat-synchro {
  display: flex; align-items: center; gap: 6px;
  height: var(--h-ctrl); padding: 0 10px; border: none; background: none; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--encre-3); white-space: nowrap;
}
.etat-synchro:hover { background: var(--creux); }
.etat-synchro[data-mode='ok'] { color: var(--ok); }
.etat-synchro[data-mode='erreur'] { color: var(--danger); }
.etat-synchro[data-mode='en-cours'] svg { animation: tourne 1.2s linear infinite; }
@keyframes tourne { to { transform: rotate(360deg); } }

/* LA COLONNE : chaque vue s'aligne sur une même colonne centrée — la tête
   de page, puis le plan, où la fiche se déplie. Une vue qui a besoin de place
   (le journal, grilles, budget) passe en colonne large. */
.vue { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; --colonne: 1280px; }
.vue[data-large] { --colonne: 1640px; }
.vue > * { width: 100%; max-width: var(--colonne); margin-inline: auto; }

/* ————— boutons : des pilules —————
   .bouton (craie), .principal (bleu plein), .contour (blanc cerné),
   .discret (nu), .danger ; .rond = un bouton-icône. */
.bouton {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: var(--h-ctrl); padding: 0 14px;
  border-radius: 999px; border: 1px solid transparent; background: var(--creux-2);
  font-weight: 700; color: var(--encre); text-decoration: none; white-space: nowrap;
}
.bouton:hover { background: var(--creux-3); }
.bouton.principal { background: var(--accent); color: var(--sur-accent); }
.bouton.principal:hover { background: var(--accent-survol); }
.bouton.contour { background: var(--feuille); border-color: var(--trait-fort); font-weight: 600; }
.bouton.contour:hover { background: var(--creux); border-color: var(--encre-3); }
.bouton.discret { background: transparent; color: var(--encre-2); }
.bouton.discret:hover { background: var(--creux); color: var(--encre); }
.bouton.danger { color: var(--danger); }
.bouton.danger:hover { background: var(--danger-doux); }
.bouton.petit { height: 30px; padding: 0 11px; font-size: 13px; }
.bouton.grand { height: 46px; padding: 0 20px; font-size: 15px; }
.bouton.large { width: 100%; }
.bouton:disabled { opacity: 0.5; cursor: default; }

.rond {
  flex: none; width: var(--h-ctrl); height: var(--h-ctrl); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center;
  border: none; background: transparent; color: var(--encre-2); text-decoration: none;
}
.rond:hover { background: var(--creux); color: var(--encre); }
.rond.plein { background: var(--creux-2); }
.rond.plein:hover { background: var(--creux-3); }
.rond.contour { border: 1px solid var(--trait-fort); background: var(--feuille); }
.rond.contour:hover { border-color: var(--encre-3); background: var(--creux); }
.rond.danger:hover { background: var(--danger-doux); color: var(--danger); }
.rond.petit { width: 28px; height: 28px; }
.rond:disabled { opacity: 0.4; cursor: default; background: transparent; }

.lien-bouton { border: none; background: none; padding: 4px 0; font-weight: 700; color: var(--accent-texte); text-align: left; }
.lien-bouton:hover { text-decoration: underline; }

/* au doigt, toute petite cible garde 44 px à toucher : la zone sensible
   déborde autour du dessin, sans rien changer à ce qu'on voit */
@media (pointer: coarse) {
  .rond.petit, .bouton.petit, .lien-bouton, .puce[role], button.puce { position: relative; }
  .rond.petit::after, .bouton.petit::after, .lien-bouton::after, button.puce::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: max(100%, 44px); height: max(100%, 44px); transform: translate(-50%, -50%);
  }
}

@media (max-width: 599px) {
  .rond { width: 44px; height: 44px; }
  .rond.petit { width: 36px; height: 36px; }
  .bouton { height: 42px; padding: 0 16px; }
  .bouton.petit { height: 38px; }
  .bouton.grand { height: 50px; font-size: 16px; }
}

/* ————— champs ————— */
.champ {
  width: 100%; min-height: 38px; padding: 7px 12px;
  border-radius: var(--rayon); border: 1px solid var(--trait-fort); background: var(--feuille);
  outline-offset: 0;
}
.champ:hover { border-color: var(--encre-3); }
.champ:focus { outline: 2px solid var(--accent); border-color: transparent; }
textarea.champ { resize: none; display: block; line-height: 1.5; }
/* le champ d'un jour (composants/choix-date.js) : un bouton qui se lit comme un champ */
.champ-date { display: flex; align-items: center; gap: 8px; text-align: left; font-weight: 600; color: var(--encre); }
.champ-date svg.ico { flex: none; color: var(--encre-3); }
.champ-date.vide { color: var(--encre-3); }
select.champ { appearance: none; padding-right: 30px; border-radius: 999px; min-height: var(--h-ctrl); padding-top: 0; padding-bottom: 0; height: var(--h-ctrl); font-weight: 600;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235f6170' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center; }
.champ.titre-champ { font-family: var(--police-titre); font-size: 22px; font-weight: 700; padding: 4px 10px; border-color: transparent; background: transparent; }
.champ.titre-champ:hover { border-color: var(--trait-fort); }
.champ.titre-champ:focus { background: var(--feuille); }
.etiquette { display: flex; flex-direction: column; gap: 5px; }
.etiquette > span:first-child { font-size: 13px; font-weight: 700; color: var(--encre-2); }
@media (max-width: 599px) {
  .champ { min-height: 44px; font-size: 16px; }
  select.champ { height: 44px; }
}

/* interrupteur Non / Oui */
.bascule {
  flex: none; width: 44px; height: 26px; border-radius: 999px; border: none; padding: 3px;
  background: var(--creux-3); display: flex; justify-content: flex-start;
  transition: background 150ms;
}
.bascule::after { content: ''; width: 20px; height: 20px; border-radius: 999px; background: #fff; box-shadow: var(--ombre-1); }
.bascule[aria-checked='true'] { background: var(--accent); justify-content: flex-end; }

/* un choix parmi quelques-uns : la piste en craie, le choisi en blanc cerné
   (le bleu plein est réservé à l'action principale de l'écran) */
.segments { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--creux-2); max-width: 100%; flex-wrap: wrap; }
.segments button {
  height: 28px; padding: 0 12px; border-radius: 999px; border: none; background: transparent;
  font-weight: 650; font-size: 13.5px; color: var(--encre-2); white-space: nowrap;
}
.segments button:hover { color: var(--encre); }
.segments button[aria-checked='true'], .segments button[aria-pressed='true'] { background: var(--feuille); color: var(--encre); box-shadow: 0 0 0 1px var(--trait-fort); }
@media (max-width: 599px) { .segments button { height: 36px; padding: 0 14px; font-size: 14px; } }

/* − durée + : un cadre en pilule */
.compteur { display: inline-flex; align-items: center; gap: 2px; padding: 2px; border-radius: 999px; background: var(--feuille); border: 1px solid var(--trait-fort); }
.compteur button { width: 28px; height: 28px; border-radius: 999px; border: none; background: transparent; display: flex; align-items: center; justify-content: center; color: var(--encre-2); }
.compteur button:hover { background: var(--creux-2); color: var(--encre); }
.compteur output { min-width: 58px; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
@media (max-width: 599px) { .compteur button { width: 40px; height: 40px; } }

.puce {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 24px; padding: 2px 10px; border-radius: 999px;
  background: var(--creux); color: var(--encre-2); font-size: 13px; font-weight: 600;
  border: none; max-width: 100%;
}
.puce[data-teinte] { background: var(--t-fond); color: var(--t-encre); }
.puce.accent { background: var(--accent-doux); color: var(--accent-texte); font-weight: 700; }
button.puce { min-height: 30px; border: 1px solid var(--trait-fort); background: var(--feuille); color: var(--encre); }
button.puce:hover { border-color: var(--encre-3); }
button.puce[aria-pressed='true'] { background: var(--accent-doux); border-color: var(--accent-bord); color: var(--accent-texte); }
@media (max-width: 599px) { button.puce { min-height: 38px; padding: 2px 14px; font-size: 14px; } }

/* la tuile de couleur d'une discipline */
.tuile {
  flex: none; width: 32px; height: 32px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--t-fond, var(--creux-2)); color: var(--t-encre, var(--encre-2));
  font-family: var(--police-titre); font-weight: 700; font-size: 14px;
}
.tuile.petite { width: 26px; height: 26px; border-radius: 8px; }
.tuile.grande { width: 38px; height: 38px; }

/* ————— feuilles et lignes ————— */
/* une feuille blanche sur le papier : un FILET fin et un bord net dessous la posent */
.panneau { background: var(--feuille); border: 1px solid var(--trait); border-radius: var(--rayon-l); box-shadow: var(--ombre-feuille); }
.section-titre { font-family: var(--police-titre); font-size: 16px; font-weight: 700; font-synthesis: none; }
.filet { border: none; border-top: 1px solid var(--trait); margin: 0; }

.ligne {
  display: flex; align-items: center; gap: 10px;
  width: 100%; min-height: 44px; padding: 5px 10px;
  border-radius: var(--rayon-m); border: 1px solid transparent; background: transparent;
  text-align: left; text-decoration: none; color: inherit;
}
button.ligne:hover, a.ligne:hover { background: var(--creux); }
.ligne[aria-current='true'], .ligne.choisie { background: var(--accent-doux); border-color: var(--accent-bord); }
.ligne-texte { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ligne-texte > :first-child { font-weight: 700; }
.ligne-texte > :nth-child(2) { font-size: 13px; color: var(--encre-3); }

.vide { padding: 28px 16px; text-align: center; color: var(--encre-3); }
.vide .titre { color: var(--encre); font-size: 18px; margin-bottom: 4px; }

/* ————— fenêtres : au centre sur ordinateur, feuille du bas sur téléphone ————— */
dialog.feuille {
  border: 1px solid var(--trait-fort); border-radius: var(--rayon-xl); padding: 0;
  background: var(--feuille); color: var(--encre);
  width: min(560px, calc(100vw - 32px)); max-height: min(88dvh, 860px);
  box-shadow: var(--ombre-2);
  overflow: hidden;
}
dialog.feuille[open] { display: flex; flex-direction: column; }
dialog.feuille:focus { outline: none; }
dialog.feuille.large { width: min(860px, calc(100vw - 32px)); }
dialog.feuille.etroite { width: min(420px, calc(100vw - 32px)); }
dialog.feuille::backdrop { background: var(--voile); }
.feuille-tete { display: flex; align-items: center; gap: 10px; padding: 14px 12px 8px 20px; }
.feuille-tete h2 { font-size: 18px; line-height: 1.2; }
.feuille-corps { flex: 1; min-height: 0; overflow-y: auto; padding: 6px 20px 18px; display: flex; flex-direction: column; gap: 14px; }
.feuille-pied { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 12px 20px 14px; border-top: 1px solid var(--trait); }
.poignee { display: none; }

@media (max-width: 599px) {
  /* posée au-dessus du clavier (--clavier), elle suit le doigt qui la tire (--tire, geste-feuille.js) */
  dialog.feuille, dialog.feuille.large, dialog.feuille.etroite {
    width: 100vw; max-width: 100vw; margin: auto 0 var(--clavier, 0px) 0;
    max-height: calc(100dvh - 40px - var(--clavier, 0px));
    border-radius: 24px 24px 0 0;
    animation: monte var(--glisse);
    transform: translateY(var(--tire, 0px));
  }
  dialog.feuille.tiree { animation: none; }
  dialog.feuille.haute { height: calc(100dvh - 40px - var(--clavier, 0px)); }
  /* la poignée : une barre de 5 px, dans une prise de 22 px */
  .poignee { display: block; width: 40px; height: 5px; border-radius: 999px; background: var(--creux-3); margin: 8px auto 0; flex: none; position: relative; touch-action: none; }
  .poignee::after { content: ''; position: absolute; inset: -10px -60px; }
  .feuille-tete { touch-action: none; }
  .feuille-tete :is(input, textarea) { touch-action: auto; }
  .feuille-tete { padding: 8px 8px 6px 16px; }
  .feuille-tete h2 { font-size: 20px; }
  .feuille-corps { padding: 4px 16px 16px; }
  .feuille-pied { padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  dialog.feuille.confirmation { margin: auto 16px; width: auto; border-radius: var(--rayon-xl); animation: none; }
}
@keyframes monte { from { transform: translateY(100%); } to { transform: none; } }

/* les jours à départager (composants/conflits.js) : deux versions côte à côte */
.conflit { display: flex; flex-direction: column; gap: 8px; }
.conflit h3 { font-size: 15px; }
.conflit-versions { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.conflit-version { display: flex; flex-direction: column; gap: 8px; min-width: 0; padding: 12px; border: 1px solid var(--trait); border-radius: var(--rayon-l); background: var(--creux); }
.conflit-version > .bouton { margin-top: auto; }
.conflit-journee { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.conflit-blocs { margin: 0; padding: 0; list-style: none; font-size: 14px; }
.conflit-blocs li.conflit-diff { margin: 2px -6px; padding: 2px 6px; border-radius: var(--rayon-s); background: var(--surligneur-doux); }
.conflit > .bouton { align-self: flex-start; }
@media (max-width: 599px) { .conflit-versions { grid-template-columns: 1fr; } }

/* ————— menus ————— */
.menu {
  position: fixed; z-index: 60; min-width: 220px; max-width: min(340px, calc(100vw - 16px));
  padding: 6px; border-radius: var(--rayon-l); border: 1px solid var(--trait); background: var(--feuille);
  box-shadow: var(--ombre-2);
  max-height: min(70dvh, 520px); overflow-y: auto;
}
.menu-titre { padding: 6px 10px 2px; font-size: 12px; font-weight: 700; color: var(--encre-3); }
/* le champ qui filtre un menu long ; « Ajouter « … » » quand rien ne porte ce nom */
.menu-recherche { width: calc(100% - 4px); height: 32px; margin: 2px 2px 4px; padding: 0 10px; border: 1px solid var(--trait-fort); border-radius: var(--rayon-s); background: var(--feuille); font: inherit; font-size: 13.5px; color: var(--encre); outline: none; }
.menu-recherche:focus { border-color: var(--accent); }
.menu-ajouter { color: var(--accent-texte); }
.menu-ajouter svg.ico { color: inherit; }
.menu-item {
  display: flex; align-items: center; gap: 9px; width: 100%; min-height: 34px; padding: 5px 10px;
  border: none; background: none; border-radius: var(--rayon-s); text-align: left; font-weight: 600;
}
.menu-item:hover, .menu-item:focus-visible { background: var(--accent-doux); outline: none; }
.menu-item svg.ico { color: var(--encre-2); }
/* la pastille d'une matière, dans la case d'une icône : posée sur la première
   ligne du libellé quand il passe à la ligne */
.menu-point, .point-case { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; }
.menu-point > .point-discipline, .point-case > .point-discipline, .tuile > .point-discipline { width: 10px; height: 10px; }
.menu-item:has(> .menu-point) { align-items: flex-start; padding-block: max(5px, calc((34px - 1lh) / 2)); }
.menu-item > .menu-point, .menu-item:has(> .menu-point) > .coche { height: 1lh; display: inline-flex; align-items: center; }
.menu-item.danger, .menu-item.danger svg.ico { color: var(--danger); }
.menu-item.danger:hover { background: var(--danger-doux); }
.menu-item .coche { margin-left: auto; color: var(--accent-texte); }
.menu-item small { display: block; font-weight: 500; color: var(--encre-3); font-size: 12.5px; }
.menu hr { border: none; border-top: 1px solid var(--trait); margin: 5px 4px; }
@media (max-width: 599px) {
  .menu-item { min-height: 48px; font-size: 16px; }
  .menu-item:has(> .menu-point) { padding-block: max(5px, calc((48px - 1lh) / 2)); }
}

/* ————— choisir un jour (composants/choix-date.js) —————
   un petit calendrier : les jours de classe à l'encre, les autres en gris ;
   aujourd'hui à l'abricot, le jour choisi en bleu plein */
.choix-date { min-width: 0; padding: 10px; overflow: visible; }
.cd-tete { display: flex; align-items: center; justify-content: space-between; gap: 4px; margin-bottom: 4px; }
.cd-mois { font-family: var(--police-titre); font-size: 16px; font-weight: 700; color: var(--encre); }
.cd-grille { display: grid; grid-template-columns: repeat(7, 36px); gap: 2px; }
.cd-nom { height: 26px; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--encre-3); text-transform: lowercase; }
.cd-jour {
  height: 36px; border: none; border-radius: 999px; background: none;
  font-family: var(--police-titre); font-size: 14.5px; font-weight: 600; color: var(--encre); font-variant-numeric: tabular-nums;
}
.cd-jour:hover { background: var(--creux); }
.cd-jour:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.cd-jour[data-repos] { color: var(--encre-3); font-weight: 500; }
.cd-jour[data-hors] { opacity: 0.4; }
.cd-jour[aria-current='date'] { background: var(--maintenant-doux); color: var(--maintenant-texte); font-weight: 800; }
.cd-jour[aria-pressed='true'] { background: var(--accent); color: var(--sur-accent); font-weight: 700; opacity: 1; }
.cd-jour[aria-pressed='true']:hover { background: var(--accent-survol); }
.cd-pied { display: flex; margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--trait); }
@media (max-width: 599px) {
  .cd-grille { grid-template-columns: repeat(7, 40px); }
  .cd-jour { height: 40px; font-size: 16px; }
}

/* ————— toast ————— */
#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 100;
  max-width: calc(100vw - 24px);
  display: flex; align-items: center; gap: 12px;
  padding: 9px 16px; border-radius: 999px;
  background: var(--encre); color: var(--feuille); font-weight: 700;
  box-shadow: var(--ombre-2);
}
#toast.erreur { background: var(--danger); color: #fff; }
#toast .toast-action { border: none; background: none; color: inherit; font-weight: 800; text-decoration: underline; padding: 4px 0; }
@media (max-width: 599px) { #toast { bottom: calc(24px + env(safe-area-inset-bottom)); border-radius: var(--rayon-l); } }

/* ————— pastilles d'observation ————— */
[data-pastille='ok'] { --o-fond: var(--obs-ok-fond); --o-encre: var(--obs-ok-encre); --o-bord: var(--obs-ok-bord); }
[data-pastille='cours'] { --o-fond: var(--obs-cours-fond); --o-encre: var(--obs-cours-encre); --o-bord: var(--obs-cours-bord); }
[data-pastille='aide'] { --o-fond: var(--obs-aide-fond); --o-encre: var(--obs-aide-encre); --o-bord: var(--obs-aide-bord); }
[data-pastille='abs'] { --o-fond: var(--obs-abs-fond); --o-encre: var(--obs-abs-encre); --o-bord: var(--obs-abs-bord); }
[data-pastille=''] { --o-fond: var(--feuille); --o-encre: var(--encre-2); --o-bord: var(--trait-fort); }

/* ————— zone de dépôt ————— */
.depot { border: 1px dashed var(--trait-fort); border-radius: var(--rayon-m); padding: 10px 12px; color: var(--encre-2); font-size: 13px; }
.depot.survol { border-color: var(--accent); background: var(--accent-doux); }

/* ————— chargement ————— */
.accueil-chargement { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 100dvh; color: var(--encre-3); }

/* ————— l'en-tête d'une vue (composants/entete.js) ————— */
.entete-vue { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; padding: 14px var(--gouttiere) 10px; }
.entete-texte { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.entete-texte h1 { font-size: 22px; line-height: 1.2; }
.entete-texte span { font-size: 13px; color: var(--encre-2); }
@media (max-width: 599px) {
  .entete-vue { padding: 12px 8px 8px 16px; gap: 4px; flex-wrap: nowrap; }
}

/* ————— une ligne de réglage : titre à gauche, contrôle à droite (composants/champs.js) ————— */
.reglage { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; min-height: 54px; padding: 9px 0; border-bottom: 1px solid var(--trait); }
.reglage:last-child { border-bottom: none; }
.reglage-texte { flex: 1 1 220px; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.reglage-titre { font-weight: 700; }

/* ————— la tête de page (composants/barre-espace.js), la même partout —————
   Une bande sur le papier, un filet dessous, sur toute la largeur de la vue ;
   son contenu tient sur une seule ligne : le titre et son sous-titre, ce qui
   les règle, puis à droite l'échelle, les gestes et l'action. */
.barre-vue {
  display: flex; flex-direction: column; gap: 8px;
  padding: 14px var(--gouttiere-vue);
  margin-bottom: 20px;
}
.vue > .barre-vue { max-width: none; background: var(--fond); border-bottom: 1px solid var(--trait); }
/* la même hauteur dans tous les espaces (64 px), TOUT sur 36 px : les ronds,
   les puces, les pastilles, l'action, et le titre avec son petit texte
   au-dessus (14 + 22 px ; seul, le titre se centre). Les filets sont tracés en dedans : une puce
   cernée fait 36 px à l'œil, comme une piste de pastilles */
.barre-espace:not(.tel) { --h-ctrl: 36px; min-height: 64px; padding-block: 14px; justify-content: center; }
.be-ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; min-width: 0; min-height: 36px; }
.be-ligne > .barre-droite { gap: 6px; }
.barre-espace:not(.tel) :is(.titre-vue-sous, .barre-contexte-sur) { font-size: 12px; line-height: 14px; height: 14px; }
.barre-espace:not(.tel) :is(.titre-vue h1, .be-ligne > h1, .barre-contexte h1) { font-size: 21px; line-height: 22px; overflow: clip; overflow-clip-margin: 4px; }
.barre-espace:not(.tel) :is(.titre-vue.avec-sur > h1, .titre-vue-bouton, .avec-sur .barre-contexte-titre) { height: 22px; }
.barre-espace:not(.tel) .barre-contexte { height: 36px; }
.barre-espace:not(.tel) .barre-contexte.avec-sur { height: auto; }
/* sans petit texte, le titre seul se centre sur la ligne des boutons */
.barre-espace:not(.tel) :is(.titre-vue:not(.avec-sur) > h1, .be-ligne > h1) { line-height: 36px; }
/* le titre et son sous-titre au-dessus, en petit : la même tête que le sélecteur de contexte */
.titre-vue { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; margin-right: 4px; }
.titre-vue h1, .be-ligne > h1, .barre-contexte h1 { font-size: 22px; line-height: 1.1; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.titre-vue > h1, .be-ligne > h1 { line-height: 36px; }
.titre-vue-bouton { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 10px; margin-left: -10px; border: none; background: none; border-radius: var(--rayon-s); min-width: 0; max-width: calc(100% + 10px); color: inherit; text-align: left; }
.titre-vue-bouton:hover { background: var(--creux); }
.titre-vue-bouton > svg { flex: none; color: var(--encre-3); }
.titre-vue-sous { border: none; background: none; padding: 0; font-size: 12.5px; line-height: 16px; height: 16px; font-weight: 700; color: var(--encre-3); text-align: left; white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
button.titre-vue-sous:hover { color: var(--accent-texte); }
.titre-vue.avec-sur > h1 { display: flex; align-items: center; height: 36px; }
.barre-contexte { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 420px; height: 44px; padding: 0 10px; margin-left: -10px; border: none; border-radius: var(--rayon-s); background: transparent; color: var(--encre); }
.barre-contexte:hover { background: var(--creux); }
.barre-contexte > svg { flex: none; color: var(--encre-3); }
/* les SOUS-VUES : une piste de craie, la choisie en blanc cerné, au texte bleu */
.segments.barre-vues { flex-wrap: nowrap; }
.segments.barre-vues button { height: 30px; padding: 0 12px; color: var(--encre-2); font-weight: 700; }
.segments.barre-vues button:hover { color: var(--encre); }
.segments.barre-vues button:is([aria-selected='true'], [aria-checked='true']) { background: var(--feuille); box-shadow: 0 0 0 1px var(--trait-fort); color: var(--accent-texte); }
.segments.barre-vues button > svg.ico { display: block; }
.barre-vues small { font-size: 11.5px; font-weight: 700; color: var(--encre-3); margin-left: 5px; }
.barre-droite { display: flex; align-items: center; gap: 8px; margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.barre-droite > .segments { margin-right: 4px; }
/* les RUBRIQUES : des pastilles après le titre ; trop nombreuses, une seule
   pastille sur la même piste (la rubrique où l'on est), dont le menu mène aux
   autres — à côté des pastilles, elle ne paraît que quand la ligne se resserre */
.be-rubrique { flex: none; max-width: 240px; }
.be-rubrique > button { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; }
.be-rubrique > button > span { min-width: 0; }
.be-rubrique > button > svg { flex: none; color: var(--encre-3); }
/* une rubrique à part (le Budget d'une classe) : son propre groupe, détaché des autres */
.be-rubriques { display: inline-flex; gap: 10px; min-width: 0; max-width: 100%; }
.be-rubriques > .segments { flex: none; }
.be-rubrique-repli { display: none; }
.be-serre > .barre-vues.se-replie { display: none; }
.be-serre > .be-rubrique-repli { display: inline-flex; }
/* le contexte : ce qui le situe au-dessus, en petit (l'école et l'année d'une classe) */
.barre-contexte.avec-sur { height: auto; min-height: 0; padding-top: 0; padding-bottom: 0; }
.barre-contexte-textes { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.barre-contexte-sur { max-width: 100%; font-size: 12.5px; line-height: 16px; height: 16px; font-weight: 700; color: var(--encre-3); }
.barre-contexte-titre { display: inline-flex; align-items: center; gap: 6px; min-width: 0; max-width: 100%; }
/* le petit texte au-dessus ne compte pas dans l'alignement : la ligne du titre,
   haute comme une puce, s'aligne sur les puces et les ronds de la barre */
.avec-sur .barre-contexte-titre { height: 36px; }
.barre-contexte-titre > svg { flex: none; color: var(--encre-3); }
/* une liste de la barre prend la largeur de ce qu'elle montre, pas de sa plus longue option ;
   comme tout ce qui RÈGLE la vue dans la barre : du texte et un chevron, sans cadre */
.barre-vue select.champ { width: auto; max-width: 220px; field-sizing: content; border-color: transparent; background-color: transparent; }
.barre-vue select.champ:hover { border-color: transparent; background-color: var(--creux); }
/* une puce de réglage dans la tête : ce qu'on règle, d'un clic — une pilule cernée */
.puce-reglage { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 999px; border: none; background: var(--feuille); box-shadow: inset 0 0 0 1px var(--trait-fort); color: var(--encre); font-weight: 600; white-space: nowrap; }
.puce-reglage:hover { background: var(--creux); }
.puce-reglage > svg { color: var(--encre-3); }
.barre-ligne { display: flex; align-items: center; gap: 6px; width: 100%; min-width: 0; }
.barre-contexte-zone { flex: 1; min-width: 0; display: flex; align-items: center; gap: 2px; }
/* la recherche d'une vue (boiteRecherche) : une loupe, qui s'ouvre en pilule
   au clic et le reste tant qu'elle porte un mot */
/* l'objet ouvert : son « ← », sur la craie, au pied du titre comme le fil au-dessus */
.be-ligne > .be-retour { flex: none; background: var(--creux-2); color: var(--encre); }
.be-ligne > .be-retour:hover { background: var(--creux-3); }
.be-recherche { flex: none; display: inline-flex; align-items: center; gap: 6px; width: 220px; height: 36px; padding: 0 6px 0 11px; border-radius: 999px; background: var(--feuille); box-shadow: inset 0 0 0 1px var(--trait-fort); color: var(--encre-3); cursor: text; transition: width 150ms; }
.be-recherche > svg { flex: none; }
.be-recherche input { flex: 1; min-width: 0; height: 100%; padding: 0; border: none; outline: none; background: transparent; color: var(--encre); font: inherit; }
.be-recherche:focus-within { box-shadow: inset 0 0 0 2px var(--accent); }
.be-recherche:not(:focus-within):has(input:placeholder-shown) { width: 36px; padding: 0; justify-content: center; background: transparent; box-shadow: none; cursor: pointer; }
.be-recherche:not(:focus-within):has(input:placeholder-shown):hover { background: var(--creux); color: var(--encre); }
.be-recherche:not(:focus-within):has(input:placeholder-shown) input { flex: 0 0 0; width: 0; }

/* ————— la tête d'une section du plan (barre-espace.js, teteSection) —————
   Le titre et ce qui le précise à gauche ; à droite, en 32 px, ce qui découpe
   et range la section (segments, puces, tri) et ce qu'on y crée en contour
   bleu. Une bande de craie sur le papier, ou la tête d'une feuille. */
.tete-section {
  --h-ctrl: 32px;
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; min-height: 52px; padding: 8px 10px 8px 16px;
  border-radius: var(--rayon-l); background: var(--creux); border: 1px solid var(--trait);
}
.tete-section.dans-feuille { border: none; border-bottom: 1px solid var(--trait); border-radius: var(--rayon-l) var(--rayon-l) 0 0; }
.tete-section-titre { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; margin-right: auto; }
.tete-section-titre > h2 { margin: 0; font-family: var(--police-titre); font-size: 17px; font-weight: 700; line-height: 1.3; }
.tete-section-compte, .tete-section-meta { font-size: 13px; font-weight: 600; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.tete-section-gestes { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.tete-section :is(.puce-reglage, .bouton) { height: 32px; padding: 0 12px; font-size: 13px; }
.tete-section .bouton:not(.principal, .secondaire) { background: var(--feuille); border-color: transparent; box-shadow: inset 0 0 0 1px var(--trait-fort); font-weight: 600; }
.tete-section .bouton:not(.principal, .secondaire):hover { background: var(--creux-2); }
.tete-section .segments button { height: 26px; padding: 0 10px; font-size: 13px; }
.tete-section .rond { width: 32px; height: 32px; }
/* ce qu'on crée ailleurs que dans la tête : le contour bleu (un seul bleu plein par écran) */
.bouton.secondaire { background: var(--feuille); border-color: var(--accent-bord); color: var(--accent-texte); }
.bouton.secondaire:hover { background: var(--accent-doux); }
/* l'état vide propose en contour bleu quand la tête porte déjà l'action */
.vue:has(.barre-espace :is(.be-action-large, .be-action)) :is(.vide, .fil-vide) .bouton.principal { background: var(--feuille); border-color: var(--accent-bord); color: var(--accent-texte); }
.vue:has(.barre-espace :is(.be-action-large, .be-action)) :is(.vide, .fil-vide) .bouton.principal:hover { background: var(--accent-doux); }

@media (min-width: 1100px) {
  /* la tête tient sur UNE ligne : ce qui règle la vue (une puce) cède la place
     d'abord, puis le titre (points de suspension) ; le groupe de droite ne bouge pas */
  .be-ligne { flex-wrap: nowrap; }
  .be-ligne > .titre-vue { flex: 0 1 auto; min-width: 140px; }
  .be-ligne > :is(.puce-reglage, .jour-tete, .barre-contexte) { flex: 0 100 auto; min-width: 0; }
  /* le titre se coupe en dernier : les puces cèdent avant lui */
  .be-ligne > .barre-contexte { flex-shrink: 1; min-width: 120px; }
  .be-ligne > .puce-reglage > span, .be-ligne .jour-reglages > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
  .be-ligne > .barre-droite { flex: none; flex-wrap: nowrap; }
  .be-ligne > :is(.segments, .be-rubriques) { flex: none; }
}
@media (max-width: 899px) {
  .barre-vue { padding: 12px 20px; }
}
@media (max-width: 599px) {
  /* téléphone, deux lignes serrées : le menu, le « ← », le titre, « ⋯ » et
     l'action en rond bleu (44 px) ; dessous les rubriques et les filtres, sur
     36 px, qui défilent de côté plutôt que de passer sur deux lignes */
  .vue > .barre-vue { padding: calc(4px + env(safe-area-inset-top)) 6px 6px; gap: 4px; margin-bottom: 8px; }
  /* collée en haut : elle se cache en descendant, revient dès qu'on remonte
     (barre-espace.js, suivreLeDefilement) ; ce qui colle sous elle suit --tete-haut */
  .vue > .barre-vue { position: sticky; top: 0; z-index: 30; transition: transform var(--glisse); }
  #app[data-tete-cachee] .vue > .barre-vue { transform: translateY(calc(-100% - 1px)); }
  /* le bas de la page dégage la barre d'accueil de l'iPhone */
  .vue { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
  .barre-espace.tel { --h-ctrl: 36px; }
  .barre-espace.tel > .barre-ligne { gap: 2px; }
  .barre-espace.tel .barre-contexte-zone { padding-left: 2px; }
  .barre-espace.tel .titre-vue { margin-right: 0; }
  .barre-espace.tel .titre-vue h1, .barre-espace.tel .barre-contexte h1, .barre-espace.tel .barre-contexte-zone > h1 { font-size: 18px; }
  .barre-espace.tel :is(.titre-vue-sous, .barre-contexte-sur) { font-size: 11.5px; line-height: 14px; height: 14px; }
  .barre-espace.tel :is(.titre-vue.avec-sur > h1, .titre-vue-bouton, .avec-sur .barre-contexte-titre) { height: 28px; }
  .barre-espace.tel .titre-vue-bouton { padding: 0 6px; margin-left: -6px; gap: 4px; }
  .barre-espace.tel .barre-contexte { max-width: none; height: 44px; padding: 0 6px; margin-left: -6px; }
  .barre-espace.tel .barre-contexte.avec-sur { flex-direction: column; justify-content: center; }
  .be-action { background: var(--accent); color: var(--sur-accent); }
  .be-action:hover { background: var(--accent-survol); color: var(--sur-accent); }
  .be-tiroir { position: relative; flex: none; }
  .be-pastille { position: absolute; top: 9px; right: 8px; width: 9px; height: 9px; border-radius: 999px; background: var(--accent); box-shadow: 0 0 0 2px var(--fond); }
  /* la ligne des réglages : jamais sur deux, elle défile de côté */
  .barre-reglages { gap: 6px; padding: 0 4px; overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain; }
  .barre-reglages::-webkit-scrollbar { display: none; }
  /* les rubriques entre leurs gestes (‹ › du Journal) : les flèches aux deux bords */
  .barre-reglages.encadree { justify-content: space-between; }
  .barre-reglages > * { flex: none; }
  .barre-reglages .rond { width: 36px; height: 36px; }
  .barre-reglages .segments button { height: 30px; padding: 0 12px; }
  .barre-reglages :is(.puce-reglage, select.champ, .be-recherche) { height: 36px; min-height: 36px; }
  .barre-reglages button.puce { min-height: 36px; }
  .barre-reglages .be-rubrique { max-width: 200px; }
  /* la loupe de la vue, sur la première ligne : un rond ; ouverte, elle
     couvre la ligne le temps de la saisie ; un mot tapé la garde en bleu doux */
  .barre-espace.tel > .barre-ligne:first-child { position: relative; }
  .barre-espace.tel > .barre-ligne > .be-recherche:not(:focus-within) { width: 44px; height: 44px; padding: 0; justify-content: center; background: transparent; box-shadow: none; cursor: pointer; }
  .barre-espace.tel > .barre-ligne > .be-recherche:not(:focus-within) input { flex: 0 0 0; width: 0; }
  .barre-espace.tel > .barre-ligne > .be-recherche:not(:focus-within):not(:has(input:placeholder-shown)) { background: var(--accent-doux); color: var(--accent-texte); }
  .barre-espace.tel > .barre-ligne > .be-recherche:focus-within { position: absolute; inset: 0; z-index: 3; width: auto; height: 44px; padding: 0 14px; }
}

/* ————— la fiche (composants/fiche-depliee.js), posée dans l'inspecteur —————
   la tête porte le titre, le pied les gestes. */
.fiche-depliee {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--feuille); border-radius: var(--rayon-l);
  border: 1.5px solid var(--accent);
  box-shadow: var(--ombre-feuille);
  margin: 4px 0;
  scroll-margin: calc(var(--barre-haut) + 12px) 0 16px;
}
.fl-tete { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px 12px 18px; color: var(--encre); }
.fl-surtitre { display: flex; align-items: center; gap: 8px; min-height: 28px; font-size: 12.5px; font-weight: 800; color: var(--encre-2); }
.fl-surtitre .rond { color: inherit; }
.fl-titre { font-size: 23px; line-height: 1.2; overflow-wrap: anywhere; }
.fl-tete .titre-champ { font-family: var(--police-titre); font-size: 23px; font-weight: 700; background: transparent; border-color: transparent; padding-left: 6px; margin-left: -6px; }
.fl-tete .titre-champ:hover { border-color: var(--trait); }
.fl-tete .titre-champ:focus { background: var(--feuille); border-color: var(--accent); }
.fl-ligne { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; }
.fl-ligne .compteur { margin-left: auto; }
/* un champ court (heure, liste) garde sa taille dans une section de fiche */
.fiche-contenu > input[type='time'], .fiche-contenu > .champ-date, .fiche-contenu > select.champ { align-self: flex-start; width: auto; min-width: 150px; }
.fl-corps { padding: 0 18px 6px; border-top: 1px solid var(--trait); }
.fl-corps > .fiche-section:first-child { border-top: none; }
.fiche-depliee .fiche-section { grid-template-columns: 128px minmax(0, 1fr); }
/* le pied : les gestes de l'objet, puis Supprimer, l'aide, « ⋯ » ; un seul bleu plein par écran,
   celui de la tête de page — ici les gestes sont en craie */
.fl-pied { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px 10px 18px; border-top: 1px solid var(--trait); }
.fl-pied .bouton { height: 32px; padding: 0 12px; font-size: 13.5px; }
.fl-pied .bouton.principal { background: var(--accent-doux); color: var(--accent-texte); }
.fl-pied .bouton.principal:hover { background: var(--accent-bord); }
@media (max-width: 599px) {
  /* téléphone : la fiche est un écran à elle seule */
  .fiche-depliee { border: 1px solid var(--trait); box-shadow: none; margin: 0; }
  .fl-pied .bouton { height: 44px; }
  /* un écran a déjà son « ← » : pas de croix (la feuille de l'inspecteur garde la sienne) ; les sections prennent toute la largeur */
  .vue .fl-surtitre .rond { display: none; }
  .fiche-depliee .fiche-section { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .fiche-depliee .fiche-section > .section-titre { padding-top: 0; }
}


/* dans la barre, un seul style de bouton secondaire : la craie — le bleu
   plein de l'action reste le seul aplat */
.barre-espace .bouton:not(.principal) { border: none; }
.barre-espace .bouton.principal { height: 36px; }

/* ————— le lecteur intégré (composants/lecteur.js) : un PDF ou une image, de toute la hauteur ————— */
dialog.feuille.lecteur { width: min(1400px, calc(100vw - 24px)); height: calc(100dvh - 24px); max-height: none; }
.lecteur .feuille-tete { padding: 8px 10px 8px 16px; }
.lecteur .feuille-tete > .pousse { min-width: 0; }
.lecteur .feuille-tete h2 { font-size: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lecteur .feuille-tete .tuile { background: var(--creux-2); color: var(--encre-2); }
.lecteur .feuille-corps { padding: 0; gap: 0; border-top: 1px solid var(--trait); }
.lecteur-gestes { display: flex; align-items: center; gap: 6px; }
.lecteur-outils { flex: none; display: flex; align-items: center; gap: 8px; }
.lecteur-outils .compteur output { min-width: 52px; font-size: 13.5px; }
.lecteur-pagination { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; font-weight: 700; font-variant-numeric: tabular-nums; font-size: 13.5px; }
.lecteur-numero { width: 4ch; height: 24px; padding: 0 2px; border: none; border-radius: var(--rayon-s); background: var(--creux); font: inherit; color: var(--encre); text-align: center; }
.lecteur-numero:focus { outline: 2px solid var(--accent-bord); background: var(--feuille); }
.lecteur-total { color: var(--encre-3); white-space: nowrap; }

/* la table : les pages s'y suivent, centrées ; le papier reste blanc, même la nuit */
.lecteur-defile { position: relative; flex: 1; min-height: 0; overflow: auto; background: var(--creux-2); outline: none; overscroll-behavior: contain; }
.lecteur-piste { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 12px; width: max-content; min-width: 100%; }
.lecteur-page { position: relative; flex: none; background: #fff; box-shadow: var(--ombre-carte); --scale-round-x: 1px; --scale-round-y: 1px; }
.lecteur-canevas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.lecteur-vide { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--encre-2); }
.lecteur-image { flex: 1; min-height: 0; overflow: auto; display: flex; align-items: flex-start; justify-content: center; padding: 20px; background: var(--creux-2); }
.lecteur-image img { max-width: 100%; height: auto; border: 1px solid var(--trait); background: var(--feuille); }

/* le texte de la page, transparent par-dessus le dessin (repris de pdf.js) */
.textLayer { position: absolute; inset: 0; overflow: clip; opacity: 1; line-height: 1; text-align: initial; letter-spacing: normal; word-spacing: normal; text-size-adjust: none; forced-color-adjust: none; transform-origin: 0 0; z-index: 0; caret-color: CanvasText;
  --min-font-size: 1; --text-scale-factor: calc(var(--total-scale-factor) * var(--min-font-size)); --min-font-size-inv: calc(1 / var(--min-font-size)); }
.textLayer :is(span, br) { color: transparent; position: absolute; white-space: pre; cursor: text; transform-origin: 0% 0%; user-select: text; }
.textLayer > :not(.markedContent), .textLayer .markedContent span:not(.markedContent) {
  z-index: 1; --font-height: 0; font-size: calc(var(--text-scale-factor) * var(--font-height));
  --scale-x: 1; --rotate: 0deg; transform: rotate(var(--rotate)) scaleX(var(--scale-x)) scale(var(--min-font-size-inv));
}
.textLayer .markedContent { display: contents; }
.textLayer span[role='img'] { user-select: none; cursor: default; }
.textLayer ::selection { background: color-mix(in srgb, var(--accent) 28%, transparent); color: transparent; }
.textLayer br::selection { background: transparent; }
.textLayer .endOfContent { display: block; position: absolute; inset: 100% 0 0; z-index: 0; cursor: default; user-select: none; }
.textLayer.selecting .endOfContent { top: 0; }

@media (max-width: 899px) {
  .lecteur-outils .segments { display: none; }
  .lecteur-gestes .bouton { width: 30px; padding: 0; }
  .lecteur-gestes .bouton span { display: none; }
}
@media (max-width: 599px) {
  dialog.feuille.lecteur { width: 100vw; height: calc(100dvh - 12px); }
  .lecteur .tuile { display: none; }
  .lecteur-gestes .bouton { width: 38px; }
  .lecteur .feuille-pied { justify-content: center; padding-top: 8px; }
}
/* l'année regardée (annee.js) : courte, elle ne se coupe jamais */
.be-ligne > .puce-annee { flex: none; }
.puce-annee > span { white-space: nowrap; }
