/* Kane Matelas — design system */
/* Mobile-first. Breakpoints: 768px (tablet), 1024px (desktop). */

:root {
  /* Palette */
  --bg: #FAFAF8;
  --bg-soft: #F1F1ED;
  --surface: #FFFFFF;
  --ink: #0F172A;
  --ink-soft: #475569;
  --muted: #94A3B8;
  --line: #E5E5E0;
  --primary: #1E3A8A;
  --primary-dark: #172E6E;
  --accent: #14B8A6;
  --accent-dark: #0F8E81;
  --warn: #F59E0B;
  --good: #10B981;
  --danger: #DC2626;

  /* Typography */
  --font-display: "Inter Tight", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Spacing (8px scale) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  /* Radii */
  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 16px;
  --r-pill: 999px;

  /* Shadow */
  --sh-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --sh-md: 0 4px 14px rgba(15, 23, 42, 0.08);
  --sh-lg: 0 14px 40px rgba(15, 23, 42, 0.10);

  /* Layout */
  --maxw: 1180px;
  --header-h: 64px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: none;
}
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  margin: 0 0 var(--s-4);
  color: var(--ink);
}

h1 { font-size: clamp(2rem, 5vw + 1rem, 3.5rem); line-height: 1.05; }
h2 { font-size: clamp(1.5rem, 3vw + 0.5rem, 2.25rem); line-height: 1.15; }
h3 { font-size: 1.25rem; line-height: 1.3; }
h4 { font-size: 1.0625rem; line-height: 1.35; }

p { margin: 0 0 var(--s-4); color: var(--ink-soft); }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--s-3);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--s-4);
}
@media (min-width: 768px) {
  .container { padding: 0 var(--s-5); }
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 248, 0.92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand__mark {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid;
  place-items: center;
  color: white;
  font-weight: 700;
  font-size: 0.875rem;
}
.nav { display: none; gap: var(--s-5); }
.nav a { color: var(--ink-soft); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); text-decoration: none; }
@media (min-width: 768px) { .nav { display: flex; } }

.header-cta { display: flex; align-items: center; gap: var(--s-2); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 12px 22px;
  border-radius: var(--r-md);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 200ms ease, color 200ms ease, border-color 200ms ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn--primary {
  background: var(--primary);
  color: #fff;
}
.btn--primary:hover { background: var(--primary-dark); text-decoration: none; }
.btn--accent {
  background: var(--accent);
  color: #052E2A;
}
.btn--accent:hover { background: var(--accent-dark); color: #fff; text-decoration: none; }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--ink); text-decoration: none; }
.btn--lg { padding: 16px 28px; font-size: 1rem; }
.btn--block { width: 100%; }
.btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ===== Hero ===== */
.hero {
  padding: var(--s-7) 0 var(--s-8);
  background:
    radial-gradient(circle at 80% 0%, rgba(20, 184, 166, 0.10), transparent 60%),
    radial-gradient(circle at 0% 100%, rgba(30, 58, 138, 0.08), transparent 60%),
    var(--bg);
}
.hero__grid {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .hero { padding: var(--s-8) 0 var(--s-9); }
  .hero__grid { grid-template-columns: 1.1fr 1fr; gap: var(--s-8); }
}
.hero__title {
  margin-bottom: var(--s-4);
}
.hero__lead {
  font-size: 1.0625rem;
  max-width: 540px;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.hero__signals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4) var(--s-5);
  margin-top: var(--s-6);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.hero__signal {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}
.hero__signal::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero__visual {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
  box-shadow: var(--sh-lg);
}
.hero__visual img { width: 100%; height: 100%; object-fit: cover; }
.hero__badge {
  position: absolute;
  top: var(--s-4);
  left: var(--s-4);
  background: var(--surface);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  box-shadow: var(--sh-sm);
}

/* ===== Section ===== */
.section { padding: var(--s-8) 0; }
@media (min-width: 768px) { .section { padding: var(--s-9) 0; } }
.section--soft { background: var(--bg-soft); }
.section__head {
  max-width: 720px;
  margin: 0 auto var(--s-7);
  text-align: center;
}

/* ===== Benefits grid ===== */
.benefits {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 640px) { .benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .benefits { grid-template-columns: repeat(4, 1fr); } }
.benefit {
  background: var(--surface);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.benefit__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--bg-soft);
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  margin-bottom: var(--s-3);
}
.benefit__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  margin-bottom: 4px;
  color: var(--ink);
}
.benefit__text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* ===== Product card / featured ===== */
.product-feature {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .product-feature { grid-template-columns: 1fr 1fr; gap: var(--s-8); }
}
.product-feature__media {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
  aspect-ratio: 4 / 3;
}
.product-feature__media img { width: 100%; height: 100%; object-fit: cover; }
.product-feature__price {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin: var(--s-4) 0;
}
.product-feature__price .now {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
}

