/* Canvas lucioles (fireflies) */
.firefly-canvas {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100vw;
  height: 40vh;
  pointer-events: none;
  z-index: 10005;
  background: transparent !important;
}

/* Style slogan pour l'accroche */
.lead-intro.slogan {
  font-size: 1.02em;
  font-weight: 700;
  font-family: 'Segoe UI', 'Arial', sans-serif;
  text-align: left;
  margin-bottom: 1.em;
  color: #f3f4f2;
  letter-spacing: 0.01em;
  line-height: 1.18;
  display: block;
}

.lead-intro.slogan .small {
  font-size: 0.82em;
  font-weight: 600;
}

.lead-intro.slogan .big {
  font-size: 1.6em;
  font-weight: 800;
  letter-spacing: 0.01em;
}

/* Style pour "Petit" et "grand" dans l'intro */
.lead-intro .small {
  font-size: 0.82em;
  font-weight: 600;
  vertical-align: baseline;
}

.lead-intro .big {
  font-size: 1.5em;
  font-weight: 800;
  letter-spacing: 0.01em;
  vertical-align: baseline;
}

/* Style pour l'intro du lead */
.lead-intro {
  font-weight: bold;
  font-size: 1.08em;
  display: block;
  margin-bottom: 0.2em;
}

/* Réduction de l'espacement pour que tout tienne sans scroller */
.section-lead,
.card p[data-i18n-html],
.card p[data-i18n-html] br {
  line-height: 1.45;
  margin-bottom: 8px;
}

.section-lead {
  margin-bottom: 10px;
  font-size: 1.04em;
}

.card p[data-i18n-html] {
  margin-bottom: 0;
  font-size: 1em;
}

.card-grid {
  gap: 10px;
}

section#about {
  padding-top: 32px;
  padding-bottom: 32px;
  scroll-margin-top: 75px;
}

/* Aération et lisibilité pour les textes principaux */
.section-lead,
.card p[data-i18n-html],
.card p[data-i18n-html] br {
  line-height: 1.7;
  margin-bottom: 14px;
  white-space: pre-line;
}

.section-lead {
  margin-top: 0;
  margin-bottom: 50px;
  font-size: 0.94em;
  opacity: 0.95;
}

.section-lead i {
  font-style: normal;
}

.card p[data-i18n-html] {
  margin-bottom: 0;
  font-size: 0.94em;
  opacity: 0.9;
}

/* Met en surbrillance le nom Nimbiki Studio dans les textes */
.highlight-nimbiki {
  color: #b7ff15;
}

:root {
  --bg-top: #191d13;
  --bg-mid: #2a2f1f;
  --bg-bottom: #3c4330;
  --text: #f3f4f2;
  --muted: #c9cebf;
  --accent: #b7ff15;
  --accent-rgb: 183, 255, 21;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.2), 0 2px 4px -1px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.4), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  --maxw: 1200px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Barre de défilement (Scrollbar) personnalisée */
/* Pour Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--bg-bottom) var(--bg-top);
}

/* Pour Chrome, Edge et Safari */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-top);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-bottom);
  border-radius: 10px;
  border: 2px solid var(--bg-top);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--muted);
}

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

html {
  scroll-behavior: smooth;
}

p {
  margin-top: 0;
  margin-bottom: 1.5em;
}

h2 {
  font-size: 1.65em;
  font-weight: 800;
  margin-top: 0;
  margin-bottom: 0px;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  font-size: 1.05em;
  font-weight: 700;
  margin-top: 0;
  margin-bottom: 12px;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, "Helvetica Neue", Arial;
  font-size: 16px;
  color: var(--text);
  line-height: 1.62;
  background: linear-gradient(to bottom, var(--bg-top) 0%, var(--bg-mid) 46%, var(--bg-bottom) 100%);
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Texture de grain premium */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 10000;
  opacity: 0.015;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 1000 1000' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Lueur interactive d'arrière-plan (Mouse Glow) */
.mouse-glow {
  position: fixed;
  top: var(--glow-y, 50%);
  left: var(--glow-x, 50%);
  width: 900px;
  height: 900px;
  background: radial-gradient(circle, rgba(183, 255, 21, 0.04) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 5;
  transform: translate(-50%, -50%);
  filter: blur(140px);
  will-change: top, left, opacity;
  transition: opacity 2s ease;
  opacity: 0;
}

body:hover .mouse-glow {
  opacity: 1;
}

/* Animations flottantes */
@keyframes float {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.trailer-card,
.phone-wrap {
  animation: float 6s ease-in-out infinite;
}

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

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

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

.skip-link {
  position: fixed;
  left: -9999px;
  top: auto;
  padding: 8px 12px;
  background: #000;
  color: #fff;
  border-radius: 8px;
  z-index: 1000;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

body>header {
  position: sticky;
  top: 0;
  z-index: 10020;
  backdrop-filter: blur(6px);
  background: linear-gradient(to bottom, rgba(27, 31, 20, .92), rgba(42, 47, 31, .72));
  border-bottom: 1px solid rgba(183, 255, 21, .18);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 70px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: clamp(26px, 3.6vw, 36px);
  width: auto;
}

.brand-title {
  height: clamp(12px, 1.4vw, 12px);
  width: auto;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}


nav.primary {
  display: flex;
  align-items: center;
}

.menu {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu>li {
  position: relative;
}

.menu>li>a,
.menu-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: .9;
  padding: 8px 10px;
  border-radius: 10px;
  transition: transform .2s ease, background-color .2s ease, opacity .2s ease;
  text-decoration: none;
  appearance: none;
  background: transparent;
  border: 0;
  color: var(--text);
}

@media (min-width: 901px) {
  .burger {
    display: none !important;
  }

  nav.primary {
    display: flex !important;
  }
}

@media (max-width: 900px) {
  .burger {
    display: grid !important;
  }

  nav.primary {
    display: none !important;
  }

  .nav {
    justify-content: space-between;
  }

  .brand {
    margin-right: auto;
  }

  .lang-switch,
  .burger {
    margin-left: 0;
  }

  .lang-switch {
    order: 2;
  }

  .burger {
    order: 3;
  }
}

@keyframes textShimmer {
  0% {
    background-position: -200% center;
  }

  100% {
    background-position: 200% center;
  }
}

.text-shimmer {
  background: linear-gradient(90deg,
      var(--text) 20%,
      var(--accent) 50%,
      var(--text) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  animation: textShimmer 4s linear infinite;
  font-weight: 800;
}

.menu>li>a:hover,
.menu-link:hover {
  background: rgba(255, 255, 255, .08);
  opacity: 1;
  transform: translateY(-2px);
  color: var(--accent);
}

.menu>li>a,
.menu-link {
  position: relative;
}

.menu>li>a::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 6px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent));
  transform: scaleX(0);
  transform-origin: 0 50%;
  transition: transform .3s cubic-bezier(.2, .8, .2, 1);
  opacity: .9;
  border-radius: 2px;
}

.menu>li>a:hover::after {
  transform: scaleX(1);
}

.menu>li>a:hover {
  text-shadow: 0 0 12px rgba(183, 255, 21, .35);
}

/* Sous-menu desktop (inchangÃ©) */
.submenu {
  position: absolute;
  left: 0;
  top: 100%;
  margin-top: 8px;
  min-width: 220px;
  display: none;
  background: linear-gradient(to bottom, rgba(25, 29, 19, .98), rgba(26, 33, 20, .98));
  border: 1px solid rgba(183, 255, 21, .18);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(183, 255, 21, .06) inset;
  color: #eaf5df;
  backdrop-filter: saturate(110%) blur(2px);
}

.submenu a {
  display: block;
  padding: 10px 12px;
  border-radius: 8px;
  color: #eaf5df;
  opacity: .95;
}

.submenu a:hover {
  background: rgba(183, 255, 21, .10);
  color: #fff;
  opacity: 1;
}

.has-submenu:hover>.submenu,
.has-submenu:focus-within>.submenu,
.has-submenu.open>.submenu {
  display: block;
}

.has-submenu {
  position: relative;
}

/* Petit pont de 12px sous lâ€™onglet pour garder le :hover le temps de descendre */
.has-submenu::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}

/* Burger + mobile (inchangÃ© hors sous-menu) */
.burger {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: linear-gradient(to bottom, rgba(27, 31, 20, .85), rgba(27, 31, 20, .65));
  border: 1px solid rgba(183, 255, 21, .20);
  color: #eaf5df;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), 0 0 0 1px rgba(183, 255, 21, .06) inset;
}

.burger:hover {
  background: linear-gradient(to bottom, rgba(27, 31, 20, .95), rgba(27, 31, 20, .75));
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45), 0 0 0 1px rgba(183, 255, 21, .10) inset;
}

