:root {
  --paper: #EEECE7;
  --ink: #141414;
  --muted: #5E5B55;
  --rule: #C9C5BC;
  --accent: #B42318;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
  --sans: 'Inter Tight', system-ui, sans-serif;
  --gutter: clamp(16px, 4.5vw, 64px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
.wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.mono { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.06em; }

/* En-tête */
.site-header { border-bottom: 1px solid var(--ink); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding-top: 24px; padding-bottom: 24px; }
.logo { font-size: 20px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.nav { display: flex; flex-wrap: wrap; gap: 4px 28px; font-size: 14px; }
.nav a { padding: 12px 0; }
.nav a[aria-current="page"] { color: var(--accent); }

/* Accueil */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-end; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.hero-text { flex: 1 1 340px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.kicker { margin: 0; font-size: 13px; color: var(--accent); }
.hero h1 { margin: 0; font-size: clamp(56px, 8.5vw, 128px); line-height: 0.88; font-weight: 600; letter-spacing: -0.04em; }
.index-list { margin: 0; padding: 0; list-style: none; columns: 2; column-gap: 32px; font-family: var(--mono); font-size: 14px; }
.index-list li { break-inside: avoid; border-top: 1px solid var(--rule); }
.index-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; }
.index-list span:last-child { color: var(--muted); }
.hero figure { flex: 999 1 560px; min-width: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.hero figure img { width: 100%; aspect-ratio: 1170 / 718; object-fit: cover; background: #D8D5CE; }
.hero figcaption { font-size: 12px; color: var(--muted); }

.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--ink); padding-bottom: 16px; }
.section-head h2, .about h2 { margin: 0; font-size: clamp(32px, 4vw, 48px); font-weight: 600; letter-spacing: -0.02em; }
.section-head p { margin: 0; font-size: 13px; color: var(--muted); }
.series { padding-top: clamp(48px, 6vw, 96px); padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 48px 24px; }
.card { display: flex; flex-direction: column; gap: 12px; }
.card .frame { background: var(--ink); padding: 10px; }
.card img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.card span { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.card-contact { justify-content: space-between; gap: 24px; border: 1px solid var(--ink); padding: 24px; min-height: 200px; }
.card-contact .mono { font-size: 12px; color: var(--accent); font-weight: 400; letter-spacing: 0.06em; }
.card-contact strong { font-size: 28px; line-height: 1.1; letter-spacing: -0.02em; }
.about { display: flex; flex-wrap: wrap; gap: 32px 64px; padding-top: 64px; padding-bottom: 64px; }
.about h2 { flex: 1 1 240px; }
.about p { flex: 2 1 480px; margin: 0; font-size: 22px; line-height: 1.5; max-width: 720px; }

/* Page série */
.serie-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 24px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: 40px; }
.serie-head .back { font-size: 13px; color: var(--muted); padding: 8px 0; display: inline-block; }
.serie-head h1 { margin: 16px 0 0; font-size: clamp(56px, 9vw, 144px); line-height: 0.88; font-weight: 600; letter-spacing: -0.04em; }
.serie-head dl { margin: 0; font-size: 13px; }
.serie-head dt { color: var(--muted); }
.serie-head dd { margin: 6px 0 0; }
.serie-head .intro { margin: 0; width: 100%; max-width: 720px; font-size: 20px; line-height: 1.5; border-top: 1px solid var(--ink); padding-top: 24px; }
.gallery { columns: 3 300px; column-gap: 24px; padding-bottom: 64px; }
.gallery button { all: unset; display: block; cursor: zoom-in; margin: 0 0 24px; break-inside: avoid; width: 100%; }
.gallery button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.gallery img { width: 100%; background: #D8D5CE; }
.neighbors { border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.neighbors .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.neighbors a { padding: 32px 24px 32px 0; display: flex; flex-direction: column; gap: 8px; }
.neighbors a:first-child { border-right: 1px solid var(--ink); }
.neighbors a:last-child { padding: 32px 0 32px 24px; align-items: flex-end; text-align: right; }
.neighbors .mono { font-size: 12px; color: var(--muted); }
.neighbors strong { font-size: clamp(28px, 4vw, 48px); letter-spacing: -0.02em; }

/* Visionneuse */
.lightbox { position: fixed; inset: 0; z-index: 10; background: #0B0B0B; color: var(--paper); display: flex; flex-direction: column; }
.lightbox[hidden] { display: none; }
.lightbox .bar { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; }
.lightbox .stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 8px 24px; }
.lightbox img { max-width: calc(100% - 104px); max-height: 100%; object-fit: contain; }
.lightbox button { background: none; border: 1px solid transparent; color: var(--paper); width: 44px; height: 44px; cursor: pointer; display: flex; align-items: center; justify-content: center; flex: none; }
.lightbox .close { border-color: var(--muted); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px 80px; padding-top: clamp(32px, 5vw, 64px); padding-bottom: clamp(32px, 5vw, 64px); }
.contact-info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 32px; }
.contact h1 { margin: 0; font-size: clamp(56px, 8vw, 112px); line-height: 0.9; font-weight: 600; letter-spacing: -0.04em; }
.contact-info > p { margin: 0; font-size: 20px; line-height: 1.5; max-width: 460px; }
.mail { font-size: clamp(24px, 2.6vw, 34px); font-weight: 600; border-bottom: 2px solid var(--ink); align-self: flex-start; padding-bottom: 4px; }
.socials { margin: 0; padding: 0; list-style: none; font-size: 14px; max-width: 460px; }
.socials li { border-top: 1px solid var(--rule); }
.socials li:last-child { border-bottom: 1px solid var(--rule); }
.socials a { display: flex; justify-content: space-between; padding: 14px 0; }
.socials span:last-child { color: var(--muted); }
form { flex: 1 1 420px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 24px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label, legend { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
input, textarea { font: inherit; font-size: 18px; color: var(--ink); background: transparent; }
input { padding: 12px 0; border: none; border-bottom: 1px solid var(--ink); min-height: 44px; }
textarea { padding: 12px; border: 1px solid var(--ink); line-height: 1.5; resize: vertical; }
fieldset { border: none; margin: 0; padding: 0; }
legend { padding: 0; margin-bottom: 12px; }
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topics label { position: relative; }
.topics input { position: absolute; opacity: 0; }
.topics span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border: 1px solid var(--ink); font-family: var(--mono); font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; cursor: pointer; }
.topics input:checked + span { background: var(--ink); color: var(--paper); }
.topics input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.submit { align-self: flex-start; background: var(--ink); color: var(--paper); border: none; padding: 16px 32px; min-height: 52px; font-family: var(--mono); font-size: 14px; text-transform: uppercase; letter-spacing: 0.08em; cursor: pointer; }
.submit:hover { background: var(--accent); }

/* Pied de page */
.site-footer { background: var(--ink); color: var(--paper); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 24px; padding-top: 40px; padding-bottom: 40px; }
.site-footer a { color: var(--paper); }
.site-footer .mail { border: none; font-size: clamp(22px, 3vw, 32px); padding: 0; }
.icons { display: flex; gap: 8px; }
.icons a { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--muted); }
.icons a:hover { border-color: var(--paper); color: var(--paper); }
.copy { margin: 0; width: 100%; font-family: var(--mono); font-size: 12px; color: #A8A49B; letter-spacing: 0.04em; }

/* Accueil : menu seul, liste sur une colonne, fil de photos, À propos façon contact */
.nav-only { justify-content: flex-end; padding-top: 12px; padding-bottom: 12px; }
.index-list.one-col { columns: 1; max-width: 360px; }
.feed { padding: 48px var(--gutter) 64px; display: flex; flex-direction: column; gap: 96px; }
.feed-group { display: flex; flex-direction: column; gap: 24px; scroll-margin-top: 16px; }
.feed-group h2 { margin: 0 auto; width: 100%; max-width: 1440px; padding: 0 clamp(0px, 3vw, 48px) 12px; border-bottom: 1px solid var(--ink); font-size: clamp(28px, 3.5vw, 44px); font-weight: 600; letter-spacing: -0.02em; }
/* Galeries en rangées justifiées (comme l'ancien site) */
.justified { display: flex; flex-wrap: wrap; gap: 10px; width: 100%; max-width: 1440px; margin: 0 auto; padding-bottom: 64px; }
.justified::after { content: ''; flex: 999 1 0; }
.justified .tile { all: unset; display: block; cursor: zoom-in; min-width: 0; }
.justified .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.justified img { width: 100%; height: auto; background: #D8D5CE; transition: opacity .2s; }
.justified .tile:hover img { opacity: .85; }
.feed .justified { padding-bottom: 0; }
.about-contact { border-top: 1px solid var(--ink); }
.big { margin: 0; font-size: clamp(56px, 8vw, 112px); line-height: 0.9; font-weight: 600; letter-spacing: -0.04em; }
.about-text { flex: 1 1 420px; min-width: 0; max-width: 640px; display: flex; flex-direction: column; gap: 24px; }
.about-text p { margin: 0; font-size: 19px; line-height: 1.55; }
.about-text { gap: 16px; }
.about-text .about-lead { font-weight: 600; }
.about-text .submit { margin-top: 8px; }
a.submit { display: inline-flex; align-items: center; color: var(--paper); }
a.submit:hover { color: var(--paper); }

/* Page série : menu à gauche, galerie qui tient dans l'écran (pas de scroll vertical) */
.serie-page { display: flex; height: 100vh; overflow: hidden; }
.side { flex: 0 0 220px; border-right: 1px solid var(--rule); padding: 24px 20px; display: flex; flex-direction: column; gap: 20px; overflow-y: auto; }
.side-name { font-size: 34px; line-height: 1; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.side-list { margin: 0; padding: 0; list-style: none; font-family: var(--mono); font-size: 13px; }
.side-list a { display: block; padding: 4px 0; }
.side-list a[aria-current="page"] { color: var(--accent); }
.side-info { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.side-info h1 { margin: 0; font-size: 32px; line-height: 1; font-weight: 600; letter-spacing: -0.02em; }
.side-info p { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); }
.side-socials { margin: auto 0 0; padding: 0; list-style: none; display: flex; gap: 16px; color: var(--muted); }
.side-socials a { display: block; padding: 2px 0; }
.side-socials svg { display: block; width: 20px; height: 20px; }
.side-socials a:hover { color: var(--accent); }
.side-info:not([hidden]) ~ .side-socials { margin-top: 0; }
.stage-area { flex: 1; min-width: 0; padding: 64px 40px 40px; display: flex; align-items: center; justify-content: center; }
.top-links { position: fixed; top: 0; right: 40px; z-index: 5; display: flex; gap: 28px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; }
.top-links a { display: block; padding: 20px 0 12px; }
.top-links a[aria-current="page"] { color: var(--accent); }
.fit-gallery { width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; }
.fit-row { display: flex; gap: 10px; }
.fit-row .tile { all: unset; display: block; cursor: zoom-in; flex: none; }
.fit-row .tile:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.fit-row img { display: block; width: 100%; height: 100%; object-fit: cover; background: #D8D5CE; transition: opacity .2s; }
.fit-row .tile:hover img { opacity: .85; }
.home-hero { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.home-about { width: 100%; max-width: 1000px; display: flex; flex-wrap: wrap; gap: 48px 80px; overflow-y: auto; max-height: 100%; }
[hidden] { display: none !important; }
/* Texte lu par Google et les lecteurs d'écran, invisible à l'écran */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* Champ piège anti-spam : hors écran pour les humains, présent pour les robots */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-note { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted); max-width: 520px; }

/* Tirages (boutique) */
.stage-area.shop { display: block; overflow-y: auto; padding-top: 72px; }
/* Contact et À propos : même départ en haut à gauche que Tirages */
.stage-area:has(> .home-about:not([hidden])) { align-items: flex-start; justify-content: flex-start; padding-top: 72px; }
body:has(.shop) .top-links { background: var(--paper); padding-left: 16px; }
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 64px; margin-bottom: 48px; }
.shop-head p { margin: 0; max-width: 520px; font-size: 18px; line-height: 1.55; }
.shop-intro { display: flex; flex-direction: column; gap: 14px; }
.shop-head .shop-prices { font-size: 13px; letter-spacing: 0.04em; color: var(--muted); }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 48px 32px; }
.shop-card { display: flex; flex-direction: column; gap: 16px; }
.shop-photo { all: unset; cursor: zoom-in; display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: #E3E0D9; padding: 20px; box-sizing: border-box; }
.shop-photo:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.shop-photo img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 1px 3px rgba(0,0,0,.18); transition: opacity .2s; }
.shop-photo:hover img { opacity: .9; }
.shop-body { display: flex; flex-direction: column; gap: 12px; }
.shop-body h2 { margin: 0; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.shop-meta { margin: 0; font-size: 12px; color: var(--muted); letter-spacing: 0.02em; }
.shop-formats { border: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.shop-formats legend { font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); padding: 0; margin-bottom: 8px; }
.shop-formats label { cursor: pointer; }
.shop-formats input { position: absolute; opacity: 0; pointer-events: none; }
.shop-formats span { display: block; border: 1px solid var(--rule); padding: 8px 12px; font-family: var(--mono); font-size: 12px; }
.shop-formats input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.shop-formats input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.shop-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 4px; }
.shop-price { font-size: 24px; font-weight: 600; }
.shop-buy { padding: 12px 20px; min-height: 0; text-decoration: none; }
.shop-request { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: 64px; padding: 32px; border: 1px solid var(--ink); }
.shop-request p { margin: 0; flex: 1 1 380px; font-size: 18px; line-height: 1.55; }
.shop-request .submit { align-self: center; text-decoration: none; }
.shop-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px; margin: 80px 0 24px; padding-top: 32px; border-top: 1px solid var(--rule); }
.shop-info h2 { margin: 0 0 8px; font-size: 12px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.08em; }
.shop-info p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--muted); }
.shop-info a { text-decoration: underline; }
@media (max-width: 760px) {
  .serie-page { display: block; height: auto; overflow: visible; }
  .side { border-right: none; border-bottom: 1px solid var(--rule); }
  .side-list:not(.side-links) { columns: 2; }
  .stage-area { padding: 16px; }
  .top-links { position: absolute; right: 16px; }
}

@media (max-width: 560px) {
  .index-list { columns: 1; }
}
