/* Échelle typographique unique du site Tilou — une taille par niveau, pour téléphone (390 px) → ordinateur (1280 px).
   Chargée en dernier sur chaque page : elle prime sur les réglages propres à chaque page. */
:root{
  --t-page:clamp(34px, 26.11px + 2.022vw, 52px);      /* titre principal de la page (h1) */
  --t-section:clamp(26px, 21.62px + 1.124vw, 36px);   /* titre de section (h2) */
  --t-bloc:clamp(21px, 18.81px + 0.562vw, 26px);      /* titre de bloc (h3) */
  --t-carte:clamp(19px, 18.12px + 0.225vw, 21px);     /* titre de carte, d'encadré (h4) */
  --t-chapeau:clamp(18px, 16.69px + 0.337vw, 21px);   /* texte d'introduction sous un titre */
  --t-texte:clamp(17px, 16.56px + 0.112vw, 18px);     /* texte courant */
  --t-petit:16px;            /* texte secondaire, texte de carte */
  --t-note:15px;             /* notes, sources, mentions */
}
main h1{font-size:var(--t-page)!important;line-height:1.12!important;margin:0 0 .35em!important}
main h2{font-size:var(--t-section)!important;line-height:1.18!important;margin-bottom:.45em!important}
main h3{font-size:var(--t-bloc)!important;line-height:1.22!important;margin-bottom:.4em!important}
main h4,
main a.o h2, main .ab-carte h2, main .kit-guide h2, main .pv-guide h2, main .pv-boite h2, main .pv-mes-h h2,
main .editrice h2, main aside.k-adultes h2, main .k-carte h3, main summary h3{font-size:var(--t-carte)!important;line-height:1.25!important;margin-bottom:.35em!important}
main p.intro, main p.chapeau, main p.k-chapeau{font-size:var(--t-chapeau)!important;line-height:1.5!important}
main p:not([class]), main li, main p.desc, main p.public{font-size:var(--t-texte)!important;line-height:1.6!important}
main p:not([class]){margin:0 0 .85em!important}
main p:not([class]):last-child{margin-bottom:0!important}
main p.mini, main .carte p, main a.o p, main .k-carte p:not([class]), main aside.k-adultes p, main details p:not([class]){font-size:var(--t-petit)!important;line-height:1.5!important}
main p.source, main p.avert, main p.ab-note, main p.ab-equiv, main p.ab-pour, main p.fiche-note, main p.pp-note,
main p.pv-note-abo, main p.compte, main p.serie, main p.astuce-lbl{font-size:var(--t-note)!important;line-height:1.45!important}

/* Espacements réguliers : un texte ne colle jamais à une liste ou au paragraphe précédent */
main :is(p,ul,ol) + :is(ul,ol){margin-top:.5em!important}
main :is(ul,ol) + p:not(.zz), main p + p[class]:not(.ligne-titre):not(.papier-titre):not(.partie-nom){margin-top:.85em!important}
main li + li{margin-top:.3em}
main :is(p,ul,ol,div) + p:not([class]):not(.zz){margin-top:.85em!important}
