.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);
}
.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;
    }
}
.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-video--youtube{
    width: 100%;
}

.med-video--youtube > iframe {
    aspect-ratio: 16/9;
    width: 100%;
}

.youtube-full-height {
    height: 100%;
}

.med-video--tiktok{
    aspect-ratio: 9 / 16;
    height: auto;
}

.med-video--tiktok > iframe {
    width: 100%;
    height: 100%;
}

.med-video--tiktok > .med-video--tiktok-consent {
    color: #fff;
    background-color: #333333;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100%;
}

.med-video--tiktok > .med-video--tiktok-consent > h2{
    color: #fff;
}

.med-video--tiktok > .med-video--tiktok-consent > p{
    text-align: center;
}

.med-video--tiktok > .med-video--tiktok-consent > button {
    font-family: "Montserrat", sans-serif;
    line-height: normal;
    border-radius: 4px;
    min-height: 3rem;
    padding: 0 20px;
    display: inline-flex;
    text-decoration: none;
    align-items: center;
    text-align: center;
    max-width: 100%;
    min-width: 3rem;
    box-sizing: border-box;
    color: #fff;
    border: 2px solid #fff;
    background-color: transparent;
    cursor: pointer;
}

.med-video--tiktok-full-width {
    width: 100%
}

.mds-hero__video-container .med-video--youtube{
    display: flex;
}
.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;
}
.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-container .mds-display--flex:has(> .med-espacementBouton.mds-btn:only-child) {
  padding-top: 0!important;
  padding-bottom: 0!important;
}
