/* L'AGENCE Intérieurs — prototype design system */

:root {
  --espresso: #51210b;
  --gold: #ab6a24;
  --cream: #eeeae3;
  --cream-dim: #e3ddd2;
  --ink: #201a15;
  --slate: #304254;
  --white: #ffffff;

  --font-serif: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --container: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-sans);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

.wrap {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  color: var(--espresso);
  margin: 0;
  letter-spacing: 0.01em;
}

a { color: inherit; text-decoration: none; }

.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  display: block;
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 15px 34px;
  border: 1px solid var(--espresso);
  color: var(--espresso);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  background: transparent;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--espresso); color: var(--cream); }

.btn-solid {
  background: var(--espresso);
  color: var(--cream);
  border-color: var(--espresso);
}
.btn-solid:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }

.btn-light {
  border-color: rgba(255,255,255,0.7);
  color: var(--white);
}
.btn-light:hover { background: var(--white); color: var(--espresso); }

/* ---------- Full-page loader ---------- */
#page-loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.55s ease, visibility 0.55s ease;
}
#page-loader.hide { opacity: 0; visibility: hidden; pointer-events: none; }
.loader-inner { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.loader-mark {
  height: 40px;
  width: auto;
  opacity: 0;
  animation: loaderMarkIn 0.7s ease forwards 0.05s;
}
.loader-line {
  position: relative;
  width: 130px;
  height: 1px;
  background: rgba(81,33,11,0.15);
  overflow: hidden;
  display: block;
}
.loader-line span {
  position: absolute;
  top: 0; left: -35%;
  width: 35%;
  height: 100%;
  background: var(--gold);
  animation: loaderSweep 1.3s ease-in-out infinite;
}
@keyframes loaderMarkIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes loaderSweep {
  0% { left: -35%; }
  55% { left: 100%; }
  100% { left: 100%; }
}

/* ---------- Header ---------- */
header.site {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(238, 234, 227, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(81,33,11,0.12);
  transition: background 0.4s ease, border-color 0.4s ease, backdrop-filter 0.4s ease;
}

/* transparent overlay variant for pages with a full-bleed photo hero */
header.site.hero-header {
  background: transparent;
  border-bottom-color: transparent;
  backdrop-filter: none;
}
header.site.hero-header .logo img {
  filter: brightness(0) invert(1);
  transition: filter 0.4s ease;
}
header.site.hero-header .nav ul a,
header.site.hero-header .nav-phone {
  color: var(--white);
  transition: color 0.4s ease;
}
header.site.hero-header .nav ul a::after { background: var(--white); }
header.site.hero-header .burger span { background: var(--white); transition: background 0.4s ease; }

header.site.hero-header.scrolled {
  background: rgba(238, 234, 227, 0.94);
  border-bottom-color: rgba(81,33,11,0.12);
  backdrop-filter: blur(8px);
}
header.site.hero-header.scrolled .logo img { filter: none; }
header.site.hero-header.scrolled .nav ul a,
header.site.hero-header.scrolled .nav-phone { color: var(--espresso); }
header.site.hero-header.scrolled .nav ul a.active { color: var(--gold); }
header.site.hero-header.scrolled .nav ul a::after { background: var(--gold); }
header.site.hero-header.scrolled .burger span { background: var(--espresso); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 14px 32px;
  max-width: var(--container);
  margin: 0 auto;
}
.nav .logo { flex-shrink: 0; }
.nav .logo img { height: 34px; width: auto; }
.nav ul {
  list-style: none;
  display: flex;
  gap: 34px;
  margin: 0 0 0 auto;
  padding: 0;
  flex-shrink: 0;
}
.nav ul a {
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--espresso);
  position: relative;
  padding-bottom: 4px;
}
.nav ul a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.25s ease;
}
.nav ul a:hover::after { width: 100%; }
.nav ul a.active { color: var(--gold); }
.nav ul a.active::after { width: 100%; }

