/* Restaurants agrees INRAPE */

.rest-page { padding-top: 80px; }

.rest-hero {
  background:
    linear-gradient(180deg, rgba(11,38,22,.55) 0%, rgba(11,38,22,.8) 100%),
    url('https://images.pexels.com/photos/1072179/pexels-photo-1072179.jpeg?auto=compress&cs=tinysrgb&w=1920&h=600&fit=crop') center / cover no-repeat;
  color: #fff;
  padding: 3rem 0 2.5rem;
}

.rest-hero h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  margin: 0 0 0.75rem;
}

.rest-hero p { margin: 0; line-height: 1.7; opacity: 0.95; }

.rest-section {
  padding: 1.5rem 0 3rem;
  background: #f4f7f5;
}

.rest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

/* Liste verticale — page publique */
.rest-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.rest-list-item {
  display: flex;
  gap: 1rem;
  align-items: center;
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 12px;
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.04);
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.rest-list-item:hover {
  border-color: #b8d4c4;
  box-shadow: 0 4px 14px rgba(27, 107, 58, 0.08);
}

.rest-list-thumb {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  background: #e8eeea;
}

.rest-list-body {
  flex: 1;
  min-width: 0;
}

.rest-list-title {
  margin: 0 0 0.15rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.08rem;
  color: #111827;
}

.rest-list-location {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  color: #6b7280;
  line-height: 1.45;
}

.rest-list-dl {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-left: 0.35rem;
  border-radius: 8px;
  border: 1px solid #dde5df;
  background: #f8faf9;
  color: #1b6b3a;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.rest-list-dl:hover {
  background: #1b6b3a;
  border-color: #1b6b3a;
  color: #fff;
}

.rest-list-rating {
  flex-shrink: 0;
  text-align: right;
}

.rest-list-rating .rest-stars {
  justify-content: flex-end;
  margin-bottom: 0;
}

.rest-card {
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 107, 58, 0.1);
}

.rest-card-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
  background: #e8eeea;
}

.rest-card-body { padding: 1rem 1.1rem 1.15rem; }

.rest-card-title {
  margin: 0 0 0.35rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.15rem;
  color: #111827;
}

.rest-card-location {
  font-family: 'Inter', sans-serif;
  font-size: 0.8rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.rest-stars {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  margin-bottom: 0.6rem;
}

.rest-star {
  font-size: 1rem;
  line-height: 1;
}

.rest-star--full { color: #f59e0b; }
.rest-star--half { color: #f59e0b; opacity: 0.55; }
.rest-star--empty { color: #d1d5db; }

.rest-stars-score {
  margin-left: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.rest-stars-count {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #9ca3af;
}

.rest-card-specialites {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #4b5563;
}

.rest-card-meta {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #e8eeea;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  color: #6b7280;
}

.rest-empty {
  text-align: center;
  padding: 3rem 1.5rem;
  background: #fff;
  border: 1px dashed #cfd8d2;
  border-radius: 12px;
  color: #6b7280;
}

.rest-filters-bar {
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  margin-bottom: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.rest-island-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem;
  margin-bottom: 0;
}

.rest-island-field {
  flex: 0 1 260px;
}

.rest-island-form label {
  display: block;
  margin-bottom: 0.35rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.rest-island-select {
  width: 100%;
  min-height: 44px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #9ca3af;
  border-radius: 8px;
  background: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  color: #111827;
  cursor: pointer;
}

.rest-filter-submit {
  min-height: 44px;
  padding: 0 1.1rem;
  border: none;
  border-radius: 8px;
  background: #1b6b3a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.rest-filter-submit:hover {
  background: #155729;
}

.rest-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1.25rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.rest-filter-label {
  width: 100%;
  margin: 0 0 0.15rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #6b7280;
}

.rest-filter-btn {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  border: 1px solid #9ca3af;
  background: #fff;
  color: #1f2937 !important;
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.rest-filter-btn:hover {
  border-color: #237a45;
  color: #1b6b3a;
}

.rest-filter-btn--active {
  background: #1b6b3a;
  border-color: #1b6b3a;
  color: #fff !important;
}

.rest-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25rem;
  height: 1.25rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-size: 0.7rem;
  font-weight: 700;
}

.rest-filter-btn--active .rest-filter-count {
  background: rgba(255, 255, 255, 0.22);
}

.rest-results-info {
  margin: 0 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.84rem;
  color: #6b7280;
}

.rest-card-island {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  background: #ecfdf5;
  color: #047857;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* Formulaire demande (reutilise exp-* avec prefixe rest-form) */
.rest-form-card {
  background: #fff;
  border: 1px solid #dde5df;
  border-radius: 14px;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05);
}

.rest-form-card h2 {
  margin: 0 0 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
}

.rest-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem 1rem;
}

.rest-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.rest-field--full { grid-column: 1 / -1; }

.rest-field label {
  font-family: 'Inter', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
}

.rest-field input,
.rest-field select,
.rest-field textarea {
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  border: 1px solid #cfd8d2;
  border-radius: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 0.9rem;
  color: #1f2937;
}

.rest-field textarea { min-height: 90px; resize: vertical; }

.rest-image-preview {
  margin-top: 0.5rem;
  max-width: 200px;
  border-radius: 8px;
  display: none;
}

.rest-image-preview.show { display: block; }

.rest-alert {
  display: none;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
}

.rest-alert.show { display: block; }
.rest-alert--success { background: #ecfdf5; color: #047857; border: 1px solid #a7f3d0; }
.rest-alert--error { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }

.rest-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 1.15rem;
  border: none;
  border-radius: 8px;
  background: #1b6b3a;
  color: #fff;
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.rest-btn:hover { background: #155729; }

/* Signalement client (QR) */
.sig-resto-banner {
  background: #fff;
  border: 1px solid #d1e7dd;
  border-left: 4px solid #1b6b3a;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
}

.sig-resto-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7280;
  margin-bottom: 0.25rem;
}

.sig-resto-name {
  display: block;
  font-size: 1.25rem;
  color: #14532d;
  line-height: 1.3;
}

.sig-resto-meta {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.88rem;
  color: #6b7280;
}

.sig-form-lead {
  margin: 0 0 1.25rem;
  color: #6b7280;
  font-size: 0.92rem;
  line-height: 1.55;
}

@media (max-width: 768px) {
  .rest-form-grid { grid-template-columns: 1fr; }
  .rest-grid { grid-template-columns: 1fr; }

  .rest-list-item {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .rest-list-thumb {
    width: 72px;
    height: 72px;
  }

  .rest-list-rating {
    width: auto;
    margin-left: auto;
    text-align: right;
    padding-left: 0;
  }

  .rest-list-rating .rest-stars {
    justify-content: flex-end;
  }

  .rest-list-dl {
    margin-left: 0;
  }
}

