.med-alert-banner .mds-collapse__content a {
    width: 100%;
    background-color: transparent;
    border-color: #fff;
}

.med-alert-banner button:focus:not(:focus-visible) {
    outline: none;
}

.med-alert-banner .mds-collapse__content a:hover:not([aria-disabled=true]):not([aria-current]) {
    background: rgba(255, 255, 255, .1);
    border-color: #fff;
}

.med-alert-banner .mds-collapse__content a + button {
    margin-top: .5rem;
}
.med-grid-border{
    border: solid 2px;
}
.med-border {
    border: 1px solid var(--color-grey--20);
}

.med-w--50 {
    width: 50%;
}

.med-border--bleu-macif {
    border-color: var(--color-macif--1);
}
.med-image__figure {
    margin: 0 0 .625rem;
}

.med-image__img-desktop, .med-image__img-mobile {
    margin-bottom: 0.3125rem;
    line-height: 1;
    max-width: 100%;
    height: auto;
    vertical-align: middle;
    border-style: none;
}

.med-image-figure--a-gauche,
.med-image-figure--a-droite,
.med-image-figure--centree{
    display: flex;
}


.med-image-figure--a-gauche {
    justify-content: flex-start;
}

.med-image-figure--a-droite {
    justify-content: flex-end;
}

.med-image-figure--centree {
    justify-content: center;
}
.cke_editable > .mds-link.med-link.mds-link--reverse {
    color: var(--color-use--9);
}

.med-link:not(.mds-link--standalone):not(.mds-link--reverse){
    background-color: transparent;
}

.med-link:not(.mds-link--standalone){
    text-decoration: underline;
}
.med-paragraphe > p {
  margin: 0;
  margin-bottom: 4px;
  margin-top: 4px;
}

@media (min-width: 56.25em) {
  .med-paragraphe > p {
    margin: 0;
    margin-bottom: 8px;
    margin-top: 8px;
  }
}
/* Gestion des espacements pour les listes DS */
ul.mds-list--styled.med-list,
ol.mds-list--styled.med-list{
    padding: 0;
    margin-bottom: 0.5rem;
    margin-top: 0.5rem;
}
.med-nav-tabs.med-nav-tabs-carre {
    background-color: white;
    padding: 0px;
    letter-spacing: 0;
    text-align: center;
    color: #0a2d82;
    border: 0;
    border-radius: 4px 4px 0 0;
    height: 60px;
}

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

.med-nav-tab-item.med-tab-item-carre {
    list-style: none;
    color: #0a2d82;
    padding: 16px;
    cursor: pointer;
    height: 60px;
    border-radius: 4px 4px 0 0;
    width: 0; /* permet aux onglets de se partager le même espace en responsive*/
}

.med-nav-tab-item.med-tab-item-carre:not(.active) {
    border: 2px solid #F2F2F2;
}

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

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

.med-tab-item-carre.med-nav-tab-link {
    background: none;
    border: none;
    font-family: 'Montserrat-SemiBold', sans-serif;
    font-size: 14px;
    line-height: 28px;
    letter-spacing: 0;
    text-align: center;
    color: #0a2d82;
    text-wrap: nowrap;
}

.med-tab-item-carre.med-tab-pane {
    display: none;
}

.med-tab-item-carre.med-tab-pane.active-content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: #0a2d82;
    padding: 32px;
}

.med-tab-item-carre.med-tab-pane.active-content a.mds-btn {
    width: 100%;
}

@media screen and (max-width: 768px) {
    .med-tab-item-carre.med-tab-pane.active-content {
        padding: 24px;
    }
}

.med-add-tab-item {
    text-align: left;
}

.med-accessibility-hidden {
    opacity: 0;
    filter: alpha(opacity=0);
    height:0;
    width: 0;
    margin: 0;
}

a.med-accessibility-hidden:focus {
    opacity: 100;
    filter: alpha(opacity=100);
    height:100%;
    width: 100%;
    color: white;
}
.med-lanceur-devis__bouton-secondaire span {
  font-family: "Source Sans Pro", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-align: left;
}

.med-lanceur-devis__bouton-secondaire:after {
  margin-left: auto;
}
.med-espacementBouton.mds-btn,
a[role="button"].med-bouton.mds-btn{
  margin: 0;
  margin-bottom: 16px;
  margin-top: 16px;
}

