/* ==================================================================
   insights-section.css — Section blog publique (25/08/2026)
   Cartes d'articles rendues côté serveur (SEO/IA). Style premium,
   cohérent avec la charte AutoLinkerPro (primary-blue #0052CC,
   secondary-blue #003D99, accent-yellow #FFCE32).
   Aucun impact sur styles.css (fichier dédié).
   ================================================================== */

.insights-section {
    padding: 52px 20px;
    background: #f8f9fa;
}

.insights-section .section-title {
    text-align: center;
    color: #003D99;
    margin-bottom: 0.7rem;
}

.insights-section .section-subtitle {
    text-align: center;
    color: #666;
    max-width: 720px;
    margin: 0 auto 1.8rem;
}

/* --- Grille des cartes --- */
.insights-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
    gap: 1.4rem;
    max-width: 1200px;
    margin: 0 auto;
}

.insights-card {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    display: flex;
    flex-direction: column;
}

.insights-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0, 82, 204, 0.16);
}

.insights-card-link {
    display: flex;
    flex-direction: column;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.insights-card-media {
    width: 100%;
    height: 170px;
    overflow: hidden;
    background: #e9edf2;
}

.insights-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.insights-card:hover .insights-card-media img {
    transform: scale(1.05);
}

.insights-card-body {
    padding: 1.1rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.insights-card-meta {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.6rem;
}

.insights-card-lang {
    background: #0052CC;
    color: #ffffff;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 2px 8px;
    border-radius: 20px;
}

.insights-card-date {
    font-size: 0.8rem;
    color: #999;
}

.insights-card-title {
    font-size: 1.08rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 0.5rem;
}

.insights-card-excerpt {
    font-size: 0.92rem;
    color: #555;
    line-height: 1.55;
    margin: 0 0 0.9rem;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.insights-card-author {
    font-size: 0.8rem;
    color: #888;
    font-weight: 600;
}

/* --- État d'attente (aucun article) --- */
.insights-empty {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    color: #888;
    padding: 1.5rem;
    background: #ffffff;
    border: 1px dashed #d5dbe3;
    border-radius: 12px;
}

/* --- Bouton « Voir tous les articles » --- */
.insights-section-cta {
    text-align: center;
    margin-top: 1.8rem;
}

.insights-section-cta .btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 50px;
    background: #0052CC;
    color: #ffffff;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: transform 0.2s ease, background 0.2s ease;
}

.insights-section-cta .btn:hover {
    background: #003D99;
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .insights-section { padding: 40px 14px; }
    .insights-card-media { height: 150px; }
}
