/* ===========================================
   Natural Probio France — SPA Styles
   Inspiré de bonjourdrink.co · Palette warm
   =========================================== */

:root {
  --cream: #fcfcd0;
  --cream-dark: #f6f4c8;
  --sand: #f4efd8;
  --ink: #121212;
  --ink-soft: #2a2a2a;
  --muted: #6b6b6b;
  --line: #e6e2c7;
  --white: #ffffff;
  --green: #3d7a4d;
  --green-dark: #245036;
  --coral: #e86a4f;
  --peach: #f4a261;
  --lilac: #c9b6e4;
  --radius: 18px;
  --radius-sm: 10px;
  --radius-lg: 28px;
  --shadow: 0 8px 30px rgba(0,0,0,.08);
  --shadow-lg: 0 20px 60px rgba(0,0,0,.15);
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --max: 1240px;
  --t: .3s ease;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 1rem; }
em { font-style: italic; font-family: var(--serif); font-weight: 400; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.container { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.center-mt { text-align: center; margin-top: 40px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-weight: 700; line-height: 1.1; letter-spacing: -.02em; color: var(--ink); }
h1 { font-size: clamp(2.4rem, 6vw, 4.8rem); }
h2 { font-size: clamp(1.8rem, 4.5vw, 3.2rem); }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); }

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  margin-bottom: 16px;
}
.eyebrow.center { display: inline-block; }

.stars { color: #f4b400; letter-spacing: 2px; font-size: .95rem; }
.lead { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; }

.section { padding: 100px 0; }
.section-cream { background: var(--sand); }
.section-head { text-align: center; max-width: 700px; margin: 0 auto 60px; }
.section-head p { color: var(--muted); margin-top: 12px; font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px 30px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .98rem;
  transition: all var(--t);
  white-space: nowrap;
  border: 2px solid transparent;
}
.btn-dark {
  background: var(--ink);
  color: var(--white);
}
.btn-dark:hover { background: var(--green-dark); transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-ghost:hover { background: var(--ink); color: var(--cream); }
.btn-light {
  background: var(--white);
  color: var(--ink);
  border-color: var(--line);
}
.btn-light:hover { background: var(--cream); }
.btn-block { width: 100%; }

/* ---------- Top bar (marquee) ---------- */
.top-bar {
  background: var(--ink);
  color: var(--cream);
  overflow: hidden;
  font-size: .82rem;
  padding: 10px 0;
  font-weight: 500;
}
.top-bar-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: scroll 35s linear infinite;
  width: max-content;
}
@keyframes scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */
.header {
  background: var(--cream);
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 6px;
}
.logo-img {
  height: 48px;
  width: auto;
  display: block;
}
.logo-footer { height: 54px; margin-bottom: 16px; filter: brightness(0) invert(1); }
.nav { display: flex; gap: 36px; }
.nav a {
  font-weight: 500;
  font-size: .95rem;
  position: relative;
  padding: 6px 0;
  transition: color var(--t);
}
.nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--ink);
  transition: width var(--t);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  transition: background var(--t);
  position: relative;
  color: var(--ink);
}
.icon-btn:hover { background: var(--sand); }
.cart-count {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--coral);
  color: var(--white);
  font-size: .7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}
.hamburger {
  display: none;
  width: 42px;
  height: 42px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  transition: all var(--t);
}

