/* Écran cathodique (Lezieu, refait le 08/11 d'après Naked City Films) : l'accueil et son panneau, la grille bleu nuit, les dossiers sur fond bleu, la page d'un dossier, le lecteur.
   Couleurs de la mise en page : --fond (le bleu nuit), --texte (les mots sur le sombre), --accent (le bleu : les pavés, le rideau, les mots sur le clair) ;
   le gris clair des panneaux est fixe. Typo : --sans (tout), --serif en italique (les dossiers, les surlignages). */

.m-crt { --cr-clair: #E6E6E6; --cr-m: clamp(16px, 2.78cqw, 40px); --cr-g: clamp(26px, 3.06cqw, 44px); --cr-h2: clamp(18px, 1.81cqw, 26px); --cr-p: clamp(13px, 1.25cqw, 18px);
  background: var(--fond); color: var(--texte); font-family: var(--sans); user-select: none; -webkit-user-select: none; }
.m-crt button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: inherit; letter-spacing: inherit; }
.m-crt [hidden] { display: none !important; }
.m-crt sup { font-size: .62em; vertical-align: 0; position: relative; top: -.7em; margin-left: .18em; }
.cr-page { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; }
.cr-page::-webkit-scrollbar { display: none; }

/* l'accueil : le montage en plein écran, le panneau clair au milieu */
.cr-accueil { position: relative; height: var(--H); overflow: hidden; background: #000; }
.cr-montage { position: absolute; inset: 0; }
.cr-montage img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; }
.cr-panneau { position: absolute; left: 23.8%; top: 19.7%; width: 52.4%; height: 57.3%; display: flex; flex-direction: column; background: var(--cr-clair); color: var(--accent); padding: var(--cr-m) var(--cr-m) 0; box-sizing: border-box; }
.cr-pnav { display: flex; justify-content: space-between; font: 500 var(--cr-p)/1.2 var(--sans); letter-spacing: -.01em; }
.m-crt .cr-lien { font: 500 var(--cr-p)/1.2 var(--sans); letter-spacing: -.01em; transition: opacity .25s; }
.m-crt .cr-lien:hover { opacity: .6; }
.cr-logo { display: flex; align-items: flex-start; font-size: var(--f1, 120px); overflow: hidden; }
.cr-logo-p { margin-top: auto; margin-bottom: calc(var(--cr-m) * .8 + clamp(22px, 2.08cqw, 30px)); }
.cr-l1 { display: block; font: 800 var(--f1, 120px)/.76 var(--sans); letter-spacing: -.05em; color: var(--accent); white-space: nowrap; padding-bottom: .02em; }
.cr-bloc { flex: 1; min-width: .4em; height: .74em; margin-left: .06em; background: var(--accent); display: flex; justify-content: flex-end; align-items: flex-start; padding: .05em .06em 0; box-sizing: border-box; overflow: hidden; }
.cr-bloc > span { display: block; font: 800 var(--f2, 40px)/.86 var(--sans); letter-spacing: -.04em; color: var(--cr-clair); white-space: nowrap; }
.cr-ruban { position: absolute; left: 0; right: 0; bottom: 0; height: clamp(22px, 2.08cqw, 30px); background: var(--accent); overflow: hidden; display: flex; align-items: center; }
.cr-ruban > div { display: flex; flex: none; animation: cr-ruban 26s linear infinite; }
.cr-ruban span { flex: none; padding: 0 1.1em; font: 500 clamp(10px, .9cqw, 13px)/1 var(--sans); color: color-mix(in srgb, var(--cr-clair) 62%, var(--accent)); white-space: nowrap; }
@keyframes cr-ruban { to { transform: translateX(-50%); } }

/* le haut, une fois l'accueil passé : « Dossiers », le nom, « Photos » ; bleu sur le clair, blanc ailleurs */
.cr-tete { position: absolute; z-index: 6; left: 0; right: 0; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; padding: clamp(14px, 2.1cqw, 30px) var(--cr-m) 0; color: var(--texte);
  opacity: 0; translate: 0 -12px; pointer-events: none; transition: opacity .35s, translate .35s, color .3s; }
