/* =====================================================================
   Fonds documentaire Alain Ancel — feuille de style
   Palette : papier ivoire, encre, rouge sang-de-bœuf, bleu ardoise
   ===================================================================== */

:root {
  --papier: #f7f4ee;
  --papier-2: #efe9dd;
  --papier-3: #e6dfd0;
  --encre: #1d1f22;
  --encre-2: #4a4c50;
  --encre-3: #6f7074;
  --filet: #d6ccb9;
  --rouge: #8a2420;
  --rouge-fonce: #6d1a17;
  --ardoise: #2d4a53;
  --blanc: #fffdf9;

  --f-titre: "EB Garamond", "Garamond", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-texte: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --f-ui: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;

  --max: 1180px;
  --gout: clamp(16px, 4vw, 40px);
  --rayon: 3px;
  --ombre: 0 1px 2px rgba(40, 30, 10, .06), 0 6px 20px rgba(40, 30, 10, .07);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--papier);
  color: var(--encre);
  font: 400 1.0625rem/1.65 var(--f-texte);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: var(--rouge); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rouge-fonce); }
h1, h2, h3, h4 { font-family: var(--f-titre); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; color: var(--encre); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--rouge); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gout); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--encre); color: var(--blanc); padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- Boutons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font: 500 .95rem/1 var(--f-ui); letter-spacing: .02em;
  padding: .85em 1.3em; border: 1px solid var(--encre); border-radius: var(--rayon);
  background: transparent; color: var(--encre); text-decoration: none; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { background: var(--encre); color: var(--blanc); }
.btn--plein { background: var(--rouge); border-color: var(--rouge); color: var(--blanc); }
.btn--plein:hover { background: var(--rouge-fonce); border-color: var(--rouge-fonce); color: var(--blanc); }
.btn--petit { padding: .6em 1em; font-size: .875rem; }

/* ---------- Barre du haut ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--papier) 92%, transparent);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--filet);
}
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--encre); }
.brand:hover { color: var(--encre); }
.brand__mark {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--encre); border-radius: 50%;
  font: 500 1rem/1 var(--f-titre); letter-spacing: .06em;
  box-shadow: inset 0 0 0 3px var(--papier), inset 0 0 0 4px var(--encre);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt strong { font: 600 1.15rem/1.1 var(--f-titre); }
.brand__txt small { font: 400 .78rem/1.2 var(--f-ui); color: var(--encre-3); letter-spacing: .03em; }
.nav { display: flex; gap: 4px; }
.nav a {
  font: 500 .92rem/1 var(--f-ui); color: var(--encre-2); text-decoration: none;
  padding: 10px 12px; border-radius: var(--rayon);
}
.nav a:hover { color: var(--rouge); background: var(--papier-2); }
.menu-btn { display: none; }

/* ---------- En-tête ---------- */
.hero { padding: clamp(40px, 7vw, 88px) 0 0; border-bottom: 1px solid var(--filet); }
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.eyebrow { font: 600 .78rem/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--rouge); margin-bottom: 1.2em; }
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); line-height: 1.02; letter-spacing: -.01em; margin-bottom: .45em; }
.hero h1 em { font-style: italic; color: var(--rouge); }
.lede { font-size: clamp(1.08rem, 1.6vw, 1.22rem); color: var(--encre-2); max-width: 36em; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }
.hero__ill { margin: 0; color: var(--ardoise); }
.gravure { width: 100%; height: auto; }
.hero__ill figcaption { font: italic .85rem/1.4 var(--f-texte); color: var(--encre-3); text-align: right; margin-top: 6px; }

.chiffres {
  display: grid; grid-template-columns: repeat(4, 1fr);
  margin: clamp(36px, 5vw, 64px) 0 0; border-top: 1px solid var(--filet);
}
.chiffres > div { padding: 22px 20px 26px; border-left: 1px solid var(--filet); }
.chiffres > div:first-child { border-left: 0; padding-left: 0; }
.chiffres dt { font: 500 .75rem/1.3 var(--f-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--encre-3); }
.chiffres dd { margin: 6px 0 0; font: 500 clamp(1.5rem, 2.6vw, 2.1rem)/1.1 var(--f-titre); }

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--teinte { background: var(--papier-2); border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet); }
.section__tete { text-align: center; margin-bottom: clamp(28px, 4vw, 48px); }
.section__tete .num { font: italic 400 1.1rem/1 var(--f-titre); color: var(--rouge); margin-bottom: .4em; }
.section__tete h2 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: .3em; }
.fleuron { width: 120px; height: 16px; color: var(--encre-3); }
.intro { text-align: center; max-width: 42em; margin: -.5em auto 2.5em; color: var(--encre-2); }
.sous-titre { text-align: center; font-size: 1.7rem; margin: 2.4em 0 1.2em; }

