/* ==========================================================================
   CadreXpert — pages.css
   Héros, sections d'accueil, configurateur, galerie, boutique, contact
   ========================================================================== */

/* ================================================================== HÉROS */
.hero {
  position: relative;
  min-height: clamp(620px, 100svh, 1000px);
  margin-top: calc(var(--header-h) * -1);
  padding-top: var(--header-h);
  display: grid;
  align-items: center;
  overflow: hidden;
  color: var(--paper);
  isolation: isolate;
}
.hero__bg {
  position: absolute;
  inset: -6%;
  z-index: -3;
}
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__veil {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(120% 90% at 18% 42%, rgba(22,18,15,.86) 0%, rgba(22,18,15,.55) 42%, rgba(22,18,15,.28) 72%),
    linear-gradient(to bottom, rgba(22,18,15,.6), rgba(22,18,15,.22) 38%, rgba(22,18,15,.82));
}
.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(4rem, 2rem + 8vw, 8rem);
  max-width: 940px;
}
.hero .eyebrow { color: var(--brass-2); margin-bottom: clamp(1rem, .8rem + .8vw, 1.8rem); }
.hero__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-900);
  line-height: .95;
  letter-spacing: -.035em;
  margin-bottom: clamp(1.2rem, 1rem + 1vw, 2rem);
}
.hero__title em {
  font-style: italic;
  font-variation-settings: "SOFT" 60, "WONK" 1;
  color: var(--brass-2);
}
.hero__sub {
  font-size: var(--fs-500);
  font-weight: 300;
  line-height: 1.5;
  color: rgba(247,242,233,.8);
  max-width: 54ch;
  margin-bottom: clamp(1.8rem, 1.4rem + 1.5vw, 3rem);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; }
.hero__cta .btn--ghost { color: var(--paper); }

.hero__meta {
  position: absolute;
  left: 0; right: 0;
  bottom: clamp(1.4rem, 1rem + 1.5vw, 2.6rem);
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}
.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: rgba(247,242,233,.72);
}
.hero__scroll i {
  display: block;
  width: 1px; height: 44px;
  background: linear-gradient(to bottom, var(--brass), transparent);
  position: relative;
  overflow: hidden;
}
.hero__scroll i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--brass-2);
  animation: scrollCue 2.2s var(--ease-in-out) infinite;
}
@keyframes scrollCue {
  0%   { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}
.hero__badges { display: flex; flex-wrap: wrap; gap: .5rem; justify-content: flex-end; }
.hero__badges .chip { background: rgba(247,242,233,.1); border-color: rgba(247,242,233,.22); color: rgba(247,242,233,.9); backdrop-filter: blur(6px); }
@media (max-width: 760px) { .hero__badges { display: none; } }

/* Coins de cadre décoratifs animés */
.hero__frame {
  position: absolute;
  inset: clamp(1rem, 3vw, 3rem);
  z-index: 0;
  pointer-events: none;
}
.hero__frame svg { width: 100%; height: 100%; }
.hero__frame path {
  fill: none;
  stroke: rgba(216,172,99,.55);
  stroke-width: 1;
  stroke-dasharray: 160;
  stroke-dashoffset: 160;
  animation: draw 1.6s var(--ease-out) .5s forwards;
}

/* ============================================================ Héros interne */
.pagehead {
  position: relative;
  padding-top: calc(var(--header-h) + clamp(3rem, 2rem + 5vw, 7rem));
  padding-bottom: clamp(2.5rem, 2rem + 3vw, 5rem);
  margin-top: calc(var(--header-h) * -1);
  background: var(--paper-2);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.pagehead--dark { background: var(--ink); color: var(--paper); border-bottom-color: rgba(247,242,233,.12); }
.pagehead--dark .breadcrumb, .pagehead--dark .pagehead__sub { color: rgba(247,242,233,.68); }
.pagehead__inner { position: relative; z-index: 2; max-width: 900px; }
.pagehead__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-800);
  line-height: .98;
  letter-spacing: -.03em;
  margin-block: .5rem .9rem;
}
.pagehead__title em { font-style: italic; color: var(--brass); }
.pagehead--dark .pagehead__title em { color: var(--brass-2); }
.pagehead__sub { font-size: var(--fs-500); font-weight: 300; color: var(--fg-soft); max-width: 58ch; }
.pagehead__deco {
  position: absolute;
  right: -4%;
  top: 50%;
  transform: translateY(-50%);
  width: min(42vw, 460px);
  aspect-ratio: 1;
  opacity: .16;
  z-index: 1;
  pointer-events: none;
  color: var(--brass);
  animation: spinSlow 90s linear infinite;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  align-items: center;
  font-size: var(--fs-100);
  color: var(--fg-soft);
  letter-spacing: .06em;
}
.breadcrumb li::after { content: "/"; margin-left: .5rem; opacity: .4; }
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a:hover { color: var(--brass-3); }

