/* =========================================================
   Casa Nácar × Sonny Angel — feuille de style
   Motif directeur : le bord festonné de la coquille de nacre.
   ========================================================= */

:root {
  --pearl: #F2EEF3;
  --pearl-deep: #E4DDE8;
  --paper: #FBF9FC;
  --bark: #2E1F17;
  --bark-soft: #5A4A40;
  --chestnut: #7A4426;
  --rust: #A8482A;
  --ochre: #C98F1A;
  --moss: #4F5B33;
  --blush: #F2BDB4;
  --line: rgba(46, 31, 23, .16);
  --nacre: linear-gradient(120deg, #F9E2EA 0%, #DDEAF6 28%, #EAF4DE 52%, #F8E8CF 76%, #EDE1F5 100%);

  --display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --sans: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  /* Échelle typographique (quarte augmentée ~1.333) */
  --t-sm: .875rem;
  --t-base: 1.0625rem;
  --t-md: 1.333rem;
  --t-lg: 1.777rem;
  --t-xl: clamp(2rem, 3.6vw, 3.157rem);
  --t-2xl: clamp(2.6rem, 6vw, 5.6rem);
  --t-hero: clamp(3.4rem, 11.5vw, 11rem);

  --gutter: clamp(1rem, 4vw, 3.5rem);
  --max: 1320px;
  --scallop: 18px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--pearl);
  color: var(--bark);
  font: 400 var(--t-base)/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
[data-cherub] > svg, [data-garment] > svg { width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.05; margin: 0; font-variation-settings: 'SOFT' 100, 'WONK' 0; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 3px; border-radius: 2px; }

[hidden] { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--bark); color: var(--pearl); padding: .6rem 1rem; }
.skip-link:focus { top: 1rem; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.measure { max-width: 34em; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 3.1rem; padding: .8rem 1.6rem;
  border: 1.5px solid var(--bark); border-radius: 999px;
  background: transparent; text-decoration: none; font-weight: 600; font-size: 1rem; line-height: 1.2;
  transition: background-color .2s, color .2s, transform .2s;
}
.btn:hover { background: var(--bark); color: var(--pearl); }
.btn:active { transform: scale(.98); }
.btn-dark { background: var(--bark); color: var(--pearl); }
.btn-dark:hover { background: var(--chestnut); border-color: var(--chestnut); }
.btn-light { border-color: var(--pearl); color: var(--pearl); }
.btn-light:hover { background: var(--pearl); color: var(--bark); }
.btn-block { width: 100%; }
.btn-small { min-height: 2.4rem; padding: .45rem 1.1rem; font-size: .9rem; }
.btn[disabled] { opacity: .6; cursor: progress; }
.link-btn { background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: .2em; font-size: var(--t-sm); color: var(--bark-soft); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Bandeau de réassurance ---------- */
.promise-bar { background: var(--bark); color: var(--pearl); font-size: .8125rem; }
.promise-bar ul { list-style: none; margin: 0 auto; padding: .55rem var(--gutter); display: flex; justify-content: center; gap: 2.5rem; max-width: var(--max); }
@media (max-width: 760px) {
  .promise-bar ul { justify-content: flex-start; overflow-x: auto; scrollbar-width: none; gap: 1.6rem; white-space: nowrap; }
}

/* ---------- En-tête ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: .9rem var(--gutter);
  background: color-mix(in srgb, var(--pearl) 88%, transparent);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.wordmark { text-decoration: none; font-family: var(--display); font-size: 1.6rem; line-height: 1; font-variation-settings: 'SOFT' 100, 'WONK' 1; white-space: nowrap; }
.wordmark-casa { font-weight: 300; }
.wordmark-nacar { font-weight: 600; font-style: italic; }
.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: clamp(.9rem, 1.8vw, 1.9rem); align-items: center; }
.site-nav a { text-decoration: none; font-size: .95rem; font-weight: 500; padding: .3rem 0; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline wavy var(--ochre); text-underline-offset: .45em; text-decoration-thickness: 1.5px; }
.nav-cart a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .95rem; border: 1.5px solid var(--bark); border-radius: 999px; }
.nav-cart a:hover, .nav-cart a[aria-current="page"] { text-decoration: none; background: var(--bark); color: var(--pearl); }
.cart-count { display: inline-grid; place-items: center; min-width: 1.4rem; height: 1.4rem; padding: 0 .3rem; border-radius: 999px; background: var(--ochre); color: var(--bark); font-size: .75rem; font-weight: 600; }
.cart-count.is-empty { background: var(--pearl-deep); }
.nav-toggle { display: none; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .6rem; background: none; border: 0; padding: .4rem 0; font-weight: 600; }
  .nav-toggle-bars, .nav-toggle-bars::before { display: block; width: 22px; height: 1.5px; background: currentColor; position: relative; transition: transform .25s; }
  .nav-toggle-bars::before { content: ''; position: absolute; top: 6px; }
  .nav-open .nav-toggle-bars { transform: translateY(3px) rotate(45deg); }
  .nav-open .nav-toggle-bars::before { transform: translateY(-6px) rotate(-90deg); }
  .site-nav { position: fixed; inset: var(--header-h, 100px) 0 auto 0; background: var(--pearl); border-bottom: 1px solid var(--line); padding: 1rem var(--gutter) 2rem; transform: translateY(-120%); visibility: hidden; transition: transform .35s ease, visibility .35s; }
  .nav-open .site-nav { transform: none; visibility: visible; }
  .site-nav ul { flex-direction: column; align-items: flex-start; gap: .2rem; }
  .site-nav a { font-family: var(--display); font-size: 1.9rem; }
  .nav-cart { margin-top: 1rem; }
  .nav-cart a { font-family: var(--sans); font-size: 1rem; }
}

/* ---------- Feston (signature) ---------- */
.scalloped { position: relative; }
.scalloped::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: calc(-1 * var(--scallop) + 1px); height: var(--scallop);
  background: radial-gradient(circle at var(--scallop) 0, var(--panel, var(--pearl-deep)) calc(var(--scallop) - .5px), transparent var(--scallop)) 0 0 / calc(2 * var(--scallop)) var(--scallop) repeat-x;
  pointer-events: none;
}

/* ---------- Typo éditoriale ---------- */
.display { font-size: var(--t-2xl); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 350; }
.title { font-size: var(--t-xl); font-variation-settings: 'SOFT' 100, 'opsz' 96; }
.kicker { font-size: var(--t-sm); color: var(--bark-soft); margin-bottom: 1rem; }
.lede { font-size: var(--t-md); line-height: 1.5; max-width: 30em; }
.serif-copy { font-family: var(--display); font-size: 1.2rem; line-height: 1.65; font-variation-settings: 'opsz' 14; }

.section { padding-block: clamp(4rem, 9vw, 8rem); }
.section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2rem var(--gutter); align-items: end; margin-bottom: clamp(2rem, 5vw, 4rem); }
.section-head p { margin: 0; max-width: 32em; }
@media (max-width: 760px) { .section-head { grid-template-columns: 1fr; } }

