/* DEPITRE DEVELOPPEMENT — Editorial Luxury, atelier de menuisier
 * Palette bois noyer / crème / laiton
 * Fonts: Fraunces (display serif) + Geist (body sans) + Geist Mono (eyebrows)
 * --------------------------------------------------------------------- */

:root {
  /* Palette — brand SDD vert sapin #245743 + crème + accent laiton */
  --ink: #0F1A14;
  --ink-soft: #2A3A30;
  --brand: #245743;          /* vert sapin SDD (band flyer) */
  --brand-deep: #143828;     /* vert nuit */
  --brand-soft: #3F7659;     /* vert sage */
  --espresso: #245743;       /* alias compat — pointe vers brand */
  --espresso-deep: #143828;
  --noyer: #6D4C2D;
  --noyer-soft: #8B6841;
  --laiton: #B08948;
  --laiton-deep: #8E6A2F;
  --cream: #F7F3EA;
  --cream-deep: #EBE3D0;
  --cream-warm: #F0E8D6;
  --paper: #FDFBF7;
  --rule: #D7CCB5;
  --rule-soft: #E3D9C3;
  --muted: #5B6760;
  --error: #8A2E1A;

  /* Radius */
  --radius-xs: 6px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;
  --radius-pill: 999px;

  /* Shadow */
  --shadow-soft: 0 1px 2px rgba(26, 19, 13, 0.04), 0 8px 24px rgba(26, 19, 13, 0.06);
  --shadow-card: 0 1px 1px rgba(255, 255, 255, 0.4) inset, 0 1px 2px rgba(26, 19, 13, 0.06), 0 20px 48px rgba(26, 19, 13, 0.08);
  --shadow-strong: 0 30px 80px rgba(26, 19, 13, 0.18);
  --shadow-hover: 0 1px 1px rgba(255, 255, 255, 0.5) inset, 0 4px 8px rgba(26, 19, 13, 0.08), 0 32px 64px rgba(26, 19, 13, 0.14);

  /* Motion */
  --ease-luxury: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-slow: 800ms;
  --duration-med: 600ms;
  --duration-fast: 300ms;

  /* Layout */
  --max-w: 1280px;
  --pad-block: clamp(80px, 12vh, 160px);
  --pad-inline: clamp(20px, 4vw, 56px);
}

/* ============== RESET ============== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, p, ul, ol, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; background: none; border: 0; color: inherit; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--laiton); color: var(--paper); }

/* ============== BASE ============== */
body {
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--cream);
  font-feature-settings: "ss01", "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

@media (min-width: 1024px) {
  body { font-size: 18px; }
}

/* Fallback texture for img not yet generated (FLUX placeholder) */
.hero__visual,
.page-hero__visual-frame,
.gallery__item-frame,
.material__visual,
.service-card__visual {
  background-image: url("../img/placeholder-wood.svg");
  background-size: cover;
  background-position: center;
}

/* Wood-grain noise texture overlay (subtle) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ============== TYPO ============== */
.display, h1, h2, h3 {
  font-family: 'Fraunces', 'Cormorant Garamond', Georgia, serif;
  font-weight: 300;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variation-settings: "SOFT" 50, "WONK" 0;
}

h1 { font-size: clamp(56px, 9vw, 112px); line-height: 1.0; letter-spacing: -0.03em; }
h2 { font-size: clamp(36px, 5vw, 64px); line-height: 1.05; }
h3 { font-size: clamp(22px, 2.4vw, 32px); line-height: 1.2; font-weight: 400; }
h4 { font-family: 'Geist', sans-serif; font-size: 18px; font-weight: 600; line-height: 1.3; }

.display em, h1 em, h2 em, h3 em {
  font-style: italic;
  color: var(--noyer);
  font-variation-settings: "SOFT" 100;
}

