/* Journal d'un ciné-journal (module cine-journal.php) : bandeau sous l'en-tête (07/10). Même langue que la barre « Fil » d'un article
   de cycle (assets/article-cycle.css) : aplat clair, filet, Oswald, vert pour l'étiquette et le mois choisi. Le reste du journal est
   stylé dans Oxygen (classes lrv-cj-*). */

/* Sous l'en-tête (z-index 40) : ses menus, la recherche et le menu du téléphone passent devant. */
.lrv-cjf { position: fixed; top: 0; left: 0; right: 0; z-index: 39; background: var(--lrv-surface, #efeeec); border-bottom: 1px solid rgba(36,33,36,.1);
  color: var(--lrv-ink, #242124); font-family: var(--lrv-font-title, 'Oswald'), sans-serif; transform: translateY(-110%); visibility: hidden;
  transition: transform .25s ease, visibility 0s linear .25s; }
.lrv-cjf.is-on { transform: none; visibility: visible; transition: transform .25s ease, visibility 0s; }
.lrv-cjf[hidden], .lrv-cjf [hidden] { display: none !important; }
.lrv-cjf a { color: inherit; text-decoration: none; }
.lrv-cjf-in { display: flex; align-items: center; gap: 20px; max-width: 1232px; height: 52px; margin: 0 auto; padding: 0 26px; box-sizing: border-box; }
.lrv-cjf-cy { display: flex; align-items: baseline; gap: 10px; flex: 1; min-width: 0; margin: 0; }
.lrv-cjf-lab { flex: none; color: var(--lrv-green, #547038); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.lrv-cjf-name { overflow: hidden; font-size: 17px; line-height: 1.2; white-space: nowrap; text-overflow: ellipsis; }
/* Le nom du mois est un bouton (1.43.0) : il ouvre le panneau des mois, comme « Les notules » */
.lrv-cjf .lrv-cjf-mbtn { display: flex; align-items: center; min-width: 0; min-height: 44px; margin: 0; padding: 0; border: 0; border-radius: 0;
  background: none; box-shadow: none; color: inherit; font: inherit; text-align: left; cursor: pointer; transition: color .2s; }
.lrv-cjf .lrv-cjf-mbtn:hover, .lrv-cjf .lrv-cjf-mbtn[aria-expanded="true"] { color: var(--lrv-green, #547038); }
.lrv-cjf-nav { display: flex; align-items: center; gap: 4px; flex: none; }
.lrv-cjf-nav a, .lrv-cjf-tog { display: flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 0; background: none;
  color: var(--lrv-grey, #55595c); font: 400 15px var(--lrv-font-title, 'Oswald'), sans-serif; white-space: nowrap; cursor: pointer; }
.lrv-cjf-al { color: var(--lrv-ink, #242124); }
.lrv-cjf-nav a:hover, .lrv-cjf-nav a:hover .lrv-cjf-al, .lrv-cjf-tog:hover { color: var(--lrv-green, #547038); }
/* Déroulant sans cadre, comme « Année du film » des rubriques : texte, chevron vert, souligné vert quand il est ouvert */
.lrv-cjf-tog { margin-left: 10px; padding: 0 2px; border-bottom: 2px solid transparent; color: var(--lrv-ink, #242124); transition: color .2s, border-color .2s; }
.lrv-cjf-tog svg { color: var(--lrv-green, #547038); transition: transform .2s; }
.lrv-cjf-tog[aria-expanded="true"] { border-bottom-color: var(--lrv-green, #547038); }
.lrv-cjf-tog[aria-expanded="true"] svg { transform: rotate(180deg); }
.lrv-cjf-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lrv-cjf :focus-visible { outline: 2px solid var(--lrv-green, #547038); outline-offset: 2px; }

/* Panneau : les mois (le mois lu souligné de vert), puis les notules du mois lu, sur deux colonnes */
.lrv-cjf-panel { border-top: 1px solid rgba(36,33,36,.1); }
.lrv-cjf-pin { max-width: 1232px; max-height: calc(100vh - 160px); overflow-y: auto; margin: 0 auto; padding: 14px 26px 22px; box-sizing: border-box; }
.lrv-cjf-months { display: flex; flex-wrap: wrap; gap: 0 22px; margin: 0 0 10px; padding: 0; list-style: none; }
.lrv-cjf-months li { margin: 0; padding: 0; list-style: none; }
.lrv-cjf-months li::before { content: none; }
.lrv-cjf-m { display: inline-flex; align-items: center; min-height: 44px; color: var(--lrv-grey, #55595c) !important; font-size: 16px; letter-spacing: .03em; border-bottom: 2px solid transparent; }
.lrv-cjf-m:hover { color: var(--lrv-ink, #242124) !important; }
.lrv-cjf-m[aria-current] { color: var(--lrv-ink, #242124) !important; border-bottom-color: var(--lrv-green, #547038); }
/* Deux colonnes qui se lisent de haut en bas (25, 24, 21… à gauche, la suite à droite), pas ligne par ligne (1.34.1) */
.lrv-cjf .lrv-cj-toc { display: block; columns: 2; column-gap: 48px; margin: 0; }
.lrv-cjf .lrv-cj-toc > li { break-inside: avoid; }

/* Les ancres (notule, mois) arrivent sous l'en-tête et le bandeau */
body.lrv-cj-page .lrv-cj-entry, body.lrv-cj-page .lrv-cj-month { scroll-margin-top: 132px; }

@media (max-width: 1023px) {
  body.lrv-cj-page .lrv-cj-entry, body.lrv-cj-page .lrv-cj-month { scroll-margin-top: 126px; }
}

/* ---------- Téléphone : mois et notule en icônes ; mois qui glissent au doigt ; notules sur une colonne ---------- */
@media (max-width: 767px) {
  .lrv-cjf-in { gap: 4px; height: 48px; padding: 0 6px 0 16px; }
  .lrv-cjf-lab { display: none; }
  .lrv-cjf-name { font-size: 15px; }
  .lrv-cjf .lrv-cjf-mbtn:hover { color: inherit; }
  .lrv-cjf-nav a { width: 40px; padding: 0; justify-content: center; font-size: 17px; }
  .lrv-cjf-al, .lrv-cjf-togt { display: none; }
  .lrv-cjf-tog { justify-content: center; min-width: 44px; margin-left: 2px; padding: 0 8px; }
  .lrv-cjf-pin { padding: 6px 16px 16px; }
  .lrv-cjf-months { flex-wrap: nowrap; gap: 0 18px; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .lrv-cjf-months::-webkit-scrollbar { display: none; }
  .lrv-cjf-m { white-space: nowrap; }
  .lrv-cjf .lrv-cj-toc { columns: 1; }
  body.lrv-cj-page .lrv-cj-entry, body.lrv-cj-page .lrv-cj-month { scroll-margin-top: 118px; }
}

@media (prefers-reduced-motion: reduce) {
  .lrv-cjf, .lrv-cjf.is-on, .lrv-cjf-tog svg { transition: none !important; }
}
