:root {
  --platre: #f2f1ec;
  --suie: #1b1815;
  --ardoise: #5d6173;
  --nuit: #010d4d;
  --nuit-profond: #000725;
  --creme: #ede7db;
  --etain: #8c97c4;
  --cuivre: #c98a4b;
  --cuivre-clair: #dba86f;
  --line: rgba(27, 24, 21, .14);
  --open: 0;
  font-family: Karla, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--suie);
  background: var(--platre);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; overflow-x: clip; background: var(--platre); color: var(--suie); }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: "Instrument Serif", Georgia, serif; font-weight: 400; letter-spacing: 0; margin: 0; }
p { line-height: 1.65; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 54px);
  color: var(--creme);
  background: linear-gradient(90deg, rgba(0,7,37,.94), rgba(1,13,77,.86));
  box-shadow: 0 16px 38px rgba(0, 7, 37, .18);
  backdrop-filter: blur(14px);
  transition: background .25s ease, box-shadow .25s ease;
}

.site-header.is-solid {
  background: linear-gradient(90deg, rgba(0,7,37,.97), rgba(1,13,77,.9));
  color: var(--creme);
  box-shadow: 0 16px 38px rgba(0, 7, 37, .18);
}

.brand-mark img { width: 150px; height: auto; }
.top-nav { display: flex; gap: clamp(12px, 2vw, 28px); font-size: .92rem; }
.top-nav a { opacity: .9; }
.top-nav a:hover { opacity: 1; color: #fff; }

.curtain-hero { height: 180svh; background: var(--nuit-profond); }
.hero-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  min-height: 650px;
  overflow: hidden;
  isolation: isolate;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 45%, rgba(201, 138, 75, .32), transparent 34%),
    var(--nuit-profond);
}

.hero-product {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(calc(1.08 - var(--open) * .04));
  filter: saturate(1.02) contrast(1.02);
}

.hero-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(90deg, rgba(0,7,37,.78), rgba(0,7,37,.22) 45%, rgba(0,7,37,.36));
  opacity: calc(.92 - var(--open) * .46);
  pointer-events: none;
}

.curtain {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: 4;
  width: 52%;
  background-image:
    linear-gradient(90deg, rgba(0,7,37,.10), transparent 38%, rgba(0,7,37,.18)),
    url("brand/soie-nuit-1920.webp");
  background-size: cover, 200% 100%;
  box-shadow: inset 0 0 42px rgba(0,7,37,.22), 0 0 28px rgba(0,0,0,.20);
  will-change: clip-path;
}
.curtain::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(14px, 2vw, 34px);
  background: linear-gradient(90deg, rgba(255,255,255,.08), rgba(0,7,37,.38));
  opacity: calc(.7 - var(--open) * .28);
  filter: blur(.6px);
}
.curtain-left {
  left: 0;
  background-position: center, left center;
  clip-path: polygon(
    0 0,
    100% 0,
    calc(100% - var(--open) * 80%) 10%,
    calc(100% - var(--open) * 92%) 28%,
    calc(100% - var(--open) * 96%) 58%,
    calc(100% - var(--open) * 98%) 100%,
    0 100%
  );
}
.curtain-left::after { right: 0; }
.curtain-right {
  right: 0;
  background-position: center, right center;
  clip-path: polygon(
    100% 0,
    0 0,
    calc(var(--open) * 80%) 10%,
    calc(var(--open) * 92%) 28%,
    calc(var(--open) * 96%) 58%,
    calc(var(--open) * 98%) 100%,
    100% 100%
  );
}
.curtain-right::after { left: 0; transform: scaleX(-1); }