.nav-right { display: flex; align-items: center; gap: 22px; }
.nav-phone { font-size: 0.8rem; letter-spacing: 0.04em; color: var(--espresso); }

.burger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 6px;
}
.burger span { width: 24px; height: 1px; background: var(--espresso); display: block; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: flex-end;
  color: var(--white);
  overflow: hidden;
}
.hero img.bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--espresso);
  mix-blend-mode: multiply;
  opacity: 0.62;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,9,3,0.1) 0%, rgba(20,9,3,0.05) 30%, rgba(20,9,3,0.55) 100%),
    linear-gradient(90deg, rgba(20,9,3,0.4) 0%, rgba(20,9,3,0) 55%);
}
.hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 32px 80px;
  max-width: var(--container);
  margin: 0 auto;
}
.hero-welcome {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
  opacity: 0.95;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 2px 18px rgba(0,0,0,0.5);
}
.hero-welcome strong { font-family: var(--font-serif); font-size: 1.1rem; letter-spacing: 0.3em; }
.hero h1 {
  color: var(--white);
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  margin-bottom: 26px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 6px 28px rgba(0,0,0,0.55);
}
.hero h1 em { font-style: italic; color: var(--cream); font-weight: 400; }
.hero p.sub {
  max-width: 480px;
  font-size: 1.05rem;
  font-weight: 300;
  margin-bottom: 36px;
  color: #f1ede6;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6), 0 2px 16px rgba(0,0,0,0.45);
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }

