/*
  apps/_shared/static/css/zb-refonte-placements.css
  -------------------------------------------------
  LES PAGES DE LECTURE DE LA REFONTE ZB (19/11/2026) : fiches des placements,
  guide « Comprendre le crowdfunding », guide Tudigo, accueil des placements
  et page d'une famille. Sur la PREPROD SEULEMENT (bascule `zb_refonte`) :
  la feuille n'est chargée que par les gabarits `refonte/`.

  Complète la feuille de la maquette (`zb-refonte-accueil.css`, générée par
  `MD Projets/refonte-zb/gen_css_accueil.py`, à ne pas toucher à la main) :
  CANTONNÉE À `.zbr`, aucune couleur écrite (les variables de la maquette),
  pour les blocs de `refonte/_briques_lecture.html` et le texte écrit avec les
  classes communes (`.m-prose`, `.m-tableau`) que ces pages portent.
*/

/* ── Les pages-guides : le cadre PLEINE LARGEUR des pages validées
   (`refonte/_cadre_lecture.html`, 25/11/2026 : « je t'interdis de faire des
   trucs à 25 % ou 50 % »). Les enveloppes communes que le texte des guides
   porte (`m-page`, `m-avec-sommaire`) ne dessinent plus rien. ── */
.zbr.page-guide .m-page,
.zbr.page-guide .m-avec-sommaire,
.zbr.page-guide .m-avec-sommaire>div,
.zbr.page-guide .m-flux{display:block;max-width:none;width:auto;margin:0;padding:0}
/* Les parties se suivent bord à bord, comme sur les pages validées : le
   rythme commun de `m-flux` (48 px entre deux blocs) coupait la marge. */
.zbr.page-guide .m-flux>*+*{margin-top:0}

/* Le texte long (`_briques_lecture.texte_long`) : ses intertitres dans le
   dessin des titres de partie (`.tete-bloc h2`). */
.zbr .texte-long .m-prose h2{font-family:var(--serif);font-weight:900;font-size:clamp(26px,2.4vw,34px);line-height:1.1;letter-spacing:-.02em;margin:1.4em 0 .5em}
.zbr .texte-long .m-prose h2:first-child{margin-top:.8em}

/* Le texte d'une partie (`.texte-guide`, `_briques_lecture.section`) : aux
   marges des briques (`var(--m)`, celle de `.tete-bloc`). Les briques
   (chiffres, alertes, listes, liens de suite) portent les leurs. */
.zbr .texte-guide{padding-bottom:14px}
.zbr .texte-guide>:is(.m-prose,.m-journal,.m-choix,.m-figure,p,ul:not([class]),ol:not([class]),div:not([class])){padding-inline:var(--m)}
.zbr .texte-guide .m-prose{max-width:none}
.zbr .texte-guide>:is(.cf-alertes,.liste-enq){margin:0}
.zbr .texte-guide>.stats3,.zbr .texte-guide>.stats4,.zbr .texte-guide>.cf-alertes{margin-bottom:18px}
.zbr .texte-guide>.liste-enq{border-top:1px solid var(--trait-fin)}
.zbr .texte-guide .alerte-l p{font-family:var(--sans);font-size:16px;line-height:1.6}

/* Un encadré dans une colonne déjà bordée (`placements_famille.html`). */
.zbr .pad-lecture .alerte-l{padding-inline:0}

/* Le texte (`.m-prose`) : même typographie que la page d'une actu (`.texte--actu`) */
.zbr .texte-guide .m-prose p{font-size:19px;line-height:1.72;margin-bottom:1.15em}
.zbr .texte-guide .m-prose a{border-bottom:1px solid var(--rose)}
.zbr .texte-guide .m-prose a:hover{color:var(--rose)}
.zbr .texte-guide .m-prose ul,.zbr .texte-guide .m-prose ol{margin:0 0 1.15em 1.2em;font-size:19px;line-height:1.6}
.zbr .texte-guide .m-prose ul{list-style:disc}
.zbr .texte-guide .m-prose ol{list-style:decimal}
.zbr .texte-guide .m-prose li{margin-bottom:.4em}
.zbr .texte-guide .m-prose strong{font-weight:700}
.zbr .texte-guide .m-prose h3,.zbr .texte-guide .m-section__titre{font-family:var(--serif);font-weight:900;font-size:22px;line-height:1.2;margin:1.2em 0 .5em}
.zbr .lien-source{border-bottom:0!important;color:var(--gris);font-weight:500}
.zbr .lien-source:hover{color:var(--rose)}