.hero-copy {
  position: relative;
  z-index: 6;
  width: min(760px, calc(100% - 36px));
  text-align: center;
  color: var(--creme);
  padding-top: 80px;
}
.hero-emblem {
  width: clamp(82px, 13vw, 130px);
  margin: 0 auto 26px;
}
.hero-label {
  margin: 0 0 14px;
  color: var(--etain);
  text-transform: uppercase;
  letter-spacing: .14em;
  font-weight: 700;
  font-size: .78rem;
}
.hero-copy h1 { font-size: clamp(3rem, 8vw, 7.2rem); line-height: .92; }
.hero-copy p:not(.hero-label) { max-width: 620px; margin: 24px auto 0; font-size: clamp(1rem, 1.9vw, 1.25rem); }
.hero-copy .hero-description {
  display: block;
  max-width: 680px;
  font-size: clamp(1rem, 1.35vw, 1.15rem);
  line-height: 1.55;
  text-wrap: balance;
}
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.scroll-cue {
  position: absolute;
  z-index: 6;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--creme);
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .16em;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid currentColor;
  border-radius: 4px;
  font-weight: 700;
}
.button.primary { background: var(--creme); color: var(--nuit); border-color: var(--creme); }
.button.ghost { color: var(--creme); }
.site-header.is-solid + main .button.primary { background: var(--creme); color: var(--nuit); }

.section, .catalogue-page, .product-page {
  width: min(1240px, calc(100% - 36px));
  margin-inline: auto;
}
.section { padding: clamp(48px, 7vw, 92px) 0; }
.section.compact { padding-top: clamp(36px, 5vw, 70px); }
.intro { max-width: 880px; text-align: center; }
.kicker { margin: 0 0 10px; color: var(--nuit); text-transform: uppercase; letter-spacing: .14em; font-weight: 700; font-size: .78rem; }
.section h2, .page-hero h1 { font-size: clamp(2rem, 5vw, 4.2rem); line-height: 1; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 28px; }
.section-head a { color: var(--nuit); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }

.usage-grid, .product-grid, .finish-grid, .room-grid {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: clamp(245px, 27vw, 330px);
  gap: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 0 18px;
  margin-right: calc((100vw - min(1240px, calc(100vw - 36px))) / -2);
  padding-right: max(18px, calc((100vw - min(1240px, calc(100vw - 36px))) / 2));
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 0 18px;
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(1,13,77,.38) transparent;
  -webkit-overflow-scrolling: touch;
}
.usage-grid::-webkit-scrollbar,
.product-grid::-webkit-scrollbar,
.finish-grid::-webkit-scrollbar,
.room-grid::-webkit-scrollbar { height: 5px; }
.usage-grid::-webkit-scrollbar-thumb,
.product-grid::-webkit-scrollbar-thumb,
.finish-grid::-webkit-scrollbar-thumb,
.room-grid::-webkit-scrollbar-thumb { background: rgba(1,13,77,.38); border-radius: 999px; }
.usage-grid > *, .product-grid > *, .finish-grid > *, .room-grid > * {
  min-width: 0;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.usage-card, .product-card a, .finish-card, .room-card {
  display: grid;
  gap: 10px;
  align-content: start;
}
.usage-card img, .product-card img, .finish-card img, .room-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: center;
  background: transparent;
}
.usage-card span, .finish-card span, .room-card span, .product-card h3 {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}
.usage-card p, .finish-card p, .room-card p, .product-card p {
  margin: 0;
  color: var(--ardoise);
  font-size: .96rem;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.eyebrow { color: var(--nuit); font-size: .74rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 700; }

.link-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.link-card {
  border-radius: 4px;
  padding: 18px;
  min-height: 150px;
  display: grid;
  align-content: space-between;
  background: rgba(255, 255, 255, .34);
}
.link-card span {
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.45rem;
  line-height: 1.05;
}
.link-card p { margin: 18px 0 0; color: var(--ardoise); }
.service-card a {
  border: 1px solid var(--line);
  padding: 22px;
  min-height: 230px;
  align-content: end;
}

.split {
  display: grid;
  grid-template-columns: .85fr 1.15fr;
  gap: clamp(30px, 8vw, 110px);
}
.quiet-copy { color: var(--ardoise); font-size: 1.05rem; }

.faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 1.1rem; }
.faq details p { color: var(--ardoise); max-width: 820px; }

