/* ==========================================================================
   Boucherie Migross — Variante 1 « NOIR & BRAISE »
   ========================================================================== */

:root {
  --ink: #0a0706;
  --coal: #110b09;
  --char: #1a120f;
  --ash: #2a1f1a;
  --blood: #7d0c12;
  --blood-2: #a3121b;
  --ember: #e2401c;
  --flame: #ff7a2f;
  --gold: #c9a45c;
  --gold-2: #e6c98a;
  --bone: #efe6d8;
  --muted: rgba(239, 230, 216, .62);
  --faint: rgba(239, 230, 216, .14);
  --line: rgba(239, 230, 216, .12);

  --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
  --sans: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --pad: clamp(16px, 4.5vw, 72px);
  --radius: 18px;
  --ease: cubic-bezier(.7, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --header-h: 76px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; 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(--ink);
  color: var(--bone);
  font-family: var(--sans);
  font-weight: 300;
  font-size: clamp(15px, 1.05vw, 17px);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
input, textarea { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, p, dl, dd { margin: 0; }
em { font-style: italic; }
::selection { background: var(--ember); color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 300;
  background: var(--gold); color: var(--ink); padding: 10px 16px; border-radius: 8px; font-weight: 600;
  transition: top .2s;
}
.skip:focus { top: 12px; }

/* ---------- Grain ---------- */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-4%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- Typo utilitaires ---------- */
.kicker {
  display: inline-flex; align-items: center; gap: .8em;
  font-size: .74rem; letter-spacing: .28em; text-transform: uppercase; font-weight: 500; color: var(--gold);
  margin-bottom: 1.4rem;
}
.kicker::before { content: ''; width: 34px; height: 1px; background: currentColor; opacity: .7; }
.h2 {
  font-family: var(--serif); font-weight: 400; line-height: .98; letter-spacing: -.02em;
  font-size: clamp(2.6rem, 6.4vw, 6.4rem);
}
.h2 em { color: var(--ember); font-weight: 400; }
.h2--xl { font-size: clamp(3rem, 8.5vw, 9rem); }
.lead { color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.2rem); max-width: 46ch; }
.section { position: relative; padding: clamp(90px, 14vw, 200px) var(--pad); }
.section__head { margin-bottom: clamp(48px, 7vw, 100px); max-width: 1100px; }

/* Lignes de titre révélées (JS) */
.rl { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rl > span { display: inline-block; will-change: transform; }

/* ---------- Boutons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .7em;
  padding: 1.05em 1.7em; border-radius: 100px; font-size: .9rem; font-weight: 500; letter-spacing: .04em;
  isolation: isolate; overflow: hidden; white-space: nowrap;
  transition: color .4s var(--ease-out), border-color .4s, background-color .4s;
}
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--sm { padding: .75em 1.25em; font-size: .82rem; }
.btn--ember { background: var(--ember); color: #160604; box-shadow: 0 10px 40px -12px rgba(226, 64, 28, .8); }
.btn--ember::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--gold-2);
  clip-path: circle(0% at 50% 120%); transition: clip-path .6s var(--ease-out);
}
.btn--ember:hover::before { clip-path: circle(150% at 50% 120%); }
.btn--ghost { border: 1px solid rgba(239, 230, 216, .35); color: var(--bone); }
.btn--ghost::before {
  content: ''; position: absolute; inset: 0; z-index: -1; background: var(--bone);
  transform: translateY(101%); transition: transform .55s var(--ease-out);
}
.btn--ghost:hover { color: var(--ink); border-color: var(--bone); }
.btn--ghost:hover::before { transform: translateY(0); }

/* ---------- Préchargeur ---------- */
.loader { display: none; }
.js .loader {
  display: grid; place-items: center; position: fixed; inset: 0; z-index: 200; background: var(--ink);
  clip-path: inset(0 0 0 0);
  animation: loaderFailsafe .01s 7s forwards; /* filet de sécurité si le JS échoue */
}
@keyframes loaderFailsafe { to { visibility: hidden; opacity: 0; pointer-events: none; } }
.loader__inner { width: min(520px, 80vw); }
.loader__brand {
  font-family: var(--serif); font-size: clamp(3rem, 12vw, 7rem); letter-spacing: .02em; line-height: 1;
  background: linear-gradient(100deg, var(--blood) 0%, var(--ember) 40%, var(--gold-2) 60%, var(--blood) 100%);
  background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shine 2.2s linear infinite;
}
@keyframes shine { from { background-position: 100% 0; } to { background-position: -150% 0; } }
.loader__bar { height: 1px; background: var(--faint); margin: 1.6rem 0 1rem; overflow: hidden; }
.loader__bar span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, var(--blood), var(--ember), var(--gold)); transform-origin: left; transform: scaleX(0); }
.loader__meta { display: flex; justify-content: space-between; font-size: .72rem; letter-spacing: .25em; text-transform: uppercase; color: var(--muted); }
.loader__count { font-variant-numeric: tabular-nums; color: var(--gold); }

/* ---------- Curseur ---------- */
.cursor { display: none; }
@media (hover: hover) and (pointer: fine) {
  .has-cursor, .has-cursor a, .has-cursor button, .has-cursor label, .has-cursor input[type=radio] { cursor: none; }
  .has-cursor input[type=text], .has-cursor input[type=tel], .has-cursor input[type=email], .has-cursor input[type=search], .has-cursor input[type=date], .has-cursor textarea { cursor: text; }
  .has-cursor .cursor { display: block; }
  .cursor { position: fixed; left: 0; top: 0; z-index: 250; pointer-events: none; }
  .cursor__dot {
    position: absolute; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
    background: var(--flame); box-shadow: 0 0 12px 2px rgba(255, 122, 47, .8);
  }
  .cursor__ring {
    position: absolute; width: 40px; height: 40px; margin: -20px 0 0 -20px; border-radius: 50%;
    border: 1px solid rgba(239, 230, 216, .45);
    display: grid; place-items: center;
    transition: width .45s var(--ease-out), height .45s var(--ease-out), margin .45s var(--ease-out), background-color .35s, border-color .35s;
  }
  .cursor__label { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); font-weight: 600; opacity: 0; transition: opacity .25s; white-space: nowrap; }
  .cursor.is-hover .cursor__ring { width: 64px; height: 64px; margin: -32px 0 0 -32px; border-color: var(--ember); background: rgba(226, 64, 28, .12); }
  .cursor.is-label .cursor__ring { width: 96px; height: 96px; margin: -48px 0 0 -48px; background: var(--gold-2); border-color: var(--gold-2); }
  .cursor.is-label .cursor__label { opacity: 1; }
  .cursor.is-hidden { opacity: 0; }
}

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 80; height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 0 var(--pad);
  transition: transform .6s var(--ease), background-color .4s, backdrop-filter .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.header.is-scrolled { background: rgba(10, 7, 6, .72); -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2); border-color: var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.brand { display: grid; grid-template-columns: auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; }
