/**
 * Fichier: css/commerce.css
 * Ajouté le: 2026-01-21 06:23:36
 */

/* Styles pour les pages de commerces */

/* Hero section */
.hero-section {
    background-size: cover;
    background-position: center;
    color: #fff;
    text-align: center;
	min-height: 700px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-family: 'Montserrat', sans-serif;
}

.hero-content p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

/* Animation texte */
.text-reveal {
    opacity: 0;
    animation: fadeIn 1s ease forwards;
}

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

/* Section de recherche/filtres */
.search-section {
    padding: 2rem 0;
    background-color: #f9f9f9;
}

.search-container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.filter-options {
    display: flex;
    gap: 1rem;
}

.filter-options select {
    padding: 0.75rem 1.5rem;
    border: 1px solid #ddd;
    border-radius: 30px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    min-width: 200px;
}

/* Onglets de catégories */
.category-filter-section {
    padding: 1rem 0;
    background-color: #fff;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
}

.category-tab {
    background-color: #f1f1f1;
    color: #333;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.category-tab i {
    margin-right: 0.5rem;
}

.category-tab:hover {
    background-color: #e0e0e0;
}

.category-tab.active {
    background-color: #4CAF50;
    color: white;
}

/* Section des commerces */
.shops-section {
    padding: 3rem 0;
}

.shops-section h2 {
    margin-bottom: 2rem;
    font-family: 'Montserrat', sans-serif;
    color: #333;
    text-align: center;
    font-size: 2rem;
}

.shops-section h2 i {
    margin-right: 0.5rem;
    color: #4CAF50;
}

.shops-section h2 span {
    color: #4CAF50;
}

