/* =========================================================
   ESTHER MATHYS — Architecte d'intérieur
   Direction artistique : éditorial luxe « couture »
   Palette Chanel — noir, ivoire, or (la retenue = le luxe)
   ========================================================= */

:root {
  /* --- Couleurs --- */
  --noir:        #0b0b0b;   /* noir profond, légèrement adouci   */
  --noir-pur:    #000000;
  --encre:       #171512;   /* noir chaud pour les fonds sombres */
  --ivoire:      #f7f3ec;   /* blanc cassé chaud                 */
  --ivoire-2:    #efe8dc;   /* ivoire un ton plus profond        */
  --beige:       #e3d8c6;   /* beige « tweed » Chanel            */
  --blanc:       #ffffff;

  --or:          #c2a05b;   /* or champagne — l'unique accent    */
  --or-clair:    #e4cf9c;   /* or lumineux pour les dégradés     */
  --or-fonce:    #9c7e3e;

  --taupe:       #8c8377;   /* texte secondaire sur fond clair   */
  --taupe-clair: #b9ada099; /* texte secondaire sur fond sombre  */

  /* --- Typo --- */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Jost", "Century Gothic", sans-serif;

  /* --- Divers --- */
  --ease:   cubic-bezier(0.19, 1, 0.22, 1);
  --gutter: clamp(1.25rem, 5vw, 6rem);
  --maxw:   1320px;
}

/* --------------------------------------------------------- */
/* RESET                                                     */
/* --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--sans);
  font-weight: 300;
  color: var(--noir);
  background: var(--ivoire);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

::selection { background: var(--or); color: var(--noir); }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--ivoire-2); }
::-webkit-scrollbar-thumb { background: var(--or-fonce); }

/* --------------------------------------------------------- */
/* TEXTURE / GRAIN                                           */
/* --------------------------------------------------------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* --------------------------------------------------------- */
/* HELPERS                                                   */
/* --------------------------------------------------------- */
.section__overline {
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--or-fonce);
  margin-bottom: 1.4rem;
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
}
.section__overline::before {
  content: "";
  width: 2.4rem;
  height: 1px;
  background: var(--or);
}
.section__overline--light { color: var(--or-clair); }
.section__overline--light::before { background: var(--or); }

.section__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
}
.section__title em { font-style: italic; color: var(--or-fonce); }
.section__title--light { color: var(--ivoire); }
.section__title--light em { color: var(--or-clair); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  padding: 1.15em 2.4em;
  position: relative;
  transition: all 0.5s var(--ease);
  border: 1px solid transparent;
}
.btn--gold {
  background: var(--noir);
  color: var(--ivoire);
  border-color: var(--noir);
}
.btn--gold::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, var(--or-fonce), var(--or-clair), var(--or-fonce));
  opacity: 0;
  transition: opacity 0.5s var(--ease);
  z-index: 0;
}
.btn > span { position: relative; z-index: 2; }  /* garde le libellé au-dessus du dégradé doré */
.btn--gold:hover { color: var(--noir); border-color: var(--or); }
.btn--gold:hover::after { opacity: 1; }
.btn--ghost-light {
  color: var(--ivoire);
  border-color: rgba(247, 243, 236, 0.4);
}
.btn--ghost-light:hover { border-color: var(--or); color: var(--or-clair); }
.btn--block { width: 100%; }

/* --------------------------------------------------------- */
/* REVEAL ANIMATIONS                                         */
/* --------------------------------------------------------- */
.reveal, .reveal-up {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 1s var(--ease), transform 1s var(--ease);
  will-change: opacity, transform;
}
.reveal-up.is-in, .reveal.is-in { opacity: 1; transform: none; }
.reveal-up { transition-delay: calc(var(--d, 0) * 90ms); }

/* Hero reveals sequence */
.hero .reveal { transition-delay: calc(0.15s + var(--d, 0) * 0.14s); }

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