.brand__mark { grid-row: 1 / 3; width: 30px; height: 30px; color: var(--ember); filter: drop-shadow(0 0 10px rgba(226, 64, 28, .6)); }
.brand__name { font-family: var(--serif); font-size: 1.45rem; line-height: 1; letter-spacing: .01em; font-weight: 600; }
.brand__sub { font-size: .58rem; letter-spacing: .32em; text-transform: uppercase; color: var(--gold); }
.nav { display: flex; gap: clamp(18px, 2.6vw, 40px); }
.nav a { position: relative; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 400; color: var(--muted); transition: color .3s; padding: 6px 0; }
.nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ember); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease-out); }
.nav a:hover, .nav a.is-active { color: var(--bone); }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 12px; }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 100px; padding: 3px; position: relative; }
.lang__btn { position: relative; z-index: 1; font-size: .72rem; letter-spacing: .14em; font-weight: 600; padding: 6px 11px; border-radius: 100px; color: var(--muted); transition: color .3s, background-color .3s; }
.lang__btn.is-active { background: var(--bone); color: var(--ink); }
.header__tel { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); transition: border-color .3s, color .3s; }
.header__tel svg { width: 16px; height: 16px; }
.header__tel:hover { border-color: var(--ember); color: var(--ember); }
.burger { display: none; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); position: relative; }
.burger span:not(.sr) { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--bone); transition: transform .45s var(--ease-out), top .45s var(--ease-out); }
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 24px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 20px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 20px; transform: rotate(-45deg); }

