@font-face {
  font-family: 'FenwayParkJF';
  src: url('../../font/Fenway Park JF Regular.ttf') format('truetype');
  /* Chemin vers le fichier de police */
}

:root {
  --primary-color: #a8b4a5;
  --secondary-color: #d59a8d;
  --third-color: #f4e9dc;
  --fourth-color: #b9cfe3;
  --brand-rose-700: #c08877;
  --text: #444;
  --text-dark: #2e2e2e;
  --muted: #666;
}
/* Empêche tout scroll horizontal global */
html,
body {
  overflow-x: clip;
  /* moderne */
}

@supports not (overflow-x: clip) {

  html,
  body {
    overflow-x: hidden;
  }

  /* fallback */
}

.navbar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  background-color: var(--primary-color);
  padding: 1rem 2rem;
  position: sticky;
  top: 0;
  z-index: 999;
}

.navbar-logo {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
}

.navbar-logo img {
  width: 70px;
  height: 70px;
  margin-right: 0.8rem;

}

.mobile{
  display: none;
}

.navbar-logo span {
  font-family: 'FenwayParkJF', sans-serif;
  font-size: 2rem;
  color: white;
  font-weight: 0;
  letter-spacing: 1px;
  line-height: 1.1;
  height: auto;
}

.navbar-menu {
  display: flex;
  gap: 1.5rem;
  font-size: 18px;
  justify-content: center;
  justify-self: center;
  margin-left: 0;
  min-width: 0;
}

.navbar-menu a {
  color: white;
  text-decoration: none;
  font-weight: 700;
  transition: opacity 0.3s;
}

.navbar-menu a:hover {
  opacity: 0.7;
}

.navbar-icons {
  display: flex;
  gap: 0.95rem;
  font-size: 1.2rem;
  align-items: center;
}

.div-icons {
  justify-self: end;
}

.navbar-icons a {
  position: relative;
  color: white;
  text-decoration: none;
}

.navbar-logout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: white;
}