/* ============================================================== Intro split */
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 4vw, 6rem);
  align-items: center;
}
.split--wide { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); }
@media (max-width: 900px) { .split, .split--wide { grid-template-columns: 1fr; } }

.split__media { position: relative; }
.split__media img { width: 100%; aspect-ratio: 4/5; max-height: 76svh; object-fit: cover; }
.split__media--wide img { aspect-ratio: 4/3; max-height: 70svh; }
.split__badge {
  position: absolute;
  bottom: -28px;
  right: -22px;
  width: clamp(120px, 12vw, 168px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--brass);
  color: var(--paper);
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1rem;
  box-shadow: var(--shadow-lg);
}
.split__badge b { display: block; font-family: var(--font-display); font-size: clamp(1.6rem,1.2rem + 1.4vw,2.4rem); line-height: 1; font-weight: 400; }
.split__badge span { font-size: var(--fs-100); letter-spacing: .1em; text-transform: uppercase; opacity: .88; margin-top: .3rem; display: block; line-height: 1.3; }
@media (max-width: 620px) { .split__badge { right: 0; bottom: -20px; } }

/* Statistiques */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: clamp(1.2rem, 1rem + 1.5vw, 2.5rem);
  padding-top: clamp(1.8rem, 1.4rem + 1.5vw, 3rem);
  margin-top: clamp(1.8rem, 1.4rem + 1.5vw, 3rem);
  border-top: 1px solid var(--line);
}
.stat__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3.6rem);
  line-height: 1;
  letter-spacing: -.03em;
  color: var(--brass-3);
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: baseline;
  gap: .06em;
}
.theme-dark .stat__num { color: var(--brass-2); }
.stat__label { font-size: var(--fs-200); color: var(--fg-soft); margin-top: .45rem; line-height: 1.35; }

/* ======================================================= Procédé (sticky) */
/* Pas d'overflow ici : cela casserait le collage du panneau interne.
   Le rognage horizontal se fait sur .process__viewport. */
.process { background: var(--ink); color: var(--paper); height: 340vh; }
.process__viewport { overflow: hidden; }
.process__sticky { position: sticky; top: 0; height: 100svh; display: flex; flex-direction: column; justify-content: center; }
.process__head {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
  align-items: end;
  margin-bottom: clamp(2.5rem, 2rem + 2vw, 4rem);
}
.process__head p { max-width: 38ch; }
@media (max-width: 860px) { .process__head { grid-template-columns: 1fr; align-items: start; } }

.process__track { display: flex; gap: clamp(1rem, .8rem + 1.5vw, 2rem); will-change: transform; }
.process__card {
  position: relative;
  flex: none;
  width: clamp(290px, 30vw, 420px);
  background: var(--ink-2);
  border: 1px solid rgba(247,242,233,.13);
  border-radius: var(--r-lg);
  padding: clamp(1.6rem, 1.2rem + 1.4vw, 2.4rem);
  display: flex;
  flex-direction: column;
  min-height: clamp(340px, 46vh, 470px);
  overflow: hidden;
  transition: border-color .5s var(--ease), background-color .5s var(--ease), transform .6s var(--ease-out);
}
.process__card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), transparent 80%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .7s var(--ease-out);
}
.process__card:hover { border-color: rgba(184,134,59,.5); background: #241E18; transform: translateY(-5px); }
.process__card:hover::before { transform: scaleX(1); }
.process__step {
  font-family: var(--font-display);
  font-size: clamp(3rem, 2.2rem + 3vw, 5rem);
  font-weight: 300;
  line-height: 1;
  color: rgba(184,134,59,.32);
  transition: color .5s var(--ease);
}
.process__card:hover .process__step { color: var(--brass); }
.process__card h3 {
  font-family: var(--font-display);
  font-size: var(--fs-600);
  margin-block: 1.6rem .8rem;
  line-height: 1.1;
}
.process__card p { color: rgba(247,242,233,.64); font-size: var(--fs-300); }
.process__meta {
  margin-top: auto;
  padding-top: 1.4rem;
  display: flex;
  align-items: center;
  gap: .6rem;
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--brass-2);
  border-top: 1px solid rgba(247,242,233,.12);
}
.process__meta svg { width: 14px; height: 14px; flex: none; opacity: .8; }
.process__bar { height: 2px; background: rgba(247,242,233,.14); margin-top: clamp(2rem,1.5rem + 2vw,3rem); position: relative; }
.process__bar i { position: absolute; inset: 0; background: var(--brass); transform-origin: left; transform: scaleX(0); }
@media (max-width: 860px) {
  .process { height: auto; }
  .process__sticky { position: static; height: auto; padding-block: var(--section-y); }
  .process__track { flex-direction: column; transform: none !important; }
  .process__card { width: auto; min-height: 0; }
  .process__bar { display: none; }
}

