/* ============================================================
   ATELIER HAUSS — Design system global
   Palette : papier chaud / encre forêt / laiton
   ============================================================ */
:root {
  --paper:   #F4F1EA;
  --paper-2: #ECE8DE;
  --ink:     #1B1F1B;
  --forest:  #1C2A22;
  --forest-2:#24352B;
  --brass:   #B08D57;
  --brass-2: #C9A96E;
  --sage:    #7C8B76;
  --line:    rgba(27, 31, 27, .14);
  --line-inv:rgba(244, 241, 234, .16);
  --font-display: "Fraunces", "Didot", "Bodoni MT", Georgia, serif;
  --font-body: "Manrope", "Segoe UI", -apple-system, sans-serif;
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io:  cubic-bezier(.65, 0, .35, 1);
  --gutter: clamp(1.25rem, 4vw, 4rem);
  --max-w: 84rem;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.6;
  font-size: 1rem;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain subtil sur toute la page */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: .05;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="240" height="240"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.9" numOctaves="2" stitchTiles="stitch"/></filter><rect width="100%" height="100%" filter="url(%23n)" opacity="0.7"/></svg>');
}

::selection { background: var(--brass); color: var(--paper); }

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

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

.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Utilitaires typographiques ---------- */
.label {
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--brass);
  display: inline-flex;
  align-items: center;
  gap: .75rem;
}
.label::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: var(--brass);
}

.display {
  font-family: var(--font-display);
  font-weight: 350;
  line-height: 1.06;
  letter-spacing: -.015em;
}

/* ---------- Reveal au scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(2rem);
  transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
  transition-delay: var(--d, 0s);
}
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
   LOADER (présent uniquement sur la page d'accueil)
   ============================================================ */
#loader {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: var(--forest);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 1s var(--ease-io) .55s, visibility 0s 1.6s;
}
#loader .mark {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  color: var(--paper);
  letter-spacing: .3em;
  padding-left: .3em;
  overflow: hidden;
}
#loader .mark span {
  display: inline-block;
  transform: translateY(120%);
  animation: loaderRise 1s var(--ease-out) .1s forwards;
}
@keyframes loaderRise { to { transform: none; } }
body.loaded #loader { transform: translateY(-100%); visibility: hidden; }

/* ============================================================
   CURSEUR CUSTOM
   ============================================================ */
#cursor-dot, #cursor-ring {
  position: fixed;
  top: 0; left: 0;
  z-index: 2500;
  pointer-events: none;
  border-radius: 50%;
  translate: -50% -50%;
}
#cursor-dot {
  width: 6px; height: 6px;
  background: var(--brass);
}
#cursor-ring {
  width: 38px; height: 38px;
  border: 1px solid var(--brass);
  opacity: .55;
  transition: width .35s var(--ease-out), height .35s var(--ease-out), opacity .35s;
}
body.cursor-hover #cursor-ring { width: 64px; height: 64px; opacity: .9; }
@media (hover: none), (pointer: coarse) {
  #cursor-dot, #cursor-ring { display: none; }
}

/* ============================================================
   HEADER
   ============================================================ */
#site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: transform .5s var(--ease-out), background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
#site-header.scrolled {
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
}
#site-header.header-hidden { transform: translateY(-100%); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.1rem;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.3rem;
  letter-spacing: .18em;
  font-weight: 400;
  white-space: nowrap;
}
.brand em {
  font-style: normal;
  color: var(--brass);
}

.nav-links {
  display: flex;
  gap: 2.4rem;
  list-style: none;
}
.nav-links a {
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  position: relative;
  padding-block: .3rem;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--brass);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .45s var(--ease-out);
}
.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
  transform-origin: left;
}
.nav-links a.active { color: var(--brass); }

.header-cta { display: inline-flex; }