.footer {
  margin-top: 80px;
  padding: 50px clamp(18px, 4vw, 54px);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 40px;
  color: var(--creme);
  background:
    linear-gradient(rgba(1,13,77,.82), rgba(1,13,77,.9)),
    url("brand/soie-nuit-1200.webp") center / cover;
}
.footer p { color: rgba(237,231,219,.82); max-width: 620px; }
.footer h2 { font-size: 2rem; }
.footer a { color: var(--creme); text-decoration: underline; text-underline-offset: 4px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px; }

.page-hero {
  padding: 150px 0 55px;
}
.page-hero p { max-width: 760px; color: var(--ardoise); font-size: 1.08rem; }
.collection-band { padding: 64px 0; }
.info-page {
  width: min(960px, calc(100% - 36px));
  margin-inline: auto;
}
.rich-text {
  padding: 52px 0 90px;
  font-size: 1.08rem;
}
.rich-text h2 {
  font-size: clamp(1.7rem, 3.4vw, 2.6rem);
  margin: 42px 0 12px;
}
.rich-text p, .rich-text li { color: var(--ardoise); line-height: 1.7; }
.rich-text a { color: var(--nuit); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; }
.rich-text ul { padding-left: 20px; }

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .9fr);
  column-gap: clamp(28px, 5vw, 70px);
  row-gap: 24px;
  padding-top: 130px;
  align-items: start;
}
.product-media { grid-column: 1; grid-row: 1 / span 3; display: grid; gap: 14px; }
.main-product-stage {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}
.main-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity .18s ease;
}
.main-product-image.is-changing { opacity: .35; }
.thumb-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.thumb img { display: block; width: 100%; height: auto; aspect-ratio: auto; object-fit: contain; }
.thumb { display: block; }
.thumb[aria-current="true"] img { outline: 2px solid var(--nuit); outline-offset: 3px; }
.product-info { display: contents; }
.product-info > .kicker { grid-column: 2; grid-row: 1; align-self: end; margin-bottom: 0; }
.product-info > h1 { grid-column: 2; grid-row: 2; }
.product-detail > .cta-panel { grid-column: 2; grid-row: 3; margin-top: 0; align-self: start; }
.product-info > .lead { grid-column: 1 / -1; grid-row: 4; }
.product-info > .specs { grid-column: 1 / -1; grid-row: 5; }
.product-info > .care-box { grid-column: 1 / -1; }
.product-info > .lead,
.product-info > .specs,
.product-info > .care-box { width: min(900px, 100%); justify-self: center; }
.product-info h1 { font-size: clamp(2.3rem, 5vw, 4.8rem); line-height: .98; }
.lead { font-size: 1.12rem; color: var(--ardoise); }
.specs { display: grid; border-block: 0; margin: 30px 0; }
.specs div { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 14px 0; border-top: 1px solid var(--line); }
.specs div:first-child { border-top: 0; }
.specs dt { color: var(--ardoise); }
.specs dd { margin: 0; font-weight: 700; }
.care-box, .cta-panel {
  border-top: 1px solid var(--line);
  padding-top: 20px;
  margin-top: 22px;
}
.care-box.important {
  border: 1px solid var(--line);
  padding: 18px;
  background: rgba(237, 231, 219, .45);
}
.care-box h2, .cta-panel h2 { font-size: 1.8rem; }
.cta-panel p, .care-box p { color: var(--ardoise); }
.static-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}
.static-form label {
  display: grid;
  gap: 6px;
  color: var(--ardoise);
  font-size: .9rem;
}
.static-form input {
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 4px;
  padding: 0 10px;
  font: inherit;
}
.static-form button { grid-column: 1 / -1; }

