/* ==========================================================================
   BOARDKIN — DESIGN SYSTEM & LANDING PAGE STYLES
   Inspirations: Linear, Chronicle, Opal, Amie
   Zéro émoji • Typographie nette • Focus Conversion
   ========================================================================== */

:root {
  --bg-deep: #0B0D13;
  --bg-main: #10131B;
  --bg-card: #171B26;
  --bg-card-hover: #1E2333;
  --bg-glass: rgba(23, 27, 38, 0.75);
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(124, 111, 239, 0.5);
  
  --primary: #7C6FEF;
  --primary-glow: rgba(124, 111, 239, 0.35);
  --primary-dark: #6455D8;
  
  --accent-green: #10B981;
  --accent-green-bg: rgba(16, 185, 129, 0.15);
  --accent-gold: #F59E0B;
  --accent-blue: #3B82F6;
  
  --text-main: #F3F4F6;
  --text-muted: #9CA3AF;
  --text-dimmed: #6B7280;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 32px;
  --radius-full: 9999px;
  
  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  scroll-behavior: smooth;
  font-family: var(--font-sans);
  background-color: var(--bg-deep);
  color: var(--text-main);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
  background-color: var(--bg-deep);
}

/* Background Atmospheric Glows */
.bg-glow-top {
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 520px;
  background: radial-gradient(circle, rgba(124, 111, 239, 0.18) 0%, rgba(11, 13, 19, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.bg-glow-side {
  position: absolute;
  top: 900px;
  right: -200px;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.08) 0%, rgba(11, 13, 19, 0) 70%);
  pointer-events: none;
  z-index: 0;
}

.container {
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
  background: rgba(11, 13, 19, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom-color: var(--border-subtle);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 76px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--text-main);
  transition: var(--transition);
}

.nav-brand:hover {
  transform: translateY(-1px);
}

.brand-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 4px 16px rgba(124, 111, 239, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.brand-name {
  font-family: var(--font-heading);
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.6px;
  color: #FFFFFF;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: var(--transition);
}

.nav-link:hover {
  color: #FFFFFF;
}

.btn-nav-app {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  box-shadow: 0 2px 10px var(--primary-glow);
  transition: var(--transition);
}

.btn-nav-app:hover {
  background: #8F84F8;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(124, 111, 239, 0.5);
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 140px;
  padding-bottom: 70px;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: rgba(124, 111, 239, 0.12);
  border: 1px solid rgba(124, 111, 239, 0.28);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: #C4BEFC;
  margin-bottom: 24px;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: 60px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -1.8px;
  color: #FFFFFF;
  margin-bottom: 22px;
}

.text-gradient {
  background: linear-gradient(135deg, #FFFFFF 20%, #A397FD 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  max-width: 660px;
  margin: 0 auto 34px;
  line-height: 1.6;
}

.hero-subtitle strong {
  color: #FFFFFF;
}

.hero-store-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.hero-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 20px;
  text-decoration: none;
  color: #FFFFFF;
  transition: var(--transition);
}

.hero-store-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(124, 111, 239, 0.5);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.hero-store-btn.hero-store-web {
  border-color: rgba(124, 111, 239, 0.35);
  background: rgba(124, 111, 239, 0.12);
}

.hero-store-btn.hero-store-web:hover {
  background: rgba(124, 111, 239, 0.22);
  border-color: var(--primary);
}

.store-btn-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.store-btn-sub {
  font-size: 10px;
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
  line-height: 1.1;
}

.store-btn-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.3;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}

.btn-primary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--primary);
  color: #FFFFFF;
  text-decoration: none;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  padding: 14px 26px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 20px var(--primary-glow);
  transition: var(--transition);
}

.btn-primary-hero:hover {
  background: #8F84F8;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124, 111, 239, 0.55);
}

.btn-primary-hero.btn-large {
  font-size: 16px;
  padding: 16px 32px;
}

.btn-secondary-hero {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 600;
  padding: 14px 22px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-subtle);
  transition: var(--transition);
}

.btn-secondary-hero:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  color: var(--text-dimmed);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 50px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
}

.trust-item svg {
  color: var(--accent-green);
}

.trust-separator {
  color: rgba(255, 255, 255, 0.15);
}

/* ==========================================================================
   SMARTPHONE MOCKUP (INTERACTIVE DEMO)
   ========================================================================== */
.phone-mockup-wrapper {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}

