/* =========================
   GLOBAL
   ========================= */

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", sans-serif;
  background: radial-gradient(circle at top, #f0f2f5 0, #f7f7f8 40%, #fafafa 100%);
  color: #1f2937;
}

a {
  text-decoration: none;
}

/* =========================
   NAVBAR
   ========================= */

.navbar {
  background-color: #ffffff !important;
  border-bottom: 1px solid #e5e7eb;
}

.navbar .nav-link {
  color: #4b5563 !important;
  font-size: 0.92rem;
}

.navbar .nav-link.active {
  font-weight: 600;
  color: #111827 !important;
}

.navbar .nav-link:hover {
  color: #111827 !important;
}

.navbar-logo-badge {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #4f46e5);
  color: #ffffff;
  font-size: 0.8rem;
}

/* =========================
   HERO
   ========================= */

.hero-section {
  padding: 1.5rem 0 2.5rem;
}

@media (min-width: 992px) {
  .hero-section {
    padding: 4.5rem 0 3.5rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background-color: #e5edff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0.2rem 0.7rem;
  font-size: 0.75rem;
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2rem, 3.2vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #111827;
}

.hero-subtitle {
  font-size: 0.98rem;
  color: #6b7280;
  max-width: 520px;
}

/* =========================
   HERO CAROUSEL
   ========================= */

/* Fonds colorés des slides (à l'intérieur du bloc, donc ok même sur fond clair) */
.hero-slide-bg-1 {
  background: radial-gradient(circle at top left, #1d4ed8, #0f172a);
}

.hero-slide-bg-2 {
  background: radial-gradient(circle at top, #9a3412, #0f172a);
}

.hero-slide-bg-3 {
  background: radial-gradient(circle at top right, #047857, #0f172a);
}



/* Slides du hero avec image en background */

.hero-slide {
  position: relative;
  min-height: 260px;
  color: #f9fafb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 24px;
  overflow: hidden;
}

/* On renforce l’overlay pour rendre le texte lisible sur la photo */
.hero-slide-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to bottom right,
      rgba(15, 23, 42, 0.80),
      rgba(15, 23, 42, 0.55),
      rgba(15, 23, 42, 0.30)
  );
  pointer-events: none;
}

.hero-slide-inner {
  position: relative;
  z-index: 1;
  padding: 2rem 2.25rem;
}

.hero-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #e5e7eb;
}


/* =========================
   FEATURE CARDS (si utilisées)
   ========================= */

.feature-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 1rem 1.1rem;
  transition: all 0.15s ease;
}

.feature-card:hover {
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

/* =========================
   CATEGORY CARDS
   ========================= */

.category-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 150px;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #f9fafb;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Overlay pour garder le texte lisible avec l'image en fond */
.category-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to top,
      rgba(0, 0, 0, 0.55),
      rgba(0, 0, 0, 0.25),
      rgba(0, 0, 0, 0.1)
  );
}

.category-card-content {
  position: relative;
  z-index: 1;
  padding: 0.9rem 1rem;
}

.category-card-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff;
}

.category-card-text {
  font-size: 0.78rem;
  color: #e5e7eb;
}

.category-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.18);
}

/* =========================
   PRODUCT CARDS (produits populaires)
   ========================= */

.product-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  overflow: hidden;
  background-color: #ffffff;
  transition: all 0.15s ease;
  height: 100%;
  color: #111827;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.10);
}

.product-image-wrapper {
  background-color: #f3f4f6;
  padding: 0.9rem;
}

