/* ==========================================================================
   Pierre Calogero — feuille de styles
   ========================================================================== */

:root {
    --bg: #f4f1ea;
    --bg-alt: #e9e5dd;
    --frame: #e7e1d5;
    --surface: #fff;
    --ink: #1c1b19;
    --ink-soft: #3d3a35;
    --muted: #67625a;
    --line: #d9d3c7;
    --field-line: #8a8377;
    --accent: #a3281d;
    --accent-dark: #86201a;
    --dark: #1c1b19;
    --on-dark: #f4f1ea;
    --on-dark-muted: #c9c4ba;
    --ok: #2f7d3b;
    --avertissement: #b35c00;
    --info: #34406b;
    --mark: #f3e3b5;

    --serif: "Cormorant Garamond", "Cormorant", Garamond, "Times New Roman", serif;
    --sans: "Work Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --wrap: 1080px;
    --gutter: 48px;
    --section: 104px;
}

@media (max-width: 899px) {
    :root { --gutter: 20px; --section: 64px; }
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; scroll-padding-top: 24px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font: 400 15px/1.7 var(--sans);
    -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
/* <picture> (WebP et repli) s'efface de la mise en page : les règles « .frame img »… s'appliquent comme avant */
picture { display: contents; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 400; line-height: 1.1; text-wrap: balance; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
ol, ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
figure { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
mark { background: var(--mark); padding: 0 .2em; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
/* Sur fond sombre, le rouge manque de contraste : contour clair */
.site-footer :focus-visible, .viewer :focus-visible { outline-color: var(--on-dark); }
main:focus { outline: none; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--ink); color: var(--bg); padding: 8px 14px; }

@media (min-width: 900px) { .show-mobile { display: none !important; } }
@media (max-width: 899px) { .hide-mobile { display: none !important; } }

/* Typographie ------------------------------------------------------------ */
.kicker, .eyebrow {
    margin: 0 0 14px;
    font: 600 10.5px/1.4 var(--sans);
    letter-spacing: .2em;
    text-transform: uppercase;
}
.kicker { color: var(--accent); }
.eyebrow { color: var(--muted); font-weight: 500; }
.lead { font: italic 400 24px/1.4 var(--serif); color: var(--ink); }
.section__title { font-size: clamp(34px, 4.2vw, 40px); }
.link-arrow, .link-underline { font-weight: 500; font-size: 13px; }
.link-underline { display: inline-block; border-bottom: 1px solid currentColor; padding-bottom: 2px; }
.link-underline:hover, .link-arrow:hover { color: var(--accent); }
.link-arrow::after { content: " →"; content: " →" / ""; }

/* Boutons ---------------------------------------------------------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 40px; padding: 10px 21px;
    border: 1px solid var(--ink); background: transparent;
    font: 500 13px/1.2 var(--sans); text-align: center;
    transition: background-color .15s, color .15s, border-color .15s;
}
.btn--dark { background: var(--ink); color: var(--bg); }
.btn--dark:hover { background: var(--accent); border-color: var(--accent); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; font-size: 12px; min-height: 42px; padding-inline: 12px; }
.btn--accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn--light { background: var(--bg); border-color: var(--bg); color: var(--ink); font-weight: 600; min-height: 42px; padding-inline: 24px; }
.btn--light:hover { background: #fff; }
.btn--tool { border-color: var(--line); font-size: 12.5px; min-height: 34px; padding: 6px 14px; }
.btn--tool:hover { border-color: var(--ink); }
.btn--block { display: flex; width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

/* Cadres d'œuvres : l'image posée sur un fond, avec une ombre douce -------- */
.frame {
    display: flex; align-items: center; justify-content: center;
    background: var(--frame);
    padding: 7%;
}
.frame img {
    max-height: 100%;
    width: auto;
    object-fit: contain;
    box-shadow: 0 12px 24px -10px rgba(28, 27, 25, .35);
}
.frame--square { aspect-ratio: 1; }
.frame--square img, .frame--series img { max-height: 100%; max-width: 100%; }
.frame--series { aspect-ratio: 1.22; padding: 7% 12%; }
.frame--hero { aspect-ratio: 1.13; padding: 7% 10%; }
.frame--hero img { max-height: 100%; }

/* En-tête ---------------------------------------------------------------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); position: relative; z-index: 20; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; min-height: 65px; }
.brand { display: block; flex: none; }
/* Logo (templates/partials/logo.php) : le nom, et un coup de pinceau sur le métier */
.brand-logo { display: block; width: 145px; height: 42px; overflow: visible; }
.brand-logo__nom { font: 500 22px var(--serif); fill: var(--ink); }
.brand-logo__nom--survol { fill: var(--accent); }
.brand-logo__role { font: 500 8.5px var(--sans); letter-spacing: .22em; text-transform: uppercase; fill: var(--muted); }
.brand-logo__pinceau { fill: var(--accent); opacity: .34; mix-blend-mode: multiply; }
/* Survol : le nom passe en rouge de gauche à droite */
.brand-logo__balayage { transform: scaleX(0); }
.brand:hover .brand-logo__balayage, .brand:focus-visible .brand-logo__balayage { transform: none; }

.site-nav { display: flex; align-items: center; flex: 1; }
.site-nav > ul:first-child { display: flex; gap: 30px; margin-inline: auto; }
.site-nav a { font-weight: 500; font-size: 12.5px; }
.site-nav > ul:first-child a { padding-block: 4px; border-bottom: 1px solid transparent; }
.site-nav > ul:first-child a:hover { color: var(--accent); }
.site-nav > ul:first-child a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.lang-switch { display: flex; gap: 10px; }
.lang-switch a { font-size: 10.5px; color: var(--muted); letter-spacing: .04em; }
.lang-switch a[aria-current] { color: var(--ink); font-weight: 600; border-bottom: 1px solid currentColor; }

.menu-toggle { display: none; }

@media (max-width: 899px) {
    .site-header__inner { min-height: 64px; }
    .menu-toggle {
        display: flex; align-items: center; justify-content: center;
        width: 44px; height: 44px; margin-right: -12px; border: 0; background: none;
    }
    .menu-toggle__bars, .menu-toggle__bars::after {
        display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform .2s;
    }
    .menu-toggle__bars { position: relative; transform: translateY(-3px); }
    .menu-toggle__bars::after { content: ""; position: absolute; top: 6px; }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars { transform: translateY(0) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-toggle__bars::after { transform: translateY(-6px) rotate(-90deg); }

    .site-nav {
        display: none;
        position: absolute; top: 100%; left: 0; right: 0;
        flex-direction: column; align-items: stretch;
        padding: 12px var(--gutter) 28px;
        background: var(--bg); border-bottom: 1px solid var(--line);
    }
    .site-nav.is-open { display: flex; }
    .site-nav > ul:first-child { flex-direction: column; gap: 0; margin: 0; }
    .site-nav > ul:first-child a { display: block; padding: 12px 0; font: 400 26px/1.2 var(--serif); border: 0; }
    .lang-switch { margin-top: 20px; gap: 18px; }
    .lang-switch a { font-size: 13px; }
}

/* Sections --------------------------------------------------------------- */
.section { padding-block: var(--section); }
.section--tinted { background: var(--bg-alt); }
.section--ruled { border-top: 1px solid var(--line); }
.section__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 38px; }
.section__head .eyebrow { margin-bottom: 18px; }
.section__head--intro { align-items: flex-start; }
.section__intro { max-width: 320px; margin-top: 8px; font-size: 13px; line-height: 1.75; color: var(--ink-soft); }

/* Accueil : hero ---------------------------------------------------------- */
.hero {
    display: grid; grid-template-columns: minmax(0, 542fr) minmax(0, 388fr);
    gap: 54px; align-items: center;
    padding-block: 42px 64px;
}
/* Éclaboussures de peinture, comme sur le chevalet, dans les vides des héros */
.hero, .bio-hero { position: relative; isolation: isolate; }
.hero::after, .bio-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    width: 340px;
    aspect-ratio: 420 / 300;
    background: url("/assets/img/eclaboussures.svg") no-repeat center / contain;
    opacity: .55;
    pointer-events: none;
}
.hero::after { top: -30px; right: calc(var(--gutter) - 130px); }
.bio-hero::after { bottom: -56px; left: calc(var(--gutter) + 30%); transform: rotate(180deg); }
.hero__caption { display: flex; justify-content: space-between; align-items: baseline; margin-top: 14px; }
.hero__caption em { font: italic 400 15px var(--serif); }
.hero__title { font-size: clamp(48px, 6.4vw, 66px); line-height: 1; margin-bottom: 26px; }
.hero__title span { display: block; }
.hero__text .lead { margin-bottom: 26px; }
.hero__text p:not(.lead):not(.kicker):not(.actions) { font-size: 13.5px; color: var(--ink-soft); max-width: 350px; }

@media (max-width: 899px) {
    .hero { grid-template-columns: 1fr; gap: 0; padding: 0 0 56px; }
    .hero__work .frame--hero { aspect-ratio: auto; padding: 28px 36px; }
    .hero__caption { padding: 14px var(--gutter) 0; }
    .hero__text { padding: 40px var(--gutter) 0; }
    .hero__title { font-size: 46px; }
    .hero__title span { display: inline; }
    .hero__text .lead { font-size: 22px; }
    .hero::after { width: 200px; top: auto; bottom: -34px; right: -24px; }
    .bio-hero::after { width: 220px; left: auto; right: 0; }
    .actions { flex-direction: column; }
    .actions .btn { min-height: 52px; }
}

/* Grilles d'œuvres -------------------------------------------------------- */
.grid { display: grid; gap: 40px 24px; }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card__link { display: block; }
.card__link:hover .card__title { color: var(--accent); }
.card__title { margin-top: 16px; font-size: 19px; }
.card__meta { margin-top: 3px; font-size: 10.5px; color: var(--muted); }

/* Série groupée par année : rangée des années, collée en haut de l'écran pendant qu'on parcourt les œuvres */
.serie-annees {
    position: sticky; top: 0; z-index: 10;
    margin-bottom: 8px; background: var(--bg); border-bottom: 1px solid var(--line);
}
.serie-annees ul {
    display: flex; gap: 4px 22px; margin: 0; padding: 12px 0; list-style: none;
    overflow-x: auto; scrollbar-width: none;
}
.serie-annees a { display: block; padding-block: 4px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink-soft); }
.serie-annees a:hover { color: var(--accent); }
.serie-annees a.is-active { color: var(--accent); font-weight: 600; box-shadow: inset 0 -1px currentColor; }
.serie-groupe { scroll-margin-top: 64px; }
.serie-groupe + .serie-groupe { margin-top: 64px; }
.serie-groupe__head { display: flex; align-items: baseline; gap: 16px; padding-block: 28px 30px; }
.serie-groupe__titre { font-size: 34px; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; }
.serie-groupe__nb { font-size: 12px; color: var(--muted); }

/* Bandeau défilant sur une ligne (ordinateur) ; grille ordinaire sur mobile */
@media (min-width: 900px) {
    .grid--scroll {
        display: flex; gap: 24px; overflow-x: auto; scroll-snap-type: x mandatory;
        padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
    }
    .grid--scroll .card { flex: 0 0 calc((100% - 3 * 24px) / 4); scroll-snap-align: start; }
}

@media (max-width: 899px) {
    .grid { gap: 28px 16px; }
    .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grid--latest .card:nth-child(n + 5) { display: none; }
    .grid--latest .card__meta { display: none; }
    /* Toutes les années visibles, sur deux lignes au besoin, plutôt qu'une rangée à faire défiler */
    .serie-annees ul { flex-wrap: wrap; gap: 2px 18px; padding-block: 8px; }
    .serie-groupe { scroll-margin-top: 96px; }
    .serie-groupe + .serie-groupe { margin-top: 44px; }
    .serie-groupe__head { padding-block: 24px 22px; }
    .serie-groupe__titre { font-size: 30px; }
    .card__title { margin-top: 12px; font-size: 18px; }
    .grid + .btn--block { margin-top: 36px; min-height: 52px; }
}

/* Séries ----------------------------------------------------------------- */
.series-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 32px 18px; }
.series-card { display: block; }
.series-card:hover .series-card__title { color: var(--accent); }
.series-card__title { margin-top: 16px; font-size: 18px; }
.series-card__meta { margin-top: 2px; font-size: 10.5px; color: var(--muted); }