/* Burger */
#burger {
  display: none;
  background: none;
  border: 0;
  cursor: pointer;
  width: 2.6rem; height: 2.6rem;
  position: relative;
  z-index: 1200;
}
#burger span {
  position: absolute;
  left: 20%; width: 60%; height: 2px;
  background: var(--ink);
  transition: transform .4s var(--ease-out), opacity .3s, background .3s;
}
#burger span:nth-child(1) { top: 38%; }
#burger span:nth-child(2) { top: 60%; }
body.menu-open #burger span { background: var(--paper); }
body.menu-open #burger span:nth-child(1) { transform: translateY(4px) rotate(45deg); }
body.menu-open #burger span:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* Menu mobile plein écran */
#mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 1100;
  background: var(--forest);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--gutter);
  clip-path: circle(0% at calc(100% - 3rem) 2.4rem);
  transition: clip-path .8s var(--ease-io);
  visibility: hidden;
}
body.menu-open #mobile-menu {
  clip-path: circle(150% at calc(100% - 3rem) 2.4rem);
  visibility: visible;
}
#mobile-menu a {
  font-family: var(--font-display);
  font-size: clamp(2rem, 8vw, 3.2rem);
  color: var(--paper);
  padding-block: .3rem;
  opacity: 0;
  transform: translateY(1.5rem);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
body.menu-open #mobile-menu a { opacity: 1; transform: none; }
body.menu-open #mobile-menu a:nth-child(1) { transition-delay: .25s; }
body.menu-open #mobile-menu a:nth-child(2) { transition-delay: .31s; }
body.menu-open #mobile-menu a:nth-child(3) { transition-delay: .37s; }
body.menu-open #mobile-menu a:nth-child(4) { transition-delay: .43s; }
body.menu-open #mobile-menu a:nth-child(5) { transition-delay: .49s; }
body.menu-open #mobile-menu a:nth-child(6) { transition-delay: .55s; }

/* ============================================================
   BOUTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 1rem 1.9rem;
  border: 1px solid var(--ink);
  border-radius: 99px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  cursor: pointer;
  background: transparent;
  color: var(--ink);
  transition: color .4s var(--ease-out), border-color .4s;
}
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--ink);
  transform: translateY(101%);
  transition: transform .5s var(--ease-out);
  border-radius: inherit;
}
.btn:hover { color: var(--paper); }
.btn:hover::before { transform: none; }
.btn .arrow { transition: transform .4s var(--ease-out); }
.btn:hover .arrow { transform: translateX(4px); }

.btn.solid { background: var(--ink); color: var(--paper); }
.btn.solid::before { background: var(--brass); }
.btn.solid:hover { border-color: var(--brass); }

.btn.inverse { border-color: var(--paper); color: var(--paper); background: transparent; }
.btn.inverse::before { background: var(--paper); }
.btn.inverse:hover { color: var(--forest); }

/* ============================================================
   SECTIONS GÉNÉRIQUES
   ============================================================ */
section { padding-block: clamp(5rem, 10vw, 9rem); }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
}
.section-head h2 {
  font-size: clamp(2rem, 4.4vw, 3.4rem);
  margin-top: 1.1rem;
  max-width: 24ch;
}

.dark {
  background: var(--forest);
  color: var(--paper);
}
.dark .section-head h2 { color: var(--paper); }
.tinted { background: var(--paper-2); }

/* ============================================================
   HERO DE PAGE INTERNE
   ============================================================ */
.page-hero {
  padding-top: clamp(9rem, 16vw, 13rem);
  padding-bottom: clamp(3rem, 6vw, 5rem);
  background:
    radial-gradient(60rem 40rem at 85% 0%, rgba(176, 141, 87, .09), transparent 60%),
    var(--paper);
}
.page-hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.8rem);
  margin-top: 1.2rem;
  max-width: 18ch;
}
.page-hero .intro {
  margin-top: 1.6rem;
  max-width: 38rem;
  font-size: 1.08rem;
  color: color-mix(in srgb, var(--ink) 74%, transparent);
}

/* Fil d'Ariane */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
  align-items: center;
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
  margin-bottom: 1.6rem;
}
.breadcrumb a:hover { color: var(--brass); }
.breadcrumb .sep { color: var(--brass); }

/* Image pleine largeur sous le hero */
.media-band {
  position: relative;
  overflow: hidden;
}
.media-band img {
  width: 100%;
  height: clamp(20rem, 55vh, 34rem);
  object-fit: cover;
}
.media-band.tall img { height: clamp(24rem, 70vh, 42rem); }
.media-band .parallax { will-change: transform; scale: 1.12; }

/* ============================================================
   PROSE — texte éditorial riche
   ============================================================ */
