/* ==========================================================================
   Julie Ruffe — styles.css (feuille unique, partagée par toutes les pages)
   Polices à déclarer en @font-face lors de l'intégration :
   - Offside : nom de l'artiste et grands titres
   - Work Sans (300, 400, italique 300) : tout le reste
   ========================================================================== */

/* 1. Variables
   -------------------------------------------------------------------------- */
:root {
  /* Couleurs */
  --color-bg: #FBFBFA;            /* fond principal */
  --color-bg-alt: #F7F1ED;        /* sections alternées */
  --color-placeholder: #F1F1EF;   /* fond des images en attente */
  --color-ink: #1C1B1B;           /* texte principal */
  --color-text: #3A3937;          /* texte secondaire */
  --color-muted: #7A7875;         /* sur-titres, légendes */
  --color-accent: #4C0719;        /* accent : liens, sur-titres */
  --color-accent-light: #971B3C;  /* menus : survol et page en cours */
  --color-white: #FFFFFF;
  --color-line: rgba(0, 0, 0, .12);
  --color-field: rgba(0, 0, 0, .25);
  --color-overlay: rgba(251, 251, 250, .96);  /* visionneuse (= --color-bg) */
  --shadow-on-image: 0 0 12px rgba(0, 0, 0, .45);

  /* Polices */
  --font-display: 'Offside', sans-serif;
  --font-body: 'Work Sans', Helvetica, Arial, sans-serif;

  /* Tailles de texte */
  --text-xs: 11px;                          /* menus, sur-titres, légendes */
  --text-sm: 12px;
  --text-md: 13px;
  --text-base: 15px;                        /* texte courant */
  --text-logo: 16px;
  --text-lede: clamp(22px, 2vw, 28px);      /* citations, chapeaux */
  --text-h2: clamp(24px, 2.4vw, 34px);      /* titres de blocs */
  --text-h1: clamp(40px, 5vw, 76px);        /* titres de page */
  --text-h1-sm: clamp(40px, 4.5vw, 64px);   /* titres de page (artiste, contact) */
  --text-hero: clamp(56px, 7.5vw, 120px);   /* nom sur l'accueil */
  --text-display: clamp(40px, 11vw, 190px); /* titre d'exposition — 40px mini : « Frémissements » doit tenir sur 375px */

  /* Espacements */
  --space-1: 8px;
  --space-2: 12px;
  --space-3: 20px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 48px;
  --space-7: 56px;
  --gutter: 32px;          /* marge latérale */
  --section-y: 12vh;       /* marge verticale des sections */
  --page-top: 120px;       /* haut des pages intérieures */
  --header-h: 64px;
  --container: 1400px;
  --measure: 620px;        /* largeur max. des textes */
}

/* 2. Base
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 300;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--color-ink); text-decoration: none; transition: color .3s; }
a:hover { color: var(--color-accent); }
:focus-visible { outline: 1px solid var(--color-accent-light); outline-offset: 3px; }
input, textarea, button { font: inherit; }
p, li, blockquote, h1, h2, h3 { text-wrap: pretty; }

.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  padding: var(--space-1) var(--space-2);
  background: var(--color-bg);
  font-size: var(--text-xs); font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
}
.skip-link:focus { top: var(--space-1); }

/* 3. Utilitaires
   -------------------------------------------------------------------------- */
/* Même largeur de contenu que .page-intro (dont le max-width inclut la marge latérale) :
   le contenu des sections s'aligne sur le titre de la page, à gauche comme à droite. */
.container { max-width: calc(var(--container) - 2 * var(--gutter)); margin: 0 auto; }
.section { padding: var(--section-y) var(--gutter); }
.section--alt { background: var(--color-bg-alt); }
.section--flush-top { padding-top: 0; }
.eyebrow {
  font-size: var(--text-xs); font-weight: 400; line-height: 1.5;
  letter-spacing: .12em; text-transform: uppercase; color: var(--color-muted);
}
.eyebrow--accent { color: var(--color-accent); }
.eyebrow--spaced { margin-bottom: var(--space-5); }
.lede { font-size: var(--text-lede); line-height: 1.35; }
.prose { max-width: var(--measure); margin: 0; display: flex; flex-direction: column; gap: 22px; }
.prose--large { max-width: calc(100% * 2 / 3); font-size: 17px; line-height: 1.7; } /* 2/3 de la largeur du contenu */
@media (max-width: 860px) { .prose--large { max-width: none; } }
.link-arrow {
  font-size: var(--text-sm); font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  border-bottom: 1px solid currentColor; padding-bottom: 3px;
}
.media-empty {
  width: 100%; height: 100%;
  display: flex; align-items: flex-end;
  padding: var(--space-2);
  background: var(--color-placeholder);
  font-size: var(--text-xs); line-height: 1.4; color: var(--color-muted);
}
.on-image {
  position: absolute; left: var(--space-4); bottom: 20px;
  font-size: var(--text-xs); letter-spacing: .06em; line-height: 1.5;
  color: var(--color-white); text-shadow: var(--shadow-on-image);
}

