/*
 * Musée de Manéga : le bendré, tambour parlant.
 * La peau tendue est la scène, la calebasse brune l'entoure, les tirants noirs la tendent,
 * le rouge garance marque la frappe. Aplats, aucun dégradé, aucune ombre décorative.
 * Les titres d'affichage sont en capitales frappées ; le texte du fondateur garde sa forme.
 */

@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Literata"; src: url("../fonts/literata-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
	--suie: #120d0a;
	--calebasse: #6b3a1e;
	--calebasse-f: #3d2011;
	--peau: #e7c89a;
	--page: #f3e3c4;
	--garance: #9c2a1a;
	--garance-f: #7a1f12;
	--texte: #241710;
	--texte-doux: #55392a;
	--sur-sombre: #f3dfbe;
	--sur-sombre-doux: #d6bc95;
	--sable: #c79a63;
	--gris: var(--texte-doux);
	--titre: "Unbounded", "Arial Black", sans-serif;
	--corps: "Literata", Georgia, serif;
	--wrap: 76rem;
	--gouttiere: clamp(1rem, 4vw, 2.5rem);
	--section: clamp(3.5rem, 8vw, 6.5rem);
	--peau-img: url("../img/peau.svg");
	--cordes-img: url("../img/cordes.svg");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 1.5rem; }
body {
	margin: 0;
	background: var(--peau) var(--peau-img);
	color: var(--texte);
	font: 400 1.0625rem/1.65 var(--corps);
	font-kerning: normal;
	text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--garance-f); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--garance); text-decoration-thickness: 2px; }
::selection { background: var(--garance); color: var(--sur-sombre); }
:focus-visible { outline: 3px solid var(--garance); outline-offset: 3px; }
.site-header :focus-visible, .site-footer :focus-visible, .appel :focus-visible, .renovation :focus-visible, .seuil :focus-visible, .tete-page :focus-visible { outline-color: var(--peau); }
h1, h2, h3 { font-family: var(--titre); font-weight: 700; line-height: 1.12; letter-spacing: -.01em; text-wrap: balance; margin: 0 0 .6em; }
h1 { font-weight: 900; }
h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); }
h3 { font-size: 1.15rem; }
/* Capitales frappées pour les titres d'affichage. */
.appel h1, .tete-page h1, .section > .wrap > h2, .renovation h2, .seuil-pleine h2, .livre h2, .fiche h2 { text-transform: uppercase; letter-spacing: 0; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gouttiere); }
.section { padding-block: var(--section); }
/* Les cordes du tambour, lacées, séparent les sections sur la peau. */
.section + .section { position: relative; }
.section + .section::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 28px; background: var(--cordes-img) repeat-x center / auto 28px; opacity: .85; }
.skip { position: absolute; left: -999px; top: 0; background: var(--suie); color: var(--sur-sombre); padding: .75rem 1rem; z-index: 99; }
.skip:focus { left: 1rem; }
.icon { width: 1.25em; height: 1.25em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Boutons : la frappe rouge ---------- */
.btn {
	display: inline-flex; align-items: center; gap: .6em;
	font: 700 .95rem/1.1 var(--titre);
	padding: 1em 1.4em;
	background: var(--garance); color: var(--sur-sombre);
	border: 2px solid var(--garance); border-radius: 999px; cursor: pointer;
	text-decoration: none;
	transition: background-color .2s ease, color .2s ease, transform .15s ease;
}
.btn::before { content: ""; width: .55em; height: .55em; border-radius: 50%; background: currentColor; flex: none; }
.btn:hover { background: var(--garance-f); border-color: var(--garance-f); color: var(--sur-sombre); }
.btn:active { transform: scale(.97); }
.btn-whatsapp::before { display: none; }
.btn-clair { background: var(--peau); border-color: var(--peau); color: var(--suie); }
.btn-clair:hover { background: var(--sur-sombre); border-color: var(--sur-sombre); color: var(--suie); }
.btn-contour { background: transparent; border-color: var(--suie); color: var(--suie); }
.btn-contour:hover { background: var(--suie); border-color: var(--suie); color: var(--sur-sombre); }
.lien-fort { display: inline-flex; align-items: center; gap: .35em; font: 700 .95rem/1.3 var(--titre); color: inherit; text-decoration: none; border-bottom: 2px solid var(--garance); padding-bottom: .15em; }
.lien-fort:hover { color: var(--garance); }
.lien-fort .icon { width: 1em; height: 1em; }

/* ---------- En-tête ---------- */
.site-header { background: var(--suie); color: var(--sur-sombre); position: relative; z-index: 10; }
.header-bar { display: flex; align-items: center; gap: 1.25rem; min-height: 4.75rem; }
.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; margin-right: auto; flex: none; }
.brand-logo { width: 3rem; height: 3rem; object-fit: cover; border-radius: 50%; border: 2px solid var(--peau); }
.brand-nom { font: 900 1.05rem/1.05 var(--titre); white-space: nowrap; }
.brand-sous { display: block; font: 400 .8rem/1.3 var(--corps); font-style: italic; color: var(--sur-sombre-doux); margin-top: .2em; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: .7rem; }
.nav-list a { position: relative; color: var(--sur-sombre); text-decoration: none; font: 700 .76rem/1 var(--titre); padding: .5em 0; display: inline-flex; align-items: center; gap: .4em; white-space: nowrap; }
.nav-list a::before { content: ""; width: .4em; height: .4em; border-radius: 50%; background: var(--calebasse); transition: background-color .2s, transform .2s; }
.nav-list a:hover::before, .nav-list a[aria-current="page"]::before { background: var(--garance); transform: scale(1.5); }
.nav-list a[aria-current="page"] { color: #fff; }
.btn-entete { font-size: .8rem; padding: .8em 1.1em; white-space: nowrap; }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; padding: .5rem; color: var(--sur-sombre); }
.menu summary::-webkit-details-marker { display: none; }
.menu summary .icon { width: 1.75rem; height: 1.75rem; }
.menu .i-fermer, .menu[open] .i-ouvrir { display: none; }
.menu[open] .i-fermer { display: block; }
.menu-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--suie); padding: 1rem var(--gouttiere) 1.75rem; border-top: 1px solid var(--calebasse); }
.menu-panel .nav-list { flex-direction: column; gap: 0; margin-bottom: 1.25rem; }
.menu-panel .nav-list a { font-size: 1rem; padding: .85em 0; }
@media (max-width: 88rem) { .nav-desktop { display: none; } .menu { display: block; } }
@media (max-width: 40rem) { .btn-entete { display: none; } .brand-sous { display: none; } }

