.resource-library-heading{display:flex;justify-content:space-between;align-items:center;gap:20px;margin:24px 0}.resource-library-heading h2{font-size:clamp(23px,3vw,36px);letter-spacing:-.04em;margin:8px 0}.resource-library-heading>strong{font-size:48px;color:var(--red);line-height:1}.resource-library-heading small{display:block;font-size:11px;text-align:right;color:var(--muted);margin-top:8px}
.resource-library .lh-resource-filters{grid-template-columns:minmax(0,1fr) minmax(140px,220px) auto auto;padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:12px;margin:0 0 24px}
.resource-library-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,310px),1fr));gap:20px}.lh-page .resource-library-card{position:relative;min-height:420px;overflow:hidden;border-radius:16px;border-top:3px solid var(--red);box-shadow:none;transform:none!important}.resource-library-card-body{flex:1;padding:22px;background:linear-gradient(150deg,color-mix(in srgb,var(--red) 5%,var(--surface)),var(--surface) 65%);min-width:0}.resource-library-brand{display:flex;justify-content:space-between;gap:10px;color:var(--muted);font-size:11px}.resource-library-monogram{display:grid;place-items:center;width:60px;height:60px;margin:24px 0 18px;border:1px solid var(--line);background:var(--surface);color:var(--red);border-radius:15px;font-size:30px;font-weight:800}.resource-library-card h2{font-size:23px;line-height:1.15;letter-spacing:-.035em;overflow-wrap:anywhere;margin:0 0 16px}.resource-library-systems{display:flex;gap:6px;flex-wrap:wrap}.resource-library-systems span{padding:4px 7px;background:var(--surface);border:1px solid var(--line);border-radius:5px;font-size:10px;color:var(--muted)}.resource-library-card .lh-compatibility{margin-top:18px;font-size:12px}.resource-library-card .lh-compatibility li{overflow-wrap:anywhere}.resource-library-download{padding:18px;display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--line);font-size:12px;color:var(--muted)}
.lh-page .resource-library .lh-cp-platforms{max-height:320px;overflow-y:auto;overscroll-behavior:contain;grid-template-columns:repeat(2,minmax(0,1fr))}.lh-page .resource-library .lh-cp-os{min-height:76px;gap:4px;padding:8px 4px}.lh-page .resource-library .lh-cp-os img{width:24px;height:24px;padding:2px}.lh-page .resource-library .lh-cp-os small{max-width:100%;font-size:9px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}
@media(max-width:700px){.resource-library .lh-resource-filters{grid-template-columns:1fr 1fr}.resource-library .lh-resource-query{grid-column:1/-1}.resource-library-heading>strong{font-size:34px}.resource-library-heading h2{font-size:23px}}

