/* ============================================================
   Boutique publique - mobile-first
   ============================================================ */

/* Header public */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-logo { height: 36px; width: auto; max-width: 200px; object-fit: contain; }
.site-logo-text { color: var(--color-text); }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  gap: 16px;
}
.site-header__logo {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -.01em;
}
.site-header__nav {
  display: none;
  gap: 20px;
  font-size: 14px;
  font-weight: 500;
}
.site-header__nav a:hover { color: var(--color-accent); }

.site-header__actions {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}
.header-icon {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--color-text);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}
.header-icon:hover {
  background: color-mix(in srgb, var(--color-text) 6%, transparent);
  color: var(--color-primary);
}
.cart-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
  min-width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
@media (min-width: 768px) {
  .site-header__inner { height: 64px; }
  .site-header__nav { display: flex; }
}

/* Hero */
.hero {
  padding: 32px 0;
  text-align: center;
}
.hero h1 {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -.01em;
}
.hero p {
  color: var(--color-text-muted);
  font-size: 15px;
}
@media (min-width: 768px) {
  .hero { padding: 56px 0; }
  .hero h1 { font-size: 36px; }
  .hero p { font-size: 17px; }
}

/* Catégories cards */
.cat-scroller {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 8px 0 16px;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cat-scroller::-webkit-scrollbar { display: none; }
.cat-card {
  flex: 0 0 auto;
  padding: 12px 20px;
  background: var(--color-surface);
  border-radius: 999px;
  font-weight: 500;
  font-size: 14px;
  white-space: nowrap;
  border: 1px solid transparent;
  transition: background .15s;
}
.cat-card:hover { background: var(--color-surface-alt, var(--color-border)); }
.cat-card.active { background: var(--color-primary); color: var(--color-on-primary, #fff); }

/* Section title */
.section-title {
  font-size: 20px;
  font-weight: 600;
  margin: 24px 0 16px;
}
@media (min-width: 768px) {
  .section-title { font-size: 24px; margin: 40px 0 20px; }
}

/* Grille produits */
.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}
@media (min-width: 768px) {
  .products-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }
}
@media (min-width: 1024px) {
  .products-grid { grid-template-columns: repeat(4, 1fr); }
}

.product-card {
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform .15s, box-shadow .15s;
  color: var(--color-text);
}
.product-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.product-card__img {
  aspect-ratio: 1 / 1;
  background: var(--color-surface-alt, var(--color-surface));
  overflow: hidden;
}
.product-card__img img {
  width: 100%; height: 100%; object-fit: cover;
}
.product-card__body { padding: 10px 4px 0; }
.product-card__name {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card__price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.product-card__price .price {
  font-weight: 700;
  font-size: 15px;
}
.product-card__price .compare {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
@media (min-width: 768px) {
  .product-card__name { font-size: 15px; }
  .product-card__price .price { font-size: 16px; }
}

/* ============================================================
   Page produit
   ============================================================ */
/* padding-bottom mobile = 16px : la sticky CTA bar a son propre espace
   réservé via body:has(#productStickyCta) { padding-bottom: 110px } plus bas.
   Inutile de doubler ici. */
.product-page { padding: 16px 0 16px; }
@media (min-width: 768px) {
  .product-page {
    padding: 32px 0 48px;
  }
  .product-layout {
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 48px;
    align-items: start;
  }
}

/* Galerie */
.gallery { margin-bottom: 24px; }
.gallery__main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.gallery__main img {
  width: 100%; height: 100%; object-fit: cover;
  user-select: none;
}
.gallery__thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb {
  flex: 0 0 64px;
  width: 64px; height: 64px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  background: var(--color-surface);
  overflow: hidden;
  cursor: pointer;
  padding: 0;
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb.active { border-color: var(--color-primary); }

@media (min-width: 768px) {
  .gallery {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 12px;
    margin-bottom: 0;
  }
  .gallery__thumbs {
    flex-direction: column;
    margin-top: 0;
    order: -1;
  }
  .gallery__thumb { width: 80px; height: 80px; flex: 0 0 80px; }
}

/* Padding horizontal symétrique pour le contenu texte / CTA produit.
   Galerie + vignettes restent toujours full-bleed (image principale doit
   aller bord à bord), tout le reste reçoit ce padding pour respirer. */
:root { --product-content-px: 20px; }
@media (min-width: 768px) {
  :root { --product-content-px: 32px; }
}

.product-info > h1,
.product-info > .price-card-pro,
.product-info > .price-block,
.product-info > .urgency-stock,
.product-info > .product-short,
.product-info > .benefits-list,
.product-info > .product-cta-stack,
.product-info > .trust-line,
.product-info > .product-details,
.product-info > .accordion,
/* Quill content + sections rendues via markers : enfants directs de .container.product-page */
.container.product-page > .product-details,
.container.product-page > .urgency-timer-section,
.container.product-page > .social-proof-section,
.container.product-page > .before-after-section,
.container.product-page > .testimonials-section,
.container.product-page > .delivery-card-section,
.container.product-page > .faq-section,
.container.product-page > .about-section {
  padding-left: var(--product-content-px);
  padding-right: var(--product-content-px);
}

/* Info bloc */
.product-info h1 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -.01em;
  margin-bottom: 12px;
  line-height: 1.25;
}
.product-info .price-block {
  display: flex;
  gap: 12px;
  align-items: baseline;
  margin-bottom: 24px;
}
.product-info .price {
  font-size: 24px;
  font-weight: 700;
}
.product-info .compare {
  font-size: 16px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
@media (min-width: 768px) {
  .product-info h1 { font-size: 28px; }
  .product-info .price { font-size: 28px; }
}

/* Quantity */
.qty-row {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
}
.qty-row label {
  font-weight: 500;
  font-size: 14px;
}
.qty-stepper {
  display: inline-flex;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-stepper button {
  width: 40px; height: 44px;
  font-size: 18px;
  font-weight: 600;
  background: var(--color-surface);
  color: var(--color-text);
  transition: background .1s;
}
.qty-stepper button:hover { background: var(--color-surface-alt, var(--color-border)); }
.qty-stepper input {
  width: 48px; height: 44px;
  text-align: center;
  border: 0;
  border-left: 1px solid var(--color-border);
  border-right: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 15px;
  background: var(--color-surface);
  color: var(--color-text);
}
.qty-stepper input::-webkit-outer-spin-button,
.qty-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* CTA sticky mobile */
.product-cta {
  margin-top: 16px;
}
@media (max-width: 767px) {
  .product-cta-sticky {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    background: var(--color-surface);
    padding: 12px 16px;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 12px rgba(0,0,0,.06);
    z-index: 40;
  }
  .product-cta-sticky .btn { width: 100%; }
}

/* Short description */
.product-short {
  margin-top: 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--color-text);
  white-space: pre-line;
}

/* Accordéon */
.accordion {
  margin-top: 24px;
  border-top: 1px solid var(--color-border);
}
.accordion__item {
  border-bottom: 1px solid var(--color-border);
}
.accordion__btn {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  font-weight: 600;
  font-size: 15px;
  text-align: left;
}
.accordion__btn::after {
  content: "+";
  font-size: 20px;
  font-weight: 400;
  transition: transform .2s;
}
.accordion__item.open .accordion__btn::after {
  content: "−";
}
.accordion__body {
  display: none;
  padding: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--color-text-muted);
}
.accordion__item.open .accordion__body { display: block; }

/* Rendu détails produit (Quill HTML).
   Le padding horizontal vient de la règle .product-info > .product-details
   (--product-content-px) — on ne le redéfinit donc PAS ici. */
.product-details {
  max-width: 720px;
  margin: 24px auto 16px;
  line-height: 1.7;
  color: var(--color-text);
  font-size: 16px;
}
.product-details p { margin: 0 0 1.2em; }
.product-details p:last-child { margin-bottom: 0; }
.product-details strong, .product-details b { font-weight: 700; }
.product-details em, .product-details i { font-style: italic; }
.product-details u { text-decoration: underline; text-underline-offset: 3px; }
.product-details h1,
.product-details h2,
.product-details h3,
.product-details h4 {
  margin: 1.2em 0 0.5em;
  font-weight: 700;
  line-height: 1.3;
  color: var(--color-text);
}
.product-details ul,
.product-details ol {
  margin: 0.5em 0 1.2em;
  padding-left: 1.5em;
}
.product-details li { margin-bottom: 0.5em; }
.product-details li:last-child { margin-bottom: 0; }
.product-details a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}
.product-details a:hover { color: var(--color-primary-hover); }
.product-details img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1.5em 0;
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}
.product-details blockquote {
  margin: 1em 0;
  padding: 8px 16px;
  border-left: 3px solid var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
  color: var(--color-text);
  font-style: italic;
}
@media (max-width: 768px) {
  .product-details {
    font-size: 15px;
    line-height: 1.65;
  }
  .product-details img { margin: 1.2em 0; }
}

/* Related */
.related { margin-top: 56px; }
.related h2 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

/* ============================================================
   Cart
   ============================================================ */
/* Legacy cart CSS supprimé : remplacé par les styles modernes .cart-page,
   .cart-summary__row, .cart-item__* plus bas dans ce fichier (Phase B). */

/* =========================================
   Footer e-commerce (themed via CSS vars)
   ========================================= */
.site-footer {
  /* margin-top retiré : la section précédente fournit son propre padding-bottom.
     Évite une bande de body-bg visible entre une section colorée (ex: newsletter)
     et le footer. */
  background: var(--color-surface);
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  line-height: 1.6;
}

.footer-grid {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  padding: 36px 0 18px;
}
@media (min-width: 640px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 32px;
    padding: 40px 0 20px;
  }
}

