#med-header > .mds-skiplink > nav > ul > li,
#med-header-light > .mds-skiplink > nav > ul > li {
    list-style: none;
}
#med-header .med-bandeau-brand--mobile-container{
    position: sticky;
    top: 0;
    z-index: 1093;
    background-color: white;
}

#med-header .med-bandeau-brand--desktop-container {
    display: flex;
    padding: 16px 0 16px 10px;
    max-width: 1200px;
    margin: auto;
}

#med-header .med-bandeau-brand {
    border-bottom: 2px solid var(--color-grey--5);
    width: 100%;
    display: flex;
    align-items: center;
}

#med-header med-bandeau-brand>div {
    display: flex;
    align-items: center;
}

@media (max-width: 1199px) {
    #med-header .med-bandeau-brand {
        height: 63px;
        justify-content: space-between;
        padding: 0 8px 0 0;
    }
}

@media (max-width: 359px) {
    #med-header .med-bandeau-brand {
        padding-left: 8px;
    }
}


@media (min-width: 360px) and (max-width: 1199px) {
    #med-header .med-bandeau-brand {
        padding-left: 24px;
    }
}

#med-header .med-bandeau-brand__buttons, #med-header .med-bandeau-brand div:first-child{
    display: flex;
    align-items: center;
}

#med-header .med-bandeau-brand div.med-bandeau-brand--desktop-container:first-child{
    width: 100%;
    justify-content: space-between;
}

#med-header .med-bandeau-brand>div.megamenu-mobile-container--opened nav:not(:last-child){
    display: none;
}

#med-header .med-bandeau-brand>div.megamenu-mobile-container--opened .med-icon-top span:first-child{
    margin-bottom: 0;
}

#med-header .med-bandeau-brand>div.megamenu-mobile-container--opened nav:last-child>.med-megamenu--mobile__basculer-le-menu>span:first-child{
     font-size: 24px;
}

#med-header .med-bandeau-brand>div.megamenu-mobile-container--opened nav:last-child{
    margin-left: auto;
}

#med-header .med-header--mobile.med-header-mobile--opened{
    position: fixed;
    transform: translateX(0%);
    opacity: 1;
    z-index: 1080;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    padding-bottom: 87px;
}

#med-header .med-boutonEspacePersoHeader {
    margin-left: auto;
    display: flex;
    margin-bottom: 0;
    margin-top: 0;
}

#med-header .med-boutonEspacePersoHeader a:last-child {
    width: 100%;
}

#med-header .med-boutons-tertiaire-header .med-bouton-tertiaire-header{
    color: var(--color-macif--1);
    width: max-content;
}

#med-header .med-boutons-tertiaire-header .med-bouton-tertiaire-header:not(:last-child){
    margin-right: 4px;
    justify-content: end;
}

.med-bandeau-brand .med-h--auto {
    height: auto !important;
}

.med-bandeau-brand .med-navbar__nav {
    display: flex;
    padding-left: 0;
    margin-bottom: 0;
    list-style: none;
}
#med-header .med-nav-tabs {
    background-color: white;
    border-radius: 80px;
    padding: 5px;
    letter-spacing: 0;
    text-align: center;
    color: #0a2d82;
    border: 2px solid #F2F2F2;
    height: 70px;
}

#med-header .med-nav-tabs ul {
    margin: 0;
    padding: 0;
}

#med-header .med-nav-tab-item {
    list-style: none;
    border-radius: 80px;
    color: #0a2d82;
    padding: 16px;
    cursor: pointer;
    height: 60px;
}

#med-header .med-nav-tab-item.active {
    background-color: #0a2d82;
}

#med-header .med-nav-tab-item.active .med-nav-tab-link {
    color: white;
}

#med-header .med-nav-tab-link {
    background: none;
    border: none;
    font-family: 'Source Sans Pro', sans-serif;
    font-weight: 700;
    font-size: 1rem;
    line-height: 28px;
    letter-spacing: 0;
    text-align: center;
    color: #0a2d82;
}

#med-header .med-nav-tab-item:not(.active):hover {
    background: #dbe5fc;
}

#med-header .med-nav-tab-item:not(.active):hover * {
    color: #0a2d82;
}
.med-button-header-connecte__desktop span[data-js="header-connecte"] {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
}

.med-button-header-connecte__mobile span[data-js="header-connecte"] {
    max-width: 63px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
#med-header .med-btn--tertiary-alert {
    color: var(--color-use--5);
}

