:root {
    --primary-color: #FFD700; /* Doré */
    --secondary-color: #1e3a8a; /* Bleu foncé */
    --logo-reserve: clamp(140px, 21vh, 230px);
  }
  
  * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Playfair Display';
  }
  

header {
    background-color: #000000;
  }
  
  nav {
    min-height: 10vh;
    height: auto;
    width: 100vw;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
  }
  
:root { --topbar-h: 28px; } /* plus compact */

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 */
  padding-left: calc(20px + var(--logo-reserve));
}

.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: 1.1rem; line-height:1.3;
}


body.has-fixed-nav .home-section{ margin-top: var(--topbar-h); }
  .logo {
    position: absolute;
    left: 20px;
    top: calc(var(--topbar-h) - 8px);
    height: clamp(117px, 21vh, 208px);
    width: auto;
    z-index: 5;
  }
  
  .social-contact {
    height: auto;
    display: flex;
    flex-direction: row; /* Met en colonne */
    gap: clamp(5px, 1vw, 15px); /* Espacement entre icônes et numéro */
  }
  
  .social-links {
    padding-top : 5px;
    display: flex;
    gap: 10px;
  }
  
  
  /* Icônes SVG */
  .social-links svg {
    height: 30px;
    width: 30px;
    fill: #f8f8f8; /* Couleur des icônes */
    transition: fill 0.3s ease;
  }
  
  .social-links svg:hover {
    fill: var(--primary-color); /* Changement de couleur au survol */
  }
  
  .contact-info {
    align-items: center;
    display: flex;
    gap: 10px;
  }

  /* Numéro de téléphone */
  .contact-info a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: clamp(0.8rem, 2vw, 1.1rem);
    padding-right: 1vw;
  }
  
  
  /* Style du menu */
  .menu {
    list-style: none;
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .menu li {
    position: relative;
  }
  
  /* Style du lien principal */
  .menu > li > a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 1.15rem;
    padding: 10px 15px;
  }
  
  .menu a.active {
    color: var(--primary-color); /* Doré */
    font-weight: bold;
    border-bottom: 2px solid var(--primary-color); /* Ligne dorée sous l'onglet actif */
    padding-bottom: 5px;
  }
  .menu > li > a.btn-commande {
  background: var(--primary-color);
  color: #000;
  font-weight: 700;
  padding: 8px 14px; /* Ajuste ici la hauteur */
  border: 2px solid var(--primary-color);
  line-height: 1; /* aide à garder la même hauteur que le texte */
  font-size: 1.2rem;
}

/* état au survol / focus */
.menu > li > a.btn-commande:hover,
.menu > li > a.btn-commande:focus {
  background: transparent;            /* inverse au survol */
  color: var(--primary-color);
  text-decoration: none;
}
  
  /* Style du sous-menu */
  .submenu {
    list-style: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: white;
    border: 1px solid #ddd;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    display: none;
    width: 200px;
    z-index: 1000;
  }
  
  .submenu li {
    padding: 10px;
  }
  
  .submenu li a {
    text-decoration: none;
    color: black;
    display: block;
  }
  
  /* Affichage du sous-menu au survol */
  .dropdown:hover .submenu {
    display: block;
  }
  
  /* Effet au survol */
  .submenu li a:hover {
    background: var(--primary-color);
    color: white;
  }
  
  body { overflow-x: hidden; padding-top: 0; }
  
  html , body {
    margin: 0;
    padding: 0;
    height:100%;
  }

.product-header {
  display: flex;
  align-items: baseline;
  gap: 1rem;
}

.product-header h1{
  margin: 0;
  line-height:1.1;
}

.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;
}

.product-section {
  display: flex;
  height: 100vh;
  margin-top: 0; /* l’offset du header est déjà géré par le body */
}

.product-image {
    width: 50%;
    height: 100%;
}

.product-image img {
    width: 100%;
    height: 100%;
}

.product-info {
  margin-top: 2vh;
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 0.95rem;
}
.product-info h1 {
  font-size: 1.6rem;
    margin-bottom: 20px;
}

.size-selection {
    margin: 20px 0;
}

.size-btn {
    margin: 5px;
    padding: 10px 15px;
    border: 2px solid black;
    background: white;
    cursor: pointer;
    font-weight: bold;
}

.size-btn.active {
    background: black;
    color: white;
}

.product-price {
  font-size: 1.3rem;
}

.btn-commander {
  display: block;                     /* prend toute la ligne */
  background: var(--primary-color);   /* doré */
  color: #000;                        /* texte noir */
  font-weight: 700;
  font-size: large;
  padding: 12px 16px;
  border: 2px solid var(--primary-color);
  text-decoration: none;
  text-align: center;
  width: 30%;                         /* largeur raisonnable */
  margin: 16px auto 8px;              /* espace réduit sous le bouton */
}

.btn-commander:hover,
.btn-commander:focus{
  background: transparent;           /* inversion au survol */
  color: black;
  text-decoration: none;
}

.product-details.hidden {
    display: none;
}

.product-details, .product-allergens, .product-tips {
    margin-top: 20px;
}

.recommended-section {
    padding: 50px 20px;
    text-align: center;
}

.recommended-grid {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.recommended-item {
    text-decoration: none;
    color: black;
    text-align: center;
}

.recommended-item img {
    width: 250px;
    height: 250px;
    object-fit: cover;
}

 /* Footer */
 /* Footer */
 .footer {
  background-color: #000; /* Fond noir */
  color: var(--primary-color);
  width: 100%;
  height: auto;
  display: flex;
  flex-direction: column;
  padding: 10px 5vw;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-maps {
  margin-top: 3vh;
  margin-right: 9vw;
}

.footer-slogan {
  display: flex;
  font-size: 1.4rem;
  margin-bottom: 10px;
}

/* Logo à gauche */
.footer-logo img {
  height: 30vh; /* Ajuste la taille du logo */
}
.footer-logo p {
  font-size:1.2rem;
}

/* Informations de contact */
.footer-contact p {
  margin: 3px 0;
  font-size:1.2rem;
}

/* Numéro de téléphone cliquable */
.footer-contact a {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
}

.footer-contact a:hover {
  text-decoration: underline;
}

/* Mentions légales en bas */
.footer-legal {
  text-align: center;
  font-size: 1rem;
  margin-top: 10px;
}

.footer-legal a {
  color: white;
  text-decoration: none;
}

.footer-legal a:hover {
  text-decoration: underline;
}