/* =========================================================================
   Boucherie Migross — Variante 5 « Héritage oriental doré »
   Émeraude profond · or/laiton · terracotta · ivoire
   ========================================================================= */

:root {
  --emerald-950: #071d17;
  --emerald-900: #0b2a22;
  --emerald-800: #0f3a2f;
  --emerald-700: #155041;
  --emerald-600: #1d6a55;
  --gold-200: #f3dc9c;
  --gold-300: #e6c77a;
  --gold: #c9a14a;
  --brass: #a8812f;
  --brass-700: #7e5f1f;
  --terracotta: #b4532e;
  --terracotta-600: #9a4223;
  --ivory: #f6efe2;
  --ivory-2: #efe4cf;
  --ivory-3: #e6d7bb;
  --ink: #1b1611;
  --ink-soft: #4a4034;
  --line: rgba(168, 129, 47, .35);

  --ff-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --ff-sans: "Jost", "Futura", "Century Gothic", system-ui, -apple-system, "Segoe UI", sans-serif;

  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 14px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;

  --gold-grad: linear-gradient(110deg, #8f6a22 0%, #c9a14a 22%, #f6e2a6 38%, #c9a14a 52%, #8f6a22 70%, #e6c77a 86%, #a8812f 100%);

  --zellige: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'%3E%3Cg fill='none' stroke='%23c9a14a' stroke-width='1'%3E%3Cpath d='M39 39h42v42H39z'/%3E%3Cpath d='M60 30l30 30-30 30-30-30z'/%3E%3Ccircle cx='60' cy='60' r='9'/%3E%3Cpath d='M60 0v30M60 90v30M0 60h30M90 60h30'/%3E%3Cpath d='M0 30L30 0M90 0l30 30M120 90L90 120M30 120L0 90'/%3E%3Cpath d='M0 0l18 18M120 0l-18 18M120 120l-18-18M0 120l18-18'/%3E%3C/g%3E%3C/svg%3E");
  --arch-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 100V38C0 16 22 4 50 0c28 4 50 16 50 38v62z'/%3E%3C/svg%3E");
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html:not(.has-lenis) { scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--ff-sans);
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
svg { overflow: visible; }
::selection { background: var(--gold); color: var(--emerald-950); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 1000; background: var(--gold); color: var(--emerald-950); padding: 10px 16px; border-radius: 8px; font-weight: 600; text-decoration: none; transition: top .2s; }
.skip:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.zellige { background-image: var(--zellige); background-size: 120px 120px; }

/* ---------- Typo ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: .7em;
  font-size: .78rem; letter-spacing: .24em; text-transform: uppercase; font-weight: 500;
  color: var(--terracotta);
}
.eyebrow--light { color: var(--gold-300); }
.eyebrow__star {
  width: 12px; height: 12px; background: currentColor; flex: none;
  clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%);
}
.section-title {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(2.2rem, 1.3rem + 3.6vw, 4.4rem);
  line-height: 1.02; letter-spacing: -.01em; color: var(--emerald-900);
  margin-top: .35em; text-wrap: balance;
}
.section-title em { font-style: italic; color: var(--brass); }
.section-title--light { color: var(--ivory); }
.section-title--light em { color: var(--gold-300); }
.section-lead { color: var(--ink-soft); max-width: 46ch; font-size: 1.05rem; margin-top: 1.1rem; }

.shimmer {
  background: var(--gold-grad); background-size: 250% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: -150% 0; } }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent;
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px; padding: 0 1.6em; border-radius: 999px;
  font-size: .92rem; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: transform .5s var(--ease), color .3s, border-color .3s, background-color .3s, box-shadow .4s;
}
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--sm { min-height: 42px; padding: 0 1.2em; font-size: .78rem; }
.btn--gold {
  color: var(--emerald-950);
  background: var(--gold-grad); background-size: 220% 100%; background-position: 0 0;
  box-shadow: 0 10px 30px -12px rgba(201, 161, 74, .7), inset 0 1px 0 rgba(255, 255, 255, .45);
  transition: background-position .9s var(--ease), transform .5s var(--ease), box-shadow .4s;
}
.btn--gold:hover { background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 16px 40px -14px rgba(201, 161, 74, .9), inset 0 1px 0 rgba(255,255,255,.5); }
.btn--ghost { color: var(--ivory); border-color: rgba(230, 199, 122, .55); }
.btn--ghost:hover { border-color: var(--gold-300); background: rgba(201, 161, 74, .12); transform: translateY(-2px); }
.btn--ghost-dark { color: var(--emerald-900); border-color: var(--line); }
.btn--ghost-dark:hover { background: rgba(201, 161, 74, .14); border-color: var(--brass); }

/* ---------- Loader ---------- */
.loader {
  position: fixed; inset: 0; z-index: 900; display: grid; place-content: center; justify-items: center; gap: 18px;
  background: var(--emerald-950); color: var(--gold);
  pointer-events: none;
}
.js .loader { pointer-events: auto; }
.loader__mark { width: 110px; height: 110px; fill: none; stroke: url(#goldGrad); stroke-width: 1.4; }
.loader__word { font-family: var(--ff-display); font-size: 1.6rem; letter-spacing: .5em; text-transform: uppercase; padding-left: .5em; color: var(--gold-300); }
html:not(.js) .loader, .loader.is-done { display: none; }

/* ---------- Header ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--header-h);
  color: var(--ivory);
  transition: transform .6s var(--ease), background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
  background: rgba(7, 29, 23, .82);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(201, 161, 74, .25);
}
.site-header.is-hidden { transform: translateY(-100%); }
.site-header__inner {
  height: 100%; max-width: 1400px; margin-inline: auto; padding-inline: var(--gutter);
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand__mark { width: 40px; height: 40px; fill: none; stroke: var(--gold); stroke-width: 3; transition: transform 1.2s var(--ease); }
.brand:hover .brand__mark { transform: rotate(135deg); }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name { font-family: var(--ff-display); font-size: 1.7rem; font-weight: 600; letter-spacing: .04em; }
.brand__sub { font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-300); margin-top: 4px; }

.nav__list { display: flex; gap: clamp(14px, 2vw, 30px); }
.nav__list a {
  position: relative; text-decoration: none; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; padding: 6px 0;
}
.nav__list a::after {
  content: ""; position: absolute; left: 50%; bottom: 0; width: 6px; height: 6px; background: var(--gold);
  transform: translate(-50%, 8px) rotate(45deg) scale(0); transition: transform .4s var(--ease);
}
.nav__list a:hover::after, .nav__list a.is-active::after { transform: translate(-50%, 8px) rotate(45deg) scale(1); }
.nav__phone { display: none; }

.header-actions { display: flex; align-items: center; gap: 14px; }
.lang {
  position: relative; display: inline-flex; padding: 3px; border-radius: 999px;
  border: 1px solid rgba(230, 199, 122, .45);
}
.lang__btn {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  width: 40px; height: 32px; border-radius: 999px; font-size: .76rem; font-weight: 600; letter-spacing: .12em;
  color: var(--ivory); transition: color .35s;
}
.lang__btn.is-active { color: var(--emerald-950); }
.lang__thumb {
  position: absolute; top: 3px; left: 3px; width: 40px; height: 32px; border-radius: 999px;
  background: var(--gold-grad); background-size: 200% 100%;
  transition: transform .55s var(--ease);
}
.lang[data-current="ru"] .lang__thumb { transform: translateX(40px); }

.burger { display: none; width: 44px; height: 44px; border: 1px solid rgba(230,199,122,.45); border-radius: 50%; background: none; cursor: pointer; position: relative; }
.burger span { position: absolute; left: 13px; right: 13px; height: 1.5px; background: var(--ivory); transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .burger { display: inline-block; }
  .header-cta { display: none; }
  .nav {
    position: fixed; inset: 0; z-index: -1; display: flex; flex-direction: column; justify-content: center; gap: 36px;
    padding: calc(var(--header-h) + 20px) var(--gutter) 40px;
    background: radial-gradient(120% 80% at 80% 0%, var(--emerald-800), var(--emerald-950) 70%);
    clip-path: circle(0% at calc(100% - 40px) 38px);
    transition: clip-path .8s var(--ease), visibility 0s .8s; visibility: hidden;
  }
  .nav.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); visibility: visible; transition: clip-path .8s var(--ease); }
  .nav::before { content: ""; position: absolute; inset: 0; background-image: var(--zellige); background-size: 120px; opacity: .08; pointer-events: none; }
  .nav__list { flex-direction: column; gap: 6px; position: relative; }
  .nav__list a { font-family: var(--ff-display); font-size: clamp(2rem, 9vw, 3rem); text-transform: none; letter-spacing: 0; }
  .nav__list a::after { display: none; }
  .nav__phone { display: inline-flex; align-items: center; gap: 10px; color: var(--gold-300); text-decoration: none; font-size: 1.1rem; }
  .nav__phone svg { width: 18px; height: 18px; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { -webkit-backdrop-filter: none; backdrop-filter: none; background: transparent; box-shadow: none; transform: none; }
}
@media (max-width: 420px) {
  .brand__sub { display: none; }
  .brand__name { font-size: 1.45rem; }
  .brand__mark { width: 34px; height: 34px; }
}

/* ---------- Arches (masques) ---------- */
.arch { position: relative; }
.arch__mask {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  -webkit-mask: var(--arch-mask) center / 100% 100% no-repeat;
  mask: var(--arch-mask) center / 100% 100% no-repeat;
  background: var(--emerald-800);
}
.arch__img { width: 100%; height: 100%; object-fit: cover; transform-origin: 50% 60%; }
.arch__curtain { position: absolute; inset: 0; background: var(--emerald-950); transform-origin: 50% 0; transform: scaleY(0); }
.arch__line {
  position: absolute; inset: -10px; width: calc(100% + 20px); height: calc(100% + 20px);
  fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; pointer-events: none;
}
.arch__line path { vector-effect: non-scaling-stroke; }

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh; min-height: 100svh; overflow: hidden;
  background: radial-gradient(120% 90% at 75% 40%, var(--emerald-700) 0%, var(--emerald-900) 45%, var(--emerald-950) 100%);
  color: var(--ivory);
  padding: calc(var(--header-h) + 40px) 0 90px;
  display: flex; align-items: center;
}
.hero__pattern { position: absolute; inset: -10%; opacity: .09; }
.hero__glow {
  position: absolute; width: 70vmax; height: 70vmax; right: -20vmax; top: -10vmax; border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 161, 74, .22), transparent 60%);
  pointer-events: none;
}
.hero__grid { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.hero__eyebrow { color: var(--gold-300); }
.hero__title {
  font-family: var(--ff-display); font-weight: 500;
  font-size: clamp(3rem, 1rem + 5vw, 6.4rem); line-height: .95; letter-spacing: -.015em;
  margin: .35em 0 .4em;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; }
@media (min-width: 901px) { .hero__title .line { white-space: nowrap; } }
@media (max-width: 420px) { .hero__title .line--indent { padding-left: .45em; } }
.hero__title .line__in { display: inline-block; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0 .06em .1em 0; margin-bottom: -.1em; }
.w__in { display: inline-block; will-change: transform; }
.hero__title .line--indent { padding-left: .9em; font-style: italic; }
.hero__title .shimmer { font-style: italic; padding-right: .1em; }
.hero__lead { max-width: 44ch; color: rgba(246, 239, 226, .82); font-size: clamp(1rem, .95rem + .3vw, 1.15rem); }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 2rem; }
.hero__stats { display: flex; gap: clamp(20px, 4vw, 48px); margin-top: 2.8rem; padding-top: 1.6rem; border-top: 1px solid rgba(201, 161, 74, .25); max-width: 520px; }
.hero__stats > div { display: flex; flex-direction: column; }
.hero__stats .num { font-family: var(--ff-display); font-size: clamp(2rem, 1.6rem + 1.4vw, 2.8rem); line-height: 1; color: var(--gold-300); font-weight: 500; }
.hero__stats dd { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: rgba(246,239,226,.7); margin-top: 6px; }

.hero__visual { position: relative; aspect-ratio: 4 / 5; max-height: 76vh; justify-self: center; width: min(100%, 520px); }
.rosace-wrap { position: absolute; inset: 0; pointer-events: none; }
.rosace {
  position: absolute; left: -32.5%; top: -30.5%; width: 165%; height: 165%;
  fill: none; stroke: var(--gold); stroke-width: .8; pointer-events: none; opacity: .9;
}
.arch--hero .arch__img { height: 118%; margin-top: -18%; }
.rosace-layer { position: absolute; inset: 0; width: 100%; height: 100%; will-change: transform; }
.r-faint { opacity: .35; }
.r-dots { stroke-dasharray: 1.5 7 !important; stroke-dashoffset: 0; }
.arch--hero { position: absolute; inset: 6% 12% 0 12%; }
.arch--hero .arch__mask { box-shadow: 0 40px 80px -30px rgba(0,0,0,.6); }
.arch--mini { position: absolute; width: 30%; aspect-ratio: 3 / 4; left: -4%; bottom: 6%; }
.arch--mini .arch__mask { outline: 6px solid var(--emerald-900); }
.seal { position: absolute; right: -2%; bottom: 12%; width: clamp(110px, 12vw, 150px); aspect-ratio: 1; }
.seal__svg { width: 100%; height: 100%; animation: spin 26s linear infinite; }
.seal__bg { fill: var(--emerald-950); stroke: var(--gold); stroke-width: 1; }
.seal__text { fill: var(--gold-300); font-family: var(--ff-sans); font-size: 13px; letter-spacing: 1px; font-weight: 500; }
.seal__star { fill: none; stroke: var(--gold); stroke-width: 3; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  font-size: .68rem; letter-spacing: .3em; text-transform: uppercase; text-decoration: none; color: var(--gold-300);
}
.hero__scroll i { width: 1px; height: 46px; background: linear-gradient(var(--gold), transparent); position: relative; overflow: hidden; }
.hero__scroll i::after { content: ""; position: absolute; left: -2px; top: -10px; width: 5px; height: 10px; background: var(--gold-200); border-radius: 3px; animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { to { top: 50px; } }

@media (max-width: 900px) {
  .hero { padding-bottom: 110px; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__visual { width: min(84vw, 420px); order: -1; margin-top: 10px; max-height: none; }
  .hero__copy { text-align: left; }
  .rosace { width: 140%; height: 140%; left: -20%; top: -18%; }
  .hero__stats { gap: 18px; }
}

/* ---------- Marquee ---------- */
.marquee {
  position: relative; overflow: hidden; background: var(--emerald-950); color: var(--gold-300);
  border-block: 1px solid rgba(201, 161, 74, .35); padding: 18px 0;
}
.marquee__track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee__group { display: flex; align-items: center; }
.marquee__item { font-family: var(--ff-display); font-style: italic; font-size: clamp(1.3rem, 1rem + 1.2vw, 2rem); white-space: nowrap; padding: 0 28px; }
.marquee__sep { width: 14px; height: 14px; background: var(--gold); flex: none; clip-path: polygon(50% 0, 61% 26%, 85% 15%, 74% 39%, 100% 50%, 74% 61%, 85% 85%, 61% 74%, 50% 100%, 39% 74%, 15% 85%, 26% 61%, 0 50%, 26% 39%, 15% 15%, 39% 26%); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: clamp(80px, 11vw, 150px) 0; position: relative; }
.section-head { text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: clamp(40px, 6vw, 72px); }
.section-head--split { text-align: left; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.section-head--split .section-lead { margin-top: 0; }

.ornament { width: min(420px, 80%); margin-top: 28px; }
.ornament svg { width: 100%; height: auto; display: block; fill: none; stroke: var(--brass); stroke-width: 1; }
.ornament__star use { stroke: var(--brass); stroke-width: 4; }
.ornament--wide { display: flex; justify-content: center; margin-top: 0; width: 100%; max-width: var(--container); }
.ornament--wide svg { width: min(520px, 90%); }

/* ---------- Engagements ---------- */
.engagements { background: var(--ivory) ; }
.engagements::before {
  content: ""; position: absolute; inset: 0; background-image: var(--zellige); background-size: 120px; opacity: .06; pointer-events: none;
  -webkit-mask: linear-gradient(transparent, #000 30%, #000 70%, transparent); mask: linear-gradient(transparent, #000 30%, #000 70%, transparent);
}
.eng-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; position: relative; }
.eng-card {
  position: relative; padding: 40px 28px 34px; border-radius: 200px 200px 18px 18px;
  background: linear-gradient(180deg, #fbf6ec, var(--ivory-2));
  border: 1px solid var(--line); text-align: center;
  transition: transform .7s var(--ease), box-shadow .7s var(--ease), border-color .5s;
}
.eng-card:hover { transform: translateY(-8px); box-shadow: 0 30px 60px -30px rgba(11, 42, 34, .35); border-color: var(--gold); }
.eng-card__num { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); font-family: var(--ff-display); font-size: .9rem; color: var(--brass); letter-spacing: .2em; }
.eng-card__icon { width: 84px; height: 84px; margin: 22px auto 22px; fill: none; stroke: var(--emerald-700); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.eng-card__icon :is(path, circle):nth-child(2n) { stroke: var(--brass); }
.eng-card h3 { font-family: var(--ff-display); font-size: 1.6rem; font-weight: 600; color: var(--emerald-900); line-height: 1.1; }
.eng-card p { margin-top: 12px; color: var(--ink-soft); font-size: .96rem; }
@media (max-width: 1100px) { .eng-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .eng-grid { grid-template-columns: 1fr; } .eng-card { border-radius: 160px 160px 18px 18px; } }

/* ---------- Story ---------- */
.story { position: relative; background: var(--emerald-950); color: var(--ivory); overflow: hidden; }
.story__pattern { position: absolute; inset: 0; opacity: .06; }
.story__pin { position: relative; padding: clamp(80px, 10vw, 130px) 0; }
.story__head { text-align: center; display: flex; flex-direction: column; align-items: center; }
.story__stage { position: relative; margin-top: 50px; }
.story__emblem { display: none; }
.story__rail { display: none; }

/* Mode empilé (mobile / reduced motion / sans JS) */
.story__steps { display: grid; gap: 70px; }
.story-step { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; align-items: center; }
.arch--story { aspect-ratio: 4 / 5; width: min(100%, 420px); margin-inline: auto; }
.story-step__text { max-width: 480px; margin-inline: auto; text-align: center; }
.story-step__num { display: block; font-family: var(--ff-display); font-size: 4rem; line-height: 1; color: transparent; -webkit-text-stroke: 1px var(--gold); }
.story-step__kicker { font-size: .78rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-300); margin-top: 10px; }
.story-step h3 { font-family: var(--ff-display); font-weight: 500; font-size: clamp(2rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.02; margin-top: 10px; }
.story-step p:last-child { color: rgba(246,239,226,.78); margin-top: 16px; font-size: 1.05rem; }

/* Mode « pinned » (activé en JS sur desktop) */
.story.is-pinned .story__pin { height: 100vh; min-height: 640px; padding: calc(var(--header-h) + 10px) 0 30px; display: flex; flex-direction: column; }
.story.is-pinned .story__head { flex: none; }
.story.is-pinned .story__head .section-title { font-size: clamp(2rem, 1.2rem + 2.6vw, 3.6rem); }
.story.is-pinned .story__stage { flex: 1; margin-top: 2vh; min-height: 0; }
.story.is-pinned .story__steps { position: relative; height: 100%; display: block; }
.story.is-pinned .story-step {
  position: absolute; inset: 0; grid-template-columns: 1fr 1fr; gap: 6vw; align-items: center;
}
.story.is-pinned .arch--story { height: 100%; max-height: 62vh; width: auto; aspect-ratio: 4 / 5; justify-self: center; margin: 0; }
.story.is-pinned .story-step__text { text-align: left; margin: 0; }
.story.is-pinned .story__emblem {
  display: block; position: absolute; top: 50%; left: 25%; width: min(80vh, 760px); height: min(80vh, 760px);
  transform: translate(-50%, -50%); fill: none; stroke: var(--gold); stroke-width: .8; opacity: .55; pointer-events: none;
}
.story.is-pinned .story__rail {
  display: flex; flex-direction: column; justify-content: space-between; position: absolute; right: var(--gutter); top: 50%;
  height: 220px; transform: translateY(-50%);
}
.story__rail::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: rgba(201,161,74,.3); }
.story__rail-fill { position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: var(--gold-200); transform-origin: top; transform: scaleY(0); }
.story__rail i { position: relative; z-index: 1; width: 9px; height: 9px; margin-left: -4px; left: 50%; transform: rotate(45deg); background: var(--emerald-950); border: 1px solid var(--gold); transition: background .4s; }
.story__rail i.is-on { background: var(--gold); }
@media (min-width: 900px) {
  .story-step { grid-template-columns: 1fr 1fr; gap: 6vw; }
  .story-step__text { text-align: left; margin: 0; }
}

/* ---------- Catégories ---------- */
.categories { background: var(--ivory); }
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; perspective: 1200px; }
.cat-card { position: relative; }
.cat-card__btn {
  all: unset; box-sizing: border-box; cursor: pointer; display: block; width: 100%;
  transform-style: preserve-3d; will-change: transform; border-radius: 4px;
}
.cat-card__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 6px; }
.cat-card .arch { display: block; aspect-ratio: 3 / 4.3; }
.cat-card .arch__mask { display: block; }
.cat-card .arch__mask { background: var(--emerald-900); }
.cat-card .arch__img { transition: transform 1.2s var(--ease), filter .8s; filter: saturate(.9) brightness(.86); }
.cat-card__btn:hover .arch__img { transform: scale(1.08); filter: saturate(1.05) brightness(.95); }
.cat-card .arch__mask::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(7, 29, 23, .92) 100%);
}
.cat-card__glare {
  position: absolute; inset: 0; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .5s;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 30%), rgba(246, 226, 166, .45), transparent 45%);
  mix-blend-mode: soft-light;
}
.cat-card__btn:hover .cat-card__glare { opacity: 1; }
.cat-card__shine {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 236, 180, .35) 45%, transparent 60%);
  background-size: 250% 100%; background-position: 130% 0; transition: background-position 1.2s var(--ease);
}
.cat-card__btn:hover .cat-card__shine { background-position: -60% 0; }
.cat-card__body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 22px 18px; color: var(--ivory); text-align: center; transform: translateZ(40px); }
.cat-card__count { font-size: .7rem; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-300); }
.cat-card__name { display: block; font-family: var(--ff-display); font-size: clamp(1.5rem, 1.1rem + 1vw, 2.1rem); font-weight: 500; line-height: 1.05; margin-top: 6px; }
.cat-card__desc { display: block; font-size: .82rem; color: rgba(246,239,226,.78); margin-top: 8px; line-height: 1.4; min-height: 2.8em; }
.cat-card__go { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-size: .72rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-200); }
.cat-card__go svg { width: 14px; height: 14px; transition: transform .5s var(--ease); }
.cat-card__btn:hover .cat-card__go svg { transform: translateX(5px); }
.cat-card .arch__line { stroke: var(--brass); }
.cat-card:nth-child(even) { margin-top: 48px; }
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-card:nth-child(even) { margin-top: 0; }
}
@media (max-width: 680px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 14px; }
  .cat-card:last-child { grid-column: 1 / -1; width: 60%; justify-self: center; }
  .cat-card__desc { display: none; }
  .cat-card__body { padding: 14px 10px; }
}