.mockup-controls-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.mockup-tab-selector {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: rgba(23, 27, 38, 0.75);
  padding: 4px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.mockup-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.mockup-tab-btn:hover {
  color: #FFFFFF;
}

.mockup-tab-btn.active {
  background: #DE6A26;
  color: #FFFFFF;
  box-shadow: 0 2px 10px rgba(222, 106, 38, 0.4);
}

/* Boutons de sélection des 3 jeux (Catan, Tarot, Skyjo) */
.mockup-game-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.mockup-game-btn:hover {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.06);
}

.mockup-game-btn.active {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.mockup-game-btn.active[data-game="catan"] {
  background: #DE6A26;
  box-shadow: 0 2px 12px rgba(222, 106, 38, 0.45);
}

.mockup-game-btn.active[data-game="tarot"] {
  background: #4B3A69;
  box-shadow: 0 2px 12px rgba(75, 58, 105, 0.5);
}

.mockup-game-btn.active[data-game="skyjo"] {
  background: #2B8A8A;
  box-shadow: 0 2px 12px rgba(43, 138, 138, 0.45);
}

.game-btn-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 11.5px;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* ==========================================================================
   SMARTPHONE FORMAT 3D SMOOTH (VUE CLASSE ET CLICS 100% FIABLES)
   ========================================================================== */
.phone-3d-scene {
  perspective: 1400px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px 0 36px;
  position: relative;
  width: 100%;
}

/* Châssis physique smartphone en 3D réaliste et élégante, finition Titane Clair / Silver brossé */
.phone-3d-chassis {
  position: relative;
  display: inline-block;
  transform: perspective(1400px) rotateY(-11.5deg) rotateX(5.5deg) rotateZ(-0.8deg);
  transform-style: preserve-3d;
  transition: box-shadow 0.35s ease, transform 0.35s ease;
  border-radius: 52px;
  background: linear-gradient(145deg, #FFFFFF 0%, #E2E8F0 25%, #CBD5E1 55%, #94A3B8 85%, #64748B 100%);
  padding: 13px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    -34px 42px 85px rgba(0, 0, 0, 0.85),
    -14px 16px 32px rgba(0, 0, 0, 0.55),
    0 0 55px rgba(255, 255, 255, 0.18),
    inset 2.5px 2.5px 4px rgba(255, 255, 255, 0.98),
    inset -4px -4px 6px rgba(51, 65, 85, 0.65);
}

.phone-3d-chassis:hover {
  /* Aucun changement de transform pour éliminer tout saut ou clignotement de curseur */
  box-shadow:
    -38px 48px 95px rgba(0, 0, 0, 0.9),
    -16px 18px 36px rgba(0, 0, 0, 0.6),
    0 0 65px rgba(255, 255, 255, 0.25);
}

/* Boutons physiques sur les tranches métalliques titane */
.phone-side-button {
  position: absolute;
  background: linear-gradient(to right, #F1F5F9, #94A3B8);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 3px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  pointer-events: none !important;
}

.phone-side-button.btn-power {
  right: -5px;
  top: 150px;
  width: 5px;
  height: 52px;
  border-radius: 0 3px 3px 0;
  pointer-events: none !important;
}

.phone-side-button.btn-volume-up {
  left: -5px;
  top: 130px;
  width: 5px;
  height: 44px;
  border-radius: 3px 0 0 3px;
  pointer-events: none !important;
}

.phone-side-button.btn-volume-down {
  left: -5px;
  top: 185px;
  width: 5px;
  height: 44px;
  border-radius: 3px 0 0 3px;
  pointer-events: none !important;
}

/* Écran du smartphone (fond clair réel, hit-testing 2D strict garanti) */
.phone-frame.light-theme {
  position: relative;
  width: 375px;
  height: 745px;
  background: #F8F9FA; /* Fond clair de l'application réelle */
  border: 3.5px solid #1E293B; /* Bordure sombre délimitant le châssis titane de l'écran */
  border-radius: 42px;
  padding: 10px 6px 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  text-align: left;
  transform-style: flat !important;
  isolation: isolate;
  pointer-events: auto;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

/* Barre d'état smartphone (style iOS / Android Light Mode) */
.phone-frame.light-theme .phone-status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 12px 8px;
  user-select: none;
  flex-shrink: 0;
  color: #1E293B;
  pointer-events: none;
}

.phone-frame.light-theme .phone-time {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 800;
  color: #1E293B;
  letter-spacing: -0.2px;
  min-width: 44px;
}

.phone-frame.light-theme .phone-island {
  width: 86px;
  height: 20px;
  background: #000000;
  border-radius: var(--radius-full);
}

.phone-frame.light-theme .phone-signals {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #1E293B;
  min-width: 44px;
  justify-content: flex-end;
}

.phone-frame.light-theme .battery-icon {
  width: 20px;
  height: 10px;
  border: 1.5px solid #1E293B;
  border-radius: 3px;
  padding: 1px;
  position: relative;
  display: flex;
  align-items: center;
}

.phone-frame.light-theme .battery-icon::after {
  content: '';
  position: absolute;
  right: -3.5px;
  top: 2px;
  bottom: 2px;
  width: 2px;
  background: #1E293B;
  border-radius: 0 1px 1px 0;
}

.phone-frame.light-theme .battery-level {
  width: 80%;
  height: 100%;
  background: #10B981;
  border-radius: 1px;
}

/* ==========================================================================
   BANDEAU DE JEUX COMPATIBLES (STYLE TICKER PLANTA)
   ========================================================================== */
.games-ticker-wrapper {
  margin-top: 50px;
  text-align: center;
  border-top: 1px solid var(--border-subtle);
  padding-top: 26px;
  position: relative;
  z-index: 5;
}

.ticker-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dimmed);
  margin-bottom: 14px;
}

.ticker-track {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.ticker-item {
  font-family: var(--font-heading);
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  transition: var(--transition);
}

.ticker-item:hover {
  color: #FFFFFF;
}

.ticker-sep {
  color: rgba(255, 255, 255, 0.15);
  font-size: 9px;
}

/* Adaptabilité responsive 3D */
@media (max-width: 992px) {
  .floating-badge {
    display: none;
  }

  .phone-3d-chassis.is-3d {
    transform: rotateY(-6deg) rotateX(4deg);
  }
}

@media (max-width: 600px) {
  .phone-3d-scene {
    padding: 10px 0 20px;
  }

  .phone-3d-chassis.is-3d {
    transform: none;
  }

  .view-mode-toggle {
    display: none;
  }
}

/* ==========================================================================
   METRICS SECTION
   ========================================================================== */
.metrics-section {
  padding: 60px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(16, 19, 27, 0.6);
}

.metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.metric-card {
  text-align: left;
}

.metric-number {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  color: #FFFFFF;
  letter-spacing: -1px;
  margin-bottom: 6px;
}

.metric-title {
  font-size: 14px;
  font-weight: 700;
  color: #C4BEFC;
  margin-bottom: 4px;
}

.metric-desc {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.4;
}

/* ==========================================================================
   BENTO GRID (FEATURES)
   ========================================================================== */
.section {
  padding: 90px 0;
  position: relative;
}

.section-darker {
  background: transparent;
}

.section-badge-center {
  display: flex;
  justify-content: center;
  margin-bottom: 14px;
}

.section-badge-center span {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--primary);
  background: rgba(124, 111, 239, 0.12);
  border: 1px solid rgba(124, 111, 239, 0.24);
  padding: 4px 12px;
  border-radius: var(--radius-full);
}

.section-heading {
  font-family: var(--font-heading);
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  text-align: center;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.section-subheading {
  font-size: 16px;
  color: var(--text-muted);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 50px;
}

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: var(--transition);
}

.bento-card:hover {
  border-color: rgba(124, 111, 239, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
}

.bento-col-2 {
  grid-column: span 2;
}

.bento-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.8px;
  color: var(--primary);
  margin-bottom: 12px;
}

.bento-title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.35;
  margin-bottom: 12px;
}