.resource-library-brand-logo{display:flex;align-items:center;justify-content:center;width:100%;height:90px;box-sizing:border-box;margin:18px 0;padding:14px 20px;background:#fff;border:1px solid var(--line);border-radius:10px}.resource-library-brand-logo img{display:block;width:100%;max-width:180px;height:60px;object-fit:contain}.resource-library-brand-name{display:flex;align-items:center;min-height:90px;margin:18px 0;color:var(--ink);font-size:18px;font-weight:700}
/* Présentation catalogue : facettes latérales et petites cartes. */
.resource-catalogue-layout{display:grid;grid-template-columns:260px minmax(0,1fr);gap:20px;align-items:start}.resource-catalogue-sidebar{position:sticky;top:110px;min-width:0;border:1px solid var(--line);border-radius:10px;background:var(--surface)}.resource-sidebar-panel>summary{display:flex;justify-content:space-between;padding:15px;font-size:15px;font-weight:700;cursor:pointer;list-style:none;border-bottom:1px solid var(--line)}.resource-sidebar-panel>summary::-webkit-details-marker{display:none}.resource-sidebar-panel form{padding:14px;display:block;max-height:calc(100dvh - 180px);overflow:auto}.resource-sidebar-panel fieldset{border:0;padding:16px 0;margin:0;border-bottom:1px solid var(--line);min-width:0}.resource-sidebar-panel legend{font-size:12px;font-weight:750;padding:8px 0 0;color:var(--ink)}.resource-sidebar-panel .resource-filter-option{display:flex;align-items:center;gap:8px;margin:0;padding:6px 0;font-size:12px;cursor:pointer;min-width:0}.resource-filter-option>span{flex:1;min-width:0}.resource-filter-option small{color:var(--muted);font-size:10px}.resource-filter-option input{flex:none;accent-color:var(--red);width:15px;height:15px;margin:0}.resource-filter-search,.resource-filter-sort{display:grid;gap:8px;font-size:12px;font-weight:600}.resource-filter-search input,.resource-filter-sort select{box-sizing:border-box;width:100%;min-width:0;border:1px solid var(--line);background:var(--surface);color:var(--ink);border-radius:6px;padding:9px;font:inherit}.resource-filter-sort{margin-top:14px}.resource-filter-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.resource-catalogue-results{min-width:0}.resource-results-toolbar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;min-height:38px;margin-bottom:12px;font-size:12px;color:var(--muted)}
.resource-catalogue-results .resource-library-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr));gap:14px}.lh-page .resource-catalogue-results .resource-library-card{min-height:320px;border-radius:10px}.resource-catalogue-results .resource-library-card-body{padding:15px}.resource-catalogue-results .resource-library-card h2{font-size:17px;margin-bottom:10px;line-height:1.2}.resource-catalogue-results .resource-library-brand-logo{height:60px;margin:12px 0;padding:8px 12px;border-radius:6px}.resource-catalogue-results .resource-library-brand-logo img{height:42px;max-width:140px}.resource-catalogue-results .resource-library-monogram{width:42px;height:42px;margin:12px 0;font-size:24px;border-radius:8px}.resource-catalogue-results .resource-library-brand-name{min-height:60px;margin:12px 0;font-size:16px}.resource-catalogue-results .resource-library-systems{gap:4px}.resource-catalogue-results .resource-library-systems span{font-size:9px;padding:3px 5px}.resource-catalogue-results .lh-compatibility{font-size:11px;margin-top:12px}.resource-catalogue-results .lh-resource-file{font-size:11px;overflow-wrap:anywhere}.resource-catalogue-results .resource-library-download{padding:12px}.lh-page .resource-catalogue-results .lh-cp-widget{height:62px}.lh-page .resource-catalogue-results .lh-cp-platforms{max-height:260px}.lh-page .resource-catalogue-results .lh-cp-os{min-height:60px;padding:6px 3px;gap:3px}.lh-page .resource-catalogue-results .lh-cp-os img{width:22px;height:22px}
@media(max-width:999px){.resource-catalogue-layout{grid-template-columns:minmax(0,1fr);gap:14px}.resource-catalogue-sidebar{position:static}.resource-sidebar-panel form{max-height:none}.resource-sidebar-panel fieldset{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,180px),1fr));gap:0 12px}.resource-catalogue-results .resource-library-grid{grid-template-columns:repeat(auto-fill,minmax(min(100%,220px),1fr))}}

