/* foyer — base : reset, texte, halo de focus, affiches « lucarne », squelettes. */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--nuit); color: var(--craie); font-family: var(--f-texte); overflow: hidden; }
body { font-size: 14px; line-height: 1.4; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; margin: 0; text-align: left; cursor: pointer; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
svg { display: block; flex: none; }

.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.titre { font-family: var(--f-titre); letter-spacing: -.02em; }
.meta { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brume); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Le halo Lumen : trait 3 px décollé de 3 px, aura de 10 px, grossissement 6 %.
   Visible seulement à la télécommande / au clavier (data-input="key"), pas au toucher ni à la souris. */
[data-f] { outline: none; transition: transform var(--t-eclair) var(--courbe), box-shadow var(--t-eclair), background-color var(--t-eclair); }
html[data-input="key"] [data-f].is-focus,
html[data-input="key"] [data-f]:focus-visible {
  outline: 3px solid var(--lumen); outline-offset: 3px;
  box-shadow: 0 0 0 10px rgba(216, 255, 62, .16), var(--ombre);
}
html[data-input="key"] [data-f].is-focus:not([data-nogrow]) { transform: scale(1.06); }
@media (prefers-reduced-motion: reduce) { html[data-input="key"] [data-f].is-focus { transform: none !important; } }
html[data-motion="reduced"][data-input="key"] [data-f].is-focus { transform: none !important; }

/* Affiches « lucarne » : illustrations de repli selon le genre (a1 film … a8 musique). */
.art { position: relative; overflow: hidden; }
.art::before, .art::after { content: ""; position: absolute; }
.a1 { background: #27324F; } .a1::before { width: 46%; aspect-ratio: 1; border-radius: 50%; right: 12%; top: 10%; background: #D8FF3E; } .a1::after { left: -10%; right: -10%; bottom: -45%; height: 80%; border-radius: 50%; background: #141A2B; }
.a2 { background: #3A2340; } .a2::before { width: 70%; aspect-ratio: 1; border-radius: 50%; left: -18%; bottom: -60%; background: #FF6A4D; } .a2::after { width: 26%; aspect-ratio: 1; border-radius: 50%; border: 6px solid #B7A4FF; right: 12%; top: 14%; }
.a3 { background: #12393A; } .a3::before { left: 0; right: 0; top: 46%; height: 16%; background: #7FE3C4; } .a3::after { width: 20%; aspect-ratio: 1; border-radius: 50%; left: 14%; top: 12%; background: #F3F1EA; }
.a4 { background: #4A3418; } .a4::before { width: 84%; aspect-ratio: 1; border-radius: 50%; left: 8%; top: 50%; background: #FFC53D; } .a4::after { left: 0; right: 0; top: 48%; height: 4px; background: #0F1115; }
.a5 { background: #2C2A4A; } .a5::before { width: 32%; aspect-ratio: 1; border-radius: 50%; right: 14%; top: 12%; background: #B7A4FF; } .a5::after { width: 18%; aspect-ratio: 1; border-radius: 50%; left: 18%; bottom: 14%; background: #D8FF3E; }
.a6 { background: #1D3324; } .a6::before { left: -5%; right: 30%; bottom: -20%; height: 70%; border-radius: 0 100% 0 0; background: #D8FF3E; } .a6::after { width: 14%; aspect-ratio: 1; border-radius: 50%; right: 18%; top: 16%; background: #F3F1EA; }
.a7 { background: #4A1F1A; } .a7::before { width: 44%; aspect-ratio: 1; border-radius: 50%; border: 10px solid #F3F1EA; left: 28%; top: 12%; box-sizing: border-box; } .a7::after { left: 0; right: 0; bottom: 0; height: 22%; background: #FF6A4D; }
.a8 { background: #1E3A5F; } .a8::before { left: 0; right: 0; bottom: 0; height: 52%; background: repeating-linear-gradient(90deg, #FF6A4D 0 7%, transparent 7% 14%); } .a8::after { width: 24%; aspect-ratio: 1; border-radius: 50%; right: 10%; top: 10%; background: #7FE3C4; }
/* Vraie image par-dessus l'affiche : si elle échoue, l'affiche reste visible dessous. */
.art > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }

/* Silhouettes de chargement : la forme exacte du contenu, pas de roue. */
.sk { background: var(--ardoise-sk); position: relative; overflow: hidden; }
.sk::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(243, 241, 234, .06), transparent); transform: translateX(-100%); animation: sk 1.4s ease-in-out infinite; }
@keyframes sk { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .sk::after { animation: none; } }
html[data-motion="reduced"] .sk::after { animation: none; }

.fondu { animation: fondu var(--t-fondu) var(--courbe); }
.tombe { animation: tombe var(--t-glisse) var(--courbe); }
@keyframes fondu { from { opacity: 0; } to { opacity: 1; } }
@keyframes tombe { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fondu, .tombe { animation: none; } }
html[data-motion="reduced"] .fondu, html[data-motion="reduced"] .tombe { animation: none; }
