/* ==========================================================================
   Musée d'Histoire de la Médecine de Toulouse — refonte
   Palette tirée du logo : bleu nuit + corail, sur fonds crème et rose poudré
   ========================================================================== */

:root {
  --ink: #11222d;
  --ink-soft: #2b3d49;
  --muted: #5d6a72;
  --coral: #f04e37;
  --coral-deep: #c53a22;
  --blush: #fde9e4;
  --cream: #faf6f1;
  --paper: #ffffff;
  --line: rgba(17, 34, 45, .13);
  --line-light: rgba(255, 255, 255, .22);

  --serif: "Playfair Display", "Didot", "Bodoni MT", Georgia, serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1240px;
  --gutter: clamp(20px, 4vw, 48px);
  --section: clamp(72px, 10vw, 136px);
  --radius: 4px;
  --header-h: 84px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
address { font-style: normal; }

:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: calc(760px + 2 * var(--gutter)); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius);
}
.skip-link:focus { top: 12px; }

/* ---------- Typographie ---------- */

.display, h1, h2, h3 { font-family: var(--serif); font-weight: 500; line-height: 1.08; letter-spacing: -.012em; text-wrap: balance; }

.display { font-size: clamp(2.6rem, 6.4vw, 5.4rem); }
h1 { font-size: clamp(2.3rem, 5vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); }
h3 { font-size: clamp(1.3rem, 1.9vw, 1.6rem); line-height: 1.2; }
em, .display em, h1 em, h2 em { font-style: italic; }
h1 em, h2 em, .display em { color: var(--coral); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: .76rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--coral-deep);
}
.eyebrow::before { content: ""; width: 34px; height: 2px; background: var(--coral); }
.on-dark .eyebrow { color: #fff; }

.lead { font-size: clamp(1.12rem, 1.5vw, 1.32rem); line-height: 1.55; color: var(--ink-soft); }
.muted { color: var(--muted); }

/* ---------- Boutons & liens ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 14px 26px;
  font: 700 .82rem/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  border: 1.5px solid transparent; border-radius: 999px; cursor: pointer;
  transition: background .25s, color .25s, border-color .25s, transform .25s var(--ease);
}
.btn svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn--primary { background: var(--coral); color: #fff; }
.btn--primary:hover { background: var(--ink); }
.on-dark .btn--primary:hover { background: #fff; color: var(--ink); }
.btn--ghost { border-color: var(--ink); color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.on-dark .btn--ghost { border-color: rgba(255, 255, 255, .7); color: #fff; }
.on-dark .btn--ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.btn--small { min-height: 44px; padding: 10px 20px; font-size: .74rem; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 700; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; text-decoration: none;
  color: var(--coral-deep); padding-block: 6px;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1.5px no-repeat;
  transition: background-size .3s var(--ease);
}
.link-arrow:hover { background-size: 100% 1.5px; }
.link-arrow svg { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.on-dark .link-arrow { color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- En-tête ---------- */

.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(250, 246, 241, .94);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); box-shadow: 0 6px 24px -18px rgba(17, 34, 45, .5); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }

.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex-shrink: 0; }
/* Le logo d'origine (monogramme + texte) est recadré sur le monogramme : le nom est repris en texte lisible. */
.brand__mark { width: 68px; height: 62px; overflow: hidden; flex-shrink: 0; }
.brand__mark img { height: 100%; width: auto; max-width: none; }
.brand__name { font-weight: 700; font-size: .72rem; line-height: 1.22; letter-spacing: .07em; text-transform: uppercase; }
.brand__name span { display: block; }
.brand__name .brand__sub { margin-top: 5px; padding-top: 5px; border-top: 1px solid var(--coral); font-weight: 500; letter-spacing: .1em; color: var(--muted); }

.nav { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav__list { display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px); }
.nav__link {
  position: relative; display: inline-block; padding: 10px 0;
  font-size: .8rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; text-decoration: none;
}
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: var(--coral);
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease);
}
.nav__link:hover::after, .nav__link[aria-current="page"]::after { transform: scaleX(1); }

