.articles-wrapper .articles-link .articles-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.articles-wrapper .articles-link .articles-card .articles-card-image img {
    transition: transform 0.3s ease;
}

.articles-wrapper .articles-link .articles-card .articles-titre {
    transition: transform 0.3s ease;
}

.articles-wrapper .articles-link:hover .articles-card .articles-card-image img {
    transform: scale(1.3);
}

.articles-wrapper .articles-link:hover .articles-card .articles-titre {
    transform: scale(1.2);
}

.articles-wrapper .articles-link:hover {
    opacity: 1;
}

.news-wrapper .articles-link .articles-card {
    transition: all 0.3s ease;
    overflow: hidden;
}

.new-link .articles-card .articles-card-image img {
    transition: transform 0.3s ease;
    transform: scale(1.1);
}

.new-link .articles-card .articles-titre {
    transition: transform 0.3s ease;
}

.new-link:hover .articles-card .articles-card-image img {
    transform: scale(1.3);
    opacity: 0.7;
}

.new-link:hover .articles-card .articles-titre {
    opacity: 0.7;
}

.new-link:hover {
    opacity: 1;
}

.articles-wrapper {
    flex-wrap: wrap;
    display: flex;
    gap: 15px;
    justify-content: flex-start;
}

.articles-wrapper .articles-link {
    cursor: pointer;
    border-radius: 1rem;
}

.articles-wrapper .articles-link:nth-child(-n+3) {
    width: 642px;
    height: 300px;
}

.articles-wrapper .articles-link:nth-child(n+4) {
    width: 423px;
    height: 190px;
}

.articles-wrapper .articles-link:last-child {
    margin-bottom: 20px;
}

.new-wrapper {
    display: grid;
    grid-area: 2;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}

.new-wrapper-left {
    display: flex;
    flex-direction: column;
    grid-column: 1;
    width: 390px;
    gap: 18px;
}

.new-link {
    cursor: pointer;
    border-radius: 1rem;
    width: 390px;
}

.new-link .articles-card {
    position: relative;
    height: 150px;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: black;
    transition: 0.05s;
    overflow: hidden;
}

.new-link .articles-card .articles-card-image {
    height: 130px;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 580px;
}

.new-link .articles-card .articles-card-image img {
    height: auto;
    width: 100%;
    object-fit: cover;
}

.new-link .articles-card .articles-card-image .articles-card-date {
    border-radius: 20px;
    background: #fff;
    font-size: 18px;
    padding: 0 10px;
    position: absolute;
    height: 25px;
    display: flex;
    top: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    margin-top: 8px;
    gap: 6px;
}

.articles-wrapper a {
    text-decoration: none;
    color: inherit;
    width: 426px;
    height: 190px;
}

.articles-wrapper .articles-link .articles-card {
    position: relative;
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    border-radius: 14px;
    background: black;
    transition: 0.05s;
}

