/* ===== TMM 2026 — vitrine « Chambre noire » (direction 1b) ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #070708; --surface: #111013; --line: #1a191c; --line-2: #232225;
  --text: #f2f0ec; --muted: #8f8b85; --dim: #57534e;
  --pad: 48px;
  --serif: 'Bodoni Moda', Georgia, serif;
  --sans: Archivo, 'Helvetica Neue', Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --film: repeating-linear-gradient(45deg, #161517 0 12px, #111013 12px 24px);
}
html { scroll-behavior: smooth; }
body { background: var(--bg); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: 0.01em; }
a { color: inherit; }
img { display: block; max-width: 100%; }
::selection { background: var(--text); color: var(--bg); }

/* Micro-label éditorial */
.micro-label { font-size: 10px; letter-spacing: 0.28em; text-transform: uppercase; color: var(--muted); }

/* Nav */
nav.site { position: sticky; top: 0; z-index: 100; display: flex; justify-content: space-between; align-items: center; padding: 22px var(--pad); background: rgba(7,7,8,0.88); backdrop-filter: blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.5s ease; }
nav.site.scrolled { border-bottom-color: var(--line); }
nav.site .logo { font-family: var(--serif); font-size: 17px; letter-spacing: 0.02em; font-weight: 400; text-decoration: none; }
nav.site .links { display: flex; gap: 30px; align-items: center; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
nav.site .links a { text-decoration: none; transition: color 0.3s ease; }
nav.site .links a:hover, nav.site .links a.active { color: var(--text); }
.lang-toggle { font-family: inherit; font-size: 10px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); background: none; border: none; padding: 4px 2px; cursor: pointer; transition: color 0.3s ease; }
.lang-toggle:hover { color: var(--text); }
.nav-burger { display: none; background: none; border: none; color: var(--text); font-size: 22px; cursor: pointer; }

/* Layout */
.wrap { padding: 0 var(--pad); max-width: 1280px; margin: 0 auto; }
.section { border-top: 1px solid var(--line); padding: 52px 0 68px; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 36px; gap: 16px; flex-wrap: wrap; }
.section-head h2 { font-size: 32px; font-style: italic; font-weight: 400; }
.section-head a { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line-2); padding-bottom: 4px; transition: color 0.3s ease; }
.section-head a:hover { color: var(--text); }

