:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --primary: #0f766e;
  --primary-dark: #115e59;
  --accent: #f59e0b;
  --line: #e2e8f0;
  --shadow: 0 20px 60px rgba(15, 23, 42, 0.12);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.no-scroll { overflow: hidden; }

.topbar {
  display: flex;
  justify-content: center;
  gap: 18px;
  align-items: center;
  padding: 10px 16px;
  background: #042f2e;
  color: #ccfbf1;
  font-size: 14px;
}
.topbar a { color: #fff; font-weight: 800; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 5vw, 72px);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 900; }
.brand img { width: 42px; height: 42px; }
.brand strong { color: var(--primary); }
.main-nav { display: flex; gap: 22px; color: var(--muted); font-weight: 700; }
.main-nav a:hover { color: var(--primary); }
.cart-button {
  border: 0;
  background: var(--text);
  color: #fff;
  padding: 12px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 900;
}
.cart-button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 36px;
  align-items: center;
  padding: clamp(50px, 8vw, 100px) clamp(18px, 5vw, 72px);
  min-height: 70vh;
  background:
    radial-gradient(circle at top right, rgba(20, 184, 166, 0.24), transparent 34%),
    linear-gradient(135deg, #ecfeff, #fff7ed 55%, #ffffff);
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--primary);
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: 12px;
}
.hero h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(34px, 5vw, 62px);
  line-height: .94;
  letter-spacing: -0.04em;
}
.hero h1 span { color: var(--primary); }
.hero-text {
  max-width: 680px;
  margin: 24px 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.05;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  border-radius: 999px;
  padding: 0 22px;
  border: 1px solid transparent;
  cursor: pointer;
  font-weight: 900;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 12px 30px rgba(15, 118, 110, .28); }
