/* =========================================================
   La Végétalerie — feuille de style
   Palette : vert forêt, sauge, olive, lin, blanc cassé, brun écorce
   Typo : Bodoni Moda (titres) / Hanken Grotesk (texte)
   ========================================================= */

:root {
  --forest: #1c3127;
  --forest-deep: #13221b;
  --olive: #5f6439;
  --sage: #b4c2a3;
  --sage-pale: #dde3d3;
  --linen: #e8e1d3;
  --chalk: #f5f3ec;
  --bark: #221a13;
  --text: #1a2620;
  --muted: #4d5a51;

  --serif: "Bodoni Moda", "Didot", "Times New Roman", serif;
  --sans: "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --container: 1320px;
  --gutter: clamp(20px, 5vw, 64px);
  --section: clamp(96px, 13vw, 184px);
  --ease: cubic-bezier(0.22, 0.8, 0.24, 1);
  --ease-io: cubic-bezier(0.7, 0, 0.2, 1);
  --header-h: 84px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: clamp(1rem, 0.96rem + 0.2vw, 1.0625rem);
  line-height: 1.65;
  color: var(--text);
  background: var(--chalk);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ul, ol, figure, dl, dd { margin: 0; }
h1, h2, h3 { text-wrap: balance; }
p { text-wrap: pretty; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 3px;
}
.about :focus-visible,
.work :focus-visible,
.expertise :focus-visible { outline-color: var(--olive); }

.container {
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--chalk);
  color: var(--forest);
  transition: top 0.2s;
}
.skip:focus { top: 16px; }

/* ---------- Typographie partagée ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.6rem + 3.2vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
  max-width: 16ch;
}

.section-intro {
  max-width: 46ch;
  color: var(--muted);
  font-size: 1.0625rem;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 104px);
}
.section-head--light .section-intro { color: rgba(245, 243, 236, 0.72); }
@media (max-width: 900px) {
  .section-head { grid-template-columns: 1fr; }
}

/* ---------- Boutons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 50px;
  padding: 14px 28px;
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.9375rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: color 0.45s var(--ease), border-color 0.45s var(--ease);
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.55s var(--ease);
}
.btn:hover::before,
.btn:focus-visible::before { transform: scaleX(1); transform-origin: left; }

.btn--light { background: var(--chalk); color: var(--forest); }
.btn--light::before { background: var(--sage); }

.btn--ghost-light { border-color: rgba(245, 243, 236, 0.55); color: var(--chalk); }
.btn--ghost-light::before { background: var(--chalk); }
.btn--ghost-light:hover,
.btn--ghost-light:focus-visible { color: var(--forest); border-color: var(--chalk); }

.btn--leaf { background: var(--sage); color: var(--forest-deep); }
.btn--leaf::before { background: var(--chalk); }

/* =========================================================
   HEADER
   ========================================================= */
.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--chalk);
  transition: background-color 0.5s var(--ease), color 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: calc(var(--container) + 2 * var(--gutter));
  height: var(--header-h);
  margin-inline: auto;
  padding-inline: var(--gutter);
  transition: height 0.5s var(--ease);
}
.site-header.is-scrolled {
  background: rgba(245, 243, 236, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  color: var(--forest);
  box-shadow: 0 1px 0 rgba(28, 49, 39, 0.1);
}
.site-header.is-scrolled .site-header__inner { height: 68px; }
.site-header.is-scrolled .nav__cta { background: var(--forest); color: var(--chalk); }
.site-header.is-scrolled .nav__cta::before { background: var(--olive); }

.wordmark { text-decoration: none; display: inline-flex; flex-direction: column; line-height: 1; }
.wordmark__name {
  font-family: var(--serif);
  font-size: 1.0625rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-variation-settings: "opsz" 24;
  white-space: nowrap;
}

.nav { display: flex; align-items: center; gap: clamp(24px, 3vw, 48px); }
.nav__list { display: flex; gap: clamp(18px, 2.2vw, 34px); }
.nav__list a {
  position: relative;
  font-size: 0.9375rem;
  font-weight: 450;
  text-decoration: none;
  padding-block: 6px;
}
.nav__list a::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.45s var(--ease);
}
.nav__list a:hover::after,
.nav__list a:focus-visible::after,
.nav__list a[aria-current="true"]::after,
.nav__list a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.nav__cta { min-height: 44px; padding: 10px 22px; font-size: 0.875rem; }