.burger:focus-visible {
  outline: 2px solid rgba(183, 255, 21, .65);
  outline-offset: 2px;
}

#mobileNav {
  display: none;
  position: absolute;
  inset: 70px 0 auto 0;
  background: linear-gradient(to bottom, rgba(25, 29, 19, .98), rgba(26, 33, 20, .98));
  border-bottom: 1px solid rgba(183, 255, 21, .18);
  color: #eaf5df;
}

#mobileNav.open {
  display: block;
}

#mobileNav .container {
  padding: 12px 24px 22px;
}

.m-item {
  width: 100%;
  display: block;
  padding: 14px 0;
  color: #eaf5df;
  border-top: 1px solid rgba(183, 255, 21, .12);
}

.m-item:hover {
  background: rgba(183, 255, 21, .08);
}

.m-accordion {
  width: 100%;
  background: transparent;
  border: 0;
  color: #eaf5df;
  font: inherit;
  padding: 14px 0;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid rgba(183, 255, 21, .12);
}

.m-accordion:hover {
  background: rgba(183, 255, 21, .08);
}

.m-accordion .caret {
  transition: transform .25s ease;
}

.m-accordion[aria-expanded="true"] .caret {
  transform: rotate(180deg);
}

.m-accordion:focus-visible {
  outline: 2px solid rgba(183, 255, 21, .65);
  outline-offset: 2px;
}

/* CHANGEMENT: couleurs sous-menu burger UNIQUEMENT */
.m-submenu {
  display: none;
  padding: 6px 0 10px 12px;
  background: transparent;
  /* pas de bleu */
}

.m-accordion[aria-expanded="true"]+.m-submenu {
  display: block;
}

.m-submenu a {
  display: block;
  padding: 10px 0;
  color: #eaf5df;
  opacity: .95;
  /* texte clair verdÃ¢tre */
}

.m-submenu a:hover {
  background: rgba(183, 255, 21, .10);
  /* halo vert au survol */
  color: #ffffff;
  opacity: 1;
}

.hero {
  padding: clamp(18px, 3vw, 48px) 0 40px;
  text-align: center;
}

.logo-hero {
  width: clamp(160px, 26vw, 420px);
  margin: 0 auto 48px auto;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, .35));
  transform-style: preserve-3d;
  will-change: transform;
}

/* Guillemets géants pour le slogan */
.lead-intro.slogan {
  position: relative;
}

.lead-intro.slogan::before,
.lead-intro.slogan::after {
  font-size: 2.2em;
  font-weight: 900;
  vertical-align: middle;
  color: #f3f4f2;
  font-family: serif;
  line-height: 0.5;
  position: relative;
  top: 0.08em;
}

.lead-intro.slogan::before {
  content: '“';
  margin-right: 0.08em;
}

.lead-intro.slogan::after {
  content: '”';
  margin-left: 0.08em;
}

.lead-intro.slogan span.small,
.lead-intro.slogan span.big {
  position: relative;
  z-index: 1;
}

.title-hero {
  width: clamp(290px, 88vw, 980px);
  margin: 0 auto;
  display: block;
}

.logo-anim {
  display: inline-block;
  animation: breathe 4s ease-in-out infinite;
  will-change: transform;
}

#logoWrap {
  position: relative;
  z-index: 10010;
  cursor: pointer;
}

@keyframes breathe {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.04);
  }

  100% {
    transform: scale(1);
  }
}

.reveal-up {
  opacity: 0;
  transform: translateY(16px);
}

.inview {
  opacity: 1 !important;
  transform: translateY(0) !important;
  transition: transform .8s cubic-bezier(.2, .8, .2, 1), opacity .8s ease-out;
}

.glow {
  animation: glowPulse 6.5s ease-in-out infinite;
}

@keyframes glowPulse {

  0%,
  100% {
    filter: drop-shadow(0 0 0 rgba(183, 255, 21, 0)) drop-shadow(0 0 0 rgba(183, 255, 21, 0));
  }

  50% {
    filter: drop-shadow(0 0 10px rgba(183, 255, 21, .45)) drop-shadow(0 0 22px rgba(183, 255, 21, .25));
  }
}


section {
  padding: 80px 0;
  scroll-margin-top: 75px;
}

.card-grid {
  display: grid;
  gap: 24px;
}

.card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
}

.card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .05);
  border-color: rgba(183, 255, 21, 0.2);
  box-shadow: var(--shadow-lg);
}

.card h3 {
  margin: 0 0 12px;
  font-size: 1.4rem;
  font-weight: 700;
}

.card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}

@media (max-width:1000px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width:640px) {
  .card-grid {
    grid-template-columns: 1fr;
  }
}

.leaf-canvas,
.page-overlay,
.parallax-layer,
.parallax-layer.l1,
.parallax-layer.l2 {
  pointer-events: none !important;
  z-index: 2 !important;
}

#fireflyCanvas {
  pointer-events: none !important;
  z-index: 1 !important;
}

.leaf-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent !important;
  border: 0;
  outline: none;
  display: block;
}

.page-overlay {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 781px;
  background-image: url('../images/leaves_Overlay.png');
  background-repeat: repeat-x;
  background-position: bottom center;
  background-size: auto 781px;
  transform: translateY(0);
  will-change: transform, background-size, background-position;
  animation: windMain 12s ease-in-out infinite;
}

.parallax-layer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('../images/leaves_Overlay.png');
  background-repeat: repeat-x;
  background-position: bottom center;
}

.parallax-layer.l1 {
  height: 520px;
  background-size: auto 520px;
  opacity: .22;
  animation: windL1 16s ease-in-out infinite;
  will-change: background-size, background-position, transform;
}

.parallax-layer.l2 {
  height: 360px;
  background-size: auto 360px;
  opacity: .16;
  animation: windL2 20s ease-in-out infinite;
  will-change: background-size, background-position, transform;
}

