/* CS Theme 0.14.8 — barre du menu et continuité du survol. */
.cs-header-main__navigation {
    align-self: stretch;
    align-items: stretch;
}

.cs-megamenu--desktop {
    display: flex;
    align-self: stretch;
    width: 100%;
}

.cs-megamenu__list {
    display: flex;
    align-self: stretch;
    align-items: stretch;
    justify-content: center;
    width: 100%;
    gap: 28px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.cs-megamenu__item {
    position: static;
    display: flex;
    align-items: stretch;
}

.cs-megamenu__top-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    gap: 5px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cs-text);
    font-family: inherit;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: .35px;
    text-decoration: none;
    text-transform: uppercase;
    white-space: nowrap;
    cursor: pointer;
}

.cs-megamenu__top-link:hover,
.cs-megamenu__top-link:focus {
    color: var(--cs-brown);
}

.cs-megamenu__chevron {
    display: block;
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    transition: transform 160ms ease;
}

.cs-megamenu__item--has-children:hover .cs-megamenu__chevron,
.cs-megamenu__item--has-children:focus-within .cs-megamenu__chevron {
    transform: rotate(180deg);
}

.cs-megamenu__panel {
    position: absolute;
    top: calc(100% - 1px);
    left: 50%;
    z-index: 1100;
    width: min(800px, calc(100vw - 40px));
    padding: 24px 30px 30px;
    border-bottom: 4px solid var(--cs-beige-medium);
    border-radius: 0 0 4px 4px;
    background: #fff;
    color: var(--cs-text);
    box-shadow: 0 8px 22px rgb(0 0 0 / 12%);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    /* Aucune translation verticale : le panneau touche toujours le header. */
    transform: translate(-50%, 0);
    transition: opacity 150ms ease, visibility 150ms ease;
}

/* Zone de continuité supplémentaire, appartenant au panneau du même li. */
.cs-megamenu__panel::before {
    position: absolute;
    top: -12px;
    left: 0;
    width: 100%;
    height: 12px;
    content: "";
}

.cs-megamenu__item--has-children:hover .cs-megamenu__panel,
.cs-megamenu__item--has-children:focus-within .cs-megamenu__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

/* Colonnes et sous-listes rendues par cs_megamenu 0.5.0.
 * Aucune répartition automatique des groupes par le thème. */

@media (min-width: 768px) and (max-width: 1199.98px) {
    .cs-megamenu__list {
        gap: 18px;
    }

    .cs-megamenu__top-link {
        font-size: 12px;
        letter-spacing: .15px;
    }
}

@media (min-width: 768px) and (max-height: 600px) {
    .cs-megamenu__panel {
        max-height: calc(100vh - 110px);
        overflow-y: auto;
    }
}
