/* Propriétés & Opportunités — direction « B · Sable » */
:root {
  --bg: #f4ece0;
  --surface: #e8dbc7;
  --ink: #2b2420;
  --muted: #655b51;
  --line: rgba(43, 36, 32, .14);
  --accent: oklch(0.52 0.1 40);
  --err: #a3402f;
  --band: #3a2e26;
  --band-ink: #f4ece0;
  --band-muted: rgba(244, 236, 224, .72);
  --band-line: rgba(244, 236, 224, .18);
  --band-accent: oklch(0.78 0.09 55);

  --display: 'Archivo', system-ui, sans-serif;
  --body: 'Archivo', system-ui, sans-serif;
  --label: 'IBM Plex Mono', ui-monospace, monospace;
  --dls: -0.02em;
  --hls: -0.04em;

  --gutter: clamp(20px, 5vw, 64px);
  --max: 1280px;
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
}
a { color: inherit; text-decoration: none; }
a:hover { opacity: .7; }
input, textarea, button { font: inherit; }
img { display: block; }
::selection { background: rgba(120, 110, 90, .25); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.nowrap { white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

/* Typographie */
.eyebrow {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow--accent { color: var(--accent); letter-spacing: .16em; }
.label {
  font-family: var(--label);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
}
.display { font-family: var(--display); font-weight: 500; letter-spacing: var(--dls); }
.h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: var(--hls);
  line-height: 1.04;
}
.h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: var(--dls);
  font-size: clamp(32px, 4vw, 52px);
  line-height: 1.1;
}
.lead { margin: 0; font-size: 18px; line-height: 1.65; color: var(--muted); text-wrap: pretty; }

/* Boutons */
.btn {
  display: inline-block;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--bg);
  padding: 18px 28px;
  border: 0;
  cursor: pointer;
}
.btn--outline { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 17px 27px; }
.btn--band { background: var(--band-ink); color: var(--band); }

/* En-tête */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 52px; width: auto; }
.nav { display: flex; gap: 40px; }
.nav a {
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
}
.nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }
.burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
}
.burger span { width: 18px; height: 1px; background: var(--ink); }

.mobile-menu {
  position: fixed;
  inset: var(--header-h) 0 0 0;
  z-index: 19;
  background: var(--bg);
  padding: 40px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu a {
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: var(--dls);
  font-size: 40px;
  line-height: 1.3;
  color: var(--muted);
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.mobile-menu a[aria-current="page"] { color: var(--ink); }
.mobile-menu__mail { margin-top: 32px; font-size: 14px; color: var(--muted); }

@media (max-width: 759px) {
  .site-header .nav { display: none; }
  .burger { display: flex; }
}
@media (min-width: 760px) {
  .mobile-menu { display: none !important; }
}

/* Accueil — hero */
.hero { padding-top: clamp(72px, 12vw, 168px); padding-bottom: clamp(64px, 10vw, 128px); }
.hero .eyebrow { margin-bottom: 36px; }
.hero .h1 { font-size: clamp(44px, 7.6vw, 112px); max-width: 20ch; text-wrap: balance; }
.hero__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 64px;
  align-items: flex-end;
  justify-content: space-between;
  margin-top: clamp(40px, 6vw, 72px);
}
.hero__foot .lead { max-width: 64ch; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Accueil — métiers */
.metiers { border-top: 1px solid var(--line); }
.metiers__inner {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
  display: flex;
  flex-direction: column;
  gap: clamp(56px, 8vw, 120px);
}
.section-head { display: flex; flex-wrap: wrap; gap: 16px 48px; justify-content: space-between; align-items: baseline; }
.section-head .eyebrow { letter-spacing: .16em; }
.metier { display: flex; flex-wrap: wrap; gap: clamp(28px, 5vw, 80px); align-items: center; }
.metier:nth-of-type(even) { flex-direction: row-reverse; }
.metier__text { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.metier__num { font-family: var(--label); font-size: 12px; letter-spacing: .16em; color: var(--accent); }
.metier h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: var(--dls);
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
}
.metier p { margin: 0; max-width: 62ch; color: var(--muted); text-wrap: pretty; }
.metier__img { flex: 1.1 1 420px; min-width: 0; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.metier__img img { width: 100%; height: 100%; object-fit: cover; }

/* Accueil — bandeau réalisations */
.teasers { background: var(--surface); }
.teasers__inner {
  padding-top: clamp(56px, 8vw, 112px);
  padding-bottom: clamp(56px, 8vw, 112px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.teasers__head { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.teasers__track {
  display: flex;
  gap: clamp(16px, 2vw, 28px);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  margin: 0 calc(-1 * var(--gutter));
  padding: 0 var(--gutter) 12px;
  scrollbar-width: thin;
}
.teaser { flex: 0 0 clamp(260px, 30vw, 380px); scroll-snap-align: start; display: flex; flex-direction: column; gap: 16px; }
.teaser:hover { opacity: 1; }
.teaser__media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--bg); }
.teaser__media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.teaser:hover .teaser__media > img { transform: scale(1.03); }
.teaser__before {
  position: absolute;
  left: 12px;
  bottom: 12px;
  width: 34%;
  aspect-ratio: 1;
  border: 3px solid var(--bg);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .18);
}
.teaser__before img { width: 100%; height: 100%; object-fit: cover; }
.teaser__before span {
  position: absolute;
  left: 0;
  top: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  padding: 3px 7px;
}
.teaser__meta { display: flex; flex-direction: column; gap: 4px; }
.meta-line { display: flex; gap: 10px; font-family: var(--label); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; }
.meta-line .num { color: var(--accent); }
.meta-line .cat { color: var(--muted); }
.teaser__title { font-family: var(--display); font-weight: 500; letter-spacing: var(--dls); font-size: 24px; line-height: 1.25; }
.teasers__inner > .btn { align-self: flex-start; }

/* Bandeau sombre « Nous rencontrer » */
.band { background: var(--band); color: var(--band-ink); }
.band__inner {
  padding-top: clamp(72px, 10vw, 144px);
  padding-bottom: clamp(72px, 10vw, 144px);
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: flex-start;
}
.band .eyebrow { color: var(--band-accent); }
.band p {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: var(--dls);
  font-size: clamp(28px, 3.6vw, 48px);
  line-height: 1.2;
  max-width: 34ch;
}

/* En-tête de page intérieure */
.page-head { padding-top: clamp(64px, 10vw, 136px); padding-bottom: clamp(40px, 6vw, 72px); }
.page-head .eyebrow { margin-bottom: 28px; }
.page-head .h1 { font-size: clamp(44px, 6.4vw, 96px); }
.page-head .lead { margin-top: 28px; max-width: 72ch; line-height: 1.6; }

/* Réalisations */
.projects { padding-bottom: clamp(64px, 10vw, 128px); }
.project {
  border-top: 1px solid var(--line);
  padding: clamp(40px, 6vw, 72px) 0;
  display: flex;
  flex-wrap: wrap;
  gap: clamp(28px, 4vw, 64px);
  align-items: flex-start;
  scroll-margin-top: var(--header-h);
}
.project__info { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.project__info .meta-line { gap: 14px; font-size: 12px; align-items: baseline; }
.project h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 500;
  letter-spacing: var(--dls);
  font-size: clamp(30px, 3.2vw, 42px);
  line-height: 1.12;
}
.project dl { margin: 8px 0 0; display: flex; flex-direction: column; gap: 14px; }
.project dl > div { display: flex; flex-direction: column; gap: 2px; }
.project dd { margin: 0; }
.project dd.muted { color: var(--muted); text-wrap: pretty; }
.toggle { display: flex; margin-top: 12px; border: 1px solid var(--line); align-self: flex-start; }
.toggle button {
  border: 0;
  cursor: pointer;
  padding: 12px 20px;
  min-height: 44px;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
  background: transparent;
  color: var(--muted);
  transition: background .2s;
}
.toggle button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.gallery {
  flex: 2 1 460px;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 140px), 1fr));
  gap: clamp(6px, 1vw, 12px);
}
.gallery[hidden] { display: none; }
.gallery button { padding: 0; border: 0; aspect-ratio: 1; overflow: hidden; background: var(--surface); cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.04); }

