/* ==========================================================================
   R: FORGED - Landing styles
   Design system: "Ethereal Forge" (voir DESIGN.md)
   Perf: animations sur transform/opacity uniquement, GPU-friendly.
   ========================================================================== */

:root {
  --surface: #131316;
  --surface-lowest: #0e0e11;
  --surface-low: #1b1b1e;
  --surface-container: #1f1f22;
  --on-surface: #e4e1e6;
  --on-surface-variant: #cfc2d6;
  --outline: #988d9f;
  --outline-variant: #4d4354;
  --primary: #ddb7ff;
  --primary-strong: #b76dff;
  --primary-deep: #7b3eff;
  --primary-container: #b76dff;

  --font-display: "Cinzel", serif;
  --font-body: "Manrope", sans-serif;
  --font-label: "Space Grotesk", sans-serif;

  --safe: 5vw;
  --max: 1600px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--surface);
  color: var(--on-surface);
  font-family: var(--font-body);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: inherit; text-decoration: none; }

img { display: block; max-width: 100%; }

/* ---- Typographie utilitaire ---- */
.font-display { font-family: var(--font-display); }
.font-label {
  font-family: var(--font-label);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

/* ==========================================================================
   FOND ATMOSPHERIQUE
   ========================================================================== */
.bg-layer {
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

/* image hero en fond. Par defaut (pages internes) : tres douce et centree. */
.bg-art {
  position: fixed;
  inset: -6% -6% -6% -6%;
  z-index: -3;
  background: url("assets/hero.webp") center 20% / cover no-repeat;
  opacity: 0.28;
  will-change: transform;
  transform: translate3d(0, 0, 0);
}

/* Accueil : image decalee a droite et bien presente, fondu a gauche pour le texte. */
.home .bg-art {
  background-position: right center;
  opacity: 0.9;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 4%, #000 46%),
    linear-gradient(180deg, #000 64%, transparent 97%);
  -webkit-mask-composite: source-in;
  mask-image:
    linear-gradient(90deg, transparent 4%, #000 46%),
    linear-gradient(180deg, #000 64%, transparent 97%);
  mask-composite: intersect;
}

/* vignette sombre par-dessus pour lisibilite */
.bg-vignette {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(120% 80% at 70% 20%, rgba(123, 62, 255, 0.10) 0%, transparent 55%),
    linear-gradient(180deg, rgba(19,19,22,0.75) 0%, rgba(19,19,22,0.35) 40%, rgba(19,19,22,0.85) 100%);
}

/* grain/nebula tres subtil */
.bg-glow {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background: radial-gradient(60% 50% at 78% 30%, rgba(183,109,255,0.14), transparent 60%);
  mix-blend-mode: screen;
}

/* couche particules canvas */
#particles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.55;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  z-index: 50;
  display: flex;
  justify-content: center;
  transition: background 0.4s ease, backdrop-filter 0.4s ease;
}
/* lisere lumineux sous le header (transparent -> violet -> transparent) */
.nav::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: linear-gradient(90deg, transparent 0%, rgba(183,109,255,0.55) 25%, rgba(221,183,255,0.75) 50%, rgba(183,109,255,0.55) 75%, transparent 100%);
  box-shadow: 0 0 10px rgba(183,109,255,0.35);
}
.nav.scrolled {
  background: linear-gradient(180deg, rgba(14,14,17,0.92), rgba(14,14,17,0.72));
  backdrop-filter: blur(10px);
}
.nav-inner {
  width: 100%;
  max-width: var(--max);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem var(--safe);
  gap: 1rem;
}
/* Brand header : "R:" (image, avec gemmes) + "FORGED" en Cinzel, comme la reference */
.brand { display: flex; align-items: center; gap: 0.55rem; cursor: pointer; }
.brand img { height: 42px; width: auto; filter: drop-shadow(0 0 10px rgba(221,183,255,0.3)); transition: filter 0.3s; }
.brand:hover img { filter: drop-shadow(0 0 16px rgba(221,183,255,0.7)); }
.brand .brand-word {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #e9e6ee;
  line-height: 1;
  text-shadow: 0 1px 6px rgba(0,0,0,0.6);
  transition: color 0.3s;
}
.brand:hover .brand-word { color: #fff; }

/* switch de langue EN | FR */
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-label);
  font-size: 12px;
  letter-spacing: 0.1em;
  margin-right: 0.4rem;
}
.lang-switch button {
  background: none;
  border: 0;
  color: var(--outline);
  cursor: pointer;
  padding: 0.25rem 0.45rem;
  text-transform: uppercase;
  transition: color 0.25s, text-shadow 0.25s;
}
.lang-switch button:hover { color: var(--on-surface-variant); }
.lang-switch button.active { color: var(--primary); text-shadow: 0 0 8px rgba(221,183,255,0.6); }
.lang-switch .sep { color: var(--outline-variant); }

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0; padding: 0;
  font-family: var(--font-display);   /* Cinzel serif, comme la reference */
  font-weight: 600;
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.nav-links a {
  color: var(--on-surface-variant);
  padding-bottom: 4px;
  position: relative;
  transition: color 0.25s;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 2px;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(221,183,255,0.7);
  transition: width 0.3s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

/* Boutons - style "plaque forgee" a double lisere clair (cf. reference) */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-display);   /* Cinzel serif, comme la reference */
  font-weight: 600;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  cursor: pointer;
  border: 0;
  color: #fff;
  padding: 1rem 1.9rem;
  position: relative;
  /* petits coins biseautes facon plaque metallique */
  clip-path: polygon(9px 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%, 0 9px);
  transition: transform 0.25s ease, box-shadow 0.35s ease, filter 0.3s ease, background 0.35s;
}
.btn svg { width: 18px; height: 18px; }

/* le double lisere clair : une bordure exterieure + un trait interieur */
.btn::after {
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(221,183,255,0.55);
  clip-path: polygon(6px 0, 100% 0, 100% calc(100% - 6px), calc(100% - 6px) 100%, 0 100%, 0 6px);
  pointer-events: none;
  transition: border-color 0.3s ease;
}

.btn-primary {
  /* fond violet plein et lumineux */
  background:
    linear-gradient(180deg, #9a56e8 0%, #7b3eff 45%, #5b26c9 100%);
  box-shadow:
    0 0 0 1px rgba(233,215,255,0.85),          /* lisere clair exterieur */
    0 6px 22px rgba(123,62,255,0.45),           /* halo porte */
    inset 0 1px 0 rgba(255,255,255,0.35),       /* reflet haut */
    inset 0 -10px 24px rgba(40,10,80,0.55);     /* profondeur bas */
  text-shadow: 0 1px 4px rgba(30,0,60,0.6);
}
.btn-primary:hover {
  box-shadow:
    0 0 0 1px rgba(240,225,255,1),
    0 0 30px rgba(183,109,255,0.7),
    0 8px 26px rgba(123,62,255,0.55),
    inset 0 1px 0 rgba(255,255,255,0.45),
    inset 0 -10px 24px rgba(40,10,80,0.5);
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.btn-primary:hover::after { border-color: rgba(240,225,255,0.9); }
/* secondaire : meme plaque forgee mais fond sombre */
.btn-ghost {
  color: var(--on-surface);
  background: linear-gradient(180deg, rgba(30,26,38,0.92) 0%, rgba(14,12,20,0.92) 100%);
  box-shadow:
    0 0 0 1px rgba(152,141,159,0.45),
    inset 0 1px 0 rgba(255,255,255,0.08);
  backdrop-filter: blur(6px);
}
.btn-ghost::after { border-color: rgba(152,141,159,0.4); }
.btn-ghost:hover {
  color: #fff;
  box-shadow:
    0 0 0 1px rgba(221,183,255,0.7),
    0 0 22px rgba(123,62,255,0.35),
    inset 0 1px 0 rgba(255,255,255,0.1);
  transform: translateY(-2px);
}
.btn-ghost:hover::after { border-color: rgba(221,183,255,0.7); }
/* le play du bouton bande-annonce dans un cercle, facon reference */
.btn-ghost svg { border-radius: 50%; }

/* variante nav compacte : garde son propre clip (plus petit) */
.btn-nav {
  padding: 0.7rem 1.5rem;
}

.nav-toggle { display: none; background: none; border: 0; color: var(--on-surface); cursor: pointer; }
.nav-toggle svg { width: 30px; height: 30px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--safe); }

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 6rem;
}

.hero-copy { max-width: 620px; position: relative; z-index: 1; }

/* =========================================================================
   MODE PLEIN ECRAN (accueil) : tout tient dans une seule vue, sans scroll.
   Le body remplit 100vh ; main (hero + features) prend l'espace ; footer colle.
   ========================================================================= */
.home { height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
.home main {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* hero en haut sous la nav, features en bas */
  gap: clamp(0.6rem, 2.4vh, 2rem);
  padding-top: clamp(5rem, 8vh, 6rem);
  padding-bottom: clamp(0.5rem, 1.5vh, 1rem);
}
.home .footer { flex: 0 0 auto; }
.home .footer .platforms { padding-top: clamp(0.9rem, 2vh, 1.6rem); padding-bottom: clamp(0.9rem, 2vh, 1.6rem); }
.home .footer .copyright { padding: 0.6rem; }
.home .hero {
  min-height: 0;
  flex: 0 0 auto;          /* taille naturelle, jamais compresse */
  width: 100%;
  padding-top: 0;
  align-items: flex-start;
  justify-content: flex-start;
}
.home .features { width: 100%; flex: 0 0 auto; }
.home .hero-logo { width: min(50%, 280px); margin-bottom: clamp(0.3rem, 1vh, 0.7rem); }
.home .hero-tag { font-size: clamp(1rem, 1.6vw, 1.5rem); margin-bottom: clamp(0.3rem, 0.9vh, 0.8rem); }
.home .divider { margin-bottom: clamp(0.4rem, 1vh, 1rem); }
.home .hero-desc { margin-bottom: clamp(0.7rem, 1.6vh, 1.5rem); font-size: clamp(0.92rem, 1vw, 1.05rem); line-height: 1.5; max-width: 500px; }
.home .features { padding: 0; flex: 0 0 auto; align-items: center; }
/* le trailer ne doit jamais depasser la hauteur de la ligne features */
.home .trailer {
  aspect-ratio: auto;
  height: clamp(120px, 22vh, 200px);
  align-self: center;
}
.home .feature .icon-wrap { width: clamp(44px, 5.5vh, 78px); height: clamp(44px, 5.5vh, 78px); margin-bottom: 0.2rem; }

/* ecrans courts (ex. 1366x768) : compacter plus fort pour rester sans scroll */
@media (max-height: 820px) {
  .home .hero-logo { width: min(52%, 300px); }
  .home .hero-desc { -webkit-line-clamp: 3; font-size: 0.92rem; line-height: 1.45; }
  .home .hero-cta .btn { padding: 0.7rem 1.4rem; }
  .home main { gap: clamp(0.3rem, 1vh, 0.8rem); padding-top: 4.9rem; padding-bottom: 0.5rem; }
}
@media (max-height: 700px) {
  .home .hero-logo { width: min(44%, 250px); }
  .home .hero-tag { font-size: 1rem; }
  .home .feature p { display: none; }
}
@media (max-height: 820px) {
  .home .footer .platforms { padding-top: 0.8rem; padding-bottom: 0.8rem; }
  .home .footer .copyright { padding: 0.45rem; font-size: 0.62rem; }
}
.home .feature h3 { font-size: clamp(0.78rem, 1vw, 0.9rem); margin: 0.15rem 0 0.05rem; }
.home .feature p { font-size: clamp(0.7rem, 0.85vw, 0.8rem); line-height: 1.3; }
.home .trailer .caption { font-size: 0.7rem; padding-top: 2rem; }

.hero-logo {
  width: min(88%, 520px);
  margin-bottom: 1.5rem;
  /* le PNG a un fond gris -> screen le fait disparaitre sur fond sombre */
  mix-blend-mode: screen;
  filter: drop-shadow(0 6px 30px rgba(123,62,255,0.4));
  will-change: transform, opacity;
}

.hero-tag {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: clamp(1.1rem, 2.2vw, 1.9rem);
  margin: 0 0 1rem;
  text-shadow: 0 0 18px rgba(221,183,255,0.35);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  max-width: 380px;
  margin-bottom: 1.5rem;
}
.divider .line { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(221,183,255,0.5), transparent); }
.divider .gem { width: 16px; height: 16px; background: var(--primary); transform: rotate(45deg); box-shadow: 0 0 16px rgba(221,183,255,1), 0 0 4px rgba(255,255,255,0.9); }

.hero-desc {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  line-height: 1.7;
  color: var(--on-surface-variant);
  margin-bottom: 2.2rem;
  max-width: 540px;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero-cta .btn { flex: 1; min-width: 230px; padding: 1rem 1.6rem; }

/* ==========================================================================
   FEATURES
   ========================================================================== */
.features {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2.5rem;
  align-items: end;
  padding: 4rem 0 6rem;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.2rem;
}
.feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 0.5rem;
}
.feature .icon-wrap {
  width: 88px; height: 88px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 0.3rem;
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.feature .icon-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  /* fond gris -> screen */
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(183,109,255,0.5));
}
.feature:hover .icon-wrap { transform: translateY(-6px) scale(1.08); }
.feature h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.25;
  text-transform: uppercase;
  color: var(--on-surface);
  margin: 0.2rem 0 0.1rem;
  letter-spacing: 0.02em;
  /* hauteur reservee pour 2 lignes : toutes les descriptions s'alignent pareil */
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.feature p {
  font-size: 0.82rem;
  line-height: 1.4;
  color: var(--on-surface-variant);
  margin: 0;
}