/* ---------- Le bendré ---------- */
.bendre { position: relative; aspect-ratio: 1; width: 100%; }
.bendre-peau { position: absolute; inset: 10.67%; border-radius: 50%; overflow: hidden; background: var(--peau) var(--peau-img); }
.bendre-peau img { width: 100%; height: 100%; object-fit: cover; }
.bendre-trace { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.bendre-calebasse { fill: none; stroke: var(--calebasse); stroke-width: 56px; transform: scale(.902); transform-origin: 300px 300px; }
.bendre-tirants line { stroke: var(--suie); stroke-width: 4; stroke-linecap: round; }
.bendre-cerclage { fill: none; stroke: var(--suie); stroke-width: 8; }
.bendre-texte { font: 900 21px var(--titre); fill: var(--peau); letter-spacing: .12em; text-transform: uppercase; }
.bendre-tete, .bendre-renov { width: clamp(9rem, 16vw, 13rem); flex: none; }
.bendre-tete .bendre-texte, .bendre-renov .bendre-texte { font-size: 30px; letter-spacing: .06em; }
.bendre-garance .bendre-peau { background: var(--garance-f); }
.bendre-garance .bendre-calebasse { stroke: var(--suie); }

/* ---------- L'appel (premier écran) ---------- */
.appel { background: var(--calebasse-f); color: var(--sur-sombre); }
.appel-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; padding-block: clamp(1.75rem, 3.5vw, 2.75rem); }
.appel h1 { font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1; margin-bottom: .45em; }
.appel h1 span { color: var(--peau); display: block; }
.appel-chapo { font-size: clamp(1.02rem, 1.3vw, 1.15rem); color: var(--sur-sombre-doux); max-width: 34rem; }
.faits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem 1.5rem; margin: 1.25rem 0; }
.faits div { border-top: 1px solid var(--calebasse); padding-top: .5rem; }
.faits dt { font: 700 .7rem/1.2 var(--titre); color: var(--peau); text-transform: uppercase; letter-spacing: .08em; margin-bottom: .25em; }
.faits dd { margin: 0; font-size: .92rem; line-height: 1.4; }
.a-confirmer em, .a-confirmer-note { font-style: italic; font-size: .85em; opacity: .85; white-space: nowrap; }
.a-confirmer { text-decoration: underline dotted; text-underline-offset: .25em; text-decoration-thickness: 1px; }
.visite-courte { background: var(--suie); padding: 1.1rem 1.2rem 1.2rem; border-radius: 1.25rem; }
.visite-courte h2 { font-size: 1rem; color: var(--peau); margin-bottom: .7rem; text-transform: uppercase; }
.visite-champs { display: grid; grid-template-columns: 1.2fr .8fr 1.3fr auto; gap: .7rem; align-items: end; }
.visite-champs p { margin: 0; display: grid; gap: .3rem; }
.visite-champs label { font-size: .8rem; color: var(--sur-sombre-doux); }
.visite-champs input { width: 100%; font: inherit; font-size: .95rem; padding: .6rem .7rem; border-radius: .6rem; border: 1px solid var(--calebasse); background: var(--calebasse-f); color: var(--sur-sombre); color-scheme: dark; }
.visite-champs input::placeholder { color: #b89772; }
.visite-courte .btn { margin-top: .9rem; }

/* Le tambour d'appel, et les cinq rubriques frappées sur son pourtour. */
.tambour-appel { position: relative; width: min(100%, 46rem); justify-self: center; padding: 1.5rem 2.5rem; }
.frappes ul { list-style: none; margin: 0; padding: 0; }
.frappes a { display: inline-flex; align-items: center; gap: .55em; color: var(--sur-sombre); text-decoration: none; font: 700 .9rem/1 var(--titre); text-transform: uppercase; padding: .45em .8em .45em .45em; border-radius: 999px; background: var(--suie); white-space: nowrap; transition: background-color .2s; }
.frappes a::before { content: ""; width: .9em; height: .9em; border-radius: 50%; background: var(--garance); box-shadow: 0 0 0 .22em var(--calebasse); transition: transform .25s cubic-bezier(.16, 1, .3, 1); }
.frappes a:hover { background: var(--garance-f); }
.frappes a:hover::before { transform: scale(1.3); background: var(--peau); }
@media (min-width: 60.01rem) {
	.frappes li { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(var(--a)) translateY(calc(-1 * var(--r))) rotate(calc(-1 * var(--a))); --r: min(22.5rem, 24vw); }
	.frappes li:nth-child(1) { --a: -62deg; }
	.frappes li:nth-child(2) { --a: -14deg; }
	.frappes li:nth-child(3) { --a: 40deg; }
	.frappes li:nth-child(4) { --a: 128deg; }
	.frappes li:nth-child(5) { --a: 208deg; }
}
@media (max-width: 60rem) {
	.appel-grille { grid-template-columns: 1fr; }
	.tambour-appel { order: -1; padding: 0; width: min(24rem, 86vw); }
	.frappes ul { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 1.25rem; }
	.frappes a { font-size: .78rem; }
	.visite-champs { grid-template-columns: 1fr 1fr; }
	.visite-champs p:first-child { grid-column: 1 / -1; }
}
@media (max-width: 34rem) { .faits { grid-template-columns: 1fr; } }

/* La frappe d'arrivée : la peau tressaille, l'anneau d'appel se met en place (les autres mouvements sont plus bas). */
@media (prefers-reduced-motion: no-preference) {
	.bendre-appel .bendre-peau { animation: frappe .9s cubic-bezier(.16, 1, .3, 1) .2s both; }
	.bendre-appel .bendre-texte { animation: anneau 1.6s cubic-bezier(.16, 1, .3, 1) both; transform-origin: 300px 300px; }
	@keyframes frappe { 0% { transform: scale(1); } 18% { transform: scale(.955); } 100% { transform: scale(1); } }
	@keyframes anneau { from { transform: rotate(-24deg); opacity: 0; } to { transform: rotate(0); opacity: 1; } }
}

/* ---------- Ce que garde le musée : un inventaire réglé ---------- */
.garde-intro { font-size: 1.2rem; max-width: 44rem; }
.inventaire { list-style: none; padding: 0; margin: 2rem 0 1rem; max-width: 52rem; border-top: 2px solid var(--suie); }
.inventaire li { display: grid; grid-template-columns: 5.5rem 13rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--calebasse); }
.inventaire .nombre { font: 600 1.35rem/1 var(--corps); font-variant-numeric: tabular-nums lining-nums; color: var(--garance-f); text-align: right; white-space: nowrap; }
.inventaire strong { font: 700 1rem/1.25 var(--titre); }
.inventaire .detail { color: var(--texte-doux); }
.source { font-size: .88rem; font-style: italic; color: var(--texte-doux); max-width: 46rem; }
@media (max-width: 44rem) { .inventaire li { grid-template-columns: 4.5rem 1fr; } .inventaire .detail { grid-column: 2; } }

/* ---------- Les salles : une partition, une mesure par groupe ---------- */
.partition { list-style: none; padding: 0; margin: 2rem 0 0; border-top: 2px solid var(--suie); }
.mesure { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 2rem; padding-block: 1.75rem; border-bottom: 1px solid var(--calebasse); align-items: start; }
.mesure-image img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: .9rem; border: 3px solid var(--suie); }
.mesure h3, .mesure h2 { font-size: 1.25rem; margin-bottom: .35em; text-transform: uppercase; }
.mesure-texte > p { color: var(--texte-doux); max-width: 44rem; }
.mesure-liens { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.mesure-liens a { display: inline-block; padding: .5em 1em; border-radius: 999px; border: 2px solid var(--suie); color: var(--suie); text-decoration: none; font: 700 .82rem/1.2 var(--titre); transition: background-color .2s, color .2s; }
.mesure-liens a:hover, .mesure-liens a[aria-current="page"] { background: var(--suie); color: var(--sur-sombre); }
.partition-pleine { margin-top: 1rem; }
.salles-liste { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(12rem, 1fr)); gap: .75rem; }
.salles-liste a { display: flex; align-items: center; gap: .8rem; padding: .45rem .9rem .45rem .45rem; border-radius: 999px; border: 2px solid var(--suie); color: var(--suie); text-decoration: none; font: 700 .85rem/1.2 var(--titre); transition: background-color .2s, color .2s; }
.salles-liste img { width: 2.75rem; height: 2.75rem; border-radius: 50%; object-fit: cover; flex: none; }
.salles-liste a:hover { background: var(--suie); color: var(--sur-sombre); }
@media (max-width: 44rem) { .mesure { grid-template-columns: 1fr; gap: 1rem; } .mesure-image img { aspect-ratio: 16 / 9; } }

