/* ==========================================================================
   FURSWEEP — Système de design (minimalisme industriel / luxe éditorial)
   ========================================================================== */

:root {
  --ivory: #FBF1E6;
  --ivory-dim: #F3E1C9;
  --black: #131009;
  --wood: #EC8F55;
  --wood-dark: #C1502E;
  --silver: #B9BEC4;
  --silver-light: #E4E6E8;
  --card: #1C170F;
  --line: rgba(251,241,230,0.12);
  /* Couleur d'appel vive — chartreuse électrique. Choisie pour trancher fort
     avec les tons bois/laiton du produit (contraste complémentaire) plutôt
     que de rester dans la même famille chaude/discrète qu'avant. Deux
     variantes : --pop (fonds pleins, boutons, sur noir) et --pop-deep (texte
     sur fond clair ivoire, où le chartreuse pur serait trop peu lisible). */
  --pop: #D6FF3F;
  --pop-deep: #6E8A18;
  --radius: 3px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background-color: var(--black);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.09' numOctaves='3' seed='7' stitchTiles='stitch' result='t'/%3E%3CfeColorMatrix in='t' type='matrix' values='0 0 0 0 0.84 0 0 0 0 1 0 0 0 0 0.25 0 0 0 0.06 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"),
    radial-gradient(circle at 22% 24%, rgba(214,255,63,0.06) 0 2.4px, transparent 2.4px),
    radial-gradient(circle at 74% 76%, rgba(214,255,63,0.06) 0 2.4px, transparent 2.4px),
    radial-gradient(circle at 76% 22%, rgba(214,255,63,0.05) 0 2px, transparent 2px),
    radial-gradient(circle at 24% 78%, rgba(214,255,63,0.05) 0 2px, transparent 2px),
    radial-gradient(circle at 50% 50%, rgba(251,241,230,0.04) 0 1.6px, transparent 1.6px);
  background-size: 240px 240px, 18px 18px, 18px 18px, 18px 18px, 18px 18px, 9px 9px;
  color: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.m-wrap { max-width: 1360px; margin: 0 auto; padding: 0 40px; }

::selection { background: var(--pop); color: var(--black); }

/* ---------- Typographie éditoriale — contraste d'échelle volontairement
   brutal : le texte est traité comme un élément de composition, pas comme
   du contenu rangé dans un conteneur. ---------- */
.m-display-mega {
  font-size: clamp(88px, 15.5vw, 260px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.86;
  margin: 0;
}
.m-display-huge {
  font-size: clamp(64px, 11vw, 168px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.9;
  margin: 0;
}
.m-display-1 { font-size: clamp(40px, 5.5vw, 76px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.02; margin: 0; }
.m-display-2 { font-size: clamp(30px, 3.6vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.06; margin: 0; }
.m-lede { font-size: clamp(16px, 1.4vw, 19px); line-height: 1.6; color: rgba(251,241,230,0.62); font-weight: 400; }
.m-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pop); display: inline-block; margin-bottom: 18px; }

/* ---------- Boutons ----------
   Pas de glow, pas de pilule géante : un contact net, une réponse
   tactile discrète (le mouvement magnétique est piloté en JS, voir
   initMagneticButtons dans fursweep.js). */
.m-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 16px 30px;
  font-size: 14px; font-weight: 600; letter-spacing: 0.02em;
  border-radius: var(--radius);
  transition: transform .35s var(--ease), background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
  cursor: pointer;
  border: 1px solid transparent;
  white-space: nowrap;
  will-change: transform;
}
.m-btn:active { transform: scale(0.96) !important; }
.m-btn-primary { background: var(--pop); color: var(--black); }
.m-btn-primary:hover { background: transparent; color: var(--pop); border-color: var(--pop); }
.m-btn-outline { border-color: var(--ivory); color: var(--ivory); }
.m-btn-outline:hover { background: var(--pop); border-color: var(--pop); color: var(--black); }
.m-btn-light { background: var(--pop); color: var(--black); }
.m-btn-light:hover { background: transparent; color: var(--pop); border-color: var(--pop); }

/* ---------- Header ---------- */
.m-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 26px 0;
  transition: transform .5s var(--ease), padding .4s var(--ease), background .4s var(--ease), border-color .4s var(--ease);
  border-bottom: 1px solid transparent;
}
.m-header.is-solid { background: rgba(19,16,9,0.88); backdrop-filter: blur(14px); border-bottom-color: var(--line); padding: 18px 0; }
.m-header.is-hidden { transform: translateY(-100%); }
.m-header-inner { display: flex; align-items: center; justify-content: space-between; }
.m-logo { font-size: 19px; font-weight: 800; letter-spacing: 0.04em; }
.m-nav { display: flex; align-items: center; gap: 40px; }
.m-nav a { font-size: 13px; font-weight: 600; letter-spacing: 0.02em; opacity: 0.7; transition: opacity .3s var(--ease); }
.m-nav a:hover { opacity: 1; }
.m-cta { display: inline-flex; padding: 11px 21px; background: var(--pop); color: var(--black); font-size: 13px; font-weight: 700; border-radius: var(--radius); border: 1px solid var(--pop); transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); will-change: transform; }
.m-cta:hover { background: transparent; color: var(--pop); }
.m-cta:active { transform: scale(0.96); }
.m-mobile-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 6px; }
.m-mobile-toggle span { width: 22px; height: 2px; background: var(--ivory); }

