/* ==========================================================================
   Tissurama | maquette site vitrine
   Système de formes : boutons et pastilles = arrondi complet (999px),
   cartes / photos = 6px, étiquettes et patrons = 4px.
   Une seule couleur d'accent : le fil rouge.
   ========================================================================== */

:root {
  --paper: #F3F2EE;
  --paper-2: #E8E6DF;
  --card: #FAF9F6;
  --ink: #1B2233;
  --ink-2: #353C50;
  --muted: #5B6172;
  --line: rgba(27, 34, 51, .14);
  --shadow: 27 34 51;

  --accent: #C2332B;          /* fil rouge (texte, tracés) */
  --accent-bg: #C2332B;       /* fonds de boutons */
  --accent-bg-hover: #A82820;
  --on-accent: #FBFAF7;

  --indigo: #1E2947;          /* bloc atelier */
  --indigo-ink: #EEECE6;
  --indigo-muted: #B3B8CA;
  --accent-on-indigo: #F08276;

  --radius: 6px;
  --gutter: clamp(20px, 4vw, 48px);
  --maxw: 1320px;
  --nav-h: 68px;

  --f-display: "Cormorant Garamond", "Iowan Old Style", "Times New Roman", serif;
  --f-body: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #12151F;
    --paper-2: #1A1E2B;
    --card: #1C2130;
    --ink: #ECEAE4;
    --ink-2: #D2D0CA;
    --muted: #A3A7B4;
    --line: rgba(236, 234, 228, .14);
    --shadow: 0 0 0;
    --accent: #E25247;
    --indigo: #1B2442;
    --indigo-muted: #A9AFC4;
  }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: italic; }
::selection { background: var(--accent-bg); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.container { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}
.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .6rem 1rem; border-radius: 999px;
  text-decoration: none; transition: top .2s;
}
.skip:focus { top: 12px; }

.eyebrow {
  display: block;
  font-family: var(--f-body);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}

.section { padding-block: clamp(5rem, 10vw, 8.5rem); position: relative; }
.section-title {
  font-family: var(--f-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 5.2vw, 4.4rem);
  line-height: 1.08;
  letter-spacing: -.012em;
  max-width: 17ch;
  padding-bottom: .08em;
}
.section-title em { color: var(--accent); }
.lead { font-size: 1.1rem; color: var(--muted); max-width: 46ch; margin-top: 1.2rem; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  height: 52px; padding: 0 1.55rem;
  border-radius: 999px; border: 1.5px solid transparent;
  font: 500 .98rem/1 var(--f-body);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s, color .25s, border-color .25s;
}
.btn i { font-size: 1.15em; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent-bg); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-bg-hover); }
.btn-ghost { border-color: var(--ink); color: var(--ink); }
.btn-ghost:hover { background: var(--ink); color: var(--paper); }
.btn-sm { height: 42px; padding: 0 1.1rem; font-size: .9rem; }

.round-btn {
  width: 48px; height: 48px; border-radius: 999px;
  display: inline-grid; place-items: center;
  border: 1.5px solid var(--line); background: transparent; color: var(--ink);
  font-size: 1.15rem; cursor: pointer;
  transition: background-color .25s, border-color .25s, transform .25s var(--ease);
}
.round-btn:hover { border-color: var(--ink); }
.round-btn:active { transform: scale(.95); }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  transition: background-color .35s, box-shadow .35s, backdrop-filter .35s;
}
.nav.is-scrolled {
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line);
}
.nav-inner { height: 100%; display: flex; align-items: center; gap: 2rem; }
.brand { text-decoration: none; margin-right: auto; }
/* Étiquette tissée cousue */
.brand-label {
  position: relative; display: inline-block;
  font-family: var(--f-display); font-weight: 600; font-size: 1.32rem; letter-spacing: .04em;
  line-height: 1; padding: .42rem .95rem .48rem;
  color: var(--on-accent); background: var(--accent-bg);
  border-radius: 3px;
  box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .12), 0 2px 6px rgb(var(--shadow) / .18);
}
.brand-label::after {
  content: ""; position: absolute; inset: 3px;
  border: 1px dashed rgba(255, 255, 255, .6); border-radius: 2px;
  pointer-events: none;
}
.nav-links { display: flex; gap: 1.9rem; }
.nav-links a {
  text-decoration: none; font-size: .94rem; color: var(--ink-2);
  padding: .3rem 0;
  background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px) left bottom / 0 1.5px no-repeat;
  transition: background-size .35s var(--ease), color .2s;
}
.nav-links a:hover { color: var(--ink); background-size: 100% 1.5px; }
.nav-icon {
  display: none; width: 44px; height: 44px; border-radius: 999px;
  place-items: center; font-size: 1.3rem; color: var(--ink);
  background: transparent; border: 1.5px solid var(--line); cursor: pointer; text-decoration: none;
}
.nav-call-mobile { background: var(--accent-bg); color: var(--on-accent); border-color: transparent; }

