/* =========================================================
   SAFIO – portail de l'univers
   Nuit profonde + violet / turquoise / jaune (identité mère)
   Chaque plateforme apporte ses couleurs via --a --b --c --ink
   ========================================================= */
@font-face { font-family: "Baloo 2"; font-weight: 600; font-display: swap; src: url("/fonts/baloo-2-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-weight: 800; font-display: swap; src: url("/fonts/baloo-2-latin-800-normal.woff2") format("woff2"); }

:root {
  --bg: #070b1f;
  --bg2: #0b1130;
  --cardbg: #10173a;
  --surface: #121a3d;
  --surface2: #18224d;
  --line: rgba(160, 180, 255, .13);
  --line2: rgba(160, 180, 255, .24);
  --text: #eef1ff;
  --muted: #a3add6;
  --violet: #7c5cff;
  --turq: #22d3c5;
  --yellow: #ffd34d;
  --pink: #ff5c8a;
  --display: "Baloo 2", ui-rounded, system-ui, sans-serif;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 28px;
  --ease: cubic-bezier(.2, .9, .3, 1.15);
  --shadow: 0 24px 60px rgba(0, 0, 0, .45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--text); font-family: var(--font); font-size: 17px; line-height: 1.55;
  overflow-x: hidden; -webkit-tap-highlight-color: transparent;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 800; line-height: 1.08; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .wrap { padding: 0 28px; } }
:focus-visible { outline: 3px solid var(--turq); outline-offset: 3px; border-radius: 12px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--yellow); color: #1d1600; padding: 10px 16px; border-radius: 12px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- En-tête ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); background: rgba(7, 11, 31, .72); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 16px; height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-weight: 800; font-size: 24px; letter-spacing: .04em; }
.brand .logo-mark { transition: transform .4s var(--ease); }
.brand:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--muted); font-weight: 600; padding: 8px 14px; border-radius: 999px; transition: color .2s, background .2s; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.langs { display: flex; margin-left: auto; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.nav + .langs { margin-left: 8px; }
.music { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; min-width: 44px; padding: 0 12px; border-radius: 999px; cursor: pointer;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); font: 800 18px var(--display); transition: background .2s, color .2s, border-color .2s; }
.music:hover { color: var(--text); border-color: var(--line2); }
.music[aria-pressed="true"] { color: #1d1600; background: linear-gradient(120deg, var(--yellow), var(--turq)); border-color: transparent; }
.music__bars { display: none; align-items: flex-end; gap: 2px; height: 14px; }
.music__bars i { width: 3px; height: 100%; background: currentColor; border-radius: 2px; animation: eq .9s ease-in-out infinite; transform-origin: bottom; }
.music__bars i:nth-child(2) { animation-delay: -.3s; } .music__bars i:nth-child(3) { animation-delay: -.6s; }
.music[aria-pressed="true"] .music__bars { display: inline-flex; }
@keyframes eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.music + .langs { margin-left: 8px; }
.nav + .music { margin-left: 8px; }
.langs a { text-decoration: none; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; color: var(--muted); min-width: 40px; text-align: center; }
.langs a[aria-current] { background: var(--text); color: var(--bg); }
/* Sélecteur de langue (drapeau + code, menu des 5 langues) */
.lang { position: relative; margin-left: auto; }
.nav + .lang, .music + .lang { margin-left: 8px; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 12px; border-radius: 999px; cursor: pointer; user-select: none;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--text); font-weight: 800; font-size: 14px; transition: border-color .2s, background .2s; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary:hover, .lang[open] summary { border-color: var(--line2); background: rgba(255, 255, 255, .09); }
.lang summary:focus-visible { outline: 2px solid var(--turq); outline-offset: 2px; }
.lang__caret { font-size: 11px; color: var(--muted); transition: transform .2s; }
.lang[open] .lang__caret { transform: rotate(180deg); }
.flag { display: block; flex: none; border-radius: 3px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
.lang__list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 60; margin: 0; padding: 6px; list-style: none; min-width: 190px;
  background: #121735; border: 1px solid var(--line2); border-radius: 16px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); }
.lang__list a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; text-decoration: none; color: var(--text); font-weight: 700; font-size: 15px; }
.lang__list a:hover, .lang__list a:focus-visible { background: rgba(255, 255, 255, .08); outline: none; }
.lang__list a[aria-current] { background: rgba(255, 255, 255, .12); }
.lang__list a[aria-current]::after { content: "✓"; margin-left: auto; color: var(--turq); }
.legal__note { margin: -6px 0 18px; font-style: italic; }
@media (min-width: 900px) { .nav { display: flex; } }

/* ---------- Boutons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 24px; border-radius: 999px; font-family: var(--display); font-weight: 800; font-size: 18px; text-decoration: none; border: 0; cursor: pointer; transition: transform .25s var(--ease), box-shadow .25s, background .25s, filter .25s; }
.btn .arrow { transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }
.btn:active { transform: scale(.97); }
.btn--main { background: linear-gradient(120deg, var(--violet), var(--turq)); color: #fff; box-shadow: 0 10px 30px rgba(124, 92, 255, .4); }
.btn--main:hover { box-shadow: 0 14px 40px rgba(34, 211, 197, .45); transform: translateY(-2px); }
.btn--main:hover .arrow { transform: translateY(3px); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--text); border: 1px solid var(--line2); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Accueil (hero) ---------- */
.hero { position: relative; overflow: hidden; padding: 40px 0 56px; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; pointer-events: none;
  background: radial-gradient(700px 420px at 12% 10%, rgba(124, 92, 255, .32), transparent 60%),
              radial-gradient(600px 420px at 92% 20%, rgba(34, 211, 197, .18), transparent 60%),
              radial-gradient(600px 360px at 60% 100%, rgba(255, 92, 138, .12), transparent 60%); }
.hero__bg span { position: absolute; border-radius: 16px; opacity: .35; animation: drift 18s ease-in-out infinite; }
.hero__bg span:nth-child(1) { width: 18px; height: 18px; left: 6%; top: 18%; background: var(--yellow); border-radius: 50%; }
.hero__bg span:nth-child(2) { width: 26px; height: 26px; left: 46%; top: 8%; border: 4px solid var(--turq); animation-delay: -4s; }
.hero__bg span:nth-child(3) { width: 14px; height: 14px; left: 88%; top: 70%; background: var(--pink); border-radius: 50%; animation-delay: -8s; }
.hero__bg span:nth-child(4) { width: 22px; height: 22px; left: 54%; top: 90%; border: 4px solid var(--violet); border-radius: 50%; animation-delay: -12s; }
.hero__bg span:nth-child(5) { width: 12px; height: 12px; left: 70%; top: 12%; background: var(--violet); animation-delay: -6s; }
.hero__bg span:nth-child(6) { width: 16px; height: 16px; left: 96%; top: 30%; background: var(--yellow); transform: rotate(45deg); animation-delay: -2s; }
@keyframes drift { 0%, 100% { transform: translate(0, 0) rotate(0); } 50% { transform: translate(14px, -22px) rotate(40deg); } }
.hero__in { position: relative; display: grid; gap: 28px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--turq); margin-bottom: 14px; }
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--turq); box-shadow: 0 0 0 4px rgba(34, 211, 197, .2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(34, 211, 197, 0); } }
.hero h1 { font-size: clamp(40px, 9vw, 76px); }
.hero h1 span { display: block; }
.grad { background: linear-gradient(100deg, var(--violet) 0%, var(--turq) 50%, var(--yellow) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; background-size: 200% 100%; animation: shine 8s ease-in-out infinite; }
@keyframes shine { 50% { background-position: 100% 0; } }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: #cdd3f3; max-width: 620px; margin-top: 18px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.pills li { font-size: 14px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); color: var(--muted); }
.hero__visual { max-width: 520px; margin: 0 auto; width: 100%; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 88px; }
  .hero__in { grid-template-columns: 1.1fr .9fr; gap: 40px; }
}

