/* =========================================================
   ZYLANDIIR STUDIO — by Meta Nevers
   ========================================================= */

/* Polices hébergées sur le site (aucun appel à Google Fonts) — licence SIL Open Font License.
   Cinzel et Exo 2 sont des polices variables : un seul fichier couvre toutes les graisses. */
@font-face { font-family: "Cinzel"; font-style: normal; font-weight: 400 900; font-display: swap; src: url("assets/fonts/cinzel.woff2") format("woff2"); }
@font-face { font-family: "Cinzel Decorative"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/cinzel-decorative-700.woff2") format("woff2"); }
@font-face { font-family: "Cinzel Decorative"; font-style: normal; font-weight: 900; font-display: swap; src: url("assets/fonts/cinzel-decorative-900.woff2") format("woff2"); }
@font-face { font-family: "Exo 2"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/exo2.woff2") format("woff2"); }

:root {
  --bg: #05040d;
  --bg-2: #0a0820;
  --panel: rgba(18, 16, 48, 0.55);
  --border: rgba(140, 150, 255, 0.16);
  --text: #d4d6ee;
  --muted: #8b8db0;
  --silver: #eef0ff;
  --blue: #3d7bff;
  --cyan: #5ee7ff;
  --violet: #9b5cff;
  --pink: #e879f9;
  --life: #4ade80;
  --teal: #2dd4bf;
  --gold: #fbbf24;
  --grad: linear-gradient(120deg, var(--cyan), var(--blue) 35%, var(--violet) 70%, var(--pink));
  --grad-life: linear-gradient(120deg, var(--life), var(--teal) 50%, var(--gold));
  /* versions « en boucle » (début = fin) pour les dégradés animés */
  --grad-loop: linear-gradient(90deg, var(--cyan), var(--blue), var(--violet), var(--pink), var(--violet), var(--blue), var(--cyan));
  --grad-life-loop: linear-gradient(90deg, var(--life), var(--teal), var(--gold), var(--teal), var(--life));
  --font-title: "Cinzel", serif;
  --font-deco: "Cinzel Decorative", "Cinzel", serif;
  --font-body: "Exo 2", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body:not(.loaded) { overflow: hidden; }

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

::selection { background: var(--violet); color: #fff; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--blue), var(--violet)); border-radius: 10px; }

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

/* ================= LOADER ================= */
#loader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-content: center; justify-items: center; gap: 28px;
  background: radial-gradient(circle at 50% 45%, #14103a 0%, var(--bg) 60%);
  transition: opacity .8s var(--ease), visibility .8s;
}
.loaded #loader { opacity: 0; visibility: hidden; }
.loader-logo { width: min(420px, 75vw); animation: loaderPulse 2s ease-in-out infinite; }
.loader-logo img { filter: drop-shadow(0 0 25px rgba(94, 140, 255, .55)); }
.loader-bar { width: 220px; height: 3px; background: rgba(255,255,255,.08); border-radius: 3px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 40%; background: var(--grad); border-radius: 3px; animation: loaderBar 1.2s var(--ease) infinite; }
.loader-text { font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }

@keyframes loaderPulse { 50% { transform: scale(1.03); filter: brightness(1.2); } }
@keyframes loaderBar { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }

/* ================= CURSOR GLOW ================= */
.cursor-glow {
  position: fixed; top: 0; left: 0; z-index: 1; pointer-events: none;
  width: 500px; height: 500px; margin: -250px 0 0 -250px; border-radius: 50%;
  background: radial-gradient(circle, rgba(110, 90, 255, .13), transparent 65%);
  transform: translate(var(--x, -999px), var(--y, -999px));
  transition: opacity .3s;
}
@media (hover: none) { .cursor-glow { display: none; } }

/* ================= NAV ================= */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px clamp(20px, 4vw, 48px);
  transition: background .4s, padding .4s, border-color .4s, transform .4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(6, 5, 18, .72);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  padding-block: 10px;
  border-color: var(--border);
}
.nav-logo img { height: 44px; width: auto; transition: height .4s, filter .3s; }
.nav.scrolled .nav-logo img { height: 36px; }
.nav-logo:hover img { filter: drop-shadow(0 0 12px rgba(120, 140, 255, .7)); }

.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  position: relative; font-size: 14px; font-weight: 500;
  letter-spacing: .14em; text-transform: uppercase; color: var(--muted);
  transition: color .3s;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -6px; height: 2px; width: 100%;
  background: var(--grad); transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--silver); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-links .nav-cta {
  padding: 9px 20px; border: 1px solid rgba(155, 92, 255, .5); border-radius: 40px; color: var(--silver);
}
.nav-links .nav-cta::after { display: none; }
.nav-links .nav-cta:hover { background: rgba(155, 92, 255, .2); box-shadow: 0 0 20px rgba(155, 92, 255, .4); }

.burger { display: none; background: none; border: 0; cursor: pointer; width: 34px; height: 26px; position: relative; z-index: 2; }
.burger span { position: absolute; left: 0; width: 100%; height: 2px; background: var(--silver); border-radius: 2px; transition: .35s var(--ease); }
.burger span:nth-child(1) { top: 2px; }
.burger span:nth-child(2) { top: 12px; }
.burger span:nth-child(3) { top: 22px; }
.burger.open span:nth-child(1) { top: 12px; transform: rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { top: 12px; transform: rotate(-45deg); }

/* ================= BUTTONS ================= */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  padding: 15px 34px; border-radius: 50px; overflow: hidden; isolation: isolate;
  font-family: var(--font-title); font-weight: 700; font-size: 15px; letter-spacing: .1em; text-transform: uppercase;
  transition: transform .3s var(--ease), box-shadow .3s;
}
.btn span { position: relative; z-index: 1; }
.btn::before {
  content: ""; position: absolute; top: 0; left: -120%; width: 60%; height: 100%; z-index: 1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease); pointer-events: none;
}
.btn:hover::before { left: 140%; }
.btn:hover { transform: translateY(-3px); }

.btn-primary { background: var(--grad-loop); background-size: 200% 100%; color: #fff; box-shadow: 0 8px 30px rgba(91, 90, 255, .4); animation: gradShift 6s linear infinite; }
.btn-primary:hover { box-shadow: 0 12px 44px rgba(130, 90, 255, .65); }
.btn-ghost { color: var(--silver); border: 1px solid rgba(200, 210, 255, .3); background: rgba(255,255,255,.03); backdrop-filter: blur(6px); }
.btn-ghost:hover { border-color: var(--cyan); box-shadow: 0 0 25px rgba(94, 231, 255, .3); }
.btn-life { background: var(--grad-life-loop); background-size: 200% 100%; color: #062018; box-shadow: 0 8px 30px rgba(45, 212, 191, .35); animation: gradShift 6s linear infinite; }
.btn-life:hover { box-shadow: 0 12px 44px rgba(74, 222, 128, .55); }
.btn-big { font-size: clamp(13px, 2.4vw, 18px); padding: 18px clamp(22px, 4vw, 44px); text-transform: none; letter-spacing: .04em; }

@keyframes gradShift { to { background-position: 200% 0; } }

/* ================= HERO ================= */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(ellipse at 50% 120%, #1a0f45 0%, transparent 60%), var(--bg);
}
#stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.nebula { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.nebula-1 { width: 55vw; height: 55vw; left: -15vw; top: -10vw; background: radial-gradient(circle, rgba(61, 123, 255, .45), transparent 65%); animation: drift 18s ease-in-out infinite alternate; }
.nebula-2 { width: 50vw; height: 50vw; right: -15vw; bottom: -15vw; background: radial-gradient(circle, rgba(200, 80, 255, .4), transparent 65%); animation: drift 22s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translate(8vw, 6vw) scale(1.15); } }

.hero-content { position: relative; z-index: 2; text-align: center; padding: 120px 20px 80px; width: 100%; }

.hero-logo-wrap {
  position: relative; width: min(900px, 92vw); margin: 0 auto;
  opacity: 0; transform: scale(.85) translateY(30px); filter: blur(12px);
  transition: opacity 1.4s var(--ease) .2s, transform 1.4s var(--ease) .2s, filter 1.4s var(--ease) .2s;
}
.loaded .hero-logo-wrap { opacity: 1; transform: none; filter: none; }
.hero-logo { width: 100%; filter: drop-shadow(0 0 40px rgba(80, 120, 255, .45)) drop-shadow(0 0 90px rgba(160, 80, 255, .25)); animation: float 6s ease-in-out infinite; }
.hero-logo-shine {
  position: absolute; inset: 0; pointer-events: none; animation: float 6s ease-in-out infinite;
  -webkit-mask: url("assets/logo.png") center / contain no-repeat; mask: url("assets/logo.png") center / contain no-repeat;
}
.hero-logo-shine::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.75) 50%, transparent 60%);
  background-size: 250% 100%; animation: shine 5s ease-in-out infinite 2s; background-position: 150% 0;
  mix-blend-mode: overlay;
}
@keyframes shine { 0% { background-position: 150% 0; } 35%, 100% { background-position: -50% 0; } }
@keyframes float { 50% { transform: translateY(-14px); } }