/* =========================================================
   Animation d'accueil
   ========================================================= */
.intro { display: none; }
.play-intro .intro {
  --hole: 0vmax;
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; overflow: hidden;
  background: radial-gradient(120% 90% at 50% 60%, #4A3428 0%, var(--bark) 60%);
  color: var(--pearl);
  -webkit-mask-image: radial-gradient(circle at 50% 58%, transparent var(--hole), #000 calc(var(--hole) + 1px));
          mask-image: radial-gradient(circle at 50% 58%, transparent var(--hole), #000 calc(var(--hole) + 1px));
}
.intro-running body { overflow: hidden; }
.intro-sheen { position: absolute; inset: -20%; background: var(--nacre); opacity: .08; filter: blur(40px); animation: sheen 6s linear infinite; }
@keyframes sheen { to { transform: rotate(360deg); } }
.intro-stage { position: absolute; left: 50%; top: 60%; width: min(72vmin, 600px); aspect-ratio: 1; transform: translate(-50%, -50%); }
.intro-stage .shell { width: 100%; height: 100%; overflow: visible; }
.shell-lines path { stroke: #F8F1FA; stroke-width: 2; stroke-linecap: round; }
.intro-title {
  position: absolute; top: clamp(1.5rem, 9vh, 7rem); left: 0; right: 0; margin: 0; text-align: center;
  font-family: var(--display); font-weight: 340; font-size: clamp(2.4rem, 8.5vw, 7.5rem); line-height: .92;
  font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; letter-spacing: -.02em;
  display: flex; flex-wrap: wrap; justify-content: center; align-items: baseline; gap: 0 .3em; padding-inline: 1rem;
}
.intro-line { display: inline-flex; overflow: hidden; padding-bottom: .08em; }
.intro-line .ch { display: inline-block; will-change: transform; }
.intro-x { display: inline-block; font-style: italic; color: var(--ochre); }
.intro-sub { position: absolute; bottom: clamp(1.5rem, 7vh, 4rem); left: 0; right: 0; text-align: center; margin: 0; font-size: 1rem; letter-spacing: .02em; color: #E9DCD3; }
.intro-skip { position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 2; background: none; border: 1px solid rgba(242,238,243,.45); color: var(--pearl); border-radius: 999px; padding: .45rem 1rem; font-size: .85rem; }
.intro-skip:hover { background: rgba(242,238,243,.12); }
.intro-leaves { position: absolute; inset: 0; pointer-events: none; }
.leaf { position: absolute; top: 0; width: calc(26px * var(--s)); height: calc(26px * var(--s)); transform: translateY(-12vh); }
@media (max-width: 600px) {
  .intro-stage { top: 60%; width: 86vw; }
}

/* =========================================================
   Héros de la collab
   ========================================================= */
.collab-hero { position: relative; padding: clamp(2.5rem, 6vw, 5rem) var(--gutter) clamp(3rem, 7vw, 6rem); overflow: hidden; }
.collab-hero-inner { max-width: var(--max); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); align-items: center; gap: 2rem; }
.collab-hero h1 { font-size: var(--t-hero); font-weight: 330; line-height: .86; letter-spacing: -.035em; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; }
.collab-hero h1 .h1-cross { display: block; font-style: italic; font-weight: 300; color: var(--chestnut); padding-left: .55em; }
.collab-hero h1 .h1-sub { display: block; font-family: var(--sans); font-size: var(--t-md); letter-spacing: 0; font-weight: 500; margin-top: 1.4rem; line-height: 1.3; color: var(--bark-soft); }
.collab-hero .lede { margin: 1.5rem 0 2rem; }
.pearl-disc { position: relative; aspect-ratio: 1; border-radius: 50%; background: var(--nacre); display: grid; place-items: center; box-shadow: inset -18px -24px 60px rgba(122, 68, 38, .12), inset 20px 20px 50px rgba(255, 255, 255, .7); }
.pearl-disc::before { content: ''; position: absolute; inset: 9% 22% auto auto; width: 18%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.95), rgba(255,255,255,0) 70%); }
.pearl-disc [data-cherub] { width: 52%; transform: translateY(4%); filter: drop-shadow(0 14px 18px rgba(46, 31, 23, .18)); }
.hero-tag { position: absolute; left: -4%; bottom: 10%; background: var(--paper); border-radius: 999px; padding: .55rem 1.1rem; font-size: .9rem; font-weight: 500; transform: rotate(-6deg); border: 1px solid var(--line); }
@media (max-width: 860px) {
  .collab-hero-inner { grid-template-columns: 1fr; }
  .collab-hero .pearl-disc { width: min(80vw, 380px); margin: 1rem auto 0; order: -1; }
  .collab-hero h1 .h1-cross { padding-left: 0; }
}

/* ---------- Bloc manifeste ---------- */
.manifesto { background: var(--paper); --panel: var(--paper); }
.manifesto-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--gutter); }
.manifesto blockquote { margin: 0; font-family: var(--display); font-size: var(--t-xl); line-height: 1.15; font-variation-settings: 'SOFT' 100, 'WONK' 1; font-weight: 340; }
.manifesto blockquote footer { font-family: var(--sans); font-size: var(--t-sm); margin-top: 1.4rem; color: var(--bark-soft); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.facts dt { font-size: var(--t-sm); color: var(--bark-soft); }
.facts dd { margin: .2rem 0 0; font-family: var(--display); font-size: var(--t-lg); line-height: 1.1; }
@media (max-width: 860px) { .manifesto-grid { grid-template-columns: 1fr; } .facts { grid-template-columns: 1fr; } }

/* =========================================================
   Grille produits
   ========================================================= */
.product-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2.25rem); align-items: start; }
.product-grid > li:nth-child(2) { margin-top: clamp(0rem, 8vw, 7rem); }
.product-grid > li:nth-child(3) { margin-top: clamp(0rem, 3.5vw, 3rem); }
.product-card { display: block; text-decoration: none; }
.product-card-art { --panel: var(--pearl-deep); background: var(--panel); aspect-ratio: 4 / 5; display: grid; place-items: center; padding: 12% 10% 10%; margin-bottom: calc(var(--scallop) + 1rem); position: relative; transition: background-color .3s; }
.product-card-art > [data-garment] { width: 100%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.product-card:hover [data-garment] { transform: rotate(-3deg) scale(1.04); }
.product-card-peek { position: absolute; right: 7%; bottom: -6%; width: 26%; transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.product-card:hover .product-card-peek { transform: translateY(-14%) rotate(6deg); }
.product-card h3 { font-size: var(--t-lg); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.product-card-meta { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.product-card-price { font-weight: 600; }
.product-card p { color: var(--bark-soft); margin: .4rem 0 .8rem; max-width: 28em; }
.swatches { display: flex; gap: .4rem; list-style: none; padding: 0; margin: 0; }
.swatches li { width: 14px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 1px rgba(46,31,23,.25); }
.product-card .stars { margin-left: auto; }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: 1fr; gap: 3rem; }
  .product-grid > li:nth-child(n) { margin-top: 0; }
}

.stars { font-size: var(--t-sm); color: var(--bark-soft); white-space: nowrap; }
.stars b { color: var(--ochre); letter-spacing: .08em; font-weight: 400; }

.filter-bar { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 2.5rem; }
.chip { border: 1.5px solid var(--line); background: transparent; border-radius: 999px; padding: .45rem 1.1rem; font-weight: 500; font-size: .95rem; }
.chip[aria-pressed="true"] { background: var(--bark); border-color: var(--bark); color: var(--pearl); }

/* =========================================================
   Lookbook
   ========================================================= */
.lookbook { background: var(--bark); color: var(--pearl); --panel: var(--bark); }
.lookbook .kicker { color: #CDBDB2; }
.look-strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(.75rem, 2vw, 1.5rem); }
.look { margin: 0; position: relative; min-height: clamp(380px, 52vw, 640px); padding: 1.4rem; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--look-bg); color: var(--look-fg, var(--bark)); }
.look:nth-child(2) { margin-top: 4rem; }
.look-art { position: absolute; inset: 14% 8% 22%; display: grid; place-items: center; }
.look-art > div { width: 78%; }
.look-cherub { position: absolute; width: 30%; right: 6%; bottom: 18%; transform: rotate(var(--r, 6deg)); }
.look figcaption { position: relative; z-index: 1; margin-top: auto; }
.look figcaption h3 { font-size: var(--t-lg); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-style: italic; }
.look figcaption p { margin: .3rem 0 0; font-size: var(--t-sm); max-width: 24em; }
.look-place { position: relative; z-index: 1; font-size: var(--t-sm); }
@media (max-width: 860px) {
  .look-strip { grid-template-columns: 1fr; }
  .look:nth-child(2) { margin-top: 0; }
}

/* ---------- Série de figurines ---------- */
.series { --panel: var(--blush); background: var(--blush); }
.series-row { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; align-items: end; }
.series-row li { text-align: center; }
.series-row [data-cherub] { width: 78%; margin: 0 auto 1rem; }
.series-row li:nth-child(4) [data-cherub] { filter: drop-shadow(0 0 22px rgba(255,255,255,.9)); }
.series-row h3 { font-size: var(--t-md); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.series-row p { font-size: var(--t-sm); margin: .3rem 0 0; }
@media (max-width: 760px) { .series-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.5rem; } }

/* ---------- Avis ---------- */
.reviews-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); }
.review { border-top: 1.5px solid var(--bark); padding-top: 1.2rem; }
.review blockquote { margin: .6rem 0 1rem; font-family: var(--display); font-size: 1.25rem; line-height: 1.4; font-variation-settings: 'SOFT' 100, 'opsz' 24; }
.review footer { font-size: var(--t-sm); color: var(--bark-soft); }
.review .verified { display: inline-block; margin-left: .4rem; color: var(--moss); font-weight: 600; }
@media (max-width: 860px) { .reviews-grid { grid-template-columns: 1fr; } }

