/* ==========================================================================
   MAGASIN.CSS — Styles propres à la page liste des magasins
   (le reset, les variables et l'en-tête/nav/footer viennent de base.css)
   ========================================================================== */

* {
  font-family: 'Montserrat', sans-serif !important;
}

body {
  background-color: #ffffff;
  color: var(--text-dark);
  line-height: 1.6;
}

/* --- BANNIÈRE PAGE --- */
.page-banner {
  background: linear-gradient(rgba(13, 110, 56, 0.22), rgba(7, 72, 35, 0.32)), url('/static/img/image5.jpg') center/cover no-repeat;
  color: #ffffff;
  padding: 110px 20px 120px 20px;
  text-align: center;
}

.page-banner h1 {
  font-size: 2.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.4);
}

.breadcrumb {
  font-size: 0.88rem;
  margin-top: 8px;
  opacity: 0.9;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
}

.breadcrumb a {
  color: var(--brand-orange);
  text-decoration: none;
  font-weight: 600;
}

/* --- FILTRES & RECHERCHE DE MAGASINS --- */
.search-filter-section {
  max-width: 1250px;
  margin: -25px auto 30px auto;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.search-filter-card {
  background: #ffffff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--border-color);
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 15px;
  align-items: center;
}

.filter-item input,
.filter-item select {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border-color);
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  background: #fff;
}

.filter-item input:focus,
.filter-item select:focus {
  border-color: var(--brand-green);
}

/* --- GRILLE DES MAGASINS --- */
.stores-container {
  max-width: 1250px;
  margin: 40px auto;
  padding: 0 20px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 25px;
}

.store-card {
  background: #ffffff;
  border: 1px solid var(--border-color);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

.store-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.06);
}

.store-card-header {
  position: relative;
  height: 200px;
  background: var(--bg-light);
}

.store-card-header img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.store-card-header::after {
  content: '';
  position: absolute;
  inset: 0;
  background: none;
}

.store-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.store-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--brand-green-dark);
  margin-bottom: 15px;
}

.store-info-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 0.88rem;
}

.store-info-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #4b5563;
  font-weight: 600;
}

.store-info-list li a {
  color: #4b5563;
  text-decoration: none;
  transition: color 0.2s;
}

.store-info-list li a:hover {
  color: var(--brand-green);
  text-decoration: underline;
}

.store-info-list svg {
  width: 18px;
  height: 18px;
  stroke: var(--brand-orange);
  fill: none;
  stroke-width: 2;
  flex-shrink: 0;
}

/* PAGINATION */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 50px;
}

.page-btn {
  padding: 8px 16px;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  background: #fff;
  color: var(--brand-green);
  font-weight: 700;
  text-decoration: none;
  font-size: 0.88rem;
}

.page-btn.active, .page-btn:not(.disabled):hover {
  background: var(--brand-green);
  color: white;
  border-color: var(--brand-green);
}

.page-btn.disabled {
  opacity: 0.4;
  cursor: default;
  pointer-events: none;
}

@media (max-width: 992px) {
  .search-filter-card { grid-template-columns: 1fr; }
  .store-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-banner { padding: 70px 20px 80px 20px; }
  .page-banner h1 { font-size: 1.7rem; }
}
