/* ==========================================================================
   SPINCORP — habillage de la boutique Tebex (v2)
   Chargé après shared.css (base Tebex : panier, fenêtres, quantités).
   Sobre et commerçant : en-tête avec panier toujours visible, barre de
   catégories, cartes produit nettes. Couleurs et polices de spincorp.fr.
   ========================================================================== */

:root {
  --sc-bg: #09090c;
  --sc-surface: #101013;
  --sc-raised: #17171b;
  --sc-sunken: #060608;
  --sc-accent: #202024;
  --sc-border: #222227;
  --sc-border-strong: #34343b;
  --sc-fg: #f2f2f3;
  --sc-fg-2: #d6d6da;
  --sc-muted: #8e8e96;
  --sc-red: #e5231f;
  --sc-red-hover: #f03a33;
  --sc-red-press: #c81d1a;
  --sc-radius: 12px;
  --sc-radius-sm: 8px;
  --sc-wrap: 1240px;
  --sc-display: "Archivo", "Geist", system-ui, sans-serif;
  --sc-sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Variables de la base Tebex alignées sur la DA */
  --color-text: var(--sc-fg);
  --color-text-darker: var(--sc-fg-2);
  --color-text-secondary: var(--sc-muted);
  --color-text-dark: #0b0b0d;
  --color-bg: var(--sc-bg);
  --color-brighter-bg: var(--sc-surface);
  --color-primary: var(--sc-red);
  --color-primary-hover: var(--sc-red-hover);
  --color-primary-text: #fff;
  --color-primary-text-hover: #fff;
  --color-secondary: var(--sc-raised);
  --color-secondary-hover: var(--sc-accent);
  --color-secondary-text: var(--sc-fg);
  --color-secondary-text-hover: var(--sc-fg);
  --color-tertiary-hover: rgb(255 255 255 / 6%);
  --color-removed: var(--sc-red);
  --widget-padding: 24px;
  --content-inner-width: var(--sc-wrap);
  --tebex-legal-footer-background-color: var(--sc-sunken);
  --tebex-legal-footer-border-color: var(--sc-border);
  --tebex-legal-footer-text-color: var(--sc-muted);
}