/* ================================================================ Galerie */
.gal-filters {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-bottom: clamp(1.8rem, 1.4rem + 1.5vw, 3rem);
}
.gal-filter {
  padding: .6em 1.2em;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  font-size: var(--fs-200);
  font-weight: 500;
  color: var(--fg-soft);
  transition: all .35s var(--ease);
}
.gal-filter:hover { border-color: var(--paper-4); color: var(--fg); }
.gal-filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* Un mur de galerie, pas un tableur : les colonnes laissent chaque pièce
   garder son format et les hauteurs se décalent d'elles-mêmes. */
.gal-grid {
  column-count: 3;
  column-gap: clamp(.9rem, .7rem + 1vw, 1.6rem);
}
@media (max-width: 1000px) { .gal-grid { column-count: 2; } }
@media (max-width: 600px)  { .gal-grid { column-count: 1; } }

.gal-item {
  position: relative;
  display: block;
  break-inside: avoid;
  margin: 0 0 clamp(.9rem, .7rem + 1vw, 1.6rem);
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--paper-3);
  cursor: pointer;
  transition: opacity .5s var(--ease), transform .6s var(--ease-out), box-shadow .6s var(--ease);
}
.gal-item.is-hidden { display: none; }
.gal-item img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--ratio, 1/1);
  object-fit: cover;
  display: block;
  transition: transform 1.2s var(--ease-out), filter .6s var(--ease);
}
.gal-item:hover { box-shadow: var(--shadow-lg); }
.gal-item:hover img { transform: scale(1.05); }
.gal-item__ov {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(18,14,11,.9), rgba(18,14,11,.12) 62%);
  opacity: 0;
  transition: opacity .5s var(--ease);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: clamp(1rem, .8rem + .8vw, 1.6rem);
  color: var(--paper);
}
.gal-item:hover .gal-item__ov { opacity: 1; }
.gal-item__cat { font-size: var(--fs-100); letter-spacing: .16em; text-transform: uppercase; color: var(--brass-2); margin-bottom: .3rem; }
.gal-item__title { font-family: var(--font-display); font-size: var(--fs-500); line-height: 1.15; }
.gal-item__zoom {
  position: absolute;
  top: 1rem; right: 1rem;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(247,242,233,.92);
  color: var(--ink);
  display: grid; place-items: center;
  transform: scale(0) rotate(-45deg);
  transition: transform .5s var(--ease-out);
}
.gal-item:hover .gal-item__zoom { transform: none; }
.gal-item__zoom svg { width: 15px; height: 15px; }

/* ========================================================== CONFIGURATEUR */
.cfg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: clamp(1.5rem, 1.2rem + 2vw, 3.5rem);
  align-items: start;
}
@media (max-width: 1040px) { .cfg { grid-template-columns: 1fr; } }

.cfg__panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.cfg__step { border-bottom: 1px solid var(--line); }
.cfg__step:last-child { border-bottom: 0; }
.cfg__stephead {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: clamp(1rem, .85rem + .6vw, 1.5rem) clamp(1.1rem, .9rem + .8vw, 1.8rem);
  background: var(--bg-alt);
}
.cfg__stepnum {
  width: 28px; height: 28px;
  flex: none;
  border-radius: 50%;
  background: var(--brass);
  color: var(--paper);
  display: grid; place-items: center;
  font-size: var(--fs-100);
  font-weight: 700;
}
.cfg__steptitle { font-family: var(--font-display); font-size: var(--fs-500); line-height: 1.1; }
.cfg__stepbody { padding: clamp(1.2rem, 1rem + .8vw, 1.9rem); display: grid; gap: 1.4rem; }