/* ---------- Catalogue ---------- */
.catalogue { background: linear-gradient(180deg, var(--ivory), var(--ivory-2)); padding-top: clamp(60px, 8vw, 110px); }
.cata-toolbar { display: flex; gap: 18px; align-items: center; justify-content: space-between; flex-wrap: wrap; position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; padding: 10px; margin: 0 -10px; border-radius: 28px; transition: background .4s, box-shadow .4s; }
.cata-toolbar.is-stuck { background: rgba(246, 239, 226, .88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 10px 30px -18px rgba(11,42,34,.4), 0 0 0 1px var(--line); }
.tabs { display: flex; gap: 6px; flex-wrap: wrap; position: relative; }
.tab {
  position: relative; border: 1px solid var(--line); background: transparent; cursor: pointer;
  border-radius: 999px; padding: 10px 18px; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  color: var(--emerald-900); transition: color .35s, border-color .35s, background .35s;
}
.tab sup { font-size: .68em; margin-left: 4px; color: var(--brass); transition: color .35s; }
.tab:hover { border-color: var(--brass); }
.tab[aria-pressed="true"] { background: var(--emerald-900); border-color: var(--emerald-900); color: var(--ivory); }
.tab[aria-pressed="true"] sup { color: var(--gold-300); }
.search { position: relative; display: flex; align-items: center; flex: 0 1 300px; }
.search svg { position: absolute; left: 16px; width: 18px; height: 18px; fill: none; stroke: var(--brass); stroke-width: 1.6; stroke-linecap: round; }
.search input {
  width: 100%; height: 46px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.55);
  padding: 0 18px 0 44px; font-size: .95rem; outline: none; transition: border-color .3s, box-shadow .3s;
}
.search input:focus { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(201,161,74,.18); }
.cata-count { margin: 18px 0 26px; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--brass); }
.cata-empty { text-align: center; padding: 50px 0; color: var(--ink-soft); font-family: var(--ff-display); font-size: 1.5rem; }