/* ---------- Le seuil du sacré : la nuit de la Case noire ---------- */
.prescriptions { position: relative; isolation: isolate; background: var(--suie); padding-block: var(--section); }
.prescriptions::before { content: ""; position: absolute; inset: 0; background: var(--peau-img); opacity: .05; z-index: -1; }
.seuil { position: relative; color: var(--sur-sombre); isolation: isolate; }
.seuil-marge::before { content: ""; position: absolute; inset: 0; background: var(--peau-img); opacity: .06; z-index: -1; border-radius: inherit; }
.seuil-tete h2, .seuil-tete h3 { color: var(--peau); }
.seuil-pleine { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.seuil-pleine .seuil-tete h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); line-height: 1.02; }
.seuil-parole { margin: 1.75rem 0 0; padding: 0; border: 0; }
.seuil-parole p { font: italic 400 clamp(1.15rem, 1.8vw, 1.45rem)/1.5 var(--corps); color: var(--sur-sombre); margin: 0 0 .6rem; }
.seuil-parole cite { font: 700 .75rem/1.2 var(--titre); text-transform: uppercase; letter-spacing: .1em; color: var(--peau); font-style: normal; }
.rites { list-style: none; counter-reset: rite; margin: 0; padding: 0; display: grid; gap: 0; }
.rites li { display: grid; grid-template-columns: 4.25rem minmax(0, 1fr); column-gap: 1.25rem; align-items: start; padding: 1.35rem 0; border-top: 1px solid var(--calebasse); }
.rites li:first-child { border-top: 0; padding-top: 0; }
.rite-ic { grid-row: span 2; width: 4.25rem; height: 4.25rem; border-radius: 50%; display: grid; place-items: center; color: var(--suie); background: var(--peau) var(--peau-img); box-shadow: 0 0 0 .3rem var(--calebasse), 0 0 0 .5rem var(--suie), 0 0 0 .62rem var(--garance); }
.rite-ic .icon { width: 2.7rem; height: 2.7rem; stroke-width: 1.5; }
.rites strong { font: 700 1.05rem/1.2 var(--titre); text-transform: uppercase; color: var(--peau); margin: .35rem 0 .35rem; }
.rite-texte { font-size: 1.05rem; line-height: 1.55; color: var(--sur-sombre); }
.seuil-marge { background: var(--suie); border-radius: 1.25rem; padding: 1.5rem 1.35rem 1.25rem; }
.seuil-marge .seuil-tete h3 { font-size: 1rem; text-transform: uppercase; margin-bottom: .2rem; }
.seuil-marge .seuil-parole { margin: .6rem 0 1.1rem; }
.seuil-marge .seuil-parole p { font-size: 1rem; }
.seuil-marge .rites li { grid-template-columns: 3rem minmax(0, 1fr); column-gap: 1rem; padding: 1rem 0; }
.seuil-marge .rite-ic { width: 3rem; height: 3rem; box-shadow: 0 0 0 .22rem var(--calebasse), 0 0 0 .38rem var(--suie), 0 0 0 .48rem var(--garance); }
.seuil-marge .rite-ic .icon { width: 2rem; height: 2rem; }
.seuil-marge .rites strong { font-size: .85rem; margin-top: .15rem; }
.seuil-marge .rite-texte { font-size: .92rem; }
@media (max-width: 52rem) { .seuil-pleine { grid-template-columns: 1fr; gap: 2rem; } }

/* ---------- Le fondateur ---------- */
.fondateur-grille, .fiche-grille { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.fondateur-portrait { margin: 0; }
.fondateur-portrait img { width: 100%; border-radius: 12rem 12rem 1rem 1rem; border: .6rem solid var(--calebasse); }
.fondateur-grille p { max-width: 42rem; }
.livres { list-style: none; padding: 0; margin: 0 0 1.75rem; border-top: 1px solid var(--calebasse); }
.livres li { display: grid; gap: .15rem; padding: .7rem 0; border-bottom: 1px solid var(--calebasse); }
.livres cite { font-style: italic; font-weight: 600; font-size: 1.05rem; }
.livres span { font-size: .9rem; color: var(--texte-doux); }
.fondateur-grille h3 { margin-top: 2rem; }
.fiche { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.fiche h2 { font-size: clamp(1.4rem, 2.6vw, 2rem); }
.qualites { list-style: none; margin: 1.5rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem 2rem; }
.qualites li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.qualite-ic { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; background: var(--suie); color: var(--peau); box-shadow: 0 0 0 .25rem var(--calebasse); }
.qualite-ic .icon { width: 1.6rem; height: 1.6rem; stroke-width: 1.7; }
.qualites strong { display: block; font: 700 .9rem/1.2 var(--titre); text-transform: uppercase; margin-bottom: .3rem; }
.qualites span { font-size: .96rem; line-height: 1.5; color: var(--texte-doux); }
.reperes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0 0 1.75rem; border-top: 2px solid var(--suie); border-bottom: 2px solid var(--suie); }
.reperes div { padding: .85rem 1rem .85rem 0; }
.reperes div + div { padding-left: 1rem; border-left: 1px solid var(--calebasse); }
.reperes dt { font: 700 .7rem/1.2 var(--titre); text-transform: uppercase; letter-spacing: .08em; color: var(--garance-f); margin-bottom: .3rem; }
.reperes dd { margin: 0; font-size: .95rem; line-height: 1.4; }
@media (max-width: 60rem) { .reperes { grid-template-columns: 1fr 1fr; } .reperes div:nth-child(3) { border-left: 0; padding-left: 0; } .reperes div:nth-child(n+3) { border-top: 1px solid var(--calebasse); } }
@media (max-width: 48rem) { .fondateur-grille, .fiche-grille { grid-template-columns: 1fr; } .fondateur-portrait { max-width: 16rem; } .qualites { grid-template-columns: 1fr; } }

/* ---------- La vie du musée ---------- */
.vie-grille { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: .75rem; margin-top: 1.5rem; }
.vie-grille figure { margin: 0; }
.vie-grille img { width: 100%; height: 100%; object-fit: cover; border-radius: .9rem; aspect-ratio: 4 / 3; }
.vie-grand { grid-row: span 2; }
.vie-grand img { aspect-ratio: auto; }
.actus { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 2rem; margin: 2.5rem 0 1.5rem; }
.actu { display: grid; gap: .6rem; align-content: start; }
.actu-image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: .9rem; }
.actu h3 { margin: .3em 0 0; font-size: 1.15rem; }
.actu h3 a { color: inherit; text-decoration: none; }
.actu h3 a:hover { color: var(--garance-f); }
.actu time { font-style: italic; font-size: .92rem; color: var(--texte-doux); }
.actu p { color: var(--texte-doux); font-size: .97rem; }
@media (max-width: 48rem) { .vie-grille { grid-template-columns: 1fr 1fr; } .vie-grand { grid-column: 1 / -1; grid-row: auto; } }

