/* landing.css — Pages de CONTENU (accueil, légales, 404). Après base.css.
   Structure reprise du design v2, avec l'identité EXISTANTE conservée :
   logo Lio, palette de boutons « bonbon », fond crème/rose/bleu et ses bulles.
   Les bandes de section sont un voile blanc translucide (et non le lavande du
   design) pour que le fond de marque reste visible dessous. */

/* ---------------- HEADER COLLANT (landing + légales ; le jeu ne charge pas ce fichier) */
.hero {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 250, 246, .88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(239, 231, 245, .9);
}
.nav-cta { font-size: 14px; padding: 10px 16px; border-radius: 999px; }
/* Sur les pages où le CTA est un lien (légales, 404, partenaires), la règle
   .hero-nav a écrasait la couleur du bouton : texte gris sur violet, illisible. */
.hero-nav a.nav-cta, .hero-nav a.nav-cta:hover { color: #fff; text-decoration: none; }
/* …sauf la variante claire : le blanc sur blanc rendait le bouton invisible,
   ce qui donnait l'impression d'un élément qui n'avait pas chargé. */
.hero-nav a.nav-cta.candy-ghost, .hero-nav a.nav-cta.candy-ghost:hover { color: var(--ink); }

/* Les ancres de la nav ne doivent pas passer SOUS le header collant */
#comment-jouer, #streamers, #faq { scroll-margin-top: 88px; }

/* ---------------- HERO ---------------- */
.land-hero {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  max-width: 1120px; margin: 0 auto; padding: 40px 34px 64px;
}
.land-eyebrow {
  display: inline-block; margin: 0 0 14px;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 13px;
  color: var(--grape); background: rgba(124, 92, 255, .1);
  padding: 7px 14px; border-radius: 999px;
}
/* Enveloppe ajoutée pour la DA arcade, où le hero est une bande pleine largeur
   et le contenu recentré à l'intérieur. « display: contents » la rend invisible
   à la mise en page : sans arcade.css, la grille du hero voit toujours ses deux
   colonnes comme avant. C'est ce qui permet de retirer la nouvelle DA d'une
   seule ligne sans casser l'ancienne. */
.land-hero-inner { display: contents; }

.land-hero-txt h1 {
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 48px;
  line-height: 1.06; margin: 0 0 16px; color: var(--ink);
}
/* Le h1 porte deux choses : l'accroche en trois verbes et la phrase à mots-clés.
   Habillage par défaut, repris et amplifié par arcade.css. */
.h1-verbes b { font-weight: inherit; }
.h1-verbes b + b { margin-left: .3em; }
.h1-seo { display: block; margin-top: 8px; font-size: 26px; }
.arc-marquee { display: none; }   /* le bandeau n'existe que dans la DA arcade */
.land-hero-txt h1 span {   /* seul l'accent est en dégradé → titre plus lisible */
  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.55; color: var(--ink-soft); margin: 0 0 24px; max-width: 520px; }

.land-actions { display: flex; flex-direction: column; gap: 10px; max-width: 470px; }
.land-row { display: flex; gap: 10px; align-items: flex-end; }
.land-pseudo { flex: 1; 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 {
  width: 100%; box-sizing: border-box;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 500; font-size: 15px; color: var(--ink);
  padding: 13px 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-row .land-create { flex: 0 0 auto; }
.land-join-toggle {
  align-self: flex-start; background: none; border: none; cursor: pointer; padding: 4px 0;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--grape);
}
.land-join-toggle:hover { text-decoration: underline; }
.land-join { display: flex; gap: 8px; }
.land-join[hidden] { display: none; }
.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-badges { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 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: 7px 13px; box-shadow: var(--shadow-soft);
}

/* Colonne : le cadre, puis la ligne d'aide du mini-jeu sous lui. */
.land-hero-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.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, .lhv-frame canvas { 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; }

/* ---------------- RYTHME DES SECTIONS ----------------
   Bandes alternées : voile blanc translucide (le fond de marque reste visible). */
.land-band { position: relative; z-index: 1; background: rgba(255, 255, 255, .5); border-block: 1px solid rgba(239, 231, 245, .8); }
.land-sec { position: relative; z-index: 1; max-width: 1120px; margin: 0 auto; padding: 64px 34px; }
.land-sec h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 32px; color: var(--ink); text-align: center; margin: 0 0 10px; }
.land-sub { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 15.5px; color: var(--ink-soft); text-align: center; margin: 0 0 34px; }
.land-h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 25px; color: var(--ink); text-align: center; margin: 54px 0 26px; }

