/* Styles limités au composant pour préserver ceux du thème. */
.csl-notice {
    --csl-accent: #b52f42;
    box-sizing: border-box;
    display: block;
    position: relative;
    width: 100%;
    margin: 0;
    padding: 18px 28px;
    background: #f4f5f7;
    color: #263043;
    font-family: inherit;
    line-height: 1.5;
    text-align: left;
}
.csl-notice[hidden], .csl-notice [hidden] { display: none !important; }
.csl-notice *, .csl-notice *::before, .csl-notice *::after { box-sizing: border-box; }
.csl-notice__card {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    max-width: 1200px;
    min-width: 0;
    margin: 0 auto;
    padding: 22px 26px;
    border: 1px solid #e2e5ea;
    border-left: 4px solid var(--csl-accent);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 12px #17263b06;
}
.csl-notice__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    border: 1px solid #eceef2;
    border-radius: 12px;
    background: #f8f9fb;
    color: var(--csl-accent);
}
.csl-notice svg { display: block; flex-shrink: 0; }
.csl-notice__copy { flex: 1 1 auto; min-width: 0; }
.csl-notice__label {
    display: block;
    margin: 0 0 5px;
    color: #667085;
    font-family: inherit;
    font-size: 10px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 1.5px;
}
.csl-notice .csl-notice__title {
    margin: 0 0 5px;
    padding: 0;
    border: 0;
    color: #202b3c;
    font-family: inherit;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -.25px;
    text-transform: none;
    overflow-wrap: anywhere;
}
.csl-notice .csl-notice__message {
    margin: 0;
    padding: 0;
    color: #505d70;
    font-family: inherit;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.65;
    letter-spacing: normal;
    white-space: pre-line;
    overflow-wrap: anywhere;
}
.csl-notice .csl-notice__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    flex: 0 0 auto;
    max-width: 240px;
    min-height: 42px;
    padding: 9px 16px;
    border: 1px solid #d6dce5;
    border-radius: 7px;
    background: #fff;
    color: #263043;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    text-transform: none;
    letter-spacing: normal;
    box-shadow: none;
    overflow-wrap: anywhere;
}
.csl-notice .csl-notice__link:hover { color: #182235; border-color: #a9b3c3; background: #f8f9fb; }
.csl-notice .csl-notice__close {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    margin: 0 -12px 0 -8px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: #667085;
    box-shadow: none;
    cursor: pointer;
}
.csl-notice .csl-notice__close:hover { background: #f4f5f7; color: #263043; }
.csl-notice .csl-notice__link:focus-visible, .csl-notice .csl-notice__close:focus-visible { outline: 3px solid #315fac; outline-offset: 3px; }

/* CONSUEL / Kleo : nj-custom masque les premières entrées de la home avec
   display:none. FlexMenu utilise pourtant la première pour mesurer la ligne.
   Son offset vaut alors zéro et un bandeau plus haut que le menu provoque un
   faux débordement. Ces seules entrées restent invisibles et hors du flux,
   mais gardent une position mesurable au niveau de la barre de navigation.
   Le repli FlexMenu et la navigation mobile conservent leur fonctionnement. */
body.home.header-flexmenu #header #menu-menu-principal-haut > li.menu-item-object-page[style*="display: none"],
body.home.header-flexmenu #header #menu-menu-principal-haut > li.menu-item-object-page[style*="display:none"],
body.home.header-flexmenu #header #menu-menu-principal-haut > li.menu-item-object-custom[style*="display: none"],
body.home.header-flexmenu #header #menu-menu-principal-haut > li.menu-item-object-custom[style*="display:none"] {
    display: block !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

@media (max-width: 700px) {
    .csl-notice { padding: 12px; }
    .csl-notice__card { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; padding: 18px 16px; border-radius: 10px; align-items: start; }
    .csl-notice__icon { width: 34px; height: 34px; border-radius: 9px; }
    .csl-notice__icon svg { width: 20px; height: 20px; }
    .csl-notice .csl-notice__title { font-size: 16px; }
    .csl-notice .csl-notice__message { font-size: 13px; line-height: 1.65; }
    .csl-notice__label { font-size: 9px; letter-spacing: 1.2px; }
    .csl-notice .csl-notice__link { grid-column: 2; justify-self: start; font-size: 12px; }
    .csl-notice .csl-notice__close { position: absolute; top: 2px; right: 2px; margin: 0; width: 36px; height: 36px; }
    .csl-notice__card:has(.csl-notice__close) .csl-notice__copy { padding-right: 15px; }
}
.csl-admin { max-width: 1100px; }
.csl-admin__intro { color: #667085; font-size: 14px; }
.csl-admin__preview { margin: 26px 0; border: 1px solid #e2e5ea; border-radius: 12px; overflow: hidden; }
.csl-admin__caption { margin: 0; padding: 14px 22px; background: #fff; color: #667085; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; }
.csl-admin .form-table th { width: 190px; }
.csl-admin textarea { resize: vertical; }