/* --- Base ------------------------------------------------------------------ */
html { background: var(--sc-bg); scroll-behavior: smooth; scroll-padding-top: 140px; }
body.sc {
  background: var(--sc-bg) !important;
  color: var(--sc-fg);
  font-family: var(--sc-sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.sc::before { content: none !important; }
body.sc #particles-js { display: none !important; }
.sc ::selection { background: rgb(229 35 31 / 45%); color: #fff; }
.sc a { color: inherit; text-decoration: none; }
.sc h1, .sc h2, .sc h3, .sc h4 { color: var(--sc-fg); }
.sc img { max-width: 100%; }
body.sc [hidden] { display: none !important; }
.sc-muted { color: var(--sc-muted); }

body.sc .site {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  min-height: calc(100vh - var(--tebex-footer-height));
  font-size: 15px;
}
/* La base Tebex bride les largeurs et place des boutons en absolu : on reprend la main. */
body.sc .site-header.sc-header { max-width: none; width: 100%; margin: 0; padding: 0; }
body.sc .site-content.sc-wrap { max-width: calc(var(--sc-wrap) + 48px); margin: 0 auto; padding-left: 24px; padding-right: 24px; }

.sc-wrap { width: 100%; max-width: calc(var(--sc-wrap) + 48px); margin: 0 auto; padding: 0 24px; }

/* --- Boutons ---------------------------------------------------------------- */
.sc-btn,
body.sc .btn-primary,
body.sc .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  line-height: 1;
  border: 1px solid transparent;
  border-radius: var(--sc-radius-sm);
  font-family: var(--sc-sans);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s;
}
.sc-btn-primary,
body.sc .btn-primary { color: #fff; background: var(--sc-red); box-shadow: none; }
.sc-btn-primary:hover, body.sc .btn-primary:hover, body.sc .btn-primary:focus { color: #fff; background: var(--sc-red-hover); }
.sc-btn-primary:active, body.sc .btn-primary:active { background: var(--sc-red-press); }
body.sc .btn-secondary { color: var(--sc-fg); background: var(--sc-raised); border-color: var(--sc-border); }
body.sc .btn-secondary:hover, body.sc .btn-secondary:focus { background: var(--sc-accent); border-color: var(--sc-border-strong); }
body.sc .btn-tertiary { border-radius: var(--sc-radius-sm); }
body.sc .btn-primary.wide, body.sc .btn-secondary.wide { width: 100%; }
/* Chez Tebex, un lien « disabled » (visiteur non connecté) reste cliquable : seul un vrai bouton s'efface. */
body.sc button.btn-primary:disabled, body.sc button.btn-secondary:disabled { opacity: .45; cursor: not-allowed; }
.sc-link { color: var(--sc-muted); font-size: 14px; font-weight: 500; }
.sc-link:hover { color: var(--sc-fg); }

/* --- Bandeau d'annonce ------------------------------------------------------ */
.sc-announce { background: var(--sc-sunken); border-bottom: 1px solid var(--sc-border); }
.sc-announce-inner { display: flex; align-items: center; justify-content: center; gap: 12px; height: 38px; }
.sc-announce-list { position: relative; flex: 0 1 640px; height: 38px; margin: 0; padding: 0; list-style: none; }
.sc-announce-list li {
  position: absolute;
  inset: 0;
  display: block;
  line-height: 38px;
  text-align: center;
  color: var(--sc-fg-2);
  font-size: 13px;
  font-weight: 450;
  letter-spacing: .005em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .35s ease, transform .35s ease;
  pointer-events: none;
}
.sc-announce-list li.is-active { opacity: 1; transform: none; pointer-events: auto; }
.sc-announce-list strong { color: #fff; font-weight: 600; }
.sc-announce-list a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgb(255 255 255 / 35%); }
.sc-announce-list a:hover { text-decoration-color: #fff; }
.sc-announce-nav {
  display: grid;
  place-items: center;
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--sc-muted);
  cursor: pointer;
}
.sc-announce-nav:hover { color: #fff; background: var(--sc-raised); }
.sc-announce-nav svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* --- En-tête ---------------------------------------------------------------- */
body.sc .sc-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--sc-bg);
  border-bottom: 1px solid var(--sc-border);
}
body.sc .sc-header .site-header-inner {
  display: flex !important;
  align-items: center;
  gap: 20px;
  height: 68px;
  padding-top: 0;
  padding-bottom: 0;
  background: none;
  flex-wrap: nowrap;
}
body.sc .sc-header .site-header-inner > .actions { display: none !important; }
.sc-logo { display: inline-flex; align-items: center; flex: none; }
.sc-logo img { display: block; height: 38px; width: auto; }

.sc-header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.sc-header svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sc-header svg.sc-fill { fill: currentColor; stroke: none; }

.sc-icon-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  color: var(--sc-fg-2);
  transition: border-color .15s, color .15s, background-color .15s;
}
.sc-icon-btn:hover { color: #fff; border-color: var(--sc-border-strong); background: var(--sc-raised); }

body.sc .sc-account-btn,
body.sc .sc-header .log-in {
  position: relative;
  top: auto;
  right: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  max-width: 200px;
  padding: 0 14px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius-sm);
  background: transparent;
  color: var(--sc-fg-2);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  transition: border-color .15s, color .15s, background-color .15s;
}
body.sc .sc-account-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sc .sc-account-btn:hover, body.sc .sc-header .log-in:hover { color: #fff; border-color: var(--sc-border-strong); background: var(--sc-raised); }
body.sc .sc-header .user-actions { position: relative; top: auto; right: auto; display: flex; }
body.sc .sc-header .user-name { display: inline-flex; }
body.sc .sc-header .user-name::before { content: none; }
body.sc .sc-header .user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  left: auto;
  min-width: 190px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: var(--sc-raised);
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  box-shadow: 0 16px 40px rgb(0 0 0 / 55%);
}
body.sc .sc-header .user-menu::before, body.sc .sc-header .user-menu::after { content: none; }
body.sc .sc-header .user-menu a { display: block; padding: 9px 10px; border-radius: 6px; color: var(--sc-fg-2); font-size: 14px; }
body.sc .sc-header .user-menu a:hover { background: var(--sc-accent); color: #fff; }
body.sc .sc-header .user-menu .log-out::before { content: none; }

/* Panier : toujours visible, avec le nombre d'articles et le total */
body.sc .sc-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  width: auto;
  height: 40px;
  padding: 0 8px 0 14px;
  border: 0;
  border-radius: var(--sc-radius-sm);
  background: var(--sc-red);
  color: #fff;
  font-family: var(--sc-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background-color .15s;
}
body.sc .sc-cart:hover { background: var(--sc-red-hover); color: #fff; }
body.sc .sc-cart::before { content: none !important; }
.sc-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  border-radius: 6px;
  background: #fff;
  color: var(--sc-red);
  font-size: 12.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sc-cart-count[data-count="0"] { background: rgb(255 255 255 / 22%); color: #fff; }
.sc-cart-total { padding: 0 6px 0 2px; font-variant-numeric: tabular-nums; }
.sc-cart-total strong { font-weight: 600; }

/* --- Barre de catégories ------------------------------------------------------ */
body.sc .sc-catbar {
  position: static !important;
  inset: auto !important;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  translate: none !important;
  z-index: auto;
  padding: 0;
  background: transparent;
  border-top: 1px solid var(--sc-border);
}
body.sc .sc-catbar .navigation-list {
  position: static !important;
  inset: auto !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch;
  justify-content: flex-start !important;
  flex-wrap: nowrap !important;
  gap: 4px;
  width: auto !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none;
  background: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
  font-family: var(--sc-sans);
  font-size: 14.5px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  color: var(--sc-muted) !important;
}
body.sc .sc-catbar .navigation-list::-webkit-scrollbar { display: none; }
body.sc .sc-catbar .navigation-list > li { position: relative; display: flex; width: auto !important; }
body.sc .sc-catbar .navigation-list > li > a {
  display: flex !important;
  align-items: center;
  max-width: none !important;
  height: 48px;
  padding: 0 14px !important;
  border-radius: 0 !important;
  color: var(--sc-muted);
  white-space: nowrap;
  box-shadow: inset 0 -2px 0 transparent;
  transition: color .15s, box-shadow .15s;
}
body.sc .sc-catbar .navigation-list > li:first-child > a { padding-left: 0 !important; }
body.sc .sc-catbar .navigation-list > li > a:hover { color: var(--sc-fg) !important; background: none; }
body.sc .sc-catbar .navigation-list > li > a.link-active { color: #fff !important; box-shadow: inset 0 -2px 0 var(--sc-red); background: none; }
body.sc .sc-catbar .has-children > .toggle { display: none; }
body.sc .sc-catbar .has-children > ul { display: none !important; }
body.sc .sc-catbar .close-navigation { display: none !important; }

/* --- Accueil ---------------------------------------------------------------- */
.sc-home { padding-top: 28px; padding-bottom: 72px; }
.sc-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr);
  align-items: center;
  gap: 32px;
  padding: 40px 44px;
  border: 1px solid var(--sc-border);
  border-radius: 16px;
  background:
    radial-gradient(60% 90% at 85% 50%, rgb(229 35 31 / 12%), transparent 70%),
    linear-gradient(180deg, var(--sc-surface), var(--sc-bg));
  overflow: hidden;
}
.sc-intro h1 { margin: 0; font-family: var(--sc-display); font-size: clamp(28px, 3.4vw, 38px); font-weight: 800; line-height: 1.1; letter-spacing: -0.02em; }
.sc-intro p { max-width: 540px; margin: 12px 0 24px; color: var(--sc-muted); font-size: 16px; }
.sc-intro-visual { display: flex; justify-content: center; }
.sc-intro-visual img { width: min(300px, 100%); height: auto; }

.sc-shelf { margin-top: 48px; }
.sc-shelf-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--sc-border); }
.sc-shelf-head h2 { margin: 0; font-family: var(--sc-display); font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
.sc-skel {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: linear-gradient(100deg, var(--sc-surface) 40%, var(--sc-raised) 50%, var(--sc-surface) 60%) 0 0 / 200% 100%;
  animation: sc-skel 1.4s linear infinite;
}
@keyframes sc-skel { to { background-position: -200% 0; } }

/* --- Page catégorie / contenu -------------------------------------------------- */
body.sc .site-content { width: 100%; padding-top: 32px; padding-bottom: 72px; display: block; }
body.sc .site-content-widgets { display: block; }
.sc-cat-head { display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; }
.sc-cat-head h1 { margin: 0; font-family: var(--sc-display); font-size: clamp(26px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; }
.sc-cat-count { color: var(--sc-muted); font-size: 14px; }
.sc-cat-desc { max-width: 760px; margin: -8px 0 24px; color: var(--sc-muted); }
body.sc .category-description { background: none; padding: 0; border-radius: 0; }
.sc-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; color: var(--sc-muted); }
.sc-crumbs a:hover { color: var(--sc-fg); }
.sc-crumbs span[aria-hidden] { color: var(--sc-border-strong); }

.sc-panel, body.sc .store-text {
  padding: 32px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: var(--sc-surface);
  box-shadow: none;
}

/* --- Grille et cartes produit -------------------------------------------------- */
body.sc .sc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}
body.sc .store-products-list.sc-grid { grid-template-columns: 1fr; }

body.sc .sc-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: var(--sc-surface);
  box-shadow: none;
  text-align: left;
  overflow: hidden;
  transition: border-color .15s;
}
body.sc .sc-card:hover { border-color: var(--sc-border-strong); }
.sc-card-media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--sc-sunken);
  border-bottom: 1px solid var(--sc-border);
  overflow: hidden;
}
.sc-card-media .image, body.sc .sc-card .image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sc-card-placeholder { display: block; width: 100%; height: 100%; background: var(--sc-sunken); }
.sc-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 4px 8px;
  border-radius: 6px;
  background: var(--sc-red);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.sc-card-body { display: flex; flex-direction: column; gap: 12px; flex: 1 1 auto; padding: 14px 14px 16px; }