/* Marques en tête des filtres, avec les visuels du catalogue. */
.resource-sidebar-panel .resource-brand-filters{display:block;padding-top:0;margin-bottom:14px}.resource-brand-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.resource-brand-choice{position:relative;display:block;min-width:0;cursor:pointer}.resource-brand-choice input{position:absolute;top:6px;right:6px;z-index:1;width:13px;height:13px;margin:0;accent-color:var(--red)}.resource-brand-visual{display:flex;align-items:center;justify-content:center;box-sizing:border-box;min-height:72px;padding:20px 8px 10px;border:1px solid var(--line);border-radius:10px;background:#fff;color:#222;text-align:center;font-size:11px;font-weight:700}.resource-brand-visual img{display:block;width:100%;max-width:120px;height:36px;object-fit:contain}.resource-brand-choice input:checked+.resource-brand-visual{border-color:var(--red);box-shadow:0 0 0 1px var(--red)}.resource-brand-choice input:focus-visible+.resource-brand-visual{outline:2px solid var(--red);outline-offset:3px}.resource-brand-choice:hover .resource-brand-visual{border-color:var(--red)}

.resource-brand-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.resource-brand-visual{min-height:52px;padding:17px 5px 6px;border-radius:7px}.resource-brand-visual img{height:25px}.resource-brand-choice input{width:11px;height:11px;top:4px;right:4px}.resource-brand-visual>span{font-size:9px;overflow-wrap:anywhere}.resource-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.resource-sidebar-panel .resource-category-filters{display:block}.resource-sidebar-panel .resource-category-grid .resource-filter-option{position:relative;display:flex;flex-direction:column;justify-content:center;gap:4px;min-height:54px;padding:16px 4px 5px;border:1px solid var(--line);border-radius:7px;text-align:center;font-size:10px;box-sizing:border-box}.resource-category-grid .resource-filter-option input{position:absolute;top:4px;right:4px;width:11px;height:11px}.resource-category-grid .resource-filter-option:has(input:checked){border-color:var(--red);box-shadow:0 0 0 1px var(--red)}.resource-category-grid .resource-filter-option>span{flex:none;overflow-wrap:anywhere}.resource-results-toolbar .resource-filter-sort{order:10;margin:0 0 0 auto;display:flex;align-items:center;gap:8px;font-size:12px}.resource-results-toolbar .resource-filter-sort select{width:auto;max-width:210px}@media(max-width:500px){.resource-results-toolbar .resource-filter-sort{flex-wrap:wrap}.resource-results-toolbar .resource-filter-sort select{max-width:180px}}

/* Bibliothèques : en-tête réduit au fil d’Ariane et au tri. */
.resource-breadcrumb-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 18px;flex-wrap:wrap}.lh-page .resource-breadcrumb-row .lh-breadcrumb{margin:0}.resource-breadcrumb-row .resource-filter-sort{display:flex;align-items:center;gap:8px;margin:0;font-size:12px}.resource-breadcrumb-row .resource-filter-sort select{width:auto;max-width:210px}.resource-brand-visual{min-height:36px;padding:6px 15px 6px 5px}.resource-brand-visual img{height:22px}.resource-brand-choice input{top:4px;right:3px}@media(max-width:500px){.resource-breadcrumb-row{gap:10px}.resource-breadcrumb-row .resource-filter-sort select{max-width:180px}}

.resource-sidebar-panel .resource-category-grid .resource-filter-option{min-height:36px;height:36px;padding:5px 14px 5px 4px;gap:0;font-size:10px;line-height:1.15}.resource-category-grid .resource-filter-option input{top:4px;right:3px}.resource-category-grid .resource-filter-option>span{display:flex;align-items:center;justify-content:center;width:100%;height:100%}

/* Sidebar ouverte sans en-tête ni défilement interne. */
.resource-catalogue-sidebar{position:static}.resource-sidebar-panel form{max-height:none;overflow:visible}

.resource-breadcrumb-criteria{display:flex;align-items:center;gap:12px;min-width:0}.resource-breadcrumb-criteria>div{display:flex;flex-wrap:wrap;align-items:center;gap:8px;min-width:0}.resource-breadcrumb-criteria .lh-filter-chip{overflow-wrap:anywhere}.resource-criteria-separator{color:var(--muted)}.resource-breadcrumb-row .resource-filter-sort{margin-left:auto}

/* Écart identique aux marques du catalogue, sans marge héritée des libellés. */
.resource-sidebar-panel .resource-brand-grid{row-gap:5px;column-gap:5px;align-items:start}.resource-sidebar-panel .resource-brand-choice{margin:0;padding:0;line-height:1;min-height:0}

/* Cinq colonnes sur ordinateur, trois sur tablette, deux sur mobile. */
@media(min-width:1100px){.resource-catalogue-results .resource-library-grid{grid-template-columns:repeat(5,minmax(0,1fr));gap:10px}}
@media(min-width:768px) and (max-width:1099px){.resource-catalogue-results .resource-library-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}}
@media(max-width:767px){.resource-catalogue-results .resource-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
.resource-catalogue-results .resource-library-download{flex-wrap:wrap;gap:8px}.resource-catalogue-results .resource-library-brand{flex-wrap:wrap}.resource-catalogue-results .resource-library-card{min-width:0}
