/* Modèles de documents à télécharger : pages articles/modele-*.html (audit SEO du 03/12/2026).
   Aperçu du document dans la page, entre les marqueurs <!-- modele:start … --> et <!-- modele:end -->.
   Les fichiers Word et PDF de public/modeles/ et les images des pages en sont tirés par
   scripts/modeles_export.py, qui réutilise cette feuille pour les PDF (--md-fs plus petit). */

.modele-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 1rem 0 1.25rem; }
.modele-actions .btn { text-decoration: none !important; }

.modele-doc {
	--md-fs: 15px;
	background: var(--c-surface, #fff);
	border: 1px solid var(--c-line, #e1eae6);
	border-radius: var(--r-md, 20px);
	box-shadow: 0 6px 20px rgba(18, 64, 60, .06);
	padding: 32px 36px;
	margin: 1.5rem 0 2.5rem;
	color: var(--c-ink, #15302d);
	font-size: var(--md-fs);
	line-height: 1.55;
}
.article-content .modele-doc p,
.article-content .modele-doc li { font-size: var(--md-fs); line-height: 1.55; margin: 0 0 .5em; color: var(--c-ink, #15302d); }
.article-content .modele-doc .md-title { font-size: calc(var(--md-fs) * 1.35) !important; line-height: 1.3; text-align: center; margin: 0 0 .25em !important; color: var(--c-ink, #15302d) !important; }
.article-content .modele-doc .md-sub { text-align: center; font-size: calc(var(--md-fs) * .85); color: var(--c-ink-soft, #4a6662); margin: 0 0 1.25em; }
.article-content .modele-doc h3 { font-size: calc(var(--md-fs) * 1.07) !important; margin: 1.35em 0 .5em !important; padding-bottom: .25em; border-bottom: 1px solid var(--c-line, #e1eae6); }
.modele-doc ul { list-style: disc; margin: 0 0 .5em 1.25em; padding: 0; }
.modele-doc .md-note { font-size: calc(var(--md-fs) * .85) !important; color: var(--c-ink-soft, #4a6662) !important; font-style: italic; }

/* Champs à remplir */
.md-blank { display: inline-block; min-width: 9em; height: 1.1em; vertical-align: -.25em; margin: 0 .25em; border-bottom: 1px dotted var(--c-line-strong, #6f8a85); }
.md-blank.md-short { min-width: 4.5em; }
.md-blank.md-long { min-width: 18em; }
.md-line { margin: 0 !important; }
.md-blank.md-full { display: block; width: 100%; min-width: 0; height: 1.9em; margin: 0; }

/* Signatures */
.md-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 1em 0; }
.md-sign > div { border: 1px dashed var(--c-line-strong, #6f8a85); border-radius: 12px; padding: .75em 1em; min-height: 8em; }

/* Tableaux (registre, budget) */
.md-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: .5em 0 1em; }
.article-content .modele-doc .md-table { display: table; width: 100%; border-collapse: collapse; border: none; border-radius: 0 !important; font-size: calc(var(--md-fs) * .8); }
.article-content .modele-doc .md-table th,
.article-content .modele-doc .md-table td { border: 1px solid var(--c-line-strong, #6f8a85) !important; padding: .4em .5em; text-align: left; vertical-align: top; }
.article-content .modele-doc .md-table th { background: var(--c-accent-soft, #e5eff9) !important; font-weight: 700; line-height: 1.3; }
.modele-doc .md-table td { height: 2.4em; }
.modele-doc .md-budget td { height: auto; font-size: var(--md-fs); }
.modele-doc .md-budget td:last-child { width: 8em; white-space: nowrap; }
.modele-doc .md-table:not(.md-budget) { min-width: 900px; }

/* Deuxième version d'un modèle (certificat : version chat) */
.modele-details { margin: 0 0 2.5rem; }
.modele-details > summary { cursor: pointer; font-weight: 700; color: var(--c-accent, #2a6fb0); padding: .75rem 0; }
.modele-details > .modele-doc { margin-top: .5rem; }

@media (max-width: 640px) {
	.modele-doc { --md-fs: 14px; padding: 20px 16px; }
	.md-sign { grid-template-columns: 1fr; }
	.md-blank.md-long { min-width: 12em; }
}
