/* Maison Énife — Konzept 3: "Chapitre I — Le Commencement". The gold seal carries the page. */

.k3-eyebrow { color: var(--gold-soft); }

/* --- hero: brand, seal, chapter, one field; finished at first sight --- */
.k3-hero {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  padding: calc(var(--frame-inset) + 4.5rem) var(--gutter) calc(var(--frame-inset) + 3rem);
  background: radial-gradient(ellipse 45% 40% at 50% 40%, rgba(88,60,24,0.32), transparent 70%), var(--bg);
}
.k3-hero__brand { font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.42em; text-transform: uppercase; color: var(--gold); }
.k3-seal {
  position: relative;
  width: min(62vw, 46vh, 400px);
  aspect-ratio: 1;
  margin: clamp(1.2rem, 3vh, 2.2rem) auto clamp(1rem, 2.4vh, 1.8rem);
}
.k3-seal img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.8)); }
/* a slow sweep of light across the gold, confined to the seal */
.k3-seal::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255,240,205,0.38) 50%, transparent 65%) no-repeat;
  background-size: 250% 100%;
  -webkit-mask: url("assets/seal.webp") center / contain no-repeat;
  mask: url("assets/seal.webp") center / contain no-repeat;
  mix-blend-mode: soft-light;
  animation: seal-sheen 7s ease-in-out 1.2s infinite;
}
@keyframes seal-sheen { 0% { background-position: 120% 0; } 45%, 100% { background-position: -30% 0; } }
.k3-hero__chapter { font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.34em; text-transform: uppercase; color: var(--gold-soft); }
.k3-hero__title { margin-top: 0.4rem; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(2.6rem, 6.5vw, 4.6rem); line-height: 1; color: var(--ivory); }
.k3-hero__line { margin: 0.9rem auto 1.8rem; max-width: 32ch; font-style: italic; font-size: 1.12rem; color: var(--ivory-dim); text-wrap: balance; }
.k3-hero .heroform { opacity: 1; animation: none; width: min(30rem, 100%); }

/* --- the first chapter: one image, three lines, one paragraph --- */
.k3-story {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(5rem, 12vw, 9rem) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(2rem, 6vw, 6rem);
  align-items: center;
}
.k3-story__media { aspect-ratio: 4 / 5; max-width: 100%; overflow: hidden; border: 1px solid var(--gold-line); box-shadow: 0 40px 80px rgba(0,0,0,0.65); }
.k3-story__media img { width: 100%; height: 100%; object-fit: cover; }
.k3-story__body { min-width: 0; }
.k3-story__lines { margin: 1.2rem 0 1.4rem; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 3.6rem); line-height: 1.08; color: var(--ivory); }
.k3-story__lines span { display: block; }
.k3-story__lines span:last-child { color: var(--gold); }
.k3-story__text { max-width: 40ch; margin-bottom: 2rem; font-size: 1.15rem; line-height: 1.6; color: var(--ivory-dim); }
@media (max-width: 760px) { .k3-story { grid-template-columns: 1fr; } }

/* --- the chapters: I open and lit, II and III sealed in the dark --- */
.k3-chapters { padding: clamp(5rem, 12vw, 9rem) var(--gutter); text-align: center; border-top: 1px solid var(--gold-line); background: var(--bg-2); }
.k3-chapters__title { margin-top: 1rem; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(2rem, 4.5vw, 3.2rem); color: var(--ivory); }
.k3-chapters__list { list-style: none; max-width: 980px; margin: clamp(2.6rem, 6vw, 4.5rem) auto 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 4vw, 3rem); }
.k3-chapter, .k3-chapter > a, .k3-chapter > div { display: flex; flex-direction: column; align-items: center; gap: 0.45rem; }
.k3-chapter__seal { display: block; width: min(100%, 220px); aspect-ratio: 1; margin-bottom: 0.8rem; }
.k3-chapter__seal img { width: 100%; height: 100%; object-fit: contain; }
.k3-chapter:not(.is-open) .k3-chapter__seal img { filter: grayscale(1) brightness(0.32) contrast(1.1); }
.k3-chapter.is-open .k3-chapter__seal img { filter: drop-shadow(0 0 40px rgba(201,169,106,0.3)); transition: transform 0.6s var(--ease-out); }
.k3-chapter.is-open > :hover .k3-chapter__seal img { transform: scale(1.04) rotate(-3deg); }
.k3-chapter__no { font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold-soft); }
.k3-chapter__name { font-family: var(--font-display); font-style: italic; font-size: clamp(1.25rem, 2.4vw, 1.6rem); color: var(--ivory); }
.k3-chapter:not(.is-open) .k3-chapter__name { color: var(--ivory-mute); }
.k3-chapter__state { font-size: 0.95rem; font-style: italic; color: var(--gold); }
@media (max-width: 560px) {
  .k3-chapters__list { grid-template-columns: 1fr 1fr; }
  .k3-chapter.is-open { grid-column: 1 / -1; }
  .k3-chapter.is-open .k3-chapter__seal { width: 200px; }
  .k3-chapter:not(.is-open) .k3-chapter__seal { width: 120px; }
}

