/* ==========================================================================
   Les Délices de Maman Betty — Feuille de style principale
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Variables CSS (Design Tokens)
   -------------------------------------------------------------------------- */

:root {
  --congo-green:  #2D5A27;
  --congo-yellow: #F4B400;
  --congo-red:    #B22222;
  --congo-brown:  #3E2723;
  --congo-beige:  #FDF5E6;

  --radius-sm: 8px;
  --radius-md: 15px;
  --radius-lg: 50px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 5px 15px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 15px 40px rgba(0, 0, 0, 0.18);

  --transition: 0.3s ease;
}

/* --------------------------------------------------------------------------
   2. Reset & Base
   -------------------------------------------------------------------------- */

*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Lato', sans-serif;
  color: var(--congo-brown);
  background-color: var(--congo-beige);
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

/* --------------------------------------------------------------------------
   3. Utilitaires
   -------------------------------------------------------------------------- */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   4. Barre d'annonce
   -------------------------------------------------------------------------- */

.announcement {
  background-color: var(--congo-red);
  color: white;
  text-align: center;
  padding: 10px 20px;
  font-size: 0.875rem;
  font-weight: bold;
}

/* --------------------------------------------------------------------------
   5. Navigation
   -------------------------------------------------------------------------- */

nav {
  background-color: white;
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  gap: 10px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: bold;
  color: var(--congo-green);
  font-family: 'Playfair Display', serif;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  height: 50px;
  width: 50px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--congo-yellow);
}

.nav-links {
  display: none;
  gap: 30px;
  font-weight: bold;
}

.nav-links a {
  text-decoration: none;
  color: var(--congo-brown);
  transition: color var(--transition);
  position: relative;
  padding-bottom: 2px;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--congo-red);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--congo-red);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-phone {
  background-color: var(--congo-green);
  color: white;
  padding: 10px 20px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: bold;
  transition: opacity var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.nav-phone:hover {
  opacity: 0.9;
}

/* Menu Hamburger */
.hamburger-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--congo-green);
  padding: 5px;
  line-height: 1;
}

/* --------------------------------------------------------------------------
   6. Menu Mobile
   -------------------------------------------------------------------------- */

.mobile-menu {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  /* Géré via JS : l'attribut `hidden` est retiré / ajouté */
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu-content {
  position: fixed;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 300px;
  height: 100%;
  background-color: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.2);
  z-index: 1000;
  padding-top: 20px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-menu.is-open .mobile-menu-content {
  transform: translateX(0);
}

.mobile-menu-close {
  display: block;
  background: none;
  border: none;
  font-size: 1.75rem;
  cursor: pointer;
  color: var(--congo-brown);
  padding: 10px 20px;
  width: 100%;
  text-align: right;
}

.mobile-menu-links {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
}

.mobile-menu-links a {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: var(--congo-brown);
  font-weight: bold;
  font-size: 1.125rem;
  border-bottom: 1px solid #eee;
  transition: background-color var(--transition), color var(--transition);
}

.mobile-menu-links a:hover {
  background-color: var(--congo-beige);
  color: var(--congo-red);
}

/* --------------------------------------------------------------------------
   7. Hero
   -------------------------------------------------------------------------- */

.hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)),
    url('https://files.manuscdn.com/user_upload_by_module/session_file/310519663454914849/hjvVcNeZAsDpsxOu.jpg')
    center / cover no-repeat;
  min-height: 60vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  padding: 40px 20px;
}

.hero-content h1 {
  font-size: clamp(1.75rem, 6vw, 4rem);
  font-family: 'Playfair Display', serif;
  margin-bottom: 20px;
  line-height: 1.2;
}

.hero-content p {
  font-size: clamp(0.9375rem, 2.5vw, 1.25rem);
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  font-weight: 300;
}

/* --------------------------------------------------------------------------
   8. Boutons
   -------------------------------------------------------------------------- */

