/* Lien d'évitement */
.docaposte-sante-skip-link {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 100000;
    display: inline-block;
    padding: 12px 16px;
    border-radius: 9999px;
    color: #fff !important;
    background-color: #008282;
    box-shadow: 0 4px 12px rgb(0 0 0 / 18%);
    font-family: var(--e-global-typography-e901459-font-family), sans-serif;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.1429;
    text-decoration: none !important;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - 24px));
    transition: opacity 150ms ease, transform 150ms ease, background-color 150ms ease;
}

.docaposte-sante-skip-link:hover {
    color: #fff !important;
    background-color: #005a5a;
}

.docaposte-sante-skip-link:focus,
.docaposte-sante-skip-link:focus-visible {
    color: #fff !important;
    background-color: #008282;
    outline: 2px solid var(--e-global-color-primary, #003da5) !important;
    outline-offset: 4px !important;
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.admin-bar .docaposte-sante-skip-link {
    top: 48px;
}

#contenu-principal,
[data-docaposte-sante-main-content] {
    scroll-margin-top: 112px;
}

/* Menu imbriqué Elementor : le vrai bouton couvre tout le libellé. */
.elementor-location-header .e-n-menu-title {
    position: relative;
}

.elementor-location-header .e-n-menu-title > .e-n-menu-title-container:not(a) {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

.elementor-location-header .e-n-menu-title > .e-n-menu-dropdown-icon {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: inherit;
    background: transparent !important;
    cursor: pointer;
}

.elementor-location-header .e-n-menu-title:focus-within {
    z-index: 3;
    border-radius: 9999px;
    outline: 2px solid var(--e-global-color-primary, #003da5) !important;
    outline-offset: 4px !important;
}

.elementor-location-header .e-n-menu-title > .e-n-menu-dropdown-icon:focus,
.elementor-location-header .e-n-menu-title > .e-n-menu-dropdown-icon:focus-visible,
.elementor-location-header .e-n-menu-title > a.e-n-menu-title-container:focus,
.elementor-location-header .e-n-menu-title > a.e-n-menu-title-container:focus-visible {
    outline: none !important;
}

@media (max-width: 782px) {
    .admin-bar .docaposte-sante-skip-link {
        top: 62px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .docaposte-sante-skip-link {
        transition: none;
    }
}