/* Sur mobile : tout est centré, avec respiration entre les blocs */
.footer-col { text-align: center; }
@media (min-width: 640px) {
  .footer-col { text-align: left; }
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
@media (min-width: 640px) {
  .footer-col--brand { align-items: flex-start; }
}
.footer-col--brand .footer-brand-logo,
.footer-col--brand .footer-brand-name {
  display: inline-block;
  text-decoration: none;
  color: var(--color-text);
  font-weight: 700;
  font-size: 20px;
}
.footer-col--brand .footer-brand-logo img {
  max-height: 56px;
  max-width: 180px;
  display: block;
}

/* Adresse centrée sur sa propre ligne, sous la grille */
.footer-address-row {
  text-align: center;
  padding: 6px 0 18px;
  color: var(--color-text-muted);
  font-size: 14px;
}
.footer-address-row span { margin-right: 4px; }

.footer-h {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--color-text-muted);
  margin: 0 0 14px;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-list a {
  color: var(--color-text);
  text-decoration: none;
  transition: color .15s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.footer-list a:hover { color: var(--color-primary); }

/* Bandeau bas */
.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding: 18px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--color-text-muted);
  text-align: center;
}
@media (min-width: 640px) {
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.footer-copy { margin: 0; }
.footer-tag  { margin: 0; opacity: .8; }

/* =========================================
   Pages légales (CGV / confidentialité / etc.)
   ========================================= */
.legal-page {
  max-width: 760px;
  margin: 32px auto 64px;
  padding: 0 20px;
  color: var(--color-text);
  line-height: 1.7;
}
.legal-page .legal-header {
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border);
}
.legal-page h1 {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  letter-spacing: -.01em;
  line-height: 1.2;
}
.legal-page .legal-updated {
  color: var(--color-text-muted);
  font-size: 13px;
  margin: 0;
}
.legal-page section { margin-bottom: 28px; }
.legal-page h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--color-text);
}
.legal-page p { margin: 0 0 10px; }
.legal-page ul,
.legal-page ol {
  padding-left: 1.4em;
  margin: 0 0 12px;
}
.legal-page li { margin-bottom: 6px; }
.legal-page a {
  color: var(--color-primary);
  text-decoration: underline;
  text-underline-offset: 3px;
  word-break: break-word;
}
.legal-page a:hover { color: var(--color-primary-hover); }
.legal-page .legal-callout {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-radius: 10px;
  padding: 14px 18px;
  margin-bottom: 28px;
}
.legal-page .legal-callout p { margin: 0; }
.legal-page .legal-contact {
  margin-top: 36px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
  font-size: 14px;
  color: var(--color-text-muted);
}
@media (max-width: 600px) {
  .legal-page { margin: 20px auto 48px; padding: 0 16px; }
  .legal-page h1 { font-size: 24px; }
  .legal-page h2 { font-size: 16px; }
}