.cfg__types { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .6rem; }
.cfg__type {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .55rem;
  padding: 1.1rem .7rem;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  cursor: pointer;
  text-align: center;
  background: rgba(255,255,255,.5);
  transition: all .35s var(--ease);
}
.cfg__type input { position: absolute; opacity: 0; pointer-events: none; }
.cfg__type svg { width: 26px; height: 26px; color: var(--brass-3); transition: transform .45s var(--ease-out); }
.cfg__type span { font-size: var(--fs-200); font-weight: 500; line-height: 1.2; }
.cfg__type:hover { border-color: var(--paper-4); transform: translateY(-2px); }
.cfg__type:hover svg { transform: scale(1.12) rotate(-4deg); }
.cfg__type:has(input:checked) { border-color: var(--brass); background: rgba(184,134,59,.09); box-shadow: 0 0 0 1px var(--brass); }

.cfg__dims { display: grid; grid-template-columns: 1fr 1fr auto; gap: .9rem; align-items: end; }
@media (max-width: 520px) { .cfg__dims { grid-template-columns: 1fr 1fr; } }
.cfg__unit { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; height: 46px; }
.cfg__unit label { position: relative; display: grid; place-items: center; padding: 0 .95rem; font-size: var(--fs-200); font-weight: 600; cursor: pointer; color: var(--fg-soft); transition: all .3s var(--ease); }
.cfg__unit input { position: absolute; opacity: 0; pointer-events: none; }
.cfg__unit label:has(input:checked) { background: var(--ink); color: var(--paper); }

.cfg__mouldings { display: grid; grid-template-columns: repeat(auto-fit, minmax(122px, 1fr)); gap: .6rem; }
.cfg__moulding {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: .55rem .55rem .7rem;
  cursor: pointer;
  background: rgba(255,255,255,.5);
  transition: all .35s var(--ease);
  text-align: center;
}
.cfg__moulding input { position: absolute; opacity: 0; pointer-events: none; }
/* La vignette est un petit cadre monté avec la photo de la moulure. */
.cfg__moulding i.ech {
  display: block;
  box-sizing: border-box;
  aspect-ratio: 5 / 4;      /* la proportion d'un cadre, pas d'une bande */
  height: auto;
  margin-bottom: .5rem;
  border-style: solid;
  border-width: 11px;
  border-image-slice: 100;
  border-image-repeat: repeat;
  border-image-width: 11px;
  background: var(--paper-2);
  box-shadow: 0 1px 2px rgba(22,18,15,.18), 0 4px 10px rgba(22,18,15,.12);
}
.cfg__moulding i {
  display: block;
  height: 46px;
  border-radius: var(--r-sm);
  margin-bottom: .5rem;
}
.cfg__moulding b { display: block; font-size: var(--fs-100); font-weight: 600; line-height: 1.2; }
.cfg__moulding em { display: block; font-style: normal; font-size: 10px; color: var(--fg-soft); margin-top: 2px; font-variant-numeric: tabular-nums; }
.cfg__moulding:hover { transform: translateY(-2px); border-color: var(--paper-4); }
.cfg__moulding:has(input:checked) { border-color: var(--brass); box-shadow: 0 0 0 1px var(--brass); background: rgba(184,134,59,.08); }

.cfg__seg { display: flex; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; width: fit-content; max-width: 100%; flex-wrap: wrap; }
.cfg__seg label { position: relative; padding: .62em 1.05em; font-size: var(--fs-200); font-weight: 500; cursor: pointer; color: var(--fg-soft); transition: all .3s var(--ease); }
.cfg__seg input { position: absolute; opacity: 0; pointer-events: none; }
.cfg__seg label:has(input:checked) { background: var(--ink); color: var(--paper); }

/* Aperçu */
.cfg__preview {
  position: sticky;
  top: calc(var(--header-h) + 1.2rem);
  display: grid;
  gap: 1rem;
}
.cfg__stage {
  background: linear-gradient(170deg, var(--paper-2), var(--paper-3));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem, 1.2rem + 2vw, 2.8rem);
  display: grid;
  place-items: center;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}