.bento-text {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 20px;
}

.bento-chips-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bento-chip {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  color: #FFFFFF;
}

.bento-highlight-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 600;
}

/* ==========================================================================
   CATALOGUE INTERACTIF
   ========================================================================== */
.catalogue-search-wrapper {
  max-width: 640px;
  margin: 0 auto 36px;
}

.catalogue-search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-full);
  padding: 12px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.3);
  transition: var(--transition);
}

.catalogue-search-box:focus-within {
  border-color: var(--primary);
  box-shadow: 0 0 20px var(--primary-glow);
}

.search-icon {
  color: var(--text-dimmed);
  margin-right: 12px;
}

.catalogue-search-box input {
  flex: 1;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 14.5px;
  outline: none;
}

.catalogue-search-box input::placeholder {
  color: var(--text-dimmed);
}

.clear-search-btn {
  background: transparent;
  border: none;
  color: var(--text-dimmed);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.clear-search-btn:hover {
  color: #FFFFFF;
}

.game-categories-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.category-filter-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}

.category-filter-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

.category-filter-btn.active {
  background: var(--primary);
  color: #FFFFFF;
  border-color: var(--primary);
  box-shadow: 0 2px 14px var(--primary-glow);
}

.games-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  margin-bottom: 40px;
}

.game-item-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.game-item-card:hover {
  border-color: rgba(124, 111, 239, 0.5);
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45);
}