/* ============================================================
   Conversion boosters : stars, reviews, benefits, badges, category
   ============================================================ */

/* === Stars === */
.stars {
  display: inline-flex;
  gap: 2px;
  vertical-align: middle;
  letter-spacing: 1px;
  line-height: 1;
}
.stars-sm { font-size: 14px; }
.stars-md { font-size: 18px; }
.stars-lg { font-size: 24px; }
.star-full  { color: #f59e0b; }
.star-half  { color: #f59e0b; opacity: .55; }
.star-empty { color: #d1d5db; }

/* Rating link sous le prix */
.price-rating {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: 4px;
  text-decoration: none;
}

/* === Benefits === */
.benefits-list {
  list-style: none;
  margin: 16px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.benefits-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 12px;
  background: #f0fdf4;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: #166534;
  line-height: 1.4;
}
.benefits-check {
  color: #16a34a;
  font-weight: 700;
  flex-shrink: 0;
}

/* === Reassurance badges === */
.reassurance-badges {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 20px 0 8px;
  padding: 14px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
}
.reassurance-badges .badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
}
.reassurance-badges .badge-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.reassurance-badges .badge-text {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
}
@media (min-width: 768px) {
  .reassurance-badges { grid-template-columns: repeat(4, 1fr); }
}

/* === Reviews === */
.reviews-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--color-border);
}
.reviews-section h2 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 16px;
}
.reviews-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  margin-bottom: 20px;
}
.reviews-avg {
  font-size: 22px;
  font-weight: 700;
}
.reviews-count {
  color: var(--color-text-muted);
  font-size: 14px;
}
.reviews-list { margin-bottom: 24px; }
.review-card {
  padding: 16px 0;
  border-bottom: 1px solid var(--color-border);
}
.review-card:last-child { border-bottom: 0; }
.review-header {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}
.review-city { font-size: 13px; }
.review-comment {
  margin: 8px 0;
  line-height: 1.55;
  font-size: 14.5px;
}
.review-image {
  max-width: 220px;
  border-radius: var(--radius-sm);
  margin-top: 8px;
}
.review-date { font-size: 12px; }
.reviews-empty {
  padding: 24px 0;
  text-align: center;
}

/* Formulaire avis */
.review-form-toggle {
  margin-top: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.review-form-toggle summary {
  list-style: none;
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 600;
  font-size: 15px;
  background: var(--color-surface);
}
.review-form-toggle summary::-webkit-details-marker { display: none; }
.review-form-toggle[open] summary { border-bottom: 1px solid var(--color-border); }
.review-form {
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 500;
  font-size: 14px;
}
.review-form input[type="text"],
.review-form input[type="file"],
.review-form textarea {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
}
.review-form textarea { resize: vertical; min-height: 96px; }
.review-form button[type="submit"] { align-self: flex-start; }

/* Star rating input */
.rating-input {
  display: inline-flex;
  flex-direction: row-reverse;
  justify-content: flex-end;
  gap: 4px;
}
.rating-input input { display: none; }
.rating-input > label {
  font-size: 30px;
  color: #d1d5db;
  cursor: pointer;
  transition: color .15s;
  line-height: 1;
  padding: 0 2px;
}
.rating-input input:checked ~ label,
.rating-input > label:hover,
.rating-input > label:hover ~ label {
  color: #f59e0b;
}

.review-success {
  background: #d1fae5;
  color: #065f46;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-weight: 500;
}

/* === Category hero === */
.category-hero {
  position: relative;
  height: 200px;
  border-radius: var(--radius-md);
  overflow: hidden;
  margin: 16px 0 24px;
}
.category-hero img {
  width: 100%; height: 100%; object-fit: cover;
}
.category-hero-content {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,.05), rgba(0,0,0,.55));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}
.category-hero-content h1 {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 6px;
  text-shadow: 0 1px 4px rgba(0,0,0,.4);
}
.category-hero-content p {
  font-size: 14px;
  opacity: .95;
  margin: 0;
  text-shadow: 0 1px 3px rgba(0,0,0,.4);
}
@media (min-width: 768px) {
  .category-hero { height: 320px; }
  .category-hero-content { padding: 32px; }
  .category-hero-content h1 { font-size: 36px; }
  .category-hero-content p { font-size: 16px; }
}