.mmenu {
  position: fixed; inset: 0; z-index: 75; background: var(--coal);
  padding: calc(var(--header-h) + 30px) var(--pad) 40px; display: flex; flex-direction: column; justify-content: space-between;
  clip-path: circle(0% at calc(100% - 40px) 38px); transition: clip-path .8s var(--ease);
}
.mmenu.is-open { clip-path: circle(150% at calc(100% - 40px) 38px); }
.mmenu__nav { display: flex; flex-direction: column; gap: 6px; }
.mmenu__nav a { font-family: var(--serif); font-size: clamp(2.6rem, 12vw, 4.2rem); line-height: 1.1; }
.mmenu__nav a:hover { color: var(--ember); font-style: italic; }
.mmenu__foot { display: flex; flex-direction: column; gap: 8px; color: var(--gold); letter-spacing: .08em; }

/* ---------- Hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 620px; overflow: hidden;
  display: flex; align-items: flex-end; isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -3; overflow: hidden; }
.hero__img { width: 100%; height: 115%; object-fit: cover; object-position: 50% 60%; transform-origin: 50% 40%; will-change: transform; filter: saturate(1.05) contrast(1.08); }
.hero__veil {
  position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(120% 80% at 70% 70%, rgba(226, 64, 28, .18) 0%, transparent 55%),
    linear-gradient(180deg, rgba(10, 7, 6, .75) 0%, rgba(10, 7, 6, .25) 35%, rgba(10, 7, 6, .55) 70%, var(--ink) 100%),
    linear-gradient(90deg, rgba(10, 7, 6, .7) 0%, transparent 60%);
}
.embers { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; pointer-events: none; mix-blend-mode: screen; }
.hero__content { width: 100%; padding: 0 var(--pad) clamp(40px, 7vh, 90px); }
.hero__kicker { display: inline-flex; align-items: center; gap: 12px; font-size: .74rem; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-2); margin-bottom: clamp(14px, 2vh, 28px); }
.hero__kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ember); box-shadow: 0 0 0 0 rgba(226, 64, 28, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(226, 64, 28, .7); } 70% { box-shadow: 0 0 0 12px rgba(226, 64, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(226, 64, 28, 0); } }
.hero__title {
  font-family: var(--serif); font-weight: 500; line-height: .86; letter-spacing: -.035em;
  font-size: clamp(4.4rem, 15.5vw, 17rem);
}
.hero__line { display: block; overflow: hidden; padding: .02em .06em .1em 0; margin-bottom: -.1em; }
.hero__line--accent { padding-left: clamp(0px, 9vw, 180px); font-style: italic; font-weight: 400; }
.hero__line--accent .split { color: var(--ember); text-shadow: 0 0 60px rgba(226, 64, 28, .45); }
.split .char { display: inline-block; will-change: transform; }
.split .space { display: inline-block; width: .26em; }
.hero__bottom { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; margin-top: clamp(20px, 3.5vh, 44px); flex-wrap: wrap; }
.hero__sub { max-width: 44ch; color: rgba(239, 230, 216, .78); font-size: clamp(.98rem, 1.15vw, 1.12rem); }
.hero__ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero__badge { position: absolute; right: var(--pad); top: calc(var(--header-h) + 4vh); width: clamp(110px, 11vw, 168px); aspect-ratio: 1; display: grid; place-items: center; }
.hero__badge svg { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 18s linear infinite; }
.badge-text { fill: var(--gold); font-family: var(--sans); font-size: 15.5px; letter-spacing: 3.2px; font-weight: 500; }
.hero__badge-core { font-size: clamp(1.4rem, 2vw, 2.1rem); color: var(--bone); font-weight: 600; text-shadow: 0 0 22px rgba(226, 64, 28, .9); }
@keyframes spin { to { transform: rotate(360deg); } }
.hero__scroll { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); display: none; flex-direction: column; align-items: center; gap: 8px; font-size: .62rem; letter-spacing: .3em; text-transform: uppercase; color: var(--muted); }
.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: 0; top: -40%; width: 1px; height: 40%; background: var(--bone); animation: drip 1.8s var(--ease) infinite; }
@keyframes drip { to { top: 110%; } }
@media (min-width: 1100px) and (min-height: 760px) { .hero__scroll { display: flex; } }

/* ---------- Marquee ---------- */
.marquee { position: relative; padding: clamp(40px, 6vw, 80px) 0; overflow: hidden; }
.marquee__row { display: flex; white-space: nowrap; transform: rotate(-2deg); margin: 0 -5vw; }
.marquee__row--alt { background: var(--blood); transform: rotate(1.5deg); margin-top: -1.2vw; box-shadow: 0 30px 80px -30px rgba(163, 18, 27, .7); }
.marquee__track { display: flex; align-items: center; flex: none; padding-right: 0; will-change: transform; }
.mq { font-family: var(--serif); font-size: clamp(3.4rem, 11vw, 10.5rem); line-height: 1.12; padding: 0 .3em; font-weight: 500; letter-spacing: -.02em; text-transform: uppercase; }
.mq--outline { color: transparent; -webkit-text-stroke: 1px var(--gold); font-style: italic; font-weight: 400; }
.marquee__row--alt .mq { color: var(--bone); }
.marquee__row--alt .mq--outline { color: transparent; -webkit-text-stroke: 1px var(--bone); }
.marquee b { font-size: clamp(1.6rem, 4vw, 3.6rem); color: var(--ember); font-weight: 400; }
.marquee__row--alt b { color: var(--gold-2); }
.no-motion .marquee__row { overflow: hidden; }

