/* menu-style.css - Thème Indigo */

/* ==========================
   VARIABLES CSS
========================== */
:root {
  --primary: #5a67d8;
  --secondary: #764ba2;
  --gold: #ffd166;
  --dark: #222831;
  --light: #f8fafc;
  --text: #374151;
  --radius: 18px;
  --shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

/* ==========================
   RÉINITIALISATION
========================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Arial", sans-serif;
  background-color: #f0f4f8;
  color: var(--text);
  line-height: 1.6;
}

/* ==========================
   HEADER
========================== */
.header {
  position: relative;
  overflow: hidden;
  padding: 70px 20px;
  color: white;
  background:
    linear-gradient(rgba(20, 20, 35, 0.82), rgba(20, 20, 35, 0.82)),
    url("./images/header-bg.jpg");
  background-size: cover;
  background-position: center;
}

.header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    circle at top right,
    rgba(255, 255, 255, 0.12),
    transparent 45%
  );
}

.header-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  max-width: 1100px;
  margin: auto;
}

.logo-restaurant {
  width: 130px;
  height: 130px;
  object-fit: cover;
  border-radius: 50%;
  border: 5px solid white;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.35);
  transition: transform 0.4s ease;
}

.logo-restaurant:hover {
  transform: scale(1.05) rotate(5deg);
}

.header-text {
  text-align: left;
}

.nom-restaurant {
  font-size: 3.5rem;
  line-height: 1.1;
  margin-bottom: 15px;
  font-weight: 700;
}

.nom-restaurant span {
  color: var(--gold);
}

.slogan {
  font-size: 1.3rem;
  opacity: 0.95;
  margin-bottom: 10px;
  letter-spacing: 1px;
}

.adresse {
  opacity: 0.85;
  font-size: 15px;
}

