/* ============================================
   SY'M B.T.P — Design System
   Palette alignée sur le logo plat (brun #78441d, or, crème)
   ============================================ */
:root {
  --bg-deep: #17100a;        /* brun très sombre */
  --bg-dark: #24190f;        /* brun espresso */
  --bg-card: #2a1d12;        /* surface carte */
  --earth-1: #4a382a;
  --brand: #78441d;          /* brun du logo */
  --brand-deep: #5c3314;
  --tan: #a28b73;
  --tan-light: #c8b59d;
  --cream: #f6f1e9;          /* texte clair */
  --cream-dim: #d6cabb;      /* texte secondaire */
  --gold: #cfae5c;           /* or du logo */
  --gold-light: #e6cf8a;
  --paper: #f4ede3;          /* sections claires */
  --paper-2: #eadfcf;
  --ink: #2b1d12;            /* texte sur clair */
  --ink-dim: #6b5644;
  --glass-border: rgba(200, 181, 157, 0.14);
  --line-light: rgba(120, 68, 29, 0.16);

  --font-display: 'Fraunces', serif;
  --font-body: 'Inter', system-ui, sans-serif;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
  --radius: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html, body { overflow-x: clip; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }

body {
  font-family: var(--font-body);
  background: var(--bg-deep);
  color: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: fixed; top: -100px; left: 1rem; z-index: 300;
  background: var(--gold); color: var(--ink); padding: 0.6rem 1rem; border-radius: 8px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* Barre de progression de lecture */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 2px; z-index: 150;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0);
  pointer-events: none;
}

/* ===== HEADER ===== */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1rem 2.5rem;
  transition: background 0.35s var(--ease-out), padding 0.35s var(--ease-out), transform 0.45s var(--ease-out), backdrop-filter 0.35s;
}
.nav.scrolled {
  background: rgba(23, 16, 10, 0.84);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.6rem 2.5rem;
  border-bottom: 1px solid var(--glass-border);
}
.nav.hidden { transform: translateY(-100%); }
.nav__brand { display: flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--cream); flex-shrink: 0; }
.nav__logo { width: 48px; height: auto; border-radius: 6px; box-shadow: 0 4px 18px rgba(0,0,0,0.3); transition: width 0.35s var(--ease-out); }
.nav.scrolled .nav__logo { width: 40px; }
.nav__text { display: flex; flex-direction: column; justify-content: center; line-height: 1.15; }
.nav__name { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: 0.02em; }
.nav__name em { font-style: normal; color: var(--gold); }
.nav__tagline { font-size: 0.7rem; color: var(--cream-dim); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 400; }
.nav__links { display: flex; gap: 1.5rem; align-items: center; }
.nav__links > a, .nav__dropdown-toggle {
  color: var(--cream-dim);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  position: relative;
  transition: color 0.2s;
  background: none; border: none; cursor: pointer; font-family: inherit;
  white-space: nowrap;
}
.nav__links > a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -4px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s var(--ease-out);
}
.nav__links > a:hover, .nav__links > a.active, .nav__dropdown-toggle:hover, .nav__dropdown.active .nav__dropdown-toggle { color: var(--cream); }
.nav__links > a:hover::after, .nav__links > a.active::after { width: 100%; }

