/* ============================================
   BELOTE SCORE — Landing Page CSS
   ============================================ */

/* ── Nav ── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 16px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: linear-gradient(to bottom, rgba(13,10,8,0.95), transparent);
  transition: background .3s;
}
.nav.scrolled {
  background: rgba(46,31,10,0.96);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(10px);
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cream);
  text-decoration: none;
}
.nav-logo img {
  width: 36px;
  height: 36px;
  border-radius: 8px;
}
.nav-logo span { color: var(--gold); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-link {
  color: var(--text-dim);
  font-size: .95rem;
  letter-spacing: .03em;
  transition: color .2s;
}
.nav-link:hover { color: var(--cream); }
.nav-lang {
  display: flex;
  gap: 4px;
}
.lang-btn {
  padding: 4px 10px;
  border-radius: 4px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all .2s;
}
.lang-btn.active, .lang-btn:hover {
  color: var(--gold);
  border-color: var(--border2);
}
.nav-menu-btn { display: none; }

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 120px 40px 80px;
}

/* Gradient overlay dans le hero uniquement */
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.hero-bg-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 50% 100%, rgba(20,10,2,0.65) 0%, transparent 70%),
    radial-gradient(ellipse 55% 40% at 15% 15%,  rgba(150,65,10,0.22) 0%, transparent 60%),
    radial-gradient(ellipse 45% 45% at 85% 85%,  rgba(130,85,5,0.18)  0%, transparent 60%);
}

/* ── Suits flottants — couche fixe sur toute la page ── */
#suits-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;          /* derrière tout le contenu */
  overflow: hidden;
}

.floating-suit {
  position: absolute;
  user-select: none;
  pointer-events: none;
  will-change: transform;
  /* animation définie individuellement en JS */
}

/* Dérive douce : translation en X+Y + légère rotation */
@keyframes driftSuit {
  0%   { transform: translate(0, 0)       rotate(0deg);   opacity: 0; }
  8%   { opacity: var(--suit-opacity); }
  92%  { opacity: var(--suit-opacity); }
  100% { transform: translate(var(--drift-x), var(--drift-y)) rotate(var(--drift-r)); opacity: 0; }
}

/* Dérive alternative (sens opposé) */
@keyframes driftSuitAlt {
  0%   { transform: translate(0, 0)       rotate(0deg);   opacity: 0; }
  8%   { opacity: var(--suit-opacity); }
  92%  { opacity: var(--suit-opacity); }
  100% { transform: translate(var(--drift-x), calc(var(--drift-y) * -1)) rotate(calc(var(--drift-r) * -1)); opacity: 0; }
}

.hero-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
}
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp .8s ease .3s forwards;
}
.hero-eyebrow::before, .hero-eyebrow::after {
  content: '♠';
  opacity: .5;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -.02em;
  color: var(--cream);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp .8s ease .5s forwards;
}
.hero-title span {
  color: var(--gold);
  font-style: italic;
}
.hero-subtitle {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  font-weight: 400;
  font-style: italic;
  color: var(--text-dim);
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp .8s ease .65s forwards;
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--cream-dim);
  max-width: 520px;
  margin: 0 auto 48px;
  line-height: 1.7;
  opacity: 0;
  animation: fadeUp .8s ease .8s forwards;
}
.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
  opacity: 0;
  animation: fadeUp .8s ease .95s forwards;
}
.hero-suits-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 1.8rem;
  margin-top: 60px;
  opacity: 0;
  animation: fadeUp .8s ease 1.1s forwards;
}

@keyframes fadeUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* ── Section base ── */
section {
  padding: var(--space-2xl) 40px;
  max-width: 1100px;
  margin: 0 auto;
}
section.full-width {
  max-width: 100%;
  padding-left: 0;
  padding-right: 0;
}