@keyframes windMain {

  0%,
  100% {
    background-size: auto 781px;
    background-position: center bottom;
  }

  50% {
    background-size: auto 860px;
    background-position: calc(50% + 24px) bottom;
  }
}

@keyframes windL1 {

  0%,
  100% {
    background-size: auto 520px;
    background-position: center bottom;
  }

  50% {
    background-size: auto 555px;
    background-position: calc(50% + 14px) bottom;
  }
}

@keyframes windL2 {

  0%,
  100% {
    background-size: auto 360px;
    background-position: center bottom;
  }

  50% {
    background-size: auto 390px;
    background-position: calc(50% + 10px) bottom;
  }
}

@media (prefers-reduced-motion:reduce) {

  .page-overlay,
  .parallax-layer,
  .logo-anim,
  .glow {
    animation: none !important;
  }
}

footer {
  color: var(--text);
  background: transparent;
  margin-top: 0;
  border-top: none;
  position: relative;
  overflow: visible;
}

.footer-wrap {
  display: grid;
  place-items: center;
  gap: 18px;
  padding: 22px 0 28px;
  position: relative;
  z-index: 1;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .6px;
  opacity: .9;
}

.footer-nav a {
  color: var(--text);
}

.lemon {
  color: var(--accent);
}

.legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  font-size: 14px;
  color: rgba(255, 255, 255, .75);
}

.legal a {
  color: rgba(255, 255, 255, .8);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.copy {
  width: 100%;
  font-size: 13px;
  color: rgba(255, 255, 255, .75);
  text-align: center;
}

.copy-line {
  display: inline;
}

@media (max-width: 768px) {
  .copy-line {
    display: block;
    width: 100%;
    margin-bottom: 4px;
    text-align: center;
  }

  .sound-toggle {
    right: 24px !important;
    bottom: 24px !important;
  }
}

@media (min-width: 769px) {
  .copy-line:not(:last-child)::after {
    content: " - ";
    opacity: 0.5;
  }
}

/* GouttiÃ¨res pour le menu mobile (burger) */
@media (max-width: 900px) {

  /* Ligne "Jeux" (accordÃ©on) : fond inset + espace interne */
  #mobileNav .m-accordion {
    margin: 0 12px;
    /* dÃ©crochage gauche/droite */
    padding: 14px 12px;
    /* espace autour du texte/caret */
    border-radius: 8px;
  }

  #mobileNav .m-accordion:hover {
    background: rgba(183, 255, 21, .10);
  }

  /* Items simples (Studio / Contact) pour cohÃ©rence visuelle */
  #mobileNav .m-item {
    margin: 0 12px;
    padding: 14px 12px;
    border-radius: 8px;
  }

  #mobileNav .m-item:hover {
    background: rgba(183, 255, 21, .10);
  }

  /* Liens du sous-menu "Jeux" */
  #mobileNav .m-submenu {
    padding: 6px 0 10px;
  }

  /* pas de padding latÃ©ral ici */
  #mobileNav .m-submenu a {
    margin: 0 12px;
    /* dÃ©crochage L/R */
    padding: 10px 12px;
    /* espace intÃ©rieur */
    border-radius: 8px;
  }

  #mobileNav .m-submenu a:hover {
    background: rgba(183, 255, 21, .10);
  }
}



/* ===== Games (Derniere apps mise en avant) ===== */
#games {
  position: relative;
  padding: clamp(40px, 6vw, 84px) 0;
  scroll-margin-top: 140px;
  /* Offset the anchor significantly so Applications clears the topbar */
}

#games .games-wrap {
  position: relative;
  isolation: isolate;
}

#games .games-head {
  margin-bottom: clamp(18px, 3vw, 26px);
}

#games .games-eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: .78rem;
  opacity: .8;
}

#games .games-title {
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.1;
  margin: .25rem 0 .5rem;
}

#games .games-lead {
  color: var(--muted);
  margin: 0;
  font-size: 16px;
}

.games-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 20px;
  /* espace supplémentaire autour de l'icône et du titre */
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  /* style app icon iOS */
  object-fit: cover;
}

#games .feature {
  display: grid;
  grid-template-columns: minmax(300px, 46%) minmax(300px, 1fr);
  gap: clamp(16px, 3vw, 28px);
  align-items: center;
}

#games .info {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

#games .pitch {
  color: #e6efd9;
  opacity: .95;
  font-size: 16px;
}

#games .cta {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 12px;
  font-weight: 800;
  letter-spacing: .3px;
  background: linear-gradient(to bottom right, rgba(183, 255, 21, .32), rgba(92, 255, 165, .28));
  border: 1px solid rgba(183, 255, 21, .35);
  box-shadow: 0 6px 24px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

#games .cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

#games .cta:active {
  transform: translateY(0);
}

/* ===== Apps ===== */

#games .feature {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

@media (max-width:900px) {
  #games .feature {
    grid-template-columns: 1fr;
  }

  #games .media {
    order: 2;
  }
}

#games .media {
  display: flex;
  justify-content: center;
}

/* Card Styles */
.card,
.feat-card {
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: var(--radius);
  padding: 32px;
  transition: var(--transition);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
  --shine-x: 50%;
}

.card:hover,
.feat-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, .05);
  border-color: rgba(183, 255, 21, 0.22);
  box-shadow: var(--shadow-lg);
}

/* Spotlight Shine Effect */
.card::after,
.feat-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle 250px at var(--shine-x, 50%) 50%, rgba(183, 255, 21, 0.04), transparent);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.card:hover::after,
.feat-card:hover::after {
  opacity: 1;
}

.feat-card .feat-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  background: rgba(255, 255, 255, .05);
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 255, 255, .08);
  transition: var(--transition);
}

.feat-card:hover .feat-icon {
  background: rgba(183, 255, 21, .15);
  border-color: var(--accent);
  color: var(--accent);
  transform: scale(1.1);
}

.feat-card .feat-icon svg {
  width: 22px;
  height: 22px;
  stroke: var(--accent);
  stroke-width: 2;
  fill: none;
}

#games .shot-card {
  --base-rot: -6deg;

  position: relative;
  width: clamp(260px, 45vw, 280px);
  aspect-ratio: 9/16;

  padding: 14px;
  box-sizing: border-box;

  border-radius: 28px;
  background: linear-gradient(180deg,
      rgba(255, 255, 255, .06),
      rgba(255, 255, 255, .03));
  border: 1px solid rgba(183, 255, 21, .16);

  overflow: hidden;
  cursor: pointer;
}

@keyframes floating {

  0%,
  100% {
    transform: translateY(0) rotate(var(--base-rot, 0deg));
  }

  50% {
    transform: translateY(-12px) rotate(calc(var(--base-rot, 0deg) + 0.5deg));
  }
}

#games .shot-card,
.trailer-card,
.phone-holder {
  --base-rot: 0deg;
  animation: floating 6s ease-in-out infinite;
}

#games .shot-card:hover,
.trailer-card:hover,
.phone-holder:hover {
  animation-play-state: paused;
}

/* Hover shine */
#games .shot-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(500px 140px at var(--shine-x, 20%) -20%,
      rgba(183, 255, 21, .18),
      transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

#games .shot-card:hover::after {
  opacity: 1;
}

/* Inner frame */
#games .shot-inner {
  width: 100%;
  height: 100%;
  border-radius: 20px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #000;
}