/* Menu déroulant Bois & Menuiserie */
.nav__dropdown { position: relative; }
.nav__dropdown-toggle { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0; }
.nav__dropdown-toggle::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 0 3px rgba(207,174,92,0.18);
}
.nav__chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform 0.25s; }
.nav__dropdown.open .nav__chev { transform: rotate(-135deg) translateY(-1px); }
.nav__menu {
  position: absolute; top: calc(100% + 18px); left: 50%;
  width: 290px; padding: 0.6rem;
  background: rgba(36, 25, 15, 0.97);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
  display: flex; flex-direction: column; gap: 2px;
  opacity: 0; visibility: hidden; transform: translate(-50%, 8px);
  transition: opacity 0.25s, transform 0.3s var(--ease-out), visibility 0.25s;
}
.nav__menu::before { content: ''; position: absolute; top: -18px; left: 0; right: 0; height: 18px; }
.nav__dropdown.open .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (hover: hover) and (min-width: 1081px) {
  .nav__dropdown:hover .nav__menu { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
  .nav__dropdown:hover .nav__chev { transform: rotate(-135deg) translateY(-1px); }
}
.nav__menu a { display: flex; flex-direction: column; padding: 0.65rem 0.8rem; border-radius: 10px; text-decoration: none; transition: background 0.2s; }
.nav__menu a:hover { background: rgba(200,181,157,0.08); }
.nav__menu strong { font-weight: 600; font-size: 0.9rem; color: var(--cream); }
.nav__menu span { font-size: 0.78rem; color: var(--cream-dim); }
.nav__menu .nav__menu-cta { background: rgba(207,174,92,0.1); margin-top: 0.3rem; }
.nav__menu .nav__menu-cta strong { color: var(--gold-light); }

.nav__cta { display: flex; align-items: center; gap: 0.9rem; flex-shrink: 0; }
.nav__burger { display: none; background: none; border: none; cursor: pointer; width: 34px; height: 28px; flex-direction: column; justify-content: space-between; padding: 4px 2px; }
.nav__burger span { display: block; height: 2px; width: 100%; background: var(--cream); transition: transform 0.3s var(--ease-out), opacity 0.3s; }
.nav__burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ===== BOUTONS ===== */
.btn {
  display: inline-block;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.95rem;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  border: none;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s, background 0.25s, color 0.25s;
}
.btn--sm { padding: 0.55rem 1.2rem; font-size: 0.85rem; }
.btn--gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold) 55%, #a8813d);
  color: var(--ink);
  box-shadow: 0 6px 24px rgba(207, 174, 92, 0.28);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(207, 174, 92, 0.42); }
.btn--brown { background: var(--brand); color: var(--cream); box-shadow: 0 8px 26px rgba(120,68,29,0.3); }
.btn--brown:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--cream); border: 1px solid rgba(246,241,233,0.3); }
.btn--ghost:hover { border-color: var(--gold); background: rgba(207, 174, 92, 0.08); }
.btn--block { width: 100%; text-align: center; }

/* ===== HERO : récit du chantier (vidéo scrubbée au scroll) ===== */
.story {
  position: relative;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
  background: var(--bg-deep);
}
.story__media { position: absolute; inset: 0; }
.story__poster, #hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
#hero-video { opacity: 0; transition: opacity 0.6s ease; }
#hero-video.ready { opacity: 1; }
.story__veil {
  position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(23,16,10,0.6) 0%, rgba(23,16,10,0.15) 30%, rgba(23,16,10,0.15) 62%, rgba(23,16,10,0.88) 100%),
    radial-gradient(ellipse at center, transparent 45%, rgba(23,16,10,0.45) 100%);
}
/* Voile renforcé derrière le titre, estompé avec l'intro */
.story__intro::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: radial-gradient(ellipse 60% 45% at 50% 55%, rgba(23,16,10,0.62), transparent 75%);
  pointer-events: none;
}
.story__intro {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: var(--nav-h) 1.5rem 0;
  z-index: 2;
}
.story__intro > * { max-width: 880px; }
.hero__kicker {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 1.6rem;
  padding: 0.55rem 1.2rem;
  border-radius: 999px;
  background: rgba(23, 16, 10, 0.62);
  border: 1px solid rgba(207, 174, 92, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.25);
}
.hero__title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 7vw, 5.6rem);
  line-height: 1.04;
  font-weight: 400;
  margin-bottom: 1.4rem;
  text-shadow: 0 4px 40px rgba(0,0,0,0.35);
}
.hero__title em { font-style: italic; color: var(--gold-light); }
.hero__sub {
  font-size: 1.1rem;
  color: var(--cream);
  opacity: 0.88;
  max-width: 640px;
  margin: 0 auto 2.2rem;
  font-weight: 300;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* Chapitres du chantier */
.story__chapters {
  list-style: none;
  position: absolute;
  left: 2.5rem; bottom: 5.5rem;
  width: min(440px, calc(100vw - 3rem));
  min-height: 190px;
  z-index: 2;
}
.chapter {
  position: absolute; left: 0; bottom: 0; right: 0;
  padding: 1.6rem 1.8rem;
  background: rgba(23, 16, 10, 0.55);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--glass-border);
  border-left: 3px solid var(--gold);
  border-radius: 14px;
  opacity: 0; transform: translateY(24px);
  transition: opacity 0.5s var(--ease-out), transform 0.6s var(--ease-out);
  pointer-events: none;
}
.chapter.is-active { opacity: 1; transform: none; pointer-events: auto; }
.chapter__num { font-family: var(--font-display); font-style: italic; color: var(--gold); font-size: 1.1rem; }
.chapter__title { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; line-height: 1.2; margin: 0.2rem 0 0.5rem; }
.chapter p { color: var(--cream-dim); font-weight: 300; font-size: 0.95rem; }
.chapter__cta { display: inline-block; margin-top: 0.8rem; color: var(--gold-light); font-weight: 600; text-decoration: none; font-size: 0.92rem; }
.chapter__cta:hover { text-decoration: underline; }