.btn.primary:hover { background: var(--primary-dark); }
.btn.secondary { background: #fff; color: var(--text); border-color: var(--line); }
.btn.full { width: 100%; }
.trust-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; color: var(--muted); font-weight: 800; }
.trust-row span { background: #fff; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); }
.hero-card {
  position: relative;
  padding: 34px;
  border-radius: var(--radius);
  background: #0f172a;
  color: #fff;
  box-shadow: var(--shadow);
  min-height: 360px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(245, 158, 11, .7), transparent 65%);
}
.deal-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #111827;
  font-weight: 900;
}
.hero-card h2 { margin: 0 0 12px; font-size: 34px; }
.hero-card p { color: #cbd5e1; line-height: 1.6; }

.section { padding: 70px clamp(18px, 5vw, 72px); }
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.stats article {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, .07);
}
.stats strong { display: block; color: var(--primary); font-size: 34px; }
.stats span { color: var(--muted); font-weight: 800; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 26px;
}
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 48px); letter-spacing: -0.04em; }
.filters { display: flex; gap: 12px; flex-wrap: wrap; }
.filters input, .filters select, .checkout-form input, .checkout-form select, .checkout-form textarea {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 15px;
  background: #fff;
  outline: none;
}
.filters input:focus, .filters select:focus, .checkout-form input:focus, .checkout-form select:focus, .checkout-form textarea:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, .12);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .07);
}
.product-image {
  min-height: 190px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #f0fdfa, #fff7ed);
}
.product-image img { width: 78%; max-height: 160px; object-fit: contain; }
.product-content { padding: 20px; }
.product-meta { display: flex; justify-content: space-between; gap: 12px; align-items: center; color: var(--muted); font-size: 13px; font-weight: 800; }
.product-meta strong { color: var(--primary); background: #ccfbf1; border-radius: 999px; padding: 5px 9px; }
.product-card h3 { margin: 12px 0 8px; font-size: 20px; }
.product-card p { min-height: 72px; color: var(--muted); line-height: 1.5; }
.price-row { display: flex; align-items: center; gap: 9px; margin: 16px 0; }
.price { color: var(--primary); font-size: 21px; font-weight: 950; }
.old-price { color: #94a3b8; text-decoration: line-through; font-weight: 700; }
.steps-grid, .contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.steps article, .contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
}
.steps article span {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-weight: 950;
}
.steps h3 { margin-bottom: 8px; }
.steps p, .promo p { color: var(--muted); line-height: 1.6; }
.promo {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  background: #042f2e;
  color: #fff;
}
.promo p { color: #ccfbf1; max-width: 800px; }
.contact-card { display: flex; flex-direction: column; gap: 8px; }
.contact-card strong { font-size: 20px; }
.contact-card span { color: var(--muted); }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 5vw, 72px);
  background: #0f172a;
  color: #cbd5e1;
}
.cart-panel {
  position: fixed;
  inset: 0 0 0 auto;
  width: min(480px, 100%);
  z-index: 30;
  background: var(--surface);
  transform: translateX(105%);
  transition: transform .22s ease;
  padding: 22px;
  overflow: auto;
  box-shadow: var(--shadow);
}
.cart-panel[aria-hidden="false"] { transform: translateX(0); }
.overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  background: rgba(15, 23, 42, .54);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}
.overlay.show { opacity: 1; pointer-events: auto; }
.cart-header { display: flex; justify-content: space-between; align-items: center; }
.icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: #f1f5f9;
  cursor: pointer;
  font-size: 28px;
}
.cart-items { display: grid; gap: 12px; margin: 20px 0; }
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
}
.cart-item img { width: 72px; height: 72px; object-fit: contain; background: #f8fafc; border-radius: 14px; }
.cart-item span { display: block; color: var(--muted); margin-top: 4px; }
.qty-controls { display: flex; align-items: center; gap: 10px; margin-top: 10px; }
.qty-controls button { border: 0; background: #e2e8f0; width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-weight: 900; }
.cart-total { display: flex; justify-content: space-between; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 20px; }
.checkout-form { display: grid; gap: 14px; margin-top: 20px; }
.checkout-form h3 { margin: 0; }
.checkout-form label { display: grid; gap: 7px; color: var(--muted); font-weight: 800; }
.empty-state { padding: 18px; border-radius: 18px; background: #f8fafc; color: var(--muted); text-align: center; }

@media (max-width: 1000px) {
  .hero, .promo { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .main-nav { display: none; }
}
@media (max-width: 680px) {
  .topbar { flex-direction: column; gap: 4px; text-align: center; }
  .site-header { padding: 14px 16px; }
  .brand span { font-size: 18px; }
  .hero { padding: 44px 18px; }
  .stats, .steps-grid, .contact-grid, .product-grid { grid-template-columns: 1fr; }
  .section-heading { align-items: stretch; flex-direction: column; }
  .filters { flex-direction: column; }
  .footer { flex-direction: column; }
}


/* Packs produits */
.packs-section {
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
}
.section-intro {
  margin: 10px 0 0;
  max-width: 680px;
  color: var(--muted);
  line-height: 1.6;
}
.pack-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.pack-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 16px 42px rgba(15, 23, 42, .08);
}
.pack-card:nth-child(2) {
  border: 2px solid var(--primary);
  transform: translateY(-6px);
}
.pack-image {
  min-height: 180px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #ccfbf1, #fff7ed);
}
.pack-image img { width: 68%; max-height: 150px; object-fit: contain; }
.pack-content { padding: 22px; }
.pack-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.pack-label {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: #0f172a;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.pack-topline strong { color: var(--primary); font-size: 13px; }
.pack-card h3 { margin: 14px 0 8px; font-size: 24px; }
.pack-card p { color: var(--muted); line-height: 1.55; }
.pack-items {
  list-style: none;
  padding: 0;
  margin: 16px 0;
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 700;
  font-size: 14px;
}

@media (max-width: 1000px) {
  .pack-grid { grid-template-columns: 1fr; }
  .pack-card:nth-child(2) { transform: none; }
}

/* Respecter les sections masquées, même avec une règle display. */
[hidden] { display: none !important; }