.rating-summary { display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem 3rem; margin-bottom: 3rem; }
.rating-big { font-family: var(--display); font-size: var(--t-2xl); line-height: 1; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.rating-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; min-width: min(100%, 320px); font-size: var(--t-sm); }
.rating-bars li { display: grid; grid-template-columns: 4.5em 1fr 3em; gap: .8rem; align-items: center; }
.rating-bars span[style] { height: 6px; border-radius: 3px; background: linear-gradient(90deg, var(--ochre) var(--w), var(--pearl-deep) var(--w)); }

/* ---------- Bande réassurance ---------- */
.assurance { list-style: none; margin: 0; padding: 2.5rem 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; border-block: 1px solid var(--line); }
.assurance h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: .3rem; }
.assurance p { margin: 0; font-size: var(--t-sm); color: var(--bark-soft); }
.assurance svg { width: 30px; height: 30px; margin-bottom: .8rem; stroke: var(--chestnut); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .assurance { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Appel final ---------- */
.final-cta { text-align: center; background: var(--nacre); }
.final-cta h2 { font-size: var(--t-2xl); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 330; margin-bottom: 1.5rem; }
.final-cta p { margin-inline: auto; max-width: 32em; }
.final-cta .actions { justify-content: center; margin-top: 2rem; }

/* =========================================================
   Accueil Casa Nácar
   ========================================================= */
.home-hero { padding: clamp(2.5rem, 7vw, 6rem) var(--gutter) 0; }
.home-hero h1 { font-size: var(--t-hero); font-weight: 320; line-height: .86; letter-spacing: -.04em; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; max-width: var(--max); margin: 0 auto; }
.home-hero-row { max-width: var(--max); margin: 2rem auto 0; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1.5rem; }
.home-hero-row .lede { margin: 0; }
.feature { margin-top: clamp(2.5rem, 6vw, 5rem); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--chestnut); color: var(--pearl); text-decoration: none; }
.feature-art { position: relative; background: var(--nacre); display: grid; place-items: center; min-height: 420px; overflow: hidden; }
.feature-art [data-cherub] { width: 34%; position: relative; z-index: 1; }
.feature-art [data-garment] { position: absolute; width: 48%; }
.feature-art [data-garment]:first-child { left: -6%; bottom: -8%; transform: rotate(-12deg); }
.feature-art [data-garment]:last-child { right: -8%; top: -6%; transform: rotate(14deg); }
.feature-copy { padding: clamp(2rem, 5vw, 4.5rem); display: flex; flex-direction: column; justify-content: center; gap: 1rem; }
.feature-copy h2 { font-size: var(--t-xl); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.feature-copy p { margin: 0; max-width: 30em; color: #F1E3D8; }
.feature:hover .btn-light { background: var(--pearl); color: var(--bark); }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature-art { min-height: 320px; } }

.values { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gutter); counter-reset: v; }
.values h3 { font-size: var(--t-lg); margin-bottom: .6rem; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.values p { color: var(--bark-soft); margin: 0; }
@media (max-width: 860px) { .values { grid-template-columns: 1fr; } }

.journal-teaser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gutter); }
.article-card { text-decoration: none; display: block; }
.article-card-art { aspect-ratio: 16 / 10; background: var(--panel, var(--pearl-deep)); display: grid; place-items: center; margin-bottom: 1.2rem; overflow: hidden; }
.article-card-art > div { width: 34%; }
.article-card h3 { font-size: var(--t-lg); font-variation-settings: 'SOFT' 100, 'WONK' 1; margin-bottom: .5rem; }
.article-card:hover h3 { text-decoration: underline wavy var(--ochre); text-underline-offset: .2em; text-decoration-thickness: 1.5px; }
.article-card p { color: var(--bark-soft); margin: 0; }
@media (max-width: 760px) { .journal-teaser { grid-template-columns: 1fr; } }

