/* =====================================================================
   Site de la version en ligne (accueil, inscription, compte, pages légales)
   Reprend le style « plateau télé » du jeu (core/app.css)
   ===================================================================== */
body.site { min-height: 100%; height: auto; overflow-x: hidden; }
.site-wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.site-nav { display: flex; align-items: center; gap: 12px; padding: 18px 0; }
.site-nav .brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-size: 1.5rem; color: var(--text); text-decoration: none; }
.site-nav .brand .logo { width: 40px; height: 40px; display: inline-flex; transform: rotate(-8deg); filter: drop-shadow(0 0 10px rgba(245, 184, 61, 0.45)); }
.site-nav .brand .logo svg { width: 100%; height: 100%; }
.site-nav .spacer { flex: 1; }
.site-nav a.btn { text-decoration: none; }

.hero { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; padding: 40px 0 56px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 0.98; }
.hero h1 em { font-style: normal; color: var(--brass); display: inline-block; transform: rotate(-2deg); }
.hero-kicker { display: inline-block; background: var(--brass); color: var(--ink); border: var(--border); border-radius: 99px; padding: 4px 14px; font-family: var(--font-ui); font-weight: 800; font-size: 0.9rem; margin-bottom: 16px; box-shadow: 0 3px 0 var(--ink); }
.price-inline { color: var(--brass); font-weight: 700; }
.hero p.lead { font-size: 1.18rem; color: var(--muted); line-height: 1.55; max-width: 34em; margin: 18px 0 26px; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.hero .cta a { text-decoration: none; }
.hero .note { margin-top: 12px; color: var(--faint); font-size: 0.95rem; }
.hero-visual { position: relative; padding-bottom: 40px; }
/* La TV : cadre noir, écran qui montre le plateau d'accueil du jeu */
.tv { background: #05070d; border: 4px solid var(--ink); border-radius: 18px; padding: 12px; box-shadow: var(--shadow); }
.tv-screen { aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; position: relative; background: radial-gradient(ellipse 60% 70% at 30% 45%, rgba(245, 184, 61, 0.2), transparent 70%), var(--bg-2); border-left: 14px solid var(--velvet); border-right: 14px solid var(--velvet); container-type: inline-size; }
.tv-foot { width: 30%; height: 16px; margin: 6px auto -28px; background: #05070d; border: 4px solid var(--ink); border-top: 0; border-radius: 0 0 10px 10px; }
.tv-bulbs { display: flex; justify-content: space-between; padding: 1.4cqw 3cqw; background: var(--ink); }
.tv-bulbs i { width: 2.4cqw; height: 2.4cqw; border-radius: 50%; background: var(--brass); box-shadow: 0 0 1.4cqw rgba(245, 184, 61, 0.7); }
.tv-stage { display: grid; grid-template-columns: 30% 1fr; gap: 4cqw; padding: 3cqw 4cqw; align-items: center; }
.tv-card { background: var(--paper); color: var(--ink); border: 0.6cqw solid var(--ink); border-radius: 2cqw; padding: 2cqw; display: grid; justify-items: center; gap: 1cqw; transform: rotate(-2deg); box-shadow: 0 1.2cqw 0 var(--ink); font-family: var(--font-ui); text-align: center; }
.tv-card b { font-size: 2.6cqw; text-transform: uppercase; line-height: 1.05; }
.tv-card span { font-size: 2.2cqw; }
.tv-card em { font-style: normal; font-family: var(--font-num); font-weight: 800; color: var(--velvet); font-size: 3cqw; }
.tv-qr { width: 100%; aspect-ratio: 1; border-radius: 1cqw; border: 0.4cqw solid var(--ink); background:
  linear-gradient(90deg, #0a0f1c 30%, transparent 30%) 0 0 / 2.4cqw 2.4cqw, linear-gradient(#0a0f1c 35%, transparent 35%) 1.2cqw 1.2cqw / 3cqw 3cqw, #fff; }
.tv-title { font-family: var(--font-display); font-size: 4.4cqw; text-transform: uppercase; color: var(--paper); margin-bottom: 1.6cqw; }
.tv-title em { font-style: normal; font-family: var(--font-num); font-weight: 800; color: var(--brass); font-size: 6cqw; margin-left: 1cqw; }
.tv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.6cqw; }
.mini-av { display: block; animation: dropIn 0.5s cubic-bezier(0.2, 1.4, 0.4, 1) both; }
.mini-av svg { width: 100%; height: auto; display: block; filter: drop-shadow(0 0.6cqw 0 rgba(10, 15, 28, 0.6)); }
.tv-gaston { position: absolute; right: 2cqw; bottom: 0; width: 13cqw; }
.tv-gaston svg { width: 100%; height: auto; display: block; }
@keyframes dropIn { from { transform: translateY(-4cqw) scale(0.8); opacity: 0; } 70% { transform: translateY(0.4cqw) scale(1.05); } }
/* Le téléphone : choix de l'Habitué */
.phone { position: absolute; right: -18px; bottom: -6px; width: 30%; max-width: 170px; aspect-ratio: 9 / 18.5; background: #05070d; border: 4px solid var(--ink); border-radius: 26px; padding: 8px; box-shadow: var(--pop-lg); transform: rotate(5deg); }
.phone-screen { height: 100%; border-radius: 18px; background: var(--grain), var(--bg); display: flex; flex-direction: column; align-items: center; gap: 6%; padding: 10% 8%; container-type: inline-size; }
.ph-title { font-family: var(--font-ui); font-weight: 800; font-size: 8cqw; text-transform: uppercase; color: var(--muted); letter-spacing: 0.08em; }
.ph-pick { width: 46%; }
.ph-pick svg, .ph-grid svg { width: 100%; height: auto; display: block; }
.ph-name { font-family: var(--font-display); font-size: 10cqw; color: var(--brass); }
.ph-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5cqw; width: 100%; }
.ph-btn { margin-top: auto; width: 100%; text-align: center; background: var(--brass); color: var(--ink); border: 3px solid var(--ink); border-radius: 10px; padding: 6% 0; font-family: var(--font-ui); font-weight: 800; font-size: 7.5cqw; box-shadow: 0 3px 0 var(--ink); }

.section { padding: 44px 0; }
.section h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin-bottom: 10px; }
.section > .site-wrap > p.muted { margin: 0 0 26px; font-size: 1.08rem; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.step .num { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); color: var(--ink); border: var(--border); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 1.4rem; margin-bottom: 12px; box-shadow: 0 3px 0 var(--ink); }
.step h3 { font-size: 1.25rem; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); line-height: 1.5; }

.games-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 18px; }
.game-tile { display: grid; gap: 10px; align-content: start; }
.game-tile p { margin: 0; color: var(--muted); font-size: 0.9rem; line-height: 1.45; }

.pricing { display: flex; justify-content: center; align-items: stretch; flex-wrap: wrap; gap: 22px; }
.price-card { display: flex; flex-direction: column; }
.price-card ul { flex: 1; }
#passCard { border-color: var(--brass); transform: rotate(0.6deg); }
/* Appli TV et « Où jouer ? » */
.apk-card { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start; }
.apk-card h2 { margin-bottom: 6px; }
.apk-card .row { display: flex; flex-wrap: wrap; gap: 12px; margin: 16px 0 8px; }
.apk-card .row a { text-decoration: none; }
.apk-card .note { font-size: 0.9rem; margin: 0; }
.apk-ico { width: 84px; height: 84px; border-radius: 22px; background: var(--brass); color: var(--ink); border: var(--border); box-shadow: 0 4px 0 var(--ink); display: flex; align-items: center; justify-content: center; transform: rotate(-4deg); }
.apk-ico .ico { width: 52px; height: 52px; }
/* Liste des soirées */
.venues-tools { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0 22px; }
.venues-tools .input { flex: 1; min-width: 220px; }
.venues { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.venue h3 { font-size: 1.3rem; margin: 0 0 4px; }
.venue .city { font-family: var(--font-ui); font-weight: 800; color: var(--brass); text-transform: uppercase; letter-spacing: 0.04em; font-size: 0.9rem; }
.venue p { color: var(--muted); margin: 8px 0 0; line-height: 1.5; }
.venue .days { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; background: var(--well); border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 0.92rem; }
.venue .links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.venue .links a { text-decoration: none; }
.venue .ico { width: 1.1em; height: 1.1em; vertical-align: -0.15em; }
.venue { display: flex; flex-direction: column; }
.venue .head { display: flex; gap: 14px; align-items: center; }
.venue .head img { width: 64px; height: 64px; flex: none; object-fit: contain; border-radius: 14px; background: var(--well); border: var(--border); }
.venue .poster { display: block; margin-top: 14px; border: 0; padding: 0; background: none; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.venue .poster img { display: block; width: 100%; max-height: 260px; object-fit: cover; object-position: top; }
.venue .links { margin-top: auto; padding-top: 14px; }
.poster-view { border: 0; padding: 0; background: transparent; max-width: min(92vw, 900px); max-height: 96vh; overflow: hidden; }
.poster-view::backdrop { background: rgba(5, 8, 15, 0.85); }
.poster-view img { display: block; max-width: 100%; max-height: calc(96vh - 70px); border-radius: 12px; margin: 0 auto; }
.poster-view button { display: block; margin: 10px auto 0; }
/* Logo et affiche dans « Mon compte » */
.fiche-images { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 16px 0 4px; }
.fiche-img { display: grid; gap: 8px; align-content: start; }
.fiche-img.busy { opacity: 0.5; pointer-events: none; }
.fiche-img .preview { background: var(--well); border: var(--border); border-radius: 14px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fiche-img .preview.logo { width: 120px; height: 120px; }
.fiche-img .preview.poster { height: 200px; }
.fiche-img .preview img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fiche-img .small { font-size: 0.85rem; }
@media (max-width: 560px) { .fiche-images { grid-template-columns: 1fr; } }
.kind-pick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kind-pick label { display: flex; flex-direction: column; gap: 2px; border: var(--border); border-radius: 14px; padding: 12px 14px; cursor: pointer; background: var(--card); }
.kind-pick input { position: absolute; opacity: 0; pointer-events: none; }
.kind-pick label:has(input:checked) { background: var(--brass); color: var(--ink); box-shadow: 0 3px 0 var(--ink); }
.kind-pick b { font-family: var(--font-ui); }
.kind-pick span { font-size: 0.88rem; opacity: 0.8; }
.price-card { max-width: 460px; width: 100%; text-align: center; }
.price-card .amount { font-family: var(--font-display); font-size: 3rem; color: var(--accent); margin: 8px 0; }
.price-card ul { text-align: left; margin: 18px 0 22px; padding-left: 0; list-style: none; display: grid; gap: 9px; }
.price-card li::before { content: '✓ '; color: var(--mint); font-weight: 900; }
.price-card a { text-decoration: none; }

.site-footer { border-top: 2px solid var(--line-2); margin-top: 40px; padding: 26px 0 40px; color: var(--faint); font-size: 0.92rem; }
.site-footer .site-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; }
.site-footer a { color: var(--muted); }
.site-footer .spacer { flex: 1; }

/* Formulaires (inscription, connexion, compte) */
.auth { max-width: 470px; margin: 30px auto 60px; }
.auth h1 { font-size: 2rem; margin-bottom: 6px; }
.auth form { display: grid; gap: 16px; margin-top: 20px; }
.auth .check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.95rem; color: var(--muted); }
.auth .check input { margin-top: 3px; width: 18px; height: 18px; }
.auth .alt { margin-top: 18px; color: var(--muted); }
.auth a:not(.btn), .account a:not(.btn) { color: var(--accent); }
.site a.btn-primary { color: var(--on-accent); }
.site a.btn { text-decoration: none; }
.form-error { color: var(--bad); font-weight: 800; min-height: 1.2em; }
.form-ok { color: var(--ok); font-weight: 800; }

.account { max-width: 820px; margin: 20px auto 60px; display: grid; gap: 20px; }
.account h1 { font-size: 2.1rem; }
.account .card h2 { font-size: 1.45rem; margin-bottom: 10px; }
.account .row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.status { display: inline-block; padding: 4px 12px; border-radius: 999px; border: 2px solid var(--ink); font-weight: 900; font-size: 0.9rem; color: var(--ink); }
.status.ok { background: var(--mint); }
.status.warn { background: var(--warn); }
.status.bad { background: var(--coral); }
.tv-link { font-family: ui-monospace, Consolas, monospace; font-size: 1.12rem; background: var(--ink); border-radius: 12px; padding: 12px 14px; word-break: break-all; user-select: all; }
.banner { border: var(--border); border-radius: 16px; padding: 14px 18px; font-weight: 800; box-shadow: var(--pop); }
.banner.ok { background: var(--mint); color: var(--ink); }
.banner.warn { background: var(--yellow); color: var(--ink); }

/* Pages légales */
.legal { max-width: 820px; margin: 20px auto 60px; line-height: 1.6; }
.legal h1 { font-size: 2.2rem; margin-bottom: 18px; }
.legal h2 { font-size: 1.4rem; margin: 28px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal .todo { background: rgba(255, 201, 60, 0.16); color: var(--yellow); border-radius: 6px; padding: 0 5px; font-weight: 800; }
.legal .draft { border: 3px dashed var(--yellow); border-radius: 16px; padding: 14px 18px; color: var(--yellow); font-weight: 800; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-visual { display: none; }
  .steps { grid-template-columns: 1fr; }
  .apk-card { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .site-nav .brand span:last-child { display: none; }
  .site-nav .btn { padding: 8px 12px; font-size: 0.92rem; }
}
