/* Perchoir — feuille de style unique. Couleurs par rôle (variables), thème sombre selon le système. */
:root {
  color-scheme: light;
  --fond: #f6f4ee;
  --surface: #ffffff;
  --surface-2: #f0ede4;
  --trait: #e2ddd0;
  --trait-fort: #cfc8b6;
  --encre: #1c1b18;
  --encre-2: #55524a;
  --encre-3: #8a8577;
  --marine: #1b2a41;
  --marine-2: #26395a;
  --sur-marine: #e9e4d6;
  --sur-marine-2: #a9b3c4;
  --accent: #1f5fae;
  --accent-fond: #e6eefa;
  --surligne: #ffe58a;
  --bon: #1d7a46;
  --bon-fond: #e0f2e6;
  --mauvais: #b3261e;
  --mauvais-fond: #fbe6e3;
  --attente: #8a6100;
  --attente-fond: #fbf0d2;
  --neutre-fond: #ece9e0;
  --serie-1: #2a78d6; --serie-2: #eb6834; --serie-3: #1baf7a; --serie-4: #eda100;
  --serie-5: #e87ba4; --serie-6: #008300; --serie-7: #6250d6; --serie-8: #e34948;
  --rayon: 10px;
  --ombre: 0 8px 28px rgba(27, 42, 65, .16);
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --fond: #14161a; --surface: #1c1f25; --surface-2: #252930; --trait: #2e333c; --trait-fort: #434957;
    --encre: #ece9e1; --encre-2: #b9b5a9; --encre-3: #868275;
    --marine: #10151d; --marine-2: #1d2634; --sur-marine: #e3dfd3; --sur-marine-2: #8d98ab;
    --accent: #7fb0ee; --accent-fond: #1d2c44; --surligne: #7a5c00;
    --bon: #6fcf97; --bon-fond: #173323; --mauvais: #f08a82; --mauvais-fond: #3a1c1a;
    --attente: #e3b84f; --attente-fond: #3a2e10; --neutre-fond: #2a2e36;
    --serie-1: #3987e5; --serie-2: #d95926; --serie-3: #199e70; --serie-4: #c98500;
    --serie-5: #d55181; --serie-6: #0ca30c; --serie-7: #9085e9; --serie-8: #e66767;
    --ombre: 0 8px 28px rgba(0, 0, 0, .5);
  }
}
* { box-sizing: border-box; }
html { font-size: 15px; }
body { margin: 0; font-family: var(--sans); color: var(--encre); background: var(--fond); line-height: 1.45; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0; line-height: 1.2; }
h1 { font-size: 1.7rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1.02rem; }
button, input, select, textarea { font: inherit; color: inherit; }
mark { background: var(--surligne); color: inherit; padding: 0 .1em; border-radius: 3px; }
mark.courant { outline: 2px solid var(--accent); }
.chargement, .vide { color: var(--encre-3); padding: 2.5rem 1rem; text-align: center; }
.erreur { color: var(--mauvais); background: var(--mauvais-fond); padding: .6rem .8rem; border-radius: 8px; margin: .6rem 0; }
.discret { color: var(--encre-3); } .petit { font-size: .86rem; }
[hidden] { display: none !important; }

/* ---- boutons et champs ---- */
.bouton { display: inline-flex; align-items: center; gap: .4rem; padding: .42rem .8rem; border-radius: 8px; border: 1px solid var(--trait-fort);
  background: var(--surface); cursor: pointer; white-space: nowrap; }
.bouton:hover { border-color: var(--encre-3); text-decoration: none; }
.bouton.principal { background: var(--marine); border-color: var(--marine); color: #fff; }
.bouton.principal:hover { background: var(--marine-2); }
.bouton.danger { color: var(--mauvais); }
.bouton.plat { border-color: transparent; background: transparent; padding: .3rem .5rem; }
.bouton.plat:hover { background: var(--surface-2); }
.bouton:disabled { opacity: .5; cursor: default; }
.champ { width: 100%; padding: .48rem .65rem; border: 1px solid var(--trait-fort); border-radius: 8px; background: var(--surface); }
.champ:focus, .bouton:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
label.ligne { display: block; margin: .7rem 0; } label.ligne > span { display: block; font-size: .86rem; color: var(--encre-2); margin-bottom: .2rem; }
.interrupteur { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; user-select: none; }
.interrupteur input { appearance: none; width: 2.2rem; height: 1.25rem; border-radius: 1rem; background: var(--trait-fort); position: relative; cursor: pointer; margin: 0; transition: background .15s; }
.interrupteur input::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.25rem - 4px); height: calc(1.25rem - 4px); border-radius: 50%; background: #fff; transition: left .15s; }
.interrupteur input:checked { background: var(--accent); } .interrupteur input:checked::after { left: calc(2.2rem - 1.25rem + 2px); }