/* Animations de l'illustration d'accueil */
.a-phone { animation: phone 5s ease-in-out infinite; animation-delay: var(--d); transform-box: fill-box; }
@keyframes phone { 50% { translate: 0 -10px; } }
.a-links path { animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.a-screen { animation: screen 6s ease-in-out infinite; }
@keyframes screen { 50% { translate: 0 -4px; } }

/* ---------- Sections ---------- */
.section { padding: 56px 0; scroll-margin-top: 64px; }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.shead { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.shead h2 { font-size: clamp(32px, 5.5vw, 52px); margin-bottom: 10px; }
.shead .lead { margin: 12px auto 0; }

/* ---------- Cartes des plateformes ---------- */
.cards { display: grid; gap: 24px; }
@media (min-width: 900px) { .cards { grid-template-columns: 1fr 1fr; gap: 28px; } .pcard--wide { grid-column: 1 / -1; } }

.pcard { position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--cardbg);
  border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .45s var(--ease), box-shadow .45s, border-color .45s;
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); }
.pcard::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 2px; opacity: 0; transition: opacity .45s;
  background: linear-gradient(135deg, var(--a), var(--b), var(--c));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pcard--live:hover, .pcard--live:focus-within { transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px); box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 60px color-mix(in srgb, var(--b) 30%, transparent); }