/* ===== Carousel (produit.html) ===== */
.carousel {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--bg-soft);
}
.carousel__viewport {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.carousel__track {
  display: flex;
  height: 100%;
  transition: transform 350ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.carousel__slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 100%;
}
.carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--ink);
  transition: background 200ms ease;
  z-index: 2;
}
.carousel__btn:hover { background: #fff; }
.carousel__btn--prev { left: 12px; }
.carousel__btn--next { right: 12px; }
@media (max-width: 600px) { .carousel__btn { display: none; } }

.carousel__thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
}
.carousel__thumb {
  flex: 0 0 64px;
  height: 64px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  cursor: pointer;
  background: var(--bg-soft);
  scroll-snap-align: start;
  padding: 0;
  transition: border-color 200ms ease;
}
.carousel__thumb img { width: 100%; height: 100%; object-fit: cover; }
.carousel__thumb.is-active { border-color: var(--primary); }

.carousel__dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 2;
}
.carousel__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  border: none;
  padding: 0;
  cursor: pointer;
}
.carousel__dot.is-active { background: var(--accent); }

/* ===== Product page layout ===== */
.product {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1024px) {
  .product { grid-template-columns: 1.1fr 1fr; gap: var(--s-7); }
}
.product__title { margin-bottom: var(--s-2); }
.product__sub {
  color: var(--ink-soft);
  font-size: 1rem;
  margin-bottom: var(--s-4);
}
.rating {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: var(--s-4);
}
.rating__stars { color: var(--warn); }

.price-block {
  display: flex;
  align-items: baseline;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.price-block .now {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--primary);
}
.price-block .badge {
  font-size: 0.75rem;
  background: var(--accent);
  color: #052E2A;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* ===== Thickness picker ===== */
.thickness-picker { margin-bottom: var(--s-5); }
.thickness-list {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr;
}
@media (min-width: 600px) { .thickness-list { grid-template-columns: repeat(3, 1fr); } }
.thickness-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 14px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 200ms ease, background 200ms ease, transform 100ms ease;
  position: relative;
}
.thickness-card:hover { border-color: var(--ink-soft); }
.thickness-card__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  gap: var(--s-2);
}
.thickness-card__main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
}
.thickness-card__tag {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #052E2A;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}
.thickness-card__pos {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.thickness-card__price {
  font-size: 0.8rem;
  color: var(--ink);
  font-weight: 600;
  margin-top: 4px;
}
.thickness-card.is-active {
  border-color: var(--primary);
  background: rgba(30, 58, 138, 0.04);
}
.thickness-card.is-active .thickness-card__main { color: var(--primary); }

.size-picker { margin-bottom: var(--s-5); }
.size-picker__label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: var(--s-3);
}
.size-picker__list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 480px) {
  .size-picker__list { grid-template-columns: repeat(4, 1fr); }
}
.size-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 14px 12px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  cursor: pointer;
  font-family: var(--font-body);
  text-align: left;
  transition: border-color 200ms ease, background 200ms ease;
}
.size-pill__main {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--ink);
}
.size-pill__sub {
  font-size: 0.75rem;
  color: var(--muted);
}
.size-pill__price {
  font-size: 0.8rem;
  color: var(--ink-soft);
  font-weight: 500;
  margin-top: 2px;
}
.size-pill.is-active {
  border-color: var(--primary);
  background: rgba(30, 58, 138, 0.04);
}
.size-pill.is-active .size-pill__main { color: var(--primary); }

.qty-row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.qty button {
  width: 40px;
  height: 44px;
  background: var(--surface);
  border: 0;
  cursor: pointer;
  font-size: 1.25rem;
  color: var(--ink);
}
.qty input {
  width: 48px;
  height: 44px;
  border: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  background: var(--surface);
}

.specs {
  margin-top: var(--s-6);
  border-top: 1px solid var(--line);
  padding-top: var(--s-5);
}
.specs__title {
  font-family: var(--font-display);
  font-weight: 600;
  margin-bottom: var(--s-4);
}
.specs__list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--s-2);
}
.specs__row {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--s-3);
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.92rem;
}
.specs__row dt { color: var(--ink-soft); margin: 0; }
.specs__row dd { color: var(--ink); margin: 0; font-weight: 500; }

