@import url('theme.css');

/* Variables CSS pour la cohérence */
:root {
  --card-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  --card-shadow-hover: 0 16px 48px rgba(0, 0, 0, 0.15);
  --border-radius: 16px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  --gradient-secondary: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  --gradient-success: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  --gradient-warning: linear-gradient(135deg, #43e97b 0%, #38f9d7 100%);
}

/* Animation d'entrée pour les cartes */
@keyframes slideInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.background {
  color: #fff;
}

.section_responsive {
  height: 85vh;
  position: relative;
}

@media (max-width: 900px) {
  .section_responsive {
    height: 50vh;
  }
}

@media (max-width: 496px) {
  .section_responsive {
    height: 35vh;
  }
}
.background_template_image {
  height: 100%;
  position: relative;
  width: 100%;
  z-index: 1;

}

/************************ CATALOGUE COMPONENTS *********************************/

.catalogue {
  position: relative;
  font-family: 'Salsa';
  font-size: 1.2rem;
  max-width: 1440px;
  margin: auto;
}

/* Styles pour la barre de navigation */
.catalogue_navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  overflow-x: auto;
  white-space: nowrap;
  border-bottom: 2px solid var(--couleur-sous-titre);
  scrollbar-width: thin;
  scrollbar-color: gray lightgray;
  text-align: center;
  background-color: white; /* Important pour éviter que le contenu derrière soit visible */
  margin: 0 auto 2rem;
  padding: 1rem;
}


.catalogue_navbar ul {
  display: inline-flex;
  gap: 0.5rem;
  padding: 0;
  margin: 0;
}

.catalogue_navbar a {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 16px;
  background-color: var(--couleur-menu);
  color: var(--couleur-sous-titre);
  font-weight: 600;  text-transform: uppercase;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: color 0.3s ease, border-color 0.3s ease, background-color 0.3s ease;
}


.catalogue_navbar a:hover {
  color: var(--couleur-rouge);
  border-color: var(--couleur-rouge);
  background-color: rgba(0, 0, 0, 0.05); /* léger fond au survol */
}

.catalogue_navbar a.active {
  background-color: var(--couleur-rouge);
  color: white;
}

.catalogue_content {
  padding: 2rem;
  animation: slideInUp 0.6s ease-out;
}

.categorie_titre {
  position: relative;
  text-align: start;
  font-family: 'Knockout Junior';
  text-transform: uppercase;
  font-size: clamp(2rem, 4vw, 2.5rem);
  font-weight: 700;
  color: var(--couleur-titre);
  padding-bottom: 1rem;
  margin-bottom: 2rem;
}

.categorie_titre::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0%;
  transform: translateX(0%);
  width: 140px;
  height: 4px;
  background: var(--couleur-gradient);
  border-radius: 2px;
}

/* Conteneur pour toutes les cartes produits */
.produit_all {
  display: grid;
  grid-template-columns: repeat(
    auto-fit,
    minmax(320px, 0fr)
  ); /* Adapte le nombre de colonnes */
  gap: 16px; /* Espace entre les éléments */
  cursor: default;
}

/* Cartes produits modernes */
.produit_card {
  background: white;
  border-radius: var(--border-radius);
  box-shadow: var(--card-shadow);
  overflow: hidden;
  transition: var(--transition);
  position: relative;
  animation: slideInUp 0.6s ease-out;
  animation-fill-mode: both;
}

.produit_card:nth-child(1) { animation-delay: 0.1s; }
.produit_card:nth-child(2) { animation-delay: 0.2s; }
.produit_card:nth-child(3) { animation-delay: 0.3s; }
.produit_card:nth-child(4) { animation-delay: 0.4s; }
.produit_card:nth-child(5) { animation-delay: 0.5s; }
.produit_card:nth-child(6) { animation-delay: 0.6s; }


/* Style pour l'image du produit */
.produit_image {
  width: 100%;
  height: auto;
  border-radius: 4px;
  object-fit: contain;
  object-position: center center;
  aspect-ratio: 4 / 3;
  padding: 16px;
}

.table-container {
  width: 100%;
  margin: 0 auto;
  overflow-x: auto;
}

/* Contenu de la carte */
.produit_content {
  padding: 1.5rem;
}

.produit_texte {
  font-size: 1.1rem;
  font-weight: 600;
  color: #333;
  margin-bottom: 0.5rem;
  line-height: 1.4;
}

.produit_description {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 1rem;
  line-height: 1.5;
}

/* Tableau des prix */
.custom-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  border-radius: 8px;
  overflow: hidden;
}

.custom-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #dee2e6;
  font-size: 0.9rem;
}

.custom-table td:first-child {
  font-weight: 500;
  color: #495057;
}

.custom-table td:last-child {
  font-weight: 700;
  text-align: right;
  color: #495057;
}

.custom-table tr:last-child td {
  border-bottom: none;
}

.custom-table tr:hover {
  background: rgba(255, 255, 255, 0.5);
}

/* Badges pour les catégories */
.produit_badge {
  display: none;
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: var(--couleur-rouge);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 15px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Responsive */
@media (max-width: 768px) {
  .catalogue {
    padding: 1rem 0.5rem;
  }
  
  .produit_all {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    padding: 0 0.5rem;
  }
  
  .catalogue_navbar {
    margin: 0 0.5rem 1.5rem;
    padding: 0.75rem;
  }
  
  .catalogue_navbar a {
    padding: 0.5rem 1rem;
    font-size: 0.8rem;
  }
  
  .produit_content {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .produit_all {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .catalogue_navbar ul {
    flex-direction: column;
    gap: 0.25rem;
  }
  
  .catalogue_navbar a {
    text-align: center;
    width: 100%;
  }
}

/* Animations supplémentaires */
@keyframes pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.produit_card:hover .produit_badge {
  animation: pulse 1s infinite;
}
