/* ============================================================
   header-footer.css
   ============================================================ */

/* ---------- HEADER ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-header);
  background: var(--color-navy-950);
  box-shadow: var(--shadow-sm);
}

.site-header__topbar {
  height: 64px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.site-header__burger {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 40px; height: 40px;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
}

.site-header__burger span {
  width: 20px; height: 2px;
  background: var(--color-white);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.site-header__logo {
  min-width: 0;
  flex: 1;
  display: flex;
}

.site-header__logo img { display: block; max-width: 140px; height: auto; }

.site-header__topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.site-header__circle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1.5px solid rgba(255,255,255,0.5);
  color: var(--color-white);
  background: transparent;
  cursor: pointer;
  position: relative;
  transition: border-color 0.15s ease;
}

.site-header__circle-btn:hover { border-color: var(--color-white); }

.site-header__circle-btn--filled {
  background: var(--color-white);
  color: var(--color-navy-950);
  border-color: var(--color-white);
}

.site-header__cart-count {
  position: absolute;
  top: -4px; right: -4px;
  background: var(--color-accent-500);
  color: var(--color-white);
  font-size: 11px;
  font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px;
  border: 2px solid var(--color-navy-950);
}

/* Petit "rebond" joué sur l'icône panier quand un produit vient d'y arriver
   (voir src/lib/fly-to-cart.js) */
@keyframes cart-icon-bump {
  0% { transform: scale(1); }
  35% { transform: scale(1.3); }
  65% { transform: scale(0.92); }
  100% { transform: scale(1); }
}
.site-header__cart--bump { animation: cart-icon-bump 0.4s ease; }

.site-header__searchbar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 var(--space-4) var(--space-3);
}

.site-header__search-wrap {
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-steel-500);
}

.site-header__search-wrap svg {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  flex-shrink: 0;
  pointer-events: none;
}

.site-header__search-wrap input {
  width: 100%;
  padding: 11px 16px 11px 44px;
  border-radius: 999px;
  border: none;
  font-family: var(--font-body);
  font-size: 15px;
  background: var(--color-white);
  color: var(--color-navy-900);
}

.site-header__search-wrap input::placeholder { color: var(--color-steel-500); }

.search-suggestions {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  z-index: 50;
  max-height: 70vh;
  overflow-y: auto;
}

.search-suggestions__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  text-decoration: none;
  color: var(--color-navy-900);
}
.search-suggestions__item:hover,
.search-suggestions__item.is-active { background: var(--color-steel-100); }

.search-suggestions__thumb {
  width: 40px; height: 40px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--color-steel-100);
}

.search-suggestions__info { min-width: 0; flex: 1; }
.search-suggestions__name {
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-suggestions__price { font-size: 13px; font-weight: 700; color: var(--color-navy-950); }

.search-suggestions__viewall {
  display: block;
  text-align: center;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-accent-500);
  text-decoration: none;
  border-top: 1px solid var(--color-steel-100);
}
.search-suggestions__viewall:hover { background: var(--color-steel-100); }

.search-suggestions__empty,
.search-suggestions__loading {
  padding: 14px 12px;
  font-size: 14px;
  color: var(--color-steel-500);
  text-align: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-family: var(--font-body);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:disabled { opacity: 0.6; cursor: not-allowed; }

.btn--primary {
  background: var(--color-accent-500);
  color: var(--color-white);
}

.btn--primary:hover {
  background: var(--color-accent-600);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.site-header__account-menu { position: relative; }

.site-header__dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: var(--color-white);
  box-shadow: var(--shadow-lg);
  border-radius: var(--radius-md);
  min-width: 200px;
  padding: var(--space-2);
  display: flex;
  flex-direction: column;
}

.site-header__dropdown[hidden] { display: none; }

.site-header__dropdown-admin {
  color: var(--color-accent-600) !important;
  font-weight: 700;
  border-top: 1px solid var(--color-steel-100);
  margin-top: 4px;
  padding-top: 10px !important;
}

.site-header__dropdown a,
.site-header__dropdown button {
  padding: var(--space-2) var(--space-3);
  text-align: left;
  border-radius: var(--radius-sm);
  text-decoration: none;
  color: var(--color-navy-900);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}

.site-header__dropdown #logout-btn { color: var(--color-danger); font-weight: 600; }

.site-header__dropdown a:hover,
.site-header__dropdown button:hover { background: var(--color-steel-100); }

.site-header__dropdown #logout-btn:hover { background: #fdecea; }

.site-header__mobile-menu {
  background: var(--color-white);
  border-top: 1px solid var(--color-steel-100);
  padding: var(--space-3) var(--space-4);
  max-width: 1280px;
  margin: 0 auto;
}

.site-header__mobile-menu ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column;
}

.site-header__accordion { list-style: none; margin: 0; padding: 0; }

.site-header__accordion-flat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  text-decoration: none;
  color: var(--color-navy-900);
  font-weight: 500;
  border-bottom: 1px solid var(--color-steel-100);
}

.site-header__accordion-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-3) 0;
  background: none;
  border: none;
  border-bottom: 1px solid var(--color-steel-100);
  font: inherit;
  font-weight: 500;
  color: var(--color-navy-900);
  text-align: left;
  cursor: pointer;
}

.site-header__accordion-trigger .site-header__mobile-menu-chevron {
  transition: transform 0.15s ease;
}
.site-header__accordion-trigger.is-active .site-header__mobile-menu-chevron {
  transform: rotate(90deg);
}

.site-header__accordion-panel {
  list-style: none;
  margin: 0;
  padding: 4px 0 8px 12px;
  background: #fafafa;
}
.site-header__accordion-panel li a {
  display: block;
  padding: 8px 0;
  text-decoration: none;
  color: var(--color-steel-500);
  font-size: 14px;
  border-bottom: 1px solid var(--color-steel-100);
}
.site-header__subcat-row {
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-steel-100);
}
.site-header__subcat-row a { border-bottom: none !important; }
.site-header__subcat-row > a:first-child { flex: 1; }


.site-header__accordion-viewall {
  font-weight: 600 !important;
  color: var(--color-navy-900) !important;
}

.site-header__mobile-menu-title {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-steel-500);
}

.site-header__mobile-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  text-decoration: none;
  color: var(--color-navy-900);
  font-weight: 500;
  border-bottom: 1px solid var(--color-steel-100);
}

.site-header__mobile-menu-chevron {
  color: var(--color-steel-300);
  font-weight: 400;
}

