/* === RESET GÉNÉRAL === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f5f5;
  color: #222;
  padding-top: 130px; /* espace pour la nav fixe */
}

@media (max-width: 768px) {
  body.columns-1 .category-block {
    grid-template-columns: 1fr;
  }
  body.columns-2 .category-block {
    grid-template-columns: repeat(2, 1fr);
  }
  body.columns-3 .category-block {
    grid-template-columns: repeat(2, 1fr);
  }
  body.columns-4 .category-block {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* === SUPPRIME VISUELLEMENT LE HEADER === */
.boutique-header {
  height: 0;
  overflow: hidden;
  position: relative;
}

/* === LOGO FIXE À GAUCHE === */
.boutique-header::before {
  content: "";
  position: fixed;
  top: 1vw;
  left: 1vw;
  width: 5vw;
  height: 5vw;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1001;
}


/* === NAVIGATION FIXE EN HAUT TYPE SHOWROOM === */
.footer-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  width: 100vw;
  min-height: 150px; /* ou 100px selon ton besoin */
  background: #000000;
  border-bottom: 2px solid #ddd;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 20px 18px 20px;
  z-index: 1000;
}

/* === LIENS DE NAVIGATION === */
.footer-nav a {
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 20px;
  padding: 14px 20px;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: all 0.3s ease;
}
.footer-nav a:hover {
  color: #00eb33;
  border-color: #00ffb3;
}

/* === ZONE FILTRES MODERNE ET ÉLÉGANTE === */
.filter-bar-wrapper {
  background: #ffffff;
  border: 1px solid #e0e0e0;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  padding: 25px 30px;
  margin: 40px auto;
  border-radius: 16px;
  max-width: 1100px;
  transition: all 0.3s ease-in-out;
}

/* Ajout léger d’effet en hover si tu veux */
.filter-bar-wrapper:hover {
  box-shadow: 0 6px 18px rgba(0, 119, 255, 0.1);
}


/* === BARRE DE FILTRES === */
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}

/* === CHAMPS & BOUTONS DE FILTRES === */
.filter-bar select,
.filter-bar button {
  padding: 10px 16px;
  font-size: 1rem;
  font-weight: bold;
  background: white;
  color: #333;
  border: 2px solid #ccc;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-width: 150px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.filter-bar select:hover,
.filter-bar button:hover {
  background: #0077ff;
  color: white;
  border-color: #0077ff;
}

/* === CARTES PRODUITS === */
.category-section {
  max-width: 1200px;
  margin: 50px auto;
  background: white;
  border-radius: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  padding: 30px;
  border: 1px solid #e0e0e0;
}

.category-section h2 {
  font-size: 1.6rem;
  color: #0077ff;
  margin-bottom: 20px;
  text-align: center;
  border-bottom: 1px solid #ddd;
  padding-bottom: 10px;
}

.category-block {
  display: grid;
  gap: 20px;
  justify-items: center;
}


.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}


.product-card:hover {
  transform: translateY(-5px);
}

.product-image img {
  width: 100%;
  height: auto;
  display: block;
}

.product-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.product-info h3 {
  font-size: 1.1rem;
  color: #222;
  margin: 0;
}

.product-price {
  font-weight: bold;
  color: #0077ff;
}

.product-info button {
  padding: 6px 12px;
  background: transparent;
  color: #0077ff;
  border: 1px solid #0077ff;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}
.product-info button:hover {
  background: #0077ff;
  color: white;
}

.extra-info {
  font-size: 0.9rem;
  color: #444;
  margin-top: 10px;
  list-style: none;
  padding-left: 0;
}

.hidden {
  display: none;
}

/* === LIGHTBOX === */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.85);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.lightbox:not(.hidden) {
  display: flex;
}

#lightboxContent img,
#lightboxContent video {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.3);
}

.close-btn,
.nav.prev,
.nav.next {
  position: absolute;
  font-size: 2rem;
  color: white;
  cursor: pointer;
  user-select: none;
  display: none;
  transition: transform 0.2s ease;
}

.lightbox:not(.hidden) .close-btn,
.lightbox:not(.hidden) .nav.prev,
.lightbox:not(.hidden) .nav.next {
  display: block;
}

.close-btn { top: 20px; right: 30px; }
.nav.prev { top: 50%; left: 30px; transform: translateY(-50%); }
.nav.next { top: 50%; right: 30px; transform: translateY(-50%); }

.close-btn:hover,
.nav.prev:hover,
.nav.next:hover {
  transform: scale(1.2);
}

/* === CONTACT SECTION === */
#contactSection {
  max-width: 600px;
  margin: 60px auto;
  background: white;
  padding: 20px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  border: 1px solid #ddd;
  color: #333;
}

#contactSection p {
  margin: 10px 0;
}

#contactSection input {
  width: 60%;
  padding: 6px 10px;
  margin-right: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

#contactSection button {
  padding: 6px 12px;
  background: #0077ff;
  border: none;
  color: white;
  border-radius: 6px;
  cursor: pointer;
}

#copyMsg {
  display: inline-block;
  margin-left: 10px;
  color: green;
  font-weight: bold;
}

