/* SiJing yoga block — page de vente. Une seule famille (Bricolage Grotesque), palette tirée du produit :
   rose du bloc, manchette blanche, anthracite de l'étiquette, filet rose sous le titre. */

:root {
  --pink: #F3B2C3;
  --pink-deep: #E2809B;
  --pink-ink: #B8506F;
  --pink-pale: #FCF2F5;
  --white: #FFFFFF;
  --bg: #FFFDFD;
  --ink: #2F2F32;
  --ink-soft: #77777C;
  --line: #EDD7DE;
  --font: 'Bricolage Grotesque', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --r-img: 18px;
  --r-btn: 12px;
  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 80px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variation-settings: 'opsz' 14;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
p { margin: 0 0 1em; max-width: 62ch; }
h1, h2, h3 { margin: 0; line-height: 1; font-variation-settings: 'opsz' 96; }
h1 { font-size: clamp(3rem, 7.5vw, 6rem); font-weight: 700; letter-spacing: -0.035em; line-height: .95; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); font-weight: 600; letter-spacing: -0.025em; }
h3 { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.01em; font-variation-settings: 'opsz' 24; }

:focus-visible { outline: 3px solid var(--pink-ink); outline-offset: 3px; border-radius: 6px; }

/* Le filet rose sous le titre, comme sur l'étiquette */
.rule {
  display: block;
  width: 44px; height: 3px;
  background: var(--pink-deep);
  border-radius: 2px;
  margin: 18px 0 22px;
}

/* ---------- header ---------- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: clamp(14px, 2vw, 24px);
  padding: clamp(10px, 1.4vw, 14px) var(--gutter);
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.top.is-scrolled { border-bottom-color: var(--line); }
.brand { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 1.1rem; letter-spacing: -0.01em; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--ink); color: #fff;
  font-weight: 800; font-size: 15px; line-height: 1;
}
.top-nav { display: flex; gap: clamp(14px, 2.4vw, 26px); margin-left: auto; }
.top-nav a { text-decoration: none; font-weight: 500; color: var(--ink-soft); padding: 6px 2px; position: relative; }
.top-nav a::after { content: ''; position: absolute; left: 0; right: 100%; bottom: 2px; height: 2px; background: var(--pink-deep); transition: right .25s ease; }
.top-nav a:hover { color: var(--ink); }
.top-nav a:hover::after { right: 0; }
.top-buy {
  text-decoration: none; font-weight: 600;
  padding: 10px 18px; border-radius: 10px;
  background: var(--ink); color: #fff;
}
.top-buy:hover { background: var(--pink-ink); }
/* burger (mobile seulement, cf. @media 760) : 3 traits → croix */
.top-menu {
  display: none; place-items: center; flex: none;
  width: 42px; height: 42px; padding: 0; border: 0; border-radius: 10px;
  background: transparent; color: var(--ink); cursor: pointer;
}
.top-menu:hover { background: var(--pink-pale); }
.top-menu span, .top-menu span::before, .top-menu span::after {
  display: block; width: 20px; height: 2px; border-radius: 2px; background: currentColor;
  transition: transform .25s ease, opacity .2s ease;
}
.top-menu span { position: relative; }
.top-menu span::before, .top-menu span::after { content: ''; position: absolute; left: 0; }
.top-menu span::before { top: -6px; }
.top-menu span::after { top: 6px; }
.top.is-open .top-menu span { background: transparent; }
.top.is-open .top-menu span::before { transform: translateY(6px) rotate(45deg); }
.top.is-open .top-menu span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 16px 24px; border: 0; border-radius: var(--r-btn);
  background: var(--ink); color: #fff;
  font: inherit; font-weight: 600; font-size: 1.05rem;
  text-decoration: none; cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.btn:hover { background: var(--pink-ink); }
.btn:active { transform: translateY(1px); }
.btn-price { font-weight: 400; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.3); }

/* ---------- hero éditorial : texte à gauche, photo à fond perdu à droite ---------- */
/* La hauteur du hero = celle de la photo à la largeur de sa colonne (ratio natif 896×1038), plafonnée au
   viewport (84vh / 860 px, la barre de faits reste sous le pli). Plus de min-height en vh : c'est ce qui
   étirait la colonne photo en bande étroite sur tablette et coupait le bloc. */
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center; gap: clamp(28px, 5vw, 80px);
  padding-left: var(--gutter);
}
.hero-text { padding: clamp(32px, min(6vw, 7vh), 96px) 0; max-width: 40rem; animation: text-in .9s cubic-bezier(.2, .8, .2, 1) both; }
.lede { font-size: clamp(1.1rem, 1.5vw, 1.3rem); line-height: 1.45; max-width: 36ch; }
.hero-cta { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; margin-top: 30px; }
.hero-note { color: var(--ink-soft); font-size: .95rem; }
.hero .swatches { margin-top: 26px; }

