.news-home-background {
    background-color: var(--color2);
    
}

.news-home-section {
    padding-top: 50px;
    padding-bottom: 50px;
    display: flex;
    flex-direction: column;
}

#news-title {
    color: var(--color4);
    text-align: left;
    margin-bottom: 40px;
}
.news-preview-section {
    height: 300px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.news-discover {
    color: var(--color4);
    font-size: 1.5rem;
    text-decoration: underline;
    text-align: right;
    margin-top: 40px;
}

.news-discover:hover {
    color: var(--color3);
    cursor: pointer;
}

.news {
    width: 30%;
    height: 100%;
    background-color: var(--color4);
    position: relative;
    
}

.news:hover {
    cursor: pointer;
    border: 4px solid var(--color3);
    box-sizing: border-box;
}

.news-title {
    font-weight: normal;
    font-size: 1.5rem;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: white;
    margin-right: 10px;
    padding: 0px 5px 0px 5px;
    color: var(--color1);
}

.news-img-container-home {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 100%;
        height: 100%;
        margin-right: 25px;
        clip-path: inset(0 0 0 0);
}

.news-img-home {
    object-fit: cover;
    width: 150%;
    height: auto;
}

/* écran 4k */
@media screen and (min-width: 2560px) and (min-height: 1400px){
    .news-discover {
        font-size: 2rem;
    }
    .news-title {
        font-size: 2rem;
    }
}

/* écran HD 1440x900 */
@media screen and (max-width: 1440px) and (max-height: 900px) {

}

/* écran HD 1366x768 */
@media screen and (max-width: 1366px) and (max-height: 768px) {

}

/* écran HD 1280x1024 */
@media screen and (max-width: 1280px) and (max-height: 1024px) {

}

/* écran HD 1280x720 */
@media screen and (max-width: 1280px) and (max-height: 720px) {

}

/* ipdad air mini paysage 900x1200 */
@media screen and (max-width: 950px) and (max-height: 1400px) {

}

/* écran Mobile 360x800 */
@media screen and (max-width: 360px) and (max-height: 800px) {
    .news-preview-section {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .news {
        width: 100%;
        height: 200px;
        background-color: var(--color4);
        position: relative;
        margin-bottom: 25px;
    }
    .news-discover {
        margin-top: 10px;
    }
}

/* écran Mobile 390x844 */
@media screen and (max-width: 390px) and (max-height: 844px) {
    .news-preview-section {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .news {
        width: 100%;
        height: 200px;
        background-color: var(--color4);
        position: relative;
        margin-bottom: 25px;
    }
    .news-discover {
        margin-top: 10px;
    }
}

/* écran Mobile 414x896 */
@media screen and (max-width: 414px) and (max-height: 896px) {
    .news-preview-section {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .news {
        width: 100%;
        height: 200px;
        background-color: var(--color4);
        position: relative;
        margin-bottom: 25px;
    }
    .news-discover {
        margin-top: 10px;
    }
}

/* écran Mobile 393x873 */
@media screen and (max-width: 393px) and (max-height: 873px) {
    .news-preview-section {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .news {
        width: 100%;
        height: 200px;
        background-color: var(--color4);
        position: relative;
        margin-bottom: 25px;
    }
    .news-discover {
        margin-top: 10px;
    }
}

/* écran Mobile 412x915 */
@media screen and (max-width: 412px) and (max-height: 915px) {
    .news-preview-section {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .news {
        width: 100%;
        height: 200px;
        background-color: var(--color4);
        position: relative;
        margin-bottom: 25px;
    }
    .news-discover {
        margin-top: 10px;
    }
}

/* iphone SE 375x667 */
@media screen and (max-width: 375px) and (max-height: 667px) {
    .news-preview-section {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .news {
        width: 100%;
        height: 200px;
        background-color: var(--color4);
        position: relative;
        margin-bottom: 25px;
    }
    .news-discover {
        margin-top: 10px;
    }
}

/* galaxy s8+ 360x740 */
@media screen and (max-width: 360px) and (max-height: 740px) {
    .news-preview-section {
        height: auto;
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }
    .news {
        width: 100%;
        height: 200px;
        background-color: var(--color4);
        position: relative;
        margin-bottom: 25px;
    }
    .news-discover {
        margin-top: 10px;
    }
}


