/*
 Theme Name:   Divi - Gallimea Blog
 Theme URI:    https://gallimea.ch/
 Description:  Thème enfant basé sur Divi
 Author:       Gallimea Sàrl
 Author URI:   https://gallimea.ch/
 Template:     Divi
 Version:      1.0.0
*/

/* Bordure sous le menu principal */
#main-header {
    border-bottom: 1px solid #282828;
}
/* Fin */

/* Plus d'espacement entre le titre et les métas */
.et_pb_post_title .et_pb_title_meta_container {
    margin-top: 20px;
    margin-bottom: 20px;
}
/* Fin */

/* Stlye des étiquettes */
.post-tags {
    font-size: 14px;
}

.post-tags .post-tag {
    background: #172027;      
    color: #ffffff;           
    padding: 2px 10px 6px;
    border-radius: 50px;
    transition: background 0.2s ease;
}

.post-tags .post-tag:hover {
    background: #1E90FF;
}
/* Fin */

/* Stlye de la liste des articles récents */
.recent-posts {
    margin-top: 30px;
}

.recent-posts-title {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #ffffff; 
}

.recent-post-item {
    margin-bottom: 10px;
}

.recent-post-item a {
    color: #ffffff !important;
	font-size: 16px;
    text-decoration: none;
    transition: color 0.3s ease;
	line-height: 1em !important;
}
/* Fin */

/* Stlye pour les articles */
.custom-posts-list {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding: 30px 0;
}
.custom-post-item {
    display: flex;
    align-items: flex-start;
    background: transparent;
    gap: 30px;
}
.custom-post-thumb {
    width: 250px;
    height: 250px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-post-thumb a {
    display: block;
    width: 100%;
    height: 100%;
}
.custom-post-thumb a img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(.34,1.56,.64,1);
    will-change: transform;
    display: block;
}
.custom-post-item:hover .custom-post-thumb a img,
.custom-post-thumb:hover a img {
    transform: scale(1.10);
}
.custom-post-content {
    flex: 1;
}
.custom-post-content h2 {
    font-size: 22px;
    color: #fff;
    margin-bottom: 8px;
	transition: color 0.25s;
}
.custom-post-item:hover h2 {
    color: #1e90ff;
}
.custom-post-category span {
    display: block;
    font-weight: 600;
    color: #1e90ff;
    margin-bottom: 10px;
    font-size: 1.1rem;
    letter-spacing: .5px;
}
.custom-post-excerpt {
    color: #e5e7eb;
    margin-bottom: 20px;
    font-size: 1.08rem;
}
/* Fin */