/* ===== Testimonials ===== */
.testimonials {
  display: grid;
  gap: var(--s-4);
}
@media (min-width: 768px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }
.testimonial {
  background: var(--surface);
  padding: var(--s-5);
  border-radius: var(--r-md);
  border: 1px solid var(--line);
}
.testimonial__stars {
  color: var(--warn);
  margin-bottom: var(--s-3);
  font-size: 0.95rem;
}
.testimonial__text {
  font-size: 0.95rem;
  color: var(--ink);
  margin-bottom: var(--s-3);
}
.testimonial__author {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.testimonial__avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.78rem;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}
.testimonial__meta {
  font-size: 0.75rem;
  color: var(--ink-soft);
  font-weight: 500;
}

/* ===== FAQ ===== */
.faq { max-width: 820px; margin: 0 auto; }
.faq details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  margin-bottom: var(--s-3);
  overflow: hidden;
}
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: var(--s-4) var(--s-5);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-size: 1.3rem;
  color: var(--primary);
  transition: transform 200ms ease;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq p {
  margin: 0;
  padding: 0 var(--s-5) var(--s-5);
  color: var(--ink-soft);
}

/* ===== Checkout ===== */
.checkout {
  display: grid;
  gap: var(--s-6);
}
@media (min-width: 1024px) {
  .checkout { grid-template-columns: 1.4fr 1fr; gap: var(--s-7); align-items: start; }
}
.form-card, .summary-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
}
.form-card h2, .summary-card h2 { font-size: 1.25rem; margin-bottom: var(--s-4); }
.field { margin-bottom: var(--s-4); }
.field label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink);
}
.field input, .field select, .field textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
  transition: border-color 200ms ease;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--primary);
}
.field textarea { min-height: 80px; resize: vertical; }
.field__hint {
  display: block;
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 4px;
}
.field--row {
  display: grid;
  gap: var(--s-3);
  grid-template-columns: 1fr 1fr;
}

.pay-options { display: grid; gap: var(--s-3); margin-bottom: var(--s-5); }
.pay-option {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4);
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  background: var(--surface);
  transition: border-color 200ms ease, background 200ms ease;
}
.pay-option__radio {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  position: relative;
  cursor: pointer;
}
.pay-option__radio:checked {
  border-color: var(--primary);
}
.pay-option__radio:checked::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: var(--primary);
}
.pay-option:has(.pay-option__radio:checked) {
  border-color: var(--primary);
  background: rgba(30, 58, 138, 0.04);
}
.pay-option--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pay-option__icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #fff;
}
.pay-option__icon--wave { background: #16D2DD; }
.pay-option__icon--om { background: #FF6600; }
.pay-option__icon--cod { background: var(--ink); }
.pay-option__title { font-family: var(--font-display); font-weight: 600; font-size: 0.95rem; }
.pay-option__sub { font-size: 0.8rem; color: var(--ink-soft); }

.summary-card .row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
  margin-bottom: var(--s-2);
  color: var(--ink-soft);
}
.summary-card .row.total {
  border-top: 1px solid var(--line);
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--ink);
}

/* ===== Confirmation ===== */
.confirm-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  text-align: center;
}
.confirm-card__icon {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  color: var(--good);
  display: grid;
  place-items: center;
  margin: 0 auto var(--s-4);
  font-size: 1.5rem;
}
.confirm-ref {
  display: inline-block;
  background: var(--bg-soft);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
  padding: 10px 18px;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: var(--s-4) 0;
  color: var(--primary);
}
.pay-instructions {
  text-align: left;
  background: var(--bg-soft);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin: var(--s-4) 0;
  font-size: 0.95rem;
}
.pay-instructions strong { color: var(--ink); }