input[type="file"] {
  width: 100%;
  border: 1.6px solid #ddd;
  border-radius: 10px;
  padding: .6rem .7rem;
  font-family: inherit;
  font-size: 1rem;
  color: var(--muted, #666);
  background: #fff;
}

input[type="file"]::file-selector-button {
  border: 2px solid var(--brand-rose-700, #d59a8d);
  background: transparent;
  color: var(--brand-rose-700, #d59a8d);
  border-radius: 30px;
  padding: .6rem 1rem;
  margin-right: .8rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .05s ease-in;
}

input[type="file"]:hover::file-selector-button {
  background-color: #f7ece7;
}

input[type="file"]:active::file-selector-button {
  transform: scale(0.98);
}

input[type="file"]:focus {
  outline: none;
  border-color: var(--brand-rose-700, #d59a8d);
  box-shadow: 0 0 0 3px rgba(213, 154, 141, .15);
}

input[type="file"]::-webkit-file-upload-button {
  border: 2px solid var(--brand-rose-700, #d59a8d);
  background: transparent;
  color: var(--brand-rose-700, #d59a8d);
  border-radius: 30px;
  padding: .6rem 1rem;
  margin-right: .8rem;
  font-weight: 700;
  cursor: pointer;
}

.burger {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.burger div {
  width: 25px;
  height: 3px;
  background-color: white;
  margin: 4px;
  transition: all 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.badge-panier {
  background-color: var(--secondary-color);
  color: white;
  font-weight: bold;
  border-radius: 50%;
  padding: 0 5px;
  position: absolute;
  top: -10px;
  right: -10px;
}

.icon-panier {
  position: relative;
}

.mini-panier {
  display: none;
  position: absolute;
  right: 2rem;
  top: 100%;
  margin-top: 10px;
  width: 320px;
  background: white;
  border: 1px solid #ccc;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 1000;
}

.mini-panier.visible {
  display: block;
}

.mini-panier h4 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.mini-panier-separator {
  border: none;
  border-top: 2px solid #eee;
  margin: 0.5rem 0;
}

.liste-articles {
  list-style: none;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
}

.liste-articles li {
  display: flex;
  gap: 10px;
  margin-bottom: 1rem;
  align-items: flex-start;
  position: relative;
}

.liste-articles img {
  width: 50px;
  height: 50px;
  border-radius: 6px;
  object-fit: cover;
}

.liste-articles .infos {
  flex: 1;
  min-width: 0;
  font-size: 0.85rem;
}

.liste-articles .infos > strong {
  display: block;
  padding-right: 1.6rem;
  overflow-wrap: anywhere;
  line-height: 1.3;
}

.mini-cart-edit {
  margin-top: .4rem;
  padding: 0;
  border: 0;
  background: transparent;
  color: #b87366;
  font: 700 .78rem Raleway, sans-serif;
  text-decoration: underline;
  cursor: pointer;
}

.mini-cart-custom-summary {
  display: -webkit-box;
  margin: .25rem 0 .45rem;
  overflow: hidden;
  color: #6f665f;
  font-size: .78rem;
  font-weight: 500;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mini-cart-editor {
  display: grid;
  gap: .4rem;
  margin-top: .55rem;
  padding: .55rem;
  border: 1px solid #eadbd2;
  border-radius: 8px;
  background: #fffaf7;
}

.mini-cart-editor[hidden] { display: none; }
.mini-cart-editor textarea { width: 100%; min-height: 70px; resize: vertical; border: 1px solid #decac0; border-radius: 6px; padding: .55rem; font: inherit; }
.mini-cart-editor > div { display: flex; flex-wrap: wrap; gap: .4rem; }
.mini-cart-editor button { border: 1px solid #d59a8d; border-radius: 999px; padding: .38rem .65rem; background: #fff; color: #a86458; font: 700 .75rem Raleway, sans-serif; cursor: pointer; }
.mini-cart-editor button:first-child { background: #d59a8d; color: #fff; }
.mini-cart-editor-status { color: #b42318; line-height: 1.35; }

.liste-articles .quantity-control {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 4px;
}

.liste-articles .quantity-control button {
  padding: 0.2rem 0.6rem;
  font-size: 1rem;
  background-color: #eee;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.liste-articles .total-ligne {
  font-weight: bold;
  font-size: 0.85rem;
  margin-top: 0.3rem;
}

.mini-panier-bottom {
  text-align: right;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.voir-panier {
  text-decoration: none;
  background-color: var(--secondary-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
}

.fermer-mini-panier {
  position: absolute;
  top: 5px;
  right: 10px;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: #555;
  cursor: pointer;
}

.supprimer-produit {
  position: absolute;
  top: 20px;
  right: 4px;
  background: none;
  border: none;
  color: #cc0000;
  font-size: 1rem;
  cursor: pointer;
}

.voir-panier:hover {
  background-color: #c88a7b;
}

/* Module livraison gratuite (mini-panier) */
.free-shipping {
  background: #fff;
  border: 1px solid #e4ded8;
  border-left: 4px solid var(--secondary-color);
  border-radius: 8px;
  padding: .75rem .85rem;
  margin: .3rem 0 1rem;
}

.free-shipping .fs-msg {
  margin: 0;
  font-size: .95rem;
  font-weight: 700;
  color: #403a36;
}

.free-shipping .fs-bar {
  height: 8px;
  background: #ece8e4;
  border-radius: 999px;
  overflow: hidden;
  margin-top: .5rem;
}

.free-shipping .fs-fill {
  height: 100%;
  width: 0%;
  background: #d59a8d;
  /* couleur charte */
  transition: width .35s ease;
}

/* État atteint */
.free-shipping.reached .fs-msg {
  color: #216b3a;
}

.free-shipping.reached .fs-fill {
  background: #2f8650;
}

.free-shipping.reached {border-left-color:#2f8650;background:#f7fbf8}
.gift-tier-progress{margin:.65rem 0 0;padding:.7rem .8rem;border-left:3px solid #d59a8d;background:#fff8f5;border-radius:0 6px 6px 0}.gift-tier-progress p{margin:.15rem 0;color:#625a55;font-size:.8rem;line-height:1.35}.gift-tier-progress strong{color:#2f2a27}

/* Toast livraison gratuite */
.fs-toast {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  background: #fff;
  border: 1px solid #e4ded8;
  border-left: 4px solid #d59a8d;
  box-shadow: 0 12px 34px rgba(48, 42, 38, .16);
  border-radius: 8px;
  padding: .9rem 1.1rem;
  width: 420px;
  max-width: calc(100vw - 32px);
  color: #444;
  font-weight: 700;
  line-height: 1.35;
  display: block;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity .25s ease, transform .25s ease;
}
.fs-toast-heading{display:flex;align-items:center;gap:.65rem}
.fs-toast .fs-msg{flex:1}
.fs-milestones{position:relative;margin:.9rem .25rem .05rem}
.fs-milestone-track{height:6px;border-radius:999px;background:#e9e5e1;overflow:hidden}
.fs-milestone-track>span{display:block;height:100%;border-radius:inherit;background:#2f8650;transition:width .35s ease}
.fs-milestone-points{position:absolute;inset:0 0 auto;height:100%}
.fs-milestone-point{position:absolute;top:-3px;transform:translateX(-50%);width:12px;height:12px}
.fs-milestone-point:last-child{transform:translateX(-100%)}
.fs-milestone-point i{display:block;width:12px;height:12px;border:2px solid #d59a8d;border-radius:50%;background:#fff}
.fs-milestone-point.reached i{border-color:#2f8650;background:#2f8650}
.fs-milestone-legend{display:grid;gap:.22rem;margin-top:.7rem}
.fs-milestone-legend>span{min-width:0;display:grid;grid-template-columns:68px minmax(0,1fr);gap:.4rem;align-items:center;border-left:2px solid #d59a8d;padding:.12rem 0 .12rem .45rem;color:#6a625d}
.fs-milestone-legend>span.reached{border-left-color:#2f8650;color:#245f3a}
.fs-milestone-legend b,.fs-milestone-legend small{display:block;min-width:0}
.fs-milestone-legend b{font-size:.68rem;white-space:nowrap}
.fs-milestone-legend small{font-size:.65rem;font-weight:600;line-height:1.2;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.fs-toast.show {
  opacity: 1;
  transform: translateY(0);
}

.fs-toast .fs-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  background: #d59a8d;
  /* info par défaut */
  flex: 0 0 22px;
}

.fs-toast.success {
  border-color: #2f8650;
}

.fs-toast.success .fs-icon {
  background: #2f8650;
}

.fs-toast .fs-close {
  margin-left: auto;
  cursor: pointer;
  border: none;
  background: transparent;
  font-size: 18px;
  line-height: 1;
  color: #777;
}

@media (max-width: 600px) {
  .fs-toast {
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    max-width: none;
  }
  .fs-milestone-legend>span{grid-template-columns:62px minmax(0,1fr);padding-left:.35rem}
  .fs-milestone-legend small{font-size:.58rem}
}
@media (max-width: 1320px) {

  .navbar-menu {
      gap: 1rem;
    }

  .pc  {
    display: none;
  }

  .mobile{
    display: block;
  }

  .navbar-logo span {
    font-size: 2rem;
  }
}

@media (max-width: 1200px) {

  .navbar {
      display: flex;
      justify-content: space-between;
    }

  .navbar-logo span {
      font-family: 'FenwayParkJF', sans-serif;
      font-size: 25px;
      color: white;
      font-weight: 0;
      letter-spacing: 1px;
      line-height: 1.1;
      height: auto;
    }

  .navbar-logo img {
      width: 60px;
      height: 60px;
      margin-right: 0.5rem;
    }

  .navbar-menu {
      display: none;
      position: absolute;
      top: 100%;
      left: 0;
        right: 0;
        width: auto;
        box-sizing: border-box;
      background-color: var(--primary-color);
      flex-direction: column;
      padding: 1rem;
      animation: slideDown 0.3s ease forwards;
    }
  
    .navbar-menu.active {
      display: flex;
    }
  
    .div-icons {
      display: flex;
      flex-direction: row-reverse;
      gap: 1rem;
      align-items: center;
    }
  
    .burger {
      display: flex;
    }
  
    .navbar {
      padding: 0.2rem 1rem 0.5rem;
  
      svg {
        width: 25px;
        height: 25px;
      }
  
  
    }
}


@media (max-width: 600px) {
  .mini-panier {
    right: 10px;
    left: 10px;
    width: auto;
  }
  .liste-articles { max-height: min(48vh, 360px); }
  .liste-articles li { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: .65rem; padding-right: 1.5rem; }
  .liste-articles img { width: 48px; height: 48px; }
  .supprimer-produit { top: .15rem; right: 0; }
  .mini-panier-bottom { align-items: center; }
}



@media (max-width: 768px) {
  
  .mobile{
    display: block;
  }

  .pc  {
    display: none;
  } 

  .navbar-logo img {
      width: 60px;
      height: 60px;
      margin-right: 0.5rem;
  
    }
  
    .navbar-logo span {
      font-family: 'FenwayParkJF', sans-serif;
      font-size: 25px;
      color: white;
      font-weight: 0;
      letter-spacing: 1px;
      line-height: 1.1;
      height: auto;
    }

  .navbar-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    left: 0;
      right: 0;
      width: auto;
      box-sizing: border-box;
    background-color: var(--primary-color);
    flex-direction: column;
    padding: 1rem;
    animation: slideDown 0.3s ease forwards;
  }

  .navbar-menu.active {
    display: flex;
  }

  .div-icons {
    display: flex;
    flex-direction: row-reverse;
    gap: 1rem;
    align-items: center;
  }

  .burger {
    display: flex;
  }

  .navbar {
    padding: 0.2rem 1rem 0.5rem;

    svg {
      width: 25px;
      height: 25px;
    }


  }


}
.qty button:disabled,
.quantity-control button:disabled {
  opacity: .38;
  cursor: not-allowed;
  pointer-events: none;
}
.sdl-checkout-transition{position:fixed;inset:0;z-index:10000;display:flex;align-items:center;justify-content:center;gap:.85rem;background:rgba(255,255,255,.94);color:#2f2a27;opacity:0;pointer-events:none;transition:opacity .16s ease;font-family:Raleway,sans-serif}
.sdl-checkout-transition.is-visible{opacity:1;pointer-events:auto}
.sdl-checkout-spinner{width:28px;height:28px;border:3px solid #eadbd3;border-top-color:#c08877;border-radius:50%;animation:sdlCheckoutSpin .7s linear infinite}
@keyframes sdlCheckoutSpin{to{transform:rotate(360deg)}}
.sdl-navigation-progress{position:fixed;z-index:10001;left:0;top:0;width:0;height:3px;background:#c08877;box-shadow:0 0 8px rgba(192,136,119,.45);transition:width 1.8s cubic-bezier(.1,.7,.2,1)}
.sdl-navigation-progress.is-running{width:86%}