/* carte trailer */
.trailer {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border: 1px solid var(--outline-variant);
  cursor: pointer;
  border-radius: 3px;
}
.trailer::before {
  content: "";
  position: absolute; inset: 0;
  background: url("assets/trailer.webp") center / cover no-repeat;
  transform: scale(1.02);
  transition: transform 0.6s ease, opacity 0.5s;
  opacity: 0.85;
}
.trailer:hover::before { transform: scale(1.08); opacity: 1; }
.trailer .play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 66px; height: 66px;
  border-radius: 50%;
  border: 2px solid var(--primary);
  background: rgba(19,19,22,0.5);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s ease, background 0.3s, box-shadow 0.3s;
  box-shadow: 0 0 20px rgba(221,183,255,0.3);
}
.trailer .play svg { width: 28px; height: 28px; fill: var(--primary); margin-left: 3px; }
.trailer:hover .play { transform: translate(-50%, -50%) scale(1.12); background: rgba(183,109,255,0.25); box-shadow: 0 0 34px rgba(183,109,255,0.6); }
.trailer .caption {
  position: absolute;
  bottom: 0; left: 0; width: 100%;
  padding: 2.4rem 1rem 0.9rem;
  text-align: center;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  color: var(--primary);
  text-transform: uppercase;
  text-shadow: 0 2px 8px rgba(0,0,0,0.9);
  background: linear-gradient(0deg, rgba(10,10,13,0.9) 0%, transparent 100%);
}
/* halo pulsant autour du bouton play */
.trailer .play::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 50%;
  border: 1px solid rgba(221,183,255,0.5);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0%   { transform: scale(1);   opacity: 0.7; }
  70%  { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* ==========================================================================
   FOOTER (plateformes)
   ========================================================================== */
.footer {
  background: var(--surface-lowest);
  border-top: 1px solid rgba(77,67,84,0.35);
  position: relative;
  z-index: 10;
}
.platforms {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  align-items: center;
  gap: 2rem;
  padding: 3rem var(--safe);
}
.platform {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.platform:hover { transform: translateY(-3px); }
.platform .row { display: flex; align-items: center; gap: 0.7rem; }
.platform img { height: 30px; width: auto; transition: filter 0.3s; filter: drop-shadow(0 0 0 transparent); }
.platform:hover img { filter: drop-shadow(0 0 10px rgba(221,183,255,0.6)); }
/* Discord : meme comportement que les autres logos (glow violet au survol) */
.platform .discord-icon { height: 30px; width: auto; fill: #e4e1e6; transition: fill 0.3s, filter 0.3s; filter: drop-shadow(0 0 0 transparent); }
.platform:hover .discord-icon { fill: var(--primary); filter: drop-shadow(0 0 10px rgba(221,183,255,0.6)); }
.platform .name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: 0.04em;
  color: var(--on-surface);
  transition: color 0.3s;
}
.platform:hover .name { color: var(--primary); }
.platform .sub {
  font-family: var(--font-label);
  font-size: 0.62rem;
  letter-spacing: 0.12em;
  color: var(--outline);
}
.platform-divider { width: 1px; height: 48px; background: rgba(77,67,84,0.4); }

.copyright {
  text-align: center;
  padding: 1rem;
  background: rgba(0,0,0,0.5);
  font-family: var(--font-label);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  color: var(--outline);
}

/* ==========================================================================
   ANIMATIONS D'ENTREE (GSAP pose les etats initiaux via .reveal)
   ========================================================================== */
.reveal { opacity: 0; transform: translateY(28px); }

/* si JS desactive, on montre tout */
.no-js .reveal { opacity: 1; transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
/* ---- Tablette / mobile : on annule le mode "plein ecran" de l'accueil.
   La page redevient scrollable et empilee, bien plus lisible sur petit ecran. ---- */
@media (max-width: 1024px) {
  /* desactive le lock plein ecran de l'accueil */
  .home { height: auto; overflow-x: hidden; overflow-y: visible; display: block; }
  .home main {
    display: block;
    flex: none;
    padding: 8rem var(--safe) 3rem;
    gap: 0;
  }

  .hero { min-height: auto; padding-top: 0; display: block; }
  .home .hero { padding-top: 0; }
  .hero-copy { max-width: none; }
  .home .hero-logo { width: min(70%, 320px); margin-bottom: 1.2rem; }
  .home .hero-tag { font-size: clamp(1.1rem, 3.5vw, 1.6rem); }
  .home .hero-desc { font-size: 1rem; line-height: 1.6; max-width: 560px; }

  /* l'art de fond repasse en fond plein, discret, derriere tout le contenu */
  .home .bg-art, .bg-art {
    background-position: center 22%;
    opacity: 0.32;
    -webkit-mask-image: none;
    mask-image: none;
  }

  /* features : la grille se detache du trailer et s'empile */
  .features { grid-template-columns: 1fr; gap: 2.5rem; padding: 3rem 0 0; }
  .home .features { padding: 3rem 0 0; }
  .feature-grid { grid-template-columns: repeat(5, 1fr); }
  .home .feature .icon-wrap { width: 64px; height: 64px; }
  .home .feature h3 { font-size: 0.9rem; }
  .home .feature p { display: block; font-size: 0.8rem; }
  .trailer, .home .trailer { max-width: 560px; margin: 0 auto; width: 100%; height: auto; aspect-ratio: 16/9; }
}

@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav .lang-switch:not(.mobile-lang) { display: none; }
  .nav .btn-nav { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav-inner { padding: 0.9rem var(--safe); }
  .brand img { height: 32px; }

  .home main { padding: 6.5rem var(--safe) 2.5rem; }
  .home .hero-logo { width: min(78%, 280px); }
  .home .hero-tag { letter-spacing: 0.15em; }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { min-width: 100%; width: 100%; }

  .feature-grid { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 1rem; }
  .home .feature .icon-wrap { width: 72px; height: 72px; }

  /* footer plateformes : 2 colonnes propres */
  .platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 1.8rem 1rem; padding: 2.2rem var(--safe); }
  .platform-divider { display: none; }

  /* pages internes : moins de padding en haut */
  .page-hero { padding: 8rem var(--safe) 2rem; }
  .section { padding: 2rem var(--safe); }
  .card { padding: 1.5rem; }
  .cta-band { padding: 3.5rem var(--safe); }
  .cta-band .hero-cta { flex-direction: column; align-items: stretch; }
  .news-item { padding: 1.2rem 1.3rem; }
}

@media (max-width: 420px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .home .hero-logo { width: 72%; }
  .platforms { grid-template-columns: 1fr; }
}

/* menu mobile */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10,10,13,0.97);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 1.3rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a { color: var(--on-surface-variant); }
.mobile-menu a:hover { color: var(--primary); }
.mobile-menu .close { position: absolute; top: 1.5rem; right: var(--safe); background: none; border: 0; color: var(--on-surface); cursor: pointer; }
.mobile-menu .close svg { width: 32px; height: 32px; }

/* ==========================================================================
   PAGES INTERNES (histoire, gameplay, mondes, actualites, communaute)
   ========================================================================== */
.page-hero {
  padding: 12rem var(--safe) 3rem;
  max-width: var(--max);
  margin: 0 auto;
  text-align: center;
}
.page-hero .kicker {
  font-family: var(--font-label);
  color: var(--primary);
  font-size: 0.8rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  margin-bottom: 1rem;
  display: inline-block;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 0 0 1.2rem;
  color: var(--on-surface);
  text-shadow: 0 0 40px rgba(123,62,255,0.3);
}
.page-hero .lead {
  max-width: 720px;
  margin: 0 auto;
  color: var(--on-surface-variant);
  font-size: 1.1rem;
  line-height: 1.7;
}
.page-hero .divider { margin: 1.6rem auto 0; }

.section { max-width: var(--max); margin: 0 auto; padding: 3rem var(--safe); }
.section-narrow { max-width: 860px; }

.prose p {
  color: var(--on-surface-variant);
  font-size: 1.08rem;
  line-height: 1.85;
  margin: 0 0 1.6rem;
}
.prose p strong { color: var(--primary); font-weight: 600; }

.section-title {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  text-align: center;
  margin: 0 0 0.6rem;
}
.section-sub {
  text-align: center;
  color: var(--on-surface-variant);
  max-width: 620px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* grille de cartes (gameplay, mondes) */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}
.card {
  position: relative;
  padding: 2rem;
  background: linear-gradient(160deg, rgba(31,31,34,0.7), rgba(14,14,17,0.7));
  border: 1px solid var(--outline-variant);
  border-radius: 3px;
  overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(80% 60% at 50% 0%, rgba(183,109,255,0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.35s;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  border-color: var(--primary-strong);
  box-shadow: 0 14px 40px rgba(123,62,255,0.25);
}
.card:hover::before { opacity: 1; }
.card .card-icon {
  width: 60px; height: 60px;
  margin-bottom: 1rem;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 10px rgba(183,109,255,0.5));
}
.card h3 {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: var(--on-surface);
  margin: 0 0 0.7rem;
}
.card p { color: var(--on-surface-variant); line-height: 1.65; margin: 0; font-size: 0.98rem; }
.card .tag {
  display: inline-block;
  font-family: var(--font-label);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--primary);
  border: 1px solid var(--outline-variant);
  padding: 0.25rem 0.6rem;
  margin-bottom: 1rem;
}

/* liste actualites */
.news-list { display: flex; flex-direction: column; gap: 1.2rem; }
.news-item {
  display: flex;
  gap: 1.5rem;
  align-items: baseline;
  padding: 1.5rem 2rem;
  background: linear-gradient(160deg, rgba(31,31,34,0.6), rgba(14,14,17,0.6));
  border: 1px solid var(--outline-variant);
  border-left: 3px solid var(--primary-strong);
  transition: transform 0.3s, box-shadow 0.3s;
}
.news-item:hover { transform: translateX(6px); box-shadow: 0 8px 30px rgba(123,62,255,0.2); }
.news-item .date {
  font-family: var(--font-label);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--primary);
  white-space: nowrap;
  min-width: 110px;
}
.news-item .body h3 { font-family: var(--font-display); font-weight: 600; margin: 0 0 0.4rem; font-size: 1.1rem; }
.news-item .body p { margin: 0; color: var(--on-surface-variant); line-height: 1.6; }

