/* ============================================================
   KIMONO PLAGE — DESIGN SYSTEM V2 (Mamadou refonte mai 2026)
   Mobile-first · Inspiration éditoriale · Ocean × Sable × Crème
   ============================================================ */

:root {
  /* COULEURS */
  --c-ink: #0F2233;          /* Bleu nuit profond — texte / fonds */
  --c-ocean: #1E4D6B;        /* Bleu océan — accents primaires */
  --c-ocean-soft: #4A7A99;   /* Bleu doux — liens / hover */
  --c-sable: #C9A876;        /* Or sable — CTA / accents */
  --c-sable-dark: #A08456;   /* Sable foncé — hover CTA */
  --c-creme: #FBF7EE;        /* Crème — fond principal */
  --c-creme-soft: #F3EDDC;   /* Crème doux — sections */
  --c-white: #FFFFFF;
  --c-line: rgba(15, 34, 51, 0.10);
  --c-line-soft: rgba(15, 34, 51, 0.06);
  --c-muted: #6B7785;
  --c-success: #2E7D5B;
  --c-error: #B84A4A;

  /* TYPO */
  --f-serif: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --f-sans: 'Inter', -apple-system, 'Helvetica Neue', Arial, sans-serif;
  --f-mono: 'JetBrains Mono', 'Courier New', monospace;

  /* ESPACEMENT (compact selon memory) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;
  --s-20: 80px;

  /* RADIUS */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-full: 999px;

  /* OMBRES */
  --shadow-sm: 0 1px 3px rgba(15,34,51,0.08);
  --shadow-md: 0 4px 16px rgba(15,34,51,0.10);
  --shadow-lg: 0 8px 32px rgba(15,34,51,0.12);

  /* TRANSITIONS */
  --t-fast: 150ms ease;
  --t-base: 250ms ease;
  --t-slow: 400ms ease;

  /* SAFE AREA */
  --container: 1280px;
  --container-narrow: 800px;
  --page-px: 16px;
}

@media (min-width: 768px) {
  :root { --page-px: 24px; }
}
@media (min-width: 1024px) {
  :root { --page-px: 40px; }
}

/* ============================================================
   RESET + BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-font-smoothing: antialiased; scroll-behavior: smooth; }
body {
  font-family: var(--f-sans);
  font-size: 15px;
  line-height: 1.6;
  color: var(--c-ink);
  background: var(--c-creme);
  overflow-x: hidden;
  min-height: 100vh;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--c-sable); }
button { font: inherit; cursor: pointer; border: none; background: none; }
input, select, textarea { font: inherit; color: inherit; }

/* TYPOGRAPHIE */
h1, h2, h3, h4 {
  font-family: var(--f-serif);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--c-ink);
}
h1 { font-size: clamp(28px, 7vw, 48px); }
h2 { font-size: clamp(22px, 5.5vw, 36px); }
h3 { font-size: clamp(18px, 4.5vw, 24px); }
h4 { font-size: 18px; }
.eyebrow {
  font-family: var(--f-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-ocean-soft);
}
p { margin-bottom: var(--s-3); }
small { font-size: 12px; color: var(--c-muted); }

/* ============================================================
   LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding-left: var(--page-px);
  padding-right: var(--page-px);
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding-left: var(--page-px);
  padding-right: var(--page-px);
}
.section { padding: var(--s-12) 0; }
.section-sm { padding: var(--s-8) 0; }
.section-bleed { width: 100vw; margin-left: calc(50% - 50vw); }
.section-creme { background: var(--c-creme-soft); }
.section-ocean { background: var(--c-ocean); color: var(--c-creme); }
.section-ocean h1, .section-ocean h2, .section-ocean h3 { color: var(--c-creme); }

/* GRID */
.grid { display: grid; gap: var(--s-4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 768px) {
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); gap: var(--s-5); }
}

/* ============================================================
   HEADER + NAV
   ============================================================ */
.top-bar {
  background: var(--c-ink);
  color: var(--c-creme);
  text-align: center;
  font-size: 12px;
  padding: 8px var(--page-px);
  letter-spacing: 0.04em;
}
.top-bar a { color: var(--c-sable); border-bottom: 1px solid currentColor; padding-bottom: 1px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--c-creme);
  border-bottom: 1px solid var(--c-line-soft);
}
.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--page-px);
  max-width: var(--container);
  margin: 0 auto;
  gap: var(--s-4);
}
.site-logo {
  font-family: var(--f-serif);
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--c-ink);
}
.site-logo .logo-accent { color: var(--c-sable); font-style: italic; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
  color: var(--c-ink);
}
.icon-btn:hover { background: var(--c-line-soft); }
.cart-badge {
  position: absolute; top: -4px; right: -4px;
  background: var(--c-sable); color: var(--c-white);
  font-size: 10px; font-weight: 700;
  min-width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0 5px;
}

/* NAV MOBILE — drawer */
.nav-mobile {
  position: fixed; inset: 0;
  background: var(--c-creme);
  z-index: 200;
  transform: translateX(-100%);
  transition: transform var(--t-base);
  padding: var(--s-6) var(--page-px);
  overflow-y: auto;
}
.nav-mobile.open { transform: translateX(0); }
.nav-mobile-close {
  position: absolute; top: var(--s-4); right: var(--page-px);
  font-size: 20px;
}
.nav-mobile-list { list-style: none; margin-top: var(--s-10); }
.nav-mobile-list li { border-bottom: 1px solid var(--c-line); }
.nav-mobile-list a {
  display: block; padding: var(--s-4) 0;
  font-family: var(--f-serif); font-size: 22px;
}
.nav-mobile-section-title {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--c-muted);
  margin: var(--s-6) 0 var(--s-2);
}

