/* Bibliothèque « Modèles et checklists » (src/modeles) — charte « Le Pignon ». */
.mdl-page{max-width:1180px;margin:0 auto;padding:40px 24px 80px;color:var(--text)}
.mdl-page h1,.mdl-page h2{font-family:var(--font-display);color:var(--ink);letter-spacing:-.02em}
.mdl-hero{padding:24px 0 8px}.mdl-hero h1{font-size:var(--fs-h1);line-height:1.05;margin:12px 0 16px;max-width:16ch}
.mdl-lead{font-size:var(--fs-lead);line-height:1.65;max-width:70ch;color:var(--muted)}
.mdl-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:28px 0 0}
.mdl-stats div{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:16px 18px}
.mdl-stats dt{font-family:var(--font-display);font-size:34px;font-weight:700;color:var(--blue);line-height:1}
.mdl-stats dd{margin:6px 0 0;font-size:13px;color:var(--muted)}
.mdl-filters{position:sticky;top:0;z-index:5;background:color-mix(in srgb,var(--paper) 92%,transparent);backdrop-filter:blur(8px);display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;padding:16px 0;margin:28px 0 8px;border-bottom:1px solid var(--line)}
.mdl-filters label{display:flex;flex-direction:column;gap:6px;font-size:12px;font-weight:600;color:var(--ink-3)}
.mdl-filters input,.mdl-filters select{border:1px solid var(--line-strong);border-radius:10px;padding:11px 14px;font:inherit;font-size:15px;background:var(--surface);color:var(--ink)}
.mdl-filters input:focus-visible,.mdl-filters select:focus-visible{outline:2px solid var(--blue);outline-offset:1px}
.mdl-search{flex:1 1 320px}.mdl-search input{width:100%}
.mdl-chips{flex:1 1 100%;display:flex;gap:8px;overflow-x:auto;padding-bottom:4px;scrollbar-width:thin}
.mdl-chips button{flex:none;border:1px solid var(--line-strong);background:var(--surface);color:var(--ink-3);border-radius:999px;padding:7px 13px;font:inherit;font-size:13px;cursor:pointer;white-space:nowrap}
.mdl-chips button small{color:var(--muted);margin-left:4px}
.mdl-page .mdl-chips button[aria-pressed=true]{background:var(--blue);border-color:var(--blue);color:#fff;box-shadow:none}.mdl-chips button[aria-pressed=true] small{color:#dbe7ef}
.mdl-chips button:hover{border-color:var(--blue)}
.mdl-count{flex:1 1 100%;margin:0;font-size:13px;color:var(--muted);min-height:1em}
.mdl-popular,.mdl-group,.mdl-related{margin:36px 0}
.mdl-group h2,.mdl-popular h2,.mdl-related h2{font-size:24px;margin:0 0 14px;scroll-margin-top:200px}.mdl-group h2 small{font-size:14px;color:var(--muted);font-weight:500}
.mdl-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(270px,1fr));gap:14px}
.mdl-card{display:flex;flex-direction:column;gap:8px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none;transition:border-color .15s,transform .15s,box-shadow .15s}
.mdl-card:hover,.mdl-card:focus-visible{border-color:var(--blue);transform:translateY(-2px);box-shadow:0 14px 30px -18px rgba(22,36,42,.45)}
.mdl-card b{font-size:16px;line-height:1.35;color:var(--ink)}.mdl-card-text{font-size:14px;line-height:1.55;color:var(--muted);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.mdl-card-top{display:flex;gap:6px;flex-wrap:wrap}.mdl-chip{font-size:11px;font-weight:600;letter-spacing:.03em;text-transform:uppercase;color:var(--blue-strong);background:var(--blue-soft);border-radius:999px;padding:3px 9px}
.mdl-hot{color:var(--brick-strong);background:var(--brick-soft)}
.mdl-card-foot{margin-top:auto;display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;font-size:12px;color:var(--muted);border-top:1px solid var(--line);padding-top:10px}
.mdl-empty{padding:32px;text-align:center;color:var(--muted)}
.mdl-why{margin:56px 0 24px;background:var(--ink);color:var(--on-ink-strong);border-radius:22px;padding:40px}
.mdl-why h2{color:#fff;font-size:var(--fs-h2);max-width:22ch;margin:0 0 24px}
.mdl-why ul{list-style:none;padding:0;margin:0 0 28px;display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px}
.mdl-why li{display:flex;flex-direction:column;gap:6px;line-height:1.6;font-size:14px}.mdl-why li b{color:#fff;font-size:16px}
.mdl-why .btn.secondary{color:#fff;border-color:rgba(255,255,255,.4);background:transparent}
/* Fiche d'un modèle */
.mdl-crumbs{font-size:13px;color:var(--muted);margin-bottom:16px}.mdl-crumbs a{color:var(--blue)}
.mdl-model{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:24px 40px;align-items:start}
.mdl-model-head{grid-column:1/-1}.mdl-model-head h1{font-size:var(--fs-h1);line-height:1.08;margin:10px 0 14px;max-width:22ch}
.mdl-facts{list-style:none;padding:0;margin:20px 0 0;display:flex;flex-wrap:wrap;gap:10px}
.mdl-facts li{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:8px 12px;font-size:13px;display:flex;flex-direction:column;gap:2px}.mdl-facts b{font-size:11px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted);font-weight:600}
.mdl-cta{grid-column:2;grid-row:2/span 2;position:sticky;top:24px;background:var(--surface);border:1px solid var(--line);border-top:4px solid var(--brick);border-radius:16px;padding:20px;line-height:1.6;font-size:14px}
.mdl-cta-actions{display:flex;flex-direction:column;gap:10px;margin:14px 0 0}.mdl-cta-actions .btn{justify-content:center;text-align:center}
.mdl-toc{grid-column:1;background:var(--paper-2);border-radius:14px;padding:16px 20px;font-size:14px}.mdl-toc ol{margin:8px 0 0;padding-left:20px;columns:2;column-gap:24px}.mdl-toc a{color:var(--blue)}
.mdl-body{grid-column:1;min-width:0}
.mdl-body section{scroll-margin-top:24px;padding:8px 0 20px;border-bottom:1px solid var(--line)}
.mdl-body h2{font-size:26px;margin:20px 0 12px}
.mdl-body p,.mdl-body li{font-size:16px;line-height:1.75}.mdl-body ul,.mdl-body ol{padding-left:22px}.mdl-body li{margin:6px 0}
.mdl-pitfalls li::marker{content:'⚠ ';color:var(--brick)}
.mdl-deadlines li::marker{content:'⏱ '}
.mdl-steps-list{counter-reset:s;list-style:none;padding:0!important}
.mdl-steps-list li{counter-increment:s;position:relative;padding:4px 0 10px 46px}
.mdl-steps-list li::before{content:counter(s);position:absolute;left:0;top:4px;width:30px;height:30px;border-radius:50%;background:var(--blue);color:#fff;font-weight:700;font-size:14px;display:grid;place-items:center}
.mdl-faq{background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:10px 0;padding:0 18px}
.mdl-faq summary{cursor:pointer;font-weight:600;color:var(--ink);padding:14px 0;list-style-position:outside}.mdl-faq p{margin:0 0 16px}
.mdl-sources li small{color:var(--muted);margin-left:6px}.mdl-sources a{color:var(--blue)}
.mdl-note{font-size:14px!important;color:var(--muted);background:var(--paper-2);border-radius:10px;padding:12px 14px}
.mdl-model>.mdl-related,.mdl-model>.library-guidance{grid-column:1/-1}
@media(max-width:900px){.mdl-model{grid-template-columns:1fr}.mdl-cta{grid-column:1;grid-row:auto;position:static}.mdl-toc ol{columns:1}.mdl-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:560px){.mdl-page{padding:24px 16px 64px}.mdl-filters{position:static}.mdl-filters label:not(.mdl-search){flex:1 1 45%}.mdl-filters select{width:100%}.mdl-why{padding:28px 20px}.mdl-stats dt{font-size:28px}}

/* Page /documents : portail des documents de gestion locative (src/document-library.js). */
.dh{max-width:1200px;padding-top:36px}
.dh h1,.dh h2{font-family:var(--font-display);color:var(--ink);letter-spacing:-.025em}
.dh-hero{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,.75fr);gap:48px;align-items:center;padding:24px 0 40px}
.dh-hero h1{font-size:var(--fs-h1);line-height:1.04;margin:14px 0 18px;max-width:15ch}
.dh-lead{font-size:var(--fs-lead);line-height:1.65;color:var(--muted);max-width:60ch;margin:0}
.dh-search{display:flex;gap:8px;margin:28px 0 18px;max-width:620px;background:var(--surface);border:1px solid var(--line-strong);border-radius:999px;padding:6px 6px 6px 20px;box-shadow:0 18px 40px -28px rgba(22,36,42,.5)}
.dh-search:focus-within{border-color:var(--blue);box-shadow:0 0 0 3px var(--blue-soft),0 18px 40px -28px rgba(22,36,42,.5)}
.dh-search input{flex:1;min-width:0;border:0;background:transparent;font:inherit;font-size:16px;color:var(--ink);outline:none}
.dh-search .btn{flex:none}
.dh-trust{list-style:none;display:flex;flex-wrap:wrap;gap:8px 18px;padding:0;margin:0;font-size:13px;color:var(--muted)}
.dh-trust li{display:flex;align-items:center;gap:6px}.dh-trust li::before{content:'';width:16px;height:16px;border-radius:50%;background:var(--green-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%2313795b' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat}
.dh-hero-art{position:relative;height:380px}
.dh-sheet{position:absolute;inset:20px 30px 0 40px;background:#fff;border:1px solid var(--line);border-radius:6px;padding:28px 26px;display:flex;flex-direction:column;gap:11px;box-shadow:0 30px 60px -30px rgba(22,36,42,.45);transform:rotate(1.5deg)}
.dh-sheet-back{inset:0 60px 30px 10px;transform:rotate(-4deg);background:var(--paper-2);box-shadow:none}
.dh-sheet-brand{font-family:var(--font-display);font-weight:700;color:var(--ink);font-size:15px}.dh-sheet-brand i{color:var(--brick);font-style:normal}
.dh-sheet b{font-family:var(--font-display);font-size:17px;color:var(--ink);margin:6px 0 4px}
.dh-sheet-h{font-size:11px;font-weight:700;color:var(--blue);text-transform:uppercase;letter-spacing:.06em;margin-top:8px}
.dh-line{display:block;height:7px;border-radius:4px;background:var(--paper-2)}.w90{width:90%}.w85{width:85%}.w80{width:80%}.w70{width:70%}.w60{width:60%}
.dh-sheet-sign{display:flex;gap:24px;margin-top:auto}.dh-sheet-sign span{flex:1;height:34px;border-bottom:1.5px solid var(--line-strong)}
.dh-stamp{position:absolute;right:20px;bottom:64px;transform:rotate(-8deg);font-style:normal;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--green);border:2px solid var(--green);border-radius:8px;padding:6px 10px;background:rgba(255,255,255,.85)}
.dh-section{margin:48px 0}
.dh-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;flex-wrap:wrap;margin-bottom:18px}
.dh-head h2{font-size:clamp(1.6rem,2.6vw,2.25rem);margin:6px 0 0}.dh-head p{color:var(--muted);margin:8px 0 0;max-width:60ch}
.dh-head>a{color:var(--blue);font-weight:600;text-decoration:none}.dh-head>a:hover{text-decoration:underline}
.dh-cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:12px}
.dh-cat{display:flex;flex-direction:column;gap:6px;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:14px;color:inherit;text-decoration:none;transition:border-color .15s,transform .15s,box-shadow .15s}
.dh-cat:hover,.dh-cat:focus-visible{border-color:var(--blue);transform:translateY(-2px);box-shadow:0 14px 28px -20px rgba(22,36,42,.5)}
.dh-cat-icon{width:40px;height:40px;border-radius:11px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center;transition:background .15s,color .15s}.dh-cat:hover .dh-cat-icon{background:var(--blue);color:#fff}
.dh-cat b{font-size:15px;line-height:1.35;color:var(--ink)}.dh-cat small{font-size:12px;color:var(--muted)}
.dh-popular{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 32px;background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:8px 24px}
.dh-pop{display:grid;grid-template-columns:44px 1fr 24px;gap:14px;align-items:center;padding:18px 0;border-bottom:1px solid var(--line);color:inherit;text-decoration:none}
.dh-pop:nth-last-child(-n+2){border-bottom:0}
.dh-pop b{display:block;color:var(--ink);font-size:15px}.dh-pop small{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:13px;color:var(--muted);line-height:1.5;margin-top:3px}
.dh-rank{font-family:var(--font-display);font-size:22px;font-weight:700;color:var(--line-strong)}
.dh-arrow{color:var(--blue);font-weight:700;transition:transform .15s}.dh-pop:hover .dh-arrow,.dh-tool:hover .dh-arrow{transform:translateX(4px)}
.dh-pop:hover b{color:var(--blue)}
.dh-generator{background:var(--paper-2);border-radius:24px;padding:36px}
.dh-steps{list-style:none;display:flex;gap:18px;padding:0;margin:0;font-size:13px;font-weight:600;color:var(--ink-3)}
.dh-steps li{display:flex;align-items:center;gap:8px}.dh-steps b{width:26px;height:26px;border-radius:50%;background:var(--ink);color:#fff;display:grid;place-items:center;font-size:12px}
.dh .dh-templates{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:8px 0 24px}
.dh .dh-templates button{display:grid;grid-template-columns:auto 1fr;grid-template-rows:auto auto;column-gap:10px;row-gap:3px;align-items:start;text-align:left;padding:14px;border-radius:12px;background:var(--surface);border:1px solid var(--line);font-size:13px}
.dh .dh-templates button span{grid-row:1/span 2;font-weight:700;color:var(--line-strong)}
.dh .dh-templates button b{color:var(--ink);font-size:14px}.dh .dh-templates button small{color:var(--muted);font-size:12px;line-height:1.45}
.dh .dh-templates button[aria-pressed=true]{border-color:var(--blue);background:var(--surface);box-shadow:inset 0 0 0 1px var(--blue),0 10px 24px -18px rgba(36,94,134,.8)}
.dh .dh-templates button[aria-pressed=true] span,.dh .dh-templates button[aria-pressed=true] b{color:var(--blue)}
.dh-tools{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.dh-tool{position:relative;display:flex;flex-direction:column;gap:8px;padding:22px 22px 44px;background:var(--ink);color:var(--on-ink-strong);border-radius:16px;text-decoration:none;line-height:1.55;font-size:14px}
.dh-tool b{color:#fff;font-size:17px;font-family:var(--font-display)}.dh-tool .dh-arrow{position:absolute;left:22px;bottom:18px;color:var(--brick-light)}
.dh-tool:hover{background:var(--ink-2)}
.dh-cta{display:flex;justify-content:space-between;align-items:center;gap:28px;flex-wrap:wrap;background:var(--blue);color:#e4eef4;border-radius:24px;padding:40px;margin:56px 0 24px}
.dh-cta h2{color:#fff;font-size:clamp(1.6rem,2.6vw,2.25rem);margin:0 0 8px;max-width:22ch}.dh-cta p{margin:0;max-width:56ch;line-height:1.6}
.dh-cta p:last-child{display:flex;gap:10px;flex-wrap:wrap}.dh-cta .btn.secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.5)}
@media(max-width:1000px){.dh-hero{grid-template-columns:1fr}.dh-hero-art{display:none}.dh .dh-templates{grid-template-columns:repeat(2,minmax(0,1fr))}.dh-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){.dh-popular{grid-template-columns:1fr;padding:4px 16px}.dh-pop:nth-last-child(2){border-bottom:1px solid var(--line)}.dh-generator{padding:22px 16px;border-radius:18px}.dh .dh-templates{grid-template-columns:1fr}.dh-tools{grid-template-columns:1fr}.dh-cta{padding:28px 22px}.dh-search{border-radius:16px;flex-direction:column;padding:10px}.dh-search input{padding:6px 4px}.dh-steps{flex-wrap:wrap}}
.mdl-group h2{display:flex;align-items:center;gap:12px}.mdl-icon{width:38px;height:38px;flex:none;border-radius:10px;background:var(--blue-soft);color:var(--blue);display:grid;place-items:center}
.document-library.dh .dh-cta{background:var(--ink);background-image:radial-gradient(circle at 90% 10%,rgba(242,165,121,.18),transparent 45%);color:var(--on-ink-strong)}.document-library.dh .dh-cta .btn.secondary{background:transparent;color:#fff;border-color:rgba(255,255,255,.55)}
