/* ============================================================
   Zen Câlin — Feuille de style principale (mobile-first)
   Marque : Zen Câlin — « Le bien-être de votre animal »
   Couleurs : teal #2A9D8F (bien-être), corail #E76F51 (CTA),
             encre #264653, fond crème #FAF8F3
   ============================================================ */

:root {
  --teal: #2A9D8F;
  --teal-dark: #21867A;
  --teal-soft: #E4F2F0;
  --coral: #E76F51;
  --coral-dark: #D05A3E;
  --ink: #264653;
  --ink-soft: #4A6270;
  --bg: #FAF8F3;
  --white: #FFFFFF;
  --line: #E6E0D4;
  --star: #F4A261;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(38, 70, 83, 0.08);
  --shadow-lg: 0 8px 28px rgba(38, 70, 83, 0.14);
  --maxw: 1100px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main { flex: 1 0 auto; }

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

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

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

.is-hidden { display: none !important; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 6px rgba(38, 70, 83, 0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 18px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand .brand-paw { font-size: 1.4rem; }

.site-nav { display: none; width: 100%; background: var(--white); border-top: 1px solid var(--line); }
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; display: flex; flex-direction: column; }
.site-nav a {
  display: block;
  padding: 12px 18px;
  color: var(--ink);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}
.site-nav a:hover { background: var(--teal-soft); text-decoration: none; }
.site-nav a.is-active { color: var(--teal-dark); background: var(--teal-soft); }

.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.cart-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 0.9rem;
}
.cart-link:hover { background: var(--teal-dark); text-decoration: none; }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  background: var(--coral);
  color: var(--white);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 1.1rem;
  cursor: pointer;
  color: var(--ink);
}

@media (min-width: 860px) {
  .nav-toggle { display: none; }
  .site-nav { display: block !important; width: auto; border-top: none; }
  .site-nav ul { flex-direction: row; gap: 4px; }
  .site-nav a { border-bottom: none; padding: 8px 14px; border-radius: 8px; }
  .header-inner { gap: 24px; }
  .header-actions { margin-left: 0; }
}

/* ---------- Hero (accueil) ---------- */
.hero {
  background: linear-gradient(160deg, var(--teal-soft) 0%, #F6EDD9 100%);
  padding: 48px 0 40px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(1.7rem, 4.5vw, 2.6rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  max-width: 18ch;
  margin: 0 auto 14px;
}
.hero p.lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 auto 26px;
}
.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .hero-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-block;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 1rem;
  padding: 13px 26px;
  border-radius: 999px;
  transition: background 0.15s ease, transform 0.05s ease, box-shadow 0.15s ease;
  text-align: center;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--coral); color: var(--white); box-shadow: 0 4px 14px rgba(231, 111, 81, 0.35); }
.btn-primary:hover { background: var(--coral-dark); }
.btn-secondary { background: var(--teal); color: var(--white); }
.btn-secondary:hover { background: var(--teal-dark); }
.btn-ghost { background: var(--white); color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal-dark); }
.btn-lg { padding: 15px 34px; font-size: 1.05rem; }
.btn-block { display: block; width: 100%; }
.btn:disabled, .btn.is-disabled { background: #B9C2C0; box-shadow: none; cursor: not-allowed; transform: none; }
.btn.is-added { background: #57A773 !important; box-shadow: none; }

/* ---------- USP band ---------- */
.usp-band {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  padding: 26px 0;
}
.usp {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.usp .usp-icon { font-size: 1.6rem; display: block; margin-bottom: 6px; }
.usp strong { display: block; font-size: 0.98rem; }
.usp small { color: var(--ink-soft); }

/* ---------- Sections ---------- */
.section { padding: 40px 0; }
.section-title {
  font-size: clamp(1.3rem, 3vw, 1.7rem);
  letter-spacing: -0.01em;
  margin-bottom: 22px;
  text-align: center;
}
.section-sub { text-align: center; color: var(--ink-soft); margin: -14px auto 26px; max-width: 60ch; }

/* ---------- Cartes produit ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}
.product-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.product-card .thumb { aspect-ratio: 1/1; background: #F1EDE3; display: flex; align-items: center; justify-content: center; }
.product-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card .card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-card h3 { font-size: 1rem; line-height: 1.35; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--teal-dark); text-decoration: none; }
.product-card .card-desc { font-size: 0.86rem; color: var(--ink-soft); flex: 1; }
.product-card .card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.price { font-weight: 800; font-size: 1.12rem; color: var(--ink); }
.price small { font-weight: 600; color: var(--ink-soft); font-size: 0.8rem; }
.compare-price { text-decoration: line-through; color: #A9B4B0; font-weight: 600; font-size: 0.85rem; }
.badge {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 3px 9px;
  border-radius: 999px;
  align-self: flex-start;
}
.btn-sm { padding: 9px 16px; font-size: 0.88rem; }

/* ---------- Page produit ---------- */
.product-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 26px;
  padding: 30px 0 44px;
}
@media (min-width: 860px) {
  .product-layout { grid-template-columns: 1fr 1fr; gap: 40px; }
}
.product-gallery { background: #F1EDE3; border-radius: var(--radius); overflow: hidden; }
.product-gallery img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.product-info h1 { font-size: clamp(1.4rem, 3.5vw, 2rem); line-height: 1.2; margin: 8px 0 10px; }
.product-info .tagline { color: var(--ink-soft); font-size: 1.02rem; margin-bottom: 12px; }
.price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.price-row .price { font-size: 1.7rem; }
.qty-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.qty-label { font-weight: 600; }
.qty-control { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--white); }
.qty-control button {
  background: none; border: none; font-size: 1.15rem; font-weight: 700;
  width: 40px; height: 40px; cursor: pointer; color: var(--ink);
}
.qty-control button:hover { background: var(--teal-soft); color: var(--teal-dark); }
.qty-control input {
  width: 48px; border: none; text-align: center; font-size: 1rem; font-weight: 700;
  font-family: inherit; color: var(--ink); -moz-appearance: textfield;
}
.qty-control input::-webkit-outer-spin-button,
.qty-control input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.buy-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.buy-row .btn { flex: 1; min-width: 200px; }

.shipping-note {
  background: var(--teal-soft);
  color: var(--teal-dark);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 24px;
}

.trust-strip { display: flex; gap: 16px; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 26px; }

.accordion { border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); overflow: hidden; }
.accordion details { border-bottom: 1px solid var(--line); }
.accordion details:last-child { border-bottom: none; }
.accordion summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: "+"; font-size: 1.2rem; color: var(--teal); }
.accordion details[open] summary::after { content: "–"; }
.accordion .acc-body { padding: 0 16px 16px; color: var(--ink-soft); font-size: 0.95rem; }
.accordion .acc-body ul { padding-left: 20px; margin-top: 8px; }