/* ---------- Mobile Nav ---------- */
.mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 85%;
  max-width: 320px;
  background: var(--cream);
  padding: 80px 32px 32px;
  transform: translateX(100%);
  transition: transform var(--t);
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: var(--shadow-lg);
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav a {
  font-size: 1.2rem;
  font-weight: 600;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.close-x {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 1.4rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
}

/* ---------- Hero ---------- */
.hero {
  padding: 80px 0 120px;
  background: var(--cream);
  position: relative;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-left h1 { margin-bottom: 24px; }
.hero-left .lead { margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 32px; }
.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .95rem;
  color: var(--ink-soft);
}

.hero-right { position: relative; height: 500px; }
.hero-art {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: .55;
}
.blob-1 {
  width: 340px;
  height: 340px;
  background: var(--peach);
  top: 40px;
  left: 20px;
  animation: float 6s ease-in-out infinite;
}
.blob-2 {
  width: 280px;
  height: 280px;
  background: var(--lilac);
  bottom: 40px;
  right: 20px;
  animation: float 8s ease-in-out infinite reverse;
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-20px); }
}
.hero-emoji {
  font-size: 240px;
  position: relative;
  z-index: 2;
  animation: bounce 4s ease-in-out infinite;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,.15));
}
.hero-img {
  position: relative;
  z-index: 2;
  max-width: 90%;
  max-height: 480px;
  animation: bounce 5s ease-in-out infinite;
  filter: drop-shadow(0 20px 50px rgba(0,0,0,.18));
  border-radius: 24px;
}
@keyframes bounce {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-15px) rotate(2deg); }
}
.floating-tag {
  position: absolute;
  background: var(--white);
  padding: 10px 18px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 600;
  box-shadow: var(--shadow);
  z-index: 3;
  animation: float 5s ease-in-out infinite;
}
.tag-1 { top: 10%; left: 0; animation-delay: 0s; }
.tag-2 { top: 45%; right: 0; animation-delay: 1.5s; }
.tag-3 { bottom: 15%; left: 8%; animation-delay: 3s; }

/* ---------- Marquee ---------- */
.marquee {
  background: var(--ink);
  color: var(--cream);
  padding: 24px 0;
  overflow: hidden;
  border-top: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
}
.marquee-track {
  display: flex;
  gap: 40px;
  white-space: nowrap;
  animation: scroll 30s linear infinite;
  width: max-content;
  font-family: var(--serif);
  font-size: 1.8rem;
  font-weight: 400;
}
.marquee-track span:nth-child(odd) { color: var(--cream); }
.marquee-track span:nth-child(even) { color: var(--peach); }

/* ---------- Products Grid ---------- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 32px;
}
.product-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--t);
  border: 1px solid var(--line);
  cursor: pointer;
  position: relative;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.product-card-img {
  background: var(--sand);
  height: 260px;
  display: grid;
  place-items: center;
  position: relative;
  transition: background var(--t);
  overflow: hidden;
}
.product-card-img img {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transition: transform var(--t);
}
.product-card:hover .product-card-img img { transform: scale(1.06) rotate(-2deg); }
.product-card:hover .product-card-img { background: var(--cream-dark); }
.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: var(--coral);
  color: var(--white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.product-quick {
  position: absolute;
  bottom: 16px;
  right: 16px;
  background: var(--ink);
  color: var(--white);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(10px);
  transition: all var(--t);
}
.product-card:hover .product-quick { opacity: 1; transform: translateY(0); }
.product-card-body { padding: 24px; }
.product-card-cat {
  font-size: .78rem;
  color: var(--green-dark);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 6px;
}
.product-card h3 { margin-bottom: 8px; font-size: 1.25rem; }
.product-card-desc {
  color: var(--muted);
  font-size: .92rem;
  margin-bottom: 18px;
  min-height: 42px;
}
.product-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.product-card-price {
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--ink);
}
.product-card-price small { color: var(--muted); font-size: .85rem; font-weight: 400; text-decoration: line-through; margin-right: 6px; }
.product-card-rating { font-size: .85rem; color: var(--muted); }

/* ---------- Benefits ---------- */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}
.benefit {
  background: var(--white);
  padding: 36px 28px;
  border-radius: var(--radius);
  text-align: center;
  border: 1px solid var(--line);
  transition: transform var(--t);
}
.benefit:hover { transform: translateY(-4px); }
.benefit-icon { font-size: 3rem; margin-bottom: 16px; }
.benefit h3 { margin-bottom: 10px; font-size: 1.2rem; }
.benefit p { color: var(--muted); font-size: .95rem; }

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.step {
  text-align: center;
  padding: 40px 24px;
  background: var(--sand);
  border-radius: var(--radius);
}
.step-num {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  font-weight: 800;
  font-family: var(--serif);
  margin: 0 auto 20px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }

