/*
  raulpmaciel.com — style
  Single shared stylesheet. Pattern hero verrouillé (test 1).
  Newsreader 700/800 titres, 400 body, 500 labels, italic œuvres.
*/

/* ============ Reset ============ */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, p, ul, ol, li, dl, dt, dd, figure, blockquote { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; padding: 0; color: inherit; }

/* ============ Tokens ============ */

:root {
  --paper: #F0E8D7;
  --paper-2: #E5DCC9;
  --ink: #111111;
  --ink-2: rgba(17, 17, 17, 0.55);
  --ink-3: rgba(17, 17, 17, 0.30);
  --hairline: rgba(17, 17, 17, 0.12);
  --accent: #C88A4A;

  --pad-x: 4vw;
  --max-readable: 60ch;

  --duration-fade: 1400ms;
  --duration-slide: 5000ms;
}

/* ============ Body ============ */

html, body {
  background: var(--paper);
  color: var(--ink);
  overflow-x: clip;
  max-width: 100%;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  opacity: 0;
  animation: fadein 900ms ease forwards 100ms;
}

@keyframes fadein { to { opacity: 1; } }

/* ============ Top bar (pattern hero verrouillé) ============ */

.top-bar {
  position: absolute;
  top: 22px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  z-index: 10;
}

.top-bar .wm {
  font-weight: 700;
  font-style: italic;
  font-size: 15px;
  letter-spacing: 0;
  color: var(--paper);
  transition: color 250ms ease;
}

.top-bar .wm:hover { color: var(--accent); }

.top-bar nav {
  display: flex;
  gap: 24px;
  font-weight: 500;
  font-size: 13px;
  color: var(--paper);
}

.top-bar nav a {
  transition: color 250ms ease;
}

.top-bar nav a:hover { color: var(--accent); }

.top-bar nav a[aria-current="page"] {
  font-weight: 700;
  font-style: italic;
}

/* Top bar on paper background (index pages, bio, contact, no hero image) */

.top-bar.on-paper {
  position: relative;
  top: auto;
  left: auto;
  right: auto;
  padding: 22px var(--pad-x);
}

.top-bar.on-paper .wm { color: var(--ink); }
.top-bar.on-paper nav { color: var(--ink-2); }
.top-bar.on-paper nav a:hover { color: var(--accent); }
.top-bar.on-paper nav a[aria-current="page"] { color: var(--ink); }

/* Visually hidden (for skipped labels, semantic only) */

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

/* Year-indexed list (festivals, distinctions, agenda) */

.year-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.year-list li {
  display: grid;
  grid-template-columns: 80px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  line-height: 1.55;
}

.year-list li:first-child { border-top: 0; }
.year-list li:last-child { border-bottom: 1px solid var(--hairline); }

.year-list .year {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.year-list .what em {
  font-style: italic;
  font-weight: 700;
}

@media (max-width: 900px) {
  .year-list li { grid-template-columns: 60px 1fr; }
}

/* ============ Hero ============ */

.hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 640px;
  overflow: hidden;
  background: var(--ink);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.20) 0%,
    rgba(0,0,0,0) 18%,
    rgba(0,0,0,0) 65%,
    rgba(0,0,0,0.50) 100%);
}

.hero-bottom {
  position: absolute;
  bottom: 32px;
  left: var(--pad-x);
  right: var(--pad-x);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4vw;
  align-items: end;
  z-index: 6;
}

.hero-bottom-left {
  position: relative;
}

.hero-bottom-left .label {
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}

.hero-bottom-left h1 {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(36px, 4.6vw, 72px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--paper);
}

.hero-bottom-right {
  text-align: right;
  font-weight: 500;
  font-size: 13px;
  color: var(--paper);
  line-height: 1.7;
  white-space: pre-line;
}

/* Rotation transitions */

.hero-rotation .slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity var(--duration-fade) ease;
}

.hero-rotation .slide.is-active {
  opacity: 1;
  transform: scale(1);
  transition: opacity var(--duration-fade) ease, transform 12000ms linear;
}

.hero-rotation .label,
.hero-rotation h1,
.hero-rotation .meta {
  transition: opacity 700ms ease;
}