/* ---------------- VIDÉO ---------------- */
.land-video { max-width: 900px; }
.vid-frame {
  position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-lg); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  background: linear-gradient(140deg, #EDE7FF, #FFE7F1 55%, #E1F0FF);
  border: 5px solid #fff; box-shadow: var(--shadow-card);
}
.vid-play {
  width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center;
  font-size: 26px; color: #fff; background: linear-gradient(140deg, var(--grape), var(--coral));
  box-shadow: 0 10px 26px rgba(124, 92, 255, .38); padding-left: 4px;
}
.vid-soon { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-soft); }

/* ---------------- POURQUOI (4 cartes) ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { background: var(--card); border-radius: var(--r-lg); padding: 22px 18px; box-shadow: var(--shadow-card); text-align: center; }
.feat-emo { width: 62px; height: 62px; margin: 0 auto 12px; border-radius: 19px; display: grid; place-items: center; font-size: 29px; }
.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: 18px; color: var(--ink); margin: 0 0 6px; }
.feat p { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

/* ---------------- COMMENT JOUER : 3 cartes numérotées ---------------- */
.land-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.land-step { position: relative; background: var(--card); border-radius: var(--r-lg); padding: 24px 20px; box-shadow: var(--shadow-card); text-align: center; }
.ls-num { width: 44px; height: 44px; margin: 0 auto; border-radius: 50%; display: grid; place-items: center; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 20px; 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: 18px; 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.5; margin: 0; }

/* ---------------- DÉROULÉ EN ZIG-ZAG ---------------- */
.flow { display: flex; flex-direction: column; gap: 18px; }
.flow-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: center;
  background: var(--card); border-radius: var(--r-lg); padding: 24px; box-shadow: var(--shadow-card);
}
.flow-row.rev .flow-txt { order: 2; }
.flow-row.rev .flow-shot { order: 1; }
.flow-tag { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--grape); margin: 0 0 8px; }
.flow-txt h4 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 21px; color: var(--ink); margin: 0 0 10px; }
.flow-txt p { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 14.5px; line-height: 1.6; color: var(--ink-soft); margin: 0; }
/* Visuel de l'étape : illustration générée (gen-steps.mjs) dans la charte */
.flow-shot { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover;
  border-radius: var(--r-md); box-shadow: 0 6px 18px rgba(93,61,120,.14); }