/* ---------- Testimonials ---------- */
.testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.testimonial {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.testimonial .stars { margin-bottom: 14px; }
.testimonial p {
  font-size: 1.05rem;
  color: var(--ink-soft);
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author { font-size: .9rem; color: var(--muted); }

/* ---------- Newsletter ---------- */
.newsletter-box {
  background: var(--ink);
  color: var(--cream);
  padding: 70px 60px;
  border-radius: var(--radius-lg);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
}
.newsletter-box h2 { color: var(--cream); margin: 12px 0 12px; }
.newsletter-box p { opacity: .8; }
.newsletter-box .eyebrow { background: var(--peach); color: var(--ink); border: none; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input {
  flex: 1;
  min-width: 200px;
  padding: 16px 22px;
  border-radius: 999px;
  border: none;
  background: var(--white);
  color: var(--ink);
}
.newsletter-form .btn-dark {
  background: var(--peach);
  color: var(--ink);
}
.newsletter-form .btn-dark:hover { background: var(--white); }

/* ---------- Footer ---------- */
.footer {
  background: var(--ink);
  color: var(--cream);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 50px;
  padding-bottom: 60px;
}
.footer-col h4 { color: var(--cream); margin-bottom: 20px; font-size: 1rem; text-transform: uppercase; letter-spacing: .08em; }
.footer-col a { display: block; padding: 6px 0; opacity: .75; transition: opacity var(--t); }
.footer-col a:hover { opacity: 1; }
.footer-col p { opacity: .75; margin: 20px 0; }
.logo-light { color: var(--cream); display: inline-flex; }
.logo-light em { color: var(--peach); }
.socials { display: flex; gap: 14px; }
.socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  padding: 0;
  opacity: 1;
}
.socials a:hover { background: var(--peach); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding: 24px 0;
  font-size: .85rem;
  opacity: .7;
}
.footer-bottom .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------- View header (boutique, histoire, etc) ---------- */
.view-header {
  text-align: center;
  padding: 80px 24px 40px;
}
.view-header h1 { margin: 12px 0 16px; }
.view-header p {
  max-width: 600px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 1.1rem;
}
.view { padding-bottom: 80px; }

/* ---------- Histoire ---------- */
.text-block {
  max-width: 720px;
  font-size: 1.1rem;
  color: var(--ink-soft);
  padding: 20px 24px 40px;
}
.text-block p { margin-bottom: 20px; }
.stats {
  margin-top: 60px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px;
  background: var(--sand);
  border-radius: var(--radius);
}
.stat { text-align: center; }
.stat strong {
  display: block;
  font-size: 2.2rem;
  font-family: var(--serif);
  color: var(--green-dark);
}
.stat span { font-size: .9rem; color: var(--muted); }

/* ---------- Recipes ---------- */
.recipes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding-bottom: 40px;
}
.recipe-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  transition: all var(--t);
}
.recipe-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.recipe-img {
  background: var(--sand);
  height: 180px;
  display: grid;
  place-items: center;
  font-size: 80px;
}
.recipe-card h3 { padding: 20px 20px 0; font-size: 1.15rem; }
.recipe-card p { padding: 10px 20px; color: var(--muted); font-size: .92rem; }
.recipe-time {
  display: inline-block;
  padding: 0 20px 20px;
  font-size: .85rem;
  color: var(--green-dark);
  font-weight: 600;
}