@media (max-width: 899px) {
    .series-grid {
        display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory;
        margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
        scrollbar-width: none;
    }
    .series-grid::-webkit-scrollbar { display: none; }
    .series-card { flex: 0 0 56%; scroll-snap-align: start; }
    .series-card__meta { font-size: 12px; margin-top: 6px; }
    .swipe-hint { margin-top: 28px; font-size: 12px; color: var(--muted); }
}

/* Accueil : biographie ----------------------------------------------------- */
.bio-teaser { display: grid; grid-template-columns: minmax(0, 382fr) minmax(0, 536fr); gap: 66px; align-items: center; }
.frame--photo { padding: 0; overflow: hidden; aspect-ratio: 1; }
.frame--photo img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 50% 30%; box-shadow: none; transition: transform .6s ease; }
.frame--photo:hover img { transform: scale(1.02); }
.bio-teaser__photo figcaption { margin-top: 12px; font: italic 400 14px var(--serif); color: var(--ink-soft); }
.bio-teaser__photo figcaption a { border-bottom: 1px solid var(--line); }
.bio-teaser__photo figcaption a:hover { color: var(--accent); border-color: currentColor; }
.bio-teaser__photo figcaption em { font-style: normal; }
.bio-teaser__text .eyebrow { margin-bottom: 22px; }
.quote-title { font-size: clamp(30px, 3.4vw, 36px); line-height: 1.15; margin-bottom: 26px; }
.bio-teaser .prose { font-size: 13px; line-height: 1.85; color: var(--ink-soft); }