/* ---------- Section shell ---------- */
section { padding: 110px 0; }
.section-head { max-width: 640px; margin-bottom: 64px; }
.section-head h2 { font-size: clamp(2rem, 4vw, 2.9rem); }
.section-head p { margin-top: 18px; font-size: 1.02rem; color: #4a4038; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

/* ---------- Intro / brand statement ---------- */
.intro { background: var(--white); }
.intro .wrap { max-width: 880px; text-align: center; }
.intro .eyebrow { text-align: center; }
.intro p.lead {
  font-family: var(--font-serif);
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  color: var(--espresso);
  line-height: 1.45;
  margin: 0 0 28px;
}
.intro p.small { color: #55493f; font-size: 1rem; }

/* ---------- Services ---------- */
.services { background: var(--cream); }
.service-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: rgba(81,33,11,0.18);
  border: 1px solid rgba(81,33,11,0.18);
}
.service-card {
  background: var(--cream);
  padding: 48px;
  transition: background 0.25s ease;
}
.service-card:hover { background: var(--white); }
.service-card .num {
  font-family: var(--font-serif);
  font-size: 0.95rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 18px;
  display: block;
}
.service-card h3 { font-size: 1.5rem; margin-bottom: 12px; }
.service-card p { color: #4a4038; margin: 0; font-size: 0.98rem; }

/* ---------- Process ---------- */
.process { background: var(--espresso); color: var(--cream); }
.process .eyebrow { color: var(--gold); }
.process .section-head h2 { color: var(--cream); }
.process .section-head p { color: #e0cfc3; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
}
.process-step .step-no {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  color: var(--gold);
  display: block;
  margin-bottom: 18px;
}
.process-step h3 {
  color: var(--cream);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.process-step p { color: #cbb9ac; font-size: 0.92rem; margin: 0; }

.teaser-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 40px;
}
.teaser-steps div {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(238,234,227,0.3);
  padding: 14px 22px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  color: var(--cream);
}
.teaser-steps .step-no {
  font-family: var(--font-serif);
  color: var(--gold);
  font-size: 1.2rem;
}
.process .btn-solid { background: var(--gold); border-color: var(--gold); }
.process .btn-solid:hover { background: var(--cream); color: var(--espresso); border-color: var(--cream); }

/* ---------- Gallery ---------- */
.gallery { background: var(--white); }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 260px;
  gap: 14px;
}
.gallery-grid figure {
  margin: 0;
  overflow: hidden;
  position: relative;
}
.gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.gallery-grid figure:hover img { transform: scale(1.06); }
.gallery-grid .g-wide { grid-column: span 2; }
.gallery-grid .g-tall { grid-row: span 2; }
.gallery-note {
  margin-top: 26px;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  color: #8a7a6c;
  text-transform: uppercase;
}
.gallery-grid-compact { margin-bottom: 40px; }
.gallery .btn-solid { background: var(--espresso); }

/* ---------- CTA band ---------- */
.cta-band { background: var(--cream-dim); }
.cta-band .wrap { max-width: 640px; }
.cta-band h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin: 14px 0 18px; }
.cta-band p { color: #4a4038; margin-bottom: 32px; }

/* ---------- Footer extras ---------- */
.social-icons { display: flex; gap: 12px; }
.social-icons a {
  width: 36px; height: 36px;
  border: 1px solid rgba(238,234,227,0.4);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.68rem;
  letter-spacing: 0.02em;
  color: #dcc9bc;
  transition: background 0.2s ease, color 0.2s ease;
}
.social-icons a:hover { background: var(--gold); color: var(--white); border-color: var(--gold); }
.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  font-size: 0.85rem;
  color: #dcc9bc;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid rgba(238,234,227,0.15);
}
.footer-contact a { color: #dcc9bc; }
.footer-contact a:hover { color: var(--gold); }

/* ---------- Founder ---------- */
.founder { background: var(--cream); }
.founder .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 70px;
  align-items: center;
}
.founder-photo { position: relative; }
.founder-photo img { width: 100%; height: 560px; object-fit: cover; }
.founder-text .eyebrow { margin-bottom: 10px; }
.founder-text h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); margin-bottom: 22px; }
.founder-text p.body { font-size: 1.05rem; color: #4a4038; margin-bottom: 30px; }
.founder-sig { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.founder-sig img { height: 58px; width: auto; max-width: 100%; }
.founder-sig .role { font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--espresso); }

/* ---------- Testimonials ---------- */
.testimonials { background: var(--slate); color: var(--white); }
.testimonials .eyebrow { color: var(--gold); }
.testimonials .section-head h2 { color: var(--white); }
.testi-track {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.testi-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  padding: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 260px;
}
.testi-card .stars { color: var(--gold); letter-spacing: 3px; margin-bottom: 18px; font-size: 0.9rem; }
.testi-card p.quote { font-size: 0.96rem; color: #e6e9ec; margin: 0 0 20px; }
.testi-card .name { font-family: var(--font-serif); font-size: 1.1rem; color: var(--white); }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact .wrap {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 70px;
}
.contact h2 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin-bottom: 26px; }
.contact p.lead { font-size: 1.05rem; color: #4a4038; margin-bottom: 34px; max-width: 420px; }
.contact-info { list-style: none; padding: 0; margin: 0 0 34px; }
.contact-info li {
  padding: 16px 0;
  border-top: 1px solid rgba(81,33,11,0.15);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.contact-info li:last-child { border-bottom: 1px solid rgba(81,33,11,0.15); }
.contact-info .label { font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--gold); }
.contact-info .val { font-size: 1.05rem; color: var(--espresso); }
.contact-map {
  min-height: 420px;
  background: var(--cream-dim);
  display: flex;
  align-items: center;
  justify-content: center;
}
.contact-map iframe { width: 100%; height: 100%; min-height: 420px; border: 0; filter: grayscale(0.15) sepia(0.08); }

/* ---------- Footer ---------- */
footer.site {
  background: var(--espresso);
  color: #dcc9bc;
  padding: 56px 0 28px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 36px;
  border-bottom: 1px solid rgba(238,234,227,0.15);
  margin-bottom: 24px;
}
footer.site .logo img { height: 30px; filter: brightness(0) invert(1); opacity: 0.92; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px 28px; list-style: none; padding: 0; margin: 0; }
.footer-links a { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: #dcc9bc; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.76rem;
  color: #b89a86;
}

/* ---------- Simple page hero (Étapes / Portfolio) ---------- */
.page-hero { background: var(--white); padding: 116px 0 20px; }
.page-hero .wrap { display: flex; align-items: baseline; gap: 18px; flex-wrap: wrap; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.page-hero h1 .accent { color: var(--espresso); font-family: var(--font-sans); font-weight: 600; text-transform: uppercase; font-size: 0.55em; letter-spacing: 0.02em; }
.page-hero.on-cream { background: var(--cream); }

/* ---------- Étapes page ---------- */
.etapes-steps { background: var(--white); padding-top: 20px; }
.etape-row {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 60px;
  align-items: center;
  padding: 56px 0;
  border-top: 1px solid rgba(81,33,11,0.14);
}
.etape-row:last-child { border-bottom: 1px solid rgba(81,33,11,0.14); }
.etape-row:nth-child(even) .etape-visual { order: 2; }
.etape-visual img { width: 100%; height: 340px; object-fit: cover; }
.etape-visual.materials-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 340px;
}
.materials-board img { width: 100%; height: 100%; object-fit: cover; background: var(--cream-dim); }
.materials-board .mb-tall { grid-row: span 2; }
.etape-copy .step-no { font-family: var(--font-serif); font-size: 3rem; color: var(--gold); display: block; margin-bottom: 16px; }
.etape-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); text-transform: uppercase; letter-spacing: 0.03em; margin-bottom: 18px; }
.etape-copy p { color: #4a4038; font-size: 1.02rem; max-width: 480px; }

/* ---------- Portfolio page ---------- */
.portfolio-hint {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  color: #8a7a6c;
  margin: 0 0 18px;
}
.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 40px;
}
.filter-btn {
  font-family: var(--font-sans);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso);
  background: transparent;
  border: 1px solid rgba(81,33,11,0.28);
  padding: 10px 20px;
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.filter-btn:hover { border-color: var(--espresso); }
.filter-btn.active { background: var(--espresso); color: var(--cream); border-color: var(--espresso); }
.portfolio-card.filtered-out { display: none; }
.portfolio-empty {
  text-align: center;
  color: #8a7a6c;
  font-size: 0.95rem;
  padding: 60px 0;
}
.portfolio-masonry {
  columns: 3;
  column-gap: 14px;
}
.portfolio-card {
  display: block;
  margin: 0 0 14px;
  break-inside: avoid;
  perspective: 1400px;
  cursor: pointer;
}
.portfolio-card-inner {
  position: relative;
  width: 100%;
  transform-style: preserve-3d;
  transition: transform 0.75s cubic-bezier(0.4, 0, 0.2, 1);
}
.portfolio-card:hover .portfolio-card-inner,
.portfolio-card:focus-visible .portfolio-card-inner {
  transform: rotateY(180deg);
}
.portfolio-card-front {
  backface-visibility: hidden;
  overflow: hidden;
}
.portfolio-card-front img {
  width: 100%;
  display: block;
  transition: transform 0.75s ease;
}
.portfolio-card:hover .portfolio-card-front img { transform: scale(1.08); }
.portfolio-card-back {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--espresso) 0%, #331608 100%);
  color: var(--cream);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
}
.pc-num {
  font-family: var(--font-serif);
  font-size: 1.6rem;
  color: var(--gold);
  align-self: flex-end;
}
.portfolio-card-back div { display: flex; flex-direction: column; gap: 10px; }
.pc-cat {
  font-family: var(--font-serif);
  font-size: 1.3rem;
  color: var(--cream);
}
.pc-view {
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pc-view i { font-style: normal; transition: transform 0.3s ease; }
.portfolio-card:hover .pc-view i { transform: translateX(4px); }

/* ---------- Singular project page ---------- */
.projet-hero {
  position: relative;
  height: 62vh;
  min-height: 420px;
  margin-top: 78px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: var(--white);
}
.projet-hero img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.projet-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,15,11,0.15) 0%, rgba(20,15,11,0.1) 40%, rgba(20,15,11,0.85) 100%);
}
.projet-hero-inner { position: relative; z-index: 2; padding: 0 32px 46px; max-width: var(--container); margin: 0 auto; width: 100%; }
.projet-hero-inner .eyebrow { color: var(--gold); }
.projet-hero-inner h1 { color: var(--white); font-size: clamp(2.2rem, 5vw, 3.6rem); text-shadow: 0 1px 3px rgba(0,0,0,0.7), 0 6px 26px rgba(0,0,0,0.5); }