/* ---------- FAQ ---------- */
.faq-list { max-width: 780px; margin: 0 auto; padding-bottom: 40px; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  margin-bottom: 14px;
  overflow: hidden;
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 22px 26px;
  font-size: 1.05rem;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-q::after {
  content: '+';
  font-size: 1.6rem;
  color: var(--green-dark);
  transition: transform var(--t);
  font-weight: 300;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 26px;
  max-height: 0;
  overflow: hidden;
  transition: all var(--t);
  color: var(--muted);
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 26px 22px;
}

/* ---------- Compte ---------- */
.account-wrap {
  max-width: 540px;
  margin: 0 auto;
  padding-bottom: 60px;
}
.account-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--line);
}
.account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  background: var(--sand);
  padding: 6px;
  border-radius: 999px;
}
.account-tabs button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  transition: all var(--t);
}
.account-tabs button.active { background: var(--white); box-shadow: var(--shadow); }
.account-form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.account-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--sand);
  margin-bottom: 16px;
  transition: border-color var(--t);
}
.account-form input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.account-form .btn { width: 100%; margin-top: 10px; }
.account-dash {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  border: 1px solid var(--line);
}
.account-dash h2 { font-family: var(--serif); font-weight: 400; margin-bottom: 24px; }
.dash-info {
  padding: 20px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 20px;
}
.dash-info strong { display: block; margin-bottom: 4px; }
.order-list { margin-top: 30px; }
.order-item {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: .9rem;
}
.empty-state { text-align: center; color: var(--muted); padding: 40px 20px; }

/* ---------- Checkout ---------- */
.checkout-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 50px;
  padding-bottom: 80px;
}
.checkout-main { }
.checkout-steps {
  display: flex;
  justify-content: space-between;
  margin-bottom: 40px;
  padding: 0 20px;
  position: relative;
}
.checkout-steps::before {
  content: '';
  position: absolute;
  top: 16px;
  left: 20px;
  right: 20px;
  height: 2px;
  background: var(--line);
  z-index: 0;
}
.checkout-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--muted);
  position: relative;
  z-index: 1;
  background: var(--cream);
  padding: 0 12px;
}
.checkout-step span {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--white);
  border: 2px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: all var(--t);
}
.checkout-step.active span, .checkout-step.done span {
  background: var(--ink);
  color: var(--cream);
  border-color: var(--ink);
}
.checkout-step.active { color: var(--ink); }
.checkout-form {
  background: var(--white);
  padding: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.checkout-form h3 { margin-bottom: 24px; font-family: var(--serif); font-weight: 400; }
.form-row { margin-bottom: 18px; }
.form-row.split { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-row label {
  display: block;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-soft);
}
.form-row input, .form-row select {
  width: 100%;
  margin-top: 6px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--sand);
  transition: all var(--t);
}
.form-row input:focus, .form-row select:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--white);
}
.form-actions {
  display: flex;
  gap: 14px;
  margin-top: 24px;
  justify-content: space-between;
}
.shipping-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  cursor: pointer;
  transition: all var(--t);
}
.shipping-option:has(input:checked) { border-color: var(--ink); background: var(--sand); }
.shipping-option input { margin: 0; }
.shipping-option div { flex: 1; }
.shipping-option strong { display: block; }
.shipping-option span { font-size: .85rem; color: var(--muted); }
.shipping-option .price { font-weight: 700; font-size: 1.05rem; }
.payment-methods {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}
.payment-method {
  padding: 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: pointer;
  transition: all var(--t);
  font-weight: 600;
  font-size: .9rem;
}
.payment-method input { display: none; }
.payment-method:has(input:checked) { border-color: var(--ink); background: var(--sand); }
.secure-note {
  margin-top: 20px;
  padding: 14px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  font-size: .85rem;
  text-align: center;
  color: var(--muted);
}
.confirmation-box {
  text-align: center;
  padding: 20px;
}
.confirm-icon { font-size: 4rem; margin-bottom: 20px; }
.confirmation-box h2 { font-family: var(--serif); font-weight: 400; margin-bottom: 16px; }
.confirmation-box p { color: var(--muted); margin-bottom: 10px; }
.confirmation-box .btn { margin-top: 24px; }

