/* =========================================================
   DAR CHRIFA — Feuille de style
   Palette : ivoire de médina, bordeaux, vert de Fès, or safran, bleu Majorelle
   Typo    : Cormorant Garamond (titres) · Manrope (texte)
             Amiri & Aref Ruqaa (arabe / calligraphie)
   Motifs  : arc outrepassé (fer à cheval), zellige à étoile à 8 branches
   ========================================================= */

:root {
  --ivory: #F6F0E6;
  --ivory-2: #EFE6D6;
  --sand: #E4D5BC;
  --ink: #1D1613;
  --ink-soft: #5B4D44;
  --muted: #8A7B6E;
  --bordeaux: #5C1A24;
  --emerald: #1E4639;
  --gold: #B08442;
  --gold-soft: #D8BC86;
  --majorelle: #2B3F8C;
  --line: rgba(29, 22, 19, .12);

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  --arabic: "Amiri", serif;
  --ruqaa: "Aref Ruqaa", "Amiri", serif;

  --radius: 22px;
  --ease: cubic-bezier(.22, .8, .2, 1);
  --container: 1280px;
  --gutter: clamp(16px, 4vw, 40px);

  /* Arc outrepassé marocain (fer à cheval) utilisé comme masque */
  --horseshoe: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 140' preserveAspectRatio='none'%3E%3Cpath d='M10 140V64A44 44 0 1 1 90 64V140Z'/%3E%3C/svg%3E");
  /* Zellige : remplacé en JS par une version générée (étoiles à 8 branches) */
  --zellige: none;
  --zellige-line: none;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; }
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--bordeaux); color: var(--ivory); }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }

/* ---------- Typographie ---------- */
.eyebrow {
  font-size: 12px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase;
  color: var(--gold);
  display: inline-flex; align-items: center; gap: 12px;
}
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.eyebrow--light { color: var(--gold-soft); }

.h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(2.3rem, 5vw, 4rem);
  line-height: 1.02; letter-spacing: -.015em;
  margin-top: 18px;
}
.h2 em, .hero__title em { font-style: italic; color: var(--bordeaux); }
.h2--light { color: var(--ivory); }
.h2--light em { color: var(--gold-soft); }

.section-head { margin-bottom: clamp(36px, 5vw, 64px); }
.section-head--center { text-align: center; }
.section-head--center .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  font-size: 14px; font-weight: 600; letter-spacing: .04em;
  transition: transform .4s var(--ease), background .3s, color .3s, border-color .3s, box-shadow .4s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--dark { background: var(--ink); color: var(--ivory); }
.btn--dark:hover { background: var(--bordeaux); box-shadow: 0 14px 30px -12px rgba(92, 26, 36, .55); }
.btn--ghost { border: 1px solid var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--ivory); }
.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: var(--gold-soft); color: var(--ink); }
.btn--line-light { border: 1px solid rgba(246, 240, 230, .4); color: var(--ivory); }
.btn--line-light:hover { border-color: var(--ivory); }

.link-arrow {
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  display: inline-flex; gap: 8px;
  border-bottom: 1px solid currentColor; padding-bottom: 4px;
}
.link-arrow span { transition: transform .4s var(--ease); }

/* ---------- Arc outrepassé ---------- */
.horseshoe {
  position: relative;
  aspect-ratio: 5 / 7;
  -webkit-mask: var(--horseshoe) center / 100% 100% no-repeat;
          mask: var(--horseshoe) center / 100% 100% no-repeat;
  background: var(--sand);
}
.horseshoe img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 25%; }
.horseshoe__line {
  position: absolute; inset: 0; width: 100%; height: 100%;
  fill: none; stroke: rgba(246, 240, 230, .75); stroke-width: 1;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
}
.horseshoe__line path { vector-effect: non-scaling-stroke; }

/* ---------- Frise de zellige ---------- */
.frieze {
  height: 44px;
  background-color: var(--ivory);
  background-image: var(--zellige);
  background-size: 44px 44px;
  background-repeat: repeat-x;
  border-block: 3px solid var(--emerald);
  box-shadow: inset 0 1px 0 var(--gold), inset 0 -1px 0 var(--gold);
}
.frieze--dark { border-color: var(--ink); }

