/* ============================================================
   Au creux de la main — blocs de contenu d'article
   Chargé après blog.css. Dépend des mêmes variables ; la couleur
   vient toujours de la rubrique (--rub…) ou de l'or (renvois
   catalogue et annexes techniques).
   ============================================================ */

/* ============================================================
   1 · Mise en exergue par la largeur
   Une classe sur le conteneur du bloc. Fonctionne par marges
   négatives symétriques : le flux normal est préservé, donc les
   encarts flottants continuent de fonctionner autour du texte.
   ============================================================ */

.article__body .large,
.article__body .pleine-largeur {
  /* la largeur de référence est celle du parent (--measure) */
  margin-inline: calc((100% - var(--exergue-w)) / 2);
  width: var(--exergue-w);
  max-width: none;
}
.article__body .large          { --exergue-w: min(var(--measure-wide), 92vw); }
.article__body .pleine-largeur { --exergue-w: min(var(--maxwidth-ck), 94vw); }

/* Un bloc élargi respire davantage */
.article__body .large,
.article__body .pleine-largeur { margin-block: var(--space-7); }

/* Les légendes des blocs élargis s'alignent sur le bloc, pas sur le texte */
.article__body .pleine-largeur > figcaption { text-align: center; }

@media (max-width: 720px) {
  /* sous cette largeur, la colonne de lecture EST la page : on annule */
  .article__body .large,
  .article__body .pleine-largeur { margin-inline: 0; width: 100%; }
}

/* ============================================================
   2 · Listes
   ============================================================ */

/* Liste à puces simple — puce ronde à la couleur de la rubrique */
.liste { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.liste > li { display: flex; gap: 14px; align-items: baseline; font: 400 17px/1.8 var(--body-font); color: var(--ink-2); }
.liste > li::before {
  content: ""; flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%;
  background: var(--rub); transform: translateY(-4px);
}

/* Liste à puces titrée — un intertitre par élément */
.liste-titree { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 20px; }
.liste-titree > li { display: flex; gap: 16px; align-items: flex-start; }
.liste-titree > li::before {
  content: ""; flex: 0 0 auto; width: 9px; height: 9px; border-radius: 50%;
  background: var(--rub); margin-top: 8px;
}
.liste-titree__titre { display: block; font: 400 21px/1.3 var(--display-font); color: var(--ink); }
.liste-titree__texte { display: block; margin-top: 5px; font: 400 16px/1.75 var(--body-font); color: var(--ink-2); }

/* Liste numérotée simple — chiffres à empattements, à l'or */
.liste-num { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; counter-reset: carnet; }
.liste-num > li { display: flex; gap: 16px; align-items: baseline; font: 400 17px/1.8 var(--body-font); color: var(--ink-2); counter-increment: carnet; }
.liste-num > li::before {
  content: counter(carnet) "."; flex: 0 0 auto; min-width: 22px;
  font: 400 19px/1.55 var(--display-font); color: var(--or-ink);
}

/* Liste numérotée détaillée — pastille teintée + titre + texte */
.liste-num-titree { margin: 0; padding: 0; list-style: none; counter-reset: carnet; }
.liste-num-titree > li {
  display: flex; gap: 20px; align-items: flex-start;
  padding-block: 20px; border-top: 1px solid var(--rule); counter-increment: carnet;
}
.liste-num-titree > li:last-child { border-bottom: 1px solid var(--rule); }
.liste-num-titree > li::before {
  content: counter(carnet); flex: 0 0 auto;
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%;
  background: var(--rub-soft); color: var(--rub-ink); font: 400 21px/1 var(--display-font);
}
.liste-num-titree__titre { display: block; font: 400 21px/1.3 var(--display-font); color: var(--ink); }
.liste-num-titree__texte { display: block; margin-top: 5px; font: 400 16px/1.75 var(--body-font); color: var(--ink-2); }

/* Liste de définitions */
.definitions { margin: 0; }
.definitions > div { padding-block: 18px; border-top: 1px solid var(--rule); }
.definitions > div:last-child { border-bottom: 1px solid var(--rule); }
.definitions dt {
  font: 600 11px/1 var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--rub);
}
.definitions dd { margin: 6px 0 0; font: 400 16px/1.75 var(--body-font); color: var(--ink-2); }
/* En colonnes dès qu'il y a la place */
@media (min-width: 900px) {
  .large .definitions > div, .pleine-largeur .definitions > div {
    display: grid; grid-template-columns: 12rem minmax(0, 1fr); gap: 20px; align-items: baseline;
  }
  .large .definitions dd, .pleine-largeur .definitions dd { margin-top: 0; }
}