.story__rail {
  position: absolute; left: 2.5rem; right: 2.5rem; bottom: 2.6rem;
  height: 2px; background: rgba(246,241,233,0.18); border-radius: 2px;
  z-index: 2; opacity: 0;
}
.story__rail-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--brand), var(--gold));
  transform-origin: 0 50%; transform: scaleX(0);
}
.hero__scroll-hint {
  position: absolute; left: 50%; bottom: 1.8rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 0.6rem;
  font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cream-dim);
  z-index: 2; white-space: nowrap;
}
.hero__mouse { width: 22px; height: 34px; border: 1.5px solid rgba(246,241,233,0.6); border-radius: 12px; position: relative; }
.hero__mouse::after { content: ''; position: absolute; left: 50%; top: 7px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--gold); animation: wheel 1.8s ease-in-out infinite; }
@keyframes wheel { 0% { opacity: 0; transform: translateY(-3px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(9px); } }

/* Mode statique (mouvement réduit / pas de JS) */
.story.is-static { height: auto; min-height: 100svh; display: flex; flex-direction: column; }
.story.is-static .story__intro { position: relative; inset: auto; min-height: 75svh; }
.story.is-static .story__chapters { position: relative; left: auto; bottom: auto; width: auto; min-height: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0.8rem; padding: 0 1.5rem 3rem; z-index: 2; }
.story.is-static .chapter { position: relative; opacity: 1; transform: none; pointer-events: auto; }
.story.is-static .story__rail, .story.is-static .hero__scroll-hint { display: none; }

/* ===== STATS ===== */
.stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.stat { background: var(--bg-dark); text-align: center; padding: 2.6rem 1rem; }
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 300;
  color: var(--gold);
  display: block;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}
.stat__label { font-size: 0.8rem; color: var(--cream-dim); letter-spacing: 0.08em; text-transform: uppercase; }

/* ===== SECTIONS ===== */
.section {
  position: relative;
  padding: 7rem 2.5rem;
  max-width: 1240px;
  margin: 0 auto;
}
.band { position: relative; }
.section__head { text-align: center; max-width: 740px; margin: 0 auto 3.5rem; }
.kicker {
  font-size: 0.78rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
  font-weight: 500;
}
.section h2, .band h2, .terrain h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  font-weight: 400;
  line-height: 1.12;
  margin-bottom: 1rem;
}
h2 em { font-style: italic; color: var(--gold); }
.section__lede { color: var(--cream-dim); font-weight: 300; font-size: 1.05rem; }

/* ===== EXPERTISES (bento) ===== */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-flow: dense;
  gap: 1.2rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 2.2rem 1.9rem;
  transition: transform 0.4s var(--ease-out), border-color 0.4s, box-shadow 0.4s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  color: var(--cream);
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: rgba(207,174,92,0.35); box-shadow: 0 24px 50px rgba(0,0,0,0.35); }
.card__num { font-family: var(--font-display); font-size: 2.2rem; color: var(--gold); opacity: 0.55; display: block; margin-bottom: 0.6rem; font-style: italic; line-height: 1; }
.card h3 { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; margin-bottom: 0.7rem; }
.card p { color: var(--cream-dim); font-size: 0.93rem; font-weight: 300; }
.card__more { margin-top: auto; padding-top: 1.1rem; color: var(--gold-light); font-weight: 600; font-size: 0.88rem; }
.card__badge { align-self: flex-start; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; background: var(--gold); color: var(--ink); padding: 0.25rem 0.6rem; border-radius: 999px; margin-bottom: 0.7rem; font-weight: 600; }
.card--wide { grid-column: span 2; }
.card--media { padding: 0; min-height: 360px; justify-content: flex-end; }
.card--media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease-out); }
.card--media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23,16,10,0) 15%, rgba(23,16,10,0.6) 48%, rgba(23,16,10,0.95) 100%); }
.card--media:hover img { transform: scale(1.06); }
.card__body { position: relative; z-index: 1; padding: 2rem 1.9rem; display: flex; flex-direction: column; }
.card--media .card__body p { color: var(--cream); opacity: 0.85; }
.card--accent { background: linear-gradient(150deg, var(--brand), var(--brand-deep)); border-color: rgba(207,174,92,0.25); }
.card--accent p { color: var(--cream); opacity: 0.85; }