#med-header .med-btn--tertiary-alert:hover:not([disabled]):not([aria-disabled=true]),
#med-header .med-btn--tertiary-alert:active:not([disabled]):not([aria-disabled=true]),
#med-header .med-btn--tertiary-alert.active:not([disabled]):not([aria-disabled=true]) {
    background: #fee5ea;
    color: var(--color-use--5);
}

#med-header a.med-open-dialog-panel.mds-btn.mds-btn--tertiary {
    color: #0A2D82;
}

#med-header a.med-open-dialog-panel.mds-btn.med-btn--tertiary-alert {
    color: var(--color-use--5);
}

#med-header .med-modal-header {
    height: 100%;
}

#med-header .med-modal-header > p {
    line-height: 1.5rem;
}

#med-header .med-modal-header .mds-accordion--basic .mds-btn span,
#med-header .med-modal-header .mds-accordion--basic .mds-accordion__title,
#med-header .med-modal-header .mds-accordion--basic .mds-accordion__header {
    margin-bottom: 0;
}

#med-header .med-modal-header .med-volet-subtitle,
#med-header .med-modal-header .mds-accordion--basic .mds-collapse__content .med-volet-subtitle {
    display: block;
    margin: 8px 0 0 0;
    width: 100%;
    text-align: center;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    font-family: "Source Sans Pro", sans-serif;
}

#med-header .med-modal-header .mds-accordion--basic .mds-accordion__item .mds-accordion__header > .mds-collapse__label:focus:not(:focus-visible) {
    outline: none;
}

#med-header .med-modal-header .maciffr-recherche-agence-app .mds-btn.mds-btn--secondary,
#med-header .med-modal-header .mds-input-cell,
#med-header .med-modal-header .maciffr-recherche-agence-app .mds-autocomplete {
    width: 100%;
}

#med-header .med-modal-header .recherche-agence-dropdown {
    width: 90%;
}

#med-header .med-modal__container {
    justify-content: space-evenly;
    height: 100%;
}

#med-header .mds-modal p > a {
    text-decoration: underline;
}
.mds-modal--side-panel .med-modal-header .mds-btn:not(.med-btn-close) {
    width: 100%;
    margin-bottom: 0;
}

.mds-modal--side-panel .med-modal-header p.med-volet-p {
    margin-bottom: 0.625rem !important;
}

.mds-modal--side-panel .med-modal-header .mds-btn.mds-stack-b--48 {
    margin-bottom: 3rem;
}
#med-header .med-bandeau-rubriques {
    align-items: center;
    background-color: var(--color-white);
    border-bottom: 2px solid var(--color-grey--5);
    padding: 0;

}

#med-header .med-bandeau-rubriques--container {
    margin: auto;
    width: 1200px;
    display: flex;
    align-items: center;
}

#med-header .med-bandeau-rubriques__liste {
    display: flex;
    margin-bottom: 0;
    padding-inline-start: 0;
}

#med-header .med-bandeau-rubriques__liste__item {
    list-style-type: none;
    min-height: 62px;
}

#med-header .med-rubrique-header button::after, #med-header .med-rubrique-header a::after{
    padding-left: 4px;
}

#med-header li.med-rubrique-header:hover {
    border-bottom: 2px solid var(--color-macif--1);
}

#med-header li.med-rubrique-header a:hover {
    text-decoration: none;
}

#med-header .med-rubrique-header__bouton, #med-header .med-rubrique-header__lien {
    background-color: transparent;
    color: var(--color-macif--1);
    font-family: "Source Sans Pro", sans-serif;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    border: none;
    align-items: center;
    display: flex;
    min-height: 62px;
    padding: 0 12px;
    height: 100%;
}

#med-header .med-rubrique-header__bouton {
    padding: 0 10px;
}

#med-header .med-rubrique-header__lien:hover {
    text-decoration: none;
    cursor: pointer;
}

#med-header .med-rubrique--underline:hover, #med-header .med-rubrique--underline.active {
    box-shadow: 0 2px 0 var(--color-macif--1);
    outline: 0;
}

#med-header .med-rubrique--underline.active {
    font-weight: 700;
}

#med-header .med-rubrique--underline.active::after {
    padding-left: 0.3rem;
}

#med-header .med-bandeau-rubriques nav[aria-label='contact'] {
    padding-top: 2px;
}

#med-header .med-blocs-urgence-ou-contact {
    display: flex;
    flex-wrap: wrap;
}
/* transitions gérés dans headerMobile.css */

#med-header .med-megamenu {
    position: absolute;
    display: none;
    left: 0;
    width: 100%;
    z-index: 1080;
    line-height: 1.22222;
    font-weight: normal;
    background-color: white;
    background-clip: padding-box;
    margin-top: 2px;
}

