/* --- VARIABLES & RESET --- */
:root {
  --bg-dark: #181216;
  --surface-dark: #241c22;
  --primary: #d02e4e;
  --accent-gold: #d4af37;
  --text-main: #ecdfe4;
  --text-muted: #8d8185;

  --gradient-passion: linear-gradient(135deg, #880e4f, #d02e4e, #e91e63);
  --font-main: "Poppins", sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  overflow-x: hidden; /* Empêche le scroll horizontal de la page entière */
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: inherit;
  transition: 0.3s;
}

/* --- BACKGROUND FX --- */
.glow-bg {
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(
    circle,
    rgba(208, 46, 78, 0.15) 0%,
    rgba(24, 18, 22, 0) 70%
  );
  z-index: -1;
  pointer-events: none;
}

/* --- NAVBAR --- */
.navbar {
  padding: 20px 0;
  text-align: center;
  position: relative;
  z-index: 10;
}

.logo {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* --- HERO SECTION --- */
.hero {
  text-align: center;
  padding: 60px 20px 40px;
  max-width: 800px;
  margin: 0 auto;
}

.hero-title {
  font-size: 2.5rem;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #fff;
}

.gradient-text {
  background: var(--gradient-passion);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 40px;
}

.hero-subtitle strong {
  color: var(--text-main);
}

/* --- STORE BUTTONS --- */
.cta-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

.store-button {
  display: flex;
  align-items: center;
  background-color: var(--surface-dark);
  border: 1px solid #332a30;
  padding: 10px 20px;
  border-radius: 12px;
  min-width: 180px;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}

.store-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--primary);
}

.store-button i {
  font-size: 24px;
  margin-right: 12px;
}

.google-play i {
  color: #fff;
}
.app-store i {
  color: #ccc;
}

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

.store-text span:first-child {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.7;
}

.store-text .store-name {
  font-size: 16px;
  font-weight: 600;
}

.store-button.disabled {
  opacity: 0.5;
  cursor: default;
}
.store-button.disabled:hover {
  transform: none;
  box-shadow: none;
  border-color: #332a30;
}

/* --- CAROUSEL (SCROLL SNAP) --- */
.showcase {
  margin: 60px 0;
  position: relative;
}

.carousel-container {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 40px; /* Padding latéral pour que le 1er élément ne colle pas */
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.carousel-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

/* MOCKUP DU TÉLÉPHONE */
.phone-mockup {
  flex: 0 0 auto;
  width: 260px;
  height: 520px; /* Ratio standard ~19:9 */
  background: #000;
  border-radius: 40px;
  border: 8px solid #2d2d2d;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
  overflow: hidden;
  position: relative;
  scroll-snap-align: center;
  transition: transform 0.3s;
}

.phone-mockup:hover {
  transform: translateY(-5px);
}

.screen-content {
  width: 100%;
  height: 100%;
  background: var(--surface-dark);
}

.screen-content img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.scroll-hint {
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 10px;
  opacity: 0.6;
}

/* --- FOOTER --- */
footer {
  background-color: #120c10;
  padding: 40px 20px;
  text-align: center;
  border-top: 1px solid #241c22;
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer-links a:hover {
  color: var(--accent-gold);
}

.separator {
  margin: 0 10px;
  color: #333;
}

.copyright {
  font-size: 0.8rem;
  color: #444;
  margin-bottom: 15px;
}

.socials a {
  color: var(--text-muted);
  font-size: 1.2rem;
  margin: 0 10px;
}

.socials a:hover {
  color: var(--primary);
}

/* --- RESPONSIVE --- */
@media (min-width: 768px) {
  .hero-title {
    font-size: 3.5rem;
  }
  .carousel-container {
    justify-content: center;
  } /* Centre les téléphones sur grand écran */
}
/* --- NAVBAR & LOGO --- */
.navbar {
  padding: 20px 0;
  /* On utilise flexbox sur la navbar si tu veux aligner d'autres éléments plus tard */
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 10;
}

.logo {
  display: flex; /* Aligne l'image et le texte sur la même ligne */
  align-items: center; /* Centre verticalement */
  gap: 12px; /* Espace entre l'image et le texte "PUZZLE" */

  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent-gold);
  letter-spacing: 1px;
  text-transform: uppercase;
}

.nav-logo-img {
  height: 60px; /* Hauteur fixe pour ne pas déformer la navbar */
  width: auto; /* Largeur auto pour garder les proportions */
  border-radius: 10px; /* Rappel de la forme de l'icône iOS/Android */
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5); /* Petite ombre pour le relief */
}