.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 34px 22px; }
.p-card {
  position: relative; display: flex; flex-direction: column; height: 100%;
  background: #fbf7ef; border: 1px solid rgba(168,129,47,.22); border-radius: 160px 160px 16px 16px;
  padding: 12px 12px 18px; transition: transform .6s var(--ease), box-shadow .6s var(--ease), border-color .4s;
}
.p-card:hover { transform: translateY(-6px); box-shadow: 0 26px 50px -30px rgba(11,42,34,.45); border-color: rgba(201,161,74,.7); }
.p-card .arch { aspect-ratio: 1 / 1.05; }
.p-card .arch__img { transition: transform 1.1s var(--ease); }
.p-card:hover .arch__img { transform: scale(1.07); }
.p-card__badge {
  position: absolute; z-index: 2; top: 54%; left: 50%; transform: translate(-50%, -50%) scale(.6); opacity: 0;
  width: 54px; height: 54px; display: grid; place-items: center; transition: transform .6s var(--ease), opacity .4s;
}
.p-card__badge svg { width: 100%; height: 100%; fill: rgba(7,29,23,.82); stroke: var(--gold); stroke-width: 3; }
.p-card:hover .p-card__badge { opacity: 1; transform: translate(-50%, -50%) scale(1) rotate(45deg); }
.p-card__body { display: flex; flex-direction: column; flex: 1; padding: 16px 8px 0; text-align: center; }
.p-card__cat { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: var(--terracotta); }
.p-card__name { font-family: var(--ff-display); font-size: 1.55rem; font-weight: 600; line-height: 1.08; color: var(--emerald-900); margin-top: 6px; }
.p-card__name button { all: unset; cursor: pointer; }
.p-card__name button:hover { color: var(--brass); }
.p-card__name button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.p-card__desc { font-size: .9rem; color: var(--ink-soft); margin-top: 8px; line-height: 1.5; flex: 1; }
.p-card__price {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; margin: 14px auto 0;
  font-family: var(--ff-display); font-style: italic; font-size: 1.12rem; color: var(--brass-700);
}
.p-card__price::before, .p-card__price::after { content: ""; width: 22px; height: 1px; background: var(--brass); }
.p-card__actions { display: flex; gap: 8px; margin-top: 14px; }
.p-card__quote {
  flex: 1; min-height: 44px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--emerald-900); color: var(--ivory); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 500;
  position: relative; overflow: hidden; transition: background .4s;
}
.p-card__quote::after {
  content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(246,226,166,.45) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease);
}
.p-card__quote:hover { background: var(--emerald-700); }
.p-card__quote:hover::after { transform: translateX(120%); }
.p-card__wa {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid var(--line); color: var(--emerald-700); transition: background .3s, color .3s, border-color .3s;
}
.p-card__wa svg { width: 20px; height: 20px; }
.p-card__wa:hover { background: #1f8f5f; color: #fff; border-color: #1f8f5f; }
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .p-card { padding: 8px 8px 12px; border-radius: 120px 120px 12px 12px; }
  .p-card__name { font-size: 1.2rem; }
  .p-card__desc { display: none; }
  .p-card__price { font-size: .95rem; }
  .p-card__price::before, .p-card__price::after { width: 10px; }
  .p-card__actions { flex-direction: column; align-items: stretch; }
  .p-card__wa { width: 100%; border-radius: 999px; height: 40px; }
  .p-card__quote { font-size: .66rem; letter-spacing: .06em; padding: 0 6px; }
  .cata-toolbar { position: static; }
  .search { flex: 1 1 100%; }
  .tab { padding: 9px 13px; font-size: .72rem; }
}

