/**
 * =============================================================================
 * Contenu principal de la vue d'une actualité
 * =============================================================================
 */

.actu-date {
    padding-left: 10px;
    padding-right: 10px;
    margin-bottom: 40px;
    line-height: 30px;
    font-size: 0.74em;
    font-weight: 500;
    text-transform: uppercase;
    color: #64728a;
    background-color: #efeff0;
    background: linear-gradient(to right, #efeff0 0%, transparent 100%);
}

.actu-content ul {
    margin: 20px 0;
    padding-left: 40px;
    list-style: square;
}

.actu-content iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
}



/**
 * =============================================================================
 * Autres actualités
 * =============================================================================
 */

.other-actus h3 {
    justify-content: center;
    position: relative;
    margin-bottom: 40px;
    font-size: 0.9em;
    font-weight: 600;
    text-transform: uppercase;
    color: white;
}


/**
 * Titre des actualités récentes
 */

.other-actus h3 span {
    position: relative;
    z-index: 1;
    line-height: 30px;
}

.other-actus h3:before,
.other-actus h3:after {
    content: '';
    display: block;
    position: absolute;
    z-index: 0;
}

.other-actus h3:before {
    left: 15%;
    right: 15%;
    margin-top: 0;
    width: auto;
    height: 100%;
    transform: skewX(-24deg);
}

.other-actus h3:after {
    top: calc(50% - 1px);
    left: 0;
    right: 0;
    height: 2px;
    background-color: #005ba8;
    /* identique :before déjà défini */
}



/**
 * Liste des actualités récentes
 */

.other-actus ul {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.other-actus li {
    margin-bottom: 20px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
}


/**
 * Carte d'une actualité récente
 */

.other-actus a {
    display: block;
    position: relative;
}

.other-actus a h4 {
    position: absolute;
    z-index: 1;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px;
    font-size: 1.2em;
    font-weight: 800;
    line-height: 1;
    text-transform: uppercase;
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
}

.other-actus a div {
    overflow: hidden;
}

.other-actus a img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    transition: transform 2s linear;
}

.other-actus a:hover img {
    transform: scale(1.1);
}



/**
 * =============================================================================
 * Media queries
 * =============================================================================
 */

@media screen and (min-width: 960px) {

    .actu-content iframe {
        aspect-ratio: 16 / 9;
    }

    .other-actus h3 {
        margin-top: 0;
    }

    .other-actus ul:after {
        content: '';
        display: block;
        flex: 1;
        width: 100%;
        background-color: #f4f5f7;
    }
}