/* ---------- Accessibilité : lien d'évitement ---------- */
.skip-link {
  position: fixed; top: 12px; left: 12px; z-index: 200;
  background: var(--ink); color: var(--ivory);
  padding: 10px 18px; border-radius: 999px; font-size: 13px; font-weight: 600;
  transform: translateY(-160%); transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Bouton WhatsApp flottant ---------- */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 90;
  width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--emerald); color: var(--ivory);
  box-shadow: 0 16px 30px -12px rgba(30, 70, 57, .7), 0 0 0 4px rgba(246, 240, 230, .9);
  transition: transform .4s var(--ease), background .3s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--bordeaux); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* ---------- En-tête ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 240, 230, .85);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.header.is-scrolled { border-color: var(--line); }

.nav {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  height: 84px; transition: height .4s var(--ease);
}
.header.is-scrolled .nav { height: 68px; }

.nav__links { display: flex; gap: 30px; font-size: 12.5px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; }
.nav__links a { position: relative; padding: 6px 0; }
.nav__links a::after {
  content: ""; position: absolute; left: 0; bottom: 0; width: 100%; height: 1px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); transform-origin: left; }

.logo { display: flex; flex-direction: column; align-items: center; line-height: 1; }
.logo__ar { font-family: var(--ruqaa); font-size: 17px; color: var(--gold); margin-bottom: 3px; }
.logo__fr { font-family: var(--serif); font-size: 27px; font-weight: 600; letter-spacing: .32em; margin-right: -.32em; }
.logo--light { align-items: flex-start; color: var(--ivory); }
.logo--light .logo__ar { color: var(--gold-soft); }

.nav__actions { display: flex; justify-content: flex-end; align-items: center; gap: 6px; }
.nav__rdv {
  font-size: 13px; font-weight: 600; letter-spacing: .06em;
  padding: 10px 18px; border: 1px solid var(--line); border-radius: 999px; margin-right: 8px;
  transition: background .3s, color .3s, border-color .3s;
}
.nav__rdv:hover { background: var(--ink); color: var(--ivory); border-color: var(--ink); }

.icon-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background .3s; }
.icon-btn:hover { background: var(--ivory-2); }
.icon-btn svg { width: 21px; height: 21px; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.cart-count {
  position: absolute; top: 5px; right: 4px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 999px; background: var(--bordeaux); color: #fff; font-size: 10px; font-weight: 700;
  display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease);
}
.cart-count.is-visible { transform: scale(1); }
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }

.burger { display: none; }
.burger span { position: absolute; width: 20px; height: 1.5px; background: var(--ink); transition: transform .4s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

.mobile-menu { display: flex; flex-direction: column; padding: 12px var(--gutter) 28px; border-top: 1px solid var(--line); }
.mobile-menu[hidden] { display: none; }
.mobile-menu a { font-family: var(--serif); font-size: 30px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center;
  gap: clamp(32px, 5vw, 80px);
  padding-top: clamp(40px, 6vw, 72px);
  padding-bottom: clamp(56px, 7vw, 96px);
}
.hero > * { min-width: 0; }
.hero__title {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(3.2rem, 8.2vw, 7.4rem);
  line-height: .9; letter-spacing: -.025em;
  margin: 26px 0 28px;
}
.hero__title em { padding-left: .6em; }
.hero__lead { max-width: 31rem; color: var(--ink-soft); font-size: 17px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.hero__stats {
  display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 40px;
  margin: 56px 0 0; padding-top: 28px; border-top: 1px solid var(--line);
}
.hero__stats dt { font-family: var(--serif); font-size: 34px; line-height: 1; color: var(--bordeaux); }
.hero__stats dd { margin: 6px 0 0; font-size: 13px; color: var(--muted); max-width: 9.5rem; line-height: 1.4; }

.hero__visual { position: relative; justify-self: center; width: min(100%, 480px); }
.horseshoe--hero { box-shadow: 0 40px 80px -40px rgba(60, 14, 22, .6); }
.horseshoe--hero img { animation: slowzoom 18s ease-in-out infinite alternate; }
@keyframes slowzoom { from { transform: scale(1); } to { transform: scale(1.06); } }
/* ombre portée qui suit l'arc */
.hero__visual::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; z-index: -1;
  -webkit-mask: var(--horseshoe) center / 100% 100% no-repeat;
          mask: var(--horseshoe) center / 100% 100% no-repeat;
  background-color: var(--emerald);
  background-image: var(--zellige);
  background-size: 40px 40px;
  opacity: .9;
}

.float-card {
  position: absolute;
  background: rgba(246, 240, 230, .94);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-radius: 16px; box-shadow: 0 20px 40px -20px rgba(29, 22, 19, .35);
  padding: 14px 18px; font-size: 13px;
}
.float-card--a { top: 30%; left: -12%; display: flex; flex-direction: column; animation: float 7s ease-in-out infinite; }
.float-card__k { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); font-weight: 700; }
.float-card__v { font-family: var(--serif); font-size: 21px; margin-top: 2px; }
.float-card--b { bottom: 10%; right: -10%; display: flex; align-items: center; gap: 10px; font-weight: 500; animation: float 8s ease-in-out -3s infinite; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald); box-shadow: 0 0 0 4px rgba(30, 70, 57, .15); }
@keyframes float { 50% { transform: translateY(-10px); } }