/* Cartes des commerces */
.shop-cards-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.shop-card {
    background-color: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.shop-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.shop-image {
    height: 200px;
    overflow: hidden;
}

.shop-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.shop-card:hover .shop-image img {
    transform: scale(1.05);
}

.shop-info {
    padding: 1.5rem;
}

.shop-name {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.shop-details {
    margin-bottom: 1.5rem;
}

.shop-details p {
    margin-bottom: 0.5rem;
    color: #555;
    font-size: 0.95rem;
}

.shop-details p strong {
    margin-right: 0.3rem;
}

.shop-actions {
    display: flex;
    justify-content: center;
}

.btn-view {
    background-color: #4CAF50;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-view:hover {
    background-color: #388E3C;
}

/* Badges */
.badge {
    font-size: 0.7rem;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-weight: 500;
    margin-left: 0.5rem;
}

.badge-new {
    background-color: #2196F3;
    color: white;
}

.badge-popular {
    background-color: #FFC107;
    color: #333;
}

.badge-promo {
    background-color: #F44336;
    color: white;
}

/* Message aucun résultat */
.no-results {
    text-align: center;
    padding: 2rem;
    background-color: #f9f9f9;
    border-radius: 10px;
    margin-top: 1rem;
}

.no-results p {
    margin-bottom: 1rem;
    color: #555;
}

.btn-primary {
    background-color: #4CAF50;
    color: white;
    padding: 0.7rem 1.5rem;
    border-radius: 30px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
    font-weight: 500;
}

.btn-primary:hover {
    background-color: #388E3C;
}

/* Animation d'apparition */
.to-animate {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.5s ease forwards;
}

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

/* Délai d'animation pour chaque carte */
.shop-card:nth-child(1) { animation-delay: 0.1s; }
.shop-card:nth-child(2) { animation-delay: 0.2s; }
.shop-card:nth-child(3) { animation-delay: 0.3s; }
.shop-card:nth-child(4) { animation-delay: 0.4s; }
.shop-card:nth-child(5) { animation-delay: 0.5s; }
.shop-card:nth-child(6) { animation-delay: 0.6s; }
.shop-card:nth-child(7) { animation-delay: 0.7s; }



/* Styles pour le slider de la galerie de commerce */

/* Container principal de la galerie */
.shop-gallery {
  position: relative;
  width: 100%;
  margin-bottom: 20px;
  border-radius: 8px;
  overflow: hidden;
}

/* Image principale */
.gallery-main {
  position: relative;
  width: 100%;
  height: 0;
  padding-bottom: 66.67%; /* Ratio 3:2 */
  overflow: hidden;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-main img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery-main:hover img {
  transform: scale(1.03);
}

/* Contrôles du slider */
.gallery-controls {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.shop-gallery:hover .gallery-controls {
  opacity: 1;
}

.gallery-prev, .gallery-next {
  width: 48px;
  height: 48px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.8);
  color: #333;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.gallery-prev:hover, 
.gallery-next:hover {
  background-color: #fff;
  transform: scale(1.1);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.gallery-prev:focus, 
.gallery-next:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(66, 153, 225, 0.5);
}

/* Badge et statut */
.shop-badges {
  position: absolute;
  top: 15px;
  left: 15px;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.badge {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.badge:hover {
  transform: scale(1.05);
}

.new-badge {
  background-color: #27ae60;
  color: white;
}

.featured-badge {
  background-color: #f39c12;
  color: white;
}

.promo-badge {
  background-color: #e74c3c;
  color: white;
}

.open-status {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.open-status.open {
  background-color: #2ecc71;
  color: white;
}

.open-status.closed {
  background-color: #e74c3c;
  color: white;
}

/* Slider d'images supplémentaires */
.gallery-slider {
  margin-top: 15px;
}

/* Thumbnails */
.gallery-thumbnails {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 10px 0;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
}

.gallery-thumbnails::-webkit-scrollbar {
  height: 5px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 5px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 5px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
  background: #aaa;
}

.thumbnail {
  flex: 0 0 auto;
  width: 80px;
  height: 60px;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.7;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

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

.thumbnail:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.thumbnail.active {
  opacity: 1;
  border-color: #4a89dc;
  transform: translateY(-3px);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

/* Indicateurs */
.gallery-indicators {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.gallery-indicators .indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #ddd;
  cursor: pointer;
  transition: all 0.3s ease;
}

.gallery-indicators .indicator.active {
  background-color: #4a89dc;
  transform: scale(1.2);
}

/* Animation de transition */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.fade-in {
  animation: fadeIn 0.5s forwards;
}

/* Adaptations responsive */
@media (max-width: 768px) {
  .gallery-main {
    padding-bottom: 75%; /* Ratio 4:3 sur mobile */
  }
  
  .gallery-prev, 
  .gallery-next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }
  
  .thumbnail {
    width: 60px;
    height: 45px;
  }
  
  .badge, 
  .open-status {
    padding: 5px 10px;
    font-size: 10px;
  }
}

@media (max-width: 480px) {
  .gallery-main {
    padding-bottom: 80%; /* Ratio presque carré sur très petit écran */
  }
  
  .gallery-controls {
    padding: 0 10px;
  }
  
  .gallery-prev, 
  .gallery-next {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  
  .thumbnail {
    width: 50px;
    height: 40px;
  }
}
/* Styles pour les nouveaux filtres permettant de sélectionner le type de commerce */
.filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 2rem;
    align-items: flex-end;
    justify-content: center;
    padding: 1rem 0;
}

.filter-group {
    display: flex;
    flex-direction: column;
    min-width: 250px;
    flex: 1;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
}

.filter-group select {
    padding: 0.8rem 1rem;
    border: 2px solid #eee;
    border-radius: 50px;
    font-size: 0.95rem;
    color: var(--text-tertiaire);
    background-color: white;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%234e9696' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(78, 206, 210, 0.2);
}

.filter-actions {
    display: flex;
    gap: 0.5rem;
}

/* Style responsive */
@media screen and (max-width: 768px) {
    .filters-row {
        flex-direction: column;
        gap: 1rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-actions {
        width: 100%;
    }
    
    .filter-actions button {
        width: 100%;
    }
}

/* Animation pour les sélecteurs */
.filter-group select {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.filter-group select:focus,
.filter-group select:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}