.game-item-cover {
  width: 100%;
  height: 124px;
  object-fit: cover;
  background: #1C202C;
  transition: transform 0.35s ease;
}

.game-item-card:hover .game-item-cover {
  transform: scale(1.04);
}

.game-item-body {
  padding: 12px 14px 14px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.game-item-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.game-item-meta {
  font-size: 11.5px;
  color: var(--text-dimmed);
  margin-bottom: 0;
}

.catalogue-footer-action {
  text-align: center;
}

.btn-catalogue-all {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  transition: var(--transition);
}

.btn-catalogue-all:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
}

/* ==========================================================================
   SECTION MULTIPLATEFORME & STORES
   ========================================================================== */
.platforms-card-box {
  background: linear-gradient(135deg, rgba(23, 27, 38, 0.85) 0%, rgba(30, 35, 50, 0.6) 100%);
  border: 1px solid rgba(124, 111, 239, 0.25);
  border-radius: var(--radius-xl);
  padding: 50px 44px;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 40px;
  align-items: center;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.platforms-title {
  font-family: var(--font-heading);
  font-size: 32px;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1.25;
  margin-bottom: 14px;
}

.platforms-text {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 26px;
}

.platforms-badges-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-badge-btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  background: #141722;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-decoration: none;
  color: #FFFFFF;
  transition: var(--transition);
}

.store-badge-btn:hover {
  background: #1C2130;
  border-color: rgba(124, 111, 239, 0.4);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.store-badge-btn.primary-store-btn {
  background: rgba(124, 111, 239, 0.14);
  border-color: rgba(124, 111, 239, 0.4);
}

.store-badge-btn.primary-store-btn:hover {
  background: rgba(124, 111, 239, 0.25);
  border-color: var(--primary);
}

.badge-text-col {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-small {
  font-size: 10.5px;
  color: var(--text-dimmed);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.badge-title {
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 700;
  color: #FFFFFF;
}

.platforms-preview-side {
  background: #12151F;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
}

.platform-features-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.platform-feat-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.feat-icon-bullet {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent-green-bg);
  color: var(--accent-green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}

.feat-title {
  font-family: var(--font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 2px;
}

.feat-sub {
  font-size: 12px;
  color: var(--text-dimmed);
  line-height: 1.45;
}

/* ==========================================================================
   FINAL CTA BANNER
   ========================================================================== */
.final-cta-section {
  padding: 80px 0;
  text-align: center;
}

.cta-banner-wrapper {
  background: radial-gradient(circle at center, rgba(124, 111, 239, 0.16) 0%, rgba(17, 20, 29, 0.9) 70%);
  border: 1px solid rgba(124, 111, 239, 0.3);
  border-radius: var(--radius-xl);
  padding: 60px 30px;
  max-width: 860px;
  margin: 0 auto;
}

.cta-banner-title {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
}

.cta-banner-subtitle {
  font-size: 16px;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 30px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border-subtle);
  padding: 60px 0 30px;
  background: #0B0D13;
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand {
  max-width: 320px;
}

.footer-brand-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand-desc {
  font-size: 13px;
  color: var(--text-dimmed);
  line-height: 1.5;
}

.footer-links-group {
  display: flex;
  gap: 60px;
}

.footer-col-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #FFFFFF;
  margin-bottom: 14px;
}

.footer-link {
  display: block;
  font-size: 13px;
  color: var(--text-muted);
  text-decoration: none;
  margin-bottom: 8px;
  transition: var(--transition);
}

.footer-link:hover {
  color: #FFFFFF;
}

.footer-bottom {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
  color: var(--text-dimmed);
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 960px) {
  .hero-title {
    font-size: 44px;
  }
  
  .bento-grid {
    grid-template-columns: 1fr;
  }
  
  .bento-col-2 {
    grid-column: span 1;
  }
  
  .metrics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .games-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .platforms-card-box {
    grid-template-columns: 1fr;
    padding: 30px 20px;
  }
  
  .nav-links {
    display: none;
  }
  
  .footer-top {
    flex-direction: column;
  }
  
  .footer-links-group {
    gap: 30px;
  }
}

@media (max-width: 580px) {
  .hero-title {
    font-size: 34px;
  }
  
  .hero-subtitle {
    font-size: 15px;
  }
  
  .metrics-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .games-grid {
    grid-template-columns: 1fr;
  }
  
  .app-players-columns {
    grid-template-columns: 1fr;
  }
  
  .hero-trust-bar {
    flex-direction: column;
    gap: 6px;
  }
  
  .trust-separator {
    display: none;
  }

  .hero-store-group {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .hero-store-btn {
    width: 100%;
    justify-content: center;
  }
}

/* ==========================================================================
   DÉMO DE L'APPLICATION DANS LE TÉLÉPHONE (Flutter, /demo/)
   Capture de l'accueil, puis iframe chargée au toucher (script.js, initPhoneDemo).
   ========================================================================== */
.phone-frame.light-theme.demo-theme {
  background: #1A1C26; /* fond de l'application (thème sombre) */
  padding: 10px 0 0;
}

.phone-frame.light-theme.demo-theme .phone-status-bar,
.phone-frame.light-theme.demo-theme .phone-time {
  color: #FFFFFF;
}

.phone-frame.light-theme.demo-theme .phone-status-bar {
  padding: 2px 18px 8px;
}

.phone-demo {
  position: relative;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  border-radius: 0 0 38px 38px;
  background: #1A1C26;
}

.phone-demo-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: #1A1C26;
  cursor: pointer;
  display: block;
}

.phone-demo-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}

.phone-demo-cta {
  position: absolute;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  background: #8E7CF3;
  color: #FFFFFF;
  font-family: var(--font-heading);
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
  box-shadow: 0 10px 30px rgba(142, 124, 243, 0.45);
  animation: phone-demo-pulse 2.4s ease-in-out infinite;
}

.phone-demo-poster:hover .phone-demo-cta,
.phone-demo-poster:focus-visible .phone-demo-cta {
  background: #7B68EE;
}

@keyframes phone-demo-pulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(142, 124, 243, 0.45); }
  50% { box-shadow: 0 10px 40px rgba(142, 124, 243, 0.75); }
}

