/* =================================================================== */
/*             STYLE DU MENU CLIENT - VERSION NETTOYÉE                 */
/* =================================================================== */

/* --- 1. VARIABLES ET STYLES DE BASE --- */
/* ------------------------------------------------------------------- */

:root {
  --deep-blue: #00310b;
  --white: #fff;
  --cream: #faf7f3;
  --gold: #e30613;
  --terracotta: #d4a574;
  --font-primary: 'Poppins', sans-serif;
  --font-secondary: 'Poppins', sans-serif;
   --font-display: 'Abril Fatface', serif; 
}

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

html { 
  scroll-behavior: smooth; 
  scroll-padding-top: 156px !important; /* Espace pour le header fixe */
}

body {
  background-color: var(--white);
  color: var(--deep-blue);
  font-family: var(--font-secondary);
  font-weight: 400;
  line-height: 1.6;
  overflow-x: hidden;
  padding-top: 136px; /* Hauteur du header */
}

.container { 
  max-width: 1400px; 
  margin: 0 auto; 
  padding: 0 50px; 
}



/* --- 2. HEADER PRINCIPAL ET NAVIGATION (VERSION CORRIGÉE) --- */

/* NOUVELLE RÈGLE AVEC TEXTURE */
.main-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 8px 0;
  
  /* --- C'est ici que la magie opère --- */
  background-color: #fffffff2;  /* Couleur de fond de secours et semi-transparente */
  background-image: url('images/fond_MENU-BOISSONS-METRO.png'); /* Chemin vers ton image */
  background-repeat: repeat;    /* Répète l'image pour couvrir tout l'espace */
  background-size: auto;        /* L'image garde sa taille originale */
  background-blend-mode: overlay; /* Optionnel : pour un effet de fusion sympa */
  
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 20px #0000001a;
  z-index: 1000;
}

/* On utilise Grid pour un centrage parfait */
.main-header nav.container { 
  display: grid; 
  grid-template-columns: 1fr auto 1fr; /* Gauche | Centre | Droite */
  align-items: center; 
  gap: 20px; 
}

.logo-link { 
  justify-self: center; 
}

.logo { 
  height: 120px; 
  display: block; 
}

/* Conteneurs pour les côtés gauche et droit */
.nav-left, .nav-right { 
  display: flex; 
  align-items: center; 
}
.nav-left { 
  justify-content: flex-start; /* Aligne à gauche */
}
.nav-right { 
  justify-content: flex-end; /* Aligne à droite */
  gap: 15px;
}

/* Styles pour les boutons (inchangés mais inclus pour être complet) */
.language-switch { 
  display: flex; 
  border: 1px solid var(--deep-blue);
  border-radius: 50px; 
  overflow: hidden;
  background-color: var(--white);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
.lang-btn { 
  background: none; 
  border: none; 
  color: var(--deep-blue); 
  cursor: pointer; 
  font-size: 0.8em; 
  font-weight: 600; 
  padding: 8px 14px; 
  transition: all 0.3s ease; 
}
.lang-btn.active { 
  background-color: var(--deep-blue); 
  color: var(--white); 
}

.btn-reservation2 { 
  display: inline-flex; /* Permet d'aligner l'icône et le texte */
  align-items: center;  /* Aligne verticalement au centre */
  gap: 0.75rem;         /* Espace entre l'icône et le texte */

  background: var(--deep-blue); /* Fond uni avec ta couleur principale */
  color: var(--white); 

  border-radius: 50px; 
  box-shadow: 0 4px 15px #00310b4d; 
  font-size: .9em; 
  font-weight: 600; 
  padding: 12px 16px;
  text-decoration: none; 
  text-transform: uppercase; 
  transition: all .3s ease; 
  white-space: nowrap; 
}

.btn-reservation2:hover { 
  transform: translateY(-2px); 
  box-shadow: 0 6px 20px #00310b66;
  opacity: 0.9; /* Léger effet au survol */
}


/* --- 3. SECTION HERO (IMAGE D'EN-TÊTE) --- */
/* ------------------------------------------------------------------- */

.hero-section { 
  display: flex;
  flex-direction: column;
  align-items: center; 
  justify-content: center; 
  min-height: 60vh;
  text-align: center; 
  background: linear-gradient(#0000008f, #0000004d), url('images/back_metro.jpg'); 
  background-attachment: fixed; 
  background-position: 50%; 
  background-size: cover; 
  color: #fff; 
}

.hero-content h1 { 
  font-family: var(--font-display); 
  font-size: 4em; 
  font-weight: 700; 
  margin-bottom: 20px; 
  text-shadow: 5px 4px 9px rgba(0,0,0,.1); 
}

.hero-content p { 
  font-size: 1.3em; 
  font-weight: 300; 
  max-width: 880px; 
  text-shadow: 1px 1px 2px rgba(0,0,0,.5); 
}


/* --- 4. BARRE DE FILTRES HORIZONTALE --- */
/* ------------------------------------------------------------------- */

.category-filter-section { 
  position: sticky;
  top: 136px;
  background: #f5f5f0; 
  box-shadow: 0 2px 10px #0000001a; 
  z-index: 900;

  overflow: hidden; /* Empêche le débordement des marges négatives */
}

#category-filter-container {
  display: flex;
  justify-content: center; /* On centre par défaut */
  overflow-x: auto;
  white-space: nowrap;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  position: relative;
  padding: 0.75rem 0;
}

#category-filter-container::-webkit-scrollbar {
  display: none;
}

