/*
 * LaMortaise.com : escalier, rampe et garde-corps (prototype local, 2 déc. 2026). Chargé après lm-calc-commun.css et lm-calc-blocs.css.
 * Couleurs de la charte seulement ; exceptions § 6.12 nos 2, 3, 5 et 6 étendues à ce calculateur (David, 2 déc. 2026).
 * Produire lm-calc-escalier.css avec : python3 ../calculateurs-v18/generer-correctif-theme-pmp.py lm-calc-escalier-source.css lm-calc-escalier.css
 */
.lm-calc [hidden] { display: none !important; }
.lm-calc-ong-projet { margin: 0 0 8px; }
.lm-calc.lm-calc-esc .lm-calc-ong-panneau > .lm-calc-champ { margin-bottom: 16px; }
/* sous-titres des résultats (mêmes valeurs qu'au PMP) */
.lm-calc-sous-titre { margin: 20px 0 6px; font-family: Kreon, Georgia, serif; font-size: 18px; color: #2F5B7C; }
@container (min-width: 640px) {
  .lm-calc-ong-projet { max-width: 320px; }
}
/* gros résultats (mêmes valeurs que les angles d'onglet, charte § 6.12 no 2) */
.lm-calc-ong-reglages { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 0 0 12px; }
@container (min-width: 640px) {
  .lm-calc-ong-reglages { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lm-calc .lm-calc-ong-gros strong.lm-esc-long { font-size: 36px; }
}
.lm-calc-ong-gros { border: 1px solid #E4E1DB; border-radius: 8px; background: #F2F1EE; padding: 12px 10px; text-align: center; }
.lm-calc-ong-gros span { display: block; font-size: 14px; line-height: 1.4; color: #5B5A57; }
.lm-calc-ong-gros strong { display: block; font-family: Kreon, Georgia, serif; font-size: 44px; font-weight: 600; line-height: 1.15; color: #2F5B7C; }
.lm-calc .lm-calc-ong-gros small { font-family: Kreon, Georgia, serif; font-size: 22px; font-weight: 600; color: #2F5B7C; }
@container (max-width: 359px) {
  .lm-calc-ong-gros strong { font-size: 36px; }
}
/* liste de contrôle du Code : critère à gauche, état à droite */
.lm-calc .lm-esc-controle .lm-esc-detail { display: block; font-weight: 400; font-size: 14px; line-height: 1.4; color: #5B5A57; }
.lm-calc .lm-esc-controle .lm-esc-etat { text-align: right; font-weight: 600; }
.lm-calc .lm-esc-controle .lm-esc-hors { color: #8C1D13; }
@container (max-width: 479px) {
  .lm-calc .lm-esc-controle .lm-calc-rang { display: block; }
  .lm-calc .lm-esc-controle .lm-esc-etat { text-align: left; margin-top: 4px; }
  .lm-calc .lm-esc-valeurs .lm-calc-rang { display: block; }
  .lm-calc .lm-esc-valeurs dd { text-align: left; font-weight: 400; margin-top: 4px; }
}
/* valeurs du Code : une valeur par ligne */
.lm-calc .lm-esc-valeurs dd span { display: block; }
/* tableaux courts (repères, valeurs du Code) : l'allure vient du tableau du site (table-defilement), seule la taille du texte change */
.lm-calc .lm-esc-table td, .lm-calc .lm-esc-table th { font-size: 14px; line-height: 1.4; }
/* dessins */
.lm-calc-ong-svg .esc-forme { fill: #F2F1EE; stroke: #2F5B7C; stroke-width: 2; stroke-linejoin: round; }
.lm-calc-ong-svg .esc-palier { fill: #E4E1DB; stroke: #2F5B7C; stroke-width: 2; stroke-linejoin: round; }
.lm-calc-ong-svg .esc-plancher { fill: #E4E1DB; stroke: #26292C; stroke-width: 1.2; }
.lm-calc-ong-svg .esc-profil { fill: none; stroke: #2F5B7C; stroke-width: 2.5; stroke-linejoin: round; }
.lm-calc-ong-svg .esc-sol { fill: none; stroke: #26292C; stroke-width: 2; }
.lm-calc-ong-svg .esc-nez { fill: none; stroke: #4A7295; stroke-width: 1.5; stroke-dasharray: 6 5; }
.lm-calc-ong-svg .esc-ligne { fill: none; stroke: #2F5B7C; stroke-width: 1.2; }
.lm-calc-ong-svg .esc-fleche { fill: none; stroke: #26292C; stroke-width: 1.5; }
.lm-calc-ong-svg .esc-tremie { fill: #4A7295; fill-opacity: 0.22; stroke: #26292C; stroke-width: 1.5; stroke-dasharray: 7 4; }
.lm-calc-ong-svg .esc-poteau { fill: #2F5B7C; stroke: #2F5B7C; }
.lm-calc-ong-svg .esc-barreau { fill: #4A7295; stroke: none; }
/* feuille imprimée */
#lm-calc-impression .lm-esc-i-apres { margin-top: 2mm; }
#lm-calc-impression .lm-calc-i-reglages { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 4mm; break-inside: avoid; page-break-inside: avoid; }
#lm-calc-impression .lm-calc-i-reglages div { border: 1.5pt solid #000; padding: 2mm; text-align: center; }
#lm-calc-impression .lm-calc-i-reglages span { display: block; font-size: 10pt; }
#lm-calc-impression .lm-calc-i-reglages strong { display: block; font-family: Kreon, Georgia, serif; font-size: 34pt; font-weight: 600; line-height: 1.15; }
#lm-calc-impression .lm-calc-i-reglages strong.lm-esc-long { font-size: 28pt; }
#lm-calc-impression .lm-calc-i-reglages small { font-size: 16pt; margin-left: 1mm; }
#lm-calc-impression .lm-esc-i-legende { text-align: center; }
#lm-calc-impression .lm-esc-i-groupes th, #lm-calc-impression .lm-esc-i-groupes td { font-size: 8.5pt; padding-right: 1mm; }
#lm-calc-impression .lm-esc-i-groupes th:nth-child(3n+4), #lm-calc-impression .lm-esc-i-groupes td:nth-child(3n+4) { border-left: 1pt solid #000; padding-left: 3mm; }
#lm-calc-impression .lm-calc-i-dessin { margin: 3mm 0; break-inside: avoid; page-break-inside: avoid; }
#lm-calc-impression .lm-calc-i-dessin svg { width: 100%; max-width: 130mm !important; max-height: 75mm; }
#lm-calc-impression .lm-calc-i-dessin .esc-forme, #lm-calc-impression .lm-calc-i-dessin .esc-palier, #lm-calc-impression .lm-calc-i-dessin .esc-plancher { fill: #fff; stroke: #000; }
#lm-calc-impression .lm-calc-i-dessin .esc-profil, #lm-calc-impression .lm-calc-i-dessin .esc-sol, #lm-calc-impression .lm-calc-i-dessin .esc-nez, #lm-calc-impression .lm-calc-i-dessin .esc-ligne, #lm-calc-impression .lm-calc-i-dessin .esc-fleche, #lm-calc-impression .lm-calc-i-dessin .ong-cote { stroke: #000; }
#lm-calc-impression .lm-calc-i-dessin .esc-tremie { fill: #000; fill-opacity: 0.12; stroke: #000; }
#lm-calc-impression .lm-calc-i-dessin .esc-poteau, #lm-calc-impression .lm-calc-i-dessin .esc-barreau { fill: #000; stroke: none; }
#lm-calc-impression .lm-calc-i-dessin .ong-texte { fill: #000; font-size: 17px; }

/* ---- Correctif du thème (v15, 14 nov. 2026) : theme.13.css impose en !important police, 17 px, interligne 1,7, graisse 400 et couleur à f, li, p, span et td
   du texte d'un article, h2 à 28 px et h3 à 22 px, les marges des p, h2 et h3, l'alignement des div et p. Ces éléments reprennent ceux du calculateur (inherit) puis les règles du
   calculateur qui fixent ces propriétés sont reprises ici en !important, préfixées pour être plus précises que celles du thème. Bloc produit par generer-correctif-theme-pmp.py : mêmes valeurs, aucune nouvelle couleur. ---- */
article.uk-article [property="text"] .lm-calc p, article.uk-article [property="text"] .lm-calc span, article.uk-article [property="text"] .lm-calc li, article.uk-article [property="text"] .lm-calc td { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: inherit !important; }
article.uk-article [property="text"] .lm-calc p { margin: 0 0 0.8em !important; }
article.uk-article [property="text"] .lm-calc .lm-calc-ong-projet { margin: 0 0 8px !important; }
article.uk-article [property="text"] .lm-calc.lm-calc-esc .lm-calc-ong-panneau > .lm-calc-champ { margin-bottom: 16px !important; }
article.uk-article [property="text"] .lm-calc .lm-calc-sous-titre { margin: 20px 0 6px !important; font-family: Kreon, Georgia, serif !important; font-size: 18px !important; color: #2F5B7C !important; }
article.uk-article [property="text"] .lm-calc .lm-calc-ong-reglages { margin: 0 0 12px !important; }
@container (min-width: 640px) {
  article.uk-article [property="text"] .lm-calc .lm-calc-ong-gros strong.lm-esc-long { font-size: 36px !important; }
}
article.uk-article [property="text"] .lm-calc .lm-calc-ong-gros { text-align: center !important; }
article.uk-article [property="text"] .lm-calc .lm-calc-ong-gros span { font-size: 14px !important; line-height: 1.4 !important; color: #5B5A57 !important; }
article.uk-article [property="text"] .lm-calc .lm-calc-ong-gros strong { font-family: Kreon, Georgia, serif !important; font-size: 44px !important; font-weight: 600 !important; line-height: 1.15 !important; color: #2F5B7C !important; }
article.uk-article [property="text"] .lm-calc .lm-calc-ong-gros small { font-family: Kreon, Georgia, serif !important; font-size: 22px !important; font-weight: 600 !important; color: #2F5B7C !important; }
@container (max-width: 359px) {
  article.uk-article [property="text"] .lm-calc .lm-calc-ong-gros strong { font-size: 36px !important; }
}
article.uk-article [property="text"] .lm-calc .lm-esc-controle .lm-esc-detail { font-weight: 400 !important; font-size: 14px !important; line-height: 1.4 !important; color: #5B5A57 !important; }
article.uk-article [property="text"] .lm-calc .lm-esc-controle .lm-esc-etat { text-align: right !important; font-weight: 600 !important; }
article.uk-article [property="text"] .lm-calc .lm-esc-controle .lm-esc-hors { color: #8C1D13 !important; }
@container (max-width: 479px) {
  article.uk-article [property="text"] .lm-calc .lm-esc-controle .lm-esc-etat { text-align: left !important; margin-top: 4px !important; }
  article.uk-article [property="text"] .lm-calc .lm-esc-valeurs dd { text-align: left !important; font-weight: 400 !important; margin-top: 4px !important; }
}
article.uk-article [property="text"] .lm-calc .lm-esc-table td, article.uk-article [property="text"] .lm-calc .lm-esc-table th { font-size: 14px !important; line-height: 1.4 !important; }
