/* KOVA aperçu « cinéma » : intro, bandes-annonces plein écran, rangées, aperçus au survol, fiche, mur 3D. */

body.cine { background: #050506; --ov: clamp(calc(20px * var(--s, 1)), 2.6vw, calc(48px * var(--s, 1))); }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.cine .nv { transition: opacity 0.7s ease; }
.cine .btn--main { background: #fff; color: #000; }

/* ------------------------------------------------------------------ intro (once per session) */
.intro { display: none; }
.has-intro .intro { display: block; position: fixed; inset: 0; z-index: 100; cursor: pointer; }
.intro__svg { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.intro [data-intro-l] { fill-opacity: 0; }
.intro__warp { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.has-intro .nv,
.has-intro .bb__copy,
.has-intro .bb__dots,
.has-intro .bb__side { opacity: 0; }

/* ------------------------------------------------------------------ billboard */
.bb { position: relative; height: max(calc(600px * var(--s, 1)), min(100svh, 62vw)); overflow: hidden; background: #000; isolation: isolate; }
.bb__stage { position: absolute; inset: -3%; perspective: calc(1400px * var(--s, 1)); transform-origin: 50% 30%; will-change: transform; }
.bb__media { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.bb__slide { position: absolute; inset: 0; opacity: 0; transition: opacity 0.9s ease; }
.bb__slide.is-on { opacity: 1; }
.bb__slide img,
.bb__slide video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bb__slide video { opacity: 0; transition: opacity 0.5s ease; }
.bb__slide video.is-playing { opacity: 1; }
.bb__gl { position: absolute; inset: 0; z-index: 2; display: block; width: 100%; height: 100%; pointer-events: none; }
.bb__shade {
    position: absolute;
    inset: 0;
    z-index: 3;
    pointer-events: none;
    background:
        linear-gradient(77deg, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.5) 30%, rgba(0, 0, 0, 0) 60%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 16%),
        linear-gradient(0deg, #050506 0%, rgba(5, 5, 6, 0.86) 12%, rgba(5, 5, 6, 0.35) 26%, rgba(5, 5, 6, 0) 40%);
}
.bb__info { position: absolute; left: 0; right: 0; bottom: calc(var(--ov) + calc(36px * var(--s, 1))); z-index: 4; }
.bb__info .wrap,
.bb__dots .wrap { width: min(calc(1600px * var(--s, 1)), 100% - 7vw); }
.bb__copy { max-width: min(calc(620px * var(--s, 1)), 44vw); }
.bb__kicker { display: flex; align-items: center; gap: calc(10px * var(--s, 1)); margin: 0; font: 700 calc(12.5px * var(--s, 1))/1 var(--f-mono); letter-spacing: 0.24em; text-transform: uppercase; color: #e5e5e5; }
.bb__kicker svg { width: auto; height: calc(14px * var(--s, 1)); fill: #fff; }
.bb__title { margin: calc(18px * var(--s, 1)) 0 0; transform-origin: left bottom; }
.bb__logo { display: block; width: auto; height: clamp(calc(72px * var(--s, 1)), 10.5vw, calc(160px * var(--s, 1))); max-width: min(calc(540px * var(--s, 1)), 80vw); object-fit: contain; object-position: left bottom; filter: drop-shadow(0 calc(10px * var(--s, 1)) calc(30px * var(--s, 1)) rgba(0, 0, 0, 0.5)); }
.bb__name { display: block; font: 800 clamp(calc(56px * var(--s, 1)), 8vw, calc(128px * var(--s, 1)))/0.9 var(--f-display); letter-spacing: -0.04em; color: #fff; text-shadow: 0 calc(12px * var(--s, 1)) calc(40px * var(--s, 1)) rgba(0, 0, 0, 0.55); }
.bb__tag { margin: calc(22px * var(--s, 1)) 0 0; max-width: calc(560px * var(--s, 1)); font-family: var(--serif, 'Instrument Serif', Georgia, serif); font-style: italic; font-weight: 400; font-size: clamp(calc(26px * var(--s, 1)), 2.3vw, calc(38px * var(--s, 1))); line-height: 1.12; letter-spacing: -0.01em; color: #fff; text-shadow: 0 2px calc(18px * var(--s, 1)) rgba(0, 0, 0, 0.6); }
.bb__desc { overflow: hidden; padding: 0 0.14em 0.12em 0; }
.bb__line { display: flex; flex-wrap: wrap; align-items: center; gap: calc(12px * var(--s, 1)); margin: calc(14px * var(--s, 1)) 0 0; font: 500 calc(15px * var(--s, 1))/1.2 var(--f-text); color: #d4d4d8; text-shadow: 0 2px calc(10px * var(--s, 1)) rgba(0, 0, 0, 0.6); }
.bb__line b { font-weight: 600; color: #fff; }
.bb__line span::before { content: ''; display: inline-block; width: calc(4px * var(--s, 1)); height: calc(4px * var(--s, 1)); margin-right: calc(12px * var(--s, 1)); border-radius: 50%; background: #9a9a9a; vertical-align: middle; }
.bb__ctas { display: flex; flex-wrap: wrap; gap: calc(12px * var(--s, 1)); margin-top: calc(26px * var(--s, 1)); }
.play,
.more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(12px * var(--s, 1));
    height: calc(54px * var(--s, 1));
    padding: 0 calc(30px * var(--s, 1)) 0 calc(24px * var(--s, 1));
    border: 0;
    border-radius: calc(8px * var(--s, 1));
    font: 700 calc(18px * var(--s, 1))/1 var(--f-text);
    white-space: nowrap;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.25s var(--ease);
}
.play:active,
.more:active { transform: scale(0.97); }
.play { background: #fff; color: #000; }
.play:hover { background: rgba(255, 255, 255, 0.8); }
.more { background: rgba(109, 109, 110, 0.7); color: #fff; }
.more:hover { background: rgba(109, 109, 110, 0.45); }
.play svg,
.more svg { width: calc(26px * var(--s, 1)); height: calc(26px * var(--s, 1)); flex: none; }
.bb__side { position: absolute; right: 3.5vw; bottom: calc(var(--ov) + calc(41px * var(--s, 1))); z-index: 4; display: flex; align-items: center; gap: calc(14px * var(--s, 1)); }
.bb__ctl { display: grid; place-items: center; width: calc(44px * var(--s, 1)); height: calc(44px * var(--s, 1)); border: 1.5px solid rgba(255, 255, 255, 0.75); border-radius: 50%; background: rgba(0, 0, 0, 0.15); color: #fff; cursor: pointer; transition: background-color 0.2s, border-color 0.2s; }
.bb__ctl:hover { background: rgba(255, 255, 255, 0.12); border-color: #fff; }
.bb__ctl svg { width: calc(18px * var(--s, 1)); height: calc(18px * var(--s, 1)); }
.bb__badge { display: flex; align-items: center; height: calc(40px * var(--s, 1)); min-width: calc(120px * var(--s, 1)); padding: 0 calc(42px * var(--s, 1)) 0 calc(14px * var(--s, 1)); border-left: calc(3px * var(--s, 1)) solid #dcdcdc; background: rgba(51, 51, 51, 0.6); font: 600 calc(15px * var(--s, 1))/1 var(--f-text); color: #fff; }
/* progress bars removed by the owner ("enlève ça"): kept in the page for the slide script, not shown */
.bb__dots { display: none !important; }
.bb__dots { position: absolute; left: 0; right: 0; bottom: calc(var(--ov) + calc(30px * var(--s, 1))); z-index: 4; }
.bb__dots .wrap { display: flex; gap: calc(8px * var(--s, 1)); }
.bb__dot { position: relative; width: calc(52px * var(--s, 1)); height: calc(3px * var(--s, 1)); padding: 0; overflow: visible; border: 0; border-radius: 2px; background: rgba(255, 255, 255, 0.3); cursor: pointer; }
.bb__dot::before { content: ''; position: absolute; inset: calc(-12px * var(--s, 1)) 0; }
.bb__dot i { position: absolute; inset: 0; border-radius: 2px; background: #fff; transform: scaleX(0); transform-origin: left center; }
.bb__dot.is-done i { transform: scaleX(1); }

.bb__lock { display: flex; align-items: flex-end; gap: clamp(calc(14px * var(--s, 1)), 1.6vw, calc(24px * var(--s, 1))); }
.bb__logo--sq { height: clamp(calc(64px * var(--s, 1)), 8vw, calc(118px * var(--s, 1))); }
.bb__lock .bb__name { font-size: clamp(calc(52px * var(--s, 1)), 7vw, calc(108px * var(--s, 1))); }
@media (max-width: 640px) { .bb__lock { align-items: center; } .bb__logo--sq { height: calc(64px * var(--s, 1)); } .bb__lock .bb__name { font-size: calc(56px * var(--s, 1)); } }

/* ------------------------------------------------------------------ tablets and phones (billboard) */
@media (max-width: 900px) {
    .bb__copy { max-width: calc(560px * var(--s, 1)); }
    .bb__side { display: none; }
}
@media (max-width: 640px) {
    body.cine { --ov: 0px; }
    .bb { height: max(calc(560px * var(--s, 1)), 86svh); }
    .bb__shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 22%), linear-gradient(0deg, #050506 0%, rgba(5, 5, 6, 0.92) 20%, rgba(5, 5, 6, 0.4) 44%, rgba(5, 5, 6, 0) 62%); }
    .bb__info { bottom: calc(30px * var(--s, 1)); }
    .bb__info .wrap,
    .bb__dots .wrap { width: calc(100% - calc(32px * var(--s, 1))); }
    .bb__copy { display: flex; flex-direction: column; align-items: center; max-width: none; text-align: center; }
    .bb__title { transform-origin: center bottom; }
    .bb__logo { height: calc(84px * var(--s, 1)); max-width: 78vw; object-position: center bottom; }
    .bb__name { font-size: calc(64px * var(--s, 1)); }
    .bb__line { justify-content: center; font-size: calc(14px * var(--s, 1)); }
    .bb__desc { display: none; }
    .bb__ctas { flex-direction: column; width: 100%; gap: calc(10px * var(--s, 1)); margin-top: calc(22px * var(--s, 1)); }
    .bb__ctas .play,
    .bb__ctas .more { width: 100%; height: calc(48px * var(--s, 1)); padding: 0 calc(14px * var(--s, 1)); font-size: calc(16px * var(--s, 1)); gap: calc(8px * var(--s, 1)); }
    .bb__ctas svg { width: calc(22px * var(--s, 1)); height: calc(22px * var(--s, 1)); }
    .bb__dots { bottom: calc(30px * var(--s, 1)); }
    .bb__dots .wrap { justify-content: center; }
    .bb__dot { width: calc(30px * var(--s, 1)); }
}

/* ------------------------------------------------------------------ phones (2026-11-17) : la bande-annonce en haut, cadrée moins serré,
   le titre du jeu et les boutons dessous sur fond noir (un 16:9 recadré en plein écran vertical ne montrait qu'un gros plan flou) */
@media (max-width: 640px) {
    .bb__media { bottom: auto; height: min(112vw, 60svh); }
    .bb__media::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 46%; z-index: 5; pointer-events: none; background: linear-gradient(0deg, #050506 0%, rgba(5, 5, 6, 0.86) 32%, rgba(5, 5, 6, 0) 100%); }
    .bb__shade { background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0) 20%); }
}