.eyebrow {
  font-family: 'Geist Mono', 'JetBrains Mono', ui-monospace, monospace;
  font-size: 11px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.eyebrow::after {
  content: "";
  width: 56px;
  height: 1px;
  background: var(--laiton);
}

.eyebrow.no-rule::after { display: none; }

@media (min-width: 1024px) {
  .eyebrow { font-size: 12px; }
}

p { color: var(--ink-soft); max-width: 62ch; }
p.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.55; color: var(--ink); max-width: 56ch; }
strong { color: var(--ink); font-weight: 600; }

/* ============== LAYOUT ============== */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding-left: var(--pad-inline);
  padding-right: var(--pad-inline);
  position: relative;
  z-index: 2;
}

.section { padding-block: var(--pad-block); position: relative; z-index: 2; }
.section--cream { background: var(--cream); }
.section--cream-deep { background: var(--cream-deep); }
.section--espresso { background: var(--espresso); color: var(--cream); }
.section--espresso h1, .section--espresso h2, .section--espresso h3 { color: var(--cream); }
.section--espresso p { color: rgba(248, 243, 234, 0.78); }
.section--espresso .eyebrow { color: rgba(248, 243, 234, 0.5); }

/* ============== BUTTONS ============== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px 14px 24px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
  transition: all var(--duration-med) var(--ease-luxury);
  cursor: pointer;
  letter-spacing: -0.005em;
  will-change: transform;
}

.btn__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-pill);
  transition: transform var(--duration-med) var(--ease-luxury);
  flex-shrink: 0;
}

.btn__icon svg { width: 14px; height: 14px; }

.btn--primary {
  background: var(--espresso);
  color: var(--cream);
}

.btn--primary .btn__icon {
  background: rgba(248, 243, 234, 0.14);
  color: var(--cream);
}

.btn--primary:hover {
  background: var(--espresso-deep);
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(58, 36, 24, 0.28);
}

.btn--primary:hover .btn__icon {
  transform: translateX(4px);
  background: rgba(248, 243, 234, 0.22);
}

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn--ghost .btn__icon {
  background: var(--cream-deep);
}

.btn--ghost:hover {
  border-color: var(--laiton);
  background: var(--paper);
}

.btn--ghost:hover .btn__icon {
  background: var(--laiton);
  color: var(--paper);
  transform: translateX(4px);
}

.btn--brass {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--laiton);
  padding: 10px 18px;
  font-size: 13px;
}

.btn--brass:hover {
  background: var(--laiton);
  color: var(--paper);
}

.btn:active { transform: scale(0.98); }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 500;
  position: relative;
  padding-bottom: 4px;
  transition: color var(--duration-med) var(--ease-luxury);
}

.link-arrow::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--rule);
  transition: background var(--duration-med) var(--ease-luxury);
}

.link-arrow svg { transition: transform var(--duration-med) var(--ease-luxury); width: 14px; height: 14px; }

.link-arrow:hover { color: var(--noyer); }
.link-arrow:hover::after { background: var(--laiton); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ============== HEADER FLOATING ============== */
.site-header {
  position: fixed;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 100;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding: 8px 8px 8px 24px;
  background: rgba(253, 251, 247, 0.78);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--rule);
  border-radius: var(--radius-pill);
  box-shadow: var(--shadow-soft);
  pointer-events: auto;
  max-width: calc(100vw - 32px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 28px;
  border-right: 1px solid var(--rule);
  flex-shrink: 0;
}

