@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700&family=Lora:wght@400;500&display=swap');

body {
    background-image: url('/static/Images/Fond_article.png');
    background-color: #261a12; 
    background-attachment: fixed;
    background-size: cover;
    color: #e2d1c3; 
    font-family: 'Lora', serif;
    margin: 0;
    padding: 40px 20px;
}

.Title-Bande h1 {
    font-family: 'Playfair Display', serif;
    text-align: center;
    color: #f1e4d1;
    font-size: 3.5rem;
    margin: 50px 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.Article-Option {
    text-align: center;
    margin-bottom: 40px;
}

.Article-Option button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid #8c7662;
    padding: 8px 20px;
    margin: 0 10px;
    border-radius: 4px;
}

.Article-Option button a {
    color: #e2d1c3;
    text-decoration: none;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}



.Articles {
    display: grid;
    grid-template-columns: repeat(3, 1fr); 
    grid-auto-rows: minmax(180px, auto);
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.article-card {
    background: rgba(30, 20, 15, 0.7);
    border: 1px solid rgba(140, 118, 98, 0.2);
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
    overflow: hidden;
}

.article-card:hover {
    background: rgba(45, 30, 22, 0.9);
    border-color: #e0c097;
    transform: translateY(-5px);
}

.article-card.format1 {
    grid-column: span 2;
    flex-direction: row; 
}

.article-card.format1 img {
    width: 45%;
    height: 100%;
}


.article-card.format2 {
    grid-row: span 2;
}


.article-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    filter: sepia(0.2);
}

.card-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.article-card h5 {
    font-family: 'Playfair Display', serif;
    font-size: 1.4rem;
    color: #f1e4d1;
    margin-bottom: 12px;
}

.article-card p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #bfa88d;
    margin-bottom: 15px;
}

.article-card small {
    font-size: 0.8rem;
    color: #8c7662;
}


.btn-read {
    background: transparent;
    border: 1px solid #8c7662;
    color: #e2d1c3;
    padding: 6px 15px;
    width: fit-content;
    font-size: 0.8rem;
    cursor: pointer;
    transition: 0.3s;
}

.btn-read:hover {
    background: #8c7662;
    color: white;
}


@media (max-width: 992px) {
    .Articles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .Articles { grid-template-columns: 1fr; }
    .article-card.format1 { flex-direction: column; grid-column: span 1; }
    .article-card.format1 img { width: 100%; height: 200px; }
    .article-card.format2 { grid-row: span 1; }
}