.burger {
  display: none;
  position: relative;
  z-index: 2;
  width: 48px; height: 48px;
  margin-right: -10px;
  background: none;
  border: 0;
  cursor: pointer;
}
.burger__line {
  position: absolute;
  left: 12px; right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.45s var(--ease), top 0.45s var(--ease);
}
.burger__line:first-child { top: 19px; }
.burger__line:nth-child(2) { top: 28px; }
.burger[aria-expanded="true"] .burger__line:first-child { top: 23px; transform: rotate(45deg); }
.burger[aria-expanded="true"] .burger__line:nth-child(2) { top: 23px; transform: rotate(-45deg); }

@media (max-width: 1023px) {
  .burger { display: block; }
  .nav {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 48px;
    padding: 96px var(--gutter) 48px;
    background: var(--forest-deep);
    color: var(--chalk);
    clip-path: inset(0 0 100% 0);
    visibility: hidden;
    transition: clip-path 0.7s var(--ease-io), visibility 0s linear 0.7s;
  }
  .nav.is-open {
    clip-path: inset(0 0 0 0);
    visibility: visible;
    transition: clip-path 0.7s var(--ease-io), visibility 0s;
  }
  .nav__list { flex-direction: column; gap: 10px; }
  .nav__list a {
    font-family: var(--serif);
    font-size: clamp(2rem, 8vw, 3rem);
    font-weight: 400;
    line-height: 1.2;
  }
  .site-header.menu-open { color: var(--chalk); background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .site-header.menu-open .nav__cta { background: var(--sage); color: var(--forest-deep); }
  .nav__cta { min-height: 52px; padding: 14px 28px; font-size: 0.9375rem; }
}

/* =========================================================
   HERO
   ========================================================= */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  color: var(--chalk);
  background: var(--forest-deep);
  overflow: hidden;
}
.hero__media { position: absolute; inset: 0; }
.hero__media img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
  animation: hero-zoom 2.6s var(--ease) both;
}
.hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(19, 34, 27, 0.92) 0%, rgba(19, 34, 27, 0.55) 34%, rgba(19, 34, 27, 0) 62%),
    linear-gradient(90deg, rgba(19, 34, 27, 0.45) 0%, rgba(19, 34, 27, 0) 50%),
    linear-gradient(180deg, rgba(19, 34, 27, 0.55) 0%, rgba(19, 34, 27, 0) 22%);
}

/* Le motif signature : des lames verticales qui s'ouvrent sur le mur */
.hero__slats {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  pointer-events: none;
}
.hero__slats span {
  flex: 1;
  background: var(--forest-deep);
  transform-origin: top;
  animation: slat-open 1.15s var(--ease-io) both;
}
.hero__slats span:nth-child(1) { animation-delay: 0.05s; }
.hero__slats span:nth-child(2) { animation-delay: 0.13s; }
.hero__slats span:nth-child(3) { animation-delay: 0.21s; }
.hero__slats span:nth-child(4) { animation-delay: 0.29s; }
.hero__slats span:nth-child(5) { animation-delay: 0.37s; }
.hero__slats span:nth-child(6) { animation-delay: 0.45s; }

.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: calc(var(--container) + 2 * var(--gutter));
  margin-inline: auto;
  padding: calc(var(--header-h) + 48px) var(--gutter) clamp(40px, 7vh, 80px);
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
  grid-template-areas:
    "sig sig"
    "title aside";
  align-items: end;
  gap: 24px clamp(32px, 5vw, 80px);
}
.hero__signature {
  grid-area: sig;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.05rem, 0.95rem + 0.5vw, 1.35rem);
  color: var(--sage-pale);
  text-shadow: 0 1px 18px rgba(19, 34, 27, 0.8);
  animation: rise 1s var(--ease) 1.05s both;
}
.hero__title {
  grid-area: title;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.4rem, 1.4rem + 8.2vw, 9.6rem);
  line-height: 0.92;
  letter-spacing: -0.03em;
  font-variation-settings: "opsz" 96;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: 0.08em; }