/* === Categories grid homepage === */
.categories-grid { margin-bottom: 32px; }
.cats-list {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.cats-list::-webkit-scrollbar { display: none; }
.category-card {
  flex: 0 0 130px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  scroll-snap-align: start;
  transition: transform .15s;
}
.category-card:hover { transform: translateY(-2px); }
.category-card img,
.category-card-placeholder {
  width: 130px;
  height: 130px;
  border-radius: var(--radius-md);
  object-fit: cover;
}
.category-card-placeholder {
  background: var(--color-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
}
.category-card span {
  font-weight: 500;
  font-size: 13px;
  text-align: center;
  color: var(--color-text);
}
@media (min-width: 1024px) {
  .cats-list {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: visible;
  }
  .category-card { flex: unset; }
  .category-card img,
  .category-card-placeholder {
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
  }
  .category-card span { font-size: 14px; }
}

/* Confirmation */
.confirmation {
  max-width: 520px;
  margin: 48px auto;
  padding: 32px 24px;
  text-align: center;
  background: var(--color-surface);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.confirmation .icon {
  width: 64px; height: 64px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-on-accent, #fff);
  display: flex; align-items: center; justify-content: center;
  font-size: 32px;
}
.confirmation h1 {
  font-size: 22px;
  margin-bottom: 8px;
}
.confirmation p { color: var(--color-text-muted); margin-bottom: 8px; }
.confirmation .order-num {
  font-weight: 700;
  color: var(--color-text);
  font-size: 18px;
  margin: 16px 0;
}

/* =========================================
   Modal de commande directe (mobile-first)
   ========================================= */
.order-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.order-modal[hidden] { display: none; }

.order-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.order-modal-content {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 16px 16px 0 0;
  padding: 24px 20px 32px;
  box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.2);
  animation: orderModalSlideUp 280ms ease-out;
  -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
  .order-modal { align-items: center; }
  .order-modal-content {
    border-radius: 16px;
    padding: 32px;
    max-height: 88vh;
  }
}

@keyframes orderModalSlideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.order-modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  font-size: 20px;
  color: var(--color-text-muted);
  cursor: pointer;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.order-modal-close:hover {
  background: color-mix(in srgb, var(--color-text) 8%, transparent);
  color: var(--color-text);
}

.order-modal-content h2 {
  font-size: 22px;
  margin: 0 0 4px;
  color: var(--color-text);
}
.modal-product-name {
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 0 0 20px;
}

/* Variantes radios */
.variants-fieldset {
  border: none;
  padding: 0;
  margin: 0 0 20px;
}
.variants-fieldset legend {
  padding: 0;
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-text-muted);
  margin-bottom: 10px;
}
.variant-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 2px solid var(--color-border);
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease;
  background: var(--color-bg, var(--color-surface));
}
.variant-option:hover { border-color: var(--color-text-muted); }
.variant-option:has(input:checked) {
  border-color: var(--color-primary);
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}
.variant-option input[type="radio"] {
  margin: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}
.variant-thumb {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--color-border);
  display: block;
}
.variant-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.variant-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.variant-content strong {
  color: var(--color-text);
  font-size: 15px;
}
.variant-prices {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}
.variant-prices .price {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-primary);
}
.variant-prices .compare-at {
  font-size: 14px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.variant-prices .discount-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: var(--badge-discount-bg, #ef4444);
  color: #fff;
  border-radius: 4px;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.variants-fallback {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px;
  border: 2px solid var(--color-primary);
  border-radius: 10px;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--color-primary) 6%, transparent);
}
.variants-fallback > strong { color: var(--color-text); }

/* Champs du modal */
.order-modal-content .form-group { margin-bottom: 14px; }
.order-modal-content .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
.order-modal-content .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px; /* anti-zoom iOS */
  background: var(--color-bg, var(--color-surface));
  color: var(--color-text);
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.order-modal-content .form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}

.commitment-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 16px 0 20px;
  padding: 14px;
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--color-primary) 20%, transparent);
  border-radius: 8px;
  font-size: 14px;
  line-height: 1.5;
  color: var(--color-text);
  cursor: pointer;
}
.commitment-checkbox input[type="checkbox"] {
  margin: 3px 0 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary);
  flex-shrink: 0;
}

.btn-order-submit {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  border: none;
  border-radius: var(--radius-cta, 10px);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 200ms ease, opacity 200ms ease, box-shadow 200ms ease;
  font-family: inherit;
}
.btn-order-submit:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: var(--cta-glow, 0 6px 14px rgba(0,0,0,.18));
}
.btn-order-submit:disabled { opacity: 0.6; cursor: wait; }

/* Lock scroll quand modal open */
body.modal-open { overflow: hidden; }

/* =========================================
   Page /merci.php
   ========================================= */
