/* ==========================================================================
   LAETITIA DEMOL — Adapted from TerraElix Hero & 3-Panel Editorial Spec
   Pure Static CSS (Zero React/Tailwind build needed — Debian Nginx ready)
   Fonts : DM Sans (400, 500, -0.05em) + Plus Jakarta Sans (400, 500, -0.03em)
   ========================================================================== */

:root {
  --panel-1: #ECEDEC;
  --panel-2: #FEFDF9;
  --panel-3: #0E110E;
  --ink: #141714;
  --ink-dim: rgba(20, 23, 20, 0.72);
  --forest: #1B4D3E;
  --line: rgba(20, 23, 20, 0.12);
  --font-display: "DM Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, sans-serif;
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  background: var(--panel-2);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}

body { margin: 0; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
p { text-align: left; }

.container {
  width: min(1280px, calc(100% - clamp(32px, 6vw, 96px)));
  margin-inline: auto;
}

/* ==========================================================================
   KEYFRAMES (Exact TerraElix motion language)
   ========================================================================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}
@keyframes wordReveal {
  from { opacity: 0; transform: translateY(100%); filter: blur(4px); }
  to { opacity: 1; transform: translateY(0); filter: blur(0); }
}

.animate-fade-up { animation: fadeUp 0.8s var(--ease-expo) both; }
.animate-fade-in { animation: fadeIn 0.7s var(--ease-expo) both; }
.animate-slide-left { animation: slideInLeft 0.8s var(--ease-expo) both; }
.animate-slide-right { animation: slideInRight 0.8s var(--ease-expo) both; }
.animate-scale-in { animation: scaleIn 1s var(--ease-expo) both; }
.animate-word-reveal > span { display: inline-block; animation: wordReveal 0.7s var(--ease-expo) both; }

.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }
.delay-400 { animation-delay: 0.4s; }
.delay-600 { animation-delay: 0.6s; }
.delay-700 { animation-delay: 0.7s; }
.delay-900 { animation-delay: 0.9s; }
.delay-1000 { animation-delay: 1.0s; }
.delay-1100 { animation-delay: 1.1s; }

/* ==========================================================================
   FULL-VIEWPORT HERO SHELL
   ========================================================================== */
.hero-shell {
  position: relative;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #ffffff;
}

.hero-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(180deg, rgba(10, 18, 13, 0.56) 0%, rgba(10, 18, 13, 0.34) 45%, rgba(10, 18, 13, 0.62) 100%),
    url("./assets/images/hero-jardin.jpg") center / cover no-repeat;
}

/* Navbar */
.hero-nav {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 20px clamp(20px, 3vw, 40px);
}

.nav-brand {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.05em;
  color: #ffffff;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(20px, 2.6vw, 40px);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.9);
}

.nav-links a:hover { color: #ffffff; text-decoration: underline; text-underline-offset: 5px; }

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

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.92);
  transition: background 180ms var(--ease-expo);
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.16); }

.nav-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.45);
  flex-shrink: 0;
}
.nav-avatar img { width: 100%; height: 100%; object-fit: cover; }

.menu-toggle {
  display: none;
  background: transparent;
  border: none;
  color: #ffffff;
  cursor: pointer;
  padding: 6px;
}

