/* foyer — écrans de base : splash, connexion, qui regarde, accueil. Échelle TV 960 × 540. */

/* Splash — 1,6 s : l'anneau se trace, le soleil se pose, le mot s'écrit */
.splash { position: fixed; inset: 0; z-index: 100; background: var(--nuit); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px; animation: splash-out .3s 1.3s var(--courbe) both; pointer-events: none; }
.splash-mark { animation: splash-in .5s var(--courbe) both; }
.splash-tag { font-size: 18px; color: var(--brume); animation: splash-in .4s .5s var(--courbe) both; }
@keyframes splash-in { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes splash-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) { .splash, .splash-mark, .splash-tag { animation: none; } }
html[data-motion="reduced"] .splash, html[data-motion="reduced"] .splash-mark, html[data-motion="reduced"] .splash-tag { animation: none; }

/* Connexion */
.login { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 48px; align-items: center; padding-bottom: var(--safe-y); }
.login-ring { position: absolute; left: -200px; bottom: -380px; width: 700px; height: 700px; border-radius: 50%; border: 60px solid var(--ardoise); }
.login-sun { position: absolute; left: 110px; bottom: -150px; width: 260px; height: 260px; border-radius: 50%; background: var(--lumen); opacity: .9; }
.login-intro { position: relative; display: flex; flex-direction: column; gap: 18px; align-self: start; padding-top: 40px; }
.login-intro h1 { margin-top: 12px; font-size: 32px; font-weight: 600; line-height: 1.15; text-wrap: pretty; }
.login-intro p { font-size: 15px; color: var(--brume); line-height: 1.5; max-width: 330px; }
.login-card { position: relative; background: var(--ardoise); border-radius: var(--r-feuille); padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.field-wrap { display: flex; flex-direction: column; gap: 6px; }
.field-wrap label { font-size: 13px; font-weight: 700; color: var(--brume); }
.field { height: 44px; border: 1.5px solid var(--trait-2); border-radius: var(--r-galet-m); background: var(--nuit); color: var(--craie); padding: 0 14px; font-size: 16px; width: 100%; }
.field::placeholder { color: var(--brume-2); }
html[data-input="key"] .field.is-focus, .field:focus { background: var(--craie); color: var(--nuit); border-color: transparent; outline: 3px solid var(--lumen); outline-offset: 3px; box-shadow: 0 0 0 10px rgba(216, 255, 62, .16); }
.check { display: flex; align-items: center; gap: 12px; font-size: 15px; cursor: pointer; }
.check input { width: 22px; height: 22px; accent-color: var(--lumen); margin: 0; }
.btn--wide { width: 100%; height: 46px; justify-content: center; font-size: 16px; margin-top: 4px; }
.login-error { color: var(--braise); font-size: 14px; font-weight: 700; }
.login-hint { font-size: 13px; color: var(--brume-2); line-height: 1.4; text-align: center; }

/* Qui regarde ? */
.who { align-items: center; justify-content: center; gap: 44px; padding-bottom: var(--safe-y); }
.who::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 150px; background: var(--ardoise-low); z-index: 0; }
.who > * { position: relative; z-index: 1; }
.who-brand { position: absolute; left: var(--safe-x); top: var(--safe-y); }
.who h1 { font-size: 30px; font-weight: 600; text-align: center; }
.profiles { display: flex; gap: 40px; align-items: flex-start; flex-wrap: wrap; justify-content: center; }
.profile { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 128px; text-align: center; }
.profile-disc { width: 120px; height: 120px; border-radius: 50%; color: var(--nuit); position: relative; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: transform var(--t-eclair); }
.profile-disc::after { content: ""; position: absolute; left: -10%; right: -10%; bottom: -55%; height: 90%; border-radius: 50%; background: var(--nuit); opacity: .14; }
.profile-disc b { font-family: var(--f-titre); font-size: 46px; font-weight: 700; position: relative; z-index: 1; }
.profile strong { font-size: 17px; margin-top: 8px; }
html[data-input="key"] .profile.is-focus { outline: none; box-shadow: none; }
html[data-input="key"] .profile.is-focus .profile-disc { outline: 4px solid var(--lumen); outline-offset: 5px; box-shadow: 0 0 0 14px rgba(216, 255, 62, .14), 0 14px 36px rgba(0, 0, 0, .55); transform: scale(1.08); }
.profile-disc--dash { background: none; border: 2px dashed var(--trait-2); color: var(--brume); width: 116px; height: 116px; }
.profile-disc--dash::after { display: none; }
.profile--more { color: var(--brume); }
.who-hint { font-size: 13px; color: var(--brume-2); }