/* 4. En-tête
   -------------------------------------------------------------------------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 20;
  padding: 22px var(--gutter);
  /* Fond plein : le contenu qui défile passe dessous sans se voir à travers. */
  background: var(--color-bg);
}
.site-nav__list { display: flex; align-items: center; justify-content: space-between; }
.site-nav a {
  display: inline-block;
  font-size: var(--text-xs); font-weight: 400; line-height: 1.5;
  letter-spacing: .08em; text-transform: uppercase;
  padding-bottom: 2px; border-bottom: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current] { color: var(--color-accent-light); }
.site-nav a[aria-current] { border-bottom-color: var(--color-accent-light); }
.site-nav .logo {
  font-family: var(--font-display); font-size: var(--text-logo); font-weight: 400;
  letter-spacing: .08em; -webkit-text-stroke: .5px currentColor;
}
.site-nav .logo[aria-current] { color: var(--color-ink); border-bottom-color: transparent; }
.site-nav .logo:hover { color: var(--color-accent-light); }
.site-nav .logo img { display: block; height: 26px; width: auto; }
.site-nav .logo:hover img { opacity: .7; }
.site-footer__name img { display: block; height: 19px; width: auto; }
.nav-toggle {
  display: none;
  position: absolute; top: 12px; right: var(--gutter);
  min-height: 44px; padding: 0 0 0 var(--space-3);
  border: 0; background: transparent; cursor: pointer;
  font-size: var(--text-xs); font-weight: 400; letter-spacing: .08em; text-transform: uppercase;
  color: var(--color-ink);
}

/* 5. Accueil
   -------------------------------------------------------------------------- */
.hero { display: grid; grid-template-columns: 1fr 1fr; min-height: 100vh; padding-top: var(--header-h); }
.hero__text {
  display: flex; flex-direction: column; justify-content: flex-end;
  padding: 76px 8vw 64px var(--gutter);
}
.hero__title {
  margin: 28px 0 40px;
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-hero); line-height: .95; letter-spacing: -.03em;
}
.hero__title img { display: block; width: auto; height: calc(var(--text-hero) * 1.9); } /* signature : deux lignes de titre */
.hero__quote { max-width: 440px; font-size: var(--text-lede); font-style: italic; line-height: 1.35; }
.hero__media { position: relative; height: calc(100vh - var(--header-h)); overflow: hidden; background: var(--color-placeholder); }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: var(--space-4); }
.tile { display: block; }
.tile__media { aspect-ratio: 3 / 4; overflow: hidden; background: var(--color-placeholder); }
.tile__media img { width: 100%; height: 100%; object-fit: cover; }
.tile__label { margin-top: var(--space-2); font-size: var(--text-sm); line-height: 1.5; color: var(--color-muted); }

/* Actualités */
.news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); }
.news { position: relative; display: flex; flex-direction: column; gap: var(--space-2); }
.news__media { aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 10px; background: var(--color-placeholder); }
.news__media img { width: 100%; height: 100%; object-fit: cover; }
.news__kind { font-size: var(--text-xs); font-weight: 400; line-height: 1.5; letter-spacing: .12em; text-transform: uppercase; color: var(--color-accent); }
.news__title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h2); line-height: 1.05; letter-spacing: -.01em; }
.news__title a::after { content: ""; position: absolute; inset: 0; }
.news__place { font-size: var(--text-md); line-height: 1.6; color: var(--color-text); }
.news__note { font-size: var(--text-md); line-height: 1.6; color: var(--color-muted); }

