.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-etoiles {
    width: fit-content;
    font-size: 0;
}

.med-notation svg {
    margin: 0 0.1rem;
}

.med-notation button {
    background-color: transparent;
    margin: 0;
    padding: 0 1px;
}

.med-notation button:focus {
    outline: 0;
}

.med-etoiles:hover:not(.med-etoiles-disabled) button:not([aria-disabled="true"]) svg *,
.med-etoiles:not(.med-etoiles-disabled) [aria-disabled="true"] svg *,
.med-etoiles:not(.med-etoiles-disabled) button:focus svg path {
    fill: var(--bleu-macif-blason);
}

.med-etoiles button:hover:not(.med-etoile-choisie):not([aria-disabled="true"]) ~ button polygon,
.med-etoiles:not(:hover) polygon,
.med-etoiles .med-etoile-choisie ~ button[aria-disabled="true"] polygon,
.med-etoiles-disabled polygon {
    fill: var(--gris-clair-de-lune);
}

.med-etoiles button:hover:not(.med-etoile-choisie):not([aria-disabled="true"]) ~ button path,
.med-etoiles:not(:hover) path,
.med-etoiles .med-etoile-choisie ~ button[aria-disabled="true"]  path,
.med-etoiles-disabled path
{
    fill: var(--gris-600);
}

.med-notation [aria-disabled=true] {
    pointer-events: none;
}

.med-notation-message {
    color: var(--success);
    margin-top: 16px;
}

.med-border--0 {
    border: 0 !important;
}