.m-mobile-nav {
  position: fixed; inset: 0; z-index: 1100; background: var(--black);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px;
  transform: translateY(-100%); transition: transform .5s var(--ease);
}
.m-mobile-nav.is-open { transform: translateY(0); }
.m-mobile-nav a { font-size: 26px; font-weight: 700; }
.m-mobile-nav-close { position: absolute; top: 26px; right: 32px; background: none; border: none; font-size: 28px; cursor: pointer; }

/* ---------- Curseur personnalisé (desktop uniquement) ---------- */
.m-cursor {
  position: fixed; top: 0; left: 0; width: 14px; height: 14px; border-radius: 50%;
  background: var(--black); pointer-events: none; z-index: 9999;
  transform: translate(-50%, -50%);
  transition: width .3s var(--ease), height .3s var(--ease), background .3s var(--ease);
  mix-blend-mode: difference;
  will-change: transform;
}
.m-cursor.is-cta { width: 54px; height: 54px; background: var(--pop); }
body.m-has-cursor { cursor: none; }
body.m-has-cursor a, body.m-has-cursor button { cursor: none; }

/* ==========================================================================
   HERO — CHAOS → CLEAN
   ========================================================================== */
.m-hero { position: relative; background: var(--black); }
.m-hero-pin { position: relative; height: 100vh; overflow: hidden; }

.m-hero-carpet {
  position: absolute; inset: 0; z-index: 1;
  background-image: url('/assets/images/fursweep-carpet-bg.jpg');
  background-size: cover; background-position: center;
}
.m-hero-carpet::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 40%, transparent 45%, rgba(20,14,8,0.28) 100%);
}
.m-hair-canvas { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; }

.m-hero-brush {
  position: absolute; z-index: 4;
  width: min(52vw, 640px); height: min(86vh, 1000px);
  filter: drop-shadow(0 34px 44px rgba(10,7,4,0.42));
  will-change: transform;
}
.m-brush-canvas { width: 100%; height: 100%; display: block; }

.m-hero-statement {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; opacity: 0; pointer-events: none;
}
.m-hero-statement.is-active { pointer-events: auto; }
.m-hero-statement .m-eyebrow { color: var(--pop); text-shadow: 0 0 20px rgba(214,255,63,0.5); }
.m-hero-statement .m-display-huge { margin-bottom: 18px; color: var(--ivory); text-shadow: 0 4px 30px rgba(0,0,0,0.35); }
.m-hero-statement p { font-size: 17px; color: rgba(251,241,230,0.8); margin-bottom: 36px; }

