/* Vitrine Review ,  peau msm- · direction Le Carnet d'Établi · matière braise-douce
   Deux familles : Crimson Text (titres serif), Open Sans (texte et données).
   Règle négative : l'accent n'est jamais un aplat pleine largeur ; il marque, il ne remplit pas. */

@font-face {
  font-family: "Msm Serif";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/crimson-text-v11-latin-700.woff2") format("woff2");
}
@font-face {
  font-family: "Msm Sans";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/open-sans-latin-regular.woff2") format("woff2");
}

:root {
  --fond: #FBF3E8;
  --fond-strate: #F5EADB;
  --fond-accent: #FBE1F3;
  --fond-nuit: #221410;
  --encre: #2B1D12;
  --encre-attenuee: #5C4A39;
  --accent: #C02F99;
  --accent-fort: #8E1F72;
  --filet: #E5D3B8;
  --filet-fort: #C9B69A;
  --titre-police: "Msm Serif", Georgia, "Palatino Linotype", serif;
  --texte-police: "Msm Sans", -apple-system, "Segoe UI", sans-serif;
  --corps-taille: clamp(1rem, 0.94rem + 0.28vw, 1.125rem);
  --interligne: 1.65;
  --mesure: 68ch;
  --emprise: min(72rem, 100% - 2.5rem);
  --gouttiere: clamp(1rem, 2.2vw, 2rem);
  --rayon-sm: 12px;
  --rayon-md: 16px;
  --rayon-lg: 20px;
  --ombre-douce: 0 10px 24px -12px rgba(43, 29, 18, 0.22), 0 2px 6px rgba(43, 29, 18, 0.06);
  --ombre-accent: 0 14px 32px -14px rgba(192, 47, 153, 0.36), 0 2px 6px rgba(43, 29, 18, 0.08);
  --ombre-tuile: 0 18px 38px -18px rgba(34, 20, 16, 0.35), 0 3px 8px rgba(43, 29, 18, 0.08);
  --ratio-heros: 3 / 2;
  --ratio-carte: 4 / 3;
  --ratio-vignette: 1 / 1;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body {
  margin: 0;
  background: var(--fond);
  color: var(--encre);
  font-family: var(--texte-police);
  font-size: var(--corps-taille);
  line-height: var(--interligne);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-fort); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3, h4 { font-family: var(--titre-police); font-weight: 700; line-height: 1.2; letter-spacing: -0.01em; color: var(--encre); }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }

/* Réglette identitaire : filet mesuré sous l'en-tête. */
.msm-mesure-regle {
  height: 4px;
  background:
    repeating-linear-gradient(90deg, var(--filet-fort) 0 14px, transparent 14px 20px),
    linear-gradient(90deg, var(--accent) 0 96px, transparent 96px);
  background-size: auto 4px;
}
.msm-mesure { position: relative; }

.msm-emprise { width: var(--emprise); margin-inline: auto; min-width: 0; }

/* En-tête ---------------------------------------------------------------- */
.msm-fronton { background: var(--fond-strate); border-bottom: 1px solid var(--filet); }
.msm-fronton__interieur {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem;
  padding-block: 1.1rem;
}
.msm-enseigne {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: var(--titre-police); font-weight: 700; font-size: 1.35rem;
  color: var(--encre); text-decoration: none; letter-spacing: -0.01em;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.6);
}
.msm-embleme { width: 28px; height: 28px; color: var(--accent); flex: none; }
.msm-devise { margin: 0; font-size: 0.85rem; color: var(--encre-attenuee); }
.msm-parcours { margin-left: auto; }
.msm-parcours ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 0.9rem; }
.msm-parcours__lien {
  display: inline-block; padding: 0.35rem 0.6rem; border-radius: var(--rayon-sm);
  color: var(--encre); font-weight: 700; font-size: 0.9rem; text-decoration: none;
}
.msm-parcours__lien:hover { background: var(--fond-accent); }
.msm-parcours__lien[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }

/* Accessibilité et fil d'Ariane ----------------------------------------- */
.msm-acces-direct {
  position: absolute; left: -999px; top: 0; padding: 0.6rem 1rem;
  background: var(--accent); color: #fff; border-radius: 0 0 var(--rayon-sm) 0; z-index: 50;
}
.msm-acces-direct:focus { left: 0; }
.msm-remontee { padding-block: 0.9rem; }
.msm-remontee ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem 0.75rem; margin: 0; padding: 0; font-size: 0.85rem; color: var(--encre-attenuee); }
.msm-remontee li + li::before { content: "›"; margin-right: 0.5rem; color: var(--filet-fort); }
.msm-remontee a { color: var(--encre-attenuee); }