.menu {
  position: fixed; inset: 0; z-index: 45;
  background: var(--paper);
  padding: calc(var(--nav-h) + 2rem) var(--gutter) 2rem;
  display: flex; flex-direction: column; justify-content: space-between;
}
.menu[hidden] { display: none; }
.menu nav { display: flex; flex-direction: column; }
.menu nav a {
  font-family: var(--f-display); font-size: 2.6rem; line-height: 1.25;
  text-decoration: none; padding: .35rem 0; border-bottom: 1px solid var(--line);
}
.menu .btn { width: 100%; }

/* ---------- Hero ---------- */
.hero {
  min-height: 100dvh;
  padding-top: calc(var(--nav-h) + clamp(1rem, 3vw, 2.5rem));
  padding-bottom: 2rem;
  display: flex; align-items: center;
}
.hero-grid {
  display: grid; grid-template-columns: 1.04fr 1fr; gap: clamp(2rem, 4vw, 4rem);
  align-items: center;
}
.hero h1 { font-weight: inherit; }
.hero-eyebrow { margin-bottom: 1.5rem; }
.hero-title {
  display: block;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(3.7rem, 8.4vw, 8.6rem);
  line-height: 1;
  letter-spacing: -.02em;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: .2em; margin-bottom: -.2em; }