/* CTA final generique */
.cta-band {
  text-align: center;
  padding: 5rem var(--safe);
  max-width: var(--max);
  margin: 0 auto;
}
.cta-band h2 {
  font-family: var(--font-display);
  font-weight: 700;
  text-transform: uppercase;
  font-size: clamp(1.8rem, 4vw, 3rem);
  margin: 0 0 1.5rem;
}
.cta-band .hero-cta { justify-content: center; }

/* communaute : boutons plateformes larges */
.social-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  padding: 2.2rem 1.5rem;
  border: 1px solid var(--outline-variant);
  background: linear-gradient(160deg, rgba(31,31,34,0.7), rgba(14,14,17,0.7));
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
  text-align: center;
}
.social-card:hover { transform: translateY(-6px); border-color: var(--primary-strong); box-shadow: 0 14px 40px rgba(123,62,255,0.25); }
.social-card svg, .social-card img { width: 40px; height: 40px; object-fit: contain; }
.social-card .discord-icon { fill: var(--primary); }
.social-card h3 { font-family: var(--font-display); text-transform: uppercase; margin: 0; font-size: 1.2rem; }
.social-card p { margin: 0; color: var(--on-surface-variant); font-size: 0.9rem; }

@media (max-width: 640px) {
  .news-item { flex-direction: column; gap: 0.5rem; }
  .news-item .date { min-width: 0; }
}

