/* =============================================
   FoxyPlay – Landing Page Styles
   Colors: #E67E22 (orange), #2C3E50 (dark), #FFF8F0 (cream)
   ============================================= */

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

:root {
  --orange:     #E67E22;
  --orange-dark:#C0671A;
  --orange-light:#FFF3E0;
  --dark:       #2C3E50;
  --dark-soft:  #3D5166;
  --cream:      #FFF8F0;
  --white:      #FFFFFF;
  --gray:       #6B7280;
  --gray-light: #F3F4F6;
  --radius:     16px;
  --shadow:     0 4px 24px rgba(44,62,80,0.10);
  --shadow-lg:  0 8px 40px rgba(44,62,80,0.16);
}

html {
  scroll-behavior: smooth;
  /* Offset sticky nav (~64px) so #anchors aren’t hidden under the bar */
  scroll-padding-top: 80px;
}

body {
  font-family: 'Nunito', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
  font-size: 16px;
}

/* ---- NAV ---- */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(230,126,34,0.12);
  padding: 0 24px;
}
.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: block;
  transform: translateY(2px);
}
.nav-logo span {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--orange);
  letter-spacing: -0.5px;
  line-height: 1.2;
}
.nav-cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.nav-lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  line-height: 1;
  margin-right: 4px;
}
.nav-lang a {
  text-decoration: none;
  opacity: 0.85;
  transition: opacity 0.2s;
}
.nav-lang a:hover { opacity: 1; }
.nav-lang [aria-current="page"] {
  opacity: 0.55;
  cursor: default;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 50px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  border: none;
}
.btn-primary {
  background: var(--orange);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(230,126,34,0.4);
}
.btn-primary:hover {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(230,126,34,0.5);
}
.btn-outline {
  background: transparent;
  color: var(--orange);
  border: 2px solid var(--orange);
}
.btn-outline:hover {
  background: var(--orange-light);
  transform: translateY(-2px);
}
.btn-dark {
  background: var(--dark);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(44,62,80,0.3);
}
.btn-dark:hover {
  background: var(--dark-soft);
  transform: translateY(-2px);
}
.btn-lg {
  padding: 16px 32px;
  font-size: 1.15rem;
}

/* ---- HERO ---- */
.hero {
  background: linear-gradient(135deg, var(--cream) 0%, #FEE8C8 60%, #FFD5A0 100%);
  padding: 80px 24px 60px;
  overflow: hidden;
  position: relative;
}
.hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(230,126,34,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 48px;
}
.hero-text { flex: 1; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(230,126,34,0.15);
  color: var(--orange-dark);
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 700;
  margin-bottom: 20px;
  letter-spacing: 0.3px;
}
.hero-badge-icon {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  flex-shrink: 0;
  vertical-align: middle;
}
.hero-title {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 900;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title span { color: var(--orange); }
.hero-subtitle {
  font-size: 1.2rem;
  color: var(--dark-soft);
  margin-bottom: 36px;
  max-width: 480px;
}
.hero-stores {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}
.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: all 0.2s;
  border: 2px solid transparent;
}
.store-badge:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.store-badge.store-coming-soon {
  cursor: default;
  opacity: 0.72;
  pointer-events: none;
}
.store-badge.store-coming-soon:hover {
  transform: none;
  box-shadow: none;
}
.store-apple  { background: var(--dark); color: var(--white); }
.store-google { background: var(--white); color: var(--dark); border-color: #E5E7EB; }
.store-badge svg { flex-shrink: 0; }
.store-badge-inner small { display: block; font-weight: 400; font-size: 0.72rem; opacity: 0.75; line-height: 1.1; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.88rem;
  color: var(--gray);
}
.hero-trust span::before { content: '✓ '; color: var(--orange); font-weight: 800; }
.hero-image {
  flex: 0 0 auto;
  display: flex;
  justify-content: center;
}
.hero-image img {
  width: min(380px, 40vw);
  drop-shadow: var(--shadow-lg);
  filter: drop-shadow(0 12px 32px rgba(44,62,80,0.18));
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}

/* ---- FEATURES ---- */
.features {
  padding: 80px 24px;
  background: var(--white);
}
.section-header {
  text-align: center;
  max-width: 600px;
  margin: 0 auto 56px;
}
.section-label {
  display: inline-block;
  background: var(--orange-light);
  color: var(--orange-dark);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: 50px;
  margin-bottom: 14px;
}
.section-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 900;
  line-height: 1.2;
  color: var(--dark);
  letter-spacing: -0.5px;
  margin-bottom: 14px;
}
.section-sub {
  font-size: 1.05rem;
  color: var(--gray);
}
.features-grid {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--gray-light);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: all 0.25s;
  border: 2px solid transparent;
}
.feature-card:hover {
  border-color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 52px; height: 52px;
  background: var(--orange);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 16px;
  box-shadow: 0 4px 12px rgba(230,126,34,0.3);
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 8px;
  color: var(--dark);
}
.feature-card p {
  font-size: 0.93rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ---- APP SCREENSHOTS ---- */
.app-screenshots {
  padding: 80px 24px;
  background: linear-gradient(180deg, var(--white) 0%, var(--cream) 100%);
}
.app-screenshots-inner {
  max-width: 1100px;
  margin: 0 auto;
}
.app-screenshots-track {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 8px 4px 24px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 24px;
  -webkit-overflow-scrolling: touch;
}
.app-screenshots-track::-webkit-scrollbar {
  height: 8px;
}
.app-screenshots-track::-webkit-scrollbar-thumb {
  background: rgba(230,126,34,0.35);
  border-radius: 4px;
}
.app-screenshot {
  flex: 0 0 auto;
  width: min(280px, 78vw);
  scroll-snap-align: center;
  margin: 0;
}
.app-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(44,62,80,0.08);
}
.app-screenshot figcaption {
  margin-top: 10px;
  font-size: 0.88rem;
  color: var(--gray);
  line-height: 1.35;
  text-align: center;
}
@media (min-width: 900px) {
  .app-screenshots-track {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    overflow: visible;
    padding: 0 0 8px;
    scroll-snap-type: none;
  }
  .app-screenshot {
    width: auto;
    scroll-snap-align: unset;
  }
}