.cfg__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 50% at 50% 30%, rgba(255,255,255,.6), transparent 70%);
  pointer-events: none;
}
.cfg__wall { position: relative; z-index: 1; display: grid; place-items: center; width: 100%; }
.cfg__frame {
  position: relative;
  box-sizing: border-box;
  transition: width .5s var(--ease-out), height .5s var(--ease-out),
              padding .45s var(--ease-out), background .4s var(--ease), box-shadow .4s var(--ease);
  box-shadow: var(--shadow-frame);
  background: var(--ink);
  max-width: 100%;
}
.cfg__mat {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  background: var(--paper);
  transition: padding .45s var(--ease-out), background-color .4s var(--ease);
}
.cfg__art {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(22,18,15,.18), inset 0 0 22px rgba(22,18,15,.12);
  background: linear-gradient(135deg, #9fb0a6, #c9b79b 45%, #8a7a68);
}
.cfg__art img { width: 100%; height: 100%; object-fit: cover; }
.cfg__glass {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
  background: linear-gradient(118deg, rgba(255,255,255,.34) 0%, rgba(255,255,255,0) 32%, rgba(255,255,255,0) 62%, rgba(255,255,255,.16) 100%);
  opacity: 1;
  transition: opacity .4s var(--ease);
}
.cfg__glass--none { opacity: 0; }
.cfg__glass--anti { opacity: .22; }
.cfg__size {
  position: absolute;
  bottom: .9rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: var(--fs-100);
  font-weight: 600;
  letter-spacing: .1em;
  color: var(--fg-soft);
  background: rgba(255,255,255,.75);
  padding: .35em .8em;
  border-radius: var(--r-pill);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  z-index: 2;
}

.cfg__quote {
  background: var(--ink);
  color: var(--paper);
  border-radius: var(--r-lg);
  padding: clamp(1.3rem, 1.1rem + .8vw, 1.9rem);
}
.cfg__total { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: .3rem; }
.cfg__total b {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2rem, 1.5rem + 2vw, 3rem);
  line-height: 1;
  color: var(--brass-2);
  font-variant-numeric: tabular-nums;
}
.cfg__totlabel { font-size: var(--fs-100); letter-spacing: .16em; text-transform: uppercase; color: rgba(247,242,233,.6); }
.cfg__break { margin-top: 1.1rem; border-top: 1px solid rgba(247,242,233,.14); padding-top: .9rem; display: grid; gap: .38rem; }
.cfg__line { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--fs-200); color: rgba(247,242,233,.66); font-variant-numeric: tabular-nums; }
.cfg__line span:last-child { white-space: nowrap; }
.cfg__line--tax { color: rgba(247,242,233,.45); font-size: var(--fs-100); }
.cfg__note { font-size: var(--fs-100); color: rgba(247,242,233,.5); margin-top: .9rem; line-height: 1.5; }
.cfg__actions { display: grid; gap: .6rem; margin-top: 1.2rem; }

.cfg__summary { display: grid; gap: .4rem; }
.cfg__summary dt { font-size: var(--fs-100); color: var(--fg-soft); letter-spacing: .08em; text-transform: uppercase; }
.cfg__summary dd { margin: 0 0 .5rem; font-size: var(--fs-300); font-weight: 500; }

/* ================================================================ Boutique */
.shop-layout { display: grid; grid-template-columns: 250px minmax(0,1fr); gap: clamp(1.5rem,1.2rem + 2vw,3rem); align-items: start; }
@media (max-width: 940px) { .shop-layout { grid-template-columns: 1fr; } }
.shop-aside { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 1.8rem; }
@media (max-width: 940px) { .shop-aside { position: static; } }
.filter-group h4 { font-size: var(--fs-100); font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: .9rem; }
.filter-list { display: grid; gap: .25rem; }
.filter-list button {
  display: flex;
  justify-content: space-between;
  gap: .8rem;
  width: 100%;
  text-align: left;
  padding: .5rem .7rem;
  border-radius: var(--r-sm);
  font-size: var(--fs-300);
  color: var(--fg-soft);
  transition: all .3s var(--ease);
}
.filter-list button:hover { background: var(--paper-2); color: var(--fg); }
.filter-list button.is-active { background: var(--ink); color: var(--paper); }
.filter-list button i { font-style: normal; font-size: var(--fs-100); opacity: .6; font-variant-numeric: tabular-nums; }

.shop-bar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; margin-bottom: 1.6rem; }
.shop-count { font-size: var(--fs-200); color: var(--fg-soft); }

