/* Lettres (Lezieu, refait le 08/11 d'après le site de Roman Jean-Elie) : le menu vertical, la lueur rouge et le nom géant, la liste des dossiers qui s'étire,
   la photo teintée de rouge, les lettres géantes remplies d'une photo et leurs pas, la page d'un dossier, le bloc rouge, la visionneuse.
   Couleurs : --fond (le noir), --texte (le blanc), --accent (le rouge). Typo : --serif (Anton) pour les très grandes capitales, --sans (Inter Tight gras) le reste. */

.m-roman { --lt-g: 34px; background: var(--fond); color: var(--texte); font-family: var(--sans); user-select: none; -webkit-user-select: none; }
.m-roman button { background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; text-align: inherit; letter-spacing: inherit; text-transform: inherit; }
.m-roman [hidden] { display: none !important; }
.lt-vue { position: absolute; inset: 0; overflow: hidden; }

/* le menu vertical à gauche */
.lt-nav { position: absolute; z-index: 6; left: 0; top: 0; bottom: 0; width: var(--lt-g); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 0; background: var(--fond); }
.m-roman .lt-nav button { writing-mode: vertical-rl; rotate: 180deg; padding: 8px 5px; font: 800 13px/1 var(--sans); text-transform: uppercase; letter-spacing: .02em; color: var(--texte); transition: background .2s, color .2s; }
.m-roman .lt-nav button:hover { color: var(--accent); }
.m-roman .lt-nav button.on { background: var(--accent); color: #000; }

/* l'accueil : la lueur au fond du couloir, le nom en rouge */
.lt-acc { position: absolute; inset: 0 0 0 var(--lt-g); background: #000; }
.lt-couloir { position: absolute; inset: 0 0 26% 0; overflow: hidden; background: radial-gradient(ellipse 70% 80% at 50% 42%, #2b0818 0%, #15040d 55%, #08020a 100%); }
.lt-couloir::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 0, 0, .18), transparent 32%, transparent 68%, rgba(255, 0, 0, .1)), linear-gradient(180deg, rgba(255, 0, 0, .08), transparent 35%, transparent 60%, rgba(255, 0, 0, .12)); }
.lt-lueur { position: absolute; left: 37%; top: 31%; width: 26%; height: 22%; background: #ff0000; filter: blur(14px); box-shadow: 0 0 140px 70px rgba(255, 0, 0, .55); animation: lt-respire 5s ease-in-out infinite; transition: translate .8s cubic-bezier(.16, 1, .3, 1); }
.lt-lueur::after { content: ''; position: absolute; left: -90%; right: -90%; top: 25%; bottom: 25%; background: radial-gradient(ellipse at center, rgba(255, 0, 0, .55), transparent 70%); }
@keyframes lt-respire { 50% { scale: 1.05 1.08; opacity: .9; } }
.m-roman.calme .lt-lueur { animation: none; }
.lt-acc-t { position: absolute; left: 20px; right: 14px; bottom: 4px; display: flex; flex-direction: column; align-items: flex-end; }
.lt-sous { margin: 0; font: 800 clamp(13px, 1.9cqw, 28px)/1 var(--sans); text-transform: uppercase; color: var(--accent); }
.lt-nom { margin: 0; font-family: var(--serif); font-weight: 400; line-height: .9; color: var(--accent); white-space: nowrap; overflow: hidden; }
.lt-c { display: inline-block; }

/* les dossiers : la liste qui s'étire, la photo teintée de rouge */
.lt-dos { position: absolute; inset: 0 0 0 var(--lt-g); display: grid; grid-template-columns: minmax(0, 40%) minmax(0, 1fr); background: #000; }
.lt-liste { position: relative; overflow: hidden; touch-action: none; }
.lt-liste-r { display: flex; flex-direction: column; align-items: flex-start; padding-left: 10px; will-change: translate; }
.m-roman .lt-l { font: 400 var(--ltf, clamp(36px, 6.4cqw, 92px))/.95 var(--serif); color: var(--texte); white-space: nowrap; transform: scaleY(var(--etire, 1)); transform-origin: 0 50%; transition: color .2s; }
.m-roman .lt-l.on, .m-roman .lt-l:hover { color: var(--accent); }
.lt-scene { position: relative; overflow: hidden; background: var(--accent); }
.lt-scene-ph, .lt-scene-im { position: absolute; inset: 0; }
.lt-scene-im img { width: 100%; height: 100%; object-fit: cover; display: block; filter: grayscale(1) contrast(1.2) brightness(.95); mix-blend-mode: multiply; }
.lt-horizon { position: absolute; left: 0; right: 0; bottom: 0; height: 24%; background: linear-gradient(180deg, rgba(255, 210, 210, .9) 0 2px, #2b0818 2px, #0a0208); pointer-events: none; }

/* la galerie : les lettres géantes remplies d'une photo, les pas en bas */
.lt-gal { position: absolute; inset: 0 0 0 var(--lt-g); display: flex; flex-direction: column; align-items: center; background: #000; }
.lt-collab { margin: 14px 0 0; max-width: 72%; text-align: center; font: 800 13px/1.4 var(--sans); text-transform: uppercase; }
.lt-collab small { display: block; font-size: 10px; opacity: .8; }
.lt-geant { flex: 1; display: flex; align-items: center; margin: 0; font-family: var(--serif); font-weight: 400; line-height: .82; letter-spacing: -.01em; text-transform: uppercase; color: transparent; background-size: cover; background-position: center; -webkit-background-clip: text; background-clip: text; white-space: nowrap; }
.lt-pas { display: flex; width: 100%; background: var(--accent); }
.m-roman .lt-pas button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; padding: 6px 6px 8px; color: #000; font: 800 13px/1.05 var(--sans); text-transform: uppercase; border-left: 1px solid rgba(0, 0, 0, .3); transition: background .2s, color .2s; }
.lt-pas button:first-child { border-left: 0; }
.lt-pas button span { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-pas small { font-size: 10.5px; opacity: .8; }
.m-roman .lt-pas button.on, .m-roman .lt-pas button:hover { background: #000; color: var(--accent); }

/* la page d'un dossier */
.lt-d { position: absolute; inset: 0 0 0 var(--lt-g); overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-width: none; background: #000; }
.lt-d::-webkit-scrollbar { display: none; }
.lt-d-h { position: sticky; top: 0; z-index: 3; display: flex; justify-content: space-between; padding: 14px 16px; background: linear-gradient(#000 40%, transparent); font: 800 13.5px/1 var(--sans); text-transform: lowercase; }
.lt-d-h span { display: flex; gap: 40px; margin-right: 38%; }
.lt-d-h button:hover { color: var(--accent); }
.lt-d-c { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
.lt-d-g { position: relative; }
.lt-d-gc { position: sticky; top: 30%; display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 0 8%; text-align: center; }
.lt-d-gc h2 { margin: 0; font: 400 clamp(36px, 4.6cqw, 66px)/.92 var(--serif); }
.lt-d-gc p { margin: 0; max-width: 28em; font: 800 12px/1.45 var(--sans); text-transform: uppercase; }
.lt-gris { color: #808080; }
.m-roman .lt-lien { font: 800 12px/1 var(--sans); text-transform: uppercase; color: var(--accent); border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.lt-d-ph { display: flex; flex-direction: column; gap: 10px; padding: 0 10px 40px 0; }
.lt-f { position: relative; margin: 0; }
.m-roman .lt-f-ph { display: block; width: 100%; }
.lt-f-ph img { width: 100%; height: auto; display: block; }
.m-roman:not(.calme) .lt-f .lt-f-ph { clip-path: inset(0 100% 0 0); transition: clip-path .9s cubic-bezier(.76, 0, .24, 1); }
.m-roman:not(.calme) .lt-f.vu .lt-f-ph { clip-path: inset(0 0 0 0); }
.lt-f figcaption { position: absolute; left: 10px; bottom: 8px; font: 800 11px/1 var(--sans); color: #fff; mix-blend-mode: difference; }
.lt-f .lt-x { top: 10px; right: 10px; z-index: 2; }

/* le bloc rouge entre deux pages, l'arrivée */
.lt-balai { position: absolute; inset: 0; z-index: 9; background: var(--accent); clip-path: inset(0 100% 0 0); pointer-events: none; }
.lt-debut { position: absolute; inset: 0; z-index: 10; display: grid; place-items: center; background: #000; cursor: pointer; }
.lt-debut i { width: 40%; height: 34%; background: var(--accent); }
.m-roman.en-debut .lt-nav { visibility: hidden; }

/* sur téléphone (et dans l'aperçu téléphone) */
@container (max-width: 620px) {
  .m-roman { --lt-g: 28px; }
  .lt-dos { grid-template-columns: 1fr; grid-template-rows: 56% 44%; }
  .lt-liste-r { --ltf: 44px; }
  .lt-d-c { grid-template-columns: 1fr; }
  .lt-d-gc { position: static; padding: 30px 6% 40px; }
  .lt-d-h span { margin-right: 0; gap: 22px; }
  .lt-d-ph { padding: 0 8px 30px; }
  .lt-collab { max-width: 90%; font-size: 11px; }
}

/* la visionneuse : sur le noir, le bloc rouge, le nom en rouge en bas à droite */
.lb.peau-roman { --ltl-f: #000000; --ltl-t: #FFFFFF; background: var(--ltl-f); color: var(--ltl-t); font-family: var(--ltl-s); padding-top: 44px; }
.lt-lb-h { position: absolute; z-index: 4; top: 0; left: 0; right: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 14px 16px; color: var(--ltl-t); font: 800 13.5px/1 var(--ltl-s); text-transform: lowercase; }
.lt-lb-h span { display: flex; gap: 30px; }
.lt-lb-h button { padding: 0; background: none; border: 0; color: inherit; font: inherit; text-transform: inherit; cursor: pointer; transition: color .2s; }
.lt-lb-h button:hover { color: var(--ltl-r); }
.lt-lb-x { justify-self: start; }
.lt-lb-n { justify-self: end; }
.lb.peau-roman :is(.lb-top, .lb-bot) { color: var(--ltl-t); font: 800 11px/1.2 var(--ltl-s); text-transform: uppercase; }
.lb.peau-roman :is(.lb-top, .lb-bot) button { background: transparent; color: var(--ltl-t); border: 1px solid color-mix(in srgb, var(--ltl-t) 30%, transparent); border-radius: 0; font: inherit; transition: background .2s, color .2s; }
.lb.peau-roman :is(.lb-top, .lb-bot) button:hover, .lb.peau-roman :is(.lb-top, .lb-bot) :is(button[aria-pressed=true], button.on) { background: var(--ltl-r); border-color: var(--ltl-r); color: #000; }
.lb.peau-roman .lb-zoom { background: transparent; }
.lb.peau-roman :is(.lb-name, .lb-pct, .lb-info .lb-name) { font: inherit; color: var(--ltl-t); }
.lb.peau-roman .lb-exif { color: color-mix(in srgb, var(--ltl-t) 55%, transparent); }
.lb.peau-roman .lb-k { color: var(--ltl-t); border-color: color-mix(in srgb, var(--ltl-t) 30%, transparent); opacity: .6; }
.lb.peau-roman .lb-x[data-x] { display: none; }
.lb.peau-roman .lb-x.lb-plein { border-radius: 0 !important; }
.lb.peau-roman .lb-fant { display: none; }
.lb.peau-roman .lb-nav { display: none; }
.lb.peau-roman .lb-bot { border-top: 0; }
.lb.peau-roman .lb-bot .lb-tiroir { background: transparent; color: var(--ltl-t); }
.lt-lb-bas { display: flex; justify-content: flex-end; padding: 4px 16px 8px; min-width: 0; }
.lt-lb-t { max-width: 100%; font: 400 clamp(36px, 7vw, 110px)/.86 var(--ltl-d); color: var(--ltl-r); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-lb-balai { position: absolute; inset: 0; z-index: 5; background: var(--ltl-r); clip-path: inset(0 100% 0 0); pointer-events: none; }
.lb.lb-blanc.peau-roman { --ltl-f: #FFFFFF; --ltl-t: #000000; }
.lb-dans.peau-roman .lb-exif { display: none; }
@media (max-width: 1200px) { .lb.peau-roman .lb-exif { display: none; } }
