/* ==========================================================================
   FASOVERSE HOME - CSS MOBILE FIRST CLEAN & RESPONSIVE
   ========================================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #0284c7;
  --accent: #f59e0b;
  --bg-main: #ffffff;
  --bg-light: #f8fafc;
  --text-dark: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --shadow-sm: 0 4px 6px -1px rgba(0,0,0,0.05);
  --shadow-md: 0 10px 15px -3px rgba(0,0,0,0.08);
  --radius: 16px;
}

/* Reset & Layout de base */
.fasoverse-home, 
.fasoverse-home * {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.fasoverse-home {
  font-family: system-ui, -apple-system, sans-serif;
  color: var(--text-dark);
  background: var(--bg-main);
  line-height: 1.5;
  width: 100%;
}

/* Le Container centré réutilisable */
.fasoverse-home .container {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 16px;
  padding-right: 16px;
}

/* En-têtes de section */
.fasoverse-home .section-header {
  text-align: center;
  margin-bottom: 32px;
}

.fasoverse-home .section-title {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text-dark);
}

.fasoverse-home .section-title span {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.fasoverse-home .section-subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-top: 6px;
}

/* --- HERO SECTION --- */
.fasoverse-home .hero {
  background: linear-gradient(180deg, #e0f2fe 0%, #f8fafc 100%);
  padding: 40px 0;
  border-bottom: 1px solid var(--border);
}

.fasoverse-home .hero-content {
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.fasoverse-home .hero-text h1 {
  font-size: 1.8rem;
  line-height: 1.25;
  margin-bottom: 12px;
}

.fasoverse-home .hero-text h1 .highlight {
  color: var(--primary);
}

.fasoverse-home .hero-text p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 20px;
}

.fasoverse-home .hero-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.fasoverse-home .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none !important;
  transition: all 0.2s ease;
  width: 100%;
}

.fasoverse-home .btn-primary {
  background: var(--primary);
  color: #fff !important;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.fasoverse-home .btn-secondary {
  background: #fff;
  color: var(--text-dark) !important;
  border: 1px solid var(--border);
}

.fasoverse-home .btn-outline {
  background: transparent;
  color: var(--primary) !important;
  border: 1px solid var(--primary);
}

.fasoverse-home .hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.fasoverse-home .stat-number {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--primary);
  display: block;
}

.fasoverse-home .stat-label {
  font-size: 0.7rem;
  color: var(--text-muted);
}

.fasoverse-home .hero-badge {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  text-align: center;
}

/* --- GRILLES RESPONSIVE (Features, Products, Blog) --- */
.fasoverse-home .section-padding {
  padding: 48px 0;
}

.fasoverse-home .bg-light {
  background-color: var(--bg-light);
}

/* C'est la grille magique Mobile-First */
.fasoverse-home .grid-layout {
  display: grid;
  grid-template-columns: 1fr; /* Mobile : 1 seule colonne par défaut */
  gap: 20px;
  width: 100%;
}

/* Feature Card */
.fasoverse-home .feature-card {
  background: #fff;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-align: center;
  box-shadow: var(--shadow-sm);
}

.fasoverse-home .feature-card .icon {
  font-size: 2rem;
  margin-bottom: 8px;
  display: block;
}

/* Product Card */
.fasoverse-home .product-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fasoverse-home .product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.fasoverse-home .product-card .image {
  height: 180px;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.fasoverse-home .product-card .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fasoverse-home .product-card .badge-sale {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

.fasoverse-home .product-card .info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.fasoverse-home .stock-badge {
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  align-self: flex-start;
  margin-bottom: 8px;
}

.fasoverse-home .stock-badge.in-stock { background: #dcfce7; color: #15803d; }
.fasoverse-home .stock-badge.out-of-stock { background: #fee2e2; color: #b91c1c; }

.fasoverse-home .product-card h3 {
  font-size: 1rem;
  margin-bottom: 6px;
}

.fasoverse-home .product-card .price {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 12px;
}

.fasoverse-home .product-card .price .old {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-decoration: line-through;
  margin-left: 6px;
  font-weight: 400;
}

.fasoverse-home .product-card .btn-small {
  margin-top: auto;
  background: var(--primary);
  color: #fff !important;
  text-align: center;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none !important;
  font-size: 0.85rem;
  font-weight: 600;
}

/* --- CARROUSEL CONTINU (MARQUEE) --- */
.fasoverse-home .carousel-wrapper {
  overflow: hidden;
  width: 100%;
  position: relative;
  mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 5%, black 95%, transparent);
}

.fasoverse-home .carousel-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: marquee 30s linear infinite;
}

.fasoverse-home .carousel-wrapper:hover .carousel-track {
  animation-play-state: paused;
}

.fasoverse-home .carousel-item {
  width: 240px;
  flex-shrink: 0;
}

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* --- BLOG CARD --- */
.fasoverse-home .blog-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}

.fasoverse-home .blog-card .content {
  padding: 16px;
}

.fasoverse-home .blog-card .meta {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fasoverse-home .blog-card h3 a {
  color: var(--text-dark);
  text-decoration: none;
}

.fasoverse-home .blog-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 8px 0 12px;
}

.fasoverse-home .blog-card .read-more {
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
}

/* --- CTA SECTION --- */
.fasoverse-home .cta-box {
  background: linear-gradient(135deg, var(--secondary), var(--primary));
  color: #fff;
  border-radius: var(--radius);
  padding: 32px 20px;
  text-align: center;
}

.fasoverse-home .cta-box h2 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}

.fasoverse-home .cta-box p {
  opacity: 0.9;
  margin-bottom: 20px;
  font-size: 0.95rem;
}

/* ==========================================================================
   MEDIA QUERIES (ADAPTATION PROGRESSIVE TABLETTE ET PC)
   ========================================================================== */

/* Tablette (À partir de 600px) */
@media (min-width: 600px) {
  .fasoverse-home .hero-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .fasoverse-home .btn {
    width: auto;
  }

  /* Passage à 2 colonnes pour les grilles */
  .fasoverse-home .grid-layout {
    grid-template-columns: repeat(2, 1fr);
  }

  .fasoverse-home .hero-text h1 {
    font-size: 2.2rem;
  }
}

/* Écran Ordinateur (À partir de 992px) */
@media (min-width: 992px) {
  .fasoverse-home .hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    text-align: left;
    align-items: center;
  }

  .fasoverse-home .hero-buttons {
    justify-content: flex-start;
  }

  .fasoverse-home .hero-text h1 {
    font-size: 3rem;
  }

  .fasoverse-home .hero-stats {
    text-align: left;
  }

  .fasoverse-home .stat-number {
    font-size: 1.6rem;
  }

  /* Features en 4 colonnes, Produits en 4 colonnes, Blog en 3 colonnes */
  .fasoverse-home .features-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fasoverse-home .products-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .fasoverse-home .blog-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
