/* ========================================
   COHESIF ENERGY — BOUTIQUE
   S'appuie sur les tokens de main.css
   ======================================== */

/* === HERO BOUTIQUE === */
.shop-hero {
  padding: 48px 0 40px;
  background:
    radial-gradient(900px 420px at 85% 10%, rgba(16, 185, 129, 0.10), transparent 70%),
    linear-gradient(180deg, var(--brand-50) 0%, #ffffff 100%);
  border-bottom: 1px solid var(--ink-200);
}
.shop-hero-grid {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 960px) {
  .shop-hero { padding: 72px 0 48px; }
  .shop-hero-grid { grid-template-columns: 1.05fr 1fr; gap: 56px; }
}
.shop-hero h1 { font-size: clamp(2rem, 5vw, 3.25rem); margin: 12px 0 16px; }
.shop-hero-desc { font-size: 1.125rem; max-width: 560px; }
.shop-hero-price {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 20px;
  padding: 10px 16px;
  border-radius: var(--radius-full);
  background: white;
  border: 1px solid var(--brand-200);
  color: var(--ink-700);
  font-size: 15px;
  box-shadow: var(--shadow-sm);
}
.shop-hero-price svg { color: var(--brand-600); }
.shop-hero-price strong { color: var(--brand-700); }
.shop-hero-ctas { justify-content: flex-start; margin-top: 24px; }
.shop-hero-visual img {
  width: 100%;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  background: white;
}

/* === BANDEAU CONFIANCE === */
.shop-trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}
@media (min-width: 960px) { .shop-trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.shop-trust li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
}
.shop-trust-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--brand-50);
  color: var(--brand-700);
}
.shop-trust strong { display: block; font-size: 14.5px; }
.shop-trust small { display: block; font-size: 13px; color: var(--ink-500); line-height: 1.4; }

/* === SECTIONS === */
.shop-section { scroll-margin-top: 100px; }
.shop-section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 32px;
}
.shop-section-head h2 { margin: 8px 0 12px; }
.shop-section-head p { max-width: 680px; font-size: 1.0625rem; }

/* === GRILLE PRODUITS === */
.product-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.product-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}
.product-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); border-color: var(--brand-200); }
.product-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: radial-gradient(closest-side, #ffffff 0%, var(--ink-100) 100%);
  overflow: hidden;
}
.product-grid-2 .product-card-media { aspect-ratio: 16 / 10; }
.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 16px;
  transition: transform 0.35s ease;
}
.product-card:hover .product-card-media img { transform: scale(1.04); }
.product-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 1;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  background: var(--ink-900);
  color: white;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.product-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.product-card-target {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--brand-700);
}
.product-card h3 { font-size: 1.3rem; margin: 6px 0 12px; }
.product-card h3 a:hover { color: var(--brand-700); }
.card-variants { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.card-variants span {
  font-size: 12.5px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  background: var(--ink-100);
  color: var(--ink-700);
}
.product-card-points { display: grid; gap: 6px; margin-bottom: 16px; }
.product-card-points li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-600); line-height: 1.45; }
.product-card-points svg { color: var(--brand-600); flex-shrink: 0; margin-top: 3px; }
.product-card-foot {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--ink-100);
}
.product-card-price small { display: block; font-size: 12px; color: var(--ink-500); }
.product-card-price strong { font-size: 1.5rem; font-weight: 700; color: var(--ink-900); letter-spacing: -0.02em; }
.product-card-price span { font-size: 13px; color: var(--ink-500); font-weight: 500; }
.product-card-ctas { display: flex; gap: 8px; }
.product-card-delivery {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  font-size: 13px;
  color: var(--brand-700);
}

/* === BORNE SEULE / AVEC POSE === */
.pose-explainer {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
@media (min-width: 768px) { .pose-explainer { grid-template-columns: 1fr 1fr; } }
.pose-explainer-col {
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--ink-200);
  background: var(--ink-50);
}
.pose-explainer-col.highlighted { background: var(--brand-50); border-color: var(--brand-200); }
.pose-explainer-col h3 { font-size: 1.15rem; margin: 8px 0 6px; }
.pose-explainer-col p { font-size: 15px; }