.prod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: clamp(1rem, .8rem + 1vw, 1.8rem); }
.prod {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease), border-color .4s;
}
.prod:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: var(--paper-4); }
.prod__media { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--paper-2); }
.prod__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease-out); }
.prod:hover .prod__media img { transform: scale(1.06); }
.prod__tag {
  position: absolute;
  top: .8rem; left: .8rem;
  padding: .3em .7em;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--paper);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.prod__tag--promo { background: var(--clay); }
.prod__body { padding: 1rem 1.1rem 1.2rem; display: flex; flex-direction: column; flex: 1; }
.prod__cat { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--brass-3); margin-bottom: .35rem; }
.prod__name { font-size: var(--fs-300); font-weight: 500; line-height: 1.32; margin-bottom: .3rem; }
.prod__desc { font-size: var(--fs-100); color: var(--fg-soft); line-height: 1.45; margin-bottom: .9rem; }
.prod__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .7rem; }
.prod__price { font-size: var(--fs-400); font-weight: 600; font-variant-numeric: tabular-nums; }
.prod__price s { color: var(--muted-2); font-weight: 400; font-size: var(--fs-200); margin-right: .35rem; }
.prod__add {
  width: 40px; height: 40px;
  flex: none;
  border-radius: 50%;
  background: var(--ink);
  color: var(--paper);
  display: grid; place-items: center;
  transition: background-color .35s var(--ease), transform .35s var(--ease-out);
}
.prod__add:hover { background: var(--brass); transform: rotate(90deg); }
.prod__add svg { width: 16px; height: 16px; }

/* =============================================================== Ateliers */
.wk {
  display: grid;
  grid-template-columns: 130px minmax(0,1fr) auto;
  gap: clamp(1rem,.8rem + 1.2vw,2rem);
  align-items: center;
  padding: clamp(1.2rem,1rem + 1vw,1.9rem) 0;
  border-bottom: 1px solid var(--line);
  transition: background-color .4s var(--ease);
}
.wk:hover { background: rgba(184,134,59,.045); }
.wk:first-child { border-top: 1px solid var(--line); }
@media (max-width: 760px) { .wk { grid-template-columns: 1fr; align-items: start; } }
.wk__date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 88px; height: 88px;
  border-radius: var(--r-md);
  background: var(--ink);
  color: var(--paper);
  flex: none;
}
.wk__date b { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; font-weight: 400; }
.wk__date span { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; margin-top: .3rem; color: var(--brass-2); }
.wk__title { font-family: var(--font-display); font-size: var(--fs-500); line-height: 1.15; margin-bottom: .4rem; }
.wk__meta { display: flex; flex-wrap: wrap; gap: .5rem 1.2rem; font-size: var(--fs-200); color: var(--fg-soft); }
.wk__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.wk__meta svg { width: 13px; height: 13px; opacity: .6; }
.wk__side { display: flex; flex-direction: column; align-items: flex-end; gap: .6rem; }
@media (max-width: 760px) { .wk__side { align-items: flex-start; flex-direction: row; align-items: center; } }
.wk__price { font-size: var(--fs-500); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.wk__spots { font-size: var(--fs-100); color: var(--fg-soft); }
.wk__spots.is-low { color: var(--clay); font-weight: 600; }

/* ================================================================ Contact */
.contact-grid { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,.85fr); gap: clamp(2rem,1.5rem + 3vw,4.5rem); align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.info-block { display: flex; gap: 1rem; padding-block: 1.15rem; border-bottom: 1px solid var(--line); }
.info-block:last-child { border-bottom: 0; }
.info-block__icon {
  width: 42px; height: 42px;
  flex: none;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  color: var(--brass-3);
  transition: background-color .4s var(--ease), color .4s, border-color .4s;
}
.info-block:hover .info-block__icon { background: var(--brass); border-color: var(--brass); color: var(--paper); }
.info-block__icon svg { width: 17px; height: 17px; }
.info-block h4 { font-size: var(--fs-100); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--fg-soft); margin-bottom: .3rem; }
.info-block p, .info-block a { font-size: var(--fs-400); line-height: 1.5; }
.info-block a:hover { color: var(--brass-3); }

.hours { display: grid; gap: .1rem; }
.hours__row { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line-soft); font-size: var(--fs-300); }
.hours__row.is-today { color: var(--brass-3); font-weight: 600; }
.hours__row span:last-child { font-variant-numeric: tabular-nums; }

.map-embed {
  width: 100%;
  aspect-ratio: 16/10;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--paper-2);
  position: relative;
}
.map-embed iframe { width: 100%; height: 100%; border: 0; filter: grayscale(.35) sepia(.12) contrast(1.02); }

