/* 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;
}

html { scroll-behavior: smooth; }
: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; }

/* CATEGORIES */
.categories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  padding: 20px;
  background-color: black;
}

.categories-container .category img {
  width: 80px;
  height: auto;
  border-radius: 50%;
}

.category {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
}

.category.active {
  transform: scale(1.1);
}
.category.active p {
  color: var(--gold);
}

.category-label {
  color: white;
  font-size: 1rem;
  text-align: center;
  margin-top: 8px;
}


.full-image img {
  width: 100%;
  height: auto;
  margin-bottom: 20px;
}

.category-title {
  font-size: 1.5rem;
  text-align: center;
  margin: 20px 0;
  color: black;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 15px;
  padding: 0 15px 30px;
}

.product-item {
  text-align: center;
  text-decoration: none;
  color: #000;
  background: #f9f9f9;
  overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  position:relative;
}

.product-item img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ensure badges can be positioned relative to the image only when wrapped */
.product-item .thumb { position: relative; display: block; }
.product-item .thumb .badge.lactosefree {
  top: auto;
  right: auto;
  left: 6px;
  bottom: 6px;
}

.product-item h3 {
  font-size: 1rem;
  margin: 5px 0;
}

.product-item p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 8px;
}

.badge {
  position : absolute;
  top: 5px;
  padding: 3px 6px;
  font-size: 0.65rem;
  font-weight: bold;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
  border-radius: 12px;
  z-index: 10;
}

.badge.new {
  left: 6px;
  background: var(--gold);
  color: #000;
}
.badge.glutenfree {
  right: 6px;
  background: #81746b;
  color: white;
}

/* Centrage horizontal en haut de l'image (mobile) */
.badge.center {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* Badge Sans lactose (en haut à droite) */
.badge.lactosefree {
  right: 8px;
  background: #81746b;
  color: white;
}

/* Quand lactosefree est centré (mobile), forcer la position */
.badge.center.lactosefree {
  left: 50%;
  right: auto;
  transform: translateX(-50%);
}

/* FOOTER */
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 */
  }