/* Préambule -------------------------------------------------------------- */
.msm-preambule { max-width: var(--mesure); padding-block: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 2vw, 2rem); }
.msm-sur-titre {
  text-transform: uppercase; letter-spacing: 0.16em; font-size: 0.72rem;
  color: var(--accent-fort); margin: 0 0 0.6rem; font-weight: 700;
}
.msm-preambule h1 { margin: 0 0 0.75rem; text-shadow: 0 2px 8px rgba(43, 29, 18, 0.12); }
.msm-preambule__chapeau { font-size: 1.06rem; color: var(--encre-attenuee); margin: 0 0 1.5rem; }
.msm-bilan { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 1rem 2rem; }
.msm-bilan__poste { display: flex; flex-direction: column; gap: 0.15rem; min-width: 0; }
.msm-bilan__chiffre { font-family: var(--titre-police); font-size: 1.6rem; color: var(--accent-fort); }
.msm-bilan__libelle { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--encre-attenuee); }

/* Sections --------------------------------------------------------------- */
.msm-rayon { padding-block: clamp(1.2rem, 3vw, 2.4rem); min-width: 0; }
.msm-rayon__tete {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.6rem 1rem;
  margin-bottom: 1.2rem; padding-bottom: 0.6rem; position: relative;
}
.msm-rayon__tete::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--filet-fort);
}
.msm-rayon__tete h2 { margin: 0; }
.msm-rayon__phrase { margin: 0; flex: 1 1 18rem; min-width: 0; color: var(--encre-attenuee); font-size: 0.92rem; }
.msm-rayon__decompte { margin-left: auto; font-family: var(--titre-police); color: var(--encre-attenuee); font-size: 0.85rem; }

/* Cartes ----------------------------------------------------------------- */
.msm-carte {
  min-width: 0; background: #fff; border-radius: var(--rayon-md);
  box-shadow: var(--ombre-douce); overflow: hidden;
  display: flex; flex-direction: column;
}
.msm-carte__lien-image { display: block; text-decoration: none; }
.msm-carte__figure { margin: 0; width: 100%; max-width: 100%; aspect-ratio: var(--ratio-carte); overflow: hidden; background: var(--fond-strate); }
.msm-carte__figure img { width: 100%; height: 100%; object-fit: cover; }
.msm-carte__texte { padding: 1rem 1.15rem 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.msm-carte__meta { margin: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; font-size: 0.78rem; align-items: center; }
.msm-cote { font-family: var(--titre-police); letter-spacing: 0.06em; color: var(--accent-fort); background: var(--fond-accent); padding: 0.1rem 0.45rem; border-radius: 6px; }
.msm-mention-rubrique { text-transform: uppercase; letter-spacing: 0.1em; color: var(--encre-attenuee); font-size: 0.72rem; }
.msm-carte__titre { margin: 0; font-size: 1.15rem; }
.msm-carte__titre a { color: var(--encre); text-decoration: none; }
.msm-carte__titre a:hover { color: var(--accent-fort); text-decoration: underline; }
.msm-carte__abrege { margin: 0; font-size: 0.92rem; color: var(--encre-attenuee); }
.msm-carte__pied { margin: 0; font-size: 0.8rem; color: var(--encre-attenuee); }

.msm-carte--une { box-shadow: var(--ombre-accent); border-radius: var(--rayon-lg); }
.msm-carte__figure--une { aspect-ratio: var(--ratio-heros); }
.msm-carte__titre--une { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); text-shadow: 0 1px 2px rgba(43, 29, 18, 0.14); }

.msm-grille-moyennes {
  display: grid; gap: var(--gouttiere); margin-top: var(--gouttiere);
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}
.msm-grille-moyennes > * { min-width: 0; }