/* ===== SUR MESURE (section claire) ===== */
.band--light { background: var(--paper); color: var(--ink); }
.band--light .section__lede { color: var(--ink-dim); }
.band--light .kicker { color: var(--brand); }
.band--light h2 em { color: var(--brand); }
.process {
  max-width: 1240px; margin: 0 auto;
  padding: 7rem 2.5rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 5rem;
}
.process__sticky { position: sticky; top: calc(var(--nav-h) + 2rem); }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.8rem 0 2rem; }
.chips li {
  font-size: 0.82rem; font-weight: 500;
  padding: 0.4rem 0.85rem; border-radius: 999px;
  background: #fff; border: 1px solid var(--line-light); color: var(--brand-deep);
}
.process__steps { list-style: none; display: flex; flex-direction: column; gap: 1.2rem; padding-top: 0.5rem; }
.step {
  display: grid; grid-template-columns: auto 1fr; gap: 1.4rem;
  padding: 2rem 2rem;
  background: #fff;
  border: 1px solid var(--line-light);
  border-radius: var(--radius);
  transition: border-color 0.4s, box-shadow 0.4s, transform 0.4s var(--ease-out);
}
.step.is-active { border-color: rgba(120,68,29,0.45); box-shadow: 0 22px 50px rgba(92,51,20,0.14); transform: translateX(-6px); }
.step__num {
  font-family: var(--font-display); font-style: italic; font-size: 1.4rem; color: var(--brand);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  border: 1px solid var(--line-light); background: var(--paper);
  transition: background 0.4s, color 0.4s;
}
.step.is-active .step__num { background: var(--brand); color: var(--cream); }
.step h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: 0.4rem; }
.step p { color: var(--ink-dim); font-size: 0.95rem; }

/* ===== BOIS & MENUISERIE ===== */
.band--wood {
  background:
    repeating-linear-gradient(92deg, rgba(255,255,255,0.012) 0 2px, transparent 2px 9px),
    radial-gradient(ellipse at 15% 0%, rgba(120,68,29,0.45), transparent 55%),
    radial-gradient(ellipse at 100% 100%, rgba(120,68,29,0.3), transparent 50%),
    var(--bg-dark);
  border-top: 1px solid var(--glass-border);
  border-bottom: 1px solid var(--glass-border);
}
.feature {
  display: grid; grid-template-columns: 1.15fr 1fr; gap: 4rem; align-items: center;
  margin-bottom: 6rem;
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}
.feature--reverse .feature__media { order: 2; }
.feature__media {
  position: relative; overflow: hidden; border-radius: 20px;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 70px rgba(0,0,0,0.4);
}
.feature__media img { width: 100%; height: 118%; object-fit: cover; position: absolute; top: -9%; left: 0; will-change: transform; }
.feature__index { font-family: var(--font-display); font-style: italic; font-size: 3.2rem; color: var(--gold); opacity: 0.5; line-height: 1; }
.feature__text h3 { font-family: var(--font-display); font-weight: 400; font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0.4rem 0 0.9rem; }
.feature__text > p { color: var(--cream-dim); font-weight: 300; margin-bottom: 1.3rem; }
.ticks { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.ticks li { position: relative; padding-left: 1.7rem; font-size: 0.95rem; }
.ticks li::before { content: ''; position: absolute; left: 0; top: 0.45em; width: 14px; height: 8px; border-left: 2px solid var(--gold); border-bottom: 2px solid var(--gold); transform: rotate(-45deg); }
.ticks--sm li { font-size: 0.88rem; }
.cta-strip {
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
  padding: 2.4rem 2.6rem; border-radius: 20px;
  background: linear-gradient(120deg, rgba(120,68,29,0.55), rgba(42,29,18,0.9));
  border: 1px solid rgba(207,174,92,0.25);
}
.cta-strip h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin-bottom: 0.3rem; }
.cta-strip p { color: var(--cream-dim); font-weight: 300; max-width: 600px; }
.cta-strip .btn { flex-shrink: 0; }