.hero-by {
  margin-top: 8px; font-family: var(--font-title); font-size: clamp(15px, 2vw, 20px);
  letter-spacing: .4em; text-transform: uppercase; color: var(--muted);
  opacity: 0; transform: translateY(20px); transition: 1s var(--ease) 1s;
}
.hero-by span { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.loaded .hero-by { opacity: 1; transform: none; }

.hero-tagline {
  margin-top: 28px; min-height: 1.4em;
  font-family: var(--font-body); font-weight: 300; font-size: clamp(20px, 3.2vw, 34px); color: var(--silver);
  opacity: 0; transition: opacity 1s 1.3s;
}
.loaded .hero-tagline { opacity: 1; }
.caret { color: var(--cyan); animation: blink 1s steps(1) infinite; margin-left: 2px; }
@keyframes blink { 50% { opacity: 0; } }

.hero-cta {
  margin-top: 42px; display: flex; gap: 18px; justify-content: center; flex-wrap: wrap;
  opacity: 0; transform: translateY(20px); transition: 1s var(--ease) 1.6s;
}
.loaded .hero-cta { opacity: 1; transform: none; }

.scroll-hint { position: absolute; bottom: 30px; left: 50%; transform: translateX(-50%); z-index: 2; opacity: .7; }
.mouse { display: block; width: 26px; height: 42px; border: 2px solid rgba(220, 225, 255, .5); border-radius: 14px; position: relative; }
.wheel { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--cyan); border-radius: 2px; animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateY(14px); } }

