/* pgn studio — feuille de style commune à toutes les pages */
:root {
  --bg: #FFFFFF;
  --ink: #161616;
  --muted: #6B6B68;
  --line: #D9D8D4;
  --ph-1: #ECEBE8;
  --ph-2: #E2E1DD;
  --ph-ink: #5E5D59;
  --font: 'Nunito', 'Helvetica Neue', Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
  --maxw: 1440px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
  padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}
.label { font-size: 12px; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 400; }

/* En-tête */
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 40px; padding-block: 28px; }
.logo { display: block; color: var(--ink); line-height: 0; }
.logo-svg { height: 64px; width: auto; display: block; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 36px; }
.nav a { font-weight: 400; font-size: 13px; letter-spacing: 0.22em; padding: 10px 0; border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* Images provisoires */
.ph {
  background: var(--ph-1);
  color: var(--ph-ink);
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 16px; max-width: 100%;
}
.ph.alt { background: var(--ph-2); }
.media { background: var(--ph-1); }
.ph img, .media img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Apparition douce des pages */
main { animation: fade .45s ease both; }
@keyframes fade { from { opacity: .001; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { main { animation: none; } html { scroll-behavior: auto; } }

/* Accueil */
/* L'accueil occupe tout l'écran, sans bandeau : image d'ambiance, logo au centre, deux liens */
.home {
  display: block; position: relative; height: 100vh; height: 100svh; min-height: 480px; overflow: hidden;
  background: #2A211B; color: #FFFFFF;
}
.home img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.home::after { content: ""; position: absolute; inset: 0; background: rgba(12, 9, 7, 0.22); }
.home-center {
  position: relative; z-index: 1; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 40px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px));
}
.home-center .logo-svg { height: clamp(96px, 16vw, 168px); color: #FFFFFF; }
.home-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 56px; }
.home-links a { color: #FFFFFF; font-weight: 600; font-size: 13px; letter-spacing: 0.28em; padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.7); transition: border-color .2s; }
.home-links a:hover { border-bottom-color: #FFFFFF; }
.home a:focus-visible { outline-color: #FFFFFF; }

/* Réalisations */
.page-title { font-size: 13px; letter-spacing: 0.26em; font-weight: 400; margin: 0; padding-block: 24px 40px; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 56px 32px; padding-bottom: 80px; }
.card { display: flex; flex-direction: column; gap: 14px; }
.card .ph, .card .media { aspect-ratio: 4 / 5; width: 100%; overflow: hidden; }
.card .ph, .card .media img { transition: transform .6s ease, opacity .3s; }
.card:hover .media img { transform: scale(1.02); }
.card:hover .ph { opacity: .82; }
.card-caption { display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; }
.cc-code { font-weight: 600; font-size: 14px; letter-spacing: 0.12em; }
.sep { font-weight: 300; font-size: 11px; color: var(--muted); position: relative; top: -0.12em; }
.cc-surface { font-weight: 300; font-size: 14px; letter-spacing: 0.04em; color: var(--muted); }
@media (max-width: 960px) { .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px 20px; } }
@media (max-width: 560px) { .grid { grid-template-columns: minmax(0, 1fr); } }

/* Projet */
.project-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 32px; padding-block: 24px 40px; }
.project-head h1 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin: 0; font-variant-numeric: tabular-nums; line-height: 1.4; }
.p-code { font-weight: 600; font-size: 16px; letter-spacing: 0.18em; }
.p-surface { font-weight: 300; font-size: 15px; letter-spacing: 0.06em; color: var(--muted); }
.project-meta { color: var(--muted); }
.project-body { display: flex; flex-direction: column; gap: 24px; padding-bottom: 40px; }
.project-body .ph, .project-body .media { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.pair .ph, .pair .media { aspect-ratio: 4 / 5; }
@media (max-width: 640px) { .pair { grid-template-columns: minmax(0, 1fr); } }
.project-text { display: flex; flex-direction: column; gap: 14px; max-width: 58ch; padding-block: 40px 32px; }
.project-text p { margin: 0; font-size: 16px; line-height: 1.8; }
.project-text .lead { font-size: clamp(20px, 2.2vw, 26px); font-weight: 300; line-height: 1.4; text-wrap: balance; }
.project-text .lead em { font-weight: 400; }
strong { font-weight: 600; }
em { font-style: italic; }
.project-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; border-top: 1px solid var(--line); padding-block: 28px 64px; }
.project-nav a { padding: 10px 0; }

/* Studio */
.studio { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px 80px; padding-block: 16px 96px; align-items: start; }
.studio .ph, .studio .portrait { aspect-ratio: 4 / 5; width: 100%; overflow: hidden; background: var(--ph-1); }
.studio-text { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.studio-text h1 { font-size: 20px; letter-spacing: 0.24em; font-weight: 400; margin: 0; }
.roles { color: var(--muted); }
.studio-text p { margin: 0; max-width: 62ch; }
.studio-block { border-top: 1px solid var(--line); padding-top: 24px; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 800px) { .studio { grid-template-columns: minmax(0, 1fr); } }

/* Contact */
.contact { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 56px 96px; padding-block: 16px 96px; align-items: start; }
.contact h1 { font-size: 13px; letter-spacing: 0.26em; font-weight: 400; margin: 0 0 32px; }
form { display: flex; flex-direction: column; gap: 28px; }
.row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; }
.field input, .field textarea {
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--ink); border-radius: 0;
  padding: 10px 0; width: 100%;
}
.field textarea { resize: vertical; min-height: 140px; }
.btn {
  align-self: flex-start; font: inherit; font-size: 12px; letter-spacing: 0.26em; text-transform: uppercase;
  background: var(--ink); color: var(--bg); border: 0; border-radius: 0; padding: 16px 40px; cursor: pointer;
}
.btn:hover { opacity: .85; }
.form-note { font-size: 13px; color: var(--muted); margin: 0; min-height: 1.7em; }
.form-legal { margin: 0; font-size: 13px; color: var(--muted); }
.form-legal a { text-decoration: underline; text-underline-offset: 3px; }
.contact-details { display: flex; flex-direction: column; gap: 22px; margin: 0; padding-top: 56px; }
.contact-details div { display: flex; flex-direction: column; gap: 4px; }
.contact-details dt { color: var(--muted); font-size: 11px; }
.contact-details dd { margin: 0; }
.legal { max-width: 760px; padding-bottom: 96px; }
.legal h2 { color: var(--muted); font-size: 11px; margin: 32px 0 8px; }
.legal p { margin: 0 0 12px; overflow-wrap: anywhere; }
@media (max-width: 800px) { .contact { grid-template-columns: minmax(0, 1fr); } .contact-details { padding-top: 0; } }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-block: 36px 44px; }
.footer-id { display: flex; flex-direction: column; gap: 2px; font-size: 13px; }
.footer-id strong { font-weight: 600; letter-spacing: 0.2em; }
.footer-links { font-weight: 400; display: flex; gap: 24px; font-size: 12px; letter-spacing: 0.2em; }
.footer-links a { padding: 8px 0; }

@media (max-width: 560px) {
  .logo-svg { height: 48px; }
  .site-header .wrap { padding-block: 20px; }
  .nav { gap: 4px 22px; }
  .nav a { font-size: 12px; }
}

.error-page { padding-block: 64px 120px; display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.error-page p { margin: 0; color: var(--muted); }
.error-page a { border-bottom: 1px solid var(--ink); padding: 8px 0; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