/* ===== Footer ===== */
.site-footer {
  background: var(--ink);
  color: #CBD5E1;
  padding: var(--s-7) 0 var(--s-5);
  margin-top: var(--s-8);
}
.site-footer a { color: #CBD5E1; }
.site-footer a:hover { color: #fff; }
.footer-grid {
  display: grid;
  gap: var(--s-5);
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.footer-brand { font-family: var(--font-display); font-weight: 700; color: #fff; font-size: 1.25rem; margin-bottom: var(--s-2); }
.footer-col h4 { color: #fff; font-size: 0.875rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: var(--s-3); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; font-size: 0.9rem; }
.footer-bottom {
  margin-top: var(--s-6);
  padding-top: var(--s-4);
  border-top: 1px solid #1E293B;
  font-size: 0.8rem;
  color: #64748B;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3);
  justify-content: space-between;
}
.pay-logos {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: var(--s-3);
}
.pay-logos span {
  background: #1E293B;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: var(--r-sm);
}

/* ===== Misc ===== */
.alert {
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-size: 0.9rem;
  margin-bottom: var(--s-4);
}
.alert--err { background: rgba(220, 38, 38, 0.08); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.2); }
.alert--ok { background: rgba(16, 185, 129, 0.08); color: var(--good); border: 1px solid rgba(16, 185, 129, 0.2); }

/* ===== Rating summary (sous titre produit) ===== */
.rating-summary {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  color: var(--ink);
  margin-bottom: var(--s-4);
  text-decoration: none;
  transition: background 200ms ease;
}
.rating-summary:hover { background: rgba(245, 158, 11, 0.14); text-decoration: none; }
.rating-summary__stars {
  color: var(--warn);
  letter-spacing: 2px;
  font-size: 1.05rem;
}
.rating-summary__text { font-size: 0.92rem; }
.rating-summary__text strong { color: var(--ink); }

/* ===== Section Avis ===== */
.reviews-head {
  display: grid;
  gap: var(--s-5);
  margin-bottom: var(--s-6);
}
@media (min-width: 768px) {
  .reviews-head { grid-template-columns: 1fr 1.2fr; align-items: center; }
}

.reviews-summary {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--s-5);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-5);
  align-items: center;
}
.reviews-summary__big { text-align: center; padding-right: var(--s-5); border-right: 1px solid var(--line); }
.reviews-summary__score {
  font-family: var(--font-display);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  color: var(--ink);
}
.reviews-summary__stars {
  color: var(--warn);
  font-size: 1.1rem;
  letter-spacing: 2px;
  margin: 6px 0 4px;
}
.reviews-summary__count {
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.reviews-summary__dist { display: grid; gap: 6px; }
.dist-row {
  display: grid;
  grid-template-columns: 28px 1fr 28px;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.dist-label { color: var(--ink); font-weight: 600; }
.dist-bar {
  height: 8px;
  background: var(--bg-soft);
  border-radius: var(--r-pill);
  overflow: hidden;
  position: relative;
}
.dist-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--warn), #FBBF24);
  transition: width 600ms ease;
}
.dist-count { text-align: right; }

.reviews-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 720px)  { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .reviews-grid { grid-template-columns: repeat(3, 1fr); } }

.review-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.review-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card__avatar {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.review-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
}
.review-card__meta {
  font-size: 0.75rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.review-card__verified {
  margin-left: auto;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--good);
  background: rgba(16, 185, 129, 0.08);
  padding: 4px 8px;
  border-radius: var(--r-pill);
  white-space: nowrap;
}
.review-card__stars {
  color: var(--warn);
  letter-spacing: 2px;
  font-size: 0.95rem;
}
.review-card__text {
  font-size: 0.92rem;
  color: var(--ink);
  line-height: 1.55;
  margin: 0;
}
.review-card__tag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--primary);
  background: rgba(30, 58, 138, 0.06);
  padding: 4px 10px;
  border-radius: var(--r-pill);
  margin-top: auto;
}

/* ===== Header — Panier ===== */
.header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-pill);
  color: var(--ink);
  text-decoration: none;
  transition: background 200ms ease;
}
.header-cart:hover { background: var(--bg-soft); }
.header-cart svg { width: 22px; height: 22px; }
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #052E2A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.7rem;
  display: grid;
  place-items: center;
  border: 2px solid var(--bg);
}

/* ===== Mega Hero (nouvelle home) ===== */
.mega-hero {
  padding: var(--s-7) 0;
  background:
    radial-gradient(circle at 80% 10%, rgba(20,184,166,.12), transparent 55%),
    radial-gradient(circle at 0% 90%, rgba(30,58,138,.10), transparent 55%),
    var(--bg);
}
.mega-hero__inner {
  display: grid;
  gap: var(--s-6);
  align-items: center;
}
@media (min-width: 1024px) {
  .mega-hero { padding: var(--s-8) 0 var(--s-9); }
  .mega-hero__inner { grid-template-columns: 1.15fr 1fr; gap: var(--s-8); }
}
.mega-hero__title { margin-bottom: var(--s-3); }
.mega-hero__lead { font-size: 1.0625rem; max-width: 540px; }
.mega-hero__signals { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-5); }
.mega-hero__chip {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 8px 14px;
  font-size: 0.85rem;
  color: var(--ink-soft);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.mega-hero__chip::before { content: "•"; color: var(--accent); font-weight: 700; }

/* ===== Category Cards (home) ===== */
.cat-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 768px)  { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
.cat-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: inherit;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.cat-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
  text-decoration: none;
}
.cat-card__media {
  aspect-ratio: 4 / 3;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}