#med-header .med-megamenu[aria-hidden="false"] {
    display: block;
}

#med-header .med-megamenu.editMode {
    position: static;
}

#med-header .med-megamenu--container {
    margin: auto;
    display: flex;
    max-width: 1200px;
    gap: 2px;
}

#med-header .med-megamenu__fermer-le-menu {
    position: absolute;
    border: 0;
    top: 0;
    right: 0;
    padding: 0;
    margin: -1px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

#med-header .med-megamenu__fermer-le-menu:focus {
    width: auto;
    height: auto;
    min-height: auto;
    overflow: visible;
    clip: auto;
}

/* MOBILE VIEW */

@media (max-width: 1200px) {
    #med-header .med-megamenu--mobile {
        display: flex;
    }

    #med-header .med-megamenu {
        display: none;
    }
}

#med-header .med-megamenu--mobile{
    top: 0;
    right: 0;
    left: 0;
    z-index: -1;
    height: 100%;
    background-color: #fff;
    opacity: 0;
    transition: cubic-bezier(0.2, 0, 0, 1) .3s;
    visibility: hidden;
    position: fixed;
    display: flex;
    flex-direction: column;
    overflow: unset;
    align-items: unset;
    padding: 95px 24px 0 24px;
    gap: 24px;
}

#med-header .med-megamenu--mobile__blocs-domaine {
    top: 0;
    right: 0;
    left: 0;
    z-index: 1092;
    height: 100%;
    background-color: #fff;
    position: fixed;
    overflow-x: hidden;
    overflow-y: hidden;
    padding: 95px 0 0 0;
    visibility: hidden;
    transition: cubic-bezier(0.2, 0, 0, 1) .3s;
}

/* transitions gérés dans headerMobile.css */

#med-header .med-megamenu--mobile__titre-rubrique,
#med-header .med-megamenu--mobile__titre-domaine {
    all: unset;
    display: flex;
    cursor: pointer;
    justify-content: flex-start;
    color: var(--color-macif--1);
    font-family: "Montserrat-Bold", sans-serif;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: 28px;
}

#med-header .med-megamenu--mobile__titre-rubrique.mds-icon__arrow-back--left:before,
#med-header .med-megamenu--mobile__titre-domaine.mds-icon__arrow-back--left:before {
    font-size: 24px;
}

#med-header .med-megamenu--mobile__titre-rubrique:hover,
#med-header .med-megamenu--mobile__titre-domaine:hover,
#med-header .med-megamenu--mobile__bouton-domaine:hover {
    cursor: pointer;
}

#med-header .med-megamenu--mobile .med-megamenu__button{
    padding: 16px 0;
}

#med-header .med-display--none {
    display: none;
}

#med-header .med-megamenu--mobile__bloc-a-la-une--container {
    background-color: #F2F2F2;
    box-shadow: -24px 0 0 0 #F2F2F2;
}


#med-header .med-megamenu--rh-container {
    background-color: var(--color-white);
    height: 100%;
    display: flex;
}

#med-header .med-megamenu--rh-bloc1-container {
    width: 65%;
    background-color: var(--color-white);
    padding: 32px 8px 32px 12px;
}

#med-header .med-megamenu--rh-bloc1-container .mds-action-list--default {
    margin-left: 0;
}

#med-header .med-megamenu--rh-bloc2-container {
    width: 35%;
    background-color: var(--color-grey--5);
    padding: 32px;
}

#med-header .med-megamenu--rh-bloc2-container .med-megamenu__bloc-liens {
    flex-direction: column;
    gap: 24px;
}

#med-header .med-megamenu--rh-bloc2-container .med-megamenu__conteneur-liens-produits {
    background-color: var(--color-grey--5);
}

#med-header .med-megamenu--rh-bloc2-container-button {
    margin-top: 16px;
}

@media (min-width: 1200px) {
    #med-header .med-megamenu__blocActualiteALaUne-liens .med-megamenu__titre-cards {
        margin-bottom: 24px;
    }
}

@media (max-width: 1199px) {
    #med-header .med-megamenu__blocActualiteALaUne-liens .med-megamenu__titre-cards {
        margin-top: 32px;
        margin-bottom: 16px;
    }
    #med-header .med-megamenu__blocActualiteALaUne-liens .med-megamenu--mobile__titre-cards {
        margin-top: 32px;
    }
    #med-header .med-megamenu--mobile-rh .med-megamenu--mobile__bouton-domaine--container {
        padding: 8px 8px 0 32px;
    }
    #med-header .med-megamenu--mobile-rh .med-megamenu__blocActualiteALaUne-liens {
        padding: 0 32px 32px 32px;
    }
    #med-header .med-megamenu--mobile-rh .med-megamenu__blocActualiteALaUne-liens {
        flex-grow: 1;
    }
}