.cr-tete.vu { opacity: 1; translate: 0 0; pointer-events: auto; }
.cr-tete.sur-clair { color: var(--accent); }
.cr-tete > [data-crmenu] { grid-column: 1; grid-row: 1; justify-self: start; margin-top: .3em; }
.cr-tete > [data-crtout] { grid-column: 3; grid-row: 1; justify-self: end; margin-top: .3em; }
.cr-tete > .cr-mini { grid-column: 2; grid-row: 1; }
.m-crt .cr-mini { position: relative; display: block; max-width: 34cqw; padding-right: .62em; font: 800 clamp(20px, 2.6cqw, 38px)/.86 var(--sans); letter-spacing: -.05em; }
.cr-mini span { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.cr-mini i { position: absolute; right: 0; top: 0; width: .52em; height: .22em; background: currentColor; }

/* le rideau des dossiers */
.cr-menu { position: absolute; inset: 0; z-index: 8; background: var(--accent); color: #fff; padding: clamp(14px, 2.1cqw, 30px) var(--cr-m); box-sizing: border-box; overflow-y: auto; scrollbar-width: none; }
.cr-menu-h { display: flex; justify-content: space-between; }
.cr-menu-cols { display: flex; gap: clamp(28px, 7.3cqw, 105px); margin-top: clamp(22px, 2.4cqw, 34px); }
.cr-col { display: flex; flex-direction: column; align-items: flex-start; }
.cr-col-t { font: 500 clamp(11px, .9cqw, 13px)/1.6 var(--sans); color: color-mix(in srgb, #fff 55%, var(--accent)); margin-bottom: .35em; }
.m-crt .cr-mnom { font: 500 clamp(13px, .95cqw, 14px)/1.25 var(--sans); letter-spacing: -.01em; color: #fff; padding: .08em 0; transition: opacity .2s; }
.m-crt .cr-mnom.pale { opacity: .5; }
.cr-menu-ph { position: absolute; right: var(--cr-m); bottom: clamp(16px, 1.5cqw, 22px); width: min(21cqw, 300px); aspect-ratio: 16 / 9; opacity: 0; transition: opacity .3s; pointer-events: none; }
.cr-menu-ph.vu { opacity: 1; }
.cr-menu-ph img { width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; filter: grayscale(1) contrast(1.05); }

/* le volet bleu entre deux pages */
.cr-volet { position: absolute; inset: 0; z-index: 9; background: var(--accent); clip-path: inset(0 100% 0 0); pointer-events: none; }

/* les textes : en grand, les surlignages en italique sur le bleu */
.cr-grand { margin: 0; font: 500 var(--cr-g)/1.2 var(--sans); letter-spacing: -.025em; text-wrap: pretty; }
.cr-petit { margin: 0; font: 500 var(--cr-p)/1.25 var(--sans); letter-spacing: -.01em; }
.m-crt .cr-sl { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -.01em; background: var(--accent); color: var(--cr-clair); padding: 0 .08em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.m-crt button.cr-sl:hover { color: #fff; }
.cr-grand, .cr-noms, .cr-fiche-g { opacity: 0; translate: 0 34px; transition: opacity .9s cubic-bezier(.2, .8, .2, 1), translate .9s cubic-bezier(.2, .8, .2, 1); }
:is(.cr-grand, .cr-noms, .cr-fiche-g).vu { opacity: 1; translate: 0 0; }

/* la phrase sur fond clair */
.cr-intro { position: relative; min-height: calc(var(--H) * .98); display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; padding: calc(var(--H) * .52) var(--cr-m) calc(var(--H) * .12); box-sizing: border-box; background: var(--cr-clair); color: var(--accent); }
.cr-intro .cr-grand { grid-column: 2; }
.cr-bas { position: absolute; left: var(--cr-m); bottom: var(--cr-m); }

/* la grille bleu nuit */
.cr-films { background: var(--fond); color: var(--texte); padding: clamp(60px, 9cqw, 130px) var(--cr-m) clamp(60px, 9cqw, 130px); }
.cr-grille { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(40px, 6.9cqw, 100px) 12px; align-items: start; }
.cr-film { grid-column: span var(--c); margin: 0; position: relative; opacity: 0; translate: 0 48px; transition: opacity 1s cubic-bezier(.2, .8, .2, 1), translate 1s cubic-bezier(.2, .8, .2, 1); }
.cr-film.vu { opacity: 1; translate: 0 0; }
.m-crt .cr-ecran { position: relative; display: block; width: 100%; aspect-ratio: var(--r); overflow: hidden; background: color-mix(in srgb, var(--texte) 8%, var(--fond)); }
.cr-ecran > :is(img, i) { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; display: block; object-fit: cover; }
.cr-bruit { background: var(--fond); clip-path: inset(0 0 0 100%); }
.cr-bruit > b { position: absolute; inset: 0; background-size: 100% 100%; -webkit-mask-size: 96px 96px; mask-size: 96px 96px; }
.cr-bleu-b { background: var(--accent); clip-path: inset(0 100% 0 0); }
.cr-vif { clip-path: inset(0 100% 0 0); -webkit-mask-size: 96px 96px; mask-size: 96px 96px; }
.cr-vif.joue { animation: cr-joue 9s linear forwards; }
@keyframes cr-joue { from { scale: 1; } to { scale: 1.12; } }
.cr-film figcaption { display: flex; flex-direction: column; padding-top: clamp(8px, .9cqw, 13px); }
.cr-cli { font: italic 400 var(--cr-h2)/1.25 var(--serif); color: var(--accent); filter: brightness(1.35); }
.cr-tit { font: 500 var(--cr-h2)/1.15 var(--sans); letter-spacing: -.03em; color: var(--texte); }
.cr-film .cr-x { top: 10px; right: 10px; z-index: 3; }
.m-crt .cr-toutes { display: inline-flex; align-items: baseline; gap: .3em; margin-top: clamp(50px, 6.9cqw, 100px); font: 500 var(--cr-g)/1.1 var(--sans); letter-spacing: -.03em; color: var(--texte); }
.cr-toutes sup { font-size: .4em; top: -1.1em; }
.cr-toutes i { font-style: normal; transition: translate .3s; }
.cr-toutes:hover i { translate: .2em 0; }

/* les dossiers sur fond bleu : la rangée de cartes glisse sur le côté */
.cr-bleu { position: relative; background: var(--accent); color: #fff; }
.cr-colle { display: flex; flex-direction: column; gap: clamp(30px, 4cqw, 60px); padding: clamp(60px, 8cqw, 120px) var(--cr-m) var(--cr-m); box-sizing: border-box; }
.cr-bleu.colle .cr-colle { position: sticky; top: 0; height: var(--H); }
.cr-bleu-h { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.cr-bleu .cr-sl { background: var(--fond); color: var(--texte); }
.cr-rangee { margin: auto calc(var(--cr-m) * -1) 0; padding: 0 var(--cr-m); overflow: hidden; }
.cr-rangee-in { display: flex; gap: 12px; width: max-content; will-change: translate; }
.m-crt .cr-carte { position: relative; flex: none; width: clamp(220px, 30cqw, 440px); aspect-ratio: 1; overflow: hidden; background: var(--fond); }
.cr-carte img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; display: block; transition: scale .8s cubic-bezier(.2, .8, .2, 1); }
.cr-carte:hover img { scale: 1.04; }
.cr-carte-t { position: absolute; inset: 0 0 auto; display: flex; flex-direction: column; align-items: flex-start; padding: clamp(12px, 1.4cqw, 20px); background: linear-gradient(rgba(0, 0, 0, .5), rgba(0, 0, 0, 0) 100%); padding-bottom: 3em; }
.cr-carte-t em { font: italic 400 var(--cr-h2)/1.2 var(--serif); }
.cr-carte-t b { font: 500 var(--cr-g)/1.05 var(--sans); letter-spacing: -.03em; }
.cr-carte-t small { margin-top: .5em; font: 500 var(--cr-p)/1.2 var(--sans); opacity: .8; }

/* la page d'un dossier : sa fiche sur fond clair, les autres dossiers en grand sur fond bleu */
.cr-fiche { min-height: calc(var(--H) * .95); display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; align-items: end; padding: calc(var(--H) * .2) var(--cr-m) var(--cr-m); box-sizing: border-box; background: var(--cr-clair); color: var(--accent); }
.cr-fiche-g { display: flex; align-items: flex-end; gap: clamp(10px, 1.2cqw, 18px); min-width: 0; }
.cr-portrait { flex: none; width: clamp(60px, 5.6cqw, 80px); aspect-ratio: 1; max-width: none; object-fit: cover; display: block; }
.cr-fiche-g > div { min-width: 0; }
.cr-fiche-g .cr-sl { font-size: var(--cr-h2); line-height: 1.2; }
.cr-nom { margin: .1em 0 0; font: 500 var(--cr-g)/1 var(--sans); letter-spacing: -.035em; overflow-wrap: anywhere; }
.cr-fiche-d { align-self: center; }
.cr-autres { background: var(--accent); color: #fff; padding: clamp(80px, 12cqw, 170px) var(--cr-m) clamp(50px, 6cqw, 90px); }
.cr-noms { margin: .5em 0 0; font: 500 var(--cr-g)/1.12 var(--sans); letter-spacing: -.035em; }
.cr-noms button { transition: opacity .25s; }
.cr-noms button:hover { opacity: .6; }

/* le pied : les liens, le nom de la galerie en géant */
.cr-pied { background: var(--fond); color: var(--accent); padding: clamp(60px, 8cqw, 120px) var(--cr-m) var(--cr-m); }
.cr-pied-liens { display: grid; grid-template-columns: repeat(3, max-content); justify-content: end; gap: .2em 1.6em; font: 500 var(--cr-g)/1.1 var(--sans); letter-spacing: -.035em; }
.cr-pied-liens button { filter: brightness(1.35); transition: color .25s, filter .25s; }
.cr-pied-liens button:hover { color: var(--texte); filter: none; }
.cr-logo-g { margin-top: clamp(50px, 7cqw, 100px); }

/* l'arrivée */
.cr-debut { position: absolute; inset: 0; z-index: 10; cursor: pointer; }
.cr-debut > i { position: absolute; display: block; }
.cr-gris { inset: 0; background: #9B9B9B; transition: opacity .12s; }
.cr-clair { left: 0; top: 0; bottom: 0; width: 0; background: var(--cr-clair); transition: opacity .12s; }
.cr-pave { background: var(--accent); }
.m-crt.en-debut .cr-tete { visibility: hidden; }

/* sur téléphone (et dans l'aperçu téléphone) */
@container (max-width: 620px) {
  .m-crt { --cr-m: 16px; --cr-g: 25px; --cr-h2: 17px; --cr-p: 14px; }
  .cr-panneau { left: 4%; width: 92%; top: 15%; height: 62%; padding: 16px 16px 0; }
  .cr-intro, .cr-fiche, .cr-bleu-h { grid-template-columns: 1fr; }
  .cr-intro { padding-top: calc(var(--H) * .3); }
  .cr-intro .cr-grand { grid-column: 1; }
  .cr-fiche { align-content: end; gap: 26px; }
  .cr-fiche-d { align-self: start; }
  .cr-grille { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 40px 10px; }
  .m-crt .cr-carte { width: 62cqw; }
  .cr-pied-liens { grid-template-columns: repeat(2, max-content); justify-content: start; }
  .cr-tete { padding-top: 14px; }
  .m-crt .cr-mini { max-width: 44cqw; }
  .cr-menu-cols { flex-direction: column; gap: 22px; }
  .cr-menu-ph { width: 46cqw; }
}

/* la visionneuse, habillée comme le lecteur du site : fond bleu nuit, la ligne d'avancement, le dossier et « Fermer ✕ » en bas */
.lb.peau-crt { background: var(--crl-f, #050516); color: var(--crl-t, #fff); font-family: var(--crl-sans); grid-template-rows: auto minmax(0, 1fr) auto auto auto; }
.lb.peau-crt :is(.lb-top, .lb-bot) { color: var(--crl-t); font: 500 13px/1.2 var(--crl-sans); letter-spacing: -.01em; }
.lb.peau-crt .lb-top { padding: 16px 40px 8px; }
.lb.peau-crt :is(.lb-top, .lb-bot) button { background: transparent; color: var(--crl-t); border: 0; border-radius: 0; font: inherit; letter-spacing: inherit; font-weight: 500; opacity: .78; transition: opacity .25s; }
.lb.peau-crt :is(.lb-top, .lb-bot) button:hover { background: transparent; opacity: 1; }
.lb.peau-crt :is(.lb-top, .lb-bot) :is(button[aria-pressed=true], button.on) { opacity: 1; }
.lb.peau-crt .lb-zoom { background: transparent; }
.lb.peau-crt :is(.lb-name, .lb-pct, .lb-info .lb-name) { font: inherit; color: var(--crl-t); }
.lb.peau-crt .lb-exif { color: color-mix(in srgb, var(--crl-t) 60%, transparent); }
.lb.peau-crt .lb-k { color: var(--crl-t); border-color: color-mix(in srgb, var(--crl-t) 35%, transparent); opacity: .6; }
.lb.peau-crt .lb-x[data-x] { display: none; }
.lb.peau-crt .lb-x.lb-plein { border: 0 !important; background: transparent !important; border-radius: 0 !important; }
.lb.peau-crt .lb-nav { display: none; }
.lb.peau-crt .lb-fant { display: none; }
.lb.peau-crt .lb-view { margin: 0 40px; }
.lb.peau-crt .lb-bot { border-top: 0; }
.lb.peau-crt .lb-bot .lb-tiroir { background: var(--crl-f); color: var(--crl-t); border: 0; }
.lb.peau-crt .lb-bot :is(.lba, .lbd) { background: transparent; border: 1px solid color-mix(in srgb, var(--crl-t) 25%, transparent); color: var(--crl-t); border-radius: 0; }
.lb.peau-crt .lb-bot :is(.lba, .lbd).on { background: var(--crl-a); border-color: var(--crl-a); color: #fff; opacity: 1; }
.lb.peau-crt .lb-bot .lbd kbd { background: color-mix(in srgb, var(--crl-t) 16%, transparent); }
.cr-lb-balai { position: absolute; z-index: 2; background: var(--crl-a); pointer-events: none; clip-path: inset(0 100% 0 0); }
.cr-lb-barre { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; align-items: center; gap: 0 clamp(16px, 3cqw, 46px); padding: 16px 40px 4px; color: var(--crl-t); font: 500 16px/1.2 var(--crl-sans); letter-spacing: -.01em; }
.cr-lb-barre button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; opacity: .85; transition: opacity .2s; }
.cr-lb-barre button:hover { opacity: 1; }
.lb.peau-crt .cr-lb-fil { position: relative; height: 34px; opacity: 1; }
.cr-lb-fil::before { content: ''; position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: color-mix(in srgb, var(--crl-t) 55%, transparent); }
.cr-lb-fil i { position: absolute; top: 0; width: 16px; height: 14px; margin-left: -8px; background: var(--crl-a); transition: left .55s cubic-bezier(.7, 0, .2, 1); }
.cr-lb-n { position: absolute; top: 19px; translate: -50% 0; font-size: 12px; transition: left .55s cubic-bezier(.7, 0, .2, 1); }
.cr-lb-tot { font-size: 16px; }
.cr-lb-pied { display: flex; align-items: flex-end; gap: clamp(20px, 3.3cqw, 48px); padding: 22px 40px 32px; color: var(--crl-t); }
.lb.peau-crt :is(.cr-lb-dos, .cr-lb-x) { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; text-align: left; }
.cr-lb-dos, .cr-lb-ph { display: grid; grid-template-columns: auto auto; align-items: end; justify-content: start; column-gap: .4em; min-width: 0; }
:is(.cr-lb-dos, .cr-lb-ph) small { grid-column: 1 / -1; font: 500 15px/1.4 var(--crl-sans); }
:is(.cr-lb-dos, .cr-lb-ph) span { font: 500 26px/1.1 var(--crl-sans); letter-spacing: -.035em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cr-lb-dos i { font-style: normal; font-size: 14px; align-self: start; transition: translate .25s; }
.cr-lb-dos:hover i { translate: 3px -3px; }
.cr-lb-x { margin-left: auto; display: flex; align-items: center; gap: 14px; font: 500 18px/1 var(--crl-sans); }
.cr-lb-x svg { width: 46px; height: 46px; transition: rotate .4s cubic-bezier(.7, 0, .2, 1); }
.cr-lb-x:hover svg { rotate: 90deg; }
.lb.lb-blanc.peau-crt { --crl-f: #E6E6E6 !important; --crl-t: var(--crl-a) !important; }
.lb.lb-noir.peau-crt { --crl-f: #050516 !important; --crl-t: #FFFFFF !important; }
.lb-dans.peau-crt .lb-exif { display: none; }
.lb-dans.peau-crt :is(.lb-top, .cr-lb-barre, .cr-lb-pied) { padding-left: 22px; padding-right: 22px; }
.lb-dans.peau-crt .lb-view { margin: 0 22px; }
@media (max-width: 1200px) { .lb.peau-crt .lb-exif { display: none; } }
@media (max-width: 760px), (pointer: coarse) and (max-height: 500px) {
  .lb.peau-crt .lb-top { padding: 10px 14px 6px; }
  .lb.peau-crt .lb-view { margin: 0 14px; }
  .cr-lb-barre { padding: 10px 14px 2px; font-size: 14px; gap: 0 14px; }
  .cr-lb-pied { gap: 16px; padding: 14px 14px 18px; }
  :is(.cr-lb-dos, .cr-lb-ph) small { font-size: 12px; }
  :is(.cr-lb-dos, .cr-lb-ph) span { font-size: 17px; }
  .cr-lb-x { gap: 8px; font-size: 14px; }
  .cr-lb-x svg { width: 28px; height: 28px; }
}
/* l'aperçu téléphone de la Mise en page (.device.mobile) : les mêmes règles qu'un vrai téléphone (15/11) */
.device.mobile .lb.peau-crt .lb-top { padding: 10px 14px 6px; }
.device.mobile .lb.peau-crt .lb-view { margin: 0 14px; }
.device.mobile .cr-lb-barre { padding: 10px 14px 2px; font-size: 14px; gap: 0 14px; }
.device.mobile .cr-lb-pied { gap: 16px; padding: 14px 14px 18px; }
.device.mobile :is(.cr-lb-dos, .cr-lb-ph) small { font-size: 12px; }
.device.mobile :is(.cr-lb-dos, .cr-lb-ph) span { font-size: 17px; }
.device.mobile .cr-lb-x { gap: 8px; font-size: 14px; }
.device.mobile .cr-lb-x svg { width: 28px; height: 28px; }

.device.mobile .lb.peau-crt :is(.lb-top, .cr-lb-barre, .cr-lb-pied) { padding-left: 14px; padding-right: 14px; }
.device.mobile .lb.peau-crt :is(.cr-lb-dos, .cr-lb-ph) span { font-size: 17px; }
.device.mobile .lb.peau-crt .cr-lb-x svg { width: 28px; height: 28px; }
