/* Boutique Styles - Version Responsive Complète */

/* Variables CSS pour la boutique */
:root {
  --boutique-gold: #d4af37;
  --boutique-gold-dark: #c19b2e;
  --boutique-gold-light: #e6c965;
  --boutique-dark: #2c3e50;
  --boutique-gray: #7f8c8d;
  --boutique-light-gray: #ecf0f1;
  --boutique-white: #ffffff;
  --boutique-shadow: rgba(0, 0, 0, 0.1);
  --boutique-shadow-hover: rgba(0, 0, 0, 0.15);
  --boutique-transition: all 0.3s ease;
}

/* Reset et base */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

/* Container responsive global */
.container {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Hero Section Boutique */
.hero-boutique {
  position: relative;
  height: 80vh;
  min-height: 600px;
  max-height: 800px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(
    135deg,
    var(--boutique-dark) 0%,
    var(--boutique-gold-dark) 100%
  );
}

.hero-boutique .carousel-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-boutique .carousel-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-boutique .carousel-slide.active {
  opacity: 1;
}

.hero-boutique .carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.7);
}

.hero-boutique::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.hero-overlay {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  width: 100%;
}

.hero-content h1 {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

.hero-content .text-gold {
  color: var(--boutique-gold);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

.hero-content p {
  font-size: 1.3rem;
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.cta-btn {
  background: linear-gradient(
    135deg,
    var(--boutique-gold) 0%,
    var(--boutique-gold-dark) 100%
  );
  color: white;
  border: none;
  padding: 15px 35px;
  border-radius: 50px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--boutique-transition);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  min-height: 54px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
  background: linear-gradient(
    135deg,
    var(--boutique-gold-light) 0%,
    var(--boutique-gold) 100%
  );
}

/* Carousel Indicators */
.carousel-indicators {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 4;
}

.indicator {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.7);
  background: transparent;
  cursor: pointer;
  transition: var(--boutique-transition);
  min-height: 14px;
}

.indicator.active,
.indicator:hover {
  background-color: var(--boutique-gold);
  border-color: var(--boutique-gold);
  transform: scale(1.2);
}

/* Categories Section */
.categories-section {
  padding: 4rem 0 2rem;
  background: var(--boutique-white);
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h2 {
  font-size: 2.5rem;
  color: var(--boutique-dark);
  margin-bottom: 1rem;
  font-weight: 600;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--boutique-gray);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

.categories-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 15px;
  justify-content: center;
  padding: 0 20px 20px;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

.category-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border: 2px solid var(--boutique-light-gray);
  background: var(--boutique-white);
  border-radius: 25px;
  cursor: pointer;
  transition: var(--boutique-transition);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--boutique-dark);
  box-shadow: 0 2px 5px var(--boutique-shadow);
  white-space: nowrap;
  flex-shrink: 0;
  min-height: 48px;
}

.category-btn i {
  font-size: 1rem;
}

.category-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px var(--boutique-shadow-hover);
  border-color: var(--boutique-gold);
}

.category-btn.active {
  background: linear-gradient(
    135deg,
    var(--boutique-gold) 0%,
    var(--boutique-gold-dark) 100%
  );
  color: white;
  border-color: var(--boutique-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

/* Search Section */
.search-section {
  padding: 2rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.search-wrapper {
  display: flex;
  justify-content: center;
}

.search-box {
  position: relative;
  max-width: 500px;
  width: 100%;
}

.search-box i {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--boutique-gray);
  z-index: 2;
}

.search-box input {
  width: 100%;
  padding: 15px 60px 15px 50px;
  border: 2px solid var(--boutique-light-gray);
  border-radius: 50px;
  outline: none;
  font-size: 1rem;
  transition: var(--boutique-transition);
  background: var(--boutique-white);
  box-shadow: 0 2px 10px var(--boutique-shadow);
  font-size: 16px; /* Évite le zoom sur iOS */
}

.search-box input:focus {
  border-color: var(--boutique-gold);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.2);
}

.clear-btn {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--boutique-gray);
  cursor: pointer;
  font-size: 1.1rem;
  padding: 5px;
  border-radius: 50%;
  transition: var(--boutique-transition);
  display: none;
  min-height: 30px;
  min-width: 30px;
}