/* ================= MARQUEE ================= */
.marquee {
  position: relative; z-index: 2; overflow: hidden; padding: 22px 0;
  border-block: 1px solid var(--border);
  background: linear-gradient(90deg, rgba(61,123,255,.08), rgba(155,92,255,.1), rgba(61,123,255,.08));
  transform: rotate(-1.5deg) scale(1.03);
}
/* pas de « gap » : une marge après chaque élément garantit que les deux moitiés font exactement la même largeur */
.marquee-track { display: flex; width: max-content; animation: marquee var(--dur, 30s) linear infinite; will-change: transform; }
.marquee-group { display: flex; align-items: center; flex-shrink: 0; }
.marquee-group > * { margin-right: 40px; }
.marquee span {
  font-family: var(--font-deco); font-size: clamp(26px, 4vw, 44px); font-weight: 900; white-space: nowrap;
  color: transparent; -webkit-background-clip: text; background-clip: text;
}
.marquee .m-studio { -webkit-text-stroke: 1px rgba(210, 220, 255, .6); }
.marquee .m-life { background-image: linear-gradient(90deg, #4f7bff, #8b5cff, #e879f9); }
.marquee .m-tri { background-image: linear-gradient(90deg, #34d399, #f5c451, #f97316); }
.marquee i { font-style: normal; color: var(--violet); font-size: 24px; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ================= SECTIONS ================= */
.section { position: relative; z-index: 2; padding: clamp(90px, 13vw, 160px) 0; }

.section-head { max-width: 720px; margin-bottom: 70px; }
.section-head.center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px; margin-bottom: 18px;
  font-size: 13px; font-weight: 600; letter-spacing: .35em; text-transform: uppercase; color: var(--cyan);
}
.eyebrow span { font-family: var(--font-title); color: var(--muted); letter-spacing: .1em; }
.eyebrow span::after { content: ""; display: inline-block; width: 36px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }

.section-title {
  font-family: var(--font-title); font-weight: 900; line-height: 1.08;
  font-size: clamp(38px, 6vw, 72px); color: var(--silver);
}
.section-title em { font-style: normal; background: var(--grad-loop); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: gradShift 8s linear infinite; }
.section-lead { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); font-weight: 300; }
.section-lead strong { color: var(--silver); font-weight: 600; }

/* ---------- Studio ---------- */
.studio::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(120, 130, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 130, 255, .06) 1px, transparent 1px);
  background-size: 60px 60px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%); mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; position: relative; }