/* ---- GAMES ---- */
.games {
  padding: 80px 24px;
  background: var(--cream);
}
.games-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 64px;
}
.games-list { flex: 1; display: flex; flex-direction: column; gap: 16px; }
.game-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--white);
  border-radius: var(--radius);
  padding: 20px 22px;
  box-shadow: var(--shadow);
  transition: transform 0.2s;
}
.game-item:hover { transform: translateX(6px); }
.game-emoji {
  font-size: 2rem;
  flex-shrink: 0;
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  background: var(--orange-light);
  border-radius: 12px;
}
.game-info h4 { font-size: 1rem; font-weight: 800; color: var(--dark); margin-bottom: 4px; }
.game-info p  { font-size: 0.88rem; color: var(--gray); }
.games-image {
  flex: 0 0 auto;
  text-align: center;
}
.games-image img {
  width: min(320px, 35vw);
  filter: drop-shadow(0 10px 28px rgba(44,62,80,0.15));
}

/* ---- HOW IT WORKS ---- */
.how {
  padding: 80px 24px;
  background: var(--white);
}
.steps {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.step {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  position: relative;
}
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 52px;
  width: 2px;
  height: calc(100% - 16px);
  background: linear-gradient(to bottom, var(--orange), transparent);
}
.step-num {
  flex-shrink: 0;
  width: 40px; height: 40px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900;
  font-size: 1.1rem;
  box-shadow: 0 4px 12px rgba(230,126,34,0.35);
  position: relative;
  z-index: 1;
}
.step-content { padding-bottom: 40px; }
.step-content h3 { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: 6px; }
.step-content p  { font-size: 0.93rem; color: var(--gray); }

/* ---- PRICING ---- */
.pricing {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-soft) 100%);
  text-align: center;
  color: var(--white);
}
.pricing .section-title { color: var(--white); }
.pricing .section-sub   { color: rgba(255,255,255,0.7); }
.pricing-card {
  max-width: 440px;
  margin: 48px auto 0;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 40px 36px;
  backdrop-filter: blur(8px);
}
.price {
  font-size: 3.6rem;
  font-weight: 900;
  color: var(--orange);
  line-height: 1;
  margin: 12px 0;
}
.price sup { font-size: 1.8rem; vertical-align: top; margin-top: 8px; }
.price sub { font-size: 1rem; color: rgba(255,255,255,0.5); }
.promo-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: #F5A55A;
  letter-spacing: 0.3px;
  margin-bottom: 4px;
}
.price-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  margin: 8px 0 12px;
}
.price-stack .price { margin: 0; }
.price-was {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: rgba(255,255,255,0.45);
  text-decoration: line-through;
}
.pricing-note { font-size: 0.88rem; color: rgba(255,255,255,0.55); margin-bottom: 28px; }
.pricing-perks {
  list-style: none;
  margin-bottom: 32px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-perks li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: rgba(255,255,255,0.85);
}
.pricing-perks li::before {
  content: '✓';
  width: 24px; height: 24px;
  background: rgba(230,126,34,0.25);
  color: var(--orange);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.8rem;
  font-weight: 900;
  flex-shrink: 0;
}

/* ---- FOOTER ---- */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.6);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.3rem;
  font-weight: 900;
  color: var(--orange);
}
.footer-logo-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  flex-shrink: 0;
  display: block;
}
.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-links a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--orange); }
.footer-copy { font-size: 0.82rem; }

