/* ============================================================
   index.css — Styles de la page d'accueil (portail découverte)
   ============================================================ */

/* ── Hero ───────────────────────────────────────────────────── */
.hero {
  padding-top: 60px;
  min-height: 80vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; position: relative; overflow: hidden;
  padding-left: 5%; padding-right: 5%;
}

.hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 65% 50% at 50% 105%, rgba(201,168,76,0.13) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 80% 15%,  rgba(201,168,76,0.06) 0%, transparent 60%);
}

.hero-eyebrow {
  font-size: 0.7rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 20px;
  opacity: 0; animation: fadeUp 0.8s ease forwards;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: 300; line-height: 1.05; color: var(--black);
  margin-bottom: 24px;
  opacity: 0; animation: fadeUp 0.8s ease 0.12s forwards;
}
.hero-title em { font-style: italic; color: var(--gold); }

.hero-sub {
  font-size: 1rem; color: var(--warm-gray);
  max-width: 460px; line-height: 1.75; margin-bottom: 48px;
  opacity: 0; animation: fadeUp 0.8s ease 0.24s forwards;
}

/* ── Barre de recherche ────────────────────────────────────── */
.search-box {
  opacity: 0; animation: fadeUp 0.8s ease 0.36s forwards;
  width: 100%; max-width: 680px;
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 6px 6px 20px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-md);
}

.search-inputs { flex: 1; display: flex; align-items: center; }

.search-input {
  flex: 1; border: none; background: transparent;
  font-family: var(--font-body); font-size: 0.9rem; color: var(--black);
  padding: 10px 12px; outline: none; min-width: 0;
}
.search-input::placeholder { color: var(--warm-gray); }

.search-divider {
  width: 1px; height: 24px; background: var(--border); flex-shrink: 0;
}

.btn-search {
  background: var(--black); color: var(--cream);
  border: none; cursor: pointer;
  padding: 12px 22px; border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 0.78rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  white-space: nowrap; transition: background var(--transition); flex-shrink: 0;
}
.btn-search:hover { background: var(--gold); color: var(--black); }

/* ── Tags rapides ───────────────────────────────────────────── */
.search-tags {
  opacity: 0; animation: fadeUp 0.8s ease 0.48s forwards;
  display: flex; gap: 8px; flex-wrap: wrap; justify-content: center;
  margin-top: 16px;
}

.tag {
  font-size: 0.75rem; color: var(--warm-gray);
  border: 1px solid var(--border); padding: 5px 14px;
  border-radius: 20px; cursor: pointer;
  transition: all var(--transition);
}
.tag:hover { border-color: var(--gold); color: var(--gold); }

/* ── Section restaurants ────────────────────────────────────── */
.section { padding: 72px 5%; }

.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 40px; padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.section-title {
  font-family: var(--font-display); font-size: 1.8rem; font-weight: 400;
}

.section-subtitle {
  font-size: 0.75rem; color: var(--warm-gray);
  letter-spacing: 0.1em; text-transform: uppercase;
}

/* ── Grille restaurants ─────────────────────────────────────── */
.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 24px;
}

.resto-card {
  background: var(--card-bg); border: 1px solid var(--border);
  border-radius: var(--radius-md); overflow: hidden;
  cursor: pointer; position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0; animation: fadeUp 0.5s ease forwards;
}
.resto-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.card-rank {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--black); color: var(--gold);
  font-family: var(--font-display); font-size: 0.95rem; font-weight: 600;
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}

.card-cover {
  height: 176px;
  background: linear-gradient(135deg, #EDE5D5, #D9CFBF);
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.card-cover-icon { font-size: 3rem; opacity: 0.5; }

.card-body { padding: 20px; }

.card-name {
  font-family: var(--font-display); font-size: 1.25rem;
  font-weight: 600; margin-bottom: 6px;
}

.card-address {
  font-size: 0.78rem; color: var(--warm-gray);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.83rem; color: var(--mid-gray);
  line-height: 1.6; margin-bottom: 16px;
}

.card-footer {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 12px; border-top: 1px solid var(--border);
}

.card-likes {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.82rem; font-weight: 500; color: var(--mid-gray);
}

.card-cta {
  font-size: 0.72rem; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold); font-weight: 500;
}

/* ── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--black); color: var(--cream);
  padding: 48px 5%; text-align: center;
}

.footer-logo {
  font-family: var(--font-display); font-size: 1.8rem;
  margin-bottom: 12px;
}
.footer-logo span { color: var(--gold); }

.footer p { color: var(--warm-gray); font-size: 0.85rem; line-height: 1.8; }
.footer-copy { margin-top: 20px !important; font-size: 0.75rem !important; }

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 640px) {
  .search-box { flex-direction: column; padding: 14px; }
  .search-inputs { flex-direction: column; width: 100%; }
  .search-divider { display: none; }
  .btn-search { width: 100%; text-align: center; }
  .section-header { flex-direction: column; gap: 6px; }
}