.hero-rotation.is-fading .label,
.hero-rotation.is-fading h1,
.hero-rotation.is-fading .meta {
  opacity: 0;
}

/* Progress bar (home only) */

.progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: rgba(240, 232, 215, 0.18);
  z-index: 6;
  pointer-events: none;
}

.progress .bar {
  height: 100%;
  background: var(--accent);
  width: 0;
  transition: width linear var(--duration-slide);
}

/* ============ Bandeau (color blocks per category) ============ */

.bandeau {
  padding: 6vh var(--pad-x);
  min-height: 28vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
  align-items: end;
}

.bandeau h2 {
  grid-column: 1 / span 6;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 1;
  letter-spacing: -0.018em;
}

.bandeau h2 a {
  transition: color 250ms ease;
}

.bandeau h2 a:hover { color: var(--accent); }

.bandeau ul {
  grid-column: 7 / span 6;
  text-align: right;
}

.bandeau li {
  font-size: 17px;
  line-height: 1.5;
  margin-bottom: 18px;
}

.bandeau li:last-child { margin-bottom: 0; }

.bandeau li a {
  transition: color 250ms ease;
  display: inline-block;
}

.bandeau li em {
  font-style: italic;
  font-weight: 700;
}

.bandeau li .meta {
  display: block;
  font-style: italic;
  font-weight: 400;
  font-size: 13.5px;
  opacity: 0.62;
  margin-top: 2px;
}

.bandeau-auteur {
  background: #1A1612;
  color: var(--paper);
}

.bandeau-auteur h2 { color: var(--accent); }
.bandeau-auteur a:hover { color: var(--accent); }

.bandeau-commande {
  background: var(--accent);
  color: var(--paper);
}

.bandeau-commande h2 { color: var(--ink); }
.bandeau-commande li .meta { opacity: 0.85; }
.bandeau-commande a:hover { color: var(--ink); }

/* ============ Bio block (home) ============ */

.bio-home {
  padding: 9vh var(--pad-x) 7vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}

.bio-home .label {
  grid-column: 3 / span 2;
  padding-top: 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.bio-home .text {
  grid-column: 5 / span 6;
  max-width: var(--max-readable);
}

.bio-home .text p {
  margin-bottom: 22px;
  font-size: 19px;
  line-height: 1.65;
}

.bio-home .text p:last-child { margin-bottom: 0; }

.bio-home .text em {
  font-style: italic;
  font-weight: 700;
}

.bio-home .read-more {
  display: inline-block;
  margin-top: 22px;
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink);
  border-bottom: 1px solid var(--ink);
  padding-bottom: 3px;
  transition: color 250ms ease, border-color 250ms ease;
}

.bio-home .read-more:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============ Lead paragraph (project pages) ============ */

.lead {
  padding: 8vh var(--pad-x) 5vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}

.lead p {
  grid-column: 3 / span 8;
  margin-inline: auto;
  max-width: 60ch;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.45;
  text-align: center;
  color: var(--ink);
}

.lead p em {
  font-style: italic;
  font-weight: 700;
}

.lead p strong {
  font-style: normal;
  font-weight: 700;
}

/* ============ Sections (project body) ============ */

.section {
  padding: 4vh var(--pad-x) 6vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}

