/* landing.css — Pages de CONTENU (accueil, légales, 404). Après base.css. */

.land-hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 36px; align-items: center;
  max-width: 1080px; margin: 0 auto; padding: 18px 34px 44px;
}
.land-hero-txt h1 {
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 44px; line-height: 1.04; margin: 0 0 14px;
  background: linear-gradient(100deg, var(--coral), var(--grape) 58%, var(--sky));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.land-lead { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 17px; line-height: 1.5; color: var(--ink-soft); margin: 0 0 22px; max-width: 520px; }
.land-actions { display: flex; flex-direction: column; gap: 11px; max-width: 430px; }
.land-pseudo { display: flex; flex-direction: column; gap: 6px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 13px; color: var(--ink-soft); }
.land-pseudo input, .land-join input {
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 12px 15px; border: 2px solid var(--line); border-radius: 13px; background: #fff; transition: border-color .14s;
}
.land-pseudo input:focus, .land-join input:focus { outline: none; border-color: var(--grape); }
.land-create { width: 100%; }
.land-join { display: flex; gap: 8px; }
.land-join input { flex: 1; text-align: center; font-weight: 700; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; }
.land-join .candy { flex: 0 0 auto; }
.land-err { min-height: 18px; margin: 0; color: var(--coral); font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 13px; }
.land-noacc { margin: 2px 0 0; font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 12.5px; color: var(--ink-soft); }

.land-hero-visual { display: flex; justify-content: center; }
.lhv-frame { position: relative; border-radius: 22px; overflow: hidden; box-shadow: var(--shadow-card); border: 5px solid #fff; transform: rotate(2deg); max-width: 480px; }
.lhv-frame img { display: block; width: 100%; height: auto; }
.lhv-badge { position: absolute; left: 14px; bottom: 14px; background: rgba(20,16,36,.82); color: #fff; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 14px; padding: 8px 14px; border-radius: 999px; }

.land-sec { position: relative; z-index: 1; max-width: 940px; margin: 0 auto; padding: 44px 34px; }
.land-sec h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 29px; color: var(--ink); text-align: center; margin: 0 0 26px; }

/* "Comment jouer" = parcours en 3 étapes dans un panneau blanc (numéros + flèches) */
.land-how { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card); margin: 30px auto; }
.land-steps { display: flex; gap: 4px; align-items: flex-start; }
.land-step { flex: 1; position: relative; text-align: center; padding: 6px 16px; }
.land-step:not(:last-child)::after { content: '→'; position: absolute; top: 28px; right: -8px; color: var(--grape); font-size: 22px; font-weight: 700; opacity: .4; }
.ls-num { width: 48px; height: 48px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 22px; color: #fff; background: linear-gradient(140deg, var(--grape), var(--sky)); box-shadow: var(--shadow-soft); }
.ls-emo { font-size: 27px; line-height: 1; display: block; margin-top: 12px; }
.land-step h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 16.5px; color: var(--ink); margin: 8px 0 6px; }
.land-step p { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); line-height: 1.45; margin: 0; }
.land-concept p { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 16px; line-height: 1.6; color: var(--ink-soft); text-align: center; max-width: 720px; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; gap: 10px; max-width: 680px; margin: 0 auto; }
.faq-list details { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-list summary { cursor: pointer; padding: 15px 18px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 15.5px; color: var(--ink); list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; float: right; color: var(--grape); font-weight: 700; }
.faq-list details[open] summary::after { content: '−'; }
.faq-list details p { margin: 0; padding: 0 18px 16px; font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-soft); line-height: 1.5; }