/* Image (fixed visual size) */
#games .shot {

  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;

  border-radius: 20px;
  /* important */

  filter:
    saturate(1.06) contrast(1.02) brightness(0.96);
}

/* Badge */
#games .shot-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;

  padding: 6px 10px;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 800;

  background: rgba(27, 31, 20, .75);
  border: 1px solid rgba(183, 255, 21, .28);
}

/* Phone notch */
#games .phone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);

  width: 34%;
  height: 14px;
  border-bottom-left-radius: 12px;
  border-bottom-right-radius: 12px;

  background: rgba(0, 0, 0, .55);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .05) inset;
  pointer-events: none;
}

/* ===== Responsive ===== */

@media (max-width:900px) {
  #games .shot-card {
    max-width: 300px;
    margin-inline: auto;
    transform: rotate(-3deg);
  }
}

/* ===== /Apps ===== */


/* ===== Games: simple diagonal lemon text ===== */
#games .new-diag {
  display: inline-block;
  color: var(--accent);
  font-weight: 900;
  /* bigger size for visibility (Option 2) */
  font-size: clamp(1.1rem, 2.4vw, 1.6rem);
  transform: rotate(-18deg);
  transform-origin: left center;
  margin: 20px 0 12px 2px;
  line-height: 1;
  letter-spacing: .02em;
  text-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  filter: drop-shadow(0 2px 8px rgba(183, 255, 21, .18));
}

@media (max-width: 768px) {
  #games .new-diag {
    font-size: clamp(1rem, 2.8vw, 1.35rem);
    transform: rotate(-16deg) scale(1);
    margin-bottom: 10px;
  }
}

/* ===== /diagonal lemon ===== */


/* ===== Games: mobile order fix â€” text first, image second ===== */
@media (max-width: 768px) {
  #games .feature {
    display: grid;
  }

  #games .info {
    order: 1;
  }

  #games .media {
    order: 2;
  }
}

/* ===== /mobile order fix ===== */


/* ===== Overrides: remove section gradient backgrounds for Games + Contact ===== */
#games,
#games .games-wrap,
#games .games-head {
  background: none !important;
}

/* If any decorative gradient element exists, hide it */
#games .games-bg,
#games .bg,
#games .decor,
#games .glow {
  display: none !important;
}

/* Contact: remove the soft gradient halo */
#contact .ctc-bg {
  display: none !important;
  background: none !important;
}

/* Optionally neutralize card gradient if you prefer flat look: (commented by default)
#contact .ctc-card{ background: rgba(27,31,20,.65) !important; }
*/
/* ===== /Overrides ===== */


/* ===== Contact: make cards flat (no gradient) ===== */
#contact .ctc-card {
  background: rgba(27, 31, 20, .58) !important;
  border: 1px solid rgba(183, 255, 21, .16) !important;
  box-shadow: 0 6px 22px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .03) !important;
}

#contact .ctc-card::after {
  display: none !important;
}

/* remove shine sweep */
/* ===== /flat cards ===== */


/* ===== Contact: remove header background/gradient box entirely ===== */
#contact,
#contact .container,
#contact .ctc-wrap,
#contact .ctc-head {
  background: none !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

#contact .ctc-head::before,
#contact .ctc-head::after,
#contact h2::before,
#contact h2::after {
  content: none !important;
  display: none !important;
}

/* Also ensure any accidental gradient overlay elements are hidden */
#contact .bg,
#contact .decor,
#contact .overlay {
  display: none !important;
}

/* ===== /remove header bg ===== */

/* ===== Contact (scoped) ===== */
#contact {
  position: relative;
  padding: clamp(40px, 6vw, 80px) 0;
}

#contact .ctc-wrap {
  position: relative;
  isolation: isolate;
}

#contact .ctc-head {
  text-align: center;
  margin-bottom: clamp(20px, 3vw, 30px);
}

#contact .ctc-bg {
  position: absolute;
  inset: -10% -5% -15%;
  z-index: -1;
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(183, 255, 21, .15), transparent 60%),
    radial-gradient(1000px 480px at 110% 10%, rgba(92, 255, 165, .12), transparent 60%),
    linear-gradient(to bottom, rgba(60, 67, 48, .35), rgba(60, 67, 48, 0));
  filter: blur(10px) saturate(110%);
  pointer-events: none;
}

#contact .ctc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}

#contact .ctc-card {
  position: relative;
  grid-column: span 6;
  display: flex;
  gap: 16px;
  align-items: center;
  padding: clamp(16px, 2.5vw, 22px);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(27, 31, 20, .7), rgba(42, 47, 31, .6));
  border: 1px solid rgba(183, 255, 21, .18);
  box-shadow: 0 6px 30px rgba(0, 0, 0, .25), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  overflow: hidden;
}

#contact .ctc-card::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: radial-gradient(400px 120px at var(--shine-x, 20%) -20%, rgba(183, 255, 21, .15), transparent 60%);
  opacity: .0;
  transition: opacity .2s ease;
  pointer-events: none;
}

#contact .ctc-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, .35);
}

#contact .ctc-card:hover::after {
  opacity: .9;
}

#contact .ctc-email {
  text-decoration: none;
  color: inherit;
}

#contact .ctc-icon {
  flex: 0 0 48px;
  height: 48px;
  width: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(183, 255, 21, .12);
  border: 1px solid rgba(183, 255, 21, .25);
}

#contact .ctc-icon svg {
  width: 26px;
  height: 26px;
  fill: #d5ff7a;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}

#contact .ctc-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

#contact .ctc-eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .72rem;
  opacity: .8;
}

#contact .ctc-address {
  font-size: clamp(1rem, 2.2vw, 1.25rem);
  font-weight: 600;
}

#contact .ctc-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

#contact .ctc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 12px;
  background: linear-gradient(to bottom right, rgba(183, 255, 21, .3), rgba(92, 255, 165, .28));
  border: 1px solid rgba(183, 255, 21, .35);
  font-weight: 600;
}

#contact .ctc-copy {
  appearance: none;
  border: none;
  background: transparent;
  color: #b7ff15;
  font-weight: 600;
  cursor: pointer;
}

#contact .ctc-copy:hover {
  text-decoration: underline;
}

#contact .ctc-form {
  grid-column: span 6;
}

#contact .ctc-form-el {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
}

#contact .ctc-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

#contact .ctc-label span {
  font-size: .9rem;
  opacity: .8;
}

#contact .ctc-input,
#contact .ctc-textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(183, 255, 21, .22);
  background: rgba(27, 31, 20, .55);
  color: inherit;
  outline: none;
  transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}

#contact .ctc-input:focus,
#contact .ctc-textarea:focus {
  border-color: rgba(183, 255, 21, .55);
  box-shadow: 0 0 0 3px rgba(183, 255, 21, .18);
  background: rgba(27, 31, 20, .7);
}

#contact .ctc-submit {
  align-self: flex-start;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(183, 255, 21, .35);
  background: linear-gradient(to bottom right, rgba(183, 255, 21, .35), rgba(92, 255, 165, .3));
  font-weight: 700;
  cursor: pointer;
  transition: transform .15s ease;
}

#contact .ctc-submit:active {
  transform: translateY(1px);
}

#contact .ctc-hint {
  font-size: .85rem;
  opacity: .7;
}