/* ---------- Manifeste ---------- */
.manifesto { position: relative; }
.manifesto__pin {
  min-height: 100vh; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(30px, 5vw, 90px);
  align-items: center; padding: clamp(90px, 10vw, 140px) var(--pad);
}
.manifesto__media { position: relative; height: min(78vh, 760px); border-radius: var(--radius); overflow: hidden; }
.manifesto__media img { width: 100%; height: 120%; object-fit: cover; }
.manifesto__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 7, 6, .55), transparent 50%); }
.manifesto__text { font-family: var(--serif); font-size: clamp(1.7rem, 3.2vw, 3.3rem); line-height: 1.18; letter-spacing: -.01em; }
.manifesto__text .w { display: inline; transition: none; }
.manifesto__sign { margin-top: 2rem; color: var(--gold); font-style: italic; font-family: var(--serif); font-size: 1.2rem; }

/* ---------- Engagements ---------- */
.eng-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.eng {
  position: relative; padding: clamp(26px, 2.6vw, 40px); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--char), var(--coal)); border: 1px solid var(--line);
  min-height: 360px; display: flex; flex-direction: column; overflow: hidden; isolation: isolate;
  transition: border-color .5s, transform .6s var(--ease-out);
}
.eng::before {
  content: ''; position: absolute; inset: 0; z-index: -1; opacity: 0; transition: opacity .5s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(226, 64, 28, .22), transparent 60%);
}
.eng:hover { border-color: rgba(226, 64, 28, .5); }
.eng:hover::before { opacity: 1; }
.eng__num { font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.eng__icon { width: 54px; height: 54px; color: var(--ember); margin: auto 0 26px; transition: transform .7s var(--ease-out); }
.eng:hover .eng__icon { transform: translateY(-6px) rotate(-6deg); }
.eng__t { font-family: var(--serif); font-weight: 400; font-size: clamp(1.5rem, 2vw, 2.1rem); line-height: 1.05; margin-bottom: .7rem; }
.eng__d { color: var(--muted); font-size: .95rem; }

/* ---------- Savoir-faire ---------- */
.craft { padding-top: 0; }
.craft__grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(40px, 7vw, 120px); align-items: center; }
.craft__visual { position: relative; height: clamp(520px, 62vw, 820px); }
.craft__img { position: absolute; overflow: hidden; border-radius: var(--radius); }
.craft__img img { width: 100%; height: 125%; object-fit: cover; }
.craft__img--a { inset: 0 18% 14% 0; }
.craft__img--b { width: 46%; height: 48%; right: 0; bottom: 0; border: 6px solid var(--ink); box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .9); }
.craft__copy .lead { margin: 2rem 0 3rem; }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); }
.stat { padding: 22px 0; border-bottom: 1px solid var(--line); }
.stat:nth-child(odd) { padding-right: 20px; border-right: 1px solid var(--line); }
.stat:nth-child(even) { padding-left: 24px; }
.stat dt { font-family: var(--serif); font-size: clamp(2.6rem, 4.2vw, 4.2rem); line-height: 1; color: var(--bone); font-variant-numeric: tabular-nums; }
.stat dt small { font-size: .5em; color: var(--ember); margin-left: 2px; }
.stat dd { color: var(--muted); font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 8px; }