.land-footer { position: relative; z-index: 1; text-align: center; padding: 30px 34px 40px; border-top: 1px solid var(--line); margin-top: 20px; }
.lf-links { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
.lf-links a { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 13.5px; color: var(--grape); text-decoration: none; }
.lf-links a:hover { text-decoration: underline; }
.lf-copy { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 12.5px; color: var(--ink-soft); }

/* ===== PAGE 404 ===== */
.notfound { position: relative; z-index: 1; max-width: 640px; margin: 0 auto; padding: 46px 34px 90px; text-align: center; min-height: 46vh; }
.nf-code { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 96px; line-height: 1; background: linear-gradient(100deg, var(--coral), var(--grape) 55%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound h1 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 28px; color: var(--ink); margin: 6px 0 10px; }
.nf-sub { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 16px; color: var(--ink-soft); margin: 0 0 26px; }
.nf-actions { display: flex; flex-direction: column; gap: 12px; max-width: 400px; margin: 0 auto; }
.nf-actions .candy { width: 100%; box-sizing: border-box; }
.nf-hint { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 13px; color: var(--ink-soft); margin: 26px 0 0; opacity: .85; }
#nfLio { position: fixed; opacity: .12; cursor: pointer; z-index: 5; transition: opacity .2s; }
#nfLio:hover { opacity: .22; }
.nf-found { position: fixed; top: 40%; left: 50%; transform: translate(-50%,-50%); z-index: 60; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 30px; color: #fff; background: linear-gradient(100deg, var(--coral), var(--grape)); padding: 10px 24px; border-radius: 999px; box-shadow: var(--shadow-card); animation: missPop .5s var(--ease) both; }
.confetti { position: fixed; width: 9px; height: 9px; border-radius: 2px; z-index: 55; pointer-events: none; animation: confettiFly 1.5s ease-out forwards; }
@keyframes confettiFly { 0% { opacity: 1; transform: translate(0,0) rotate(0); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) rotate(var(--rot)); } }

/* ===== PAGES LÉGALES ===== */
.legal { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 14px 34px 60px; }
.legal-back { display: inline-block; margin-bottom: 6px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--grape); text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal h1 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 34px; color: var(--ink); margin: 8px 0 4px; }
.legal-upd { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 13px; color: var(--ink-soft); margin: 0 0 22px; }
.legal h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 20px; color: var(--ink); margin: 28px 0 10px; }
.legal p, .legal li { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.6; color: var(--ink); }
.legal ul { padding-left: 20px; }
.legal a { color: var(--grape); }
.legal .todo { background: #FFF7E6; border-radius: 8px; padding: 2px 8px; color: #7a4d00; font-weight: 800; }
.legal .btn-cookies { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px; border: 2px solid var(--grape); background: #fff; color: var(--grape); cursor: pointer; }
.legal .btn-cookies:hover { background: var(--grape); color: #fff; }

/* nav du header */
.hero-nav { display: flex; align-items: center; gap: 20px; }
.hero-nav a { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color .14s; }
.hero-nav a:hover { color: var(--grape); }
body.playing .hero-nav a[href^="#"] { display: none; }   /* ancres inutiles en jeu */

/* badges de confiance sous le hero */
.land-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 0; padding: 0; }
.land-badges li {
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 12.5px; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 6px 12px; box-shadow: var(--shadow-soft);
}

/* visuel du hero (canvas Lio camouflé) */
.lhv-frame canvas { display: block; width: 100%; height: auto; }

/* atouts : icônes colorées (pas de carte pleine → visuellement distinct des étapes) */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { text-align: center; padding: 4px; }
.feat-emo { width: 66px; height: 66px; margin: 0 auto 12px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; box-shadow: var(--shadow-soft); }
.feat:nth-child(1) .feat-emo { background: #FFE1EC; }
.feat:nth-child(2) .feat-emo { background: #EDE7FF; }
.feat:nth-child(3) .feat-emo { background: #E1F0FF; }
.feat:nth-child(4) .feat-emo { background: #DFF7EE; }
.feat h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 16px; color: var(--ink); margin: 0 0 5px; }
.feat p { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 13px; color: var(--ink-soft); line-height: 1.45; margin: 0; }

.land-concept p { margin-bottom: 12px; }
.land-concept strong { color: var(--ink); }

/* CTA final : bande colorée qui pop */
.land-cta { position: relative; z-index: 1; text-align: center; max-width: 940px; margin: 30px auto 10px; padding: 48px 34px; border-radius: var(--r-lg); background: linear-gradient(120deg, var(--grape), var(--coral)); box-shadow: var(--shadow-card); }
.land-cta h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 31px; color: #fff; margin: 0 0 8px; }
.land-cta p { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 16px; color: rgba(255,255,255,.92); margin: 0 0 22px; }

@media (max-width: 820px) {
  .land-hero { grid-template-columns: 1fr; gap: 24px; padding-top: 8px; }
  .land-hero-visual { order: -1; }
  .land-steps { flex-direction: column; gap: 22px; }
  .land-step:not(:last-child)::after { content: '↓'; top: auto; bottom: -16px; right: 50%; transform: translateX(50%); }
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .land-hero-txt h1 { font-size: 33px; }
  .hero-nav a[href^="#"] { display: none; }   /* nav ancres cachée sur mobile */
}

/* ===== Compteur public "parties en cours" (header + footer) ===== */
.hero-live {
  display: inline-flex; align-items: center; gap: 7px;
  font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 13px;
  color: #1c7a5a; background: rgba(55, 217, 160, .16);
  padding: 6px 13px; border-radius: 999px; white-space: nowrap;
}
.hero-live[hidden] { display: none; }
body.playing .hero-live { display: none; }
.lf-live {
  margin: 0 auto 14px; font-family: "Nunito", system-ui, sans-serif; font-weight: 800;
  font-size: 14px; color: #1c7a5a; background: rgba(55, 217, 160, .14);
  padding: 8px 16px; border-radius: 999px; display: inline-block;
}
.lf-live[hidden] { display: none; }