.checkout-summary {
  background: var(--white);
  padding: 32px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  position: sticky;
  top: 100px;
  align-self: start;
}
.checkout-summary h3 {
  font-family: var(--serif);
  font-weight: 400;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.sum-item {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.sum-item-img {
  width: 60px;
  height: 60px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.sum-item-img img { width: 82%; height: 82%; object-fit: contain; }
.sum-item-body { flex: 1; font-size: .9rem; }
.sum-item-body strong { display: block; }
.sum-item-body small { color: var(--muted); }
.sum-item-price { font-weight: 700; }
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  font-size: .95rem;
}
.summary-row.total {
  font-size: 1.2rem;
  font-weight: 800;
  padding-top: 16px;
  margin-top: 10px;
  border-top: 2px solid var(--ink);
}
.summary-trust {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: .82rem;
  color: var(--muted);
}
.summary-trust div { padding: 4px 0; }

/* ---------- Drawer (cart + product) ---------- */
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t);
  z-index: 300;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 95%;
  max-width: 460px;
  background: var(--cream);
  transform: translateX(100%);
  transition: transform var(--t);
  z-index: 301;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.product-drawer { max-width: 820px; }
.drawer.open { transform: translateX(0); }
.drawer-header {
  padding: 26px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--line);
  background: var(--cream);
}
.drawer-header h3 { font-family: var(--serif); font-weight: 400; }
.drawer-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--sand);
  display: grid;
  place-items: center;
  font-size: 1rem;
  transition: background var(--t);
}
.drawer-close:hover { background: var(--cream-dark); }
.drawer-content {
  flex: 1;
  overflow-y: auto;
  padding: 30px;
}
.drawer-footer {
  padding: 24px 30px;
  border-top: 1px solid var(--line);
  background: var(--white);
}

/* ---------- Cart content ---------- */
.cart-item {
  display: flex;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.cart-item-img {
  width: 80px;
  height: 80px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
}
.cart-item-img img { width: 82%; height: 82%; object-fit: contain; }
.cart-item-body { flex: 1; }
.cart-item-body h4 { font-size: .98rem; margin-bottom: 4px; }
.cart-item-body .cat { font-size: .78rem; color: var(--muted); margin-bottom: 6px; }
.cart-item-body .price { font-weight: 700; font-size: 1rem; }
.qty-control {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}
.qty-control button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sand);
  font-weight: 700;
  transition: background var(--t);
}
.qty-control button:hover { background: var(--cream-dark); }
.qty-control span { min-width: 24px; text-align: center; font-weight: 600; }
.cart-item-remove {
  color: var(--muted);
  font-size: .85rem;
  text-decoration: underline;
  padding: 0;
  margin-left: 8px;
}
.cart-item-remove:hover { color: var(--coral); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--muted); }
.cart-empty-icon { font-size: 4rem; margin-bottom: 16px; }
.cart-total-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 16px;
}
.cart-total-row.total { font-size: 1.2rem; font-weight: 800; }

/* ---------- Product drawer content ---------- */
.pd-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}
.pd-gallery {
  background: var(--sand);
  border-radius: var(--radius);
  height: 400px;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.pd-gallery img {
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
}
.pd-info .eyebrow { margin-bottom: 10px; }
.pd-info h2 { font-size: 1.8rem; margin-bottom: 10px; }
.pd-rating { color: var(--muted); font-size: .9rem; margin-bottom: 16px; }
.pd-price { font-size: 2rem; font-weight: 800; margin-bottom: 20px; }
.pd-price small { font-size: 1.1rem; text-decoration: line-through; color: var(--muted); font-weight: 400; margin-right: 8px; }
.pd-desc { color: var(--ink-soft); margin-bottom: 24px; }
.pd-variants { margin-bottom: 24px; }
.pd-variants > label { font-size: .85rem; font-weight: 600; display: block; margin-bottom: 10px; color: var(--ink-soft); }
.variant-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.variant-btn {
  padding: 12px 18px;
  border: 2px solid var(--line);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: .9rem;
  transition: all var(--t);
}
.variant-btn:hover { border-color: var(--ink); }
.variant-btn.active { border-color: var(--ink); background: var(--ink); color: var(--cream); }
.pd-add { display: flex; gap: 12px; align-items: center; }
.pd-add .qty-control { margin: 0; }
.pd-add .qty-control button { width: 36px; height: 36px; }
.pd-add .btn { flex: 1; }
.pd-features {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  font-size: .88rem;
}
.pd-features div::before { content: '✓ '; color: var(--green); font-weight: 700; }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--ink);
  color: var(--cream);
  padding: 16px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transition: all var(--t);
  z-index: 500;
  max-width: 90%;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Histoire section ---------- */
