/* ============================================================
   latab — vitrine
   Styles custom au-delà de Tailwind.
   ============================================================ */

* { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

html { scroll-behavior: smooth; }

body { overflow-x: hidden; }

/* Reveal-on-scroll baseline (les éléments apparaissent en fade-up via IntersectionObserver) */
[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Sticky nav rétrécit + flou plus marqué quand on scroll */
header#nav.scrolled > div > div {
  border-color: rgba(255, 255, 255, 0.12);
  background-color: rgba(2, 6, 23, 0.85);
}

/* App Store / Google Play badges */
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.store-badge:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
}
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; }

/* Feature cards (Pour les gourmands) */
.feature-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px;
  transition: border-color 0.3s ease, transform 0.3s ease;
}
.feature-card:hover {
  border-color: rgba(255, 106, 77, 0.4);
  transform: translateY(-4px);
}
.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.feature-title {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.feature-desc {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgb(207, 214, 232);
}

/* Step cards */
.step-card {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px;
  transition: border-color 0.3s ease;
}
.step-card:hover { border-color: rgba(255, 106, 77, 0.4); }
.step-num {
  font-family: 'Manrope', 'Inter', sans-serif;
  font-weight: 900;
  font-size: 56px;
  line-height: 1;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #ff6a4d, #1ec3b8);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* City chips */
.city-chip {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  font-weight: 500;
  text-align: center;
  font-size: 13px;
  transition: border-color 0.2s, background 0.2s;
}
.city-chip:hover { border-color: rgba(255, 106, 77, 0.4); background: rgba(255, 106, 77, 0.08); }

/* Pins de la carte */
.pin {
  position: absolute;
  transform: translate(-50%, -50%);
  background: rgba(30, 195, 184, 0.95);
  color: #020617;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 6px 20px rgba(30, 195, 184, 0.3);
}
.pin::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 999px;
  border: 2px solid rgba(30, 195, 184, 0.4);
  animation: ping 2s ease-out infinite;
}
.pin-coral { background: rgba(255, 106, 77, 0.95); box-shadow: 0 6px 20px rgba(255, 106, 77, 0.4); }
.pin-coral::before { border-color: rgba(255, 106, 77, 0.4); }
@keyframes ping {
  0% { transform: scale(1); opacity: 1; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* Témoignages */
.testimonial {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.01));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 26px;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.testimonial:hover { transform: translateY(-4px); border-color: rgba(255, 255, 255, 0.18); }

/* FAQ */
.faq-item {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}
.faq-item:hover { border-color: rgba(255, 255, 255, 0.18); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '＋';
  font-weight: 300;
  font-size: 22px;
  color: rgb(255, 138, 111);
  transition: transform 0.3s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item > p {
  padding: 0 22px 20px;
  color: rgb(207, 214, 232);
  line-height: 1.65;
  font-size: 15px;
}

/* Better focus states */
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid #ff8a6f;
  outline-offset: 4px;
  border-radius: 8px;
}