/* Mobile overlay menu */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(10, 14, 11, 0.94);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 26px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 260ms var(--ease-expo);
}
.mobile-menu.is-open { opacity: 1; pointer-events: auto; }
.mobile-menu a { font-family: var(--font-display); font-size: 1.75rem; color: #ffffff; letter-spacing: -0.03em; }
.mobile-phone { color: #a8d5ba !important; margin-top: 8px; }
.mobile-close {
  position: absolute;
  top: 20px;
  right: 24px;
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
}

/* Hero Main Content */
.hero-main {
  position: relative;
  z-index: 10;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(16px, 2.5vw, 32px) clamp(20px, 3vw, 40px) clamp(20px, 3vw, 36px);
}

.hero-headline {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.05em;
  font-size: clamp(44px, 7.6vw, 118px);
  line-height: 0.9;
}

.headline-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.22em;
}

.word-mask {
  display: inline-block;
  overflow: hidden;
  padding-bottom: 0.06em;
}

.word-mask .dim { color: rgba(255, 255, 255, 0.45); }

.inline-hero-img {
  height: clamp(48px, 6.8vw, 102px);
  width: clamp(84px, 11.5vw, 180px);
  object-fit: cover;
  border-radius: 10px;
  margin-left: 0.14em;
  border: 1px solid rgba(255, 255, 255, 0.35);
}

.hero-cta-row {
  margin-top: clamp(22px, 3vw, 44px);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(18px, 2.8vw, 44px);
}

.cta-black {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: clamp(240px, 22vw, 300px);
  height: clamp(54px, 4.4vw, 66px);
  padding-inline: 24px;
  background: #0a0c0a;
  color: #ffffff;
  border-radius: 6px;
  border: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: clamp(0.98rem, 1.25vw, 1.18rem);
  letter-spacing: -0.03em;
  cursor: pointer;
  transition: background 220ms var(--ease-expo), transform 220ms var(--ease-expo);
}
.cta-black:hover { background: var(--forest); transform: translateY(-2px); }

.cta-desc {
  margin: 0;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.92);
  font-size: clamp(0.9rem, 1.05vw, 1.04rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}

/* ==========================================================================
   BOTTOM 3-PANEL STRIP (2fr / 1fr / 2fr)
   ========================================================================== */
.bottom-panels {
  position: relative;
  z-index: 10;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
}

.panel {
  position: relative;
  padding: clamp(18px, 1.8vw, 26px) clamp(20px, 2.4vw, 32px);
  min-height: 158px;
  overflow: hidden;
}

/* Panel 1 */
.panel-1 {
  background: var(--panel-1);
  color: var(--ink);
  display: flex;
  align-items: center;
}

.panel-1-copy {
  position: relative;
  z-index: 2;
  max-width: 340px;
}

.panel-1-title {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.panel-1-link {
  font-size: clamp(0.95rem, 1.1vw, 1.06rem);
  letter-spacing: -0.02em;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.panel-1-link:hover { color: var(--forest); }

.panel-1-art {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 100%;
  width: 44%;
  object-fit: cover;
  mix-blend-mode: multiply;
  opacity: 0.42;
  pointer-events: none;
}

/* Panel 2 — Auto-Rotating 4-Card Carousel */
.panel-2 {
  background: var(--panel-2);
  color: var(--ink);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.carousel-stack {
  position: relative;
  min-height: 112px;
}

.carousel-card {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 420ms var(--ease-expo), transform 420ms var(--ease-expo);
  pointer-events: none;
}

.carousel-card.is-active {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.circle-ico {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
}

.ico-black { background: #111411; }
.ico-emerald { background: #1B4D3E; }
.ico-cyan { background: #155E75; }
.ico-amber { background: #9A4D2A; }

.carousel-card p {
  margin: 0;
  font-size: clamp(0.9rem, 1.05vw, 1.02rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: rgba(20, 23, 20, 0.84);
}

.carousel-bars {
  display: flex;
  gap: 6px;
}

.carousel-bars .bar {
  flex: 1;
  height: 2px;
  border-radius: 999px;
  background: rgba(20, 23, 20, 0.18);
  transition: background 300ms var(--ease-expo);
}

.carousel-bars .bar.is-active { background: #111411; }

/* Panel 3 */
.panel-3 {
  background: var(--panel-3);
  color: #ffffff;
  display: flex;
  align-items: center;
  gap: clamp(16px, 2vw, 28px);
}

.panel-3-thumb {
  width: clamp(120px, 14vw, 200px);
  height: clamp(84px, 9.5vw, 136px);
  object-fit: cover;
  border-radius: 6px;
  flex-shrink: 0;
}

.panel-3-stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(26px, 2.5vw, 36px);
  letter-spacing: -0.05em;
  line-height: 1.05;
  margin-bottom: 6px;
}

.panel-3-stat span {
  display: block;
  color: rgba(255, 255, 255, 0.65);
  font-size: clamp(0.86rem, 1vw, 1rem);
  line-height: 1.25;
}

/* ==========================================================================
   BELOW-THE-FOLD EDITORIAL SECTIONS (Clean, Borderless Rhythm)
   ========================================================================== */
.section { padding-block: clamp(68px, 9vw, 120px); }
.section-light { background: var(--panel-2); }
.section-stone { background: var(--panel-1); }
.section-dark { background: var(--panel-3); color: #ffffff; }

.kicker {
  display: inline-block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 12px;
}
.kicker-light { color: #9ccbb3; }

.sec-head {
  max-width: 60ch;
  margin-bottom: clamp(40px, 5vw, 60px);
}

.section h2 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 0;
}
.section h2 em { font-style: italic; color: var(--forest); }

/* Projects */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 4vw, 48px);
}

.proj-item { cursor: zoom-in; }

.proj-item img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
  transition: transform 420ms var(--ease-expo);
}
.proj-item:hover img { transform: scale(1.02); }

.proj-loc {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 6px;
}

.proj-meta h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.proj-meta p { margin: 0; font-size: 0.94rem; color: var(--ink-dim); max-width: 54ch; }

/* Offers (Open Editorial Rows, Zero Boxed Cards) */
.offers-rows { border-top: 1px solid var(--line); }

.offer-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1.15fr) minmax(240px, 0.85fr);
  gap: 28px;
  padding-block: 32px;
  border-bottom: 1px solid var(--line);
  align-items: start;
}

.offer-num {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--forest);
  letter-spacing: -0.03em;
}

.offer-row h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}

.offer-row p { margin: 0; color: var(--ink-dim); font-size: 0.94rem; max-width: 52ch; }

.offer-prices { display: grid; gap: 10px; }
.offer-prices > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
  font-size: 0.9rem;
}
.offer-prices span { color: var(--ink-dim); }
.offer-prices strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

/* Fees */
.fee-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 5vw, 64px);
}

.fee-grid h4 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.fee-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; }
.fee-table td { padding: 12px 2px; border-bottom: 1px solid var(--line); }
.fee-table .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fee-note { margin: 14px 0 0; font-size: 0.85rem; color: var(--ink-dim); }