/* =========================================================
   En-têtes de pages intérieures
   ========================================================= */
.page-head { padding: clamp(2.5rem, 6vw, 5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: var(--t-2xl); font-weight: 330; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; letter-spacing: -.025em; margin-bottom: 1rem; }
.breadcrumb ol { list-style: none; margin: 0 0 1.5rem; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; font-size: var(--t-sm); color: var(--bark-soft); }
.breadcrumb li + li::before { content: '/'; margin-right: .5rem; opacity: .5; }

/* =========================================================
   Fiche produit
   ========================================================= */
.product { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; padding-bottom: 4rem; }
.product-gallery { display: grid; gap: 1rem; }
.product-art > div, .product-art > svg { width: 100%; }
.product-art { --panel: var(--pearl-deep); background: var(--panel); aspect-ratio: 1 / 1.05; display: grid; place-items: center; padding: 10%; transition: background-color .35s; margin-bottom: var(--scallop); }
.product-detail { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 1rem; align-items: center; background: var(--paper); padding: 1.5rem; }
.product-detail [data-cherub] { width: 80%; margin: auto; }
.product-detail h2 { font-size: var(--t-md); font-variation-settings: 'SOFT' 100, 'WONK' 1; font-style: italic; margin-bottom: .5rem; }
.product-detail p { font-size: var(--t-sm); margin: 0; color: var(--bark-soft); }
.product-info { position: sticky; top: 6rem; }
.product-info h1 { font-size: var(--t-xl); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 96; font-weight: 380; margin-bottom: .5rem; }
.product-price { font-size: var(--t-md); font-weight: 600; margin: 0 0 .3rem; }
.product-price small { font-weight: 400; color: var(--bark-soft); font-size: var(--t-sm); }
.product-short { margin: 1.2rem 0 1.8rem; font-size: var(--t-md); line-height: 1.45; }
.picker { border: 0; padding: 0; margin: 0 0 1.6rem; }
.picker legend { font-weight: 600; margin-bottom: .7rem; padding: 0; display: flex; gap: .5rem; width: 100%; }
.picker legend span { font-weight: 400; color: var(--bark-soft); }
.picker legend a { margin-left: auto; font-weight: 400; font-size: var(--t-sm); }
.color-picker .options { display: flex; gap: .7rem; }
.color-picker button { width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 0; background: var(--c); box-shadow: inset 0 0 0 1px rgba(46,31,23,.25), 0 0 0 3px var(--pearl), 0 0 0 4px transparent; transition: box-shadow .2s; }
.color-picker button[aria-pressed="true"] { box-shadow: inset 0 0 0 1px rgba(46,31,23,.25), 0 0 0 3px var(--pearl), 0 0 0 4.5px var(--bark); }
.size-picker .options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .5rem; }
.size-picker button { min-height: 2.9rem; border: 1.5px solid var(--line); background: var(--paper); border-radius: 6px; font-weight: 500; }
.size-picker button:hover { border-color: var(--bark); }
.size-picker button[aria-pressed="true"] { background: var(--bark); color: var(--pearl); border-color: var(--bark); }
.field-error, [data-size-error] { color: var(--rust); font-size: var(--t-sm); margin: .5rem 0 0; min-height: 1.2em; }
.product-perks { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .55rem; font-size: var(--t-sm); }
.product-perks li { display: flex; gap: .7rem; align-items: baseline; }
.product-perks li::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--nacre); box-shadow: 0 0 0 1px var(--chestnut); transform: translateY(-1px); }
.accordion details { border-top: 1px solid var(--line); }
.accordion details:last-child { border-bottom: 1px solid var(--line); }
.accordion summary { list-style: none; cursor: pointer; padding: 1rem 0; font-weight: 600; display: flex; justify-content: space-between; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after { content: '+'; font-weight: 400; font-size: 1.3rem; line-height: 1; transition: transform .25s; }
.accordion details[open] summary::after { transform: rotate(45deg); }
.accordion details > div { padding-bottom: 1.2rem; font-size: .975rem; color: var(--bark-soft); }
.size-table { width: 100%; border-collapse: collapse; font-size: var(--t-sm); }
.size-table th, .size-table td { padding: .45rem .3rem; text-align: left; border-bottom: 1px solid var(--line); }
.sticky-buy { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: none; gap: 1rem; align-items: center; justify-content: space-between; padding: .8rem var(--gutter); background: var(--paper); border-top: 1px solid var(--line); transform: translateY(100%); transition: transform .3s; }
.sticky-buy.is-visible { transform: none; }
.sticky-buy p { margin: 0; font-weight: 600; line-height: 1.2; }
.sticky-buy p span { display: block; font-weight: 400; font-size: var(--t-sm); color: var(--bark-soft); }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; }
  .product-info { position: static; }
  .sticky-buy { display: flex; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; z-index: 60; right: var(--gutter); top: 5.5rem; width: min(360px, calc(100% - 2 * var(--gutter))); background: var(--bark); color: var(--pearl); padding: 1.1rem 1.2rem; border-radius: 14px; display: flex; flex-direction: column; gap: .8rem; transform: translateY(-12px); opacity: 0; transition: transform .3s, opacity .3s; }