/* NAV DESKTOP — only md+ */
.nav-desktop { display: none; }
@media (min-width: 1024px) {
  .nav-desktop { display: flex; gap: var(--s-6); align-items: center; }
  .nav-desktop a {
    font-size: 14px; font-weight: 500;
    padding: 8px 0;
    border-bottom: 1px solid transparent;
  }
  .nav-desktop a:hover { border-bottom-color: var(--c-sable); }
}

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 14px 24px;
  font-family: var(--f-sans);
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  border-radius: var(--r-full);
  transition: all var(--t-base);
  text-align: center;
  gap: var(--s-2);
}
.btn-primary { background: var(--c-ink); color: var(--c-creme); }
.btn-primary:hover { background: var(--c-ocean); }
.btn-sable { background: var(--c-sable); color: var(--c-white); }
.btn-sable:hover { background: var(--c-sable-dark); }
.btn-outline {
  background: transparent;
  color: var(--c-ink);
  border: 1.5px solid var(--c-ink);
}
.btn-outline:hover { background: var(--c-ink); color: var(--c-creme); }
.btn-ghost { color: var(--c-ocean); padding: 8px 12px; text-transform: none; letter-spacing: 0; }
.btn-block { width: 100%; }
.btn-lg { padding: 18px 32px; font-size: 15px; }

/* ============================================================
   CARDS / PRODUCT
   ============================================================ */
.product-card {
  background: var(--c-white);
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
  transition: transform var(--t-base), box-shadow var(--t-base);
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.product-card-img {
  aspect-ratio: 3/4;
  background: var(--c-creme-soft);
  position: relative;
  overflow: hidden;
}
.product-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--t-slow);
}
.product-card:hover .product-card-img img { transform: scale(1.04); }
.product-card-body { padding: var(--s-3) var(--s-3) var(--s-4); }
.product-card-name {
  font-family: var(--f-sans);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  color: var(--c-ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-card-price {
  font-size: 14px;
  font-weight: 600;
  color: var(--c-ink);
}
.product-card-price del {
  color: var(--c-muted);
  font-weight: 400;
  margin-right: 6px;
}
.product-card-swatches {
  display: flex; gap: 5px;
  margin-top: var(--s-2);
}
.swatch {
  width: 14px; height: 14px;
  border-radius: 50%;
  border: 1px solid var(--c-line);
  cursor: pointer;
  transition: transform var(--t-fast);
}
.swatch:hover { transform: scale(1.15); }

/* BADGES */
.badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--c-ink); color: var(--c-creme);
  padding: 4px 10px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: var(--r-full);
}
.badge-sable { background: var(--c-sable); color: var(--c-white); }
.badge-soldout { background: var(--c-muted); }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--c-ink);
  color: var(--c-creme);
  padding: var(--s-12) 0 var(--s-6);
  margin-top: var(--s-16);
}
.site-footer h4 {
  font-family: var(--f-sans);
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--c-sable);
  margin-bottom: var(--s-3);
}
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
}
@media (min-width: 768px) {
  .footer-cols { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: var(--s-2); font-size: 13px; opacity: 0.85; }
.footer-col a:hover { color: var(--c-sable); opacity: 1; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  margin-top: var(--s-10);
  padding-top: var(--s-5);
  font-size: 11px;
  opacity: 0.6;
  text-align: center;
  line-height: 1.7;
}
.footer-payments {
  display: flex; gap: var(--s-2); justify-content: center;
  margin-bottom: var(--s-3);
}
.pay-icon {
  background: rgba(255,255,255,0.06);
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: 0.05em;
  border-radius: var(--r-sm);
  border: 1px solid rgba(255,255,255,0.10);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-group { margin-bottom: var(--s-4); }
.form-label {
  display: block;
  font-size: 13px; font-weight: 500;
  margin-bottom: var(--s-2);
  color: var(--c-ink);
}
.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 14px;
  background: var(--c-white);
  border: 1px solid var(--c-line);
  border-radius: var(--r-sm);
  font-size: 14px;
  color: var(--c-ink);
  transition: border-color var(--t-fast);
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--c-sable);
}
.form-textarea { min-height: 100px; resize: vertical; }

/* ============================================================
   UTILS
   ============================================================ */
.text-center { text-align: center; }
.text-muted { color: var(--c-muted); }
.text-sable { color: var(--c-sable); }
.mb-0 { margin-bottom: 0; }
.mb-2 { margin-bottom: var(--s-2); }
.mb-4 { margin-bottom: var(--s-4); }
.mb-6 { margin-bottom: var(--s-6); }
.mb-8 { margin-bottom: var(--s-8); }
.mt-4 { margin-top: var(--s-4); }
.mt-6 { margin-top: var(--s-6); }
.mt-8 { margin-top: var(--s-8); }
.flex { display: flex; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-gap-2 { display: flex; gap: var(--s-2); }
.flex-gap-3 { display: flex; gap: var(--s-3); }
.flex-col { display: flex; flex-direction: column; }
.divider { height: 1px; background: var(--c-line); margin: var(--s-6) 0; }

/* Réassurance bar */
.reassurance-bar {
  background: var(--c-creme-soft);
  padding: var(--s-4) 0;
  font-size: 12px;
}
.reassurance-items {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3);
}
@media (min-width: 768px) {
  .reassurance-items { grid-template-columns: repeat(4, 1fr); }
}
.reassurance-item {
  display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 4px;
}
.reassurance-icon { font-size: 20px; }
.reassurance-label { font-weight: 600; }
.reassurance-sub { color: var(--c-muted); font-size: 11px; }