@media (max-width: 860px) {

  #contact .ctc-card,
  #contact .ctc-form {
    grid-column: 1 / -1;
  }

  #contact .ctc-icon {
    flex-basis: 44px;
    height: 44px;
    width: 44px;
  }
}

/* ===== /Contact ===== */

#contact .ctc-address-lines {
  line-height: 1.5;
}

#contact .ctc-field {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
}

#contact .ctc-ico-mini {
  flex: 0 0 28px;
  height: 28px;
  width: 28px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: rgba(183, 255, 21, .12);
  border: 1px solid rgba(183, 255, 21, .25);
}

#contact .ctc-ico-mini svg {
  width: 16px;
  height: 16px;
  fill: #d5ff7a;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}

#contact .ctc-mail {
  text-decoration: none;
  font-weight: 600;
}

#contact .ctc-mail:hover {
  text-decoration: underline;
}

/* Professional address card layout */
#contact .ctc-loc {
  padding: clamp(18px, 2.2vw, 24px);
}

#contact .ctc-loc-grid {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 18px;
  align-items: flex-start;
}

#contact .ctc-pin {
  height: 56px;
  width: 56px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(183, 255, 21, .10);
  border: 1px solid rgba(183, 255, 21, .22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05);
}

#contact .ctc-pin svg {
  width: 22px;
  height: 22px;
  fill: #d5ff7a;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}

#contact .ctc-loc-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

#contact .ctc-address-block {
  font-style: normal;
  line-height: 1.6;
}

#contact .ctc-org {
  font-size: 1.02rem;
  letter-spacing: .2px;
}

#contact .ctc-org {
  color: var(--accent);
}

#contact .ctc-divider {
  height: 1px;
  width: 100%;
  background: linear-gradient(90deg, rgba(183, 255, 21, .0), rgba(183, 255, 21, .25), rgba(183, 255, 21, .0));
  margin: 6px 0 4px;
  opacity: .8;
}

@media (max-width: 520px) {
  #contact .ctc-loc-grid {
    grid-template-columns: 48px 1fr;
    gap: 14px;
  }

  #contact .ctc-pin {
    height: 48px;
    width: 48px;
    border-radius: 12px;
  }
}

/* Grid fix: address + form side by side */
#contact .ctc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(12px, 2vw, 20px);
  align-items: stretch;
}

#contact .ctc-card,
#contact .ctc-form {
  grid-column: auto;
}

@media (max-width: 860px) {
  #contact .ctc-grid {
    grid-template-columns: 1fr;
  }
}

/* Force two columns: cancel legacy 12-col spans */
#contact .ctc-grid>.ctc-card {
  grid-column: auto !important;
}

#contact .ctc-grid>.ctc-form {
  grid-column: auto !important;
}

/* === FINAL OVERRIDE: two columns desktop (40/60), single column under 900px === */
#contact .ctc-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, 42%) minmax(360px, 1fr) !important;
  gap: clamp(14px, 2vw, 24px) !important;
  align-items: start !important;
}

#contact .ctc-grid>.ctc-card,
#contact .ctc-grid>.ctc-form {
  grid-column: auto !important;
}

@media (max-width: 900px) {
  #contact .ctc-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Two columns, equal height */
#contact .ctc-grid {
  display: grid !important;
  grid-template-columns: minmax(300px, 42%) minmax(360px, 1fr) !important;
  grid-auto-rows: 1fr !important;
  align-items: stretch !important;
}

#contact .ctc-grid>.ctc-card,
#contact .ctc-grid>.ctc-form {
  height: 100% !important;
}

#contact .ctc-form-el {
  height: 100%;
  display: flex;
  flex-direction: column;
}

#contact .ctc-form-el .ctc-textarea {
  flex: 1 1 auto;
}

#contact .ctc-social {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 12px;
}

#contact .ctc-social-link {
  display: grid;
  place-items: center;
  height: 36px;
  width: 36px;
  border-radius: 10px;
  border: 1px solid rgba(183, 255, 21, .28);
  background: rgba(183, 255, 21, .08);
  transition: transform .15s ease, border-color .15s ease, background .15s ease;
}

#contact .ctc-social-link:hover {
  transform: translateY(-1px);
  border-color: rgba(183, 255, 21, .5);
  background: rgba(183, 255, 21, .12);
}

#contact .ctc-social-link svg {
  width: 18px;
  height: 18px;
  fill: #d5ff7a;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .25));
}

/* ======= MOBILE FIX (adresse + email empilÃ©s) ======= */
@media (max-width: 900px) {

  /* La grille Contact passe en 1 colonne, hauteurs auto */
  #contact .ctc-grid {
    grid-template-columns: 1fr !important;
    grid-auto-rows: auto !important;
    align-items: stretch !important;
  }

  /* On Ã©vite les hauteurs forcÃ©es en mobile */
  #contact .ctc-grid>.ctc-card,
  #contact .ctc-grid>.ctc-form {
    height: auto !important;
  }

}

/* ======= /MOBILE FIX ======= */

/* a11y: visually hidden but accessible */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}


/* Helper: render \n as line breaks without HTML */
.i18n-preline {
  white-space: pre-line;
}



/* === Language Switch (restored) === */
header .lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-left: 12px;
}

header .lang-switch .lang-btn {
  -webkit-appearance: none;
  appearance: none;
  border: 1px solid rgba(183, 255, 21, .25);
  background: linear-gradient(to bottom, rgba(27, 31, 20, .88), rgba(27, 31, 20, .68));
  color: #eaf5df;
  padding: 8px 12px;
  border-radius: 10px;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer;
}

header .lang-switch .lang-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
}

header .lang-switch .lang-btn.is-active,
header .lang-switch .lang-btn[aria-pressed="true"] {
  border-color: rgba(183, 255, 21, .55);
  box-shadow: 0 0 0 3px rgba(183, 255, 21, .18), 0 6px 18px rgba(0, 0, 0, .45);
  background: linear-gradient(to bottom, rgba(27, 31, 20, .96), rgba(27, 31, 20, .78));
}

@media (max-width:560px) {
  header .lang-switch {
    margin-left: 8px;
  }

  header .lang-switch .lang-btn {
    padding: 6px 10px;
  }
}

.brand-logo {
  height: 42px !important;
  /* change Ã  40px/32px si tu prÃ©fÃ¨res */
  width: auto !important;
}

/* Hide brand title on small screens; keep logo size */
@media (max-width: 700px) {
  .brand-title {
    display: none !important;
  }
}

/* Boutons de langue + Retour: mÃªme taille */
header .lang-switch {
  display: flex;
  gap: 8px;
  align-items: center;
}

header .lang-switch .lang-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  /* hauteur unique pour tous (FR/EN/Retour) */
  padding: 0 10px;
  /* mÃªme padding que FR/EN */
  line-height: 1;
  /* Ã©vite de gonfler le bouton */
  font-size: 14px;
  /* idem FR/EN */
  box-sizing: border-box;
}

header .lang-switch .back-btn svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  margin-right: 6px;
}

/* Sur petit Ã©cran: on masque le texte "Retour" pour obtenir EXACTEMENT la mÃªme largeur quâ€™un bouton FR/EN */
@media (max-width:700px) {
  header .lang-switch .back-btn .back-txt {
    display: none;
  }

  header .lang-switch .back-btn {
    padding: 0 10px;
  }

  /* identique FR/EN */
}

