/* UFAUX — « Archives secrètes » */
:root {
  --ink: #121210;
  --ink-2: #1A1916;
  --ink-3: #2A2925;
  --line: #2E2C27;
  --line-2: #3A3832;
  --paper: #ECE6D6;
  --paper-2: #D8D2C2;
  --muted: #A39F94;
  --ghost: #8E8A80;
  --signal: #E5533A;
  --mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;
  --title: 'Oswald', 'Arial Narrow', sans-serif;
  --serif: 'Source Serif 4', Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--ink); color: var(--paper); font-family: var(--serif); font-size: 18px; line-height: 1.6; }
img { max-width: 100%; display: block; }
a { color: var(--paper); }
a:hover { color: var(--signal); }
:focus-visible { outline: 2px solid var(--signal); outline-offset: 3px; }
[hidden] { display: none !important; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--paper); color: var(--ink); padding: 10px 16px; z-index: 10; }
.skip:focus { left: 16px; top: 16px; }

.wrap { max-width: 1280px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }
.mono { font-family: var(--mono); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.stack { display: flex; flex-direction: column; gap: 20px; }
.kicker { margin: 0; font-family: var(--mono); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: var(--signal); font-weight: 400; }
.kicker.muted { color: var(--muted); }
.display { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(40px, 5.5vw, 80px); line-height: .95; letter-spacing: .03em; text-transform: uppercase; overflow-wrap: break-word; hyphens: auto; }
.display-sm { margin: 0 0 8px; font-family: var(--title); font-weight: 500; font-size: clamp(36px, 5vw, 56px); line-height: 1; letter-spacing: .05em; text-transform: uppercase; }
.lead { margin: 0; font-size: 19px; line-height: 1.6; color: var(--paper-2); }

/* En-tête */
.site-header { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: rgba(18,18,16,.96); z-index: 5; }
.header-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: flex; align-items: baseline; gap: 12px; text-decoration: none; }
.brand-name { font-family: var(--title); font-weight: 600; font-size: 28px; letter-spacing: .18em; }
.brand-tag { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; text-transform: uppercase; }
.main-nav { display: flex; gap: 2px; font-family: var(--mono); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.main-nav::-webkit-scrollbar { display: none; }
.main-nav a { padding: 12px 11px; text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a[aria-current="page"] { border-bottom-color: var(--signal); }

/* Tampons et étiquettes */
.stamp { position: absolute; transform: rotate(-7deg); border: 3px solid var(--signal); color: var(--signal); font-family: var(--title); font-weight: 600; letter-spacing: .16em; text-transform: uppercase; background: rgba(18,18,16,.55); line-height: 1.2; pointer-events: none; }
.stamp-lg { right: 28px; bottom: 28px; padding: 8px 16px; font-size: 22px; }
.stamp-sm { right: 14px; bottom: 14px; padding: 4px 10px; font-size: 14px; border-width: 2px; }
.stamp-static { position: static; transform: rotate(-6deg); }
.tag { position: absolute; left: 0; top: 0; margin: 0; background: var(--ink); padding: 7px 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--paper); }
.tag-inline { position: static; display: inline-block; padding: 0; background: none; color: var(--muted); margin: 14px 0 4px; }

/* Repli quand la photo manque */
.placeholder { background: var(--ink-3); color: var(--ghost); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 100%; }
.placeholder span { font-family: var(--mono); font-size: 12px; letter-spacing: .1em; }

/* Boutons */
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 22px; background: var(--paper); color: var(--ink); text-decoration: none; font-family: var(--mono); font-size: 14px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; border: 0; cursor: pointer; }
.btn:hover { background: var(--signal); color: var(--ink); }
.icon-btn { width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: var(--ink); color: var(--paper); border: 1px solid var(--line-2); cursor: pointer; }
.icon-btn:hover { border-color: var(--paper); }

/* Accueil */
.hero { padding-top: 40px; padding-bottom: 48px; }
.hero-slide { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; }
.hero-media { margin: 0; flex: 3 1 560px; min-width: 0; position: relative; background: var(--ink-3); border: 1px solid var(--line-2); min-height: 440px; overflow: hidden; }
.hero-media > .hero-img, .hero-media > .placeholder { position: absolute; inset: 0; }
.hero-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.15) contrast(1.05); }
.hero-text { flex: 2 1 340px; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 28px; padding: 4px 0; }
.hero-text .stack { gap: 16px; }
.hero-text .lead { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero-nav { display: flex; gap: 8px; }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 24px; font-family: var(--mono); font-size: 13px; }
.facts dt, .fiche dt { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.facts dd { margin: 4px 0 0; }

.band { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--ink-2); }
.band-inner { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; padding-top: 26px; padding-bottom: 26px; }
.band-motto { margin: 0; font-family: var(--title); font-size: clamp(24px, 3vw, 34px); letter-spacing: .04em; }
.band p { margin: 0; }