.hero__seal { position: absolute; top: -20px; right: -26px; width: 118px; height: 118px; animation: spin 26s linear infinite; }
.hero__seal text { font-family: var(--sans); font-size: 9px; font-weight: 600; letter-spacing: .2em; fill: var(--ink); }
.hero__seal-star { fill: var(--gold); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Trois univers ---------- */
.universes { padding-block: clamp(80px, 10vw, 140px); }
.universes__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2.4vw, 28px); }

.universe {
  display: grid; grid-template-rows: auto 1fr;
  border-radius: var(--radius); overflow: hidden;
  background: var(--ivory-2);
  transition: transform .6s var(--ease), box-shadow .6s var(--ease);
}
.universe:hover { transform: translateY(-6px); box-shadow: 0 40px 60px -40px rgba(29, 22, 19, .35); }
.universe:hover .link-arrow span { transform: translateX(6px); }
.universe__media {
  position: relative;
  padding: 36px 16% 0;
  background: var(--emerald);
  overflow: hidden;
}
.universe:nth-child(2) .universe__media { background: var(--bordeaux); }
.universe:nth-child(3) .universe__media { background: var(--majorelle); }
.universe__media::before {
  content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: var(--zellige-line); background-size: 48px 48px;
}
.universe__ar {
  position: absolute; right: 18px; bottom: 10px; z-index: 2;
  font-family: var(--ruqaa); font-size: clamp(42px, 4.6vw, 62px); line-height: 1.2;
  color: var(--gold-soft);
  text-shadow: 0 4px 20px rgba(0, 0, 0, .45);
  pointer-events: none;
}
.universe .horseshoe { aspect-ratio: 5 / 6.2; }
.universe .horseshoe img { transition: transform 1.2s var(--ease); }
.universe:hover .horseshoe img { transform: scale(1.06); }
.universe__body { padding: 26px 28px 30px; display: grid; gap: 10px; align-content: start; }
.universe__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 18px; }
.universe h3 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1; }
.universe p { color: var(--ink-soft); font-size: 15px; }
.universe .link-arrow { justify-self: start; margin-top: 6px; }

/* ---------- Collection ---------- */
.collection { background: var(--ivory-2); padding-block: clamp(80px, 10vw, 130px); }
.collection__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.tabs {
  position: relative; display: inline-flex; padding: 5px; border-radius: 999px;
  background: var(--ivory); border: 1px solid var(--line); max-width: 100%;
}
.tab {
  position: relative; z-index: 1; padding: 10px 20px;
  font-size: 13px; font-weight: 600; letter-spacing: .04em; border-radius: 999px;
  color: var(--ink-soft); transition: color .3s; white-space: nowrap;
}
.tab.is-active { color: var(--ivory); }
.tabs__pill {
  position: absolute; top: 5px; bottom: 5px; left: 0; border-radius: 999px; background: var(--ink);
  transition: transform .5s var(--ease), width .5s var(--ease);
}

