/* =========================================================
   YASMINE DRESS — Design System
   Palette "fils de laine" : chaque accent = une couleur de pelote.
   Formes rondes / vagues uniquement — aucun angle vif dans les
   composants de contenu (cartes, boutons, images).
   ========================================================= */

:root {
  --paper: #FBF5EC;
  --paper-soft: #F5EDE0;
  --ink: #241F1B;
  --ink-soft: #6b6259;

  --raspberry: #E23F73;
  --raspberry-soft: #FCE4EC;
  --marigold: #F5A623;
  --marigold-soft: #FDF0DA;
  --teal: #1E8A78;
  --teal-soft: #E1F1EC;
  --periwinkle: #6C63C4;
  --periwinkle-soft: #ECEAFA;

  --cream-card: #FFFDF9;
  --line: rgba(36, 31, 27, 0.10);
  --shadow-soft: 0 20px 50px rgba(36, 31, 27, 0.10);
  --shadow-lift: 0 26px 60px rgba(36, 31, 27, 0.16);

  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;

  --font-display: "Baloo 2", ui-rounded, "Segoe UI", sans-serif;
  --font-body: "Manrope", ui-sans-serif, system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  margin: 0;
  letter-spacing: -0.01em;
}
p { margin: 0; }
.container {
  width: min(1180px, 92%);
  margin: 0 auto;
}
::selection { background: var(--raspberry); color: #fff; }

/* Focus visibility (accessibility floor) */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--periwinkle);
  outline-offset: 3px;
  border-radius: 8px;
}

/* Reduced motion respected globally */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =========================================================
   TYPOGRAPHY HELPERS
   ========================================================= */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--raspberry);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.h1 { font-size: clamp(38px, 6.2vw, 72px); }
.h2 { font-size: clamp(30px, 4.6vw, 48px); }
.h3 { font-size: clamp(21px, 2.6vw, 27px); }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--ink-soft); }
.muted { color: var(--ink-soft); }

/* =========================================================
   BUTTONS
   ========================================================= */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 15px 28px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), box-shadow .28s, background .28s, color .28s, border-color .28s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-3px); }
.btn:active { transform: translateY(-1px) scale(.98); }

.btn-primary { background: var(--raspberry); color: #fff; box-shadow: 0 14px 30px rgba(226,63,115,.32); }
.btn-primary:hover { box-shadow: 0 20px 38px rgba(226,63,115,.4); }

.btn-dark { background: var(--ink); color: #fff; box-shadow: 0 14px 30px rgba(36,31,27,.22); }
.btn-dark:hover { box-shadow: 0 20px 38px rgba(36,31,27,.28); }

.btn-outline { background: transparent; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }

.btn-light { background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(36,31,27,.12); }

.btn-sm { padding: 10px 18px; font-size: 13px; }
.btn-block { width: 100%; }

/* =========================================================
   NAVIGATION
   ========================================================= */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 245, 236, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 84px;
}
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 19px; }
.brand img {
  width: 46px; height: 46px; object-fit: cover; border-radius: 50%;
  border: 2px solid var(--marigold);
}
.main-nav { display: flex; align-items: center; gap: 30px; }
.main-nav a {
  font-weight: 600; font-size: 14.5px; position: relative; padding: 6px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--raspberry); border-radius: 2px;
  transition: right .3s cubic-bezier(.2,.8,.2,1);
}
.main-nav a:hover::after, .main-nav a.active::after { right: 0; }
.main-nav a.active { color: var(--raspberry); }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.menu-toggle {
  display: none; background: none; border: 2px solid var(--ink); border-radius: 50%;
  width: 44px; height: 44px; font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
}

