/* Bestrosh Games — bestrosh.com
   Identité : encre #1E1A24 · corail #FF6B4A · papier #FFFBF4 · or #FFC53D
   Polices du jeu, servies depuis le site (aucun appel externe). */

@font-face { font-family: "Lilita One"; src: url("../fonts/LilitaOne.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-900.woff2") format("woff2"); font-weight: 900; font-display: swap; }

:root {
  --ink: #1E1A24;
  --ink-2: #2B2633;
  --coral: #FF6B4A;
  --paper: #FFFBF4;
  --cream: #FFE9C9;
  --gold: #FFC53D;
  --gold-2: #F5A81C;
  --sky: #5DC2FF;
  --sky-2: #1F95EE;
  --sky-3: #0B63C9;
  --violet: #7A45E0;
  --teal: #1B7F7F;
  --title: "Lilita One", "Arial Rounded MT Bold", system-ui, sans-serif;
  --text: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
  --wrap: 1120px;
  --line: 5px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--text);
  font-weight: 700;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--title); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* Une seule langue visible à la fois (lang.js règle <html lang>). */
html:not([lang="fr"]) [data-l="fr"],
html:not([lang="en"]) [data-l="en"],
html:not([lang="es"]) [data-l="es"],
html:not([lang="de"]) [data-l="de"],
html:not([lang="it"]) [data-l="it"],
html:not([lang="pt"]) [data-l="pt"] { display: none !important; } /* une ligne par langue ajoutée */

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- En-tête ---------- */
.top {
  position: absolute; inset: 0 0 auto 0; z-index: 20;
  padding: 18px 0;
}
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--title); font-size: 20px; letter-spacing: .04em; color: var(--paper); }
.brand img { width: 34px; height: 34px; }
.brand small { font-family: var(--text); font-weight: 900; font-size: 11px; letter-spacing: .32em; color: var(--coral); margin-left: 2px; }
.on-sky .brand { color: var(--ink); }
.on-sky .brand small { color: var(--ink); opacity: .75; }