/* ==========================================================================
   MODALE "PREVENEZ-MOI" (liste d'attente)
   ========================================================================== */
.modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 8, 11, 0.82);
  backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal.open { opacity: 1; pointer-events: auto; }

.modal-box {
  position: relative;
  width: 100%;
  max-width: 460px;
  padding: 2.6rem 2.2rem 2.2rem;
  text-align: center;
  background: linear-gradient(160deg, rgba(31,31,34,0.98), rgba(14,14,17,0.98));
  border: 1px solid var(--outline-variant);
  box-shadow: 0 0 0 1px rgba(221,183,255,0.18), 0 24px 60px rgba(0,0,0,0.7), inset 0 1px 0 rgba(255,255,255,0.05);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transform: translateY(14px) scale(0.98);
  transition: transform 0.35s cubic-bezier(.2,.8,.2,1);
}
.modal.open .modal-box { transform: none; }

.modal-box::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(90% 60% at 50% 0%, rgba(123,62,255,0.18), transparent 70%);
  pointer-events: none;
}

.modal-close {
  position: absolute;
  top: 0.7rem; right: 0.7rem;
  background: none; border: 0;
  color: var(--outline);
  cursor: pointer;
  padding: 0.4rem;
  line-height: 0;
  transition: color 0.25s, transform 0.25s;
}
.modal-close:hover { color: var(--primary); transform: rotate(90deg); }
.modal-close svg { width: 22px; height: 22px; }

