/* Urban Metrics Blog Styles - V3.5 */
@import url('https://fonts.googleapis.com/css2?family=Anton&family=Nunito:wght@700&display=swap');

.um-blog-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    font-family: inherit;
    color: #33475b;
}

.um-blog-header {
    text-align: left;
    margin-top: 130px; 
    margin-bottom: 40px;
    padding-bottom: 0px;
}

.um-blog-header h1 {
    font-size: 49px !important;
    line-height: 1.1;
    color: #2e3b4e;
    margin: 0 0 20px 0;
    text-decoration: none;
}

/* Titres H2 (Noms des piliers, Articles Récents, Plus de contenus) */
.um-section-title,
.um-section-title a {
    font-family: "Anton", Sans-serif !important;
    font-size: 30px !important;
    font-weight: 500 !important;
    line-height: 1.2em !important;
    color: #333 !important;
    margin-top: 0.5em !important;
    margin-bottom: 30px !important; /* Marge inférieure augmentée pour décoller les widgets */
    text-decoration: none;
}

.um-blog-chapo {
    font-size: 16px;
    color: #333333;
    line-height: 1.6;
    margin-top: 15px;
}

.um-top-section {
    display: grid;
    grid-template-columns: 1.6fr 1fr; 
    gap: 50px;
    margin-bottom: 60px;
}

.um-hero-article {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
}

.um-hero-image {
    width: 100%;
    height: 300px;
    background-color: #f0f0f0;
    object-fit: cover;
    transition: filter 0.3s ease;
    display: block;
}

.um-hero-article a:hover .um-hero-image {
    filter: brightness(1.15);
}

.um-hero-content {
    padding: 30px;
}

.um-hero-article h2 {
    font-family: "Nunito", Sans-serif !important;
    font-size: 24px !important;
    font-weight: 700 !important;
    margin: 0 0 15px 0;
    color: #333;
    transition: color 0.2s;
}

.um-hero-article a:hover h2 {
    color: #ff7a59;
}

/* Style de l'extrait de l'article Hero */
.um-hero-excerpt p {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin: 0 0 15px 0;
}

.um-hero-meta {
    font-size: 12px !important;
    color: #888888 !important;
    margin-top: 10px;
    font-family: "Nunito", Sans-serif;
}

/* Titre H2 de la sidebar Populaire */
.um-popular-sidebar h2.um-popular-title {
    font-family: "Anton", Sans-serif;
    font-size: 24px;
    font-weight: 500;
    border-bottom: 2px solid #ff7a59;
    padding-bottom: 10px;
    margin-bottom: 20px;
    color: #333;
    margin-top: 0;
}

.um-popular-item {
    display: flex;
    gap: 20px;
    margin-bottom: 25px;
    text-decoration: none;
    color: inherit;
    background: #fff;
    padding: 10px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    align-items: center;
}

.um-popular-item img, .um-popular-placeholder {
    width: 140px;
    height: 95px;
    background-color: #f0f0f0;
    border-radius: 6px;
    object-fit: cover;
    transition: filter 0.3s ease;
    flex-shrink: 0;
}

.um-popular-item:hover img {
    filter: brightness(1.15);
}

/* Titres H3 des articles (populaires et récents) */
.um-popular-content h3, .um-grid-item h3 {
    font-family: "Nunito", Sans-serif !important;
    font-size: 20px !important;
    font-weight: 700 !important;
    line-height: 1.2em !important;
    color: #2e3b4e;
}

.um-popular-content h3 {
    margin: 0 0 10px 0;
}

.um-popular-content .um-hero-meta {
    margin-top: 0;
}

.um-articles-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.um-grid-item {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden; 
}

.um-grid-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    background-color: #f0f0f0;
    overflow: hidden;
}

.um-grid-image-wrapper img, .um-grid-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 0;
    transition: filter 0.3s ease;
}

.um-grid-item:hover .um-grid-image-wrapper img, 
.um-grid-item:hover .um-grid-placeholder {
    filter: brightness(1.15);
}

.um-grid-content {
    padding: 24px 20px 20px 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.um-grid-item h3 {
    margin: 0 0 20px 0;
}

.um-grid-item .um-hero-meta {
    margin-top: auto;
}

.um-see-more-link {
    font-weight: bold;
    color: #ff7a59;
    text-decoration: none;
    font-size: 1.05rem;
    transition: color 0.2s;
}

.um-see-more-link:hover {
    color: #e26140;
}

/* Pagination (sans la ligne au-dessus) */
.um-pagination {
    margin-top: 15px;
    text-align: center;
    padding-top: 20px;
}

.um-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    color: #33475b;
    text-decoration: none;
    font-weight: bold;
}

.um-pagination .page-numbers.current {
    border-bottom: 2px solid #516f90;
}

@media (max-width: 1024px) {
    .um-articles-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
    .um-top-section { grid-template-columns: 1fr; }
    .um-articles-grid { grid-template-columns: repeat(2, 1fr); }
    .um-blog-header { margin-top: 80px; }
    .um-blog-header h1 { font-size: 36px !important; }
    .um-section-title { font-size: 28px !important; }
}

@media (max-width: 600px) {
    .um-articles-grid { grid-template-columns: 1fr; }
}