.toast.is-visible { transform: none; opacity: 1; }
.toast p { margin: 0; }
.toast p span { font-size: var(--t-sm); color: #D9CBC1; }
.toast .btn-dark { background: var(--pearl); color: var(--bark); border-color: var(--pearl); align-self: flex-start; }

/* =========================================================
   Tunnel : panier, commande, merci
   ========================================================= */
.progress { list-style: none; margin: 0 0 2.5rem; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .4rem; counter-reset: step; font-size: var(--t-sm); }
.progress li { counter-increment: step; padding-top: .7rem; border-top: 3px solid var(--pearl-deep); color: var(--bark-soft); }
.progress li::before { content: counter(step) '. '; }
.progress li.is-done { border-color: var(--chestnut); color: var(--bark); }
.progress li.is-current { border-color: var(--ochre); color: var(--bark); font-weight: 600; }
@media (max-width: 600px) { .progress li { font-size: .72rem; } }

.cart-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, .8fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; padding-bottom: 5rem; }
.cart-lines { list-style: none; margin: 0; padding: 0; }
.cart-line { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.cart-line-art { background: var(--panel); aspect-ratio: 1; display: grid; place-items: center; padding: 10%; }
.cart-line h3 { font-size: var(--t-md); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.cart-line h3 a { text-decoration: none; }
.cart-line p { margin: .2rem 0 .6rem; font-size: var(--t-sm); color: var(--bark-soft); }
.cart-line-price { font-weight: 600; margin: 0; }
.cart-lines.compact .cart-line { grid-template-columns: 64px minmax(0, 1fr) auto; gap: .8rem; padding: .8rem 0; }
.cart-lines.compact h3 { font-size: 1rem; }
.cart-lines.compact p { margin: 0; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; margin-right: 1rem; }
.qty button { width: 2.2rem; height: 2.2rem; border: 0; background: none; font-size: 1.1rem; }
.qty output { min-width: 1.5rem; text-align: center; font-weight: 600; }
.cart-aside { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); position: sticky; top: 6rem; }
.cart-aside h2 { font-size: var(--t-lg); margin-bottom: 1rem; }
.summary { margin: 0 0 1.2rem; }
.summary div { display: flex; justify-content: space-between; padding: .45rem 0; }
.summary dt, .summary dd { margin: 0; }
.summary-total { border-top: 1px solid var(--line); margin-top: .4rem; padding-top: .9rem !important; font-weight: 600; font-size: var(--t-md); }
.free-ship { font-size: var(--t-sm); color: var(--moss); font-weight: 500; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem; }
.inline-form input { flex: 1 1 12rem; }
.inline-form .form-feedback { flex-basis: 100%; margin: .2rem 0 0; font-size: var(--t-sm); min-height: 1.2em; }
.empty-state { padding: 2rem 0 6rem; display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 2rem; align-items: center; }

.empty-state h2 { font-size: var(--t-xl); margin-bottom: .8rem; }
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-aside { position: static; }
  .cart-line { grid-template-columns: 88px minmax(0, 1fr); }
  .cart-line-price { grid-column: 2; }
  .empty-state { grid-template-columns: 1fr; }
  .empty-state > [data-cherub] { width: 160px; }
}