/* ---------- Rénovation ---------- */
.renovation { background: var(--garance); color: var(--sur-sombre); padding-block: clamp(3rem, 6vw, 5rem); }
.renovation-grille { display: flex; align-items: center; gap: clamp(1.5rem, 4vw, 3.5rem); }
.renovation h2 { color: #fff; }
.renovation p { max-width: 40rem; font-size: 1.1rem; }
@media (max-width: 40rem) { .renovation-grille { flex-direction: column; align-items: flex-start; } }

/* ---------- Pages intérieures ---------- */
.tete-page { background: var(--calebasse-f); color: var(--sur-sombre); padding-block: clamp(1.75rem, 4vw, 2.75rem); }
.tete-grille { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: clamp(1.25rem, 4vw, 3rem); }
.tete-page h1 { font-size: clamp(1.8rem, 4.2vw, 3.2rem); margin-bottom: .35em; }
.chapo { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--sur-sombre-doux); margin: 0; max-width: 46rem; }
.chapo strong { color: var(--peau); }
@media (max-width: 40rem) { .tete-grille { grid-template-columns: 1fr; } .bendre-tete { width: 9rem; order: -1; } }

.lecture { display: grid; grid-template-columns: minmax(0, 68ch); gap: clamp(2rem, 5vw, 4.5rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.lecture-marge { grid-template-columns: minmax(0, 68ch) minmax(0, 21rem); }
.marge { display: grid; gap: 1.5rem; align-content: start; position: sticky; top: 1.5rem; max-height: calc(100vh - 3rem); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--calebasse) transparent; }
.marge-bloc { border: 2px solid var(--suie); border-radius: 1.25rem; padding: 1.3rem; }
.marge-bloc h2 { font-size: 1rem; text-transform: uppercase; margin-bottom: .7em; }
.marge-bloc p { font-size: .95rem; }
.marge-bloc .mesure-liens { flex-direction: column; align-items: flex-start; }
.marge-garance { background: var(--garance); border-color: var(--garance); color: var(--sur-sombre); }
.marge-garance h2 { color: #fff; }
.marge-garance a:not(.btn) { color: var(--sur-sombre); }
.marge-tel { margin: 1rem 0 0; }
.sommaire { border-left: 0; }
.sommaire h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--garance-f); margin-bottom: .8rem; }
.sommaire ol { list-style: none; counter-reset: chap; margin: 0; padding: 0; border-top: 2px solid var(--suie); }
.sommaire li { counter-increment: chap; border-bottom: 1px solid var(--calebasse); }
.sommaire a { display: grid; grid-template-columns: 2rem 1fr; gap: .4rem; padding: .55rem 0; color: var(--texte); text-decoration: none; font-size: .92rem; line-height: 1.35; }
.sommaire a::before { content: counter(chap, upper-alpha); font: 700 .8rem/1.6 var(--titre); color: var(--garance-f); }
.sommaire a:hover { color: var(--garance-f); }
@media (max-width: 62rem) { .lecture-marge { grid-template-columns: minmax(0, 1fr); } .marge { position: static; max-height: none; order: -1; } .lecture-marge .marge > :not(.sommaire) { order: 2; } }

.prose { font-size: 1.1rem; line-height: 1.7; overflow-wrap: break-word; }
.prose::after { content: ""; display: table; clear: both; }
.prose > * + h2 { margin-top: 2.4em; }
.prose > * + h3 { margin-top: 1.9em; }
.prose h2 { font-size: clamp(1.3rem, 2.3vw, 1.65rem); padding-top: .9em; border-top: 2px solid var(--suie); scroll-margin-top: 1.5rem; }
.prose h3 { font: 700 1.2rem/1.3 var(--titre); text-transform: uppercase; color: var(--suie); scroll-margin-top: 1.5rem; display: flex; gap: .6em; align-items: baseline; }
.prose h3::before { content: ""; width: .6em; height: .6em; border-radius: 50%; background: var(--garance); flex: none; transform: translateY(-.05em); }
.prose h4 { font: 600 1rem/1.4 var(--corps); font-variant-caps: all-small-caps; letter-spacing: .05em; margin: 1.6em 0 .5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--garance-f); }
.prose blockquote { margin: 1.5em 0; padding: 0 0 0 1.25rem; border-left: 1px solid var(--garance); font-style: italic; }
.prose figure { margin: 2em 0; }
.prose figure img { border-radius: .9rem; max-height: 34rem; width: auto; border: 3px solid var(--suie); }
.prose figure figcaption, .prose .wp-element-caption { font-size: .88rem; font-style: italic; color: var(--texte-doux); margin-top: .4rem; }
.prose > p:first-of-type { font-size: 1.2rem; line-height: 1.6; }
@media (min-width: 62rem) {
	.prose figure { float: right; width: 16rem; margin: .3em 0 1em 2rem; clear: right; }
	.prose figure img { width: 100%; max-height: none; }
}
.prose-intro { margin-top: clamp(2rem, 5vw, 3rem); max-width: 68ch; }
.prose-cv h2:not(.cv-titre) { counter-increment: chapitre; }
.prose-cv { counter-reset: chapitre; }
.prose-cv h2:not(.cv-titre)::before { content: counter(chapitre, upper-alpha) ". "; color: var(--garance-f); }
.cv-titre { font-size: clamp(1.6rem, 3vw, 2.2rem) !important; text-transform: uppercase; border-top: 0 !important; padding-top: 0 !important; }
.date-cv { font-style: italic; color: var(--texte-doux); }
.article .article-photo { margin: 0 0 2rem; }
.article .article-photo img { border-radius: 1rem; }