/* ==========================================================================
   Sections génériques
   ========================================================================== */
.m-section { padding: 160px 0; }
.m-section--tight { padding: 100px 0; }
.m-section-head { max-width: 640px; margin-bottom: 64px; }
.m-section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Reveal produit ---------- */
.m-product-reveal { display: grid; grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 48px; }
.m-product-reveal .m-product-photo { width: min(70vw, 520px); border-radius: var(--radius); overflow: hidden; }
.m-product-reveal img { width: 100%; }

/* ---------- The Gesture (before/after) ---------- */
.m-gesture { background: var(--card); color: var(--ivory); padding: 160px 0; }
.m-gesture .m-eyebrow { color: var(--pop); }
.m-gesture-head { text-align: center; margin-bottom: 64px; }
.m-gesture-compare {
  position: relative; max-width: 900px; margin: 0 auto; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4/3; cursor: ew-resize; user-select: none;
}
.m-gesture-compare img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.m-gesture-after { clip-path: inset(0 0 0 50%); }
/* Le curseur du comparateur reprend l'aspect du bord de nettoyage réel du
   produit (fine barre laiton striée) plutôt qu'un séparateur de slider
   générique — un détail qui rattache l'interaction à l'objet. */
.m-gesture-handle {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 5px;
  background: repeating-linear-gradient(180deg, #d3ab6c 0 2px, #9c7644 2px 4px);
  box-shadow: 0 0 0 1px rgba(0,0,0,0.25), 0 0 18px rgba(0,0,0,0.35);
  transform: translateX(-50%);
}
.m-gesture-handle::after {
  content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 15px; height: 54px; border-radius: 7px;
  background: linear-gradient(90deg, #8a6532, #d3ab6c 45%, #8a6532);
  box-shadow: 0 2px 10px rgba(0,0,0,0.4);
}
.m-gesture-label { position: absolute; bottom: 20px; font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 6px 12px; background: rgba(17,17,17,0.6); color: var(--ivory); border-radius: var(--radius); }
.m-gesture-label.before { left: 20px; }
.m-gesture-label.after { right: 20px; }

/* ---------- Real life : présentation éditoriale plein écran, alternée,
   plutôt qu'une grille de cartes identiques façon Shopify. ---------- */
.m-editorial-row {
  display: grid; grid-template-columns: 1.15fr 1fr; align-items: stretch;
}
.m-editorial-row.is-reverse .m-editorial-media { order: 2; }
.m-editorial-row.is-reverse .m-editorial-text { order: 1; }
.m-editorial-media { position: relative; overflow: hidden; height: 76vh; }
.m-editorial-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.6s var(--ease); }
.m-editorial-row:hover .m-editorial-media img { transform: scale(1.045); }
.m-editorial-text {
  display: flex; flex-direction: column; justify-content: center;
  padding: 48px min(8vw, 96px);
}
.m-editorial-text h3 {
  font-size: clamp(52px, 7.4vw, 118px); font-weight: 800; letter-spacing: -0.035em;
  line-height: 0.9; margin: 0 0 20px;
}
.m-editorial-text p { font-size: 15px; line-height: 1.6; color: rgba(251,241,230,0.5); max-width: 320px; margin: 0; }

/* ---------- Bande de détails macro (grain du bois, métal, tête) ---------- */
.m-detail-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.m-detail-photo { position: relative; aspect-ratio: 1; overflow: hidden; }
.m-detail-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.m-detail-photo:hover img { transform: scale(1.06); }
.m-detail-photo span {
  position: absolute; left: 16px; bottom: 14px; z-index: 2;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ivory);
}
.m-detail-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgba(0,0,0,0.6) 100%); }

/* ---------- No refills ---------- */
.m-refills { text-align: center; }
.m-refills .m-display-1 { margin-bottom: 8px; }
.m-refills .m-lede { max-width: 480px; margin: 24px auto 0; }