.product-image-inner {
  border-radius: 14px;
  background-color: #ffffff;
  overflow: hidden;
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-card-body {
  padding: 0.85rem 0.95rem;
}

.product-card-body h6,
.product-card-body .h6 {
  font-size: 0.95rem;
}

.product-card-body p {
  margin-bottom: 0.25rem;
}

.product-card-footer {
  padding: 0.6rem 0.95rem 0.9rem;
  border-top: 1px solid #e5e7eb;
}

/* Badge "Populaire" */
.badge-soft {
  background-color: #e5edff;
  color: #1d4ed8;
  font-size: 0.7rem;
  border-radius: 999px;
}

/* =========================
   TRUST BAR
   ========================= */

.trust-bar {
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 0.8rem 1.2rem;
  color: #374151;
}

/* =========================
   FOOTER
   ========================= */

footer {
  background-color: #ffffff !important;
  border-top: 1px solid #e5e7eb;
  color: #6b7280;
}

footer a {
  color: #6b7280;
}

footer a:hover {
  color: #111827;
}

/* =========================
   UTILITAIRES
   ========================= */

.small-muted {
  font-size: 0.8rem;
  color: #6b7280;
}

/* ============================================
   SCROLL HORIZONTAL DES CATÉGORIES
   ============================================ */

.category-scroll-wrapper {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
}

.category-scroll {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.category-scroll::-webkit-scrollbar {
  height: 8px;
}

.category-scroll::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 10px;
}

.category-scroll::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.category-card-horizontal {
  min-width: 220px;
  max-width: 220px;
  height: 150px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex;
  align-items: flex-end;
  position: relative;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}

.category-card-horizontal .category-card-content {
  padding: 0.75rem 0.9rem;
}

/* =========================
   PAGE DÉTAIL PRODUIT
   ========================= */

.product-detail-wrapper {
  min-height: 60vh;
}

/* Carte infos produit */
.product-info-card {
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  padding: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.05);
}

.product-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
}

/* Carousel produit */
.product-carousel {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background-color: #f3f4f6;
}

.product-carousel .carousel-item img,
.product-carousel .carousel-item video {
  object-fit: cover;
  max-height: 420px;
}

.product-carousel .carousel-indicators [data-bs-target] {
  width: 8px;
  height: 8px;
  border-radius: 999px;
}

.product-carousel .carousel-indicators .active {
  background-color: #111827;
}

.product-carousel .custom-control {
  width: 10%;
}

/* Produits similaires */
.similar-products-scroll {
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 0.5rem;
}

.similar-products-row {
  display: flex;
  gap: 1rem;
  padding-right: 1rem;
}

.similar-products-row::-webkit-scrollbar {
  height: 8px;
}

.similar-products-row::-webkit-scrollbar-track {
  background: #e5e7eb;
  border-radius: 10px;
}

.similar-products-row::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}

.similar-product-card-link {
  text-decoration: none;
  color: inherit;
}

.similar-product-card {
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  background-color: #ffffff;
  overflow: hidden;
  min-width: 180px;
  max-width: 200px;
  flex-shrink: 0;
  transition: all 0.15s ease;
}

.similar-product-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.similar-product-image-wrapper {
  background-color: #f3f4f6;
  padding: 0.6rem;
}

.similar-product-body {
  padding: 0.6rem 0.75rem 0.7rem;
}

/* Modal */
.modal-content {
  border-radius: 18px;
}

/* =========================
   PAGE LISTE PRODUITS
   ========================= */

.product-list-wrapper {
  min-height: 60vh;
}

/* Barre de recherche produits */
.product-search-form {
  max-width: 520px;
  margin: 0 auto;
}

.product-search-input {
  border-radius: 999px;
  padding-left: 1.1rem;
  padding-right: 1.1rem;
  border: 1px solid #d1d5db;
  font-size: 0.9rem;
}

.product-search-input:focus {
  box-shadow: 0 0 0 3px #e5edff;
  border-color: #2563eb;
}

.product-search-btn {
  border-radius: 999px;
  padding-inline: 1.1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Lien produit (card cliquable) */
.product-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

.product-link:hover .product-card {
  transform: translateY(-4px);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.10);
}

/* Etat vide */
.product-empty-state h2 {
  color: #111827;
}

.product-empty-state p {
  color: #6b7280;
}


/* =========================
   BANNIÈRE CATÉGORIE
   ========================= */

.category-banner {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  min-height: 160px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.category-banner-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
      to right,
      rgba(15, 23, 42, 0.7),
      rgba(15, 23, 42, 0.25),
      rgba(15, 23, 42, 0.1)
  );
}

.category-banner-content {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.6rem;
  color: #f9fafb;
}