.modal-box h2 {
  position: relative;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--on-surface);
  margin: 0 0 0.7rem;
}
.modal-box .modal-desc {
  position: relative;
  color: var(--on-surface-variant);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0 0 1.6rem;
}
.modal-box .divider { margin: 0 auto 1.6rem; max-width: 220px; }

/* champ email : souligne, focus violet (cf. DESIGN.md) */
.notify-form { position: relative; display: flex; flex-direction: column; gap: 1rem; }
.notify-field {
  position: relative;
  background: rgba(10,10,13,0.6);
  border: 1px solid var(--outline-variant);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.notify-field:focus-within {
  border-color: var(--primary-strong);
  box-shadow: 0 0 18px rgba(123,62,255,0.3), inset 0 0 12px rgba(123,62,255,0.08);
}
.notify-field input {
  width: 100%;
  background: none;
  border: 0;
  outline: none;
  color: var(--on-surface);
  font-family: var(--font-body);
  font-size: 1rem;
  padding: 0.95rem 1.1rem;
}
.notify-field input::placeholder { color: var(--outline); }

/* honeypot : invisible pour l'humain, rempli par les bots */
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  pointer-events: none;
}

.notify-form .btn { width: 100%; justify-content: center; }
.notify-form .btn[disabled] { opacity: 0.6; cursor: wait; }

.notify-msg {
  position: relative;
  min-height: 1.2em;
  font-family: var(--font-label);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  line-height: 1.5;
  margin: 0;
}
.notify-msg.ok { color: #52d16b; }
.notify-msg.err { color: #ff8a8a; }

.modal-privacy {
  position: relative;
  font-size: 0.68rem;
  color: var(--outline);
  margin: 1rem 0 0;
  letter-spacing: 0.04em;
}

/* accessibilite : reduire les animations si demande */
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1; transform: none; }
}