/* ============================================================
   3 · Tableaux
   ============================================================ */

/* Tableau épuré — filets seuls, aucun aplat */
.tableau { width: 100%; border-collapse: collapse; }
.tableau caption {
  caption-side: top; text-align: left; padding-bottom: 14px;
  font: 600 10px/1 var(--body-font); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3);
}
.tableau th {
  text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--ink-3);
  font: 600 10px/1.4 var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3);
}
.tableau td { padding: 14px; border-bottom: 1px solid var(--rule); font: 400 15px/1.6 var(--body-font); color: var(--ink-2); }
.tableau tbody th, .tableau td:first-child { font-weight: 500; color: var(--ink); }
.tableau th:first-child, .tableau td:first-child { padding-left: 0; }
.tableau th:last-child, .tableau td:last-child { padding-right: 0; }

/* Tableau travaillé — cadre, en-tête teinté, lignes alternées */
.tableau-riche {
  background: var(--card); border: 1px solid var(--rule); border-top: 4px solid var(--rub);
  box-shadow: var(--shadow-sm); overflow: hidden;
}
.tableau-riche table { width: 100%; border-collapse: collapse; }
.tableau-riche caption {
  caption-side: top; text-align: left; padding: 18px 20px 0;
  font: 600 10px/1 var(--body-font); letter-spacing: .18em; text-transform: uppercase; color: var(--rub);
}
.tableau-riche thead tr { background: var(--rub-soft); }
.tableau-riche th {
  text-align: left; padding: 14px 20px;
  font: 600 10px/1.4 var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--rub-ink);
}
.tableau-riche td { padding: 16px 20px; border-bottom: 1px solid var(--rule); font: 400 15px/1.6 var(--body-font); color: var(--ink-2); }
.tableau-riche tbody tr:nth-child(even) { background: var(--page-alt); }
.tableau-riche tbody tr:last-child td { border-bottom: 0; }
.tableau-riche td:first-child { font-weight: 500; color: var(--ink); }
.tableau-riche td.chiffre { font-weight: 600; font-size: 14px; color: var(--rub); }
.tableau__source { margin-top: var(--space-3); font: 400 13px/1.6 var(--body-font); color: var(--ink-3); }

/* Débordement horizontal maîtrisé sur petit écran */
.tableau-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tableau-wrap table { min-width: 34rem; }

/* ============================================================
   4 · Encarts, notes, annexes
   ============================================================ */

/* Encart latéral d'information — même forme que l'encart catalogue,
   mais teinte de rubrique : le lecteur voit que ce n'est pas commercial. */
.encart {
  float: right; width: min(48%, 258px); margin: 6px 0 22px 32px;
  background: var(--rub-soft); border-top: 4px solid var(--rub); padding: 18px 20px;
}
.encart--gauche { float: left; margin: 6px 32px 22px 0; }
.encart__label { margin-bottom: 12px; font: 600 10px/1 var(--body-font); letter-spacing: .16em; text-transform: uppercase; color: var(--rub-ink); }
.encart p { font: 400 15px/1.7 var(--body-font); color: var(--rub-deep); }
.encart__link { display: inline-block; margin-top: 12px; font: 600 11px/1 var(--body-font); letter-spacing: .1em; text-transform: uppercase; color: var(--rub-ink); }
@media (max-width: 640px) {
  .encart, .encart--gauche { float: none; width: 100%; margin: var(--space-6) 0; }
}

/* Note en ligne — précision technique ou éditoriale, à l'or */
.note { border-left: 2px solid var(--or); padding: 2px 0 2px 18px; }
.note p { font: 400 15px/1.75 var(--body-font); color: var(--ink-2); }
.note__label { font: 600 11px/1.6 var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--or-ink); }

/* Notes et crédits, en fin d'article — texte menu, en italique */
.notes { border-top: 1px solid var(--rule); padding-top: 18px; }
.article__body .notes { margin-top: var(--space-7); }
.notes .notes__label { margin-bottom: 12px; font: 600 10px/1 var(--body-font); letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); }
.notes p { margin-bottom: 0; font: italic 400 13.5px/1.7 var(--body-font); color: var(--ink-3); }
.notes p + p { margin-top: 10px; }
.notes a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