body.sc .sc-card .product-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  min-height: 2.6em;
  margin: 0;
  overflow: hidden;
  font-family: var(--sc-sans);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
}
body.sc .sc-card .product-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--sc-border-strong); }
body.sc .countdown {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgb(229 35 31 / 15%);
  color: #ff6b66;
  font-size: 11px;
  font-weight: 600;
  vertical-align: middle;
}

/* Prix et actions */
body.sc .product-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: auto; }
body.sc .product-actions .price { flex: 1 0 100%; display: flex; align-items: baseline; gap: 8px; margin: 0; color: var(--sc-fg); font-size: 14px; }
body.sc .product-actions .price strong { font-family: var(--sc-display); font-size: 20px; font-weight: 700; letter-spacing: -0.01em; color: var(--sc-fg); }
body.sc .product-actions .price .discount { color: var(--sc-muted); font-size: 14px; }
body.sc .product-actions .btn-primary.add { flex: 1 1 auto; width: auto; }
body.sc .product-actions .gift { flex: none; width: 40px; height: 40px; padding: 0; font-size: 0; background-size: 18px; background-position: center; background-repeat: no-repeat; }

body.sc .quantity-field {
  display: flex;
  align-items: center;
  height: 40px;
  border: 1px solid var(--sc-border-strong);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-sunken);
  overflow: hidden;
}
body.sc .quantity-field.wide { flex: 1 1 auto; }
body.sc .quantity-field input[type=number] { background: transparent; color: var(--sc-fg); border: 0; font-variant-numeric: tabular-nums; }
body.sc .quantity-field .adjust { width: 38px; height: 38px; border-radius: 0; }
body.sc .quantity-field .adjust:hover { background: var(--sc-accent); }
body.sc .quantity-field .open-basket { color: var(--sc-fg-2); font-size: 13px; font-weight: 600; }
body.sc .quantity-field .open-basket:hover { color: #fff; }

body.sc .no-products { padding: 40px; text-align: center; color: var(--sc-muted); border: 1px dashed var(--sc-border-strong); border-radius: var(--sc-radius); background: var(--sc-surface); }

/* --- Fiche produit (page et fenêtre) -------------------------------------------- */
body.sc .store-product-full:is(.sc-product, .store-product-popup-content) {
  display: grid;
  grid-template: none;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px 36px;
  align-items: start;
}
body.sc .store-product-full.sc-product { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
body.sc :is(.sc-product, .store-product-popup-content) .image,
body.sc :is(.sc-product, .store-product-popup-content) .product-title,
body.sc :is(.sc-product, .store-product-popup-content) .product-actions { grid-area: auto; }
body.sc :is(.sc-product, .store-product-popup-content) .product-actions {
  position: static !important;
  order: 0;
  margin: 0;
  padding: 0 !important;
  background: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
body.sc :is(.sc-product, .store-product-popup-content) .product-actions .wide { max-width: none; }
body.sc :is(.sc-product, .store-product-popup-content) .price { margin-right: 0; }
.sc-product-media { aspect-ratio: 1 / 1; border: 1px solid var(--sc-border); border-radius: var(--sc-radius); background: var(--sc-sunken); overflow: hidden; }
.sc-product-media .image { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.sc-product-side { position: sticky; top: 140px; display: flex; flex-direction: column; gap: 18px; }
body.sc :is(.sc-product, .store-product-popup-content) .product-title { margin: 0; font-family: var(--sc-display); font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; line-height: 1.15; letter-spacing: -0.02em; text-align: left; }
body.sc :is(.sc-product, .store-product-popup-content) .product-actions .price strong { font-size: 28px; }
body.sc :is(.sc-product, .store-product-popup-content) .product-actions .btn-primary.add { flex: 1 1 100%; width: 100%; height: 46px; font-size: 15px; }
.sc-product-note { margin: 0; padding-top: 14px; border-top: 1px solid var(--sc-border); color: var(--sc-muted); font-size: 13.5px; }
body.sc .sc-product-descr { grid-area: auto; grid-column: 1 / -1; padding: 28px 0 0; border-top: 1px solid var(--sc-border); }

/* Contenu riche */
body.sc .text-content { color: var(--sc-fg-2); font-size: 15px; line-height: 1.7; }
body.sc .text-content h1, body.sc .text-content h2, body.sc .text-content h3 { color: var(--sc-fg); text-align: left; line-height: 1.25; margin: 1.4em 0 .5em; }
body.sc .text-content h1:first-child, body.sc .text-content h2:first-child, body.sc .text-content h3:first-child { margin-top: 0; }
body.sc .text-content a:not([class*=btn]) { color: #ff5a55; text-decoration: underline; text-underline-offset: 3px; }
body.sc .text-content a[class*=btn] { color: #fff; text-decoration: none; }
body.sc .text-content img { border-radius: var(--sc-radius-sm); }
body.sc .text-content hr { border: 0; border-top: 1px solid var(--sc-border); margin: 24px 0; }

/* --- Fenêtres (fiche, panier, connexion) ---------------------------------------- */
body.sc .popup { background: rgb(0 0 0 / 72%); }
body.sc .popup-content {
  border: 1px solid var(--sc-border);
  border-radius: 14px;
  background: var(--sc-surface);
  box-shadow: 0 30px 80px rgb(0 0 0 / 60%);
  color: var(--sc-fg);
}
body.sc .popup .popup-content.store-product-full { padding: 28px; border: 1px solid var(--sc-border); border-radius: 14px; background: var(--sc-surface); }
body.sc .popup .sc-product-side { position: static; }
body.sc .popup-close { border-radius: var(--sc-radius-sm); background-color: var(--sc-raised); }

/* Panier : panneau latéral pleine hauteur (l'ancien thème le bridait à 66 % avec un fond violet) */
body.sc .basket-popup { background: rgb(0 0 0 / 60%); }
body.sc .basket-popup-content {
  height: 100dvh;
  max-width: 440px;
  border: 0;
  border-left: 1px solid var(--sc-border);
  border-radius: 0 !important;
  background: var(--sc-surface);
  box-shadow: -24px 0 60px rgb(0 0 0 / 50%);
}
body.sc .basket .basket-header {
  padding: 22px 24px;
  border-bottom: 1px solid var(--sc-border);
  border-radius: 0;
  background: none;
  font-size: 18px;
}
body.sc .basket .basket-title { gap: 0; text-transform: none; font-family: var(--sc-display); font-size: 20px; font-weight: 800; }
body.sc .basket .basket-title::before { content: none; }
body.sc .basket .basket-second-header {
  padding: 12px 24px;
  border-bottom: 1px solid var(--sc-border);
  background: none;
  color: var(--sc-muted);
  font-size: 14px;
  font-weight: 500;
}
body.sc .basket .basket-second-header .total, body.sc .basket .basket-second-header .total strong { color: var(--sc-fg); font-size: 14px; font-weight: 600; }
body.sc .basket .basket-items { gap: 10px; padding: 16px 24px; }
body.sc .basket .basket-item {
  flex-wrap: wrap;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--sc-border);
  border-radius: var(--sc-radius);
  background: var(--sc-raised);
}
body.sc .basket .basket-item .info { flex: 1 1 100%; }
body.sc .basket .basket-item .title { font-size: 15px; font-weight: 600; line-height: 1.3; }
body.sc .basket .basket-item .title a:hover { color: #fff; }
body.sc .basket .basket-item .options { color: var(--sc-muted); font-size: 13px; }
body.sc .basket .basket-item .price, body.sc .basket .basket-item .price strong { color: var(--sc-fg); font-size: 15px; font-weight: 600; }
body.sc .basket .basket-item .quantity-field { flex: 1 1 auto; height: 36px; }
body.sc .basket .basket-item .remove,
body.sc .basket .basket-item a.btn-secondary.btn-glyph.remove {
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid var(--sc-border-strong);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-sunken);
  color: var(--sc-muted);
}
body.sc .basket .basket-item .remove::before { background-color: currentColor !important; }
body.sc .basket .basket-item .remove:hover { color: #ff6b66; border-color: rgb(229 35 31 / 55%); background: rgb(229 35 31 / 10%); }
body.sc .basket .basket-checkout { padding: 18px 24px 24px; border-top: 1px solid var(--sc-border); }
body.sc .basket .basket-checkout h3 { margin-bottom: 14px; color: var(--sc-fg); font-family: var(--sc-sans); font-size: 15px; font-weight: 600; text-transform: none; }
body.sc .basket .basket-checkout .total, body.sc .basket .basket-checkout .total strong { color: var(--sc-fg); font-family: var(--sc-display); font-size: 22px; font-weight: 800; }
body.sc .basket .basket-checkout .btn-primary.checkout { width: 100%; height: 48px; font-size: 15px; }
body.sc .basket .basket-empty { color: var(--sc-muted); font-size: 15px; }

body.sc .store-form input[type=text],
body.sc .store-form input[type=number],
body.sc .store-form input[type=email],
body.sc .store-form select,
body.sc .store-form textarea,
body.sc .popup .store-form input[type=text],
body.sc .popup .store-form select {
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--sc-border-strong);
  border-radius: var(--sc-radius-sm);
  background: var(--sc-sunken);
  color: var(--sc-fg);
  font-family: var(--sc-sans);
  font-size: 15px;
}
body.sc .store-form textarea { height: auto; padding: 12px 14px; }
body.sc .store-form input:focus, body.sc .store-form select:focus, body.sc .store-form textarea:focus { outline: none; border-color: rgb(229 35 31 / 70%); box-shadow: 0 0 0 3px rgb(229 35 31 / 20%); }
body.sc .sc-login { max-width: 460px; margin: 24px auto; text-align: left; }
body.sc .sc-login h2 { margin: 0 0 6px; font-family: var(--sc-display); font-size: 24px; font-weight: 800; }
body.sc .sc-login .field { display: flex; gap: 10px; margin-top: 20px; }
body.sc .sc-login .field input { flex: 1 1 auto; }
body.sc .sc-login .btn-primary { height: 44px; padding: 0 18px; }

body.sc .toast { border: 1px solid var(--sc-border); border-radius: var(--sc-radius); background: var(--sc-raised); color: var(--sc-fg); box-shadow: 0 16px 40px rgb(0 0 0 / 50%); }

/* --- Réassurance et pied de page ---------------------------------------------- */
.sc-assurances { margin-top: auto; border-top: 1px solid var(--sc-border); background: var(--sc-bg); }
.sc-assurances-inner { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding-top: 28px; padding-bottom: 28px; }
.sc-assurances strong { display: block; margin-bottom: 4px; color: var(--sc-fg); font-size: 14px; font-weight: 600; }
.sc-assurances span { color: var(--sc-muted); font-size: 13.5px; }

body.sc .site-footer.sc-footer { padding: 44px 0 26px; border-top: 1px solid var(--sc-border); background: var(--sc-sunken); color: var(--sc-muted); }
.sc-footer-top { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; padding-bottom: 32px; }
.sc-footer-brand p { margin: 12px 0 0; font-size: 14px; }
.sc-footer-col h4 { margin: 0 0 12px; color: var(--sc-fg); font-family: var(--sc-sans); font-size: 13px; font-weight: 600; }
.sc-footer-col ul { display: grid; gap: 9px; margin: 0; padding: 0; list-style: none; font-size: 14px; }
.sc-footer-col a { color: var(--sc-muted); }
.sc-footer-col a:hover { color: #fff; }
.sc-footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 20px; border-top: 1px solid var(--sc-border); }
.sc-pay { display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.sc-pay { flex-wrap: wrap; }
.sc-pay li { padding: 4px 9px; border: 1px solid var(--sc-border); border-radius: 6px; color: var(--sc-muted); font-size: 12px; font-weight: 500; }
.sc-copy { margin: 0; font-size: 12.5px; }

/* --- Responsive ------------------------------------------------------------------ */
@media (width <= 960px) {
  body.sc .sc-header .site-header-inner { height: 60px; gap: 12px; }
  .sc-logo img { height: 32px; }
  body.sc .sc-header .log-in span, body.sc .sc-account-btn span { display: none; }
  body.sc .sc-header .log-in, body.sc .sc-account-btn { width: 40px; padding: 0; justify-content: center; }
  body.sc .sc-header .user-name { display: inline-flex !important; }
  .sc-cart-total { display: none; }
  .sc-intro { grid-template-columns: 1fr; padding: 28px 24px; }
  .sc-intro-visual { display: none; }
  body.sc .store-product-full:is(.sc-product, .store-product-popup-content) { grid-template-columns: 1fr; }
  .sc-product-side { position: static; }
  .sc-assurances-inner { grid-template-columns: 1fr; gap: 14px; }
  .sc-footer-top { grid-template-columns: 1fr 1fr; }
  .sc-footer-brand { grid-column: 1 / -1; }
}
@media (width <= 600px) {
  .sc-wrap, body.sc .site-content.sc-wrap { padding-left: 16px; padding-right: 16px; }
  .sc-announce-nav { display: none; }
  .sc-announce-list li { font-size: 12.5px; }
  .sc-hide-sm { display: none; }
  .sc-cart-label { display: none; }
  body.sc .sc-cart { padding: 0 6px 0 10px; gap: 8px; }
  body.sc .sc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .sc-card-body { padding: 10px 10px 12px; gap: 10px; }
  body.sc .sc-card .product-title { font-size: 14px; }
  body.sc .product-actions .price strong { font-size: 17px; }
  body.sc .product-actions .btn-primary.add { height: 36px; font-size: 13px; padding: 0 8px; }
  .sc-panel, body.sc .store-text { padding: 20px; }
  .sc-footer-top { grid-template-columns: 1fr; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .sc *, .sc *::before, .sc *::after { transition: none !important; animation: none !important; }
}

/* --- Camouflages : produit phare (v3, 22/11) ------------------------------------ */
.sc-hero {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: stretch;
  border: 1px solid var(--sc-border);
  border-radius: 16px;
  background: var(--sc-surface);
  overflow: hidden;
}
.sc-hero-text { display: flex; flex-direction: column; justify-content: center; gap: 16px; padding: 40px 40px 36px; }
.sc-hero-new {
  align-self: flex-start;
  padding: 4px 10px;
  border: 1px solid var(--sc-border-strong);
  border-radius: 999px;
  color: var(--sc-fg-2);
  font-size: 12px;
  font-weight: 600;
}
.sc-hero h1 { margin: 0; font-family: var(--sc-display); font-size: clamp(28px, 3.3vw, 40px); font-weight: 800; line-height: 1.08; letter-spacing: -0.02em; }
.sc-hero-text > p { margin: 0; max-width: 520px; color: var(--sc-muted); font-size: 15px; line-height: 1.6; }
.sc-hero-offer { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border: 1px solid var(--sc-border); border-radius: var(--sc-radius-sm); background: var(--sc-bg); }
.sc-hero-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.sc-hero-price strong { font-family: var(--sc-display); font-size: 30px; font-weight: 800; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.sc-hero-price s { color: var(--sc-muted); font-size: 16px; }
.sc-hero-offer-label { color: var(--sc-muted); font-size: 13px; }
.sc-save { padding: 3px 8px; border-radius: 6px; background: var(--sc-red); color: #fff; font-size: 13px; font-weight: 700; }
.sc-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.sc-btn-ghost { color: var(--sc-fg); background: transparent; border-color: var(--sc-border-strong); }
.sc-btn-ghost:hover { background: var(--sc-raised); color: var(--sc-fg); }
.sc-hero-facts { margin: 0; color: var(--sc-muted); font-size: 12.5px; }
.sc-hero-media { position: relative; display: block; min-height: 340px; background: var(--sc-sunken); border-left: 1px solid var(--sc-border); }
.sc-hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.sc-hero-media:hover img { transform: scale(1.02); }

.sc-shelf-sub { margin-left: 8px; color: var(--sc-muted); font-family: var(--sc-sans); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.sc-shelf-camos .sc-shelf-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.sc-cat-group { margin-bottom: 40px; }
.sc-cat-group .sc-shelf-head { margin-top: 8px; }

/* Valeur barrée devant le prix d'une collection / du pack intégral */
.price .sc-was { margin-right: 8px; color: var(--sc-muted); font-size: .85em; font-weight: 500; text-decoration: line-through; }

/* Rebond depuis un camouflage à l'unité */
.sc-upsell { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; padding: 14px 16px; border: 1px solid rgb(229 35 31 / 35%); border-radius: var(--sc-radius-sm); background: rgb(229 35 31 / 6%); font-size: 14px; }
.sc-upsell strong { font-size: 13px; }
.sc-upsell a { display: flex; justify-content: space-between; gap: 12px; color: var(--sc-fg); font-weight: 600; }
.sc-upsell a:hover { color: var(--sc-red-hover); }
.sc-announce-list a { color: inherit; }

@media (width <= 960px) {
  .sc-hero { grid-template-columns: 1fr; }
  .sc-hero-media { order: -1; min-height: 0; aspect-ratio: 16 / 9; border-left: 0; border-bottom: 1px solid var(--sc-border); }
  .sc-hero-text { padding: 24px 20px 24px; }
}
@media (width <= 600px) {
  .sc-shelf-sub { display: block; margin: 4px 0 0; }
  .sc-hero-price strong { font-size: 26px; }
}