.merci-card {
  max-width: 560px;
  margin: 40px auto;
  padding: 32px 24px;
  background: var(--color-surface);
  color: var(--color-text);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.merci-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: #10b981;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
}
.merci-card h1 {
  font-size: 24px;
  margin: 0 0 8px;
  color: var(--color-text);
}
.merci-lead {
  color: var(--color-text-muted);
  margin: 0 0 24px;
}
.merci-summary {
  text-align: left;
  background: var(--color-bg, color-mix(in srgb, var(--color-text) 4%, transparent));
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
}
.merci-summary .summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--color-border);
  font-size: 14px;
}
.merci-summary .summary-row:last-child { border-bottom: none; }
.merci-summary .summary-row span:first-child { color: var(--color-text-muted); }
.merci-summary .total-amount {
  color: var(--color-primary);
  font-size: 18px;
  font-weight: 700;
}
.merci-next-steps {
  text-align: left;
  margin-bottom: 28px;
}
.merci-next-steps h2 {
  font-size: 16px;
  margin: 0 0 12px;
  color: var(--color-text);
}
.merci-next-steps ol {
  padding-left: 20px;
  line-height: 1.8;
  color: var(--color-text);
  margin: 0;
}
.merci-next-steps ol li { margin-bottom: 6px; }
.btn-back-home {
  display: inline-block;
  padding: 14px 28px;
  background: var(--color-primary);
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  transition: background 200ms ease;
}
.btn-back-home:hover { background: var(--color-primary-hover); }

@media (max-width: 600px) {
  .merci-card { margin: 20px 12px; padding: 24px 18px; }
  .merci-card h1 { font-size: 20px; }
}

/* =========================================
   HOMEPAGE — Hero
   ========================================= */
.home-hero {
  background: var(--hero-bg, linear-gradient(135deg, var(--color-primary) 0%, color-mix(in srgb, var(--color-primary) 80%, #000) 100%));
  color: #fff;
  padding: 48px 0 56px;
  text-align: center;
}
.home-hero__inner { padding: 0 16px; }
.home-hero__title {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 12px;
  color: #fff;
}
.home-hero__subtitle {
  margin: 0 auto 24px;
  max-width: 560px;
  font-size: 16px;
  line-height: 1.5;
  opacity: 0.95;
  color: #fff;
}
.home-hero__cta {
  display: inline-block;
  background: #fff;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: var(--radius-cta, 999px);
  text-decoration: none;
  box-shadow: 0 4px 18px rgba(0,0,0,0.12);
  transition: transform .15s ease, box-shadow .15s ease;
}
.home-hero__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 22px rgba(0,0,0,0.22);
}
@media (min-width: 768px) {
  .home-hero { padding: 72px 0 88px; }
  .home-hero__title { font-size: 52px; }
  .home-hero__subtitle { font-size: 18px; }
}

/* =========================================
   HOMEPAGE — Réassurance
   ========================================= */
.home-trust {
  padding: 36px 0 12px;
  background: var(--color-bg, var(--color-surface));
}
.trust-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  text-align: center;
}
@media (min-width: 700px) {
  .trust-row { grid-template-columns: repeat(3, 1fr); gap: 28px; }
}
.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 12px;
}
.trust-icon {
  font-size: 32px;  /* fallback emoji size */
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--color-primary); /* SVG via currentColor → suit le thème */
}
.trust-icon svg {
  width: 44px;
  height: 44px;
  display: block;
}
/* Si fallback emoji : on remet un petit cercle teinté pour ne pas avoir
   un emoji nu (sans cadre) au milieu de la page. */
.trust-icon:not(:has(svg)) {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 10%, transparent);
}
.trust-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--color-text);
  margin-bottom: 4px;
}
.trust-sub {
  font-size: 13px;
  color: var(--color-text-muted);
}

/* =========================================
   HOMEPAGE — Sections génériques
   ========================================= */
.home-section {
  padding: 48px 0;
}
.home-section__title {
  font-size: 26px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 6px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.home-section__subtitle {
  text-align: center;
  margin: 0 auto 28px;
  color: var(--color-text-muted);
  font-size: 15px;
  max-width: 480px;
}
@media (min-width: 768px) {
  .home-section__title { font-size: 32px; }
}

/* =========================================
   HOMEPAGE — Catégories (image + overlay nom)
   ========================================= */
.home-categories-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) {
  .home-categories-grid { grid-template-columns: repeat(4, 1fr); }
}
.home-cat-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-card, 8px);
  overflow: hidden;
  background: var(--color-surface);
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.home-cat-card:hover {
  transform: translateY(var(--card-hover-lift, -2px));
  box-shadow: var(--card-hover-shadow, 0 8px 24px rgba(0,0,0,.14));
}
.home-cat-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-cat-card__placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  background: var(--color-surface);
}
.home-cat-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.55) 0%, rgba(0,0,0,0) 50%);
  pointer-events: none;
}
.home-cat-card__name {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
  z-index: 1;
  text-align: center;
}

/* =========================================
   HOMEPAGE — Produits vedettes
   ========================================= */
.home-products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 700px) {
  .home-products-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
}
@media (min-width: 1024px) {
  .home-products-grid { grid-template-columns: repeat(4, 1fr); }
}
.featured-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card, 8px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.featured-card:hover {
  transform: translateY(var(--card-hover-lift, -2px));
  box-shadow: var(--card-hover-shadow, 0 10px 28px rgba(0,0,0,.10));
}
.featured-card__img {
  display: block;
  aspect-ratio: 1 / 1;
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
  overflow: hidden;
}
.featured-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.featured-card__body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
}
.featured-card__name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.3;
  color: var(--color-text);
  text-decoration: none;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card__name:hover { color: var(--color-primary); }