/* Game page: no burger on mobile */
@media (max-width:950px) {
  body[data-page="game"] .burger {
    display: none !important;
  }

  body[data-page="game"] #mobileNav {
    display: none !important;
  }

  /* petit ajustement d'espacement Ã  droite si le burger n'existe plus */
  body[data-page="game"] header .nav {
    gap: 12px;
  }
}

/* ===== Page jeu : hero clean, comme lâ€™index ===== */
body[data-page="game"] .hero-razor {
  padding: 72px 0 24px;
  position: relative;
}

body[data-page="game"] .hero-razor .hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 640px) 520px;
  /* texte / visuel */
  gap: 48px;
  align-items: center;
}

body[data-page="game"] .hero-razor .hero-text {
  max-width: 68ch;
  text-align: left;
}

body[data-page="game"] .hero-razor .hero-eyebrow {
  letter-spacing: .12em;
  text-transform: uppercase;
  opacity: .85;
  margin: 0 0 8px;
  display: inline-block;
  position: relative;
  padding-bottom: 6px;
}

body[data-page="game"] .hero-razor .hero-eyebrow::after {
  content: "";
  display: block;
  height: 1px;
  width: 100%;
  margin-top: 6px;
  background: linear-gradient(to right, rgba(183, 255, 21, .55), transparent 65%);
  opacity: .65;
}

body[data-page="game"] .hero-razor .hero-lead {
  margin: 6px 0 18px;
  opacity: .9;
}

/* Visuel Ã  droite : taille maÃ®trisÃ©e, rendu premium */
body[data-page="game"] .hero-razor .hero-visual {
  justify-self: end;
}

body[data-page="game"] .phone-wrap {
  width: 320px;
  /* borne max desktop */
  aspect-ratio: 9 / 16;
  /* format portrait */
  border-radius: 28px;
  padding: 14px;
  background: rgba(25, 20, 12, .9);
  /* fausse bordure â€œcoqueâ€ */
  box-shadow:
    0 18px 60px rgba(0, 0, 0, .55),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  transform: rotate(-4deg);
  position: relative;
  overflow: hidden;
}

body[data-page="game"] .phone-wrap::after {
  content: "";
  position: absolute;
  inset: -6% -10%;
  background: radial-gradient(40% 40% at 55% 55%, rgba(183, 255, 21, .10), transparent 70%);
  filter: blur(16px);
  pointer-events: none;
}

body[data-page="game"] .phone-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

/* Breakpoints : descend en souplesse, jamais trop grand */
@media (max-width: 1280px) {
  body[data-page="game"] .hero-razor .hero-grid {
    grid-template-columns: minmax(0, 600px) 460px;
    gap: 40px;
  }

  body[data-page="game"] .phone-wrap {
    width: 460px;
  }
}

@media (max-width: 1060px) {
  body[data-page="game"] .hero-razor .hero-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  body[data-page="game"] .hero-razor .hero-text {
    max-width: 72ch;
  }

  body[data-page="game"] .hero-razor .hero-visual {
    justify-self: center;
  }

  body[data-page="game"] .phone-wrap {
    transform: none;
    width: min(440px, 92vw);
    /* compact en mobile/tablette */
  }
}

/* ===== Razor Relic : taille visuel contrÃ´lÃ©e par variable ===== */
body[data-page="game"] {
  --hero-phone-width: 520px;
  /* â‡¦ change cette valeur quand tu veux */
  --hero-phone-rotate: -4deg;
}

body[data-page="game"] .hero-razor .phone-wrap {
  width: var(--hero-phone-width);
  transform: rotate(var(--hero-phone-rotate));
}

/* Petits Ã©crans : plafonne proprement mais garde ta variable en base */
@media (max-width: 1060px) {
  body[data-page="game"] .hero-razor .phone-wrap {
    width: min(calc(var(--hero-phone-width) - 60px), 92vw);
    transform: none;
  }
}

/* ===== Page jeu : galerie en cartes animÃ©es ===== */
body[data-page="game"] .shots-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 1100px) {
  body[data-page="game"] .shots-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  body[data-page="game"] .shots-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="game"] .shot-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transform-style: preserve-3d;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  cursor: pointer;
  isolation: isolate;
}

/* Ratio homogÃ¨ne + recadrage propre */
body[data-page="game"] .shot-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
  transform: translateZ(0);
  transition: transform .35s ease, filter .35s ease;
}

/* LÃ©gÃ¨re Ã©tiquette/titre dessous */
body[data-page="game"] .shot-card figcaption {
  padding: 8px 10px 10px;
  font-size: .82rem;
  color: #cfe5b2;
  opacity: .9;
}

/* Hover / focus : soulÃ¨vement + zoom doux + glow */
body[data-page="game"] .shot-card:hover,
body[data-page="game"] .shot-card:focus-within {
  transform: translateY(-6px) rotateX(1deg) rotateY(.5deg);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  border-color: rgba(183, 255, 21, .25);
}

body[data-page="game"] .shot-card:hover img,
body[data-page="game"] .shot-card:focus-within img {
  transform: scale(1.04);
  filter: saturate(1.08) contrast(1.04);
}

/* Reflet diagonal subtil au survol */
body[data-page="game"] .shot-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .08) 45%, transparent 60%);
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  transform: translateX(-15%);
}

body[data-page="game"] .shot-card:hover::after {
  opacity: 1;
  transform: translateX(10%);
}

/* AccessibilitÃ© : rÃ©duire lâ€™animation si lâ€™utilisateur le demande */
@media (prefers-reduced-motion: reduce) {

  body[data-page="game"] .shot-card,
  body[data-page="game"] .shot-card img,
  body[data-page="game"] .shot-card::after {
    transition: none;
  }
}

/* ===== Page jeu : Lightbox desktop ===== */
body[data-page="game"] .lb {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  place-items: center;
  background: rgba(0, 0, 0, .75);
}

body[data-page="game"] .lb.open {
  display: grid;
}

body[data-page="game"] .lb-img {
  max-width: 88vw;
  max-height: 86vh;
  border-radius: 16px;
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
}

body[data-page="game"] .lb-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid rgba(183, 255, 21, .35);
  background: rgba(27, 31, 20, .9);
  color: #eaf5df;
  font-weight: 700;
  font-size: 20px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .45);
  cursor: pointer;
}

body[data-page="game"] .lb-prev {
  left: 32px;
}

body[data-page="game"] .lb-next {
  right: 32px;
}

body[data-page="game"] .lb-close {
  top: 32px;
  right: 32px;
  transform: none;
}

@media (max-width: 900px),
(hover: none),
(pointer: coarse) {

  /* pas de lightbox sur mobile / touch */
  body[data-page="game"] .lb {
    display: none !important;
  }
}

/* DÃ©caler le bouton Fermer sous le header */
body[data-page="game"] .lb {
  --header-h: 0px;
}

body[data-page="game"] .lb-close {
  top: calc(var(--header-h) + 12px);
  /* 12px de marge sous le header */
  right: 32px;
}


@media (min-width: 901px) {

  body[data-page="game"] .lb-prev,
  body[data-page="game"] .lb-next {
    top: calc(max(50%, var(--header-h)));
    transform: translateY(-50%);
  }
}

/* ===== Page jeu : carte trailer ===== */
body[data-page="game"] .trailer-sec {
  padding-top: 12px;
}