.nav-toggle {
  display: none; width: 48px; height: 48px; padding: 0; border: 0; background: none; cursor: pointer; color: var(--ink);
  border-radius: 50%;
}
.nav-toggle span { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; transition: transform .3s var(--ease), opacity .2s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

@media (max-width: 1020px) {
  :root { --header-h: 72px; }
  .brand__mark { width: 58px; height: 53px; }
  .nav-toggle { display: block; }
  .nav {
    /* absolu par rapport à l'en-tête : son backdrop-filter empêche un position: fixed plein écran */
    position: absolute; top: 100%; left: 0; right: 0; z-index: 99;
    height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h));
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: 28px var(--gutter) 40px; background: var(--cream); overflow-y: auto;
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity .25s, transform .3s var(--ease), visibility .25s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line); }
  .nav__link { display: block; padding: 18px 0; font-family: var(--serif); font-size: 1.6rem; font-weight: 500; letter-spacing: 0; text-transform: none; }
  .nav__link::after { display: none; }
  .nav .btn { align-self: flex-start; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 420px) { .brand__name .brand__sub { display: none; } }

/* ---------- Hero (accueil) ---------- */

.hero { position: relative; display: flex; align-items: flex-end; min-height: min(86vh, 860px); color: #fff; isolation: isolate; }
.hero__media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; animation: slow-zoom 18s var(--ease) both; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(to top, rgba(17, 34, 45, .9) 0%, rgba(17, 34, 45, .5) 38%, rgba(17, 34, 45, 0) 72%),
    linear-gradient(to right, rgba(17, 34, 45, .45), rgba(17, 34, 45, 0) 60%);
}
.hero__content { padding-block: clamp(120px, 18vh, 200px) clamp(110px, 14vw, 170px); max-width: 880px; }
.hero__content .display { margin-block: 20px 22px; }
.hero__content .display em { color: #ffb4a6; }
.hero__content p { max-width: 560px; font-size: clamp(1.05rem, 1.4vw, 1.22rem); color: rgba(255, 255, 255, .9); margin-bottom: 32px; }

@keyframes slow-zoom { from { transform: scale(1.08); } to { transform: scale(1); } }

/* Bandeau d'informations pratiques, à cheval sur le hero */
.infobar { position: relative; z-index: 2; margin-top: clamp(-76px, -6vw, -48px); }
.infobar__grid {
  display: grid; grid-template-columns: 1.25fr 1fr 1.25fr auto;
  background: var(--paper); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(17, 34, 45, .55);
}
.infobar__item { padding: 26px clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line); }
.infobar__item:first-child { border-left: 0; }
.infobar__label { display: block; margin-bottom: 6px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.infobar__value { font-family: var(--serif); font-size: 1.28rem; line-height: 1.25; }
.infobar__note { display: block; margin-top: 4px; font-size: .9rem; color: var(--muted); }
.infobar__cta { display: flex; align-items: center; padding: 20px clamp(18px, 2.4vw, 30px); border-left: 1px solid var(--line); }

.status { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: .86rem; font-weight: 600; color: var(--muted); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #a9b1b6; }
.status.is-open { color: #1c7a4b; }
.status.is-open::before { background: #25a565; box-shadow: 0 0 0 4px rgba(37, 165, 101, .18); }

@media (max-width: 960px) {
  .infobar__grid { grid-template-columns: 1fr 1fr; }
  .infobar__item:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .infobar__cta { border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .hero { min-height: 78vh; }
  .infobar__grid { grid-template-columns: 1fr; }
  .infobar__item, .infobar__cta { border-left: 0; border-top: 1px solid var(--line); padding-block: 20px; }
  .infobar__item:first-child { border-top: 0; }
  .infobar__cta .btn { width: 100%; }
}

/* ---------- Sections génériques ---------- */

.section { padding-block: var(--section); }
.section--paper { background: var(--paper); }
.section--blush { background: var(--blush); }
.section--ink { background: var(--ink); color: #fff; }
.section--ink .muted, .section--ink .lead { color: rgba(255, 255, 255, .74); }

.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; flex-wrap: wrap; margin-bottom: clamp(36px, 5vw, 64px); }
.section-head h2 { margin-top: 16px; max-width: 18ch; }
.section-head > p { max-width: 44ch; color: var(--muted); }

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 96px); align-items: center; }
.split--text-wide { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); }
.split__text > * + * { margin-top: 22px; }
.split__text h2 { margin-top: 16px; }
.split__text .btn-row, .split__text .link-arrow { margin-top: 32px; }
@media (max-width: 860px) { .split, .split--text-wide { grid-template-columns: 1fr; } }

/* Cadre photo : grande image, léger décalage corail */
.photo { position: relative; }
.photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius); }
.photo--portrait { aspect-ratio: 4 / 5; }
.photo--landscape { aspect-ratio: 3 / 2; }
.photo--offset::before {
  content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--coral); border-radius: var(--radius); z-index: 0;
}
.photo--offset img { position: relative; z-index: 1; }
@media (max-width: 860px) { .photo--offset::before { inset: 14px -10px -14px 14px; } .photo--offset { margin-right: 10px; } }
figcaption { margin-top: 12px; font-size: .86rem; color: var(--muted); }
.photo--offset figcaption { margin-top: 34px; }