#med-header .med-megamenu--mobile-rh {
    padding: 95px 0 0;
}

#med-header .med-megamenu--mobile-rh .med-megamenu--mobile__titre-rubrique {
    margin-left: 24px;
}

#med-header .med-megamenu--mobile-rh .med-megamenu__liste-cards {
    gap: 8px;
    margin-left: 0;
    margin-right: 0;
}

#med-header .med-megamenu--rh-bloc2-container .med-megamenu__liste-cards {
    display: flex;
    flex-direction: column;
}



/***
Container des boutons domaine
***/
#med-header .med-megamenu__bouton-domaine--container {
    background-color: #F2F2F2;
    width: 20%;
}

#med-header .med-megamenu__blocs-domaine--container {
    background-color: white;
    width: 80%;
    height: 100%;
}

#med-header .med-full-width {
    width: 100%;
    max-width: 100%;
}

/***
Container des blocs
***/
#med-header .med-megamenu__blocs-domaine {
    display: none;
}

#med-header .med-megamenu__blocs-domaine.visible {
    display: flex;
}

#med-header .med-megamenu__blocs-domaine.reversed {
    flex-direction: row-reverse;
}

#med-header .med-megamenu__blocs-domaine > .bloc-1 {
    width: 55%;
}

#med-header .med-megamenu__blocs-domaine > .bloc-2 {
    width: 45%;
}

/***
Bouton domaine
***/
#med-header .med-megamenu__bouton-domaine {
    font-family: "Source sans pro", sans-serif;
    font-size: 18px;
    color: var(--bleu-macif-blason);
    font-weight: 700;
    padding: 24px 16px;
    line-height: 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    background-color: #F2F2F2;
    border-bottom: solid 2px white;
    border-right: 0;
    border-left: 0;
    border-top: 0;
    gap: 16px;
}

#med-header .med-megamenu__bouton-domaine.active {
    background-color: white;
}

#med-header .med-megamenu__bouton-domaine span:first-child {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-around;
}

#med-header .med-megamenu--mobile__bouton-domaine {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: "Source sans pro", sans-serif;
    font-size: 18px;
    color: var(--bleu-macif-blason);
    font-weight: 700;
    max-height: 88px;
    padding: 16px 0px;
    line-height: 18px;
    width: 100%;
    background-color: white;
    border: 0;
}

#med-header .med-megamenu--mobile__bouton-domaine span:first-child {
    display: flex;
    align-items: center;
    gap: 16px;
}

#med-header .med-megamenu__bouton-domaine__icon,
#med-header .med-megamenu--mobile__bouton-domaine__icon {
    height: 33px;
    width: 33px;
}

#med-header .med-megamenu__bouton-domaine__icon::before,
#med-header .med-megamenu--mobile__bouton-domaine__icon::before {
    font-size: 33px;
    font-weight: 400;
}

#med-header .med-megamenu__bouton-domaine__chevron,
#med-header .med-megamenu--mobile__bouton-domaine__chevron {
    height: 18px;
    width: 18px;
}

#med-header .med-megamenu__bouton-domaine__chevron::before,
#med-header .med-megamenu--mobile__bouton-domaine__chevron::before {
    font-size: 18px;
    font-weight: 400;
}

#med-header .med-megamenu__bouton-domaine__texte {
    text-align: left;
    font-size: 16px;
}

/***
Bloc de droite mégamenu
***/
#med-header .med-megamenu__bloc-cards {
    background-color: #F2F2F2;
    padding: 32px;
}

@media (max-width: 1200px) {
    #med-header .med-megamenu__bloc-cards {
        width: 100%;
    }

    /* On reproduit le comportement de la grille avec un seul élement par ligne en vue mobile, sauf pour les cards compact de la vue produit */
    #med-header .med-megamenu__liste-cards:not(.med-megamenu__cards-compact) > .mds-col {
        flex: 0 0 auto;
        width: 100%;
        padding-left: 0;
        padding-right: 0;
    }
}

#med-header .med-megamenu__bloc-cards .med-megamenu__liste-cards:not(:last-child) {
    margin-bottom: 32px;
}

#med-header .med-megamenu__bloc-cards .mds-card__desc {
    margin-bottom: 0;
}

/***
Titre du bloc conseil
***/
#med-header .med-megamenu__titre-cards,
#med-header .med-megamenu--mobile__titre-cards {
    margin-bottom: 16px;
}