.deux-col { display: grid; grid-template-columns: 1.6fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: start; }
.deux-col--egal { grid-template-columns: 1fr 1fr; margin-top: clamp(28px, 4vw, 48px); }
.prose { max-width: 40em; }
.prose h3 { margin-top: 1.6em; }
.lettrine::first-letter {
  float: left; font: 500 4.1em/.8 var(--f-titre); color: var(--rouge);
  padding: .08em .1em 0 0;
}
.puces { list-style: none; padding: 0; margin: 0; }
.puces li { padding: .45em 0 .45em 1.6em; border-bottom: 1px dotted var(--filet); position: relative; }
.puces li::before { content: "§"; position: absolute; left: 0; color: var(--rouge); font-family: var(--f-titre); }

.encart { background: var(--blanc); border: 1px solid var(--filet); padding: 26px 28px; border-radius: var(--rayon); box-shadow: var(--ombre); }
.encart--clair { box-shadow: none; }
.encart h3 { font-size: 1.3rem; }
.types { list-style: none; padding: 0; margin: 0; columns: 1; }
.types li { font: 400 .98rem/1.3 var(--f-ui); padding: 9px 0; border-bottom: 1px solid var(--papier-3); display: flex; align-items: center; gap: 10px; }
.types li::before { content: ""; width: 7px; height: 7px; border: 1px solid var(--rouge); transform: rotate(45deg); flex: none; }
.types li:last-child { border-bottom: 0; }

.citation {
  margin: clamp(40px, 6vw, 72px) auto 0; max-width: 46em; text-align: center;
  padding: 28px 20px; border-top: 1px solid var(--filet); border-bottom: 1px solid var(--filet);
}
.citation p { font: italic 400 clamp(1.25rem, 2.2vw, 1.55rem)/1.45 var(--f-titre); color: var(--encre); margin-bottom: .6em; }
.citation cite { font: 500 .8rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--encre-3); font-style: normal; }

.principes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--filet); background: var(--blanc); border-radius: var(--rayon); }
.principes article { padding: 24px 22px; border-left: 1px solid var(--filet); }
.principes article:first-child { border-left: 0; }
.principes h4 { color: var(--rouge); font-size: 1.2rem; }
.principes p { font-size: .96rem; color: var(--encre-2); margin: 0; }

/* ---------- Missions ---------- */
.missions { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--filet); border: 1px solid var(--filet); }
.missions li { background: var(--papier); padding: 28px 26px 26px; }
.missions svg { width: 40px; height: 40px; color: var(--ardoise); margin-bottom: 12px; }
.missions h3 { font-size: 1.35rem; }
.missions p { font-size: .97rem; color: var(--encre-2); margin: 0; }

