/* ===== Capybara Peluche — Concept 1 : Doux & Chaleureux ===== */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito Sans';
  src: url('../fonts/nunito-sans.woff2') format('woff2');
  font-weight: 300 900;
  font-display: swap;
}

:root {
  --color-bg: #FFF8F0;
  --color-bg-alt: #F3E8DC;
  --color-surface: #FFFFFF;
  --color-primary: #C97B4A;
  --color-primary-dark: #A85F35;
  --color-accent: #8A9B6E;
  --color-text: #3B2E26;
  --color-text-muted: #7A6A5D;
  --color-border: #E7D9C8;

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 32px;
  --shadow-sm: 0 2px 10px rgba(59, 46, 38, 0.06);
  --shadow-md: 0 10px 30px rgba(59, 46, 38, 0.10);

  --container: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; line-height: 1.15; font-weight: 600; }
p { margin: 0; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap;
}
.skip-link {
  position: absolute; left: -999px; top: 0; background: var(--color-primary);
  color: #fff; padding: 10px 16px; z-index: 200; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

/* ---- Layout helpers ---- */
.section-head { max-width: 640px; margin: 0 auto 48px; text-align: center; }
.section-head__eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px;
  font-weight: 700; color: var(--color-primary-dark); margin-bottom: 10px;
}
.section-head__title { font-size: clamp(26px, 3.4vw, 38px); margin-bottom: 12px; }
.section-head__text { color: var(--color-text-muted); font-size: 16px; }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 28px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: 2px solid transparent; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease;
}
.btn--primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--color-primary-dark); transform: translateY(-1px); }
.btn--ghost { background: transparent; border-color: var(--color-border); color: var(--color-text); }
.btn--ghost:hover { border-color: var(--color-primary); }
.btn--small { padding: 9px 18px; font-size: 13px; background: var(--color-bg-alt); }
.btn--small:hover { background: var(--color-primary); color: #fff; }

/* ---- Header ---- */
.header {
  position: sticky; top: 0; z-index: 100; background: rgba(255,248,240,0.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--color-border);
}
.header__inner {
  max-width: var(--container); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.header__logo { display: flex; align-items: center; gap: 10px; }
.header__logo-text { font-family: var(--font-display); font-weight: 700; font-size: 15px; line-height: 1.15; }
.nav__list { display: none; gap: 32px; }
.nav__link { font-weight: 700; font-size: 15px; color: var(--color-text-muted); }
.nav__link:hover { color: var(--color-primary-dark); }
.header__actions { display: flex; align-items: center; gap: 6px; }
.icon-btn {
  position: relative; width: 40px; height: 40px; border-radius: 50%; border: none;
  background: transparent; color: var(--color-text); display: flex; align-items: center; justify-content: center;
  cursor: pointer;
}
.icon-btn:hover { background: var(--color-bg-alt); }
.icon-btn__badge {
  position: absolute; top: 2px; right: 2px; background: var(--color-primary); color: #fff;
  font-size: 10px; font-weight: 700; border-radius: 50%; width: 16px; height: 16px;
  display: flex; align-items: center; justify-content: center;
}
.nav__toggle {
  width: 40px; height: 40px; border: none; background: none; cursor: pointer;
  display: flex; flex-direction: column; justify-content: center; gap: 5px;
}
.nav__toggle span { width: 22px; height: 2px; background: var(--color-text); border-radius: 2px; margin: 0 auto; }

/* ---- Hero ---- */
.hero { padding: 48px 24px 56px; }
.hero__inner {
  max-width: var(--container); margin: 0 auto; display: grid; gap: 40px; align-items: center;
}
.hero__eyebrow {
  text-transform: uppercase; letter-spacing: 0.08em; font-size: 13px; font-weight: 700;
  color: var(--color-primary-dark); margin: 0 0 14px;
}
.hero__title { font-size: clamp(34px, 5.6vw, 58px); margin-bottom: 18px; }
.hero__text { font-size: 18px; color: var(--color-text-muted); max-width: 480px; margin-bottom: 28px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero__trust { display: flex; flex-direction: column; gap: 10px; color: var(--color-text-muted); font-size: 14px; font-weight: 700; }
.hero__trust li { display: flex; align-items: center; gap: 8px; }
.hero__trust svg { color: var(--color-accent); flex-shrink: 0; }

.hero__visual { position: relative; display: flex; justify-content: center; align-items: center; min-height: 320px; }
.hero__blob {
  position: absolute; width: 360px; height: 360px; border-radius: 48% 52% 55% 45% / 45% 55% 48% 52%;
  background: linear-gradient(145deg, var(--color-bg-alt), #EAD9C2);
}
.hero__capy { position: relative; z-index: 1; }

/* ---- Trust bar ---- */
.trust-bar { background: var(--color-primary-dark); color: #fff; padding: 16px 24px; }
.trust-bar__list {
  max-width: var(--container); margin: 0 auto; display: flex; flex-wrap: wrap;
  justify-content: center; gap: 28px; font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em;
}

/* ---- Products ---- */
.products { max-width: var(--container); margin: 0 auto; padding: 80px 24px; }
.products__grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.product-card {
  background: var(--color-surface); border-radius: var(--radius-md); padding: 20px;
  box-shadow: var(--shadow-sm); transition: box-shadow .2s ease, transform .2s ease;
}
.product-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.product-card__media {
  position: relative; border-radius: var(--radius-sm); display: flex; align-items: center;
  justify-content: center; padding: 14px; margin-bottom: 16px; aspect-ratio: 4/3;
}
.product-card__media--sand { background: #F3E0C9; }
.product-card__media--sage { background: #E3E8D8; }
.product-card__media--cream { background: #FBF3E6; }
.product-card__media--terracotta { background: #F1DCC9; }
.product-card__tag {
  position: absolute; top: 12px; left: 12px; background: var(--color-accent); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; text-transform: uppercase;
}
.product-card__title { font-size: 18px; margin-bottom: 6px; }
.product-card__desc { color: var(--color-text-muted); font-size: 14px; margin-bottom: 16px; }
.product-card__footer { display: flex; align-items: center; justify-content: space-between; }
.product-card__price { font-weight: 800; font-size: 17px; font-family: var(--font-display); }

/* ---- USP ---- */
.usp { background: var(--color-bg-alt); padding: 80px 24px; }
.usp__grid { max-width: var(--container); margin: 0 auto; display: grid; gap: 28px; grid-template-columns: 1fr; }
.usp__item { background: var(--color-surface); border-radius: var(--radius-md); padding: 28px; box-shadow: var(--shadow-sm); }
.usp__icon {
  width: 52px; height: 52px; border-radius: 50%; background: var(--color-bg);
  color: var(--color-primary-dark); display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.usp__item h3 { font-size: 18px; margin-bottom: 8px; }
.usp__item p { color: var(--color-text-muted); font-size: 15px; }

/* ---- Story ---- */
.story {
  max-width: var(--container); margin: 0 auto; padding: 80px 24px;
  display: grid; gap: 40px; align-items: center;
}
.story__visual { position: relative; min-height: 220px; display: flex; justify-content: center; }
.story__blob {
  width: 100%; max-width: 320px; aspect-ratio: 1; border-radius: 55% 45% 48% 52% / 52% 48% 55% 45%;
  background: linear-gradient(160deg, var(--color-accent), #6E8052);
}
.story__content p { color: var(--color-text-muted); font-size: 16px; margin: 16px 0 24px; }

/* ---- Reviews ---- */
.reviews { max-width: var(--container); margin: 0 auto; padding: 80px 24px; }
.reviews__grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.review-card { background: var(--color-surface); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.review-card__stars { color: var(--color-primary); letter-spacing: 2px; margin-bottom: 10px; }
.review-card p:not(.review-card__author) { font-size: 15px; margin-bottom: 14px; }
.review-card__author { color: var(--color-text-muted); font-size: 13px; font-weight: 700; }

/* ---- Newsletter ---- */
.newsletter { background: var(--color-primary); color: #fff; padding: 72px 24px; text-align: center; }
.newsletter__inner { max-width: 560px; margin: 0 auto; }
.newsletter h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.newsletter p { opacity: 0.92; margin-bottom: 26px; }
.newsletter__form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.newsletter__form input {
  flex: 1 1 240px; padding: 14px 18px; border-radius: 999px; border: none; font-size: 15px; font-family: var(--font-body);
}
.newsletter__note { margin-top: 14px; font-weight: 700; font-size: 14px; min-height: 20px; }

/* ---- Footer ---- */
.footer { background: var(--color-text); color: #EFE4D8; padding: 64px 24px 24px; }
.footer__inner { max-width: var(--container); margin: 0 auto; display: grid; gap: 36px; grid-template-columns: 1fr; }
.footer__brand .header__logo-text { color: #fff; }
.footer__brand p { margin-top: 14px; font-size: 14px; color: #C9BBAC; line-height: 1.7; }
.footer__col h3 { font-family: var(--font-body); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; color: #fff; }
.footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.footer__col a { font-size: 14px; color: #C9BBAC; }
.footer__col a:hover { color: #fff; }
.footer__payments { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.footer__payments span { background: rgba(255,255,255,0.08); padding: 6px 12px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.footer__bottom { max-width: var(--container); margin: 40px auto 0; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.1); font-size: 13px; color: #9C8E80; text-align: center; }

/* ---- Breadcrumb (used on every page except the homepage) ---- */
.breadcrumb { max-width: var(--container); margin: 0 auto; padding: 18px 24px 0; font-size: 13px; color: var(--color-text-muted); }
.breadcrumb a:hover { color: var(--color-primary-dark); }
.breadcrumb span[aria-hidden] { margin: 0 6px; }

/* ---- Inline trust list (used on the product page and the cart summary) ---- */
.pdp__trust--row { display: flex; flex-wrap: wrap; gap: 20px; color: var(--color-text-muted); font-size: 13px; font-weight: 700; }
.pdp__trust--row li { display: flex; align-items: center; gap: 6px; }
.pdp__trust--row svg { color: var(--color-accent); flex-shrink: 0; }

/* ---- FAQ (used on the product page and the standalone FAQ page) ---- */
.faq { max-width: 760px; margin: 0 auto; padding: 0 24px 72px; }
.faq__category { font-size: 15px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--color-primary-dark); margin: 40px 0 4px; }
.faq__category:first-child { margin-top: 0; }
.faq__list details { border-top: 1px solid var(--color-border); padding: 18px 0; }
.faq__list details:last-child { border-bottom: 1px solid var(--color-border); }
.faq__list summary { font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; font-size: 16px; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after { content: '+'; font-size: 22px; color: var(--color-primary); }
.faq__list details[open] summary::after { content: '−'; }
.faq__list p { margin-top: 12px; color: var(--color-text-muted); }

/* ---- Simple page header (legal, contact, FAQ, boutique) ---- */
.page-header { max-width: var(--container); margin: 0 auto; padding: 40px 24px 0; }
.page-header__title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 8px; }
.page-header__text { color: var(--color-text-muted); font-size: 16px; max-width: 640px; }

/* ---- Draft notice (legal pages, until reviewed by a professional) ---- */
.notice--draft { max-width: var(--container); margin: 24px auto 0; padding: 14px 20px; background: #FBEFE2; border: 1px solid var(--color-border); border-radius: var(--radius-sm); color: var(--color-text-muted); font-size: 13px; }
.notice--draft strong { color: var(--color-text); }

/* ---- Prose (legal pages, long-form text) ---- */
.prose { max-width: 760px; margin: 0 auto; padding: 40px 24px 96px; }
.prose h2 { font-size: 22px; margin: 40px 0 14px; }
.prose h2:first-child { margin-top: 0; }
.prose p { color: var(--color-text-muted); font-size: 15px; margin-bottom: 14px; line-height: 1.7; }
.prose ul { margin-bottom: 14px; padding-left: 20px; list-style: disc; }
.prose li { color: var(--color-text-muted); font-size: 15px; margin-bottom: 6px; line-height: 1.6; }
.prose a { color: var(--color-primary-dark); font-weight: 700; }
.prose strong { color: var(--color-text); }

/* ===== Responsive ===== */
@media (min-width: 640px) {
  .products__grid { grid-template-columns: repeat(2, 1fr); }
  .usp__grid { grid-template-columns: repeat(2, 1fr); }
  .reviews__grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 880px) {
  .hero__inner { grid-template-columns: 1fr 1fr; }
  .story { grid-template-columns: 1fr 1.1fr; }
}

@media (min-width: 960px) {
  .nav__list { display: flex; }
  .nav__toggle { display: none; }
  .products__grid { grid-template-columns: repeat(4, 1fr); }
  .footer__inner { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}

/* ---- Mobile nav ---- */
@media (max-width: 959px) {
  .nav {
    position: fixed; inset: 64px 0 0 0; background: var(--color-bg); padding: 24px;
    transform: translateY(-110%); transition: transform .25s ease; z-index: 90;
    border-top: 1px solid var(--color-border);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { display: flex; flex-direction: column; gap: 20px; }
  .nav__link { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}