.cat-card__body { padding: var(--s-4); }
.cat-card__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--ink);
  margin-bottom: 4px;
}
.cat-card__tag { font-size: 0.9rem; color: var(--ink-soft); }
.cat-card__cta {
  margin-top: var(--s-3);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.cat-card__cta::after { content: "→"; transition: transform 200ms ease; }
.cat-card:hover .cat-card__cta::after { transform: translateX(4px); }

/* ===== Product Card (listings) ===== */
.product-grid {
  display: grid;
  gap: var(--s-4);
  grid-template-columns: 1fr;
}
@media (min-width: 600px)  { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
  transition: transform 200ms ease, box-shadow 200ms ease;
  position: relative;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--sh-md); }
.product-card a { color: inherit; text-decoration: none; }
.product-card__media {
  aspect-ratio: 4 / 3;
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}
.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--accent);
  color: #052E2A;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  letter-spacing: 0.04em;
}
.product-card__body {
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.product-card__gamme {
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
}
.product-card__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.25;
}
.product-card__tag {
  font-size: 0.85rem;
  color: var(--ink-soft);
  flex: 1;
}
.product-card__price-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: var(--s-3);
  padding-top: var(--s-3);
  border-top: 1px solid var(--line);
}
.product-card__price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
}
.product-card__from { font-size: 0.78rem; color: var(--ink-soft); }
.product-card__cta {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.product-card__cta::after { content: "→"; transition: transform 200ms ease; }
.product-card:hover .product-card__cta::after { transform: translateX(3px); }

/* ===== Filter chips (listing) ===== */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-bottom: var(--s-5);
}
.chip {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1.5px solid var(--line);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--ink-soft);
  cursor: pointer;
  transition: all 200ms ease;
}
.chip:hover { color: var(--ink); border-color: var(--ink-soft); }
.chip.is-active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

/* ===== Cart (panier) ===== */
.cart-layout {
  display: grid;
  gap: var(--s-5);
}
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1.6fr 1fr; gap: var(--s-6); align-items: start; }
}
.cart-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.cart-item {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: var(--s-3);
  padding: var(--s-3);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  align-items: center;
}
.cart-item__media {
  width: 80px;
  height: 80px;
  border-radius: var(--r-sm);
  background-size: cover;
  background-position: center;
  background-color: var(--bg-soft);
}
.cart-item__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.25;
}
.cart-item__variant {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin-top: 2px;
}
.cart-item__actions {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-top: 8px;
}
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.cart-item__qty button {
  width: 28px;
  height: 28px;
  background: var(--surface);
  border: 0;
  cursor: pointer;
  font-size: 1rem;
  color: var(--ink);
}
.cart-item__qty input {
  width: 32px;
  height: 28px;
  border: 0;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  background: var(--surface);
}
.cart-item__remove {
  background: none;
  border: 0;
  color: var(--ink-soft);
  cursor: pointer;
  font-size: 0.8rem;
  text-decoration: underline;
  padding: 4px 0;
}
.cart-item__remove:hover { color: var(--danger); }
.cart-item__line-total {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--ink);
  text-align: right;
  align-self: start;
  white-space: nowrap;
}
.cart-empty {
  text-align: center;
  padding: var(--s-7) var(--s-4);
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}

/* ===== Description longue (fiche produit) ===== */
.product-desc {
  font-size: 1rem;
  color: var(--ink-soft);
  line-height: 1.65;
  margin-top: var(--s-5);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

/* ===== WhatsApp Floating Action Button ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px 12px 14px;
  background: #25D366;
  color: #fff;
  border-radius: var(--r-pill);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(37, 211, 102, 0.35), 0 4px 10px rgba(0,0,0,0.1);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.whatsapp-fab:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(37, 211, 102, 0.45), 0 6px 12px rgba(0,0,0,0.12);
  color: #fff;
  text-decoration: none;
}
.whatsapp-fab svg { flex-shrink: 0; }
@media (max-width: 480px) {
  .whatsapp-fab {
    padding: 12px;
    bottom: 16px;
    right: 16px;
  }
  .whatsapp-fab span { display: none; }
}

.placeholder-img {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #E2E8F0, #CBD5E1);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-align: center;
  padding: var(--s-3);
}
