/* =====================================================================
   Site de présentation (navigateur web) — includes/site_home.php.
   Même identité que l'appli (design-v2.css) : crème, encre brune, accent
   orange, violet Ludiko, Fredoka + Inter. Préfixe .st-* pour ne jamais
   entrer en collision avec les styles de l'appli.
   ===================================================================== */

/* Polices locales, chemins réels des fichiers (fonts/<famille>/...). Pas
   fonts/fonts.css : ses url('./...') pointent à plat dans fonts/ où les
   fichiers ne sont pas (404, aussi en prod) — laissé tel quel pour ne pas
   changer l'apparence de l'appli. */
@font-face{ font-family:'Fredoka'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/fredoka-v17-latin/fredoka-v17-latin-600.woff2') format('woff2'); }
@font-face{ font-family:'Fredoka'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/fredoka-v17-latin/fredoka-v17-latin-700.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('/fonts/inter-v20-latin/inter-v20-latin-regular.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('/fonts/inter-v20-latin/inter-v20-latin-500.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('/fonts/inter-v20-latin/inter-v20-latin-600.woff2') format('woff2'); }
@font-face{ font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('/fonts/inter-v20-latin/inter-v20-latin-700.woff2') format('woff2'); }

:root{
  --st-bg:#FCF9F3;
  --st-bg-2:#F6EEDF;
  --st-surface:#FFFDF8;
  --st-ink:#241A10;
  --st-ink-soft:#4A3A28;
  --st-muted:#5C4D3A;
  --st-line:rgba(36,26,16,.10);
  --st-accent:#C1793A;
  --st-orange:#E8833A;
  --st-purple:#5B3EA6;
  --st-purple-deep:#2A1A52;
  --st-purple-light:#E9E0FF;
  --st-radius:22px;
  --st-display:'Fredoka', 'Nunito', system-ui, sans-serif;
  --st-body:'Inter', system-ui, -apple-system, sans-serif;
}

*,*::before,*::after{ box-sizing:border-box; }
html{ scroll-behavior:smooth; -webkit-text-size-adjust:100%; }
@media (prefers-reduced-motion: reduce){ html{ scroll-behavior:auto; } }

body.st-body{
  margin:0;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(255,214,150,.45), transparent 70%),
    radial-gradient(700px 400px at -10% 30%, rgba(169,104,232,.10), transparent 70%),
    var(--st-bg);
  color:var(--st-ink);
  font-family:var(--st-body);
  font-size:17px;
  line-height:1.6;
}
img{ max-width:100%; height:auto; display:block; }
/* Les éléments qui glissent depuis les côtés (animations) ne doivent jamais
   créer de défilement horizontal sur téléphone. */
main{ overflow-x:hidden; overflow-x:clip; }
a{ color:inherit; }
a:focus-visible, .st-store:focus-visible{ outline:3px solid var(--st-purple); outline-offset:3px; border-radius:12px; }

/* ---------------- En-tête ---------------- */
.st-header{
  position:sticky; top:0; z-index:10;
  background:rgba(252,249,243,.86);
  -webkit-backdrop-filter:saturate(1.4) blur(10px);
  backdrop-filter:saturate(1.4) blur(10px);
  border-bottom:1px solid var(--st-line);
}
.st-header-inner{
  max-width:1160px; margin:0 auto; padding:12px 24px;
  display:flex; align-items:center; gap:24px;
}
.st-brand{
  display:inline-flex; align-items:center; gap:10px;
  text-decoration:none; font-family:var(--st-display); font-weight:700;
  font-size:26px; letter-spacing:-.01em; color:var(--st-ink);
}
.st-brand img{ width:40px; height:auto; }
.st-brand--small{ font-size:21px; }
.st-brand--small img{ width:30px; }
.st-nav{ display:flex; gap:22px; margin-left:12px; }
.st-nav a{ text-decoration:none; font-weight:600; font-size:15px; color:var(--st-ink-soft); }
.st-nav a:hover{ color:var(--st-ink); }
.st-header-actions{ margin-left:auto; display:flex; align-items:center; gap:14px; }
.st-lang{
  display:inline-flex; border:1.5px solid var(--st-line); border-radius:999px; padding:3px;
  text-decoration:none; font-size:12px; font-weight:700; letter-spacing:.06em;
}
.st-lang span{ padding:4px 9px; border-radius:999px; color:var(--st-muted); }
.st-lang span.is-on{ background:var(--st-ink); color:#FFF8EE; }
.st-header-cta{
  white-space:nowrap; text-decoration:none; font-weight:700; font-size:14px;
  background:var(--st-purple); color:#fff; padding:10px 16px; border-radius:999px;
  box-shadow:0 6px 16px rgba(91,62,166,.25);
}
.st-header-cta:hover{ background:#4C3290; }

/* ---------------- Titres communs ---------------- */
.st-eyebrow{
  margin:0 0 10px; font-size:13px; font-weight:700; letter-spacing:.12em;
  text-transform:uppercase; color:var(--st-accent);
}
.st-h2{
  margin:0 0 34px; max-width:20ch;
  font-family:var(--st-display); font-weight:700; font-size:clamp(30px, 4.2vw, 46px);
  line-height:1.08; letter-spacing:-.01em; text-wrap:balance;
}
.st-section{ max-width:1160px; margin:0 auto; padding:88px 24px 0; }

/* ---------------- Hero ---------------- */
.st-hero{
  max-width:1160px; margin:0 auto; padding:56px 24px 0;
  display:grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap:48px; align-items:center;
}
.st-garland{ width:200px; height:auto; margin:0 0 6px -4px; }
.st-hero-title{
  margin:0 0 18px;
  font-family:var(--st-display); font-weight:700;
  font-size:clamp(40px, 6vw, 72px); line-height:1.0; letter-spacing:-.02em;
  text-wrap:balance;
}
.st-hero-lead{ margin:0 0 28px; max-width:46ch; font-size:18px; color:var(--st-ink-soft); }
.st-app-only{ margin:16px 0 0; font-size:14px; color:var(--st-muted); }

.st-hero-art{ position:relative; margin:0; }
.st-hero-art > img:first-child{
  width:100%; aspect-ratio: 1526 / 900; object-fit:cover; object-position:42% 50%;
  border-radius:28px;
  box-shadow:0 30px 60px -20px rgba(61,38,112,.45), 0 0 0 8px var(--st-surface);
  transform:rotate(1.2deg);
}
.st-hero-dice{
  position:absolute; left:-34px; bottom:-38px; width:132px; height:auto;
  filter:drop-shadow(0 14px 18px rgba(36,26,16,.25));
  transform:rotate(-8deg);
}

/* ---------------- Boutons stores ---------------- */
.st-stores{ display:flex; flex-wrap:wrap; gap:12px; }
.st-store{
  display:inline-flex; align-items:center; gap:12px;
  min-width:196px; padding:11px 20px 11px 16px; border-radius:16px;
  text-decoration:none; line-height:1.15;
}
.st-store-icon{ width:28px; height:28px; flex:none; }
.st-store-text{ display:flex; flex-direction:column; }
.st-store-text small{ font-size:11.5px; font-weight:500; letter-spacing:.02em; }
.st-store-text strong{ font-family:var(--st-display); font-size:21px; font-weight:600; }
.st-store--play{
  background:var(--st-ink); color:#FFF8EE;
  box-shadow:0 10px 24px -8px rgba(36,26,16,.55);
  transition:transform .15s ease, box-shadow .15s ease;
}
.st-store--play:hover{ transform:translateY(-2px); box-shadow:0 14px 28px -8px rgba(36,26,16,.6); }
.st-store--apple{
  background:transparent; color:var(--st-ink-soft);
  border:1.5px dashed rgba(36,26,16,.28); cursor:default;
}
@media (prefers-reduced-motion: reduce){ .st-store--play{ transition:none; } .st-store--play:hover{ transform:none; } }

/* ---------------- Deux façons de jouer ---------------- */
.st-modes{ display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.st-mode{
  position:relative; overflow:hidden; border-radius:var(--st-radius);
  background:var(--st-purple-deep); color:#F6EEFF;
  display:grid; grid-template-rows:auto 1fr;
}
.st-mode > img{ width:100%; aspect-ratio:16 / 10; object-fit:cover; }
.st-mode:first-child > img{ object-position:50% 45%; }
.st-mode-body{ padding:24px 28px 30px; }
.st-mode h3{ margin:0 0 8px; font-family:var(--st-display); font-size:26px; font-weight:600; color:#fff; }
.st-mode p{ margin:0; color:rgba(246,238,255,.82); font-size:16px; }
.st-room-code{ display:flex; gap:6px; margin-top:18px !important; }
.st-room-code span{
  width:38px; height:44px; display:grid; place-items:center;
  background:#FFF8EE; color:var(--st-purple-deep); border-radius:10px;
  font-family:var(--st-display); font-weight:700; font-size:22px;
  box-shadow:0 4px 0 rgba(0,0,0,.25);
}

/* ---------------- Jeux ---------------- */
.st-games{
  list-style:none; margin:0; padding:0;
  display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:20px;
}
.st-game{
  --card-grad:linear-gradient(180deg,#FFF 0%,#EEE 100%);
  --tint:#999;
  background:var(--st-surface); border:1px solid var(--st-line); border-radius:var(--st-radius);
  padding:0 0 22px; overflow:hidden;
  display:flex; flex-direction:column;
}
.st-game-art{
  background:radial-gradient(circle at 50% 8%, rgba(255,255,255,.55), transparent 55%), var(--card-grad);
  height:168px; display:grid; place-items:center; padding:16px;
}
.st-game-art img{ max-height:136px; width:auto; filter:drop-shadow(0 10px 14px rgba(36,26,16,.18)); }
.st-game h3{ margin:18px 22px 6px; font-family:var(--st-display); font-size:23px; font-weight:600; }
.st-game p{ margin:0 22px; font-size:15px; color:var(--st-ink-soft); line-height:1.5; }
.st-game .st-game-meta{ margin-top:auto; padding-top:14px; display:flex; gap:8px; flex-wrap:wrap; }
.st-game-meta span{
  font-size:12.5px; font-weight:600; padding:4px 10px; border-radius:999px;
  background:color-mix(in srgb, var(--tint) 16%, white); color:var(--st-ink-soft);
}
/* Mêmes couleurs que les cartes de l'accueil de l'appli (design-v2.css). */
.st-game--petit-bac{ --card-grad:linear-gradient(180deg,#FFECDF 0%,#FFCBAC 100%); --tint:#FF9F4D; }
.st-game--motus{ --card-grad:linear-gradient(180deg,#FFF4D8 0%,#FFDA8F 100%); --tint:#FFAB00; }
.st-game--loto{ --card-grad:linear-gradient(180deg,#F4EBFC 0%,#D8BCF2 100%); --tint:#A968E8; }
.st-game--loup-garou{ --card-grad:linear-gradient(180deg,#E9F0FD 0%,#B4C9F7 100%); --tint:#5C90EE; }
.st-game--pile-ou-piege{ --card-grad:linear-gradient(180deg,#E9F7EF 0%,#9BDCC5 100%); --tint:#34B991; }
.st-game--dernier-invite{ --card-grad:linear-gradient(180deg,#FFEAE0 0%,#F8B7A3 100%); --tint:#F0603A; }

.st-online{
  margin-top:20px; padding:22px 26px; border-radius:var(--st-radius);
  background:linear-gradient(180deg,#F0F8E7 0%,#D6EDC6 100%);
  display:flex; align-items:center; gap:22px;
}
.st-online > img{ width:110px; height:auto; flex:none; filter:drop-shadow(0 10px 14px rgba(36,26,16,.18)); }
.st-online h3{ margin:0 0 2px; font-family:var(--st-display); font-size:23px; font-weight:600; }
.st-online p{ margin:0 0 10px; font-size:15px; color:var(--st-ink-soft); }
.st-chips{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.st-chips li{
  background:var(--st-surface); border:1px solid rgba(109,184,74,.35);
  padding:5px 12px; border-radius:999px; font-size:14px; font-weight:600;
}

/* ---------------- Atouts ---------------- */
.st-perks{ display:grid; grid-template-columns:repeat(3, minmax(0, 1fr)); gap:36px; }
.st-perk img, .st-perk-badge{ width:56px; height:56px; object-fit:contain; margin-bottom:14px; }
.st-perk-badge{
  display:inline-flex; align-items:center; justify-content:center; gap:5px;
  width:auto; padding:0 14px; border-radius:16px;
  background:var(--st-purple-light); color:var(--st-purple);
  font-family:var(--st-display); font-weight:700; font-size:17px; letter-spacing:.04em;
}
.st-perk-badge i{ width:1.5px; height:18px; background:currentColor; opacity:.35; }
.st-perk h3{ margin:0 0 6px; font-family:var(--st-display); font-size:22px; font-weight:600; }
.st-perk p{ margin:0; color:var(--st-ink-soft); font-size:15.5px; max-width:34ch; }

/* ---------------- Bandeau téléchargement ---------------- */
.st-cta{ padding:96px 24px 0; }
.st-cta-inner{
  position:relative; max-width:1112px; margin:0 auto; text-align:center;
  padding:64px 28px 56px; border-radius:32px; overflow:hidden;
  background:
    radial-gradient(600px 260px at 50% 0%, rgba(169,104,232,.55), transparent 70%),
    radial-gradient(500px 240px at 90% 110%, rgba(232,131,58,.35), transparent 70%),
    var(--st-purple-deep);
  color:#F6EEFF;
}
.st-cta-dice{ width:96px; height:auto; margin:0 auto 14px; filter:drop-shadow(0 14px 20px rgba(0,0,0,.35)); }
.st-cta h2{
  margin:0 0 10px; font-family:var(--st-display); font-weight:700;
  font-size:clamp(30px, 4.6vw, 48px); line-height:1.05; color:#fff; text-wrap:balance;
}
.st-cta p{ margin:0 auto 28px; max-width:44ch; color:rgba(246,238,255,.82); }
.st-cta .st-stores{ justify-content:center; }
.st-cta .st-store--play{ background:#FFF8EE; color:var(--st-ink); }
.st-cta .st-store--apple{ color:rgba(246,238,255,.85); border-color:rgba(246,238,255,.35); }

/* ---------------- Pied de page ---------------- */
.st-footer{ margin-top:72px; border-top:1px solid var(--st-line); background:var(--st-bg-2); }
.st-footer-inner{
  max-width:1160px; margin:0 auto; padding:32px 24px 40px;
  display:flex; flex-wrap:wrap; align-items:center; gap:18px 32px;
}
.st-footer-links{ display:flex; flex-wrap:wrap; gap:8px 22px; }
.st-footer-links a{ font-size:14px; font-weight:500; color:var(--st-ink-soft); text-decoration:none; }
.st-footer-links a:hover{ color:var(--st-ink); text-decoration:underline; }
.st-copy{ margin:0 0 0 auto; font-size:13px; color:var(--st-muted); }

/* ---------------- Tablette ---------------- */
@media (max-width: 960px){
  .st-hero{ grid-template-columns:1fr; gap:40px; padding-top:36px; }
  .st-hero-art{ max-width:640px; }
  .st-games{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .st-perks{ grid-template-columns:1fr; gap:28px; }
  .st-perk{ display:grid; grid-template-columns:auto 1fr; column-gap:18px; align-items:start; }
  .st-perk img, .st-perk-badge{ grid-row:span 2; margin:0; }
  .st-perk p{ max-width:none; }
}

/* ---------------- Téléphone ---------------- */
@media (max-width: 640px){
  body.st-body{ font-size:16px; }
  .st-header-inner{ padding:10px 16px; gap:12px; }
  .st-nav{ display:none; }
  .st-brand{ font-size:22px; }
  .st-brand img{ width:34px; }
  .st-header-cta{ display:none; } /* les boutons des stores sont juste en dessous */
  .st-section{ padding:64px 16px 0; }
  .st-hero{ padding:28px 16px 0; }
  .st-hero-lead{ font-size:17px; }
  .st-hero-dice{ width:92px; left:-8px; bottom:-30px; }
  .st-stores{ flex-direction:column; align-items:stretch; }
  .st-store{ min-width:0; }
  .st-modes{ grid-template-columns:1fr; }
  .st-mode-body{ padding:20px 20px 24px; }
  .st-games{ grid-template-columns:1fr; gap:16px; }
  .st-online{ flex-direction:column; align-items:flex-start; padding:22px 20px; }
  .st-online > img{ width:84px; }
  .st-cta{ padding:72px 16px 0; }
  .st-cta-inner{ padding:48px 20px 40px; border-radius:26px; }
  .st-footer-inner{ padding:28px 16px 36px; }
  .st-copy{ margin-left:0; }
}

/* =====================================================================
   Animations — uniquement quand html.st-anim est posé (JS présent et
   pas de "réduire les animations"). Sans ça, tout est visible tel quel.
   ===================================================================== */

/* Entrée du haut de page, au chargement */
@keyframes st-rise{ from{ opacity:0; transform:translateY(22px); } to{ opacity:1; transform:none; } }
@keyframes st-art-in{
  from{ opacity:0; transform:translateY(30px) scale(.96) rotate(-2deg); }
  to{ opacity:1; transform:none; }
}
@keyframes st-dice-drop{
  0%{ opacity:0; transform:translateY(-120px) rotate(-60deg); }
  60%{ opacity:1; transform:translateY(8px) rotate(-4deg); }
  80%{ transform:translateY(-6px) rotate(-10deg); }
  100%{ transform:rotate(-8deg); }
}
.st-anim .st-in{ animation:st-rise .8s cubic-bezier(.2,.7,.2,1) both; animation-delay:var(--d,0s); }
.st-anim .st-in--art{ animation-name:st-art-in; animation-duration:1s; }
.st-anim .st-hero-dice{ animation:st-dice-drop 1s cubic-bezier(.3,.7,.3,1) 1s both; }

/* Fanions de la guirlande qui se balancent doucement */
@keyframes st-sway{ 0%,100%{ transform:rotate(-5deg); } 50%{ transform:rotate(5deg); } }
.st-anim .st-garland path:not(:first-child){
  transform-box:fill-box; transform-origin:50% 0;
  animation:st-sway 3.2s ease-in-out infinite;
}
.st-anim .st-garland path:nth-child(3){ animation-delay:-.6s; }
.st-anim .st-garland path:nth-child(4){ animation-delay:-1.2s; }
.st-anim .st-garland path:nth-child(5){ animation-delay:-1.8s; }
.st-anim .st-garland path:nth-child(6){ animation-delay:-2.4s; }
.st-anim .st-garland path:nth-child(7){ animation-delay:-3s; }

/* Apparition au défilement */
.st-anim [data-reveal]{
  opacity:0; transform:translateY(36px);
  /* délai par propriété : l'apparition est décalée (--d), mais pas
     l'effet de survol (translate / box-shadow, voir plus bas). */
  transition:opacity .75s ease var(--d,0s), transform .85s cubic-bezier(.2,.7,.2,1) var(--d,0s),
             translate .25s ease, box-shadow .25s ease;
}
.st-anim [data-reveal="left"]{ transform:translateX(-48px); }
.st-anim [data-reveal="right"]{ transform:translateX(48px); }
.st-anim [data-reveal="zoom"]{ transform:scale(.92); }
.st-anim [data-reveal].is-in{ opacity:1; transform:none; }

/* Code du salon : les lettres se retournent une à une */
@keyframes st-flip{ from{ opacity:0; transform:rotateX(90deg) translateY(-6px); } to{ opacity:1; transform:none; } }
.st-anim .st-room-code span{ opacity:0; }
.st-anim .st-mode.is-in .st-room-code span{
  animation:st-flip .45s cubic-bezier(.3,.8,.3,1.2) both;
  animation-delay:calc(.7s + var(--i) * .14s);
}

/* Jeux : l'illustration arrive avec un petit rebond */
@keyframes st-pop{ 0%{ transform:scale(.6) translateY(20px); opacity:0; } 70%{ transform:scale(1.06); opacity:1; } 100%{ transform:none; opacity:1; } }
.st-anim .st-game .st-game-art img{ opacity:0; }
.st-anim .st-game.is-in .st-game-art img{ animation:st-pop .7s cubic-bezier(.3,.7,.3,1) both; animation-delay:calc(var(--d,0s) + .2s); }

/* Salons en ligne : les pastilles tombent en cascade */
@keyframes st-chip{ from{ opacity:0; transform:translateY(10px) scale(.9); } to{ opacity:1; transform:none; } }
.st-anim .st-chips li{ opacity:0; }
.st-anim .st-online.is-in .st-chips li{ animation:st-chip .45s ease both; animation-delay:calc(.35s + var(--i) * .07s); }

/* Bandeau final : les dés flottent */
@keyframes st-bob{ 0%,100%{ transform:translateY(0) rotate(-3deg); } 50%{ transform:translateY(-10px) rotate(3deg); } }
.st-anim .st-cta.st-cta .st-cta-dice{ animation:st-bob 3.6s ease-in-out infinite; }

/* Survol (ordinateur) */
@media (hover: hover){
  /* translate/scale/rotate (propriétés séparées) plutôt que transform :
     ne se battent pas avec les animations d'apparition. */
  .st-game{ transition:translate .25s ease, box-shadow .25s ease; }
  .st-game:hover{ translate:0 -6px; box-shadow:0 18px 36px -18px rgba(36,26,16,.35); }
  .st-game-art img{ transition:scale .35s cubic-bezier(.3,.7,.3,1.4), rotate .35s cubic-bezier(.3,.7,.3,1.4); }
  .st-game:hover .st-game-art img{ scale:1.08; rotate:-3deg; }
  .st-mode > img{ transition:transform .6s ease; }
  .st-mode:hover > img{ transform:scale(1.04); }
}

@media (prefers-reduced-motion: reduce){
  .st-game, .st-game-art img, .st-mode > img{ transition:none !important; }
  .st-game:hover{ translate:none !important; }
  .st-game:hover .st-game-art img{ scale:none !important; rotate:none !important; }
  .st-mode:hover > img{ transform:none !important; }
}

/* =====================================================================
   Pages jeux, guides et "tous les jeux" (includes/site/*, 2026-10-17)
   Même palette et mêmes polices que l'accueil.
   ===================================================================== */

/* Lien d'évitement clavier */
.st-skip{
  position:absolute; left:16px; top:-60px; z-index:20;
  background:var(--st-ink); color:#FFF8EE; padding:10px 16px; border-radius:12px;
  font-weight:700; text-decoration:none;
}
.st-skip:focus{ top:12px; }

.st-nav a[aria-current="page"]{ color:var(--st-ink); text-decoration:underline; text-underline-offset:6px; text-decoration-thickness:2px; text-decoration-color:var(--st-orange); }

/* Couleurs des cartes, clés des pages du site */
.st-game--petitbac{ --card-grad:linear-gradient(180deg,#FFECDF 0%,#FFCBAC 100%); --tint:#FF9F4D; }
.st-game--loupgarou{ --card-grad:linear-gradient(180deg,#E9F0FD 0%,#B4C9F7 100%); --tint:#5C90EE; }
.st-game--pileoupiege{ --card-grad:linear-gradient(180deg,#E9F7EF 0%,#9BDCC5 100%); --tint:#34B991; }
.st-game--dernierinvite{ --card-grad:linear-gradient(180deg,#FFEAE0 0%,#F8B7A3 100%); --tint:#F0603A; }
.st-game--telephone{ --card-grad:linear-gradient(180deg,#FFE8F2 0%,#F6B3D2 100%); --tint:#E0559A; }
.st-game--visejuste{ --card-grad:linear-gradient(180deg,#E6F8EC 0%,#A9E5BF 100%); --tint:#2FB463; }
.st-game--race{ --card-grad:linear-gradient(180deg,#E3F4FA 0%,#A8DCEF 100%); --tint:#1E9BC8; }

/* Cartes de jeux cliquables */
.st-game-link{ display:flex; flex-direction:column; height:100%; text-decoration:none; color:inherit; border-radius:inherit; }
.st-game-link:focus-visible{ outline:3px solid var(--st-purple); outline-offset:3px; }
.st-game{ padding-bottom:20px; }
.st-game .st-game-meta{ margin-bottom:0; }
.st-game-more{
  margin:14px 22px 0; font-size:14px; font-weight:700; color:var(--st-accent);
  display:inline-flex; gap:6px; align-items:center;
}
.st-game-more span{ transition:translate .2s ease; }
.st-game-art--photo{ padding:0; overflow:hidden; }
.st-game-art--photo img{ width:100%; height:100%; max-height:none; object-fit:cover; filter:none; }
.st-chips a{ text-decoration:none; }
.st-chips a:hover{ text-decoration:underline; }

/* Fil d'Ariane */
.st-crumbs{ max-width:1160px; margin:0 auto; padding:22px 24px 0; }
.st-crumbs ol{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:6px; font-size:13.5px; color:var(--st-muted); }
.st-crumbs li + li::before{ content:"›"; margin-right:6px; opacity:.6; }
.st-crumbs a{ text-decoration:none; font-weight:600; color:var(--st-ink-soft); }
.st-crumbs a:hover{ text-decoration:underline; }

/* En-tête de page */
.st-phero{
  max-width:1160px; margin:0 auto; padding:28px 24px 0;
  display:grid; grid-template-columns:minmax(0, 1.05fr) minmax(0, 1fr); gap:56px; align-items:center;
}
.st-phero-title{
  margin:0 0 18px; font-family:var(--st-display); font-weight:700;
  font-size:clamp(36px, 5vw, 60px); line-height:1.02; letter-spacing:-.02em; text-wrap:balance;
}
.st-phero-art{ position:relative; margin:0; padding:0 0 34px; }
.st-phero-bg{
  width:100%; aspect-ratio:4 / 3; object-fit:cover; border-radius:28px;
  box-shadow:0 30px 60px -22px rgba(61,38,112,.45), 0 0 0 8px var(--st-surface);
  transform:rotate(1.2deg);
}
.st-phero-art--photo .st-phero-bg{ aspect-ratio:5 / 4; }
.st-phero-icon{
  position:absolute; left:-26px; bottom:0; width:clamp(120px, 15vw, 176px); height:auto;
  filter:drop-shadow(0 16px 20px rgba(36,26,16,.28));
  transform:rotate(-6deg);
}
.st-phone{
  position:absolute; right:-6px; bottom:-8px; width:clamp(130px, 15vw, 188px); height:auto;
  border-radius:22px; border:5px solid var(--st-surface);
  box-shadow:0 26px 40px -16px rgba(36,26,16,.55), 0 0 0 1px rgba(36,26,16,.08);
  transform:rotate(4deg);
}
.st-phero-art.has-shot .st-phero-icon{ left:-26px; }

/* "En bref" */
.st-facts{ margin:0 0 26px; display:grid; grid-template-columns:repeat(4, minmax(0, auto)); gap:10px; justify-content:start; }
.st-facts div{
  background:var(--st-surface); border:1px solid var(--st-line); border-radius:16px;
  padding:9px 14px 10px; min-width:0;
}
.st-facts dt{ font-size:11.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--st-accent); }
.st-facts dd{ margin:2px 0 0; font-weight:600; font-size:15px; color:var(--st-ink); }

/* Étapes des règles (vraie séquence : numérotées) */
.st-steps{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:18px; }
.st-step{
  position:relative; background:var(--st-surface); border:1px solid var(--st-line);
  border-radius:var(--st-radius); padding:26px 22px 24px;
}
.st-step-num{
  display:grid; place-items:center; width:42px; height:42px; margin-bottom:14px;
  border-radius:14px; background:var(--card-grad, var(--st-purple-light)); color:var(--st-ink);
  font-family:var(--st-display); font-weight:700; font-size:21px;
  box-shadow:inset 0 0 0 1px rgba(36,26,16,.08);
}
.st-step h3{ margin:0 0 6px; font-family:var(--st-display); font-size:20px; font-weight:600; line-height:1.2; }
.st-step p{ margin:0; font-size:15px; color:var(--st-ink-soft); line-height:1.55; }

/* Deux colonnes : atouts + texte */
.st-split{ display:grid; grid-template-columns:minmax(0, 1fr) minmax(0, 1.1fr); gap:56px; align-items:start; }
.st-why{ list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.st-why li{
  padding:18px 20px 18px 22px; border-radius:18px; background:var(--st-surface);
  border:1px solid var(--st-line); border-left:4px solid var(--tint, var(--st-orange));
}
.st-why h3{ margin:0 0 4px; font-family:var(--st-display); font-size:19px; font-weight:600; }
.st-why p{ margin:0; font-size:15px; color:var(--st-ink-soft); }

.st-prose{
  background:var(--st-bg-2); border-radius:28px; padding:34px 36px 30px;
}
.st-prose h2{ margin:0 0 14px; font-family:var(--st-display); font-weight:700; font-size:clamp(24px, 2.6vw, 30px); line-height:1.15; text-wrap:balance; }
.st-prose h2:not(:first-child){ margin-top:30px; }
.st-prose h3{ margin:24px 0 12px; font-family:var(--st-display); font-size:19px; font-weight:600; }
.st-prose p{ margin:0 0 14px; color:var(--st-ink-soft); max-width:66ch; }
.st-prose strong{ color:var(--st-ink); font-weight:700; }
.st-tags{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:8px; }
.st-tags li{
  background:var(--st-surface); border:1px solid var(--st-line); border-radius:999px;
  padding:5px 12px; font-size:14px; font-weight:600; color:var(--st-ink-soft);
}

/* FAQ */
.st-faq{ display:grid; gap:12px; max-width:860px; }
.st-faq-item{
  background:var(--st-surface); border:1px solid var(--st-line); border-radius:18px;
  padding:0 22px; transition:box-shadow .2s ease;
}
.st-faq-item[open]{ box-shadow:0 14px 30px -20px rgba(36,26,16,.35); }
.st-faq-item summary{
  list-style:none; cursor:pointer; padding:18px 34px 18px 0; position:relative;
  font-family:var(--st-display); font-size:19px; font-weight:600; line-height:1.3;
}
.st-faq-item summary::-webkit-details-marker{ display:none; }
.st-faq-item summary::after{
  content:"+"; position:absolute; right:0; top:50%; translate:0 -50%;
  width:28px; height:28px; border-radius:50%; display:grid; place-items:center;
  background:var(--st-purple-light); color:var(--st-purple); font-family:var(--st-body); font-weight:700; font-size:18px;
  transition:rotate .2s ease;
}
.st-faq-item[open] summary::after{ rotate:45deg; }
.st-faq-item summary:focus-visible{ outline:3px solid var(--st-purple); outline-offset:4px; border-radius:8px; }
.st-faq-item p{ margin:0 0 20px; color:var(--st-ink-soft); max-width:70ch; }

/* Guides */
.st-phero--guide .st-phero-art{ padding-bottom:0; }
.st-split--guide{ grid-template-columns:minmax(0, 1.5fr) minmax(0, 1fr); }
.st-tips{
  position:sticky; top:96px;
  background:var(--st-purple-deep); color:#F6EEFF; border-radius:28px; padding:30px 30px 26px;
}
.st-tips .st-eyebrow{ color:#FFC58A; }
.st-tips h2{ margin:0 0 16px; font-family:var(--st-display); font-size:25px; font-weight:700; color:#fff; line-height:1.15; }
.st-tips ul{ list-style:none; margin:0; padding:0; display:grid; gap:12px; }
.st-tips li{ position:relative; padding-left:28px; font-size:15.5px; color:rgba(246,238,255,.88); }
.st-tips li::before{
  content:""; position:absolute; left:0; top:.45em; width:14px; height:14px; border-radius:4px;
  background:var(--st-orange); transform:rotate(12deg);
}
.st-guides{ list-style:none; margin:0; padding:0; display:grid; grid-template-columns:repeat(4, minmax(0, 1fr)); gap:14px; }
.st-guides a{
  display:flex; align-items:center; justify-content:space-between; gap:12px; height:100%;
  padding:20px 22px; border-radius:20px; text-decoration:none;
  background:linear-gradient(135deg, var(--st-purple-light), #FFF3E3);
  border:1px solid rgba(91,62,166,.14);
}
.st-guide-name{ font-family:var(--st-display); font-size:19px; font-weight:600; line-height:1.2; }
.st-guide-arrow{ font-size:20px; color:var(--st-purple); transition:translate .2s ease; }

/* Tous les jeux */
.st-hub-head{ padding-top:36px; }
.st-hub-head .st-hero-lead{ max-width:62ch; }
.st-section--tight{ padding-top:56px; }
.st-h2--sub{ margin-bottom:10px; font-size:clamp(26px, 3.2vw, 36px); max-width:none; }
.st-section-lead{ margin:0 0 26px; max-width:66ch; color:var(--st-ink-soft); }

/* Pied de page enrichi */
.st-footer-grid{
  max-width:1160px; margin:0 auto; padding:40px 24px 8px;
  display:grid; grid-template-columns:1.4fr 1fr 1fr 1fr; gap:28px 36px;
}
.st-footer-about p{ margin:12px 0 0; font-size:14px; color:var(--st-muted); max-width:34ch; }
.st-footer-col{ display:flex; flex-direction:column; gap:7px; }
.st-footer-col h2{ margin:0 0 4px; font-size:12px; font-weight:700; letter-spacing:.1em; text-transform:uppercase; color:var(--st-accent); }
.st-footer-col a{ font-size:14px; color:var(--st-ink-soft); text-decoration:none; }
.st-footer-col a:hover{ color:var(--st-ink); text-decoration:underline; }
.st-footer > .st-copy{ max-width:1160px; margin:0 auto; padding:18px 24px 34px; }

@media (hover: hover){
  .st-game-link:hover .st-game-more span{ translate:4px 0; }
  .st-guides a:hover .st-guide-arrow{ translate:4px 0; }
  .st-guides a{ transition:translate .25s ease, box-shadow .25s ease; }
  .st-guides a:hover{ translate:0 -4px; box-shadow:0 16px 30px -18px rgba(61,38,112,.45); }
}

@media (max-width: 960px){
  .st-phero{ grid-template-columns:1fr; gap:36px; }
  .st-phero-art{ max-width:620px; }
  .st-steps{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .st-split, .st-split--guide{ grid-template-columns:1fr; gap:36px; }
  .st-tips{ position:static; }
  .st-guides{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
  .st-footer-grid{ grid-template-columns:1fr 1fr; }
  .st-facts{ grid-template-columns:repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px){
  /* Menu : une ligne qui défile sous le logo plutôt que masqué */
  .st-header-inner{ flex-wrap:wrap; row-gap:4px; }
  .st-nav{
    display:flex; order:3; width:100%; margin:0; gap:18px;
    overflow-x:auto; scrollbar-width:none; padding:2px 0 4px;
  }
  .st-nav::-webkit-scrollbar{ display:none; }
  .st-nav a{ white-space:nowrap; font-size:14px; }
  .st-crumbs{ padding:16px 16px 0; }
  .st-phero{ padding:18px 16px 0; }
  .st-phero-icon{ left:4px; width:104px; }
  .st-phone{ right:4px; width:118px; border-width:4px; border-radius:18px; }
  .st-steps{ grid-template-columns:1fr; }
  .st-prose{ padding:26px 20px 20px; border-radius:22px; }
  .st-tips{ padding:26px 20px 22px; border-radius:22px; }
  .st-faq-item{ padding:0 16px; }
  .st-faq-item summary{ font-size:17px; }
  .st-guides{ grid-template-columns:1fr; }
  .st-footer-grid{ grid-template-columns:1fr 1fr; padding:32px 16px 4px; }
  .st-footer-about{ grid-column:1 / -1; }
  .st-footer > .st-copy{ padding:14px 16px 30px; }
}

/* Animations des pages */
.st-anim .st-phero-icon{ animation:st-dice-drop 1s cubic-bezier(.3,.7,.3,1) .9s both; }
@keyframes st-phone-in{ from{ opacity:0; transform:translateY(40px) rotate(10deg); } to{ opacity:1; transform:rotate(4deg); } }
.st-anim .st-phone{ animation:st-phone-in .9s cubic-bezier(.2,.7,.2,1) .7s both; }
@keyframes st-num-pop{ 0%{ transform:scale(.4) rotate(-20deg); opacity:0; } 70%{ transform:scale(1.12) rotate(4deg); opacity:1; } 100%{ transform:none; opacity:1; } }
.st-anim .st-step .st-step-num{ opacity:0; }
.st-anim .st-step.is-in .st-step-num{ animation:st-num-pop .55s cubic-bezier(.3,.7,.3,1.2) both; animation-delay:calc(var(--d,0s) + .25s); }

@media (prefers-reduced-motion: reduce){
  .st-faq-item, .st-faq-item summary::after, .st-game-more span, .st-guide-arrow, .st-guides a{ transition:none !important; }
}
