/*
 Theme Name:   GeneratePress Child
 Description:  Thème enfant pour personnaliser la connexion
 Template:     generatepress
 Version:      1.0.0
*/

/* Container principal */
.related-posts-container {
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

/* Grille flexible */
.related-posts-grid {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

/* Chaque article */
.related-post-item {
    flex: 1;
    min-width: 250px;
    margin-bottom: 20px;
}

.related-post-item a {
    text-decoration: none;
    color: #333;
}

/* Wrapper de l'image pour le zoom */
.related-post-image-wrapper {
    width: 100%;
    height: 180px;
    overflow: hidden; /* Important pour que le zoom ne sorte pas du cadre */
    border-radius: 8px;
    margin-bottom: 12px;
    border: 1px solid #f0f0f0;
}

.related-post-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease; /* Animation fluide */
}

/* L'effet de survol (Hover) */
.related-post-item:hover img {
    transform: scale(1.1); /* Zoom de 10% */
}

.related-post-item:hover .related-post-title {
    color: #ff6600; /* Le titre change de couleur au survol */
}

.related-post-title {
    font-weight: 700;
    font-size: 1rem;
    line-height: 1.4;
    transition: color 0.3s ease;
}

/* Style pour l'absence d'image */
.no-image {
    width: 100%;
    height: 100%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ccc;
}

/* Style du bouton SEO archives */
/* Conteneur pour créer l'espace */
.taa-btn-container {
    margin-top: 15px; /* Espace au-dessus du bouton */
    margin-bottom: 10px;
}

/* Style du bouton */
.taa-seo-btn {
    display: inline-block; /* Pour que le fond de couleur s'adapte au texte */
    background-color: #0073aa; /* Bleu WordPress (à adapter selon tes goûts) */
    color: #ffffff !important;
    padding: 8px 16px;
    border-radius: 5px;
    text-decoration: none !important;
    font-weight: 600;
    line-height: 1.4;
    transition: background 0.3s ease;
}

.taa-seo-btn:hover {
    background-color: #005177;
    box-shadow: 0 2px 5px rgba(0,0,0,0.15);
}

.taa-kw {
    text-transform: capitalize;
}