/* Tous les Magasines Premium CSS */
.premium-magasines-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

.magasines-hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 2rem;
  align-items: center;
  background: var(--premium-surface, #ffffff);
  border: 1px solid var(--premium-line, #c8d0c4);
  border-radius: 24px;
  padding: 2.2rem 2.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 20px rgba(24, 34, 29, 0.04);
}

.magasines-hero-copy h1 {
  font-size: clamp(1.8rem, 3.2vw, 2.6rem);
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.02em;
  margin-bottom: .8rem;
}

.magasines-hero-copy {
  align-self: stretch;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border-radius: 18px;
  background: linear-gradient(135deg, #164d3b 0%, #0d3428 100%);
}

.magasines-hero-copy p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1rem;
  line-height: 1.6;
  margin-bottom: 1.2rem;
}

.magasines-kicker {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .35rem .8rem;
  background: rgba(220, 232, 173, 0.16);
  color: #e7f0bd;
  border: 1px solid rgba(220, 232, 173, 0.3);
  border-radius: 99px;
  font-size: .8rem;
  font-weight: 700;
  margin-bottom: .8rem;
}

.magasines-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-item strong {
  font-size: 1.5rem;
  font-weight: 800;
  color: #ffffff;
}

.stat-item span {
  font-size: .8rem;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 600;
}

.magasines-hero-visual img {
  width: 100%;
  max-height: 200px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.08);
}