.site-header__mobile-menu--secondary {
  margin-top: var(--space-3);
  padding-top: var(--space-2);
}

.site-header__mobile-menu--secondary a {
  font-weight: 400;
  color: var(--color-steel-500);
}

@media (max-width: 420px) {
  .site-header__topbar { gap: 8px; padding: 0 var(--space-3); }
  .site-header__logo img { max-width: 110px; }
  .site-header__circle-btn { width: 34px; height: 34px; }
}


/* ---------- TIROIR PANIER ---------- */
.cart-drawer-overlay {
  position: fixed;
  inset: 0;
  /* Pas de fond assombri et pas de blocage des clics : le reste de la page
     reste pleinement utilisable pendant que le panier est ouvert. */
  background: transparent;
  z-index: 300;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.cart-drawer-overlay.is-open { opacity: 1; }

.cart-drawer {
  width: 100%;
  max-width: 420px;
  height: 100%;
  background: var(--color-white);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.25s ease;
  box-shadow: -12px 0 32px rgba(10, 15, 26, 0.18);
  pointer-events: auto;
}

.cart-drawer-overlay.is-open .cart-drawer { transform: translateX(0); }

.cart-drawer__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-4);
  border-bottom: 1px solid var(--color-steel-100);
}

.cart-drawer__header h2 { margin: 0; font-size: 18px; }

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--color-steel-500);
}

.cart-drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-4);
}

.cart-drawer__loading { text-align: center; color: var(--color-steel-500); padding: var(--space-6) 0; }

.cart-drawer__empty { text-align: center; padding: var(--space-6) 0; display: flex; flex-direction: column; gap: var(--space-3); align-items: center; }

.cart-drawer__line {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-steel-100);
}

.cart-drawer__line-media { width: 72px; height: 56px; border-radius: var(--radius-sm); overflow: hidden; display: block; }
.cart-drawer__line-media img { width: 100%; height: 100%; object-fit: cover; }

.cart-drawer__line-name { font-size: 14px; font-weight: 600; color: var(--color-navy-950); text-decoration: none; display: block; margin-bottom: 2px; }
.cart-drawer__line-options { font-size: 12px; color: var(--color-steel-500); margin: 0 0 4px; }
.cart-drawer__line-price { font-size: 14px; font-weight: 700; margin: 0 0 6px; }

.cart-drawer__line-actions { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); }

.quantity-stepper--sm { transform: scale(0.9); transform-origin: left center; }

.cart-drawer__remove {
  background: none;
  border: none;
  color: var(--color-steel-500);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
}
.cart-drawer__remove:hover { color: var(--color-danger); }

.cart-drawer__footer {
  padding: var(--space-4);
  border-top: 1px solid var(--color-steel-100);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 4px;
}

.cart-drawer__note { font-size: 12px; color: var(--color-steel-500); margin-bottom: var(--space-3); }

.cart-drawer__view-cart, .cart-drawer__checkout { width: 100%; justify-content: center; margin-bottom: 8px; }

@media (max-width: 480px) { .cart-drawer { max-width: 88vw; } }


/* ---------- FOOTER ---------- */
.site-footer {
  background: var(--color-navy-950);
  color: var(--color-steel-300);
  margin-top: var(--space-8);
}

.site-footer__newsletter {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  border-bottom: 1px solid var(--color-steel-700, #333);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-5);
}
.site-footer__newsletter h4 { margin: 0 0 4px; }
.site-footer__newsletter p { margin: 0; font-size: 13px; opacity: 0.8; }
.site-footer__newsletter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 320px;
}
.site-footer__newsletter-form input {
  flex: 1 1 200px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-steel-300);
}
.site-footer__newsletter-message { width: 100%; font-size: 13px; margin: 0; padding: 0 var(--space-4) var(--space-2); }

.site-footer__reassurance {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-6) var(--space-4);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
  border-bottom: 1px solid var(--color-navy-700);
}

.reassurance-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-white);
  font-size: 14px;
  font-weight: 500;
}

.reassurance-item svg { color: var(--color-accent-500); flex-shrink: 0; }

.site-footer__main {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-4);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-5);
}

.site-footer__col h4 {
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 15px;
  margin-bottom: var(--space-3);
}

.site-footer__col ul {
  list-style: none;
  margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: var(--space-2);
}

.site-footer__col a {
  color: var(--color-steel-300);
  text-decoration: none;
  font-size: 14px;
}

.site-footer__col a:hover { color: var(--color-white); }

.site-footer__socials {
  display: flex; gap: var(--space-2);
  margin-top: var(--space-3);
}

.site-footer__socials a {
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--color-navy-700);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 700;
  color: var(--color-steel-300);
}

.site-footer__payments {
  max-width: 1280px;
  margin: 0 auto;
  padding: var(--space-4) var(--space-4) 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
}

.site-footer__payments-label {
  font-size: 13px;
  color: var(--color-steel-300);
  font-weight: 600;
}