.prose {
  max-width: 44rem;
  font-size: 1.02rem;
  color: color-mix(in srgb, var(--ink) 82%, transparent);
}
.prose h2 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  line-height: 1.15;
  color: var(--ink);
  margin: 2.6em 0 .7em;
}
.prose h2:first-child { margin-top: 0; }
.prose h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  color: var(--ink);
  margin: 2em 0 .5em;
}
.prose p { margin-bottom: 1.15em; }
.prose ul, .prose ol { margin: 0 0 1.15em 1.2em; }
.prose li { margin-bottom: .45em; padding-left: .3em; }
.prose ul li::marker { color: var(--brass); }
.prose strong { color: var(--ink); }
.prose blockquote {
  border-left: 2px solid var(--brass);
  padding-left: 1.4rem;
  margin: 1.8em 0;
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-style: italic;
  color: var(--ink);
}
.prose .lead {
  font-size: 1.18rem;
  color: var(--ink);
}

/* ============================================================
   SPLIT — alternance texte / image
   ============================================================ */
.split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}
.split + .split { margin-top: clamp(3.5rem, 7vw, 6rem); }
.split figure {
  border-radius: 4px;
  overflow: hidden;
  position: relative;
}
.split figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.split figure:hover img { transform: scale(1.05); }
.split.flip > figure { order: 2; }
.split h2, .split h3 {
  font-family: var(--font-display);
  font-weight: 420;
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  line-height: 1.12;
  margin-top: 1rem;
}
.split .body {
  margin-top: 1.2rem;
  color: color-mix(in srgb, var(--ink) 76%, transparent);
}
.split .body p { margin-bottom: 1em; }
.dark .split .body { color: color-mix(in srgb, var(--paper) 72%, transparent); }

/* ============================================================
   FIGURES & GALERIES
   ============================================================ */
figure.frame {
  border-radius: 4px;
  overflow: hidden;
}
figure.frame img { width: 100%; object-fit: cover; }
figcaption.cap {
  padding-top: .8rem;
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
}
.dark figcaption.cap { color: color-mix(in srgb, var(--paper) 55%, transparent); }

.gallery {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
}
.gallery figure { border-radius: 4px; overflow: hidden; margin: 0; }
.gallery img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.gallery figure:hover img { transform: scale(1.05); }
.gallery .w7 { grid-column: span 7; }
.gallery .w5 { grid-column: span 5; }
.gallery .w6 { grid-column: span 6; }
.gallery .w12 { grid-column: span 12; }
.gallery .w4 { grid-column: span 4; }
.gallery .w8 { grid-column: span 8; }

/* ============================================================
   CHIFFRES
   ============================================================ */
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr));
  border-left: 1px solid var(--line-inv);
}
.stat {
  padding: clamp(1.6rem, 3vw, 2.8rem);
  border-right: 1px solid var(--line-inv);
}
.stat .num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(3rem, 6vw, 4.8rem);
  line-height: 1;
  color: var(--brass-2);
  display: flex;
  align-items: baseline;
  gap: .2rem;
}
.stat .num small {
  font-size: .35em;
  color: color-mix(in srgb, var(--paper) 70%, transparent);
  font-family: var(--font-body);
  letter-spacing: .05em;
}
.stat .desc {
  margin-top: 1rem;
  font-size: .85rem;
  letter-spacing: .04em;
  color: color-mix(in srgb, var(--paper) 68%, transparent);
  max-width: 16rem;
}

/* Variante claire (pages internes) */
.stats-grid.on-light { border-color: var(--line); }
.stats-grid.on-light .stat { border-color: var(--line); }
.stats-grid.on-light .num { color: var(--brass); }
.stats-grid.on-light .num small,
.stats-grid.on-light .desc { color: color-mix(in srgb, var(--ink) 62%, transparent); }