/* ---------- Le livre qui s'ouvre (ouvrages) ---------- */
.livre-scene { padding-block: clamp(2.5rem, 6vw, 4.5rem) 1rem; perspective: 2400px; }
.livre { position: relative; display: grid; grid-template-columns: 1fr 1fr; background: var(--calebasse); padding: .9rem; border-radius: .6rem 1.2rem 1.2rem .6rem; max-width: 64rem; margin-inline: auto; transform-style: preserve-3d; }
.livre-page { background: var(--page) var(--peau-img); padding: clamp(1.5rem, 4vw, 3rem); min-height: 24rem; position: relative; }
.livre-verso { border-radius: .4rem 0 0 .4rem; }
.livre::before { content: ""; position: absolute; top: .9rem; bottom: .9rem; left: calc(50% - 1.5px); width: 3px; background: var(--suie); z-index: 1; }
.livre-recto { border-radius: 0 .8rem .8rem 0; }
.livre h2 { font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.livre-rayons { list-style: none; padding: 0; margin: 1.5rem 0 0; border-top: 2px solid var(--suie); }
.livre-rayons li { display: flex; justify-content: space-between; gap: 1rem; padding: .5rem 0; border-bottom: 1px dotted var(--calebasse); font-size: .98rem; }
.livre-rayons span { font-variant-numeric: tabular-nums; color: var(--texte-doux); }
.etapes { list-style: none; counter-reset: etape; padding: 0; margin: 0 0 1.5rem; display: grid; gap: 1.1rem; }
.etapes li { counter-increment: etape; display: grid; grid-template-columns: 2.4rem 1fr; gap: .8rem; align-items: start; font-size: 1.02rem; }
.etapes li::before { content: counter(etape); width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--garance); color: var(--sur-sombre); font: 900 1rem/1 var(--titre); }
.a-confirmer-bloc { font-size: .92rem; border: 1px dashed var(--calebasse); border-radius: .8rem; padding: .8rem 1rem; }
.livre-couverture { position: absolute; top: .9rem; bottom: .9rem; right: .9rem; width: calc(50% - .9rem); background: var(--garance-f); border-radius: 0 .8rem .8rem 0; transform-origin: left center; backface-visibility: hidden; display: grid; align-content: center; justify-items: center; gap: .6rem; padding: 2rem; text-align: center; color: var(--peau); box-shadow: inset .5rem 0 0 var(--suie); transform: rotateY(-180deg); pointer-events: none; }
.livre-couverture-titre { font: 900 clamp(1.1rem, 2.2vw, 1.6rem)/1.15 var(--titre); text-transform: uppercase; }
.livre-couverture-sous { font-style: italic; }
@media (prefers-reduced-motion: no-preference) {
	.livre-couverture { animation: ouvrir 1.8s cubic-bezier(.65, 0, .35, 1) .35s both; }
	@keyframes ouvrir { from { transform: rotateY(0); } to { transform: rotateY(-180deg); } }
}
@media (max-width: 48rem) {
	.livre { grid-template-columns: 1fr; }
	.livre { row-gap: 3px; background-color: var(--suie); }
	.livre::before { display: none; }
	.livre-verso { border-radius: .4rem .4rem 0 0; }
	.livre-recto { border-radius: 0 0 .8rem .8rem; }
	.livre-couverture { display: none; }
	.livre-page { min-height: 0; }
}

/* Catalogue à cocher : un rayon par menu dépliant. */
.catalogue-scene { padding-block: 1.5rem clamp(3rem, 6vw, 5rem); max-width: 64rem; }
.commande { display: grid; gap: .9rem; }
.rayon { background: var(--page) var(--peau-img); border: 2px solid var(--suie); border-radius: 1rem; overflow: hidden; }
.rayon summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; font: 700 1.05rem/1.2 var(--titre); text-transform: uppercase; }
.rayon summary::-webkit-details-marker { display: none; }
.rayon summary .icon { color: var(--garance); width: 1.3rem; height: 1.3rem; transform: rotate(-90deg); transition: transform .2s; }
.rayon[open] summary .icon { transform: none; }
.rayon summary:hover { background: var(--peau); }
.rayon-titre { flex: 1; }
.rayon-nb { font: 400 .85rem/1 var(--corps); font-style: italic; text-transform: none; color: var(--texte-doux); }
.rayon-texte { margin: 0 1.25rem .5rem; color: var(--texte-doux); font-style: italic; }
.titres { list-style: none; margin: 0; padding: 0 1.25rem 1rem; columns: 2 22rem; column-gap: 2rem; }
.titres li { break-inside: avoid; display: grid; grid-template-columns: 1.4rem minmax(0, 1fr) auto; gap: .6rem; align-items: start; padding: .55rem 0; border-bottom: 1px dotted var(--calebasse); }
.titres input { width: 1.2rem; height: 1.2rem; margin: .2rem 0 0; accent-color: var(--garance); cursor: pointer; }
.titres label { cursor: pointer; display: grid; gap: .1rem; }
.titres cite { font-style: italic; font-weight: 600; line-height: 1.35; }
.titres small { font-size: .82rem; color: var(--texte-doux); line-height: 1.35; }
.titres .prix { font-variant-numeric: tabular-nums; font-size: .9rem; white-space: nowrap; color: var(--garance-f); font-weight: 600; }
.titres li:has(input:checked) { background: var(--peau); }
.commande-envoi { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: end; margin-top: .75rem; padding: 1.5rem; background: var(--suie); color: var(--sur-sombre); border-radius: 1.25rem; }
.commande-envoi .field-large { grid-column: 1 / -1; }
.commande-envoi label { color: var(--peau); }
.commande-envoi input { background: var(--calebasse-f) !important; color: var(--sur-sombre) !important; border-color: var(--calebasse) !important; }
.commande-envoi .hint { grid-column: 1 / -1; color: var(--sur-sombre-doux); margin: 0; }
.btn-whatsapp { grid-column: 1 / -1; justify-self: start; }
.btn-whatsapp .icon { width: 1.35em; height: 1.35em; }
@media (max-width: 40rem) { .commande-envoi { grid-template-columns: 1fr; } .titres li { grid-template-columns: 1.4rem minmax(0, 1fr); } .titres .prix { grid-column: 2; } }

/* ---------- Formulaires ---------- */
.form-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(2rem, 5vw, 4rem); padding-block: clamp(2.5rem, 6vw, 4.5rem); align-items: start; }
.boite-form { border: 2px solid var(--suie); border-radius: 1.5rem; padding: clamp(1.25rem, 3vw, 2.25rem); }
.boite-form > h2 { font-size: clamp(1.2rem, 2.2vw, 1.5rem); text-transform: uppercase; }
.faits-colonne { grid-template-columns: 1fr; margin-top: 0; }
.faits-colonne div { border-top-color: var(--suie); }
.faits-colonne dt { color: var(--garance-f); }
.infos-visite > * + * { margin-top: 1.75rem; }
.mg-form { display: grid; gap: 1.1rem; margin-top: 1rem; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.field { display: grid; gap: .35rem; align-content: start; }
.field label { font: 700 .82rem/1.3 var(--titre); }
.req { color: var(--garance); }
.field input, .field select, .field textarea {
	width: 100%; font: inherit; font-size: 1rem; color: var(--texte);
	background: #f8ecd6; border: 2px solid var(--calebasse); border-radius: .7rem; padding: .7rem .8rem;
	transition: border-color .15s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--suie); box-shadow: 0 0 0 3px var(--garance); }
.has-error input, .has-error select, .has-error textarea { border-color: var(--garance); }
.hint { font-size: .88rem; color: var(--texte-doux); line-height: 1.45; }
.error { font-size: .88rem; color: var(--garance-f); font-weight: 600; }
.consent { display: flex; gap: .7rem; align-items: flex-start; font-size: .92rem; line-height: 1.45; }
.consent input { width: 1.2rem; height: 1.2rem; margin-top: .15rem; accent-color: var(--garance); flex: none; }
.trap { position: absolute; left: -9999px; }
.notice { background: var(--suie); color: var(--sur-sombre); border-radius: 1rem; padding: 1.1rem 1.3rem; margin-bottom: 1.25rem; }
.notice h2 { font-size: 1.05rem; color: var(--peau); margin-bottom: .4em; }
.notice p { margin: 0; }
.canaux { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: 1rem; }
.canaux li { display: grid; grid-template-columns: auto 1fr; gap: .15rem .8rem; align-items: start; }
.canaux .icon { grid-row: span 2; width: 1.4rem; height: 1.4rem; color: var(--garance-f); margin-top: .15rem; }
.c-titre { font: 700 .78rem/1.3 var(--titre); text-transform: uppercase; letter-spacing: .05em; }
.aide { font-size: .95rem; color: var(--texte-doux); }
@media (max-width: 56rem) { .form-grille { grid-template-columns: 1fr; } }
@media (max-width: 34rem) { .field-row { grid-template-columns: 1fr; } }

