/* Articles (news, accueil...) : liste image + texte en alternance, video mp4 avec bouton son, media portrait sur fond flou.
   Regles extraites de news/css/news.css en v5.20.0 ; les sections qui les entourent (.articles, .previews) gardent leur style dans la page. */

/* v5.11.0 : bloc des articles sur fond blanc (meme esprit que les apercus de l'accueil) */
.articles {
    display: block;
    position: relative;
    background: #fff;
    padding: 60px 25px 70px;
    font-family: 'Roboto', sans-serif;
    color: var(--font);
}
.articles-in {
    max-width: 1080px;
    margin: auto;
}
.articles h4 {
    display: block;
    position: relative;
    margin: 0 0 6px;
    text-transform: uppercase;
    color: var(--bleu);
    font-size: 16px;
    font-weight: normal;
    letter-spacing: 3px;
}
.articles h2 {
    font-size: clamp(16px, 4vw, 2.4em);
    max-width: 600px;
    margin: 0 0 40px;
    line-height: 1.1;
}
.article {
    display: flex;
    align-items: center;
    gap: 36px;
    margin-bottom: 50px;
}
.article:nth-child(even) {
    flex-direction: row-reverse;
}
.article:last-child {
    margin-bottom: 0;
}
.article-img {
    display: block;
    flex: 0 0 52%;
    aspect-ratio: 16 / 9;
    background: #e5e7eb center / cover no-repeat;
    box-shadow: 0 2px 3px var(--box_shadow);
}
.article-txt {
    flex: 1 1 auto;
}
.article-tag {
    display: block;
    color: var(--bleu);
    text-transform: uppercase;
    letter-spacing: 3px;
    font-size: 13px;
    margin-bottom: 8px;
}
.article-txt h3 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}
.article-txt p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
    color: var(--font_2);
}
@media screen and (max-width: 760px) {
    .article,
    .article:nth-child(even) {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-bottom: 36px;
    }
    .article-img {
        flex: none;
    }
}

/* v5.13.0 : video d'article (mp4) en boucle, muette par defaut, bouton son en bas a droite (haut-parleur barre / actif) */
.article-video {
    position: relative;
    overflow: hidden;
}
.article-video video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.article-sound {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(0, 0, 0, .55);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s ease-out;
}
.article-sound:hover {
    background: rgba(0, 0, 0, .8);
}
.article-sound svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}
.article-sound .ico-on,
.article-sound.on .ico-off {
    display: none;
}
.article-sound.on .ico-on {
    display: block;
}

/* v5.13.1 : media en portrait (ou carre) : affiche entier sur un fond flou fait de la meme image ou video agrandie */
.article-img.portrait {
    position: relative;
    overflow: hidden;
    background-image: none !important;
}
.article-img .article-blur {
    position: absolute;
    inset: -10%;
    background: center / cover no-repeat;
    filter: blur(18px) brightness(.85);
}
.article-img .article-fit {
    position: absolute;
    inset: 0;
    background: center / contain no-repeat;
}
.article-video.portrait video.main {
    object-fit: contain;
}
.article-video.portrait video.blur {
    inset: -10%;
    width: 120%;
    height: 120%;
    filter: blur(18px) brightness(.85);
}
