*{box-sizing:border-box;margin:0;padding:0}
body{
  font-family:"Inter",sans-serif;
  background:#f8f7f4;
  color:#1b394b;
  line-height:1.6;
  /* scroll-behavior:smooth; */
}
.container{width:90%;max-width:1100px;margin:0 auto}

/* === NAVBAR === */
.site-header{
  position:fixed;
  top:0;left:0;width:100%;
  background:rgba(255,255,255,0.92);
  backdrop-filter:blur(10px);
  border-bottom:1px solid #eee;
  padding:0px 0;
  z-index:1000;
  opacity:1;
  transform:translateY(0);
  transition:transform .5s ease,opacity .5s ease;
}
.site-header.hide{
  transform:translateY(-100%);
  opacity:0;
}
.nav-center{
  display:flex;
  justify-content:center;
  align-items:center;
}
.logo-navbar{
  height:64px;
  width:auto;
}

/* === HERO === */
.hero{margin-top:65px;position:relative;height:45vh;min-height:320px;}
.hero-image{
  position:absolute;inset:0;
  background-size:cover;background-position:center;
  filter:brightness(0.8);
}
.hero-overlay{
  position:relative;z-index:1;text-align:center;color:white;
  top:50%;transform:translateY(-50%);
}
.hero-overlay h1{
  font-family:"Cormorant Garamond",serif;
  font-size:2.4rem;
  margin-bottom:0.4rem;
}
.hero-overlay span{color:#c8a96a;}

/* === BANNER === */
.delivery-banner{
  background:#fff;
  text-align:center;
  padding:0.8rem;
  border-bottom:1px solid #eee;
  font-size:0.95rem;
  color:#333;
}

/* === PRODUITS === */
.catalogue h2{
  text-align:center;
  margin:2rem 0 1.2rem;
  font-family:"Cormorant Garamond",serif;
}
.grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(260px,1fr));
  gap:1.5rem;
}
.card{
  background:white;
  border:1px solid #eee;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}
.card img{width:100%;height:200px;object-fit:cover;}
.card-body{padding:1rem;}
.price{color:#c8a96a;font-weight:600;margin:0.5rem 0;}
.controls{display:flex;align-items:center;gap:0.5rem;}
.controls input{width:80px;padding:0.4rem;}
.controls button{
  background:#1b394b;color:white;
  border:none;border-radius:5px;
  padding:0.5rem 0.9rem;cursor:pointer;
  transition:background .2s;
}
.description_produit{color:#1b394b;font-weight:200;margin:0.5rem 0; font-size: 75%; font-style: italic;}
.controls button:hover{background:#2d364b;}

/* === COMMANDE === */
.commande{
  background:white;
  padding:2rem;
  border-radius:10px;
  margin-top:3rem;
}
.commande h2{text-align:center;font-family:"Cormorant Garamond",serif;}
#panier{list-style:none;padding:0;margin:1rem 0;}
#panier li{
  background:#f9f9f9;border:1px solid #eee;
  border-radius:6px;padding:0.6rem 1rem;
  margin-bottom:0.5rem;
}
form{display:flex;flex-direction:column;gap:0.8rem;margin-top:1rem;}
input,textarea{
  border:1px solid #ccc;border-radius:6px;
  padding:0.6rem;font-family:inherit;
}
button[type="submit"]{
  background:#c8a96a;color:white;border:none;
  padding:0.8rem;border-radius:6px;cursor:pointer;
}
.info{color:#555;font-size:0.9rem;}
#sms-preview{
  margin-top:1rem;background:#0b1c2e;color:#cfe6ff;
  padding:0.8rem;border-radius:8px;white-space:pre-wrap;
}

/* === FOOTER === */
.footer{
  background:#1b394b;color:white;
  text-align:center;padding:1.5rem;margin-top:3rem;
}
.footer p{margin:0.4rem 0;}

/* === FLECHE RETOUR HAUT === */
.scroll-top{
  position:fixed;
  bottom:25px;right:25px;
  background:#1b394b;color:white;
  border:none;border-radius:50%;
  width:38px;height:38px;
  font-size:18px;
  opacity:0;pointer-events:none;
  cursor:pointer;
  transition:opacity .4s ease,transform .3s ease;
}
.scroll-top.show{
  opacity:0.9;
  pointer-events:auto;
  transform:translateY(0);
}
.scroll-top:hover{opacity:1;background:#2d364b;}
/* Page panier */
.panier-page h1 {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  margin: 2rem 0 1rem;
}
/* NAVBAR alignée */
.nav-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
}

/* Bouton Mon Panier */
.btn-panier {
  background: #1b394b;
  color: white;
  text-decoration: none;
  padding: 8px 16px;
  border-radius: 25px;
  font-weight: 600;
  transition: background 0.3s ease, transform 0.2s ease;
}
.btn-panier:hover {
  background: #2e3648;
  transform: translateY(-1px);
}
/* === NOTIFICATION AJOUT PRODUIT === */
.notif {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #1b394b;
  color: white;
  padding: 0.7rem 1.2rem;
  border-radius: 25px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.3s ease;
  font-size: 0.95rem;
  z-index: 9999;
}
.notif.show {
  opacity: 1;
  transform: translate(-50%, -10px);
}

/* === BADGE PANIER === */
.btn-panier {
  position: relative;
}
.panier-count {
  position: absolute;
  top: -6px;
  right: -10px;
  background: #c8a96a;
  color: white;
  font-size: 0.7rem;
  width: 18px;
  height: 18px;
  line-height: 18px;
  border-radius: 50%;
  font-weight: bold;
  text-align: center;
  display: inline-block;
}


/* === CORRECTION PAGE PANIER === */
.panier-page {
  padding-top: 100px; /* pour dégager sous la navbar */
}

/* === FLECHE RETOUR HAUT === */
.scroll-top {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1b394b;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 18px;
  opacity: 0;
  pointer-events: none;
  cursor: pointer;
  transition: opacity 0.4s ease, transform 0.3s ease;
  z-index: 9999;
}
.scroll-top.show {
  opacity: 0.9;
  pointer-events: auto;
}
.scroll-top:hover {
  opacity: 1;
  background: #2d364b;
}
/* === MESSAGES DISCRETS === */
.msg {
  font-size: 0.9rem;
  margin-top: 0.4rem;
  transition: opacity 0.3s ease;
}
.msg.success {
  color: #118a28;
}
.msg.error {
  color: #c0392b;
}
/* Messages discrets sous produits */
.msg {
  min-height: 18px;
  font-size: 0.85rem;
  margin-top: 0.3rem;
  transition: color 0.3s ease, opacity 0.3s ease;
}
.msg.success {
  color: #2b8a3e;
  opacity: 1;
}
.msg.error {
  color: #c92a2a;
  opacity: 1;
}
/* Bouton retirer du panier */
.remove-btn {
  background: none;
  border: none;
  color: #c92a2a;
  font-weight: 600;
  cursor: pointer;
  margin-left: 10px;
  transition: color 0.2s ease;
}
.remove-btn:hover {
  color: #e03131;
}
/* === BOUTON ACCÉDER AU PANIER === */
.access-panier {
  text-align: center;
  margin: 3rem 0 2rem;
}

.btn-access-panier {
  background: #c8a96a;
  color: white;
  text-decoration: none;
  font-weight: 600;
  padding: 0.9rem 1.8rem;
  border-radius: 30px;
  transition: background 0.3s ease, transform 0.2s ease;
  display: inline-block;
}

.btn-access-panier:hover {
  background: #b48f54;
  transform: translateY(-2px);
}
.msg {
  text-align: center;
  font-weight: 500;
  margin-top: 1rem;
  transition: opacity 0.4s ease;
}

.msg.success {
  color: #228b22; /* vert */
}

.msg.error {
  color: #b22222; /* rouge foncé */
}
form .msg {
  margin-top: 0.8rem;
  text-align: center;
  font-weight: 500;
  transition: opacity 0.4s ease;
}

form .msg.success {
  color: #228b22; /* vert */
}

form .msg.error {
  color: #b22222; /* rouge foncé */
}
/* === CADDIE FLOTTANT === */
.floating-cart {
  position: fixed;
  bottom: 25px;
  right: 25px;
  background: #1b394b;
  color: white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  font-size: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  transition: background 0.3s ease, transform 0.2s ease;
  z-index: 1000;
}

.floating-cart:hover {
  background: #2e3648;
  transform: translateY(-2px);
}

/* === COMPTEUR PANIER (nav + flottant) === */
.cart-count {
  position: absolute;
  top: -7px;
  right: -7px;
  background: #c8a96a;
  color: #fff;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  font-size: 12px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

/* S’assure que le bouton “Mon panier” est un conteneur relatif */
.btn-panier {
  position: relative;
  display: inline-block;
  padding-right: 28px; /* petit espace à droite du texte pour ne pas coller le badge */
}
.promo {
  color: #228b22;
  font-weight: 600;
  font-size: 0.85rem;
  margin-left: 4px;
}
/* === STYLE DES SELECT (choix de portions) === */
select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background: #ffffff;
  border: 1px solid #c8a96a;
  border-radius: 8px;
  padding: 0.55rem 2rem 0.55rem 0.8rem;
  font-family: "Inter", sans-serif;
  font-size: 0.95rem;
  color: #1b394b;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
}

/* Flèche personnalisée */
select::after {
  content: "▼";
  position: absolute;
  right: 10px;
  pointer-events: none;
}

/* Effet au survol et focus */
select:hover {
  border-color: #b48f54;
  box-shadow: 0 0 6px rgba(200, 169, 106, 0.4);
}

select:focus {
  outline: none;
  border-color: #b48f54;
  box-shadow: 0 0 8px rgba(200, 169, 106, 0.6);
}

/* Option interne */
option {
  background: #fff;
  color: #1b394b;
  font-size: 0.95rem;
  padding: 0.4rem;
}

/* Pour aligner avec les boutons */
.controls select {
  flex: 1;
  min-width: 160px;
}
/* === PANIER STRUCTURÉ === */
.categorie-panier {
  margin-bottom: 1.8rem;
  padding: 1rem;
  border: 1px solid #ddd;
  border-radius: 10px;
  background-color: #fdfdfd;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.categorie-panier h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  color: #1e2430;
}

.liste-produits {
  list-style: none;
  margin: 0;
  padding: 0;
}

.liste-produits li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 4px 0;
  font-size: 0.95rem;
}

.liste-produits li button {
  border: none;
  background: transparent;
  color: #c00;
  font-size: 1rem;
  cursor: pointer;
}

.total-categorie {
  text-align: right;
  margin-top: 0.4rem;
  font-weight: bold;
  color: #333;
}

.total-global {
  text-align: center;
  font-size: 1.3rem;
  font-weight: 700;
  margin-top: 1.5rem;
  color: #1e2430;
}
/* === AUTOCOMPLÉTION D’ADRESSE === */
.suggestions {
  list-style: none;
  margin: 0;
  padding: 0;
  background: white;
  border: 1px solid #ccc;
  border-top: none;
  position: absolute;
  width: 100%;
  max-width: 400px;
  z-index: 10;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.suggestions li {
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.95rem;
}

.suggestions li:hover {
  background: #f2f2f2;
}
.price-info {
  font-size: 0.9rem;
  color: #555;
  margin-top: -6px;
  margin-bottom: 10px;
  font-style: italic;
}
.nav-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.nav-link {
  font-size: 0.95rem;
  text-decoration: none;
  color: #0f172a; /* adapte si tu veux */
}

.nav-link:hover {
  text-decoration: underline;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}
/* CACHER sur téléphone */
@media (max-width: 768px) {
  .desktop-only {
    display: none !important;
  }
}
.social-links {
  margin-top: 15px;
  display: flex;
  gap: 14px;
  justify-content: center;
  align-items: center;
}

.social-links img {
  width: 28px;
  height: 28px;
  opacity: 0.85;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.social-links img:hover {
  opacity: 1;
  transform: scale(1.08);
}

/* Ajustement mobile */
@media screen and (max-width: 600px) {
  .social-links img {
    width: 26px;
    height: 26px;
  }
}
/* === OVERLAY DE CHARGEMENT COMMANDE === */
.loading-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.loading-overlay.hidden {
  display: none;
}

.loading-box {
  background: #ffffff;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.25);
  text-align: center;
  max-width: 260px;
  font-size: 0.95rem;
  color: #1b394b;
}

.loading-box p {
  margin-top: 0.8rem;
}

/* Petit spinner */
.spinner {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid #e0e6ef;
  border-top-color: #c8a96a;
  animation: spin 0.8s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* === Bouton "En savoir plus sur la livraison" === */
.btn-livraison {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.45rem 1.1rem;
  font-size: 0.9rem;
  border-radius: 5px;
  border: 1px solid #c8a96a;
  background: #fff;
  color: #c8a96a;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.btn-livraison:hover {
  background: #c8a96a;
  color: #fff;
  transform: translateY(-1px);
}

/* === Page livraison === */
.livraison-page {
  padding-top: 100px;
  padding-bottom: 3rem;
}

.livraison-page h1 {
  text-align: center;
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 2rem;
}

.livraison-section {
  margin-bottom: 2rem;
}

.livraison-section h2 {
  font-family: "Cormorant Garamond", serif;
  margin-bottom: 0.75rem;
}

.livraison-section h3 {
  margin-top: 1.2rem;
  margin-bottom: 0.4rem;
  font-size: 1rem;
}

.livraison-section p {
  margin-bottom: 0.5rem;
}

.livraison-section ul {
  margin-left: 1.2rem;
  margin-bottom: 0.6rem;
}

.city-list {
  columns: 2;
  column-gap: 2rem;
}

.city-list li {
  break-inside: avoid;
}

.livraison-section .note {
  font-size: 0.9rem;
  font-style: italic;
  color: #555;
}

/* FAQ items */
.faq-item + .faq-item {
  margin-top: 1rem;
}

/* Bloc contact */
.contact-block {
  text-align: center;
}

.contact-block .contact-line {
  margin: 0.5rem 0 1rem;
}

/* Bouton retour panier */
.livraison-retour {
  text-align: center;
  margin-top: 2rem;
}

.btn-retour-panier {
  background: transparent;
  border-radius: 5px;
  border: 1px solid #1b394b;
  padding: 0.5rem 1.4rem;
  font-size: 0.9rem;
  cursor: pointer;
  color: #1b394b;
  font-weight: 500;
  transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn-retour-panier:hover {
  background: #1b394b;
  color: #fff;
  transform: translateY(-1px);
}
/* ===== PACKS ===== */
.packs-section { margin-top: 28px; }
.packs-intro { margin-bottom: 16px; }

.packs-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px){
  .packs-grid{ grid-template-columns: 1fr; }
}

.pack-card{
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 10px 24px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.06);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}
.pack-card.featured{
  border: 1px solid rgba(201, 150, 70, 0.35);
}

.pack-top{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.pack-price{ font-weight: 700; font-size: 20px; margin: 6px 0; }
.pack-desc{ margin: 0; opacity: .85; }

.badge{
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 8px;
  background: rgba(201, 150, 70, 0.12);
}

.btn-pack-toggle{
  border: 1px solid rgba(0,0,0,0.12);
  background: transparent;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.pack-details{
  max-height: 0;
  opacity: 0;
  transform: translateY(-4px);
  transition: max-height .28s ease, opacity .2s ease, transform .2s ease;
}

.pack-card.open .pack-details{
  max-height: 600px; /* assez grand pour mobile */
  opacity: 1;
  transform: translateY(0);
  margin-top: 12px;
}

.pack-list{
  margin: 0;
  padding-left: 18px;
  line-height: 1.6;
}

.pack-actions{
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  align-items: center;
}

.btn-pack-add{
  background: #0e2b3a;
  color: #fff;
  border: 0;
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}

.btn-pack-close{
  background: transparent;
  border: 1px solid rgba(0,0,0,0.12);
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}
/* Packs */
.packs-section { margin: 4rem 0; }
.packs-title { text-align: center; margin-bottom: 2rem; }

/* Plus d'espace entre les packs */
.packs-grid {
  gap: 28px; /* augmente si tu veux encore plus */
}

/* Prix doré comme tes produits (reprend ta couleur prix si elle existe) */
.pack-price {
  color: #c9a24a; /* doré */
  font-weight: 700;
  font-size: 1.15rem;
  margin: 0.6rem 0 1rem;
}

/* Petite description */
.pack-desc {
  margin: 0.5rem 0 0.2rem;
  color: #444;
  font-size: 0.95rem;
  line-height: 1.35;
}

/* Liste */
.pack-list {
  text-align: left;
  padding-left: 1.2rem;
  margin: 0 0 1.2rem;
}
.pack-list li { margin-bottom: 0.4rem; }

/* Bouton centré */
.pack-btn-wrap {
  display: flex;
  justify-content: center;
}
.pack-btn-wrap .btn {
  width: auto;
  min-width: 180px; /* optionnel, pour que ce soit clean */
}
/* Packs : bouton centré comme les autres */
.pack-controls {
  justify-content: center;
}

.pack-controls button {
  width: auto;
  min-width: 180px;
}