.clear-btn:hover {
  background: var(--boutique-light-gray);
  color: var(--boutique-dark);
}

.clear-btn.visible {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Products Section */
.products-section {
  padding: 3rem 0;
  background: var(--boutique-white);
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1rem;
}

.products-header h2 {
  font-size: 2rem;
  color: var(--boutique-dark);
  font-weight: 600;
}

.products-count {
  background: var(--boutique-light-gray);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  color: var(--boutique-gray);
  font-weight: 500;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 3rem;
}

.product-card {
  background: var(--boutique-white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 5px 15px var(--boutique-shadow);
  transition: var(--boutique-transition);
  cursor: pointer;
  position: relative;
}

.product-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    135deg,
    transparent 0%,
    rgba(212, 175, 55, 0.1) 100%
  );
  opacity: 0;
  transition: var(--boutique-transition);
  z-index: 1;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px var(--boutique-shadow-hover);
}

.product-card:hover::before {
  opacity: 1;
}

.product-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  transition: var(--boutique-transition);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-info {
  padding: 20px;
  position: relative;
  z-index: 2;
}

.product-title {
  font-size: 1.2rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: var(--boutique-dark);
  line-height: 1.4;
}

.product-category {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: linear-gradient(
    135deg,
    var(--boutique-gold) 0%,
    var(--boutique-gold-dark) 100%
  );
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 15px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* Loading et Error States */
.loading {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: var(--boutique-gray);
}

.spinner {
  width: 40px;
  height: 40px;
  border: 4px solid var(--boutique-light-gray);
  border-top: 4px solid var(--boutique-gold);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.error-message {
  grid-column: 1 / -1;
  text-align: center;
  padding: 4rem 2rem;
  color: #dc3545;
}

.retry-btn {
  background: var(--boutique-gold);
  color: white;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  margin-top: 15px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--boutique-transition);
  min-height: 44px;
}

.retry-btn:hover {
  background: var(--boutique-gold-dark);
  transform: translateY(-2px);
}

/* About Boutique Section */
.about-boutique-section {
  padding: 4rem 0;
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.about-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about-text h2 {
  font-size: 2.2rem;
  color: var(--boutique-dark);
  margin-bottom: 1.5rem;
  font-weight: 600;
}

.about-text p {
  font-size: 1.1rem;
  color: var(--boutique-gray);
  line-height: 1.7;
  margin-bottom: 1.5rem;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-top: 2rem;
}

.feature {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  padding: 20px;
  background: var(--boutique-white);
  border-radius: 12px;
  box-shadow: 0 3px 10px var(--boutique-shadow);
  transition: var(--boutique-transition);
}

.feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--boutique-shadow-hover);
}

.feature i {
  font-size: 1.5rem;
  color: var(--boutique-gold);
  margin-top: 5px;
  flex-shrink: 0;
}

.feature h3 {
  font-size: 1.1rem;
  color: var(--boutique-dark);
  margin-bottom: 5px;
  font-weight: 600;
}

.feature p {
  font-size: 0.95rem;
  color: var(--boutique-gray);
  margin: 0;
  line-height: 1.5;
}

/* About Carousel */
.about-carousel {
  position: relative;
  height: 450px;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px var(--boutique-shadow);
}

