/* V5.4: shared refinements, mobile first, no framework, no remote assets. */
.editorial-site{--k54-ink:var(--text,#202129);--k54-accent:var(--accent,#a71e57)}
.editorial-site h1,.editorial-site h2,.editorial-site h3{font-family:inherit;word-break:normal;overflow-wrap:normal;hyphens:none;text-wrap:pretty;letter-spacing:-.025em}
.editorial-site h1{font-size:clamp(2rem,4.4vw,3.8rem);line-height:1.12;max-width:24ch}
.editorial-site h2{font-size:clamp(1.4rem,2.2vw,2.15rem);line-height:1.2}
.editorial-site h3{font-size:clamp(1.1rem,1.5vw,1.4rem);line-height:1.3}
.editorial-site :is(.km-hero,.legal-v5__hero,.history-hero,.labo-hero,.reading-library-hero) h1 span,.history-hero h1 span,.history-intro h2 span{display:inline!important}
.editorial-site :is(.km-card,.labo-card,.sc-method__step){padding:clamp(1rem,2vw,1.6rem);min-width:0}
.editorial-site :is(input,select,textarea){max-width:100%;min-width:0}
.editorial-site :is(button,.button,.icon-button){min-height:44px}
.k53-header-contact{display:inline-flex;align-items:center;gap:.4rem;color:var(--k54-accent)}
.k53-header-contact svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8}
.header-actions .v5-search{color:var(--k54-accent);background:transparent}
.k54-footer-bottom{display:flex;flex-direction:column;gap:.7rem;border-top:1px solid var(--border,#d4d3d8);padding-top:1rem}
.k54-footer-bottom .k52-footer-legal{border:0;margin:0;padding:0;min-width:0}
.k54-footer-credit{font-size:.75rem;line-height:1.6;margin:0;max-width:none}
.k52-footer-meta{display:block!important;text-align:center;padding:.8rem 0 .2rem!important;border:0!important}
.k52-footer-meta p{max-width:none!important;margin:0!important;font-size:.75rem;line-height:1.6}
.k52-footer-grid{gap:1.25rem!important}.k52-footer-group nav{gap:.35rem!important}
.k54-related{max-width:var(--shell-width,1180px);margin:1.5rem auto;padding:1.2rem clamp(1rem,3vw,2rem);border:1px solid var(--border,#d4d3d8);border-radius:16px;background:var(--surface,#fff)}
.k54-related h2{margin:.2rem 0 .7rem}.k54-related p{max-width:75ch}
.k54-related nav{display:flex;flex-wrap:wrap;gap:.5rem 1.4rem}.k54-related nav a{display:inline-flex;align-items:center;min-height:44px;font-weight:650}
.k54-catalogue{max-width:1180px;margin:auto;padding:1.4rem 1rem 3rem}
.k54-catalogue-hero{padding:1rem 0 2rem;border-bottom:1px solid var(--border,#d4d3d8)}
.k54-catalogue-hero p{max-width:68ch}.k54-catalogue-hero h1 span{color:var(--k54-accent)}
.k54-catalogue .veille-topics{margin:1rem 0}.k54-catalogue .article-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:1.2rem}
.k54-catalogue .article-card{position:relative;overflow:hidden;padding:1.1rem;background:var(--surface,#fff);border:1px solid var(--border,#d4d3d8);border-radius:18px;display:flex;flex-direction:column;gap:.65rem}
.k54-catalogue .article-card-v533__media{display:block;margin:-1.1rem -1.1rem .3rem;aspect-ratio:1200/630;overflow:hidden}
.k54-catalogue .article-card-v533__media img{width:100%;height:100%;object-fit:cover;display:block}
.k54-catalogue .article-card h3,.k54-catalogue .article-card p{margin:0}.k54-catalogue .article-card-v533__cta{margin-top:auto;min-height:44px;display:flex;align-items:center;font-weight:700}
.k54-catalogue .article-card h3 a:after{content:'';position:absolute;inset:0}.k54-catalogue .article-card a:focus-visible{outline:3px solid var(--k54-accent);outline-offset:3px}
.k54-catalogue .article-card:hover{border-color:var(--k54-accent)}
.k54-catalogue .veille-filters{display:grid;grid-template-columns:minmax(0,1fr);gap:.7rem;padding:1rem;margin:1.2rem 0}
.k54-catalogue .veille-filters label{min-width:0}.k54-catalogue .veille-filters input,.k54-catalogue .veille-filters select{width:100%}
.k54-catalogue .veille-pagination{flex-wrap:wrap}.k54-catalogue .veille-pagination__pages{flex-wrap:wrap}
.reading-library-hero h1{max-width:28ch}.reading-library-grid{gap:1rem}.reading-library-toolbar{flex-wrap:wrap}
.page-contact .km-hero__copy{min-width:0}.page-contact .contact-side-links a{min-height:48px;font-weight:700;border-radius:10px}
.page-contact .km-actions{display:flex;flex-wrap:wrap;gap:.6rem}
.k53-tool-explanation{padding:1.4rem;border-left:5px solid var(--k54-accent);background:var(--surface,#fff);border-radius:14px;margin-top:1.3rem}
.labo-hero a,.labo-cta a{min-height:44px}.labo-cta,.km-cta,.legal-v5__cta{padding:1.3rem!important;gap:1rem;align-items:center}
.labo-cta h2,.km-cta h2,.legal-v5__cta h2{max-width:none}.labo-cta p{margin-bottom:.5rem}
.sc-hero__heading{align-items:start}.sc-overview{min-width:0}.sc-project__main{gap:1rem}.sc-method__steps{align-items:stretch}
.project-favicon{width:24px;height:24px;object-fit:contain;vertical-align:middle;margin-right:.5rem;flex-shrink:0}
.history-timeline{display:grid;gap:1rem}.history-timeline .km-card time{font-size:.85rem;color:var(--k54-accent)}
.legal-v5__lead,.km-lead{line-height:1.7;max-width:72ch}
[data-theme=dark] .k54-related,[data-theme=dark] .k54-catalogue .article-card,[data-theme=dark] .k53-tool-explanation{background:#202129;border-color:#44434e}
[data-theme=dark] .k54-catalogue-hero h1 span,[data-theme=dark] .k53-header-contact,[data-theme=dark] .header-actions .v5-search,[data-theme=dark] .history-timeline .km-card time{color:#ff9cc7}
@media(min-width:680px){.k54-catalogue .article-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.k54-catalogue .veille-filters{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1000px){.k54-footer-bottom{flex-direction:row;align-items:center;justify-content:space-between;gap:2rem}.k54-footer-credit{text-align:right;flex:0 1 48%}.k54-catalogue .article-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.k54-catalogue .veille-filters{grid-template-columns:2fr 1.2fr .8fr .9fr;align-items:end}.k54-catalogue .veille-filter-actions{grid-column:1/-1}.v51-contact{display:grid!important;grid-template-columns:1fr auto;align-items:center;gap:2rem}.sc-hero__heading{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(0,1fr);gap:2rem}.labo-cta{display:grid;grid-template-columns:minmax(0,1fr) auto}}
@media(prefers-reduced-motion:no-preference){.k54-catalogue .article-card,.labo-hero a{transition:border-color .18s,transform .18s}.labo-hero a:hover{transform:translateY(-2px)}}
@media(max-width:679px){.k53-header-contact{display:none}.k54-related{margin:1rem}.editorial-site h1{max-width:none}.k54-catalogue .veille-catalogue-v533__titleline{flex-wrap:wrap}.sc-project__main{align-items:flex-start}}
.editorial-site{--k54-accent:var(--accent-2,#a71e57)}
.editorial-site .reading-library-hero h1 span,.editorial-site .labo-hero h1 span,.editorial-site .legal-v5 h1 span,.editorial-site .km-hero h1 span{display:inline!important}
.editorial-site .k54-footer-bottom{font-family:var(--font-sans)}
.sc-hero .sc-overview{padding:1.1rem;border:1px solid var(--line);border-radius:14px;background:var(--surface)}
.k53-method-paths a{position:relative;padding-left:3.2rem!important}
.k53-method-paths .k52-icon{position:absolute;left:1rem;top:1.2rem;width:22px;height:22px;color:var(--accent-2)}
.k52-footer-meta p{text-align:center!important;width:100%!important}
.header-actions .v5-search{color:var(--accent-2)!important;background:transparent!important}
.k53-header-contact{color:var(--accent-2)!important}
.k54-filter-panel{border:1px solid var(--line);border-radius:12px;margin:1rem 0;background:var(--surface)}
.k54-filter-panel>summary{cursor:pointer;min-height:48px;padding:.8rem 1rem;font-weight:700}
.k54-filter-panel>summary span{display:block;font-weight:400;font-size:.8rem;color:var(--muted);margin:.2rem 0 0}
.k54-catalogue .veille-catalogue-v533__head{padding-top:1.2rem;margin-bottom:1rem}
.k54-catalogue .veille-catalogue-v533__head p:not(.eyebrow){max-width:65ch}
.k54-catalogue .veille-filters{margin:0;border:0;box-shadow:none}
[data-theme=dark] .k53-header-contact,[data-theme=dark] .header-actions .v5-search{color:#ff9cc7!important}
@media(min-width:680px){.k54-filter-panel>summary span{display:inline;margin-left:.8rem}}
.editorial-site main h1 span{display:inline!important}
.audit-page{background:var(--bg)!important;color:var(--text)!important}
.audit-page :is(.audit-hero,.audit-section,.audit-final-cta){background:var(--bg)!important}
.audit-page :is(.audit-hero-card,.audit-choice,.audit-final-card){background:var(--surface)!important;border-color:var(--line)!important;border-radius:16px!important}
.audit-page :is(.audit-hero-card,.audit-final-card){padding:clamp(1rem,2.5vw,1.8rem)!important}
.audit-page .audit-icon{color:var(--accent-2)!important;background:var(--accent-soft)!important}
.k53-article-workbench{border-radius:12px!important;background:var(--surface)!important;gap:.8rem!important}
.k53-article-workbench .article-evidence__item{border-left:2px solid var(--line);padding-left:.65rem!important}
.k53-article-workbench .v5-article-actions{gap:.35rem!important}
.k53-article-workbench .v5-article-actions :is(button,summary){border-radius:8px!important}
.dossier-experiment-grid{display:grid;grid-template-columns:1fr;gap:1rem}
.dossier-experiment-grid article{padding:1.1rem!important;min-width:0}
@media(min-width:760px){.dossier-experiment-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
.k54-home-conclusion{display:grid;grid-template-columns:1fr;gap:1.2rem;margin-bottom:2rem}
.k54-home-conclusion .v51-section{padding:1.3rem!important;margin:0!important;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.k54-home-conclusion .v51-split,.k54-home-conclusion .v51-contact{display:flex!important;flex-direction:column;align-items:flex-start;gap:1rem}
.k54-home-conclusion .v51-facts{width:100%}.k54-home-conclusion .v51-heading h2{max-width:none}
@media(min-width:900px){.k54-home-conclusion{grid-template-columns:repeat(2,minmax(0,1fr))}}
.site-footer.k52-footer p{color:var(--muted)!important}