.brand__mark {
  width: 44px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.brand__mark img {
  height: 30px;
  width: auto;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(28%) sepia(34%) saturate(656%) hue-rotate(110deg) brightness(91%) contrast(85%);
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand__name {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.brand__sub {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav__link {
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
  border-radius: var(--radius-pill);
  transition: all var(--duration-med) var(--ease-luxury);
  position: relative;
}

.nav__link:hover, .nav__link.is-active { color: var(--ink); background: rgba(176, 137, 72, 0.08); }

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: var(--espresso);
  color: var(--cream);
  font-size: 14px;
  font-weight: 500;
  transition: all var(--duration-med) var(--ease-luxury);
}

.header-cta svg { width: 14px; height: 14px; }
.header-cta:hover { background: var(--espresso-deep); }

.menu-btn {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: var(--radius-pill);
  background: var(--cream-deep);
  align-items: center;
  justify-content: center;
  position: relative;
}

.menu-btn span {
  position: absolute;
  width: 18px;
  height: 1.5px;
  background: var(--ink);
  border-radius: 1px;
  transition: transform var(--duration-med) var(--ease-luxury), opacity var(--duration-fast) var(--ease-luxury);
}

.menu-btn span:nth-child(1) { transform: translateY(-5px); }
.menu-btn span:nth-child(2) { transform: translateY(0); }
.menu-btn span:nth-child(3) { transform: translateY(5px); }

body.nav-open .menu-btn span:nth-child(1) { transform: translateY(0) rotate(45deg); }
body.nav-open .menu-btn span:nth-child(2) { opacity: 0; }
body.nav-open .menu-btn span:nth-child(3) { transform: translateY(0) rotate(-45deg); }

@media (max-width: 980px) {
  .nav, .header-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .brand { padding-right: 16px; border-right: 0; }
  .site-header__inner { padding: 6px 6px 6px 16px; }
}

/* ============== MOBILE OVERLAY ============== */
.mobile-overlay {
  position: fixed;
  inset: 0;
  z-index: 99;
  background: rgba(253, 251, 247, 0.94);
  backdrop-filter: blur(28px) saturate(160%);
  -webkit-backdrop-filter: blur(28px) saturate(160%);
  display: flex;
  flex-direction: column;
  padding: 110px var(--pad-inline) 40px;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--duration-med) var(--ease-luxury), visibility var(--duration-med);
}

body.nav-open .mobile-overlay {
  opacity: 1;
  visibility: visible;
}

.mobile-overlay__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 40px;
}

.mobile-overlay__nav a {
  font-family: 'Fraunces', serif;
  font-size: 36px;
  font-weight: 300;
  color: var(--ink);
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
  transform: translateY(20px);
  opacity: 0;
  transition: transform var(--duration-slow) var(--ease-luxury), opacity var(--duration-slow);
}

body.nav-open .mobile-overlay__nav a {
  transform: translateY(0);
  opacity: 1;
}

body.nav-open .mobile-overlay__nav a:nth-child(1) { transition-delay: 100ms; }
body.nav-open .mobile-overlay__nav a:nth-child(2) { transition-delay: 160ms; }
body.nav-open .mobile-overlay__nav a:nth-child(3) { transition-delay: 220ms; }
body.nav-open .mobile-overlay__nav a:nth-child(4) { transition-delay: 280ms; }
body.nav-open .mobile-overlay__nav a:nth-child(5) { transition-delay: 340ms; }
body.nav-open .mobile-overlay__nav a:nth-child(6) { transition-delay: 400ms; }

.mobile-overlay__contact {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ============== HERO ============== */
.hero {
  padding-top: 140px;
  padding-bottom: var(--pad-block);
  background: var(--cream);
  position: relative;
  z-index: 2;
  overflow: hidden;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 64px;
  align-items: end;
}

@media (min-width: 1024px) {
  .hero__grid {
    grid-template-columns: 7fr 6fr;
    gap: 80px;
    align-items: center;
  }
}

.hero__text { max-width: 720px; }
.hero__eyebrow { margin-bottom: 36px; }

.hero__title {
  margin-bottom: 32px;
}

.hero__lead {
  margin-bottom: 40px;
  max-width: 48ch;
}

.hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 56px;
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--rule);
}