/* ===== SUR LE TERRAIN (galerie horizontale) ===== */
.terrain { padding: 7rem 0 5rem; overflow: hidden; }
.terrain__head { max-width: 1240px; margin: 0 auto 3rem; padding: 0 2.5rem; }
.terrain__head .section__lede { max-width: 560px; }
.terrain__viewport { overflow: hidden; }
.terrain__track { display: flex; gap: 1.2rem; padding: 0 2.5rem; width: max-content; will-change: transform; }
.terrain--pinned {
  height: 100vh; padding: calc(var(--nav-h) + 1rem) 0 2rem;
  display: flex; flex-direction: column; justify-content: center;
}
.terrain--pinned .terrain__head { margin-bottom: 2rem; }
.terrain--pinned .tile { height: clamp(280px, 52vh, 540px); min-height: 0; }
.tile { position: relative; height: 62vh; max-height: 560px; min-height: 340px; aspect-ratio: 4 / 3; border-radius: 18px; overflow: hidden; flex-shrink: 0; background: var(--bg-card); }
.tile--tall { aspect-ratio: 3 / 4; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 2.4rem 1.2rem 1rem;
  background: linear-gradient(180deg, transparent, rgba(23,16,10,0.9));
  font-size: 0.9rem; font-weight: 500;
}

/* ===== CARROUSEL 3D CYLINDRIQUE (réalisations) ===== */
.carousel3d { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.carousel3d__stage { width: 100%; height: 480px; perspective: 1400px; position: relative; cursor: grab; touch-action: pan-y; }
.carousel3d__stage:active { cursor: grabbing; }
.carousel3d__ring { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; }
.carousel3d__item {
  position: absolute; top: 50%; left: 50%;
  width: 320px; height: 240px; margin: -120px 0 0 -160px;
  border-radius: 14px; overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--glass-border);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.carousel3d__item img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; user-select: none; -webkit-user-drag: none; }
.carousel3d__item figcaption {
  position: absolute; inset: auto 0 0 0;
  padding: 1.8rem 0.9rem 0.7rem;
  background: linear-gradient(180deg, transparent, rgba(23,16,10,0.9));
  font-size: 0.85rem; font-weight: 500; color: var(--cream);
}
.carousel3d__hint { font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--cream-dim); opacity: 0.8; text-align: center; }

/* ===== LIGHTBOX ===== */
.lightbox {
  position: fixed; inset: 0; z-index: 200;
  display: none; align-items: center; justify-content: center;
  padding: 2rem;
  background: rgba(18, 12, 8, 0.86);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  opacity: 0; pointer-events: none;
}
.lightbox__img {
  max-width: min(90vw, 1040px); max-height: 80vh; width: auto; height: auto;
  border-radius: 14px;
  box-shadow: 0 40px 110px rgba(0,0,0,0.65), 0 0 0 1px var(--glass-border);
  object-fit: contain; cursor: zoom-out; will-change: transform, opacity;
}
.lightbox__caption { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: var(--cream); font-size: 0.95rem; letter-spacing: 0.04em; text-align: center; max-width: 80vw; }
.lightbox__close, .lightbox__nav {
  position: absolute; border-radius: 50%;
  border: 1px solid var(--glass-border); background: rgba(36, 26, 16, 0.6); color: var(--cream);
  cursor: pointer; display: flex; align-items: center; justify-content: center;
  transition: background 0.25s, transform 0.25s;
}
.lightbox__close { top: 1.4rem; right: 1.4rem; width: 42px; height: 42px; font-size: 1.1rem; }
.lightbox__close:hover { background: rgba(207, 174, 92, 0.25); transform: scale(1.08); }
.lightbox__nav { top: 50%; transform: translateY(-50%); width: 52px; height: 52px; font-size: 2rem; line-height: 1; padding-bottom: 0.2rem; }
.lightbox__nav:hover { background: rgba(207, 174, 92, 0.25); transform: translateY(-50%) scale(1.1); }
.lightbox__nav--prev { left: 1.4rem; }
.lightbox__nav--next { right: 1.4rem; }