.milestones {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
    margin: 28px 0 32px; padding-top: 26px; border-top: 1px solid var(--line);
}
.milestones li { display: flex; flex-direction: column; font-size: 11px; line-height: 1.55; color: var(--ink-soft); }
.milestones .year { font: 400 28px/1 var(--serif); color: var(--accent); margin-bottom: 10px; }

@media (max-width: 899px) {
    .bio-teaser { grid-template-columns: 1fr; gap: 32px; }
    .bio-teaser .prose { font-size: 14px; }
    .milestones { grid-template-columns: 1fr; gap: 0; padding-top: 0; }
    .milestones li { flex-direction: row; align-items: baseline; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
    .milestones .year { flex: 0 0 60px; margin: 0; }
}

/* Accueil : exposition ---------------------------------------------------- */
.section--ruled-inner { padding-top: 0; }
.section--ruled-inner > .wrap { border-top: 1px solid var(--line); padding-top: 52px; }
.section--ruled-inner .wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); }
.expo-card {
    display: grid; grid-template-columns: 315px 1fr; gap: 42px; align-items: center;
    padding: 30px; background: var(--surface); border: 1px solid var(--line);
}
.expo-card__poster img { width: 100%; }
.expo-card__title { font-size: 32px; margin-bottom: 24px; }
.expo-card__facts { display: flex; gap: 36px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13px; }
.expo-card__facts dt { font-size: 9.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.expo-card__links { display: flex; gap: 18px; font-size: 12px; }
.expo-card__links .link-underline { font-size: 12px; }

@media (max-width: 899px) {
    .section--ruled-inner > .wrap { padding-top: 56px; }
    .expo-card { grid-template-columns: 1fr; padding: 22px 20px; }
    .expo-card__title { font-size: 28px; margin-bottom: 16px; }
    .expo-card__facts { display: block; font-size: 14px; }
    .expo-card__facts dt { display: none; }
    .expo-card__facts dd { margin-bottom: 8px; }
    .expo-all { margin-top: 24px; font-size: 14px; border: 0; }
}

/* Pied de page ------------------------------------------------------------- */
.site-footer { position: relative; background: var(--dark); color: var(--on-dark); }
.site-footer > * { position: relative; z-index: 1; }
/* Éclaboussures au-dessus du pied de page, à droite, qui débordent un peu sur le fond sombre */
.site-footer::before {
    content: "";
    position: absolute;
    top: -200px;
    right: max(12px, calc((100vw - var(--wrap)) / 2 - 90px));
    width: 340px;
    aspect-ratio: 420 / 300;
    background: url("/assets/img/eclaboussures.svg") no-repeat center / contain;
    opacity: .55;
    pointer-events: none;
}
.cta { display: flex; justify-content: space-between; align-items: center; gap: 32px; padding-block: 72px; }
.cta__title { font-size: clamp(34px, 4vw, 38px); margin-bottom: 12px; }
.cta__text { font-size: 13px; color: var(--on-dark-muted); }
.site-footer__bar--ruled { border-top: 1px solid #3a3835; }
.site-footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; min-height: 68px; font-size: 10.5px; color: var(--on-dark-muted); }
.site-footer__inner p { margin: 0; }
.site-footer__links { display: flex; gap: 22px; }
.site-footer__links a { display: inline-block; padding-block: 6px; }
.site-footer a:not(.btn):hover { color: #fff; }

@media (max-width: 899px) {
    .site-footer::before { width: 220px; top: -140px; right: 0; }
    .cta { flex-direction: column; align-items: stretch; padding-block: 56px 48px; }
    .cta__title { font-size: 34px; }
    .cta__text { font-size: 14px; }
    .cta .btn { min-height: 52px; }
    .site-footer__inner { flex-direction: column; align-items: flex-start; gap: 14px; padding-block: 28px; font-size: 12px; }
    .site-footer__links { flex-wrap: wrap; gap: 10px 20px; order: -1; }
}

/* Profils de l'artiste sur d'autres sites : icônes (réseaux sociaux) ou noms (plateformes d'art) */
.profils { display: flex; flex-wrap: wrap; align-items: center; margin: 0; padding: 0; list-style: none; }
.profils a { display: inline-flex; align-items: center; gap: 8px; }
.profils svg { flex: none; }
/* Pied de page : entre le copyright et les liens, qui ne se replient pas ; sur sa propre ligne entre mobile et grand écran */
.profils--pied { flex: 1 1 auto; justify-content: center; gap: 0 12px; }
.profils--pied a { min-height: 32px; }
.profils--pied a:has(svg) { justify-content: center; min-width: 28px; }
@media (min-width: 900px) {
    .site-footer__copy, .site-footer__links { flex: none; }
    .site-footer__links li { white-space: nowrap; }
}
@media (min-width: 900px) and (max-width: 1199px) {
    .site-footer__inner:has(.profils--pied) { flex-wrap: wrap; row-gap: 0; padding-block: 12px; }
    .profils--pied { order: 3; flex-basis: 100%; justify-content: flex-start; }
}
.profils-bloc { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.prose--bio .profils-bloc { margin-top: 56px; }
.profils-bloc .eyebrow { margin: 0 0 10px; }
.profils--page { gap: 2px 24px; font-size: 13px; line-height: 1.4; }
.profils--page a { min-height: 36px; color: var(--ink); }
.profils--page a:hover { color: var(--accent); }
.profils--page svg { color: var(--muted); }
.profils--page a:hover svg { color: inherit; }

/* Fil d'Ariane ------------------------------------------------------------ */
.breadcrumb { padding-block: 10px; font-size: 10.5px; color: var(--muted); }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; }
.breadcrumb a { display: inline-block; padding-block: 6px; }
.breadcrumb li + li::before { content: "/"; margin-inline: 8px; }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb [aria-current] { color: var(--ink); }
.back-link { display: block; padding-block: 16px; font-size: 13px; color: var(--muted); }

/* Fiche œuvre -------------------------------------------------------------- */
.artwork { display: grid; grid-template-columns: minmax(0, 620fr) minmax(0, 310fr); gap: 54px; padding-bottom: 104px; }
.frame--artwork { aspect-ratio: 620 / 584; padding: 6% 9%; }
.frame[data-dialog] { cursor: zoom-in; }
.artwork__tools { display: flex; align-items: center; gap: 6px; margin-top: 12px; }
.artwork__credit { margin: 0 0 0 auto; font-size: 10px; color: var(--muted); }
.artwork__info { padding-top: 18px; }
.artwork__title { font-size: clamp(44px, 5vw, 52px); line-height: 1; margin: 6px 0 12px; }
.artwork__byline { font: italic 400 17px var(--serif); color: var(--ink-soft); margin-bottom: 22px; }

.facts { border-top: 1px solid var(--line); margin-bottom: 22px; font-size: 11.5px; }
.facts > div { display: flex; justify-content: space-between; gap: 16px; padding-block: 9px; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--muted); }
.facts dd { text-align: right; }
.facts a:hover { color: var(--accent); }
.status::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--muted); vertical-align: middle; }
.status--disponible::before { background: var(--ok); }
.status--reservee::before { background: #c58a1d; }
.status--vendue::before, .status--collection::before { background: var(--accent); }

.artwork__info .btn--block + .btn--block { margin-top: 10px; }
.artwork__description { margin-top: 22px; font-size: 12.5px; line-height: 1.8; color: var(--ink-soft); }
.artwork__pager {
    display: flex; justify-content: space-between; gap: 16px;
    margin-top: 22px; padding-top: 12px; border-top: 1px solid var(--line);
    font-weight: 600; font-size: 11px;
}
.artwork__pager a { padding-block: 4px; }
.artwork__pager a:hover { color: var(--accent); }
.artwork__pager a[rel="next"] { margin-left: auto; }
/* Fiche œuvre : précédente, série au centre, suivante (colonnes fixes, même quand un bout manque) */
.artwork__pager--oeuvre { display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; }
.artwork__pager--oeuvre a[rel="prev"] { grid-column: 1; justify-self: start; }
.artwork__pager--oeuvre .artwork__pager-serie { grid-column: 2; color: var(--muted); font-weight: 500; }
.artwork__pager--oeuvre .artwork__pager-serie:hover { color: var(--accent); }
.artwork__pager--oeuvre a[rel="next"] { grid-column: 3; justify-self: end; text-align: right; margin-left: 0; }

/* Visionneuse : l'œuvre en grand, zoom au pincement, au double-clic ou à la molette */
html:has(dialog[open]) { overflow: hidden; }
.viewer {
    width: 100vw; height: 100dvh; max-width: none; max-height: none;
    margin: 0; padding: 0; border: 0; background: #111; color: #f4f1ea; overflow: hidden;
}
.viewer::backdrop { background: #111; }
.viewer__stage {
    position: absolute; inset: 0; overflow: hidden;
    touch-action: none; user-select: none; -webkit-user-select: none;
    cursor: zoom-in;
}
.viewer__stage.is-zoomed { cursor: grab; }
.viewer__stage.is-dragging { cursor: grabbing; }
.viewer__stage img {
    position: absolute; inset: 56px 3vmin 3vmin; width: calc(100% - 6vmin); height: calc(100% - 56px - 3vmin);
    object-fit: contain; transform-origin: center; will-change: transform;
    -webkit-user-drag: none;
}
.viewer__stage.is-animated img { transition: transform .25s ease; }
.viewer__bar {
    position: absolute; inset: 0 0 auto; display: flex; align-items: center; gap: 4px;
    padding: 8px 8px 8px 20px; background: linear-gradient(rgb(17 17 17 / .85), rgb(17 17 17 / 0));
    pointer-events: none;
}
.viewer__bar > * { pointer-events: auto; }
.viewer__title { margin: 0 auto 0 0; font: 400 20px/1.2 var(--serif); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.viewer__title span { margin-left: 8px; font: 400 12px var(--sans); color: #c9c4ba; }
.viewer__btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: inherit; cursor: pointer; }
.viewer__btn:hover { color: #fff; background: rgb(255 255 255 / .1); }
.viewer__hint {
    position: absolute; left: 50%; bottom: 20px; transform: translateX(-50%); margin: 0;
    padding: 7px 14px; background: rgb(17 17 17 / .7); font-size: 12px; color: #c9c4ba;
    white-space: nowrap; pointer-events: none; transition: opacity .4s;
}
.viewer__hint.is-hidden { opacity: 0; }

/* Voir en situation : l'œuvre à l'échelle sur un mur ---------------------- */
.situation {
    width: min(1080px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px);
    margin: auto; padding: 0; border: 0; background: var(--bg); color: var(--ink);
    overflow: auto;
}
.situation::backdrop { background: rgb(28 27 25 / .72); }
.situation__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px 14px 24px; }
.situation__title { font-size: 24px; line-height: 1.2; }
.situation__title span { margin-left: 8px; font: 400 12.5px var(--sans); color: var(--muted); white-space: nowrap; }
.situation__close { display: grid; place-items: center; width: 40px; height: 40px; border: 0; background: none; color: inherit; cursor: pointer; }
.situation__close:hover { color: var(--accent); }
.situation__vues { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 24px 14px; }
.situation__vue {
    min-height: 34px; padding: 6px 14px; border: 1px solid var(--line); background: none; color: inherit;
    font: 500 12.5px/1.2 var(--sans); cursor: pointer; transition: background-color .15s, color .15s, border-color .15s;
}
.situation__vue:hover { border-color: var(--ink); }
.situation__vue[aria-selected="true"] { border-color: var(--ink); background: var(--ink); color: var(--bg); }
.situation__photo { margin: 0; padding: 0 24px 24px; }
.situation__photo img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 190px); object-fit: contain; }

/* Décor photographique : la photo en fond, l'œuvre posée à l'échelle sur le mur */
.situation__decor { margin: 0 auto 20px; width: min(calc(100% - 48px), calc((100dvh - 214px) * var(--ratio))); }
.situation__cadre { position: relative; aspect-ratio: var(--ratio); overflow: hidden; background: var(--frame); }
.situation__cadre > picture:first-child, .situation__fond { display: block; width: 100%; height: 100%; }
.situation__devant { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.situation__fond { object-fit: cover; }
.situation__credit { margin-top: 8px; font-size: 10.5px; color: var(--muted); }

.situation__scene {
    position: relative; margin: 0 auto 30px;
    width: min(100%, calc((100dvh - 214px) * var(--ratio)));
    aspect-ratio: var(--ratio);
    background: linear-gradient(to bottom, #ece6da, #e4ddcf);
    box-shadow: 0 18px 0 #c9bba4;
}
.situation__oeuvre { position: absolute; left: 50%; transform: translateX(-50%); }
.situation__oeuvre img { display: block; width: 100%; height: 100%; object-fit: fill; box-shadow: 0 4px 14px rgb(0 0 0 / .22), 0 1px 3px rgb(0 0 0 / .18); }
.situation__canape { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); fill: #8f8474; }
.situation__canape .assise { fill: #a1968a; }
.situation__canape .pied { fill: #4a443c; }
.situation__legende { position: absolute; left: 16px; bottom: -16px; font-size: 10.5px; color: #4a443c; }
@media (max-width: 899px) {
    .situation__head { padding-left: 16px; }
    .situation__title { font-size: 20px; }
    .situation__photo { padding: 0 16px 16px; }
    .situation__vues { padding-inline: 16px; }
    .situation__decor { width: min(calc(100% - 32px), calc((100dvh - 214px) * var(--ratio))); }
}

@media (max-width: 899px) {
    .artwork { grid-template-columns: 1fr; gap: 0; padding: 0 0 56px; }
    .frame--artwork { aspect-ratio: auto; padding: 32px 36px; }
    .artwork__tools { padding-inline: var(--gutter); flex-wrap: wrap; }
    .artwork__share { margin-left: auto; padding-inline: 11px; }
    .artwork__credit { flex-basis: 100%; text-align: right; }
    .artwork__info { padding: 24px var(--gutter) 0; }
    .artwork__title { font-size: 44px; }
    .facts { font-size: 13px; }
    .facts > div { padding-block: 12px; }
    .artwork__description { font-size: 14px; }
    .artwork__pager { font-size: 13px; }
}

/* Biographie -------------------------------------------------------------- */
.bio-hero { display: grid; grid-template-columns: minmax(0, 1fr) 385px; gap: 70px; align-items: center; padding-block: 48px 72px; }
.bio-hero__title { font-size: clamp(46px, 6vw, 64px); line-height: 1; margin-bottom: 30px; }
.bio-hero .lead { font-size: 22px; margin-bottom: 26px; max-width: 520px; }
.bio-hero__text > p:not(.lead):not(.kicker) { max-width: 470px; font-size: 13.5px; color: var(--ink-soft); }
.frame--portrait { aspect-ratio: 385 / 420; padding: 0; overflow: hidden; }
.frame--portrait img { width: 100%; height: 100%; max-height: none; object-fit: cover; object-position: 60% 30%; box-shadow: none; }
.bio-hero__portrait figcaption { margin-top: 10px; font-size: 9.5px; color: var(--muted); }

.bio-body {
    display: grid; grid-template-columns: 200px minmax(0, 570px); gap: 97px;
    padding-top: 72px; padding-bottom: var(--section);
    border-top: 1px solid var(--line);
    max-width: none; margin: 0;
}
@media (min-width: 1176px) {
    .bio-body { padding-inline: calc((100vw - var(--wrap)) / 2); }
}
.toc { position: sticky; top: 24px; align-self: start; }
.toc .eyebrow { margin-bottom: 18px; }
.toc li a { display: block; padding: 6px 0 6px 12px; margin-bottom: 4px; border-left: 1px solid var(--line); font-size: 11px; color: var(--ink-soft); }
.toc li a:hover { color: var(--accent); }
.toc li a.is-active { border-left: 2px solid var(--accent); padding-left: 11px; color: var(--accent); font-weight: 500; }

.prose--bio { font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.prose--bio section + section { margin-top: 56px; }
.prose--bio h2 { font-size: 32px; color: var(--ink); margin-bottom: 26px; }
.prose--bio p { margin-bottom: 1.4em; }
.prose--bio em { color: var(--ink); }
.prose--bio blockquote { margin: 42px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--accent); }
.prose--bio blockquote p { margin: 0; font: italic 400 25px/1.35 var(--serif); color: var(--ink); }
.figure { margin-top: 36px; }
.figure .frame { padding: 7% 10%; }
.figure figcaption { margin-top: 10px; font: italic 400 12.5px var(--serif); color: var(--ink-soft); }
.figure figcaption em { font-style: italic; }
.figure--photo .frame { padding: 0; }
.figure--photo .frame img { width: 100%; box-shadow: none; }
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 36px; }
.figures .figure { margin: 0; }
.figures .frame { aspect-ratio: 276 / 270; padding: 8% 13%; }
.prose--bio .figure + p, .prose--bio .figures + p { margin-top: 36px; }

@media (max-width: 899px) {
    .bio-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 8px 48px; }
    .bio-hero__portrait { order: -1; }
    .bio-hero__title { font-size: 44px; margin-bottom: 20px; }
    .bio-body { grid-template-columns: 1fr; gap: 40px; padding: 48px var(--gutter) var(--section); }
    .toc { position: static; }
    .prose--bio { font-size: 15px; }
    .prose--bio h2 { font-size: 30px; }
    .figures { grid-template-columns: 1fr; }
}

/* Chronologie -------------------------------------------------------------- */
.timeline { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; }
.timeline li {
    display: grid; grid-template-columns: 87px 1fr; align-items: baseline;
    padding-block: 14px; border-top: 1px solid var(--line); font-size: 11.5px; line-height: 1.55;
}
.timeline li:last-child { border-bottom: 1px solid var(--line); }
.timeline .year { font: 400 21px/1 var(--serif); color: var(--accent); }
.timeline .is-highlight span:last-child { font-weight: 600; color: var(--ink); }
.timeline a { border-bottom: 1px solid var(--line); }
.timeline a:hover { color: var(--accent); border-color: currentColor; }

@media (max-width: 899px) {
    .timeline { grid-template-columns: 1fr; gap: 0; }
    .timeline__col + .timeline__col li:first-child { border-top: 0; }
    .timeline__col:first-child li:last-child { border-bottom: 0; }
    .timeline li { grid-template-columns: 64px 1fr; font-size: 13px; }
}

/* En-tête de page (galerie, série, contact) ---------------------------------- */
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 48px; padding-block: 32px 8px; }
.page-head__title { font-size: clamp(44px, 5.6vw, 60px); line-height: 1; margin-bottom: 18px; }
.page-head .lead { margin: 0; }
.page-head__intro { max-width: 340px; font-size: 13px; line-height: 1.75; color: var(--ink-soft); }
/* Galerie : éclaboussures dans le vide entre le titre et l'introduction */
.page-head--eclaboussures { position: relative; isolation: isolate; }
.page-head--eclaboussures::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: calc(var(--gutter) + 44%);
    bottom: -12px;
    width: 250px;
    aspect-ratio: 420 / 300;
    background: url("/assets/img/eclaboussures.svg") no-repeat center / contain;
    opacity: .55;
    transform: rotate(180deg) scaleX(-1);
    pointer-events: none;
}
.section--compact { padding-top: 48px; }
.section--flush { padding-bottom: 0; }

@media (max-width: 899px) {
    .page-head { flex-direction: column; align-items: flex-start; gap: 16px; padding-block: 8px 0; }
    .page-head__title { font-size: 42px; }
    .page-head--eclaboussures::after { width: 160px; left: auto; right: 0; top: 0; bottom: auto; }
    .page-head__intro { font-size: 14px; }
    .section--compact { padding-top: 36px; }
}

/* Galerie ------------------------------------------------------------------ */
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 48px 24px; }
.series-card--large .frame--series { aspect-ratio: 1.3; }
.series-card__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.series-card--large .series-card__title { font-size: 24px; }
.series-card__count { font-size: 11px; color: var(--muted); white-space: nowrap; }
.series-card--large .series-card__meta { font-size: 12px; }

.atelier-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.atelier-card--span1 { grid-column: span 1; grid-template-columns: 1fr; }
.atelier-card--span2 { grid-column: span 2; }
.atelier-card--span3 { grid-column: span 3; }
/* La photo suit la hauteur de la ligne sans l'agrandir */
.atelier-card { align-self: stretch; }
.atelier-card .frame--photo { position: relative; aspect-ratio: auto; height: 100%; min-height: 280px; }
.atelier-card .frame--photo img { position: absolute; inset: 0; object-position: 60% 22%; }
.atelier-card__title { font-size: 30px; margin-bottom: 16px; }
.atelier-card__text p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: var(--ink-soft); margin-bottom: 20px; }