.phone-demo-loading {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  background: rgba(26, 28, 38, 0.82);
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  font-weight: 600;
  z-index: 2;
}

.phone-demo-spinner {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  border-top-color: #8E7CF3;
  animation: phone-demo-spin 0.9s linear infinite;
}

@keyframes phone-demo-spin {
  to { transform: rotate(360deg); }
}

.phone-demo.is-loading .phone-demo-loading {
  display: flex;
}

.phone-demo-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: #1A1C26;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.phone-demo.is-live .phone-demo-frame {
  opacity: 1;
  z-index: 3;
}

.phone-demo.is-live .phone-demo-poster,
.phone-demo.is-live .phone-demo-loading {
  display: none;
}

/* Téléphone de face pendant l'utilisation de la démo. */
.phone-3d-chassis.demo-live,
.phone-3d-chassis.demo-live.is-3d {
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .phone-demo-cta { animation: none; }
}

/* Petits écrans : téléphone de face et réduit pour tenir dans la largeur
   (le châssis fait ~405 px de large). */
@media (max-width: 600px) {
  .phone-3d-chassis {
    transform: none;
  }
}

@media (max-width: 440px) {
  .phone-3d-chassis {
    zoom: 0.88;
  }
}

@media (max-width: 380px) {
  .phone-3d-chassis {
    zoom: 0.8;
  }
}

/* Filtres du catalogue : même grille que les catégories de l'accueil de l'app
   (boutons compacts, fond carte, bordure fine), 6 colonnes, 3 sur mobile. */
#game-categories-filter {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  /* Plus large que le champ de recherche (640 px) pour que « Jeux de
     société » tienne sur une ligne ; centré sur la page. */
  width: min(920px, calc(100vw - 32px));
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 14px;
}

#game-categories-filter .category-filter-btn {
  width: 100%;
  margin: 0;
  padding: 9px 4px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#game-categories-filter .category-filter-btn.active {
  background: #8E7CF3;
  border-color: #8E7CF3;
}

@media (max-width: 640px) {
  #game-categories-filter {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Carte sans image (fichier introuvable) : on garde un bandeau neutre. */
.game-item-card.no-cover::before {
  content: '';
  display: block;
  height: 124px;
  background: linear-gradient(135deg, #2B2E3B, #1A1C26);
}

/* Pagination du catalogue (12 jeux par page). */
.catalogue-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px;
  margin: -12px 0 32px;
}

.catalogue-page-btn {
  min-width: 38px;
  padding: 9px 12px;
  border-radius: 10px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: #FFFFFF;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.catalogue-page-btn:hover:not(:disabled):not(.active) {
  border-color: rgba(255, 255, 255, 0.25);
}

.catalogue-page-btn.active {
  background: #8E7CF3;
  border-color: #8E7CF3;
  cursor: default;
}

.catalogue-page-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.catalogue-page-dots {
  color: rgba(255, 255, 255, 0.4);
  padding: 0 2px;
}

.catalogue-empty {
  text-align: center;
  color: rgba(255, 255, 255, 0.55);
  font-size: 14px;
  margin: -8px 0 32px;
}