/* Chiffres clés */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px !important; padding-top: 32px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1; color: var(--coral); }
.stats dd { margin-top: 8px; font-size: .9rem; line-height: 1.4; color: var(--muted); }

/* ---------- Exposition à l'affiche ---------- */

.feature { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); background: var(--ink); color: #fff; border-radius: var(--radius); overflow: hidden; }
.feature__media { position: relative; min-height: 520px; overflow: hidden; }
.feature__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease); }
.feature:hover .feature__media img { transform: scale(1.04); }
.feature__body { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: clamp(32px, 5vw, 72px); }
.feature__body h3 { font-size: clamp(2rem, 3.6vw, 3.1rem); line-height: 1.05; }
.feature__body h3 em { color: #ffb4a6; }
.feature__body p { color: rgba(255, 255, 255, .78); }
.feature__dates { font-family: var(--serif); font-style: italic; font-size: 1.2rem; color: #fff !important; }
.tag { display: inline-block; align-self: flex-start; padding: 7px 14px; border-radius: 999px; background: var(--coral); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
@media (max-width: 860px) { .feature { grid-template-columns: 1fr; } .feature__media { min-height: 0; aspect-ratio: 4 / 3; } }

/* ---------- Les salles ---------- */

.rooms { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.room { position: relative; padding: 36px 28px 40px 0; border-bottom: 1px solid var(--line); transition: background .3s; }
.room + .room { padding-left: 28px; border-left: 1px solid var(--line); }
.room__num { display: block; font-family: var(--serif); font-style: italic; font-size: 3.2rem; line-height: 1; color: var(--coral); margin-bottom: 26px; }
.room h3 { margin-bottom: 12px; }
.room p { font-size: .96rem; color: var(--muted); }
.room__level { display: block; margin-bottom: 8px; font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1020px) { .rooms { grid-template-columns: repeat(2, 1fr); } .room:nth-child(3) { padding-left: 0; border-left: 0; } }
@media (max-width: 600px) {
  .rooms { grid-template-columns: 1fr; }
  .room, .room + .room { display: grid; grid-template-columns: 64px 1fr; padding: 26px 0; border-left: 0; }
  .room__num { font-size: 2.4rem; margin: 0; grid-row: span 3; }
}

/* ---------- Bandeau plein écran ---------- */

.banner { position: relative; display: flex; align-items: center; min-height: min(78vh, 720px); color: #fff; isolation: isolate; overflow: hidden; }
.banner__media { position: absolute; inset: -8% 0; z-index: -2; }
.banner__media img { width: 100%; height: 100%; object-fit: cover; }
.banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(17, 34, 45, .94) 0%, rgba(17, 34, 45, .8) 44%, rgba(17, 34, 45, .12) 82%); }
.banner__content { max-width: 600px; padding-block: 80px; }
.banner__content > * + * { margin-top: 22px; }
.banner__content p { color: rgba(255, 255, 255, .86); }
.banner__content .link-arrow { margin-top: 30px; }
@media (max-width: 700px) { .banner::after { background: linear-gradient(to top, rgba(17, 34, 45, .92) 20%, rgba(17, 34, 45, .55)); } }

/* ---------- Agenda ---------- */

.agenda { border-top: 1px solid var(--line); }
.event { display: grid; grid-template-columns: 120px minmax(0, 1fr) auto; gap: clamp(16px, 3vw, 40px); align-items: center; padding: 26px 0; border-bottom: 1px solid var(--line); text-decoration: none; transition: padding .3s var(--ease); }
a.event:hover { padding-inline: 14px; background: rgba(240, 78, 55, .05); }
.event__date { font-family: var(--serif); line-height: 1; }
.event__date strong { display: block; font-size: 2.5rem; font-weight: 500; }
.event__date span { display: block; margin-top: 6px; font: 700 .72rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep); }
.event__type { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.event h3 { margin-block: 6px; }
.event p { font-size: .95rem; color: var(--muted); }
.event__meta { font-size: .9rem; color: var(--muted); text-align: right; white-space: nowrap; }
.section--ink .agenda, .section--ink .event { border-color: var(--line-light); }
.section--ink .event__type, .section--ink .event p, .section--ink .event__meta { color: rgba(255, 255, 255, .68); }
.section--ink .event__date span { color: #ffb4a6; }
@media (max-width: 700px) {
  .event { grid-template-columns: 76px 1fr; align-items: start; }
  .event__date strong { font-size: 2rem; }
  .event__meta { grid-column: 2; text-align: left; white-space: normal; }
}

/* ---------- Cartes (association) ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card { display: flex; flex-direction: column; gap: 14px; padding: clamp(26px, 3vw, 40px); background: var(--paper); border-radius: var(--radius); border: 1px solid transparent; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s; }
.card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -36px rgba(17, 34, 45, .55); border-color: var(--line); }
.card__icon { width: 46px; height: 46px; color: var(--coral); }
.card p { color: var(--muted); font-size: .98rem; flex: 1; }
.card .link-arrow { align-self: flex-start; margin-top: 8px; }
@media (max-width: 900px) { .cards { grid-template-columns: 1fr; } }

/* ---------- Infos pratiques ---------- */

.practical { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(28px, 4vw, 64px); }
.practical h3 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-light); }
.practical p + p, .practical ul + p, .practical p + ul { margin-top: 14px; }
.practical a:not(.btn):not(.link-arrow) { text-underline-offset: 4px; text-decoration-color: var(--coral); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-light); }
.hours li.is-closed { color: rgba(255, 255, 255, .45); }
.hours li.is-today { font-weight: 700; }
.hours li.is-today span:first-child::after { content: " · aujourd'hui"; font-weight: 500; font-size: .82rem; color: #ffb4a6; }
.big-phone { display: inline-block; font-family: var(--serif); font-size: 1.7rem; text-decoration: none; }
@media (max-width: 900px) { .practical { grid-template-columns: 1fr; } }

/* ---------- En-tête de page intérieure ---------- */

.page-head { padding-block: clamp(48px, 7vw, 96px) clamp(40px, 5vw, 64px); background: var(--blush); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; font-size: .84rem; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--coral); }
.breadcrumb a { text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; text-underline-offset: 4px; }
.page-head h1 { margin-block: 18px 24px; max-width: 18ch; }
.page-head .lead { max-width: 62ch; }

.page-cover { background: linear-gradient(var(--blush) 50%, var(--cream) 50%); }
.page-cover img { width: 100%; aspect-ratio: 21 / 9; object-fit: cover; border-radius: var(--radius); }
.page-cover figcaption { text-align: right; }
@media (max-width: 700px) { .page-cover img { aspect-ratio: 4 / 3; } }

/* ---------- Article ---------- */

.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: clamp(40px, 7vw, 110px); align-items: start; padding-block: clamp(48px, 7vw, 96px) var(--section); }
@media (max-width: 960px) { .article-layout { grid-template-columns: 1fr; } }