/* Instagram — les vignettes injectées reprennent cette mise en page (6 formats qui se répètent) */
.section-head { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-3); }
.section-head a { font-size: var(--text-sm); font-weight: 400; letter-spacing: .06em; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
#instagram {
  display: grid; grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: minmax(90px, 12vw); grid-auto-flow: dense; gap: var(--space-2);
}
#instagram > * { display: block; overflow: hidden; background: var(--color-placeholder); }
#instagram img { width: 100%; height: 100%; object-fit: cover; }
#instagram > :nth-child(6n+1) { grid-column: span 2; grid-row: span 3; }
#instagram > :nth-child(6n+2) { grid-column: span 3; grid-row: span 2; }
#instagram > :nth-child(6n+3) { grid-column: span 1; grid-row: span 1; }
#instagram > :nth-child(6n+4) { grid-column: span 2; grid-row: span 2; }
#instagram > :nth-child(6n+5) { grid-column: span 2; grid-row: span 3; }
#instagram > :nth-child(6n+6) { grid-column: span 2; grid-row: span 2; }

/* 6. Pages intérieures
   -------------------------------------------------------------------------- */
.page-intro {
  max-width: var(--container); margin: 0 auto;
  padding: var(--page-top) var(--gutter) 8vh;
  display: flex; flex-direction: column; gap: var(--space-3);
}
.page-title {
  max-width: 900px;
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-h1); line-height: 1.02; letter-spacing: -.03em;
}

/* L'artiste */
.artist {
  display: grid; grid-template-columns: 5fr 7fr; gap: 6vw;
  max-width: var(--container); margin: 0 auto;
  padding: var(--page-top) var(--gutter) var(--section-y);
}
.artist__portrait { position: sticky; top: 110px; }
.artist__portrait img { width: 100%; height: auto; } /* proportions d'origine, pas de recadrage */
.artist__body { max-width: var(--measure); }
.artist__body > p + p { margin-top: 22px; }
.artist__title {
  margin: var(--space-3) 0 40px;
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-h1-sm); line-height: 1.05; letter-spacing: -.03em;
}
.quote {
  margin: var(--space-6) 0; padding-left: var(--space-4);
  border-left: 1px solid var(--color-accent);
  font-size: var(--text-lede); font-style: italic; line-height: 1.35; color: var(--color-accent);
}
.artist__subtitle { margin: var(--space-7) 0 16px; }
.timeline { border-top: 1px solid var(--color-line); }
.timeline li {
  display: grid; grid-template-columns: 110px 1fr; gap: 16px;
  padding: 14px 0; border-bottom: 1px solid var(--color-line);
  font-size: var(--text-md); line-height: 1.5;
}
.timeline__year { color: var(--color-muted); }

/* Processus : bandeau défilant */
.marquee { overflow: hidden; padding-bottom: 10vh; scroll-margin-top: var(--header-h); }
.marquee__track { display: flex; width: max-content; animation: defile 70s linear infinite; }
.marquee:hover .marquee__track,
.marquee:focus-within .marquee__track { animation-play-state: paused; }
.marquee__set { display: flex; align-items: flex-start; gap: var(--space-4); padding-right: var(--space-4); }
.marquee__item { flex: none; display: flex; flex-direction: column; gap: 10px; height: 46vh; }
.marquee__item--s { height: 32vh; }
.marquee__item--m { height: 38vh; }
.marquee__item--l { height: 46vh; }
.marquee__item--xl { height: 52vh; }
.marquee__item a { display: block; height: calc(100% - 26px); cursor: zoom-in; }
.marquee__item img { width: auto; height: 100%; max-width: none; background: var(--color-placeholder); }
.marquee__item figcaption { font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted); }
@keyframes defile { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Visionneuse (CSS seul, via :target) */
.lightbox {
  position: fixed; inset: 0; z-index: 50;
  display: none; align-items: center; justify-content: center;
  padding: 6vh 6vw; background: var(--color-overlay); cursor: zoom-out;
}
.lightbox:target { display: flex; }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }
.lightbox__close {
  position: absolute; top: 22px; right: var(--gutter);
  font-size: var(--text-xs); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink);
}

/* Collaborations */
.collab-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: var(--space-6) var(--space-5); }
.collab { display: flex; flex-direction: column; gap: 14px; }
.collab__media { aspect-ratio: 4 / 5; overflow: hidden; margin-bottom: var(--space-1); background: var(--color-placeholder); }
.collab__media img { width: 100%; height: 100%; object-fit: cover; }
.collab__discipline { font-size: var(--text-xs); font-weight: 400; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
.collab__name { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h2); line-height: 1.05; letter-spacing: -.01em; }
.collab__text { font-size: var(--text-md); line-height: 1.7; color: var(--color-text); }

