/* PEAU de Mesquite and Manna (stbarnabasborrego.org), refaite le 06/10/2026 : fourche du squelette
   « grille-annuaire » (peau-neutre du socle), préfixe mm-. Concept : le journal d'une paroisse de désert,
   lu entre le ciel de nuit d'Anza-Borrego et l'adobe d'une mission. Trois gestes signature :
   1. l'ARCHE de mission sur les photos (héros d'accueil, vignettes du registre, planche d'article) ;
   2. le CIEL DE NUIT indigo qui ferme la page en haut (fronton) et en bas (pied), repris par l'encart ;
   3. l'ADOBE ocre en pastilles et en ombre sèche, le VERT DE MESQUITE en bloc de chiffres.
   Polices auto-hébergées (woff2 dans peau/, servies à la racine) : Fraunces 600 (titres), Figtree 400/700
   (texte), IBM Plex Mono 400 (cotes et dates). Phrase de palette : vert de mesquite, ocre d'adobe,
   blanc de linge d'autel, indigo de ciel nocturne, sable chaud. */
@font-face { font-family: 'MM Fraunces'; src: url('/mm-fraunces-600.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'MM Figtree'; src: url('/mm-figtree-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'MM Figtree'; src: url('/mm-figtree-700.woff2') format('woff2'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'MM Plex Mono'; src: url('/mm-plex-mono-400.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
:root {
  --fond: #f4ecdc; --papier: #fffaf0; --papier-creux: #e9dcc3;
  --encre: #2a241c; --encre-attenuee: #625846; --liseret: #dccdb0;
  --accent: #3f6b2a; --accent-sombre: #2f5220; --accent-voile: #e3ebd6; --appui: #9a5418;
  --nuit: #23305e; --nuit-profonde: #1a2448; --linge: #fbf5e8; --sable: #e8c98f;
  --titre-police: 'MM Fraunces', Charter, "Bitstream Charter", Cambria, Georgia, serif;
  --texte-police: 'MM Figtree', system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --chiffre-police: 'MM Plex Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --travee: 72rem; --mesure: 66ch; --pas-grille: 16rem; --rythme: 1.5rem; --arrondi: 10px; --arrondi-doux: 18px;
  --arche: 999px 999px var(--arrondi) var(--arrondi);
  --filet: 1px solid var(--liseret);
  --ombre-douce: 0 1px 2px rgba(42, 36, 28, .06), 0 8px 24px -10px rgba(42, 36, 28, .28);
  --ombre-haute: 0 2px 4px rgba(42, 36, 28, .08), 0 18px 40px -16px rgba(35, 48, 94, .45);
  --ombre-seche: 6px 6px 0 var(--appui);
  --ratio-planche: 16 / 9; --ratio-reference: 4 / 5;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--fond); color: var(--encre); font-family: var(--texte-police); font-size: clamp(1rem, .97rem + .2vw, 1.075rem); line-height: 1.65; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--titre-police); line-height: 1.12; margin: 0 0 .6em; font-weight: 600; letter-spacing: -.005em; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.85rem); }
h3 { font-size: 1.15rem; }
p, ul, ol, dl, table, figure { margin: 0 0 var(--rythme); }
a { color: var(--accent-sombre); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--appui); }
:focus-visible { outline: 3px solid var(--appui); outline-offset: 2px; border-radius: 4px; }
.mm-travee { width: min(100% - 2rem, var(--travee)); margin-inline: auto; }
.mm-acces-direct { position: absolute; left: -9999px; top: 0; background: var(--nuit); color: var(--linge); padding: .6rem 1rem; z-index: 20; }
.mm-acces-direct:focus { left: .5rem; top: .5rem; }