.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(14px, 2vw, 24px); row-gap: clamp(28px, 3.5vw, 44px); }
.product { display: grid; gap: 14px; animation: rise .7s var(--ease) both; min-width: 0; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }

.product__media {
  position: relative; aspect-ratio: 3 / 4;
  border-radius: 999px 999px 14px 14px; overflow: hidden;
  background: var(--sand);
}
.product__media img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%;
  transition: transform 1.2s var(--ease), filter .6s;
}
.product:hover .product__media img { transform: scale(1.06); }
.product__media::after {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(246, 240, 230, .55);
  border-radius: 999px 999px 9px 9px;
  pointer-events: none;
}
.product__tag {
  position: absolute; top: 22%; left: 12px; z-index: 1;
  font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  background: var(--ivory); color: var(--ink); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.product__wish {
  position: absolute; top: 22%; right: 12px; z-index: 1;
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(246, 240, 230, .9);
  display: grid; place-items: center;
  opacity: 0; transform: scale(.8); transition: opacity .3s, transform .4s var(--ease);
}
.product__wish svg { width: 17px; height: 17px; fill: none; stroke: var(--ink); stroke-width: 1.6; transition: fill .3s, stroke .3s; }
.product__wish[aria-pressed="true"] svg { fill: var(--bordeaux); stroke: var(--bordeaux); }
.product__add {
  position: absolute; left: 14px; right: 14px; bottom: 14px; z-index: 1;
  min-height: 46px; border-radius: 999px;
  background: var(--ink); color: var(--ivory);
  font-size: 13px; font-weight: 600; letter-spacing: .04em;
  opacity: 0; transform: translateY(12px);
  transition: opacity .35s, transform .5s var(--ease), background .3s;
}
.product__add:hover { background: var(--bordeaux); }
.product:hover .product__add, .product:focus-within .product__add,
.product:hover .product__wish, .product:focus-within .product__wish,
.product__wish[aria-pressed="true"] { opacity: 1; transform: none; }

.product__info { display: grid; gap: 3px; padding-inline: 4px; }
.product__cat { font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); }
.product__row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.product__name { font-family: var(--serif); font-size: 23px; line-height: 1.1; }
.price { font-size: 14px; font-weight: 600; white-space: nowrap; }
.product__meta { font-size: 13px; color: var(--muted); }
.collection__foot { display: flex; justify-content: center; margin-top: 56px; }

/* ---------- Éditorial djellabas ---------- */
.editorial {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: clamp(40px, 7vw, 110px);
  padding-block: clamp(90px, 11vw, 150px);
}
.editorial > * { min-width: 0; }
.editorial__media { position: relative; padding: 0 12% 12% 0; }
.editorial__main {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%;
  border-radius: 999px 999px 18px 18px;
}
.editorial__inset {
  position: absolute; right: 0; bottom: 0; width: 40%;
  aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 20%;
  border-radius: 14px;
  border: 8px solid var(--ivory);
  box-shadow: 0 30px 50px -30px rgba(29, 22, 19, .5);
}
.editorial__ar {
  position: absolute; left: -4%; bottom: 4%;
  font-family: var(--ruqaa); font-size: clamp(70px, 9vw, 130px); line-height: 1;
  color: var(--ivory);
  text-shadow: 0 6px 30px rgba(0, 0, 0, .35);
  pointer-events: none;
}
.editorial__lead { margin-top: 26px; color: var(--ink-soft); font-size: 17px; max-width: 32rem; }
.specs { margin: 34px 0 38px; border-top: 1px solid var(--line); }
.specs li {
  display: grid; grid-template-columns: 120px 1fr; gap: 16px;
  padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.specs span { font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); padding-top: 3px; }
