/**
 * Styles pour le module Esprit de Fête Stores - Carrousel
 * @author ITROOM
 */

/* ================================================
   SECTION PRINCIPALE
   ================================================ */

.edf-stores-section {
    padding: 4rem 0 0;
    background-color: var(--bs-gray-100, #f8f9fa);
    border-top: 1px solid #D81B60;
    border-bottom: 1px solid #D81B60;
}

/* ================================================
   COLONNE GAUCHE - INTRODUCTION
   ================================================ */

.edf-stores-intro {
  padding-right: 2rem;
}

.edf-stores-main-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 1.5rem;
  color: var(--bs-heading, #2c3e50);
}

.edf-stores-main-title .text-success {
  color: var(--bs-success, #27ae60) !important;
}

.edf-stores-main-title .text-primary {
  color: var(--bs-primary, #D81B60) !important;
}

.edf-stores-description {
  color: var(--bs-text-secondary, #666);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 2rem;
}

.edf-stores-description p {
  margin-bottom: 1rem;
}

/* ================================================
   SOUS-TITRE "Nos X boutiques"
   ================================================ */

.edf-stores-subtitle {
  font-family: 'Brush Script MT', 'Lucida Handwriting', cursive, sans-serif;
  font-size: 2rem;
  color: var(--bs-primary, #D81B60);
  margin-bottom: 1.5rem;
  font-weight: normal;
  font-style: italic;
}

/* ================================================
   CARROUSEL
   ================================================ */

.edf-stores-carousel-wrapper {
  position: relative;
}

.edf-stores-carousel {
  position: relative;
  overflow: hidden;
  min-height: 400px;
}

.edf-store-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.edf-store-slide.active {
  position: relative;
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

/* ================================================
   IMAGE DU MAGASIN
   ================================================ */

.edf-store-image {
  width: 100%;
  height: 250px;
  overflow: hidden;
  background-color: var(--bs-gray-200, #e9ecef);
}

.edf-store-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ================================================
   INFORMATIONS DU MAGASIN
   ================================================ */

.edf-store-info {
  padding: 1.5rem;
}

.edf-store-name {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--bs-heading, #2c3e50);
  margin-bottom: 0.75rem;
}

.edf-store-hours {
  color: var(--bs-text-primary, #333);
  font-size: 0.85rem;
  line-height: 1.8;
}

.edf-store-hours p {
  margin-bottom: 0.25rem !important;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.edf-store-hours strong {
  color: var(--bs-heading, #2c3e50);
  font-weight: 600;
  min-width: 70px;
  flex-shrink: 0;
}

.edf-store-address {
  color: var(--bs-primary, #D81B60);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.4;
}

.edf-store-phone a {
  color: var(--bs-primary, #D81B60);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.1rem;
  transition: color 0.3s ease;
}

.edf-store-phone a:hover {
  color: var(--bs-btn-primary-hover-bg, #c0392b);
  text-decoration: underline;
}

/* ================================================
   BOUTON SUIVANT (Flèche circulaire)
   ================================================ */

.edf-store-next-btn {
  position: absolute;
  bottom: -25px;
  right: 50%;
  transform: translateX(50%);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--bs-primary, #D81B60);
  border: none;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  z-index: 10;
}

.edf-store-next-btn:hover {
  background: var(--bs-btn-primary-hover-bg, #c0392b);
  transform: translateX(50%) scale(1.1);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.edf-store-next-btn:active {
  transform: translateX(50%) scale(0.95);
}

.edf-store-next-btn i {
  font-size: 2rem;
}

/* ================================================
   RESPONSIVE - MOBILE
   ================================================ */

@media (max-width: 991px) {
  .edf-stores-section {
    padding: 2.5rem 0;
  }

  .edf-stores-intro {
    padding-right: 0;
    margin-bottom: 2rem;
  }

  .edf-stores-main-title {
    font-size: 1.5rem;
  }

  .edf-stores-subtitle {
    font-size: 1.75rem;
    text-align: center;
  }

  .edf-stores-carousel {
    min-height: 350px;
  }

  .edf-store-image {
    height: 200px;
  }

  .edf-store-next-btn {
    bottom: -25px;
  }
}

@media (max-width: 575px) {
  .edf-stores-main-title {
    font-size: 1.25rem;
  }

  .edf-stores-description {
    font-size: 0.9rem;
  }

  .edf-stores-subtitle {
    font-size: 1.5rem;
  }

  .edf-store-image {
    height: 180px;
  }

  .edf-store-info {
    padding: 1.25rem;
  }

  .edf-store-name {
    font-size: 1.25rem;
  }

  .edf-store-hours {
    font-size: 0.8rem;
  }

  .edf-store-hours strong {
    min-width: 75px;
  }
}

/* ================================================
   DESKTOP - Layout côte à côte
   ================================================ */

@media (min-width: 992px) {
  .edf-stores-carousel {
    min-height: 500px;
  }

  .edf-store-slide {
    display: flex;
    flex-direction: row;
  }

  .edf-store-image {
    width: 50%;
    height: auto;
  }

  .edf-store-info {
    width: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .edf-store-next-btn {
    right: 20px;
    bottom: 50px;
    transform: translateX(0);
  }

  .edf-store-next-btn:hover {
    transform: scale(1.1);
  }

  .edf-store-next-btn:active {
    transform: scale(0.95);
  }
}

/* ================================================
   ANIMATIONS
   ================================================ */

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

.edf-store-slide.active {
  animation: slideIn 0.5s ease-out;
}

/* ================================================
   VARIANTES DE COULEURS
   ================================================ */

/* Si vous voulez personnaliser les couleurs */
[data-theme="pink"] .edf-stores-main-title .text-primary {
  color: #EC407A !important;
}

[data-theme="pink"] .edf-store-address,
[data-theme="pink"] .edf-store-phone a {
  color: #EC407A;
}

[data-theme="pink"] .edf-store-next-btn {
  background: #EC407A;
}

[data-theme="pink"] .edf-store-next-btn:hover {
  background: #D81B60;
}

/* ================================================
   MODE SOMBRE (optionnel)
   ================================================ */

@media (prefers-color-scheme: dark) {
  .edf-stores-section {
    background-color: var(--bs-gray-900, #212529);
  }

  .edf-store-slide {
    background: var(--bs-gray-800, #343a40);
  }

  .edf-stores-main-title {
    color: var(--bs-gray-100, #f8f9fa);
  }

  .edf-stores-description {
    color: var(--bs-gray-400, #ced4da);
  }

  .edf-store-name {
    color: var(--bs-gray-100, #f8f9fa);
  }

  .edf-store-hours {
    color: var(--bs-gray-300, #dee2e6);
  }
}

/* ================================================
   ACCESSIBILITÉ
   ================================================ */

.edf-store-next-btn:focus {
  outline: 3px solid var(--bs-primary, #D81B60);
  outline-offset: 3px;
}

.edf-store-next-btn:focus:not(:focus-visible) {
  outline: none;
}

/* Réduire les animations si l'utilisateur préfère */
@media (prefers-reduced-motion: reduce) {
  .edf-store-slide,
  .edf-store-next-btn {
    transition: none;
  }

  .edf-store-slide.active {
    animation: none;
  }
}