/* --------------------------------------------------------- */
/* NAVIGATION                                                */
/* --------------------------------------------------------- */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 900;
  transition: background 0.5s var(--ease), padding 0.5s var(--ease), box-shadow 0.5s var(--ease);
  padding: 1.6rem 0;
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav__logo { display: flex; align-items: center; gap: 0.85rem; }
.nav__monogram {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  color: var(--or);
  border: 1px solid var(--or);
  width: 2.7rem; height: 2.7rem;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: all 0.5s var(--ease);
}
.nav__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  color: var(--ivoire);
  transition: color 0.5s var(--ease);
}
.nav__links { display: flex; align-items: center; gap: 1.8rem; }
.nav__links a {
  font-size: 0.74rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ivoire);
  position: relative;
  padding: 0.3rem 0;
  transition: color 0.4s var(--ease);
}
.nav__links a:not(.nav__cta)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 0; height: 1px;
  background: var(--or);
  transition: width 0.45s var(--ease);
}
.nav__links a:not(.nav__cta):hover { color: var(--or-clair); }
.nav__links a:not(.nav__cta):hover::after { width: 100%; }
.nav__cta {
  border: 1px solid rgba(247, 243, 236, 0.35);
  padding: 0.7em 1.5em !important;
}
.nav__cta:hover { border-color: var(--or); color: var(--or-clair); }

/* Scrolled state */
.nav.is-scrolled {
  background: rgba(11, 11, 11, 0.92);
  backdrop-filter: blur(12px);
  padding: 1rem 0;
  box-shadow: 0 1px 0 rgba(194, 160, 91, 0.25);
}

.nav__burger { display: none; flex-direction: column; gap: 5px; padding: 8px; z-index: 950; }
.nav__burger span {
  width: 26px; height: 1.5px;
  background: var(--ivoire);
  transition: all 0.4s var(--ease);
}

/* --------------------------------------------------------- */
/* HERO                                                      */
/* --------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--ivoire);
  overflow: hidden;
  background: var(--encre);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; }
.hero__bg img {
  width: 100%; height: 100%;
  object-fit: cover;
  transform: scale(1.08);
  animation: heroZoom 14s var(--ease) forwards;
  opacity: 0.7;
}
@keyframes heroZoom { to { transform: scale(1); } }
.hero__bg::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 50% 40%, transparent 20%, rgba(11,11,11,0.55) 100%),
    linear-gradient(180deg, rgba(11,11,11,0.65) 0%, rgba(11,11,11,0.25) 40%, rgba(11,11,11,0.85) 100%);
}
.hero__frame {
  position: absolute;
  inset: clamp(14px, 2.4vw, 34px);
  border: 1px solid rgba(194, 160, 91, 0.55);
  z-index: 2;
  pointer-events: none;
}
.hero__frame::before, .hero__frame::after {
  content: "";
  position: absolute;
  width: 14px; height: 14px;
  border: 1px solid var(--or);
}
.hero__frame::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.hero__frame::after { bottom: -1px; right: -1px; border-left: 0; border-top: 0; }

.hero__content {
  position: relative;
  z-index: 3;
  padding: 0 var(--gutter);
  max-width: 900px;
}
.hero__overline {
  font-size: 0.78rem;
  letter-spacing: 0.5em;
  text-transform: uppercase;
  color: var(--or-clair);
  margin-bottom: 1.8rem;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(3.6rem, 13vw, 9.5rem);
  line-height: 0.92;
  letter-spacing: 0.01em;
}
.hero__title span { display: block; }
.hero__title-serif-italic { font-style: italic; font-weight: 400; color: var(--or-clair); }
.hero__divider {
  display: block;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--or), transparent);
  margin: 2rem auto;
  max-width: 260px;
  transition: width 1.4s var(--ease) 0.7s !important;
}
.hero__divider.is-in { width: 260px; }
.hero__tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  color: rgba(247, 243, 236, 0.88);
  margin-bottom: 2.6rem;
  line-height: 1.5;
}
.hero__actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

.hero__scroll {
  position: absolute;
  bottom: 2.4rem; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex; flex-direction: column; align-items: center; gap: 0.7rem;
}
.hero__scroll-line { width: 1px; height: 46px; background: rgba(247,243,236,0.4); position: relative; overflow: hidden; }
.hero__scroll-line::after {
  content: ""; position: absolute; top: 0; left: 0; width: 100%; height: 40%;
  background: var(--or);
  animation: scrollDown 2s var(--ease) infinite;
}
@keyframes scrollDown { 0% { transform: translateY(-100%); } 100% { transform: translateY(250%); } }
.hero__scroll-text { font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: rgba(247,243,236,0.6); }

/* --------------------------------------------------------- */
/* SECTION SHELL                                             */
/* --------------------------------------------------------- */
.about, .services, .work, .approach, .sketch, .process, .tools, .video, .mapsec, .testi, .contact {
  padding: clamp(5rem, 12vh, 9rem) var(--gutter);
}