@media (min-width: 900px) {
    .med-espacementBouton.mds-btn,
  a[role="button"].med-bouton.mds-btn{
    margin: 0;
    margin-bottom: 20px;
    margin-top: 20px;
  }
}

.mds-container :not(.mds-display--flex) > .mds-display--flex:has(> .med-espacementBouton.mds-btn) + .mds-display--flex:has(> .med-espacementBouton.mds-btn) .med-espacementBouton.mds-btn:only-child,
.mds-container-fluid :not(.mds-display--flex) > .mds-display--flex:has(> .med-espacementBouton.mds-btn) + .mds-display--flex:has(> .med-espacementBouton.mds-btn) .med-espacementBouton.mds-btn:only-child {
    margin-top: 0;
}

.mds-hero__body .med-page-contact__boutons .med-espacementBouton {
  margin-top: 0;
  margin-bottom: 0;
}

.mds-container .mds-display--flex:has(> .med-espacementBouton.mds-btn:only-child) {
  padding-top: 0!important;
  padding-bottom: 0!important;
}
.mds-h1.med-heading,
h1.med-heading{
    margin: 24px 0;
}
.mds-h2.med-heading,
h2.med-heading{
    margin: 20px 0;
}
.mds-h3.med-heading,
h3.med-heading{
    margin: 16px 0;
}
.mds-h4.med-heading,
h4.med-heading{
    margin: 12px 0;
}
.mds-h5.med-heading,
h5.med-heading{
    margin: 8px 0;
}
.mds-h6.med-heading,
h6.med-heading{
    margin: 4px 0;
}

@media (min-width: 900px) {
    .mds-h1.med-heading,
    h1.med-heading{
        margin: 32px 0;
    }
    .mds-h2.med-heading,
    h2.med-heading{
        margin: 24px 0;
    }
    .mds-h3.med-heading,
    h3.med-heading{
        margin: 20px 0;
    }
    .mds-h4.med-heading,
    h4.med-heading{
        margin: 16px 0;
    }
    .mds-h5.med-heading,
    h5.med-heading{
        margin: 12px 0;
    }
    .mds-h6.med-heading,
    h6.med-heading{
        margin: 8px 0;
    }
}
.med-tempsForts sup{
    top: unset;
}
.med-produit-mis-en-avant--image{
    flex: 0 0 50%;
    height: auto;
    position: relative;
}

.med-produit-mis-en-avant--image img{
    position: absolute;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

@media (max-width: 56.23em) {
    .med-produit-mis-en-avant--container{
        flex-direction: column;
        align-items: center;
    }

    .med-produit-mis-en-avant--image {
        width: 100%;
    }

    .med-produit-mis-en-avant--image img {
        position: initial;
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .med-produit-mis-en-avant--container .mds-btn{
        width: 100%;
    }
}
.med-produit-complementaire--container{
    flex-direction: column;
    align-items: center;
}

.med-produit-complementaire--image {
    width: 100%;
    flex: 0 0 50%;
    height: auto;
    position: relative;
}

.med-produit-complementaire--image img {
    position: initial;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.med-produit-complementaire--container .mds-btn{
    width: 100%;
}
/* IMAGE */
.med-service-image--image-container{
    width: 100%;
    flex: 0 0 50%;
    height: auto;
    position: relative;
}

.med-service-image--image-container img{
    position: initial;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

/* PICTOGRAMME */
.med-service-pictogramme .med-service-pictogramme--picto-container{
    height: 64px;
    min-height: 64px;
}

.med-service-pictogramme .med-service-pictogramme--picto{
    font-size: 64px;
}

@media (min-width: 56.23em) {
    /* IMAGE */
    .med-service-image{
        display: flex;
        height: 100%;
    }

    .med-service-image--image-container{
        width: 223px;
        min-width: 223px;
        max-width: 223px;
    }

    .med-service-image--image-container img{
        position: absolute;
        height: 100%;
        width: 100%;
        object-fit: cover;
    }

    /* PICTOGRAMME */
    .med-services{
        display: flex;
    }

    .med-service-pictogramme{
        display: flex;
    }

    .med-service-pictogramme .med-service-pictogramme--picto-container{
        height: 96px;
        min-height: 96px;
    }

    .med-service-pictogramme .med-service-pictogramme--picto{
        font-size: 96px;
    }
}