.pillar, .portal, .contact-card {
  --mx: 50%; --my: 50%;
  transition: transform .5s var(--ease), border-color .4s, box-shadow .4s, opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s);
  transform-style: preserve-3d; will-change: transform;
}
.pillar {
  position: relative; padding: 38px 32px; border-radius: 22px; overflow: hidden;
  background: var(--panel); border: 1px solid var(--border); backdrop-filter: blur(10px);
}
.pillar::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(130, 110, 255, .2), transparent 50%);
}
.pillar:hover { border-color: rgba(155, 92, 255, .5); box-shadow: 0 20px 60px rgba(60, 40, 160, .35); }
.pillar:hover::before { opacity: 1; }
.pillar-icon {
  width: 64px; height: 64px; display: grid; place-items: center; margin-bottom: 24px; border-radius: 18px;
  color: var(--cyan); background: linear-gradient(135deg, rgba(61,123,255,.2), rgba(155,92,255,.2)); border: 1px solid var(--border);
}
.pillar-icon svg { width: 34px; height: 34px; }
.pillar:hover .pillar-icon svg { animation: spin 6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.pillar h3 { font-family: var(--font-title); font-size: 24px; color: var(--silver); margin-bottom: 10px; }
.pillar p { color: var(--muted); font-size: 16px; }

.stats { display: grid; max-width: 420px; margin-inline: auto; margin-top: 80px; border: 1px solid var(--border); border-radius: 22px; background: var(--panel); overflow: hidden; }
.stat { padding: 36px 20px; text-align: center; }
.stat strong { display: block; font-family: var(--font-title); font-weight: 900; font-size: clamp(44px, 6vw, 68px); line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }

/* ---------- Portals ---------- */
.portals { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.portal {
  position: relative; display: flex; flex-direction: column; border-radius: 28px; overflow: hidden;
  border: 1px solid var(--border); background: var(--bg-2); min-height: 520px;
}
.portal::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(500px circle at var(--mx) var(--my), rgba(255,255,255,.08), transparent 45%);
}
.portal:hover::after { opacity: 1; }
.portal-tri:hover { border-color: rgba(94, 160, 255, .6); box-shadow: 0 30px 80px rgba(61, 100, 255, .35); }
.portal-life:hover { border-color: rgba(190, 110, 255, .55); box-shadow: 0 30px 80px rgba(150, 80, 255, .3); }

.portal-visual { position: relative; flex: 1; display: grid; place-items: center; overflow: hidden; min-height: 320px; }
.portal-tri .portal-visual { background: radial-gradient(circle at 35% 45%, rgba(40, 200, 120, .22), transparent 55%), radial-gradient(circle at 68% 45%, rgba(255, 110, 40, .2), transparent 55%), radial-gradient(circle at 50% 75%, rgba(40, 170, 255, .15), transparent 50%); }
.portal-life .portal-visual { background: radial-gradient(circle at 30% 45%, rgba(61, 123, 255, .2), transparent 55%), radial-gradient(circle at 70% 45%, rgba(190, 80, 255, .2), transparent 55%); }

.portal-info { position: relative; padding: 30px 34px 36px; background: linear-gradient(transparent, rgba(5, 4, 13, .9) 30%); transform: translateZ(40px); }
.portal-tag { display: inline-block; padding: 5px 12px; border-radius: 20px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border: 1px solid var(--border); color: var(--muted); }
.portal h3 { font-family: var(--font-deco); font-size: clamp(38px, 4.5vw, 56px); line-height: 1.1; margin: 14px 0 6px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.portal-life h3 { background: var(--grad-life); -webkit-background-clip: text; background-clip: text; }
.portal p { color: var(--muted); font-size: 18px; }
.portal-link { display: inline-block; margin-top: 18px; font-weight: 600; letter-spacing: .15em; text-transform: uppercase; font-size: 13px; color: var(--silver); }
.portal-link b { display: inline-block; transition: transform .3s var(--ease); }
.portal:hover .portal-link b { transform: translateX(8px); }

/* Logo Triverse qui tourne sur lui-même */
.portal-tri .portal-visual { perspective: 900px; }
.tri-logo {
  position: relative; width: min(300px, 72%); aspect-ratio: 1; margin-block: 20px;
  transform-style: preserve-3d; animation: logoSpin 9s linear infinite;
}
/* deux faces : le dos est retourné pour que le logo se lise toujours à l'endroit */
.tri-logo img {
  position: absolute; inset: 0; width: 100%; height: 100%; backface-visibility: hidden;
  filter: drop-shadow(0 0 25px rgba(255, 170, 60, .35)) drop-shadow(0 0 50px rgba(60, 220, 140, .2));
}
.tri-logo img + img { transform: rotateY(180deg); }
@keyframes logoSpin { from { transform: translateZ(40px) rotateY(0); } to { transform: translateZ(40px) rotateY(360deg); } }

/* Logo Liforever : respiration lumineuse + reflet + étincelles */
.life-logo {
  position: relative; width: 100%;
  mix-blend-mode: screen; /* le fond noir de l'image se fond dans le décor */
  animation: lifeBreathe 6s ease-in-out infinite;
  transition: scale .6s var(--ease);
}
.portal-life:hover .life-logo { scale: 1.06; }
.life-logo img {
  width: 100%;
  -webkit-mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 55%, transparent 100%);
  mask-image: radial-gradient(ellipse 75% 80% at 50% 50%, #000 55%, transparent 100%);
}
@keyframes lifeBreathe {
  0%, 100% { transform: scale(1); filter: brightness(1) saturate(1) hue-rotate(-8deg); }
  50% { transform: scale(1.045); filter: brightness(1.25) saturate(1.25) hue-rotate(10deg); }
}
/* reflet qui ne passe que sur les parties lumineuses du logo */
.life-shine {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: overlay;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.9) 50%, transparent 60%) 150% 0 / 250% 100% no-repeat;
  -webkit-mask: url("assets/liforever-logo.jpg") center / 100% 100% no-repeat; mask: url("assets/liforever-logo.jpg") center / 100% 100% no-repeat luminance;
  animation: shine 4.5s ease-in-out infinite 1s;
}
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i {
  position: absolute; left: var(--x); top: var(--y); width: 4px; height: 4px; border-radius: 50%;
  background: #fff; box-shadow: 0 0 8px 2px rgba(150, 120, 255, .9), 0 0 16px 4px rgba(80, 140, 255, .5);
  opacity: 0; animation: sparkle 4.2s ease-in-out infinite var(--t);
}
@keyframes sparkle {
  0% { opacity: 0; transform: translateY(0) scale(.4); }
  30% { opacity: 1; transform: translateY(-14px) scale(1); }
  100% { opacity: 0; transform: translateY(-50px) scale(.3); }
}