/* --------------------------------------------------------- */
/* À PROPOS                                                  */
/* --------------------------------------------------------- */
.about { background: var(--ivoire); }
.about__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.85fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.about__media { position: relative; }
.about__media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--beige), var(--ivoire-2));
}
.about__media-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(194,160,91,0.6);
  z-index: 2;
  pointer-events: none;
}
.about__media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.about__media:hover .about__media-frame img { transform: scale(1.05); }
.about__media-tag {
  position: absolute;
  bottom: -1.2rem; right: -0.6rem;
  background: var(--noir);
  color: var(--or-clair);
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  padding: 0.7rem 1.4rem;
  letter-spacing: 0.05em;
  z-index: 3;
}
.about__lead {
  font-family: var(--serif);
  font-size: clamp(1.25rem, 2.4vw, 1.6rem);
  line-height: 1.5;
  margin: 1.8rem 0 1.3rem;
  color: var(--noir);
}
.about__body { color: var(--taupe); max-width: 46ch; }
.about__stats {
  display: flex;
  gap: clamp(1.5rem, 4vw, 3.4rem);
  margin: 2.6rem 0 2rem;
  flex-wrap: wrap;
}
.stat { display: flex; flex-direction: column; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  line-height: 1;
  color: var(--or-fonce);
  display: inline;
}
.stat__plus { font-family: var(--serif); font-size: 1.6rem; color: var(--or); vertical-align: super; }
.stat__label {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  margin-top: 0.6rem;
}
.about__signature {
  font-family: var(--serif);
  font-style: italic;
  font-size: 2.2rem;
  color: var(--noir);
  opacity: 0.85;
}

/* --------------------------------------------------------- */
/* SERVICES                                                  */
/* --------------------------------------------------------- */
.services {
  background: var(--encre);
  color: var(--ivoire);
  position: relative;
}
.services::before {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(80% 60% at 80% 0%, rgba(194,160,91,0.08), transparent 60%);
  pointer-events: none;
}
.services__head { max-width: var(--maxw); margin: 0 auto 3.5rem; text-align: center; position: relative; }
.services__head .section__overline { justify-content: center; }
.services__intro {
  color: var(--taupe-clair);
  max-width: 48ch;
  margin: 1.4rem auto 0;
  font-size: 1.02rem;
}
.services__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: rgba(194,160,91,0.22);
  border: 1px solid rgba(194,160,91,0.22);
  position: relative;
}
.scard {
  background: var(--encre);
  padding: 2.8rem 2rem;
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), background 0.6s var(--ease);
  position: relative;
  overflow: hidden;
}
.scard::before {
  content: "";
  position: absolute; top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--or-fonce), var(--or-clair));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.6s var(--ease);
}
.scard:hover { background: #1e1b16; }
.scard:hover::before { transform: scaleX(1); }
.scard__num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--or);
  display: block;
  margin-bottom: 1.6rem;
}
.scard__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.7rem;
  line-height: 1.15;
  margin-bottom: 1rem;
}
.scard__text { color: var(--taupe-clair); font-size: 0.92rem; }

/* --------------------------------------------------------- */
/* RÉALISATIONS                                              */
/* --------------------------------------------------------- */
.work { background: var(--ivoire); }
.work__head { max-width: var(--maxw); margin: 0 auto 3rem; text-align: center; }
.work__head .section__overline { justify-content: center; }
.work__filters {
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem; margin-top: 2.2rem;
}
.filter {
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--taupe);
  padding: 0.7em 1.4em;
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  position: relative;
}
.filter:hover { color: var(--noir); }
.filter.is-active {
  color: var(--noir);
  border-color: var(--or);
}