/* Le reste du style pour .filter-btn reste le même */
.filter-btn {
    flex-shrink: 0;
    border-radius: 25px;
    color: var(--deep-blue);
    font-weight: 500;
    padding: .5rem 1rem;
    text-decoration: none;
    transition: all .3s ease;
    background: none;
    border: none;
    font-size: 1em;
    cursor: pointer;
}

.filter-btn:hover {
  background: var(--white);
  transform: translateY(-2px);
  color: var(--deep-blue);
}

.filter-btn.active {
  background: var(--deep-blue);
  transform: translateY(-2px);
  color: var(--white); /* Le texte du bouton actif est doré */
}


/* --- 5. SECTIONS DU MENU (CATÉGORIES ET PLATS) --- */
/* ------------------------------------------------------------------- */

.category-section { 
  padding: 4rem 0; 
}
.category-section:nth-child(odd) { 
  background: var(--cream); 
  color: var(--deep-blue); 
}
.category-section:nth-child(even) { 
  background: var(--deep-blue); 
  color: var(--white); 
}

.section-header { 
  margin-bottom: 2rem; 
  text-align: center; 
}
.category-title { 
  color: var(--gold); 
  font-family: var(--font-display); 
  font-size: 2.5rem; 
  font-weight: 100; 
  margin-bottom: .5rem; 
}
.title-underline { 
  background: var(--gold); 
  height: 3px; 
  margin: 0 auto 1rem; 
  width: 80px; 
}
.category-note { 
  font-family: var(--font-secondary); 
  font-size: 1.1rem; 
  font-style: italic; 
  max-width: 700px; 
  margin: 0 auto 40px auto; 
}
.category-section:nth-child(even) .category-note { 
  color: var(--white); 
}
.category-image { 
  border: 3px solid var(--gold); 
  border-radius: 175px 175px 30px 30px; 
  box-shadow: 0 20px 40px #00000026; 
  display: block; 
  height: 350px; 
  margin: 0 auto 40px auto; 
  object-fit: cover; 
  width: 350px; 
}

.menu-content { 
  margin: 0 auto; 
  max-width: 800px;
}
.subcategory-title { 
  color: var(--gold); 
  font-family: var(--font-secondary); 
  font-size: 1.3rem; 
  font-weight: 600; 
  letter-spacing: 1px; 
  margin: 2.5rem 0 1.5rem; 
  text-transform: uppercase; 
}

.menu-item { 
  display: flex; 
  gap: 20px; 
  align-items: flex-start; 
  border-bottom: 1px solid rgba(44,95,122,.2); 
     margin-bottom: 0.5rem;
    padding-bottom: 0.8rem;
}
.category-section:nth-child(even) .menu-item { 
  border-bottom-color: hsla(0,0%,100%,.2); 
}