/* ================= SHOWCASES ================= */
.showcase { position: relative; z-index: 2; padding: clamp(90px, 12vw, 150px) 0; overflow: hidden; }
.showcase-bg { position: absolute; inset: 0; pointer-events: none; }
.showcase-tri .showcase-bg { background: radial-gradient(ellipse at 20% 50%, rgba(61, 90, 255, .22), transparent 55%), radial-gradient(ellipse at 90% 20%, rgba(200, 80, 255, .14), transparent 50%); }
.showcase-life .showcase-bg { background: radial-gradient(ellipse at 80% 50%, rgba(45, 212, 191, .16), transparent 55%), radial-gradient(ellipse at 10% 90%, rgba(251, 191, 36, .1), transparent 50%); }

.showcase-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.showcase-grid.reverse .showcase-visual { order: 2; }

.showcase-visual { position: relative; aspect-ratio: 1; width: 100%; display: grid; place-items: center; }
.showcase-tri .showcase-visual { perspective: 1200px; }
.showcase-visual .tri-logo { width: 82%; }
.showcase-life .showcase-visual:hover .life-logo { scale: 1.06; }
.showcase-visual::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%; pointer-events: none;
  border: 1px dashed rgba(160, 170, 255, .15); animation: spin 60s linear infinite;
}