.hero__meta-item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hero__meta-label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__meta-val {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Hero image — double bezel */
.hero__visual-shell {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: 32px;
  padding: 10px;
  position: relative;
  box-shadow: var(--shadow-soft);
}

.hero__visual-shell::after {
  content: "";
  position: absolute;
  bottom: -16px;
  right: -16px;
  width: 80px;
  height: 80px;
  border: 1px solid var(--laiton);
  border-radius: 18px;
  z-index: -1;
}

.hero__visual {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: var(--noyer);
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.hero__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
  transition: transform 4s ease-out;
}

.hero__visual:hover img { transform: scale(1.04); }

.hero__visual-caption {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(26, 19, 13, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 10px 16px;
  border-radius: var(--radius-pill);
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cream);
}

@media (max-width: 1023px) {
  .hero { padding-top: 120px; }
  .hero__meta { gap: 24px; }
  .hero__visual-shell { max-width: 480px; margin: 0 auto; }
}

/* ============== STATS ============== */
.stats {
  background: var(--espresso);
  color: var(--cream);
  padding-block: var(--pad-block);
  position: relative;
  overflow: hidden;
}

.stats::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--laiton) 50%, transparent);
  opacity: 0.4;
}

.stats__header { margin-bottom: 64px; max-width: 720px; }
.stats__header h2 { color: var(--cream); margin-top: 24px; }

.stats__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .stats__grid { grid-template-columns: repeat(4, 1fr); }
}

.stat {
  padding: 36px 32px;
  border-top: 1px solid rgba(217, 205, 182, 0.12);
  position: relative;
}

@media (min-width: 1024px) {
  .stat { border-top: 0; border-left: 1px solid rgba(217, 205, 182, 0.12); padding: 0 32px; }
  .stat:first-child { padding-left: 0; border-left: 0; }
}

.stat__value {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(56px, 7vw, 88px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--cream);
  margin-bottom: 18px;
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat__value sup, .stat__value small {
  font-size: 0.35em;
  color: var(--laiton);
  font-weight: 400;
  letter-spacing: 0;
  align-self: flex-start;
  margin-top: 8px;
}

.stat__label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 10px;
}

.stat__caption {
  font-size: 14px;
  color: rgba(248, 243, 234, 0.72);
  line-height: 1.5;
  max-width: 26ch;
}

/* ============== SERVICES ============== */
.services__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-bottom: 80px;
}

@media (min-width: 1024px) {
  .services__header { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
}

.services__header h2 { max-width: 16ch; }
.services__header p { max-width: 48ch; }

.services__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .services__grid {
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: minmax(280px, auto);
    gap: 28px;
  }
  .service-card:nth-child(1) { grid-column: span 7; grid-row: span 2; }
  .service-card:nth-child(2) { grid-column: span 5; }
  .service-card:nth-child(3) { grid-column: span 5; }
}