@media (max-width: 899px) {
    .gallery-grid { grid-template-columns: 1fr; gap: 36px; }
    .atelier-card { grid-column: auto; grid-template-columns: 1fr; gap: 20px; }
    .atelier-card .frame--photo { height: auto; aspect-ratio: 4 / 3.4; }
    .atelier-card .frame--photo img { position: static; }
    .series-card--large .series-card__title { font-size: 22px; }
}

/* Série : autres séries en bandeau défilant ------------------------------------ */
.series-grid--scroll {
    display: flex; gap: 18px; overflow-x: auto; scroll-snap-type: x mandatory;
    padding-bottom: 12px; scrollbar-width: thin; scrollbar-color: var(--line) transparent;
}
.series-grid--scroll .series-card { flex: 0 0 calc((100% - 4 * 18px) / 5); scroll-snap-align: start; }
@media (max-width: 899px) {
    .series-grid--scroll .series-card { flex-basis: 56%; }
}

/* Contact -------------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: minmax(0, 380fr) minmax(0, 560fr); gap: 96px; padding-block: 40px var(--section); }
.contact__intro .lead { margin-bottom: 22px; }
.contact__intro p:not(.lead):not(.kicker):not(.eyebrow) { font-size: 13.5px; color: var(--ink-soft); }
/* Éclaboussures dans le vide sous le texte d'introduction (grand écran seulement) */
@media (min-width: 900px) {
    .contact__intro::after {
        content: "";
        display: block;
        width: 300px;
        max-width: 100%;
        aspect-ratio: 420 / 300;
        margin-top: 56px;
        background: url("/assets/img/eclaboussures.svg") no-repeat center / contain;
        opacity: .55;
        transform: scaleX(-1);
        pointer-events: none;
    }
}