.section > h2 {
  grid-column: 3 / span 2;
  padding-top: 16px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section > .body {
  grid-column: 5 / span 7;
  max-width: var(--max-readable);
}

.section > .body p {
  margin-bottom: 18px;
  font-size: 17.5px;
  line-height: 1.7;
}

.section > .body p em {
  font-style: italic;
  font-weight: 700;
}

.section > .body p strong {
  font-weight: 700;
  font-style: normal;
}

.section > .body h3 {
  margin: 24px 0 12px;
  font-weight: 700;
  font-style: italic;
  font-size: clamp(20px, 1.8vw, 26px);
  line-height: 1.2;
}

.section > .body blockquote {
  margin: 22px 0;
  padding: 0 0 0 22px;
  border-left: 2px solid var(--accent);
  font-style: italic;
  font-size: 18px;
  line-height: 1.55;
  color: var(--ink);
}

.section > .body blockquote .source {
  display: block;
  margin-top: 10px;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.section > .body ul {
  margin-bottom: 18px;
  padding-left: 22px;
  list-style: disc;
}

.section > .body ul li {
  margin-bottom: 6px;
  font-size: 17.5px;
  line-height: 1.65;
}

/* ============ Image gallery / mosaic (full width on page) ============ */

.gallery {
  padding: 4vh 0 6vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 1vw;
  row-gap: 4vh;
}

.gallery figure { overflow: hidden; }

.gallery figure img {
  width: 100%;
  height: auto;
  display: block;
}

.gallery figure figcaption {
  padding: 10px var(--pad-x) 0;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  line-height: 1.5;
}

.gallery .full      { grid-column: 1 / span 12; }
.gallery .span-9    { grid-column: 2 / span 9; }
.gallery .span-8    { grid-column: 1 / span 8; }
.gallery .span-7    { grid-column: 6 / span 7; }
.gallery .span-6    { grid-column: span 6; }
.gallery .span-5    { grid-column: span 5; }
.gallery .span-4    { grid-column: span 4; }
.gallery .span-3    { grid-column: span 3; }

.gallery figure figcaption {
  padding-left: 0;
  padding-right: 0;
}

/* ============ Specimen row (4 cells edge to edge) ============ */

.specimen-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  margin: 6vh 0;
  background: var(--paper-2);
}

.specimen-row figure {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  position: relative;
  background: var(--paper);
}

.specimen-row figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specimen-row figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

.specimen-trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  margin: 6vh 0;
  background: var(--paper-2);
}

.specimen-trio figure {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  position: relative;
}

.specimen-trio figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.specimen-trio figure figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}

/* ============ Full-bleed image break ============ */

.full-bleed {
  width: 100%;
  margin: 6vh 0;
}

.full-bleed img {
  width: 100%;
  height: auto;
  display: block;
}

.full-bleed figcaption {
  margin-top: 10px;
  padding: 0 var(--pad-x);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

/* ============ Video embed (poster + click-to-play, no letterbox) ============ */

.video {
  margin: 6vh 0;
  width: 100%;
}

.video.full {
  width: 100%;
}

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: var(--ink);
  overflow: hidden;
}

.video-frame .poster, .video-frame .play { display: none; }

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  position: absolute;
  inset: 0;
}

.video-caption {
  margin-top: 12px;
  padding: 0 var(--pad-x);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.video.full .video-caption {
  padding: 0 var(--pad-x);
}

/* ============ Index pages ============ */

.index-page {
  padding: 10vh var(--pad-x) 6vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}

.index-page > header {
  grid-column: 1 / span 12;
  margin-bottom: 6vh;
  text-align: center;
}

.index-page h1 {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.index-page .intro {
  margin: 28px auto 0;
  max-width: 56ch;
  font-style: italic;
  font-size: clamp(17px, 1.4vw, 20px);
  line-height: 1.55;
  color: var(--ink-2);
  text-align: center;
}

.index-list {
  grid-column: 1 / span 12;
}

.index-list li a {
  display: grid;
  grid-template-columns: 80px 1fr auto;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--hairline);
  align-items: baseline;
  transition: padding 250ms ease;
}

.index-list li:last-child a { border-bottom: 1px solid var(--hairline); }
.index-list li a:hover { padding-left: 12px; }

.index-list .num {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--ink-3);
}

.index-list .title {
  font-weight: 700;
  font-style: italic;
  font-size: clamp(24px, 3vw, 40px);
  line-height: 1.05;
  letter-spacing: -0.012em;
  transition: color 250ms ease;
  overflow-wrap: anywhere;
  hyphens: auto;
}

.index-list a:hover .title { color: var(--accent); }

.index-list .meta {
  font-style: italic;
  font-size: 14px;
  color: var(--ink-2);
  white-space: nowrap;
  overflow-wrap: anywhere;
}

/* ============ Bio page CV ============ */

.bio-page {
  padding: 9vh var(--pad-x) 4vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}

.bio-page header {
  grid-column: 1 / span 12;
  margin-bottom: 5vh;
  text-align: center;
}

.bio-page h1 {
  font-weight: 800;
  font-style: italic;
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  letter-spacing: -0.018em;
  color: var(--ink);
}