.editorial__ctas { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.editorial__price { color: var(--muted); font-size: 14px; }
.editorial__price strong { font-family: var(--serif); font-size: 24px; color: var(--ink); font-weight: 500; margin-left: 4px; }

/* ---------- Savoir-faire ---------- */
.craft {
  background: var(--emerald); color: var(--ivory);
  padding-block: clamp(90px, 11vw, 150px);
  position: relative; overflow: hidden;
}
.craft::before {
  content: ""; position: absolute; inset: 0; opacity: .06;
  background-image: var(--zellige-line); background-size: 80px 80px;
}
.craft__inner { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 110px); }
.craft__sticky { position: sticky; top: 110px; align-self: start; }
.craft__lead { margin-top: 26px; color: rgba(246, 240, 230, .78); max-width: 28rem; font-size: 17px; }
.craft__figure { display: grid; grid-template-columns: 150px 1fr; gap: 26px; align-items: end; margin-top: 40px; }
.horseshoe--craft img { object-position: 50% 35%; }
.craft__figure figcaption { display: grid; gap: 8px; }
.craft__quote { font-family: var(--ruqaa); font-size: clamp(26px, 2.8vw, 36px); color: var(--gold-soft); direction: rtl; text-align: left; line-height: 1.4; }
.craft__quote-tr { font-size: 13px; color: rgba(246, 240, 230, .6); font-style: italic; }

.step {
  display: grid; grid-template-columns: 72px 1fr; gap: 20px;
  padding: 32px 0; border-top: 1px solid rgba(246, 240, 230, .18);
}
.step:last-child { border-bottom: 1px solid rgba(246, 240, 230, .18); }
.step__n { font-family: var(--arabic); font-size: 46px; line-height: .9; color: var(--gold-soft); }
.step h3 { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); margin-bottom: 6px; }
.step p { color: rgba(246, 240, 230, .74); }

/* ---------- Inspirations ---------- */
.muse { padding-block: clamp(90px, 11vw, 150px) clamp(60px, 7vw, 100px); }
.muse__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 30px; flex-wrap: wrap; }
.muse__intro { max-width: 26rem; color: var(--ink-soft); }
.muse__grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  grid-template-rows: 260px 260px;
  gap: clamp(10px, 1.4vw, 18px);
}
.muse__item { position: relative; overflow: hidden; border-radius: 16px; }
.muse__item--a { grid-row: span 2; border-radius: 999px 999px 16px 16px; }
.muse__item--b { grid-row: span 2; }
.muse__item--e { grid-column: 3 / span 2; }
.muse__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.muse__item:hover img { transform: scale(1.06); }
.muse__item figcaption {
  position: absolute; left: 14px; bottom: 14px;
  font-family: var(--serif); font-style: italic; font-size: 19px; color: #fff;
  background: rgba(29, 22, 19, .35); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  padding: 4px 14px; border-radius: 999px;
}