.about-slide {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.about-slide.active {
  opacity: 1;
}

.about-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.about-indicators {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.about-indicator {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.8);
  background: transparent;
  cursor: pointer;
  transition: var(--boutique-transition);
  min-height: 12px;
}

.about-indicator.active,
.about-indicator:hover {
  background-color: var(--boutique-gold);
  border-color: var(--boutique-gold);
  transform: scale(1.2);
}

/* Modal */
.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.modal.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

.modal-content {
  background: var(--boutique-white);
  margin: 2rem;
  padding: 0;
  border-radius: 15px;
  max-width: 800px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  transform: scale(0.8);
  transition: transform 0.3s ease;
}

.modal.show .modal-content {
  transform: scale(1);
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.2rem;
  z-index: 10;
  transition: var(--boutique-transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

/* Pagination */
.pagination-wrapper {
  display: flex;
  justify-content: center;
  margin-top: 3rem;
}

.pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.page-btn {
  background: var(--boutique-white);
  border: 2px solid var(--boutique-light-gray);
  color: var(--boutique-dark);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--boutique-transition);
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn:hover:not(:disabled) {
  border-color: var(--boutique-gold);
  background: var(--boutique-gold);
  color: white;
}

.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.page-number {
  background: var(--boutique-white);
  border: 2px solid var(--boutique-light-gray);
  color: var(--boutique-dark);
  padding: 10px 15px;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--boutique-transition);
  min-width: 40px;
  min-height: 44px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-number:hover,
.page-number.active {
  border-color: var(--boutique-gold);
  background: var(--boutique-gold);
  color: white;
}

/* ========================================================================== */
/* RESPONSIVE DESIGN - Points de rupture */
/* ========================================================================== */

/* Extra Large Screens (1400px et +) */
@media (min-width: 1400px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 35px;
  }
}

/* Large Screens (1200px - 1399px) */
@media (max-width: 1200px) {
  .container {
    max-width: 1140px;
    padding: 0 20px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 25px;
  }
  
  .hero-content h1 {
    font-size: 3rem;
  }
  
  .section-header h2 {
    font-size: 2.2rem;
  }
}

/* Desktop (992px - 1199px) */
@media (max-width: 992px) {
  .container {
    max-width: 960px;
    padding: 0 15px;
  }
  
  .hero-boutique {
    height: 70vh;
    min-height: 550px;
  }
  
  .hero-content h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }
  
  .hero-content p {
    font-size: 1.2rem;
    margin-bottom: 1.5rem;
  }

  .about-content {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .about-carousel {
    height: 400px;
    order: -1;
  }

  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    text-align: left;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 20px;
  }
  
  .categories-wrapper {
    justify-content: flex-start;
    padding: 0 15px 15px;
  }
}

/* Tablets (768px - 991px) */
@media (max-width: 768px) {
  .container {
    max-width: 720px;
    padding: 0 15px;
  }
  
  .hero-boutique {
    height: 60vh;
    min-height: 500px;
  }

  .hero-content h1 {
    font-size: 2.2rem;
    line-height: 1.2;
    margin-bottom: 1rem;
  }

  .hero-content p {
    font-size: 1.1rem;
    padding: 0 20px;
    margin-bottom: 1.5rem;
  }
  
  .cta-btn {
    padding: 12px 25px;
    font-size: 1rem;
    min-height: 48px;
  }

  .category-btn {
    padding: 10px 18px;
    font-size: 0.9rem;
    min-height: 44px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-info {
    padding: 18px;
  }

  .search-box {
    max-width: 100%;
  }
  
  .search-box input {
    padding: 12px 50px 12px 45px;
    font-size: 0.95rem;
  }

  .section-header {
    text-align: center;
    margin-bottom: 2rem;
  }
  
  .section-header h2 {
    font-size: 2rem;
    margin-bottom: 0.8rem;
  }
  
  .section-header p {
    font-size: 1rem;
    padding: 0 10px;
  }

  .about-text h2 {
    font-size: 1.8rem;
    text-align: center;
    margin-bottom: 1rem;
  }
  
  .about-text p {
    font-size: 1rem;
    text-align: center;
  }
  
  .about-features {
    gap: 1.2rem;
  }
  
  .feature {
    flex-direction: column;
    text-align: center;
    padding: 20px 15px;
  }
  
  .feature i {
    font-size: 2rem;
    margin: 0 0 10px 0;
  }
  
  .carousel-indicators {
    bottom: 20px;
    gap: 8px;
  }
  
  .indicator {
    width: 10px;
    height: 10px;
  }

  /* Cache la scrollbar sur tablette tout en gardant le scroll */
  .categories-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }
  
  .categories-wrapper::-webkit-scrollbar {
    display: none;
  }
}

/* Mobile Large (576px - 767px) */
@media (max-width: 576px) {
  .container {
    padding: 0 10px;
  }
  
  .hero-boutique {
    height: 50vh;
    min-height: 450px;
  }
  
  .hero-content h1 {
    font-size: 1.8rem;
    line-height: 1.1;
    margin-bottom: 0.8rem;
  }
  
  .hero-content p {
    font-size: 1rem;
    padding: 0 15px;
    margin-bottom: 1.2rem;
  }
  
  .cta-btn {
    padding: 10px 20px;
    font-size: 0.95rem;
    border-radius: 25px;
    min-height: 44px;
  }

  .categories-section {
    padding: 2rem 0 1rem;
  }
  
  .categories-wrapper {
    padding: 0 10px 15px;
    gap: 10px;
  }
  
  .category-btn {
    padding: 8px 15px;
    font-size: 0.85rem;
    border-radius: 20px;
    min-height: 40px;
  }
  
  .category-btn i {
    font-size: 0.9rem;
  }

  .search-section {
    padding: 1.5rem 0;
  }
  
  .search-box {
    max-width: 100%;
  }
  
  .search-box input {
    padding: 10px 45px 10px 40px;
    font-size: 0.9rem;
    border-radius: 25px;
  }
  
  .search-box i {
    left: 15px;
    font-size: 0.9rem;
  }
  
  .clear-btn {
    right: 15px;
    font-size: 1rem;
  }

  .products-section {
    padding: 2rem 0;
  }
  
  .products-header {
    margin-bottom: 2rem;
    gap: 0.8rem;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .products-header h2 {
    font-size: 1.6rem;
    width: 100%;
  }
  
  .products-count {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 15px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .product-card {
    border-radius: 12px;
  }
  
  .product-image {
    height: 160px;
  }

  .product-info {
    padding: 12px;
  }

  .product-title {
    font-size: 0.95rem;
    line-height: 1.3;
    margin-bottom: 8px;
  }
  
  .product-category {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 10px;
  }

  .about-boutique-section {
    padding: 3rem 0;
  }
  
  .about-content {
    gap: 2rem;
  }
  
  .about-text {
    text-align: center;
  }
  
  .about-text h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  
  .about-text p {
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
  }
  
  .about-carousel {
    height: 300px;
    border-radius: 12px;
  }

  .about-features {
    gap: 1rem;
    margin-top: 1.5rem;
  }

  .feature {
    padding: 15px;
    border-radius: 10px;
    flex-direction: row;
    text-align: left;
    gap: 12px;
  }
  
  .feature i {
    font-size: 1.3rem;
    margin-top: 0;
    flex-shrink: 0;
  }
  
  .feature h3 {
    font-size: 1rem;
    margin-bottom: 4px;
  }
  
  .feature p {
    font-size: 0.85rem;
  }

  .modal-content {
    margin: 1rem;
    border-radius: 12px;
    max-height: 85vh;
  }
  
  .modal-close {
    top: 10px;
    right: 10px;
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }
  
  .pagination {
    gap: 5px;
  }
  
  .page-btn,
  .page-number {
    padding: 8px 12px;
    font-size: 0.9rem;
    min-width: 35px;
    min-height: 40px;
  }
  
  .section-header h2 {
    font-size: 1.8rem;
  }
  
  .section-header p {
    font-size: 0.95rem;
  }
}

/* Mobile Small (360px - 575px) */
@media (max-width: 480px) {
  .hero-content h1 {
    font-size: 1.6rem;
  }
  
  .hero-content p {
    font-size: 0.95rem;
    padding: 0 10px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .product-image {
    height: 200px;
  }
  
  .category-btn {
    padding: 6px 12px;
    font-size: 0.8rem;
    min-height: 36px;
  }
  
  .about-carousel {
    height: 250px;
  }
  
  .feature {
    flex-direction: column;
    text-align: center;
    padding: 12px;
  }
  
  .feature i {
    font-size: 1.5rem;
    margin-bottom: 8px;
  }
}

/* Très petits écrans (320px - 359px) */
@media (max-width: 360px) {
  .hero-content h1 {
    font-size: 1.5rem;
  }
  
  .hero-content p {
    font-size: 0.9rem;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  
  .product-image {
    height: 180px;
  }
  
  .product-info {
    padding: 10px;
  }
  
  .product-title {
    font-size: 0.9rem;
  }
  
  .category-btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }
  
  .about-carousel {
    height: 200px;
  }
}

/* ========================================================================== */
/* OPTIMISATIONS SPÉCIALES */
/* ========================================================================== */

/* Optimisations pour les appareils tactiles */
@media (hover: none) and (pointer: coarse) {
  .category-btn,
  .product-card,
  .cta-btn,
  .indicator,
  .about-indicator,
  .page-btn,
  .page-number {
    min-height: 44px;
    touch-action: manipulation;
  }
  
  .category-btn {
    padding: 12px 20px;
  }
  
  .product-card:hover {
    transform: none;
  }
  
  .product-card:active {
    transform: scale(0.98);
    transition: transform 0.1s;
  }
  
  .cta-btn:hover {
    transform: none;
  }
  
  .cta-btn:active {
    transform: scale(0.95);
  }
}

/* Amélioration du scroll horizontal avec snap */
@media (max-width: 768px) {
  .categories-wrapper {
    scroll-snap-type: x mandatory;
  }
  
  .category-btn {
    scroll-snap-align: start;
  }
}

/* Animation pour les éléments qui apparaissent */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

/* Classes utilitaires responsive */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.d-inline { display: inline; }
.d-inline-block { display: inline-block; }

@media (max-width: 768px) {
  .d-md-none { display: none; }
  .d-md-block { display: block; }
  .d-md-flex { display: flex; }
  .d-md-inline { display: inline; }
  .d-md-inline-block { display: inline-block; }
}

@media (max-width: 576px) {
  .d-sm-none { display: none; }
  .d-sm-block { display: block; }
  .d-sm-flex { display: flex; }
  .d-sm-inline { display: inline; }
  .d-sm-inline-block { display: inline-block; }
  
  .text-sm-center { text-align: center; }
  .text-sm-left { text-align: left; }
  .text-sm-right { text-align: right; }
}

/* Amélioration de l'espacement responsive */
.section-padding {
  padding: 4rem 0;
}

@media (max-width: 768px) {
  .section-padding {
    padding: 3rem 0;
  }
}

@media (max-width: 576px) {
  .section-padding {
    padding: 2rem 0;
  }
}

/* Focus styles pour l'accessibilité */
.cta-btn:focus,
.category-btn:focus,
.search-box input:focus,
.indicator:focus,
.about-indicator:focus,
.page-btn:focus,
.page-number:focus,
.modal-close:focus {
  outline: 2px solid var(--boutique-gold);
  outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .product-card {
    border: 2px solid var(--boutique-dark);
  }

  .category-btn {
    border-width: 3px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .carousel-slide,
  .about-slide {
    transition: none;
  }
  
  html {
    scroll-behavior: auto;
  }
}

/* Orientation paysage sur mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .hero-boutique {
    height: 100vh;
    min-height: 400px;
  }
  
  .hero-content h1 {
    font-size: 2rem;
  }
  
  .categories-section {
    padding: 2rem 0 1rem;
  }
}

/* Support des très grandes résolutions */
@media (min-width: 2000px) {
  .container {
    max-width: 1600px;
  }
  
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
  }
  
  .hero-content h1 {
    font-size: 4rem;
  }
  
  .hero-content p {
    font-size: 1.5rem;
  }
}