.featured-card__desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.4;
  color: var(--color-text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.featured-card__price {
  display: flex;
  gap: 8px;
  align-items: baseline;
  flex-wrap: wrap;
}
.featured-card__price .price {
  font-size: 17px;
  font-weight: 700;
  color: var(--color-text);
}
.featured-card__price .compare {
  font-size: 13px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.featured-card__cta {
  margin-top: auto;
  display: block;
  text-align: center;
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  font-weight: 700;
  padding: 11px 14px;
  border-radius: var(--radius-cta, 6px);
  text-decoration: none;
  font-size: 14px;
  transition: background .15s ease, box-shadow .15s ease, transform .1s ease;
}
.featured-card__cta:hover {
  background: var(--color-primary-hover);
  color: var(--color-on-primary, #fff);
  box-shadow: var(--cta-glow, 0 6px 14px rgba(0,0,0,.15));
}

/* =========================================
   HOMEPAGE — Newsletter
   ========================================= */
.home-newsletter {
  padding: 48px 0 64px;
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg, var(--color-surface)));
}
.newsletter-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding: 0 16px;
}
.newsletter-title {
  font-size: 26px;
  font-weight: 800;
  margin: 0 0 8px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
.newsletter-sub {
  color: var(--color-text-muted);
  margin: 0 0 24px;
  font-size: 15px;
}
.newsletter-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.newsletter-form input[type="email"] {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  font-size: 16px;     /* anti-zoom iOS */
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  text-align: center;
  -webkit-appearance: none;
  appearance: none;
}
.newsletter-form input[type="email"]:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.newsletter-form button {
  width: 100%;
  padding: 14px 18px;
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  border: none;
  border-radius: var(--radius-cta, 10px);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, opacity .15s ease, box-shadow .15s ease;
}
.newsletter-form button:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: var(--cta-glow, 0 6px 14px rgba(0,0,0,.18));
}
.newsletter-form button:disabled {
  opacity: 0.6;
  cursor: wait;
}
.newsletter-msg {
  margin: 14px 0 0;
  font-size: 14px;
  padding: 10px 14px;
  border-radius: 8px;
}
.newsletter-msg.is-ok {
  background: color-mix(in srgb, #10b981 12%, transparent);
  color: #047857;
  border: 1px solid color-mix(in srgb, #10b981 30%, transparent);
}
.newsletter-msg.is-error {
  background: color-mix(in srgb, #ef4444 12%, transparent);
  color: #b91c1c;
  border: 1px solid color-mix(in srgb, #ef4444 30%, transparent);
}

/* =========================================
   PRODUCT PAGE — Price card pro + urgency
   ========================================= */
.product-title {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 16px;
}
@media (min-width: 768px) {
  .product-title { font-size: 30px; }
}

.price-card-pro {
  background: color-mix(in srgb, var(--color-primary) 8%, var(--color-bg, var(--color-surface)));
  border: 1px solid color-mix(in srgb, var(--color-primary) 18%, transparent);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 14px;
}
.price-card-pro__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.price-card-pro__prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
.price-card-pro__price {
  font-size: 30px;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: -0.01em;
  line-height: 1;
}
.price-card-pro__compare {
  font-size: 18px;
  color: var(--color-text-muted);
  text-decoration: line-through;
}
.price-card-pro__discount {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 10px;
  background: var(--badge-discount-bg, #ef4444);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  border-radius: 4px;
}
.price-card-pro__hint {
  margin-top: 6px;
  font-size: 13px;
  color: var(--color-primary);
  font-weight: 500;
}

.urgency-stock {
  margin: 0 0 14px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--color-text);
  background: color-mix(in srgb, #f59e0b 14%, transparent);
  border-left: 3px solid #f59e0b;
  border-radius: 6px;
}

.product-cta-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 18px 0 14px;
}
.btn-order-primary {
  width: 100%;
  padding: 16px;
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  border: none;
  border-radius: var(--radius-cta, 999px);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
}
.btn-order-primary:hover:not(:disabled) {
  background: var(--color-primary-hover);
  box-shadow: var(--cta-glow, 0 6px 14px rgba(0,0,0,.18));
}
.btn-order-primary:active { transform: translateY(1px); }

.btn-add-cart {
  width: 100%;
  padding: 14px;
  background: transparent;
  color: var(--color-primary);
  border: 1.5px solid var(--color-primary);
  border-radius: var(--radius-cta, 999px);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.15s;
}
.btn-add-cart:hover {
  background: color-mix(in srgb, var(--color-primary) 8%, transparent);
}

.trust-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 18px;
  margin: 8px 0 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}
.trust-line__item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.trust-line__check {
  color: #10b981;
  font-weight: 700;
}

/* =========================================
   Section : Urgency timer
   ========================================= */
.urgency-timer-section {
  margin: 28px auto;
  max-width: 720px;
  padding: 0 var(--product-content-px, 20px);
}
.urgency-timer {
  background: var(--timer-bg, linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%));
  color: #fff;
  text-align: center;
  padding: 18px 16px;
  border-radius: var(--radius-card, 12px);
  box-shadow: var(--card-hover-shadow, 0 6px 20px rgba(0,0,0,.18));
}
.urgency-timer__label {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.95;
}
.urgency-timer__clock {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}
.urgency-timer__sub {
  font-size: 14px;
  opacity: 0.9;
}

/* =========================================
   Section : Social proof (rating + stats)
   ========================================= */
.social-proof-section {
  margin: 32px auto;
  max-width: 720px;
  padding: 0 var(--product-content-px, 20px);
  text-align: center;
}
.social-proof-rating {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}
.social-proof-rating__text {
  font-size: 14px;
  color: var(--color-text);
}
.stat-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.stat-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 10px;
  padding: 18px 12px;
  text-align: center;
}
.stat-card__value {
  font-size: 26px;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1.1;
}
.stat-card__label {
  margin-top: 4px;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* =========================================
   Section : Before / After
   ========================================= */
.section-h2 {
  font-size: 22px;
  font-weight: 800;
  text-align: center;
  margin: 0 0 18px;
  color: var(--color-text);
  letter-spacing: -0.01em;
}
@media (min-width: 768px) { .section-h2 { font-size: 26px; } }

.before-after-section {
  margin: 36px auto;
  max-width: 720px;
  padding: 0 var(--product-content-px, 20px);
}

/* Wrapper slider (visible quand >1 paire) */
.before-after-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.ba-slider__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.ba-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
}
.before-after-slider .before-after {
  margin: 0;
}
.ba-slider__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  z-index: 2;
}
.ba-slider__nav--prev { left: 6px; }
.ba-slider__nav--next { right: 6px; }
.ba-slider__nav:hover {
  background: color-mix(in srgb, var(--color-text) 6%, var(--color-surface));
}
.ba-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.ba-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--color-text) 18%, transparent);
  cursor: pointer;
  padding: 0;
}
.ba-slider__dot.is-active { background: var(--color-primary); }