.btn-primary {
  background-color: var(--congo-yellow);
  color: var(--congo-brown);
  padding: 14px 38px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.0625rem;
  display: inline-block;
  border: none;
  cursor: pointer;
  transition: background-color var(--transition), transform var(--transition);
}

.btn-primary:hover {
  background-color: white;
  transform: translateY(-3px);
}

.btn-whatsapp {
  background-color: #25D366;
  color: white;
  padding: 18px 44px;
  border-radius: var(--radius-lg);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1875rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 10px 20px rgba(37, 211, 102, 0.25);
  transition: transform var(--transition), box-shadow var(--transition);
}

.btn-whatsapp:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 30px rgba(37, 211, 102, 0.35);
}

/* --------------------------------------------------------------------------
   9. Section À propos
   -------------------------------------------------------------------------- */

.about {
  background-color: white;
  padding: 70px 0;
}

.about-container {
  display: flex;
  flex-direction: column;
  gap: 40px;
  align-items: center;
}

.about-image {
  width: 100%;
  max-width: 500px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}

.about-content h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-family: 'Playfair Display', serif;
  color: var(--congo-green);
  margin-bottom: 20px;
}

.about-content p {
  font-size: 1.0625rem;
  margin-bottom: 18px;
  line-height: 1.85;
}

.about-stats {
  display: flex;
  gap: 40px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.stat {
  text-align: center;
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  color: var(--congo-red);
  display: block;
}

.stat-label {
  font-size: 0.875rem;
  color: #666;
}

/* --------------------------------------------------------------------------
   10. Section Menu
   -------------------------------------------------------------------------- */

.menu {
  padding: 70px 0;
}

.menu h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-family: 'Playfair Display', serif;
  color: var(--congo-green);
  text-align: center;
  margin-bottom: 45px;
}

.menu-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 25px;
}

.dish-card {
  background-color: white;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: transform var(--transition), box-shadow var(--transition);
  display: flex;
  flex-direction: column;
}

.dish-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
}