/* Contact */
.contact {
  padding-top: clamp(64px, 10vw, 136px);
  padding-bottom: clamp(64px, 10vw, 128px);
  display: flex;
  flex-wrap: wrap;
  gap: clamp(48px, 8vw, 128px);
}
.contact__intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.contact__intro .h1 { font-size: clamp(40px, 5.2vw, 80px); white-space: nowrap; }
.contact__intro .lead { max-width: 50ch; line-height: 1.6; }
.contact__intro .actions { margin-top: 8px; }
.contact__details {
  flex: 1.2 1 360px;
  min-width: 0;
  align-self: flex-end;
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.contact__details > div { display: flex; flex-direction: column; gap: 6px; }
.contact__details a { font-size: 18px; word-break: break-all; }
.contact__details .label + div { max-width: 48ch; }
/* Mentions légales */
.legal {
  max-width: 880px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 136px) var(--gutter) clamp(64px, 10vw, 128px);
  display: flex;
  flex-direction: column;
  gap: 40px;
}
.legal .h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.05; }
.legal section { display: flex; flex-direction: column; gap: 10px; padding-top: 28px; border-top: 1px solid var(--line); }
.legal h2 {
  margin: 0;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}
.legal p { margin: 0; color: var(--muted); text-wrap: pretty; }

/* Pied de page */
.site-footer { background: var(--band); color: var(--band-ink); border-top: 1px solid var(--band-line); }
.site-footer__top {
  padding-top: 48px;
  padding-bottom: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 32px 64px;
  justify-content: space-between;
  align-items: flex-start;
}
.site-footer__brand { display: flex; flex-direction: column; gap: 10px; }
.footer-logo {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  color: var(--band-ink);
  font-family: 'Montserrat', var(--display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.08;
  letter-spacing: .01em;
}
.footer-logo svg { width: 62%; height: auto; margin-left: 2%; display: block; overflow: visible; }
.site-footer__brand div { font-size: 14px; color: var(--band-muted); }
.site-footer .nav { flex-wrap: wrap; gap: 16px 32px; }
.site-footer .nav a, .site-footer .nav a[aria-current="page"] { color: var(--band-muted); border: 0; padding: 0; }
.site-footer__mail { font-size: 14px; color: var(--band-muted); }
.site-footer__bottom { padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 12px; color: var(--band-muted); }

/* Visionneuse */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(12, 13, 15, .94);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 16px;
}
.lightbox[hidden] { display: none; }
.lightbox > img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__bar {
  position: absolute;
  top: 20px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  color: #ece8e1;
  font-family: var(--label);
  font-size: 12px;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.lightbox button {
  background: transparent;
  border: 1px solid rgba(236, 232, 225, .3);
  color: #ece8e1;
  cursor: pointer;
  font-size: 18px;
}
.lightbox__close { width: 44px; height: 44px; flex: none; }
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  background: rgba(12, 13, 15, .5) !important;
}
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }
body.no-scroll { overflow: hidden; }