.work__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: clamp(0.8rem, 1.5vw, 1.4rem);
}
.wcard {
  position: relative;
  overflow: hidden;
  grid-column: span 2;
  aspect-ratio: 3 / 3.4;
  cursor: pointer;
  background: linear-gradient(135deg, var(--beige), var(--ivoire-2));
  transition: transform 0.6s var(--ease), opacity 0.5s var(--ease);
}
/* Rythme éditorial : certaines cartes plus larges/hautes */
.wcard:nth-child(6n+1) { grid-column: span 3; }
.wcard:nth-child(6n+4) { grid-column: span 3; }
.wcard__ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  font-family: var(--serif); font-style: italic;
  color: var(--or-fonce);
  opacity: 0; padding: 1rem; text-align: center;
}
.wcard.no-img .wcard__ph { opacity: 0.8; }
.wcard.no-img img { display: none; }
.wcard img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease), filter 0.6s var(--ease);
}
.wcard:hover img { transform: scale(1.07); }
.wcard__overlay {
  position: absolute; inset: 0;
  z-index: 2;
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 1.8rem;
  background: linear-gradient(180deg, transparent 40%, rgba(11,11,11,0.82) 100%);
  opacity: 0; transform: translateY(12px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.wcard:hover .wcard__overlay { opacity: 1; transform: none; }
.wcard__cat {
  font-size: 0.64rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--or-clair); margin-bottom: 0.5rem;
}
.wcard__title {
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--ivoire);
  line-height: 1.1;
}
.wcard__meta { font-size: 0.72rem; letter-spacing: 0.1em; color: rgba(247,243,236,0.7); margin-top: 0.3rem; }
.wcard__plus {
  position: absolute; top: 1.4rem; right: 1.4rem; z-index: 3;
  width: 2.6rem; height: 2.6rem; border: 1px solid var(--or);
  border-radius: 50%; display: grid; place-items: center;
  color: var(--or-clair); font-size: 1.2rem;
  opacity: 0; transform: scale(0.8);
  transition: all 0.5s var(--ease);
}
.wcard:hover .wcard__plus { opacity: 1; transform: scale(1); }
.wcard.is-hidden { display: none; }

/* --------------------------------------------------------- */
/* PROCESSUS                                                 */
/* --------------------------------------------------------- */
.process {
  background:
    linear-gradient(rgba(11,11,11,0.72), rgba(11,11,11,0.82)),
    linear-gradient(135deg, #17140f, #221d15);
  color: var(--ivoire);
}
.process__head { max-width: var(--maxw); margin: 0 auto 3.5rem; text-align: center; }
.process__head .section__overline { justify-content: center; }
.process__steps {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1.4rem, 3vw, 2.6rem);
}
.pstep { position: relative; padding-top: 2.2rem; }
.pstep::before {
  content: ""; position: absolute; top: 0; left: 0;
  width: 100%; height: 1px; background: rgba(194,160,91,0.35);
}
.pstep__num {
  font-family: var(--serif);
  font-size: 2.8rem;
  color: var(--or);
  display: block;
  margin-bottom: 1rem;
  line-height: 1;
}
.pstep__title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 0.9rem;
}
.pstep__text { color: var(--taupe-clair); font-size: 0.92rem; }

/* --------------------------------------------------------- */
/* TÉMOIGNAGES                                               */
/* --------------------------------------------------------- */
.testi { background: var(--noir); color: var(--ivoire); }
.testi__head { max-width: var(--maxw); margin: 0 auto 3.5rem; text-align: center; }
.testi__head .section__overline { justify-content: center; }
.testi__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.quote {
  border: 1px solid rgba(194,160,91,0.25);
  padding: 2.6rem 2rem 2rem;
  position: relative;
  transition: opacity 0.9s var(--ease), border-color 0.6s var(--ease), transform 0.6s var(--ease);
}
.quote:hover { border-color: var(--or); transform: translateY(-6px); }
.quote__mark {
  font-family: var(--serif);
  font-size: 4.5rem;
  line-height: 0.6;
  color: var(--or);
  display: block;
  margin-bottom: 0.6rem;
}
.quote blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.28rem;
  line-height: 1.5;
  margin-bottom: 1.8rem;
  color: rgba(247,243,236,0.92);
}
.quote figcaption { display: flex; flex-direction: column; gap: 0.2rem; }
.quote__name { letter-spacing: 0.12em; font-size: 0.9rem; }
.quote__role { font-size: 0.72rem; letter-spacing: 0.1em; color: var(--taupe-clair); }

/* --------------------------------------------------------- */
/* CONTACT                                                   */
/* --------------------------------------------------------- */
.contact { background: var(--ivoire); }
.contact__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.contact__lead { color: var(--taupe); margin: 1.6rem 0 2.4rem; max-width: 40ch; }
.contact__info { display: flex; flex-direction: column; gap: 1.1rem; margin-bottom: 2rem; }
.contact__info li {
  display: flex; align-items: baseline; gap: 1.4rem;
  border-bottom: 1px solid rgba(140,131,119,0.25);
  padding-bottom: 1rem;
}
.contact__label {
  font-size: 0.68rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--or-fonce); min-width: 90px;
}
.contact__info a, .contact__info span:last-child {
  font-family: var(--serif); font-size: 1.25rem; color: var(--noir);
  transition: color 0.4s var(--ease);
}
.contact__info a:hover { color: var(--or-fonce); }
.contact__socials { display: flex; gap: 1rem; }
.contact__socials a {
  font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--taupe); border: 1px solid rgba(140,131,119,0.35);
  padding: 0.7em 1.2em; transition: all 0.4s var(--ease);
}
.contact__socials a:hover { color: var(--noir); border-color: var(--or); }

