/* =============================================================
   LastMinuteMeal — Responsive CSS (toutes les pages)
   Inclus dans chaque page HTML
   ============================================================= */

/* ===== HAMBURGER MENU ===== */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border: none;
  background: transparent;
  padding: 4px;
  border-radius: 8px;
  transition: background 0.2s;
  z-index: 200;
}
.hamburger:hover { background: var(--gray-100); }
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: #000000;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger span:nth-child(1) { margin-bottom: 5px; }
.hamburger span:nth-child(2) { margin-bottom: 5px; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile nav overlay */
.nav-mobile {
  display: none;
  position: fixed;
  top: 66px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-mobile.open { opacity: 1; }
.nav-mobile-panel {
  background: var(--white);
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  transform: translateY(-8px);
  transition: transform 0.3s ease;
}
.nav-mobile.open .nav-mobile-panel { transform: translateY(0); }
.nav-mobile-panel a {
  display: block;
  padding: 14px 16px;
  color: var(--gray-700);
  font-size: 1rem;
  font-weight: 600;
  border-radius: 10px;
  transition: all 0.2s;
  text-decoration: none;
}
.nav-mobile-panel a:hover, .nav-mobile-panel a.active {
  background: var(--green-pale);
  color: var(--green);
}
.nav-mobile-divider {
  height: 1px;
  background: var(--gray-200);
  margin: 8px 0;
}
.nav-mobile-panel .btn-green-mobile {
  background: var(--green);
  color: white !important;
  text-align: center;
  border-radius: 10px;
  margin-top: 4px;
}
.nav-mobile-panel .btn-green-mobile:hover {
  background: #15803d !important;
}

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
  nav { padding: 0 32px !important; }
  .nav-links { gap: 20px !important; }
  .nav-links a { font-size: 0.85rem !important; }

  .hero { padding: 80px 32px 60px !important; gap: 40px !important; }
  .section { padding: 60px 32px !important; }
  .features-bg, .pricing-section, .testimonials-bg,
  .page-hero, .feature-showcase, .all-features-bg,
  .compare-section, .faq-section { padding: 60px 32px !important; }
  footer { padding: 48px 32px 24px !important; }
  .stats-bar { padding: 28px 32px !important; }

  .plans-grid { gap: 16px !important; }
  .plan.featured { transform: none !important; }
}

/* ===== MOBILE (max 768px) ===== */
@media (max-width: 768px) {

  /* --- NAV --- */
  nav { padding: 0 20px !important; height: 60px !important; }
  .nav-links { display: none !important; }
  .nav-cta { display: none !important; }
  .hamburger { display: flex !important; }
  .nav-logo { font-size: 1.1rem !important; }
  .nav-mobile { top: 60px !important; }

  /* --- HERO (index) --- */
  .hero {
    grid-template-columns: 1fr !important;
    padding: 48px 20px 40px !important;
    gap: 32px !important;
    text-align: center !important;
  }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem) !important; letter-spacing: -1px !important; }
  .hero-visual { display: none !important; }
  .hero-btns { justify-content: center !important; flex-direction: column !important; align-items: center !important; }
  .btn-hero, .btn-hero-ghost { width: 100% !important; max-width: 280px !important; text-align: center !important; }
  .hero-trust { justify-content: center !important; flex-wrap: wrap !important; }
  .hero-sub { margin: 0 auto 32px !important; }

  /* --- PAGE HERO (autres pages) --- */
  .page-hero {
    grid-template-columns: 1fr !important;
    padding: 36px 20px 32px !important;
    gap: 24px !important;
    text-align: left !important;
  }
  .page-hero h1 { font-size: clamp(1.8rem, 7vw, 2.8rem) !important; }
  .page-hero p { margin: 0 !important; }
  .page-hero-visual { display: none !important; }
  .hero-stats { justify-content: flex-start !important; }
  .hero-btns { flex-direction: column !important; align-items: flex-start !important; gap: 8px !important; }
  .btn-ghost { width: 100% !important; max-width: 280px !important; text-align: center !important; }

  /* --- STATS --- */
  .stats-bar { padding: 28px 20px !important; }
  .stats-inner { grid-template-columns: repeat(2, 1fr) !important; gap: 16px !important; }
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; gap: 12px !important; }
  .val, .stat-num { font-size: 1.6rem !important; }

  /* --- SECTIONS PADDING --- */
  .section { padding: 48px 20px !important; }
  .features-bg { padding: 48px 20px !important; }
  .pricing-section { padding: 40px 20px 60px !important; }
  .testimonials-bg { padding: 48px 20px !important; }
  .testimonials-inner { padding: 0 !important; }
  .page-hero { padding: 48px 20px !important; }
  .feature-showcase { padding: 48px 20px !important; }
  .all-features-bg { padding: 48px 20px !important; }
  .compare-section { padding: 48px 20px !important; }
  .faq-section { padding: 48px 20px !important; }
  .cta-section { padding: 48px 20px !important; margin: 0 16px 48px !important; border-radius: 16px !important; }

  /* --- GRIDS → 1 colonne --- */
  .steps-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .plans-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .testimonials-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .features-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .values-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .team-grid { grid-template-columns: 1fr 1fr !important; gap: 16px !important; }
  .categories-grid { grid-template-columns: 1fr !important; gap: 16px !important; }
  .recipes-grid { grid-template-columns: 1fr !important; gap: 16px !important; }

  /* --- FEATURES PAGE --- */
  .feature-block { grid-template-columns: 1fr !important; gap: 24px !important; }
  .feature-block.reverse { direction: ltr !important; }
  .feature-visual { order: -1 !important; }
  .plan.featured { transform: none !important; }

  /* --- CONTACT PAGE --- */
  .contact-layout { grid-template-columns: 1fr !important; gap: 32px !important; }
  .form-row { grid-template-columns: 1fr !important; }

  /* --- ABOUT PAGE --- */
  .contact-cta { margin: 0 16px 48px !important; padding: 36px 20px !important; }
  .faq-list { gap: 12px !important; }

  /* --- APP PAGE --- */
  .sidebar { display: none !important; }
  .app-body { padding: 16px !important; padding-bottom: 80px !important; }
  .topbar { padding: 0 16px !important; }
  #mobile-tabs { display: flex !important; }
  .nut-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .planning-grid { grid-template-columns: repeat(4, 1fr) !important; overflow-x: auto !important; }
  .recipe-grid { grid-template-columns: 1fr 1fr !important; }

  /* --- LOGIN PAGE --- */
  .auth-card { padding: 24px 20px !important; }

  /* --- CATEGORIES (sous-pages) --- */
  .cat-header { padding: 48px 20px !important; }
  .cat-hero-stats { gap: 12px !important; }

  /* --- FOOTER --- */
  footer { padding: 32px 20px 20px !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; gap: 20px 12px !important; }
  .footer-brand { grid-column: 1 / -1 !important; }
  .footer-brand .logo-f { font-size: 1rem !important; margin-bottom: 6px !important; }
  .footer-brand p { font-size: 0.78rem !important; max-width: 100% !important; }
  .footer-col h4 { font-size: 0.75rem !important; margin-bottom: 8px !important; }
  .footer-col a { font-size: 0.78rem !important; margin-bottom: 5px !important; }
  .footer-bottom { font-size: 0.75rem !important; padding-top: 16px !important; }
  .footer-inner { flex-direction: column !important; gap: 16px !important; text-align: center !important; }
  .footer-links { justify-content: center !important; flex-wrap: wrap !important; gap: 16px !important; }

  /* --- TYPOGRAPHY --- */
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem) !important; }
  h1 { font-size: clamp(1.8rem, 7vw, 3rem) !important; }

  /* --- CTA BUTTONS --- */
  .cta-btns { flex-direction: column !important; align-items: center !important; }
  .cta-btns a { width: 100% !important; max-width: 300px !important; text-align: center !important; }
}

/* ===== SMALL MOBILE (max 480px) ===== */
@media (max-width: 480px) {
  .stats-inner { grid-template-columns: 1fr 1fr !important; }
  .footer-grid { grid-template-columns: 1fr 1fr !important; }
  .footer-brand { grid-column: 1 / -1 !important; }
  .values-grid { grid-template-columns: 1fr !important; }
  .team-grid { grid-template-columns: 1fr !important; }
  .hero-badge { font-size: 0.75rem !important; }
  .cat-hero-stats { flex-direction: column !important; align-items: center !important; }
  .recipe-grid { grid-template-columns: 1fr !important; }
  .auth-card { padding: 20px 16px !important; }
  .btn-hero, .btn-hero-ghost, .btn-ghost { max-width: 100% !important; }
}