/* ---- structure ---- */
.cadre { display: grid; grid-template-columns: 15.5rem 1fr; min-height: 100vh; }
.cadre.reduit { grid-template-columns: 3.6rem 1fr; }
.menu { background: var(--marine); color: var(--sur-marine); position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: thin; }
.menu .marque { display: flex; align-items: center; gap: .6rem; padding: 1rem 1rem .8rem; font-family: var(--serif); font-size: 1.3rem; color: #fff; }
.menu .marque img { width: 1.7rem; height: 1.7rem; border-radius: 6px; outline: 1px solid rgba(255,255,255,.25); }
.menu nav { flex: 1; padding: 0 .5rem; }
.menu .groupe { margin: .9rem 0 .2rem; padding: 0 .55rem; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--sur-marine-2); }
.menu a.entree, .menu span.entree { display: flex; align-items: center; gap: .6rem; padding: .42rem .55rem; border-radius: 8px; color: var(--sur-marine); white-space: nowrap; overflow: hidden; }
.menu a.entree:hover { background: var(--marine-2); text-decoration: none; }
.menu a.entree.actif { background: #fff; color: var(--marine); font-weight: 600; }
@media (prefers-color-scheme: dark) { .menu a.entree.actif { background: var(--sur-marine); } }
.menu span.entree { color: var(--sur-marine-2); opacity: .7; cursor: default; }
.menu .entree .ico { width: 1.3rem; text-align: center; flex: none; }
.menu .entree em { margin-left: auto; font-style: normal; font-size: .68rem; border: 1px solid currentColor; border-radius: 1rem; padding: 0 .4rem; opacity: .8; }
.menu .replier { margin: .5rem; padding: .45rem .55rem; border: 0; border-radius: 8px; background: transparent; color: var(--sur-marine-2); text-align: left; cursor: pointer; display: flex; gap: .6rem; }
.menu .replier:hover { background: var(--marine-2); color: #fff; }
.cadre.reduit .menu .groupe, .cadre.reduit .menu .entree .lib, .cadre.reduit .menu .entree em, .cadre.reduit .menu .marque span, .cadre.reduit .menu .replier .lib { display: none; }
.cadre.reduit .menu .entree { justify-content: center; }

.colonne { min-width: 0; display: flex; flex-direction: column; }
.entete { position: sticky; top: 0; z-index: 20; background: var(--surface); border-bottom: 1px solid var(--trait); display: flex; align-items: center; gap: .6rem; padding: .55rem 1.2rem; flex-wrap: wrap; }
.entete .recherche { flex: 1 1 14rem; max-width: 30rem; position: relative; }
.entete .recherche input { padding-left: 2rem; }
.entete .recherche::before { content: "⌕"; position: absolute; left: .65rem; top: .22rem; font-size: 1.2rem; color: var(--encre-3); }
.entete .espace { flex: 1; }
.contenu { padding: 1.3rem 1.5rem 4rem; max-width: 84rem; width: 100%; }
.titre-page { display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: .9rem; }
.titre-page .sous { color: var(--encre-2); }
.pastille-nb { display: inline-block; min-width: 1.2rem; padding: 0 .35rem; border-radius: 1rem; background: var(--mauvais); color: #fff; font-size: .72rem; text-align: center; line-height: 1.2rem; position: absolute; top: -.35rem; right: -.35rem; }

/* ---- menus déroulants ---- */
.deroulant { position: relative; display: inline-block; }
.panneau { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; min-width: 16rem; max-width: min(26rem, 92vw); background: var(--surface); border: 1px solid var(--trait-fort); border-radius: var(--rayon); box-shadow: var(--ombre); padding: .5rem; }
.panneau.droite { left: auto; right: 0; }
.panneau .liste { max-height: 19rem; overflow-y: auto; margin: .4rem 0 0; }
.panneau .option { display: flex; align-items: center; gap: .5rem; padding: .32rem .45rem; border-radius: 6px; cursor: pointer; }
.panneau .option:hover, .panneau .option.actif { background: var(--surface-2); }
.panneau .option .n { margin-left: auto; color: var(--encre-3); font-size: .8rem; font-variant-numeric: tabular-nums; }
.panneau .pied { display: flex; justify-content: space-between; gap: .5rem; border-top: 1px solid var(--trait); margin-top: .4rem; padding-top: .45rem; }
.panneau hr { border: 0; border-top: 1px solid var(--trait); margin: .4rem 0; }

/* ---- barre de liste ---- */
.onglets { display: flex; gap: .25rem; border-bottom: 1px solid var(--trait); margin-bottom: .9rem; flex-wrap: wrap; }
.onglets button, .onglets a { border: 0; background: none; padding: .5rem .8rem; cursor: pointer; color: var(--encre-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.onglets button.actif, .onglets a.actif { color: var(--encre); border-bottom-color: var(--marine); font-weight: 600; }
@media (prefers-color-scheme: dark) { .onglets button.actif, .onglets a.actif { border-bottom-color: var(--accent); } }
.onglets a:hover { text-decoration: none; color: var(--encre); }
.barre { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-bottom: .7rem; }
.barre .espace { flex: 1; }
.filtre { border-radius: 2rem; padding: .32rem .75rem; }
.filtre.pose { background: var(--accent-fond); border-color: var(--accent); color: var(--accent); }
.puces { display: flex; gap: .35rem; flex-wrap: wrap; align-items: center; margin-bottom: .7rem; }
.puce { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .55rem; border-radius: 2rem; background: var(--neutre-fond); font-size: .84rem; }
.puce button { border: 0; background: none; cursor: pointer; padding: 0 .1rem; color: var(--encre-2); }
.puce.mot { background: var(--surligne); } .puce.theme { background: var(--accent-fond); color: var(--accent); }
.total { color: var(--encre-2); font-variant-numeric: tabular-nums; }

/* ---- cartes ---- */
.cartes { display: grid; gap: .7rem; }
.carte { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .85rem 1rem; }
.carte .tete { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .84rem; color: var(--encre-2); margin-bottom: .35rem; }
.carte .tete .type { font-weight: 600; color: var(--encre); }
.carte .tete .espace { flex: 1; }
.carte h3 a { color: var(--encre); } .carte h3 { margin-bottom: .3rem; }
.carte .ligne-meta { color: var(--encre-2); font-size: .9rem; display: flex; gap: .3rem 1rem; flex-wrap: wrap; align-items: center; }
.carte .extrait { margin: .45rem 0 0; color: var(--encre-2); font-size: .93rem; overflow-wrap: anywhere; }
.carte .pied { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .55rem; align-items: center; }
.carte input.choix { margin: 0; width: 1rem; height: 1rem; }
.badge { display: inline-block; padding: .05rem .5rem; border-radius: 2rem; font-size: .78rem; font-weight: 600; background: var(--neutre-fond); color: var(--encre-2); white-space: nowrap; }
.badge.bon { background: var(--bon-fond); color: var(--bon); } .badge.mauvais { background: var(--mauvais-fond); color: var(--mauvais); }
.badge.attente { background: var(--attente-fond); color: var(--attente); } .badge.info { background: var(--accent-fond); color: var(--accent); }
.suivre { border: 0; background: none; cursor: pointer; font-size: 1.1rem; line-height: 1; color: var(--encre-3); padding: .1rem .2rem; border-radius: 6px; }
.suivre:hover { background: var(--surface-2); } .suivre.oui { color: #d99400; }
.personne { display: inline-flex; align-items: center; gap: .35rem; }
.portrait { width: 1.6rem; height: 1.6rem; border-radius: 50%; object-fit: cover; background: var(--surface-2); flex: none; }
.portrait.grand { width: 6.5rem; height: 6.5rem; border-radius: 14px; }
.portrait.moyen { width: 3.2rem; height: 3.2rem; border-radius: 10px; }

/* ---- pagination ---- */
.pagination { display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-top: 1rem; }
.pagination .espace { flex: 1; }
.pagination button.page { min-width: 2.1rem; padding: .3rem .4rem; justify-content: center; }
.pagination button.page.actif { background: var(--marine); color: #fff; border-color: var(--marine); }
.pagination input, .pagination select { width: auto; padding: .3rem .4rem; }

/* ---- indicateurs et graphiques ---- */
.indicateurs { display: grid; grid-template-columns: repeat(auto-fit, minmax(10.5rem, 1fr)); gap: .7rem; margin-bottom: .9rem; }
.indicateur { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .8rem 1rem; }
.indicateur .valeur { font-family: var(--serif); font-size: 1.8rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.indicateur .nom { color: var(--encre-2); font-size: .86rem; }
.indicateur label { display: flex; gap: .4rem; align-items: center; cursor: pointer; }
.panneaux { display: grid; grid-template-columns: repeat(auto-fit, minmax(21rem, 1fr)); gap: .7rem; margin-bottom: .9rem; }
.bloc { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: .9rem 1rem; min-width: 0; }
.bloc > h2, .bloc > h3 { margin-bottom: .6rem; }
.rangs { display: grid; gap: .32rem; }
.rang { display: grid; grid-template-columns: minmax(6rem, 42%) 1fr auto; gap: .6rem; align-items: center; font-size: .88rem; border: 0; background: none; padding: .1rem 0; text-align: left; width: 100%; }
button.rang { cursor: pointer; } button.rang:hover .nom { text-decoration: underline; }
.rang .nom { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rang .piste { height: .62rem; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.rang .piste i { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--serie-1); min-width: 2px; }
.rang .piste i.bon { background: var(--serie-3); }
.rang .chiffre { font-variant-numeric: tabular-nums; color: var(--encre-2); white-space: nowrap; }
.colonnes-graph { position: relative; }
.colonnes-graph svg { display: block; width: 100%; height: auto; overflow: visible; }
.colonnes-graph text { fill: var(--encre-2); font-size: 12px; font-family: var(--sans); }
.legende { display: flex; gap: .3rem 1rem; flex-wrap: wrap; font-size: .84rem; color: var(--encre-2); margin-bottom: .4rem; }
.legende i { display: inline-block; width: .7rem; height: .7rem; border-radius: 3px; margin-right: .3rem; vertical-align: -1px; }
.infobulle { position: absolute; pointer-events: none; background: var(--encre); color: var(--fond); padding: .35rem .55rem; border-radius: 6px; font-size: .8rem; white-space: nowrap; z-index: 5; transform: translate(-50%, -110%); }
table.tableau { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.tableau th { text-align: left; font-weight: 600; color: var(--encre-2); font-size: .82rem; padding: .45rem .6rem; border-bottom: 1px solid var(--trait-fort); white-space: nowrap; }
table.tableau th button { border: 0; background: none; cursor: pointer; font-weight: 600; color: inherit; padding: 0; }
table.tableau td { padding: .5rem .6rem; border-bottom: 1px solid var(--trait); vertical-align: top; }
table.tableau td.nb, table.tableau th.nb { text-align: right; font-variant-numeric: tabular-nums; }
.defile { overflow-x: auto; }

/* ---- fiche et texte long ---- */
.fiche-tete { display: flex; gap: 1.1rem; align-items: flex-start; margin-bottom: 1rem; flex-wrap: wrap; }
.fiche-tete .infos { flex: 1; min-width: 16rem; }
.fiche-tete .actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.texte-long { background: var(--surface); border: 1px solid var(--trait); border-radius: var(--rayon); padding: 1.3rem 1.5rem; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--serif); font-size: 1.04rem; line-height: 1.6; max-width: 52rem; }
.occurrences { position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 30; background: var(--marine); color: #fff; border-radius: 2rem; padding: .35rem .5rem .35rem .9rem; display: flex; align-items: center; gap: .3rem; box-shadow: var(--ombre); }
.occurrences button { border: 0; background: rgba(255,255,255,.14); color: #fff; width: 1.9rem; height: 1.9rem; border-radius: 50%; cursor: pointer; }
.occurrences button:hover { background: rgba(255,255,255,.3); }
dl.proprietes { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
dl.proprietes dt { color: var(--encre-2); font-size: .88rem; } dl.proprietes dd { margin: 0; }
.frise { list-style: none; margin: 0; padding: 0 0 0 1.3rem; border-left: 2px solid var(--trait-fort); }
.frise li { position: relative; padding: 0 0 .9rem .9rem; }
.frise li::before { content: ""; position: absolute; left: calc(-1.3rem - 7px + 1.3rem - 0px); margin-left: -1.3rem; top: .35rem; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--marine); }
.frise li.etape { font-family: var(--serif); font-weight: 600; font-size: 1.02rem; padding-top: .5rem; }
.frise li.etape::before { background: var(--marine); width: 12px; height: 12px; top: .85rem; }
@media (prefers-color-scheme: dark) { .frise li::before { border-color: var(--accent); } .frise li.etape::before { background: var(--accent); } }
.frise li.avenir { opacity: .6; }
.frise .quand { color: var(--encre-2); font-size: .84rem; font-variant-numeric: tabular-nums; }

/* ---- agenda ---- */
.calendrier { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--trait); border-radius: var(--rayon); overflow: hidden; background: var(--trait); gap: 1px; }
.calendrier .jour-nom { background: var(--surface-2); padding: .3rem .5rem; font-size: .8rem; color: var(--encre-2); text-align: center; }
.calendrier .case { background: var(--surface); min-height: 6.5rem; padding: .3rem; min-width: 0; }
.calendrier.semaine .case, .calendrier.jour .case { min-height: 22rem; }
.calendrier.jour { grid-template-columns: 1fr; }
.calendrier .case.hors { background: var(--fond); } .calendrier .case.auj .num { background: var(--marine); color: #fff; }
.calendrier .num { display: inline-block; min-width: 1.5rem; text-align: center; border-radius: 1rem; font-size: .82rem; color: var(--encre-2); margin-bottom: .2rem; }
.evt { display: block; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--serie-1); background: var(--accent-fond); border-radius: 4px; padding: .12rem .35rem; margin-bottom: 2px; font-size: .78rem; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--encre); }
.calendrier.semaine .evt, .calendrier.jour .evt { white-space: normal; }
.evt.senat { border-left-color: var(--serie-2); } .evt.gouv { border-left-color: var(--serie-3); } .evt.autre { border-left-color: var(--serie-4); }
.evt:hover { filter: brightness(.96); }
.plus-evts { font-size: .76rem; color: var(--encre-2); border: 0; background: none; cursor: pointer; padding: 0 .3rem; }

/* ---- fenêtres ---- */
.voile { position: fixed; inset: 0; background: rgba(15, 20, 30, .5); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 1rem; overflow-y: auto; }
.fenetre { background: var(--surface); border-radius: 14px; box-shadow: var(--ombre); width: min(46rem, 100%); padding: 1.3rem 1.5rem; }
.fenetre.etroite { width: min(27rem, 100%); }
.fenetre > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .8rem; gap: 1rem; }
.fenetre > footer { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.2rem; flex-wrap: wrap; }
.annonce { position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); background: var(--encre); color: var(--fond); padding: .55rem 1rem; border-radius: 2rem; z-index: 60; box-shadow: var(--ombre); }
.saisie-mots { display: flex; flex-wrap: wrap; gap: .35rem; padding: .4rem; border: 1px solid var(--trait-fort); border-radius: 8px; background: var(--surface); }
.saisie-mots input { flex: 1; min-width: 10rem; border: 0; outline: 0; background: transparent; padding: .15rem .3rem; }
.arbre { max-height: 20rem; overflow-y: auto; border: 1px solid var(--trait); border-radius: 8px; padding: .3rem; }
.arbre details > summary { list-style: none; display: flex; align-items: center; gap: .45rem; padding: .22rem .3rem; border-radius: 6px; cursor: pointer; }
.arbre details > summary::-webkit-details-marker { display: none; }
.arbre details > summary::after { content: "›"; margin-left: auto; color: var(--encre-3); transition: transform .12s; }
.arbre details[open] > summary::after { transform: rotate(90deg); }
.arbre summary:hover, .arbre label.feuille:hover { background: var(--surface-2); }
.arbre label.feuille { display: flex; gap: .45rem; padding: .18rem .3rem .18rem 1.9rem; border-radius: 6px; cursor: pointer; font-size: .92rem; }

/* ---- connexion ---- */
.connexion { min-height: 100vh; display: grid; place-items: center; background: var(--marine); padding: 1rem; }
.connexion form { background: var(--surface); border-radius: 16px; padding: 2rem; width: min(24rem, 100%); box-shadow: var(--ombre); }
.connexion h1 { display: flex; align-items: center; gap: .6rem; margin-bottom: .3rem; } .connexion h1 img { width: 2rem; border-radius: 7px; }

.grille-personnes { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: .7rem; }
.carte.personne-carte { display: flex; gap: .8rem; }
.carte.personne-carte .corps { flex: 1; min-width: 0; }
.grille-veilles { display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: .8rem; }
.direct iframe { width: 100%; aspect-ratio: 16 / 9; border: 0; border-radius: var(--rayon); background: #000; }

@media (max-width: 860px) {
  .cadre, .cadre.reduit { grid-template-columns: 1fr; }
  .menu { position: fixed; z-index: 45; width: 16rem; transform: translateX(-100%); transition: transform .18s; }
  .cadre.menu-ouvert .menu { transform: none; }
  .cadre.reduit .menu .groupe, .cadre.reduit .menu .entree .lib, .cadre.reduit .menu .marque span { display: initial; }
  .contenu { padding: 1rem .8rem 4rem; }
  .entete { padding: .5rem .8rem; }
  .bouton-menu { display: inline-flex !important; }
  .rang { grid-template-columns: minmax(5rem, 45%) 1fr auto; }
}
.bouton-menu { display: none; }
@media print { .menu, .entete, .barre, .pagination, .occurrences { display: none !important; } .cadre { display: block; } }