/* ============================================================
   Vitrine (showcase) — carousel d'images simples
   ============================================================ */
.showcase-section {
  margin: 36px auto;
  max-width: 720px;
  padding: 0 var(--product-content-px, 20px);
}
.showcase-slider {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.showcase-slide {
  flex: 0 0 100%;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
}
.showcase-slide img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
}

.before-after {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 12px;
}
.before-after__col {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
}
.before-after__col img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}
.before-after__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

/* =========================================
   Section : Testimonials slider
   ========================================= */
.testimonials-section {
  margin: 36px auto;
  max-width: 720px;
  padding: 0 var(--product-content-px, 20px);
}
.testimonials-slider {
  position: relative;
  /* overflow:hidden retiré ici — sinon il rognerait aussi les flèches qui
     dépassent à gauche/droite. L'overflow est désormais sur __viewport. */
}
.testimonials-slider__viewport {
  overflow: hidden;
  border-radius: 12px;
}
.testimonials-slider__track {
  display: flex;
  transition: transform 0.4s cubic-bezier(0.22, 0.61, 0.36, 1);
  will-change: transform;
}
.testimonial-card {
  flex: 0 0 100%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 18px;
  box-sizing: border-box;
}
.testimonial-card__head {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.testimonial-card__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-primary) 14%, transparent);
  color: var(--color-primary);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.testimonial-card__name {
  font-weight: 700;
  color: var(--color-text);
  font-size: 14px;
  margin-bottom: 2px;
}
.testimonial-card__comment {
  margin: 0;
  color: var(--color-text);
  line-height: 1.55;
  font-size: 14px;
}
.testimonial-card__photo {
  display: block;
  max-width: 100%;
  margin-top: 12px;
  border-radius: 8px;
}
.testimonials-slider__nav {
  position: absolute;
  /* top: 45% au lieu de 50% pour compenser le poids visuel concentré
     dans la partie haute de la card (avatar + nom + étoiles). */
  top: 45%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-size: 22px;
  line-height: 1;
  /* padding-bottom compense le baseline du chevron ‹ › qui le rend
     visuellement bas dans le cercle. Le flex align-items:center répartit
     ensuite le content sur l'espace réduit → glyphe remonte d'environ 2px. */
  padding-bottom: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  z-index: 2;
}
/* Flèches centrées pile sur l'arête gauche/droite de la card :
   demi-largeur (36/2 = 18px) hors du slider, demi-largeur dedans. */
.testimonials-slider__nav--prev { left: -18px; }
.testimonials-slider__nav--next { right: -18px; }
.testimonials-slider__nav:hover { background: color-mix(in srgb, var(--color-text) 6%, var(--color-surface)); }

.testimonials-slider__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
}
.testimonials-slider__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  border: none;
  background: color-mix(in srgb, var(--color-text) 18%, transparent);
  cursor: pointer;
  padding: 0;
}
.testimonials-slider__dot.is-active { background: var(--color-primary); }

/* Sur très petits écrans on conserve le même centrage : offset = -50% width.
   Pas d'override car les flèches restent 36px. */

/* =========================================
   Section : Delivery card
   ========================================= */
.delivery-card-section {
  margin: 36px auto;
  max-width: 720px;
  padding: 0 var(--product-content-px, 20px);
}
.delivery-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
}
.delivery-card__head {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 6px;
}
.delivery-card__sub {
  font-size: 14px;
  color: var(--color-text-muted);
}

/* =========================================
   Section : FAQ
   ========================================= */
.faq-section {
  margin: 36px auto;
  max-width: 720px;
  padding: 0 var(--product-content-px, 20px);
}
.faq-list {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  overflow: hidden;
}
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item:last-child { border-bottom: none; }
.faq-item__question {
  width: 100%;
  padding: 16px 18px;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--color-text);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.faq-item__icon {
  font-size: 22px;
  font-weight: 300;
  color: var(--color-text-muted);
  line-height: 1;
  transition: transform 0.2s;
}
.faq-item.is-open .faq-item__icon {
  transform: rotate(45deg);
  color: var(--color-primary);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 18px;
  color: var(--color-text-muted);
  font-size: 14px;
  line-height: 1.6;
  transition: max-height 0.3s ease, padding 0.3s ease;
}
.faq-item.is-open .faq-item__answer {
  max-height: 600px;
  padding: 0 18px 16px;
}

