/* LobbyHost — thème 2026, compléments propres à l'accueil (à charger après lobbyhost-2026.css). */

/* ---------- 1. À l'affiche ---------- */
.affiche {
  position: relative; min-height: max(640px, min(92vh, 900px));
  display: flex; align-items: flex-end;
  padding: 140px var(--bord) 200px;
  isolation: isolate;
}
.affiche-art { position: absolute; inset: 0; z-index: -1; overflow: hidden; background: #000; }
.affiche-img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: var(--fx, 50%) 30%;
  opacity: 0; transform: scale(1.05);
  transition: opacity 1.1s ease, transform 8s linear;
}
.affiche-img.est-visible { opacity: 1; transform: scale(1); }
.affiche-voile {
  position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,10,12,.92) 0%, rgba(10,10,12,.72) 30%, rgba(10,10,12,.12) 62%, rgba(10,10,12,0) 100%),
    linear-gradient(0deg, var(--fond) 0%, rgba(10,10,12,.55) 22%, rgba(10,10,12,0) 48%);
}
.affiche-contenu { max-width: 620px; position: relative; }
.affiche-jeu { transition: opacity .5s ease; }
.affiche-jeu.est-cache { opacity: 0; }
.affiche-logo {
  width: auto; max-width: min(340px, 78vw); height: 128px; object-fit: contain; object-position: left bottom;
  filter: drop-shadow(0 4px 18px rgba(0,0,0,.6));
}
.affiche-titre {
  font-size: var(--t6); font-weight: 900; line-height: 0.98; letter-spacing: -0.035em;
  text-wrap: balance; text-shadow: 0 2px 30px rgba(0,0,0,.45);
}
.affiche-texte { margin-top: 18px; font-size: var(--t4); line-height: 1.45; color: var(--texte-clair); max-width: 34em; text-shadow: 0 1px 12px rgba(0,0,0,.6); }
.affiche-texte strong { color: #fff; }
.affiche-boutons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.affiche-essai {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; min-height: 44px;
  color: #fff; font-weight: 600; font-size: var(--t2); text-decoration: underline; text-decoration-color: rgba(255,255,255,.4); text-underline-offset: 5px;
}
.affiche-essai:hover { text-decoration-color: #fff; }

.affiche-selecteur { position: absolute; right: var(--bord); bottom: 168px; display: flex; align-items: flex-end; gap: 12px; }
.affiche-liste { display: flex; gap: 6px; }
.affiche-liste button {
  display: flex; flex-direction: column; justify-content: flex-end; gap: 8px;
  min-width: 108px; min-height: 52px; padding: 0 2px 8px; background: none; border: 0; cursor: pointer;
  font: inherit; font-size: var(--t1); font-weight: 600; color: #D4D4D8; text-align: left;
}
.affiche-liste button[aria-current="true"], .affiche-liste button:hover { color: #fff; }
.piste-temps { display: block; height: 3px; border-radius: 2px; background: rgba(255,255,255,.28); overflow: hidden; }
.piste-temps i { display: block; height: 100%; width: 0; background: #fff; }
button[aria-current="true"] .piste-temps i { animation: temps var(--duree, 8s) linear forwards; }
.affiche.est-en-pause button[aria-current="true"] .piste-temps i { animation-play-state: paused; }
.affiche.sans-mouvement button[aria-current="true"] .piste-temps i { animation: none; width: 100%; }
@keyframes temps { from { width: 0; } to { width: 100%; } }
.affiche-courant { display: none; position: absolute; left: 0; top: -2px; font-size: var(--t1); font-weight: 700; color: #fff; }
.affiche-pause {
  width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.55); background: rgba(10,10,12,.35);
  color: #fff; display: grid; place-items: center; cursor: pointer;
}
.affiche-pause:hover { border-color: #fff; }

@media (max-width: 900px) {
  .affiche { min-height: 0; padding: 0 var(--gouttiere) 40px; flex-direction: column; align-items: stretch; }
  .affiche-art { position: relative; inset: auto; height: min(46vh, 400px); margin: 0 calc(-1 * var(--gouttiere)); z-index: 0; }
  .affiche-img { object-position: var(--fx, 50%) 50%; }
  .affiche-voile { background: linear-gradient(0deg, var(--fond) 0%, rgba(10,10,12,.6) 28%, rgba(10,10,12,0) 55%), linear-gradient(180deg, rgba(10,10,12,.7) 0%, rgba(10,10,12,0) 26%); }
  .affiche-contenu { margin-top: -96px; z-index: 1; }
  .affiche-logo { height: 80px; }
  .affiche-texte { margin-top: 14px; font-size: var(--t3); }
  .affiche-boutons { margin-top: 22px; }
  .affiche-boutons .btn { flex: 1 1 100%; }
  .affiche-selecteur { position: relative; right: auto; bottom: auto; margin-top: 20px; padding-top: 18px; }
  .affiche-essai { display: inline; line-height: 1.6; }
  .affiche-essai svg { display: inline-block; vertical-align: -3px; margin-left: 6px; }
  .affiche-liste { flex: 1; }
  .affiche-liste li { flex: 1; }
  .affiche-liste button { min-width: 0; width: 100%; }
  .affiche-courant { display: block; }
  .affiche-liste .nom { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
}

/* ---------- 2. Catalogue en rangées ---------- */
.catalogue, .panneau, .demarrage, .bascule, .formules, .faq { padding: 112px 0; }
.catalogue { padding-top: 0; margin-top: -120px; z-index: 2; }
@media (max-width: 900px) { .catalogue { margin-top: 0; padding-top: 48px; } }
.catalogue-tete { margin-bottom: 28px; }
.catalogue-pied { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: center; color: var(--texte-2); font-size: var(--t2); }
.catalogue-pied .lien { min-height: 44px; }
.catalogue .ligne-lien { margin-top: 36px; }
/* Bandeau de repères juste sous le catalogue : un seul écart de bloc, pas deux paddings additionnés */
.catalogue { padding-bottom: 72px; }
.reperes-accueil { padding-top: 0; }
@media (max-width: 700px) { .catalogue { padding-bottom: 56px; } }

/* ---------- 3. Panneau ---------- */
.panneau { background: var(--fond-2); }
.panneau-tete { margin-bottom: 40px; }
.plan-complet { margin-bottom: 88px; }
.plan { margin-top: 64px; }
.plan-complet + .plan { margin-top: 0; }
.plan-legende { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 8px 48px; align-items: baseline; margin-bottom: 20px; }
.plan-titre { font-size: var(--t4); font-weight: 800; letter-spacing: -0.01em; }
.plan-legende p { color: var(--texte-2); max-width: 54ch; }
.plan-ecran {
  border-radius: var(--rayon-grand); overflow: hidden; background: #0B0B12;
  box-shadow: 0 0 0 1px var(--ligne), 0 30px 60px -20px rgba(0,0,0,.7);
}
.plan-ecran img { width: 100%; height: auto; }
.panneau-pied { margin-top: 48px; }
@media (max-width: 700px) {
  .plan-legende { grid-template-columns: 1fr; }
  .plan-ecran { border-radius: var(--rayon); }
  .plan-complet { margin-bottom: 64px; }
  .plan-complet .plan-ecran { max-width: 420px; margin: 0 auto; }
}

/* ---------- 4. De 0 à JOUEUR ---------- */
.titre-suite { display: block; color: var(--texte-2); font-weight: 800; }
.demarrage-note { margin-top: 48px; max-width: 54ch; color: var(--texte-2); }
.demarrage-note strong { color: var(--texte); }

/* ---------- 6. Formules ---------- */
.formules { background: var(--fond-2); }

/* ---------- 8. Press START ---------- */
.start { padding: 160px 0 140px; overflow: hidden; text-align: center; }
.start-mur {
  position: absolute; inset: -40px; z-index: 0; display: grid; grid-template-columns: repeat(9, 1fr); gap: 12px; align-content: center;
  transform: rotate(-6deg) scale(1.15); opacity: .55;
}
.start-mur img { width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 8px; }
.start::after { content: ""; position: absolute; inset: 0; z-index: 0; background: radial-gradient(55% 60% at 50% 50%, rgba(10,10,12,.86) 0%, rgba(10,10,12,.72) 55%, rgba(10,10,12,.5) 100%), linear-gradient(180deg, var(--fond) 0%, rgba(10,10,12,0) 22%, rgba(10,10,12,0) 78%, var(--fond) 100%); }
.start-contenu { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.titre-start { font-size: var(--t7); font-weight: 900; line-height: .9; letter-spacing: -0.04em; }
/* Seul texte en dégradé du système, avec le logo historique. */
.degrade { background: linear-gradient(95deg, #C4B5FD 0%, #B197FC 40%, #F0ABFC 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.start-texte { margin-top: 24px; font-size: var(--t4); max-width: 30em; color: var(--texte-clair); }
.start-boutons { justify-content: center; }
.start .mention { margin-top: 20px; }
@media (max-width: 700px) {
  .start-mur { grid-template-columns: repeat(4, 1fr); }
  .start-boutons { width: 100%; }
  .start-boutons .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) { .affiche-img { transform: none !important; } }

/* Catalogue de l'accueil en pleine largeur, façon Netflix (décision d'Alex, 03/11/2026) :
   même gouttière à gauche et à droite (4 % de la largeur, 24 à 64 px) pour le titre, les rangées et les flèches.
   Les lignes sous les rangées (catalogue complet, migration) restent dans la colonne de contenu. Mobile inchangé. */
@media (min-width: 701px) {
  .catalogue { --netflix: clamp(24px, 4%, 64px); }
  .catalogue .catalogue-tete, .catalogue .rangee-tete { max-width: none; padding-inline: var(--netflix); }
  .catalogue .rangee-piste { margin-inline: var(--netflix); }
}

/* ---------- 3 bis. Piloter avec son IA (04/11/2026) ---------- */
.ia-ecran { padding: 28px 28px 18px; }
.ia-fil { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin: 0 auto; }
.ia-bulle { max-width: 78%; padding: 12px 16px; border-radius: 16px; font-size: var(--t2); line-height: 1.5; }
.ia-toi { align-self: flex-end; background: #2A2A33; color: var(--texte); border-bottom-right-radius: 6px; }
.ia-elle { align-self: flex-start; background: rgba(145, 70, 255, .12); color: var(--texte-clair);
           border: 1px solid rgba(145, 70, 255, .28); border-bottom-left-radius: 6px; }
.ia-elle b { color: var(--texte); font-weight: 700; }
.ia-outil { align-self: flex-start; font-size: var(--t1); color: var(--texte-2); padding-left: 4px; }
.ia-outil::before { content: "⚙ "; }
.ia-note { margin-top: 16px; text-align: center; font-size: var(--t1); color: var(--texte-2); }
@media (max-width: 700px) {
  .ia-ecran { padding: 18px 14px 12px; }
  .ia-bulle { max-width: 90%; font-size: 14px; padding: 10px 13px; }
}