@media (max-width: 900px) {
  .top-nav { display: none; }
  .site-header { padding-block: 10px; }
  .brand-mark img { width: 128px; }
  .curtain-hero { height: 170svh; }
  .hero-stage { min-height: 620px; }
  .hero-copy { text-align: left; place-self: end start; margin: 0 18px 76px; width: auto; }
  .hero-copy h1 { font-size: clamp(3.1rem, 15vw, 5.1rem); }
  .hero-actions { justify-content: flex-start; }
  .usage-grid, .product-grid, .finish-grid, .room-grid {
    grid-template-columns: none;
    grid-auto-columns: min(72vw, 310px);
  }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section-head, .split, .footer, .product-detail { grid-template-columns: 1fr; display: grid; }
  .product-detail { grid-template-areas: "media" "order" "info"; }
  .product-media { grid-area: media; }
  .product-detail > .cta-panel { grid-area: order; }
  .product-info { display: block; grid-area: info; }
  .section-head { align-items: start; }
  .product-info { position: static; }
  .static-form { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .section, .catalogue-page, .product-page { width: min(100% - 24px, 1240px); }
  .section { padding: 38px 0; }
  .intro { padding-top: 44px; }
  .usage-grid, .product-grid, .finish-grid, .room-grid {
    grid-template-columns: none;
    grid-auto-columns: min(82vw, 304px);
    gap: 14px;
    margin-right: -12px;
    padding-right: 30px;
  }
  .link-grid { grid-template-columns: 1fr; }
  .thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .button { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curtain-left {
    clip-path: polygon(0 0, 100% 0, 20% 10%, 8% 28%, 4% 58%, 2% 100%, 0 100%);
  }
  .curtain-right {
    clip-path: polygon(100% 0, 0 0, 80% 10%, 92% 28%, 96% 58%, 98% 100%, 100% 100%);
  }
  .hero-product { transform: none; }
}


/* Catalogue relationships and trust copy */
.measurement-guarantee, .price-guarantee { color: var(--ardoise); line-height: 1.6; }
.measurement-guarantee { width: min(900px, 100%); justify-self: center; margin: -12px 0 28px; }
.price-guarantee { margin: 8px 0 14px; font-weight: 700; }
.catalogue-links { grid-column: 1 / -1; width: 100%; padding-top: 32px; border-top: 1px solid var(--line); }
.catalogue-links h2 { font-size: clamp(1.8rem, 3vw, 2.7rem); margin-bottom: 20px; }
.catalogue-mini-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.catalogue-mini-card { display: grid; gap: 10px; align-content: start; }
.catalogue-mini-card img { display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.catalogue-mini-card span { font-family: "Instrument Serif", Georgia, serif; font-size: 1.35rem; line-height: 1.08; }
.category-hero p { max-width: 820px; }
.collection-band .section-head h2 a { color: inherit; text-decoration: underline; text-underline-offset: 5px; }
@media (max-width: 900px) {
  .catalogue-mini-grid { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(72vw, 280px); overflow-x: auto; gap: 14px; padding-bottom: 14px; scroll-snap-type: x mandatory; }
  .catalogue-mini-card { scroll-snap-align: start; }
  .measurement-guarantee { margin-top: 0; }
}


/* Mobile product width containment */
.product-detail > *, .product-info, .product-detail > *, .product-info, .product-media, .main-product-stage, .thumb-grid, .thumb { min-width: 0; max-width: 100%; }
@media (max-width: 900px) {
  .product-media { width: 100%; }
  .thumb-grid { width: 100%; }
  .product-info { width: 100%; overflow: hidden; }
}

/* NHASNA COD order states */
.static-form .form-wide { grid-column: 1 / -1; }
.static-form textarea {
  width: 100%;
  margin-top: .45rem;
  border: 1px solid rgba(1, 13, 77, .18);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: .7rem;
  resize: vertical;
}
.order-honeypot {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
}
.order-status { min-height: 1.4em; margin: 0; font-weight: 600; }
.order-status.is-success { color: #23613d; }
.order-status.is-error { color: #9d2d2d; }
.static-form button:disabled { cursor: wait; opacity: .7; }