/* Résumé « En bref », en tête d'article */
.en-bref { background: var(--page-alt); border-left: 4px solid var(--rub); padding: 24px 26px; }
.en-bref__label { margin-bottom: 14px; font: 600 10px/1 var(--body-font); letter-spacing: .18em; text-transform: uppercase; color: var(--rub); }
.en-bref ul { margin: 0; padding-left: 1.1em; font: 400 16px/1.75 var(--body-font); color: var(--ink-2); }
.en-bref li + li { margin-top: 6px; }
.en-bref li::marker { color: var(--rub); }

/* Téléchargement d'un fichier */
.fichier {
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: inherit;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-commerce);
  padding: 18px 20px; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
}
.fichier + .fichier { margin-top: var(--space-3); }
.fichier:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); color: inherit; }
.fichier__type {
  flex: 0 0 auto; display: grid; place-items: center; width: 46px; height: 56px; border-radius: 4px;
  background: var(--rub-soft); color: var(--rub-ink);
  font: 600 10px/1 var(--body-font); letter-spacing: .1em; text-transform: uppercase;
}
.fichier__type--or { background: var(--or-soft); color: var(--or-ink); }
.fichier__body { flex: 1 1 200px; min-width: 0; }
.fichier__titre { display: block; font: 400 19px/1.35 var(--display-font); color: var(--ink); }
.fichier__detail { display: block; margin-top: 4px; font: 400 13px/1.5 var(--body-font); color: var(--ink-3); }
.fichier__action {
  flex: 0 0 auto; font: 600 11px/1 var(--body-font); letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); border-bottom: 1px solid var(--accent-line); padding-bottom: 4px;
}

/* ============================================================
   5 · Blocs propres au carnet
   ============================================================ */

/* Prière — encadré clair, centré, ornement de puces */
.priere { border: 1px solid var(--rub-line); background: var(--page); padding: 28px 30px; text-align: center; }
.priere__label { margin-bottom: 18px; font: 600 10px/1 var(--body-font); letter-spacing: .2em; text-transform: uppercase; color: var(--rub); }
.priere p { font: 300 21px/1.7 var(--display-font); font-style: italic; color: var(--ink); }
.priere__orn { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 20px; }
.priere__orn::before, .priere__orn::after { content: ""; width: 24px; height: 1px; background: var(--rub-line); }
.priere__orn span { width: 6px; height: 6px; border-radius: 50%; background: var(--rub); }

/* Témoignage — portrait + parole rapportée */
.temoignage {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
  background: var(--page-alt); border-left: 4px solid var(--rub); padding: 24px 26px;
}
.temoignage__portrait {
  flex: 0 0 56px; height: 56px; border-radius: 50%; overflow: hidden;
  background: var(--page-deep); box-shadow: 0 0 0 3px var(--rub-soft);
}
.temoignage__portrait img { width: 100%; height: 100%; object-fit: cover; }
.temoignage__body { flex: 1 1 240px; min-width: 0; }
.temoignage p { font: 400 18px/1.7 var(--display-font); font-style: italic; color: var(--ink); }
.temoignage cite { display: block; margin-top: 14px; font: 600 11px/1 var(--body-font); letter-spacing: .14em; text-transform: uppercase; color: var(--rub-ink); font-style: normal; }

/* Galerie — 2 à 4 images en ligne, légende commune */
.galerie__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.galerie__grid .frame { aspect-ratio: 3/4; }
.galerie--paysage .frame { aspect-ratio: 4/3; }
.galerie--carre .frame { aspect-ratio: 1/1; }

/* Séparateur — trois puces, respiration entre deux mouvements du texte */
.separateur { display: flex; justify-content: center; gap: 8px; padding-block: 14px; }
.separateur span { width: 6px; height: 6px; border-radius: 50%; }
.separateur span:nth-child(1) { background: #5E3470; }
.separateur span:nth-child(2) { background: #B47A6B; }
.separateur span:nth-child(3) { background: #E9B949; }

/* ============================================================
   6 · Impression
   ============================================================ */
@media print {
  .fichier__action, .encart__link { display: none; }
  .notes { break-inside: avoid; }
  .fichier, .tableau-riche, .priere { box-shadow: none; }
  .en-bref, .temoignage, .encart, .tableau-riche thead tr, .tableau-riche tbody tr:nth-child(even) { background: #fff; }
  .article__body .large, .article__body .pleine-largeur { margin-inline: 0; width: 100%; }
  .tableau-wrap { overflow: visible; }
  .liste > li, .liste-titree > li, .liste-num > li, .liste-num-titree > li,
  .tableau tr, .tableau-riche tr, .fichier { break-inside: avoid; }
}