.hero__title .line > span { display: inline-block; animation: line-up 1.2s var(--ease) both; }
.hero__title .line:first-child > span { animation-delay: 0.85s; }
.hero__title .line:last-child > span { animation-delay: 0.97s; font-style: italic; }

.hero__aside {
  grid-area: aside;
  max-width: 420px;
  padding-bottom: 0.6em;
  animation: rise 1s var(--ease) 1.25s both;
}
.hero__aside p { color: rgba(245, 243, 236, 0.86); font-size: 1.0625rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero__place {
  position: absolute;
  z-index: 2;
  right: calc(var(--gutter) * 0.5);
  top: 50%;
  writing-mode: vertical-rl;
  transform: translateY(-50%);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: rgba(245, 243, 236, 0.62);
  animation: fade 1s ease 1.6s both;
}

@media (max-width: 900px) {
  .hero__content {
    grid-template-columns: 1fr;
    grid-template-areas: "sig" "title" "aside";
  }
  .hero__place { display: none; }
}
@media (max-width: 480px) {
  .hero__actions .btn { flex: 1 1 100%; }
}

/* =========================================================
   À PROPOS
   ========================================================= */
.about { padding-block: var(--section); background: var(--chalk); }

.about__statement {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2rem, 1.3rem + 3vw, 4rem);
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
  max-width: 22ch;
  margin-bottom: clamp(64px, 9vw, 128px);
}

.about__grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 0 clamp(20px, 3vw, 40px);
  align-items: start;
}
.about__photo { grid-column: 1 / 6; overflow: hidden; }
.about__photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.about__text {
  grid-column: 7 / 13;
  padding-top: clamp(24px, 8vw, 140px);
  max-width: 56ch;
}
.about__text p + p { margin-top: 1.1em; color: var(--muted); }
.lead {
  font-size: clamp(1.2rem, 1.05rem + 0.6vw, 1.5rem);
  line-height: 1.5;
  color: var(--text);
}
.about__detail {
  width: min(58%, 300px);
  margin: clamp(40px, 6vw, 80px) 0 0 auto;
  overflow: hidden;
}
.about__detail img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }

.method {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px clamp(20px, 3vw, 40px);
  margin-top: clamp(80px, 11vw, 160px);
  counter-reset: step;
}
.method__step { padding-top: 24px; border-top: 1px solid rgba(28, 49, 39, 0.22); }
.method__num {
  display: block;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--olive);
  margin-bottom: 18px;
}
.method__step h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.2rem + 0.9vw, 2rem);
  line-height: 1.15;
  margin-bottom: 12px;
}
.method__step p { color: var(--muted); font-size: 0.975rem; max-width: 32ch; }

@media (max-width: 900px) {
  .about__photo { grid-column: 1 / 13; }
  .about__photo img { aspect-ratio: 4 / 3; }
  .about__text { grid-column: 1 / 13; padding-top: 48px; }
  .method { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 540px) {
  .method { grid-template-columns: 1fr; }
  .about__detail { width: 72%; }
}

/* =========================================================
   EXPERTISES — liste éditoriale + visuel collant
   ========================================================= */
.expertise { padding-block: var(--section); background: var(--linen); }

.expertise__layout {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.expertise__stage {
  position: sticky;
  top: 108px;
  height: min(72vh, 700px);
}
.expertise__frame { position: relative; height: 100%; overflow: hidden; background: var(--forest); }
.expertise__frame img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.06);
  clip-path: inset(0 0 100% 0);
  transition: opacity 0.6s ease, transform 1.4s var(--ease), clip-path 0.9s var(--ease-io);
}
.expertise__frame img.is-active { opacity: 1; transform: scale(1); clip-path: inset(0 0 0 0); }

.expertise__item {
  position: relative;
  padding: clamp(28px, 3.4vw, 44px) 0 clamp(28px, 3.4vw, 44px) 28px;
  border-top: 1px solid rgba(28, 49, 39, 0.2);
  cursor: default;
  outline-offset: -2px;
}
.expertise__item:last-child { border-bottom: 1px solid rgba(28, 49, 39, 0.2); }
.expertise__item::before {
  content: "";
  position: absolute;
  left: 0; top: clamp(34px, 4vw, 52px);
  width: 2px; height: 1.6em;
  background: var(--olive);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--ease);
}
.expertise__item h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.75rem, 1.2rem + 1.7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.expertise__item p { max-width: 46ch; color: var(--muted); }
.expertise__thumb { display: none; }

