/* ============================================================
   CMS PUBLIC - COMPOSANTS ÉDITORIAUX - CSS TECHNIQUE
   ============================================================

   Structure et comportement des composants éditoriaux publics.

   L'habillage visuel (couleurs, typographie, surfaces,
   espacements de charte, bordures, ombres, etc.) est géré
   par les CSS générés depuis la CharteGraph.

   ============================================================ */

   /* ============================================================
   ACCORDÉON ÉDITORIAL - STRUCTURE
   ============================================================ */

.cms-editorial-accordion__item {
    overflow: hidden;
}

.cms-editorial-accordion__content {
    display: block;
}

.cms-editorial-accordion__text {
    min-width: 0;
}

.cms-editorial-accordion__image {
    width: 300px;
    max-width: 42%;
}

.cms-editorial-accordion__image--left {
    float: left;
}

.cms-editorial-accordion__image--right {
    float: right;
}

.cms-editorial-accordion__preview-img,
.cms-editorial-accordion__image img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767.98px) {
    .cms-editorial-accordion__image,
    .cms-editorial-accordion__image--left,
    .cms-editorial-accordion__image--right {
        float: none;
        width: 100%;
        max-width: 100%;
    }
}

/* ============================================================
   DOCUMENTS HTML - STRUCTURE
   ============================================================ */

.html-document {
    width: 100%;
}

.html-document__print-title {
    display: none;
}

.html-document__group-title {
    display: flex;
    align-items: flex-start;
}

.html-document__accordion {
    display: flex;
    flex-direction: column;
}

.html-document__section {
    scroll-margin-top: 1.5rem;
}

.html-document__toggle {
    position: relative;
    display: flex;
    align-items: flex-start;
    width: 100%;
    border: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.html-document__toggle::after {
    content: "+";
    position: absolute;
    top: 50%;
    right: 1rem;
    transform: translateY(-50%);
}

.html-document__toggle[aria-expanded="true"]::after {
    content: "\2212";
}

.html-document__content > :first-child,
.html-document__intro > :first-child {
    margin-top: 0;
}

.html-document__content > :last-child,
.html-document__intro > :last-child {
    margin-bottom: 0;
}

.html-document__group-number,
.html-document__section-number {
    display: inline-block;
    flex: 0 0 auto;
}

.html-document__group-label,
.html-document__section-label {
    min-width: 0;
}

.html-document__actions {
    display: flex;
    justify-content: flex-end;
}

.html-document__print-button {
    font: inherit;
    cursor: pointer;
}

@media (max-width: 600px) {
    .html-document__actions {
        justify-content: stretch;
    }

    .html-document__print-button {
        width: 100%;
    }
}

/* ============================================================
   ACTUALITÉS - STRUCTURE
   ============================================================ */

.cms-news-content::after {
    content: "";
    display: block;
    clear: both;
}

.cms-news-date-break {
    clear: both;
    display: none;
}