.contact__form { display: flex; flex-direction: column; gap: 1.6rem; }
.field { position: relative; }
.field input, .field textarea {
  width: 100%;
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(140,131,119,0.4);
  padding: 1rem 0 0.6rem;
  font-family: var(--sans);
  font-size: 1rem;
  color: var(--noir);
  resize: vertical;
  transition: border-color 0.4s var(--ease);
}
.field textarea { min-height: 120px; }
.field label {
  position: absolute; left: 0; top: 1rem;
  font-size: 1rem; color: var(--taupe);
  pointer-events: none;
  transition: all 0.35s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--or); }
.field input:focus + label,
.field input:not(:placeholder-shown) + label,
.field textarea:focus + label,
.field textarea:not(:placeholder-shown) + label {
  top: -0.7rem; font-size: 0.66rem; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--or-fonce);
}
.contact__note {
  font-size: 0.85rem; color: var(--or-fonce);
  font-family: var(--serif); font-style: italic; font-size: 1.05rem;
}

/* --------------------------------------------------------- */
/* FOOTER                                                    */
/* --------------------------------------------------------- */
.footer {
  background: var(--noir-pur);
  color: var(--ivoire);
  padding: 4rem var(--gutter) 2.4rem;
  text-align: center;
}
.footer__inner { max-width: var(--maxw); margin: 0 auto; display: flex; flex-direction: column; align-items: center; gap: 1.4rem; }
.footer__logo .nav__monogram { width: 3.2rem; height: 3.2rem; font-size: 1.7rem; }
.footer__name { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.05em; }
.footer__links { display: flex; gap: 2rem; flex-wrap: wrap; justify-content: center; }
.footer__links a {
  font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--taupe-clair); transition: color 0.4s var(--ease);
}
.footer__links a:hover { color: var(--or-clair); }
.footer__copy { font-size: 0.72rem; letter-spacing: 0.08em; color: rgba(185,173,160,0.5); margin-top: 0.6rem; }

/* --------------------------------------------------------- */
/* LIGHTBOX                                                  */
/* --------------------------------------------------------- */
.lightbox {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(6,6,6,0.94);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: var(--gutter);
  opacity: 0; visibility: hidden;
  transition: opacity 0.5s var(--ease), visibility 0.5s var(--ease);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox__content {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  max-width: 1100px; width: 100%;
  max-height: 84vh;
  background: var(--encre);
  border: 1px solid rgba(194,160,91,0.35);
  transform: scale(0.96);
  transition: transform 0.6s var(--ease);
  overflow: hidden;
}
.lightbox.is-open .lightbox__content { transform: scale(1); }
.lightbox__media { background: #000; }
.lightbox__media img { width: 100%; height: 100%; object-fit: cover; max-height: 84vh; }
.lightbox__info { padding: clamp(2rem, 4vw, 3.4rem); color: var(--ivoire); align-self: center; }
.lightbox__cat { font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase; color: var(--or-clair); margin-bottom: 1rem; }
.lightbox__title { font-family: var(--serif); font-weight: 400; font-size: clamp(1.8rem, 3vw, 2.6rem); line-height: 1.05; margin-bottom: 0.8rem; }
.lightbox__meta { font-size: 0.78rem; letter-spacing: 0.1em; color: var(--taupe-clair); margin-bottom: 1.6rem; text-transform: uppercase; }
.lightbox__desc { color: rgba(247,243,236,0.82); font-size: 0.98rem; }
.lightbox__close {
  position: absolute; top: 1.6rem; right: 2rem;
  font-size: 2.4rem; line-height: 1; color: var(--ivoire);
  transition: color 0.4s var(--ease);
}
.lightbox__close:hover { color: var(--or); }
.lightbox__nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  font-size: 3rem; color: rgba(247,243,236,0.6); padding: 1rem;
  transition: color 0.4s var(--ease);
}
.lightbox__nav:hover { color: var(--or); }
.lightbox__nav--prev { left: 0.5rem; }
.lightbox__nav--next { right: 0.5rem; }

/* --------------------------------------------------------- */
/* APPROCHE & IA                                             */
/* --------------------------------------------------------- */
.approach { background: var(--ivoire-2); }
.approach__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 0.82fr;
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: center;
}
.approach__lead {
  font-family: var(--serif);
  font-size: clamp(1.2rem, 2.3vw, 1.55rem);
  line-height: 1.5;
  color: var(--noir);
  margin: 1.6rem 0 2.6rem;
  max-width: 46ch;
}
.approach__points { display: flex; flex-direction: column; gap: 1.7rem; }
.approach__points li { display: flex; gap: 1.4rem; align-items: flex-start; }
.approach__pnum {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--or-fonce);
  min-width: 2.6rem;
  line-height: 1.4;
  border-bottom: 1px solid var(--or);
  padding-bottom: 0.15rem;
}
.approach__points h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: 0.25rem;
}
.approach__points p { color: var(--taupe); font-size: 0.95rem; }
.approach__media { position: relative; }
.approach__media-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: linear-gradient(135deg, var(--beige), var(--ivoire));
}
.approach__media-frame::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(194, 160, 91, 0.6);
  z-index: 2;
  pointer-events: none;
}
.approach__media-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}
.approach__media:hover .approach__media-frame img { transform: scale(1.05); }
.approach__badge {
  position: absolute;
  left: 0; bottom: 1.8rem;
  z-index: 3;
  background: var(--noir);
  color: var(--or-clair);
  font-size: 0.66rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 0.75em 1.4em;
}