.lang-pick { display: inline-flex; align-items: center; gap: 8px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(255, 251, 244, .08); border: 2px solid rgba(255, 251, 244, .18); }
.lang-pick img { width: 18px; height: 18px; }
.lang-pick select { appearance: none; -webkit-appearance: none; border: 0; background: transparent url("../img/chevron.svg") right 8px center / 12px no-repeat; color: var(--paper); font: inherit; font-weight: 800; padding: 9px 30px 9px 2px; cursor: pointer; }
.lang-pick select option { color: #1E1A24; background: #fff; }
.lang-pick:focus-within { border-color: var(--gold); }

/* ---------- Boutons, pastilles ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--title); font-size: 22px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); background: var(--gold);
  padding: 14px 26px 15px; border-radius: 20px;
  border: var(--line) solid var(--ink); box-shadow: 0 7px 0 var(--ink);
  transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 9px 0 var(--ink); }
.btn:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); }
.btn .arrow { transition: transform .2s ease; }
.btn:hover .arrow { transform: translateX(4px); }

.soon {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--title); font-size: 17px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--paper); background: var(--ink);
  padding: 9px 18px 10px; border-radius: 999px;
}
.soon i { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.7); opacity: .45; } }

/* ---------- Ciel animé (commun accueil + page du jeu) ---------- */
.sky { position: relative; background: linear-gradient(180deg, var(--sky) 0%, #3FAEF6 55%, var(--sky-2) 100%); overflow: hidden; isolation: isolate; }
.clouds { position: absolute; inset: 0; z-index: -1; background-repeat: repeat-x; pointer-events: none; }
.clouds.far { background-image: url("../img/clouds-far.webp"); background-size: 900px auto; background-position: 0 18%; opacity: .55; animation: drift 90s linear infinite; }
.clouds.near { background-image: url("../img/clouds-near.webp"); background-size: 1100px auto; background-position: 0 78%; opacity: .9; animation: drift-near 48s linear infinite; }
@keyframes drift { to { background-position: -900px 18%; } }
@keyframes drift-near { to { background-position: -1100px 78%; } }

/* ---------- Accueil Bestrosh ---------- */
.home { background: var(--ink); color: var(--paper); }
.studio { padding: 150px 0 70px; text-align: center; }
.logo-b { position: relative; width: min(100%, 540px); aspect-ratio: 1531 / 459; margin: 0 auto 34px; }
.logo-b img { position: absolute; }
.logo-b .l { left: 0; top: 0; width: 100%; animation: drop .45s cubic-bezier(.2, 1.4, .4, 1) .23s both; }
.logo-b .o { left: 58.98%; top: 13.29%; width: 15.676%; animation: pop .55s cubic-bezier(.2, 1.6, .4, 1) .11s both; }
.logo-b .g { left: 30.44%; top: 81.26%; width: 38.99%; animation: rise .4s ease-out .48s both; }
@keyframes pop { from { transform: scale(0) rotate(-200deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes drop { from { transform: translateY(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes rise { from { transform: translateY(28px); opacity: 0; } to { transform: none; opacity: 1; } }
.studio .lead { font-size: clamp(19px, 2.4vw, 23px); max-width: 30em; margin: 0 auto; color: #D9D2E0; animation: rise .5s ease-out .8s both; }
.studio .lead b { color: var(--paper); font-weight: 900; }

.featured { padding: 0 0 110px; }
.eyebrow { font-family: var(--text); font-weight: 900; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--coral); margin-bottom: 16px; text-align: center; }
.game-card {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 10px;
  min-height: 440px; padding: 44px 48px;
  border-radius: 36px; border: var(--line) solid var(--paper);
  box-shadow: 0 10px 0 rgba(0, 0, 0, .45);
  text-decoration: none; color: var(--ink);
  transition: transform .2s ease, box-shadow .2s ease;
}
.game-card:hover { transform: translateY(-4px); box-shadow: 0 14px 0 rgba(0, 0, 0, .45); }
.game-card .txt { display: grid; gap: 22px; justify-items: start; }
.game-card .logo { width: min(100%, 380px); filter: drop-shadow(0 8px 0 rgba(30, 26, 36, .22)); }
.game-card p { font-size: 20px; font-weight: 800; max-width: 22em; }
.game-card .hero-nico { justify-self: center; width: min(78%, 300px); }

.about { padding: 0 0 100px; text-align: center; }
.about p { max-width: 34em; margin: 0 auto; color: #BDB5C6; }
.about a { color: var(--gold); }

/* Nico qui vole */
.bob { animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-22px) rotate(4deg); } }

/* ---------- Page Nico Flap ---------- */
.nf-hero { min-height: min(100svh, 940px); display: grid; place-items: center; padding: 110px 0 120px; text-align: center; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.nf-hero .stack { display: grid; justify-items: center; gap: 20px; position: relative; z-index: 2; }
.nf-hero .logo { width: min(74vw, 520px); filter: drop-shadow(0 10px 0 rgba(30, 26, 36, .2)); animation: logo-in .7s cubic-bezier(.2, 1.5, .4, 1) both, float 4s ease-in-out .7s infinite; }
@keyframes logo-in { from { transform: scale(.4) rotate(-8deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.nf-hero h1 { font-size: clamp(24px, 4vw, 38px); color: var(--ink); max-width: 17em; }
.nf-hero .flyer { width: clamp(120px, 20vw, 190px); margin: 6px 0 2px; will-change: transform; }
.nf-hero .flyer img { width: 100%; filter: drop-shadow(0 10px 0 rgba(30, 26, 36, .16)); }
.nf-hero .hint { font-weight: 900; font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); opacity: .7; }

.pile { position: absolute; z-index: 1; width: clamp(92px, 13vw, 170px); background: url("../img/suitcase.webp") top center / 100% auto repeat-y; filter: drop-shadow(0 0 0 var(--ink)); }
.pile.a { left: clamp(-30px, 6vw, 110px); bottom: 0; height: 40%; background-position: top center; }
.pile.b { right: clamp(-30px, 6vw, 110px); top: 0; height: 30%; background-position: bottom center; }
.pile.c { right: clamp(-30px, 6vw, 110px); bottom: 0; height: 22%; }

.scroll-cue { position: absolute; left: 50%; bottom: 26px; z-index: 3; width: 44px; height: 44px; margin-left: -22px; display: grid; place-items: center; border-radius: 50%; background: var(--ink); color: var(--paper); text-decoration: none; font-family: var(--title); font-size: 22px; animation: float 1.8s ease-in-out infinite; }

.band { padding: 96px 0; }
.band.paper { background: var(--paper); }
.band.cream { background: var(--cream); }
.band.dark { background: var(--ink); color: var(--paper); }
.band h2 { font-size: clamp(36px, 6vw, 62px); text-align: center; }
.band .sub { text-align: center; max-width: 34em; margin: 14px auto 0; font-size: 20px; opacity: .82; }
.band h2 em { font-style: normal; color: var(--coral); }
.band.dark h2 em { color: var(--gold); }

/* Comment on joue */
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 54px; }
.step { background: #fff; border: var(--line) solid var(--ink); border-radius: 28px; box-shadow: 0 8px 0 var(--ink); padding: 30px 26px 28px; text-align: center; }
.step .n { width: 58px; height: 58px; margin: -62px auto 16px; display: grid; place-items: center; font-family: var(--title); font-size: 30px; color: var(--ink); background: var(--gold); border: var(--line) solid var(--ink); border-radius: 50%; }
.step:nth-child(2) .n { background: var(--coral); color: var(--paper); }
.step:nth-child(3) .n { background: var(--violet); color: var(--paper); }
.step h3 { font-size: 30px; margin-bottom: 8px; }
.step p { font-size: 17px; opacity: .85; }

/* Flapers */
.flapers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; margin: 50px 0 0; padding: 0; list-style: none; }
.flaper { position: relative; padding: 18px 12px 14px; text-align: center; border-radius: 24px; border: var(--line) solid var(--ink); box-shadow: 0 7px 0 var(--ink); background: var(--c, #7FD0FF); overflow: hidden; transition: transform .18s cubic-bezier(.2, 1.6, .4, 1); }
.flaper::before { content: ""; position: absolute; inset: -40%; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .16) 0 12deg, transparent 12deg 24deg); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.flaper img { position: relative; width: 78%; margin: 0 auto 8px; transition: transform .25s cubic-bezier(.2, 1.8, .4, 1); filter: drop-shadow(0 6px 0 rgba(30, 26, 36, .18)); }
.flaper:hover { transform: translateY(-6px); }
.flaper:hover img { transform: scale(1.12) rotate(-6deg); }
.flaper b { position: relative; display: block; font-family: var(--title); font-weight: 400; font-size: 21px; letter-spacing: .04em; text-transform: uppercase; color: var(--paper); -webkit-text-stroke: 4px var(--ink); paint-order: stroke fill; }
.r-c { --c: #6EC8FF; } .r-r { --c: #4FD08A; } .r-e { --c: #B07BFF; } .r-l { --c: #FFC53D; }

/* Mondes */
.worlds { margin-top: 56px; padding: 14px 0 40px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.worlds-track { display: flex; gap: 26px; width: max-content; padding-right: 26px; animation: defile 46s linear infinite; }
.worlds:hover .worlds-track, .worlds:active .worlds-track { animation-play-state: paused; }
@keyframes defile { to { transform: translate3d(-50%, 0, 0); } }
.phone { flex: 0 0 auto; margin: 0; width: clamp(160px, 13vw, 210px); text-align: center; }
.phone .frame { border: 7px solid var(--paper); border-radius: 30px; overflow: hidden; background: #000; box-shadow: 0 10px 0 rgba(0, 0, 0, .5); transition: transform .25s cubic-bezier(.2, 1.5, .4, 1); }
.phone:nth-child(odd) .frame { transform: rotate(-2.5deg); }
.phone:nth-child(even) .frame { transform: rotate(2.5deg) translateY(16px); }
.phone:hover .frame { transform: rotate(0) scale(1.05); }
.phone img { width: 100%; aspect-ratio: 600 / 1094; object-fit: cover; }
.phone span { display: block; margin-top: 30px; font-family: var(--title); font-size: 21px; letter-spacing: .04em; text-transform: uppercase; }

/* Ce qu'il y a dedans */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 50px; }
.feat { background: #fff; border: var(--line) solid var(--ink); border-radius: 24px; padding: 24px 20px; box-shadow: 0 7px 0 var(--ink); }
.feat h3 { font-size: 24px; margin-bottom: 6px; }
.feat p { font-size: 16px; opacity: .85; }
.feat .dot { width: 18px; height: 18px; border-radius: 50%; border: 4px solid var(--ink); margin-bottom: 14px; background: var(--d, var(--gold)); }

/* Fin : bientôt */
.outro { padding: 110px 0 130px; text-align: center; }
.outro .stack { display: grid; justify-items: center; gap: 22px; position: relative; z-index: 2; }
.outro img.nico { width: 150px; }
.outro h2 { font-size: clamp(40px, 7vw, 76px); color: var(--paper); -webkit-text-stroke: 10px var(--ink); paint-order: stroke fill; text-shadow: 0 6px 0 var(--ink); }
.outro p { font-size: 21px; font-weight: 800; max-width: 24em; }
.stores { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.store { font-family: var(--title); font-size: 18px; letter-spacing: .05em; padding: 10px 20px 11px; border-radius: 16px; background: var(--paper); border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); }

.outro .follow { margin-top: 18px; font-size: 18px; font-weight: 900; letter-spacing: .04em; }
.help-link { margin-top: 6px; font-weight: 900; font-size: 17px; color: var(--ink); text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 3px; }
.help-link:hover { color: var(--paper); }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; list-style: none; margin: 0; padding: 0; }
.social { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%; border: 4px solid var(--ink); box-shadow: 0 5px 0 var(--ink); text-decoration: none; transition: transform .12s ease, box-shadow .12s ease; }
.social:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
.social:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.social img { width: 26px; height: 26px; }
.s-discord { background: #5865F2; }
.s-youtube { background: #FF0000; }
.s-instagram { background: linear-gradient(45deg, #F9CE34 0%, #EE2A7B 50%, #6228D7 100%); }
.s-tiktok, .s-x { background: var(--paper); }
.s-tiktok img, .s-x img { filter: brightness(0); }

/* ---------- Pied de page ---------- */
.foot { background: var(--ink); color: #BDB5C6; padding: 46px 0 40px; font-size: 15px; }
.foot .wrap { display: grid; gap: 22px; justify-items: center; text-align: center; }
.foot nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 22px; }
.linklike { font: inherit; cursor: pointer; }
.doc .linklike { color: var(--sky-3); font-weight: 800; background: none; border: 0; padding: 0; text-decoration: underline; }
.foot a, .foot .linklike { color: var(--paper); text-decoration: none; font-weight: 800; background: none; border: 0; padding: 0; }
.foot a:hover, .foot .linklike:hover { color: var(--gold); }
.foot .brand { color: var(--paper); }
.foot-socials { display: flex; gap: 10px; list-style: none; margin: 0; padding: 0; }
.foot .fsocial { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 251, 244, .08); border: 2px solid rgba(255, 251, 244, .18); transition: border-color .12s ease, transform .12s ease; }
.foot .fsocial:hover { border-color: var(--gold); transform: translateY(-2px); }
.fsocial img { width: 18px; height: 18px; }
.home + .foot, .foot.sep { border-top: 1px solid rgba(255, 251, 244, .1); }

/* ---------- Pages de texte (mentions légales…) ---------- */
.doc-head { background: var(--ink); color: var(--paper); padding: 130px 0 54px; }
.doc-head h1 { font-size: clamp(38px, 6vw, 60px); }
.doc-head p { margin-top: 12px; color: #BDB5C6; }
.doc { padding: 56px 0 90px; }
.doc .wrap { max-width: 760px; }
.doc h2 { font-size: 28px; margin: 40px 0 12px; }
.doc h2:first-child { margin-top: 0; }
.doc h3 { font-family: var(--text); font-weight: 900; font-size: 19px; margin: 22px 0 8px; letter-spacing: 0; }
.doc h2[id] { scroll-margin-top: 20px; }
.doc p, .doc li { font-weight: 700; margin-bottom: 10px; }
.doc ul { padding-left: 22px; margin: 0 0 10px; }
.doc a { color: var(--sky-3); font-weight: 800; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 10px; }
.doc dt { font-weight: 900; }
.doc dd { margin: 0; }
.todo { background: #FFE27A; padding: 1px 7px; border-radius: 6px; font-weight: 900; }
.wip { background: #fff; border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); padding: 34px 30px; text-align: center; }
.wip h2 { margin: 0 0 10px; }
.wip p { margin: 0 auto 8px; max-width: 30em; }

/* ---------- Cookies ---------- */
.ck { position: fixed; z-index: 100; left: 16px; right: 16px; bottom: 16px; display: none; }
.ck.open { display: block; animation: rise .3s ease-out both; }
.ck .box { max-width: 560px; margin: 0 auto; background: var(--paper); color: var(--ink); border: var(--line) solid var(--ink); border-radius: 24px; box-shadow: 0 8px 0 var(--ink); padding: 22px 22px 20px; }
.ck h2 { font-size: 24px; margin-bottom: 6px; }
.ck p { font-size: 15px; line-height: 1.45; }
.ck .rows { margin: 14px 0 4px; display: grid; gap: 8px; }
.ck .row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; background: #fff; border: 3px solid var(--ink); border-radius: 14px; font-size: 15px; }
.ck .row small { display: block; font-weight: 700; opacity: .7; font-size: 13px; }
.ck .row input { width: 22px; height: 22px; accent-color: var(--coral); flex: none; }
.ck .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.ck .acts button { flex: 1 1 130px; font-family: var(--title); font-size: 16px; letter-spacing: .04em; text-transform: uppercase; padding: 10px 12px 11px; border-radius: 14px; border: 4px solid var(--ink); background: #fff; box-shadow: 0 4px 0 var(--ink); }
.ck .acts button.yes { background: var(--gold); }
.ck .acts button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }
.ck .more { margin-top: 12px; font-size: 13px; }
.ck .more a { color: var(--sky-3); font-weight: 800; }

/* ---------- Apparition au défilement ---------- */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, 1.2, .4, 1); transition-delay: calc(var(--i, 0) * 70ms); }
.js .rv.in { opacity: 1; transform: none; }

/* ---------- Petits écrans ---------- */
@media (max-width: 900px) {
  .game-card { grid-template-columns: 1fr; text-align: center; padding: 36px 24px 30px; }
  .game-card .txt { justify-items: center; }
  .game-card .hero-nico { order: -1; width: 150px; }
  .how { grid-template-columns: 1fr; gap: 56px; }
  .flapers { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  body { font-size: 17px; }
  .band { padding: 72px 0; }
  .flapers { grid-template-columns: repeat(2, 1fr); }
  .flaper b { font-size: 19px; }
  .feats { grid-template-columns: 1fr; }
  .phone { width: 150px; }
  .brand span.w { display: none; }
  .pile { width: 64px; }
  .pile.a { left: -20px; height: 30%; }
  .pile.b { display: none; }
  .pile.c { right: -20px; height: 20%; }
  .nf-hero { padding-bottom: 110px; }
  .studio { padding-top: 120px; }
  .doc dl { grid-template-columns: 1fr; gap: 0; }
  .doc dd { margin-bottom: 10px; }
  .outro h2 { -webkit-text-stroke-width: 7px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
  .js .rv, .js .rv-t, .js .rv-l, .js .rv-r, .js .rv-pop, .js .rv-flip { opacity: 1; transform: none; filter: none; }
  .js .step:not(.in) .n { transform: none; }
}

/* Décalages d'apparition et couleurs (classes : aucun style en ligne, CSP stricte). */
.i0 { --i: 0; } .i1 { --i: 1; } .i2 { --i: 2; } .i3 { --i: 3; } .i4 { --i: 4; }
.d0 { --d: #FFC53D; } .d1 { --d: #FF6B4A; } .d2 { --d: #7A45E0; } .d3 { --d: #4FD08A; }

/* Politiques pas encore traduites (de / it / pt) : phrase « texte en anglais » (claude/99). */
.note-langue { opacity: .75; font-size: .95em; }


/* =====================================================================
   SORTIE DU 1/12 (claude/110) — page Nico Flap : préinscription, date,
   animations, emplacement des actus, page play.nicoflap.com.
   ===================================================================== */
main { overflow-x: hidden; }
@supports (overflow-x: clip) { main { overflow-x: clip; } }

/* App Store : « très bientôt » tant que son adresse n'est pas réglée (server.js ajoute data-appstore="1"). */
body:not([data-appstore="1"]) .ios-ok, body[data-appstore="1"] .ios-soon { display: none !important; }

/* Barre de progression de lecture */
.progress { position: fixed; z-index: 40; inset: 0 0 auto 0; height: 4px; pointer-events: none; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--coral), var(--gold)); transform-origin: 0 50%; transform: scaleX(0); }

/* En-tête fixe : transparent sur le ciel, givré au défilement */
.nf .top { position: fixed; padding: 14px 0; padding-top: max(14px, env(safe-area-inset-top)); transition: background-color .25s ease, box-shadow .25s ease, padding .25s ease; }
.nf .top.scrolled { background: rgba(255, 251, 244, .88); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5); box-shadow: 0 3px 0 rgba(30, 26, 36, .1); padding-block: 8px; }
.tnav { display: flex; align-items: center; gap: 4px; }
.tnav .tl { font-family: var(--title); font-size: 17px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 8px 12px; border-radius: 12px; transition: background-color .15s ease; }
.tnav .tl:hover { background: rgba(30, 26, 36, .08); }
.pill { margin-left: 8px; display: inline-flex; align-items: center; font-family: var(--title); font-size: 16px; letter-spacing: .05em; text-transform: uppercase; text-decoration: none; color: var(--ink); background: var(--gold); border: 4px solid var(--ink); border-radius: 999px; box-shadow: 0 4px 0 var(--ink); padding: 5px 16px 6px; white-space: nowrap; transition: transform .12s ease, box-shadow .12s ease; }
.pill:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--ink); }
.pill:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--ink); }

/* Héros */
.nf .nf-hero { min-height: 100svh; padding: 92px 0 96px; }
.nf .nf-hero .stack { gap: 16px; }
.nf .nf-hero .logo { width: min(72vw, 470px); }
.nf .nf-hero h1 { font-size: clamp(22px, 3.4vw, 34px); max-width: 19em; }
.nf .nf-hero .flyer { width: clamp(104px, 15vw, 150px); margin: 0; }
.sparks { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.sparks i { position: absolute; width: 14px; height: 14px; background: #fff; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); opacity: 0; animation: scintille 3.6s ease-in-out infinite; }
.sparks i:nth-child(1) { left: 12%; top: 22%; }
.sparks i:nth-child(2) { left: 84%; top: 16%; animation-delay: .7s; width: 18px; height: 18px; }
.sparks i:nth-child(3) { left: 22%; top: 62%; animation-delay: 1.4s; }
.sparks i:nth-child(4) { left: 74%; top: 54%; animation-delay: 2.1s; width: 10px; height: 10px; }
.sparks i:nth-child(5) { left: 48%; top: 9%; animation-delay: 2.8s; width: 10px; height: 10px; }
.sparks i:nth-child(6) { left: 6%; top: 44%; animation-delay: 1.1s; width: 9px; height: 9px; }
.sparks i:nth-child(7) { left: 92%; top: 38%; animation-delay: 1.8s; width: 12px; height: 12px; }
.sparks i:nth-child(8) { left: 62%; top: 80%; animation-delay: 3.2s; }
@keyframes scintille { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 45% { opacity: .95; transform: scale(1) rotate(45deg); } 70% { opacity: 0; transform: scale(.5) rotate(90deg); } }

/* Ticket « date de sortie » */
.ticket { display: inline-flex; align-items: center; gap: 12px; padding: 7px 18px 7px 7px; background: var(--paper); border: var(--line) solid var(--ink); border-radius: 22px; box-shadow: 0 7px 0 var(--ink); transform: rotate(-2deg); animation: ticket-in .8s cubic-bezier(.2, 1.6, .4, 1) .3s both; }
.ticket .t-lbl { font-family: var(--title); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); background: var(--coral); padding: 8px 12px 9px; border-radius: 14px; line-height: 1; }
.ticket .t-date { font-family: var(--title); font-size: 30px; text-transform: uppercase; letter-spacing: .02em; line-height: 1; white-space: nowrap; }
.ticket .t-date b { font-weight: 400; font-size: 1.45em; color: var(--coral); -webkit-text-stroke: 5px var(--ink); paint-order: stroke fill; vertical-align: -3px; }
@keyframes ticket-in { from { transform: scale(.2) rotate(-25deg); opacity: 0; } to { transform: rotate(-2deg); opacity: 1; } }
.countdown { display: inline-flex; align-items: center; gap: 9px; font-weight: 900; font-size: 14px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); background: rgba(255, 255, 255, .6); padding: 6px 14px 6px 12px; border-radius: 999px; animation: rise .5s ease-out .7s both; }
.countdown::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--coral); animation: pulse 1.4s ease-in-out infinite; }
.countdown[hidden] { display: none; }

.launch { display: flex; flex-direction: column; align-items: center; gap: 14px; }
@media (min-width: 900px) {
  .nf .nf-hero .stack { gap: 18px; }
  .nf .nf-hero .logo { width: min(40vw, 410px); }
  .nf .nf-hero .flyer { position: absolute; z-index: 3; left: -150px; top: 70px; width: 132px; }
  .launch { flex-direction: row; gap: 18px; margin-top: 6px; }
}

/* Bouton principal : reflet qui balaie + halo */
.btn-cta { position: relative; overflow: hidden; isolation: isolate; font-size: 25px; padding: 15px 30px 16px; animation: halo 2.2s ease-out infinite; }
.btn-cta .shine { position: absolute; z-index: -1; top: -20%; bottom: -20%; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .85), transparent); transform: skewX(-18deg); animation: reflet 3.2s ease-in-out 1.2s infinite; }
@keyframes reflet { 0% { left: -60%; } 30%, 100% { left: 130%; } }
@keyframes halo { 0% { box-shadow: 0 7px 0 var(--ink), 0 0 0 0 rgba(255, 197, 61, .75); } 70%, 100% { box-shadow: 0 7px 0 var(--ink), 0 0 0 18px rgba(255, 197, 61, 0); } }
.btn-cta:hover { animation-play-state: paused; }
.btn-cta:active { transform: translateY(5px); box-shadow: 0 2px 0 var(--ink); animation: none; }
.store-note { display: inline-flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 4px; font-size: 14px; font-weight: 800; color: var(--ink); opacity: .85; }
.store-note i { width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: #1DB954; box-shadow: 0 0 0 3px rgba(29, 185, 84, .25); animation: pulse 1.8s ease-in-out infinite; }

/* Bandeau qui défile */
.ticker { position: relative; z-index: 5; margin: -20px -12px 0; padding: 13px 0; background: var(--ink); color: var(--paper); transform: rotate(-1.4deg); overflow: hidden; border-top: 4px solid var(--gold); }
.tk-track { display: flex; align-items: center; width: max-content; animation: defile 36s linear infinite; }
.tk { font-family: var(--title); font-size: 23px; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; padding: 0 20px; }
.tk:nth-of-type(2n) { color: var(--gold); }
.star { flex: none; width: 18px; height: 18px; background: var(--coral); clip-path: polygon(50% 0, 63% 35%, 100% 38%, 71% 61%, 81% 100%, 50% 78%, 19% 100%, 29% 61%, 0 38%, 37% 35%); }

/* Apparitions au défilement (claude/110) : titres en volet, cartes qui glissent, sautent, basculent.
   Les cartes « rv-pop » / « rv-flip » rejouent leur entrée quand on remonte puis redescend. */
.js .rv-t { opacity: 0; filter: blur(10px); transform: translateY(40px) scale(.88) rotate(-2deg); transition: opacity .55s ease, filter .6s ease, transform .85s cubic-bezier(.2, 1.6, .4, 1); }
.js .rv-t.in { opacity: 1; filter: none; transform: none; }
.js .rv-l, .js .rv-r, .js .rv-pop, .js .rv-flip { opacity: 0; transition: opacity .5s ease, transform .85s cubic-bezier(.2, 1.45, .4, 1); transition-delay: calc(var(--i, 0) * 85ms); }
.js .rv-l { transform: translate3d(-80px, 0, 0) rotate(-6deg); }
.js .rv-r { transform: translate3d(80px, 0, 0) rotate(6deg); }
.js .rv-pop { transform: translate3d(0, 50px, 0) scale(.35) rotate(-14deg); transition-timing-function: ease, cubic-bezier(.2, 1.8, .4, 1); }
.js .rv-flip { transform: perspective(900px) rotateX(-80deg); transform-origin: 50% 0; }
.js .rv-l.in, .js .rv-r.in, .js .rv-pop.in, .js .rv-flip.in { opacity: 1; transform: none; }
.js .flapers .rv-pop:nth-child(even):not(.in) { transform: translate3d(0, 50px, 0) scale(.35) rotate(14deg); }
.nico-in { display: block; }
.step .n { transition: transform .7s cubic-bezier(.2, 1.8, .4, 1) .25s; }
.js .step:not(.in) .n { transform: scale(0) rotate(-180deg); }

/* Mini-jeu du héros : score de battements d'ailes au-dessus de Nico */
.flyer { position: relative; }
.flap-score { position: absolute; left: 50%; bottom: 100%; margin-bottom: 6px; transform: translateX(-50%); display: grid; justify-items: center; font-family: var(--title); font-size: 34px; line-height: 1; color: var(--paper); -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; pointer-events: none; opacity: 0; transition: opacity .25s ease; white-space: nowrap; }
.flap-score small { font-size: 16px; -webkit-text-stroke-width: 5px; color: var(--gold); }
.flap-score.on { opacity: 1; }
.flap-score.pop b { animation: score-pop .22s cubic-bezier(.2, 1.8, .4, 1); }
.flap-score b { display: block; font-weight: 400; }
@keyframes score-pop { from { transform: scale(1.5); } to { transform: scale(1); } }
.flap-score.record b { color: var(--gold); }

/* Petit Nico qui roule sur la barre de progression */
.progress .rider { position: absolute; top: -2px; left: 0; width: 26px; height: 26px; margin-left: -13px; filter: drop-shadow(0 2px 0 rgba(30, 26, 36, .35)); transition: opacity .3s ease; opacity: 0; will-change: transform; }
.progress.on .rider { opacity: 1; }
.tilt { transition: transform .25s ease, box-shadow .25s ease; will-change: transform; }

/* Préinscription (bas de page) */
.outro .pr { position: relative; z-index: 2; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 34px; }
.pr-main { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 18px; min-width: 0; width: 100%; }
.kicker, .outro .kicker { max-width: none; font-weight: 900; font-size: 13px; letter-spacing: .28em; text-transform: uppercase; color: var(--ink); background: var(--paper); border: 3px solid var(--ink); border-radius: 999px; padding: 6px 14px 6px 17px; }
.outro .lead { font-size: 20px; font-weight: 800; max-width: 24em; }
.outro .after { margin-top: 46px; }
.badges { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; }
.badge { position: relative; display: inline-flex; align-items: center; gap: 10px; min-width: 196px; padding: 9px 20px 9px 14px; color: #fff; background: #000; border: 2px solid #A6A6A6; border-radius: 14px; box-shadow: 0 5px 0 var(--ink); text-decoration: none; text-align: left; transition: transform .12s ease, box-shadow .12s ease; }
a.badge:hover { transform: translateY(-2px); box-shadow: 0 7px 0 var(--ink); }
a.badge:active { transform: translateY(3px); box-shadow: 0 2px 0 var(--ink); }
.badge img { width: 28px; height: 28px; flex: none; }
.badge > span { display: grid; line-height: 1.08; white-space: nowrap; }
.badge small { font-family: var(--text); font-weight: 700; font-size: 11px; letter-spacing: .02em; }
.badge b { font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; font-weight: 600; font-size: 22px; letter-spacing: -.01em; }
.badge.ios-soon { cursor: default; }
.badge.ios-soon img, .badge.ios-soon > span { opacity: .62; }
.badge .tag { position: absolute; top: -17px; right: -8px; font-style: normal; font-family: var(--title); font-size: 13px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink); background: var(--gold); border: 3px solid var(--ink); border-radius: 999px; padding: 3px 9px 4px; transform: rotate(7deg); line-height: 1; }
.qr-card { display: none; justify-items: center; gap: 8px; width: 290px; padding: 22px 22px 20px; text-align: center; color: var(--ink); background: var(--paper); border: var(--line) solid var(--ink); border-radius: 30px; box-shadow: 0 10px 0 var(--ink); transform: rotate(2.5deg); }
.qr-card img { width: 200px; height: 200px; border-radius: 14px; border: 3px solid var(--ink); }
.qr-card b { font-family: var(--title); font-weight: 400; font-size: 20px; letter-spacing: .03em; text-transform: uppercase; line-height: 1.05; margin-top: 6px; }
.qr-card .qs { font-size: 15px; opacity: .8; line-height: 1.35; }
.qr-card .url { font-weight: 900; color: var(--coral); letter-spacing: .02em; }
.qr-card.flash { animation: qr-flash .9s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes qr-flash { 0% { transform: rotate(2.5deg) scale(1); } 35% { transform: rotate(-3deg) scale(1.1); } 100% { transform: rotate(2.5deg) scale(1); } }
@media (hover: hover) and (pointer: fine) and (min-width: 900px) {
  .outro .pr { grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: stretch; gap: 60px; max-width: 980px; }
  .pr-main { justify-items: start; text-align: left; }
  .pr-main .nico { width: 110px; margin-bottom: -6px; }
  .outro .pr-main h2 { text-align: left; }
  .pr-main .badges { justify-content: flex-start; }
  .pr-cta { display: none; }
  .outro .qr-card { display: grid; animation: float 4s ease-in-out infinite; }
}

/* Actus (emplacement prêt : affiché quand des actus sont publiées) */
.news[hidden], [data-news][hidden] { display: none !important; }
.news-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; margin-top: 46px; }
.news-card { display: grid; align-content: start; overflow: hidden; color: var(--ink); background: #fff; border: var(--line) solid var(--ink); border-radius: 26px; box-shadow: 0 8px 0 var(--ink); text-decoration: none; transition: transform .18s cubic-bezier(.2, 1.6, .4, 1), box-shadow .18s ease; }
.news-card:hover { transform: translateY(-6px) rotate(-.6deg); box-shadow: 0 13px 0 var(--ink); }
.news-card img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-bottom: var(--line) solid var(--ink); }
.news-card .nc { display: grid; gap: 6px; padding: 16px 18px 20px; }
.news-card .nc-cat { font-weight: 900; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; color: var(--coral); }
.news-card h3 { font-size: 24px; }
.news-card p { font-size: 15px; opacity: .8; line-height: 1.4; }

/* Page play.nicoflap.com */
.play { min-height: 100svh; background: var(--sky-2); }
.play-page { min-height: 100svh; display: grid; align-content: center; justify-items: center; gap: 26px; padding: max(34px, env(safe-area-inset-top)) 16px 22px; text-align: center; }
.play-card { position: relative; z-index: 2; width: min(100%, 560px); display: grid; justify-items: center; gap: 18px; }
.play-logo img { width: min(76vw, 360px); filter: drop-shadow(0 10px 0 rgba(30, 26, 36, .2)); animation: logo-in .7s cubic-bezier(.2, 1.5, .4, 1) both, float 4s ease-in-out .7s infinite; }
.cas { display: none; justify-items: center; gap: 16px; }
body:not([data-cas]) .cas-ordi, body[data-cas="ordi"] .cas-ordi, body[data-cas="ios"] .cas-ios, body[data-cas="android"] .cas-android { display: grid; }
.play .qr-card { display: grid; transform: rotate(-1.5deg); }
.cas-stores { display: grid; justify-items: center; gap: 14px; }
@media (min-width: 900px) {
  .play-card { width: min(100%, 860px); gap: 22px; }
  .play-logo img { width: 290px; }
  .cas-ordi { grid-template-columns: auto auto; align-items: center; gap: 44px; }
  .cas-stores { justify-items: start; }
  .cas-stores .badges { flex-direction: column; }
}
.play .or { font-weight: 900; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); opacity: .8; }
.cas h1 { font-size: clamp(32px, 8vw, 46px); color: var(--paper); -webkit-text-stroke: 8px var(--ink); paint-order: stroke fill; text-shadow: 0 5px 0 var(--ink); }
.cas .lead { font-size: 18px; font-weight: 800; max-width: 26em; color: var(--ink); }
.play-more { font-weight: 900; font-size: 17px; color: var(--ink); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 4px; }
.play-more:hover { color: var(--paper); }
.play-foot { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 18px; font-size: 13px; font-weight: 800; color: var(--ink); opacity: .8; }
.play-foot a { color: inherit; }

/* Petits écrans */
@media (max-width: 760px) {
  .tnav .tl { display: none; }
  .nf .top .brand span, .nf .top .brand small { display: none; }
}
@media (max-width: 560px) {
  .nf .nf-hero { padding: 84px 0 70px; }
  .nf .nf-hero .stack { gap: 13px; }
  .nf .scroll-cue { display: none; }
  .nf .pile { width: 44px; }
  .nf .pile.a { left: -18px; height: 24%; }
  .nf .pile.c { right: -18px; height: 17%; }
  .ticket { gap: 9px; padding-right: 13px; }
  .ticket .t-lbl { font-size: 12px; padding: 7px 9px 8px; }
  .ticket .t-date { font-size: 23px; }
  .btn-cta { font-size: 21px; padding: 13px 22px 14px; }
  .store-note { font-size: 13px; max-width: 22em; }
  .tk { font-size: 19px; padding: 0 14px; }
  .badge { min-width: 0; flex: 1 1 150px; max-width: 210px; padding: 8px 12px 8px 10px; gap: 8px; }
  .badge img { width: 24px; height: 24px; }
  .badge b { font-size: 18px; }
  .badge small { font-size: 10px; }
  .outro .lead { font-size: 18px; }
}
@media (max-width: 380px) {
  .socials { gap: 10px; }
  .social { width: 50px; height: 50px; }
  .social img { width: 22px; height: 22px; }
  .btn-cta { font-size: 18px; padding: 12px 18px 13px; }
  .pill { font-size: 14px; padding: 4px 12px 5px; }
}
@media (max-width: 360px) {
  .ticket .t-lbl { display: none; }
}

/* Mouvement réduit : tout s'affiche directement (gardé en dernier, après les apparitions). */
@media (prefers-reduced-motion: reduce) {
  .js .rv-t, .js .rv-l, .js .rv-r, .js .rv-pop, .js .rv-flip, .js .flapers .rv-pop:nth-child(even):not(.in) { opacity: 1; transform: none; filter: none; }
  .js .step:not(.in) .n { transform: none; }
  .progress .rider, .flap-score { display: none; }
}