.hero-title .line > span { display: inline-block; }
.filled { position: relative; display: inline-block; color: var(--accent); padding-right: .04em; }
.underline {
  position: absolute; left: -3%; bottom: -.06em; width: 106%; height: .2em;
  overflow: visible; pointer-events: none;
}
.ul-stitch {
  fill: none; stroke: var(--accent); stroke-width: 3; stroke-linecap: round;
  stroke-dasharray: 10 8; vector-effect: non-scaling-stroke;
}
.ul-reveal { fill: none; stroke: #fff; stroke-width: 14; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero-sub { font-size: clamp(1.05rem, 1.3vw, 1.18rem); color: var(--muted); max-width: 36ch; margin: 1.9rem 0 2.2rem; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: .75rem; }

.hero-stage {
  position: relative;
  height: min(80vh, 780px); min-height: 540px;
  border-radius: var(--radius);
}
.stage-light {
  position: absolute; inset: 4% 6% 18%;
  background:
    radial-gradient(60% 55% at 50% 38%, color-mix(in srgb, var(--card) 95%, transparent), transparent 72%);
  pointer-events: none;
}
.cloth {
  position: absolute; left: 0; top: 0; width: 100%; height: calc(100% - 92px);
  touch-action: pan-y; cursor: grab;
  filter: drop-shadow(0 26px 30px rgb(var(--shadow) / .2));
}
.cloth.is-grabbing { cursor: grabbing; }
.stage-fallback {
  position: absolute; inset: 0 0 92px; width: 100%; height: calc(100% - 92px);
  object-fit: cover; border-radius: var(--radius);
}
.rod { position: absolute; height: 10px; pointer-events: none; }
.rod-bar {
  position: absolute; inset: 0; border-radius: 10px;
  background: linear-gradient(180deg, #A6ABB7 0%, #5E6474 45%, #2A2F3E 100%);
  box-shadow: 0 3px 6px rgb(var(--shadow) / .25);
}
.rod-bar::before, .rod-bar::after {
  content: ""; position: absolute; top: 50%; width: 20px; height: 20px; border-radius: 50%;
  transform: translateY(-50%);
  background: radial-gradient(circle at 35% 30%, #C9CDD6, #5E6474 55%, #2A2F3E);
}
.rod-bar::before { left: -14px; }
.rod-bar::after { right: -14px; }
.rings { position: absolute; inset: 0; pointer-events: none; }
.ring {
  position: absolute; width: 11px; height: 17px; border-radius: 50%;
  border: 2.5px solid #4A5060; transform: translate(-50%, -50%);
}
.stage-hint {
  position: absolute; right: 4%; top: 30%;
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .45rem .85rem; border-radius: 999px;
  background: var(--card); color: var(--ink-2);
  font-size: .85rem; font-weight: 500;
  box-shadow: 0 8px 22px rgb(var(--shadow) / .14);
  pointer-events: none;
  transition: opacity .6s, transform .6s var(--ease);
}
.stage-hint i { font-size: 1.1rem; color: var(--accent); }
.stage-hint.is-hidden { opacity: 0; transform: translateY(-6px); }

.swatches {
  position: absolute; left: 0; right: 0; bottom: 0; height: 92px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: .45rem;
}
.swatch-list { display: flex; gap: .55rem; }
.swatch {
  width: 46px; height: 46px; padding: 3px; border-radius: 50%;
  border: 1.5px solid transparent; background: none; cursor: pointer;
  transition: border-color .25s, transform .25s var(--ease);
}
.swatch:hover { transform: translateY(-2px); }
.swatch[aria-pressed="true"] { border-color: var(--ink); }
.swatch-fabric { display: block; width: 100%; height: 100%; background-size: 160%; background-position: center; }
.swatch-name { font-size: .84rem; color: var(--muted); line-height: 1.2; }
.swatch-name strong { font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 1.12rem; color: var(--ink); }

/* Entrée du hero */
@media (prefers-reduced-motion: no-preference) {
  .hero-title .line > span { transform: translateY(105%); animation: rise 1.1s var(--ease) forwards; }
  .hero-title .line:nth-child(2) > span { animation-delay: .12s; }
  .hero-eyebrow, .hero-sub, .hero-ctas { opacity: 0; transform: translateY(16px); animation: fadeUp .9s var(--ease) forwards; }
  .hero-eyebrow { animation-delay: .05s; }
  .hero-sub { animation-delay: .35s; }
  .hero-ctas { animation-delay: .48s; }
  .hero-stage { opacity: 0; animation: fade 1.4s .2s ease forwards; }
  .ul-reveal { stroke-dashoffset: 1; animation: draw 1.2s .85s var(--ease) forwards; }
}
@keyframes rise { to { transform: translateY(0); } }
@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }
@keyframes fade { to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ---------- Bandeau matières ---------- */
/* Le bandeau et le carrousel passent AU-DESSUS du fil rouge (z-index 30) :
   le fil glisse dessous, comme sous un ruban. */
.marquee {
  position: relative; z-index: 31; background: var(--paper);
  border-block: 1px solid var(--line);
  overflow: hidden; padding: 1.15rem 0;
}
.marquee-track { display: flex; width: max-content; }
.marquee-list { display: flex; flex-shrink: 0; }
.marquee-list li {
  display: flex; align-items: center;
  font-family: var(--f-display); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.6rem);
  line-height: 1.2; white-space: nowrap; padding-right: 2.2rem;
}
.marquee-list li::after {
  content: "×"; font-family: var(--f-body); font-style: normal; font-size: .62em;
  color: var(--accent); margin-left: 2.2rem;
}
@media (prefers-reduced-motion: no-preference) {
  .marquee-track { animation: marquee 48s linear infinite; }
  .marquee:hover .marquee-track { animation-play-state: paused; }
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Bento boutique ---------- */
.bento {
  margin-top: clamp(2.5rem, 5vw, 4rem);
  display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 250px; gap: 14px;
}
.cell {
  position: relative; overflow: hidden; border-radius: var(--radius);
  background: var(--paper-2); color: #FAF9F6; text-decoration: none;
  isolation: isolate;
}
.cell img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2;
  transition: transform 1.2s var(--ease);
}
.cell:not(.cell-pattern)::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to top, rgba(14, 17, 28, .78) 0%, rgba(14, 17, 28, .28) 42%, transparent 68%);
}
/* Point de couture qui apparaît au survol */
.cell::before {
  content: ""; position: absolute; inset: 10px; z-index: 2;
  border: 1.5px dashed rgba(255, 255, 255, .7); border-radius: 3px;
  opacity: 0; transform: scale(1.015);
  transition: opacity .4s, transform .6s var(--ease);
  pointer-events: none;
}
.cell:hover::before, .cell:focus-visible::before { opacity: 1; transform: scale(1); }
.cell:hover img { transform: scale(1.05); }
.cell-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem 1.5rem; }
.cell h3 { font-family: var(--f-display); font-weight: 500; font-size: 1.85rem; line-height: 1.1; }
.cell p { font-size: .92rem; line-height: 1.45; opacity: .9; margin-top: .35rem; max-width: 34ch; }
.cell-tissus h3 { font-size: clamp(2.2rem, 3.2vw, 3rem); }