/* Grilles */
.section { padding-top: 64px; padding-bottom: 88px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; margin-bottom: 28px; }
.section-head h2, .section-head .grid-title { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(32px, 4vw, 44px); letter-spacing: .06em; text-transform: uppercase; }
.section-head p { margin: 0; }
.intro { max-width: 760px; margin: -8px 0 32px; color: var(--paper-2); }
.filters { display: flex; flex-direction: column; gap: 12px; margin-bottom: 32px; font-family: var(--mono); font-size: 13px; }
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-label { color: var(--muted); text-transform: uppercase; letter-spacing: .06em; min-width: 92px; }
.chip { min-height: 44px; padding: 0 16px; cursor: pointer; font-family: inherit; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--paper); background: transparent; color: var(--paper); }
.chip[aria-pressed="true"] { background: var(--paper); color: var(--ink); }
.chip:hover { border-color: var(--signal); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; text-decoration: none; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .15s, transform .15s; }
.card:hover { color: var(--paper); border-color: var(--paper-2); transform: translateY(-2px); }
.card-media { position: relative; height: 230px; background: var(--ink-3); overflow: hidden; }
.card-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.2); }
.card-body { padding: 20px 22px 26px; display: flex; flex-direction: column; gap: 8px; }
.card-body .meta { margin: 0; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.card-body h3 { margin: 0; font-family: var(--title); font-weight: 500; font-size: 28px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.card-text { margin: 0; font-size: 16px; line-height: 1.55; color: var(--paper-2); }
.empty { margin-top: 24px; }

/* Fiche d'un dossier */
.crumbs { margin-bottom: 28px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.dossier-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 36px; }
.dossier-head .stamp { padding: 8px 18px; font-size: 24px; }
.dossier-figure { margin: 0 0 48px; display: flex; flex-direction: column; gap: 12px; }
.dossier-media { position: relative; background: var(--ink-3); border: 1px solid var(--line-2); min-height: 320px; display: flex; align-items: center; justify-content: center; }
.dossier-img { width: 100%; max-height: 78vh; object-fit: contain; background: #0b0b0a; }
.dossier-media .placeholder { min-height: 420px; }
.zoom-btn { position: absolute; right: 16px; top: 16px; }
.dossier-body, .event { display: flex; flex-wrap: wrap; gap: 56px; align-items: flex-start; }
.fiche { flex: 1 1 280px; min-width: 0; border: 1px solid var(--line-2); background: var(--ink-2); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.fiche dl { margin: 0; display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 14px; }
.fiche dl > div { display: flex; justify-content: space-between; gap: 16px; border-bottom: 1px dashed var(--line-2); padding-bottom: 12px; }
.fiche dl > div:last-child { border-bottom: 0; padding-bottom: 0; }
.fiche dl > div.block { flex-direction: column; gap: 6px; }
.fiche dd { margin: 0; text-align: right; }
.fiche .block dd { text-align: left; }
.gauge { letter-spacing: .2em; }
.recit { flex: 999 1 520px; min-width: 0; max-width: 720px; }
.recit h2 { margin: 0 0 18px; }
.recit p { font-size: 20px; line-height: 1.7; margin: 0 0 1.1em; }
.signature { margin-top: 28px !important; font-size: 13px !important; }
.pager { margin-top: 64px; border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; }
.pager a { display: flex; flex-direction: column; gap: 6px; padding: 8px 0; text-decoration: none; }
.pager-next { align-items: flex-end; text-align: right; margin-left: auto; }
.pager-title { font-family: var(--title); font-size: 24px; letter-spacing: .04em; text-transform: uppercase; }

/* Visionneuse */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 96vw; max-height: 96vh; }
.lightbox::backdrop { background: rgba(8,8,7,.94); }
.lightbox img { max-width: 96vw; max-height: 92vh; object-fit: contain; }
.lightbox-close { position: fixed; top: 16px; right: 16px; }

/* Vidéos */
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 40px 32px; }
.video-frame { position: relative; aspect-ratio: 16 / 9; background: #000; border: 1px solid var(--line-2); }
.video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.video-play { position: absolute; inset: 0; padding: 0; border: 0; cursor: pointer; background: #000; }
.video-play img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(.4) brightness(.8); }
.play-icon { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; background: var(--signal); color: var(--ink); display: flex; align-items: center; justify-content: center; }
.video-title { margin: 0; font-family: var(--title); font-weight: 500; font-size: 26px; letter-spacing: .04em; text-transform: uppercase; }
.muted-text { color: var(--paper-2); font-size: 16px; }

/* Inspirations */
.shelf { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; }
.shelf-item { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.shelf-img { width: 100%; aspect-ratio: 270 / 690; object-fit: cover; border: 1px solid var(--line-2); }
.shelf-item .placeholder { aspect-ratio: 270 / 690; }
.shelf-item figcaption { color: var(--muted); }
.shelf-link { display: block; cursor: zoom-in; }
.shelf-link .shelf-img { transition: border-color .15s, transform .15s; }
.shelf-link:hover .shelf-img, .shelf-link:focus-visible .shelf-img { border-color: var(--paper-2); transform: translateY(-2px); }
.lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.lightbox-gallery img { max-height: 86vh; }
.lightbox-figure figcaption { color: var(--paper-2); text-align: center; }
.lightbox-prev, .lightbox-next { position: fixed; top: 50%; transform: translateY(-50%); }
.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

/* Pied de page */
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; padding-top: 28px; padding-bottom: 28px; font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.footer-motto { font-style: italic; }

@media (max-width: 700px) {
  body { font-size: 17px; }
  .wrap { padding-left: 18px; padding-right: 18px; }
  .brand-tag { display: none; }
  .header-inner { padding-top: 10px; padding-bottom: 6px; }
  .main-nav { margin: 0 -18px; padding: 0 12px; width: calc(100% + 36px); }
  .hero { padding-top: 24px; }
  .hero-media { min-height: 300px; flex-basis: 100%; }
  .hero-slide { gap: 24px; }
  .stamp-lg { right: 14px; bottom: 14px; font-size: 16px; padding: 5px 10px; }
  .dossier-head .stamp { font-size: 18px; }
  .recit p { font-size: 18px; }
  .videos { grid-template-columns: 1fr; }
  .shelf { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-label { min-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .card { transition: none; } .card:hover { transform: none; } }

/* Bandeau de consentement (mesure d'audience) */
.consent { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 20; display: flex; justify-content: center; }
.consent-inner { max-width: 980px; width: 100%; background: var(--ink-2); border: 1px solid var(--paper-2); box-shadow: 0 12px 40px rgba(0,0,0,.6); padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; }
.consent-inner > div:first-child { flex: 999 1 420px; min-width: 0; }
.consent-inner p { margin: 0; }
.consent-inner p + p { margin-top: 8px; font-size: 16px; line-height: 1.5; color: var(--paper-2); }
.consent-actions { flex: 1 1 auto; display: flex; gap: 12px; justify-content: flex-end; }
.btn-ghost { background: transparent; color: var(--paper); border: 1px solid var(--paper); }
.btn-ghost:hover { background: var(--paper); color: var(--ink); }
.footer-link { background: none; border: 0; padding: 0; font: inherit; color: var(--paper); text-decoration: underline; cursor: pointer; letter-spacing: inherit; }
.footer-link:hover { color: var(--signal); }
@media (max-width: 700px) { .consent { left: 8px; right: 8px; bottom: 8px; } .consent-actions { width: 100%; } .consent-actions .btn { flex: 1; } }

/* Présentation de l'accueil (bandeau) */
.band-inner { align-items: flex-start; }
.band-text { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.band-h1 { margin: 0; font-family: var(--title); font-weight: 500; font-size: clamp(22px, 2.4vw, 28px); letter-spacing: .05em; text-transform: uppercase; line-height: 1.2; }
.band-site { color: var(--signal); margin-right: .3em; }
.band-intro { margin: 0; max-width: 760px; font-size: 17px; line-height: 1.6; color: var(--paper-2); }
.band-side { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.band-side .band-motto { font-size: clamp(22px, 2.4vw, 28px); }

/* Lien Instagram du pied de page */
.footer-social { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--paper); min-height: 44px; }
.footer-social:hover { color: var(--signal); }
.footer-social svg { flex: none; }
.footer-inner { align-items: center; }
.hero-text .display { font-size: clamp(40px, 4.6vw, 68px); }
.footer-social img { display: block; width: 24px; height: 24px; flex: none; }