.section-eyebrow {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
  margin-bottom: 16px;
}
.section-title em { color: var(--gold); font-style: italic; }
.section-desc {
  color: var(--text-dim);
  font-size: 1.1rem;
  max-width: 520px;
  line-height: 1.7;
}

/* ── Features ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}
.feature-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(to right, transparent, var(--gold), transparent);
  opacity: 0;
  transition: opacity .3s;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-color: var(--border2);
  box-shadow: var(--shadow-card), 0 0 30px rgba(201,151,58,0.08);
}
.feature-card:hover::before { opacity: 1; }
.feature-icon {
  font-size: 2rem;
  margin-bottom: 16px;
  display: block;
}
.feature-title {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 8px;
}
.feature-desc { color: var(--text-dim); font-size: .95rem; line-height: 1.6; }

/* ── Pricing ── */
.pricing-section {
  background: rgba(0,0,0,0.1);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.pricing-card {
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  position: relative;
  overflow: hidden;
}
.pricing-card.free {
  background: rgba(255,255,255,0.07);
  border: 1px solid var(--border2);
}
.pricing-card.premium {
  background: linear-gradient(145deg, #3d2a0c 0%, #543a10 50%, #3d2a0c 100%);
  border: 1px solid var(--gold-dark);
  box-shadow: 0 0 60px rgba(201,151,58,0.14);
}
.pricing-badge {
  position: absolute;
  top: 20px; right: 20px;
}
.pricing-name {
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
}
.pricing-price {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 900;
  color: var(--cream);
  line-height: 1;
}
.pricing-price sup { font-size: 1.5rem; vertical-align: top; margin-top: 8px; color: var(--gold); }
.pricing-price .forever {
  font-size: .9rem;
  color: var(--text-dim);
  font-weight: 400;
  display: block;
  margin-top: 4px;
  font-family: var(--font-body);
}
.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: .95rem;
  color: var(--text-dim);
}
.pricing-features li::before {
  content: '✓';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 2px;
}
.pricing-features li.dim::before { content: '–'; color: var(--text-muted); }
.pricing-features li.dim { color: var(--text-muted); }

/* ── App preview mockup ── */
.app-preview {
  background: var(--surface);
  border: 1px solid var(--border2);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-card), var(--shadow-glow);
  margin-top: 60px;
}
.app-preview-bar {
  background: var(--bg2);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ff5f57; }
.dot-yellow { background: #febc2e; }
.dot-green { background: #28c840; }
.app-preview-url {
  flex: 1;
  background: var(--bg);
  border-radius: 6px;
  padding: 4px 12px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--text-dim);
  margin: 0 12px;
}

/* ── How it works ── */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  margin-top: 48px;
  position: relative;
}
.step {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.step-number {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  color: #0d0a08;
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(201,151,58,0.3);
}
.step-title {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--cream);
}
.step-desc { font-size: .9rem; color: var(--text-dim); }

/* ── Footer ── */
.footer {
  border-top: 1px solid var(--border);
  padding: 48px 40px 32px;
  max-width: 1100px;
  margin: 0 auto;
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  flex-wrap: wrap;
}
.footer-brand { max-width: 280px; }
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--cream);
  margin-bottom: 12px;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-desc { font-size: .9rem; color: var(--text-muted); line-height: 1.6; }
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 16px;
}
.footer-links ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: var(--text-muted); font-size: .9rem; transition: color .2s; }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: .85rem;
  color: var(--text-muted);
}
.footer-suits { display: flex; gap: 12px; font-size: 1.1rem; }

/* ── Mobile Nav ── */
@media (max-width: 768px) {
  .nav { padding: 16px 20px; }
  .nav-links { display: none; }
  .nav-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 8px;
  }
  .nav-menu-btn span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--cream);
    transition: all .3s;
  }
  .hero { padding: 100px 20px 60px; }
  section { padding: 48px 20px; }
  .footer { padding: 40px 20px 24px; }
  .footer-inner { flex-direction: column; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