/* ============================================================
   CARTES PROJET
   ============================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2.2rem);
}
.project {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
}
.project .visual {
  aspect-ratio: 4 / 3;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
}
.project.wide .visual { aspect-ratio: 16 / 10; }
.project .visual img.bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s var(--ease-out);
}
.project:hover .visual img.bg { transform: scale(1.06); }

.project .visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(27, 31, 27, .55), transparent 55%);
  opacity: 0;
  transition: opacity .6s var(--ease-out);
}
.project:hover .visual::before { opacity: 1; }

.project .go {
  position: absolute;
  z-index: 3;
  right: 1.2rem;
  bottom: 1.2rem;
  width: 3rem; height: 3rem;
  border-radius: 50%;
  background: var(--paper);
  color: var(--ink);
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(.8rem) rotate(-45deg);
  transition: opacity .5s var(--ease-out), transform .5s var(--ease-out);
}
.project:hover .go { opacity: 1; transform: rotate(-45deg); }

.project .perf {
  position: absolute;
  z-index: 3;
  left: 1.2rem;
  top: 1.2rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--paper);
  background: rgba(27, 31, 27, .45);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 241, 234, .25);
  padding: .45rem .85rem;
  border-radius: 99px;
}

.project .meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-top: 1.1rem;
}
.project .meta h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.35rem;
}
.project .meta .where {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  white-space: nowrap;
}
.dark .project .meta .where { color: color-mix(in srgb, var(--paper) 55%, transparent); }

/* Spans homepage */
.projects-grid .s7 { grid-column: span 7; }
.projects-grid .s5 { grid-column: span 5; }
.projects-grid .s6 { grid-column: span 6; }
.projects-grid .s12 { grid-column: span 12; }

/* ============================================================
   SERVICES / CARTES EXPERTISE
   ============================================================ */
.services {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
  gap: 1.4rem;
}
.service {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: clamp(1.6rem, 3vw, 2.4rem);
  position: relative;
  overflow: hidden;
  transition: transform .55s var(--ease-out), box-shadow .55s var(--ease-out);
  display: block;
}
.service:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px -24px rgba(27, 31, 27, .28);
}
.service .icon {
  width: 3.2rem; height: 3.2rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brass);
  margin-bottom: 1.6rem;
  transition: background .5s var(--ease-out), color .5s;
}
.service:hover .icon { background: var(--brass); color: var(--paper); }
.service h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.3rem;
  margin-bottom: .8rem;
}
.service p {
  font-size: .93rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
}
.service .idx {
  position: absolute;
  top: 1.3rem; right: 1.5rem;
  font-family: var(--font-display);
  font-style: italic;
  color: color-mix(in srgb, var(--ink) 22%, transparent);
  font-size: 1.1rem;
}
.service .more {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: 1.2rem;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
}
.service .more .arrow { transition: transform .4s var(--ease-out); }
.service:hover .more .arrow { transform: translateX(4px); }

/* ============================================================
   ÉTAPES (approche)
   ============================================================ */
.steps { border-top: 1px solid var(--line-inv); }
.step {
  display: grid;
  grid-template-columns: 6rem 1fr 2rem;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3.4vw, 2.6rem);
  border-bottom: 1px solid var(--line-inv);
  transition: padding-left .5s var(--ease-out), background .5s;
}
.step:hover {
  padding-left: 1.4rem;
  background: rgba(244, 241, 234, .03);
}
.step .no {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 300;
  font-size: clamp(1.6rem, 3vw, 2.3rem);
  color: var(--brass-2);
}
.step h3 {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.25rem, 2.4vw, 1.7rem);
  margin-bottom: .35rem;
}
.step p {
  font-size: .92rem;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  max-width: 46rem;
}
.step .tip {
  color: var(--brass-2);
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity .5s, transform .5s var(--ease-out);
}
.step:hover .tip { opacity: 1; transform: none; }

/* Variante claire */
.steps.on-light { border-color: var(--line); }
.steps.on-light .step { border-color: var(--line); }
.steps.on-light .step:hover { background: rgba(27, 31, 27, .03); }
.steps.on-light .step .no { color: var(--brass); }
.steps.on-light .step p { color: color-mix(in srgb, var(--ink) 68%, transparent); }
.steps.on-light .step .tip { color: var(--brass); }

/* ============================================================
   MESURES — indicateurs chiffrés sur fond sombre
   ============================================================ */
.measures {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 1.4rem;
}
.measure {
  border: 1px solid var(--line-inv);
  border-radius: 4px;
  padding: clamp(1.4rem, 3vw, 2rem);
  transition: border-color .4s, transform .5s var(--ease-out);
}
.measure:hover { border-color: var(--brass-2); transform: translateY(-4px); }
.measure .val {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2rem;
  color: var(--brass-2);
}
.measure h3 {
  font-size: .95rem;
  font-weight: 700;
  margin-top: .6rem;
}
.measure p {
  font-size: .85rem;
  color: color-mix(in srgb, var(--paper) 62%, transparent);
  margin-top: .4rem;
}

