/* Literie Store — démo : sections de l'accueil (bien-être, marques, ventes, magasins, réassurance, pied de page) */

/* ---------- Le bien-être du sommeil ---------- */
.well { background: var(--night); color: var(--cream); padding: 96px var(--gutter); }
.well__title { font-weight: 300; font-size: clamp(34px, 8vw, 88px); line-height: 1; letter-spacing: -.045em; max-width: 16ch; text-wrap: balance; }
.well__grid { margin-top: 48px; display: grid; gap: 48px; }
.demo__svg { width: 100%; height: auto; background: var(--night-2); }
.demo__title { margin: 20px 0 0; font-weight: 400; font-size: 26px; letter-spacing: -.02em; }
.demo__text { margin-top: 8px; color: var(--cream-soft); max-width: 36ch; }

.d-bed { fill: #3a342f; }
.d-head { fill: var(--cream); }
.d-dots { display: none; }
.d-spine { fill: none; stroke: var(--cream); stroke-width: 6; stroke-linecap: round; }
.d-body { fill: var(--cream); }
.d-springs { fill: none; stroke: #6d655c; stroke-width: 4; stroke-linecap: round; }
.d-heat path { fill: none; stroke: var(--orange); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 90; stroke-dashoffset: 90; }

/* Les animations tournent quand la section est à l'écran */
.well.is-in .d-spine { animation: spine 4.2s var(--ease-out) infinite; }
@keyframes spine {
  0%, 18%  { d: path("M60 104 C 120 128, 200 128, 260 104"); stroke: var(--orange); }
  45%, 85% { d: path("M60 104 C 120 104, 200 104, 260 104"); stroke: var(--cream); }
  100%     { d: path("M60 104 C 120 128, 200 128, 260 104"); stroke: var(--orange); }
}
.well.is-in .d-body--move { animation: hop 1.6s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes hop { 0%, 100% { transform: translateY(0); } 30% { transform: translateY(-26px) rotate(-4deg); } 55% { transform: translateY(4px); } }
.well.is-in .d-springs--left { animation: squash 1.6s var(--ease-out) infinite; transform-box: fill-box; transform-origin: center bottom; }
@keyframes squash { 0%, 100% { transform: scaleY(1); } 30% { transform: scaleY(1.06); } 55% { transform: scaleY(.78); } }
.well.is-in .d-heat path { animation: heat 2.6s ease-in-out infinite; }
.well.is-in .d-heat path:nth-child(2) { animation-delay: .5s; }
.well.is-in .d-heat path:nth-child(3) { animation-delay: 1s; }
@keyframes heat {
  0%   { stroke-dashoffset: 90; opacity: 0; transform: translateY(8px); }
  30%  { opacity: 1; }
  70%  { stroke-dashoffset: 0; opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0; transform: translateY(-18px); }
}

/* ---------- Nos marques ---------- */
.brands { background: #ffffff; color: var(--ink); padding: 96px 0; overflow: hidden; }
.brands__head { padding: 0 var(--gutter); }
.brands__title { font-weight: 300; font-size: clamp(32px, 7vw, 72px); line-height: 1; letter-spacing: -.045em; text-wrap: balance; }
.brands__lead { margin-top: 12px; color: #6b6157; }
.marquee { margin-top: 48px; overflow: hidden; }
.marquee__track { display: flex; gap: 12px; margin: 0; padding: 0; list-style: none; width: max-content; }
.marquee.is-running .marquee__track { animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee li {
  flex: none; width: 220px; height: 120px; background: #f6f3ee;
  display: flex; padding: 22px 28px; overflow: hidden;
}
.marquee img { width: 100%; height: 100%; min-height: 0; object-fit: contain; mix-blend-mode: multiply; }
.marquee li.is-square img { width: 100%; height: 100%; max-height: none; object-fit: cover; transform: scale(1.45); }
.brands__more { margin-top: 24px; padding: 0 var(--gutter); color: #6b6157; }

/* ---------- Meilleures ventes ---------- */
.best { background: var(--linen); color: var(--ink); padding: 96px 0; }
.best__head { padding: 0 var(--gutter); display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.best__title { font-weight: 300; font-size: clamp(32px, 7vw, 72px); line-height: 1; letter-spacing: -.045em; }
.best__arrows { display: none; gap: 4px; }
.arrow { width: 52px; height: 52px; border: 0; background: #ebe4d9; color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: background-color .2s; }
.arrow:hover { background: var(--ink); color: var(--cream); }
.arrow svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.best__track {
  margin: 36px 0 0; padding: 0 var(--gutter); list-style: none;
  display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: none;
}
.best__track::-webkit-scrollbar { display: none; }
.card { scroll-snap-align: start; }
.card a { display: block; text-decoration: none; color: inherit; }
.card__img { background: var(--night); aspect-ratio: 4 / 3; display: grid; place-items: center; }
.card__img svg { width: 86%; height: 86%; }
.card__brand { margin-top: 14px; font-size: 14px; color: #6b6157; }
.card__name { margin: 4px 0 0; font-size: 22px; font-weight: 400; letter-spacing: -.02em; }
.card__thin { margin-top: 4px; font-size: 15px; color: #6b6157; }
.card__price { margin-top: 10px; display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; }
.card__price strong { font-size: 22px; font-weight: 500; }
.card__price s { color: #6b6157; }
.card__price em { font-style: normal; background: var(--orange); color: var(--white); font-size: 13px; padding: 2px 6px; }
.card__from { width: 100%; font-size: 13px; color: #6b6157; }

/* ---------- Nos magasins ---------- */
.shops { background: var(--night); color: var(--cream); padding: 96px var(--gutter); }
.shops__title { font-weight: 300; font-size: clamp(34px, 8vw, 88px); line-height: 1; letter-spacing: -.045em; }
.shops__lead { margin-top: 14px; color: var(--cream-soft); max-width: 44ch; }
.shops__body { margin-top: 40px; display: grid; gap: 24px; }
.shops__map { margin: 0; background: var(--night-2); }
.shops__map svg { width: 100%; height: auto; display: block; }
.map__paris { fill: #26211d; }
.map__seine { fill: none; stroke: #3c4a55; stroke-width: 7; stroke-linecap: round; }
.map__road { fill: none; stroke: #4a423b; stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.map__label { fill: var(--cream-soft); font: 500 13px var(--font); text-anchor: middle; }
.pin { cursor: pointer; }
.pin circle { fill: var(--cream); transition: fill .25s, r .3s var(--ease-out); }
.pin text { fill: var(--cream); font: 500 12px var(--font); }
.pin.is-on circle, .pin:hover circle { fill: var(--orange); }
.pin.is-on circle { r: 11; }
.shops__list { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.shop {
  background: var(--night-2); padding: 18px 20px; cursor: pointer;
  display: grid; gap: 4px; transition: background-color .25s;
}
.shop.is-on { background: #2a2420; }
.shop__name { font-size: 22px; font-weight: 400; letter-spacing: -.02em; display: flex; align-items: center; gap: 10px; }
.shop__name::before { content: ""; width: 10px; height: 10px; background: var(--cream-soft); transition: background-color .25s; }
.shop.is-on .shop__name::before { background: var(--orange); }
.shop__addr, .shop__hours { color: var(--cream-soft); font-size: 15px; }
.shop__actions { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; }
.shop__actions .btn { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn--ghost { background: #3a332e; color: var(--cream); }
.btn--ghost:hover { background: var(--cream); color: var(--ink); }

/* ---------- Réassurance ---------- */
.trust { background: #ebe4d9; color: var(--ink); padding: 40px var(--gutter); }
.trust__list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 24px 20px; }
.trust__list li { display: flex; flex-direction: column; gap: 2px; }
.trust__list strong { font-size: 17px; font-weight: 500; }
.trust__list span { font-size: 14px; color: #6b6157; }

/* ---------- Pied de page ---------- */
.footer { background: var(--night); color: var(--cream); padding: 72px var(--gutter) 32px; }
.logo--lg { --logo: 96px; }
.footer__top { display: flex; align-items: center; gap: 20px; }
.footer__claim { max-width: 32ch; color: var(--cream-soft); }
.footer__cols { margin-top: 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 36px 20px; }
.footer__cols h2 { margin: 0 0 12px; font-size: 14px; font-weight: 500; color: var(--cream-soft); }
.footer__cols a { display: block; padding: 5px 0; text-decoration: none; color: var(--cream); }
.footer__cols a:hover { color: var(--orange); }
.footer__social a { display: inline; }
.footer__legal { margin-top: 56px; font-size: 13px; color: var(--cream-soft); }

@media (min-width: 1000px) {
  .well, .shops { padding: 160px var(--gutter); }
  .well__grid { margin-top: 80px; grid-template-columns: repeat(3, 1fr); gap: 32px; }
  .brands, .best { padding: 160px 0; }
  .marquee li { width: 260px; height: 140px; }
  .best__arrows { display: flex; }
  .best__track { grid-auto-columns: calc((100% - 2 * var(--gutter) - 24px) / 3); margin-top: 56px; }
  .shops__body { margin-top: 64px; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px; align-items: start; }
  .shops__map { position: sticky; top: calc(var(--header-h) + 24px); }
  .trust { padding: 56px var(--gutter); }
  .trust__list { grid-template-columns: repeat(5, 1fr); }
  .footer { padding: 120px var(--gutter) 40px; }
  .logo--lg { --logo: 128px; }
  .footer__cols { grid-template-columns: repeat(4, 1fr); margin-top: 72px; }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track { flex-wrap: wrap; width: auto; padding: 0 var(--gutter); }
  .d-heat path { stroke-dashoffset: 0; }
}
