/* Reset & variables */
* { margin:0; padding:0; box-sizing:border-box; }
:root {
  --gold:#FFD700; --navy:#1e3a8a; --bg:#000; --text:#333;
  --font:'Playfair Display', serif;
}
body {
  font-family:var(--font); color:var(--text); background:#fff;
  line-height:1.5;
}
:root { --topbar-h: 50px; } /* plus compact */

/* HEADER & NAV */
header { background:var(--bg); }
.nav-mobile {
  display:flex; flex-direction:column;
  align-items:center; padding:1rem 0;
  padding-top: var(--topbar-h);
}


nav.has-topbar{
  /* garde ton display/flex d’origine */
  position: fixed; /* ou fixed si c’était le cas chez toi */
  top: 0;
  z-index: 4000;
  padding-top: var(--topbar-h); /* décale le contenu du nav sous la topbar */
}

.nav-topbar{
  position: absolute;
  top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background-color: #81746b;
  color: #FFFFFF;
  display: flex; align-items: center;
  overflow: hidden;
  z-index: 1;
}

.nav-topbar .swiper{ width: 100%; height: 100%; }
.nav-topbar .swiper-slide{
  display:flex; align-items:center; justify-content:center;
  padding: 0 12px; text-align:center; font-size: 1rem; line-height:0.9; flex-direction: column;
}

/* Si ton nav est en position: fixed; ajoute un offset au premier bloc de page pour éviter l’écrasement */
body.has-fixed-nav .home-section{ margin-top: var(--topbar-h); }

/* Logo & contact */
.nav-mobile .logo img { height:10rem; }
.social-contact {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-top: 0.5rem;
  }
  
  .social-contact svg {
    width: 1.5rem;
    height: 1.5rem;
    fill: var(--gold);
    transition: fill 0.2s;
  }
  
  .phone {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--gold);
    text-decoration: none;
    font-size: 1rem;
  }
  
  .phone:hover svg,
  .phone:hover {
    color: #fff;
    fill: #fff;
  }
  
  

/* MENU TOUJOURS visible */
.menu {
  list-style:none;
  width:100%;
  display:flex; flex-direction:column;
  margin-top:1rem;
}
/* Masquer les puces des UL */
.nav-mobile.menu { list-style: none; margin:0; padding:0; }

/* Masquer le triangle par dÃ©faut du summary */
summary { list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::marker { content: none; }

.menu li { border-top:1px solid #444; }
.menu li:first-child { border-top:none; }
.menu a, .menu summary {
  display:block; padding:0.75rem 1rem;
  color:var(--gold); text-decoration:none;
  font-size:1rem;
}
.menu a.active { background:#333; font-weight:bold; font-size:1.1rem; }

.menu a.order,
.menu > a.order {
  background: var(--gold);
  color: #000;
  font-weight: 700;
  border: 1px solid var(--gold);
  padding: 0.75rem 1rem;
  display: block;
}

.order {
  font-weight:bold; font-size:2rem;
  border-top:1px solid #444;
}

/* DÃ©tails / sous-menu */
.menu details {
  background:var(--bg);
}
.menu summary {
  cursor:pointer;
  list-style:none;
}

.menu summary.active {
  background:#333;
  font-weight:bold;
  font-size:1.1rem;
}

.menu .submenu {
  list-style:none;
  background:#111;
}
.menu .submenu li a {
  padding-left:2rem; font-size:0.9rem;
  border-top:1px solid #333;
}

/* MAIN (dÃ©calage header) */
main { padding-top:1rem; }

  /* PRODUIT */
  .product-section {
    display: flex;
    flex-direction: column;
    padding: 15px;
  }

  .product-image img {
    width: 100%;
    height: auto;
    margin-bottom: 15px;
  }

  .product-info h1 {
    font-size: 1.6rem;
    margin-bottom: 10px;
    color: black;
  }

  .size-selection {
    margin: 15px 0;
  }

  .size-selection span {
    font-weight: bold;
  }

  .size-btn {
    margin: 5px 5px 5px 0;
    padding: 8px 12px;
    border: 2px solid black;
    background: white;
    cursor: pointer;
    font-weight: bold;
  }

  .size-btn.active {
    background: black;
    color: white;
  }

  .product-price {
    font-size: 1.3rem;
    margin: 10px 0;
  }

  .product-details.hidden {
    display: none;
}
  .product-details,
  .product-allergens,
  .product-tips {
    margin-top: 15px;
  }

  .product-details h2,
  .product-allergens h2,
  .product-tips h2 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: black;
  }

  .product-details p,
  .product-allergens p,
  .product-tips p {
    font-size: 0.95rem;
  }
.badge.glutenfree {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  background: #81746b;     /* ton marron-beige signature */
  color: #fff;
  font-weight: bold;
  font-size: 0.8rem;
  padding: .3rem .6rem;
  white-space: nowrap;
  border-radius: 12px;
}
.btn-commander {
  display: block;                     /* prend toute la ligne */
  background: var(--gold);   /* doré */
  color: #000;                        /* texte noir */
  font-weight: 700;
  padding: 12px 16px;
  border: 2px solid var(--gold);
  border-radius: 9999px;              /* forme pilule */
  text-decoration: none;
  text-align: center;
  width: 80%;                         /* largeur raisonnable */
  max-width: 320px;
  margin: 20px auto;                  /* <== centre horizontalement */
  -webkit-tap-highlight-color: transparent; /* supprime l'halo bleu iOS */
}

/* Etats interactifs adaptés au type de périphérique */
@media (hover: hover) {
  .btn-commander:hover{
    background: black;           /* inversion au survol (desktop/souris) */
    color: var(--gold);
    text-decoration: none;
  }
}

@media (hover: none) {
  /* Sur écrans tactiles, ne pas conserver un :hover collant */
  .btn-commander:hover{ background: var(--gold); color:#000; }
  .btn-commander:active{ background:#e6c200; color:#000; }
}

/* Accessibilité clavier: ne pas figer le fond en noir au focus tactile */
.btn-commander:focus{
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

  /* RECOMMANDÉS */
  .recommended-section {
    padding: 30px 15px;
    text-align: center;
  }

  .recommended-section h2 {
    font-size: 1.4rem;
    color: black;
    margin-bottom: 15px;
  }

  .recommended-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 15px;
  }

  .recommended-item {
    text-decoration: none;
    color: black;
    text-align: center;
  }

  .recommended-item img {
    width: 100%;
    height: auto;
  }

  .recommended-item h3 {
    font-size: 0.95rem;
    margin: 5px 0 2px;
  }

  .recommended-item p {
    font-size: 0.85rem;
    color: #555;
  }

  footer {
    background:var(--bg); color:var(--gold);
    text-align:center; padding:1.5rem 1rem;
  }
  .footer-content img { height:10rem; }
  .footer-content p,
  .footer-content a.legal {
    font-size:0.9rem; margin:0.25rem 0; text-decoration:none;
    color:var(--gold);
  }
  .footer-content a.legal:hover { text-decoration:underline; }
  .opening-hours ul {
      list-style: none;   /* supprime les puces */
      margin: 0;          /* supprime la marge par défaut à gauche */
      padding-bottom: 5vh;
    }
    
    .opening-hours li {
      margin: 0;          /* pas de marge verticale supplémentaire */
      padding: 0;         /* pas d’indentation sur les li */
    }