/* ---------- Actualités ---------- */
.actus-liste { margin-top: 0; }
.pager .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pager .page-numbers { padding: .5em .9em; border-radius: 999px; border: 2px solid var(--suie); text-decoration: none; color: var(--suie); font: 700 .85rem/1 var(--titre); }
.pager .current { background: var(--suie); color: var(--sur-sombre); }

/* ---------- Pied de page ---------- */
.site-footer { background: var(--suie); color: var(--sur-sombre-doux); padding-top: clamp(3rem, 6vw, 4.5rem); font-size: .95rem; }
.footer-grille { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; }
.site-footer h2 { font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; color: var(--peau); margin-bottom: 1em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: var(--sur-sombre); }
.site-footer nav .nav-list, .site-footer nav ul { display: grid; gap: .55rem; }
.footer-logo { width: 4.5rem; height: 4.5rem; object-fit: cover; border-radius: 50%; border: 3px solid var(--calebasse); margin-bottom: 1rem; }
.footer-appel { font: 700 1.05rem/1.35 var(--titre); color: var(--sur-sombre); max-width: 22rem; text-transform: uppercase; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .icon { margin-top: .2em; color: var(--peau); }
.footer-bas { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; border-top: 1px solid var(--calebasse); padding-block: 1.25rem; font-size: .85rem; }
.footer-bas p { margin: 0; }
@media (max-width: 56rem) { .footer-grille { grid-template-columns: 1fr 1fr; } .footer-musee { grid-column: 1 / -1; } }
@media (max-width: 36rem) { .footer-grille { grid-template-columns: 1fr; } }

/* ---------- Vie et mouvement ---------- */
/* Les photos se succèdent dans la peau du grand tambour : fondu lent, 4 images, 24 s. */
.bendre-defile img { position: absolute; inset: 0; }
.bendre-defile img:nth-child(n+2) { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.bendre-defile img { animation: defile 24s linear infinite; }
	.bendre-defile img:nth-child(1) { opacity: 1; animation-delay: 0s; }
	.bendre-defile img:nth-child(2) { animation-delay: 6s; }
	.bendre-defile img:nth-child(3) { animation-delay: 12s; }
	.bendre-defile img:nth-child(4) { animation-delay: 18s; }
	@keyframes defile {
		0% { opacity: 0; transform: scale(1.12); }
		6% { opacity: 1; }
		25% { opacity: 1; }
		31% { opacity: 0; transform: scale(1); }
		100% { opacity: 0; transform: scale(1); }
	}
	.bendre-defile img:nth-child(1) { animation-name: defile-premiere; }
	@keyframes defile-premiere {
		0% { opacity: 1; transform: scale(1.06); }
		25% { opacity: 1; }
		31% { opacity: 0; transform: scale(1); }
		94% { opacity: 0; transform: scale(1.12); }
		100% { opacity: 1; transform: scale(1.06); }
	}
	/* L'anneau d'appel tourne lentement, comme la main qui fait le tour du tambour. */
	.bendre-appel .bendre-trace { animation: tour 90s linear 1.6s infinite; }
	@keyframes tour { to { transform: rotate(360deg); } }
	/* Les frappes battent l'une après l'autre. */
	.frappes a::before { animation: battement 4s ease-out infinite; }
	.frappes li:nth-child(2) a::before { animation-delay: .4s; }
	.frappes li:nth-child(3) a::before { animation-delay: .8s; }
	.frappes li:nth-child(4) a::before { animation-delay: 1.2s; }
	.frappes li:nth-child(5) a::before { animation-delay: 1.6s; }
	@keyframes battement { 0%, 12%, 100% { transform: scale(1); } 5% { transform: scale(1.45); background: var(--peau); } }
	/* Le seuil : les cercles des rites palpitent doucement, comme une flamme. */
	.rite-ic { animation: veille 5s ease-in-out infinite; }
	.rites li:nth-child(2) .rite-ic { animation-delay: 1.6s; }
	.rites li:nth-child(3) .rite-ic { animation-delay: 3.2s; }
	@keyframes veille { 0%, 100% { box-shadow: 0 0 0 .3rem var(--calebasse), 0 0 0 .5rem var(--suie), 0 0 0 .62rem var(--garance); } 50% { box-shadow: 0 0 0 .3rem var(--calebasse), 0 0 0 .5rem var(--suie), 0 0 0 .9rem var(--garance-f); } }
}
/* Apparitions au défilement (navigateurs récents ; ailleurs, tout est visible d'emblée). */
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.section > .wrap > h2, .inventaire li, .mesure, .vie-grille figure, .rites li, .qualites li, .rayon, .prose figure, .livre-rayons li {
			animation: monte linear both;
			animation-timeline: view();
			animation-range: entry 0% entry 55%;
		}
		@keyframes monte { from { opacity: 0; transform: translateY(2.2rem); } to { opacity: 1; transform: none; } }
		.mesure-image img { animation: devoile linear both; animation-timeline: view(); animation-range: entry 0% cover 35%; }
		@keyframes devoile { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(75% at 50% 50%); } }
	}
}

/* Le bouton du bendré : un petit tambour qui bat quand le son joue. */
.son-bendre { position: fixed; right: 1rem; bottom: 1rem; z-index: 50; display: inline-flex; align-items: center; gap: .7rem; padding: .45rem 1.1rem .45rem .45rem; border-radius: 999px; border: 2px solid var(--peau); background: var(--suie); color: var(--sur-sombre); font: 700 .8rem/1 var(--titre); text-transform: uppercase; cursor: pointer; }
.son-bendre-peau { width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--peau) var(--peau-img); box-shadow: 0 0 0 .3rem var(--calebasse); position: relative; }
.son-bendre-peau::after { content: ""; position: absolute; inset: 34%; border-radius: 50%; background: var(--garance); }
.son-bendre:hover { background: var(--calebasse-f); }
@media (prefers-reduced-motion: no-preference) {
	.son-bendre.joue .son-bendre-peau { animation: tam .55s ease-out infinite; }
	@keyframes tam { 0%, 100% { transform: scale(1); } 20% { transform: scale(.88); } }
}
@media (max-width: 40rem) { .son-bendre-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .son-bendre { padding: .45rem; } }