/* ---------- Contact ---------- */
.contact { position: relative; overflow: hidden; background: var(--emerald-900); color: var(--ivory); padding: clamp(90px, 11vw, 150px) 0; }
.contact__pattern { position: absolute; inset: 0; opacity: .07; }
.contact__rosace { position: absolute; width: 1100px; height: 1100px; right: -380px; top: -300px; fill: none; stroke: var(--gold); stroke-width: .7; opacity: .25; pointer-events: none; }
.contact__grid { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 90px); align-items: start; }
.contact__lead { color: rgba(246,239,226,.8); margin-top: 18px; max-width: 46ch; }
.channels { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; margin-top: 34px; }
.channel {
  display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 14px 16px; border-radius: 16px;
  border: 1px solid rgba(201,161,74,.28); background: rgba(7,29,23,.35); transition: border-color .4s, background .4s, transform .5s var(--ease);
  min-height: 74px;
}
.channel:hover { border-color: var(--gold); background: rgba(201,161,74,.1); transform: translateY(-3px); }
.channel__ic { width: 42px; height: 42px; flex: none; display: grid; place-items: center; border-radius: 50%; background: var(--gold-grad); background-size: 200%; color: var(--emerald-950); }
.channel__ic svg { width: 19px; height: 19px; }
.channel small { display: block; font-size: .68rem; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-300); }
.channel strong { display: block; font-weight: 500; font-size: .95rem; word-break: break-word; }
.arch--map { margin-top: 36px; aspect-ratio: 16 / 11; max-width: 560px; }
.arch--map .arch__mask { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; }
.map { width: 100%; height: 100%; border: 0; filter: grayscale(.4) sepia(.25) contrast(1.05); }