/* Boutons — rectangulaires */
.cta-solid { display: inline-block; font-family: inherit; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; background: var(--text); color: #0a0a0b; padding: 13px 26px; border: none; text-decoration: none; cursor: pointer; transition: background 0.3s ease; }
.cta-solid:hover { background: #ffffff; }
.cta-ghost { display: inline-block; font-family: inherit; font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; border: 1px solid #2a292c; color: #c9c5be; padding: 13px 26px; background: none; text-decoration: none; cursor: pointer; transition: border-color 0.3s ease, color 0.3s ease; }
.cta-ghost:hover { border-color: var(--dim); color: var(--text); }

/* Hero letterbox */
.hero-frame { position: relative; aspect-ratio: 2.39/1; background: var(--film); overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; animation: hero-fade 0.8s ease both; }
@keyframes hero-fade { from { opacity: 0; } to { opacity: 1; } }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(to top, rgba(7,7,8,0.62), rgba(7,7,8,0) 44%); pointer-events: none; }
.hero-overlay { position: absolute; left: var(--pad); bottom: 34px; display: flex; flex-direction: column; gap: 10px; max-width: 70%; }
.hero-title { font-size: clamp(28px, 4.3vw, 44px); font-weight: 500; line-height: 1.05; text-shadow: 0 1px 30px rgba(0,0,0,0.5); }
.hero-kicker { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: #c9c5be; }
.hero-note { position: absolute; right: var(--pad); bottom: 34px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: var(--muted); }
.hero-sub { display: flex; justify-content: space-between; align-items: baseline; gap: 24px; flex-wrap: wrap; padding: 26px var(--pad) 56px; }
.hero-intro { font-size: 13px; color: var(--muted); max-width: 420px; line-height: 1.7; }
.ctas { display: flex; gap: 14px; flex-wrap: wrap; }

/* Bande de faits */
.bande { border-top: 1px solid var(--line); }
.bande .inner { display: grid; grid-template-columns: repeat(3, 1fr); }
.bande .cell { padding: 26px 24px; border-right: 1px solid var(--line); font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.bande .cell:first-child { padding-left: 0; }
.bande .cell:last-child { border-right: none; }
.bande .cell b { display: block; font-family: var(--serif); font-size: 22px; font-weight: 500; letter-spacing: 0.01em; text-transform: none; color: var(--text); margin-bottom: 6px; }

/* À propos */
.about .micro-label { margin-bottom: 20px; }
.about p { font-size: 16px; line-height: 1.9; color: var(--muted); max-width: 720px; }
.about p + p { margin-top: 16px; }

/* Grilles photos */
.work-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.work-grid a { position: relative; display: block; overflow: hidden; background: var(--film); text-decoration: none; color: var(--text); }
.work-grid img { width: 100%; aspect-ratio: 4/5; object-fit: cover; transition: transform 0.8s ease; }
.work-grid a:hover img { transform: scale(1.03); }
.work-grid a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 45%; background: linear-gradient(to top, rgba(7,7,8,0.6), transparent); pointer-events: none; }
.work-grid .tag { position: absolute; left: 18px; bottom: 14px; z-index: 1; font-family: var(--serif); font-style: italic; font-size: 15px; color: #e6e3dd; }

/* Portfolio — grille asymétrique (garde la classe .masonry) */
.masonry { display: grid; grid-template-columns: 1.6fr 1fr; gap: 18px; }
.masonry figure { position: relative; overflow: hidden; background: var(--film); cursor: zoom-in; }
.masonry figure:nth-child(odd) { aspect-ratio: 16/10; }
.masonry figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s ease; }
.masonry figure:hover img { transform: scale(1.02); }
.masonry figcaption { position: absolute; left: 18px; bottom: 14px; font-family: var(--serif); font-style: italic; font-size: 15px; color: #c9c5be; pointer-events: none; }

/* Filtres portfolio */
.filters { display: flex; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.filters button { font-family: inherit; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; background: none; border: none; color: var(--muted); padding: 6px 2px; cursor: pointer; transition: color 0.3s ease; }
.filters button:hover { color: var(--text); }
.filters button.active { color: var(--text); text-decoration: underline; text-underline-offset: 7px; text-decoration-thickness: 1px; }

/* Citation témoignage */
.quote { max-width: 780px; margin: 0 auto; text-align: center; }
.quote blockquote { font-family: var(--serif); font-style: italic; font-weight: 400; font-size: clamp(20px, 2.4vw, 28px); line-height: 1.55; }
.quote .who { margin-top: 24px; font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.quote .who b { color: var(--text); font-weight: 500; }

/* Cartes (tarifs, témoignages multiples) */
.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 18px; }
.panel { background: var(--surface); border: 1px solid var(--line-2); padding: 28px; }
.panel h3 { font-size: 22px; font-style: italic; font-weight: 400; margin-bottom: 14px; }
.price-row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; flex-wrap: wrap; padding: 11px 0; font-size: 14px; border-bottom: 1px solid var(--line); }
.price-row:last-child { border-bottom: none; }
.price-row .pl { min-width: 0; flex: 1 1 55%; overflow-wrap: break-word; color: var(--muted); }
.price-row .pr { font-family: var(--mono); font-size: 13px; letter-spacing: 0.02em; color: var(--text); margin-left: auto; text-align: right; overflow-wrap: anywhere; }
.price-cat { font-size: 10px; letter-spacing: 0.26em; text-transform: uppercase; color: var(--muted); margin: 24px 0 8px; }

/* Accès galerie */
.galerie-acces { background: var(--surface); border: 1px solid var(--line-2); padding: 40px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.galerie-acces h3 { font-size: 26px; font-style: italic; font-weight: 400; }
.galerie-acces p { color: var(--muted); font-size: 13px; line-height: 1.7; margin-top: 8px; max-width: 460px; }
.code-input { display: flex; gap: 12px; flex-wrap: wrap; }
.code-input input { width: 200px; font-family: var(--mono); letter-spacing: 0.08em; font-size: 13px; padding: 12px 16px; }

/* Formulaires */
input, textarea, select { background: var(--bg); border: 1px solid var(--dim); color: var(--text); padding: 12px 14px; font-size: 14px; font-family: inherit; width: 100%; border-radius: 0; }
input:focus, textarea:focus, select:focus { outline: 2px solid var(--muted); outline-offset: 1px; border-color: var(--muted); }
label { font-size: 10px; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid .full { grid-column: 1 / -1; }

/* Focus clavier visible partout (WCAG 2.4.7) */
a:focus-visible, button:focus-visible, .lang-toggle:focus-visible, .nav-burger:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }

/* Lien d'évitement (skip link) */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--text); color: #0a0a0b; padding: 10px 16px; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; }
.skip-link:focus { left: 8px; top: 8px; }

/* Modal + toast */
.modal { display: none; position: fixed; inset: 0; background: rgba(4,4,5,0.82); z-index: 9000; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--line-2); padding: 40px 36px; max-width: 560px; width: 100%; position: relative; }
.modal-close { position: absolute; top: 14px; right: 16px; background: none; border: none; color: var(--muted); font-size: 20px; cursor: pointer; }
.modal-close:hover { color: var(--text); }
.toast { position: fixed; bottom: 24px; right: 24px; background: var(--surface); border: 1px solid var(--line-2); padding: 14px 24px; font-family: var(--mono); font-size: 12px; transform: translateY(80px); opacity: 0; transition: transform 0.5s ease, opacity 0.5s ease; z-index: 1000; }
.toast.show { transform: none; opacity: 1; }

/* Lightbox portfolio */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(4,4,5,0.94); z-index: 9500; align-items: center; justify-content: center; cursor: zoom-out; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 92vh; object-fit: contain; }

/* Footer */
footer.site { border-top: 1px solid var(--line); padding: 36px var(--pad) 48px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
footer.site a { color: var(--muted); text-decoration: none; transition: color 0.3s ease; }
footer.site a:hover { color: var(--text); }

/* Reveal — fondus lents */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { transition: none; opacity: 1; transform: none; }
  .hero-media img { animation: none; }
  .work-grid img, .masonry figure img { transition: none; }
}

/* Langues */
[data-lang="en"] { display: none; }
body.lang-en [data-lang="fr"] { display: none; }
body.lang-en [data-lang="en"] { display: revert; }

/* Responsive */
@media (max-width: 900px) {
  :root { --pad: 24px; }
  .hero-frame { aspect-ratio: 16/10; }
  .hero-overlay { bottom: 24px; max-width: 85%; }
  .hero-note { display: none; }
  .hero-sub { flex-direction: column; align-items: flex-start; padding: 24px var(--pad) 44px; }
  .section { padding: 44px 0 56px; }
  .work-grid { grid-template-columns: 1fr; gap: 14px; }
  .masonry { grid-template-columns: 1fr; gap: 14px; }
  .masonry figure:nth-child(odd) { aspect-ratio: auto; }
  .masonry figure img { height: auto; }
  .bande .inner { grid-template-columns: 1fr; }
  .bande .cell { padding: 18px 0; border-right: none; border-bottom: 1px solid var(--line); }
  .bande .cell:last-child { border-bottom: none; }
  .form-grid { grid-template-columns: 1fr; }
  .galerie-acces { padding: 28px 24px; }
  nav.site .links { display: none; position: fixed; inset: 0; background: var(--bg); flex-direction: column; justify-content: center; gap: 10px; font-size: 12px; letter-spacing: 0.3em; }
  nav.site .links a { padding: 12px; }
  nav.site .links.open { display: flex; }
  .nav-burger { display: block; z-index: 101; }
}
@media (max-width: 540px) {
  .hero-title { font-size: 26px; }
  .ctas { width: 100%; }
  .ctas .cta-solid, .ctas .cta-ghost { flex: 1; text-align: center; }
}