input, select, textarea {
  font: inherit; color: inherit; width: 100%; min-height: 3rem; padding: .7rem .9rem;
  border: 1.5px solid var(--line); border-radius: 8px; background: var(--paper);
}
input:focus, select:focus { outline: none; border-color: var(--bark); box-shadow: 0 0 0 3px rgba(201, 143, 26, .3); }
input[aria-invalid="true"] { border-color: var(--rust); }
.field { margin-bottom: 1rem; }
.field label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: .35rem; }
.field-hint { font-size: .8rem; color: var(--bark-soft); margin: .3rem 0 0; }
.fields-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; }
@media (max-width: 520px) { .fields-2 { grid-template-columns: 1fr; } }
.checkout-step h2 { font-size: var(--t-lg); margin-bottom: 1.4rem; outline: none; }
.step-actions { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 1.6rem; flex-wrap: wrap-reverse; }
.radio-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1.5px solid var(--line); border-radius: 10px; margin-bottom: .7rem; cursor: pointer; background: var(--paper); }
.radio-card:has(input:checked) { border-color: var(--bark); }
.radio-card input { width: 1.2rem; min-height: 0; height: 1.2rem; accent-color: var(--bark); flex: none; }
.radio-card span { flex: 1; }
.radio-card small { display: block; color: var(--bark-soft); }
.secure-note { display: flex; gap: .6rem; align-items: center; font-size: var(--t-sm); color: var(--moss); background: rgba(79, 91, 51, .08); padding: .7rem 1rem; border-radius: 8px; margin-bottom: 1.2rem; }