/* Liste dense ------------------------------------------------------------ */
.msm-dense { margin-top: var(--gouttiere); background: var(--fond-strate); border-radius: var(--rayon-md); padding: 1rem 1.15rem; box-shadow: var(--ombre-douce); }
.msm-dense__titre { margin: 0 0 0.6rem; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.14em; color: var(--encre-attenuee); font-family: var(--texte-police); }
.msm-dense__liste, .msm-planche__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; min-width: 0; }
.msm-compacte { min-width: 0; }
.msm-compacte__lien {
  display: grid; grid-template-columns: 72px 1fr; gap: 0.85rem; align-items: center;
  text-decoration: none; color: var(--encre); padding: 0.45rem; border-radius: var(--rayon-sm);
}
.msm-compacte__lien:hover { background: #fff; box-shadow: var(--ombre-douce); }
.msm-compacte__figure { margin: 0; width: 100%; max-width: 100%; aspect-ratio: var(--ratio-vignette); border-radius: var(--rayon-sm); overflow: hidden; background: var(--fond-strate); }
.msm-compacte__figure img { width: 100%; height: 100%; object-fit: cover; }
.msm-compacte__texte { min-width: 0; display: flex; flex-direction: column; gap: 0.2rem; }
.msm-compacte__titre { margin: 0; font-size: 1rem; font-weight: 700; }

/* Tuiles rubriques ------------------------------------------------------- */
.msm-rayon--rubriques { background: var(--fond-accent); border-radius: var(--rayon-lg); padding-inline: clamp(1rem, 2vw, 2rem); margin-block: 1.5rem; }
.msm-grille-tuiles { display: grid; gap: var(--gouttiere); grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.msm-grille-tuiles > * { min-width: 0; }
.msm-tuile { background: #fff; border-radius: var(--rayon-md); overflow: hidden; box-shadow: var(--ombre-tuile); display: flex; flex-direction: column; min-width: 0; }
.msm-tuile__figure { margin: 0; width: 100%; max-width: 100%; aspect-ratio: var(--ratio-vignette); overflow: hidden; background: var(--fond-strate); }
.msm-tuile__figure img { width: 100%; height: 100%; object-fit: cover; }
.msm-tuile__texte { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: 0.5rem; min-width: 0; }
.msm-tuile__titre { margin: 0; font-size: 1.2rem; }
.msm-tuile__titre a { color: var(--encre); text-decoration: none; }
.msm-tuile__abrege { margin: 0; font-size: 0.9rem; color: var(--encre-attenuee); }
.msm-tuile__lien { margin: 0; font-size: 0.88rem; }

.msm-renvoi-bloc { margin: 0.9rem 0 0; }
.msm-renvoi { font-weight: 700; text-decoration: none; }

/* Chronologie (page rubrique) ------------------------------------------- */
.msm-annee { margin-block: 1.5rem; min-width: 0; }
.msm-annee__titre { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0 0 0.9rem; font-size: 1.4rem; }
.msm-annee__jalon { width: 12px; height: 12px; background: var(--accent); border-radius: 50%; box-shadow: 0 0 0 4px var(--fond-accent); flex: none; }
.msm-chrono { list-style: none; margin: 0; padding: 0 0 0 1.5rem; border-left: 2px solid var(--filet-fort); display: grid; gap: 0.75rem; min-width: 0; }
.msm-chrono__entree {
  display: grid; grid-template-columns: auto 96px 1fr; gap: 0.9rem; align-items: center;
  background: #fff; border-radius: var(--rayon-sm); padding: 0.6rem; box-shadow: var(--ombre-douce); min-width: 0;
}
.msm-chrono__date { font-family: var(--titre-police); font-size: 0.8rem; color: var(--accent-fort); white-space: nowrap; }
.msm-chrono__figure { margin: 0; width: 100%; max-width: 100%; aspect-ratio: var(--ratio-vignette); border-radius: var(--rayon-sm); overflow: hidden; background: var(--fond-strate); }
.msm-chrono__figure img { width: 100%; height: 100%; object-fit: cover; }
.msm-chrono__texte { min-width: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.msm-chrono__titre { margin: 0; font-size: 1.02rem; }
.msm-chrono__titre a { color: var(--encre); text-decoration: none; }
.msm-chrono__titre a:hover { color: var(--accent-fort); text-decoration: underline; }

.msm-onglets { display: flex; flex-wrap: wrap; gap: 0.4rem; padding-block: 0.6rem 1rem; }
.msm-onglet { padding: 0.4rem 0.85rem; border-radius: 999px; background: var(--fond-strate); color: var(--encre); text-decoration: none; font-size: 0.88rem; font-weight: 700; }
.msm-onglet--courant { background: var(--accent); color: #fff; }

/* Article ---------------------------------------------------------------- */
.msm-entete-fiche { max-width: var(--mesure); padding-block: 0.5rem 1.2rem; }
.msm-titre-fiche { margin: 0.4rem 0 0.7rem; text-shadow: 0 2px 10px rgba(43, 29, 18, 0.16); }
.msm-chapeau { font-size: 1.1rem; color: var(--encre-attenuee); margin: 0 0 0.75rem; }
.msm-datation { margin: 0; font-size: 0.85rem; color: var(--encre-attenuee); }
.msm-planche-image { margin: 0 0 1.5rem; }
.msm-planche-image img { width: 100%; max-width: 100%; aspect-ratio: var(--ratio-heros); object-fit: cover; border-radius: var(--rayon-lg); box-shadow: var(--ombre-tuile); }
.msm-planche-image figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--encre-attenuee); text-shadow: 0 1px 1px rgba(255, 255, 255, 0.7); }
.msm-duo { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gouttiere); min-width: 0; align-items: start; }
.msm-duo > * { min-width: 0; }
@media (min-width: 60rem) {
  .msm-duo { grid-template-columns: minmax(0, 1fr) 15rem; }
}
.msm-corps { max-width: var(--mesure); min-width: 0; }
.msm-corps h2, .msm-corps h3 { margin-block: 1.5rem 0.6rem; }
.msm-corps p { margin-block: 0 1rem; }
.msm-corps > p:first-of-type::first-letter {
  float: left; font-family: var(--titre-police); font-size: 3.3rem; line-height: 0.85;
  padding: 0.1rem 0.6rem 0 0; color: var(--accent);
}
.msm-corps blockquote {
  margin: 1.4rem 0; padding: 0.9rem 1.2rem; background: var(--fond-strate);
  border-left: 4px solid var(--accent); border-radius: 0 var(--rayon-sm) var(--rayon-sm) 0;
}
.msm-corps table { width: 100%; border-collapse: collapse; min-width: 32rem; }
.msm-corps figcaption { font-size: 0.85rem; color: var(--encre-attenuee); }
.msm-tableau-defilant { overflow-x: auto; border-radius: var(--rayon-sm); box-shadow: var(--ombre-douce); }
.msm-releve { background: var(--fond-strate); border-radius: var(--rayon-md); padding: 1rem 1.15rem; box-shadow: var(--ombre-douce); min-width: 0; }
.msm-releve h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--encre-attenuee); font-family: var(--texte-police); margin: 0 0 0.5rem; }
.msm-releve h2:not(:first-child) { margin-top: 1rem; }
.msm-releve ol, .msm-releve ul { margin: 0; padding-left: 1.1rem; font-size: 0.9rem; }
.msm-releve li { margin-bottom: 0.3rem; }