@media (max-width: 900px) {
  .main-nav {
    position: absolute; left: 4%; right: 4%; top: 78px;
    background: var(--cream-card); border: 1px solid var(--line);
    border-radius: var(--radius-md); box-shadow: var(--shadow-lift);
    flex-direction: column; align-items: stretch; gap: 4px; padding: 14px;
    display: none;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 14px; border-radius: 12px; }
  .main-nav a:hover { background: var(--paper-soft); }
  .main-nav a::after { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-cta-text { display: none; }
}

/* =========================================================
   SECTIONS / LAYOUT
   ========================================================= */
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section-soft { background: var(--paper-soft); }
.section-dark { background: var(--ink); color: #fff; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 30px;
  margin-bottom: 44px; flex-wrap: wrap;
}

/* Wave divider between sections — the site's recurring "skein" motif */
.wave-divider {
  display: block; width: 100%; height: 64px; margin: -1px 0;
}

/* =========================================================
   BLOB / ORGANIC IMAGE FRAMES
   ========================================================= */
.blob-frame {
  border-radius: 44% 56% 62% 38% / 42% 38% 62% 58%;
  overflow: hidden;
  animation: blobMorph 14s ease-in-out infinite;
}
.blob-frame img { width: 100%; height: 100%; object-fit: cover; }
@keyframes blobMorph {
  0%, 100% { border-radius: 44% 56% 62% 38% / 42% 38% 62% 58%; }
  33% { border-radius: 62% 38% 45% 55% / 55% 62% 38% 45%; }
  66% { border-radius: 38% 62% 55% 45% / 45% 38% 62% 55%; }
}
@media (prefers-reduced-motion: reduce) {
  .blob-frame { animation: none; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero { padding: 56px 0 90px; position: relative; overflow: hidden; }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 60px; align-items: center;
}
.hero h1 em {
  font-style: normal; color: var(--raspberry);
  position: relative; display: inline-block;
}
.hero h1 em svg { position: absolute; left: 0; bottom: -6px; width: 100%; height: 14px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 34px; }
.hero-stats { display: flex; gap: 34px; margin-top: 46px; flex-wrap: wrap; }
.hero-stats div b { display: block; font-family: var(--font-display); font-size: 26px; color: var(--raspberry); }
.hero-stats div span { font-size: 12.5px; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .08em; }
.hero-visual { position: relative; }
.hero-visual .blob-frame { aspect-ratio: 1/1; box-shadow: var(--shadow-lift); }
.hero-dot {
  position: absolute; border-radius: 50%; z-index: -1;
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 340px; margin: 0 auto; }
}

/* =========================================================
   UNIVERS (category) CARDS
   ========================================================= */
.univers-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.univers-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  aspect-ratio: 3/4; display: flex; align-items: flex-end; padding: 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.univers-card:hover { transform: translateY(-8px) rotate(-0.5deg); box-shadow: var(--shadow-lift); }
.univers-card img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .6s cubic-bezier(.2,.8,.2,1);
}
.univers-card:hover img { transform: scale(1.08); }
.univers-card::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(36,31,27,0) 35%, rgba(36,31,27,.78) 100%);
}
.univers-card .uv-label { position: relative; color: #fff; }
.univers-card .uv-label b { font-family: var(--font-display); font-size: 22px; display: block; }
.univers-card .uv-label span { font-size: 12.5px; opacity: .85; }
.univers-card.soon { align-items: center; justify-content: center; text-align: center; }
.univers-card.soon .uv-label { color: var(--ink); }

@media (max-width: 1000px) { .univers-grid { grid-template-columns: repeat(2, 1fr); } }

/* =========================================================
   PRODUCT CARDS
   ========================================================= */
.product-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px;
}
.product-card {
  background: var(--cream-card); border-radius: var(--radius-lg);
  overflow: hidden; box-shadow: var(--shadow-soft);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); }
.product-media { position: relative; aspect-ratio: 4/5; overflow: hidden; }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.product-card:hover .product-media img { transform: scale(1.06); }
.product-tag {
  position: absolute; top: 14px; left: 14px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em;
  padding: 6px 12px; border-radius: 999px; background: #fff; color: var(--ink);
}
.product-badge {
  position: absolute; top: 14px; right: 14px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .03em;
  padding: 6px 12px; border-radius: 999px; background: var(--raspberry); color: #fff;
}
.product-body { padding: 20px 20px 22px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.product-body h3 { font-size: 17.5px; }
.product-body p { font-size: 13.5px; color: var(--ink-soft); flex: 1; }

@media (max-width: 1000px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .product-grid { grid-template-columns: 1fr 1fr; gap: 14px; } .product-body { padding: 14px 14px 16px; gap: 8px; } .product-body h3 { font-size: 14.5px; } .product-body p { font-size: 12px; } }

/* Filter pills (boutique page) */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; }
.filter-pill {
  padding: 11px 20px; border-radius: 999px; border: 2px solid var(--line);
  font-weight: 700; font-size: 13.5px; cursor: pointer; background: #fff;
  transition: all .25s;
}
.filter-pill[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.filter-pill:hover { border-color: var(--ink); }

/* =========================================================
   PROCESS / TIMELINE (savoir-faire, sur-mesure)
   ========================================================= */
.process-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.process-card {
  background: var(--cream-card); border-radius: var(--radius-md); padding: 30px;
  box-shadow: var(--shadow-soft);
}
.process-card .pc-icon {
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-size: 22px; margin-bottom: 18px; color: #fff;
}
@media (max-width: 900px) { .process-row { grid-template-columns: 1fr; } }

.timeline-thread { position: relative; padding-left: 44px; }
.timeline-thread::before {
  content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 3px;
  background: linear-gradient(180deg, var(--raspberry), var(--marigold), var(--teal), var(--periwinkle));
  border-radius: 3px;
}
.timeline-step { position: relative; padding-bottom: 40px; }
.timeline-step:last-child { padding-bottom: 0; }
.timeline-step::before {
  content: ""; position: absolute; left: -44px; top: 4px; width: 18px; height: 18px;
  border-radius: 50%; background: #fff; border: 4px solid var(--raspberry);
}
.timeline-step h4 { font-size: 17px; margin-bottom: 6px; }
.timeline-step p { color: var(--ink-soft); font-size: 14.5px; }

/* =========================================================
   TESTIMONIALS
   ========================================================= */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
  background: var(--cream-card); border-radius: var(--radius-md); padding: 28px;
  box-shadow: var(--shadow-soft);
}
.testi-card p.quote { font-size: 15px; margin-bottom: 18px; }
.testi-card .who { display: flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 700; color: var(--ink-soft); }
.testi-card .avatar {
  width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); color: #fff; font-size: 15px;
}
@media (max-width: 900px) { .testi-grid { grid-template-columns: 1fr; } }

