/* ==========================================================================
   Bijoux Celestes - design system "Blanc Couture"
   Blanc pur, encre quasi-noire, un seul filet d'or champagne.
   Bodoni Moda (didone) + Schibsted Grotesk. Angles nets, zero ombre.
   ========================================================================== */

/* ---------- Fonts (self-hosted, no third-party request) ---------- */
@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/bodoni-moda-var.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Bodoni Moda';
  src: url('fonts/bodoni-moda-var-italic.woff2') format('woff2-variations');
  font-weight: 400 700;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Schibsted Grotesk';
  src: url('fonts/schibsted-grotesk-var.woff2') format('woff2-variations');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
.bc {
  --bg: #FFFFFF;
  --surface: #F6F5F2;
  --ink: #16161A;
  --muted: #76767F;
  --accent: #B99559;
  --hairline: rgba(185, 149, 89, .28);
  --hairline-ink: rgba(22, 22, 26, .12);

  --xs: 8px;
  --sm: 16px;
  --md: 32px;
  --lg: 72px;
  --xl: 140px;

  --r-sm: 0px;
  --r-md: 2px;

  --serif: 'Bodoni Moda', 'Times New Roman', serif;
  --sans: 'Schibsted Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1300px;
  --gut: clamp(20px, 5vw, 56px);

  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: clamp(16px, 1.02vw, 17.5px);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

.bc *,
.bc *::before,
.bc *::after { box-sizing: border-box; }

.bc img, .bc svg { max-width: 100%; display: block; }

/* ---------- Shared container ---------- */
.bc-wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gut);
}

/* ---------- Type scale ---------- */
.bc h1, .bc h2, .bc h3 {
  font-family: var(--serif);
  font-weight: 400;
  color: var(--ink);
  margin: 0;
  letter-spacing: -.005em;
}

.bc-h1 {
  /* Sized so "Des astres portes" holds one line in its column: the hero headline
     is capped at two lines and the primary CTA must stay above the fold. */
  font-size: clamp(2.5rem, 4.5vw, 4.25rem);
  line-height: 1.04;
  text-wrap: balance;
}
/* Italic descenders (y g j p q) must not clip at tight leading. */
.bc-h1 em,
.bc-h2 em,
.bc-h3 em { font-style: italic; }
.bc-h1:has(em) { line-height: 1.1; padding-bottom: .06em; }
.bc-h2:has(em) { line-height: 1.14; padding-bottom: .05em; }

.bc-h2 {
  font-size: clamp(2.05rem, 3.5vw, 3.4rem);
  line-height: 1.08;
}
.bc-h3 {
  font-size: clamp(1.3rem, 1.6vw, 1.65rem);
  line-height: 1.16;
}

.bc-lead {
  font-size: clamp(1.02rem, 1.15vw, 1.14rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 62ch;
  margin: 0;
}

.bc-label {
  font-family: var(--sans);
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0;
}

/* ---------- Rules (the structural tool, instead of cards) ---------- */
.bc-rule {
  border: 0;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* ---------- Buttons ---------- */
.bc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 17px 38px;
  background: var(--ink);
  color: #FFFFFF;
  font-family: var(--sans);
  font-size: .84rem;
  font-weight: 500;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: var(--r-sm);
  box-shadow: none;
  transition: background .35s ease, border-color .35s ease, transform .18s ease;
}
.bc-btn:hover,
.bc-btn:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  color: #FFFFFF;
}
.bc-btn:active { transform: translateY(1px); }

.bc-link {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  color: var(--ink);
  font-size: .88rem;
  font-weight: 500;
  letter-spacing: .02em;
  text-decoration: none;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--accent);
  transition: color .3s ease, gap .3s ease;
}
.bc-link:hover,
.bc-link:focus-visible { color: var(--accent); gap: 16px; }
.bc-link span[aria-hidden] { transition: transform .3s ease; }
.bc-link:hover span[aria-hidden] { transform: translateX(3px); }

.bc :where(a, .bc-btn):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

/* ==========================================================================
   1. HERO - split, visual bleeds to the viewport edge (family A)
   ========================================================================== */
.bc-hero {
  position: relative;
  padding-block: clamp(28px, 3.4vw, 52px) clamp(56px, 8vw, 104px);
  overflow: clip;
}
.bc-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, .96fr);
  align-items: center;
  gap: clamp(32px, 5vw, 76px);
}
.bc-hero__copy > * + * { margin-top: var(--md); }
.bc-hero__copy .bc-label + .bc-h1 { margin-top: var(--sm); }
.bc-hero__sub { max-width: 44ch; }

.bc-hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(20px, 2.4vw, 36px);
}

/* The gold hairline that sits under the headline. */
.bc-hero__mark {
  width: 112px;
  height: 1px;
  background: var(--accent);
  margin-top: var(--md);
}

/* Visual breaks its frame: on desktop it runs past the container, to the edge. */
.bc-hero__art {
  position: relative;
  /* Fixed height rather than an aspect-ratio: with a capped aspect-ratio the
     browser also shrinks the width, which killed the bleed to the viewport edge.
     Height is tied to the viewport so the CTA stays above the fold. */
  height: clamp(400px, 56vh, 580px);
  background: var(--surface);
  border-radius: var(--r-md);
  margin-right: calc((100vw - min(100vw, var(--wrap))) / -2 - var(--gut));
  overflow: hidden;
}
.bc-hero__art svg { width: 100%; height: 100%; }

/* ==========================================================================
   2. MANIFESTO - one wide editorial statement (family B)
   ========================================================================== */