.service-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 10px;
  display: flex;
  flex-direction: column;
  transition: transform var(--duration-med) var(--ease-luxury), box-shadow var(--duration-med) var(--ease-luxury);
  position: relative;
  overflow: hidden;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.service-card__inner {
  background: var(--cream);
  border-radius: var(--radius-md);
  padding: 36px 32px 32px;
  flex: 1;
  display: flex;
  flex-direction: column;
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

.service-card__num {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.service-card__num::after {
  content: "";
  width: 32px;
  height: 1px;
  background: var(--laiton);
  opacity: 0.6;
}

.service-card__title {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 16px;
  max-width: 14ch;
}

.service-card__desc {
  color: var(--ink-soft);
  margin-bottom: 28px;
  font-size: 16px;
}

.service-card__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.service-card__list li {
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  padding: 6px 12px;
  background: var(--cream-deep);
  border-radius: var(--radius-pill);
  border: 1px solid var(--rule);
}

.service-card__link {
  margin-top: auto;
  align-self: flex-start;
}

.service-card--lead .service-card__inner {
  background: var(--espresso);
  color: var(--cream);
}

.service-card--lead .service-card__title { color: var(--cream); }
.service-card--lead .service-card__desc { color: rgba(248, 243, 234, 0.78); }
.service-card--lead .service-card__list li {
  background: rgba(248, 243, 234, 0.08);
  border-color: rgba(248, 243, 234, 0.15);
  color: rgba(248, 243, 234, 0.7);
}
.service-card--lead .link-arrow { color: var(--cream); }
.service-card--lead .link-arrow::after { background: rgba(248, 243, 234, 0.25); }
.service-card--lead .link-arrow:hover { color: var(--laiton); }
.service-card--lead .link-arrow:hover::after { background: var(--laiton); }

/* Lead card optional image embedded */
.service-card__visual {
  margin: 0 -32px 28px;
  height: 220px;
  overflow: hidden;
  border-radius: var(--radius-md);
}

.service-card--lead .service-card__visual {
  margin: 0 -32px 28px;
}

.service-card__visual img { width: 100%; height: 100%; object-fit: cover; }

@media (min-width: 1024px) {
  .service-card--lead .service-card__visual { height: 320px; }
}

/* ============== REALIZATIONS / GALLERY ============== */
.realizations__header {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 64px;
}

@media (min-width: 1024px) {
  .realizations__header { grid-template-columns: 1fr 1fr; align-items: end; }
}

.gallery {
  columns: 1;
  column-gap: 24px;
}

@media (min-width: 640px) { .gallery { columns: 2; } }
@media (min-width: 1024px) { .gallery { columns: 3; column-gap: 28px; } }

.gallery__item {
  break-inside: avoid;
  margin-bottom: 24px;
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 8px;
  transition: transform var(--duration-med) var(--ease-luxury);
}

.gallery__item:hover { transform: translateY(-3px); }

.gallery__item-frame {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--noyer);
  position: relative;
}

.gallery__item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform var(--duration-slow) var(--ease-luxury);
}

.gallery__item:hover img { transform: scale(1.03); }

.gallery__item-meta {
  padding: 18px 18px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.gallery__item-title {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--ink);
}

.gallery__item-tag {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ============== MANIFESTO ============== */
.manifesto {
  background: var(--cream-deep);
}

.manifesto__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .manifesto__grid { grid-template-columns: 5fr 7fr; gap: 96px; }
}

.manifesto__title { margin-bottom: 24px; }
.manifesto__intro p { font-size: 18px; line-height: 1.6; }

.manifesto__points {
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.manifesto__point {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 32px;
  align-items: start;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--rule);
}

.manifesto__point:last-child { border-bottom: 0; padding-bottom: 0; }

.manifesto__point-num {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 48px;
  color: var(--laiton);
  line-height: 0.9;
  letter-spacing: -0.03em;
  min-width: 56px;
}

.manifesto__point h3 { margin-bottom: 12px; }
.manifesto__point p { color: var(--ink-soft); }

/* ============== TESTIMONIALS ============== */
.testimonials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }
}

.testimonial {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 8px;
}

.testimonial__inner {
  padding: 40px 36px 32px;
  background: var(--cream);
  border-radius: var(--radius-md);
  position: relative;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.5) inset;
}

.testimonial__quote-mark {
  font-family: 'Fraunces', serif;
  font-size: 56px;
  font-weight: 300;
  line-height: 1;
  color: var(--laiton);
  margin-bottom: 8px;
}

.testimonial__text {
  font-family: 'Fraunces', serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 300;
  font-style: italic;
  line-height: 1.4;
  color: var(--ink);
  margin-bottom: 32px;
  font-variation-settings: "SOFT" 100;
}

.testimonial__author {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}

.testimonial__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--espresso);
  color: var(--laiton);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Fraunces', serif;
  font-size: 15px;
  font-weight: 400;
}

