/* ==========================================================
   04. LISTE DES ÉTABLISSEMENTS
   ========================================================== */

.results-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 7px 0 20px;
}

.results-toolbar h2 { font-size: 1.6rem; }
.results-toolbar p { margin-top: 7px; font-size: .875rem; color: var(--muted); }
.toolbar-actions { display: flex; align-items: center; gap: 10px; }

.views {
  display: flex;
  gap: 3px;
  padding: 4px;
  border-radius: 13px;
  background: #e9ece2;
}

.views button {
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 10px;
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
}

.views button[aria-pressed="true"] { background: white; box-shadow: 0 2px 5px #00000008; }

.sort-select { min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 12px; background: white; }

.discovery-layout {
  display: grid;
  grid-template-columns: minmax(430px, .95fr) minmax(0, 1.1fr);
  align-items: start;
  gap: 26px;
}

.discovery-layout[data-view="list"] { grid-template-columns: 1fr; }
.discovery-layout[data-view="list"] .map-panel { display: none; }
.discovery-layout[data-view="map"] { grid-template-columns: 1fr; }
.discovery-layout[data-view="map"] .list-panel { display: none; }
.discovery-layout[data-view="list"] .store-list { grid-template-columns: repeat(2,minmax(0,1fr)); }

.list-panel { min-width: 0; }

.name-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 49px;
  padding: 0 15px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
}

.name-search:focus-within { outline: 3px solid #cdbbed; outline-offset: 2px; }
.name-search input { width: 100%; border: 0; background: transparent; outline: 0; }

.store-list { display: grid; gap: 16px; }

.store-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: white;
  transition: box-shadow .2s, border-color .2s;
}

.store-card:hover { box-shadow: var(--shadow); }
.store-card.selected { border-color: var(--orange); box-shadow: 0 0 0 2px #f6532f22; }

.store-link {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr);
  color: inherit;
  text-decoration: none;
}

.store-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 238px;
  overflow: hidden;
}

.tone-peach { background: var(--peach); }
.tone-lilac { background: var(--lilac); }
.tone-mint { background: var(--mint); }
.tone-yellow { background: var(--yellow); }

.store-visual::before {
  content: "";
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: #ffffff66;
}

.store-visual > .art { width: 115px; height: 115px; transform: rotate(-10deg); }

.format-sticker {
  position: absolute;
  left: 9px;
  right: 9px;
  bottom: 15px;
  padding: 6px 8px;
  border-radius: 10px;
  background: #ffffffd9;
  text-align: center;
  font-size: .75rem;
  font-weight: 700;
}

.store-copy { padding: 20px 20px 18px; min-width: 0; }
.store-copy h3 { padding-right: 33px; font-size: 1.35rem; margin: 11px 0 7px; }
.store-description { color: var(--muted); font-size: .875rem; line-height: 1.4; }
.store-address { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; font-size: .875rem; }
.store-address .icon { width: 17px; height: 17px; margin-top: 2px; }
.store-address small { display: block; color: var(--muted); margin-top: 2px; font-size: .8125rem; }
.store-info { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 12px; font-size: .8125rem; color: var(--muted); }

.store-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  margin-top: 15px;
  font-size: .9375rem;
  font-weight: 800;
  color: var(--orange-dark);
}

.favorite {
  position: absolute;
  right: 11px;
  top: 12px;
  width: 42px;
  height: 42px;
  background: #f6f7f1;
  z-index: 2;
}

.favorite[aria-pressed="true"] { color: var(--orange-dark); background: var(--orange-light); }
.favorite[aria-pressed="true"] .icon { fill: #f6532f33; }

.store-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px 17px;
  padding: 8px 18px;
  border-top: 1px solid var(--line);
}

.store-tools button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 5px 0;
  background: transparent;
  color: var(--muted);
  font-size: .8125rem;
  font-weight: 600;
}

.store-tools .icon { width: 17px; height: 17px; }

.empty {
  display: grid;
  justify-items: center;
  gap: 15px;
  padding: 45px 24px;
  border: 1px dashed #ccd3c1;
  border-radius: 24px;
  text-align: center;
  background: #ffffff66;
}

.empty .icon { width: 42px; height: 42px; color: var(--orange); }
.empty p { max-width: 420px; color: var(--muted); }
.empty-actions { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }

.art { display: inline-block; position: relative; width: 100%; height: 100%; flex: 0 0 auto; }
.art img, .art .emoji { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.art img { opacity: 0; }
.art .emoji { display: grid; place-items: center; font-size: 2rem; line-height: 1; }
.art.loaded img { opacity: 1; }
.art.loaded .emoji { visibility: hidden; }
.store-visual .emoji, .hero-art .emoji { font-size: 5rem; }