.contact__oeuvre {
    display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center;
    margin-bottom: 32px; padding: 16px; background: var(--surface); border: 1px solid var(--line);
}
.contact__oeuvre .frame { padding: 10%; }
.contact__oeuvre .eyebrow { margin-bottom: 4px; }
.contact__oeuvre-title { margin: 0; font: 400 24px/1.1 var(--serif); }
.contact__oeuvre-title a:hover { color: var(--accent); }
.contact__oeuvre .card__meta { margin: 4px 0 0; }
.contact__oeuvre-remove { align-self: start; padding-top: 6px; font-size: 11px; color: var(--muted); border-bottom: 1px solid var(--line); }
.contact__oeuvre-remove:hover { color: var(--accent); }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__field { margin-bottom: 22px; }
.form label { display: block; margin-bottom: 7px; font-weight: 500; font-size: 12.5px; }
.form__req { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
    display: block; width: 100%; padding: 11px 13px;
    font: 400 15px/1.5 var(--sans); color: var(--ink);
    background: var(--surface); border: 1px solid var(--field-line); border-radius: 0;
    transition: border-color .15s, box-shadow .15s;
}
.form select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%231c1b19' stroke-width='1.3'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px;
}
.form textarea { resize: vertical; min-height: 180px; }
/* Focus : bordure doublée, bien visible sans changer la taille du champ */
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.form [aria-invalid="true"] { border-color: var(--accent); }
.form [aria-invalid="true"]:focus { box-shadow: 0 0 0 1px var(--accent); }
.form__error { margin: 6px 0 0; font-size: 12px; color: var(--accent); }
.form__alert { margin-bottom: 24px; padding: 12px 16px; border-left: 2px solid var(--accent); background: var(--surface); font-size: 13px; color: var(--accent); }
.form__note { margin-bottom: 24px; font-size: 11.5px; color: var(--muted); }
.form__note a { border-bottom: 1px solid currentColor; }
.form .btn--accent { min-width: 220px; font-size: 13px; }
.form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Menu des listes (select) et des champs à liste de l'espace membre, à la place de celui du navigateur
   (assets/js/liste-menu.js, admin.js) : option survolée ou choisie aux touches ↑ ↓ en évidence, valeur actuelle cochée.
   Menu d'une liste : posé sur la page sous le champ, au moins sa largeur ; d'un champ à liste : dans son bloc (--champ). */