/* ---------- Materials ---------- */
.m-materials { display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px; }
.m-material-item { text-align: left; }
.m-material-swatch { width: 64px; height: 64px; border-radius: var(--radius); margin-bottom: 20px; }
.m-material-swatch.wood { background: linear-gradient(135deg, #d9bd91, #a5824f); }
.m-material-swatch.metal { background: linear-gradient(135deg, #e8eaec, #9aa0a6); }
.m-material-swatch.noplastic { background: var(--card); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; }
.m-material-item h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.01em; margin: 0 0 6px; }
.m-material-item p { font-size: 14px; color: rgba(251,241,230,0.55); margin: 0; }

/* ---------- Final CTA ---------- */
.m-final-cta { background: var(--card); color: var(--ivory); text-align: center; padding: 140px 0; }
.m-final-cta .m-eyebrow { color: var(--pop); }
.m-final-cta .m-lede { color: rgba(243,240,232,0.65); max-width: 480px; margin: 20px auto 40px; }

/* ---------- Footer ---------- */
.m-footer { padding: 80px 0 40px; border-top: 1px solid var(--line); }
.m-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; margin-bottom: 56px; }
.m-footer h4 { font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 18px; }
.m-footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.m-footer ul a { font-size: 14px; opacity: 0.65; transition: opacity .3s var(--ease); }
.m-footer ul a:hover { opacity: 1; }
.m-footer-brand p { font-size: 14px; color: rgba(251,241,230,0.55); max-width: 320px; line-height: 1.6; }
.m-footer-bottom { display: flex; align-items: center; justify-content: space-between; padding-top: 28px; border-top: 1px solid var(--line); font-size: 12px; color: rgba(251,241,230,0.45); flex-wrap: wrap; gap: 12px; }

/* ==========================================================================
   Page produit
   ========================================================================== */
.m-breadcrumb { font-size: 13px; color: rgba(251,241,230,0.5); margin: 130px 0 32px; }
.m-breadcrumb a { opacity: 0.8; transition: opacity .3s var(--ease); }
.m-breadcrumb a:hover { opacity: 1; }
.m-breadcrumb span { margin: 0 8px; opacity: 0.4; }

.m-product-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 72px; align-items: start; padding-bottom: 120px; }
.m-gallery-main { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; background: var(--card); }
.m-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.m-gallery-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.m-gallery-thumb { border-radius: var(--radius); overflow: hidden; aspect-ratio: 1; border: 2px solid transparent; cursor: pointer; padding: 0; background: var(--card); transition: border-color .3s var(--ease); }
.m-gallery-thumb.is-active { border-color: var(--pop); }
.m-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.m-star-rating { display: flex; align-items: center; gap: 12px; margin: 16px 0 22px; }
.m-star-rating .stars { display: flex; gap: 3px; color: var(--pop); }
.m-star-rating .stars svg { width: 20px; height: 20px; fill: currentColor; }
.m-star-rating span { font-size: 16px; font-weight: 700; color: var(--ivory); }

.m-product-price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0 28px; }
.m-product-price strong { font-size: 34px; font-weight: 800; }
.m-product-price del { font-size: 18px; color: rgba(251,241,230,0.4); }
.m-product-price .m-price-badge { font-size: 12px; font-weight: 700; color: var(--pop); background: rgba(214,255,63,0.12); padding: 4px 10px; border-radius: var(--radius); }

.m-stock-line {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 700; color: var(--black);
  background: var(--pop); padding: 10px 18px; border-radius: 30px;
  margin: -4px 0 26px;
}
.m-stock-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--black); flex: none; box-shadow: 0 0 0 0 rgba(19,16,9,0.5); animation: m-pulse 2s infinite; }
@keyframes m-pulse {
  0% { box-shadow: 0 0 0 0 rgba(19,16,9,0.35); }
  70% { box-shadow: 0 0 0 8px rgba(19,16,9,0); }
  100% { box-shadow: 0 0 0 0 rgba(19,16,9,0); }
}