/* ===== L'ENTREPRISE ===== */
.about { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1.2rem; }
.about__card {
  background: linear-gradient(160deg, var(--bg-card), var(--bg-dark));
  border: 1px solid var(--glass-border); border-radius: 20px;
  padding: 2.6rem;
}
.about__logo { width: 92px; border-radius: 10px; margin-bottom: 1.8rem; box-shadow: 0 10px 30px rgba(0,0,0,0.35); }
.about__card h3 { font-family: var(--font-display); font-weight: 500; font-size: 1.35rem; margin-bottom: 0.5rem; color: var(--gold-light); }
.about__card p { color: var(--cream-dim); font-weight: 300; margin-bottom: 1.6rem; }
.about__card p:last-child { margin-bottom: 0; }
.about__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
.pillar { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 1.8rem; }
.pillar h4 { font-family: var(--font-display); font-weight: 500; font-size: 1.15rem; margin-bottom: 0.5rem; }
.pillar p { color: var(--cream-dim); font-size: 0.92rem; font-weight: 300; }
.pillar--trust { grid-column: span 2; background: linear-gradient(140deg, rgba(120,68,29,0.4), var(--bg-card)); }
.pillar--trust h4 { margin-bottom: 0.9rem; }
.pillar--trust .ticks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem 1.4rem; }
.pillar__note { margin-top: 1rem; font-style: italic; }
.locaux { display: grid; grid-template-columns: 0.8fr 0.8fr 1.4fr; gap: 1.2rem; margin-top: 1.2rem; align-items: stretch; }
.locaux figure { border-radius: var(--radius); overflow: hidden; min-height: 300px; }
.locaux figure img { width: 100%; height: 100%; object-fit: cover; }
.locaux__text { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: var(--radius); padding: 2.2rem; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.locaux__text h3 { font-family: var(--font-display); font-weight: 400; font-size: 1.7rem; margin-bottom: 0.6rem; }
.locaux__text p:not(.kicker) { color: var(--cream-dim); font-weight: 300; margin-bottom: 1.4rem; }

/* ===== FORMULAIRES ===== */
.form { max-width: 680px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.form--panel { background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 20px; padding: 2.4rem; box-shadow: 0 30px 70px rgba(0,0,0,0.25); }
.form .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form__title { font-family: var(--font-display); font-weight: 500; font-size: 1.4rem; margin-bottom: 0.2rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form input, .form select, .form textarea {
  background: var(--bg-dark);
  border: 1px solid var(--glass-border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.95rem;
  width: 100%;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.form input::placeholder, .form textarea::placeholder { color: rgba(214,202,187,0.6); }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207,174,92,0.15); }
.form select option { background: var(--bg-dark); color: var(--cream); }
.form textarea { resize: vertical; }
.form__check { display: flex; gap: 0.8rem; align-items: flex-start; font-size: 0.92rem; color: var(--cream-dim); cursor: pointer; padding: 0.9rem 1rem; border: 1px dashed rgba(207,174,92,0.35); border-radius: 10px; }
.form__check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--gold); flex-shrink: 0; padding: 0; }
.form__check strong { color: var(--cream); font-weight: 600; }
.form__file { display: flex; flex-direction: column; gap: 0.4rem; font-size: 0.85rem; color: var(--cream-dim); }
.form__file input[type="file"] { padding: 0.7rem; cursor: pointer; }
.form__file input[type="file"]::file-selector-button {
  background: var(--tan); color: var(--bg-deep); border: none; border-radius: 6px;
  padding: 0.45rem 0.9rem; margin-right: 0.8rem; font-family: var(--font-body); font-weight: 600; cursor: pointer; transition: background 0.25s;
}
.form__file input[type="file"]::file-selector-button:hover { background: #d8c8b2; }
.form__status { text-align: center; font-size: 0.9rem; min-height: 1.2em; }
.form__status.ok { color: #7fc97f; }
.form__status.err { color: #e08585; }

/* ===== CONTACT / RAPPEL ===== */
.contact__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.contact__grid .form { margin: 0; width: 100%; }
.channels { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; border-top: 1px solid var(--glass-border); }
.channels li { display: grid; grid-template-columns: 130px 1fr; gap: 1rem; padding: 1rem 0; border-bottom: 1px solid var(--glass-border); align-items: baseline; }
.channels__label { font-size: 0.74rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.channels a, .channels span:not(.channels__label) { color: var(--cream); text-decoration: none; }
.channels a:hover { color: var(--gold-light); }
.link-btn { background: none; border: none; padding: 0; color: var(--cream); font: inherit; cursor: pointer; text-align: left; text-decoration: underline; text-decoration-color: rgba(207,174,92,0.5); text-underline-offset: 4px; }
.link-btn:hover { color: var(--gold-light); }

/* ===== FOOTER ===== */
.footer { background: #120c07; border-top: 1px solid var(--glass-border); padding: 4.5rem 2.5rem 2rem; }
.footer__grid { max-width: 1240px; margin: 0 auto 3rem; display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 2.5rem; }
.footer__logo { width: 72px; border-radius: 8px; margin-bottom: 1rem; }
.footer__brand p { color: var(--cream-dim); font-size: 0.9rem; font-weight: 300; }
.footer__col { display: flex; flex-direction: column; gap: 0.55rem; }
.footer__col h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 500; color: var(--gold); margin-bottom: 0.5rem; }
.footer__col a, .footer__col span { color: var(--cream-dim); text-decoration: none; font-size: 0.9rem; font-weight: 300; }
.footer__col a:hover { color: var(--cream); }
.footer__legal { max-width: 1240px; margin: 0 auto; padding-top: 1.5rem; border-top: 1px solid var(--glass-border); color: var(--cream-dim); font-size: 0.82rem; font-weight: 300; text-align: center; }

/* ===== CHAT WIDGET ===== */
.chat { position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 200; }
.chat__fab {
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  color: var(--brand-deep);
  box-shadow: 0 8px 28px rgba(207,174,92,0.4);
  display: flex; align-items: center; justify-content: center;
  position: relative; transition: transform 0.25s var(--ease-out);
}
.chat__fab:hover { transform: scale(1.06); }
.chat__fab-dot { position: absolute; top: 4px; right: 4px; width: 12px; height: 12px; border-radius: 50%; background: #4ade80; border: 2px solid var(--bg-dark); display: none; }
.chat__fab-dot.show { display: block; }
.chat__panel {
  position: absolute; bottom: 74px; right: 0;
  width: 360px; max-width: calc(100vw - 3rem); height: 480px; max-height: calc(100svh - 120px);
  background: var(--bg-card); border: 1px solid var(--glass-border); border-radius: 16px;
  display: flex; flex-direction: column; overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
  transform: translateY(12px) scale(0.97); opacity: 0; pointer-events: none;
  transition: transform 0.3s var(--ease-out), opacity 0.3s;
}
.chat__panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat__head { display: flex; gap: 0.8rem; align-items: center; background: linear-gradient(135deg, var(--brand), var(--bg-dark)); padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--glass-border); }
.chat__head-logo { width: 36px; border-radius: 6px; }
.chat__head-title { font-family: var(--font-display); font-weight: 600; font-size: 1.05rem; }
.chat__head-sub { font-size: 0.78rem; color: #7fc97f; }
.chat__body { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; overscroll-behavior: contain; }
.chat__msg { max-width: 82%; padding: 0.65rem 0.9rem; border-radius: 12px; font-size: 0.9rem; line-height: 1.45; white-space: pre-wrap; }
.chat__msg--bot { align-self: flex-start; background: var(--earth-1); color: var(--cream); border-bottom-left-radius: 4px; }
.chat__msg--user { align-self: flex-end; background: linear-gradient(135deg, var(--gold), #a8813d); color: var(--ink); border-bottom-right-radius: 4px; font-weight: 500; }
.chat__msg--hot { align-self: flex-start; background: rgba(74,222,128,0.14); border: 1px solid rgba(74,222,128,0.4); color: #b9f5cd; }
.chat__msg a, .chat__msg .link-btn { color: var(--gold-light); font-weight: 600; }
.chat__input-row { display: flex; gap: 0.6rem; padding: 0.8rem; border-top: 1px solid var(--glass-border); }
.chat__input-row input { flex: 1; min-width: 0; background: var(--bg-dark); border: 1px solid var(--glass-border); border-radius: 8px; padding: 0.6rem 0.9rem; color: var(--cream); font-family: var(--font-body); font-size: 0.9rem; }
.chat__input-row input:focus { outline: none; border-color: var(--gold); }
.chat__typing { align-self: flex-start; color: var(--cream-dim); font-size: 0.82rem; font-style: italic; padding: 0.4rem 0.6rem; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1240px) {
  .nav__links { gap: 1.1rem; }
  .nav__tagline { display: none; }
}
@media (max-width: 1080px) {
  .nav, .nav.scrolled { padding-left: 1.2rem; padding-right: 1.2rem; }
  .nav__links {
    position: fixed; top: 0; right: 0;
    height: 100vh; height: 100dvh;
    width: min(84vw, 360px);
    flex-direction: column; align-items: flex-start; justify-content: flex-start;
    gap: 0.2rem;
    padding: 6rem 1.8rem 2rem;
    overflow-y: auto;
    background: var(--bg-dark);
    border-left: 1px solid var(--glass-border);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    box-shadow: -20px 0 60px rgba(0,0,0,0.4);
  }
  .nav__links.open { transform: translateX(0); }
  .nav__links > a, .nav__dropdown-toggle { font-size: 1.1rem; padding: 0.7rem 0; width: 100%; text-align: left; }
  .nav__links > a::after { display: none; }
  .nav__dropdown { width: 100%; }
  .nav__menu {
    position: static; width: 100%; transform: none; box-shadow: none;
    background: rgba(0,0,0,0.18); max-height: 0; overflow: hidden; padding: 0 0.4rem;
    opacity: 1; visibility: visible;
    transition: max-height 0.4s var(--ease-out), padding 0.3s;
  }
  .nav__menu::before { display: none; }
  .nav__dropdown.open .nav__menu { transform: none; max-height: 480px; padding: 0.4rem; }
  .nav__burger { display: flex; position: relative; z-index: 2; }
  .nav__cta .btn { display: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .process { grid-template-columns: 1fr; gap: 3rem; }
  .process__sticky { position: static; }
  .feature { grid-template-columns: 1fr; gap: 2rem; margin-bottom: 4.5rem; }
  .feature--reverse .feature__media { order: 0; }
  .about { grid-template-columns: 1fr; }
  .contact__grid { grid-template-columns: 1fr; gap: 2.5rem; }
}
@media (min-width: 1081px) { .nav__links { position: relative; } }
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .nav__logo { width: 40px; }
  .nav__name { font-size: 1.2rem; }
  .story__chapters { left: 1rem; right: 1rem; bottom: 4.6rem; width: auto; }
  .chapter { padding: 1.2rem 1.3rem; }
  .chapter__title { font-size: 1.35rem; }
  .story__rail { left: 1rem; right: 1rem; bottom: 2.4rem; }
  .hero__sub { font-size: 1rem; }
  .hero__kicker { font-size: 0.66rem; letter-spacing: 0.14em; padding: 0.5rem 0.9rem; }
  .hero__scroll-hint { white-space: normal; text-align: center; width: 80%; font-size: 0.68rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 4.5rem 1.2rem; }
  .process { padding: 4.5rem 1.2rem; }
  .step { padding: 1.4rem; gap: 1rem; }
  .step__num { width: 44px; height: 44px; font-size: 1.15rem; }
  .bento { grid-template-columns: 1fr; }
  .card--wide { grid-column: auto; }
  .card--media { min-height: 320px; }
  .cta-strip { flex-direction: column; align-items: flex-start; padding: 1.8rem; }
  .terrain { padding: 4.5rem 0 3rem; }
  .terrain__head { padding: 0 1.2rem; }
  .terrain__viewport { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .terrain__viewport::-webkit-scrollbar { display: none; }
  .terrain__track { padding: 0 1.2rem; }
  .tile { height: 52vh; min-height: 300px; scroll-snap-align: center; }
  .about__card { padding: 1.8rem; }
  .about__grid { grid-template-columns: 1fr; }
  .pillar--trust { grid-column: auto; }
  .pillar--trust .ticks { grid-template-columns: 1fr; }
  .locaux { grid-template-columns: 1fr 1fr; }
  .locaux figure { min-height: 220px; }
  .locaux__text { grid-column: span 2; padding: 1.8rem; }
  .form--panel { padding: 1.6rem 1.2rem; }
  .form__row { grid-template-columns: 1fr; }
  .channels li { grid-template-columns: 1fr; gap: 0.2rem; }
  .carousel3d__stage { height: 340px; perspective: 900px; }
  .footer { padding: 3.5rem 1.2rem 2rem; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .lightbox__nav { width: 42px; height: 42px; }
  .lightbox__nav--prev { left: 0.6rem; }
  .lightbox__nav--next { right: 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