/* Voisinage, réseau, pied ------------------------------------------------ */
.msm-voisinage { min-width: 0; }
.msm-ailleurs { background: var(--fond-strate); border-radius: var(--rayon-lg); padding-inline: clamp(1rem, 2vw, 2rem); margin-block: 1.5rem; padding-block: 1.4rem; }
.msm-ailleurs__liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; grid-template-columns: repeat(auto-fit, minmax(min(16rem, 100%), 1fr)); }
.msm-ailleurs__item { min-width: 0; font-size: 0.9rem; }
.msm-ailleurs__item p { margin: 0; }

.msm-pied { background: var(--fond-nuit); color: #F6E8D4; margin-top: 2rem; padding-block: 2rem 1rem; }
.msm-pied a { color: #F0C8E6; }
.msm-pied h2 { color: #fff; font-size: 1rem; margin: 0 0 0.5rem; }
.msm-pied__colonnes { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.msm-pied__colonne { min-width: 0; }
.msm-pied__colonne p { margin: 0 0 0.5rem; font-size: 0.9rem; }
.msm-pied__colonne ul { list-style: none; margin: 0; padding: 0; font-size: 0.9rem; }
.msm-pied__note { font-size: 0.85rem; color: #E9D8C2; }
.msm-pied__ligne { margin-top: 1.5rem; padding-top: 0.75rem; border-top: 1px solid rgba(246, 232, 212, 0.25); font-size: 0.8rem; }

/* Petit écran ------------------------------------------------------------ */
@media (max-width: 40rem) {
  :root { --emprise: min(72rem, 100% - 1.5rem); }
  .msm-chrono { padding-left: 1rem; }
  .msm-chrono__entree { grid-template-columns: 72px 1fr; grid-template-areas: "fig txt" "date date"; }
  .msm-chrono__date { grid-area: date; }
  .msm-chrono__figure { grid-area: fig; }
  .msm-chrono__texte { grid-area: txt; }
  .msm-compacte__lien { grid-template-columns: 64px 1fr; }
  .msm-parcours { margin-left: 0; }
}
@media (min-width: 120rem) {
  :root { --emprise: min(84rem, 100% - 4rem); }
}