@media (max-width: 768px) {
  .category-block {
    flex-direction: column;
    align-items: center;
  }
  .product-card {
    width: 100%;
    max-width: 95%;
  }
  #contactSection input {
    width: 100%;
    margin: 10px 0;
  }
}

@media (max-width: 768px) {
  .boutique-header::before {
    top: 2vw;
    left: 2vw;
    width: 17vw;
    height: 17vw;
  }
}


body.columns-1 .category-block {
  grid-template-columns: 1fr;
}

body.columns-2 .category-block {
  grid-template-columns: repeat(2, 1fr);
}

body.columns-3 .category-block {
  grid-template-columns: repeat(3, 1fr);
}

body.columns-4 .category-block {
  grid-template-columns: repeat(4, 1fr);
}


.product-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  overflow: hidden;
  width: 100%;       /* important pour le grid */
  max-width: 100%;   /* empêche les débordements */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 340px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.product-image {
  width: 100%;
  height: 460px; /* ou 200px, selon ton design */
  overflow: hidden;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Remplit la zone sans déformer l’image */
  display: block;
}

a, button, select, input {
  transition: all 0.3s ease-in-out;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.2);
}

.footer-nav a.active {
  background-color: #0077ff;
  color: white;
  border-color: #0077ff;
}

.product-image {
  position: relative;
  overflow: hidden;
}
.product-image img {
  transition: transform 0.3s ease;
}
.product-image:hover img {
  transform: scale(1.05);
}

.product-info button {
  background: linear-gradient(to right, #0077ff, #00bbff);
  border: none;
  color: white;
}
.product-info button:hover {
  filter: brightness(1.1);
}

.boutique-title,
.category-section h2 {
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.back-btn {
  position: fixed;
  bottom: 20px;
  left: 20px;
  background: #ffffff;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  border: 1px solid #ccc;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  color: #0077ff;
  font-size: 1rem;
  max-width: 250px;
  width: fit-content;
  transition: all 0.3s ease;
}

.back-btn:hover {
  background: #0077ff;
  color: white;
  border-color: #0077ff;
}

@media (max-width: 768px) {
  .back-btn {
    font-size: 0.9rem;
    padding: 8px 12px;
    border-radius: 8px;
    max-width: 90%;
    width: fit-content;
    left: 50%;
    transform: translateX(-50%);
  }
}



.prix-original {
  text-decoration: line-through;
  color: #e22020;
  margin-right: 8px;
}
.prix-solde {
  color: rgb(37, 220, 20);
  font-weight: bold;
  font-size: 1.2em;
}

.banniere-soldes {
  overflow: hidden;
  background: #222;
  padding: 10px 0;
  border-top: 2px solid red;
  border-bottom: 2px solid red;
}
.banniere-soldes .defilement {
  display: flex;
  gap: 20px;
  animation: defilement 30s linear infinite;
}
.item-solde {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  background: #111;
  border: 1px solid #444;
  border-radius: 6px;
  padding: 6px 10px;
  color: white;
}
.item-solde img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  margin-right: 8px;
  border-radius: 4px;
}
.item-solde .info {
  font-size: 0.9em;
}
.item-solde .old {
  text-decoration: line-through;
  color: #888;
  margin-right: 5px;
}
.item-solde .new {
  color: #ff4444;
  font-weight: bold;
}
@keyframes defilement {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

@media (max-width: 768px) {
  .filtrage-container {
    flex-direction: column;
    align-items: center;
  }

  .filtrage-container input,
  .filtrage-container select {
    width: 90%;
    margin-bottom: 10px;
  }

  #colSelect {
    width: 100%;
  }
}

@media (max-width: 768px) {
  .footer-nav a {
    font-size: 16px;
    padding: 10px 14px;
  }

  .boutique-title {
    font-size: 1.2rem;
    text-align: center;
  }

  .btn-group a {
    display: block;
    margin: 4px auto;
    font-size: 0.9rem;
  }
}

@media (max-width: 768px) {
  .banniere-soldes .defilement {
    gap: 10px;
    animation-duration: 15s;
  }

  .item-solde {
    padding: 4px 6px;
    font-size: 0.8rem;
  }

  .item-solde img {
    width: 30px;
    height: 30px;
  }
}

@media (max-width: 768px) {
  .grid {
    display: grid;
    grid-template-columns: 1fr !important;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .infos-boutique {
    flex-direction: column;
    gap: 10px;
  }

  .infos-boutique .col {
    width: 100%;
  }
}

@media (min-width: 601px) and (max-width: 1024px) {
  body.columns-3 .category-block {
    grid-template-columns: repeat(3, 1fr);
  }
  body.columns-4 .category-block {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 768px) {
  .product-card {
    min-height: auto;
  }

  .product-image {
    height: 180px; /* réduit la taille de l’image sur mobile */
  }

  .product-info {
    padding: 8px;
    gap: 4px;
  }

  .product-info h3 {
    font-size: 1rem;
  }

  .product-price {
    font-size: 0.95rem;
  }

  .product-info button {
    font-size: 0.9rem;
    padding: 5px 10px;
  }
}