.cell-tissus { grid-column: 1 / 3; grid-row: 1 / 3; }
.cell-rideaux { grid-column: 3; grid-row: 1 / 3; }
.cell-mercerie { grid-column: 4; grid-row: 1; }
.cell-retouches { grid-column: 4; grid-row: 2; }
.cell-confection { grid-column: 1; grid-row: 3; }
.cell-deco { grid-column: 2 / 4; grid-row: 3; }
.cell-conseil { grid-column: 4; grid-row: 3; }

/* Cellules « tissu » : un patch cousu sur le motif */
.cell-pattern { background-size: 210px; background-repeat: repeat; color: var(--ink); }
.cell-pattern::before { border-color: rgba(255, 255, 255, .85); }
.cell-pattern .cell-body {
  left: 14px; right: 14px; bottom: 14px; padding: 1rem 1.1rem 1.05rem;
  background: var(--card); border-radius: 4px;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .35);
}
.cell-pattern .cell-body::after {
  content: ""; position: absolute; inset: 5px; border: 1px dashed var(--line); border-radius: 2px; pointer-events: none;
}
.cell-pattern p { opacity: 1; color: var(--muted); }
.cell-icon { font-size: 1.35rem; color: var(--accent); display: block; margin-bottom: .2rem; }
.cell-pattern h3 { font-size: 1.6rem; }

/* ---------- Histoire ---------- */
.histoire-grid { display: grid; grid-template-columns: 7fr 5fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.kinetic {
  font-family: var(--f-display); font-weight: 400;
  font-size: clamp(1.85rem, 3.3vw, 3.05rem); line-height: 1.22; letter-spacing: -.005em;
}
.kinetic em { color: var(--accent); }
.kinetic .w { transition: none; }
.histoire-media { position: relative; height: clamp(440px, 46vw, 620px); }
.photo { position: absolute; overflow: hidden; border-radius: var(--radius); }
.photo img { width: 100%; height: 100%; object-fit: cover; }
.photo-a { top: 0; right: 0; width: 78%; height: 76%; }
.photo-b {
  left: 0; bottom: 0; width: 52%; height: 46%;
  outline: 8px solid var(--paper);
}

/* ---------- Retouches (bloc indigo) ---------- */
.retouches { background: var(--indigo); color: var(--indigo-ink); }
.retouches .eyebrow { color: var(--indigo-muted); }
.retouches .section-title em { color: var(--accent-on-indigo); }
.retouches .lead { color: var(--indigo-muted); }
.retouches-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.chips li {
  padding: .45rem .95rem; border-radius: 999px;
  border: 1px dashed rgba(238, 236, 230, .4);
  font-size: .9rem; color: var(--indigo-ink);
}
.retouches-photo { border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 5; max-height: 600px; }
.retouches-photo img { width: 100%; height: 100%; object-fit: cover; }

.steps {
  position: relative; margin-top: clamp(4rem, 8vw, 6.5rem);
  display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem);
}
.seam { position: absolute; left: 0; right: 0; top: 21px; height: 2px; }
.seam::before {
  content: ""; position: absolute; inset: 0;
  background: rgba(238, 236, 230, .12);
}
.seam-line {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(90deg, rgba(238, 236, 230, .85) 0 12px, transparent 12px 20px);
  clip-path: inset(0 0 0 0);
}
.step { position: relative; }
.button-node {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; grid-template-columns: repeat(2, 6px); gap: 5px; place-content: center;
  background: #EEECE6;
  box-shadow: inset 0 0 0 3px rgba(0, 0, 0, .07), inset 0 -3px 0 rgba(0, 0, 0, .1), 0 6px 14px rgba(0, 0, 0, .3);
  transition: transform .6s var(--ease), opacity .4s;
}
.button-node i { width: 6px; height: 6px; border-radius: 50%; background: var(--indigo); }
.js-motion .button-node { transform: scale(.7); opacity: .45; }
.js-motion .button-node.is-sewn { transform: scale(1); opacity: 1; }
.step h3 { font-family: var(--f-display); font-weight: 500; font-size: 2.05rem; line-height: 1.1; margin: 1.3rem 0 .45rem; }
.step p { color: var(--indigo-muted); max-width: 30ch; }

