/* =========================================================
   Fun For All · Devwa Studio
   Deux univers : Enfants (chaud, pastel) / Casual (nuit, néon)
   ========================================================= */

:root {
  --ink: #1e1b3a;
  --ink-soft: #4a4670;
  --muted: #6e6a91;
  --bg: #fbf9ff;
  --surface: #ffffff;
  --line: rgba(30, 27, 58, 0.09);

  /* Enfants */
  --sun: #ffb547;
  --coral: #ff6b8b;
  --mint: #2fcfa9;
  --kids-grad: linear-gradient(135deg, #ffb547 0%, #ff6b8b 100%);
  --kids-soft: linear-gradient(140deg, #fff3da 0%, #ffe3ea 60%, #e4fbf4 100%);

  /* Casual */
  --violet: #6c4cf5;
  --cyan: #22d3ee;
  --night: #15112e;
  --play-grad: linear-gradient(135deg, #6c4cf5 0%, #22d3ee 100%);

  --brand-grad: linear-gradient(110deg, #ffb547 0%, #ff6b8b 40%, #6c4cf5 100%);

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(40, 30, 90, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(40, 30, 90, 0.3);

  --f-head: 'Fredoka', system-ui, sans-serif;
  --f-body: 'Nunito', system-ui, sans-serif;

  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

[dir='rtl'] {
  --f-head: 'Baloo Bhaijaan 2', 'Fredoka', system-ui, sans-serif;
  --f-body: 'Baloo Bhaijaan 2', 'Nunito', system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3 { font-family: var(--f-head); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -0.01em; }
[dir='rtl'] h1, [dir='rtl'] h2, [dir='rtl'] h3 { letter-spacing: 0; line-height: 1.35; }
p { margin: 0; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }

.skip { position: absolute; inset-inline-start: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; border-radius: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.85em 1.5em; border-radius: 999px;
  font-family: var(--f-head); font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn--sm { padding: 0.6em 1.1em; font-size: 0.9rem; }
.btn--kids { background: var(--kids-grad); color: #fff; box-shadow: 0 12px 24px -10px rgba(255, 107, 139, 0.7); }
.btn--play { background: var(--night); color: #fff; box-shadow: 0 12px 24px -10px rgba(108, 76, 245, 0.7); }
.btn--play::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); }
.btn--light { background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.btn--glow { background: var(--play-grad); color: #fff; box-shadow: 0 0 0 1px rgba(255,255,255,.15) inset, 0 12px 30px -8px rgba(34, 211, 238, 0.55); }
.btn--dark { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--ink); box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
.btn--ghost { background: rgba(30, 27, 58, 0.06); color: var(--ink); }
.btn--ghost:hover { background: rgba(30, 27, 58, 0.1); }
.btn--play-store { background: var(--ink); color: #fff; }
.count { opacity: 0.7; font-weight: 500; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50; height: var(--header-h);
  background: rgba(251, 249, 255, 0.7);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, box-shadow 0.3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 6px 24px -18px rgba(30, 27, 58, 0.4); }
.header__inner { height: 100%; display: flex; align-items: center; gap: 24px; }

.brand { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand__mark img { width: 44px; height: 44px; display: block; transition: transform 0.4s var(--ease); }
.brand:hover .brand__mark img { transform: rotate(-8deg) scale(1.06); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text strong { font-family: var(--f-head); font-size: 1.2rem; font-weight: 700; }
.brand__text small { font-size: 0.72rem; color: var(--muted); font-weight: 700; letter-spacing: 0.04em; direction: ltr; }
[dir='rtl'] .brand__text small { text-align: end; }

.nav { display: flex; gap: 6px; margin-inline-start: auto; }
.nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; color: var(--ink-soft); transition: background 0.2s, color 0.2s; }
.nav a:hover { background: rgba(108, 76, 245, 0.08); color: var(--violet); }

.header__actions { display: flex; align-items: center; gap: 10px; }
.lang { display: flex; background: rgba(30, 27, 58, 0.06); border-radius: 999px; padding: 4px; }
.lang button { min-width: 38px; height: 32px; border-radius: 999px; font-weight: 800; font-size: 0.82rem; color: var(--ink-soft); transition: background 0.2s, color 0.2s; }
.lang button[data-lang='ar'] { font-family: 'Baloo Bhaijaan 2', sans-serif; font-size: 1rem; }
.lang button[aria-pressed='true'] { background: #fff; color: var(--ink); box-shadow: 0 2px 8px -2px rgba(30, 27, 58, 0.25); }

.burger { display: none; width: 42px; height: 42px; border-radius: 12px; background: rgba(30, 27, 58, 0.06); position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2.5px; border-radius: 2px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.burger span:nth-child(1) { top: 13px; }
.burger span:nth-child(2) { top: 20px; }
.burger span:nth-child(3) { top: 27px; }
.menu-open .burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-open .burger span:nth-child(2) { opacity: 0; }
.menu-open .burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(40px, 7vw, 96px) 0 clamp(56px, 8vw, 110px); }
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.55; animation: drift 18s ease-in-out infinite alternate; }
.blob--1 { width: 460px; height: 460px; background: #ffd27a; top: -120px; inset-inline-start: -120px; }
.blob--2 { width: 420px; height: 420px; background: #ff9db3; top: 30%; inset-inline-start: 30%; animation-delay: -6s; opacity: 0.35; }
.blob--3 { width: 520px; height: 520px; background: #a99bff; bottom: -200px; inset-inline-end: -120px; animation-delay: -12s; }
@keyframes drift { to { transform: translate(40px, 30px) scale(1.08); } }

.hero__inner { display: grid; grid-template-columns: 1.1fr 1fr; align-items: center; gap: clamp(32px, 5vw, 72px); }

.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 10px;
  background: rgba(255, 255, 255, 0.8); border: 1px solid var(--line); border-radius: 999px;
  font-size: 0.85rem; font-weight: 800; color: var(--ink-soft); box-shadow: var(--shadow);
}
.pill__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 4px rgba(47, 207, 169, 0.2); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(47, 207, 169, 0); } }

.hero h1 { font-size: clamp(2.2rem, 5.2vw, 4rem); font-weight: 700; margin: 20px 0 18px; }
.hero h1 span { display: block; }
.grad { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.22rem); color: var(--ink-soft); max-width: 34em; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.stats { list-style: none; padding: 0; margin: 40px 0 0; display: flex; gap: clamp(20px, 4vw, 44px); }
.stats li { display: flex; flex-direction: column; }
.stats strong { font-family: var(--f-head); font-size: clamp(1.7rem, 3vw, 2.2rem); font-weight: 700; line-height: 1; }
.stats span { font-size: 0.9rem; color: var(--muted); font-weight: 700; margin-top: 4px; }

/* Orbite d'icônes */
@property --spin { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.hero__visual { display: grid; place-items: center; }
.orbit { --r: min(200px, 34vw); position: relative; width: calc(var(--r) * 2 + 110px); aspect-ratio: 1; max-width: 100%; }
.orbit::before,
.orbit::after { content: ''; position: absolute; border-radius: 50%; inset: 55px; border: 2px dashed rgba(108, 76, 245, 0.2); }
.orbit::after { inset: calc(55px + var(--r) * 0.42); border: 0; background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 70%); }
.orbit__core {
  position: absolute; top: 50%; left: 50%; z-index: 2; translate: -50% -50%;
  width: calc(var(--r) * 0.72); aspect-ratio: 1; border-radius: 20%; overflow: hidden;
  box-shadow: 0 30px 60px -18px rgba(255, 107, 139, 0.55), 0 0 0 8px rgba(255, 255, 255, 0.85);
  animation: bob 6s ease-in-out infinite;
}
.orbit__core img { width: 100%; height: 100%; object-fit: cover; }
.orbit__item {
  position: absolute; top: 50%; left: 50%; z-index: 3;
  width: clamp(54px, 9vw, 80px); aspect-ratio: 1;
  transform: translate(-50%, -50%) rotate(calc(var(--angle) + var(--spin))) translateY(calc(var(--r) * -1)) rotate(calc((var(--angle) + var(--spin)) * -1));
  animation: orbit 60s linear infinite;
}
.orbit__item img { width: 100%; height: 100%; border-radius: 26%; background: #fff; box-shadow: 0 14px 28px -10px rgba(30, 27, 58, 0.45); animation: bob 5s ease-in-out infinite; animation-delay: var(--delay); }
.orbit__item--adult img { box-shadow: 0 14px 28px -10px rgba(108, 76, 245, 0.7), 0 0 0 3px rgba(34, 211, 238, 0.35); }
.orbit__item--kids img { box-shadow: 0 14px 28px -10px rgba(255, 107, 139, 0.6), 0 0 0 3px rgba(255, 181, 71, 0.4); }
@keyframes orbit { to { --spin: 360deg; } }
@keyframes bob { 50% { transform: translateY(-8px); } }
.orbit__core { animation-name: bobCore; }
@keyframes bobCore { 50% { translate: -50% calc(-50% - 8px); } }

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.section--tint { background: linear-gradient(180deg, #f3efff 0%, #fff6ef 100%); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto clamp(36px, 5vw, 56px); }
.section__head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); font-weight: 700; }
.section__head p { color: var(--muted); margin-top: 12px; font-size: 1.08rem; }
.eyebrow { display: inline-block; font-weight: 800; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 12px; background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
[dir='rtl'] .eyebrow { letter-spacing: 0; font-size: 1rem; }
.eyebrow--light { background: none; color: rgba(255, 255, 255, 0.85); -webkit-text-fill-color: currentColor; }

/* ---------- Univers ---------- */
.universes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.uni {
  position: relative; overflow: hidden; border-radius: 32px; padding: clamp(28px, 4vw, 44px);
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px; min-height: 380px;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.uni:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.uni h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 700; }
.uni p { max-width: 30em; }
.uni .btn { margin-top: auto; }
.uni__deco { position: absolute; inset-inline-end: -10px; top: 14px; font-size: 3.4rem; letter-spacing: 0.2em; opacity: 0.22; transform: rotate(-8deg); pointer-events: none; white-space: nowrap; }
.uni__tag { font-weight: 800; font-size: 0.82rem; padding: 6px 12px; border-radius: 999px; }
.uni__icons { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.uni__icons img { width: 52px; height: 52px; border-radius: 16px; transition: transform 0.3s var(--ease); }
.uni__icons img:hover { transform: translateY(-4px) rotate(-4deg); }

.uni--kids { background: var(--kids-soft); color: var(--ink); }
.uni--kids::before { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 181, 71, 0.45), transparent 70%); bottom: -80px; inset-inline-end: -60px; }
.uni--kids .uni__tag { background: #fff; color: var(--coral); }
.uni--kids p { color: var(--ink-soft); }
.uni--kids .uni__icons img { box-shadow: 0 8px 18px -8px rgba(255, 107, 139, 0.6); background: #fff; }

.uni--play { background: var(--night); color: #fff; }
.uni--play::before { content: ''; position: absolute; inset: 0; background: radial-gradient(500px 300px at 90% 110%, rgba(108, 76, 245, 0.55), transparent 70%), radial-gradient(400px 260px at 0% 0%, rgba(34, 211, 238, 0.25), transparent 70%); pointer-events: none; }
.uni--play::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 34px 34px; mask-image: linear-gradient(180deg, transparent, #000 60%); -webkit-mask-image: linear-gradient(180deg, transparent, #000 60%); pointer-events: none; }
.uni > * { position: relative; z-index: 1; }
.uni .uni__deco { position: absolute; z-index: 0; }
.uni--play .uni__tag { background: rgba(34, 211, 238, 0.14); color: var(--cyan); border: 1px solid rgba(34, 211, 238, 0.35); }
.uni--play p { color: rgba(255, 255, 255, 0.75); }
.uni--play .uni__icons img { box-shadow: 0 0 0 2px rgba(255,255,255,.12), 0 10px 24px -8px rgba(34, 211, 238, 0.5); }

/* ---------- Filtres ---------- */
.filters { position: relative; display: flex; width: max-content; max-width: 100%; margin: 0 auto 36px; padding: 6px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); overflow-x: auto; scrollbar-width: none; }
.filters::-webkit-scrollbar { display: none; }
.filters button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-weight: 800; color: var(--ink-soft); white-space: nowrap; transition: color 0.3s; }
.filters button.is-active { color: #fff; }
.filters__glider { position: absolute; top: 6px; bottom: 6px; left: 0; border-radius: 999px; background: var(--ink); transition: transform 0.45s var(--ease), width 0.45s var(--ease), background 0.45s; }
.filters:has([data-filter='kids'].is-active) .filters__glider { background: var(--kids-grad); }
.filters:has([data-filter='adult'].is-active) .filters__glider { background: var(--play-grad); }

/* ---------- Cartes jeux ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 22px; }
.grid__msg { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 40px 0; }

.card {
  position: relative; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  animation: cardIn 0.6s var(--ease) both; animation-delay: calc(var(--i, 0) * 60ms);
  overflow: hidden;
}
.card::before { content: ''; position: absolute; inset: 0 0 auto; height: 5px; }
.card--kids::before { background: var(--kids-grad); }
.card--adult::before { background: var(--play-grad); }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(0.98); } }

.card__main { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: start; }
.card__icon { width: 72px; height: 72px; border-radius: 20px; box-shadow: 0 10px 20px -10px rgba(30, 27, 58, 0.5); transition: transform 0.4s var(--ease); }
.card:hover .card__icon { transform: rotate(-6deg) scale(1.06); }
.card__title { font-size: 1.22rem; font-weight: 600; }
.card__summary { color: var(--muted); font-size: 0.95rem; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card__actions { display: flex; gap: 8px; margin-top: auto; }
.card__actions .btn { flex: 1; }

.ribbon { position: absolute; top: 18px; inset-inline-end: 18px; padding: 4px 12px; border-radius: 999px; font-size: 0.75rem; font-weight: 800; color: #fff; background: var(--coral); box-shadow: 0 6px 14px -6px var(--coral); animation: pop 2.4s ease-in-out infinite; }
.card--adult .ribbon { background: var(--violet); box-shadow: 0 6px 14px -6px var(--violet); }
@keyframes pop { 50% { transform: scale(1.08); } }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 0.76rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(30, 27, 58, 0.06); color: var(--ink-soft); }
.chip--kids { background: #fff0e0; color: #d9661f; }
.chip--adult { background: #ece8ff; color: var(--violet); }

.card--skeleton { min-height: 280px; background: linear-gradient(100deg, #fff 30%, #f3f0fb 50%, #fff 70%) 0 0 / 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Bientôt */
.soon {
  margin-top: 40px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
  padding: 24px 28px; border-radius: var(--radius); background: rgba(255, 255, 255, 0.7);
  border: 2px dashed rgba(108, 76, 245, 0.3);
}
.soon > div { flex: 1 1 280px; }
.soon h3 { font-size: 1.25rem; }
.soon p { color: var(--muted); margin-top: 4px; }
.soon > .soon__icon { flex: 0 0 64px; }
.soon__icon { font-size: 2.2rem; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: var(--brand-grad); box-shadow: var(--shadow); animation: bob 3s ease-in-out infinite; }

/* ---------- Pourquoi nous ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature { padding: 28px 24px; border-radius: var(--radius); border: 1px solid var(--line); transition: transform 0.35s var(--ease); }
.feature:hover { transform: translateY(-4px); }
.feature--kids { background: linear-gradient(160deg, #fff7ea, #fff); }
.feature--play { background: linear-gradient(160deg, #f0edff, #fff); }
.feature__ico { display: grid; place-items: center; width: 54px; height: 54px; font-size: 1.6rem; border-radius: 16px; margin-bottom: 18px; background: #fff; box-shadow: var(--shadow); }
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.97rem; }

/* ---------- Contact ---------- */
#contact { padding-top: 0; }
.contact {
  position: relative; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  padding: clamp(32px, 5vw, 60px); border-radius: 36px; color: #fff;
  background: var(--brand-grad); box-shadow: 0 40px 80px -30px rgba(108, 76, 245, 0.6);
}
.contact::before { content: ''; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255, 255, 255, 0.12); top: -160px; inset-inline-end: -80px; }
.contact > * { position: relative; }
.contact__text { flex: 1 1 360px; }
.contact h2 { font-size: clamp(2rem, 4vw, 2.8rem); font-weight: 700; }
.contact p { opacity: 0.9; margin-top: 10px; max-width: 32em; }
.contact__actions { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.playbadge img { width: 200px; height: auto; transition: transform 0.25s var(--ease); }
.playbadge:hover img { transform: scale(1.04); }

/* ---------- Confidentialité ---------- */
.section--privacy { padding-top: clamp(48px, 7vw, 88px); }
.privacy { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.pcard {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px 14px 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px;
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.3s;
}
[dir='rtl'] .pcard { padding: 14px 14px 14px 18px; }
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: rgba(108, 76, 245, 0.25); }
.pcard__icons { display: flex; flex-shrink: 0; }
.pcard__icons img { width: 44px; height: 44px; border-radius: 13px; box-shadow: 0 0 0 3px var(--surface); background: #fff; }
.pcard__icons img + img { margin-inline-start: -14px; }
.pcard__ph { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-family: var(--f-head); font-weight: 700; font-size: 1.3rem; color: #fff; background: var(--play-grad); }
.pcard__body { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.pcard__body strong { font-family: var(--f-head); font-weight: 600; font-size: 1.02rem; overflow-wrap: anywhere; }
.pcard__status { font-size: 0.8rem; font-weight: 800; color: var(--mint); }
.pcard--soon .pcard__status { color: var(--muted); }
.pcard--soon .pcard__ph { background: linear-gradient(135deg, #c9c3e6, #a99bff); }
.pcard__arrow { color: var(--muted); font-size: 1.1rem; transition: transform 0.3s var(--ease), color 0.3s; }
[dir='rtl'] .pcard__arrow { transform: scaleX(-1); }
.pcard:hover .pcard__arrow { color: var(--violet); transform: translateX(3px); }
[dir='rtl'] .pcard:hover .pcard__arrow { transform: scaleX(-1) translateX(3px); }

/* ---------- Footer ---------- */
.footer { padding: 32px 0 40px; color: var(--muted); font-size: 0.92rem; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 28px; }
.footer nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer a:hover { color: var(--violet); }

/* ---------- Modale ---------- */
.modal {
  width: min(780px, 100% - 32px); max-height: min(90vh, 900px); padding: 32px;
  border: 0; border-radius: 30px; background: var(--surface); color: var(--ink);
  box-shadow: var(--shadow-lg); overflow-y: auto; overscroll-behavior: contain;
}
.modal[open] { animation: modalIn 0.45s var(--ease); }
.modal::backdrop { background: rgba(21, 17, 46, 0.55); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(0.97); } }
.modal--kids { border-top: 6px solid var(--coral); }
.modal--adult { border-top: 6px solid var(--violet); }
.modal__close { position: sticky; top: 0; float: inline-end; width: 40px; height: 40px; border-radius: 50%; background: rgba(30, 27, 58, 0.07); font-size: 1rem; margin: -12px -12px 0 0; z-index: 2; }
[dir='rtl'] .modal__close { margin: -12px 0 0 -12px; }
.modal__close:hover { background: rgba(30, 27, 58, 0.14); }
.modal__head { display: flex; align-items: center; gap: 18px; margin-bottom: 22px; }
.modal__head img { width: 88px; height: 88px; border-radius: 24px; box-shadow: var(--shadow); flex-shrink: 0; }
.modal__head h3 { font-size: clamp(1.4rem, 3vw, 1.8rem); margin-bottom: 8px; }
.shots { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 10px; margin: 0 -32px 20px; padding-inline: 32px; scroll-padding-inline: 32px; }
.shots img { height: 300px; width: auto; border-radius: 16px; scroll-snap-align: start; flex-shrink: 0; background: #f3f0fb; box-shadow: 0 8px 20px -10px rgba(30, 27, 58, 0.4); }
.shots:empty { display: none; }
.modal__desc { white-space: pre-line; color: var(--ink-soft); font-size: 0.98rem; }
.modal__desc.is-clamped { max-height: 9.6em; overflow: hidden; mask-image: linear-gradient(180deg, #000 60%, transparent); -webkit-mask-image: linear-gradient(180deg, #000 60%, transparent); }
.linkbtn { display: block; color: var(--violet); font-weight: 800; margin-top: 8px; }
.linkbtn[hidden] { display: none; }
.playbadge--modal { display: block; width: fit-content; margin-top: 18px; }
.playbadge--modal img { width: 180px; }

/* ---------- Apparition ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .features { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 880px) {
  :root { --header-h: 64px; }
  .burger { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; gap: 4px;
    padding: 16px; margin: 0; background: rgba(251, 249, 255, 0.97);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px -20px rgba(30, 27, 58, 0.3);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: transform 0.3s var(--ease), opacity 0.3s, visibility 0.3s;
  }
  .nav a { padding: 14px 16px; font-size: 1.1rem; }
  .menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .header__actions { margin-inline-start: auto; }

  .hero__inner { grid-template-columns: 1fr; text-align: center; }
  .hero__text { display: flex; flex-direction: column; align-items: center; }
  .hero__lead { margin-inline: auto; }
  .hero__cta, .stats { justify-content: center; }
  .hero__visual { order: -1; }
  .orbit { --r: min(130px, 30vw); }

  .universes { grid-template-columns: 1fr; }
  .uni { min-height: 0; }
}

@media (max-width: 560px) {
  body { font-size: 1rem; }
  .brand__text small { display: none; }
  .lang button { min-width: 34px; }
  .hero__cta { flex-direction: column; width: 100%; }
  .hero__cta .btn { width: 100%; }
  .stats { gap: 18px; width: 100%; justify-content: space-around; }
  .features { grid-template-columns: 1fr; }
  .uni__deco { font-size: 2.4rem; }
  .soon { padding: 22px; }
  .soon .btn { width: 100%; }
  .contact__actions, .contact__actions .btn { width: 100%; }
  .footer__inner { flex-direction: column; text-align: center; }

  .modal { width: 100%; max-width: 100%; max-height: 92vh; margin: auto 0 0; border-radius: 26px 26px 0 0; padding: 24px 20px; }
  .modal[open] { animation-name: sheetIn; }
  @keyframes sheetIn { from { transform: translateY(100%); } }
  .modal__head img { width: 68px; height: 68px; border-radius: 18px; }
  .shots { margin-inline: -20px; padding-inline: 20px; scroll-padding-inline: 20px; }
  .shots img { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