/* fronton : le ciel de nuit */
.mm-fronton { background: var(--nuit); color: var(--linge); position: relative; }
.mm-fronton__barre { height: 6px; background: linear-gradient(90deg, var(--appui) 0 33%, var(--sable) 33% 66%, var(--accent) 66%); }
.mm-fronton__interieur { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.6rem; padding: 1.1rem 0 1.2rem; }
.mm-enseigne { display: inline-flex; align-items: center; gap: .7rem; font-family: var(--titre-police); font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); font-weight: 600; color: var(--linge); text-decoration: none; letter-spacing: -.01em; }
.mm-enseigne:hover { color: var(--sable); }
.mm-sceau { flex: 0 0 auto; width: 2.4rem; height: 2.4rem; }
.mm-devise { margin: 0; color: #cfd3e6; font-size: .86rem; max-width: 34ch; line-height: 1.4; border-left: 1px solid rgba(251, 245, 232, .25); padding-left: 1.1rem; }
.mm-parcours { margin-left: auto; }
.mm-parcours ul { display: flex; flex-wrap: wrap; gap: .3rem; list-style: none; margin: 0; padding: 0; }
.mm-parcours__lien { display: inline-block; color: var(--linge); text-decoration: none; font-size: .82rem; font-weight: 700; letter-spacing: .04em; padding: .4rem .75rem; border-radius: 999px; }
.mm-parcours__lien:hover { background: rgba(251, 245, 232, .12); color: var(--linge); }
.mm-parcours__lien[aria-current] { background: var(--appui); color: #fff; }
@media (max-width: 52rem) { .mm-devise { border-left: 0; padding-left: 0; flex-basis: 100%; max-width: none; } .mm-parcours { margin-left: -.75rem; flex-basis: 100%; } }

/* préambule : texte à gauche, photo sous arche à droite */
.mm-preambule { padding: calc(var(--rythme) * 1.6) 0 calc(var(--rythme) * 1.2); }
.mm-preambule p { max-width: var(--mesure); color: var(--encre-attenuee); font-size: 1.05rem; }
.mm-preambule h1 { max-width: 20ch; color: var(--nuit-profonde); }
.mm-preambule--accueil { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 2rem 3.5rem; align-items: center; }
.mm-preambule__texte p { font-size: 1rem; }
.mm-preambule__vue { margin: 0; position: relative; aspect-ratio: 1 / 1; border-radius: var(--arche); overflow: hidden; background: var(--papier-creux); box-shadow: var(--ombre-haute); border: 6px solid var(--papier); }
.mm-preambule__vue picture, .mm-preambule__vue img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 56rem) { .mm-preambule--accueil { grid-template-columns: 1fr; } .mm-preambule__vue { aspect-ratio: 4 / 3; max-width: 32rem; } }
.mm-bilan { display: flex; flex-wrap: wrap; list-style: none; margin: calc(var(--rythme) * 1.2) 0 0; padding: 0; border-radius: var(--arrondi-doux); background: var(--accent); color: var(--linge); box-shadow: var(--ombre-douce); overflow: hidden; }
.mm-bilan__poste { flex: 1 1 8rem; padding: 1rem 1.2rem; border-right: 1px solid rgba(251, 245, 232, .22); }
.mm-bilan__poste:last-child { border-right: 0; }
.mm-bilan__chiffre { display: block; font-family: var(--titre-police); font-size: 1.6rem; line-height: 1.2; color: #fff; }
.mm-bilan__renvoi { color: #fff; text-decoration: underline; text-decoration-color: var(--sable); text-decoration-thickness: 2px; text-underline-offset: .22em; }
.mm-bilan__renvoi:hover { color: var(--sable); }
.mm-bilan__libelle { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #dfe9d3; }

/* rayons, casier (grille), registre (liste) */
.mm-rayon { padding: calc(var(--rythme) * 1.2) 0 calc(var(--rythme) * 1.6); }
.mm-rayon__tete { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; border-bottom: 2px solid var(--nuit); padding-bottom: .5rem; margin-bottom: calc(var(--rythme) * 1.1); }
.mm-rayon__tete h2 { margin: 0; color: var(--nuit-profonde); display: flex; align-items: center; gap: .6rem; }
.mm-rayon__tete h2::before { content: ""; flex: 0 0 auto; width: .8em; height: .8em; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--sable), var(--appui)); }
.mm-rayon__tete h2 a { color: inherit; text-decoration: none; }
.mm-rayon__tete h2 a:hover { color: var(--appui); }
.mm-rayon__decompte { font-family: var(--chiffre-police); font-size: .8rem; color: var(--encre-attenuee); }
.mm-rayon__phrase { flex-basis: 100%; margin: .2rem 0 0; color: var(--encre-attenuee); max-width: var(--mesure); }
.mm-casier { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--pas-grille)), 1fr)); gap: 1.4rem; }
.mm-entree { background: var(--papier); border-radius: var(--arrondi-doux); padding: 0 0 1rem; display: flex; flex-direction: column; box-shadow: var(--ombre-douce); overflow: hidden; transition: transform .2s ease, box-shadow .2s ease; }
.mm-entree:hover { transform: translateY(-3px); box-shadow: var(--ombre-haute); }
.mm-entree__vignette { margin: 0; aspect-ratio: var(--ratio-planche); overflow: hidden; background: var(--papier-creux); }
.mm-entree__vignette picture, .mm-entree__vignette img { width: 100%; height: 100%; object-fit: cover; }
.mm-entree__texte { padding: 1rem 1.15rem 0; display: flex; flex-direction: column; flex: 1; }
.mm-entree__cote { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin: 0 0 .5rem; font-size: .75rem; }
.mm-cote { font-family: var(--chiffre-police); color: var(--appui); }
.mm-mention { background: var(--appui); color: #fff; padding: .18rem .6rem; border-radius: 999px; text-transform: uppercase; letter-spacing: .07em; font-size: .68rem; font-weight: 700; text-decoration: none; }
a.mm-mention:hover { background: var(--accent-sombre); color: #fff; }
.mm-entree__intitule { margin: 0 0 .45rem; font-size: 1.18rem; }
.mm-entree__intitule a { color: var(--encre); text-decoration: none; }
.mm-entree__intitule a:hover { color: var(--accent-sombre); text-decoration: underline; }
.mm-entree__abrege { font-size: .92rem; color: var(--encre-attenuee); margin: 0 0 .6rem; }
.mm-entree__datation { font-family: var(--chiffre-police); font-size: .74rem; color: var(--encre-attenuee); margin: auto 0 0; }
.mm-registre { display: flex; flex-direction: column; gap: .9rem; }
.mm-entree--ligne { flex-direction: row; gap: 1.3rem; align-items: center; border-radius: var(--arrondi-doux); padding: .8rem; }
.mm-entree--ligne .mm-entree__vignette { flex: 0 0 clamp(6.5rem, 18vw, 9.5rem); aspect-ratio: var(--ratio-reference); border-radius: var(--arche); }
.mm-entree--ligne .mm-entree__texte { padding: 0; }
.mm-entree__renvoi { text-align: right; margin: 1rem 0 0; }
.mm-renvoi { display: inline-block; font-size: .86rem; font-weight: 700; text-decoration: none; letter-spacing: .03em; color: var(--linge); background: var(--accent); padding: .55rem 1.1rem; border-radius: 999px; box-shadow: var(--ombre-douce); }
.mm-renvoi:hover { background: var(--accent-sombre); color: #fff; }

/* onglets */
.mm-onglets { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 var(--rythme); }
.mm-onglet { padding: .45rem 1rem; border: var(--filet); border-radius: 999px; text-decoration: none; font-size: .86rem; font-weight: 700; background: var(--papier); color: var(--encre); }
.mm-onglet:hover { border-color: var(--accent); color: var(--accent-sombre); }
.mm-onglet--courant { background: var(--accent); color: #fff; border-color: var(--accent); }

/* remontée */
.mm-remontee ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 1.2rem 0 0; font-size: .8rem; color: var(--encre-attenuee); }
.mm-remontee li + li::before { content: "\2726"; margin-right: .45rem; color: var(--appui); font-size: .7em; }
.mm-remontee a { color: var(--encre-attenuee); }

/* fiche */
.mm-entete-fiche { padding: var(--rythme) 0 .8rem; }
.mm-entete-fiche h1 { max-width: 24ch; color: var(--nuit-profonde); }
.mm-chapeau { font-size: 1.2rem; line-height: 1.55; max-width: var(--mesure); color: var(--encre-attenuee); }
.mm-datation { font-family: var(--chiffre-police); font-size: .8rem; color: var(--encre-attenuee); }
.mm-planche-image { margin-bottom: calc(var(--rythme) * 1.4); }
.mm-planche-image picture { display: block; aspect-ratio: var(--ratio-planche); overflow: hidden; border-radius: 200px 200px var(--arrondi-doux) var(--arrondi-doux); background: var(--papier-creux); box-shadow: var(--ombre-haute); }
.mm-planche-image img { width: 100%; height: 100%; object-fit: cover; }
.mm-planche-image figcaption { font-size: .8rem; color: var(--encre-attenuee); padding: .6rem 0 0; font-style: italic; }
.mm-duo { display: grid; grid-template-columns: minmax(0, 1fr) 18rem; gap: 3rem; align-items: start; padding-bottom: var(--rythme); }
@media (max-width: 62rem) { .mm-duo { grid-template-columns: 1fr; } }
.mm-corps { max-width: var(--mesure); }
.mm-corps h2 { margin-top: calc(var(--rythme) * 1.6); color: var(--nuit-profonde); }
.mm-corps h2::after { content: ""; display: block; width: 3rem; height: 3px; margin-top: .5rem; border-radius: 2px; background: var(--appui); }
.mm-corps > p:first-of-type::first-letter { font-family: var(--titre-police); font-size: 3.4em; float: left; line-height: .85; padding: .08em .12em 0 0; color: var(--appui); }
.mm-corps table { width: 100%; border-collapse: collapse; font-size: .92rem; background: var(--papier); border-radius: var(--arrondi); overflow: hidden; box-shadow: var(--ombre-douce); }
.mm-corps th { background: var(--accent-voile); color: var(--accent-sombre); }
.mm-corps th, .mm-corps td { border-bottom: var(--filet); padding: .55rem .7rem; text-align: left; vertical-align: top; }
.mm-corps blockquote { margin: 0 0 var(--rythme); padding: .9rem 1.2rem; border-left: 4px solid var(--appui); background: var(--papier); border-radius: 0 var(--arrondi) var(--arrondi) 0; color: var(--encre-attenuee); font-family: var(--titre-police); font-size: 1.08rem; }
.mm-fiche--service .mm-corps { padding-bottom: var(--rythme); }
.mm-releve { position: sticky; top: 1rem; background: var(--papier); border-top: 5px solid var(--appui); border-radius: var(--arrondi); padding: 1.2rem 1.2rem .4rem; font-size: .9rem; box-shadow: var(--ombre-douce); }
.mm-releve h2 { font-family: var(--texte-police); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--appui); margin: 0 0 .6rem; }
.mm-releve ol, .mm-releve ul { padding-left: 1.2rem; margin: 0 0 1rem; }
.mm-releve__sommaire li { margin-bottom: .35rem; }
.mm-releve__sommaire a { text-decoration: none; }
.mm-releve__sommaire a:hover { text-decoration: underline; }

/* ailleurs (section réseau) */
.mm-ailleurs { border-top: 0; }
.mm-ailleurs__liste { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 18rem), 1fr)); gap: 1rem; }
.mm-ailleurs__item { background: var(--papier); border-left: 4px solid var(--accent); border-radius: 0 var(--arrondi) var(--arrondi) 0; padding: .8rem 1rem; font-size: .95rem; box-shadow: var(--ombre-douce); }
.mm-ailleurs__item p { margin: 0; }