/* ============================================================
   SPECS — table technique projet
   ============================================================ */
.specs {
  border-top: 1px solid var(--line);
}
.specs > div {
  display: grid;
  grid-template-columns: minmax(9rem, 16rem) 1fr;
  gap: 1rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--line);
  font-size: .95rem;
}
.specs .k {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
  padding-top: .25rem;
}
.specs .v strong { color: var(--brass); font-weight: 700; }

/* ============================================================
   FAQ — accordéon natif stylé
   ============================================================ */
.faq { border-top: 1px solid var(--line); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding-block: 1.4rem;
  font-family: var(--font-display);
  font-weight: 450;
  font-size: 1.15rem;
  transition: color .3s;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--brass); }
.faq summary .plus {
  flex: none;
  width: 2rem; height: 2rem;
  border: 1px solid var(--brass);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--brass);
  transition: transform .45s var(--ease-out), background .35s, color .35s;
}
.faq details[open] summary .plus {
  transform: rotate(45deg);
  background: var(--brass);
  color: var(--paper);
}
.faq .answer {
  padding: 0 0 1.6rem;
  max-width: 44rem;
  color: color-mix(in srgb, var(--ink) 74%, transparent);
  font-size: .97rem;
}

/* ============================================================
   CTA BAND — pré-footer
   ============================================================ */
.cta-band {
  background: var(--forest);
  color: var(--paper);
  position: relative;
  overflow: hidden;
  text-align: center;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(50rem 30rem at 85% 10%, rgba(176, 141, 87, .14), transparent 60%),
    radial-gradient(40rem 26rem at 10% 90%, rgba(124, 139, 118, .10), transparent 60%);
}
.cta-band .container { position: relative; }
.cta-band h2 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  max-width: 22ch;
  margin: 1.2rem auto 0;
}
.cta-band h2 em { font-style: italic; color: var(--brass-2); }
.cta-band p {
  max-width: 34rem;
  margin: 1.4rem auto 0;
  color: color-mix(in srgb, var(--paper) 68%, transparent);
}
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 2.4rem;
}

/* ============================================================
   NAVIGATION PROJET (précédent / suivant)
   ============================================================ */
.pagenav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.pagenav a {
  padding: clamp(1.6rem, 3.5vw, 2.6rem) var(--gutter);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  transition: background .4s;
}
.pagenav a:hover { background: var(--paper-2); }
.pagenav a + a { border-left: 1px solid var(--line); text-align: right; align-items: flex-end; }
.pagenav .dir {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--brass);
}
.pagenav .name {
  font-family: var(--font-display);
  font-weight: 450;
  font-size: clamp(1.2rem, 2.6vw, 1.7rem);
}

/* ============================================================
   ÉQUIPE (studio)
   ============================================================ */
.team {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: clamp(1.4rem, 3vw, 2.4rem);
}
.member figure {
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 3 / 4;
}
.member img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1s var(--ease-out), filter 1s;
}
.member:hover img { transform: scale(1.04); }
.member h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.25rem;
  margin-top: 1.1rem;
}
.member .role {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--brass);
  margin-top: .2rem;
}

/* ============================================================
   TÉMOIGNAGE
   ============================================================ */
.quote-mark {
  font-family: var(--font-display);
  font-size: 4.5rem;
  line-height: .5;
  color: var(--brass);
  display: block;
}
.big-quote {
  font-family: var(--font-display);
  font-weight: 350;
  font-size: clamp(1.5rem, 3.4vw, 2.6rem);
  line-height: 1.35;
  max-width: 52rem;
  margin: 2.2rem auto 0;
}
.big-quote em { color: var(--brass); }
.quote-who {
  margin-top: 2.2rem;
  font-size: .8rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 58%, transparent);
}
.dark .quote-who { color: color-mix(in srgb, var(--paper) 58%, transparent); }

/* ============================================================
   MARQUEE
   ============================================================ */