.menu-options {
    position: absolute; z-index: 30; max-width: min(480px, calc(100vw - 16px)); max-height: 300px; overflow-y: auto; padding: 4px 0;
    background: var(--surface); border: 1px solid var(--ink); box-shadow: 0 8px 24px rgba(28, 27, 25, .12);
}
.menu-options[hidden] { display: none; }
.menu-options li { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 8px 13px; font: 400 14px/1.5 var(--sans); white-space: nowrap; cursor: pointer; }
.menu-options li[aria-selected="true"] { background: var(--bg-alt); color: var(--accent); }
.menu-options li[aria-disabled="true"] { color: var(--muted); cursor: default; }
.menu-options strong { font-weight: 600; }
.menu-options__detail { flex: none; font-size: 12px; color: var(--muted); }
.menu-options li[aria-selected="true"] .menu-options__detail { color: inherit; }
.menu-options__courant { font-weight: 500; }
.menu-options__courant::after { content: "✓"; margin-left: auto; padding-left: 16px; }
.menu-options-parent { position: relative; }
.menu-options--champ { left: 0; right: 0; max-width: none; margin-top: 4px; white-space: normal; }
.menu-options--champ li { white-space: normal; }

.notice { padding: 36px; background: var(--surface); border: 1px solid var(--line); }
.notice__title { font-size: 32px; margin-bottom: 14px; }
.notice p { font-size: 14px; color: var(--ink-soft); }
.notice p + p { margin-top: 22px; }