/* --------------------------------------------------------- */
/* CROQUIS & PLANS                                           */
/* --------------------------------------------------------- */
.sketch { background: var(--ivoire); }
.sketch__head { max-width: var(--maxw); margin: 0 auto 3rem; text-align: center; }
.sketch__head .section__overline { justify-content: center; }
.sketch__intro { color: var(--taupe); max-width: 54ch; margin: 1.4rem auto 0; }
.sketch__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1rem, 2.2vw, 1.9rem);
}
.skcard {
  position: relative;
  cursor: pointer;
  background: #fff;
  padding: 0.9rem 0.9rem 0.4rem;          /* effet passe-partout / papier */
  box-shadow: 0 12px 30px -20px rgba(0, 0, 0, 0.4);
  transition: opacity 0.8s var(--ease), transform 0.6s var(--ease), box-shadow 0.6s var(--ease);
}
.skcard:hover { transform: translateY(-6px); box-shadow: 0 22px 46px -22px rgba(0, 0, 0, 0.5); }
.skcard__inner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3.2;
  background: linear-gradient(135deg, var(--ivoire-2), var(--beige));
}
.skcard__inner::after {
  content: "";
  position: absolute; inset: 0;
  border: 1px solid rgba(194, 160, 91, 0.35);
  z-index: 3; pointer-events: none;
}
.skcard__ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem; text-align: center; padding: 1rem;
  opacity: 0;
}
.skcard.no-img .skcard__ph { opacity: 1; }
.skcard.no-img img { display: none; }
.skcard__ph strong { font-family: var(--serif); font-style: italic; font-weight: 500; font-size: 1.25rem; color: var(--or-fonce); }
.skcard__ph em { font-style: normal; font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--taupe); }
.skcard img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease);
}
.skcard:hover img { transform: scale(1.05); }
.skcard__cap { display: flex; justify-content: space-between; align-items: baseline; gap: 0.7rem; padding: 0.9rem 0.3rem 0.4rem; }
.skcard__title { font-family: var(--serif); font-size: 1.15rem; color: var(--noir); }
.skcard__type { font-size: 0.6rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-fonce); white-space: nowrap; }

/* --------------------------------------------------------- */
/* OUTILS & LOGICIELS                                        */
/* --------------------------------------------------------- */
.tools { background: var(--ivoire); }
.tools__head { max-width: var(--maxw); margin: 0 auto 3.5rem; text-align: center; }
.tools__head .section__overline { justify-content: center; }
.tools__intro { color: var(--taupe); max-width: 54ch; margin: 1.4rem auto 0; }
.tools__grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(1rem, 2vw, 1.6rem);
}
.tool {
  background: #fff;
  border: 1px solid rgba(140, 131, 119, 0.28);
  padding: 1.9rem 1.6rem;
  transition: opacity 0.8s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.tool:hover {
  border-color: var(--or);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px -26px rgba(156, 126, 62, 0.7);
}
.tool__name { font-family: var(--serif); font-weight: 500; font-size: 1.45rem; color: var(--noir); }
.tool__role { font-size: 0.68rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--taupe); margin: 0.35rem 0 1.3rem; }
.tool__bar { height: 2px; background: rgba(140, 131, 119, 0.22); position: relative; overflow: hidden; }
.tool__bar-fill {
  position: absolute; left: 0; top: 0; height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--or-fonce), var(--or-clair));
  transition: width 1.4s var(--ease) 0.2s;
}
.tool.is-in .tool__bar-fill { width: var(--lvl); }
.tool__pct { display: block; font-size: 0.66rem; letter-spacing: 0.1em; color: var(--or-fonce); margin-top: 0.55rem; }