.breadcrumb { font-size: 0.85rem; color: var(--ink-soft); padding: 18px 0 0; }
.breadcrumb a { color: var(--teal-dark); }

/* ---------- Panier ---------- */
.cart-layout { display: grid; grid-template-columns: 1fr; gap: 26px; padding: 30px 0 50px; }
@media (min-width: 900px) {
  .cart-layout { grid-template-columns: 1.6fr 1fr; align-items: start; }
}
.cart-items { display: flex; flex-direction: column; gap: 12px; }
.cart-item {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: grid;
  grid-template-columns: 76px 1fr auto;
  gap: 14px;
  align-items: center;
  box-shadow: var(--shadow);
}
.cart-item img { width: 76px; height: 76px; object-fit: cover; border-radius: 10px; background: #F1EDE3; }
.cart-item .ci-name { font-weight: 700; font-size: 0.95rem; }
.cart-item .ci-price { color: var(--ink-soft); font-size: 0.85rem; }
.cart-item .ci-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.cart-item .ci-total { font-weight: 800; }
.cart-item .ci-remove { background: none; border: none; color: var(--coral); font-size: 0.82rem; font-weight: 600; cursor: pointer; text-decoration: underline; }

.cart-summary {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 84px;
}
.cart-summary h2 { font-size: 1.15rem; margin-bottom: 14px; }
.sum-line { display: flex; justify-content: space-between; padding: 7px 0; font-size: 0.95rem; }
.sum-line.total { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.15rem; }
.sum-line .free { color: #2E8B57; font-weight: 700; }
.sum-cta { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.shipping-progress { margin: 12px 0; }
.shipping-progress .sp-text { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 6px; font-weight: 600; }
.shipping-progress .sp-text strong { color: var(--teal-dark); }
.shipping-progress .sp-bar { height: 8px; background: var(--line); border-radius: 999px; overflow: hidden; }
.shipping-progress .sp-fill { height: 100%; background: linear-gradient(90deg, var(--teal), #57A773); border-radius: 999px; transition: width 0.3s ease; }

.empty-state { text-align: center; padding: 60px 20px; }
.empty-state .empty-emoji { font-size: 3rem; display: block; margin-bottom: 12px; }
.empty-state h2 { margin-bottom: 8px; }
.empty-state p { color: var(--ink-soft); margin-bottom: 22px; }

/* ---------- Checkout ---------- */
.checkout-wrap { max-width: 760px; margin: 0 auto; padding: 30px 0 50px; }
.checkout-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 18px;
}
.checkout-card h2 { font-size: 1.15rem; margin-bottom: 14px; }
.recap-line { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; font-size: 0.95rem; }
.recap-line small { color: var(--ink-soft); }
.recap-line--total { font-weight: 700; }
.recap-line--grand { border-top: 1.5px solid var(--line); margin-top: 8px; padding-top: 12px; font-weight: 800; font-size: 1.2rem; }
.recap-free { color: #2E8B57; font-weight: 700; }
.order-ref { font-size: 0.85rem; color: var(--ink-soft); }
.pay-note {
  background: #FFF6E5;
  border: 1px solid #F0DCA8;
  color: #7A5B1E;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 0.9rem;
  margin-top: 14px;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }

/* ---------- Textes légaux / CGV ---------- */
.legal { max-width: 780px; margin: 0 auto; padding: 30px 0 50px; }
.legal h1 { font-size: 1.6rem; margin-bottom: 6px; }
.legal .updated { color: var(--ink-soft); font-size: 0.85rem; margin-bottom: 22px; }
.legal h2 { font-size: 1.1rem; margin: 26px 0 10px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 0.95rem; }
.legal ul { padding-left: 22px; margin: 8px 0; }

/* ---------- Témoignages ---------- */
.testimonials { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.testimonial {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.testimonial .stars { color: var(--star); letter-spacing: 2px; margin-bottom: 8px; }
.testimonial p { font-size: 0.92rem; color: var(--ink-soft); }
.testimonial .author { margin-top: 10px; font-weight: 700; font-size: 0.85rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #CFD9DC; margin-top: 40px; }
.site-footer a { color: #E8EEF0; }
.site-footer a:hover { color: var(--white); }
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  padding: 34px 0 20px;
}
.footer-grid h3 { color: var(--white); font-size: 0.95rem; margin-bottom: 10px; }
.footer-grid ul { list-style: none; }
.footer-grid li { margin-bottom: 6px; font-size: 0.9rem; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 14px 0;
  font-size: 0.82rem;
  color: #93A7AE;
  text-align: center;
}