.histoire-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 60px;
  align-items: center;
}
.histoire-media {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--sand);
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}
.histoire-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.histoire-text h2 { margin: 16px 0 20px; }
.histoire-text p {
  color: var(--ink-soft);
  font-size: 1.05rem;
  margin-bottom: 16px;
}
.histoire-text .stats {
  margin-top: 32px;
  padding: 30px;
}

/* ---------- Modal (compte / checkout) ---------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 400;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 60px 20px;
  overflow-y: auto;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--cream);
  width: 100%;
  max-width: 560px;
  border-radius: var(--radius-lg);
  position: relative;
  padding: 40px 40px 50px;
  box-shadow: var(--shadow-lg);
  animation: modalIn .35s cubic-bezier(.2, .9, .3, 1.2);
}
.modal-wide { max-width: 1100px; padding: 40px 40px 50px; }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(30px) scale(.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 2;
}
.modal-content h2 em { display: inline; }

/* Account tweaks in modal */
.modal-content .dash-info {
  padding: 20px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 14px;
}
.modal-content .dash-info strong { display: block; margin-bottom: 4px; }
.modal-content .account-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  background: var(--sand);
  padding: 6px;
  border-radius: 999px;
}
.modal-content .account-tabs button {
  flex: 1;
  padding: 12px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  transition: all var(--t);
}
.modal-content .account-tabs button.active { background: var(--white); box-shadow: var(--shadow); }
.modal-content .account-form label {
  display: block;
  font-size: .88rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.modal-content .account-form input {
  width: 100%;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--sand);
  margin-bottom: 16px;
  transition: border-color var(--t);
}
.modal-content .account-form input:focus { outline: none; border-color: var(--ink); background: var(--white); }
.modal-content .account-form .btn { width: 100%; margin-top: 10px; }
.modal-content .order-list .order-item {
  display: flex;
  justify-content: space-between;
  padding: 16px;
  background: var(--sand);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  font-size: .9rem;
}
.modal-content .empty-state { text-align: center; color: var(--muted); padding: 30px 20px; }

/* Checkout inside modal */
.modal-wide .view-header { padding: 0 0 24px; text-align: left; }
.modal-wide .view-header h1 { font-size: 2.2rem; margin: 8px 0 0; }
.modal-wide .checkout-steps::before { background: var(--line); }
.modal-wide .checkout-step { background: var(--cream); }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .nav { display: none; }
  .hamburger { display: flex; }
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-left .lead, .hero-left .eyebrow { margin-left: auto; margin-right: auto; }
  .hero-cta, .hero-trust { justify-content: center; }
  .hero-right { height: 380px; }
  .hero-emoji { font-size: 180px; }
  .benefits-grid { grid-template-columns: repeat(2, 1fr); }
  .steps, .testimonials { grid-template-columns: 1fr; }
  .newsletter-box { grid-template-columns: 1fr; padding: 50px 32px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .checkout-grid { grid-template-columns: 1fr; }
  .checkout-summary { position: static; }
  .pd-grid { grid-template-columns: 1fr; }
  .pd-gallery { height: 280px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 70px 0; }
  .histoire-grid { grid-template-columns: 1fr; gap: 40px; }
  .modal { padding: 32px 24px 40px; }
  .modal-wide { padding: 32px 24px 40px; }
  .modal-overlay { padding: 20px 10px; }
}
@media (max-width: 600px) {
  h1 { font-size: 2.4rem; }
  .hero { padding: 50px 0 80px; }
  .section { padding: 60px 0; }
  .benefits-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .marquee-track { font-size: 1.2rem; }
  .checkout-form, .checkout-summary { padding: 24px; }
  .form-row.split { grid-template-columns: 1fr; }
  .payment-methods { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .newsletter-form input, .newsletter-form .btn { width: 100%; }
  .view-header { padding: 50px 24px 30px; }
}