/* ---------------- STREAMERS + PARTENAIRES ---------------- */
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
.sec-head h2 { text-align: left; margin: 0 0 6px; }
.sec-head .land-sub { text-align: left; margin: 0; }
.stream-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
/* état vide honnête tant que les lives ne sont pas branchés */
.stream-empty {
  grid-column: 1 / -1; background: var(--card); border-radius: var(--r-lg);
  padding: 44px 24px; text-align: center; box-shadow: var(--shadow-card);
  border: 2px dashed var(--line);
}
.se-emo { font-size: 38px; line-height: 1; }
.se-title { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 18px; color: var(--ink); margin: 10px 0 4px; }
.se-sub { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--ink-soft); margin: 0; }
/* carte de live (prête pour le futur back-end) */
.stream-card { background: var(--card); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-card); }
.sc-thumb { position: relative; aspect-ratio: 16 / 9; background: linear-gradient(140deg, #EDE7FF, #E1F0FF); }
.sc-live { position: absolute; top: 10px; left: 10px; display: inline-flex; align-items: center; gap: 6px; background: #ff3d5a; color: #fff; font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 11.5px; padding: 4px 10px; border-radius: 999px; }
.sc-live i { width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.sc-views { position: absolute; top: 10px; right: 10px; background: rgba(20,16,36,.72); color: #fff; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 11.5px; padding: 4px 9px; border-radius: 999px; }
.sc-body { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.sc-av { width: 38px; height: 38px; flex: 0 0 auto; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: #F4F0FF; }
.sc-name { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 14.5px; color: var(--ink); }
.sc-meta { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 12.5px; color: var(--ink-soft); }

.partner {
  display: flex; align-items: center; justify-content: space-between; gap: 26px; flex-wrap: wrap;
  margin-top: 22px; padding: 26px 28px; border-radius: var(--r-lg);
  background: linear-gradient(120deg, rgba(124,92,255,.1), rgba(53,182,255,.1));
  border: 1.5px solid rgba(124,92,255,.18);
}
.partner-txt { flex: 1 1 420px; }
.partner-txt h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 22px; color: var(--ink); margin: 0 0 8px; }
.partner-txt p { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 14.5px; line-height: 1.55; color: var(--ink-soft); margin: 0; max-width: 620px; }
.partner-cta { flex: 0 0 auto; text-decoration: none; display: inline-block; }

/* ---------------- TEXTE SEO ---------------- */
.land-concept { max-width: 880px; }
.land-concept h2 { font-size: 27px; }
.land-concept p { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 16px; line-height: 1.65; color: var(--ink-soft); margin: 0 0 14px; }
.land-concept strong { color: var(--ink); }

/* ---------------- FAQ ---------------- */
.land-faq { max-width: 780px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq-list details { background: var(--card); border-radius: var(--r-md); box-shadow: var(--shadow-soft); overflow: hidden; }
.faq-list summary { cursor: pointer; padding: 16px 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.55; }

/* ---------------- CTA FINAL (bande pleine largeur) ---------------- */
.land-cta { position: relative; z-index: 1; text-align: center; padding: 72px 34px; background: linear-gradient(120deg, var(--grape), var(--coral)); }
.land-cta h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 38px; color: #fff; margin: 0 0 10px; }
.land-cta p { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 16.5px; color: rgba(255,255,255,.94); margin: 0 0 24px; }

/* ---------------- FOOTER DE SITE (multi-colonnes) ---------------- */
.site-footer { position: relative; z-index: 1; background: #241C4A; color: #A9A2C4; padding: 52px 34px 22px; }
.sf-inner { max-width: 1120px; margin: 0 auto; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; }
.sf-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.sf-logo img { display: block; border-radius: 12px; }
.sf-wordmark { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 22px; background: linear-gradient(100deg, var(--coral), var(--grape) 45%, var(--sky)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sf-tag { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 13.5px; line-height: 1.55; color: #A9A2C4; margin: 12px 0 16px; max-width: 300px; }
/* Les réseaux vivent dans la colonne de MARQUE, à gauche, sous l'accroche —
   pas dans « Communauté ». Ils appartiennent à l'identité du site, pas à une
   liste de liens. La marge du haut les décolle de la phrase. */
.sf-social { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.sf-social .social-link { color: #A9A2C4; width: 38px; height: 38px; border-radius: 11px; background: rgba(255,255,255,.06); }
.sf-social .social-link:hover { color: #fff; background: rgba(255,255,255,.14); transform: translateY(-1px); }
.sf-col { display: flex; flex-direction: column; gap: 9px; }
.sf-col h4 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 14.5px; color: #fff; margin: 0 0 3px; }
.sf-col a { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 13.5px; color: #A9A2C4; text-decoration: none; transition: color .14s; }
.sf-col a:hover { color: #fff; }
.sf-bottom {
  max-width: 1120px; margin: 34px auto 0; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 12.5px; color: #8A84A8;
}
.sf-motto { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; }

/* ---------------- FOOTER SIMPLE (pages légales + 404) ---------------- */
.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); }

/* ---------------- NAV DU HEADER ---------------- */
.hero-nav { display: flex; align-items: center; gap: 18px; }
.hero-nav a { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 14.5px; 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 */

/* ---------------- COMPTEUR PUBLIC « parties en cours » ---------------- */
.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; }

/* ---------------- RESPONSIVE ---------------- */
@media (max-width: 1000px) {
  .feat-grid { grid-template-columns: 1fr 1fr; }
  .sf-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .land-hero { grid-template-columns: 1fr; gap: 26px; padding: 22px 20px 44px; }
  /* L'image passe APRÈS le texte et les deux boutons. Au-dessus, elle
     repoussait l'accroche et l'entrée en partie sous la ligne de flottaison :
     on arrivait sur une photo sans savoir ce qu'on regardait. */
  .land-hero-visual { order: 0; }
  .land-hero-txt h1 { font-size: 34px; }
  .land-lead { font-size: 16px; }
  .land-row { flex-direction: column; align-items: stretch; }
  .land-row .land-create { width: 100%; }
  .land-sec { padding: 46px 20px; }
  .land-sec h2 { font-size: 26px; }
  .land-h3 { font-size: 21px; margin-top: 40px; }
  .land-steps { grid-template-columns: 1fr; }
  .flow-row { grid-template-columns: 1fr; gap: 18px; padding: 18px; }
  .flow-row.rev .flow-txt, .flow-row.rev .flow-shot { order: 0; }   /* image toujours après le texte */
  .sec-head { flex-direction: column; align-items: stretch; }
  .stream-grid { grid-template-columns: 1fr; }
  .partner { flex-direction: column; align-items: stretch; padding: 20px; }
  .partner-cta { text-align: center; }
  .land-cta { padding: 52px 20px; }
  .land-cta h2 { font-size: 28px; }
  .site-footer { padding: 40px 20px 18px; }
  .sf-inner { grid-template-columns: 1fr; gap: 26px; }
  .sf-bottom { flex-direction: column; align-items: flex-start; gap: 8px; }
  /* Sous le pouce, un lien de pied de page ne faisait que 19 px de haut : on
     vise à côté une fois sur deux. On lui donne la hauteur d'une vraie cible
     tactile sans changer sa taille de texte. Le desktop garde sa compacité. */
  .sf-col a, .lf-links a { display: flex; align-items: center; min-height: 44px; }
  .sf-col { gap: 0; }
  .sf-social .social-link { width: 44px; height: 44px; }
  /* sur mobile on ne garde que le CTA : les liens de nav (« #faq » sur l'accueil
     mais « /#faq » sur les pages légales) débordaient l'écran */
  .hero-nav a:not(.nav-cta) { display: none; }
  /* header sur UNE ligne : logo + langue + Jouer. Le compteur cède sa place au
     CTA, plus utile sous le pouce (le header est collant tout du long). */
  .hero-live { display: none; }
  .hero-nav { gap: 10px; flex-wrap: nowrap; }
  .nav-cta { padding: 10px 14px; font-size: 13.5px; white-space: nowrap; }
}
@media (max-width: 560px) {
  .feat-grid { grid-template-columns: 1fr; }
  .land-badges li { font-size: 12px; padding: 6px 11px; }
}
/* ===== 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; }
/* Enfant DIRECT. Les boutons empilés prennent toute la largeur, mais celui de
   « Rejoindre » vit dans .nf-join à côté du champ de code : à 100 % il ne
   laissait au champ que 34 px et débordait de la colonne. */
.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; }
/* Sous-titre de section (introduit par la partie « comptes » de la politique). */
.legal h3 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 16.5px; color: var(--grape); margin: 20px 0 8px; }
.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; }


/* ===== PAGE « EN COURS DE CRÉATION » (partenaires) ===== */
.soon { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; padding: 46px 34px 70px; text-align: center; }
.soon-emo { font-size: 54px; line-height: 1; display: block; }
.soon-tag { display: inline-block; margin: 14px 0 10px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 13px; color: var(--grape); background: rgba(124,92,255,.1); padding: 7px 14px; border-radius: 999px; }
.soon h1 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 34px; color: var(--ink); margin: 0 0 12px; }
.soon-lead { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 16.5px; line-height: 1.6; color: var(--ink-soft); margin: 0 auto 30px; max-width: 620px; }
.soon-card { background: var(--card); border-radius: var(--r-lg); box-shadow: var(--shadow-card); padding: 28px 26px; text-align: left; }
.soon-card h2 { font-family: "Fredoka", system-ui, sans-serif; font-weight: 700; font-size: 21px; color: var(--ink); margin: 0 0 14px; }
.soon-list { margin: 0 0 18px; padding-left: 22px; }
.soon-list li { font-family: "Nunito", system-ui, sans-serif; font-weight: 600; font-size: 15px; line-height: 1.7; color: var(--ink-soft); }
.soon-note { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 14.5px; line-height: 1.6; color: var(--ink); margin: 0 0 18px; }
.soon-card .candy { display: inline-block; text-decoration: none; }
.soon-back { display: inline-block; margin-top: 26px; font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 14.5px; color: var(--grape); text-decoration: none; }
.soon-back:hover { text-decoration: underline; }
@media (max-width: 820px) {
  .soon { padding: 30px 20px 50px; }
  .soon h1 { font-size: 26px; }
  .soon-card { padding: 20px 18px; }
  .soon-card .candy { width: 100%; box-sizing: border-box; text-align: center; }
}

/* Têtes d'animaux du bloc partenaires : illustrations d'attente, en place des
   vrais streamers (aucun compte affilié annoncé tant qu'il n'y en a pas). */
.partner-faces { display: flex; align-items: center; gap: 12px; margin-top: 16px; flex-wrap: wrap; }
.pf-stack { display: flex; }
.pf {
  width: 42px; height: 42px; margin-left: -10px; border-radius: 50%;
  display: grid; place-items: center; font-size: 21px;
  background: #fff; border: 2.5px solid #fff; box-shadow: 0 3px 10px rgba(93,61,120,.18);
}
.pf:first-child { margin-left: 0; }
/* La tuile d'une VRAIE partenaire : même gabarit que les silhouettes, mais
   cliquable et au-dessus de la pile (sans z-index elle passerait dessous, les
   suivantes la recouvrant par le jeu des marges négatives). */
.pf-vraie {
  position: relative; z-index: 2; padding: 0; overflow: hidden;
  background: #fff; cursor: pointer;
  transition: transform .14s var(--ease), box-shadow .14s;
}
.pf-vraie img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.pf-vraie:hover { transform: translateY(-3px) scale(1.08); box-shadow: 0 6px 16px rgba(93,61,120,.30); }
.pf:nth-child(1) { background: #FFE1EC; }
.pf:nth-child(2) { background: #DFF7EE; }
.pf:nth-child(3) { background: #EDE7FF; }
.pf:nth-child(4) { background: #FFF3D9; }
.pf:nth-child(5) { background: #E1F0FF; }
.pf-note { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 13px; color: var(--ink-soft); }

/* =========================================================================
   ANIMATIONS (posées par anim.js — sans lui, tout reste visible)
   Uniquement opacity et transform : aucune de ces animations ne déplace la
   mise en page. Tout est désactivé si l'utilisateur préfère moins d'animations.
   ========================================================================= */
.reveal { opacity: 0; transform: translateY(16px); will-change: opacity, transform; }
.reveal.in { opacity: 1; transform: none; transition: opacity .55s var(--ease), transform .55s var(--ease); }
.reveal.in { will-change: auto; }
/* cascade à l'intérieur d'un même groupe */
.reveal.rd1.in { transition-delay: .07s; }
.reveal.rd2.in { transition-delay: .14s; }
.reveal.rd3.in { transition-delay: .21s; }
.reveal.rd4.in { transition-delay: .28s; }

/* Le visuel du hero respire doucement (6 s), en conservant son inclinaison. */
@keyframes lhvFloat {
  0%, 100% { transform: rotate(2deg) translateY(0); }
  50%      { transform: rotate(2deg) translateY(-7px); }
}
.land-hero-visual.in .lhv-frame { animation: lhvFloat 6s ease-in-out 1s infinite; }

/* Le numéro d'étape fait un petit pop à son apparition. */
@keyframes numPop { 0% { transform: scale(.6); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.land-step.in .ls-num { animation: numPop .45s var(--ease) .12s both; }

/* Bouton de lecture de la vidéo : pulsation très lente, juste pour signaler. */
@keyframes playPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(124, 92, 255, .38); }
  50%      { transform: scale(1.06); box-shadow: 0 14px 34px rgba(124, 92, 255, .5); }
}
.vid-frame.in .vid-play { animation: playPulse 3.2s ease-in-out 1s infinite; }

/* Réponse de la FAQ : ouverture en douceur (déclenchée par l'utilisateur). */
@keyframes faqIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.faq-list details[open] p { animation: faqIn .26s var(--ease) both; }

/* Vie au survol, uniquement là où le survol existe vraiment. */
@media (hover: hover) and (pointer: fine) {
  .feat, .land-step { transition: transform .18s var(--ease), box-shadow .18s var(--ease); }
  .feat:hover, .land-step:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(93, 61, 120, .16); }
  .flow-shot { transition: transform .3s var(--ease); }
  .flow-row:hover .flow-shot { transform: scale(1.015); }
  .pf { transition: transform .16s var(--ease); }
  .pf:hover { transform: translateY(-3px) scale(1.06); }
  .sf-col a { transition: color .14s, transform .14s; }
  .sf-col a:hover { transform: translateX(2px); }
  .land-badges li { transition: transform .16s var(--ease); }
  .land-badges li:hover { transform: translateY(-2px); }
}

/* Respect absolu du réglage système : aucune animation, aucun état masqué. */
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1 !important; transform: none !important; transition: none !important; }
  .land-hero-visual.in .lhv-frame,
  .land-step.in .ls-num,
  .vid-frame.in .vid-play,
  .faq-list details[open] p { animation: none !important; }
  .feat:hover, .land-step:hover, .flow-row:hover .flow-shot, .pf:hover,
  .sf-col a:hover, .land-badges li:hover { transform: none !important; }
}

/* Sur petit écran, la page est longue : on réduit l'amplitude et la durée des
   révélations pour que le défilement reste calme. */
@media (max-width: 820px) {
  .reveal { transform: translateY(10px); }
  .reveal.in { transition-duration: .42s; }
  .reveal.rd1.in { transition-delay: .05s; }
  .reveal.rd2.in { transition-delay: .1s; }
  .reveal.rd3.in { transition-delay: .15s; }
  .reveal.rd4.in { transition-delay: .2s; }
  /* la respiration du visuel est superflue quand il est en pleine largeur */
  .land-hero-visual.in .lhv-frame { animation: none; }
}

/* Défi du jour : la seule porte du jeu qui se franchit seul. Le bloc reste
   sobre — il propose une alternative, il ne concurrence pas le bouton
   principal « Créer une partie ». */
.defi-teaser { text-align: center; }
.defi-teaser .dt-txt { max-width: 640px; margin: 0 auto; }
.defi-teaser h2 { margin: 0 0 10px; }
.defi-teaser p { margin: 0 auto 18px; line-height: 1.6; }

/* =========================================================================
   FICHE PARTENAIRE — page /partenaires

   Une personne nommée, avec sa photo, sa chaîne et ce qu'elle a apporté.
   La page annonçait un programme sans montrer personne : c'est désormais
   la seule chose vérifiable qu'on y trouve, et elle passe en premier.
   ========================================================================= */
.part-liste { width: 100%; max-width: 660px; margin: 0 auto 36px; }
.part-carte {
  position: relative;
  display: grid; grid-template-columns: auto 1fr; gap: 6px 18px;
  align-items: start; text-align: left;
  background: #fff; border-radius: 22px; padding: 24px 22px 20px;
  box-shadow: 0 14px 34px rgba(59, 46, 82, .10);
  border: 2px solid rgba(145, 70, 255, .18);
}
.part-rang {
  position: absolute; top: -11px; left: 22px;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 12px;
  color: #fff; background: linear-gradient(100deg, #9146FF, var(--sky));
  padding: 3px 11px; border-radius: 999px;
}
.part-av {
  width: 72px; height: 72px; border-radius: 22px; display: block;
  object-fit: cover; background: #fff;
  box-shadow: 0 6px 16px rgba(145, 70, 255, .22);
}
.part-txt h2 {
  font-size: 21px; margin: 2px 0 6px;
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.part-tw {
  font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 13px;
  color: #9146FF; text-decoration: none;
  background: rgba(145, 70, 255, .10); padding: 3px 9px; border-radius: 999px;
}
.part-tw:hover { background: rgba(145, 70, 255, .18); }
.part-txt p { margin: 0 0 8px; font-size: 14px; line-height: 1.6; color: var(--ink-soft); font-weight: 700; }
.part-chaine { color: var(--ink) !important; }
.part-cta { grid-column: 1 / -1; justify-self: start; margin-top: 10px; }
.part-note { margin: 14px 0 0; font-size: 13px; font-weight: 700; color: var(--ink-soft); text-align: center; }
@media (max-width: 560px) {
  .part-carte { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 26px 18px 20px; }
  .part-rang { left: 50%; transform: translateX(-50%); }
  .part-txt h2 { justify-content: center; }
  .part-cta { justify-self: center; }
}

/* =========================================================================
   ENTRÉE EN PARTIE EN DEUX TEMPS (structure ; l'habillage est dans arcade.css)
   D'abord deux portes, ensuite le formulaire. On ne demande le pseudo qu'une
   fois qu'on sait pourquoi on le demande.
   ========================================================================= */
.land-portes { display: flex; flex-direction: column; gap: 12px; max-width: 400px; }
.land-porte { width: 100%; justify-content: center; }
.land-portes[hidden], .land-form[hidden] { display: none; }

.land-form { display: flex; flex-direction: column; gap: 12px; max-width: 470px; }
.land-form-h { margin: 0; font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 15px; }
.land-retour {
  align-self: flex-start; background: none; border: none; cursor: pointer; padding: 2px 0;
  font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; font-size: 14px; color: var(--grape);
}
.land-retour:hover { text-decoration: underline; }
.land-code-champ input { text-align: center; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; }
.land-code-champ[hidden] { display: none; }

/* Rappel d'action, répété après les grandes sections. Une ligne, un bouton :
   assez pour attraper qui vient de se décider, assez discret pour qu'on puisse
   le croiser cinq fois sans le subir. */
.land-relance {
  display: flex; align-items: center; justify-content: center; gap: 18px;
  flex-wrap: wrap; margin: 34px auto 0; text-align: center;
}
.land-relance p { margin: 0; font-family: "Nunito", system-ui, sans-serif; font-weight: 800; font-size: 16px; }

/* =========================================================================
   LE MINI-JEU DU HERO
   ========================================================================= */
.lhv-jeu {
  display: block; width: 100%; padding: 0; border: none; background: none;
  position: relative; cursor: crosshair; border-radius: 16px; overflow: hidden;
}
/* L'image ne reçoit pas les clics : ainsi offsetX et offsetY sont toujours
   donnés dans le repère du bouton, et le calcul de la zone reste juste même
   quand le cadre est incliné. */
.lhv-jeu img { display: block; width: 100%; height: auto; pointer-events: none; }
.lhv-jeu[aria-disabled="true"] { cursor: default; }

/* La zone du caméléon, relevée sur l'image en pourcentage : elle suit le cadre
   à toutes les tailles. Invisible tant qu'on n'a pas trouvé. */
.lhv-cible {
  position: absolute; left: 16%; top: 50%; width: 21%; height: 31%;
  border-radius: 50%; pointer-events: none;
  opacity: 0; transition: opacity .3s ease;
}
.lhv-cible.tiede { opacity: 1; box-shadow: 0 0 0 9999px rgba(20, 12, 34, .28); }
.lhv-cible.on { opacity: 1; }

.lhv-rate {
  position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px;
  border-radius: 50%; pointer-events: none;
  border: 3px solid rgba(255, 255, 255, .9);
  animation: lhvRate .7s ease-out forwards;
}
@keyframes lhvRate {
  from { transform: scale(.4); opacity: 1; }
  to   { transform: scale(1.9); opacity: 0; }
}

.lhv-aide[hidden] { display: none; }
.lhv-aide {
  margin: 12px 0 0; text-align: center;
  font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 14px;
  min-height: 20px;
}
/* SOUS le cadre, pas dessus. Posé sur l'image, ce panneau recouvrait le
   caméléon à l'instant même où on venait de le débusquer. */
.lhv-gagne {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  margin-top: 10px; padding: 14px 16px; border-radius: 18px; text-align: center;
  max-width: 480px;
}
.lhv-gagne[hidden] { display: none; }
.lhv-gagne strong { font-size: 20px; }
.lhv-gagne span { font-family: "Nunito", system-ui, sans-serif; font-weight: 700; font-size: 14px; }

@media (prefers-reduced-motion: reduce) {
  .lhv-rate { animation: none; opacity: .8; }
}
@media (max-width: 820px) {
  .land-portes, .land-form { max-width: none; }
  .land-relance { gap: 12px; }
  .land-relance p { font-size: 15px; }
}