.quote {
  position: relative; padding: clamp(28px, 4vw, 46px); border-radius: 220px 220px 24px 24px;
  background: var(--ivory); color: var(--ink); box-shadow: 0 50px 90px -40px rgba(0,0,0,.6);
  padding-top: clamp(80px, 9vw, 110px);
}
.quote__frame { position: absolute; inset: 10px; border: 1px solid var(--line); border-radius: 210px 210px 16px 16px; pointer-events: none; }
.quote__title { display: flex; flex-direction: column; align-items: center; gap: 10px; font-family: var(--ff-display); font-size: clamp(1.9rem, 1.4rem + 1.4vw, 2.6rem); font-weight: 500; color: var(--emerald-900); text-align: center; margin-bottom: 22px; }
.quote__title svg { width: 34px; height: 34px; fill: none; stroke: var(--brass); stroke-width: 3; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; border: 0; padding: 0; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label, .field legend { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--emerald-800); font-weight: 500; }
.field label em { text-transform: none; letter-spacing: 0; color: var(--ink-soft); font-style: italic; font-weight: 400; }
.field input, .field textarea {
  width: 100%; border: 1px solid rgba(168,129,47,.4); background: #fffaf1; border-radius: 12px; padding: 13px 14px; font-size: 1rem; outline: none; resize: vertical;
  transition: border-color .3s, box-shadow .3s;
}
.field input:focus, .field textarea:focus { border-color: var(--brass); box-shadow: 0 0 0 4px rgba(201,161,74,.2); }
.field textarea.is-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { box-shadow: 0 0 0 0 rgba(201,161,74,.8); } 100% { box-shadow: 0 0 0 14px rgba(201,161,74,0); } }
.field--radios { flex-direction: row; flex-wrap: wrap; gap: 10px; }
.field--radios legend { width: 100%; margin-bottom: 8px; }
.field .radio { text-transform: none; letter-spacing: 0; color: var(--ink); font-weight: 400; }
.radio { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; padding: 10px 14px; border: 1px solid rgba(168,129,47,.4); border-radius: 999px; font-size: .92rem; transition: border-color .3s, background .3s; }
.radio input { accent-color: var(--emerald-700); margin: 0; }
.radio:has(input:checked) { border-color: var(--emerald-700); background: rgba(21,80,65,.08); }
.quote__error { color: var(--terracotta-600); font-weight: 500; margin-bottom: 12px; }
.quote__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.quote__actions .btn { flex: 1 1 200px; }
.quote__note { font-size: .82rem; color: var(--ink-soft); margin-top: 14px; text-align: center; }
@media (max-width: 960px) {
  .contact__grid { grid-template-columns: 1fr; }
  .contact__rosace { width: 700px; height: 700px; right: -300px; top: -200px; }
}
@media (max-width: 560px) {
  .channels { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .quote { border-radius: 150px 150px 20px 20px; }
  .quote__frame { border-radius: 140px 140px 14px 14px; }
}

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--emerald-950); color: rgba(246,239,226,.78); padding-bottom: 26px; }
.footer__band { height: 46px; opacity: .25; border-bottom: 1px solid rgba(201,161,74,.3); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 40px; padding-top: 64px; padding-bottom: 50px; }
.footer h3 { font-family: var(--ff-display); font-size: 1.3rem; font-weight: 500; color: var(--gold-300); margin-bottom: 16px; }
.footer ul { display: grid; gap: 10px; }
.footer a { text-decoration: none; transition: color .3s; }
.footer a:hover { color: var(--gold-200); }
.brand--footer { color: var(--ivory); margin-bottom: 18px; }
.footer__brand p { max-width: 38ch; font-size: .95rem; }
.footer__market { margin-top: 10px; font-size: .82rem !important; color: var(--gold-300); letter-spacing: .04em; }
.footer__fb { display: inline-flex; align-items: center; gap: 8px; }
.footer__fb svg { width: 18px; height: 18px; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(201,161,74,.2); padding-top: 22px; font-size: .82rem; }
.footer__top { letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; }
.credit a { opacity: .6; }
.credit a:hover { opacity: 1; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: 1fr 1fr; } .footer__brand { grid-column: 1 / -1; } }
@media (max-width: 520px) { .footer__grid { grid-template-columns: 1fr; } }