.bc-manifesto {
  padding-block: clamp(72px, 10vw, var(--xl));
  border-top: 1px solid var(--hairline);
}
.bc-manifesto__inner { max-width: 25ch; }
.bc-manifesto__text {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.1vw, 2.85rem);
  line-height: 1.26;
  font-weight: 400;
  color: var(--ink);
  max-width: 30ch;
  margin: 0;
}
.bc-manifesto__text em { font-style: italic; color: var(--accent); }
.bc-manifesto__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
}
.bc-manifesto__aside {
  font-size: .98rem;
  line-height: 1.68;
  color: var(--muted);
  max-width: 40ch;
  margin: 0;
  padding-top: var(--xs);
  border-top: 1px solid var(--hairline-ink);
}

/* ==========================================================================
   3. COLLECTIONS - asymmetric bento, cells sized by weight (family C)
   ========================================================================== */
.bc-collections {
  padding-block: clamp(72px, 10vw, var(--xl));
  border-top: 1px solid var(--hairline);
}
.bc-collections__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--md);
  margin-bottom: clamp(40px, 5vw, 68px);
}

.bc-bento {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.6vw, 22px);
}
/* Deliberately uneven: one tall signature cell, one wide, two standard. */
.bc-tile--tall { grid-row: span 2; }
.bc-tile--wide { grid-column: span 2; }

.bc-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 268px;
  padding: clamp(20px, 2.2vw, 30px);
  background: var(--surface);
  border: 1px solid transparent;
  border-radius: var(--r-md);
  text-decoration: none;
  color: var(--ink);
  overflow: hidden;
  transition: border-color .4s ease;
}
.bc-tile--tall { min-height: 560px; }
/* Hover affordance stays on-palette: a gold hairline appears, no new colour. */
.bc-tile:hover,
.bc-tile:focus-visible { border-color: var(--hairline); }

/* Each tile carries its own on-palette placeholder ground, not six white cards. */
.bc-tile__ground {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bc-tile__ground svg { width: 100%; height: 100%; }

.bc-tile__name {
  position: relative;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 2.1vw, 2.1rem);
  line-height: 1.1;
}
.bc-tile__go {
  position: relative;
  margin-top: 10px;
  font-size: .8rem;
  font-weight: 500;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  transition: color .3s ease;
}
.bc-tile:hover .bc-tile__go { color: var(--accent); }

/* ==========================================================================
   4. MATIERE - inverted split with a hairline spec list (family D)
   ========================================================================== */
.bc-matiere {
  padding-block: clamp(72px, 10vw, var(--xl));
  background: var(--surface);
}
.bc-matiere__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 88px);
  align-items: center;
}
.bc-matiere__art {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--bg);
  border-radius: var(--r-md);
  overflow: hidden;
}
.bc-matiere__art svg { width: 100%; height: 100%; }
.bc-matiere__copy > * + * { margin-top: var(--md); }

.bc-specs {
  list-style: none;
  margin: var(--md) 0 0;
  padding: 0;
  border-top: 1px solid var(--hairline);
}
.bc-specs li {
  display: grid;
  grid-template-columns: minmax(0, 13ch) minmax(0, 1fr);
  gap: var(--sm) var(--md);
  padding-block: 20px;
  border-bottom: 1px solid var(--hairline);
}
.bc-specs dt,
.bc-specs__k {
  font-size: .74rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--accent);
  padding-top: 3px;
}
.bc-specs__v {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  max-width: 52ch;
}

/* ==========================================================================
   5. CLOSER - quiet centered invitation (family E)
   ========================================================================== */
.bc-closer {
  padding-block: clamp(80px, 11vw, 168px);
  text-align: center;
  border-top: 1px solid var(--hairline);
}
.bc-closer__inner {
  max-width: 44ch;
  margin-inline: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--md);
}
.bc-closer .bc-lead { max-width: 40ch; }
.bc-closer__star {
  width: 20px;
  height: 20px;
  color: var(--accent);
}

/* ==========================================================================
   Motion - dial 0.3: gentle, transform/opacity only, degrades to visible
   ========================================================================== */
.bc .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
  will-change: opacity, transform;
}
.bc .reveal.is-in { opacity: 1; transform: none; }
/* If the script never runs, nothing stays hidden. */
.bc.no-js .reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .bc .reveal { opacity: 1; transform: none; transition: none; }
  .bc * { animation: none !important; transition-duration: .01ms !important; }
}

/* ==========================================================================
   Responsive - every multi-column layout declares its collapse
   ========================================================================== */
@media (max-width: 1080px) {
  .bc-bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bc-tile--tall { grid-row: span 1; min-height: 320px; }
  .bc-tile--wide { grid-column: span 2; }
}

@media (max-width: 900px) {
  .bc-hero__grid,
  .bc-manifesto__grid,
  .bc-matiere__grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .bc-hero__grid { gap: var(--lg); }
  .bc-hero__art {
    /* Mobile keeps the bleed, but to both edges, and goes back to a ratio. */
    height: auto;
    aspect-ratio: 16 / 13;
    margin-inline: calc(var(--gut) * -1);
    border-radius: 0;
    order: 2;
  }
  .bc-manifesto__inner,
  .bc-manifesto__text { max-width: none; }
  .bc-manifesto__grid { align-items: start; }
  .bc-matiere__art { aspect-ratio: 16 / 11; }
  .bc-specs li { grid-template-columns: minmax(0, 1fr); gap: 6px; }
  .bc-specs__k { padding-top: 0; }
}

@media (max-width: 560px) {
  .bc-bento { grid-template-columns: minmax(0, 1fr); }
  .bc-tile--wide { grid-column: span 1; }
  .bc-tile, .bc-tile--tall { min-height: 248px; }
  .bc-hero__cta { gap: var(--sm); }
  .bc-hero__cta .bc-btn { width: 100%; }
}
