/* Lattis : carnet de chantier. Polices système uniquement, aucune ressource externe. */
:root {
  --ink: #1f2a24; --muted: #4b574f; --paper: #f6f0e4; --card: #fffaf0; --line: #d8cbb0; --sand: #e9dcc2;
  --spruce: #214a3c; --spruce-d: #17352b; --rust: #9a3f17; --rust-d: #7e3210; --focus: #0b5ed7;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --w: 1120px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.65 var(--sans); overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--rust-d); text-underline-offset: 3px; }
a:hover { color: var(--spruce); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--serif); line-height: 1.2; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.6vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 1.85rem); margin-top: 1.6em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--card); color: var(--ink); padding: 10px 16px; z-index: 100; border: 2px solid var(--ink); }
.skip:focus { top: 10px; }

/* En-tête */
.top { background: var(--spruce); border-bottom: 5px solid var(--rust); position: relative; z-index: 20; }
.top-in { max-width: var(--w); margin: 0 auto; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; position: relative; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo .wm { font: 700 1.55rem/1 var(--serif); letter-spacing: .02em; color: inherit; }
.logo img { border-radius: 8px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.nav a, .menu summary { color: #fff; text-decoration: none; padding: 8px 12px; border-radius: 6px; font-weight: 600; font-size: .98rem; cursor: pointer; display: block; }
.nav a:hover, .menu summary:hover { background: var(--spruce-d); color: #fff; }
.menu { position: relative; }
.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary::after { content: " ▾"; }
.menu[open] summary { background: var(--spruce-d); }
.menu-panel { position: absolute; right: 0; top: calc(100% + 6px); background: var(--card); border: 2px solid var(--ink); box-shadow: 6px 6px 0 var(--ink); min-width: 240px; padding: 8px; z-index: 30; display: grid; gap: 2px; }
.menu-panel a { color: var(--ink); font-weight: 500; }
.menu-panel a:hover { background: var(--sand); color: var(--ink); }

/* Structure commune */
#contenu > main { display: block; }
main > section:not(.hero), main > article, main > div { max-width: var(--w); margin-left: auto; margin-right: auto; padding-left: 20px; padding-right: 20px; }
.band { padding-top: 8px; padding-bottom: 20px; }
.band > h2:first-child { margin-top: 1em; }
.note { color: var(--muted); font-size: .96rem; }
.rnote { color: var(--muted); font-size: .92rem; margin-top: .75em; }

/* Héros */
.hero { background: var(--spruce); color: #fff; position: relative; padding: 0 0 36px; }
.hero:not(.small) { clip-path: polygon(0 0, 100% 0, 100% calc(100% - 28px), 50% 100%, 0 calc(100% - 28px)); padding-bottom: 80px; }
.hero-in { max-width: var(--w); margin: 0 auto; padding: 52px 20px 8px; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.hero-text, .hero-art { min-width: 0; }
.hero h1 { color: #fff; }
.hero .lead { color: #f0e8d6; font-size: 1.12rem; max-width: 60ch; }
.eyebrow { color: var(--sand); font-size: .88rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-art { width: 100%; max-width: 380px; justify-self: center; }
.hero .byline { color: #e6dcc4; }
.hero .byline a { color: #fff; }
.figures { list-style: none; margin: 0 auto; padding: 0 20px; max-width: var(--w); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.figures li { border-top: 3px solid var(--rust); padding-top: 8px; }
.figures b { display: block; font: 700 2rem/1.1 var(--serif); color: #fff; }
.figures span { color: var(--sand); font-size: .92rem; }
.hero.small { background: var(--card); color: var(--ink); max-width: var(--w); margin: 28px auto 8px; padding: 24px 28px 20px; border: 1px solid var(--line); border-left: 10px solid var(--c, var(--spruce)); box-shadow: 6px 6px 0 var(--sand); width: calc(100% - 40px); }
.hero.small h1 { color: var(--ink); margin-bottom: .35em; }
.hero.small .lead { color: var(--muted); font-size: 1.05rem; max-width: 70ch; }
.hero.small .byline, .hero.small .byline a { color: var(--muted); }
.hero.small .byline a { color: var(--rust-d); }
.count { color: var(--muted); }
.count b { color: var(--ink); font-size: 1.15em; }
.portrait { border-radius: 50%; border: 4px solid var(--sand); float: right; margin: 0 0 8px 16px; }
.byline { display: flex; align-items: center; gap: 12px; font-size: .92rem; margin: 14px 0 0; }
.byline img { border-radius: 50%; flex: none; }
.crumbs { font-size: .88rem; color: var(--muted); margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 4px; }
.crumbs i { font-style: normal; padding: 0 3px; }
.crumbs a { color: var(--muted); }
.crumbs [aria-current] { color: var(--ink); }

/* Boutons */
.btn { display: inline-block; background: var(--rust); color: #fff; font-weight: 700; text-decoration: none; padding: 12px 22px; border: 2px solid var(--rust); border-radius: 4px; cursor: pointer; font-family: var(--sans); font-size: 1rem; line-height: 1.3; }
.btn:hover { background: var(--rust-d); border-color: var(--rust-d); color: #fff; }
.btn.alt { background: transparent; color: inherit; border-color: currentColor; }
.hero:not(.small) .btn.alt { color: #fff; }
.btn.alt:hover { background: var(--sand); color: var(--ink); border-color: var(--ink); }
.btn.small { padding: 8px 14px; font-size: .94rem; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.linkbtn { background: none; border: 0; color: var(--rust-d); text-decoration: underline; cursor: pointer; font: inherit; padding: 4px 0; }

/* Cartes à planche */
.planks { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.planks > li { display: flex; min-width: 0; }
.plank { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto 1fr; column-gap: 14px; align-items: start; background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--c, var(--spruce)); padding: 14px 16px; text-decoration: none; color: var(--ink); min-width: 0; transition: transform .12s, box-shadow .12s; }
.plank:hover { transform: translate(-2px, -2px); box-shadow: 4px 4px 0 var(--ink); color: var(--ink); }
.plank i { grid-row: 1 / span 2; font-style: normal; font-size: 1.7rem; line-height: 1; width: 2.4rem; height: 2.4rem; display: grid; place-items: center; background: var(--sand); border-radius: 4px; }
.plank b { font: 700 1.05rem/1.3 var(--serif); align-self: end; overflow-wrap: break-word; min-width: 0; }
.plank small { color: var(--muted); font-size: .9rem; line-height: 1.4; align-self: start; min-width: 0; }

/* Annuaire */
.directory { padding-bottom: 30px; }
.finder-row { position: relative; display: flex; }
.finder input[type=search] { flex: 1; min-width: 0; font: inherit; padding: 13px 44px 13px 14px; border: 2px solid var(--ink); background: var(--card); color: var(--ink); border-radius: 0; }
.finder-clear { position: absolute; right: 4px; top: 4px; bottom: 4px; width: 40px; border: 0; background: var(--sand); cursor: pointer; font-size: 1rem; color: var(--ink); }
.chips { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { font: inherit; font-size: .9rem; padding: 6px 12px; background: var(--card); border: 1px solid var(--ink); border-bottom: 4px solid var(--c, var(--ink)); color: var(--ink); cursor: pointer; }
.chips button[aria-pressed=true] { background: var(--ink); color: #fff; }
.finder-count { color: var(--muted); font-size: .92rem; margin: 10px 0; }
.slats { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 10px; }
.slats > li { position: relative; display: flex; min-width: 0; }
.slats > li[hidden] { display: none; }
.slat { flex: 1; display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 10px; align-items: center; padding: 10px 44px 10px 12px; background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--c, var(--spruce)); text-decoration: none; color: var(--ink); min-width: 0; }
.slat:hover { background: #fff; border-color: var(--ink); color: var(--ink); }
.slat i { grid-row: 1 / span 2; font-style: normal; font-size: 1.25rem; }
.slat b { font-weight: 700; font-size: .96rem; overflow-wrap: anywhere; line-height: 1.3; min-width: 0; }
.slat small { color: var(--muted); font-size: .8rem; line-height: 1.3; min-width: 0; }
.fav { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: 0; background: transparent; font-size: 1.35rem; cursor: pointer; color: var(--rust-d); }
.fav:hover { background: var(--sand); }
.favbox { background: var(--card); border: 2px dashed var(--rust); padding: 14px 16px; margin: 18px 0; }
.favbox h3 { margin-bottom: 0; }
.favbox-actions { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 10px 0 0; }
.empty { text-align: center; padding: 30px 10px; }

.fam > .note { margin-top: -.3em; }
.atelier-out { min-width: 0; }

/* Texte courant */
.prose { padding-bottom: 28px; }
.prose > h2:first-child { margin-top: 1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .25em 0; }
.prose.wide { max-width: var(--w); }
.plain { list-style: none; padding-left: 0 !important; columns: 2 260px; column-gap: 28px; }
.plain li { break-inside: avoid; }
.facts { display: grid; grid-template-columns: minmax(0, 14rem) minmax(0, 1fr); gap: 6px 20px; margin: 0 0 1em; }
.facts dt { font-weight: 700; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.crit-list { grid-template-columns: minmax(0, 1fr); }
.crit-list dd { margin-bottom: .6em; color: var(--muted); }
.links { list-style: none; padding: 0 !important; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.links a { display: grid; padding: 10px 14px; border: 1px solid var(--line); background: var(--card); text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.links span { color: var(--muted); font-size: .85rem; }
.chiplist { list-style: none; padding: 0 !important; display: flex; flex-wrap: wrap; gap: 8px; }
.chiplist a { display: inline-block; padding: 6px 12px; background: var(--card); border: 1px solid var(--ink); text-decoration: none; color: var(--ink); font-size: .94rem; }
.chiplist a:hover { background: var(--sand); }
.checklist { background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--spruce); padding: 6px 18px; margin-bottom: 1em; }
.checklist ul { list-style: none; padding: 0 !important; margin: 10px 0; }
.checklist li { padding-left: 1.7em; position: relative; }
.checklist li::before { content: "☐"; position: absolute; left: 0; color: var(--spruce); }
.callout { background: var(--card); border: 1px solid var(--line); border-left: 10px solid var(--c, var(--rust)); padding: 14px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 1.2em 0; }
.callout p { margin: 0; font-weight: 600; flex: 1 1 260px; }
.guide-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.guide-nav a { display: block; padding: 14px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 700; overflow-wrap: break-word; }
.guide-nav a:last-child { text-align: right; }
.guide-nav span { display: block; font: 600 .78rem var(--sans); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.faq details { background: var(--card); border: 1px solid var(--line); margin: 8px 0; }
.faq summary { padding: 12px 16px; cursor: pointer; font-weight: 700; }
.faq details p { padding: 0 16px; margin: 0 0 14px; }
.faq details[open] { border-color: var(--ink); }

/* Calculateurs, formulaires et résultats */
.toolbox { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding-top: 12px; padding-bottom: 12px; }
.toolbox > * { min-width: 0; }
.toolbox form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; background: var(--card); border: 1px solid var(--line); padding: 18px; }
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field[hidden] { display: none; }
.field.wide { grid-column: 1 / -1; }
label { font-weight: 600; font-size: .94rem; line-height: 1.35; }
input[type=number], input[type=text], input[type=date], select, textarea { width: 100%; max-width: 100%; min-width: 0; font: inherit; padding: 10px 12px; border: 2px solid var(--ink); background: #fff; color: var(--ink); border-radius: 0; }
textarea { resize: vertical; font-family: var(--mono); font-size: .92rem; line-height: 1.5; }
input[type=range] { width: 100%; }
.swap { grid-column: 1 / -1; justify-self: start; background: var(--sand); border: 2px solid var(--ink); padding: 8px 14px; font: 600 .95rem var(--sans); cursor: pointer; color: var(--ink); }
.result { background: var(--card); border: 2px solid var(--spruce); padding: 6px 18px 14px; min-width: 0; }
.result .err, .err { color: #8f1d1d; font-weight: 600; padding-top: 12px; }
.res { margin: 0; display: grid; }
.res > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 4px 14px; padding: 10px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.res > div:last-child { border-bottom: 0; }
.res dt { color: var(--muted); font-size: .94rem; min-width: 0; }
.res dd { margin: 0; font-weight: 700; text-align: right; min-width: 0; overflow-wrap: break-word; }
.res .main { background: var(--sand); margin: 8px -18px; padding: 12px 18px; border-bottom: 0; border-left: 8px solid var(--rust); }
.res .main dt { color: var(--ink); font-weight: 600; }
.res .main dd { font: 700 1.35rem/1.25 var(--serif); }
.conv-main { font: 700 1.35rem/1.35 var(--serif); margin: 14px 0 4px; overflow-wrap: anywhere; }
.example { background: var(--card); border: 1px solid var(--line); padding: 14px 18px; margin-bottom: 1em; }
.example ul { margin: 0 0 12px; }
.embedbox { background: var(--card); border: 1px solid var(--line); border-left: 8px solid var(--spruce); padding: 14px 18px; }
.embedbox textarea { font-size: .85rem; }
.status { min-height: 1.4em; color: var(--spruce); font-weight: 600; margin: 8px 0 0; }
.dl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.dl-actions[hidden] { display: none; }
.fallback { background: var(--sand); padding: 12px 16px; border-left: 6px solid var(--rust); }

/* Modèles de documents */
.modele-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 24px; align-items: start; padding-top: 12px; }
.modele-grid > * { min-width: 0; }
.modele-form { display: grid; gap: 12px; background: var(--card); border: 1px solid var(--line); padding: 18px; }
.paper { background: #fff; border: 1px solid var(--line); box-shadow: 6px 6px 0 var(--sand); padding: 28px 30px; font: 16px/1.6 var(--serif); overflow-x: auto; max-width: 100%; position: relative; }
.paper p { margin: 0 0 .35em; overflow-wrap: anywhere; }
.atelier .field.wide textarea { min-height: 8em; }
.out { margin: 12px 0 0; padding: 12px; background: #fff; border: 1px solid var(--line); font: .85rem/1.5 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; overflow-x: auto; max-width: 100%; position: relative; max-height: 22rem; }
.svgbox { overflow-x: auto; max-width: 100%; position: relative; background: #fff; border: 1px solid var(--line); margin-top: 12px; padding: 8px; }
.svgbox svg { display: block; max-width: 100%; height: auto; }
.tablewrap { overflow-x: auto; max-width: 100%; position: relative; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; background: var(--card); }
.evlist th, .evlist td { text-align: left; padding: 9px 12px; border: 1px solid var(--line); vertical-align: top; font-size: .93rem; }
.evlist thead th { background: var(--spruce); color: #fff; }
.evlist tbody th { font-weight: 600; background: #fff; }

/* Calendrier */
.controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.controls[hidden] { display: none; }
.controls select { width: auto; }
.months { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 14px; margin: 14px 0 22px; }
.month { background: var(--card); border: 1px solid var(--line); padding: 8px; min-width: 0; overflow-x: auto; position: relative; }
.month table { font-size: .82rem; background: transparent; }
.month caption { font: 700 .95rem var(--serif); text-align: left; padding: 2px 4px 6px; }
.month th, .month td { text-align: center; padding: 3px 0; border: 0; font-weight: 400; }
.month th { color: var(--muted); font-size: .72rem; }
.mk span { display: inline-block; min-width: 1.7em; border-radius: 3px; font-weight: 700; }
.mk-ferie span { background: #f3c9ab; color: var(--ink); }
.mk-heure span { background: #bcd9e2; color: var(--ink); }
.mk-entretien span { background: #cfe3bb; color: var(--ink); }
.yeartable { background: var(--card); border: 1px solid var(--line); margin: 8px 0; }
.yeartable summary { padding: 10px 16px; font-weight: 700; cursor: pointer; }
.yeartable .tablewrap { margin: 0; padding: 0 12px 12px; }

/* Matrice de décision */
.matrix { padding-top: 12px; padding-bottom: 12px; }
.matrix-top { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.matrix-top > *, .names > * { min-width: 0; }
.help { color: var(--muted); }
.names { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 12px; margin: 14px 0; }
.crit { border: 1px solid var(--line); background: var(--card); padding: 12px 16px 14px; margin: 0 0 14px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; }
.crit > * { min-width: 0; }
.crit legend { font-weight: 700; padding: 0 6px; }
.crit .help, .crit .scores, .crit .linkbtn { grid-column: 1 / -1; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 10px; }
.scores > * { min-width: 0; }
.ranking { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ranking li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.ranking .rk { font: 700 1.1rem var(--serif); color: var(--rust-d); }
.ranking .bar { grid-column: 2 / 3; height: 10px; background: var(--sand); display: block; }
.ranking .bar i { display: block; height: 100%; background: var(--spruce); }
.ranking .sc { font-weight: 700; grid-row: 1; grid-column: 3; }
.ranking b { min-width: 0; overflow-wrap: anywhere; }
.verdict { margin-top: 14px; font-weight: 600; }

/* Pied de page */
.foot { background: var(--spruce-d); color: #efe7d4; margin-top: 40px; padding: 40px 0 20px; border-top: 6px solid var(--rust); }
.foot-in { max-width: var(--w); margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot-in > * { min-width: 0; }
.foot h2 { font: 700 .82rem var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--sand); margin: 0 0 10px; }
.foot ul { list-style: none; margin: 0; padding: 0; }
.foot li { margin: 5px 0; font-size: .94rem; }
.foot a { color: #fff; text-decoration-color: #7d9a8e; overflow-wrap: anywhere; }
.foot a:hover { color: var(--sand); }
.foot p { font-size: .94rem; }
.foot-bottom { max-width: var(--w); margin: 28px auto 0; padding: 18px 20px 0; border-top: 1px solid #3d5e51; font-size: .82rem; color: #d8cfba; }

/* Pages intégrables */
body.embed { background: transparent; font-size: 16px; }
.embed-wrap { max-width: 640px; margin: 0 auto; padding: 12px; }
.embed-wrap h1 { font-size: 1.4rem; }
.embed .toolbox { grid-template-columns: minmax(0, 1fr); padding-left: 0; padding-right: 0; }
.embed-credit { text-align: right; font-size: .85rem; }

@media (max-width: 900px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); }
  .hero-art { max-width: 260px; justify-self: start; order: -1; }
  .toolbox, .modele-grid { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-about { grid-column: 1 / -1; }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .menu { position: static; }
  .menu-panel { left: 20px; right: 20px; min-width: 0; top: calc(100% + 4px); }
  .figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero.small { padding: 18px 16px; margin-top: 18px; }
  .res > div { grid-template-columns: minmax(0, 1fr); }
  .res dd { text-align: left; }
  .toolbox form, .crit, .matrix-top, .guide-nav, .facts { grid-template-columns: minmax(0, 1fr); }
  .facts dd { margin-bottom: .6em; }
  .guide-nav a:last-child { text-align: left; }
  .paper { padding: 18px 16px; }
  .planks { grid-template-columns: minmax(0, 1fr); }
  .foot-in { grid-template-columns: minmax(0, 1fr); }
  .portrait { float: none; display: block; margin: 0 0 12px; }
}
@media print {
  body.modele .top, body.modele .foot, body.modele .skip, body.modele .hero, body.modele .dl-actions, body.modele .modele-form, body.modele .band, body.modele .prose, body.modele .modele-side h2 { display: none !important; }
  body.modele main > section.modele-grid { display: block; padding: 0; max-width: none; }
  body.modele { background: #fff; }
  body.modele .paper { border: 0; box-shadow: none; padding: 0; overflow: visible; }
}


/* ===== kit commun : export, filtre, outils liés, impression, grandes listes ===== */
.kit-actions{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center;margin:.9rem 0 0}
.kit-actions button{font:inherit;font-weight:700;font-size:.95rem;cursor:pointer;padding:.45rem .85rem;min-height:44px;border:2px solid currentColor;border-radius:.6rem;background:transparent;color:inherit}
.kit-actions button:hover{text-decoration:underline}
.kit-status{font-size:.9rem;min-height:1.2em}
.kit-filter{margin:0 0 1.2rem}
.kit-filter label{display:block;font-weight:700;margin-bottom:.35rem}
.kit-filter input{font:inherit;width:100%;max-width:32rem;padding:.6rem .8rem;min-height:44px;border:2px solid #222;border-radius:.6rem;background:#fff;color:#111}
.kit-count{margin:.4rem 0 0;font-size:.92rem;min-height:1.2em}
.kit-related{margin:2.2rem 0 1rem;padding:1rem 1.2rem;border:2px solid currentColor;border-radius:.8rem}
.kit-related h2{font-size:1.15rem;margin:0 0 .7rem}
.kit-related ul{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,15rem),1fr));gap:.4rem .8rem}
.kit-related li{min-width:0}
.kit-related a{display:block;padding:.35rem .1rem;overflow-wrap:break-word}
ul:has(> li:nth-child(40)) > li{content-visibility:auto;contain-intrinsic-size:auto 100px}
@media print{
  body.kit-printing *{visibility:hidden!important}
  body.kit-printing .kit-print-target,body.kit-printing .kit-print-target *{visibility:visible!important}
  body.kit-printing .kit-print-target{position:absolute!important;left:0;top:0;width:100%;color:#000!important;background:#fff!important;box-shadow:none!important}
}