.bio-prose {
  grid-column: 3 / span 8;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 8vh;
}

.bio-prose p {
  margin-bottom: 22px;
  font-size: 19px;
  line-height: 1.65;
}

.bio-prose p:last-child { margin-bottom: 0; }

.bio-prose em {
  font-style: italic;
  font-weight: 700;
}

/* Liens internes dans les paragraphes éditoriaux. Underline qui se trace au hover. */
.bio-prose a,
.lead a,
.section .body a,
.cv-section .body a {
  background-image:
    linear-gradient(var(--accent), var(--accent)),
    linear-gradient(var(--hairline), var(--hairline));
  background-position: 0 100%, 0 100%;
  background-size: 0 1px, 100% 1px;
  background-repeat: no-repeat;
  padding-bottom: 1px;
  transition: background-size 400ms ease, color 250ms ease;
}
.bio-prose a:hover,
.lead a:hover,
.section .body a:hover,
.cv-section .body a:hover {
  color: var(--accent);
  background-size: 100% 1px, 100% 1px;
}

/* Italiques qui glissent vers l'accent au hover dans la prose éditoriale */
.bio-prose em,
.lead em,
.section .body em,
.video-caption em {
  transition: color 300ms ease;
}
.bio-prose em:hover,
.lead em:hover,
.section .body em:hover,
.video-caption em:hover {
  color: var(--accent);
}

.cv {
  padding: 4vh var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}

.cv-section {
  display: contents;
}