/* --------------------------------------------------------- */
/* VIDÉO                                                     */
/* --------------------------------------------------------- */
.video { background: var(--encre); color: var(--ivoire); }
.video__head { max-width: var(--maxw); margin: 0 auto 3rem; text-align: center; }
.video__head .section__overline { justify-content: center; }
.video__intro { color: var(--taupe-clair); max-width: 52ch; margin: 1.4rem auto 0; }
.video__player {
  position: relative;
  max-width: 1000px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
  border: 1px solid rgba(194, 160, 91, 0.4);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.video__player iframe,
.video__player video { width: 100%; height: 100%; display: block; object-fit: cover; border: 0; }
.video__frame { position: absolute; inset: 10px; border: 1px solid rgba(194, 160, 91, 0.3); z-index: 3; pointer-events: none; }
.video__play {
  position: absolute; inset: 0; margin: auto; z-index: 4;
  width: 86px; height: 86px; border-radius: 50%;
  border: 1px solid var(--or);
  background: rgba(11, 11, 11, 0.4);
  backdrop-filter: blur(2px);
  display: grid; place-items: center;
  transition: all 0.4s var(--ease);
}
.video__play:hover { background: var(--or); transform: translateY(0) scale(1.06); }
.video__play span {
  width: 0; height: 0;
  border-style: solid;
  border-width: 11px 0 11px 19px;
  border-color: transparent transparent transparent var(--ivoire);
  margin-left: 5px;
  transition: border-color 0.4s var(--ease);
}
.video__play:hover span { border-left-color: var(--noir); }

/* --------------------------------------------------------- */
/* CARTE DES ARCHITECTES (MapLibre + OpenFreeMap)            */
/* --------------------------------------------------------- */
.mapsec { background: var(--ivoire); }
.mapsec__head { max-width: var(--maxw); margin: 0 auto 3rem; text-align: center; }
.mapsec__head .section__overline { justify-content: center; }
.mapsec__intro { color: var(--taupe); max-width: 62ch; margin: 1.4rem auto 0; }

.mapsec__frame {
  position: relative;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 10px;
  border: 1px solid rgba(194, 160, 91, 0.5);
  background: linear-gradient(135deg, var(--beige), var(--ivoire-2));
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.5);
}
.map__canvas {
  position: relative;
  width: 100%;
  height: min(66vh, 560px);
  overflow: hidden;
  background: var(--ivoire-2);
}
.map__placeholder {
  position: absolute; inset: 0; z-index: 5;
  display: grid; place-items: center;
  text-align: center; padding: 1.5rem;
  background: linear-gradient(135deg, var(--beige), var(--ivoire-2));
}
.map__placeholder-txt {
  font-family: var(--serif); font-style: italic;
  font-size: clamp(1.1rem, 2vw, 1.4rem); color: var(--or-fonce);
}
.map__toggle {
  position: absolute; top: 22px; right: 22px; z-index: 6;
  background: var(--noir); color: var(--ivoire);
  font-size: 0.68rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.9em 1.6em; border: 1px solid var(--noir);
  transition: all 0.4s var(--ease);
}
.map__toggle:hover,
.map__toggle[aria-pressed="true"] { background: var(--or); color: var(--noir); border-color: var(--or); }

/* Liste des fiches architectes */
.mapsec__list {
  max-width: var(--maxw); margin: 2.4rem auto 0;
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: clamp(0.8rem, 1.6vw, 1.3rem);
}
.mcard {
  background: #fff;
  border: 1px solid rgba(140, 131, 119, 0.26);
  padding: 1.4rem 1.4rem 1.3rem;
  cursor: pointer;
  transition: opacity 0.8s var(--ease), border-color 0.5s var(--ease), transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.mcard:hover {
  border-color: var(--or);
  transform: translateY(-4px);
  box-shadow: 0 18px 38px -26px rgba(156, 126, 62, 0.7);
}
.mcard__idx { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--or); }
.mcard__b { font-family: var(--serif); font-weight: 500; font-size: 1.25rem; line-height: 1.1; margin: 0.3rem 0 0.5rem; color: var(--noir); }
.mcard__a { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--or-fonce); }
.mcard__m { font-size: 0.8rem; color: var(--taupe); margin-top: 0.4rem; }

