@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;500;700&display=swap');

/* ===== BASE ===== */
.rubrique-page {
    font-family: 'Roboto', sans-serif;
    background-color: #F2F2F2;
    color: #595959;
    min-height: 100vh;
}

/* ===== CONTAINER PRINCIPAL ===== */
.rubrique-content {
    max-width: 1100px;
    margin: 30px auto 40px;
    padding: 0 20px;
}

/* ===== EN-TÊTE DE LA RUBRIQUE ===== */
.rubrique-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #F23054;
}
.rubrique-title {
    font-size: 32px;
    font-weight: 700;
    color: #F23054;
    margin: 0 0 10px;
    line-height: 1.2;
}
.rubrique-description {
    font-size: 16px;
    color: #118e88;
    font-style: italic;
    margin: 0;
}

/* ===== TITRE DE SECTION ===== */
.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #595959;
    margin: 0 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #F2F2F2;
    display: flex;
    align-items: center;
    gap: 8px;
}
.section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 22px;
    background: #118e88;
    border-radius: 2px;
    flex-shrink: 0;
}

/* ===== SOUS-RUBRIQUES ===== */
.sous-rubriques {
    margin-bottom: 35px;
}
.sous-rubriques-liste {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.sous-rubriques-liste li a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    color: #595959;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}
.sous-rubriques-liste li a:hover {
    background: #F23054;
    color: white;
    border-color: #F23054;
}
.sous-rubrique-logo {
    width: 20px;
    height: 20px;
    object-fit: cover;
    border-radius: 50%;
}

/* ===== GRILLE D'ARTICLES ===== */
.articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-bottom: 40px;
}

/* ===== CARTE ARTICLE ===== */
.article-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(242, 48, 84, 0.15);
}
.article-card-vignette {
    display: flex;
    justify-content: center;
    align-items: center;
    background: #F2F2F2;
    height: 180px;
    overflow: hidden;
    text-decoration: none;
}
.article-card-image {
    max-width: 100%;
    max-height: 180px;
    width: auto;
    height: auto;
    object-fit: contain;
    display: block;
}
.article-card-body {
    padding: 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.article-card-date {
    font-size: 12px;
    color: #118e88;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: block;
}
.article-card-title {
    font-size: 17px;
    font-weight: 700;
    color: #595959;
    margin: 0 0 10px;
    line-height: 1.3;
}
.article-card-title a {
    color: #595959;
    text-decoration: none;
    transition: color 0.3s;
}
.article-card-title a:hover {
    color: #F23054;
}
.article-card-chapo {
    font-size: 14px;
    color: #595959;
    line-height: 1.6;
    margin: 0 0 15px;
    flex: 1;
}
.article-card-link {
    display: inline-block;
    margin-top: auto;
    color: #F23054;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s;
    align-self: flex-start;
}
.article-card-link:hover {
    border-bottom-color: #F23054;
}
.article-card-vignette-placeholder {
    font-size: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #118e88, #F23054);
}

/* ===== ÉDITORIAL PAGE D'ACCUEIL ===== */
.editorial-section {
    background: white;
    margin: 30px 0;
    padding: 40px 0;
    width: 100%;
    box-sizing: border-box;
}

.editorial-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}
.editorial-rubrique-titre {
    font-size: 12px;
    font-weight: 700;
    color: #F23054;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 25px;
    padding-bottom: 12px;
    border-bottom: 2px solid #F23054;
}
.editorial-extrait {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 40px;
    align-items: start;
}
/* Quand pas d'image : 1 seule colonne */
.editorial-extrait:not(:has(.editorial-vignette)) {
    grid-template-columns: 1fr;
}
.editorial-vignette {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}
.editorial-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
}
.editorial-corps {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.editorial-titre {
    font-size: 28px;
    font-weight: 700;
    margin: 8px 0 15px;
    line-height: 1.3;
}
.editorial-titre a {
    color: #595959;
    text-decoration: none;
    transition: color 0.3s;
}
.editorial-titre a:hover {
    color: #F23054;
}
.editorial-chapo {
    font-size: 17px;
    color: #118e88;
    font-style: italic;
    font-weight: 500;
    border-left: 3px solid #F23054;
    padding-left: 15px;
    margin-bottom: 15px;
    line-height: 1.6;
}
.editorial-texte {
    font-size: 15px;
    color: #595959;
    line-height: 1.8;
    margin-bottom: 25px;
}
.btn-voir-tout {
    display: inline-block;
    padding: 12px 28px;
    background: #F23054;
    color: white !important;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.3s;
    align-self: flex-start;
}
.btn-voir-tout:hover {
    background: #118e88;
}

/* ===== PAS D'ARTICLES ===== */
.no-articles {
    text-align: center;
    padding: 60px 20px;
    color: #595959;
    font-size: 16px;
    font-style: italic;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    margin: 20px 0 40px;
}
.pagination-btn {
    display: inline-block;
    padding: 8px 20px;
    background: white;
    color: #F23054;
    border: 2px solid #F23054;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s;
}
.pagination-btn:hover {
    background: #F23054;
    color: white;
}

@media (max-width: 900px) {
    .articles-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .rubrique-title {
        font-size: 26px;
    }
    .editorial-extrait {
        grid-template-columns: 1fr;
    }
    .editorial-image {
        height: 200px;
    }
}
@media (max-width: 600px) {
    .articles-grid {
        grid-template-columns: 1fr;
    }
    .rubrique-title {
        font-size: 22px;
    }
    .rubrique-content {
        padding: 0 15px;
        margin-top: 20px;
    }
    .editorial-inner {
        padding: 0 15px;
    }
    .editorial-titre {
        font-size: 20px;
    }
}