@media (max-width: 899px) {
    .contact { grid-template-columns: 1fr; gap: 36px; padding-top: 8px; }
    .form__row { grid-template-columns: 1fr; gap: 0; }
    .contact__oeuvre { grid-template-columns: 72px 1fr; }
    .contact__oeuvre-remove { grid-column: 2; justify-self: start; }
    .form .btn--accent { width: 100%; min-height: 52px; }
}

/* Expositions : liste par année ------------------------------------------------ */
.expo-card__title a:hover { color: var(--accent); }
.expo-list-section { padding-top: 64px; }
.expo-year { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 24px; border-top: 1px solid var(--line); }
.expo-year:last-child { border-bottom: 1px solid var(--line); }
.expo-year__label { padding-top: 22px; font-size: 34px; line-height: 1; color: var(--accent); }
@media (min-width: 900px) {
    /* L'année reste visible pendant qu'on parcourt ses expositions */
    .expo-year__label { position: sticky; top: 0; align-self: start; padding-bottom: 22px; }
}
.expo-list li + li { border-top: 1px solid var(--line); }
.expo-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 24px; align-items: center; padding-block: 18px; }
.expo-row__thumb { display: flex; align-items: center; justify-content: center; width: 96px; height: 72px; background: var(--frame); overflow: hidden; }
.expo-row__thumb img { width: 100%; height: 100%; object-fit: cover; }
.expo-row__body { display: flex; flex-direction: column; gap: 4px; }
.expo-row__title { font: 400 23px/1.15 var(--serif); }
.expo-row__meta { font-size: 12px; color: var(--muted); }
.expo-row__arrow { color: var(--muted); transition: transform .15s, color .15s; }
.expo-row:hover .expo-row__title, .expo-row:hover .expo-row__arrow { color: var(--accent); }
.expo-row:hover .expo-row__arrow { transform: translateX(3px); }

@media (max-width: 899px) {
    .expo-list-section { padding-top: 40px; }
    .expo-year { grid-template-columns: 1fr; gap: 0; }
    .expo-year__label { padding-top: 24px; font-size: 30px; }
    .expo-row { grid-template-columns: 72px minmax(0, 1fr); gap: 16px; }
    .expo-row__thumb { width: 72px; height: 56px; }
    .expo-row__arrow { display: none; }
    .expo-row__title { font-size: 20px; }
}

/* Exposition : détail ------------------------------------------------------------- */
.expo-detail { display: grid; grid-template-columns: minmax(0, 560fr) minmax(0, 370fr); gap: 54px; padding-top: 8px; padding-bottom: var(--section); }
.frame--poster { padding: 6%; }
.frame--poster img { max-height: 70vh; }

/* Exposition sans affiche : monogramme du site au format d'une affiche */
.affiche-defaut { display: block; height: 100%; width: auto; fill: var(--ink); }
.affiche-defaut rect { fill: var(--accent); }
.frame--affiche-defaut { aspect-ratio: 9 / 10; flex-direction: column; justify-content: flex-start; padding: 0 12%; container-type: size; }
/* Cadre intérieur, comme un passe-partout */
.frame--affiche-defaut { position: relative; }
.frame--affiche-defaut::before {
    content: ""; position: absolute; inset: 4.5cqw; pointer-events: none;
    border: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
}
.affiche-defaut__visuel {
    display: flex; align-items: center; justify-content: center;
    flex: 0 0 62%; align-self: stretch; border-bottom: 1px solid var(--line);
}
.affiche-defaut__visuel .affiche-defaut { height: 30cqh; }
.affiche-defaut__legende {
    flex: 1; display: flex; align-items: center; gap: .4em;
    font: 400 clamp(18px, 6cqw, 30px)/1 var(--serif); color: var(--ink-soft);
}
.affiche-defaut__legende strong { font: 500 .56em/1 var(--sans); letter-spacing: .28em; color: var(--accent); }
.expo-row__thumb .affiche-defaut { height: 58%; }
@media (max-width: 899px) {
    .expo-detail__poster.frame--affiche-defaut { aspect-ratio: 16 / 10; }
    .expo-detail__poster .affiche-defaut__visuel { flex-basis: 70%; }
    .expo-detail__poster .affiche-defaut__visuel .affiche-defaut { height: 44cqh; }
}
.expo-detail__title { font-size: clamp(38px, 4.4vw, 46px); line-height: 1.05; margin: 6px 0 26px; }
.expo-detail .facts { font-size: 12.5px; }
.expo-detail__text { margin-top: 4px; font-size: 13.5px; line-height: 1.8; color: var(--ink-soft); }
.expo-detail__details { color: var(--muted); font-size: 12.5px; }
.expo-detail__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }

@media (max-width: 899px) {
    .expo-detail { grid-template-columns: 1fr; gap: 28px; padding-top: 0; }
    .expo-detail__title { font-size: 36px; }
    .expo-detail .facts { font-size: 13px; }
    .expo-detail__actions .btn { flex: 1 1 100%; min-height: 48px; }
}