.hero-figure {
  margin: 0; align-self: stretch; max-height: min(84vh, 860px);
  animation: figure-in 1.1s .15s cubic-bezier(.2, .8, .2, 1) both;
}
.hero-figure img { width: 100%; height: 100%; object-fit: cover; object-position: center 60%; }

@keyframes text-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes figure-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .hero-text, .hero-figure { animation: none; } }

/* barre de faits sous le hero */
.facts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts li { display: grid; gap: 3px; padding: 26px clamp(16px, 2.2vw, 32px); border-left: 1px solid var(--line); }
.facts li:first-child { border-left: 0; padding-left: 0; }
.facts b { font-weight: 600; letter-spacing: -0.01em; }
.facts span { color: var(--ink-soft); font-size: .95rem; }

/* pastilles coloris (hero + panneau achat) */
.swatches { display: flex; align-items: center; gap: 12px; }
.swatches-label { color: var(--ink-soft); font-size: .95rem; margin-right: 4px; }
.swatch {
  width: 30px; height: 30px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--c); border: 2px solid #fff;
  box-shadow: 0 0 0 1px var(--line);
  transition: transform .15s ease, box-shadow .15s ease;
}
.swatch:hover { transform: scale(1.08); }
.swatch[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--ink); }
.swatch-name { font-weight: 600; min-width: 7ch; }

/* ---------- sections ---------- */
.section { padding: clamp(72px, 9.5vw, 150px) 0; }
.section.tint { background: var(--pink-pale); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap.narrow { max-width: 780px; }
.section-head { max-width: 60ch; margin-bottom: clamp(36px, 4vw, 56px); }
.section-head p { font-size: 1.15rem; }
/* minmax(0,1fr) partout : un <img width=1024> dans une colonne 1fr impose sinon sa largeur intrinsèque */
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 110px); align-items: center; }
.two > * { min-width: 0; }
.col.media { margin: 0; }
.col.media img { width: 100%; border-radius: var(--r-img); }
.col.media.square img { aspect-ratio: 1; object-fit: cover; }
.intro { font-size: 1.2rem; max-width: 52ch; margin-bottom: 44px; }

/* triptyque des trois orientations, même cadrage, légende chiffrée */
.triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); }
.triptych figure { margin: 0; min-width: 0; }
.triptych img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 72%; border-radius: var(--r-img); }
.triptych figcaption { display: flex; gap: 14px; align-items: baseline; padding-top: 16px; }
.triptych b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; white-space: nowrap; }
.triptych span { color: var(--ink-soft); line-height: 1.4; }

/* poses */
.poses { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.pose { margin: 0; }
.pose img { border-radius: var(--r-img); aspect-ratio: 4 / 3; object-fit: cover; object-position: center 70%; width: 100%; }
.pose figcaption { padding-top: 18px; }
.pose h3 { margin-bottom: 6px; }
.pose p { color: var(--ink-soft); margin: 0; }

/* contextes */
.contexts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); margin-top: clamp(40px, 5vw, 64px); }
.contexts figure { margin: 0; }
.contexts img { border-radius: var(--r-img); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }
.contexts figcaption { padding-top: 14px; color: var(--ink-soft); }

/* coloris */
.colour-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.colour-list li { display: flex; align-items: center; gap: 12px; }
.colour-list i { width: 22px; height: 22px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 1px var(--line); flex: none; }
.colour-list span { color: var(--ink-soft); }
.colour-list b { font-weight: 600; color: var(--ink); }

/* specs */
.specs { margin: 28px 0 0; }
.specs div { display: grid; grid-template-columns: 110px 1fr; gap: 16px; padding: 13px 0; border-top: 1px solid var(--line); }
.specs div:last-child { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--ink-soft); font-weight: 500; }
.specs dd { margin: 0; }