/* Expositions */
.expo-list { border-top: 1px solid var(--color-line); }
.expo-row {
  position: relative;
  display: grid; grid-template-columns: minmax(120px, 180px) minmax(0, 1fr) minmax(0, 1.6fr);
  gap: var(--space-5); align-items: start;
  padding: 28px 0; border-bottom: 1px solid var(--color-line);
}
/* Visuels de liste (affiches, verticales pour la plupart) : proportions d'origine, jamais recadrés. */
.expo-row__media img { width: 100%; height: auto; }
.expo-row__meta { margin-bottom: var(--space-1); font-size: var(--text-xs); font-weight: 400; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--color-accent); }
.expo-row__title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-h2); line-height: 1.05; letter-spacing: -.01em; }
.expo-row__title a::after { content: ""; position: absolute; inset: 0; }
.expo-row__place { font-size: 17px; line-height: 1.6; color: var(--color-text); }
.expo-row__place strong { font-weight: 400; color: var(--color-ink); }
.expo-row__avec { margin-top: var(--space-6); font-size: var(--text-base); line-height: 1.7; color: var(--color-muted); }

/* Page d'exposition */
.expo-intro {
  max-width: var(--container); margin: 0 auto;
  padding: 150px var(--gutter) 8vh;
  display: flex; flex-direction: column; gap: 22px;
}
.expo-title { font-family: var(--font-display); font-weight: 400; font-size: var(--text-display); line-height: .9; letter-spacing: -.04em; }
.expo-meta { display: flex; flex-wrap: wrap; gap: 10px 40px; font-size: var(--text-sm); line-height: 1.5; letter-spacing: .04em; color: var(--color-muted); }
.chapter { display: grid; grid-template-columns: 1fr 1fr; }
.chapter__media {
  position: sticky; top: var(--header-h); align-self: start;
  height: calc(100vh - var(--header-h)); overflow: hidden; background: var(--color-placeholder);
}
.chapter__media img { width: 100%; height: 100%; object-fit: cover; }
.chapter__content { display: flex; flex-direction: column; gap: var(--space-7); padding: 10vh 7vw 8vh; }
.chapter:first-child .chapter__content { padding-top: 14vh; }
.chapter:last-child .chapter__content { padding-bottom: 14vh; }
.chapter__text { max-width: 520px; display: flex; flex-direction: column; gap: var(--space-3); }
.chapter__text--end { align-self: flex-end; }
.fig { width: 100%; }
.fig img { width: 100%; background: var(--color-placeholder); }
.fig figcaption { margin-top: 10px; display: flex; justify-content: space-between; gap: 16px; font-size: var(--text-xs); line-height: 1.5; color: var(--color-muted); }
.fig--large { width: 92%; }
.fig--wide { width: 80%; }
.fig--medium { width: 64%; }
.fig--narrow { width: 58%; }
.fig--end { align-self: flex-end; }
.fig-pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-4); align-items: start; }
.fig-pair > :last-child { padding-top: 18vh; }

/* Apparition des images au défilement (navigateurs compatibles uniquement) */
@keyframes reveal { from { opacity: 0; transform: translateY(48px); } to { opacity: 1; transform: none; } }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .reveal { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% entry 70%; }
  }
}

.video { padding: var(--section-y) 0; background: #f1ebe8; } /* propre aux zones vidéo (Florian, 2026-10-16) */
.video__head {
  max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter) var(--space-5);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-4);
}
.video__title { font-size: var(--text-lede); line-height: 1.3; }
.video__frame { aspect-ratio: 16 / 9; width: min(960px, calc(100% - 2 * var(--gutter))); margin-inline: auto; background: var(--color-ink); }
.video__frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.video__facade { position: relative; display: block; width: 100%; height: 100%; color: var(--color-bg); }
.video__facade img { width: 100%; height: 100%; object-fit: cover; opacity: .85; transition: opacity .3s; }
.video__facade:hover img, .video__facade:focus-visible img { opacity: 1; }
.video__play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  padding: 14px 26px; border: 1px solid currentColor; background: rgb(0 0 0 / .35);
  font-size: var(--text-sm); letter-spacing: .12em; text-transform: uppercase;
}

.cta {
  max-width: var(--container); margin: 0 auto; padding: var(--section-y) var(--gutter);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-4);
}
.cta__text { font-size: var(--text-h2); line-height: 1.2; }