.projet-notice {
  background: var(--cream-dim);
  color: #6b5d50;
  font-size: 0.8rem;
  letter-spacing: 0.03em;
  text-align: center;
  padding: 10px 16px;
}

.projet-body { background: var(--white); }
.projet-body .wrap {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 70px;
}
.projet-text p { font-size: 1.03rem; color: #4a4038; margin: 0 0 22px; }
.projet-specs { list-style: none; margin: 0; padding: 0; border-top: 1px solid rgba(81,33,11,0.15); }
.projet-specs li {
  display: flex;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid rgba(81,33,11,0.15);
  font-size: 0.92rem;
}
.projet-specs .label { color: var(--gold); letter-spacing: 0.06em; text-transform: uppercase; font-size: 0.72rem; align-self: center; }
.projet-specs .val { color: var(--espresso); font-family: var(--font-serif); font-size: 1.05rem; }

.projet-gallery { background: var(--cream); }
.projet-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
  gap: 14px;
}
.projet-gallery-grid button {
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.projet-gallery-grid img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.projet-gallery-grid button:hover img { transform: scale(1.06); }
.projet-gallery-grid button:nth-child(1) { grid-column: span 2; grid-row: span 2; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  background: rgba(20,15,11,0.94);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}
.lightbox.open { opacity: 1; visibility: visible; }
.lightbox img { max-width: 86vw; max-height: 82vh; object-fit: contain; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox-close {
  position: absolute; top: 24px; right: 28px;
  background: none; border: 0; color: var(--cream);
  font-size: 2.2rem; line-height: 1; cursor: pointer;
  font-family: var(--font-sans); font-weight: 300;
}
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(238,234,227,0.1); border: 1px solid rgba(238,234,227,0.3);
  color: var(--cream); width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.2rem; cursor: pointer; transition: background 0.2s ease;
}
.lightbox-nav:hover { background: rgba(238,234,227,0.22); }
.lightbox-prev { left: 24px; }
.lightbox-next { right: 24px; }
.lightbox-count {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: #cbb9ac; font-size: 0.78rem; letter-spacing: 0.1em;
}

/* ---------- Contact page ---------- */
.contact-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  color: var(--white);
}
.contact-hero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contact-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--espresso);
  mix-blend-mode: multiply;
  opacity: 0.66;
}
.contact-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(20,9,3,0.15) 0%, rgba(20,9,3,0.05) 25%, rgba(20,9,3,0.5) 100%),
    linear-gradient(100deg, rgba(20,9,3,0.55) 0%, rgba(20,9,3,0.2) 42%, rgba(20,9,3,0) 65%);
}
.contact-hero-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 140px 32px 60px;
  display: grid;
  grid-template-columns: 1fr 0.85fr;
  gap: 50px;
  align-items: start;
}
.contact-hero h1 { color: var(--white); font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: 1; margin-bottom: 30px; text-shadow: 0 1px 3px rgba(0,0,0,0.75), 0 6px 28px rgba(0,0,0,0.55); }
.contact-hero-foot { margin-top: 56px; }
.contact-hero-foot .logo { display: block; margin-bottom: 20px; }
.contact-hero-foot .logo img { height: 28px; filter: brightness(0) invert(1); }
.contact-hero-foot p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #fff;
  margin: 0 0 14px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.65), 0 2px 14px rgba(0,0,0,0.5);
}
.contact-hero-foot .social-icons { margin-top: 20px; }
.contact-form-panel {
  background: var(--white);
  color: var(--ink);
  padding: 40px;
}
.form-title { font-size: 1.3rem; margin-bottom: 10px; }
.form-sub { color: #6b5d50; font-size: 0.92rem; margin-bottom: 28px; }
.project-form { display: flex; flex-direction: column; gap: 18px; }
.project-form label { display: flex; flex-direction: column; gap: 8px; font-size: 0.82rem; letter-spacing: 0.03em; color: var(--espresso); }
.project-form label em { color: var(--gold); font-style: normal; }
.project-form input,
.project-form select,
.project-form textarea {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  padding: 12px 14px;
  border: 1px solid rgba(81,33,11,0.25);
  background: var(--cream);
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s ease;
}
.project-form input:focus,
.project-form select:focus,
.project-form textarea:focus { border-color: var(--gold); }
.project-form textarea { resize: vertical; }
.project-form .btn { margin-top: 6px; align-self: flex-start; }
.form-success { padding: 20px; background: var(--cream-dim); border: 1px solid rgba(81,33,11,0.15); color: var(--espresso); font-size: 0.95rem; }

/* ---------- Mobile ---------- */
@media (max-width: 980px) {
  .service-grid { grid-template-columns: 1fr; }
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 48px; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 220px; }
  .gallery-grid .g-wide { grid-column: span 2; }
  .founder .wrap { grid-template-columns: 1fr; }
  .founder-photo img { height: 380px; }
  .testi-track { grid-template-columns: 1fr; }
  .contact .wrap { grid-template-columns: 1fr; }
  .etape-row { grid-template-columns: 1fr; gap: 26px; }
  .etape-row:nth-child(even) .etape-visual { order: 0; }
  .portfolio-masonry { columns: 2; }
  .contact-hero-inner { grid-template-columns: 1fr; padding-top: 110px; }
  .projet-body .wrap { grid-template-columns: 1fr; gap: 34px; }
  .projet-gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; }
  .projet-gallery-grid button:nth-child(1) { grid-column: span 2; grid-row: span 1; }
  .lightbox-nav { width: 40px; height: 40px; }
}

