/* MonSiteResto — compléments custom au-dessus de Tailwind CDN */

/* Défilement fluide vers les ancres (nav, CTA) */
html { scroll-behavior: smooth; }

/* Halo orange discret derrière le hero */
.hero-glow {
  background:
    radial-gradient(600px 340px at 78% 18%, rgba(249, 115, 22, 0.10), transparent 70%),
    radial-gradient(420px 280px at 12% 82%, rgba(249, 115, 22, 0.06), transparent 70%);
}

/* Ombre du header une fois la page défilée (classe posée par app.js) */
#site-header.scrolled {
  box-shadow: 0 1px 0 rgba(24, 24, 27, 0.06), 0 6px 18px rgba(24, 24, 27, 0.05);
}

/* Cartes fonctionnalités */
.feature-card {
  border: 1px solid #f4f4f5;
  border-radius: 1rem;
  padding: 1.5rem;
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.04);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
}
.feature-card:hover {
  border-color: #fed7aa;
  box-shadow: 0 8px 28px rgba(24, 24, 27, 0.09);
  transform: translateY(-2px);
}
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 0.75rem;
  background: #fff7ed;
  color: #ea580c;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}

/* Mockup téléphone du hero (pur CSS, aucun asset) */
.phone-frame {
  width: 270px;
  border-radius: 2.2rem;
  background: linear-gradient(160deg, #232428, #18191c);
  border: 6px solid #2f3136;
  box-shadow: 0 24px 60px rgba(24, 24, 27, 0.28);
  overflow: hidden;
  position: relative;
  transform: rotate(2.5deg);
}
.phone-notch {
  width: 96px;
  height: 18px;
  background: #2f3136;
  border-radius: 0 0 12px 12px;
  margin: 0 auto;
}

/* FAQ — <details> natifs stylés */
.faq-item {
  background: #ffffff;
  border: 1px solid #f4f4f5;
  border-radius: 0.9rem;
  box-shadow: 0 1px 3px rgba(24, 24, 27, 0.04);
}
.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 1.1rem 3rem 1.1rem 1.4rem;
  font-weight: 600;
  position: relative;
  user-select: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 1.4rem;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #a1a1aa;
  border-bottom: 2px solid #a1a1aa;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: translateY(-30%) rotate(225deg); }
.faq-item p {
  padding: 0 1.4rem 1.2rem;
  color: #52525b;
  font-size: 15px;
  line-height: 1.65;
}

/* Apparition au scroll (classe .in-view posée par app.js) */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: none;
}

/* Accessibilité : pas d'animation si l'utilisateur les refuse */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .feature-card, .faq-item summary::after { transition: none; }
}