/* Pages légales et partenaires ------------------------------------------------ */
.legal { max-width: calc(760px + 2 * var(--gutter)); padding-top: 32px; padding-bottom: var(--section); }
.legal__head { padding-bottom: 36px; margin-bottom: 44px; border-bottom: 1px solid var(--line); }
.legal__head .lead { margin: 0; max-width: 620px; }
.prose--legal { font-size: 14px; line-height: 1.8; color: var(--ink-soft); }
.prose--legal section + section { margin-top: 40px; }
.prose--legal h2 { margin-bottom: 14px; font-size: 26px; color: var(--ink); }
.prose--legal a, .partner__text a { border-bottom: 1px solid var(--line); color: var(--ink); }
.prose--legal a:hover { color: var(--accent); border-color: currentColor; }

.partners { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.partner { padding-block: 26px; border-bottom: 1px solid var(--line); }
.partner__name { margin-bottom: 8px; font-size: 26px; }
.partner__name a:hover { color: var(--accent); }
.partner__name span { font-size: 18px; color: var(--muted); }
.partner__text { font-size: 13.5px; line-height: 1.75; color: var(--ink-soft); margin-bottom: 8px; }
.partner__url { font-size: 11.5px; color: var(--muted); letter-spacing: .02em; }

@media (max-width: 899px) {
    .legal { padding-top: 8px; }
    .legal__head { padding-bottom: 28px; margin-bottom: 32px; }
    .prose--legal { font-size: 15px; }
    .partners { grid-template-columns: 1fr; }
}

/* 404 ------------------------------------------------------------------------ */
.error-page { min-height: 50vh; }
.error-page .section__title { margin-bottom: 18px; }
.error-page p + p { margin-top: 28px; }
.error-page:has(~ .section) { min-height: 0; }
/* Suggestions de la 404 : lignes vignette + titre, comme la liste des expositions */
.suggestions { max-width: 720px; margin-top: 44px; }
.suggestions .eyebrow { margin-bottom: 8px; }
.suggestions ul { margin: 0; padding: 0; list-style: none; }
.suggestions li + li { border-top: 1px solid var(--line); }
.suggestion { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 20px; align-items: center; padding-block: 14px; }
.suggestion__thumb { display: flex; align-items: center; justify-content: center; width: 72px; height: 72px; padding: 8px; background: var(--frame); }
.suggestion__thumb img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; }
.suggestion__thumb .affiche-defaut { height: 58%; }
.suggestion__body { display: flex; flex-direction: column; gap: 4px; }
.suggestion__title { font: 400 22px/1.15 var(--serif); }
.suggestion__meta { font-size: 12px; color: var(--muted); }
.suggestion:hover .suggestion__title { color: var(--accent); }
@media (max-width: 899px) {
    .suggestion { grid-template-columns: 56px minmax(0, 1fr); gap: 16px; }
    .suggestion__thumb { width: 56px; height: 56px; padding: 6px; }
    .suggestion__title { font-size: 20px; }
}
.error-page__detail { margin-top: 40px; padding: 16px; overflow-x: auto; background: var(--surface); border: 1px solid var(--line); font-size: 12px; line-height: 1.6; white-space: pre-wrap; }

/* Animations ---------------------------------------------------------------
   Entrée du hero, apparition au défilement ([data-reveal], [data-reveal-group])
   et survol des œuvres. Désactivées si l'utilisateur réduit les animations. */
@media (prefers-reduced-motion: no-preference) {
    @keyframes rise { from { opacity: 0; transform: translateY(18px); } }
    @keyframes unveil { from { opacity: 0; transform: scale(.97); filter: blur(6px); } }

    /* Hero : l'œuvre se dévoile, puis le texte monte ligne à ligne */
    .hero__work .frame--hero img { animation: unveil 1.3s cubic-bezier(.2, .7, .2, 1) backwards; will-change: transform; }
    .hero__caption { animation: rise .8s .5s cubic-bezier(.2, .7, .2, 1) backwards; }
    .hero__text > :not(.hero__title), .hero__title span { animation: rise .9s cubic-bezier(.2, .7, .2, 1) backwards; }
    .hero__text > .kicker { animation-delay: .25s; }
    .hero__title span:first-child { animation-delay: .35s; }
    .hero__title span:last-child { animation-delay: .47s; }
    .hero__text > .lead { animation-delay: .6s; }
    .hero__text > p:not([class]) { animation-delay: .7s; }
    .hero__text > .actions { animation-delay: .82s; }
    .hero__title span { display: inline-block; }
    @media (min-width: 900px) { .hero__title span { display: block; } }

    /* Apparition au défilement */
    .js [data-reveal],
    .js [data-reveal-group] > *,
    .js [data-reveal-items] > * {
        opacity: 0; transform: translateY(24px);
        transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1);
        transition-delay: var(--delay, 0ms);
    }
    .js [data-reveal-group] > * { transition-delay: calc(var(--i, 0) * 90ms); }
    .js [data-reveal].is-visible,
    .js [data-reveal-group].is-visible > *,
    .js [data-reveal-items] > .is-visible { opacity: 1; transform: none; }

    .brand-logo__balayage { transition: transform .6s cubic-bezier(.55, .05, .45, 1); }

    /* Grilles d'œuvres : le cadre arrive, puis l'œuvre s'y dépose */
    @keyframes settle { from { opacity: 0; transform: scale(.96); } }
    .js [data-reveal-items] > :not(.is-visible) .frame img { opacity: 0; }
    .js [data-reveal-items] > .is-visible .frame img {
        animation: settle 1.1s calc(var(--delay, 0ms) + 180ms) cubic-bezier(.2, .7, .2, 1) backwards;
    }

    /* Survol : l'œuvre se soulève légèrement de son fond */
    .frame img { transition: transform .5s cubic-bezier(.2, .7, .2, 1), box-shadow .5s cubic-bezier(.2, .7, .2, 1); }
    .card__link:hover .frame img,
    .series-card:hover .frame img,
    .frame--hero:hover img {
        transform: translateY(-6px);
        box-shadow: 0 22px 34px -14px rgba(28, 27, 25, .42);
    }
    .expo-card__poster img { transition: transform .6s cubic-bezier(.2, .7, .2, 1); }
    .expo-card__poster:hover img { transform: scale(1.02); }
    .link-underline, .link-arrow { transition: color .2s; }
}

/* Exposition : pièces jointes (carton d'invitation, dossier de presse…) ------------ */
.expo-docs { margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.expo-docs__title { margin-bottom: 10px; font: 600 10.5px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.expo-docs li { margin-bottom: 6px; font-size: 14px; }
.expo-docs a { border-bottom: 1px solid currentColor; font-weight: 500; }
.expo-docs a:hover { color: var(--accent); }
.expo-docs__meta { margin-left: 6px; font-size: 12px; color: var(--muted); }