/* Contact */
.contact {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6vw;
  max-width: var(--container); margin: 0 auto;
  padding: var(--page-top) var(--gutter) var(--section-y);
}
.contact__title {
  margin: var(--space-3) 0 28px;
  font-family: var(--font-display); font-weight: 400;
  font-size: var(--text-h1-sm); line-height: 1.05; letter-spacing: -.03em;
}
.contact__email { color: var(--color-accent); }
.contact__links { margin-top: 40px; font-size: var(--text-md); }
.contact__links a { font-weight: 400; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.contact-form { display: flex; flex-direction: column; gap: 28px; max-width: 520px; padding-top: var(--space-1); }
.contact-form__piege { position: absolute; left: -9999px; } /* champ piège à robots, laissé vide par les humains */
.contact-form__mention { font-size: var(--text-xs); color: var(--color-muted); }
.field { display: flex; flex-direction: column; gap: var(--space-1); }
.field label { font-size: var(--text-xs); font-weight: 400; line-height: 1.5; letter-spacing: .1em; text-transform: uppercase; color: var(--color-muted); }
.field input,
.field textarea {
  width: 100%; padding: 10px 0;
  border: 0; border-bottom: 1px solid var(--color-field); border-radius: 0;
  background: transparent; color: var(--color-ink);
  font-size: var(--text-base); font-weight: 300;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input:focus,
.field textarea:focus { outline: none; border-bottom-color: var(--color-accent); box-shadow: 0 1px 0 var(--color-accent); }
.button {
  align-self: flex-start; padding: 12px 22px;
  border: 1px solid var(--color-ink); background: transparent; color: var(--color-ink); cursor: pointer;
  font-size: var(--text-xs); font-weight: 400; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .3s, border-color .3s, color .3s;
}
.button:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }

/* 7. Pied de page
   -------------------------------------------------------------------------- */
.site-footer {
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: var(--space-3);
  padding: var(--space-5) var(--gutter);
  border-top: 1px solid var(--color-line);
  font-size: var(--text-xs); line-height: 1.5; letter-spacing: .06em; color: var(--color-muted);
}
.site-footer__name {
  font-family: var(--font-display); font-size: var(--text-sm); font-weight: 400;
  letter-spacing: .08em; text-transform: uppercase; color: var(--color-ink);
  -webkit-text-stroke: .5px currentColor;
}
.site-footer__links { display: flex; flex-wrap: wrap; gap: var(--space-4); }
.site-footer__links a { font-size: var(--text-xs); font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.site-footer__links a:hover,
.site-footer p a:hover,
.site-footer__links a[aria-current] { color: var(--color-accent-light); }

/* 8. Mobile et tablette
   -------------------------------------------------------------------------- */
@media (max-width: 860px) {
  :root { --gutter: 20px; --page-top: 104px; }

  /* Sans JavaScript : le nom, puis les liens, toujours visibles */
  .site-header { position: absolute; padding: 18px var(--gutter); }
  .site-nav__list { flex-wrap: wrap; justify-content: flex-start; gap: 6px 20px; }
  .site-nav__home { flex-basis: 100%; order: -1; }
  /* Avec JavaScript : bouton Menu */
  .js .site-nav__home { flex-basis: auto; }
  .js .site-nav__list > li:not(.site-nav__home) { display: none; }
  .js .nav-toggle { display: block; }
  .js .site-header.is-open { position: fixed; background: var(--color-bg); border-bottom: 1px solid var(--color-line); }
  .js .site-header.is-open .site-nav__list { flex-direction: column; align-items: flex-start; gap: 0; }
  .js .site-header.is-open .site-nav__list > li { display: block; }
  .js .site-header.is-open .site-nav__list > li:not(.site-nav__home) a { padding: 12px 0; font-size: var(--text-md); }

  .hero, .news-grid, .artist, .contact, .chapter { grid-template-columns: minmax(0, 1fr); }
  .hero { min-height: 0; padding-top: 96px; }
  .hero__media { order: -1; height: 60vh; }
  .hero__text { padding: 40px var(--gutter) 56px; }
  .artist { gap: 40px; }
  .artist__portrait { position: static; }
  .chapter__media { position: relative; top: 0; height: 70vh; }
  .chapter__content,
  .chapter:first-child .chapter__content,
  .chapter:last-child .chapter__content { padding: 8vh var(--gutter); }
  .fig-pair > :last-child { padding-top: 8vh; }
  .expo-row { grid-template-columns: 96px minmax(0, 1fr); gap: 12px 20px; align-items: start; }
  .expo-row__infos { grid-column: 2; }
  #instagram { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 44vw; }
  #instagram > *:nth-child(n) { grid-column: span 1; grid-row: span 1; }
}

/* 9. Mouvement réduit
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee__track { animation: none; }
  .marquee__set[aria-hidden="true"] { display: none; }
}

/* Pages d'exposition générées (scripts/expositions.py) */
.expo-sous-titre { font-size: var(--text-lede); font-style: italic; line-height: 1.35; color: var(--color-muted); }
.expo-intro .eyebrow a { color: inherit; text-decoration: none; }
.expo-avec { font-size: var(--text-sm); line-height: 1.6; color: var(--color-muted); }
.poeme { display: flex; flex-direction: column; gap: var(--space-2); font-style: italic; }
.poeme__titre { font-family: var(--font-display); font-style: normal; font-size: var(--text-lede); }
.signature { font-size: var(--text-sm); color: var(--color-muted); }

/* Pages générées : entre deux parties, le même écart qu'entre un texte et une image. */
@media (min-width: 861px) {
  .chapters--serre .chapter:not(:first-child) .chapter__content { padding-top: 0; }
  .chapters--serre .chapter:not(:last-child) .chapter__content { padding-bottom: var(--space-7); }
  /* La grande image ne doit pas imposer sa hauteur d'écran à la partie : c'est
     le contenu de droite qui la fixe. L'image reste collée en haut pendant le
     défilement, coupée en bas si la partie est plus courte que l'écran. */
  .chapters--serre .chapter__media {
    position: relative; top: auto; align-self: stretch;
    height: 0; min-height: 100%; overflow: clip; background: none;
  }
  .chapters--serre .chapter__media img {
    position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h));
  }
}