.item-image { 
  width: 100px; 
  height: 100px; 
  object-fit: cover; 
  border-radius: 8px; 
  border: 2px solid var(--gold); 
  flex-shrink: 0; 
}
.item-details { 
  flex: 1; 
}
.item-header { 
  display: flex; 
  gap: 1rem; 
  align-items: baseline; 
  justify-content: space-between; 
  margin-bottom: 0rem; 
}
.item-name { 
  flex: 1; 
  font-family: var(--font-secondary); 
  font-size: 1rem; 
  font-weight: 500; 
  margin: 0; 
}
.category-section:nth-child(odd) .item-name { 
  color: var(--deep-blue); 
}
.category-section:nth-child(even) .item-name { 
  color: var(--white); 
}
.item-price { 
  color: var(--gold); 
  font-family: var(--font-secondary); 
  font-size: 1rem; 
  font-weight: 600; 
  white-space: nowrap; 
}

/* SPÉCIFICITÉ : Quand le prix est dans une section 'even' (fond bleu), il devient blanc */
.category-section:nth-child(even) .item-price {
  color: #ffdb7c;
}

/* On peut faire la même chose pour les titres de sous-catégories pour la cohérence */
.category-section:nth-child(even) .subcategory-title {
  color: #ffdb7c; /* Un orange/terracotta ressortira bien sur le bleu */
}

/* On peut faire la même chose pour les titres de sous-catégories pour la cohérence */
.category-section:nth-child(even) .category-title {
    color: #ffdb7c;
   
}
.category-section:nth-child(even) .title-underline {
    background: #ffdb7c;
    height: 3px;
    margin: 0 auto 1rem;
    width: 80px;
}



.item-description { 
  font-size: .95rem; 
  line-height: 1.8; 
  margin: .5rem 0; 
}
.item-note { 
  font-size: .85rem; 
  font-style: italic; 
  margin-top: .3rem; 
}
.category-section:nth-child(odd) .item-note { 
  color: #2c5f7acc; 
}
.category-section:nth-child(even) .item-note { 
  color: #fffc; 
}

/* --- 6. BANDEAU SUGGESTION ET SEMAINE DU CHEF --- */
/* ------------------------------------------------------------------- */
/* Note: Le style est commun et géré par la même classe .suggestion-section */
/* Le CSS pour "Semaine du Chef" est plus bas */

.suggestion-section {
  padding: 3rem 0;
  text-align: center;
  border-bottom: 1px solid #ddd;
  background-color: var(--cream);
  color: var(--deep-blue);
  background-size: cover;
  background-position: center;
  transition: all 0.4s ease;
}
.suggestion-section.has-background-image {
  color: var(--white);
}

.suggestion-title {
  font-family: var(--font-primary);
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
}
.suggestion-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--gold);
}

.suggestion-item {
  display: flex;
  gap: 25px;
  align-items: center;
  max-width: 700px;
  margin: 0 auto;
  text-align: left;
  background: rgba(255, 255, 255, 0.1);
  padding: 1.5rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.suggestion-section:not(.has-background-image) .suggestion-item {
  background: var(--white);
  border-color: transparent;
}

.suggestion-image {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  border: 2px solid var(--gold);
  flex-shrink: 0;
}
.suggestion-details { flex: 1; }
.suggestion-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.5rem;
}
.suggestion-name {
  font-family: var(--font-secondary);
  font-size: 1.5rem;
  font-weight: 600;
}
.suggestion-price {
  color: var(--white);
  font-size: 1.4rem;
  font-weight: 600;
  white-space: nowrap;
}
.suggestion-description {
  font-size: 0.95rem;
  line-height: 1.7;
  opacity: 0.9;
}

/* Styles spécifiques pour la vue "Semaine du Chef" */
.weekly-menu-section {
  padding: 3rem 0;
  background-color: var(--cream);
  text-align: center;
}
.weekly-menu-title {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--deep-blue);
  margin-bottom: 2rem;
  position: relative;
  display: inline-block;
  line-height: normal;
}
.weekly-menu-title::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 70px;
  height: 3px;
  background: var(--gold);
}
.weekly-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 2rem;
}
.weekly-tab {
  background: none;
  border: 2px solid var(--deep-blue);
  color: var(--deep-blue);
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1em;
}
.weekly-tab:hover {
  background: var(--deep-blue);
  color: var(--white);
}
.weekly-tab.active {
  background: var(--gold);
  color: var(--white);
  border-color: var(--gold);
  font-size: 1em;
}
.weekly-content-container {
  max-width: 800px;
  margin: 0 auto;
  background: var(--white);
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
  padding-left: 60px;
}
.weekly-content { display: none; }
.weekly-content.active { display: block; }
.weekly-date-range {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: 2rem;
  text-align: center;
}