.cv-section h2 {
  grid-column: 3 / span 2;
  padding-top: 12px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.cv-section .body {
  grid-column: 5 / span 7;
  margin-bottom: 8vh;
}

.cv-section .body:last-child { margin-bottom: 0; }

.cv-section .body ul li {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 18px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  font-size: 16px;
  line-height: 1.55;
}

.cv-section .body ul li:first-child { border-top: 0; }
.cv-section .body ul li:last-child { border-bottom: 1px solid var(--hairline); }

.cv-section .body .year {
  font-weight: 500;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.cv-section .body .what em {
  font-style: italic;
  font-weight: 700;
}

/* ============ Newsletter note ============ */

.newsletter-note {
  margin: 8px 0 0;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  min-height: 1em;
}

/* ============ Stay-in-touch ============ */

.keep {
  padding: 8vh var(--pad-x) 6vh;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}

.keep .label {
  grid-column: 3 / span 2;
  padding-top: 6px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.keep .block {
  grid-column: 5 / span 6;
  max-width: 540px;
}

.keep p {
  margin-bottom: 22px;
  font-size: 17px;
  line-height: 1.55;
}

.keep form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}

.keep input[type="email"] {
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 10px 0;
  font: inherit;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  transition: border-color 200ms ease;
}

.keep input[type="email"]:focus { border-bottom-color: var(--accent); }
.keep input[type="email"]::placeholder { color: var(--ink-3); }

.keep button[type="submit"] {
  border: 1px solid var(--ink);
  padding: 10px 22px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  transition: background 250ms ease, color 250ms ease;
}

.keep button[type="submit"]:hover {
  background: var(--ink);
  color: var(--paper);
}

/* ============ Credits (project pages) ============ */

.credits {
  padding: 6vh var(--pad-x);
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  column-gap: 2vw;
}

.credits .label {
  grid-column: 3 / span 2;
  padding-top: 6px;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.credits dl {
  grid-column: 5 / span 7;
  display: grid;
  grid-template-columns: 200px 1fr;
  row-gap: 12px;
  column-gap: 24px;
  font-size: 14px;
}

.credits dt {
  font-weight: 500;
  color: var(--ink-3);
}

.credits dd em {
  font-style: italic;
  color: var(--accent);
  font-weight: 600;
}

/* ============ Footer ============ */

.site-footer {
  padding: 5vh var(--pad-x) 3vh;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 500;
  font-size: 13px;
  color: var(--ink-2);
}

.site-footer a:hover { color: var(--accent); }

.site-footer .social {
  display: flex;
  gap: 14px;
  align-items: center;
}
.site-footer .social a {
  display: inline-flex;
  width: 18px;
  height: 18px;
  color: var(--ink-2);
  transition: color 250ms ease;
}
.site-footer .social a:hover { color: var(--accent); }
.site-footer .social svg {
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* ============ Bio elsewhere (social on bio page) ============ */

.bio-elsewhere {
  grid-column: 3 / span 8;
  max-width: 60ch;
  margin-inline: auto;
  margin-bottom: 8vh;
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
}
.bio-elsewhere a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 250ms ease;
}
.bio-elsewhere a:hover { color: var(--accent); }
.bio-elsewhere svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ============ Responsive ============ */

@media (max-width: 1100px) {
  .gallery .span-9, .gallery .span-7 { grid-column: 1 / span 12; }
}

@media (max-width: 900px) {
  :root { --pad-x: 5vw; }

  .top-bar nav { gap: 14px; font-size: 12px; }

  .hero-bottom { gap: 16px; grid-template-columns: 1fr; }
  .hero-bottom-right { text-align: left; }
  .hero-bottom-left h1 { font-size: clamp(28px, 8vw, 40px); }

  .bandeau {
    grid-template-columns: 1fr;
    gap: 24px;
    min-height: 32vh;
  }
  .bandeau h2, .bandeau ul {
    grid-column: 1 / -1;
    text-align: left;
  }

  .bio-home .label, .bio-home .text,
  .lead p, .section > h2, .section > .body,
  .keep .label, .keep .block,
  .credits .label, .credits dl,
  .index-page h1, .index-list,
  .bio-page h1, .bio-prose, .bio-elsewhere,
  .cv-section h2, .cv-section .body
  { grid-column: 1 / -1; }

  .bio-elsewhere { gap: 20px; flex-wrap: wrap; margin-bottom: 5vh; }
  .site-footer .social { gap: 12px; }

  .credits dl { grid-template-columns: 1fr; }
  .cv-section .body ul li { grid-template-columns: 70px 1fr; }

  .specimen-row { grid-template-columns: repeat(2, 1fr); }
  .specimen-trio { grid-template-columns: 1fr; }

  .gallery .span-8, .gallery .span-6, .gallery .span-5,
  .gallery .span-4, .gallery .span-3
  { grid-column: 1 / span 12; }

  .index-list li a { grid-template-columns: 50px 1fr; }
  .index-list .meta { grid-column: 2; margin-top: 4px; white-space: normal; }
  .index-list .title { font-size: clamp(22px, 6vw, 30px); }
}

@media (max-width: 540px) {
  .top-bar { top: 16px; }
  .hero-bottom-left h1 { font-size: clamp(24px, 9vw, 36px); }

  /* Mobile, le hero rend l'image entière, pas de crop. Texte sous l'image, sur fond sombre, prolonge l'image. */
  .hero {
    height: auto;
    min-height: 0;
    background: #1A1612;
    overflow: visible;
  }
  .hero-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .hero::after {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 96px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.45), rgba(0,0,0,0));
    pointer-events: none;
  }
  .hero-bottom {
    position: relative;
    bottom: auto; left: 0; right: 0;
    padding: 18px var(--pad-x) 28px;
    background: #1A1612;
    grid-template-columns: 1fr;
    gap: 8px;
    z-index: 1;
  }
  .hero-bottom-left .label { color: var(--accent); }
  .hero-bottom-left h1 { color: var(--paper); }
  .hero-bottom-right { color: rgba(240, 232, 215, 0.6); text-align: left; }

  /* Hero rotation, crossfade fluide sur mobile, pas de saut de hauteur */
  .hero-rotation { background: var(--paper); position: relative; overflow: hidden; }
  .hero-rotation .slide {
    position: absolute;
    top: 0; left: 0; right: 0;
  }
  .hero-rotation .slide.is-active {
    position: relative;
  }
  .hero-rotation .slide:not(.is-active) {
    display: block;
    pointer-events: none;
  }
  .hero-rotation .slide .hero-image {
    position: relative;
    inset: auto;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }

  /* Aucun débordement horizontal possible */
  body, main, section, article, figure { max-width: 100%; }
  img, video, iframe { max-width: 100%; height: auto; }
  .index-list .title { font-size: clamp(22px, 6vw, 28px); overflow-wrap: anywhere; hyphens: auto; }
  .index-list .meta { white-space: normal; word-break: break-word; }
  .index-page h1, .bio-page h1 { font-size: clamp(30px, 8vw, 42px); }
  .bandeau h2 { font-size: clamp(24px, 7vw, 36px); grid-column: 1 / -1; text-align: left; }
  .lead p, .bio-prose p, .section .body p { overflow-wrap: anywhere; }
  .credits dl, .credits dt, .credits dd { overflow-wrap: anywhere; }
  .year-list li { grid-template-columns: 60px 1fr; }
  .year-list .what { overflow-wrap: anywhere; }

  /* Marge horizontale pour les légendes pleine largeur sur mobile */
  .gallery figure figcaption,
  .full-bleed figcaption,
  .video-caption { padding-left: var(--pad-x); padding-right: var(--pad-x); }

  /* Resserrer les paddings verticaux sur mobile, fini les vh généreux */
  .index-page    { padding: 6vh var(--pad-x) 4vh; }
  .index-page > header { margin-bottom: 4vh; }
  .bio-page      { padding: 5vh var(--pad-x) 3vh; }
  .bio-page header { margin-bottom: 3vh; }
  .bio-prose     { margin-bottom: 5vh; }
  .lead          { padding: 5vh var(--pad-x) 3vh; }
  .section       { padding: 3vh var(--pad-x) 4vh; }
  .bio-home      { padding: 6vh var(--pad-x) 5vh; }
  .bandeau       { padding: 5vh var(--pad-x); min-height: 0; }
  .credits       { padding: 5vh var(--pad-x); }
  .keep          { padding: 5vh var(--pad-x) 5vh; }
  .cv            { padding: 3vh var(--pad-x); }
  .cv-section .body { margin-bottom: 5vh; }
  .full-bleed, .specimen-row, .specimen-trio, .video, .gallery { margin: 4vh 0; }
  .gallery       { padding: 3vh 0 4vh; }
  .site-footer   { padding: 4vh var(--pad-x) 3vh; }

  /* Mobile, specimen-row + gallery, 1 par ligne, image entière, légende overlay */
  .specimen-row { grid-template-columns: 1fr; }
  .specimen-row figure { aspect-ratio: auto; overflow: visible; }
  .specimen-row figure img { height: auto; }

  .gallery figure { position: relative; overflow: hidden; }
  .gallery figure figcaption {
    position: absolute;
    left: 12px;
    bottom: 12px;
    padding: 0;
    margin: 0;
    font-weight: 500;
    font-size: 11px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--paper);
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
  }
}