/* =========================================================
   CTA BAND
   ========================================================= */
.cta-band {
  border-radius: var(--radius-lg);
  padding: 70px 50px;
  background: linear-gradient(120deg, var(--raspberry), var(--periwinkle));
  color: #fff; text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(30px, 5vw, 50px); max-width: 720px; margin: 0 auto 26px; }
.cta-band .btn-light:hover { transform: translateY(-3px) scale(1.02); }
@media (max-width: 700px) { .cta-band { padding: 48px 24px; } }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--ink); color: #eee6da; padding: 70px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 50px; }
.footer-brand { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-size: 20px; color: #fff; margin-bottom: 14px; }
.footer-brand img { width: 40px; height: 40px; border-radius: 50%; }
.site-footer h4 { font-family: var(--font-body); font-size: 12.5px; text-transform: uppercase; letter-spacing: .1em; color: #a89e91; margin-bottom: 16px; }
.site-footer a, .site-footer p { display: block; color: #cfc6b8; font-size: 14px; margin: 9px 0; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); margin-top: 46px; padding-top: 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: #8a8074; font-size: 12.5px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }

/* =========================================================
   FORM ELEMENTS (sur-mesure, contact)
   ========================================================= */
.form-card {
  background: var(--cream-card); border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-soft);
}
.field { margin-bottom: 20px; }
.field label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 8px; }
.field input, .field select, .field textarea {
  width: 100%; border: 2px solid var(--line); border-radius: var(--radius-sm);
  padding: 14px 16px; font: inherit; background: #fff; color: var(--ink);
  transition: border-color .25s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--periwinkle); outline: none; }
.field textarea { resize: vertical; min-height: 110px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 600px) { .field-row { grid-template-columns: 1fr; } }
.chip-select { display: flex; flex-wrap: wrap; gap: 10px; }
.chip-select input { position: absolute; opacity: 0; width: 0; height: 0; }
.chip-select label {
  padding: 10px 18px; border-radius: 999px; border: 2px solid var(--line);
  font-size: 13.5px; font-weight: 700; cursor: pointer; transition: all .2s; margin: 0;
}
.chip-select input:checked + label { background: var(--ink); border-color: var(--ink); color: #fff; }

/* =========================================================
   SCROLL REVEAL
   ========================================================= */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-stagger > * { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.reveal-stagger.is-visible > * { opacity: 1; transform: none; }
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: .04s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: .10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: .16s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: .22s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: .28s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: .34s; }

/* =========================================================
   PAGE HERO (secondary pages)
   ========================================================= */
.page-hero { padding: 60px 0 70px; text-align: center; }
.page-hero .eyebrow { justify-content: center; }
.page-hero h1 { margin: 16px auto 0; max-width: 780px; }
.page-hero p.lead { max-width: 620px; margin: 20px auto 0; }

/* =========================================================
   MISC
   ========================================================= */
.pill-tag { display: inline-flex; padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 700; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 34px; } }
.stack-photos { position: relative; }
.stack-photos img { border-radius: var(--radius-md); box-shadow: var(--shadow-lift); }
.stack-photos .p1 { position: relative; z-index: 2; width: 78%; }
.stack-photos .p2 { position: absolute; right: 0; bottom: -8%; width: 52%; z-index: 3; border: 6px solid var(--paper); }
.value-list { display: grid; gap: 22px; margin-top: 30px; }
.value-item { display: flex; gap: 16px; align-items: flex-start; }
.value-item .vi-dot { width: 40px; height: 40px; min-width: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 17px; }
.value-item h4 { font-size: 16.5px; margin-bottom: 4px; }
.value-item p { color: var(--ink-soft); font-size: 14px; }

.back-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 40;
  width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  box-shadow: var(--shadow-lift); opacity: 0; pointer-events: none; transition: opacity .3s, transform .3s;
}
.back-to-top.show { opacity: 1; pointer-events: auto; }
.back-to-top:hover { transform: translateY(-3px); }

.whatsapp-float {
  position: fixed; left: 22px; bottom: 22px; z-index: 40;
  display: flex; align-items: center; gap: 10px;
  background: #fff; border-radius: 999px; padding: 12px 20px 12px 12px;
  box-shadow: var(--shadow-lift); font-weight: 700; font-size: 13.5px;
}
.whatsapp-float .wa-ico {
  width: 34px; height: 34px; border-radius: 50%; background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  animation: waPulse 2.4s ease-in-out infinite;
}
@keyframes waPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 50% { box-shadow: 0 0 0 8px rgba(37,211,102,0); } }
@media (prefers-reduced-motion: reduce) { .whatsapp-float .wa-ico { animation: none; } }
@media (max-width: 560px) { .whatsapp-float span:not(.wa-ico) { display: none; } .whatsapp-float { padding: 12px; } }