.pcard--live:hover::after, .pcard--live:focus-within::after { opacity: 1; }

.pcard__art { position: relative; aspect-ratio: 5 / 3; overflow: hidden; }
.pcard__art .art { width: 100%; height: 100%; transition: transform .7s var(--ease); }
.pcard--live:hover .pcard__art .art { transform: scale(1.04); }
.pcard__art::after { content: ""; position: absolute; inset: auto 0 0; height: 26%; background: linear-gradient(rgba(16, 23, 58, 0), var(--cardbg)); pointer-events: none; }

.pcard__body { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 4px 22px 24px; flex: 1; margin-top: -14px; z-index: 1; }
@media (min-width: 720px) { .pcard__body { padding: 4px 30px 30px; } }
.pcard__head { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center; }
.pcard__logo svg { width: 56px; height: 56px; border-radius: 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); transition: transform .45s var(--ease); }
.pcard--live:hover .pcard__logo svg { transform: rotate(-6deg) scale(1.06); }
.pcard__tag { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--a); }
.pcard h3 { font-size: clamp(28px, 4vw, 36px); }
.pcard h3 .em { white-space: nowrap; }
.badge { grid-column: 1 / -1; justify-self: start; font-size: 13px; font-weight: 700; padding: 5px 12px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; }
.badge--live { background: rgba(52, 211, 153, .12); color: #6ee7b7; border: 1px solid rgba(52, 211, 153, .3); }
.badge--live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #34d399; animation: pulse-g 2s infinite; }
@keyframes pulse-g { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .6); } 70%, 100% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); } }
.badge--soon { background: rgba(251, 146, 60, .14); color: #fdba74; border: 1px solid rgba(251, 146, 60, .35); }
.badge--soon::before { content: "🚧"; }
@media (min-width: 560px) { .pcard__head { grid-template-columns: auto 1fr auto; } .badge { grid-column: auto; justify-self: end; align-self: start; } }

.pcard__desc { color: #cdd3f3; }
.glabel { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.games { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 15px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: color-mix(in srgb, var(--a) 12%, transparent); border: 1px solid color-mix(in srgb, var(--a) 35%, transparent); }
.games--rich { display: grid; gap: 8px; }
@media (min-width: 560px) { .games--rich { grid-template-columns: 1fr 1fr; } }
.game { display: flex; flex-direction: column; padding: 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-left: 4px solid var(--a); transition: border-color .3s, background .3s; }
.game:nth-child(2) { border-left-color: var(--b); } .game:nth-child(3) { border-left-color: var(--c); } .game:nth-child(4) { border-left-color: var(--yellow); }
.game strong { font-family: var(--display); font-weight: 800; font-size: 17px; line-height: 1.2; }
.game span { font-size: 14px; color: var(--muted); line-height: 1.35; }
.pcard__cta { margin-top: auto; padding-top: 8px; }
.btn--go { width: 100%; color: var(--ink); background: linear-gradient(120deg, var(--a), color-mix(in srgb, var(--a) 55%, var(--c))); box-shadow: 0 10px 30px color-mix(in srgb, var(--a) 35%, transparent); }
.btn--go:hover { transform: translateY(-2px); filter: brightness(1.06); }
.btn--soon { width: 100%; background: rgba(255, 255, 255, .05); color: var(--muted); border: 1px dashed var(--line2); cursor: not-allowed; }

/* Carte « bientôt » : présentation différente */
.pcard--soon .pcard__art .art { filter: saturate(.65) brightness(.75); }
.pcard--soon .pcard__desc, .pcard--soon .games { opacity: .85; }
.tape { position: absolute; left: -10%; right: -10%; top: 74%; transform: translateY(-50%) rotate(-6deg); display: flex; justify-content: center; gap: 28px; padding: 10px 0; overflow: hidden; white-space: nowrap; z-index: 1;
  background: repeating-linear-gradient(-45deg, #fbbf24 0 22px, #1a1036 22px 44px); box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.tape span { font-family: var(--display); font-weight: 800; font-size: clamp(14px, 3.6vw, 20px); letter-spacing: .12em; color: #fff; background: #1a1036; padding: 2px 14px; border-radius: 8px; }
@media (min-width: 900px) {
  .pcard--wide { flex-direction: row; }
  .pcard--wide .pcard__art { flex: 0 0 44%; aspect-ratio: auto; min-height: 340px; }
  .pcard--wide .pcard__art::after { inset: 0 0 0 auto; width: 40%; height: auto; background: linear-gradient(90deg, rgba(16, 23, 58, 0), var(--cardbg)); }
  .pcard--wide .pcard__body { margin-top: 0; padding: 32px 36px 32px 8px; justify-content: center; }
  .pcard--wide .pcard__cta { margin-top: 8px; max-width: 340px; }
}

/* Animations des illustrations (douces au repos, plus vives au survol) */
.art * { transform-box: fill-box; transform-origin: center; }
.a-float text { animation: floatq 7s ease-in-out infinite; animation-delay: var(--d); }
@keyframes floatq { 50% { translate: 0 -12px; } }
.a-bob { animation: bob 4s ease-in-out infinite; }
@keyframes bob { 50% { translate: 0 -5px; } }
.a-clock { transform-origin: 50% 100%; animation: spin 4s steps(12) infinite; }
@keyframes spin { to { rotate: 360deg; } }
.a-good .pill { animation: good 4s ease-in-out infinite; }
@keyframes good { 0%, 45% { fill: #18224d; } 55%, 90% { fill: #34d399; } 100% { fill: #18224d; } }
.a-good .tick { stroke-dasharray: 24; stroke-dashoffset: 24; animation: tick 4s ease-in-out infinite; }
@keyframes tick { 0%, 50% { stroke-dashoffset: 24; } 60%, 90% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 24; } }
.a-bar { transform-origin: 0 50%; animation: bar 4s var(--ease) infinite; }
@keyframes bar { 0%, 50% { scale: .35 1; } 62%, 92% { scale: .78 1; } 100% { scale: .35 1; } }
.a-pop { animation: popin 4s ease-in-out infinite; opacity: 0; }
@keyframes popin { 0%, 55% { opacity: 0; translate: 0 6px; } 62%, 90% { opacity: 1; translate: 0 0; } 100% { opacity: 0; } }
.a-star { animation: twinkle 2.4s ease-in-out infinite; }
@keyframes twinkle { 50% { scale: 1.25; rotate: 20deg; } }
.a-conf { animation: fall 5s linear infinite; animation-delay: var(--d); }
@keyframes fall { from { translate: 0 0; rotate: 0deg; } to { translate: 0 270px; rotate: var(--r); } }
.a-card { transform-box: view-box; transform-origin: 0 0; rotate: var(--rot); transition: rotate .6s var(--ease), translate .6s var(--ease); }
.pcard--live:hover .a-card.c1 { rotate: -30deg; translate: -14px 6px; }
.pcard--live:hover .a-card.c3 { rotate: 30deg; translate: 14px 6px; }
.pcard--live:hover .a-card.c2 { translate: 0 -10px; }
.a-bubble { animation: bubble 3s ease-in-out infinite; animation-delay: var(--d); }
@keyframes bubble { 0%, 100% { scale: .9; opacity: .8; } 50% { scale: 1.05; opacity: 1; } }
.a-die .die-in { rotate: var(--rot); animation: roll 3.6s var(--ease) infinite; animation-delay: var(--d); }
@keyframes roll { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -16px; rotate: calc(var(--rot) + 90deg); } 90% { translate: 0 0; rotate: calc(var(--rot) + 180deg); } }
.pcard:hover .a-float text, .pcard:hover .a-conf { animation-duration: 3.5s; }

/* ---------- Comment ça marche ---------- */
.steps { display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 820px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 22px; } }
.tvnote { display: flex; gap: 12px; align-items: flex-start; margin: 22px auto 0; max-width: 760px; padding: 16px 20px; border-radius: 18px; background: var(--surface); border: 1px dashed var(--line); line-height: 1.5; }
.tvnote > span:first-child { font-size: 24px; line-height: 1.2; }
.step { position: relative; padding: 26px 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); overflow: hidden; }
.step__n { position: absolute; right: 16px; top: 0; font-family: var(--display); font-weight: 800; font-size: 96px; line-height: 1; color: rgba(255, 255, 255, .05); }
.step__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 24px; color: #fff; margin-bottom: 14px; background: linear-gradient(135deg, var(--violet), var(--turq)); }
.step:nth-child(2) .step__ic { background: linear-gradient(135deg, var(--turq), var(--yellow)); color: #1d1600; }
.step:nth-child(3) .step__ic { background: linear-gradient(135deg, var(--pink), var(--violet)); }
.step h3 { font-size: 24px; margin-bottom: 6px; }

/* ---------- Univers ---------- */
.values { display: grid; gap: 14px; }
@media (min-width: 640px) { .values { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px) { .values { grid-template-columns: repeat(3, 1fr); } }
.values li { padding: 22px; border-radius: 22px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); transition: border-color .3s, transform .3s var(--ease); }
.values li:hover { border-color: var(--line2); transform: translateY(-3px); }
.values h3 { font-size: 21px; margin-bottom: 4px; }
.values li:nth-child(3n+1) h3 { color: var(--yellow); } .values li:nth-child(3n+2) h3 { color: var(--turq); } .values li:nth-child(3n) h3 { color: #b9a6ff; }

/* ---------- Pied de page ---------- */
.foot { margin-top: 40px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(11, 17, 48, .6), var(--bg)); padding: 44px 0 28px; }
.foot__grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.foot .brand { margin-bottom: 10px; }
.foot h2 { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.foot li { margin: 6px 0; }
.foot li a { text-decoration: none; } .foot li a:hover { color: var(--turq); text-decoration: underline; }
.foot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }

/* ---------- Pages légales ---------- */
.legal { max-width: 780px; padding-top: 40px; padding-bottom: 40px; }
.legal h1 { font-size: clamp(34px, 6vw, 48px); margin: 18px 0 8px; }
.legal h2 { font-size: 22px; margin: 28px 0 8px; color: var(--turq); }
.legal p { color: #cdd3f3; }
.legal a { color: var(--turq); }
.back { text-decoration: none; color: var(--muted); font-weight: 600; } .back:hover { color: var(--text); }

/* ---------- Apparition au défilement ---------- */
.js .reveal { opacity: 0; translate: 0 28px; transition: opacity .8s ease, translate .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
.js .reveal.in { opacity: 1; translate: 0 0; }

/* ---------- Transition au clic vers une plateforme ---------- */
.launch { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; pointer-events: none; opacity: 0;
  background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), var(--a, #7c5cff), var(--b, #22d3c5) 60%, var(--bg));
  clip-path: circle(0 at var(--x, 50%) var(--y, 50%)); transition: clip-path .6s cubic-bezier(.7, 0, .2, 1), opacity .2s; }
.launch.on { opacity: 1; pointer-events: auto; clip-path: circle(150% at var(--x, 50%) var(--y, 50%)); }
.launch__in { text-align: center; color: var(--ink, #fff); opacity: 0; transform: scale(.9); transition: opacity .3s .3s, transform .4s .3s var(--ease); }
.launch.on .launch__in { opacity: 1; transform: none; }
.launch__logo svg { width: 96px; height: 96px; margin: 0 auto 16px; border-radius: 26px; box-shadow: 0 16px 50px rgba(0, 0, 0, .35); animation: bob 1.2s ease-in-out infinite; }
.launch p { font-family: var(--display); font-size: 24px; font-weight: 600; }
.launch strong { font-weight: 800; }
.launch__wait { min-height: 3em; max-width: 30ch; margin: 10px auto 0; font-family: var(--body, inherit); font-size: 17px; font-weight: 600; opacity: .9; }
.launch__bar { width: min(260px, 70vw); height: 6px; margin: 14px auto 0; border-radius: 99px; background: rgba(0, 0, 0, .18); overflow: hidden; opacity: 0; transition: opacity .3s; }
.launch.slow .launch__bar { opacity: 1; }
.launch__bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--ink, #fff); transition: width .8s linear; }

/* ---------- Respect de « réduire les animations » ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; translate: none; }
  .pcard { transform: none !important; }
}

/* SAFIO Quiz : mise en avant du Blind Test (vinyle, égaliseur) */
.a-spin { animation: spin 6s linear infinite; }
.a-eq { transform-origin: bottom !important; animation: eq 1s ease-in-out infinite; animation-delay: var(--d); }
.feature { position: relative; display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px;
  background: linear-gradient(120deg, rgba(217, 70, 239, .18), rgba(34, 211, 197, .1)); border: 1px solid rgba(217, 70, 239, .5); }
.feature__ico { width: 64px; height: 64px; display: block; filter: drop-shadow(0 6px 16px rgba(217, 70, 239, .45)); }
.feature__ico svg { display: block; overflow: visible; }
.feature strong { font-family: var(--display); font-weight: 800; font-size: 17px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.feature .new { font-family: var(--body, inherit); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: #d946ef; color: #fff; }
.feature span.txt { display: block; font-size: 14px; color: #d8dcf5; line-height: 1.4; margin-top: 2px; }
.feature__eq { position: absolute; right: 12px; top: 12px; display: flex; gap: 3px; align-items: flex-end; height: 16px; opacity: .8; }
.feature__eq i { width: 3px; height: 100%; border-radius: 2px; background: #f0abfc; transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.feature__eq i:nth-child(2) { animation-delay: -.3s; } .feature__eq i:nth-child(3) { animation-delay: -.6s; } .feature__eq i:nth-child(4) { animation-delay: -.15s; }
@media (prefers-reduced-motion: reduce) { .a-spin, .a-eq, .feature__eq i { animation: none; } }
.feature__ico svg * { transform-box: fill-box; transform-origin: center; }

/* ---------- Installer SAFIO (application installable) ---------- */
.inst { display: grid; gap: 16px; max-width: 900px; margin: 0 auto; }
@media (min-width: 820px) { .inst { grid-template-columns: 1fr 1fr; gap: 22px; } }
.inst__card { padding: 24px; border-radius: 24px; background: var(--surface); border: 1px solid var(--line); }
.inst__card--mine { border-color: var(--turq); box-shadow: 0 0 0 1px var(--turq), 0 18px 40px rgba(34, 211, 197, .12); }
.inst__card h3 { font-size: 24px; margin-bottom: 12px; }
.inst__card ol { margin: 0; padding: 0; list-style: none; counter-reset: i; display: grid; gap: 12px; }
.inst__card li { counter-increment: i; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; line-height: 1.45; }
.inst__card li::before { content: counter(i); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font: 800 17px var(--display); color: #1d1600; background: linear-gradient(135deg, var(--yellow), var(--turq)); }
.inst__card .ico { display: inline-block; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .1); }
.inst__card .host { color: var(--turq); }
.inst__go, .inst__done { text-align: center; margin: 0 0 22px; }
.inst__done { font-weight: 700; }
.inst--installed .inst, .inst--installed .tvnote { display: none; }
.inst__games { max-width: 900px; margin: 22px auto 0; padding: 22px; border-radius: 24px; background: rgba(255, 211, 77, .06); border: 1px dashed rgba(255, 211, 77, .4); text-align: center; }
.inst__games h3 { font-size: 22px; margin-bottom: 8px; }
.inst__games p { margin: 0 0 14px; }
.inst__links { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-bottom: 14px; }
.inst--installed .inst__games { display: block; }

/* Accueil : deux boutons directs vers les jeux + lien vers la liste */
.btn--party { background: linear-gradient(120deg, #ff9a3d, #ff4f9a); box-shadow: 0 10px 30px rgba(255, 79, 154, .35); }
.btn--party:hover { box-shadow: 0 14px 40px rgba(255, 154, 61, .45); }
.hero__more { margin: 14px 0 0; }
.hero__more a { color: var(--muted, #98a3cf); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 520px) { .hero__ctas .btn { flex: 1 1 100%; justify-content: center; } }

/* FAQ */
.faq__list { display: grid; gap: 10px; max-width: 820px; margin: 24px auto 0; }
.faq__item { background: rgba(255, 255, 255, .05); border: 1px solid var(--line2, rgba(255,255,255,.14)); border-radius: 16px; padding: 0 18px; }
.faq__item summary { cursor: pointer; font-weight: 800; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; font-size: 1.3em; line-height: 1; color: var(--turq, #22d3c5); }
.faq__item[open] summary::after { content: '–'; }
.faq__item p { margin: 0 0 16px; color: var(--muted, #c3c9e8); }

/* Pages « réponses » */
.guide__answer { font-size: 1.15em; color: var(--text); }
.guide__steps { padding-left: 1.2em; }
.guide__steps h3 { margin: 14px 0 4px; }
.guide__games { width: 100%; border-collapse: collapse; margin: 8px 0 16px; font-size: .95em; }
.guide__games th, .guide__games td { text-align: left; vertical-align: top; padding: 8px 6px; border-bottom: 1px solid var(--line2); }
.guide__games small { color: var(--muted); }
.guide__cta { margin: 28px 0; }
.guides__list { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 20px; }
.guides__list a { display: block; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid var(--line2); color: var(--text); font-weight: 700; text-decoration: none; }
.guides__list a:hover { border-color: var(--turq); }
.guide a.btn { color: #fff; text-decoration: none; display: inline-flex; }
.guide ul { list-style: disc; padding-left: 1.2em; }
.guide ul li { margin: 6px 0; }
.guide ol.guide__steps { list-style: decimal; }
.guide ol.guide__steps li::marker { color: var(--turq); font-weight: 800; }
.guides__all { margin-top: 16px; }
.guides__list small { font-weight: 400; }
.robixnote { border-color: rgba(46, 230, 208, .55); margin-bottom: 18px; }