/* --- shop page --- */
.product {
  max-width: 1180px;
  margin: 0 auto;
  padding: calc(var(--frame-inset) + 6rem) var(--gutter) clamp(5rem, 10vw, 8rem);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 6vw, 5.5rem);
  align-items: start;
}
.product__gallery { position: sticky; top: calc(var(--frame-inset) + 4rem); min-width: 0; }
.product__main { aspect-ratio: 4 / 5; display: grid; place-items: center; border: 1px solid var(--gold-line); background: radial-gradient(ellipse 60% 50% at 50% 45%, rgba(88,60,24,0.35), transparent 70%), var(--bg-2); }
.product__main img { width: 74%; height: auto; filter: drop-shadow(0 30px 60px rgba(0,0,0,0.75)); }
.product__thumbs { list-style: none; margin-top: 0.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.8rem; }
.product__thumbs li { aspect-ratio: 1; display: grid; place-items: center; font-size: 0.85rem; font-style: italic; color: var(--ivory-mute); }
.product__info { min-width: 0; }
.product__crumbs { font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ivory-mute); margin-bottom: 2rem; }
.product__crumbs a:hover { color: var(--gold); }
.product__title { margin-top: 0.5rem; font-family: var(--font-display); font-style: italic; font-weight: 300; font-size: clamp(2.6rem, 5vw, 4rem); line-height: 1; color: var(--ivory); }
.product__type { margin-top: 0.9rem; font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.product__price { margin-top: 1.2rem; font-size: 1.7rem; color: var(--ivory); font-variant-numeric: tabular-nums; }
.product__desc { margin-top: 1.6rem; max-width: 46ch; font-size: 1.12rem; line-height: 1.6; color: var(--ivory-dim); }
.product__notes { margin-top: 1.8rem; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--gold-line); border: 1px solid var(--gold-line); }
.product__notes div { background: var(--bg); padding: 0.9rem 1rem; }
.product__notes dt { font-family: var(--font-label); font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); }
.product__notes dd { margin-top: 0.3rem; font-style: italic; color: var(--ivory-mute); }
.product__sizes { margin-top: 1.8rem; border: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.product__sizes legend { width: 100%; margin-bottom: 0.7rem; font-family: var(--font-label); font-size: 0.66rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--gold-soft); }
.product__sizes label { cursor: pointer; }
.product__sizes input { position: absolute; opacity: 0; pointer-events: none; }
.product__sizes label span { display: inline-block; padding: 0.7em 1.3em; border: 1px solid var(--gold-line); font-family: var(--font-label); font-size: 0.72rem; letter-spacing: 0.16em; color: var(--ivory-dim); transition: border-color 0.3s, color 0.3s; }
.product__sizes input:checked + span { border-color: var(--gold); color: var(--gold); }
.product__sizes input:focus-visible + span { outline: 1px solid var(--emerald-hi); outline-offset: 3px; }
.product__buy { margin-top: 1.6rem; display: flex; gap: 0.8rem; align-items: stretch; }
.qty { display: flex; align-items: center; border: 1px solid var(--gold-line); }
.qty__btn { width: 2.8rem; height: 100%; min-height: 3rem; background: none; border: 0; color: var(--gold); font-size: 1.2rem; cursor: pointer; }
.qty__val { min-width: 2rem; text-align: center; font-variant-numeric: tabular-nums; color: var(--ivory); }
.product__cart { flex: 1; }
.product__cart[disabled] { opacity: 0.55; cursor: not-allowed; }
.product__notify { margin-top: 1.8rem; padding-top: 1.6rem; border-top: 1px solid var(--gold-line); }
.product__notify p { margin-bottom: 1rem; color: var(--ivory-dim); }
.product__notify .heroform { opacity: 1; animation: none; justify-content: flex-start; margin: 0; }
.product__trust { list-style: none; margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; font-family: var(--font-label); font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold-soft); }
.product__trust li::before { content: "◆ "; color: var(--emerald-hi); font-size: 0.6em; vertical-align: 0.2em; }
.product__more { margin-top: 2.2rem; border-top: 1px solid var(--gold-line); }
.product__more details { border-bottom: 1px solid var(--gold-line); }
.product__more summary { cursor: pointer; list-style: none; padding: 1.1rem 0; display: flex; justify-content: space-between; font-family: var(--font-label); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--ivory); }
.product__more summary::-webkit-details-marker { display: none; }
.product__more summary::after { content: "+"; color: var(--gold); }
.product__more details[open] summary::after { content: "−"; }
.product__more details p { padding-bottom: 1.1rem; color: var(--ivory-dim); }
@media (max-width: 860px) {
  .product { grid-template-columns: 1fr; padding-top: calc(var(--frame-inset) + 4.5rem); }
  .product__gallery { position: static; }
}

/* placeholders: dashed and labelled, so nobody mistakes them for final content */
.ph { outline: 1px dashed rgba(201,169,106,0.55); outline-offset: 4px; }
.ph-tag { display: inline-block; margin-left: 0.6rem; padding: 0.15em 0.6em; border: 1px dashed rgba(201,169,106,0.6); font-family: var(--font-label); font-size: 0.54rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold-soft); vertical-align: middle; }

@media (prefers-reduced-motion: reduce) { .k3-seal::after { animation: none; display: none; } }