/* ---------- Consulter ---------- */
.etapes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: e; }
.etape { position: relative; padding: 26px 24px 22px 24px; border-top: 2px solid var(--encre); }
.etape__n { font: italic 500 2.6rem/1 var(--f-titre); color: var(--rouge); display: block; margin-bottom: 8px; }
.etape p { color: var(--encre-2); margin: 0; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tags span { font: 500 .85rem/1 var(--f-ui); padding: 8px 12px; border: 1px solid var(--filet); border-radius: 99px; background: var(--blanc); color: var(--encre-2); }
.note { font-size: .92rem; color: var(--encre-3); font-style: italic; margin-top: 1em; }
.regles { margin: 0; padding-left: 1.2em; }
.regles li { margin-bottom: .55em; color: var(--encre-2); }
.regles li::marker { color: var(--rouge); }
.citer {
  margin-top: clamp(32px, 5vw, 56px); padding: 24px 28px; background: var(--papier-2);
  border-left: 3px solid var(--rouge); display: grid; grid-template-columns: 1fr 1.5fr; gap: 24px; align-items: center;
}
.citer h3 { margin-bottom: .3em; }
.citer p { margin: 0; color: var(--encre-2); }
.citer__ref { display: flex; gap: 16px; align-items: center; justify-content: space-between; font-style: italic; color: var(--encre) !important; }

/* ---------- Catalogue ---------- */
.section--catalogue { background: var(--blanc); border-top: 1px solid var(--filet); }
.avis { background: #fbf3df; border: 1px solid #e3cf9c; color: #5a4512; padding: 12px 16px; border-radius: var(--rayon); font: .92rem/1.45 var(--f-ui); margin-bottom: 24px; }
.cat { display: grid; grid-template-columns: 270px 1fr; gap: 36px; align-items: start; }
.cat__rubriques { position: sticky; top: 90px; max-height: calc(100vh - 110px); overflow: auto; padding-right: 6px; }
.cat__rubriques h3 { font: 600 .78rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: .14em; color: var(--encre-3); margin-bottom: 14px; }
.arbre, .arbre ul { list-style: none; margin: 0; padding: 0; }
.arbre ul { margin: 2px 0 6px 12px; border-left: 1px solid var(--filet); padding-left: 6px; }
.arbre button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; justify-content: space-between; gap: 10px; width: 100%;
  font: 400 .95rem/1.3 var(--f-ui); color: var(--encre-2); padding: 7px 10px; border-radius: var(--rayon);
}
.arbre button:hover { background: var(--papier-2); color: var(--encre); }
.arbre button:focus-visible { outline: 2px solid var(--rouge); }
.arbre button[aria-current="true"] { background: var(--encre); color: var(--blanc); }
.arbre button[aria-current="true"] .compte { color: var(--papier-3); }
.arbre > li > button { font-weight: 600; color: var(--encre); }
.rubrique-liste {
  display: none; width: 100%; font: 500 1rem var(--f-ui); padding: 12px 10px; color: var(--encre);
  border: 1px solid var(--encre); border-radius: var(--rayon); background: var(--blanc);
}
.compte { font-size: .82rem; color: var(--encre-3); font-variant-numeric: tabular-nums; }
.arbre__charge { color: var(--encre-3); font: italic .95rem var(--f-texte); }

.cat__outils { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--filet); }
.champ-recherche { flex: 1 1 280px; position: relative; display: block; }
.champ-recherche svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: var(--encre-3); }
.champ-recherche input {
  width: 100%; font: 400 1rem/1 var(--f-ui); padding: 13px 14px 13px 42px;
  border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); color: var(--encre);
}
.champ-recherche input:focus { outline: 2px solid var(--rouge); outline-offset: -1px; background: var(--blanc); }
.case { order: 9; flex-basis: 100%; display: flex; align-items: center; gap: 8px; font: 400 .9rem/1.3 var(--f-ui); color: var(--encre-2); cursor: pointer; margin-top: -2px; }
.case input { width: 16px; height: 16px; accent-color: var(--rouge); margin: 0; }
.tri { display: flex; align-items: center; gap: 8px; font: 500 .85rem var(--f-ui); color: var(--encre-3); }
.tri select { font: 400 .95rem var(--f-ui); padding: 11px 10px; border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--papier); color: var(--encre); }
.vue { display: flex; border: 1px solid var(--filet); border-radius: var(--rayon); overflow: hidden; }
.vue button { all: unset; cursor: pointer; padding: 10px 12px; display: grid; place-items: center; color: var(--encre-3); }
.vue button svg { width: 18px; height: 18px; }
.vue button[aria-pressed="true"] { background: var(--encre); color: var(--blanc); }
.vue button:focus-visible { outline: 2px solid var(--rouge); outline-offset: -2px; }
.cat__etat { font: 400 .9rem/1.4 var(--f-ui); color: var(--encre-3); margin: 14px 0 18px; display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.cat__etat strong { color: var(--encre); font-weight: 600; }
.cat__etat .effacer { all: unset; cursor: pointer; color: var(--rouge); text-decoration: underline; text-underline-offset: 3px; }

.resultats { list-style: none; margin: 0; padding: 0; }
.resultats--grille { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 28px 22px; }
.notice { all: unset; box-sizing: border-box; display: block; cursor: pointer; width: 100%; }
.notice:focus-visible { outline: 2px solid var(--rouge); outline-offset: 4px; }
.notice__img {
  aspect-ratio: 2 / 3; background: var(--papier-2); border-radius: 2px; overflow: hidden;
  box-shadow: 0 1px 1px rgba(0,0,0,.08), 0 6px 14px -6px rgba(40,30,10,.35);
  transition: transform .18s ease, box-shadow .18s ease;
}
.notice__img img { width: 100%; height: 100%; object-fit: cover; }
.notice:hover .notice__img { transform: translateY(-3px); box-shadow: 0 2px 2px rgba(0,0,0,.08), 0 14px 22px -8px rgba(40,30,10,.4); }
.notice__titre { font: 500 1.02rem/1.25 var(--f-titre); margin: 12px 0 3px; color: var(--encre); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.notice__auteur { font: 400 .85rem/1.3 var(--f-ui); color: var(--encre-2); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notice__annee { font: 400 .8rem/1.3 var(--f-ui); color: var(--encre-3); margin: 2px 0 0; }

/* Couverture générée quand il n'y a pas de photo */
.couv {
  width: 100%; height: 100%; display: flex; flex-direction: column; justify-content: space-between;
  padding: 14% 11%; color: var(--blanc); background: var(--c, var(--ardoise));
  position: relative;
}
.couv::before { content: ""; position: absolute; inset: 6%; border: 1px solid rgba(255,255,255,.35); pointer-events: none; }
.couv__t { font: 500 1.05rem/1.18 var(--f-titre); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.couv__a { font: 400 .72rem/1.3 var(--f-ui); letter-spacing: .06em; text-transform: uppercase; opacity: .85; }

.resultats--liste { border-top: 1px solid var(--filet); }
.resultats--liste li { border-bottom: 1px solid var(--filet); }
.resultats--liste .notice { display: grid; grid-template-columns: 56px 1fr auto; gap: 18px; align-items: center; padding: 12px 8px; }
.resultats--liste .notice:hover { background: var(--papier); }
.resultats--liste .notice__img { aspect-ratio: 2/3; box-shadow: 0 1px 3px rgba(0,0,0,.18); }
.resultats--liste .notice:hover .notice__img { transform: none; }
.resultats--liste .couv { padding: 8%; }
.resultats--liste .couv__t { font-size: .5rem; -webkit-line-clamp: 4; }
.resultats--liste .couv__a { display: none; }
.resultats--liste .notice__titre { margin: 0 0 2px; -webkit-line-clamp: 2; }
.resultats--liste .notice__rub { font: 400 .8rem/1.3 var(--f-ui); color: var(--encre-3); text-align: right; max-width: 220px; }
.resultats--grille .notice__rub { display: none; }

.vide { text-align: center; padding: 48px 16px; color: var(--encre-3); font-style: italic; }

.pagination { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 40px; }
.pagination button {
  all: unset; cursor: pointer; min-width: 38px; height: 38px; display: grid; place-items: center; padding: 0 8px; box-sizing: border-box;
  font: 500 .92rem var(--f-ui); color: var(--encre-2); border: 1px solid var(--filet); border-radius: var(--rayon); background: var(--blanc);
}
.pagination button:hover { border-color: var(--encre); }
.pagination button[aria-current="page"] { background: var(--encre); border-color: var(--encre); color: var(--blanc); }
.pagination button:disabled { opacity: .35; cursor: default; }
.pagination .ellipse { align-self: center; color: var(--encre-3); padding: 0 4px; }

/* ---------- Fiche détaillée ---------- */
.fiche {
  width: min(1040px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0;
  border-radius: 4px; background: var(--blanc); color: var(--encre); box-shadow: 0 30px 80px rgba(0,0,0,.35);
}
.fiche::backdrop { background: rgba(25, 22, 18, .62); backdrop-filter: blur(2px); }
.fiche__fermer { all: unset; cursor: pointer; position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--encre-2); background: var(--blanc); z-index: 2; }
.fiche__fermer:hover { background: var(--papier-2); }
.fiche__fermer:focus-visible { outline: 2px solid var(--rouge); }
.fiche__fermer svg { width: 20px; height: 20px; }
.fiche__corps { display: grid; grid-template-columns: 1fr 1.15fr; min-height: 0; }
.fiche__photos { background: var(--papier-2); padding: 32px 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.fiche__photo { flex: 1; display: grid; place-items: center; min-height: 340px; }
.fiche__photo img { max-height: min(62vh, 560px); width: auto; max-width: 100%; box-shadow: 0 10px 28px -10px rgba(0,0,0,.45); background: var(--blanc); cursor: zoom-in; }
.fiche__photo a { display: contents; }
.fiche__photo .couv { width: min(280px, 70%); aspect-ratio: 2/3; height: auto; box-shadow: 0 10px 28px -10px rgba(0,0,0,.45); }
.fiche__photo .couv__t { font-size: 1.4rem; }
.fiche__vues { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.fiche__vues button { all: unset; cursor: pointer; font: 500 .8rem var(--f-ui); padding: 7px 11px; border: 1px solid var(--filet); border-radius: 99px; background: var(--blanc); color: var(--encre-2); }
.fiche__vues button[aria-selected="true"] { background: var(--encre); color: var(--blanc); border-color: var(--encre); }
.fiche__vues button:focus-visible { outline: 2px solid var(--rouge); }
.fiche__infos { padding: 40px 40px 32px; overflow: auto; max-height: calc(100vh - 32px); }
.fiche__rubrique { font: 600 .74rem/1.4 var(--f-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--rouge); margin-bottom: .8em; padding-right: 40px; }
.fiche__infos h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-bottom: .25em; }
.fiche__auteurs { font: italic 1.1rem/1.4 var(--f-texte); color: var(--encre-2); }
.fiche__meta { display: grid; grid-template-columns: max-content 1fr; gap: 0; margin: 22px 0; border-top: 1px solid var(--filet); }
.fiche__meta dt, .fiche__meta dd { padding: 8px 0; border-bottom: 1px solid var(--papier-3); margin: 0; }
.fiche__meta dt { font: 500 .82rem/1.4 var(--f-ui); color: var(--encre-3); padding-right: 22px; }
.fiche__meta dd { font: 400 .95rem/1.4 var(--f-ui); color: var(--encre); word-break: break-word; }
.fiche__meta dd.mono { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: .82rem; color: var(--encre-2); }
.fiche__resume h3 { font: 600 .78rem/1 var(--f-ui); text-transform: uppercase; letter-spacing: .12em; color: var(--encre-3); margin-bottom: 10px; }
.fiche__resume p { font-size: 1rem; color: var(--encre-2); }
.fiche__actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------- L'association ---------- */
.organes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.organes article { border-top: 2px solid var(--ardoise); padding-top: 18px; }
.organes p { color: var(--encre-2); font-size: .98rem; }
.docs-ref { text-align: center; margin: 36px 0 0; font-style: italic; color: var(--encre-3); }

/* ---------- Contact & pied ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.contact h2 { font-size: 2.4rem; }
.lien-mail { font: 500 1.2rem var(--f-titre); }
.contact__note { color: var(--encre-2); border-left: 1px solid var(--filet); padding-left: 24px; }
.pied { background: var(--encre); color: #cfc8ba; padding: 28px 0; font: 400 .88rem/1.5 var(--f-ui); }
.pied__in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.pied p { margin: 0; }
.pied strong { color: var(--blanc); font-weight: 500; }

/* ---------- Adaptations écran ---------- */
@media (max-width: 1000px) {
  .principes { grid-template-columns: 1fr 1fr; }
  .principes article:nth-child(3) { border-left: 0; }
  .principes article:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .missions { grid-template-columns: 1fr 1fr; }
  .cat { grid-template-columns: 1fr; }
  .cat { gap: 20px; }
  .cat__rubriques { position: static; max-height: none; overflow: visible; }
  .cat__rubriques h3 { margin-bottom: 8px; }
  .arbre { display: none; }
  .rubrique-liste { display: block; }
}
@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex; font: 500 .9rem var(--f-ui); background: none; border: 1px solid var(--encre);
    border-radius: var(--rayon); padding: 8px 14px; color: var(--encre); cursor: pointer;
  }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column;
    background: var(--papier); border-bottom: 1px solid var(--filet); padding: 8px var(--gout) 16px;
  }
  .nav.ouvert { display: flex; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--papier-3); border-radius: 0; }
  .hero__grid, .deux-col, .deux-col--egal, .citer, .contact { grid-template-columns: 1fr; }
  .hero__ill { max-width: 520px; }
  .chiffres { grid-template-columns: 1fr 1fr; }
  .chiffres > div:nth-child(3) { border-left: 0; padding-left: 0; }
  .chiffres > div:nth-child(n+3) { border-top: 1px solid var(--filet); }
  .etapes, .organes { grid-template-columns: 1fr; }
  .fiche__corps { grid-template-columns: 1fr; }
  .fiche { max-height: calc(100vh - 24px); overflow: auto; }
  .fiche__infos { max-height: none; overflow: visible; padding: 28px 24px; }
  .fiche__photo { min-height: 0; }
  .fiche__photo img { max-height: 48vh; }
  .contact__note { border-left: 0; padding-left: 0; }
  .citer__ref { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .brand__txt small { display: none; }
  .principes, .missions { grid-template-columns: 1fr; }
  .principes article { border-left: 0 !important; border-top: 1px solid var(--filet); }
  .principes article:first-child { border-top: 0; }
  .resultats--grille { grid-template-columns: repeat(2, 1fr); gap: 22px 16px; }
  .resultats--liste .notice { grid-template-columns: 48px 1fr; }
  .resultats--liste .notice__rub { display: none; }
  .champ-recherche { flex-basis: 100%; }
  .tri span { display: none; }
  .tri { flex: 1; }
  .tri select { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
@media print {
  .topbar, .hero__actions, .cat, .pied, dialog { display: none !important; }
  body { background: #fff; }
}
