:root {
  --bg: #0f0e0c;
  --panel: #1a1815;
  --fg: #efe9df;
  --muted: #b5ab9b;
  --gold: #c9a24a;
  --gold-2: #e3c477;
  --line: #2e2a24;
  --serif: "Cormorant Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 17px/1.65 var(--sans); }
a { color: var(--gold-2); }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: .01em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 0 0 1.2rem; color: var(--gold-2); }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 1rem; }
strong { color: var(--gold-2); font-weight: 600; }
.small { font-size: .85rem; color: var(--muted); }

/* En-tête */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
  padding: .6rem clamp(1rem, 4vw, 2.5rem); background: rgba(15, 14, 12, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--fg); margin-right: auto; }
.brand img { width: 48px; height: 48px; border-radius: 50%; }
.brand span { font-family: var(--serif); font-size: 1.4rem; letter-spacing: .12em; text-transform: uppercase; }
.menu, .langs { display: flex; gap: .1rem; }
.menu a, .langs a { text-decoration: none; color: var(--muted); padding: .35rem .6rem; border-radius: 4px; white-space: nowrap; }
.menu a:hover, .langs a:hover, [aria-current] { color: var(--gold-2) !important; }
.langs { font-size: .8rem; }
.menu { width: 100%; overflow-x: auto; scrollbar-width: none; font-size: .95rem; margin: 0 -.6rem; }
.menu::-webkit-scrollbar { display: none; }
@media (min-width: 1100px) {
  .top { flex-wrap: nowrap; }
  .menu { width: auto; order: 1; margin: 0; }
  .langs { order: 2; }
}

/* Mise en page */
main { min-height: 60vh; }
.wrap { max-width: 1200px; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) clamp(1rem, 4vw, 2.5rem); }
.text { max-width: 760px; }
.text p { margin: 0 0 1.1rem; }
.lead { font-size: 1.15rem; color: var(--fg); }
.btn { display: inline-block; margin-top: .5rem; padding: .7rem 1.4rem; border: 1px solid var(--gold); color: var(--gold-2);
  text-decoration: none; border-radius: 999px; letter-spacing: .05em; }
.btn:hover { background: var(--gold); color: #111; }

.hero { position: relative; display: grid; grid-template: 1fr / 1fr; height: min(82vh, 760px); min-height: 460px; overflow: hidden; }
.hero > * { grid-area: 1 / 1; }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: brightness(.4); }
.hero-text { position: relative; z-index: 1; align-self: center; justify-self: center; text-align: center; padding: clamp(1.5rem, 6vw, 5rem); max-width: 820px; }
.hero-logo { width: clamp(90px, 14vw, 140px); height: auto; margin: 0 auto 1rem; border-radius: 50%; box-shadow: 0 8px 40px rgba(0, 0, 0, .6); }
.hero h1 { font-size: clamp(2.4rem, 7vw, 4.6rem); font-style: italic; }

.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.card { position: relative; display: block; overflow: hidden; border-radius: 8px; aspect-ratio: 4 / 5; text-decoration: none; }
.card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.card:hover img { transform: scale(1.05); }
.card span { position: absolute; inset: auto 0 0; padding: 1.2rem; font-family: var(--serif); font-size: 1.6rem; color: #fff;
  background: linear-gradient(transparent, rgba(0, 0, 0, .8)); }

.gallery, .mosaic { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.mosaic { grid-auto-flow: dense; }
.tile { position: relative; display: block; overflow: hidden; border-radius: 6px; aspect-ratio: 1; background: var(--panel); text-decoration: none; }
.tile img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.tile:hover img { transform: scale(1.05); }
.mosaic .tile:nth-child(5n + 1) { grid-column: span 2; grid-row: span 2; }
@media (max-width: 520px) { .mosaic .tile:nth-child(5n + 1) { grid-column: auto; grid-row: auto; } }
.cap { position: absolute; inset: auto 0 0; padding: .6rem .8rem; color: #fff; font-size: .9rem; background: linear-gradient(transparent, rgba(0, 0, 0, .75)); }
.cap small { display: block; color: var(--gold-2); }
.mosaic .cap { display: none; }

.duo { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); padding-top: 0; }
.duo figure { margin: 0; }
.duo img { border-radius: 8px; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.video { position: relative; aspect-ratio: 16 / 9; border-radius: 8px; overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

.offices { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); margin-bottom: 1.5rem; }
.office { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 1.5rem; }
.office h2 { color: var(--gold-2); }

.foot { border-top: 1px solid var(--line); padding: 2rem clamp(1rem, 4vw, 2.5rem); color: var(--muted); font-size: .9rem; display: grid; gap: .3rem; text-align: center; }

/* Visionneuse */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(0, 0, 0, .92); }
.lightbox figure { margin: 0; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1rem 1rem; }
.lightbox img { max-height: calc(100vh - 6rem); max-width: 100%; object-fit: contain; }
.lightbox figcaption { color: var(--fg); padding-top: .6rem; }
.lightbox button { position: fixed; background: rgba(0, 0, 0, .4); color: #fff; border: 0; font-size: 2rem; cursor: pointer; width: 3rem; height: 3rem; border-radius: 50%; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; }
.lb-next { right: 1rem; top: 50%; }