/* Bio */
.bio-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}

.bio-photo { margin: 0; }
.bio-photo img { width: 100%; border-radius: 6px; }
.bio-copy h2 { color: #ffffff; margin-bottom: 20px; }
.bio-lead { color: rgba(255, 255, 255, 0.82); max-width: 56ch; margin: 0 0 28px; font-size: 1.04rem; }

.bio-list {
  list-style: none;
  padding: 0;
  margin: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}
.bio-list li {
  padding: 14px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.78);
}
.bio-list strong { color: #ffffff; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(36px, 6vw, 80px);
  align-items: start;
}

.contact-info > p { color: var(--ink-dim); max-width: 48ch; margin: 16px 0 26px; }
.contact-phone {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -0.04em;
  line-height: 1.05;
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.contact-phone:hover { color: var(--forest); }
.contact-mail { margin: 0 0 26px; font-size: 1rem; }
.contact-mail a { text-decoration: underline; text-underline-offset: 4px; }

.social-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: 0.9rem; font-weight: 500; color: var(--forest); }
.social-links a:hover { text-decoration: underline; }

.contact-form { display: grid; gap: 16px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 0.86rem; font-weight: 500; }
.field input, .field select, .field textarea {
  padding: 12px 14px;
  background: var(--panel-1);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: 1px solid var(--ink); border-color: var(--ink); }
.cta-submit { width: 100%; height: 56px; font-size: 0.98rem; }
.form-status { margin: 0; font-size: 0.9rem; color: var(--forest); min-height: 1.3em; }

/* Footer */
.site-footer {
  background: var(--panel-1);
  border-top: 1px solid var(--line);
  padding-block: 22px;
  font-size: 0.85rem;
  color: var(--ink-dim);
}
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.footer-inner p { margin: 0; }

/* Lightbox */
.lightbox {
  padding: 16px;
  border: none;
  border-radius: 8px;
  background: var(--panel-3);
  color: #ffffff;
  max-width: min(980px, calc(100% - 32px));
}
.lightbox::backdrop { background: rgba(0, 0, 0, 0.84); backdrop-filter: blur(4px); }
.lightbox img { max-height: 78vh; width: auto; margin-inline: auto; border-radius: 4px; }
.lightbox p { text-align: center; margin: 12px 0 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.8); }
.lb-close {
  position: absolute; top: 12px; right: 12px; width: 34px; height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.25); background: rgba(0, 0, 0, 0.55);
  color: #ffffff; border-radius: 50%; cursor: pointer;
}

/* Scroll Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 520ms var(--ease-expo), transform 520ms var(--ease-expo); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .bottom-panels { grid-template-columns: 1fr; }
  .projects-grid, .offer-row, .fee-grid, .bio-grid, .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .inline-hero-img { display: none; }
  .cta-black { width: 100%; }
  .field-row { grid-template-columns: 1fr; }
}