/* ---------- Arrivages ---------- */
.arrivages-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.arrivages-actions { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; }
.carousel-nav { display: flex; gap: .5rem; }
.carousel {
  position: relative; z-index: 31;
  --edge: max(var(--gutter), calc((100vw - var(--maxw)) / 2));
  display: flex; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding-inline: var(--edge);
  padding: clamp(2rem, 4vw, 3rem) var(--edge) .5rem;
  scrollbar-width: none; cursor: grab;
}
.carousel::-webkit-scrollbar { display: none; }
.carousel.is-dragging { scroll-snap-type: none; cursor: grabbing; }
.carousel.is-dragging .slide { pointer-events: none; }
.slide { flex: 0 0 clamp(240px, 24vw, 330px); scroll-snap-align: start; user-select: none; }
.slide img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: var(--radius);
  transition: transform .6s var(--ease);
}
.slide:hover img { transform: translateY(-5px); }
.slide figcaption { font-family: var(--f-display); font-style: italic; font-size: 1.4rem; margin-top: .7rem; }

/* ---------- Avis ---------- */
.avis-grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(2.5rem, 6vw, 6rem); align-items: start; }
.score { position: sticky; top: calc(var(--nav-h) + 2rem); }
.score-value {
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(6rem, 12vw, 10.5rem); line-height: .85; letter-spacing: -.03em;
}
.score-max { font-size: .3em; color: var(--muted); letter-spacing: 0; margin-left: .15em; }
.stars { position: relative; display: inline-block; font-size: 1.55rem; margin-top: 1.6rem; line-height: 1; }
.stars-base { color: var(--line); display: flex; gap: 2px; }
.stars-fill {
  position: absolute; inset: 0; display: flex; gap: 2px; overflow: hidden; white-space: nowrap;
  color: var(--accent); width: calc(var(--rating) / 5 * 100%);
}
.score-meta { color: var(--muted); margin: 1.1rem 0 1.2rem; line-height: 1.5; }
.score-meta strong { color: var(--ink); font-weight: 600; }
.link-arrow {
  display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; text-decoration: none;
  padding-bottom: 2px;
  background: repeating-linear-gradient(90deg, var(--accent) 0 5px, transparent 5px 9px) left bottom / 100% 1.5px no-repeat;
}
.pieces { margin-top: clamp(2.5rem, 5vw, 3.5rem); display: grid; grid-template-columns: 1fr 1fr; gap: 28px 26px; align-items: start; }
.piece {
  position: relative; background: var(--card);
  padding: 2.1rem 1.9rem 1.6rem; border-radius: 4px;
  box-shadow: 0 1px 0 rgb(var(--shadow) / .05), 0 22px 44px -22px rgb(var(--shadow) / .45);
}
.piece::before {
  content: ""; position: absolute; inset: 10px;
  border: 1.5px dashed color-mix(in srgb, var(--ink) 26%, transparent); border-radius: 2px;
  pointer-events: none;
}
.piece:nth-child(1) { rotate: -1.4deg; }
.piece:nth-child(2) { rotate: 1.1deg; margin-top: 3.2rem; }
.piece:nth-child(3) { grid-column: 1 / 3; justify-self: center; max-width: 560px; rotate: -.5deg; }
.pin {
  position: absolute; top: -8px; left: 50%; width: 16px; height: 16px; border-radius: 50%;
  translate: -50% 0;
  background: radial-gradient(circle at 35% 30%, #FF9C90, var(--accent-bg) 48%, #6E140F);
  box-shadow: 0 3px 5px rgba(0, 0, 0, .28);
}
.piece-scissors {
  position: absolute; top: 2px; left: 28px; font-size: 1.15rem; color: var(--muted);
  background: var(--card); padding: 0 4px;
}
.piece p { font-family: var(--f-display); font-style: italic; font-size: 1.55rem; line-height: 1.28; }
.piece footer { margin-top: 1rem; font-weight: 600; font-size: .95rem; }
.piece footer span { display: block; font-weight: 400; font-size: .85rem; color: var(--muted); }

/* ---------- Infos ---------- */
.infos-grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: stretch; }
.status {
  display: inline-flex; align-items: center; gap: .6rem;
  margin-top: 2rem; padding: .5rem 1rem; border-radius: 999px;
  background: var(--paper-2); font-weight: 500; font-size: .95rem;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.is-open .status-dot { background: #2E8B57; box-shadow: 0 0 0 4px rgba(46, 139, 87, .18); }
.hours { margin: 1.4rem 0 1.8rem; }
.hours div {
  display: flex; justify-content: space-between; gap: 1rem;
  padding: .75rem 0 .75rem .9rem; border-bottom: 1px solid var(--line);
  border-left: 2px solid transparent;
}
.hours dt { color: var(--ink-2); }
.hours dd { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }
.hours .is-today { border-left-color: var(--accent); }
.hours .is-today dt, .hours .is-today dd { color: var(--ink); font-weight: 600; }
.contact-list { display: grid; gap: .75rem; margin-bottom: 2rem; }
.contact-list li { display: flex; align-items: flex-start; gap: .8rem; line-height: 1.45; }
.contact-list i { font-size: 1.3rem; color: var(--accent); margin-top: .05rem; }
.contact-list a { text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--accent); }
.map { border-radius: var(--radius); overflow: hidden; min-height: 480px; background: var(--paper-2); }
.map iframe { display: block; width: 100%; height: 100%; min-height: 480px; border: 0; filter: grayscale(.35) contrast(1.03); }
@media (prefers-color-scheme: dark) {
  .map iframe { filter: invert(.9) hue-rotate(180deg) grayscale(.4) contrast(.95); }
}

/* ---------- Footer ---------- */
.footer { padding-top: clamp(1rem, 3vw, 2.5rem); }
.footer-word {
  font-family: var(--f-display); font-weight: 500; font-style: italic;
  font-size: clamp(4.2rem, 18.5vw, 300px); line-height: .9; letter-spacing: -.035em;
  text-align: center; white-space: nowrap; padding-bottom: .12em;
}
.footer-row {
  display: flex; justify-content: space-between; gap: .75rem 2rem; flex-wrap: wrap;
  padding: 1.6rem 0 2.2rem; border-top: 1px solid var(--line);
  font-size: .9rem; color: var(--muted);
}
.footer-links { display: flex; gap: 1.4rem; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--ink); }