.prose { max-width: 68ch; font-size: 1.09rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.35em; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.15rem); margin-top: 2.1em; }
.prose h3 { margin-top: 1.8em; }
.prose > p:first-of-type::first-letter { float: left; font-family: var(--serif); font-size: 4.6em; line-height: .82; padding: .06em .1em 0 0; color: var(--coral); }
.prose a { color: var(--coral-deep); text-underline-offset: 4px; }
.prose ul { padding-left: 0; }
.prose ul li { position: relative; padding-left: 26px; }
.prose ul li + li { margin-top: .5em; }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .78em; width: 12px; height: 2px; background: var(--coral); }
.prose blockquote { margin-block: 2.2em; padding-left: clamp(20px, 3vw, 36px); border-left: 2px solid var(--coral); font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.3vw, 1.75rem); line-height: 1.35; }
.prose blockquote cite { display: block; margin-top: 14px; font: 600 .8rem/1.4 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prose figure { margin-block: 2.4em; }
.prose figure img { width: 100%; border-radius: var(--radius); }

.aside { position: sticky; top: calc(var(--header-h) + 28px); display: grid; gap: 28px; }
@media (max-width: 960px) { .aside { position: static; } }
.aside__block { padding: 28px; background: var(--paper); border-radius: var(--radius); }
.aside__block--ink { background: var(--ink); color: #fff; }
.aside__block h2 { font: 700 .76rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--coral-deep); margin-bottom: 22px; }
.aside__block--ink h2 { color: #ffb4a6; }
.aside__block--ink p { color: rgba(255, 255, 255, .8); font-size: .96rem; margin-bottom: 20px; }

.timeline { position: relative; display: grid; gap: 20px; padding-left: 22px; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline li { position: relative; font-size: .93rem; line-height: 1.45; color: var(--muted); }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.timeline strong { display: block; font-family: var(--serif); font-size: 1.35rem; font-weight: 500; color: var(--ink); }

.subnav li + li { border-top: 1px solid var(--line); }
.subnav a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; text-decoration: none; font-weight: 500; transition: color .2s, padding .3s var(--ease); }
.subnav a:hover { color: var(--coral-deep); padding-left: 6px; }
.subnav a[aria-current="page"] { color: var(--coral-deep); font-weight: 700; }

/* Navigation précédent / suivant */
.pager { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.pager a { display: block; padding: clamp(28px, 4vw, 56px) 0; text-decoration: none; transition: background .3s; }
.pager a + a { text-align: right; border-left: 1px solid var(--line); padding-left: 24px; }
.pager a:first-child { padding-right: 24px; }
.pager span { display: block; margin-bottom: 8px; font-size: .74rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.pager strong { font-family: var(--serif); font-weight: 500; font-size: clamp(1.2rem, 2.4vw, 1.9rem); line-height: 1.2; transition: color .2s; }
.pager a:hover strong { color: var(--coral-deep); }

/* ---------- Page exposition ---------- */

.expo-hero { background: var(--ink); color: #fff; overflow: hidden; }
.expo-hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: min(88vh, 860px); }
.expo-hero__text { display: flex; flex-direction: column; justify-content: center; gap: 24px; padding: clamp(48px, 7vw, 96px) clamp(24px, 5vw, 80px) clamp(48px, 7vw, 96px) max(var(--gutter), calc((100vw - var(--wrap)) / 2)); }
.expo-hero__text .breadcrumb { margin-bottom: 8px; color: rgba(255, 255, 255, .6); }
.expo-hero__text .display { font-size: clamp(2.8rem, 6.6vw, 6rem); }
.expo-hero__text .display em { color: #ffb4a6; }
.expo-hero__subtitle { font-family: var(--serif); font-style: italic; font-size: clamp(1.2rem, 2vw, 1.6rem); line-height: 1.35; color: rgba(255, 255, 255, .86); max-width: 30ch; }
.expo-hero__dates { display: flex; align-items: baseline; flex-wrap: wrap; gap: 10px 18px; padding-top: 24px; border-top: 1px solid var(--line-light); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.expo-hero__dates strong { font-family: var(--serif); font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 500; letter-spacing: 0; text-transform: none; }
.expo-hero__media { position: relative; min-height: 420px; }
.expo-hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; animation: slow-zoom 18s var(--ease) both; }
@media (max-width: 900px) {
  .expo-hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .expo-hero__media { order: -1; min-height: 0; aspect-ratio: 4 / 3.4; }
  .expo-hero__text { padding-inline: var(--gutter); }
}

.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: var(--paper); border-bottom: 1px solid var(--line); }
.facts > div { padding: 26px clamp(18px, 2.4vw, 34px); border-left: 1px solid var(--line); }
.facts > div:first-child { border-left: 0; padding-left: 0; }
.facts dt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-family: var(--serif); font-size: 1.2rem; line-height: 1.3; }
@media (max-width: 860px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .facts > div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .facts > div:nth-child(-n+2) { border-top: 0; }
}

/* Parcours en chapitres */
.chapters { display: grid; gap: clamp(56px, 8vw, 112px); }
.chapter { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(28px, 6vw, 96px); align-items: center; }
.chapter:nth-child(even) .chapter__media { order: 2; }
.chapter__num { font-family: var(--serif); font-style: italic; font-size: 1.1rem; color: var(--coral-deep); }
.chapter__text > * + * { margin-top: 18px; }
.chapter__text p { color: var(--ink-soft); }
.chapter__objects { margin-top: 26px !important; padding-top: 20px; border-top: 1px solid var(--line); font-size: .92rem; color: var(--muted); }
.chapter__objects strong { display: block; margin-bottom: 6px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); }
@media (max-width: 860px) { .chapter { grid-template-columns: 1fr; } .chapter:nth-child(even) .chapter__media { order: 0; } }

.quote-band { text-align: center; }
.quote-band blockquote { max-width: 22ch; margin-inline: auto; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 4.4vw, 3.4rem); line-height: 1.2; }
.quote-band cite { display: block; margin-top: 28px; font: 700 .78rem/1.5 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--coral-deep); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(12, 1fr); gap: clamp(10px, 1.6vw, 20px); }
.gallery figure { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--ink); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), opacity .4s; }
.gallery figure:hover img { transform: scale(1.05); opacity: .82; }
.gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 40px 18px 16px; color: #fff; font-size: .86rem; background: linear-gradient(to top, rgba(17, 34, 45, .85), transparent); }
.gallery .g-a { grid-column: span 7; aspect-ratio: 7 / 5; }
.gallery .g-b { grid-column: span 5; aspect-ratio: 5 / 5; }
.gallery .g-c { grid-column: span 5; aspect-ratio: 5 / 5; }
.gallery .g-d { grid-column: span 7; aspect-ratio: 7 / 5; }
@media (max-width: 700px) { .gallery figure { grid-column: 1 / -1 !important; aspect-ratio: 4 / 3 !important; } }