/* ── Les tableaux du texte (classes communes) dans le dessin de `.tableau` ── */
.zbr .texte-guide .m-tableau{width:calc(100% - 2 * var(--m));border-collapse:collapse;font-size:15px;margin:4px var(--m) 26px;border:0;border-radius:0;background:none}
.zbr .texte-guide .m-tableau th{font-size:12px;font-weight:700;color:var(--gris);text-align:left;padding:10px 12px;border-bottom:1px solid var(--filet);background:none;vertical-align:bottom}
.zbr .texte-guide .m-tableau thead th{font-family:var(--sans);text-transform:none;letter-spacing:0}
.zbr .texte-guide .m-tableau tbody th{font-family:var(--serif);font-size:16px;color:var(--encre);vertical-align:top;border-bottom:1px solid var(--trait-fin)}
.zbr .texte-guide .m-tableau td{padding:9px 12px;border-bottom:1px solid var(--trait-fin);vertical-align:top;line-height:1.45}
.zbr .texte-guide .m-tableau tbody tr:last-child>*{border-bottom:0}
@media (max-width:640px){
  .zbr .texte-guide .m-tableau--fiches tbody tr{border:0;border-top:1px solid var(--filet);border-radius:0;background:none;padding:10px 0;margin:0}
  .zbr .texte-guide .m-tableau--fiches td,.zbr .texte-guide .m-tableau--fiches tbody th{border:0;padding:4px 0}
}

/* ── Précédent / suivant (le bas commun, `refonte/_bas_enquete.html`) ── */
.zbr .precsuiv>span+a{text-align:right;border-left:1px solid var(--trait-fin);padding-left:20px}

/* ── Les listes de fiches (accueil des placements, famille) ── */
.zbr .enq-l .enq-n{font-family:var(--mono);font-size:12px;color:var(--gris)}
.zbr .liste-placements .enq-ch b{font-family:var(--serif);font-weight:900;font-size:30px;display:block;text-align:right}
.zbr .liste-placements .enq-ch small{display:block;font-size:12px;color:var(--gris);text-align:right}
.zbr .pad-lecture{padding:0 var(--m) 30px;max-width:760px}

@media (max-width:900px){
  .zbr .enq-l .enq-n{grid-row:1}
  .zbr .liste-placements .enq-ch b,.zbr .liste-placements .enq-ch small{text-align:left}
}
/* ── Le guide Tudigo : ses sections écrites en classes communes, aux marges
   du cadre, titrées comme `.tete-bloc` ── */
.zbr.page-guide .m-section--partie{border-top:1px solid var(--filet);padding:26px var(--m) 30px;margin:0}
.zbr.page-guide .m-section--partie .m-section--partie{padding-inline:0}
.zbr.page-guide .m-avec-sommaire>.sur-page+div>.m-section--partie:first-child,.zbr.page-guide .m-flux>.m-section--partie:first-child{border-top:0}
.zbr.page-guide .m-section__titre{font-family:var(--serif);font-weight:900;font-size:clamp(24px,2.6vw,30px);line-height:1.15;letter-spacing:-.01em}
.zbr.page-guide .m-carte{border-radius:0;min-width:0}
.zbr.page-guide .m-carte .m-lignes li{flex-wrap:wrap}
.zbr.page-guide .m-carte .m-lignes__valeur{white-space:normal;min-width:0}
.zbr.page-guide .m-tableau:not(.m-tableau--fiches){display:block;max-width:100%;overflow-x:auto}
.zbr.page-guide>.g>.cadre>.m-page>.m-note{padding:16px var(--m);margin:0;font-size:14px;color:var(--gris)}
.zbr .verdict--page a{border-bottom:1px solid var(--rose)}
.zbr .verdict--page a:hover{color:var(--rose)}

@media (max-width:640px){
  .zbr .precsuiv>span{display:none}
  .zbr .precsuiv>span+a{text-align:left;border-left:0;padding-left:0}
  .zbr .texte-guide .m-prose p,.zbr .texte-guide .m-prose ul,.zbr .texte-guide .m-prose ol{font-size:17px}
}
/* Le guide Tudigo : ses grandes parties ont le titre des autres pages
   (`tete-bloc`), ses sous-parties un titre plus petit (25/11/2026). */
.zbr.page-guide .m-section--partie>.m-section__titre{font-size:clamp(28px,3vw,42px);line-height:1.05;letter-spacing:-.02em}
.zbr.page-guide .m-section--partie .m-section--partie>.m-section__titre,
.zbr.page-guide .m-section--partie .m-section--partie .m-section__titre{font-size:clamp(20px,2vw,26px)}