body[data-page="game"] .trailer-card {
  width: min(100%, 700px);
  margin: 10px auto 0;
  padding: 14px;
  box-sizing: border-box;
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(27, 31, 20, .92), rgba(27, 31, 20, .74));
  border: 1px solid rgba(183, 255, 21, .22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
}

body[data-page="game"] .trailer-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
  background: #000;
  object-fit: cover;
  object-position: center;
}

body[data-page="game"] .trailer-cap {
  text-align: center;
  font-size: .9rem;
  opacity: .85;
  margin-top: 8px;
}

/* Mobile: garde le ratio et la lisibilitÃ© */
@media (max-width: 700px) {
  body[data-page="game"] .trailer-video {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ===== Page jeu : Section TÃ©lÃ©chargement ===== */
body[data-page="game"] .download-sec {
  padding-top: 8px;
}

/* ===== Page jeu : Section CaractÃ©ristiques ===== */
body[data-page="game"] .apparto-features {
  padding-top: 18px;
}

body[data-page="game"] .apparto-features h2 {
  margin-bottom: 18px;
}

body[data-page="game"] .feat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

body[data-page="game"] .feat-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 100%;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(27, 31, 20, .92), rgba(27, 31, 20, .76));
  border: 1px solid rgba(183, 255, 21, .20);
  box-shadow: 0 10px 28px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(255, 255, 255, .04);
}

body[data-page="game"] .feat-card h3 {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.3;
  color: var(--accent);
}

body[data-page="game"] .feat-card p {
  margin: 0;
  color: rgba(234, 245, 223, .92);
  font-size: .88rem;
  line-height: 1.45;
}

body[data-page="game"] .feat-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .22);
  background: rgba(255, 255, 255, .03);
  color: #fff;
}

body[data-page="game"] .feat-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1060px) {
  body[data-page="game"] .feat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body[data-page="game"] .feat-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="game"] .dl-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

@media (max-width: 900px) {
  body[data-page="game"] .dl-grid {
    grid-template-columns: 1fr;
  }
}

body[data-page="game"] .dl-card {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(to bottom, rgba(27, 31, 20, .92), rgba(27, 31, 20, .76));
  border: 1px solid rgba(183, 255, 21, .22);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .04);
  text-decoration: none;
  color: inherit;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}

body[data-page="game"] .dl-card:hover {
  transform: translateY(-4px);
  border-color: rgba(183, 255, 21, .35);
  box-shadow: 0 18px 46px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .05);
}

body[data-page="game"] .dl-info h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

body[data-page="game"] .dl-info p {
  margin: 0 0 10px;
  opacity: .92;
}

body[data-page="game"] .dl-badge {
  height: 50px;
  width: auto;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, .35));
}

body[data-page="game"] .dl-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 108px;
}

body[data-page="game"] .dl-qr-img {
  width: 100px;
  height: 100px;
  object-fit: cover;
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(183, 255, 21, .25);
}

body[data-page="game"] .dl-qr-cap {
  font-size: .75rem;
  opacity: .75;
  text-align: center;
  max-width: 120px;
}

/* RÃ©duction lÃ©gÃ¨re en petits Ã©crans */
@media (max-width: 700px) {
  body[data-page="game"] .dl-badge {
    height: 32px;
  }

  body[data-page="game"] .dl-qr {
    min-width: 96px;
  }

  body[data-page="game"] .dl-qr-img {
    width: 90px;
    height: 90px;
  }
}

/* QR sans bordure / cadre dans la section TÃ©lÃ©chargement */
body[data-page="game"] .dl-qr-img {
  width: 110px;
  height: 110px;
  /* ajuste si besoin */
  display: block;
  background: transparent;
  /* plus de fond ajoutÃ© */
  border: none;
  /* supprime la bordure */
  border-radius: 0;
  /* pas d'arrondi */
  box-shadow: none;
  /* pas dâ€™ombre CSS */
  padding: 0;
  /* pas de marge interne */
}

body[data-page="game"] .dl-qr {
  align-items: center;
  /* bien centrÃ© verticalement */
}

/* ===== Taille des vignettes (captures) ===== */
body[data-page="game"] {
  --shot-min: 180px;
  /* largeur mini compacte */
  --shot-max: 300px;
  /* largeur max demandÃ©e */
  --shot-gap: 12px;
  /* espace entre les cartes */
}

/* remplace ta rÃ¨gle .shots-grid existante par celle-ci */
body[data-page="game"] .shots-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--shot-min), var(--shot-max)));
  gap: var(--shot-gap);
  align-items: stretch;
  justify-content: center;
}

/* Carte compacte: ne dÃ©passe jamais 300px */
body[data-page="game"] .shot-card {
  width: 100%;
  max-width: var(--shot-max);
  margin-inline: auto;
}

/* La vignette garde son ratio + coins arrondis dans la carte */
body[data-page="game"] .shot-card img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  display: block;
  border-radius: 12px;
}

/* ===== HERO PHONE â€” taille, position et ROTATION pilotables ===== */

body[data-page="game"] .phone-holder {
  transform: translate(var(--holder-x, 0px), var(--holder-y, 0px));
}

body[data-page="game"] .phone-wrap {
  --phoneL-width: 720px;
  --phoneL-radius: 26px;
  --bezel: 12px;
  --phone-aspect: 16/9;

  --phone-scale: 1;
  /* desktop */
  --phone-tilt: 12deg;
  /* desktop */
  --tx: 0px;
  --ty: 0px;

  width: clamp(280px, var(--phoneL-width), 92vw);
  aspect-ratio: var(--phone-aspect);
  padding: var(--bezel);
  border-radius: calc(var(--phoneL-radius) + var(--bezel));
  background: rgba(25, 20, 12, .92);
  border: 1px solid rgba(183, 255, 21, .30);
  box-shadow: 0 18px 60px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06);
  transform:
    translate(var(--tx), var(--ty)) rotate(var(--phone-tilt)) scale(var(--phone-scale)) !important;
  transform-origin: center;
  margin-inline: auto;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

body[data-page="game"] .phone-media {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: var(--media-fit, contain);
  object-position: center;
  background: #000;
  transform: rotate(var(--media-rotate, 0deg)) scale(var(--media-scale, 1));
  transform-origin: center;
  border-radius: var(--phoneL-radius);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06);
}

body[data-page="game"] .phone-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, rgba(255, 255, 255, .05), transparent 40%);
  pointer-events: none;
}

body[data-page="game"] .phone-video {
  display: block;
}

body[data-page="game"] .phone-img {
  display: none;
}

@media (min-width:1061px) {

  body[data-page="game"] .hero-visual,
  body[data-page="game"] .phone-holder {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: visible;
  }

  body[data-page="game"] .hero-visual>*,
  body[data-page="game"] .phone-holder>* {
    flex: 0 0 auto !important;
  }

  body[data-page="game"] .phone-wrap {
    width: var(--phoneL-width) !important;
    max-width: none !important;
  }
}