/* ---------- Catégories (scroll horizontal) ---------- */
.cats { position: relative; background: var(--coal); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cats__pin { height: 100vh; height: 100svh; overflow: hidden; display: flex; align-items: center; }
.cats__track { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); padding: 0 var(--pad); will-change: transform; }
.cats__intro { flex: none; width: clamp(280px, 34vw, 560px); padding-right: 2vw; }
.cats__progress { margin-top: 2.6rem; height: 1px; width: 70%; background: var(--faint); overflow: hidden; }
.cats__progress span { display: block; height: 100%; background: var(--ember); transform-origin: left; transform: scaleX(0); }
.cat-panel {
  position: relative; flex: none; width: clamp(300px, 40vw, 640px); height: min(76vh, 760px);
  border-radius: var(--radius); overflow: hidden; display: flex; align-items: flex-end; isolation: isolate;
}
.cat-panel:nth-of-type(even) { height: min(66vh, 660px); align-self: flex-end; margin-bottom: 6vh; }
.cat-panel__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.cat-panel__media img { width: 125%; max-width: none; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out), filter .8s; filter: saturate(.85) brightness(.82); }
.cat-panel::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(0deg, rgba(10, 7, 6, .92) 0%, rgba(10, 7, 6, .2) 55%, rgba(10, 7, 6, .35) 100%); }
.cat-panel:hover .cat-panel__media img { transform: scale(1.06); filter: saturate(1.1) brightness(.95); }
.cat-panel__idx { position: absolute; top: 22px; left: 26px; font-family: var(--serif); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.cat-panel__info { padding: clamp(22px, 2.6vw, 40px); width: 100%; }
.cat-panel__name { font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5.6vw, 6rem); line-height: .95; letter-spacing: -.02em; }
.cat-panel__desc { color: var(--muted); margin: .8rem 0 1.2rem; max-width: 36ch; }
.cat-panel__meta { font-size: .78rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold-2); }
.cat-panel__meta .u { border-bottom: 1px solid currentColor; }
/* Sans animation : défilement natif */
.no-motion .cats__pin { height: auto; padding: 100px 0; overflow-x: auto; scroll-snap-type: x mandatory; }
.no-motion .cat-panel { scroll-snap-align: start; }

