/* Reset de base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #0f1b2a;
  color: #f0f0f0;
  padding: 40px 20px;
  min-height: 100vh;
  position: relative;
}

a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1 {
  text-align: center;
  font-size: 2.8rem;
  color: #00ffd5;
  margin-bottom: 30px;
  text-shadow: 0 0 12px #00ffd5;
  user-select: none;
}

/* Filtres */
.filtrage {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 40px;
  flex-wrap: wrap;
  user-select: none;
}

.filtrage input,
.filtrage select {
  padding: 12px 16px;
  font-size: 1rem;
  border-radius: 10px;
  border: none;
  background-color: #1e2b3c;
  color: #f0f0f0;
  width: 220px;
  max-width: 90vw;
  transition: box-shadow 0.3s ease;
}

.filtrage input:focus,
.filtrage select:focus {
  outline: none;
  box-shadow: 0 0 10px #00ffd5;
  background-color: #152030;
}

/* Grille dynamique */
.grid {
  display: grid;
  gap: 30px;
  transition: all 0.4s ease-in-out;
}

.grid.columns-1 {
  grid-template-columns: repeat(1, 1fr);
}
.grid.columns-2 {
  grid-template-columns: repeat(2, 1fr);
}
.grid.columns-3 {
  grid-template-columns: repeat(3, 1fr);
}
.grid.columns-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Carte boutique */
.boutique {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 15px;
  padding: 25px 30px;
  margin: auto;
  box-shadow: 0 0 30px rgba(0, 255, 213, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.1);
  user-select: text;
  transition: transform 0.25s ease;
}

.boutique:hover {
  transform: scale(1.02);
}

.boutique h2 {
  color: #00ffd5;
  font-size: 2rem;
  margin-bottom: 15px;
  text-align: center;
  user-select: text;
}

/* Infos & description */
.description {
  background-color: rgba(0, 255, 213, 0.05);
  border-left: 4px solid #00ffd5;
  padding: 12px 16px;
  margin: 15px 0;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #e0fdf9;
  border-radius: 8px;
  text-align: justify;
  box-shadow: 0 0 10px rgba(0, 255, 213, 0.1);
}

.description strong {
  color: #00ffd5;
}

.info {
  font-size: 1.1rem;
  margin-bottom: 10px;
  color: #ccc;
  line-height: 1.4;
}

.info strong {
  color: #00ffd5;
}

/* Image/logo */
.logo-boutique {
  max-width: 100%;
  max-height: 300px;
  border-radius: 12px;
  margin-top: 15px;
  border: 2px solid #00ffd5;
  object-fit: cover;
}

/* Boutons */
.btn-group {
  margin-top: 25px;
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.btn-group a {
  background-color: #00ffd5;
  color: #000;
  padding: 12px 25px;
  font-weight: 700;
  border-radius: 12px;
  text-align: center;
  flex: 1;
  max-width: 180px;
  user-select: none;
  box-shadow: 0 0 8px rgba(0, 255, 213, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  animation: morph-wave 6s ease-in-out infinite;
}

.btn-group a:hover {
  background-color: #00ccaa;
  box-shadow: 0 0 12px rgba(0, 204, 170, 0.8);
}

/* Effets */
@keyframes morph-wave {
  0%   { border-radius: 12px; transform: scale(1); }
  25%  { border-radius: 18px 30px 12px 22px; transform: scale(1.01); }
  50%  { border-radius: 40px 12px 30px 16px; transform: scale(1.02); }
  75%  { border-radius: 20px 35px 18px 10px; transform: scale(1.01); }
  100% { border-radius: 12px; transform: scale(1); }
}

/* Fond animé */
body::after {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: url('https://www.transparenttextures.com/patterns/stardust.png');
  background-size: 600px;
  opacity: 0.5;
  animation: subtleMove2 90s infinite linear;
  z-index: -2;
}

@keyframes subtleMove2 {
  0% { background-position: 0 0; }
  100% { background-position: -1000px -1000px; }
}

/* Responsive */
@media (max-width: 768px) {
  h1 {
    font-size: 2rem;
  }

  .filtrage {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

  .filtrage input,
  .filtrage select {
    width: 90vw;
    font-size: 1rem;
  }

  .grid.columns-2,
  .grid.columns-3,
  .grid.columns-4 {
    grid-template-columns: 1fr !important;
  }

  .boutique {
    padding: 20px;
  }

  .btn-group {
    flex-direction: column;
    gap: 12px;
  }

  .btn-group a {
    max-width: 100%;
    flex: unset;
    font-size: 0.95rem;
    padding: 10px 20px;
  }
}

.infos-boutique {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 15px;
  padding: 15px 20px;
  background-color: rgba(0, 255, 213, 0.05);
  border-left: 4px solid #00ffd5;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 213, 0.1);
}

.infos-boutique .col {
  flex: 1 1 300px;
  min-width: 250px;
}

.infos-boutique p {
  margin: 6px 0;
  color: #e0fdf9;
}

.infos-boutique strong {
  color: #00ffd5;
}
.btn-retour {
  display: inline-block;
  background-color: #00ffd5;
  color: #000;
  padding: 12px 25px;
  font-weight: bold;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0, 255, 213, 0.5);
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  margin-top: 10px;
}

.btn-retour:hover {
  background-color: #00ccaa;
  box-shadow: 0 0 12px rgba(0, 204, 170, 0.8);
}

.user-info-box {
  text-align: center;
  margin: 10px auto 25px;
  padding: 12px 20px;
  font-style: italic;
  font-size: 1.1rem;
  max-width: 400px;
  background: rgba(0, 255, 213, 0.05);
  border-left: 4px solid #00ffd5;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 255, 213, 0.2);
  color: #e0fdf9;
}

.filtrage label {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(0, 255, 213, 0.05);
  border: 1px solid rgba(0, 255, 213, 0.2);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 1rem;
  color: #e0fdf9;
  cursor: pointer;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.filtrage label:hover {
  background-color: rgba(0, 255, 213, 0.1);
  box-shadow: 0 0 8px rgba(0, 255, 213, 0.3);
}

.filtrage input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: #00ffd5;
  cursor: pointer;
}


/* === Responsive par défaut === */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
  padding: 20px;
}

.boutique.card {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

/* Optionnel : les boutons de filtres en responsive */
.filtrage {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  padding: 15px;
}
.filtrage input,
.filtrage select {
  min-width: 160px;
  flex: 1 1 180px;
}

/* Correction navigation sur petits écrans */
@media screen and (max-width: 600px) {
  h1 {
    font-size: 1.4em;
    text-align: center;
  }
  .btn-group a {
    font-size: 0.85em;
    padding: 6px 10px;
  }
}

.filtrage-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}
#blocFiltres {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 10px;
  max-height: 800px;
  opacity: 1;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, opacity 0.4s ease-in-out;
}

#blocFiltres.hidden {
  max-height: 0;
  opacity: 0;
}