@media (max-width: 760px) {
  .nav ul, .nav-phone, .nav-right .btn { display: none; }
  .burger { display: flex; }
  .nav { gap: 12px; }
  .nav.open ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--cream);
    padding: 20px 32px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(81,33,11,0.12);
  }
  header.site.hero-header .nav.open ul a { color: var(--espresso); }
  header.site.hero-header .nav.open ul a::after { background: var(--gold); }
  .hero { min-height: 100vh; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  section { padding: 72px 0; }
  .wrap { padding: 0 20px; }
  .gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 260px; }
  .gallery-grid .g-wide, .gallery-grid .g-tall { grid-column: span 1; grid-row: span 1; }
  .footer-top { flex-direction: column; align-items: flex-start; }
  .portfolio-masonry { columns: 1; }
  .etape-visual.materials-board { height: auto; grid-template-columns: repeat(3, 1fr); }
  .etape-visual.materials-board .mb-tall { grid-row: span 1; }
  .etape-visual img { height: 260px; }
  .projet-hero { height: 46vh; min-height: 320px; }
  .projet-gallery-grid { grid-template-columns: 1fr; grid-auto-rows: 220px; }
  .projet-gallery-grid button:nth-child(1) { grid-column: span 1; grid-row: span 1; }
  .lightbox img { max-width: 92vw; max-height: 70vh; }
  .lightbox-close { top: 14px; right: 16px; font-size: 1.8rem; }
  .lightbox-nav { width: 38px; height: 38px; font-size: 1rem; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