@media (min-width: 901px) {
  .expertise__item h3,
  .expertise__item p { opacity: 0.4; transition: opacity 0.5s var(--ease); }
  .expertise__item.is-active h3,
  .expertise__item.is-active p { opacity: 1; }
  .expertise__item.is-active::before { transform: scaleY(1); }
}

@media (max-width: 900px) {
  .expertise__layout { grid-template-columns: 1fr; }
  .expertise__stage { display: none; }
  .expertise__item { padding-left: 0; }
  .expertise__item::before { display: none; }
  .expertise__thumb { display: block; overflow: hidden; margin-bottom: 24px; }
  .expertise__thumb img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
}

/* =========================================================
   RÉALISATIONS — galerie éditoriale
   ========================================================= */
.work { padding-block: var(--section); background: var(--chalk); }
.work--page { padding-top: calc(var(--header-h) + clamp(56px, 8vw, 120px)); }
.work__head {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 32px 64px;
  align-items: end;
  margin-bottom: clamp(56px, 7vw, 96px);
}
.work__intro p { color: var(--muted); max-width: 46ch; }
.work__note {
  margin-top: 18px !important;
  padding-left: 14px;
  border-left: 2px solid var(--sage);
  font-size: 0.875rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-rows: clamp(44px, 6.2vw, 88px);
  gap: clamp(12px, 1.6vw, 22px);
}
.gallery__item { position: relative; overflow: hidden; background: var(--forest); }
.g-a { grid-column: 1 / 8;  grid-row: 1 / 6; }
.g-b { grid-column: 8 / 13; grid-row: 1 / 8; }
.g-c { grid-column: 1 / 5;  grid-row: 6 / 13; }
.g-d { grid-column: 5 / 8;  grid-row: 6 / 9; }
.g-f { grid-column: 5 / 8;  grid-row: 9 / 13; }
.g-e { grid-column: 8 / 13; grid-row: 8 / 13; }
.g-g { grid-column: 1 / 9;  grid-row: 13 / 17; }
.g-cta { grid-column: 9 / 13; grid-row: 13 / 17; }

.gallery__open {
  display: block;
  width: 100%; height: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}
.gallery__open img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.4s var(--ease), filter 0.8s var(--ease);
}
.gallery__open:hover img,
.gallery__open:focus-visible img { transform: scale(1.045); }
.gallery__open:focus-visible { outline: 2px solid var(--olive); outline-offset: -4px; }

.gallery__item figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 40px 20px 16px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--chalk);
  background: linear-gradient(0deg, rgba(19, 34, 27, 0.75), rgba(19, 34, 27, 0));
  pointer-events: none;
}

.g-cta {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  padding: clamp(24px, 2.6vw, 40px);
  background: var(--forest);
  color: var(--chalk);
}
.g-cta p {
  font-family: var(--serif);
  font-size: clamp(1.4rem, 1rem + 1.2vw, 2.1rem);
  line-height: 1.15;
}
.g-cta .btn { align-self: flex-start; }

