/* ============================================================
   RESTAURANTS.CSS — Styles spécifiques à nos-restaurants.html
   (recherche, filtres régions, grille des restaurants)
   ============================================================ */

/* ============ FILTRES ============ */
.filters-section {
  background: var(--jaune-citron);
  padding: 48px 48px 40px;
  position: relative;
}
.filters-inner {
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.search-wrap {
  background: var(--ivoire);
  border-radius: 50px;
  padding: 8px;
  display: flex;
  align-items: center;
  box-shadow: 4px 4px 0 var(--vert-fonce);
  max-width: 600px;
  margin: 0 auto 32px;
}
.search-wrap input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 12px 20px;
  font-family: 'Poppins', sans-serif;
  font-size: 15px;
  color: var(--vert-fonce);
  outline: none;
}
.search-wrap .clear-btn {
  background: transparent;
  border: none;
  color: var(--vert-fonce);
  font-size: 20px;
  padding: 8px 16px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s;
}
.search-wrap .clear-btn.visible { opacity: 0.5; }
.search-wrap .clear-btn:hover { opacity: 1; }

.region-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.region-btn {
  background: var(--ivoire);
  color: var(--vert-fonce);
  border: 2px solid var(--vert-fonce);
  border-radius: 30px;
  padding: 8px 18px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.region-btn:hover { background: var(--vert-fonce); color: var(--ivoire); }
.region-btn.active {
  background: var(--vert-fonce);
  color: var(--jaune-soleil);
}

/* ============ GRILLE DES RESTOS ============ */
.grid-section {
  background: var(--ivoire);
  padding: 32px 48px 96px;
  position: relative;
}
.grid-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.empty-message {
  text-align: center;
  padding: 80px 24px;
  color: var(--vert-fonce);
  opacity: 0.7;
}
.empty-message h3 {
  font-family: 'Lilita One', cursive;
  font-size: 28px;
  margin-bottom: 12px;
}

.restaurants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.resto-card {
  background: #ffffff;
  border-radius: 24px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 4px 16px rgba(2, 89, 70, 0.08);
  display: flex;
  flex-direction: column;
}
.resto-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 32px rgba(2, 89, 70, 0.15);
}
.resto-img {
  aspect-ratio: 16/10;
  background: var(--vert-fonce);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* Placeholder visuel cohérent avec la charte (utilisé si pas de photo) */
.resto-img::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("../img/swirl.svg");
  background-size: cover;
  background-position: center;
  opacity: 0.6;
}
.resto-img .city-name {
  position: relative;
  z-index: 2;
  font-family: 'League Gothic', sans-serif;
  font-size: 56px;
  color: var(--jaune-soleil);
  text-align: center;
  line-height: 0.95;
  padding: 0 16px;
  text-shadow: 0 4px 16px rgba(0,0,0,0.3);
}
.resto-card[data-type="dom"] .resto-img { background: var(--peche); }
.resto-card[data-type="dom"] .resto-img .city-name { color: var(--vert-fonce); }
.resto-card[data-type="highway"] .resto-img { background: var(--vert-vif); }
.resto-card[data-type="mall"] .resto-img { background: var(--vert-fonce); }
.resto-card[data-type="station"] .resto-img { background: var(--jaune-citron); }
.resto-card[data-type="station"] .resto-img .city-name { color: var(--vert-fonce); }

.resto-img.has-photo::before { display: none; }
.resto-img.has-photo img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.resto-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--ivoire);
  color: var(--vert-fonce);
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 6px 12px;
  border-radius: 20px;
  z-index: 3;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.resto-info {
  padding: 20px 24px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.resto-info h3 {
  font-family: 'Lilita One', cursive;
  color: var(--vert-fonce);
  font-size: 22px;
  margin-bottom: 12px;
  text-transform: uppercase;
  line-height: 1.1;
}
.resto-info .address {
  font-family: 'Poppins', sans-serif;
  color: var(--vert-fonce);
  font-size: 14px;
  margin-bottom: 6px;
  opacity: 0.85;
}
.resto-info .city-line {
  font-family: 'Poppins', sans-serif;
  color: var(--vert-fonce);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
}
.resto-info .phone {
  font-family: 'Poppins', sans-serif;
  color: var(--vert-vif);
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 16px;
  text-decoration: none;
  display: inline-block;
}
.resto-info .phone:hover { text-decoration: underline; }
.resto-delivery-row {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.btn-delivery-sm {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: var(--vert-vif);
  color: var(--ivoire);
  padding: 10px 14px;
  border-radius: 50px;
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 12px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}
.btn-delivery-sm:hover {
  background: var(--vert-fonce);
  transform: translateY(-2px);
}
.btn-delivery-sm img {
  height: 18px;
  width: auto;
  display: block;
}

.resto-info .btn-more {
  margin-top: auto;
  background: var(--vert-fonce);
  color: var(--ivoire);
  padding: 12px 20px;
  border-radius: 30px;
  font-family: 'Lilita One', cursive;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.resto-info .btn-more:hover {
  background: var(--vert-vif);
  transform: translateY(-2px);
}

/* ============ RESPONSIVE ============ */
@media (max-width: 900px) {
  .restaurants-grid { grid-template-columns: 1fr 1fr; }
  .page-hero { padding: 60px 24px 40px; }
  .filters-section, .grid-section { padding-left: 24px; padding-right: 24px; }
}
@media (max-width: 560px) {
  .restaurants-grid { grid-template-columns: 1fr; }
}