/* ---- LEGAL PAGES ---- */
.legal-page {
  max-width: 680px;
  margin: 0 auto;
  padding: 56px 24px 80px;
  font-size: 1.05rem;
}
.legal-page h1 {
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.25;
}
.legal-page .legal-meta {
  font-size: 0.95rem;
  color: var(--gray);
  margin-bottom: 40px;
  font-style: italic;
}
.legal-page h2 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--dark);
  margin: 40px 0 14px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--orange-light);
  line-height: 1.3;
}
.legal-page h3 {
  font-size: 1.08rem;
  font-weight: 800;
  color: var(--dark-soft);
  margin: 28px 0 10px;
  line-height: 1.3;
}
.legal-page p {
  margin-bottom: 16px;
  color: var(--dark-soft);
  line-height: 1.75;
}
.legal-page ul {
  margin: 12px 0 20px;
  padding-left: 26px;
}
.legal-page li {
  margin-bottom: 10px;
  color: var(--dark-soft);
  line-height: 1.65;
}
.legal-page table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 0.98rem;
}
.legal-page th,
.legal-page td {
  padding: 12px 14px;
  text-align: left;
  border: 1px solid var(--gray-light);
  line-height: 1.5;
}
.legal-page th {
  background: var(--orange-light);
  font-weight: 700;
  color: var(--dark);
}
.legal-page td { color: var(--dark-soft); }
.legal-page a {
  color: var(--orange);
  text-decoration: none;
}
.legal-page a:hover { text-decoration: underline; }
.legal-page hr {
  border: none;
  border-top: 1px solid var(--gray-light);
  margin: 40px 0;
}
.legal-page strong { color: var(--dark); }

/* ---- LEGAL PAGES : style formel ---- */
body.legal-page-body {
  font-family: Georgia, 'Times New Roman', serif;
  background: #f8f8f8;
}
body.legal-page-body nav {
  background: #fff;
  border-bottom: 1px solid #e0e0e0;
}
body.legal-page-body .nav-logo span { color: #1a1a1a; }
body.legal-page-body .btn-primary {
  background: #1a1a1a;
  box-shadow: none;
}
body.legal-page-body .btn-primary:hover { background: #333; }
body.legal-page-body footer {
  background: #1a1a1a;
  border-top: 1px solid #e0e0e0;
}
body.legal-page-body .footer-logo span { color: #c9a227; }
body.legal-page-body .footer-links a:hover { color: #c9a227; }

body.legal-page-body .legal-page {
  max-width: 640px;
  padding: 48px 28px 72px;
  font-size: 1rem;
  background: #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid #e8e8e8;
  border-radius: 2px;
  margin-top: 24px;
  margin-bottom: 48px;
}
body.legal-page-body .legal-page h1 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}
body.legal-page-body .legal-page .legal-meta {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 36px;
}
body.legal-page-body .legal-page h2 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a1a;
  margin: 36px 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid #ddd;
}
body.legal-page-body .legal-page h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #333;
  margin: 24px 0 8px;
}
body.legal-page-body .legal-page p {
  margin-bottom: 14px;
  color: #333;
  line-height: 1.72;
  text-align: justify;
}
body.legal-page-body .legal-page ul {
  margin: 10px 0 18px;
  padding-left: 22px;
}
body.legal-page-body .legal-page li {
  margin-bottom: 8px;
  color: #333;
  line-height: 1.6;
  text-align: justify;
}
body.legal-page-body .legal-page table {
  margin: 16px 0;
  font-size: 0.95rem;
  border: 1px solid #ddd;
}
body.legal-page-body .legal-page th,
body.legal-page-body .legal-page td {
  padding: 10px 12px;
  border: 1px solid #e0e0e0;
}
body.legal-page-body .legal-page th {
  background: #f5f5f5;
  font-weight: 700;
  color: #1a1a1a;
}
body.legal-page-body .legal-page td { color: #333; }
body.legal-page-body .legal-page a {
  color: #1a4d6b;
  text-decoration: underline;
}
body.legal-page-body .legal-page a:hover { color: #0d3d52; }
body.legal-page-body .legal-page hr {
  border-top-color: #e0e0e0;
  margin: 36px 0;
}
body.legal-page-body .legal-page strong { color: #1a1a1a; }

/* ---- RESPONSIVE ---- */
@media (max-width: 768px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-image { order: -1; }
  .hero-image img { width: min(260px, 70vw); }
  .hero-subtitle { max-width: 100%; }
  .hero-stores { justify-content: center; }
  .hero-trust { justify-content: center; flex-wrap: wrap; }
  .app-screenshots { padding: 56px 16px; }
  .app-screenshots-track { scroll-padding-inline: 16px; }
  .games-inner { flex-direction: column; }
  .games-image { display: none; }
  .nav-cta .btn-outline { display: none; }
  .nav-lang { font-size: 1.1rem; gap: 4px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}