/* Honeypot, sans débordement horizontal sur mobile */
form.newsletter input[name="website"] {
  position: absolute !important;
  left: 0 !important;
  top: 0 !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
}

/* ============ Reveal on scroll ============ */

.reveal {
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.reveal.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Newsletter success line ============ */

form.newsletter {
  position: relative;
}
form.newsletter::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 1px;
  background: var(--accent);
  width: 0;
  transition: width 800ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
form.newsletter.is-success::after {
  width: 100%;
}

/* ============ Cookie banner (RGPD, GA4 Consent Mode) ============ */

.cookie-banner {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 100;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--hairline);
  padding: 16px 20px;
  font-size: 13px;
  line-height: 1.5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner p {
  margin: 0;
  flex: 1;
  color: var(--ink-2);
  max-width: 80ch;
}
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.cookie-banner button {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 500;
  padding: 9px 16px;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  transition: color 250ms ease, border-color 250ms ease, background-color 250ms ease;
}
.cookie-banner button:hover {
  color: var(--ink);
  border-color: var(--ink-2);
}
.cookie-banner .cookie-accept {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.cookie-banner .cookie-accept:hover {
  background: var(--accent);
  color: var(--paper);
  border-color: var(--accent);
}

@media (max-width: 700px) {
  .cookie-banner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    padding: 14px 16px;
  }
  .cookie-banner__actions { justify-content: flex-end; }
}

/* ============ Reduce motion ============ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
  .hero-rotation .slide.is-active { transform: none; }
  body { opacity: 1; animation: none; }
  .reveal { opacity: 1; transform: none; }
}