@media (max-width: 1200px) {
    #med-header .med-megamenu__titre-cards {
        display: none;
    }
}

@media (min-width: 1201px) {
    #med-header .med-megamenu--mobile__titre-cards {
        display: none;
    }
}

/**
Bloc conseil
 */
#med-header .med-megamenu__liste-cards .mds-card--compact-v,
#med-header .med-megamenu__liste-cards .mds-card--compact-h {
    font-family: "Source sans pro", sans-serif;
}

#med-header a.mds-card__link:hover {
    text-decoration: none !important;
}

/***
Bloc central mégamenu
***/
#med-header .med-megamenu__btn-bloc-produits {
    margin-top: 24px;
}

#med-header .med-megamenu__conteneur-liens-produits {
    padding: 32px;
    display: flex;
    background-color: white;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-start;
}

#med-header .med-megamenu__bloc-liens {
    display: flex;
    flex-direction: row;
    gap: 32px;
}

@media (max-width: 1200px) {
    #med-header .med-megamenu__bloc-liens {
        width: 100%;
        flex-direction: column;
        padding: 32px;
    }

    #med-header .med-megamenu__conteneur-liens-produits {
        width: 100%;
        padding-top: 24px;
        padding-bottom : 32px;
    }
}

/***
Liste de lien (liens et titre)
***/
#med-header .med-megamenu__liste-liens {
    flex: 1 1 50%;
}

#med-header .med-megamenu__liste-liens ul {
    list-style: none;
    padding-left: 0px;
    margin-bottom: 0;
}

#med-header .med-megamenu__bloc-liens a {
    color:var(--color-grey--80);
}

#med-header .med-megamenu__bloc-liens .med-lienMegamenu {
    display: flex;
    align-items: center;
}

#med-header .med-megamenu__bloc-liens .med-lienMegamenu >span {
    height: 16px;
}

#med-header .med-megamenu__bloc-liens a:hover {
    text-decoration: underline;
}

#med-header .med-megamenu__liste-liens ul > li:not(:last-child) {
    margin-bottom: 8px;
}

@media (max-width: 1200px) {
    #med-header .med-megamenu__btn-bloc-produits {
        margin: 0 32px 32px 32px;
        width: calc(100% - 64px);
    }
}

#med-header .med-megamenu__liste-liens--titre {
    margin-bottom: 24px;
    word-break: break-word;
}

@media (max-width: 1200px) {
    #med-header .med-megamenu__liste-liens--titre {
        display: none;
    }
}

#med-header .med-megamenu--mobile__liste-liens--titre {
    margin-bottom: 16px;
}

@media (min-width: 1201px) {
    #med-header .med-megamenu--mobile__liste-liens--titre {
        display: none;
    }
}

#med-header .med-megamenu__liste-liens .mds-badge {
    margin-left: 8px;
}
/***
Cards conseils : Card basic DS an affichage mobile, reproduit pour affichage desktop
***/
#med-header .med-card--megamenu-basic .mds-card__title {
    font-family: "Montserrat", sans-serif;
    font-size: .875rem;
    line-height: 1.125;
    font-weight: 700;
    margin-bottom: 4px;
}

#med-header .med-card--megamenu-basic {
    flex-direction: row;
    min-width: 200px;
    min-height: 90px;
    max-width: 100%;
    font-family: "Source sans pro", sans-serif;
}

#med-header .med-card--megamenu-basic .mds-card__desc {
    color: #666;
    font-family: "Source sans pro", sans-serif;
    line-height: 1.125rem;
    font-size: .87rem;
}

#med-header .med-card--megamenu-basic .mds-card__content {
    padding: 16px 16px 32px 16px;
}

#med-header .med-card--megamenu-basic .mds-card__img {
    aspect-ratio: 58/37;
    width: 93px;
    min-height: 90px
}

#med-header .med-card--megamenu-basic .mds-card__img img {
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
}
#med-header .med-megamenu__bloc-action-list .mds-action-list--default {
    margin-bottom: 0;
    gap: 0 24px;
    margin-right: 0;
}

@media (min-width: 900px) {
    #med-header .med-megamenu__bloc-action-list .mds-action-list__item {
        width: calc(50% - 24px);
    }
}

@media (max-width: 899px) {
    #med-header .med-megamenu__bloc-action-list .mds-action-list__item {
        width: calc(100% - 24px);
    }
    #med-header .med-megamenu__bloc-action-list .mds-action-list__item-container-content {
        width: 100%;
    }
}

#med-header .med-megamenu__bloc-action-list {
    display: flex;
    flex-direction: column;
}