/* === BANDEAU PRO === */
.pro-band {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding: 28px;
  border-radius: var(--radius-lg);
  background: var(--ink-950);
}
.pro-band h3 { color: white; font-size: 1.3rem; margin-bottom: 6px; }
.pro-band p { color: var(--ink-300); max-width: 620px; font-size: 15px; }
.pro-band-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.pro-band .btn-outline { background: transparent; color: white; border-color: var(--ink-700); }
.pro-band .btn-outline:hover { background: var(--ink-800); }

/* === ÉTAPES === */
.shop-steps {
  display: grid;
  gap: 16px;
  counter-reset: step;
}
@media (min-width: 640px) { .shop-steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .shop-steps { grid-template-columns: repeat(4, 1fr); } }
.shop-steps li {
  padding: 24px;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-lg);
  background: white;
}
.shop-steps span {
  display: inline-flex;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  background: var(--brand-600);
  color: white;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 12px;
}
.shop-steps h3 { font-size: 1.05rem; margin-bottom: 6px; }
.shop-steps p { font-size: 14.5px; }

/* === TABLEAU DE CHOIX === */
.choose-table-wrap { max-width: 900px; margin: 0 auto; overflow-x: auto; }
.choose-table {
  width: 100%;
  border-collapse: collapse;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 15px;
}
.choose-table th, .choose-table td { padding: 14px 18px; text-align: left; border-bottom: 1px solid var(--ink-100); }
.choose-table th { background: var(--ink-900); color: white; font-weight: 600; font-size: 14px; }
.choose-table td a { color: var(--brand-700); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.choose-note { font-size: 13px; color: var(--ink-500); margin-top: 12px; }

/* === FIL D'ARIANE === */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 20px;
  padding-bottom: 4px;
  font-size: 13.5px;
  color: var(--ink-500);
}
.breadcrumb a:hover { color: var(--brand-700); }
.breadcrumb span[aria-current] { color: var(--ink-800); }

/* === FICHE PRODUIT === */
.pdp { padding: 16px 0 64px; }
.pdp-grid { display: grid; gap: 32px; }
@media (min-width: 960px) {
  .pdp { padding: 24px 0 96px; }
  .pdp-grid { grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: start; }
  .pdp-gallery { position: sticky; top: 120px; }
}
.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-xl);
  background: radial-gradient(closest-side, #ffffff 0%, var(--ink-100) 100%);
  border: 1px solid var(--ink-200);
  overflow: hidden;
}
.gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 24px; }
.gallery-main img.is-photo { object-fit: cover; padding: 0; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; }
.gallery-thumb {
  width: 76px;
  height: 76px;
  border-radius: var(--radius-md);
  border: 2px solid var(--ink-200);
  background: var(--ink-50);
  overflow: hidden;
  padding: 0;
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--brand-600); }

.pdp-title { font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 8px 0 12px; }
.pdp-lead { font-size: 1.125rem; }
.pdp-range {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--brand-50);
  color: var(--brand-800);
  font-size: 14px;
  font-weight: 500;
}
.pdp-price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 24px 0 8px; }
.price-main { font-size: 2.5rem; font-weight: 700; color: var(--ink-900); letter-spacing: -0.03em; line-height: 1; }
.price-tax { font-size: 15px; font-weight: 600; color: var(--ink-500); }
.price-sub { width: 100%; font-size: 14px; color: var(--ink-500); }
.deposit-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--accent-50);
  color: var(--accent-700);
  font-size: 14px;
  line-height: 1.5;
}
.deposit-note svg { flex-shrink: 0; margin-top: 2px; }
.deposit-note strong { color: var(--accent-700); }