/* ==========================
   NAVIGATION
========================== */
.navigation {
  background-color: var(--primary);
  display: flex;
  justify-content: center;
  padding: 15px;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-link {
  position: relative;
  color: white;
  text-decoration: none;
  padding: 12px 30px;
  margin: 0 10px;
  border-radius: 30px;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 16px;
  overflow: hidden;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: white;
  transition: width 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover {
  background-color: #667eea;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.nav-link:hover::after {
  width: 70%;
}

/* ==========================
   CONTENEUR PRINCIPAL
========================== */
.menu-container {
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* ==========================
   CATÉGORIES
========================== */
.categorie {
  background-color: white;
  margin-bottom: 50px;
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.titre-categorie {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 4px solid #667eea;
  text-align: center;
}

/* ==========================
   PLATS STYLE LISTE (ENTRÉES)
========================== */
.plat {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 20px;
  margin-bottom: 20px;
  border-bottom: 1px dashed #e0e7ff;
  transition: all 0.3s ease;
}

.plat:hover {
  background-color: #f7fafc;
  border-radius: 10px;
  transform: translateX(5px);
}

.plat:last-child {
  border-bottom: none;
}

.plat-info {
  flex: 1;
}

.nom-plat {
  font-size: 22px;
  color: #2d3748;
  margin-bottom: 8px;
  font-weight: 600;
}

.description {
  font-size: 15px;
  color: #718096;
  font-style: italic;
}

.prix {
  font-size: 22px;
  color: var(--primary);
  font-weight: bold;
  white-space: nowrap;
  margin-left: 20px;
}

/* ==========================
   GRILLE PLATS & DESSERTS
========================== */
.plats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

.carte-plat {
  border: none;
  overflow: hidden;
  border-radius: 20px;
  background: white;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.08);
  transition: all 0.35s ease;
}

.carte-plat:hover {
  transform: translateY(-12px);
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.15);
}

/* Image du plat */
.image-plat {
  position: relative;
  width: 100%;
  height: 220px;
  overflow: hidden;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.image-plat img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.carte-plat:hover .image-plat img {
  transform: scale(1.12);
}

/* Badge spécial */
.badge-special {
  position: absolute;
  top: 15px;
  right: 15px;
  background-color: #f6ad55;
  color: white;
  padding: 8px 15px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: bold;
  box-shadow: 0 3px 10px rgba(246, 173, 85, 0.5);
}

/* Contenu de la carte */
.contenu-plat {
  padding: 20px;
}

.nom-plat-carte {
  font-size: 20px;
  color: #2d3748;
  margin-bottom: 10px;
  font-weight: 600;
  min-height: 50px;
}

.description-carte {
  font-size: 14px;
  color: #718096;
  margin-bottom: 15px;
  line-height: 1.5;
  min-height: 60px;
}

.prix-carte {
  font-size: 24px;
  color: var(--primary);
  font-weight: bold;
  text-align: center;
  padding: 12px;
  background: linear-gradient(135deg, #e0e7ff 0%, #c3dafe 100%);
  border-radius: 10px;
}

/* ==========================
   BOISSONS
========================== */
.boissons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-top: 30px;
}

.boisson {
  background: linear-gradient(135deg, #f7fafc 0%, #e0e7ff 100%);
  padding: 25px;
  border-radius: 15px;
  border: 2px solid #c3dafe;
  transition: all 0.3s ease;
}

.boisson:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(102, 126, 234, 0.2);
}

.boisson h4 {
  font-size: 22px;
  color: var(--primary);
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 3px solid #667eea;
}

.boisson ul {
  list-style: none;
}

.boisson li {
  padding: 10px 0;
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dotted #cbd5e0;
  font-size: 15px;
}

.boisson li:last-child {
  border-bottom: none;
}

.boisson li span {
  color: var(--primary);
  font-weight: bold;
}

/* ==========================
   INFORMATIONS PRATIQUES
========================== */
.infos-supplementaires {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 40px;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(102, 126, 234, 0.3);
  margin-bottom: 40px;
  color: white;
}

.infos-supplementaires h3 {
  font-size: 32px;
  margin-bottom: 30px;
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.info-box {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  padding: 25px;
  border-radius: 15px;
  text-align: center;
  transition: all 0.3s ease;
}

.info-box:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-5px);
}

.info-box h4 {
  font-size: 22px;
  margin-bottom: 15px;
  color: white;
}

.info-box p {
  font-size: 15px;
  margin: 8px 0;
  opacity: 0.95;
}

/* ==========================
   FOOTER
========================== */
.footer {
  background-color: #2d3748;
  color: white;
  text-align: center;
  padding: 30px;
  margin-top: 50px;
}

.footer p {
  margin: 8px 0;
  font-size: 15px;
}

/* ==========================
   RESPONSIVE DESIGN
========================== */

/* Tablettes (1024px et moins) */
@media (max-width: 1024px) {
  .plats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }
}

/* Mobile (768px et moins) */
@media (max-width: 768px) {
  /* Header */
  .header-content {
    flex-direction: column;
    text-align: center;
  }

  .header-text {
    text-align: center;
  }

  .logo-restaurant {
    width: 95px;
    height: 95px;
  }

  .nom-restaurant {
    font-size: 2.2rem;
  }

  /* Navigation */
  .navigation {
    flex-wrap: wrap;
  }

  .nav-link {
    margin: 5px;
    padding: 10px 20px;
    font-size: 14px;
  }

  /* Grilles */
  .plats-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Catégories */
  .categorie {
    padding: 25px;
  }

  .titre-categorie {
    font-size: 28px;
    position: relative;
    display: inline-block;
    left: 50%;
    transform: translateX(-50%);
  }

  .titre-categorie::after {
    content: "";
    display: block;
    margin: 15px auto 0;
    width: 80px;
    height: 5px;
    border-radius: 20px;
    background: linear-gradient(90deg, var(--gold), var(--primary));
  }

  /* Info grid */
  .info-grid {
    grid-template-columns: 1fr;
  }
}

/* Petits mobiles (480px et moins) */
@media (max-width: 480px) {
  .header {
    padding: 30px 15px;
  }

  .nom-restaurant {
    font-size: 1.8rem;
  }

  .slogan {
    font-size: 1rem;
  }

  .adresse {
    font-size: 13px;
  }
}