.thanks { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 5rem); padding: clamp(2.5rem, 6vw, 5rem) 0 5rem; align-items: start; }
.thanks h1 { font-size: var(--t-2xl); font-weight: 330; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; letter-spacing: -.025em; margin-bottom: 1.2rem; }
.order-card { background: var(--paper); padding: clamp(1.4rem, 3vw, 2.2rem); }
.order-card h2 { font-size: var(--t-md); margin-bottom: 1rem; }
.order-card ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.order-card li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.order-card li small { display: block; color: var(--bark-soft); }
.order-card li.total { font-weight: 600; border-bottom: 0; }
.timeline { list-style: none; padding: 0; margin: 2rem 0; display: grid; gap: 1.1rem; }
.timeline li { display: grid; grid-template-columns: 1.6rem 1fr; gap: .8rem; }
.timeline li::before { content: ''; width: 14px; height: 14px; margin-top: .35rem; border-radius: 50%; border: 2px solid var(--chestnut); }
.timeline li.done::before { background: var(--chestnut); }
.timeline strong { display: block; }
.timeline span { font-size: var(--t-sm); color: var(--bark-soft); }
.surprise { margin-top: 2rem; background: var(--nacre); padding: 1.6rem; display: grid; grid-template-columns: 110px 1fr; gap: 1.2rem; align-items: center; }
.surprise h2 { font-size: var(--t-md); font-variation-settings: 'SOFT' 100, 'WONK' 1; margin-bottom: .4rem; }
.surprise p { margin: 0; font-size: var(--t-sm); }
.loyalty { margin-top: 1.5rem; border: 1.5px dashed var(--chestnut); padding: 1.4rem; }
.loyalty h2 { font-size: var(--t-md); margin-bottom: .5rem; }
.loyalty code { font-family: var(--sans); font-weight: 600; background: var(--pearl-deep); padding: .2rem .5rem; border-radius: 4px; }
.share { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1rem; }
@media (max-width: 860px) { .thanks { grid-template-columns: 1fr; } }

/* =========================================================
   Pages éditoriales
   ========================================================= */
.prose { max-width: 40rem; }
.prose h2 { font-size: var(--t-lg); margin: 2.5rem 0 1rem; font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.prose h3 { font-size: var(--t-md); margin: 1.8rem 0 .6rem; }
.prose p, .prose li { font-family: var(--display); font-size: 1.15rem; line-height: 1.7; font-variation-settings: 'opsz' 14; }
.prose ul { padding-left: 1.2rem; }
.article { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--gutter); padding-bottom: 4rem; border-bottom: 1px solid var(--line); margin-bottom: 4rem; }
.article aside { position: sticky; top: 6rem; align-self: start; }
.article-meta { font-size: var(--t-sm); color: var(--bark-soft); }
.inline-product { display: grid; grid-template-columns: 90px 1fr; gap: 1rem; align-items: center; padding: 1rem; background: var(--paper); text-decoration: none; margin-bottom: .8rem; }
.inline-product > div:first-child { background: var(--panel); padding: 8%; }
.inline-product strong { display: block; font-family: var(--display); font-weight: 400; font-size: 1.1rem; }
.inline-product span { font-size: var(--t-sm); color: var(--bark-soft); }
@media (max-width: 860px) { .article { grid-template-columns: 1fr; } .article aside { position: static; } }

