/* > Actualités -------------------------------------- */

.news-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
}
.news-item_fig {
    position: relative;
    display: block;
    margin-right: 5%;
    max-width: 480px;
    flex: 40%;
}
.news-item_fig .thumbnails {
    z-index: 0;
    margin: 0;
}
.news-item_fig .thumbnails.th-video { }
.news-item_fig .thumbnails.th-video img {
    width: 133.33%;
    margin: 0 -16.66%;
}
.news-item_fig .thumbnails.th-video::before {
    content: "";
    width: 54px;
    height: 54px;
    position: absolute;
    top: calc(50% - 27px);
    left: calc(50% - 27px);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%23ffffff' class='bi bi-play-btn-fill' viewBox='0 0 16 16'%3E%3Cpath d='M0 12V4a2 2 0 0 1 2-2h12a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2m6.79-6.907A.5.5 0 0 0 6 5.5v5a.5.5 0 0 0 .79.407l3.5-2.5a.5.5 0 0 0 0-.814z'/%3E%3C/svg%3E");
    background-size: 100% 100%;
    z-index: 1;
}
.news-item_content {
    flex: 60%;
    align-self: center;
    max-width: 480px;
}
.news-item h2 { 
    font-size: 1.75em !important;
    margin-bottom: 1.25rem;
}
.news-item h3 { 
    font-family: 'Lato', sans-serif;
    font-weight: 900;
    margin: 0 0 1.25rem;
}
.news-date {
    position: absolute;
    bottom: 0; left: 0;
    background-color: var(--bs-primary);
    padding: .5rem 1rem;
    font-size: .875rem;
    text-align: center;
    z-index: 1;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--bs-white);
}
.news-date strong {
    display: block;
    font-size: 1.5em;
    line-height: 1em;
}

/* > Actualités > module accueil --------------------- */
.news-module-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.news-module-list .news-date { 
    font-size: .75rem;
    padding: .25rem .5rem;
}
.news-module-list li + li {
    margin-top: 5%;
}
.news-module-list .news-item h3 {
    margin-top: 0;
    font-size: 1.25em;
    margin: 0 0 .75rem;
}
.news-module-list li .news-item_fig .thumbnails.th-video::before {
    width: 32px;
    height: 32px;
    top: calc(50% - 16px);
    left: calc(50% - 16px);
}
.news-module-list .news-item p { margin: 0 0 0.75rem; }

/* déclinaison actus limittées */
.news-item.limit-1 {
    max-width: 980px;
    margin: 0 auto;
}
@media screen and (max-width: 980px) {
    .news-item.limit-2 {
        max-width: 740px;
        margin-left: auto;
        margin-right: auto;
    }
}
@media screen and (min-width: 1024px) {
    .news-module {
        padding-top: 3rem !important;
        padding-bottom: 3rem !important;
    }
}
@media screen and (max-width: 980px) {
    .news-module-list {
        flex-direction: row;
    }
    .news-module-list li { flex: 33.33%; }
    .news-module-list li + li { 
        margin-top: 0;
        margin-left: 1.5rem;
    }
}
@media screen and (max-width: 740px) {
    .news-item_fig,
    .news-item_content {
        flex: 50%;
    }
    .news-module-list {
        flex-wrap: wrap;
    }
    .news-module-list li {
        width: 100%;
        flex: 100%;
    }
    .news-module-list li + li { margin: 1rem 0 0; }
    .news-module-list .news-item_fig { max-width: 140px; }
}
@media screen and (max-width: 540px) {
    .news-module-article {
        flex-wrap: wrap;
    }
    .news-item_fig,
    .news-item_content {
        flex: 100%;
        margin-bottom: 1.25rem;
    }
}

/* > Actualités > page listing ----------------------- */

#news-list .news-item {
    display: block; 
    margin-bottom: 2rem;
}
#news-list .news-item_fig { margin: 0 0 1rem; }
/*
@media screen and (max-width: 980px) {
    #news-list .row {
        max-width: 740px;
        margin: 0 auto;
    }
    #news-list .news-item { display: block; }
    #news-list .news-item_fig { margin-bottom: 1rem; }
}
@media screen and (max-width: 540px) {
    #news-list .row {
        max-width: 380px;
    }
}
*/
.news-published {
    text-transform: none;
    font-style: normal;
    font-size: .75rem;
    font-weight: 400;
    color: #747474;
}
h1 + .news-published,
h3 + .news-published { 
    display: block;
    margin-top: -1rem;
    margin-bottom: 1rem;
}
.news-detail_breadcrumb h3 + .news-published { 
    margin-top: -.5rem;
    margin-bottom: .5rem;
}

/* > Actualités > fiche article --------------------- */
#news-detail h1 {
    font-size: 1.75rem;
    letter-spacing: normal;
    color: var(--bs-primary);
    text-transform: none;
    margin-bottom: 2rem;
}
.news-detail_content {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#news-detail .news-item_content {
    max-width: 720px;
}
#news-detail .news-detail_fig,
#news-detail .news-detail_fig__lg {
    position: relative;
}
.news-detail_fig__lg.ratio .news-date {
    max-width: 95px;
    height: 95px;
    text-align: center;
}
.news-detail_fig__list {
	margin-top: 10px;
	padding-left: 0;
	display: flex;
}
.news-detail_fig__list li {
	flex: 33.33%;
	max-width: 296px;
	margin-left: 10px;
}
.news-detail_fig__list li:first-child { margin-left: 0; }

/* --- */
.news-breadcrumb-list {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-left: 0;
}
.news-breadcrumb-list .news-item_fig {
    width: 25%;
    flex: 0 0 auto;
    max-width: 160px;
}
.news-breadcrumb-list .news-date { 
    font-size: .75rem;
    padding: .5rem .75rem;
}
.news-breadcrumb-list li + li { margin-top: 5%; }
.news-breadcrumb-list .news-item h3 {
    margin-top: 0;
    font-size: 1.25em;
    margin: 0 0 .75rem;
}
.news-breadcrumb-list .news-item p { margin: 0 0 0.75rem; }

/* --- */
.new-item_share {
    padding: .75rem 1.25rem;
    background-color: #d2e5f5;
}
.new-item_share .rs-link { margin: 0; }
.new-item_share .rs-link a {
    width: 32px;
    height: 32px;
    padding: 4px;
}
.new-item_share .rs-link svg {
    fill: var(--bs-primary);
}
.new-item_share .rs-link a:hover { background-color: var(--bs-secondary); }
.new-item_share .rs-link a:hover svg { fill: #d2e5f5 }

@media screen and (min-width: 1440px) {
    #news-detail h1 { font-size: 2rem !important; }
}
@media screen and (max-width: 540px) {
    .news-breadcrumb-list .news-item_fig { 
        width: 33%;
        min-width: 120px;
    }
    .news-breadcrumb-list .news-item_content p { display: none; }
}
@media screen and (max-width: 980px) {
    .news-detail_infos,
    .news-detail_content {
        max-width: 740px;
    }
}