/* Appel final */
.cta-band { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 32px; }
.cta-band h2 { max-width: 20ch; }

/* ---------- Pied de page ---------- */

.site-footer { background: var(--ink); color: rgba(255, 255, 255, .78); font-size: .95rem; }
.section--ink + .site-footer { border-top: 1px solid var(--line-light); }
.site-footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 64px); padding-block: clamp(56px, 7vw, 88px); }
.site-footer__brand img { width: 96px; margin-bottom: 22px; }
.site-footer__brand p { max-width: 30ch; }
.site-footer h2 { margin-bottom: 18px; font: 700 .74rem/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #fff; }
.site-footer li + li { margin-top: 10px; }
.site-footer a { text-decoration: none; transition: color .2s; }
.site-footer a:hover { color: #ffb4a6; }
.site-footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px 32px; padding-block: 24px; border-top: 1px solid var(--line-light); font-size: .84rem; color: rgba(255, 255, 255, .55); }
.site-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.site-footer__bottom li + li { margin-top: 0; }
@media (max-width: 900px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .site-footer__grid { grid-template-columns: 1fr; } }

/* ---------- Apparition au défilement (uniquement si JS actif) ---------- */

.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

@media print {
  .site-header, .site-footer, .nav-toggle, .btn { display: none !important; }
  body { background: #fff; }
}