/* encart : un pan de ciel de nuit, ombre sèche d'adobe */
.mm-encart { background: var(--nuit); color: var(--linge); border-radius: var(--arrondi-doux); padding: 1.6rem 1.8rem; margin: calc(var(--rythme) * 1.5) auto; max-width: min(100% - 2rem, 50rem); box-shadow: var(--ombre-seche); position: relative; }
.mm-encart h2 { font-size: 1.35rem; color: var(--sable); }
.mm-encart p { margin: 0; color: #e4e6f0; }

/* pied : le ciel qui se referme */
.mm-pied { margin-top: calc(var(--rythme) * 2.5); background: var(--nuit-profonde); color: #d9dcea; font-size: .92rem; border-radius: 28px 28px 0 0; }
.mm-pied__colonnes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 2rem; padding: 2.6rem 0 1.2rem; }
.mm-pied h2 { font-family: var(--texte-police); font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--sable); }
.mm-pied a { color: var(--linge); }
.mm-pied a:hover { color: var(--sable); }
.mm-pied ul { list-style: none; padding: 0; margin: 0; }
.mm-pied li { margin-bottom: .35rem; }
.mm-pied__note { color: #b9bed4; font-size: .85rem; }
.mm-pied__ligne { padding: .9rem 0 1.6rem; border-top: 1px solid rgba(251, 245, 232, .16); color: #b9bed4; font-family: var(--chiffre-police); font-size: .74rem; }
@media print { .mm-fronton, .mm-pied, .mm-releve { display: none; } }