.variants { border: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.variants legend { font-weight: 600; color: var(--ink-900); margin-bottom: 10px; font-size: 15px; }
.variant { display: block; cursor: pointer; }
.variant input { position: absolute; opacity: 0; pointer-events: none; }
.variant-box {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "top price" "detail price";
  gap: 2px 16px;
  align-items: center;
  padding: 14px 16px;
  border: 2px solid var(--ink-200);
  border-radius: var(--radius-md);
  background: white;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.variant:hover .variant-box { border-color: var(--ink-300); }
.variant input:checked + .variant-box { border-color: var(--brand-600); background: var(--brand-50); }
.variant input:focus-visible + .variant-box { outline: 3px solid var(--brand-200); outline-offset: 2px; }
.variant-top { grid-area: top; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.variant-top strong { font-size: 15.5px; }
.variant-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--brand-600);
  color: white;
}
.variant-detail { grid-area: detail; font-size: 13.5px; color: var(--ink-500); line-height: 1.4; }
.variant-price { grid-area: price; font-weight: 700; color: var(--ink-900); white-space: nowrap; }

.pose-box {
  margin-top: 14px;
  padding: 16px 18px;
  border-radius: var(--radius-md);
  border: 1px dashed var(--brand-200);
  background: #fbfefc;
}
.pose-box[hidden] { display: none; }
.pose-box-title { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink-900); margin-bottom: 10px; }
.pose-box-title svg { color: var(--brand-600); }
.pose-box ul { display: grid; gap: 6px; margin-bottom: 10px; }
.pose-box li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-700); }
.pose-box li svg { color: var(--brand-600); flex-shrink: 0; margin-top: 3px; }
.pose-box p { font-size: 13px; }

.pdp-buy { margin-top: 24px; height: 58px; font-size: 17px; gap: 10px; }
.pdp-seller { font-size: 13px; color: var(--ink-500); margin-top: 10px; text-align: center; }
.pdp-help {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--brand-700);
}
.pdp-help:hover { text-decoration: underline; }
.pdp-reassurance {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--ink-200);
}
@media (min-width: 520px) { .pdp-reassurance { grid-template-columns: 1fr 1fr; } }
.pdp-reassurance li { display: flex; gap: 10px; font-size: 13.5px; color: var(--ink-700); line-height: 1.45; }
.pdp-reassurance svg { color: var(--brand-600); flex-shrink: 0; }

.pdp-details { display: grid; gap: 48px; }
@media (min-width: 960px) { .pdp-details { grid-template-columns: 1fr 1.2fr; gap: 64px; } }
.pdp-details h2 { margin: 8px 0 24px; font-size: clamp(1.6rem, 3.5vw, 2.2rem); }
.pdp-points { display: grid; gap: 14px; }
.pdp-points li { display: flex; gap: 12px; font-size: 16px; color: var(--ink-700); }
.pdp-points svg { color: var(--brand-600); flex-shrink: 0; margin-top: 3px; }
.spec-table { width: 100%; border-collapse: collapse; background: white; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table th, .spec-table td { padding: 12px 16px; text-align: left; vertical-align: top; font-size: 14.5px; border-bottom: 1px solid var(--ink-100); }
.spec-table th { width: 40%; font-weight: 600; color: var(--ink-800); background: var(--ink-50); }
.spec-table td { color: var(--ink-600); }

/* === BARRE D'ACHAT MOBILE === */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--ink-200);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  transform: translateY(110%);
  transition: transform 0.25s ease;
}
.sticky-buy.visible { transform: translateY(0); }
.sticky-buy-info { min-width: 0; }
.sticky-buy-info strong { display: block; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sticky-buy-info span { font-size: 14px; color: var(--brand-700); font-weight: 700; }
.sticky-buy .btn { flex-shrink: 0; }
@media (min-width: 960px) { .sticky-buy { display: none; } }

/* === ACCUEIL : BLOC BOUTIQUE === */
.home-shop {
  display: grid;
  gap: 32px;
  align-items: center;
  padding: 32px;
  border-radius: var(--radius-xl);
  background: linear-gradient(135deg, var(--brand-50), #ffffff 60%);
  border: 1px solid var(--brand-100);
}
@media (min-width: 960px) { .home-shop { grid-template-columns: 1fr 1fr; padding: 48px; } }
.home-shop h2 { margin: 10px 0 14px; }
.home-shop-list { display: grid; gap: 10px; margin: 20px 0 24px; }
.home-shop-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: white;
  border: 1px solid var(--ink-200);
  border-radius: var(--radius-md);
  font-weight: 500;
  color: var(--ink-800);
  transition: border-color 0.15s ease;
}
.home-shop-list a:hover { border-color: var(--brand-500); }
.home-shop-list strong { color: var(--brand-700); white-space: nowrap; }
.home-shop img { width: 100%; border-radius: var(--radius-lg); background: white; }
/* Sur une fiche produit, la barre d'achat remplace la barre « Devis gratuit » du widget */
body:has([data-sticky-buy]) .cohesif-mobile-sticky-cta { display: none !important; }