@media (max-width: 900px) {
  .work__head { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: auto; }
  .gallery__item, .g-cta { grid-column: auto; grid-row: auto; }
  .gallery__item { aspect-ratio: 4 / 5; }
  .g-a, .g-e, .g-g { grid-column: 1 / -1; aspect-ratio: 16 / 10; }
  .g-cta { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
  .gallery__item, .g-a, .g-e, .g-g { aspect-ratio: 4 / 3.4; }
}

/* =========================================================
   POUR QUI — panneaux verticaux
   ========================================================= */
.audience { padding-block: var(--section); background: var(--forest); color: var(--chalk); }
.audience .section-title { color: var(--chalk); }

.panels {
  display: flex;
  gap: clamp(8px, 1vw, 14px);
  height: clamp(480px, 62vh, 620px);
}
.panel {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
  overflow: hidden;
  background: var(--forest-deep);
  cursor: pointer;
  transition: flex-grow 0.8s var(--ease-io);
}
.panel.is-open { flex-grow: 4.2; cursor: default; }
.panel img {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  filter: saturate(0.85);
  transition: transform 1.4s var(--ease), filter 0.8s ease;
}
.panel.is-open img { filter: saturate(1); }
.panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(19, 34, 27, 0.95) 0%, rgba(19, 34, 27, 0.6) 38%, rgba(19, 34, 27, 0.1) 75%);
}
.panel:not(.is-open)::after { background: rgba(19, 34, 27, 0.62); }
.panel__body {
  position: absolute;
  z-index: 1;
  left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 2.4vw, 36px);
}
.panel h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(1.5rem, 1.1rem + 1.2vw, 2.3rem);
  line-height: 1.1;
}
.panel p { margin-top: 12px; max-width: 40ch; color: rgba(245, 243, 236, 0.84); }

@media (min-width: 901px) {
  .panel:not(.is-open) .panel__body { top: 0; display: flex; align-items: flex-end; }
  .panel:not(.is-open) h3 {
    writing-mode: vertical-rl;
    transform: rotate(180deg);
    font-size: clamp(1.25rem, 0.9rem + 0.8vw, 1.6rem);
    white-space: nowrap;
  }
  .panel:not(.is-open) p { display: none; }
  .panel.is-open .panel__body { animation: rise 0.7s var(--ease) 0.3s both; }
  .panel:not(.is-open):hover img { transform: scale(1.05); }
}

@media (max-width: 900px) {
  .panels { flex-direction: column; height: auto; }
  .panel, .panel.is-open { flex: none; height: clamp(260px, 52vw, 380px); cursor: default; }
  .panel::after,
  .panel:not(.is-open)::after { background: linear-gradient(0deg, rgba(19, 34, 27, 0.92) 0%, rgba(19, 34, 27, 0.25) 70%); }
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact {
  position: relative;
  padding-block: var(--section);
  background: var(--forest-deep);
  color: var(--chalk);
  overflow: hidden;
  isolation: isolate;
}
.contact::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("../images/contact-fond.webp") center / cover no-repeat;
  opacity: 0.16;
}
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 64px clamp(40px, 7vw, 120px);
  align-items: start;
}
.contact__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.3rem, 1.5rem + 3vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 96;
  margin-bottom: 28px;
}
.contact__intro > p { color: rgba(245, 243, 236, 0.78); max-width: 42ch; }

.contact__info {
  display: grid;
  gap: 28px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid rgba(245, 243, 236, 0.18);
}
.contact__info dt {
  font-family: var(--serif);
  font-style: italic;
  color: var(--sage);
  margin-bottom: 6px;
}
.contact__social { display: flex; gap: 24px; }
.contact__social a,
.site-footer a {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  text-decoration-color: rgba(245, 243, 236, 0.35);
  transition: text-decoration-color 0.3s;
}
.contact__social a:hover,
.site-footer a:hover { text-decoration-color: currentColor; }

/* Formulaire */
.form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
  padding: clamp(28px, 4vw, 56px);
  background: rgba(28, 49, 39, 0.72);
  border: 1px solid rgba(245, 243, 236, 0.12);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}
