.lsn-directory { scroll-margin-top: 5rem; }
.lsn-directory .ci-atlas-main { min-width: 0; scroll-margin-top: 5rem; }
.lsn-directory .lsn-directory-grid { align-items: stretch; }
.lsn-directory-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(.92rem, 1.65vw, 1.28rem);
    border-top: .22rem solid #b18e56;
    background: linear-gradient(135deg, #fffaf0, #f9f0de);
    scroll-margin-top: 6.2rem;
}
.lsn-directory-card:hover { border-top-color: #38674a; }
.lsn-directory-card:target { outline: 2px solid #856436; outline-offset: 3px; }
.lsn-directory-card[hidden] { display: none !important; }
.lsn-directory-header {
    display: grid;
    grid-template-columns: clamp(3.8rem, 6vw, 5.3rem) minmax(0, 1fr);
    align-items: center;
    gap: .75rem;
}
.lsn-directory-header :is(h3, p) { margin-block: 0 .35rem; overflow-wrap: anywhere; }
.lsn-directory-header .ci-delegation-area { font-size: .64rem; letter-spacing: .15em; }
.lsn-directory-header h3 {
    color: #234c36;
    font: 670 clamp(1.36rem, 2.04vw, 1.9rem)/1 var(--lsn-display, Georgia);
    text-wrap: pretty;
}
.lsn-directory-portrait {
    display: grid;
    place-items: center;
    aspect-ratio: 8 / 9;
    height: auto;
    min-width: 0;
    border: 1px solid #ad8a53;
    padding: .17rem;
    color: #f8dfaa;
    background: #264837;
}
.lsn-directory-portrait img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lsn-directory-portrait span { font: 650 1.75rem/1 var(--lsn-display, Georgia); }
.lsn-directory-header .lsn-directory-name { margin: .34rem 0 0; color: #223c2e; font-size: .92rem; font-weight: 700; }
.lsn-directory-departments {
    margin: .7rem 0 0;
    color: #5e4d35;
    font-size: .79rem;
    line-height: 1.35;
}
.lsn-directory-contact {
    display: grid;
    gap: .3rem;
    margin: .85rem 0 .8rem;
    padding: .55rem .68rem;
    border-inline-start: 2px solid #c2a26b;
    background: #e6dac340;
}
.lsn-directory-contact a {
    display: block;
    min-height: 1.7rem;
    color: #215338;
    align-content: center;
    overflow-wrap: anywhere;
    text-underline-offset: .16em;
    font-size: .86rem;
    font-weight: 640;
}
.lsn-directory-card .ci-card-actions { margin-top: auto; padding-top: .4rem; }
.lsn-directory-card .ci-card-actions a { min-height: 2.15rem; display: inline-flex; align-items: center; }
.lsn-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.lsn-delegate-shortcuts {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-block: .9rem 1.25rem;
}
.lsn-delegate-space :is(#mes-evenements, #editeur-evenement),
.lsn-stock-panel, #aide-delegue { scroll-margin-top: 6.1rem; }
.lsn-delegate-space .lsn-metrics > div {
    border-top: .19rem solid #b7955e;
    background: linear-gradient(150deg, #fffaf0, #f5e9d2);
}
.lsn-delegate-space .lsn-metrics strong { color: #24513b; }
.lsn-catalogue-edit .lsn-catalogue-thumb {
    width: 6.25rem;
    height: 6.25rem;
    object-fit: contain;
    margin: .65rem 0 .25rem;
    background: #faf0da;
    border: 1px solid #d5c3a0;
}
.lsn-catalogue-list {
    display: grid;
    gap: .4rem;
    list-style: none;
    padding: 0 !important;
}
.lsn-catalogue-item {
    display: grid;
    grid-template-columns: 3.7rem minmax(0, 1.65fr) minmax(0, .75fr) auto;
    gap: .85rem;
    align-items: center;
    padding: .64rem;
    margin: 0;
    border-bottom: 1px solid #daccad;
}
.lsn-catalogue-item:nth-child(odd) { background: #f7efdf; }
.lsn-catalogue-item > div { min-width: 0; overflow-wrap: anywhere; }
.lsn-catalogue-item strong,
.lsn-catalogue-item > div > span { display: block; }
.lsn-catalogue-item > div > span { color: #466151; font-size: .88rem; }
.lsn-catalogue-cover { border: 1px solid #ddcfb1; background: #f7f1e3; }
.lsn-catalogue-cover img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.lsn-product-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr));
    gap: .36rem .62rem;
    min-width: 0;
    padding: .6rem .8rem;
    border: 1px solid #d5c3a0;
}
.lsn-product-categories legend { padding-inline: .3rem; color: #254734; font-weight: 700; }
.lsn-product-categories label { display: flex; align-items: baseline; gap: .35rem; }
.lsn-withdraw { margin-top: 1.25rem; }
.lsn-stock-panel { border-top: .24rem solid #b89453; }
.lsn-stock-count strong { color: #245138; font: 650 2.3rem/1 var(--lsn-display, Georgia); }
.lsn-catalogue-variants li { margin: .4rem 0; }

@media (max-width: 1240px) and (min-width: 1051px) {
    .lsn-directory.lsn-container { width: min(96%, var(--lsn-max, 1220px)); }
    .lsn-directory .lsn-directory-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .lsn-directory .lsn-directory-grid { grid-template-columns: minmax(0, 1fr); }
    .lsn-directory-contact a { min-height: 2.38rem; }
    .lsn-catalogue-item { grid-template-columns: 3.7rem minmax(0, 1fr); gap: .4rem .65rem; }
    .lsn-catalogue-item > div:nth-child(n+3) { grid-column: 2; }
    .lsn-catalogue-edit .lsn-product-form, .lsn-delegate-editor .lsn-grid { grid-template-columns: minmax(0, 1fr); }
    .lsn-catalogue-edit .lsn-actions, .lsn-delegate-editor .lsn-actions { align-items: stretch; }
    .lsn-stock-panel .lsn-stock-form > .lsn-field { flex: 1 1 100%; }
    .lsn-delegate-space .lsn-table-wrap { overflow: visible; }
    .lsn-delegate-space .lsn-table { min-width: 0; }
    .lsn-delegate-space .lsn-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
    }
    .lsn-delegate-space .lsn-table tr { display: grid; margin-bottom: .75rem; border: 1px solid #daccad; }
    .lsn-delegate-space .lsn-table td,
    .lsn-delegate-space .lsn-table th { display: block; width: auto; padding: .37rem .55rem; white-space: normal; }
    .lsn-delegate-space .lsn-table td[data-label]::before { content: attr(data-label) " · "; color: #496351; font-weight: 700; }
    .lsn-delegate-space .lsn-table .lsn-row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .32rem .55rem; }
    .lsn-delegate-space .lsn-row-actions details { flex: 1 0 100%; }
}