.testimonial__name { font-weight: 600; color: var(--ink); font-size: 15px; line-height: 1.2; }
.testimonial__role { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ============== SIGNATURE SECTION (UNIQUE) ============== */
.signature {
  background: var(--espresso);
  color: var(--cream);
  padding-block: clamp(80px, 10vh, 140px);
  position: relative;
  overflow: hidden;
}

.signature::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--laiton) 50%, transparent);
}

.signature__inner {
  text-align: center;
  max-width: 760px;
  margin: 0 auto;
}

.signature__years {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  letter-spacing: 0.3em;
  color: var(--laiton);
  text-transform: uppercase;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

.signature__years::before,
.signature__years::after {
  content: "";
  width: 40px;
  height: 1px;
  background: var(--laiton);
  opacity: 0.7;
}

.signature__text {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-style: italic;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.2;
  color: var(--cream);
  font-variation-settings: "SOFT" 100;
}

.signature__sub {
  margin-top: 24px;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(176, 137, 72, 0.85);
}

/* ============== FOOTER ============== */
.footer {
  background: var(--espresso-deep);
  color: var(--cream);
  padding-top: 80px;
  padding-bottom: 32px;
}

.footer__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(217, 205, 182, 0.15);
}

@media (min-width: 768px) {
  .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; }
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.footer__brand-name {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--cream);
  letter-spacing: -0.01em;
}

.footer__brand-tag {
  color: rgba(248, 243, 234, 0.6);
  font-size: 15px;
  max-width: 38ch;
}

.footer__col h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 24px;
  font-weight: 500;
}

.footer__col ul { display: flex; flex-direction: column; gap: 14px; }
.footer__col a {
  color: rgba(248, 243, 234, 0.78);
  transition: color var(--duration-fast) var(--ease-luxury);
  font-size: 15px;
}

.footer__col a:hover { color: var(--laiton); }

.footer__col p {
  color: rgba(248, 243, 234, 0.78);
  font-size: 15px;
  margin-bottom: 10px;
}

.footer__bottom {
  padding-top: 32px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
  color: rgba(248, 243, 234, 0.55);
}

.footer__bottom a:hover { color: var(--laiton); }

/* ============== REVEAL ANIMATIONS ============== */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity var(--duration-slow) var(--ease-luxury), transform var(--duration-slow) var(--ease-luxury);
  will-change: opacity, transform;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal[data-delay="100"] { transition-delay: 100ms; }
.reveal[data-delay="200"] { transition-delay: 200ms; }
.reveal[data-delay="300"] { transition-delay: 300ms; }
.reveal[data-delay="400"] { transition-delay: 400ms; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}

/* ============== INNER PAGES (service detail) ============== */
.page-hero {
  padding-top: 140px;
  padding-bottom: 80px;
  background: var(--cream);
  position: relative;
  z-index: 2;
}

.page-hero__inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
}

@media (min-width: 1024px) {
  .page-hero__inner { grid-template-columns: 1fr 1fr; gap: 80px; align-items: end; }
}

.page-hero h1 { font-size: clamp(48px, 7vw, 96px); margin-bottom: 28px; max-width: 14ch; }
.page-hero p.lead { margin-bottom: 36px; }

.breadcrumb {
  display: flex;
  gap: 8px;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 36px;
}

.breadcrumb a { color: var(--muted); transition: color var(--duration-fast) var(--ease-luxury); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb__sep { color: var(--laiton); }
.breadcrumb__current { color: var(--ink); }

.page-hero__visual {
  border-radius: 32px;
  overflow: hidden;
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  padding: 10px;
  position: relative;
}

.page-hero__visual-frame {
  border-radius: 22px;
  overflow: hidden;
  aspect-ratio: 5 / 4;
  position: relative;
}

.page-hero__visual img { width: 100%; height: 100%; object-fit: cover; }

/* Materials block */
.materials {
  background: var(--cream-deep);
  padding-block: var(--pad-block);
}

.materials__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) { .materials__grid { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.material {
  background: var(--paper);
  border-radius: var(--radius-lg);
  padding: 8px;
  border: 1px solid var(--rule);
}

.material__visual {
  height: 220px;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--noyer);
}

.material__visual img { width: 100%; height: 100%; object-fit: cover; }

.material__body { padding: 28px 24px; }
.material__name {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 300;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}

.material__sci {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 16px;
}

.material__desc { color: var(--ink-soft); font-size: 15px; line-height: 1.6; }

/* Process steps */
.process__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 64px;
}