.marquee {
  border-block: 1px solid var(--line);
  padding-block: 1.35rem;
  overflow: hidden;
  background: var(--paper-2);
}
.marquee-track {
  display: flex;
  gap: 3.5rem;
  width: max-content;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  white-space: nowrap;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  display: inline-flex;
  align-items: center;
  gap: 3.5rem;
}
.marquee-track span::after {
  content: "◆";
  font-size: .5rem;
  color: var(--brass);
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   FORMULAIRES
   ============================================================ */
.contact-form {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(1.6rem, 3.5vw, 2.8rem);
}
.field { margin-bottom: 1.4rem; }
.field label {
  display: block;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 55%, transparent);
  margin-bottom: .5rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: .65rem .1rem;
  font: inherit;
  font-size: .98rem;
  color: var(--ink);
  border-radius: 0;
  transition: border-color .35s;
}
.field textarea { resize: vertical; min-height: 6.5rem; }
.field :is(input, select, textarea):focus {
  outline: none;
  border-bottom-color: var(--brass);
}
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.4rem;
}
.form-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.8rem;
}
.form-footer .note {
  font-size: .78rem;
  color: color-mix(in srgb, var(--ink) 50%, transparent);
  max-width: 16rem;
}
.form-ok {
  display: none;
  margin-top: 1.2rem;
  padding: 1rem 1.2rem;
  border: 1px solid var(--sage);
  border-radius: 4px;
  color: var(--forest);
  background: color-mix(in srgb, var(--sage) 14%, transparent);
  font-size: .9rem;
}
.form-ok.show { display: block; animation: fadeUp .6s var(--ease-out); }

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(1.2rem); }
  to   { opacity: 1; transform: none; }
}

/* Grille contact (accueil + page contact) */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(2.5rem, 6vw, 6rem);
  align-items: start;
}
.contact-info h2 {
  font-family: var(--font-display);
  font-weight: 350;
  line-height: 1.06;
  font-size: clamp(2.1rem, 4.5vw, 3.4rem);
  margin-top: 1.1rem;
}
.contact-info .lead {
  margin-top: 1.4rem;
  color: color-mix(in srgb, var(--ink) 72%, transparent);
  max-width: 30rem;
}
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr; }
}

/* Lignes d'information contact */
.contact-rows { border-top: 1px solid var(--line); }
.contact-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1.1rem;
  border-bottom: 1px solid var(--line);
  font-size: .93rem;
}
.contact-rows .k {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--ink) 52%, transparent);
  padding-top: .2rem;
}
.contact-rows .v { text-align: right; }
.contact-rows a.v:hover { color: var(--brass); }

/* ============================================================
   FOOTER
   ============================================================ */
footer.site-footer {
  background: var(--ink);
  color: var(--paper);
  padding-block: clamp(3rem, 6vw, 5rem) 2rem;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--line-inv);
}
.footer-brand .brand { font-size: 1.6rem; }
.footer-brand p {
  margin-top: 1rem;
  max-width: 20rem;
  font-size: .88rem;
  color: color-mix(in srgb, var(--paper) 60%, transparent);
}
.footer-col h4 {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--brass-2);
  margin-bottom: 1.1rem;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: .55rem; }
.footer-col a {
  font-size: .9rem;
  color: color-mix(in srgb, var(--paper) 72%, transparent);
  transition: color .3s;
}
.footer-col a:hover { color: var(--brass-2); }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.6rem;
  font-size: .78rem;
  color: color-mix(in srgb, var(--paper) 45%, transparent);
}
.footer-bottom a:hover { color: var(--brass-2); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .header-cta { display: none; }
  #burger { display: block; }
  .projects-grid .s7, .projects-grid .s5,
  .projects-grid .s6, .projects-grid .s12 { grid-column: span 12; }
  .gallery .w7, .gallery .w5, .gallery .w6,
  .gallery .w4, .gallery .w8 { grid-column: span 12; }
  .split { grid-template-columns: 1fr; }
  .split.flip > figure { order: 0; }
  .step { grid-template-columns: 3.5rem 1fr; }
  .step .tip { display: none; }
  .pagenav { grid-template-columns: 1fr; }
  .pagenav a + a { border-left: 0; border-top: 1px solid var(--line); }
  .field-row { grid-template-columns: 1fr; }
}

/* ============================================================
   ACCESSIBILITÉ — mouvement réduit
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