/* ============================================================ Témoignages */
.testis { position: relative; overflow: hidden; }
.testis__quote {
  position: absolute;
  bottom: -.32em;
  right: 3%;
  font-family: var(--font-display);
  font-size: clamp(14rem, 30vw, 30rem);
  line-height: .8;
  color: rgba(184,134,59,.06);
  pointer-events: none;
  user-select: none;
  z-index: 0;
}
@media (max-width: 700px) { .testis__quote { display: none; } }
.testis__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 400px) minmax(0, 1fr);
  gap: clamp(2rem, 1.5rem + 3vw, 4.5rem);
  align-items: start;
}
@media (max-width: 980px) { .testis__grid { grid-template-columns: 1fr; } }

.testis__intro .h2 { font-size: var(--fs-600); margin-block: 1.1rem 1.8rem; text-wrap: balance; }

.rating {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.3rem 0;
  border-block: 1px solid var(--line);
  margin-bottom: 1.8rem;
}
.rating__score {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  line-height: 1;
  color: var(--brass-2);
  font-variant-numeric: tabular-nums;
}
.rating__score span { font-size: .4em; color: var(--fg-soft); margin-left: .1em; }
.rating__stars { display: flex; gap: 3px; color: var(--brass); margin-bottom: .35rem; }
.rating__stars svg { width: 15px; height: 15px; }
.rating p { font-size: var(--fs-100); color: var(--fg-soft); line-height: 1.45; }

/* Piste défilante : elle déborde volontairement vers la droite */
.testis__rail-wrap { position: relative; min-width: 0; }
.testi-track {
  display: flex;
  gap: clamp(1rem,.8rem + 1vw,1.6rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 1.5rem;
  scrollbar-width: none;
  margin-right: calc(var(--gutter) * -1);
  padding-right: var(--gutter);
}
.testi-track::-webkit-scrollbar { display: none; }
.testi {
  position: relative;
  flex: none;
  width: min(400px, 82vw);
  scroll-snap-align: start;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(1.5rem,1.2rem + 1.2vw,2.2rem);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: transform .55s var(--ease-out), border-color .45s var(--ease), background-color .45s var(--ease);
}
.testi::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--brass), transparent 75%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .6s var(--ease-out);
}
.testi:hover { transform: translateY(-6px); border-color: rgba(184,134,59,.45); }
.testi:hover::before { transform: scaleX(1); }
.theme-dark .testi { background: rgba(247,242,233,.04); }
.theme-dark .testi:hover { background: rgba(247,242,233,.07); }
.testi__stars { display: flex; gap: 3px; color: var(--brass); margin-bottom: 1.1rem; }
.testi__stars svg { width: 15px; height: 15px; }
.testi__quote {
  font-family: var(--font-display);
  font-size: var(--fs-500);
  font-weight: 300;
  line-height: 1.42;
  letter-spacing: -.01em;
  margin-bottom: 1.6rem;
}
.testi__who { margin-top: auto; display: flex; align-items: center; gap: .8rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.testi__av {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: linear-gradient(150deg, var(--brass-2), var(--brass-3));
  color: var(--ink);
  display: grid; place-items: center;
  font-weight: 700;
  font-size: var(--fs-300);
  flex: none;
}
.testi__name { display: block; font-size: var(--fs-300); font-weight: 600; line-height: 1.2; }
.testi__loc { display: block; font-size: var(--fs-100); color: var(--fg-soft); }

/* Rail de progression sous la piste */
.testis__rail {
  height: 2px;
  background: var(--line);
  position: relative;
  margin-right: calc(var(--gutter) * -1);
  overflow: hidden;
}
.testis__rail i {
  position: absolute;
  inset: 0;
  width: 30%;
  background: var(--brass);
  transform: translateX(0);
  transition: transform .18s linear, width .3s var(--ease);
}

.carousel-nav { display: flex; gap: .5rem; }
.carousel-nav button {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  transition: all .35s var(--ease);
}
.carousel-nav button:hover { background: var(--brass); border-color: var(--brass); color: var(--ink); transform: translateY(-2px); }
.carousel-nav svg { width: 16px; height: 16px; }

/* =============================================================== CTA final */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--ink);
  color: var(--paper);
  text-align: center;
  isolation: isolate;
}
.cta-band__bg { position: absolute; inset: 0; z-index: -2; opacity: .26; }
.cta-band__bg img { width: 100%; height: 100%; object-fit: cover; }
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(70% 90% at 50% 50%, rgba(22,18,15,.55), rgba(22,18,15,.95));
}
.cta-band__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-800);
  line-height: 1;
  letter-spacing: -.03em;
  margin-bottom: 1.2rem;
}
.cta-band__title em { font-style: italic; color: var(--brass-2); }