@media (min-width: 768px) { .process__list { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .process__list { grid-template-columns: repeat(4, 1fr); gap: 28px; } }

.step {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  min-height: 220px;
}

.step__num {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 48px;
  color: var(--laiton);
  line-height: 1;
  letter-spacing: -0.03em;
}

.step h3 {
  font-size: 22px;
  line-height: 1.2;
  color: var(--ink);
}

.step p { color: var(--ink-soft); font-size: 15px; line-height: 1.5; }

/* RGE callout */
.rge-callout {
  background: var(--cream-deep);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
  margin-top: 64px;
}

@media (min-width: 1024px) { .rge-callout { grid-template-columns: auto 1fr auto; padding: 56px; gap: 48px; } }

.rge-callout__badge {
  width: 96px;
  height: 96px;
  border-radius: 16px;
  background: var(--espresso);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}

.rge-callout__badge::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid var(--laiton);
  border-radius: 11px;
}

.rge-callout__badge span {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-weight: 300;
  color: var(--laiton);
  letter-spacing: -0.02em;
}

.rge-callout h3 { margin-bottom: 8px; }
.rge-callout p { font-size: 16px; }

/* About */
.timeline {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 64px;
}

.timeline__item {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  padding: 32px 0;
  border-bottom: 1px solid var(--rule);
}

@media (min-width: 768px) { .timeline__item { grid-template-columns: 180px 1fr; gap: 48px; } }

.timeline__year {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 48px;
  color: var(--laiton);
  letter-spacing: -0.02em;
  line-height: 1;
}

.timeline__body h3 { font-size: 24px; line-height: 1.2; margin-bottom: 8px; }
.timeline__body p { color: var(--ink-soft); }

/* Contact page */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 56px;
}

@media (min-width: 1024px) { .contact__grid { grid-template-columns: 5fr 7fr; gap: 96px; } }

.contact__info {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.contact__info-block h4 {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--laiton);
  margin-bottom: 16px;
}

.contact__info-val {
  font-family: 'Fraunces', serif;
  font-size: 28px;
  font-weight: 300;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.2;
  word-break: break-word;
}

.contact__info-val a { color: var(--ink); transition: color var(--duration-fast) var(--ease-luxury); }
.contact__info-val a:hover { color: var(--noyer); }

.contact__form {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
}

.field {
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field label {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}

.field input, .field textarea, .field select {
  background: var(--cream);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 14px 18px;
  font-size: 16px;
  color: var(--ink);
  font-family: 'Geist', sans-serif;
  transition: border-color var(--duration-fast) var(--ease-luxury), background var(--duration-fast) var(--ease-luxury);
  outline: none;
}

.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--laiton);
  background: var(--paper);
}

.field textarea { min-height: 120px; resize: vertical; }

.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field--row { grid-template-columns: 1fr; } }

.form-meta {
  margin-top: 24px;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.form-submit {
  margin-top: 24px;
  width: 100%;
  justify-content: space-between;
  padding: 16px 16px 16px 28px;
}

/* Mentions legales */
.legal-content { max-width: 760px; }
.legal-content h2 { margin-top: 64px; margin-bottom: 20px; font-size: 28px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p { margin-bottom: 16px; color: var(--ink-soft); }
.legal-content a { color: var(--noyer); border-bottom: 1px solid var(--rule); }
.legal-content a:hover { color: var(--ink); }