.team { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.team-portrait { aspect-ratio: 3 / 4; background: var(--panel); display: grid; place-items: end center; overflow: hidden; margin-bottom: .9rem; }
.team-portrait [data-cherub] { width: 72%; transform: translateY(8%); }
.team h3 { font-size: var(--t-md); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.team p { font-size: var(--t-sm); color: var(--bark-soft); margin: .2rem 0 0; }
@media (max-width: 860px) { .team { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.timeline-h { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; border-top: 1.5px solid var(--bark); }
.timeline-h li { padding-top: 1.2rem; position: relative; }
.timeline-h li::before { content: ''; position: absolute; top: -7px; left: 0; width: 12px; height: 12px; border-radius: 50%; background: var(--pearl); border: 1.5px solid var(--bark); }
.timeline-h b { font-family: var(--display); font-weight: 400; font-size: var(--t-lg); display: block; }
.timeline-h p { font-size: var(--t-sm); color: var(--bark-soft); margin: .3rem 0 0; }
@media (max-width: 760px) { .timeline-h { grid-template-columns: 1fr 1fr; } }

/* =========================================================
   Pied de page
   ========================================================= */
.site-footer { background: var(--bark); color: var(--pearl); padding: clamp(3rem, 7vw, 5.5rem) var(--gutter) 1.5rem; margin-top: 0; }
.footer-top { max-width: var(--max); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: var(--gutter); }
.footer-title { font-size: var(--t-lg); font-variation-settings: 'SOFT' 100, 'WONK' 1; margin-bottom: .8rem; }
.footer-newsletter p { color: #D9CBC1; max-width: 26em; }
.footer-newsletter input { background: transparent; border-color: rgba(242,238,243,.35); color: var(--pearl); }
.footer-newsletter input::placeholder { color: #A8978C; }
.footer-newsletter .btn-dark { background: var(--pearl); color: var(--bark); border-color: var(--pearl); }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.5rem; }
.footer-heading { font-family: var(--sans); font-size: var(--t-sm); font-weight: 600; color: #CDBDB2; margin-bottom: .8rem; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .45rem; }
.footer-cols a { text-decoration: none; font-size: .95rem; }
.footer-cols a:hover { text-decoration: underline wavy var(--ochre); }
.footer-bottom { max-width: var(--max); margin: 3.5rem auto 0; }
.footer-big { font-family: var(--display); font-size: clamp(4rem, 17vw, 15rem); line-height: .8; margin: 0 0 1.5rem; letter-spacing: -.04em; font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; font-weight: 300; background: var(--nacre); -webkit-background-clip: text; background-clip: text; color: transparent; }
.footer-legal { font-size: .8rem; color: #A8978C; max-width: 60em; margin: 0; }
@media (max-width: 860px) {
  .footer-top { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2rem; }
}

/* =========================================================
   Tableau de bord KPI (démo)
   ========================================================= */
.kpi-panel { position: fixed; z-index: 150; right: 1rem; bottom: 1rem; width: min(440px, calc(100% - 2rem)); max-height: calc(100vh - 2rem); overflow: auto; background: var(--paper); border: 1.5px solid var(--bark); border-radius: 14px; padding: 1.4rem; box-shadow: 0 30px 60px -30px rgba(46, 31, 23, .5); font-size: .95rem; }
.kpi-head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: .6rem; }
.kpi-head h2 { font-size: var(--t-md); }
.kpi-close, .kpi-reset { background: none; border: 1px solid var(--line); border-radius: 999px; padding: .3rem .8rem; font-size: .85rem; }
.kpi-note { font-size: .8rem; color: var(--bark-soft); }
.kpi-table { width: 100%; border-collapse: collapse; margin-bottom: 1.2rem; }
.kpi-table th, .kpi-table td { text-align: left; padding: .55rem .3rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.kpi-table thead th { font-size: .8rem; color: var(--bark-soft); font-weight: 500; }
.kpi-table tbody th { font-weight: 600; }
.kpi-table small { display: block; font-weight: 400; color: var(--bark-soft); font-size: .75rem; }
.kpi-table td { font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi-panel h3 { font-family: var(--sans); font-weight: 600; font-size: 1rem; margin-bottom: .6rem; }
.kpi-funnel { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .45rem; }
.kpi-funnel li { display: grid; grid-template-columns: 9.5rem 1fr 2rem; gap: .6rem; align-items: center; font-size: .85rem; }
.kpi-bar { height: 10px; border-radius: 5px; background: linear-gradient(90deg, var(--chestnut) var(--w), var(--pearl-deep) var(--w)); }
.kpi-funnel b { text-align: right; font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Commande sur mobile : le panier passe avant les coordonnées */
@media (max-width: 860px) { [data-checkout-full] .cart-aside { order: -1; } }