.game-title {
  position: relative; font-family: var(--font-deco); font-weight: 900; line-height: 1;
  font-size: clamp(36px, 5.4vw, 76px); letter-spacing: .02em; color: var(--silver); white-space: nowrap;
}
.game-title .ch {
  display: inline-block; opacity: 0; transform: translateY(60%) rotateX(-90deg); filter: blur(8px);
  transition: opacity .8s var(--ease), transform .8s var(--ease), filter .8s var(--ease);
  transition-delay: calc(var(--i) * 60ms);
  background: var(--grad); background-size: 900% 100%; background-position: calc(var(--i) * 12.5%) 0;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.showcase-life .game-title .ch { background-image: var(--grad-life); }
.game-title.in .ch { opacity: 1; transform: none; filter: none; }
.game-title::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; z-index: -1;
  color: transparent; filter: blur(28px); background: var(--grad); -webkit-background-clip: text; background-clip: text; opacity: .6;
}
.showcase-life .game-title::after { background-image: var(--grad-life); }

.game-slogan { margin-top: 14px; font-family: var(--font-title); font-size: clamp(20px, 2.4vw, 28px); color: var(--silver); font-weight: 500; }

.tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.tags li { padding: 6px 16px; border-radius: 30px; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; border: 1px solid rgba(94, 160, 255, .35); background: rgba(61, 123, 255, .1); color: #b9cbff; }
.showcase-life .tags li { border-color: rgba(74, 222, 128, .35); background: rgba(45, 212, 191, .08); color: #a7f3d0; }

.game-desc { color: var(--muted); font-size: 17px; font-weight: 300; }

.features { margin-top: 30px; display: grid; gap: 14px; }
.features li {
  display: flex; gap: 16px; align-items: flex-start; padding: 16px 20px; border-radius: 16px;
  background: rgba(255,255,255,.025); border: 1px solid var(--border);
  transition: background .3s, border-color .3s, transform .3s var(--ease), opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s);
}
.features li:hover { transform: translateX(8px); background: rgba(100, 110, 255, .08); border-color: rgba(120, 130, 255, .4); }
.showcase-life .features li:hover { background: rgba(45, 212, 191, .07); border-color: rgba(74, 222, 128, .4); }
.features i { font-style: normal; color: var(--cyan); font-size: 18px; line-height: 1.5; }
.showcase-life .features i { color: var(--life); }
.features strong { display: block; color: var(--silver); font-weight: 600; }
.features span { font-size: 15px; color: var(--muted); }

.game-cta { margin-top: 36px; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.status { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 0 rgba(251, 191, 36, .7); animation: ping 2s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 12px rgba(251, 191, 36, 0); } 100% { box-shadow: 0 0 0 0 rgba(251, 191, 36, 0); } }

/* ================= CONTACT ================= */
.contact-card {
  position: relative; text-align: center; padding: clamp(50px, 8vw, 90px) clamp(22px, 5vw, 70px); border-radius: 32px; overflow: hidden;
  background: linear-gradient(140deg, rgba(61,123,255,.14), rgba(155,92,255,.14) 50%, rgba(232,121,249,.1)), var(--bg-2);
  border: 1px solid var(--border);
}
.contact-card::before {
  content: ""; position: absolute; inset: -2px; border-radius: inherit; padding: 2px; pointer-events: none;
  background: conic-gradient(from var(--angle, 0deg), transparent 0 70%, var(--cyan), var(--violet), var(--pink), transparent);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  animation: borderSpin 6s linear infinite;
}
@property --angle { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes borderSpin { to { --angle: 360deg; } }
.contact-card .section-lead { max-width: 620px; margin: 22px auto 40px; }
.socials { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 40px; }
.socials a {
  padding: 10px 22px; border-radius: 30px; font-size: 14px; font-weight: 500; letter-spacing: .08em;
  border: 1px solid var(--border); background: rgba(255,255,255,.03); color: var(--text);
  transition: .3s var(--ease);
}
.socials a:hover { transform: translateY(-4px); border-color: var(--violet); color: #fff; box-shadow: 0 10px 30px rgba(155, 92, 255, .35); background: rgba(155, 92, 255, .15); }

/* ================= FOOTER ================= */
.footer { position: relative; z-index: 2; padding: 50px 20px 40px; text-align: center; border-top: 1px solid var(--border); background: #040309; }
.footer-logo { width: 220px; margin: 0 auto 18px; opacity: .85; }
.footer p { color: var(--muted); font-size: 14px; }
.back-top {
  position: absolute; right: clamp(20px, 4vw, 48px); top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--border); font-size: 20px; transition: .3s var(--ease);
}
.back-top:hover { border-color: var(--cyan); box-shadow: 0 0 20px rgba(94, 231, 255, .4); transform: translateY(calc(-50% - 4px)); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px 14px; margin-top: 12px; font-size: 13px; }
.footer-links a { color: var(--muted); transition: color .3s; }
.footer-links a:hover { color: var(--cyan); }
.footer-links span { color: var(--violet); font-size: 10px; }

/* ================= PAGES LÉGALES ================= */
.legal-page { background: radial-gradient(ellipse at 50% -10%, #1a1345 0%, transparent 55%), var(--bg); }
.legal-back { padding: 10px 20px; font-size: 12px; }
.legal {
  position: relative; z-index: 2; width: min(820px, 100% - 32px); margin: 0 auto;
  padding: 140px 0 90px;
}
.legal h1 {
  font-family: var(--font-title); font-weight: 900; line-height: 1.15; font-size: clamp(30px, 5vw, 48px);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.legal .maj { margin-top: 8px; color: var(--muted); font-size: 14px; letter-spacing: .05em; }
.legal h2 {
  margin-top: 46px; padding-bottom: 10px; border-bottom: 1px solid var(--border);
  font-family: var(--font-title); font-size: clamp(20px, 2.6vw, 25px); color: var(--silver);
}
.legal p, .legal ul { margin-top: 14px; color: var(--text); font-weight: 300; }
.legal strong { color: var(--silver); font-weight: 600; }
.legal ul { list-style: none; display: grid; gap: 8px; }
.legal li { position: relative; padding-left: 22px; }
.legal li::before { content: "✦"; position: absolute; left: 0; top: 1px; font-size: 11px; color: var(--violet); }
.legal a { color: var(--cyan); text-decoration: underline; text-decoration-color: rgba(94, 231, 255, .35); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal a:hover { text-decoration-color: var(--cyan); }
.legal-card { margin-top: 30px; padding: clamp(24px, 4vw, 44px); border-radius: 24px; background: var(--panel); border: 1px solid var(--border); }
.legal-card > h2:first-child { margin-top: 0; }

/* ================= REVEAL ================= */
.reveal { opacity: 0; translate: 0 50px; transition: opacity .9s var(--ease) var(--d, 0s), translate .9s var(--ease) var(--d, 0s); }
/* « none » plutôt que 0 0 : évite un contexte d'empilement qui casserait le mix-blend-mode du logo Liforever */
.reveal.in { opacity: 1; translate: none; }

/* ================= RESPONSIVE ================= */
@media (max-width: 960px) {
  .pillars { grid-template-columns: 1fr; }
  .portals { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: 1fr; }
  .showcase-grid.reverse .showcase-visual { order: 0; }
  .showcase-visual { max-width: 520px; margin: 0 auto; }
}

@media (max-width: 820px) {
  .burger { display: block; }
  .nav-links {
    position: fixed; inset: 0; flex-direction: column; justify-content: center; gap: 30px;
    background: rgba(5, 4, 13, .96); backdrop-filter: blur(16px);
    opacity: 0; visibility: hidden; transition: .4s var(--ease);
  }
  .nav-links.open { opacity: 1; visibility: visible; }
  .nav-links a { font-size: 20px; }
  .back-top { position: static; transform: none; margin: 20px auto 0; }
  .back-top:hover { transform: translateY(-4px); }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .portal { min-height: 440px; }
  .hero-by { letter-spacing: .25em; }
  .hero-cta .btn { width: 100%; max-width: 320px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