/* ---------- Fil rouge ---------- */
.thread { position: absolute; left: 0; top: 0; z-index: 30; pointer-events: none; overflow: visible; }
.thread-path {
  fill: none; stroke: var(--accent); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round;
}
.needle { opacity: 0; transition: opacity .3s; }
.needle.is-visible { opacity: 1; }
.needle-body { fill: #8E94A3; stroke: #4D5363; stroke-width: .6; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .nav-links { gap: 1.3rem; }
}

@media (max-width: 1023px) {
  .nav-links, .nav-call { display: none; }
  .nav-icon { display: inline-grid; }
  .nav-inner { gap: .6rem; }

  .hero { min-height: auto; padding-bottom: 1rem; }
  .hero-grid { grid-template-columns: 1fr; gap: 1.5rem; }
  .hero-stage { height: min(78vh, 640px); min-height: 480px; }

  .bento { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; grid-auto-flow: dense; }
  .bento .cell { grid-column: auto; grid-row: auto; }
  .bento .cell-tissus { grid-column: span 2; grid-row: span 2; }
  .bento .cell-rideaux { grid-row: span 2; }
  .bento .cell-deco { grid-column: span 2; }

  .histoire-grid, .retouches-grid, .avis-grid, .infos-grid { grid-template-columns: 1fr; }
  .score { position: static; }
  .retouches-photo { aspect-ratio: 16 / 11; }
}

@media (max-width: 767px) {
  .steps { grid-template-columns: 1fr; gap: 2.4rem; }
  .seam { left: 21px; right: auto; top: 0; bottom: 0; width: 2px; height: auto; }
  .seam-line { background: repeating-linear-gradient(180deg, rgba(238, 236, 230, .85) 0 12px, transparent 12px 20px); }
  .step { padding-left: 68px; }
  .button-node { position: absolute; left: 0; top: 0; }
  .step h3 { margin-top: .2rem; }

  .pieces { grid-template-columns: 1fr; gap: 26px; }
  /* inclinaison réduite : les coins restent loin du fil qui longe le bord */
  .piece:nth-child(1) { rotate: -.6deg; }
  .piece:nth-child(2) { margin-top: 0; rotate: .5deg; }
  .piece:nth-child(3) { rotate: -.3deg; }
  .piece:nth-child(3) { grid-column: auto; max-width: none; }
  .map, .map iframe { min-height: 340px; }
}

@media (max-width: 639px) {
  .thread-path { stroke-width: 1.8; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .bento .cell-tissus, .bento .cell-deco { grid-column: auto; }
  .bento .cell-tissus, .bento .cell-rideaux { grid-row: span 1; }
  .bento .cell-tissus { grid-row: span 1; }
  .cell-pattern { min-height: 0; }
  .histoire-media { height: 400px; }
  .hero-stage { height: 560px; min-height: 0; }
  .btn { flex: 1 1 auto; }
  .footer-row { flex-direction: column; }
}

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