/* =========================================
   Section : À propos
   ========================================= */
.about-section {
  margin: 36px auto 12px;
  max-width: 720px;
  padding: 0 var(--product-content-px, 20px);
}
.about-text {
  color: var(--color-text-muted);
  line-height: 1.6;
  font-size: 15px;
  margin: 0;
}

/* =========================================
   Sticky bottom CTA (mobile)
   ========================================= */
.product-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
  padding: 8px 12px 12px;
  transform: translateY(0);
  transition: transform 0.25s ease;
}
.product-sticky-cta[hidden] {
  display: block;
  transform: translateY(110%);
  pointer-events: none;
}
.product-sticky-cta__inner {
  max-width: 720px;
  margin: 0 auto;
}
.product-sticky-cta__name {
  text-align: center;
  font-size: 13px;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.product-sticky-cta__btn { margin-top: 0; }
@media (min-width: 900px) {
  .product-sticky-cta { display: none; }
}
/* Pousse le contenu pour ne pas être caché par la sticky bar sur mobile */
/* Pages avec sticky CTA bas (page produit) : on pousse le contenu pour qu'il
   ne soit pas masqué par la barre. Sélecteur :has() permet de ne l'appliquer
   QUE quand un #productStickyCta est présent dans le DOM. */
@media (max-width: 899px) {
  body:has(#productStickyCta) { padding-bottom: 90px; }
}

/* =========================================
   CART page
   ========================================= */
.cart-page {
  padding: 24px 0 48px;
  max-width: 720px;
  margin: 0 auto;
}
.cart-page__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
  padding: 0 16px;
}
.cart-page__subtitle {
  font-size: 16px;
  font-weight: 700;
  margin: 24px 0 14px;
  color: var(--color-text);
}
.cart-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--color-text-muted);
}
.cart-empty .btn-order-primary {
  display: inline-block;
  width: auto;
  margin-top: 14px;
  text-decoration: none;
  padding: 14px 24px;
}

.cart-items {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 16px 18px;
}
.cart-item {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  padding: 12px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  align-items: center;
}
.cart-item__img {
  width: 72px;
  height: 72px;
  border-radius: 6px;
  overflow: hidden;
  background: color-mix(in srgb, var(--color-text) 4%, transparent);
}
.cart-item__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cart-item__body {
  min-width: 0;
}
.cart-item__name {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cart-item__name a { color: var(--color-text); text-decoration: none; }
.cart-item__name a:hover { color: var(--color-primary); }
.cart-item__qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  overflow: hidden;
  background: var(--color-bg, var(--color-surface));
}
.cart-item__qty button {
  width: 28px;
  height: 28px;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 700;
}
.cart-item__qty button:hover { background: color-mix(in srgb, var(--color-text) 6%, transparent); }
.cart-item__qty input {
  width: 36px;
  height: 28px;
  border: none;
  text-align: center;
  font-size: 13px;
  background: transparent;
  color: var(--color-text);
  -moz-appearance: textfield;
  appearance: textfield;
}
.cart-item__qty input::-webkit-outer-spin-button,
.cart-item__qty input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.cart-item__remove {
  display: inline-block;
  margin-left: 12px;
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 12px;
  text-decoration: underline;
  cursor: pointer;
  padding: 4px 0;
}
.cart-item__remove:hover { color: #ef4444; }
.cart-item__price {
  font-weight: 700;
  color: var(--color-text);
  white-space: nowrap;
}

.cart-summary {
  background: color-mix(in srgb, var(--color-primary) 6%, var(--color-surface));
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 0 16px;
}
.cart-summary__row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 14px;
  padding: 6px 0;
}
.cart-summary__row--total {
  border-top: 1px solid var(--color-border);
  padding-top: 10px;
  margin-top: 4px;
  font-size: 16px;
}
.cart-summary__row--total strong {
  color: var(--color-primary);
  font-size: 18px;
}

#cartCheckoutForm {
  padding: 0 16px;
}
#cartCheckoutForm .form-group { margin-bottom: 14px; }
#cartCheckoutForm .form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--color-text);
}
#cartCheckoutForm .form-group input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
#cartCheckoutForm .form-group input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
@media (max-width: 480px) {
  .cart-item {
    grid-template-columns: 60px 1fr;
    grid-template-areas:
      "img body"
      "price price";
    gap: 10px;
  }
  .cart-item__img   { grid-area: img; width: 60px; height: 60px; }
  .cart-item__body  { grid-area: body; }
  .cart-item__price { grid-area: price; justify-self: end; }
}

/* =========================================
   SEARCH page
   ========================================= */
.search-page {
  padding: 24px 16px 48px;
}
.search-page__title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 20px;
}
.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
}
.search-form__input {
  flex: 1;
  padding: 14px 16px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 16px;
  background: var(--color-surface);
  color: var(--color-text);
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}
.search-form__input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 20%, transparent);
}
.search-form__btn {
  padding: 0 18px;
  background: var(--color-primary);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
}
.search-form__btn:hover { background: var(--color-primary-hover); }
.search-page__count {
  color: var(--color-text-muted);
  margin-bottom: 18px;
  font-size: 14px;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Multi-item summary on merci page */
.summary-row--item {
  border-bottom: 1px dashed var(--color-border);
}
.summary-row--item:last-of-type { border-bottom: none; }

/* Optional field hint next to label */
.form-optional {
  font-weight: 400;
  color: var(--color-text-muted);
  font-size: 12px;
  margin-left: 4px;
}