/* ---------- Le Carré (interactif) ---------- */
.scarf-lab-wrap { background: var(--ivory-2); }
.scarf-lab {
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 7vw, 100px); align-items: center;
  padding-block: clamp(90px, 11vw, 140px);
}
.scarf-lab > * { min-width: 0; }
.scarf-stage {
  position: relative; aspect-ratio: 1; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(closest-side, var(--ivory), var(--sand));
  transition: background .8s var(--ease);
}
.scarf-stage__ring { position: absolute; inset: 6%; border-radius: 50%; border: 1px dashed rgba(176, 132, 66, .5); animation: spin 60s linear infinite; }
.scarf-stage__art { width: 74%; filter: drop-shadow(0 30px 34px rgba(29, 22, 19, .28)); transition: transform .9s var(--ease), opacity .4s; }
.scarf-stage__art.is-changing { opacity: 0; transform: rotate(-18deg) scale(.9); }
.scarf-lab__panel .h2 { margin-bottom: 32px; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 26px; }
.swatch {
  display: flex; align-items: center; gap: 10px; padding: 7px 16px 7px 7px; border-radius: 999px;
  border: 1px solid var(--line); font-size: 13px; font-weight: 600; background: var(--ivory);
  transition: border-color .3s, background .3s, color .3s;
}
.swatch i { width: 28px; height: 28px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .5); }
.swatch:hover { border-color: var(--ink); }
.swatch[aria-checked="true"] { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.scarf-info { padding: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scarf-info__row { display: flex; justify-content: space-between; align-items: baseline; }
.scarf-info h3 { font-family: var(--serif); font-size: 30px; }
.scarf-info .price { font-size: 16px; }
.scarf-info p { color: var(--ink-soft); margin-top: 6px; }
.ways { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 24px; margin: 26px 0 32px; font-size: 14px; color: var(--ink-soft); }
.ways span { font-family: var(--serif); font-style: italic; color: var(--gold); margin-right: 8px; font-size: 16px; }

/* ---------- Témoignages ---------- */
.voices { padding-block: clamp(90px, 11vw, 150px); }
.voices__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2vw, 24px); }
.voice {
  padding: 40px 34px 34px; border-radius: var(--radius); background: var(--ivory-2);
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
}
.voice::before { content: "“"; font-family: var(--serif); font-size: 90px; line-height: .6; color: var(--gold); height: 34px; }
.voice blockquote { margin: 0; font-family: var(--serif); font-size: 23px; line-height: 1.3; flex: 1; }
.voice figcaption { font-size: 13px; color: var(--muted); }
.voice figcaption strong { color: var(--ink); font-weight: 600; }
.voice--accent { background: var(--bordeaux); color: var(--ivory); }
.voice--accent::before { color: var(--gold-soft); }
.voice--accent figcaption, .voice--accent figcaption strong { color: rgba(246, 240, 230, .8); }

/* ---------- Sur-mesure ---------- */
.rdv { padding-bottom: clamp(70px, 8vw, 110px); }
.rdv__card {
  position: relative; overflow: hidden; border-radius: 32px;
  background: linear-gradient(120deg, #2A0B11, var(--bordeaux) 60%, #7A2632);
  color: var(--ivory);
  display: grid; grid-template-columns: 1.2fr .8fr; align-items: end; gap: 40px;
  padding: clamp(40px, 6vw, 80px) clamp(40px, 6vw, 80px) 0;
}
.rdv__pattern {
  position: absolute; inset: 0; opacity: .12;
  background-image: var(--zellige-line); background-size: 56px 56px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%);
          mask-image: linear-gradient(90deg, transparent, #000 75%);
}
.rdv__content { position: relative; padding-bottom: clamp(40px, 6vw, 80px); }
.rdv__content > p:not(.eyebrow) { margin-top: 22px; max-width: 30rem; color: rgba(246, 240, 230, .82); font-size: 17px; }
.rdv__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.rdv__visual { position: relative; align-self: end; }
.horseshoe--rdv { aspect-ratio: 5 / 6.4; }
.horseshoe--rdv img { object-position: 50% 15%; }

/* ---------- Engagements ---------- */
.perks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-bottom: clamp(80px, 9vw, 120px); }
.perk { padding-top: 26px; border-top: 1px solid var(--line); }
.perk svg { width: 30px; height: 30px; fill: none; stroke: var(--gold); stroke-width: 1.3; stroke-linejoin: round; stroke-linecap: round; margin-bottom: 18px; }
.perk h3 { font-family: var(--serif); font-size: 23px; margin-bottom: 4px; }
.perk p { font-size: 14px; color: var(--muted); }