/* Timeline pour la semaine du chef */
.weekly-timeline {
  position: relative;
  padding-left: 40px;
}
.weekly-timeline::before {
  content: '';
  position: absolute;
  top: 13px; /* Aligné avec le premier point */
  left: 10px;
  bottom: 13px; /* Aligné avec le dernier point */
  width: 3px;
  background-color: #e0e0e0;
  border-radius: 3px;
}

.timeline-item {
  position: relative;
  text-align: left;
  padding-bottom: 2rem;
}
.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-day {
  position: absolute;
  left: -68px;
  top: 5px;
  background: var(--deep-blue);
  color: white;
  font-size: 0.8rem;
  font-weight: 600;
  width: 80px;
  padding: 5px 0;
  border-radius: 20px;
  text-align: center;
  z-index: 1;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -35px;
  top: 13px; /* Aligne le point avec le nom du plat */
  width: 13px;
  height: 13px;
  background-color: var(--white);
  border: 3px solid var(--gold);
  border-radius: 50%;
  z-index: 2;
  display: none;
}
.timeline-content {
  padding-left: 1.6rem;
}

.timeline-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
}
.timeline-dish-name {
  font-family: var(--font-secondary);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--deep-blue);
}
.timeline-price {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gold);
  white-space: nowrap;
}
.timeline-description {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.7;
  padding-top: 0.5rem;
}

/* Par défaut (sur ordinateur), on affiche la version "desktop" */
.price-desktop {
    display: block;
}
.price-mobile {
    display: none;
}


/* --- 7. STYLES POUR LES ALLERGÈNES (ICÔNES ET LÉGENDE) --- */
/* ------------------------------------------------------------------- */

.item-allergens-icons { 
  display: flex; 
  gap: 12px; 
  margin-top: 2px; 
}
.allergen-icon { 
  font-size: 1.2em; 
  color: var(--deep-blue); 
  opacity: 0.7; 
  cursor: help; 
}
.category-section:nth-child(even) .allergen-icon { 
  color: var(--white); 
}

.allergen-legend { 
  margin-top: 2rem; 
  padding-top: 2rem; 
  border-top: 1px solid rgba(44, 95, 122, 0.2); 
  font-size: 0.9em; 
}
.category-section:nth-child(even) .allergen-legend { 
  border-top-color: rgba(255, 255, 255, 0.2); 
}
.legend-title { 
  font-weight: 600; 
  color: var(--deep-blue); 
  margin-bottom: 1rem; 
  font-size: 1em; 
}
.category-section:nth-child(even) .legend-title { 
  color: var(--white); 
}
.legend-items { 
  display: flex;
  flex-wrap: wrap;
 gap: 0.7rem 1rem;
}
.legend-item { 
  display: flex; 
  align-items: center; 
  gap: 8px; 
}
.legend-item .allergen-icon { 
  font-size: 1.3em; 
}


/* --- 8. FOOTER --- */
/* ------------------------------------------------------------------- */

.main-footer { 
  background-color: var(--deep-blue); 
  color: var(--white); 
  padding: 80px 0 30px; 
  font-size: 0.95em; 
}
.footer-content { 
  display: grid; 
  grid-template-columns: repeat(3, 1fr); 
  gap: 50px; 
  margin-bottom: 60px; 
}
.footer-column h3 { 
      color: #ffdb7c;
  font-size: 1.4em; 
  font-weight: 600; 
  margin-bottom: 25px; 
}
.footer-column p { 
  line-height: 1.8; 
  opacity: 0.9; 
}
.info-block { 
  margin-bottom: 20px; 
}
.info-block strong { 
  font-weight: 600; 
  display: block; 
  margin-bottom: 8px; 
}
.info-block p { margin: 0; }

.social-links { 
  margin-top: 25px; 
}
.social-links a { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 45px; 
  height: 45px; 
  border: 1px solid rgba(255, 255, 255, 0.5); 
  border-radius: 50%; 
  color: var(--white); 
  font-size: 1.2em; 
  text-decoration: none; 
  transition: all 0.3s ease; 
}
.social-links a:hover { 
  background-color: #ffdb7c; 
  border-color: #ffdb7c; 
  transform: scale(1.1); 
}