/* ---------- Dialog produit ---------- */
.pdialog {
  width: min(920px, calc(100% - 32px)); max-height: calc(100vh - 40px); max-height: calc(100dvh - 40px); padding: 0; border: 0; border-radius: 26px;
  background: var(--ivory); color: var(--ink); box-shadow: 0 60px 120px -40px rgba(0,0,0,.7); overflow: auto;
}
.pdialog::backdrop { background: rgba(7, 29, 23, .78); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.pdialog[open] { animation: dialogIn .6s var(--ease); }
@keyframes dialogIn { from { opacity: 0; transform: translateY(30px) scale(.97); } }
.pdialog__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 32px; padding: 30px; position: relative; }
.pdialog__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--ivory); font-size: 1.6rem; line-height: 1; cursor: pointer; color: var(--emerald-900); }
.pdialog__close:hover { background: var(--emerald-900); color: var(--ivory); }
.arch--dialog { aspect-ratio: 4 / 5; }
.pdialog__body { display: flex; flex-direction: column; padding: 20px 10px 6px 0; }
.pdialog__cat { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--terracotta); }
.pdialog h3 { font-family: var(--ff-display); font-size: clamp(2rem, 1.4rem + 2vw, 3rem); font-weight: 500; line-height: 1; color: var(--emerald-900); margin-top: 10px; }
.pdialog__desc { margin-top: 16px; color: var(--ink-soft); font-size: .98rem; }
.pdialog__price { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-family: var(--ff-display); font-style: italic; font-size: 1.4rem; color: var(--brass-700); }
.pdialog__price svg { width: 22px; height: 22px; fill: none; stroke: var(--brass); stroke-width: 4; }
.pdialog__note { font-size: .86rem; color: var(--ink-soft); margin-top: 4px; }
.pdialog__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
@media (max-width: 720px) {
  .pdialog__inner { grid-template-columns: 1fr; padding: 18px; gap: 10px; }
  .arch--dialog { width: 62%; margin: 10px auto 0; }
  .pdialog__body { padding: 0; text-align: center; align-items: center; }
  .pdialog__actions { justify-content: center; }
}

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 300; transform: translate(-50%, 200%); opacity: 0; visibility: hidden;
  background: var(--emerald-950); color: var(--ivory); border: 1px solid var(--gold); border-radius: 999px;
  padding: 12px 22px; font-size: .9rem; max-width: calc(100% - 32px); text-align: center;
  transition: transform .6s var(--ease), opacity .4s, visibility 0s .6s; pointer-events: none;
}
.toast.is-on { transform: translate(-50%, 0); opacity: 1; visibility: visible; transition: transform .6s var(--ease), opacity .4s; }

/* ---------- Draw helpers ---------- */
.draw path, .draw circle, .draw polygon { stroke-dasharray: 1; stroke-dashoffset: 0; }
.arch__line path { stroke-dasharray: 1; stroke-dashoffset: 0; }
.ornament path { stroke-dasharray: 1; stroke-dashoffset: 0; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee__track { animation: none; }
  .shimmer { animation: none; background-position: 40% 0; }
  .seal__svg { animation: none; }
  .loader { display: none !important; }
}

[hidden] { display: none !important; }