/* ---------- Archives ---------- */
.archive { margin: 0; }
.archive img { width: 100%; height: auto; border: .5rem solid var(--page); outline: 2px solid var(--suie); border-radius: .2rem; filter: sepia(.35) contrast(1.05); }
.archive figcaption { font-size: .9rem; font-style: italic; color: var(--texte-doux); margin-top: .6rem; }
.archives-ouverture { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.archives-grille { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.archives-texte h2 { text-transform: uppercase; }
.archives-texte p { font-size: 1.1rem; max-width: 40rem; }
.realisations-liste { list-style: none; margin: 2rem 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(20rem, 1fr)); gap: 1.75rem 2.5rem; }
.realisations-liste li { display: grid; grid-template-columns: 3.25rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.realisations-liste strong { display: block; font: 700 .95rem/1.2 var(--titre); text-transform: uppercase; margin-bottom: .3rem; }
.realisations-liste span { color: var(--texte-doux); line-height: 1.5; }
.planche { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.75rem; margin-top: 2rem; align-items: start; }
.planche .archive-large { grid-column: 1 / -1; }
.planche .archive:nth-child(2) { grid-column: span 3; }
.planche .archive-haute:nth-child(3) { grid-column: 4 / span 1; transform: rotate(-1.5deg); }
.planche .archive-haute:nth-child(4) { grid-column: 5 / span 1; transform: rotate(1.2deg); }
.planche .archive-article { grid-column: 6 / span 1; }
@media (min-width: 62rem) { .planche .archive-article { grid-column: 4 / span 3; grid-row: 3; } .planche .archive:nth-child(2) { grid-row: 2 / span 2; } .planche .archive-haute:nth-child(3) { grid-row: 2; grid-column: 4 / span 1; } .planche .archive-haute:nth-child(4) { grid-row: 2; grid-column: 5 / span 2; max-width: 75%; } }
@media (max-width: 62rem) { .planche { grid-template-columns: 1fr 1fr; } .planche .archive, .planche .archive-haute, .planche .archive-article { grid-column: auto !important; grid-row: auto !important; transform: none; } .planche .archive-large, .planche .archive:nth-child(2), .planche .archive-article { grid-column: 1 / -1 !important; } }
@media (max-width: 52rem) { .archives-grille { grid-template-columns: 1fr; } }

/* La bande d'archives de l'accueil : une pellicule de tirages anciens qui défile. */
.archives-bande { background: var(--calebasse-f); color: var(--sur-sombre); padding-block: var(--section); overflow: hidden; }
.archives-bande-grille { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.archives-bande h2 { color: var(--peau); text-transform: uppercase; }
.archives-bande p { font-size: 1.1rem; color: var(--sur-sombre-doux); }
.pellicule { display: flex; gap: 1.25rem; align-items: center; }
.pellicule figure { margin: 0; flex: 0 0 auto; width: clamp(11rem, 18vw, 16rem); }
.pellicule figure:nth-child(odd) { transform: rotate(-2deg); }
.pellicule figure:nth-child(even) { transform: rotate(1.6deg) translateY(1rem); }
.pellicule img { width: 100%; height: 13rem; object-fit: cover; border: .45rem solid var(--page); filter: sepia(.4) contrast(1.05); }
@media (prefers-reduced-motion: no-preference) {
	.pellicule { animation: pellicule 40s linear infinite alternate; }
	@keyframes pellicule { from { transform: translateX(0); } to { transform: translateX(-30%); } }
}
@media (max-width: 52rem) { .archives-bande-grille { grid-template-columns: 1fr; } .pellicule figure { width: 12rem; } }

/* Couverture d'origine posée sur la page de gauche du livre. */
.livre-couv-origine { display: grid; grid-template-columns: 6.5rem 1fr; gap: 1rem; align-items: end; margin: 1.25rem 0 0; }
.livre-couv-origine img { width: 100%; border: 2px solid var(--suie); transform: rotate(-3deg); }
.livre-couv-origine figcaption { font-size: .88rem; font-style: italic; color: var(--texte-doux); }

/* ---------- Matière : la calebasse gravée sous les fonds bruns ---------- */
:root { --calebasse-img: url("../img/calebasse.svg"); }
.appel, .tete-page, .archives-bande { background-color: var(--calebasse-f); background-image: var(--calebasse-img); background-size: 320px; }
.site-footer { background-color: var(--suie); }
@media (prefers-reduced-motion: no-preference) {
	.appel { animation: derive 120s linear infinite; }
	@keyframes derive { to { background-position: 320px 160px; } }
}

/* ---------- Ce que garde le musée : cinq vitrines, chaque objet posé sur une peau de tambour ---------- */
.vitrines { list-style: none; margin: 2.5rem 0 1.25rem; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 2.5rem 1.75rem; }
.vitrine { display: grid; justify-items: center; text-align: center; align-content: start; }
.vitrine-peau { width: min(100%, 10.5rem); aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--peau) var(--peau-img); box-shadow: 0 0 0 .5rem var(--calebasse), 0 0 0 .75rem var(--suie); outline: 2px dashed var(--suie); outline-offset: .95rem; margin: 1rem 0 1.75rem; }
.vitrine-peau img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.16, 1, .3, 1); }
.vitrine-peau .icon { width: 72%; height: auto; aspect-ratio: 2; stroke-width: 1.4; color: var(--suie); }
.vitrine-nombre { color: var(--garance-f); }
.vitrine h3 { font-size: 1rem; text-transform: uppercase; margin: 0 0 .4rem; color: var(--suie); }
.vitrine-detail { font-size: .95rem; line-height: 1.45; color: var(--texte-doux); max-width: 14rem; margin: 0; }
@media (max-width: 64rem) { .vitrines { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 40rem) { .vitrines { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 1rem; } .vitrine-peau { width: 8rem; } }
@supports (animation-timeline: view()) {
	@media (prefers-reduced-motion: no-preference) {
		.vitrine { animation: monte linear both; animation-timeline: view(); animation-range: entry 0% entry 55%; }
	}
}

/* ---------- Corrections de la relecture ---------- */
/* Vitrines : le masque domine, les autres objets battent en décalé, comme des frappes. */
.vitrines { align-items: start; }
.vitrine:first-child .vitrine-peau { width: min(100%, 13rem); }
@media (min-width: 64.01rem) { .vitrine:nth-child(even) { margin-top: 3rem; } }
/* Bande d'archives : la pellicule reste dans sa colonne sur téléphone. */
.archives-bande-grille > * { min-width: 0; }
@media (max-width: 52rem) { .archives-bande-grille { grid-template-columns: minmax(0, 1fr); } .pellicule { overflow-x: auto; padding-block: 1rem; animation: none; } }
/* Le bouton du son ne recouvre plus les crédits. */
.footer-bas { padding-bottom: 5rem; }
@media (max-width: 40rem) { .footer-bas { padding-bottom: 4.5rem; } }
/* Le livre : titres de pages à l'échelle, rayons sur la page de droite. */
.livre-titre-droite { margin-bottom: 1.1rem; }
.livre-sous { font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; color: var(--garance-f); margin: 1.5rem 0 .4rem; }
.livre-recto .livre-rayons { margin-top: 0; }
.livre-recto .a-confirmer-bloc { margin-top: 1.25rem; }
/* Tambour de la rénovation : la peau porte l'entrée du musée. */
.bendre-renov .bendre-peau img { filter: sepia(.25); }
/* Actualités de l'accueil : un titre, et une actualité seule à l'horizontale. */
.actus-titre { font-size: 1.1rem; text-transform: uppercase; margin: 3rem 0 0; }
.actus-accueil { margin-top: 1.25rem; }
.actus-accueil .actu:only-child { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 1.75rem; align-items: center; grid-column: 1 / -1; }
@media (max-width: 40rem) { .actus-accueil .actu:only-child { grid-template-columns: 1fr; } }
/* Song-Taaba : un registre ligné plutôt qu'une grille de cartes. */
.registre { list-style: none; margin: 2rem 0 1.25rem; padding: 0; border-top: 2px solid var(--suie); max-width: 60rem; }
.registre li { display: grid; grid-template-columns: 2.25rem 16rem minmax(0, 1fr); gap: 1rem; align-items: baseline; padding: .9rem 0; border-bottom: 1px solid var(--calebasse); }
.registre-ic { color: var(--garance-f); align-self: center; }
.registre-ic .icon { width: 1.6rem; height: 1.6rem; }
.registre strong { font: 700 .95rem/1.25 var(--titre); text-transform: uppercase; }
.registre span:last-child { color: var(--texte-doux); line-height: 1.5; }
@media (max-width: 44rem) { .registre li { grid-template-columns: 2.25rem minmax(0, 1fr); } .registre li > span:last-child { grid-column: 2; } }
/* Les cordes lacées ferment aussi les sections sombres et le pied de page. */
.prescriptions, .renovation, .archives-bande, .site-footer { position: relative; }
.prescriptions::after, .archives-bande::after, .renovation::after, .site-footer::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 28px; background: url("../img/cordes-clair.svg") repeat-x center / auto 28px; opacity: .8; pointer-events: none; }
.site-footer::after { background-image: url("../img/cordes.svg"); }
/* Le seuil : la nuit de la Case noire porte la gravure de la calebasse, à peine visible. */
.prescriptions::before { background: var(--calebasse-img) 0 0 / 320px; opacity: .22; mix-blend-mode: screen; }
.seuil-parole p { font-size: clamp(1.25rem, 2.1vw, 1.7rem); }