/* Accueil */
.home { padding-bottom: 0; }
.home-glow { position: absolute; right: -120px; top: -160px; width: 620px; height: 620px; border-radius: 50%; opacity: .16; transition: background-color var(--t-fondu); pointer-events: none; }
.hero { position: relative; display: flex; gap: 24px; height: 216px; margin-top: 17px; flex: none; }
.hero-text { flex: 0 0 410px; min-width: 0; display: flex; flex-direction: column; gap: 9px; }
.hero-text .chip { align-self: flex-start; }
.hero-text h1 { font-size: 28px; font-weight: 600; line-height: 1.2; }
.hero-meta { font-size: 14px; color: var(--brume); font-weight: 700; }
.hero-resume { font-size: 14px; line-height: 1.45; color: var(--craie-2); }
.hero-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: nowrap; padding: 6px 0 4px; }
.hero-actions .btn { padding: 0 12px; }
.hero-art { flex: 1; min-width: 0; border-radius: var(--r-grand); overflow: hidden; position: relative; }
.hero-poster { position: absolute; inset: 0; }
.hero-channel { position: absolute; left: 12px; top: 12px; height: 24px; padding: 0 9px; border-radius: var(--r-galet-s); background: var(--nuit); font-family: var(--f-titre); font-size: 11px; font-weight: 600; display: flex; align-items: center; z-index: 1; }
.hero-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: rgba(15, 17, 21, .65); z-index: 1; }
.hero-bar i { display: block; height: 100%; }

.home-rows { flex: 1; min-height: 0; margin: 22px calc(var(--safe-x) * -1) 0; overflow: hidden; scroll-behavior: smooth; }
.row-block { height: 170px; display: flex; flex-direction: column; gap: 10px; margin-bottom: 26px; }
.row-title { margin: 0 var(--safe-x); font-size: 15px; font-weight: 500; display: flex; align-items: center; gap: 10px; color: var(--brume); }
.row-title span { font-family: var(--f-texte); font-size: 13px; color: var(--brume-2); font-weight: 400; }
.row-block:focus-within .row-title { color: var(--craie); }
/* Marge verticale : le halo (3 + 3 + 10 px) et le grossissement ne sont jamais coupés par la rangée. */
.row { display: flex; gap: 16px; padding: 16px var(--safe-x) 16px; margin: -16px 0; overflow-x: hidden; scroll-behavior: smooth; }
.row--sk { margin-top: 28px; }
.row-note { padding: 24px var(--safe-x); }
@media (prefers-reduced-motion: reduce) { .home-rows, .row { scroll-behavior: auto; } }
html[data-motion="reduced"] .home-rows, html[data-motion="reduced"] .row { scroll-behavior: auto; }

/* Téléphone / PC : mêmes pièces, défilement natif, tête de page empilée sur petit écran. */
html[data-device="pc"] .media { --card-w: 220px; }
html[data-device="pc"] .row-block { height: auto; }
html[data-device="pc"] .row { overflow-x: auto; scrollbar-width: none; }
html[data-device="pc"] .home-rows { overflow-y: auto; scrollbar-width: none; }
html[data-device="phone"] .login { grid-template-columns: 1fr; gap: 20px; align-content: start; padding-top: 24px; }
html[data-device="phone"] .login-intro { padding-top: 0; }
html[data-device="phone"] .hero { flex-direction: column-reverse; height: auto; }
html[data-device="phone"] .hero-text { flex: none; }
html[data-device="phone"] .hero-art { flex: none; aspect-ratio: 16 / 9; border-radius: var(--r-galet); }
html[data-device="phone"] .home-rows { overflow: visible; flex: none; }
html[data-device="phone"] .row-block { height: auto; }
html[data-device="phone"] .row { overflow-x: auto; scrollbar-width: none; }
html[data-device="phone"] .media { --card-w: 150px; }
html[data-device="phone"] .btn, html[data-device="phone"] .tab { min-height: 44px; }
html[data-device="phone"] .profile-disc { width: 88px; height: 88px; }
html[data-device="phone"] .profiles { gap: 20px; }
html[data-device="phone"] .who { overflow-y: auto; justify-content: flex-start; padding-top: 60px; }