.m-trust-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 32px 0; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.m-trust-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; font-size: 12px; font-weight: 600; color: rgba(251,241,230,0.65); }
.m-trust-item svg { width: 22px; height: 22px; color: var(--pop); }

.m-specs { list-style: none; margin: 32px 0 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.m-specs li { display: flex; justify-content: space-between; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.m-specs li span:first-child { color: rgba(251,241,230,0.5); }
.m-specs li span:last-child { font-weight: 600; }

/* ---------- Accordéon (FAQ) ---------- */
.m-accordion-item { border-bottom: 1px solid var(--line); }
.m-accordion-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; background: none; border: none; text-align: left; cursor: pointer;
  font-size: 16px; font-weight: 600; color: var(--ivory); font-family: var(--font);
}
.m-accordion-trigger .m-plus { position: relative; width: 18px; height: 18px; flex: none; }
.m-accordion-trigger .m-plus::before, .m-accordion-trigger .m-plus::after {
  content: ''; position: absolute; background: var(--ivory); border-radius: 2px; transition: transform .3s var(--ease), opacity .3s var(--ease);
}
.m-accordion-trigger .m-plus::before { top: 50%; left: 0; width: 100%; height: 2px; margin-top: -1px; }
.m-accordion-trigger .m-plus::after { left: 50%; top: 0; height: 100%; width: 2px; margin-left: -1px; }
.m-accordion-item.is-open .m-accordion-trigger .m-plus::after { transform: rotate(90deg); opacity: 0; }
.m-accordion-panel { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); }
.m-accordion-item.is-open .m-accordion-panel { max-height: 400px; }
.m-accordion-panel p { padding: 0 4px 22px; font-size: 15px; line-height: 1.65; color: rgba(251,241,230,0.62); max-width: 640px; }

/* ---------- Avis clients ---------- */
.m-reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.m-review-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.m-review-card .stars { display: flex; gap: 2px; color: var(--pop); margin-bottom: 14px; }
.m-review-card .stars svg { width: 14px; height: 14px; fill: currentColor; }
.m-review-card p { font-size: 14px; line-height: 1.65; color: rgba(251,241,230,0.75); margin: 0 0 18px; }
.m-review-author { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.m-review-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--pop); color: var(--black); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; flex: none; }
.m-review-author strong { font-weight: 700; }
.m-review-author span { display: block; opacity: 0.5; font-size: 12px; }

/* ---------- Reveal on scroll ---------- */
[data-mreveal] { opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
[data-mreveal].is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .m-nav, .m-cta { display: none; }
  .m-mobile-toggle { display: flex; }
  .m-materials { grid-template-columns: 1fr; gap: 40px; }
  .m-footer-top { grid-template-columns: 1fr; gap: 32px; }
  .m-hero-brush { width: min(72vw, 380px); height: 64vh; }
  .m-product-grid { grid-template-columns: 1fr; gap: 40px; }
  .m-reviews-grid { grid-template-columns: 1fr; }
  .m-trust-row { grid-template-columns: 1fr; }
  .m-editorial-row, .m-editorial-row.is-reverse { grid-template-columns: 1fr; }
  .m-editorial-row .m-editorial-media, .m-editorial-row.is-reverse .m-editorial-media { order: 1; height: 52vh; }
  .m-editorial-row .m-editorial-text, .m-editorial-row.is-reverse .m-editorial-text { order: 2; padding: 40px 24px; }
}
@media (max-width: 620px) {
  .m-wrap { padding: 0 22px; }
}

/* ---------- Repli statique (prefers-reduced-motion) ---------- */
body.m-static .m-hero-pin { height: auto; padding: 140px 24px 100px; display: flex; flex-direction: column; align-items: center; justify-content: center; }
body.m-static .m-hair-canvas { display: none; }
body.m-static .m-hero-brush { position: static; margin: 0 auto 32px; }
body.m-static .m-hero-statement { position: static; opacity: 1 !important; }