.dish-image {
  width: 100%;
  height: 210px;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.dish-card:hover .dish-image {
  transform: scale(1.05);
}

.badge {
  background-color: var(--congo-yellow);
  color: var(--congo-brown);
  padding: 5px 13px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: bold;
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 10;
}

.dish-content {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.dish-content h3 {
  font-size: 1.125rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.dish-content p {
  font-size: 0.9375rem;
  color: #666;
  margin-bottom: 16px;
  flex-grow: 1;
  line-height: 1.6;
}

.dish-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.dish-price {
  font-size: 1.1875rem;
  font-weight: bold;
  color: var(--congo-red);
}

.dish-order {
  color: var(--congo-green);
  font-weight: bold;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: border-color var(--transition);
  padding-bottom: 1px;
}

.dish-order:hover {
  border-bottom-color: var(--congo-green);
}

/* --------------------------------------------------------------------------
   11. Section Livraison
   -------------------------------------------------------------------------- */

.delivery {
  background-color: var(--congo-green);
  color: white;
  padding: 65px 0;
}

.delivery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 35px;
  text-align: center;
}

.delivery-item i {
  font-size: 2.25rem;
  color: var(--congo-yellow);
  margin-bottom: 15px;
  display: block;
}

.delivery-item h3 {
  font-size: 1.25rem;
  font-weight: bold;
  margin-bottom: 10px;
}

.delivery-item p {
  font-size: 0.9375rem;
  line-height: 1.65;
}

/* --------------------------------------------------------------------------
   12. Section Commander
   -------------------------------------------------------------------------- */

.order {
  background-color: white;
  padding: 70px 0;
}

.order h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-family: 'Playfair Display', serif;
  color: var(--congo-green);
  text-align: center;
  margin-bottom: 45px;
}

.order-steps {
  max-width: 800px;
  margin: 0 auto;
  list-style: none;
}

.step {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
  align-items: flex-start;
}

.step-number {
  background-color: var(--congo-yellow);
  color: var(--congo-brown);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.step-content h3 {
  font-size: 1.0625rem;
  font-weight: bold;
  margin-bottom: 5px;
}

.step-content p {
  color: #666;
  font-size: 0.9375rem;
}

.order-button {
  text-align: center;
  margin-top: 45px;
}

/* --------------------------------------------------------------------------
   13. Section FAQ  (utilise <details> / <summary> natifs)
   -------------------------------------------------------------------------- */

.faq {
  padding: 70px 0;
}

.faq h2 {
  font-size: clamp(1.375rem, 2.5vw, 2rem);
  font-family: 'Playfair Display', serif;
  color: var(--congo-green);
  text-align: center;
  margin-bottom: 45px;
}

.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: white;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.faq-item summary {
  font-size: 1rem;
  font-weight: bold;
  padding: 20px 24px;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: color var(--transition);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '+';
  font-size: 1.375rem;
  font-weight: 300;
  color: var(--congo-green);
  transition: transform var(--transition);
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

.faq-item summary:hover {
  color: var(--congo-red);
}

.faq-item p {
  padding: 0 24px 20px;
  color: #666;
  line-height: 1.8;
  font-size: 0.9375rem;
}

/* --------------------------------------------------------------------------
   14. Footer
   -------------------------------------------------------------------------- */

footer {
  background-color: var(--congo-brown);
  color: white;
  padding: 65px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  margin-bottom: 45px;
}

.footer-section h3 {
  font-size: 1.25rem;
  font-family: 'Playfair Display', serif;
  color: var(--congo-yellow);
  margin-bottom: 15px;
}

.footer-section h4 {
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
  color: white;
}

.footer-section p,
.footer-section ul {
  color: #bbb;
  font-size: 0.9375rem;
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-section a {
  color: #bbb;
  text-decoration: none;
  transition: color var(--transition);
}

.footer-section a:hover {
  color: white;
}

.footer-bottom {
  border-top: 1px solid #444;
  padding-top: 28px;
  text-align: center;
  color: #888;
  font-size: 0.8125rem;
}

/* --------------------------------------------------------------------------
   15. Bouton WhatsApp flottant
   -------------------------------------------------------------------------- */

.whatsapp-float {
  position: fixed;
  bottom: 28px;
  right: 28px;
  background-color: #25D366;
  color: white;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.875rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-decoration: none;
  transition: transform var(--transition);
}

.whatsapp-float:hover {
  transform: scale(1.1);
}

/* --------------------------------------------------------------------------
   16. Responsive
   -------------------------------------------------------------------------- */

/* Tablette ≥ 600px */
@media (min-width: 600px) {
  .menu-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .delivery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Desktop ≥ 768px */
@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }

  .about-container {
    flex-direction: row;
    align-items: center;
  }

  .about-image,
  .about-content {
    flex: 1;
  }

  .hero {
    min-height: 75vh;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Large desktop ≥ 1024px */
@media (min-width: 1024px) {
  .menu-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Mobile ≤ 767px */
@media (max-width: 767px) {
  .nav-brand {
    font-size: 0.9375rem;
    gap: 8px;
  }

  .logo-img {
    height: 40px;
    width: 40px;
  }

  .nav-phone {
    display: none;
  }

  .hamburger-btn {
    display: block;
  }

  .step-content h3 {
    font-size: 1rem;
  }

  .btn-primary {
    padding: 12px 28px;
    font-size: 1rem;
  }

  .btn-whatsapp {
    padding: 15px 28px;
    font-size: 1rem;
  }

  .whatsapp-float {
    bottom: 20px;
    right: 20px;
    width: 54px;
    height: 54px;
    font-size: 1.625rem;
  }
}

/* Préférence de mouvement réduit */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }

  html {
    scroll-behavior: auto;
  }
}