.form__demo {
  grid-column: 1 / -1;
  padding: 12px 16px;
  border-left: 2px solid var(--sage);
  background: rgba(180, 194, 163, 0.1);
  font-size: 0.875rem;
  color: var(--sage-pale);
}
.field { display: flex; flex-direction: column; gap: 8px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; color: rgba(245, 243, 236, 0.8); }
.field .opt { color: rgba(245, 243, 236, 0.5); }

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 10px 0 12px;
  border: 0;
  border-bottom: 1px solid rgba(245, 243, 236, 0.35);
  border-radius: 0;
  background: transparent;
  color: var(--chalk);
  font: inherit;
  font-size: 1rem;
  transition: border-color 0.3s;
}
.field textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.field ::placeholder { color: rgba(245, 243, 236, 0.4); }
.field select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 28px;
  cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23b4c2a3' stroke-width='1.5'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") right 4px center / 12px no-repeat;
}
.field select option { color: var(--forest-deep); background: var(--chalk); }
.field input:focus,
.field select:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--sage); box-shadow: 0 1px 0 var(--sage); }
.field [aria-invalid="true"] { border-bottom-color: #e7b49a; box-shadow: 0 1px 0 #e7b49a; }

.form__footer {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.form__status { flex: 1 1 240px; font-size: 0.9375rem; color: var(--sage-pale); }
.form__status.is-error { color: #f0c6b0; }

@media (max-width: 900px) {
  .contact__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .form { grid-template-columns: 1fr; }
  .form__footer .btn { width: 100%; }
}

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer {
  padding: clamp(72px, 9vw, 120px) 0 32px;
  background: var(--bark);
  color: rgba(232, 225, 211, 0.82);
  font-size: 0.9375rem;
}
.site-footer__top {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr));
  gap: 48px 40px;
  padding-bottom: 64px;
}
.site-footer .wordmark--footer { color: var(--chalk); text-decoration: none; }
.wordmark--footer .wordmark__name { font-size: 1.25rem; }
.site-footer__signature {
  margin: 14px 0 20px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.125rem;
  color: var(--sage);
}
.site-footer__brand > p:last-child { max-width: 34ch; }
.site-footer__col h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.125rem;
  color: var(--chalk);
  margin-bottom: 16px;
}
.site-footer__col ul { display: grid; gap: 8px; }
.site-footer__col a { text-decoration-color: transparent; }
.site-footer__col a:hover { text-decoration-color: currentColor; }
.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 32px;
  padding-top: 28px;
  border-top: 1px solid rgba(232, 225, 211, 0.16);
  font-size: 0.8125rem;
  color: rgba(232, 225, 211, 0.66);
}

@media (max-width: 900px) {
  .site-footer__top { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-footer__brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .site-footer__top { grid-template-columns: 1fr; }
}

/* =========================================================
   LIGHTBOX
   ========================================================= */
.lightbox {
  width: 100vw; height: 100vh;
  max-width: none; max-height: none;
  margin: 0;
  padding: clamp(56px, 8vh, 88px) var(--gutter) 32px;
  border: 0;
  background: rgba(19, 34, 27, 0.96);
  color: var(--chalk);
}
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; animation: fade 0.4s ease both; }
.lightbox::backdrop { background: rgba(19, 34, 27, 0.6); }
.lightbox img { max-width: 100%; max-height: calc(100vh - 180px); object-fit: contain; }
.lightbox__caption { font-size: 0.9375rem; color: rgba(245, 243, 236, 0.8); }
.lightbox__close {
  position: absolute;
  top: 20px; right: var(--gutter);
  padding: 10px 18px;
  background: none;
  border: 1px solid rgba(245, 243, 236, 0.4);
  cursor: pointer;
  font-size: 0.875rem;
}
.lightbox__close:hover { border-color: var(--chalk); }

/* =========================================================
   PAGE SECONDAIRE (mentions légales)
   ========================================================= */
.legal { padding: calc(var(--header-h) + 80px) 0 var(--section); }
.legal h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 1.6rem + 3vw, 4rem);
  line-height: 1.05;
  margin-bottom: 24px;
}
.legal__body { max-width: 68ch; }
.legal__body h2 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.6rem;
  margin: 56px 0 14px;
}
.legal__body p + p,
.legal__body ul { margin-top: 10px; }
.legal__body ul { list-style: disc; padding-left: 1.2em; }
.legal__todo { color: var(--olive); font-style: italic; }
.legal .site-header,
.site-header--solid { background: var(--chalk); color: var(--forest); box-shadow: 0 1px 0 rgba(28, 49, 39, 0.1); }

/* =========================================================
   APPARITIONS & ANIMATIONS
   ========================================================= */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

@keyframes slat-open { from { transform: scaleY(1); } to { transform: scaleY(0); } }
@keyframes hero-zoom { from { transform: scale(1.1); } to { transform: scale(1); } }
@keyframes line-up { from { transform: translateY(105%); } to { transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
    transition-duration: 0.01ms !important;
  }
  .hero__slats { display: none; }
  .reveal { opacity: 1; transform: none; }
}