/* Mention du format d'un lien vers un document (PDF…). */
.fichier { font-size: var(--text-sm); color: var(--color-muted); white-space: nowrap; }

/* Titres en bordeaux #51111f, validé par Julie le 2026-10-21. Le logo, la signature et le
   favicon (sources/logos/*-julieruffe-rouge.png, dessinés par Marie) sont dans la même teinte. */
:root { --color-titre: #51111f; }
.hero__title, .page-title, .artist__title, .contact__title, .expo-title,
.news__title, .collab__name, .expo-row__title, .poeme__titre { color: var(--color-titre); }
.news__title a, .expo-row__title a { color: inherit; }
.news__title a:hover, .expo-row__title a:hover { color: var(--color-accent-light); } /* l'accent est trop proche de #51111f pour marquer le survol */

/* Grandes images montrées en entier (pas de recadrage), pour les photos de corps
   en mouvement par exemple : "grandes_entieres": true dans expositions.json. */
/* Elles prennent toute la largeur de la colonne, à leur hauteur naturelle. */
.chapter--entiere .chapter__media { background: none; height: auto; min-height: 0; }
.chapter--entiere .chapter__media img { height: auto; }
@media (min-width: 861px) {
  /* Pendant la lecture, la photo reste à l'écran : collée sous l'en-tête si elle
     tient dans l'écran, sinon elle défile jusqu'à son bas puis s'y cale.
     --ratio (hauteur / largeur) est posé par site.js ; sans lui, collée en haut. */
  .chapter--entiere .chapter__media {
    position: relative; top: auto; align-self: stretch; overflow: visible; container-type: inline-size;
  }
  .chapter--entiere .chapter__media img {
    position: sticky;
    top: min(var(--header-h), calc(100vh - 100cqw * var(--ratio, 0)));
  }
}

/* Bandeau de consentement à la mesure d'audience (consent.js). */
.consentement {
  position: fixed; left: var(--space-3); right: var(--space-3); bottom: var(--space-3); z-index: 100;
  max-width: 520px; margin-left: auto;
  display: grid; gap: var(--space-3); padding: var(--space-4);
  background: var(--color-bg); border: 1px solid var(--color-line); box-shadow: 0 8px 30px rgba(0, 0, 0, .08);
  font-size: var(--text-base); line-height: 1.5;
}
.consentement p { margin: 0; }
.consentement__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.consentement .button { background: var(--color-ink); color: var(--color-bg); }
.consentement .button--discret { background: transparent; color: var(--color-ink); }
.consentement .button:hover { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-white); }