/* Livre : chaque page tient sa hauteur, la couverture d'origine en grand à gauche. */
.livre-page { display: flex; flex-direction: column; }
.livre-verso .livre-couv-origine { grid-template-columns: 1fr; justify-items: center; text-align: center; margin: 1.25rem 0; }
.livre-verso .livre-couv-origine img { width: min(13rem, 70%); }
.livre-verso .a-confirmer-bloc { margin-top: auto; }
.livre-recto .a-confirmer-bloc { display: none; }
@media (max-width: 40rem) {
	.vitrine:first-child .vitrine-peau, .vitrine-peau { width: min(100% - 1.5rem, 8rem); outline-offset: .6rem; }
}

/* ---------- Le musée ---------- */
.manifeste { background: var(--garance) var(--calebasse-img); background-blend-mode: soft-light; color: var(--sur-sombre); padding-block: clamp(3rem, 7vw, 5.5rem); position: relative; }
.manifeste-appel { font: 900 clamp(1.8rem, 4.4vw, 3.6rem)/1.05 var(--titre); text-transform: uppercase; max-width: 22ch; margin: 0 0 1.25rem; color: #fff; text-wrap: balance; }
.manifeste-signe { font-style: italic; color: var(--sur-sombre); margin: 0; }
.trois-yeux-grille { display: grid; grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.yeux { position: relative; aspect-ratio: 1; }
.yeux span { position: absolute; width: 54%; aspect-ratio: 1; border-radius: 50%; background: var(--peau) var(--peau-img); box-shadow: 0 0 0 .5rem var(--calebasse), 0 0 0 .75rem var(--suie); display: grid; place-items: center; }
.yeux span::after { content: ""; width: 34%; aspect-ratio: 1; border-radius: 50%; background: var(--suie); box-shadow: 0 0 0 .4rem var(--garance); }
.yeux span:nth-child(1) { left: 0; top: 34%; }
.yeux span:nth-child(2) { right: 0; top: 34%; }
.yeux span:nth-child(3) { left: 23%; top: 0; }
@media (prefers-reduced-motion: no-preference) {
	.yeux span::after { animation: regard 7s ease-in-out infinite; }
	.yeux span:nth-child(2)::after { animation-delay: .3s; }
	.yeux span:nth-child(3)::after { animation-delay: .6s; }
	@keyframes regard { 0%, 40%, 100% { transform: translate(0, 0); } 50%, 60% { transform: translate(18%, -10%); } 70%, 80% { transform: translate(-18%, 6%); } }
}
.pieces { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 2.5rem; }
.piece { display: grid; grid-template-columns: 11rem minmax(0, 1fr); gap: 2.5rem; align-items: center; max-width: 58rem; }
.piece:nth-child(even) { grid-template-columns: minmax(0, 1fr) 11rem; margin-left: auto; text-align: right; }
.piece:nth-child(even) .piece-peau { order: 2; }
.piece-peau { display: block; width: 11rem; aspect-ratio: 1; border-radius: 50%; overflow: hidden; background: var(--peau) var(--peau-img); box-shadow: 0 0 0 .5rem var(--calebasse), 0 0 0 .75rem var(--suie); outline: 2px dashed var(--suie); outline-offset: .95rem; }
.piece-peau img { width: 100%; height: 100%; object-fit: cover; }
.piece h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); text-transform: uppercase; margin-bottom: .4rem; }
.piece h3 a { color: var(--suie); text-decoration: none; }
.piece h3 a:hover { color: var(--garance-f); }
.piece p { font-size: 1.08rem; color: var(--texte-doux); margin: 0; }
.presente-plus { max-width: 46rem; margin: 3rem auto 0; text-align: center; font-size: 1.05rem; font-style: italic; }
@media (max-width: 44rem) {
	.trois-yeux-grille { grid-template-columns: 1fr; } .yeux { width: 12rem; }
	.piece, .piece:nth-child(even) { grid-template-columns: 7rem minmax(0, 1fr); text-align: left; margin-left: 0; gap: 1.5rem; }
	.piece:nth-child(even) .piece-peau { order: 0; }
	.piece-peau { width: 7rem; outline-offset: .7rem; }
}
.route { background: var(--calebasse-f) var(--calebasse-img); background-size: 320px; color: var(--sur-sombre); padding-block: var(--section); position: relative; }
.route::after { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 28px; background: url("../img/cordes-clair.svg") repeat-x center / auto 28px; opacity: .8; }
.route h2 { color: var(--peau); text-transform: uppercase; }
.route p { font-size: 1.15rem; color: var(--sur-sombre-doux); }
.route-grille { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 3rem; align-items: center; }
.trajet { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 1rem; }
.trajet-ville { font: 700 .95rem/1 var(--titre); text-transform: uppercase; display: inline-flex; align-items: center; gap: .6em; }
.trajet-ville::before { content: ""; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--peau); box-shadow: 0 0 0 .25rem var(--calebasse); }
.trajet-arrivee::before { background: var(--garance); width: 1.6rem; height: 1.6rem; }
.trajet-corde { position: relative; height: 28px; background: url("../img/cordes-clair.svg") repeat-x center / auto 28px; }
.trajet-corde span { position: absolute; left: 50%; top: 100%; transform: translate(-50%, .6rem); white-space: nowrap; font-style: italic; color: var(--sur-sombre-doux); }
@media (max-width: 52rem) { .route-grille { grid-template-columns: 1fr; } .trajet { grid-template-columns: 1fr; justify-items: start; } .trajet-corde { width: 100%; margin: .5rem 0 2rem; } }