.payment-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payment-badge {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.payment-badge--wide {
  line-height: normal;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 5px;
  background: var(--color-white);
  border: 1px solid var(--color-steel-300);
  color: var(--color-navy-900);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.site-footer__bottom {
  border-top: 1px solid var(--color-navy-700);
  padding: var(--space-3) var(--space-4);
  text-align: center;
  font-size: 13px;
}

@media (max-width: 900px) {
  .site-footer__reassurance,
  .site-footer__main { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
  .site-footer__reassurance,
  .site-footer__main { grid-template-columns: minmax(0, 1fr); }
}

/* ============================================================
   Comparateur — bouton « Comparar » + barre flottante
   ============================================================ */
.compare-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 6px 0;
  border: none;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #111;
  cursor: pointer;
  transition: color 0.15s ease;
}
.compare-toggle__icon { flex-shrink: 0; transition: transform 0.2s ease; }
.compare-toggle:hover { color: var(--color-accent-600); }
.compare-toggle:hover .compare-toggle__icon { transform: scale(1.1); }
.compare-toggle:focus-visible { outline: 2px solid var(--color-accent-500); outline-offset: 3px; border-radius: 6px; }
.compare-toggle.is-active { color: var(--color-accent-600); font-weight: 700; }
.compare-toggle.is-shaking { animation: compare-shake 0.4s ease; color: var(--color-danger); }
@keyframes compare-shake {
  20%, 60% { transform: translateX(-3px); }
  40%, 80% { transform: translateX(3px); }
}
.compare-toggle--page {
  padding: 8px 14px;
  border: 1px solid var(--color-steel-300);
  border-radius: 999px;
  color: var(--color-navy-900);
}
.compare-toggle--page.is-active { border-color: var(--color-navy-950); background: #f7f9fc; }

.compare-tray {
  position: fixed;
  left: 50%;
  bottom: 20px;
  z-index: 95;
  width: min(600px, calc(100% - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 12px;
  background: var(--color-navy-950);
  color: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 40px -12px rgba(10, 15, 26, 0.55);
  transform: translate(-50%, 140%);
  visibility: hidden;
  transition: transform 0.25s ease, visibility 0s linear 0.25s, bottom 0.25s ease;
}
.compare-tray.is-visible {
  transform: translate(-50%, 0);
  visibility: visible;
  transition: transform 0.25s ease, visibility 0s, bottom 0.25s ease;
}
.compare-tray__slots { display: flex; gap: 6px; flex-shrink: 0; }
.compare-tray__slot {
  position: relative;
  width: 44px; height: 44px;
  border-radius: 10px;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
}
.compare-tray__slot img { width: 100%; height: 100%; object-fit: contain; border-radius: 10px; }
.compare-tray__initial { color: var(--color-navy-950); font-weight: 800; }
.compare-tray__slot--empty {
  background: transparent;
  border: 1.5px dashed rgba(255, 255, 255, 0.3);
  color: rgba(255, 255, 255, 0.45);
  font-size: 18px;
}
.compare-tray__remove {
  position: absolute;
  top: -6px; right: -6px;
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 2px solid var(--color-navy-950);
  background: #fff;
  color: var(--color-navy-950);
  font-size: 9px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.compare-tray__actions {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.compare-tray__hint { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, 0.75); }
.compare-tray__hint.is-warning { color: #ffb37a; font-weight: 700; }
.compare-tray__buttons { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.compare-tray__clear {
  border: none;
  background: none;
  color: rgba(255, 255, 255, 0.7);
  font: inherit;
  font-size: 13px;
  text-decoration: underline;
  cursor: pointer;
}
.compare-tray__go {
  padding: 10px 16px;
  border-radius: 12px;
  background: var(--color-accent-500);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}
.compare-tray__go.is-disabled { opacity: 0.45; pointer-events: none; }

@media (max-width: 640px) {
  .compare-tray {
    bottom: 0;
    width: 100%;
    border-radius: 16px 16px 0 0;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .compare-tray__slots { justify-content: flex-start; }
  .compare-tray__slot { width: 40px; height: 40px; }
  .compare-tray__hint { font-size: 12px; }
  body.has-compare-tray { padding-bottom: 130px; }
}
@media (max-width: 900px) {
  /* Au-dessus de la barre d'achat collante de la fiche produit */
  body.has-sticky-buy .compare-tray { bottom: calc(68px + env(safe-area-inset-bottom, 0px)); border-radius: 16px 16px 0 0; }
  body.has-sticky-buy.has-compare-tray { padding-bottom: 200px; }
}

/* ============================================================
   Bouton WhatsApp flottant
   ============================================================ */
.whatsapp-fab {
  position: fixed;
  right: 18px;
  bottom: 20px;
  z-index: 96;
  display: flex;
  align-items: center;
  gap: 0;
  height: 56px;
  min-width: 56px;
  padding: 0 13px;
  border-radius: 999px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 10px 24px -8px rgba(37, 211, 102, 0.65), 0 2px 6px rgba(10, 15, 26, 0.15);
  transition: transform 0.2s ease, bottom 0.25s ease, gap 0.25s ease, padding 0.25s ease;
}
.whatsapp-fab:hover { transform: scale(1.05); }
.whatsapp-fab svg { flex-shrink: 0; }
.whatsapp-fab__label {
  max-width: 0;
  overflow: hidden;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 700;
  transition: max-width 0.3s ease;
}
.whatsapp-fab.is-expanded { gap: 8px; padding-right: 18px; }
.whatsapp-fab.is-expanded .whatsapp-fab__label { max-width: 140px; }
@media (hover: hover) {
  .whatsapp-fab:hover { gap: 8px; padding-right: 18px; transform: none; }
  .whatsapp-fab:hover .whatsapp-fab__label { max-width: 140px; }
}

/* Le bouton remonte au-dessus des barres fixées en bas */
body.has-compare-tray .whatsapp-fab { bottom: 96px; }
@media (max-width: 640px) {
  body.has-compare-tray .whatsapp-fab { bottom: 134px; }
}
@media (max-width: 900px) {
  .whatsapp-fab { right: 14px; bottom: 16px; height: 52px; min-width: 52px; padding: 0 11px; }
  body.has-sticky-buy .whatsapp-fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  body.has-sticky-buy.has-compare-tray .whatsapp-fab { bottom: calc(210px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .compare-tray, .whatsapp-fab, .whatsapp-fab__label { transition: none; }
}

/* Mise en évidence du bloc newsletter après « Suscríbete » */
.site-footer__newsletter { transition: box-shadow 0.3s ease; scroll-margin-top: calc(var(--header-offset) + 16px); }
.site-footer__newsletter.is-highlighted { box-shadow: 0 0 0 3px var(--color-accent-500); border-radius: var(--radius-md); }

/* ---------- Menu ☰ : sous-catégorie avec sous-sous-catégories ---------- */
.site-header__subgroup { padding: 6px 0 4px; }
.site-header__subgroup + .site-header__subgroup,
.site-header__subcat-row + .site-header__subgroup { border-top: 1px solid var(--color-steel-100); }
.site-header__accordion-panel .site-header__subgroup-title {
  padding: 8px 0 4px !important;
  border-bottom: none !important;
  font-size: 14.5px !important;
  font-weight: 700;
  color: var(--color-navy-950) !important;
}
.site-header__subgroup-list { list-style: none; margin: 0; padding: 0 0 0 2px; }
.site-header__accordion-panel .site-header__subgroup-list a {
  padding: 7px 0 !important;
  font-size: 13.5px;
  border-bottom: 1px solid var(--color-steel-100);
}
.site-header__accordion-panel .site-header__subgroup-more {
  border-bottom: none !important;
  font-weight: 600;
  color: var(--color-accent-600) !important;
}
.site-header__subgroup--solo { padding: 4px 0; }
.site-header__subgroup--solo .site-header__subgroup-title { padding: 10px 0 !important; }

/* ============================================================
   TIROIR PANIER — refonte
   ============================================================ */
.cart-drawer {
  max-width: 440px;
  background: #f7f9fc;
  border-radius: 22px 0 0 22px;
  box-shadow: -24px 0 60px -20px rgba(10, 15, 26, 0.35), -1px 0 0 rgba(10, 15, 26, 0.06);
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  overflow: hidden;
}

.cart-drawer__header {
  padding: 20px 20px 16px;
  background: #fff;
  border-bottom: 1px solid var(--color-steel-100);
}
.cart-drawer__title { display: flex; align-items: center; gap: 10px; }
.cart-drawer__header h2 { font-size: 20px; letter-spacing: 0.01em; }
.cart-drawer__count {
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--color-steel-100);
  color: var(--color-steel-500);
  font-size: 12px;
  font-weight: 700;
}
.cart-drawer__count[hidden] { display: none; }
.cart-drawer__close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--color-steel-100);
  color: var(--color-navy-950);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}
.cart-drawer__close:hover { background: #e3e8ef; transform: rotate(90deg); }

/* Bandeau « ajouté » */
.cart-drawer__added {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 16px 0;
  padding: 11px 14px;
  border-radius: 12px;
  background: #e8f8ee;
  color: #15803d;
  font-size: 14px;
  font-weight: 700;
  animation: drawer-added 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}
.cart-drawer__added[hidden] { display: none; }
.cart-drawer__added svg { flex-shrink: 0; padding: 3px; width: 22px; height: 22px; border-radius: 50%; background: #22c55e; color: #fff; }
@keyframes drawer-added { from { opacity: 0; transform: translateY(-6px) scale(0.98); } to { opacity: 1; transform: none; } }

/* Lignes */
.cart-drawer__body { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.cart-drawer__line {
  position: relative;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 40px 12px 12px;
  border: 1px solid var(--color-steel-100);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 6px 18px -14px rgba(15, 23, 42, 0.35);
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.cart-drawer__line.is-removing { opacity: 0.4; transform: translateX(12px); }
.cart-drawer__line-media {
  width: 76px; height: 76px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--color-steel-100);
}
.cart-drawer__line-media img { object-fit: contain; padding: 6px; }
.cart-drawer__line-name {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 4px;
  font-size: 13.5px;
  line-height: 1.35;
}
.cart-drawer__line-name:hover { color: var(--color-accent-600); }
.cart-drawer__line-options { list-style: none; margin: 0 0 4px; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.cart-drawer__line-options li { font-size: 11.5px; color: var(--color-steel-500); }
.cart-drawer__line-options li.is-protect { color: #1d4ed8; font-weight: 600; }
.cart-drawer__line-promo { margin: 0 0 4px; font-size: 11.5px; font-weight: 700; color: var(--color-accent-600); }

.cart-drawer__line-actions { margin-top: 6px; align-items: center; }
.cart-drawer__stepper {
  display: inline-flex;
  align-items: center;
  padding: 2px;
  border: 1px solid var(--color-steel-300);
  border-radius: 999px;
  background: #fff;
}
.cart-drawer__stepper button {
  width: 28px; height: 28px;
  border: none;
  border-radius: 50%;
  background: var(--color-steel-100);
  color: var(--color-navy-950);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.cart-drawer__stepper button:hover:not(:disabled) { background: var(--color-navy-950); color: #fff; }
.cart-drawer__stepper button:disabled { opacity: 0.4; cursor: not-allowed; }
.cart-drawer__stepper input {
  width: 30px;
  border: none;
  background: transparent;
  text-align: center;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  -moz-appearance: textfield;
}
.cart-drawer__stepper input::-webkit-outer-spin-button,
.cart-drawer__stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cart-drawer__line-price { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }
.cart-drawer__line-price strong { font-size: 15.5px; font-weight: 800; color: var(--color-navy-950); }
.cart-drawer__line-price s { font-size: 11.5px; color: var(--color-steel-500); }
.cart-drawer__line-price .is-quote { font-size: 13px; }

.cart-drawer__remove {
  position: absolute;
  top: 8px; right: 8px;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: var(--color-steel-500);
  cursor: pointer;
}
.cart-drawer__remove:hover { background: #fdecea; color: var(--color-danger); }

/* Chargement / vide */
.cart-drawer__skeleton {
  height: 102px;
  border-radius: 16px;
  background: linear-gradient(90deg, #eef1f6 25%, #f8fafc 50%, #eef1f6 75%);
  background-size: 200% 100%;
  animation: drawer-shimmer 1.2s ease-in-out infinite;
}
@keyframes drawer-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.cart-drawer__empty { gap: 6px; padding: 48px 12px; }
.cart-drawer__empty-icon {
  width: 76px; height: 76px;
  margin-bottom: 8px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #f5f3ff;
  color: var(--color-accent-500);
}
.cart-drawer__empty-title { margin: 0; font-size: 17px; font-weight: 800; color: var(--color-navy-950); }
.cart-drawer__empty-text { margin: 0 0 12px; font-size: 14px; color: var(--color-steel-500); }
.cart-drawer__empty .btn { min-height: 46px; padding: 0 22px; border-radius: 12px; }

/* Pied */
.cart-drawer__footer {
  padding: 14px 18px calc(16px + env(safe-area-inset-bottom, 0px));
  background: #fff;
  border-top: 1px solid var(--color-steel-100);
  box-shadow: 0 -12px 24px -20px rgba(15, 23, 42, 0.4);
}
.cart-drawer__perk {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border-radius: 12px;
  background: #ecfaf1;
  color: #15803d;
  font-size: 13px;
}
.cart-drawer__perk svg { flex-shrink: 0; }
.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 12px;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy-900);
}
.cart-drawer__total small { display: block; font-size: 11.5px; font-weight: 500; color: var(--color-steel-500); }
.cart-drawer__total strong { font-size: 24px; font-weight: 800; letter-spacing: -0.02em; color: var(--color-navy-950); }
.cart-drawer .cart-drawer__checkout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  margin: 0;
  border-radius: 14px;
  font-size: 15.5px;
  font-weight: 700;
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 55%, #5b21b6 100%);
  box-shadow: 0 12px 22px -12px rgba(255, 106, 0, 0.85);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.cart-drawer .cart-drawer__checkout:hover { transform: translateY(-1px); box-shadow: 0 16px 26px -12px rgba(255, 106, 0, 0.9); }
.cart-drawer .cart-drawer__view-cart {
  display: block;
  width: 100%;
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--color-navy-950);
  text-decoration: none;
}
.cart-drawer .cart-drawer__view-cart:hover { background: var(--color-steel-100); }
.cart-drawer__trust { margin: 6px 0 0; text-align: center; font-size: 12px; color: var(--color-steel-500); }

@media (max-width: 480px) {
  .cart-drawer { max-width: 92vw; border-radius: 18px 0 0 18px; }
  .cart-drawer__body { padding: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .cart-drawer, .cart-drawer__added, .cart-drawer__skeleton { transition: none; animation: none; }
}

/* ============================================================
   FOOTER — refonte
   ============================================================ */
.site-footer {
  position: relative;
  margin-top: 64px;
  padding: 0;
  background:
    radial-gradient(900px 400px at 100% 0%, rgba(255, 106, 0, 0.12), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(59, 130, 246, 0.08), transparent 60%),
    linear-gradient(180deg, #0b1120 0%, #070b16 100%);
  color: #a3b0c2;
}
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
}

/* ---------- Newsletter ---------- */
.site-footer__newsletter {
  position: relative;
  top: -40px;
  margin-bottom: -8px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  padding: 26px 28px;
  border-radius: 24px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(255, 255, 255, 0.18), transparent 70%),
    linear-gradient(120deg, #8b5cf6 0%, #7c3aed 45%, #4c1d95 100%);
  color: #fff;
  box-shadow: 0 24px 50px -24px rgba(255, 106, 0, 0.65);
}
.site-footer__newsletter-text { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; min-width: 0; }
.site-footer__newsletter-icon {
  width: 52px; height: 52px;
  flex-shrink: 0;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.site-footer__newsletter h4 { margin: 0 0 4px; font-size: 20px; letter-spacing: -0.01em; color: #fff; }
.site-footer__newsletter p { margin: 0; font-size: 14px; line-height: 1.45; opacity: 0.92; }
.site-footer__newsletter-form {
  display: flex;
  align-items: center;
  flex: 1 1 360px;
  max-width: 480px;
  padding: 5px;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.45);
}
.site-footer__newsletter-form input {
  flex: 1;
  min-width: 0;
  height: 46px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--color-navy-950);
  font: inherit;
  font-size: 15px;
}
.site-footer__newsletter-form input:focus { outline: none; }
.site-footer__newsletter-form:focus-within { box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.45), 0 10px 24px -14px rgba(0, 0, 0, 0.45); }
.site-footer__newsletter-form .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border: none;
  border-radius: 999px;
  background: var(--color-navy-950);
  color: #fff;
  font-weight: 700;
  white-space: nowrap;
  box-shadow: none;
}
.site-footer__newsletter-form .btn:hover { background: #1e293b; }
.site-footer__newsletter-message {
  flex-basis: 100%;
  margin: 0;
  padding: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}
.site-footer__newsletter.is-highlighted { box-shadow: 0 0 0 4px #fff, 0 24px 50px -24px rgba(255, 106, 0, 0.65); border-radius: 24px; }

/* ---------- Engagements ---------- */
.site-footer__reassurance {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 0 0 36px;
  border: none;
  background: none;
}
.site-footer .reassurance-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.site-footer .reassurance-item:hover { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.12); }
.site-footer .reassurance-item svg {
  flex-shrink: 0;
  width: 44px; height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.14);
  color: #a78bfa;
}
.site-footer .reassurance-item span { display: flex; flex-direction: column; font-size: 12.5px; line-height: 1.35; color: #94a3b8; }
.site-footer .reassurance-item strong { font-size: 14px; color: #fff; }

/* ---------- Colonnes ---------- */
.site-footer__main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1.3fr);
  gap: 32px;
  padding: 36px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.site-footer__brand p { margin: 16px 0 18px; max-width: 300px; font-size: 14px; line-height: 1.6; color: #94a3b8; }
.site-footer__logo img { display: block; max-width: 150px; height: auto; }

.site-footer__socials { display: flex; gap: 10px; margin: 0; }
.site-footer__socials a {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 0;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.site-footer__socials a:hover { background: var(--color-accent-500); border-color: var(--color-accent-500); color: #fff; transform: translateY(-2px); }

.site-footer__col summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
  cursor: default;
}
.site-footer__col summary::-webkit-details-marker { display: none; }
.site-footer__col summary svg { display: none; color: #64748b; transition: transform 0.2s ease; }
.site-footer__col h4 {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.site-footer__col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.site-footer__col a {
  position: relative;
  color: #a3b0c2;
  font-size: 14px;
  text-decoration: none;
  transition: color 0.15s ease, padding 0.2s ease;
}
.site-footer__col ul a:hover { color: #fff; padding-left: 6px; }
.site-footer__col ul a::before {
  content: '';
  position: absolute;
  left: -2px; top: 50%;
  width: 0; height: 2px;
  border-radius: 2px;
  background: var(--color-accent-500);
  transform: translateY(-50%);
  transition: width 0.2s ease;
}
.site-footer__col ul a:hover::before { width: 4px; }

.site-footer__contact li { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.site-footer__contact li[hidden] { display: none; }
.site-footer__contact svg { flex-shrink: 0; margin-top: 2px; color: #a78bfa; }
.site-footer__contact a::before { display: none; }
.site-footer__contact a:hover { padding-left: 0 !important; }

/* ---------- Paiements ---------- */
.site-footer__payments {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 22px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: none;
}
.site-footer__payments-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #64748b; }
.site-footer .payment-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.site-footer .payment-badge svg { display: block; border-radius: 6px; }
.site-footer .payment-badge--wide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 30px;
  padding: 0 10px;
  border-radius: 6px;
  background: #fff;
  color: #0f172a;
  font-size: 12px;
  font-weight: 700;
}

.carrier-badges-footer { display: flex; flex-wrap: wrap; gap: 8px; }
.carrier-badge { display: inline-flex; align-items: center; line-height: 0; }
.carrier-badge svg { display: block; border-radius: 4px; }

/* ---------- Barre du bas ---------- */
.site-footer__bottom { padding: 0; border-top: 1px solid rgba(255, 255, 255, 0.07); background: rgba(0, 0, 0, 0.25); }
.site-footer__bottom-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 18px clamp(16px, 4vw, 32px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
}
.site-footer__bottom p { margin: 0; font-size: 13px; color: #64748b; }
.site-footer__legal { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.site-footer__legal a { font-size: 13px; color: #94a3b8; text-decoration: none; }
.site-footer__legal a:hover { color: #fff; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .site-footer__reassurance { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .site-footer { margin-top: 72px; }
  .site-footer__newsletter { padding: 22px 18px; border-radius: 20px; }
  .site-footer__newsletter h4 { font-size: 18px; }
  .site-footer__newsletter-form { flex-basis: 100%; max-width: none; }
  .site-footer__newsletter-form .btn { padding: 0 16px; }
  .site-footer__reassurance { gap: 8px; padding-bottom: 28px; }
  .site-footer .reassurance-item { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }

  .site-footer__main { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 28px 0 8px; }
  .site-footer__brand { padding-bottom: 20px; }
  .site-footer__col { border-top: 1px solid rgba(255, 255, 255, 0.07); }
  .site-footer__col summary { padding: 16px 0; cursor: pointer; }
  .site-footer__col summary svg { display: block; }
  .site-footer__col[open] summary svg { transform: rotate(180deg); }
  .site-footer__col h4 { margin: 0; }
  .site-footer__col ul { padding-bottom: 18px; }

  .site-footer__payments { justify-content: flex-start; }
  .site-footer__bottom-inner { flex-direction: column-reverse; align-items: flex-start; }
}
@media (max-width: 380px) {
  .site-footer__newsletter-form .btn svg { display: none; }
}
.site-footer .site-footer__newsletter p { color: #fff; opacity: 0.95; }

/* ============================================================
   HEADER — refonte
   (pas de transform/backdrop-filter sur .site-header : le tiroir
   du menu, en position fixe, est à l'intérieur)
   ============================================================ */
.site-header {
  background:
    radial-gradient(600px 120px at 85% -40%, rgba(255, 106, 0, 0.22), transparent 70%),
    linear-gradient(180deg, #0d1426 0%, #0a0f1e 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.06), 0 10px 30px -18px rgba(0, 0, 0, 0.6);
}
.site-header__topbar { height: 64px; gap: 12px; }

/* Burger animé en croix */
.site-header__burger {
  width: 44px; height: 44px;
  gap: 5px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease;
}
.site-header__burger:hover { background: rgba(255, 255, 255, 0.12); }
.site-header__burger span {
  width: 20px; height: 2px;
  border-radius: 2px;
  background: #fff;
  transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.2s ease, width 0.2s ease;
}
.site-header__burger span:nth-child(2) { width: 14px; align-self: center; transform: translateX(-3px); }
.site-header__burger:hover span:nth-child(2) { width: 20px; transform: none; }
.site-header__burger.is-active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-header__burger.is-active span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.site-header__burger.is-active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.site-header__logo img { max-width: 150px; transition: opacity 0.2s ease; }
.site-header__logo:hover img { opacity: 0.85; }

/* Boutons compte / panier */
.site-header__circle-btn {
  width: 44px; height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}
.site-header__circle-btn:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.3); }
.site-header__circle-btn--filled {
  background: linear-gradient(135deg, #8b5cf6, #5b21b6);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 8px 18px -8px rgba(255, 106, 0, 0.8);
}
.site-header__circle-btn--filled:hover { background: linear-gradient(135deg, #a78bfa, #6d28d9); border-color: transparent; }
.site-header__cart-count {
  top: -6px; right: -6px;
  min-width: 20px; height: 20px;
  background: #fff;
  color: var(--color-navy-950);
  font-weight: 800;
  border: 2px solid #0a0f1e;
}

/* Recherche */
.site-header__searchbar { padding-bottom: 12px; }
.site-header__search-wrap input {
  height: 46px;
  padding: 0 18px 0 46px;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #fff;
  font-size: 15px;
  box-shadow: 0 6px 16px -10px rgba(0, 0, 0, 0.5);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.site-header__search-wrap input:focus {
  outline: none;
  border-color: var(--color-accent-500);
  box-shadow: 0 0 0 4px rgba(255, 106, 0, 0.25);
}
.site-header__search-wrap svg { left: 16px; color: #64748b; }
.search-suggestions {
  top: calc(100% + 10px);
  border-radius: 16px;
  border: 1px solid var(--color-steel-100);
  box-shadow: 0 24px 48px -20px rgba(10, 15, 26, 0.45);
  padding: 6px;
}
.search-suggestions__item { border-radius: 10px; padding: 8px 10px; }
.search-suggestions__thumb { object-fit: contain; background: #fff; border: 1px solid var(--color-steel-100); border-radius: 10px; }
.search-suggestions__viewall { border-radius: 10px; margin-top: 4px; }

/* Menu compte */
.site-header__dropdown {
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 6px;
  border: 1px solid var(--color-steel-100);
  border-radius: 16px;
  box-shadow: 0 24px 48px -20px rgba(10, 15, 26, 0.45);
}
.site-header__dropdown a, .site-header__dropdown button { border-radius: 10px; font-size: 14px; }

/* ============================================================
   MENU ☰ — tiroir latéral
   ============================================================ */
html.menu-open { overflow: hidden; }

.site-header__menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1;
  background: rgba(8, 12, 22, 0.55);
  opacity: 0;
  transition: opacity 0.28s ease;
}
.site-header__menu-backdrop.is-open { opacity: 1; }
.site-header__menu-backdrop[hidden] { display: none; }

.site-header__mobile-menu {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  z-index: 2;
  width: min(380px, 88vw);
  max-width: none;
  margin: 0;
  padding: 0 16px calc(24px + env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  overscroll-behavior: contain;
  background: #f7f9fc;
  border-top: none;
  border-radius: 0 22px 22px 0;
  box-shadow: 24px 0 60px -20px rgba(0, 0, 0, 0.45);
  transform: translateX(-102%);
  transition: transform 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.site-header__mobile-menu.is-open { transform: none; }
.site-header__mobile-menu[hidden] { display: none; }

.menu-drawer__head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 -16px 14px;
  padding: 16px 16px 14px;
  background: #fff;
  border-bottom: 1px solid var(--color-steel-100);
}
.site-header__mobile-menu .menu-drawer__logo { padding: 0; border: none; }
.menu-drawer__logo img { display: block; max-width: 130px; height: auto; }
.menu-drawer__close {
  width: 40px; height: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 12px;
  background: var(--color-steel-100);
  color: var(--color-navy-950);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.menu-drawer__close:hover { background: #e3e8ef; transform: rotate(90deg); }

/* Raccourcis */
.menu-drawer__quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; margin-bottom: 18px; }
.site-header__mobile-menu .menu-drawer__quick-link {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--color-steel-100);
  border-radius: 16px;
  background: #fff;
  color: var(--color-navy-950);
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 6px 16px -12px rgba(15, 23, 42, 0.3);
}
.menu-drawer__quick-link svg { padding: 7px; width: 34px; height: 34px; border-radius: 10px; background: var(--color-steel-100); color: var(--color-navy-900); }
.site-header__mobile-menu .menu-drawer__quick-link--hot { background: linear-gradient(135deg, #8b5cf6, #4c1d95); border-color: transparent; color: #fff; }
.menu-drawer__quick-link--hot svg { background: rgba(255, 255, 255, 0.2); color: #fff; }

/* Titres de section */
.site-header__mobile-menu-title {
  margin: 0 4px 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.09em;
  color: #94a3b8;
}

/* Catégories */
.site-header__accordion {
  padding: 4px;
  border: 1px solid var(--color-steel-100);
  border-radius: 18px;
  background: #fff;
}
.site-header__accordion-trigger,
.site-header__mobile-menu .site-header__accordion-flat {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px;
  border: none;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--color-navy-950);
  transition: background 0.15s ease;
}
.site-header__accordion-trigger:hover,
.site-header__mobile-menu .site-header__accordion-flat:hover { background: #f4f6fa; }
.site-header__accordion-trigger.is-active { background: #f5f3ff; color: var(--color-accent-600); }
.menu-drawer__cat-icon {
  width: 36px; height: 36px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: #f1f4f9;
  color: var(--color-navy-900);
  transition: background 0.15s ease, color 0.15s ease;
}
.site-header__accordion-trigger.is-active .menu-drawer__cat-icon { background: var(--color-accent-500); color: #fff; }
.site-header__accordion-flat[href*="campanas-y-ofertas"] .menu-drawer__cat-icon { background: #fdecea; color: var(--color-danger); }
.menu-drawer__cat-label { flex: 1; text-align: left; }
.site-header__mobile-menu-chevron { display: flex; color: #94a3b8; transition: transform 0.25s ease; }
.site-header__accordion-trigger.is-active .site-header__mobile-menu-chevron { transform: rotate(90deg); color: var(--color-accent-600); }

.site-header__accordion-panel {
  margin: 2px 0 8px;
  padding: 6px 12px 8px 58px;
  background: transparent;
  animation: menu-panel-in 0.25s ease;
}
@keyframes menu-panel-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.site-header__accordion-panel li a {
  padding: 8px 0;
  border-bottom: none;
  color: #475569;
  font-size: 13.5px;
  font-weight: 500;
}
.site-header__accordion-panel li a:hover { color: var(--color-accent-600); }
.site-header__mobile-menu .site-header__accordion-viewall {
  display: inline-flex;
  margin: 2px 0 6px;
  padding: 7px 12px !important;
  border-radius: 999px;
  background: var(--color-navy-950);
  color: #fff !important;
  font-size: 12.5px;
}
.site-header__accordion-panel .site-header__subgroup { border-top: none !important; padding: 4px 0; }
.site-header__accordion-panel .site-header__subgroup-title { font-size: 13.5px !important; color: var(--color-navy-950) !important; }
.site-header__accordion-panel .site-header__subgroup-list { padding-left: 10px; border-left: 2px solid #eef1f6; }
.site-header__accordion-panel .site-header__subgroup-list a { padding: 6px 0 !important; border-bottom: none !important; }
.site-header__subcat-row { border-bottom: none; }

/* Liens secondaires */
.site-header__mobile-menu--secondary {
  margin: 0 0 16px !important;
  padding: 4px !important;
  border: 1px solid var(--color-steel-100);
  border-radius: 18px;
  background: #fff;
}
.site-header__mobile-menu--secondary a,
.site-header__mobile-menu .site-header__mobile-menu--secondary a {
  justify-content: flex-start;
  gap: 12px;
  padding: 11px 10px;
  border-bottom: none;
  border-radius: 12px;
  color: var(--color-navy-900);
  font-size: 14px;
  font-weight: 500;
}
.site-header__mobile-menu--secondary a:hover { background: #f4f6fa; }
.site-header__mobile-menu--secondary svg { color: #64748b; flex-shrink: 0; }
.site-header__accordion + .site-header__mobile-menu-title { margin-top: 18px; }

/* Aide */
.site-header__mobile-menu .menu-drawer__help {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  padding: 14px;
  border: none;
  border-radius: 16px;
  background: linear-gradient(135deg, #0d1426, #1e293b);
  color: #cbd5e1;
  font-size: 12.5px;
  line-height: 1.4;
}
.menu-drawer__help strong { display: block; font-size: 14px; color: #fff; }
.menu-drawer__help-icon {
  width: 40px; height: 40px;
  flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 12px;
  background: rgba(255, 106, 0, 0.2);
  color: #a78bfa;
}

@media (max-width: 420px) {
  .site-header__topbar { gap: 8px; }
  .site-header__burger, .site-header__circle-btn { width: 40px; height: 40px; border-radius: 12px; }
  .site-header__logo img { max-width: 118px; }
}
@media (prefers-reduced-motion: reduce) {
  .site-header__mobile-menu, .site-header__menu-backdrop, .site-header__burger span { transition: none; }
}
.site-header__mobile-menu .site-header__accordion-panel { margin: 2px 0 8px; padding: 6px 12px 10px 58px; }
.site-header__mobile-menu .site-header__subgroup-list { padding-left: 12px; border-left: 2px solid #eef1f6; }

/* ---------- Logos horizontaux ---------- */
.site-header__logo picture, .menu-drawer__logo picture, .site-footer__logo picture { display: block; line-height: 0; }
.site-header__logo img { height: 34px; width: auto; max-width: none; }
.menu-drawer__logo img { height: 30px; width: auto; max-width: none; }
.site-footer__logo img { height: 40px; width: auto; max-width: none; }
@media (max-width: 420px) {
  .site-header__logo img { height: 28px; }
}
@media (max-width: 350px) {
  .site-header__logo img { height: 24px; }
}
@media (max-width: 420px) and (min-width: 351px) {
  .site-header__logo img { height: 32px; }
}

/* ---------- Ordre de superposition dans le header ----------
   tiroir ☰ (11) > fond sombre (10) > ligne du haut + menu compte (5)
   > barre de recherche et ses suggestions (4) */
.site-header__topbar { position: relative; z-index: 5; }
.site-header__dropdown { z-index: 6; }
.site-header__searchbar { position: relative; z-index: 4; }
.site-header__menu-backdrop { z-index: 10; }
.site-header__mobile-menu { z-index: 11; }

/* ============================================================
   Bannière de consentement cookies
   ============================================================ */
.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 800;
  display: flex;
  justify-content: center;
  pointer-events: none;
  transform: translateY(30px);
  opacity: 0;
  transition: transform .3s cubic-bezier(.22,1,.36,1), opacity .3s ease;
}
.consent-banner.is-visible { transform: none; opacity: 1; }
.consent-banner__inner {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 18px 24px;
  width: 100%;
  max-width: 920px;
  padding: 18px 20px;
  border: 1px solid var(--color-steel-100);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px -20px rgba(10, 15, 26, 0.45);
}
.consent-banner__text { flex: 1; min-width: 0; font-size: 13.5px; line-height: 1.5; color: var(--color-steel-500); }
.consent-banner__text p { margin: 0; }
.consent-banner__title { margin: 0 0 4px !important; font-size: 15px; font-weight: 800; color: var(--color-navy-950); }
.consent-banner__text a { color: var(--color-accent-600); font-weight: 700; }
.consent-banner__actions { display: flex; gap: 10px; flex-shrink: 0; }
/* Les deux choix ont exactement la même présentation (exigence AEPD) */
.consent-btn {
  min-width: 170px;
  height: 46px;
  padding: 0 18px;
  border: 2px solid var(--color-navy-950);
  border-radius: 12px;
  background: var(--color-navy-950);
  color: #fff;
  font: inherit;
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.consent-btn:hover { background: #1e293b; }
.consent-btn:active { transform: translateY(1px); }
@media (max-width: 720px) {
  .consent-banner { left: 10px; right: 10px; bottom: 10px; }
  .consent-banner__inner { flex-direction: column; align-items: stretch; padding: 16px; }
  .consent-banner__actions { flex-direction: column; }
  .consent-btn { width: 100%; min-width: 0; }
}

.site-footer__cookie-btn { padding: 0; border: none; background: none; font: inherit; font-size: 13px; color: #94a3b8; cursor: pointer; }
.site-footer__cookie-btn:hover { color: #fff; }

/* ============================================================
   Barre de recherche : pastille + bouton noir rond avec loupe
   ============================================================ */
.site-header__search-wrap { position: relative; display: flex; align-items: center; }
.site-header__search-wrap input {
  flex: 1;
  height: 52px;
  padding: 0 64px 0 22px;              /* place pour le bouton à droite */
  border: 1.5px solid #cbd2dd;
  border-radius: 999px;
  background: #fff;
  font-size: 16px;                     /* 16 px : pas de zoom automatique sur iPhone */
  box-shadow: none;
}
.site-header__search-wrap input:focus {
  border-color: var(--color-navy-950);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35);
}
.site-header__search-wrap input::placeholder { color: #64748b; }
.site-header__search-wrap input::-webkit-search-cancel-button { display: none; }
.site-header__search-btn {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 66px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  border-radius: 999px;
  background: #000;
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .1s ease;
}
.site-header__search-btn:hover { background: #1e293b; }
.site-header__search-btn:active { transform: scale(.97); }
.site-header__search-btn:focus-visible { outline: 3px solid var(--color-accent-500); outline-offset: 2px; }
@media (max-width: 420px) {
  .site-header__search-wrap input { height: 48px; padding-left: 18px; }
  .site-header__search-btn { width: 58px; }
}
.site-header__search-wrap .site-header__search-btn svg { position: static; left: auto; color: #fff; stroke: #fff; width: 22px; height: 22px; }
.site-header__search-wrap .site-header__search-btn svg { top: auto; bottom: auto; transform: none; margin: 0; }

/* ============================================================
   Bande d'annonce (au-dessus du header)
   ============================================================ */
.announce-bar {
  position: relative;
  height: 38px;
  overflow: hidden;
  background: linear-gradient(90deg, #8b5cf6 0%, #7c3aed 50%, #5b21b6 100%);
  color: #fff;
  transition: height .25s ease;
}
.site-header.is-scrolled .announce-bar { height: 0; }

.announce-bar__track { position: relative; height: 38px; margin: 0; padding: 0; list-style: none; }
.announce-bar__item {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.announce-bar__item.is-active {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: opacity .35s ease, transform .35s ease, visibility 0s;
}
.announce-bar__item a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 44px;                 /* dégage les flèches */
  max-width: 100%;
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: -.005em;
  text-decoration: none;
  white-space: nowrap;
}
.announce-bar__item a span { overflow: hidden; text-overflow: ellipsis; }
.announce-bar__item a svg { flex-shrink: 0; }
.announce-bar__item a strong { font-weight: 800; }
.announce-bar__item a:hover span { text-decoration: underline; text-underline-offset: 3px; }

.announce-bar__nav {
  position: absolute;
  top: 0; bottom: 0;
  z-index: 2;
  width: 40px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  background: transparent;
  color: rgba(255, 255, 255, .85);
  cursor: pointer;
  transition: color .15s ease, background .15s ease;
}
.announce-bar__nav:hover { color: #fff; background: rgba(0, 0, 0, .12); }
.announce-bar__nav:focus-visible, .announce-bar__item a:focus-visible { outline: 2px solid #fff; outline-offset: -3px; }
.announce-bar__nav--prev { left: 0; }
.announce-bar__nav--next { right: 0; }

/* Grands écrans : flèches un peu plus écartées du texte centré */
@media (min-width: 900px) {
  .announce-bar__nav { width: 48px; }
  .announce-bar__item a { font-size: 14px; }
}
@media (max-width: 380px) {
  .announce-bar__item a { font-size: 12.5px; padding: 0 38px; gap: 6px; }
  .announce-bar__nav { width: 34px; }
}
@media (prefers-reduced-motion: reduce) {
  .announce-bar, .announce-bar__item, .announce-bar__item.is-active { transition: none; }
  .announce-bar__item { transform: none; }
}

/* ---------- Newsletter : offre, mentions légales, champ piège ---------- */
.site-footer .site-footer__newsletter-offer { margin: 8px 0 0; font-weight: 700; }
.site-footer__newsletter-offer[hidden] { display: none; }
.site-footer__newsletter-legal { flex-basis: 100%; margin: 0 !important; font-size: 11.5px !important; opacity: .85; }
.site-footer__newsletter-legal a { color: #fff; text-decoration: underline; }
.nl-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; pointer-events: none !important; }

.cart-drawer__line-options li.is-service { color: #c2410c; font-weight: 600; }