/* ---------- Pied de page ---------- */
.footer { background: var(--ink); color: rgba(246, 240, 230, .7); padding-top: clamp(60px, 8vw, 100px); font-size: 14px; }
.footer__top { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding-bottom: 56px; border-bottom: 1px solid rgba(246, 240, 230, .12); }
.footer__brand p { margin-top: 18px; max-width: 24rem; }
.newsletter label { display: block; font-family: var(--serif); font-size: clamp(22px, 2.4vw, 28px); color: var(--ivory); line-height: 1.2; margin-bottom: 20px; }
.newsletter__field { display: flex; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(246, 240, 230, .08); border: 1px solid rgba(246, 240, 230, .14); }
.newsletter input { flex: 1; min-width: 0; background: none; border: 0; padding: 0 18px; color: var(--ivory); font: inherit; outline: none; }
.newsletter input::placeholder { color: rgba(246, 240, 230, .45); }
.newsletter .btn { min-height: 46px; }
.newsletter__msg { min-height: 22px; margin-top: 10px; font-size: 13px; color: var(--gold-soft); }
.footer__cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; padding-block: 56px; }
.footer__cols h4 { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; margin-bottom: 18px; }
.footer__cols a { display: block; padding: 5px 0; transition: color .3s; }
.footer__cols a:hover { color: var(--ivory); }
.footer__bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding-block: 26px; border-top: 1px solid rgba(246, 240, 230, .12); font-size: 12px; letter-spacing: .04em;
}
.footer__bottom span { color: var(--gold); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 160%);
  background: var(--ink); color: var(--ivory); padding: 14px 22px; border-radius: 999px; font-size: 14px;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, .4); transition: transform .5s var(--ease); z-index: 100;
  max-width: calc(100% - 32px);
}
.toast { opacity: 0; visibility: hidden; transition: transform .5s var(--ease), opacity .3s, visibility .3s; }
.toast.is-visible { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.toast b { color: var(--gold-soft); font-weight: 600; }

/* ---------- Apparition au scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .nav__links { gap: 20px; }
  .nav__rdv { display: none; }
  .products { grid-template-columns: repeat(3, 1fr); }
  .float-card--a { left: -4%; }
  .float-card--b { right: -2%; }
  .hero__seal { right: -6px; }
}

@media (max-width: 900px) {
  .nav { grid-template-columns: auto 1fr; height: 70px; }
  .nav__links { display: none; }
  .logo { align-items: flex-start; }
  .logo__fr { font-size: 22px; }
  .burger { display: grid; }

  .hero, .editorial, .craft__inner, .scarf-lab, .footer__top, .rdv__card { grid-template-columns: 1fr; }
  .hero__visual { width: min(88%, 420px); }
  .universes__grid { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .products { grid-template-columns: repeat(2, 1fr); }
  .craft__sticky { position: static; }
  .scarf-lab__visual { max-width: 440px; width: 100%; margin-inline: auto; }
  .voices__grid { grid-template-columns: 1fr; }
  .rdv__content { padding-bottom: 0; }
  .rdv__visual { width: 70%; max-width: 320px; justify-self: center; }
  .muse__grid { grid-template-columns: 1fr 1fr; grid-template-rows: 240px 240px 200px; }
  .muse__item--a { grid-row: span 2; }
  .muse__item--b { grid-row: auto; }
  .muse__item--e { grid-column: auto; }
  .perks { grid-template-columns: 1fr 1fr; }
  .footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 560px) {
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .hero__stats dt { font-size: 27px; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero__seal { width: 90px; height: 90px; top: -14px; right: -10px; }
  .float-card--a { left: -6%; top: 26%; }
  .float-card--b { right: -6%; }
  .tabs { overflow-x: auto; scrollbar-width: none; }
  .tab { padding: 9px 14px; font-size: 12.5px; }
  .products { gap: 12px; row-gap: 28px; }
  .product__name { font-size: 19px; }
  .product__row { flex-direction: column; gap: 2px; }
  .product__add { opacity: 1; transform: none; min-height: 40px; font-size: 12px; left: 8px; right: 8px; bottom: 8px; }
  .product__wish { opacity: 1; transform: none; width: 34px; height: 34px; right: 8px; }
  .product__tag { left: 8px; font-size: 9px; padding: 5px 9px; }
  .specs li { grid-template-columns: 1fr; gap: 2px; }
  .craft__figure { grid-template-columns: 110px 1fr; gap: 18px; }
  .muse__grid { grid-template-rows: 200px 200px 170px; }
  .muse__item figcaption { font-size: 15px; left: 10px; bottom: 10px; }
  .ways { grid-template-columns: 1fr; }
  .perks { grid-template-columns: 1fr; }
  .newsletter__field { flex-direction: column; border-radius: 22px; }
  .newsletter input { padding: 12px 14px; }
  .step { grid-template-columns: 50px 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; }
}

@media (max-width: 560px) {
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  .toast { bottom: 84px; }
}