/* Marqueur doré */
.map-pin {
  width: 30px; height: 30px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, var(--or-clair), var(--or) 55%, var(--or-fonce));
  border: 2px solid #fff;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.45);
  display: grid; place-items: center; cursor: pointer;
  transition: transform 0.3s var(--ease);
}
.map-pin:hover { transform: scale(1.18); }
.map-pin span { color: var(--noir); font-family: var(--serif); font-weight: 600; font-size: 0.82rem; line-height: 1; }

/* Popup MapLibre — habillage thème */
.maplibregl-popup-content {
  background: var(--encre) !important;
  color: var(--ivoire);
  border: 1px solid rgba(194, 160, 91, 0.5);
  border-radius: 0 !important;
  padding: 1.1rem 1.3rem !important;
  box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.75) !important;
}
.maplibregl-popup-tip { display: none !important; }
.maplibregl-popup-close-button { color: var(--or-clair); font-size: 1.2rem; }
.mpop__idx { font-family: var(--serif); font-style: italic; color: var(--or); font-size: 1rem; }
.mpop__b { font-family: var(--serif); font-weight: 500; font-size: 1.3rem; margin: 0.2rem 0 0.4rem; color: var(--ivoire); }
.mpop__a { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--or-clair); }
.mpop__m { font-size: 0.82rem; color: var(--taupe-clair); margin-top: 0.35rem; }
.maplibregl-ctrl-group { border-radius: 0 !important; box-shadow: 0 6px 18px -8px rgba(0, 0, 0, 0.4) !important; }

/* --------------------------------------------------------- */
/* RESPONSIVE                                                */
/* --------------------------------------------------------- */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .tools__grid { grid-template-columns: repeat(2, 1fr); }
  .sketch__grid { grid-template-columns: repeat(2, 1fr); }
  .mapsec__list { grid-template-columns: repeat(2, 1fr); }
  .testi__grid { grid-template-columns: 1fr; max-width: 640px; }
  .wcard, .wcard:nth-child(6n+1), .wcard:nth-child(6n+4) { grid-column: span 3; }
}

@media (max-width: 1000px) {
  .nav__name { display: none; }
  .nav__burger { display: flex; }
  .nav__links {
    position: fixed; inset: 0;
    background: rgba(11,11,11,0.98);
    backdrop-filter: blur(10px);
    flex-direction: column;
    justify-content: center;
    gap: 2rem;
    transform: translateX(100%);
    transition: transform 0.6s var(--ease);
  }
  .nav__links.is-open { transform: translateX(0); }
  .nav__links a { font-size: 1rem; }
  .nav.is-menu-open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
  .nav.is-menu-open .nav__burger span:nth-child(2) { opacity: 0; }
  .nav.is-menu-open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

  .about__grid { grid-template-columns: 1fr; gap: 3.5rem; }
  .about__media { max-width: 420px; margin: 0 auto; width: 100%; }
  .approach__grid { grid-template-columns: 1fr; gap: 3rem; }
  .approach__media { max-width: 420px; margin: 0 auto; width: 100%; }
  .contact__grid { grid-template-columns: 1fr; }
  .lightbox__content { grid-template-columns: 1fr; max-height: 88vh; overflow-y: auto; }
  .lightbox__media img { max-height: 44vh; }
}

@media (max-width: 560px) {
  .services__grid { grid-template-columns: 1fr; }
  .process__steps { grid-template-columns: 1fr; }
  .tools__grid { grid-template-columns: 1fr; }
  .sketch__grid { grid-template-columns: 1fr; }
  .mapsec__list { grid-template-columns: 1fr; }
  .map__canvas { height: min(60vh, 420px); }
  .map__toggle { top: 14px; right: 14px; padding: 0.7em 1.1em; letter-spacing: 0.16em; }
  .work__grid { grid-template-columns: 1fr; }
  .wcard, .wcard:nth-child(6n+1), .wcard:nth-child(6n+4) { grid-column: 1 / -1; aspect-ratio: 4/3.6; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .about__stats { gap: 1.6rem; }
}