.footer-bottom { 
  border-top: 1px solid rgba(255, 255, 255, 0.2); 
  padding-top: 30px; 
  text-align: center; 
  font-size: 0.9em; 
  opacity: 0.8; 
}
.footer-bottom a { 
  color: var(--gold); 
  text-decoration: none; 
}
.footer-bottom a:hover { 
  text-decoration: underline; 
}

/* =================================================================== */
/*                     9. RESPONSIVE MEDIA QUERIES                     */
/* =================================================================== */

/* --- TABLETTES ET GRANDS MOBILES (jusqu'à 992px) --- */
/* ------------------------------------------------------------------- */
@media (max-width: 992px) {

  /* --- AJUSTEMENTS GÉNÉRAUX --- */
  html { 
    scroll-padding-top: 120px !important; 
  }
  body { 
    padding-top: 80px; 
  }
  .container { 
    padding: 0 20px; 
  }

  /* --- HEADER MOBILE CORRIGÉ --- */
  .main-header { 
    padding: 10px 15px; /* On réduit le padding */
  }
  
  .weekly-date-range .date-part {
    display: block;
}

 
.btn-reservation2 {
    zoom: 0.7;
}

  .main-header nav.container {
    display: flex; /* On passe en Flexbox pour un contrôle simple */
    justify-content: space-between; /* Espace équitable entre les éléments */
    align-items: center;
  }
  
  .logo { 
    height: 60px; /* On réduit la taille du logo */
  }

  /* On s'assure que les côtés gauche/droit prennent la place nécessaire */
  .nav-left, .nav-right {
    flex: 1; /* Chaque côté prend une part égale de l'espace */
  }
  
  /* On cache le burger menu, on n'en a plus besoin pour le moment */
  .burger-menu {
      display: none;
  }

  /* --- SÉLECTEUR DE LANGUE STYLÉ --- */
  .language-switch {
    border-radius: 50px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    border: 1px solid rgba(0, 49, 11, 0.2);
  }
  .lang-btn {
      padding: 6px 12px;
  }
  
  /* --- BOUTON DE RÉSERVATION AJUSTÉ --- */
  .btn-reservation {
      padding: 10px 16px;
      font-size: 0.8em;
  }
  .btn-reservation i {
      font-size: 1.1em; /* On s'assure que l'icône a une bonne taille */
      margin-right: 6px;
  }
  
  /* --- SECTION HERO AJUSTÉE --- */
  .hero-section {
    background-attachment: scroll;
    min-height: 40vh;
  }
  .hero-content h1 { font-size: 2.8em; }
  .hero-content p { font-size: 1.1em; padding: 0 10px; }
  
  /* --- BARRE DE FILTRES MOBILE --- */
.category-filter-section {
    padding-left: 20px; /* On ajuste le padding pour mobile */
    top: 80px;
}
#category-filter-container {
  justify-content: flex-start; /* Aligne au début sur mobile */
}
  
  /* --- AUTRES AJUSTEMENTS --- */
  .category-section { padding: 3rem 1rem; }
  .category-title { font-size: 2.2rem; }
  .category-image { width: 250px; height: 160px; }
  .item-image { width: 80px; height: 80px; }
  
  .footer-content { 
    grid-template-columns: 1fr; 
    gap: 40px; 
    text-align: center; 
  }
  
  /* Suggestion Mobile (inchangé) */
  .suggestion-item { flex-direction: column; align-items: center; text-align: center; padding: 1.5rem; }
  .suggestion-header { flex-direction: column; align-items: center; gap: 0.5rem; margin-bottom: 1rem; }
  .suggestion-name { font-size: 1.3rem; }
  .suggestion-price-desktop { display: none; }
  .suggestion-price-mobile { display: block; margin-top: 1rem; font-size: 1.3rem; font-weight: 700; color: var(--gold); }
}

@media (max-width: 540px) {
      /* Dans @media (max-width: 992px) */

/* On cache la version desktop */
.price-desktop {
    display: none;
}

/* On affiche et on style la version mobile */
.price-mobile {
    display: block;
    text-align: right; /* Aligne le prix à droite */
    margin-top: 0.75rem; /* Ajoute un espace au-dessus */
}

/* On ajuste le nom du plat pour qu'il prenne toute la largeur */
.timeline-dish-name {
    flex-grow: 1; /* Permet au titre de pousser l'ancien prix (maintenant caché) */
}
}

