/* Fanix Studio — feuille de style unique, sans dépendance */
:root {
  --bg: #15132b;
  --bg-2: #1b1838;
  --surface: #211d42;
  --surface-2: #2a2552;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f5f3ff;
  --muted: #bdb8dc;
  --fire-1: #ffd465;
  --fire-2: #fd9d34;
  --fire-3: #f0602f;
  --fire-4: #d3303a;
  --fire: linear-gradient(120deg, var(--fire-1) 0%, var(--fire-2) 35%, var(--fire-3) 70%, var(--fire-4) 100%);
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
  --wrap: 1140px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "Segoe UI Variable Display", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}

/* Langue : le contenu des deux langues est dans le HTML, on masque l'autre */
html[lang="fr"] [data-l="en"],
html:not([lang="fr"]) [data-l="fr"] { display: none !important; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--fire-2); text-underline-offset: 3px; }
a:hover { color: var(--fire-1); }
:focus-visible { outline: 3px solid var(--fire-1); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; margin: 0 0 0.6em; letter-spacing: 0.005em; }
h2 { font-size: clamp(1.8rem, 1.2rem + 2.2vw, 2.6rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul { padding-left: 1.2em; }

.wrap { width: min(100% - 32px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--fire-2); color: #1a1020; padding: 10px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.skip:focus { top: 12px; }
.grad-text { background: var(--fire); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(21, 19, 43, 0.82);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-in { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: 0.04em; }
.brand img { width: 36px; height: 37px; }
.brand span small { color: var(--fire-2); font-weight: 500; letter-spacing: 0.18em; font-size: 0.72em; margin-left: 4px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { color: var(--muted); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-size: 0.95rem; }
.nav a:hover { color: var(--text); background: var(--surface); }
.lang-btn, .menu-btn {
  font: inherit; font-size: 0.9rem; font-weight: 700; letter-spacing: 0.06em;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: 7px 14px; cursor: pointer; min-height: 40px;
}
.lang-btn:hover, .menu-btn:hover { border-color: rgba(253, 157, 52, 0.6); }
.lang-btn .on { color: var(--fire-2); }
.lang-btn .off { color: var(--muted); font-weight: 500; }
.lang-btn, .menu-btn { white-space: nowrap; }
.menu-btn { display: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }

@media (max-width: 760px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .nav {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    padding: 8px 16px 16px; display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px; font-size: 1rem; }
  .header-actions { margin-left: auto; }
}
@media (max-width: 420px) {
  .header-in { gap: 10px; }
  .brand { font-size: 1.02rem; gap: 8px; }
  .brand img { width: 32px; height: 33px; }
  .lang-btn, .menu-btn { padding: 7px 11px; }
  .menu-btn .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 10px 20px; border-radius: 999px;
  font-weight: 700; font-size: 0.98rem; text-decoration: none; line-height: 1.2;
  border: 1px solid transparent; transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
.btn-fire { background: var(--fire); color: #1b0f14; box-shadow: 0 10px 30px -12px rgba(240, 96, 47, 0.8); }
.btn-fire:hover { color: #1b0f14; transform: translateY(-2px); box-shadow: 0 14px 34px -12px rgba(240, 96, 47, 0.95); }
.btn-ghost { color: var(--text); border-color: rgba(255, 255, 255, 0.22); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { color: var(--text); border-color: var(--fire-2); transform: translateY(-2px); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }
.btn svg { width: 18px; height: 18px; flex: none; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
  background: rgba(253, 157, 52, 0.12); color: var(--fire-1); border: 1px solid rgba(253, 157, 52, 0.35);
}
.badge.soon { background: rgba(255, 255, 255, 0.06); color: var(--muted); border-color: var(--line); }
.badge-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--fire-2); }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(56px, 10vw, 120px) 0 clamp(56px, 8vw, 100px); overflow: hidden; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; z-index: -1; inset: -20% -10% auto;
  height: 120%;
  background:
    radial-gradient(40% 50% at 22% 40%, rgba(240, 96, 47, 0.22), transparent 70%),
    radial-gradient(35% 45% at 80% 20%, rgba(255, 212, 101, 0.10), transparent 70%);
}
.hero-in { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
.eyebrow { font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; font-size: 0.8rem; color: var(--fire-2); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.2rem, 1.3rem + 4vw, 4rem); margin-bottom: 0.4em; }
.hero .lead { font-size: clamp(1.05rem, 1rem + 0.4vw, 1.25rem); color: var(--muted); max-width: 36em; margin-bottom: 1.8em; }
.hero-logo { position: relative; justify-self: center; width: min(360px, 80vw); }
.hero-logo::before {
  content: ""; position: absolute; inset: 8% 8% 4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(253, 157, 52, 0.38), rgba(240, 96, 47, 0.12) 60%, transparent);
  filter: blur(8px); z-index: -1;
}
.hero-logo img { width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 28px 0 0; }
.chips li { font-size: 0.88rem; color: var(--muted); border: 1px solid var(--line); background: rgba(255, 255, 255, 0.03); padding: 5px 12px; border-radius: 999px; }

@media (max-width: 860px) {
  .hero-in { grid-template-columns: 1fr; text-align: left; }
  .hero-logo { order: -1; width: min(200px, 52vw); justify-self: start; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section.alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head p { color: var(--muted); font-size: 1.08rem; }

/* Projet vedette */
.feature {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; box-shadow: var(--shadow); margin-bottom: 28px;
}
.feature-body { padding: clamp(24px, 4vw, 44px); }
.feature-media { position: relative; background: #eef0fb; min-height: 320px; }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; }
.feature.game .feature-media { background: #0d0c1c; }
.feature.game .feature-media img { object-position: center; }
.app-title { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.app-title img { width: 56px; height: 56px; border-radius: 14px; flex: none; }
.app-title h3 { margin: 0; font-size: 1.6rem; }
.app-title p { margin: 0; color: var(--muted); font-size: 0.95rem; }
.feature-body > p { color: var(--muted); }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 0.5em; width: 14px; height: 8px;
  border-left: 3px solid var(--fire-2); border-bottom: 3px solid var(--fire-2);
  transform: rotate(-45deg); border-radius: 1px;
}
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.note { font-size: 0.88rem; color: var(--muted); margin-top: 16px; margin-bottom: 0; }

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; }
  .feature-media { order: -1; min-height: 0; aspect-ratio: 16 / 10; }
}

/* Grille de cartes */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 22px; }
.card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(253, 157, 52, 0.4); box-shadow: var(--shadow); }
.card-media { aspect-ratio: 16 / 9; background: #0d0c1c; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { color: var(--muted); margin: 0; font-size: 0.98rem; }
.card-links { margin-top: auto; padding-top: 8px; display: flex; flex-wrap: wrap; gap: 10px 18px; }
.card-links a { font-weight: 700; text-decoration: none; font-size: 0.95rem; }
.card-links a:hover { text-decoration: underline; }
.subhead { margin: 56px 0 20px; font-size: 1.5rem; }

/* Services */
.services { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 18px; margin-bottom: 32px; }
.service { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 22px; }
.service svg { width: 34px; height: 34px; margin-bottom: 12px; }
.service h3 { font-size: 1.1rem; margin-bottom: 6px; }
.service p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* À propos */
.about { display: grid; grid-template-columns: 160px 1fr; gap: 36px; align-items: start; max-width: 880px; }
.about img { width: 160px; height: 160px; border-radius: 28px; border: 1px solid var(--line); }
.about p { color: var(--muted); }
.about p strong { color: var(--text); }
@media (max-width: 640px) {
  .about { grid-template-columns: 1fr; gap: 20px; }
  .about img { width: 96px; height: 96px; border-radius: 20px; }
}

/* Contact */
.contact-box {
  position: relative; overflow: hidden; isolation: isolate;
  border-radius: calc(var(--radius) + 6px); padding: clamp(28px, 6vw, 64px);
  background: var(--surface); border: 1px solid rgba(253, 157, 52, 0.3); text-align: center;
}
.contact-box::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(60% 80% at 50% 0%, rgba(240, 96, 47, 0.22), transparent 70%);
}
.contact-box p { color: var(--muted); max-width: 560px; margin-inline: auto; }
.contact-box .btn-row { justify-content: center; margin-top: 24px; }
.mail { font-size: clamp(1.15rem, 1rem + 1.2vw, 1.6rem); font-weight: 700; word-break: break-word; }

/* ---------- Pied de page ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--muted); font-size: 0.93rem; }
.footer-in { display: flex; flex-wrap: wrap; gap: 20px 40px; justify-content: space-between; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; list-style: none; padding: 0; margin: 0; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.site-footer p { margin: 0; }

/* ---------- Pages légales ---------- */
.legal { padding: clamp(40px, 7vw, 80px) 0; }
.legal .wrap { max-width: 780px; }
.legal h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 2.8rem); }
.legal h2 { font-size: 1.35rem; margin-top: 2em; }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); }
.legal dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 18px; margin: 0 0 1em; }
.legal dt { color: var(--text); font-weight: 600; }
.legal dd { margin: 0; color: var(--muted); }
@media (max-width: 560px) { .legal dl { grid-template-columns: 1fr; } .legal dd { margin-bottom: 8px; } }
.placeholder { background: rgba(255, 212, 101, 0.15); color: var(--fire-1); border: 1px dashed var(--fire-1); padding: 1px 8px; border-radius: 6px; font-weight: 700; }
.updated { font-size: 0.9rem; }
.back { display: inline-block; margin-bottom: 24px; text-decoration: none; font-weight: 700; }

/* ---------- Animations ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.7s ease, transform 0.7s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}