/* Toolbar & Filters */
.magasines-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: var(--premium-surface, #fff);
  border: 1px solid var(--premium-line, #e2e8e0);
  border-radius: 16px;
  padding: .85rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: 0 4px 20px rgba(24, 34, 29, 0.03);
}

.magasines-search {
  display: flex;
  align-items: center;
  gap: .6rem;
  flex: 1 1 300px;
  background: #f7f9f5;
  border: 1px solid var(--premium-line, #e2e8e0);
  border-radius: 12px;
  padding: .5rem 1rem;
}

.magasines-search i {
  color: var(--premium-green, #234e32);
  font-size: 1.1rem;
}

.magasines-search input {
  border: none;
  background: transparent;
  width: 100%;
  font-size: .92rem;
  outline: none;
}

.magasines-filter-toggle {
  display: none;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: .75rem 1rem;
  background: #f7f9f5;
  border: 1px solid var(--premium-line, #e2e8e0);
  border-radius: 12px;
  font-weight: 700;
  color: var(--premium-ink, #1a251e);
  cursor: pointer;
  margin-bottom: 1rem;
}

.magasines-directory {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 1.8rem;
  align-items: start;
}

.magasines-directory.filters-hidden {
  grid-template-columns: 1fr;
}

.magasines-filters {
  background: var(--premium-surface, #fff);
  border: 1px solid var(--premium-line, #e2e8e0);
  border-radius: 18px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
  position: sticky;
  top: 110px;
}

.magasines-filters.is-collapsed {
  display: none;
}

.filter-section-title {
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--premium-green, #234e32);
  display: flex;
  align-items: center;
  gap: .5rem;
}

.filter-label {
  font-size: .82rem;
  font-weight: 700;
  color: var(--premium-ink, #1a251e);
  margin-bottom: .3rem;
}

.magasines-filters select {
  width: 100%;
  padding: .55rem .8rem;
  border-radius: 10px;
  border: 1px solid var(--premium-line, #e2e8e0);
  background-color: #f7f9f5;
  font-size: .88rem;
}

.filter-pill-group {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
}

.filter-pill-btn {
  padding: .35rem .75rem;
  border-radius: 20px;
  border: 1px solid var(--premium-line, #e2e8e0);
  background: #f7f9f5;
  font-size: .8rem;
  font-weight: 600;
  color: var(--premium-ink, #1a251e);
  cursor: pointer;
  transition: all .2s ease;
}

.filter-pill-btn.is-active,
.filter-pill-btn:hover {
  background: var(--premium-green, #234e32);
  color: #fff;
  border-color: var(--premium-green, #234e32);
}

.btn-reset-filters {
  display: inline-block;
  text-align: center;
  font-size: .82rem;
  color: var(--premium-muted, #5a6e53);
  text-decoration: none;
  margin-top: .5rem;
}

.btn-reset-filters:hover {
  color: var(--premium-green, #234e32);
}

/* Store Cards */
.store-premium-card {
  background: var(--premium-surface, #fff);
  border: 1px solid var(--premium-line, #e2e8e0);
  border-radius: 20px;
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.store-premium-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 16px 36px rgba(24, 34, 29, 0.08);
}

.store-top-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  background: rgba(194, 142, 43, 0.95);
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  padding: .3rem .65rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

.store-media-wrapper {
  position: relative;
  width: 100%;
  height: 180px;
  overflow: hidden;
  background: #e9f0df;
}

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

.store-media-overlay {
  position: absolute;
  bottom: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  justify-content: space-between;
  gap: .5rem;
  pointer-events: none;
}

.store-type-badge,
.store-delivery-badge {
  font-size: .72rem;
  font-weight: 700;
  padding: .25rem .55rem;
  border-radius: 8px;
  background: rgba(26, 37, 30, 0.75);
  color: #fff;
  backdrop-filter: blur(8px);
}

.store-card-body {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.store-category-tag {
  font-size: .75rem;
  font-weight: 700;
  color: var(--premium-green, #234e32);
  text-transform: uppercase;
  letter-spacing: .05em;
  margin-bottom: .4rem;
}

.store-name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--premium-ink, #1a251e);
  margin-bottom: .5rem;
  line-height: 1.3;
}

.store-description {
  font-size: .88rem;
  color: var(--premium-muted, #5a6e53);
  line-height: 1.5;
  margin-bottom: 1rem;
  flex: 1;
}

.store-location-info {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  font-size: .8rem;
  color: var(--premium-ink, #1a251e);
  margin-bottom: 1rem;
  padding-top: .6rem;
  border-top: 1px dashed var(--premium-line, #e2e8e0);
}

.btn-store-visit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .65rem 1rem;
  background: rgba(35, 78, 50, 0.08);
  color: var(--premium-green, #234e32);
  font-size: .88rem;
  font-weight: 700;
  border-radius: 12px;
  text-decoration: none;
  transition: all .2s ease;
}

.btn-store-visit:hover {
  background: var(--premium-green, #234e32);
  color: #fff;
}

.empty-stores-state {
  text-align: center;
  padding: 4rem 1.5rem;
  background: var(--premium-surface, #fff);
  border: 1px dashed var(--premium-line, #e2e8e0);
  border-radius: 20px;
}

.empty-stores-state .empty-icon {
  font-size: 3rem;
  color: var(--premium-muted, #5a6e53);
  margin-bottom: 1rem;
}

@media (max-width: 991px) {
  .magasines-hero {
    grid-template-columns: 1fr;
  }
  .magasines-hero-visual {
    display: none;
  }
  .magasines-filter-toggle {
    display: flex;
  }
  .magasines-directory {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 576px) {
  .premium-magasines-page {
    padding: 1rem 0.75rem 2.5rem;
  }

  .magasines-hero {
    padding: 1.25rem 1.1rem;
    border-radius: 16px;
  }

  .magasines-hero-copy h1 {
    font-size: clamp(1.65rem, 8vw, 2.15rem);
    line-height: 1.12;
    margin-bottom: 0.65rem;
  }

  .magasines-hero-copy p {
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
  }

  .magasines-hero-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.85rem 1rem;
    padding-top: 0.9rem;
  }

  .stat-item strong {
    font-size: 1.25rem;
  }

  .stat-item span {
    font-size: 0.72rem;
    line-height: 1.3;
  }
}