/* ---------- achat ---------- */
.buybox {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: clamp(28px, 3.5vw, 44px);
  box-shadow: 0 40px 70px -50px rgba(120, 40, 70, .45);
}
.buybox-head { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.buybox h2 { font-size: clamp(1.6rem, 2.3vw, 2rem); }
.price { margin: 0; display: flex; align-items: baseline; gap: 8px; }
.price span { font-size: clamp(1.9rem, 2.6vw, 2.3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1; }
.price small { color: var(--ink-soft); font-size: .95rem; }
.buybox-sub { color: var(--ink-soft); margin: 8px 0 26px; }
.field { display: grid; gap: 12px; padding: 18px 0; border-top: 1px solid var(--line); }
.field-label { display: flex; justify-content: space-between; align-items: baseline; color: var(--ink-soft); font-size: .95rem; }
.field-label b { color: var(--ink); font-weight: 600; }
.buybox .swatch { width: 34px; height: 34px; }
.stepper { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; width: max-content; }
.stepper button {
  width: 46px; height: 44px; border: 0; background: transparent;
  font: inherit; font-size: 1.35rem; line-height: 1; color: var(--ink); cursor: pointer;
  transition: background .15s ease;
}
.stepper button:hover:not(:disabled) { background: var(--pink-pale); }
.stepper button:disabled { color: var(--line); cursor: default; }
.stepper output { min-width: 44px; text-align: center; font-weight: 600; }
.btn-wide { width: 100%; justify-content: space-between; margin-top: 22px; padding: 18px 24px; }
.btn-total { font-weight: 400; }
.buy-msg { margin: 14px 0 0; color: var(--pink-ink); font-weight: 500; }
.buy-msg:empty { display: none; }
.buy-notes { list-style: none; padding: 20px 0 0; margin: 24px 0 0; border-top: 1px solid var(--line); display: grid; gap: 8px; color: var(--ink-soft); font-size: .95rem; }
.buy-notes li { max-width: 48ch; }

/* ---------- FAQ ---------- */
details { border-top: 1px solid var(--line); padding: 4px 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 0; font-weight: 600; font-size: 1.15rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: '+'; flex: none;
  width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--pink); color: var(--pink-ink);
  font-weight: 500; font-size: 1.3rem; line-height: 1;
  transition: transform .25s ease;
}
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 0 20px; color: var(--ink); max-width: 60ch; }

/* ---------- footer ---------- */
.foot { padding: 56px var(--gutter) 64px; color: var(--ink-soft); font-size: .95rem; border-top: 1px solid var(--line); }
.foot p { margin: 0 0 8px; display: flex; align-items: center; gap: 9px; }
.foot .brand-mark { width: 22px; height: 22px; font-size: 13px; border-radius: 6px; }
.foot-note { max-width: 60ch; display: block; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); }
  .lede { max-width: 32ch; }
  .poses { grid-template-columns: 1fr 1fr; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts li:nth-child(3) { border-left: 0; padding-left: 0; }
  .facts li:nth-child(n+3) { border-top: 1px solid var(--line); }
}
/* Téléphones + tablettes étroites + téléphones en paysage : hero empilé, nav en panneau sous la barre */
@media (max-width: 760px), (max-height: 560px) and (max-width: 1000px) {
  .top-menu { display: inline-grid; }
  .top-buy { margin-left: auto; padding: 9px 15px; }
  .top-nav {
    display: none; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%; margin: 0;
    padding: 4px var(--gutter) 16px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 30px 40px -30px rgba(120, 40, 70, .25);
  }
  .top.is-open { background: var(--bg); }
  .top.is-open .top-nav { display: flex; }
  .top-nav a { padding: 13px 0; font-size: 1.05rem; color: var(--ink); border-top: 1px solid var(--line); }
  .top-nav a:first-child { border-top: 0; }
  .top-nav a::after { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 0 var(--gutter); }
  .hero-text { padding: clamp(28px, 5vh, 40px) 0 36px; }
  .hero-figure { max-height: none; margin: 0 0 8px; }
  .hero-figure img { aspect-ratio: 4 / 5; max-height: 70vh; border-radius: var(--r-img); }
  .two { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .two.flip .col.media { order: -1; }
  .poses, .contexts { grid-template-columns: minmax(0, 1fr); }
  .colour-list { grid-template-columns: minmax(0, 1fr); }
  .triptych { gap: 10px; }
  .triptych figcaption { display: grid; gap: 4px; padding-top: 10px; }
  .triptych b { font-size: 1.15rem; }
  .triptych span { font-size: .85rem; }
  .specs div { grid-template-columns: 90px 1fr; }
  .foot p { align-items: flex-start; }
}