/* ============================================================== À propos */
.timeline { position: relative; padding-left: 2.4rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: 7px; top: 6px; bottom: 6px;
  width: 1px;
  background: var(--line);
}
.timeline__item { position: relative; padding-bottom: 2.4rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__item::before {
  content: "";
  position: absolute;
  left: -2.4rem; top: .45em;
  width: 15px; height: 15px;
  border-radius: 50%;
  border: 1px solid var(--brass);
  background: var(--bg);
  transition: background-color .4s var(--ease);
}
.timeline__item:hover::before { background: var(--brass); }
.timeline__year { font-size: var(--fs-100); font-weight: 700; letter-spacing: .16em; color: var(--brass-3); margin-bottom: .3rem; }
.timeline__title { font-family: var(--font-display); font-size: var(--fs-500); margin-bottom: .4rem; line-height: 1.2; }

.values { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px,1fr)); gap: clamp(1.2rem,1rem + 1.5vw,2.5rem); }
.value__icon { width: 46px; height: 46px; color: var(--brass); margin-bottom: 1rem; }
.value h3 { font-family: var(--font-display); font-size: var(--fs-500); margin-bottom: .5rem; line-height: 1.15; }

/* =============================================================== Merci */
.thanks { min-height: 72svh; display: grid; place-items: center; text-align: center; }
.thanks__mark {
  width: 84px; height: 84px;
  border-radius: 50%;
  background: var(--brass);
  color: var(--paper);
  display: grid; place-items: center;
  margin: 0 auto 1.8rem;
  animation: pop .7s var(--ease-out) both;
}
.thanks__mark svg { width: 34px; height: 34px; }
@keyframes pop {
  0%   { transform: scale(0) rotate(-25deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg); }
  100% { transform: none; opacity: 1; }
}

/* ============================================================ Responsive */
@media (max-width: 900px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
  .hero__meta { justify-content: center; }
}

/* ============================================ Héros : l'objet au premier plan */
.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr);
  align-items: center;
  gap: clamp(1.5rem, 1rem + 3vw, 4rem);
}
.hero__grid > .hero__inner { max-width: 720px; }
.hero__objet { display: grid; place-items: center; will-change: transform; }
.hero__objet-inner { position: relative; }
/* L'ombre portée du cadre sur le mur, plutôt qu'un simple flou sous la boîte */
.hero__objet-inner::after {
  content: "";
  position: absolute;
  left: 6%; right: -8%;
  bottom: -5%;
  height: 22%;
  background: radial-gradient(60% 100% at 50% 0%, rgba(8,6,5,.55), transparent 72%);
  filter: blur(18px);
  z-index: -1;
}
.hero__objet .pframe {
  box-shadow: 0 3px 4px rgba(8,6,5,.34), 0 34px 70px rgba(8,6,5,.5);
  transform: rotate(-1.1deg);
}
@media (max-width: 1024px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__objet { display: none; }
}

/* Le héros est désormais en deux colonnes : le titre doit tenir dans la sienne
   sans écraser l'appel à l'action contre le bas de l'écran. */
@media (min-width: 1025px) {
  .hero__grid .hero__title { font-size: clamp(3rem, 1.4rem + 4.3vw, 5.6rem); }
  .hero__grid .hero__sub { max-width: 46ch; }
}

/* Après un en-tête de page, la section suivante n'a pas besoin de tout son
   rembourrage : le titre vient déjà de respirer juste au-dessus. */
.pagehead + .section,
.pagehead + .section-sm { padding-top: clamp(2.5rem, 1.8rem + 3vw, 5rem); }

/* Quand une colonne est bien plus haute que l'autre (une frise, une longue
   liste), centrer la courte la laisse flotter dans le vide. On la cale en haut
   et on la fait suivre le défilement. */
.split--suivi { align-items: start; }
.split--suivi > :first-child {
  position: sticky;
  top: calc(var(--header-h) + clamp(1.5rem, 1rem + 2vw, 3rem));
}
@media (max-width: 900px) {
  .split--suivi > :first-child { position: static; }
}
