body{
    margin: 0;
}

/* En-tête du blog */
.blog-header {
    text-align: center;
    margin-bottom: 20px;
    padding-top: 7vw;
}

/* Titre du blog */
.blog-title {
    font-size: 48px;
    font-weight: bold;
    color: #1B1C33;
}

/* Barre de recherche */
.search-container {
    display: flex;
    align-items: center;
    background: #f7f7f7;
    border-radius: 6px;
    padding: 12px 16px;
    max-width: 400px;
    margin: 0 auto;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
}

.search-container input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 16px;
    width: 100%;
    color: #333;
}

/* Conteneur des boutons */
.category-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 8px 25px 8px;
}

/* Boutons de catégorie */
.category-buttons button {
    border: none;
    padding: 10px 18px;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease-in-out;
    color: white;
}

.btn-marketing{
    background: linear-gradient(to right, #fea4c9, #ff758c);
}
.btn-webinaire{
    background: linear-gradient(to right, #9ee0ff, #4FC3F7); 
}
.btn-web{
    background: linear-gradient(to right, #fbc2eb, #a6c1ee);
}

.btn-green{
    background: linear-gradient(to right, #fddb92, #a7f3f7);
}




/* Effet hover */
.category-buttons button:hover {
    transform: scale(1.05);
    opacity: 0.9;
}

/* Conteneur global des articles */
.blog-list-container {
    width: 85%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding: 2rem;
    margin: 0 auto; /* Centre la section */
}

/* Carte de l'article */
.blog-card {
    display: flex;
    align-items: center;
    background: transparent;
    border-radius: 16px;
    padding: 10px;
    overflow: hidden;
    transition: transform 0.3s ease-in-out;
}

.blog-card:hover {
    transform: translateY(-5px);
    box-shadow: 0px 10px 30px rgba(180, 150, 255, 0.25);
}

/* Image de l'article */
.blog-image {
    width: 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.blog-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px;
}

/* Contenu de l'article */
.blog-content {
    width: 60%;
    padding: 0 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Catégorie */
.blog-category {
    color: white;
    padding: 6px 20px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    display: inline-block; 
    width: auto;
    max-width: fit-content; 
    margin-bottom: 0.5rem;
}

/* Titre */
.article-title {
    font-size: 22px;
    margin-bottom: 0.8rem;
}

.article-title a {
    text-decoration: none;
    color: #222;
    font-weight: bold;
    transition: color 0.3s ease-in-out;
}

.article-title-web a:hover {
    color: #6a4bc4;
}
.article-title-marketing a:hover {
    color: #ff7eb3;
}
.article-title-webinaire a:hover {
    color: #01579B;
}
.article-title-green a:hover {
    color: #26757d;
}


/* Date */
.blog-date {
    font-size: 14px;
    color: #666;
    margin-bottom: 0.5rem;
}

/* Extrait */
.blog-excerpt {
    font-size: 14px;
    color: #333;
    line-height: 1.6;
}

/* Auteur */
.blog-author {
    display: flex;
    align-items: center;
    font-size: 14px;
    font-weight: bold;
    margin-top: 1rem;
}

.blog-author img {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    margin-right: 0.5rem;
}

/* ✅ Responsive (Mobile) */
@media screen and (max-width: 680px) {
    .blog-header {
        padding-top: 15vw;
    }

    .search-container {
        width: 80%;
        margin-top: 1rem;
    }

    .blog-list-container {
        flex-direction: column;
        padding: 1.5rem;
    }

    .blog-card {
        flex-direction: column;
        box-shadow: 0px 10px 30px rgba(180, 150, 255, 0.2);
    }

    .blog-image {
        width: 100%;
        padding: 0 1rem 1rem 1rem;
    }

    .blog-content {
        width: 95%;
        padding: 1rem 2.5%;
    }

    .article-title {
        font-size: 20px;
    }
}