/* ===== Mobile : largeur 100% et tilt forcÃ© Ã  0Â°, mÃªme si inline ===== */
@media (max-width:1060px) {
  body[data-page="game"] {
    overflow-x: hidden;
  }

  body[data-page="game"] .phone-wrap {
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px;
    border-radius: calc(var(--phoneL-radius) + 10px);

    /* â¬‡ï¸ on ne dÃ©pend PAS de la variable ici : on force le transform */
    transform: translate(0, 0) rotate(0deg) scale(1) !important;

    /* on neutralise aussi les offsets Ã©ventuels */
    --tx: 0px;
    --ty: 0px;
  }

  /* Si tu prÃ©fÃ¨res que la vidÃ©o reste active en mobile, commente ces 2 lignes */
  body[data-page="game"] .phone-video {
    display: none;
  }

  body[data-page="game"] .phone-img {
    display: block;
  }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="game"] .phone-video {
    display: none !important;
  }

  body[data-page="game"] .phone-img {
    display: block !important;
  }
}

/* Screenshots : 1 attribut pour le ratio */
body[data-page="game"] .shots {
  --shot-ratio: 16/9;
}

body[data-page="game"] .shots[data-shots="portrait"] {
  --shot-ratio: 9/16;
}

body[data-page="game"] .shot-card img {
  aspect-ratio: var(--shot-ratio);
}

body[data-page="game"] .shots[data-shots="portrait"] .shot-card img {
  object-fit: contain;
  background: rgba(0, 0, 0, .35);
}

body[data-page="game"] .shots[data-shots="portrait"] .shot-card:hover img,
body[data-page="game"] .shots[data-shots="portrait"] .shot-card:focus-within img {
  transform: none;
}

/* Portrait: limiter la hauteur visuelle des captures */
body[data-page="game"] .shots[data-shots="portrait"] .shot-card img {
  max-height: 300px;
  width: auto;
  max-width: 100%;
  aspect-ratio: auto;
  margin-inline: auto;
}

/* Portrait: cartes plus Ã©troites et harmonisÃ©es avec l'image */
body[data-page="game"] .shots[data-shots="portrait"] .shots-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 220px));
  justify-content: center;
  gap: 14px;
}

body[data-page="game"] .shots[data-shots="portrait"] .shot-card {
  max-width: 220px;
  padding: 10px;
}

body[data-page="game"] .shots[data-shots="portrait"] .shot-card figcaption {
  padding: 8px 6px 6px;
}

/* Bouton son flottant */
.sound-toggle {
  position: fixed;
  right: 32px;
  bottom: 32px;
  z-index: 12000;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: rgba(30, 40, 10, 0.72);
  border: none;
  box-shadow: 0 0 16px 2px #b7ff1533, 0 0 0 0 #b7ff1511;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  outline: none;
  transition: box-shadow 0.3s, background 0.3s;
  animation: sound-glow 2.2s infinite alternate;
}

.sound-toggle:hover,
.sound-toggle:focus {
  background: rgba(30, 40, 10, 0.92);
  box-shadow: 0 0 32px 6px #b7ff15cc, 0 0 0 0 #b7ff1511;
}

@keyframes sound-glow {
  0% {
    box-shadow: 0 0 16px 2px #b7ff1533, 0 0 0 0 #b7ff1511;
  }

  50% {
    box-shadow: 0 0 28px 8px #b7ff15aa, 0 0 0 0 #b7ff1511;
  }

  100% {
    box-shadow: 0 0 16px 2px #b7ff1533, 0 0 0 0 #b7ff1511;
  }
}

.icon-sound {
  position: relative;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.icon-sound svg {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  display: block;
  filter: drop-shadow(0 0 4px #b7ff1533);
  transition: opacity 0.3s;
  pointer-events: none;
}

.icon-sound .icon-on {
  opacity: 1;
  z-index: 1;
}

.icon-sound .icon-off {
  opacity: 0;
  z-index: 2;
}

.sound-toggle.sound-off .icon-on {
  opacity: 0;
}

.sound-toggle.sound-off .icon-off {
  opacity: 1;
}

/* ========================================================================= */
/* ===================== EFFET "WHOUA" : EXPLOSION CENTRIFUGE ================== */
/* ========================================================================= */

body.centrifugal-animating header,
body.centrifugal-animating footer,
body.centrifugal-animating section:not(.hero),
body.centrifugal-animating .title-hero,
body.centrifugal-animating .hero-text,
body.centrifugal-animating .hero-visual,
body.centrifugal-animating .logo-hero {
  transition: transform 1.2s cubic-bezier(0.165, 0.840, 0.440, 1.000),
    opacity 1s cubic-bezier(0.165, 0.840, 0.440, 1.000),
    filter 1s ease-out !important;
}

/* Le Logo grossit et brille pendant l'effet */
body.centrifugal-active .logo-hero {
  transform: scale(1.3) !important;
  filter: drop-shadow(0 0 30px rgba(145, 202, 10, 0.8)) !important;
}

/* Le Header monte et s'efface */
body.centrifugal-active header {
  transform: translateY(-100px) scale(1.1) !important;
  opacity: 0 !important;
  filter: blur(10px) !important;
  pointer-events: none;
}

/* Le Footer et les sections descendent et s'effacent */
body.centrifugal-active footer,
body.centrifugal-active section:not(.hero) {
  transform: translateY(15vh) scale(1.2) !important;
  opacity: 0 !important;
  filter: blur(15px) !important;
  pointer-events: none;
}

/* Les éléments sous le logo (titre, zone de texte sur page app) explosent aussi vers le bas */
body.centrifugal-active .title-hero,
body.centrifugal-active .hero-text,
body.centrifugal-active .hero-visual {
  transform: translateY(10vh) scale(1.4) !important;
  opacity: 0 !important;
  filter: blur(12px) !important;
  pointer-events: none;
}

/* ========================================================================= */
/* ===================== ADAPTATIONS MOBILE SPÉCIFIQUES ==================== */
/* ========================================================================= */

/* Adaptations Parallaxe et Feuillage pour Mobile (éviter l'effet "zoom") */
@media (max-width: 768px) {
  .page-overlay {
    height: 120vh;
    /* Très grand pour que le haut ne soit jamais visible lors du scroll */
    background-size: auto 60vh;
  }

  .parallax-layer.l1 {
    height: 120vh;
    background-size: auto 40vh;
  }

  .parallax-layer.l2 {
    height: 120vh;
    background-size: auto 50vh;
  }
}

/* Bloquer l'orientation paysage sur mobile */
@media screen and (max-device-width: 900px) and (orientation: landscape) and (max-height: 500px) {

  /* On cache le contenu habituel par sécurité */
  body>* {
    display: none !important;
  }

    /* On affiche un écran invitant à tourner l'appareil */
  body::before {
    content: "Veuillez tourner votre appareil en mode portrait pour une meilleure expérience.";
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: var(--bg-mid);
    color: var(--accent);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 24px;
    font-size: 1.5rem;
    font-weight: bold;
    line-height: 1.5;
    z-index: 999999;
    opacity: 1; /* Rétablir l'opacité au maximum (héritait de 0.015 du grain) */
    background-image: none; /* Supprimer la texture de grain habituelle */
    pointer-events: all; /* Empêcher les clics à travers cet écran */
  }
}

/* ========================================================================= */
/* ===================== AJUSTEMENTS TYPOGRAPHIQUES ======================== */
/* ========================================================================= */

.games-title {
  font-size: clamp(1.4rem, 3vw, 2rem) !important;
  font-weight: 800;
  margin: 0;
  line-height: 1.1;
  letter-spacing: -0.02em;
}