
/* LANDING FIGMA PIXEL-PERFECT */
#landing{
  flex-direction: column;
  align-items: stretch;
  padding: 0;
  min-height: 100dvh;
  position: relative;
  overflow-x: clip;
}
.ld-badge-row{
  display: flex;
  justify-content: flex-end;
  padding: 22px 20px 0 0;
  margin-bottom: 34px;
  flex-shrink: 0;
}
.ld-badge{
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #fff;
}
.ld-dot{
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
/* ─────────────────────────────── */

/* FIGMA MANQUANTS */
.fig-section-lbl{font-family:'MuseoModerno',sans-serif;font-size:12px;font-weight:800;color:#fff;text-transform:uppercase;letter-spacing:1px;margin:10px 0 6px;width:100%;}

/* FIGMA PAGES */
#s-res{padding:0;align-items:stretch}
/* ══ FIGMA BG ══════════════════════ */

/* ══ TOKENS ══════════════════════════════════════════
   Un seul :root. Les 5 couleurs de l'identite actuelle
   (accent, cream, ink, green, border) + le degrade cream
   translucide qui habille les rangees (classement, lien
   de partage...). Le bloc legacy en dessous (--bg,--s1,
   --grn...) reste necessaire tel quel : il alimente encore
   les pages non refaites (multijoueur, chargement, modals)
   et ne doit pas etre touche sans refaire ces ecrans. ── */
:root{
  /* alias des tokens du kit (sonara-kit.css) */
  --accent:var(--sn-accent);
  --cream:var(--sn-cream);
  --cream-soft:var(--sn-cream-soft);
  --ink:var(--sn-ink);
}
#landing{flex-direction:column;align-items:stretch;padding:0;min-height:100dvh;justify-content:flex-start;}
.glb-top{padding:4px 20px 0;}
.glb-top .fig-section-lbl{margin:10px 0 6px;}
.glb-row{display:flex;align-items:center;gap:10px;background:rgba(253,221,184,0.5);border-radius:4px;padding:7px 12px;margin-bottom:4px;font-family:'Inter',sans-serif;font-size:12px;color:#2d1002;}
.glb-rk{width:18px;font-weight:700;}
.glb-nm{flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
.glb-sc{font-weight:700;}

/* ── #s-defi : ecran "Defi a partager" (maquette Figma 52:201) ── */
#s-defi{flex-direction:column;align-items:stretch;padding:0;position:relative;overflow-x:clip;}

*{margin:0;padding:0;box-sizing:border-box}
html,body{background:var(--sn-ink);color:#fff;font-family:var(--sn-font-body);min-height:100vh}
/* Champs et boutons : police du texte (sinon police systeme du navigateur) */
button,input,textarea,select{font-family:inherit}

/* ── SYSTÈME DE PAGES PAR ANCRES CSS ────────────────────
   Chaque page est ciblée via :target
   La page #landing est visible par défaut (pas de :target)
──────────────────────────────────────────────────────── */
.page{display:none;min-height:100vh;flex-direction:column;align-items:center;position:relative;z-index:1}
/* Landing visible par défaut ET quand #landing est la cible */
#landing{display:flex}
/* Toutes les autres pages via :target */
.page:target{display:flex}
/* Landing masquée via JS quand on navigue */

/* ── LANDING ── */
#landing{padding:0}
nav{width:100%;max-width:1000px;display:flex;align-items:center;justify-content:space-between;padding:24px 0}
h1{font-family:'MuseoModerno',sans-serif;font-weight:800;font-size:clamp(52px,9vw,96px);line-height:.92;letter-spacing:-3px;color:#fff;margin-bottom:18px}

/* ── MODALS PAR THÈME (ciblées par :target) ── */
.modal-bg{
  display:none;position:fixed;inset:0;
  background:rgba(0,0,0,.85);backdrop-filter:blur(14px);
  z-index:500;align-items:flex-end;justify-content:center;
}
.modal-bg:target{display:flex}.modal-bg.open{display:flex}
@media(min-width:540px){.modal-bg{align-items:center;padding:20px}}

/* ── LOADING ── */
/* #s-load reprend la mise en page des ecrans de jeu (.page.jg, jeu.css) */





















/* countdown */





/* pause */








/* question */



























/* reveal */



















/* results */
#s-res{padding:0 20px 60px}
.notif{position:fixed;top:72px;left:50%;transform:translateX(-50%);background:var(--sn-ink-raised);box-shadow:inset 0 0 0 1px var(--sn-w-14);color:var(--sn-cream);padding:9px 18px;border-radius:999px;font-family:var(--sn-font-body);font-size:13px;font-weight:600;z-index:999;white-space:nowrap}

@keyframes dp{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.4;transform:scale(1.4)}}
@keyframes cdp{0%{transform:scale(1.5);opacity:0}55%{transform:scale(.93)}100%{transform:scale(1);opacity:1}}
@keyframes pfly{0%{opacity:1;transform:translateX(-50%) translateY(0)}100%{opacity:0;transform:translateX(-50%) translateY(-50px)}}
@keyframes spin{to{transform:rotate(360deg)}}

/* Animation logo */
@keyframes logo-pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.03); opacity: 0.9; }
}

@media (min-width: 900px) {
  #landing{ justify-content: flex-start; }
  .ld-badge-row{ padding: 28px 40px 0 0; }
}