/* ---------- Catalogue ---------- */
.catalogue__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; margin-bottom: 50px; flex-wrap: wrap; }
.catalogue__intro { max-width: 40ch; color: var(--muted); }
.toolbar {
  position: sticky; top: calc(var(--header-h) + 8px); z-index: 20; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 10px; margin: 0 -10px 18px; border-radius: 100px;
  background: rgba(17, 11, 9, .78); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border: 1px solid var(--line);
}
.header.is-hidden ~ main .toolbar { top: 10px; }
.filters { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.filters::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: flex-start; gap: 5px; padding: 10px 18px; border-radius: 100px;
  font-size: .82rem; letter-spacing: .06em; color: var(--muted); border: 1px solid transparent; transition: color .3s, background-color .4s, border-color .3s;
}
.chip sup { font-size: .62rem; color: var(--gold); top: 0; }
.chip:hover { color: var(--bone); border-color: var(--line); }
.chip.is-active { background: var(--ember); color: #160604; }
.chip.is-active sup { color: #160604; }
.search { display: flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 100px; border: 1px solid var(--line); min-width: min(280px, 100%); transition: border-color .3s; }
.search:focus-within { border-color: var(--gold); }
.search svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.search input { background: none; border: 0; outline: 0; width: 100%; font-size: .9rem; }
.search input::placeholder { color: rgba(239, 230, 216, .4); }
.results { font-size: .74rem; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); margin-bottom: 26px; }
.results__n { color: var(--gold); font-variant-numeric: tabular-nums; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: clamp(14px, 1.6vw, 24px); position: relative; }
.card {
  position: relative; display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden;
  background: var(--char); border: 1px solid var(--line); transition: border-color .4s, box-shadow .5s;
}
.card:hover { border-color: rgba(201, 164, 92, .45); box-shadow: 0 30px 60px -30px rgba(226, 64, 28, .45); }
.card__media { position: relative; aspect-ratio: 4 / 3.3; overflow: hidden; background: var(--ash); cursor: pointer; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.02); transition: transform 1s var(--ease-out), filter .6s; filter: saturate(.9) brightness(.9); }
.card:hover .card__media img { transform: scale(1.09); filter: saturate(1.1) brightness(1); }
.card__media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(26, 18, 15, .9), transparent 45%); }
.card__tag { position: absolute; z-index: 1; top: 14px; left: 14px; font-size: .64rem; letter-spacing: .2em; text-transform: uppercase; padding: 6px 10px; border-radius: 100px; background: rgba(10, 7, 6, .62); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid var(--line); }
.card__halal { position: absolute; z-index: 1; top: 14px; right: 14px; font-size: .64rem; letter-spacing: .16em; text-transform: uppercase; padding: 6px 10px; border-radius: 100px; background: rgba(125, 12, 18, .82); color: var(--bone); }
.card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; margin-top: -42px; position: relative; z-index: 1; }
.card__name { font-family: var(--serif); font-weight: 400; font-size: 1.55rem; line-height: 1.08; margin-bottom: .55rem; }
.card__name button { text-align: left; }
.card__name button:hover { color: var(--gold-2); }
.card__short { color: var(--muted); font-size: .9rem; line-height: 1.5; margin-bottom: 1.1rem; }
.card__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.card__price { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--gold); display: inline-flex; align-items: center; gap: 8px; }
.card__price::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.card__actions { display: flex; gap: 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); transition: background-color .3s, color .3s, border-color .3s; }
.icon-btn svg { width: 17px; height: 17px; }
.icon-btn:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }
.icon-btn--wa:hover { background: #25d366; border-color: #25d366; color: #062b14; }
.icon-btn--quote { background: var(--ember); border-color: var(--ember); color: #160604; }
.icon-btn--quote:hover { background: var(--gold-2); border-color: var(--gold-2); }
.grid__empty { padding: 60px 0; text-align: center; color: var(--muted); font-family: var(--serif); font-size: 1.6rem; font-style: italic; }

/* ---------- Contact ---------- */
.contact { overflow: hidden; background: linear-gradient(180deg, var(--ink), var(--coal)); border-top: 1px solid var(--line); }
.contact__glow { position: absolute; width: 70vw; height: 70vw; left: 50%; top: -20vw; transform: translateX(-50%); background: radial-gradient(circle, rgba(163, 18, 27, .32), transparent 60%); pointer-events: none; filter: blur(20px); }
.contact__head { position: relative; margin-bottom: clamp(50px, 7vw, 100px); }
.contact__head .lead { margin-top: 2rem; }
.contact__grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 4vw, 70px); align-items: start; }
.channels { border-top: 1px solid var(--line); margin-bottom: 28px; }
.channel { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 22px 4px; border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.channel::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(226, 64, 28, .14), transparent); transform: translateX(-101%); transition: transform .6s var(--ease-out); }
.channel:hover::before { transform: translateX(0); }
.channel__k { position: relative; font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.channel__v { position: relative; font-family: var(--serif); font-size: clamp(1.25rem, 2.1vw, 2rem); text-align: right; transition: color .3s; overflow-wrap: anywhere; }
.channel:hover .channel__v { color: var(--ember); }
.channel--wa:hover .channel__v { color: #25d366; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--char); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) invert(.9) contrast(.85) sepia(.25); transition: filter .6s; }
.map:hover iframe { filter: none; }

.quote { background: rgba(26, 18, 15, .72); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px); padding: clamp(24px, 3.2vw, 48px); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.quote__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 2.6vw, 2.6rem); margin-bottom: 26px; }
.field { position: relative; margin-bottom: 18px; flex: 1; min-width: 0; }
.field-row { display: flex; gap: 18px; }
.field input, .field textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(239, 230, 216, .25); padding: 26px 0 10px; outline: 0; font-size: 1rem; resize: vertical; border-radius: 0;
  transition: border-color .3s;
}
.field input[type=date] { color-scheme: dark; min-height: 58px; }
.field label { position: absolute; left: 0; top: 24px; color: var(--muted); pointer-events: none; transform-origin: left top; transition: transform .35s var(--ease-out), color .3s; font-size: .98rem; }
.field input:focus, .field textarea:focus { border-color: var(--ember); }
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field textarea:focus + label, .field textarea:not(:placeholder-shown) + label,
.field label.is-fixed { transform: translateY(-20px) scale(.74); color: var(--gold); letter-spacing: .08em; }
.field__hint { display: block; font-size: .76rem; color: rgba(239, 230, 216, .4); margin-top: 6px; }
.field.is-invalid input { border-color: var(--blood-2); }
.seg { border: 0; padding: 0; margin: 0 0 18px; flex: 1.2; min-width: 0; }
.seg legend { font-size: .72rem; letter-spacing: .08em; color: var(--gold); margin-bottom: 10px; padding: 0; }
.seg label { display: inline-flex; margin: 0 6px 6px 0; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { padding: 9px 14px; border-radius: 100px; border: 1px solid var(--line); font-size: .82rem; color: var(--muted); transition: all .3s; }
.seg input:checked + span { border-color: var(--ember); color: var(--bone); background: rgba(226, 64, 28, .16); }
.seg input:focus-visible + span { outline: 2px solid var(--gold); outline-offset: 2px; }
.quote__error { color: #ff8a7a; font-size: .88rem; margin-bottom: 12px; }
.quote__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.quote__note { margin-top: 18px; font-size: .78rem; color: rgba(239, 230, 216, .42); }

/* ---------- Footer ---------- */
.footer { position: relative; padding: clamp(70px, 9vw, 120px) var(--pad) 28px; overflow: hidden; background: var(--coal); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 50px; }
.footer__tag { font-family: var(--serif); font-size: clamp(1.4rem, 2.2vw, 2.1rem); line-height: 1.2; max-width: 22ch; }
.footer__h { font-size: .7rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 16px; }
.footer__col a { display: block; color: var(--muted); padding: 4px 0; transition: color .3s, transform .4s var(--ease-out); width: fit-content; }
.footer__col a:hover { color: var(--bone); transform: translateX(6px); }
.footer__giant {
  font-family: var(--serif); font-weight: 500; font-size: 20.5vw; line-height: .8; letter-spacing: -.04em; white-space: nowrap; text-align: center;
  color: transparent; -webkit-text-stroke: 1px rgba(201, 164, 92, .4); user-select: none; margin: 0 -2vw;
  background: linear-gradient(0deg, rgba(226, 64, 28, .55), transparent 70%); -webkit-background-clip: text; background-clip: text;
}
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 24px 70px 0 0; border-top: 1px solid var(--line); font-size: .78rem; color: rgba(239, 230, 216, .45); }
.footer__bottom a:hover { color: var(--bone); }
.credit { opacity: .7; }

/* ---------- FAB WhatsApp ---------- */
.fab-wa {
  position: fixed; right: 18px; bottom: 18px; z-index: 70; width: 56px; height: 56px; border-radius: 50%;
  display: grid; place-items: center; background: #25d366; color: #062b14; box-shadow: 0 14px 40px -10px rgba(37, 211, 102, .6);
  transform: scale(0); transition: transform .5s var(--ease-out);
}
.fab-wa.is-visible { transform: scale(1); }
.fab-wa:hover { transform: scale(1.08); }
.fab-wa svg { width: 28px; height: 28px; }
.no-js .fab-wa { transform: scale(1); }

/* ---------- Modale ---------- */
.modal { position: fixed; inset: 0; z-index: 150; display: grid; place-items: center; padding: 16px; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(5, 3, 3, .78); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.modal__panel {
  position: relative; width: min(1060px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto;
  display: grid; grid-template-columns: 1fr 1fr; background: var(--char); border: 1px solid var(--line); border-radius: calc(var(--radius) + 6px);
  overscroll-behavior: contain;
}
.modal__media { position: relative; min-height: 420px; overflow: hidden; }
.modal__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.modal__body { padding: clamp(26px, 3.4vw, 52px); display: flex; flex-direction: column; }
.modal__cat { font-size: .72rem; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.modal__title { font-family: var(--serif); font-weight: 400; font-size: clamp(2.2rem, 4vw, 3.6rem); line-height: 1; margin-bottom: 14px; }
.modal__price { display: inline-flex; align-self: flex-start; padding: 7px 14px; border-radius: 100px; border: 1px solid var(--gold); color: var(--gold-2); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 22px; }
.modal__desc { color: var(--muted); font-size: .98rem; margin-bottom: 28px; }
.modal__desc p + p { margin-top: .8em; }
.modal__actions { margin-top: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.modal__close { position: absolute; top: 14px; right: 14px; z-index: 2; width: 44px; height: 44px; border-radius: 50%; background: rgba(10, 7, 6, .7); border: 1px solid var(--line); }
.modal__close span { position: absolute; left: 13px; right: 13px; top: 21px; height: 1px; background: var(--bone); transform: rotate(45deg); }
.modal__close span + span { transform: rotate(-45deg); }
.modal__close:hover { border-color: var(--ember); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 160; transform: translate(-50%, calc(100% + 40px));
  background: var(--bone); color: var(--ink); padding: 12px 20px; border-radius: 100px; font-size: .88rem; font-weight: 500;
  transition: transform .5s var(--ease-out), visibility 0s .5s; width: max-content; max-width: calc(100vw - 32px); text-align: center; visibility: hidden;
}
.toast.is-on { transform: translate(-50%, 0); visibility: visible; transition: transform .5s var(--ease-out); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .eng-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eng { min-height: 300px; }
}
@media (max-width: 960px) {
  :root { --header-h: 66px; }
  .nav, .header__tel { display: none; }
  .burger { display: inline-block; }
  .manifesto__pin { grid-template-columns: 1fr; padding-top: 80px; padding-bottom: 80px; }
  .manifesto__media { height: 46vh; }
  .craft__grid { grid-template-columns: 1fr; }
  .craft__visual { height: 110vw; max-height: 640px; }
  .contact__grid { grid-template-columns: 1fr; }
  .modal__panel { grid-template-columns: 1fr; }
  .modal__media { min-height: 0; aspect-ratio: 16 / 10; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__col--brand { grid-column: 1 / -1; }
  .toolbar { border-radius: 20px; }
}
@media (max-width: 640px) {
  .header .btn--sm { display: none; }
  .hero__badge { width: 96px; top: calc(var(--header-h) + 14px); }
  .hero__line--accent { padding-left: 0; }
  .hero__ctas { width: 100%; }
  .hero__ctas .btn { flex: 1 1 auto; }
  .eng-grid { grid-template-columns: 1fr; }
  .eng { min-height: 0; }
  .eng__icon { margin: 26px 0 20px; }
  .stat dt { font-size: 2.4rem; }
  .cats__intro { width: 80vw; }
  .cat-panel { width: 82vw; height: 68vh; }
  .cat-panel:nth-of-type(even) { height: 60vh; margin-bottom: 4vh; }
  .field-row { flex-direction: column; gap: 0; }
  .channel { flex-direction: column; align-items: flex-start; gap: 4px; }
  .channel__v { text-align: left; }
  .footer__top { grid-template-columns: 1fr; }
  .toolbar { position: sticky; margin: 0 -6px 18px; padding: 8px; }
  .search { min-width: 100%; }
  .quote__actions .btn { flex: 1 1 100%; }
  /* Catalogue compact : 2 colonnes sur mobile */
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .card { border-radius: 14px; }
  .card__media { aspect-ratio: 1 / 1; }
  .card__tag { top: 8px; left: 8px; font-size: .56rem; padding: 4px 7px; letter-spacing: .14em; }
  .card__halal { display: none; }
  .card__body { padding: 12px 12px 12px; margin-top: -30px; }
  .card__name { font-size: 1.12rem; }
  .card__short { display: none; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 10px; padding-top: 10px; }
  .card__price { font-size: .6rem; letter-spacing: .12em; }
  .card__actions .icon-btn { flex: 1; border-radius: 100px; height: 36px; width: auto; }
}

/* ---------- Mouvement réduit ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .grain { display: none; }
  .js .loader { display: none; }
}