.articles-wrapper .articles-link .articles-card .articles-card-image {
    height: 100%;
    border-radius: 14px 14px 0 0;
    border-bottom: none;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-wrapper .articles-link .articles-card .articles-card-image img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.articles-wrapper .articles-link .articles-card .articles-card-image .articles-card-date {
    border-radius: 20px;
    background: #fff;
    font-size: 18px;
    padding: 0 10px;
    position: absolute;
    height: 36px;
    display: flex;
    top: 0;
    right: 0;
    justify-content: center;
    align-items: center;
    margin-right: 8px;
    margin-top: 8px;
    gap: 6px;
}

.articles-wrapper .articles-link:nth-child(2) .articles-card-date,
.articles-wrapper .articles-link:nth-child(3) .articles-card-date {
    animation: pulse 1.5s infinite;
}

.articles-wrapper .articles-link .articles-card .articles-card-image .articles-card-date .articles-date-icon {
    height: 24px;
    width: 24px;
    background: url(/assets/img/icon/icon_time.png) no-repeat;
}

.new-link .articles-card .articles-card-image .articles-card-date .articles-date-icon {
    height: 16px;
    width: 16px;
    background: url(/assets/img/icon/icon_time.png) no-repeat;
    background-size: contain;
}

.articles-wrapper .articles-link .articles-card .articles-card-image .articles-card-date span {
    color: black;
    font-size: 20px;
}

.new-link .articles-card .articles-card-image .articles-card-date span {
    color: black;
    font-size: 16px;
}

.articles-wrapper .articles-link .articles-card .articles-titre {
    height: 50px;
    border-radius: 0 0 12px 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.new-link .articles-card .articles-titre {
    height: 45px;
    border-radius: 0 0 12px 12px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-wrapper .articles-link:nth-child(-n+4) .articles-card .articles-titre {
    height: 75px;
}

.articles-wrapper .articles-link .articles-card .articles-titre.gestion {
    background-color: var(--color-red);
}

.articles-wrapper .articles-link .articles-card .articles-titre.securite {
    background-color: var(--color-green);
}

.articles-wrapper .articles-link .articles-card .articles-titre.animation {
    background-color: var(--color-orange);
}

.articles-wrapper .articles-link .articles-card .articles-titre.dev {
    background-color: var(--color-blue);
}

.new-link .articles-card .articles-titre.gestion {
    background-color: var(--color-red);
}

.new-link .articles-card .articles-titre.securite {
    background-color: var(--color-green);
}

.new-link .articles-card .articles-titre.animation {
    background-color: var(--color-orange);
}

.new-link .articles-card .articles-titre.dev {
    background-color: var(--color-blue);
}

.articles-wrapper .articles-link .articles-card .articles-titre .articles-titre-text {
    width: fit-content;
    max-width: 600px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
}

.new-link .articles-card .articles-titre .articles-titre-text {
    width: fit-content;
    max-width: 600px;
    color: white;
    white-space: nowrap;
    overflow: hidden;
    font-size: 16px;
    font-weight: 600;
    text-overflow: ellipsis;
}

.articles-wrapper .articles-link:nth-child(-n+4) .articles-card .articles-titre .articles-titre-text {
    font-size: 20px;
}

.articles-search {
    height: 55px;
    width: 100%;
    background: var(--box-color);
    border: var(--border-color) 2px solid;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.articles-search .articles-search-left {
    width: calc(100% - 50px);
}

.articles-search .articles-search-left .articles-search-write {
    margin-left: 20px;
    border: 0;
    background: 0 0;
    width: 98%;
    height: 100%;
    font-size: 22px;
    color: var(--text-color);
}

.articles-search-right {
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.articles-search-right .articles-search-icon {
    background: url(/assets/img/icon/icon_search.png) no-repeat;
    height: 30px;
    width: 30px;
    background-size: contain;
}

.articles-search .articles-search-left input:focus-visible {
    outline: none;
}

.articles-search-new {
    height: 55px;
    width: 100%;
    background: var(--box-color);
    border: var(--border-color) 2px solid;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.articles-search-new .articles-search-left {
    width: calc(100% - 50px);
}

.articles-search-new .articles-search-left .articles-search-write {
    margin-left: 10px;
    border: 0;
    background: 0 0;
    width: 98%;
    height: 100%;
    font-size: 20px;
    color: var(--text-color);
}

.articles-search-right-new .articles-search-icon {
    background: url(/assets/img/icon/icon_search.png) no-repeat;
    height: 30px;
    width: 30px;
    background-size: contain;
}

.articles-search-new .articles-search-left input:focus-visible {
    outline: none;
}

.new-wrapper-right {
    grid-column: 2;
    width: 886px;
    background: var(--box-color);
    border-radius: 16px;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease-in-out;
    border: 1px solid var(--border-color);

    .new-wrapper-right-top {
        display: flex;
        background-repeat: no-repeat;
        background-size: cover;
        max-width: 100%;
        width: 100%;
        height: 170px;
        border-radius: 16px 16px 0 0;
        position: relative;

        .new-wrapper-right-top-title {
            text-shadow: 0 0 12px rgb(0 0 0);
            width: 100%;
            height: 100%;
            display: flex;
            align-items: center;
            justify-content: center;
            margin: 0;
            padding: 0;
            font-size: 2rem;
            color: white;
            font-weight: 600;
        }
    }

    .new-wrapper-right-avatar {
        position: absolute;
        top: 81px;
        margin-left: -20px;
        height: 110px;
        width: fit-content;
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        color: white;
        font-size: 180%;
        overflow: hidden;

        .new-wrapper-right-avatar-buste {
            width: 100px;
            height: 116px;
            overflow: hidden;
        }

        .new-wrapper-right-avatar-name {
            margin-left: 10px;
            margin-top: 35px;
            color: white;

        }

        &:hover {
            opacity: 1;
        }
    }

    .new-wrapper-right-time {
        border-radius: 20px;
        background: #fff;
        font-size: 18px;
        padding: 5px 10px;
        position: absolute;
        display: flex;
        top: 0;
        right: 0;
        justify-content: center;
        align-items: center;
        margin-right: 10px;
        margin-top: 30px;
        gap: 6px;

        .new-wrapper-right-time-icon {
            height: 19px;
            width: 20px;
            background: url(/assets/img/icon/icon_horloge.png) no-repeat;
            background-size: contain;
        }

        span {
            color: black;
            font-size: 16px;
        }
    }

    article {
        padding: 20px;
        width: 100%;
        max-width: 100%;
        font-size: 100%;
        overflow: hidden;
        display: block;

        p, em, img, ul, li, span, div {
            max-width: 100%;
        }
    }
}

@media (max-width: 1330px) and (min-width: 769px) {
    .articles-wrapper .articles-link:nth-child(-n+3) {
        width: calc(50% - 8px);
    }

    .articles-wrapper .articles-link:nth-child(n+4) {
        width: calc(33% - 7px);
    }

    .new-wrapper-right {
        width: 100%;
    }

    .new-wrapper-right-time {
        margin-right: 20px;
    }

    .new-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}

@media (max-width: 768px) {
    .articles-wrapper .articles-link:nth-child(-n+3) {
        height: 250px;
    }

    .new-wrapper {
        display: flex;
    }

    .new-wrapper-left {
        display: none;
    }

    .new-wrapper-right {
        width: 100%;

        article {
            padding: 15px;
        }
    }
}