/* ==================================================================
   insights-section.css — Section blog publique (25/08/2026, maj 26/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é).
   26/08/2026 : titre de section en POLICE NORMALE du site (Segoe UI, gras,
   bleu) + emblème logo à côté du titre. (La manuscrite Caveat n'est utilisée
   que pour le « par/by/por/von » du masthead de la page liste, pas ici.)
   Le @font-face Caveat ci-dessous est conservé : il est partagé avec
   insights-page.css (même fichier woff2, même cache navigateur).
   ================================================================== */

/* Police manuscrite « Caveat » auto-hébergée (RGPD + CSP 'self') —
   partagée avec insights-page.css (même fichier woff2, même cache). */
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/css/fonts/caveat-600.woff2') format('woff2');
}

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

/* Titre « Insights » : police normale du site (Segoe UI, gras, bleu) + emblème
   logo à côté. PAS d'écriture manuscrite ici — la manuscrite est réservée au
   « par/by/por/von » du masthead de la page liste (insights-page.css). */
.insights-section .section-title {
    text-align: center;
    color: #003D99;
    margin-bottom: 0.7rem;
}

.insights-section .insights-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; /* police du site */
    font-size: 2.5rem;          /* comme .section-title de styles.css */
    font-weight: 700;           /* comme .section-title */
    line-height: 1.1;
}

.insights-section .insights-title-logo {
    width: 34px;
    height: 34px;
    display: inline-block;
}

@media (max-width: 640px) {
    .insights-section .insights-title { font-size: 1.9rem; }
    .insights-section .insights-title-logo { width: 28px; height: 28px; }
}

.insights-section .section-subtitle {
    text-align: center;
    color: #666;
    max-width: 950px; /* 27/08/2026 : élargi comme les autres sections */
    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; }
}

/* 27/08/2026 : police manuscrite Caveat (auto-hébergée) pour « par/by/por/von » */
@font-face {
    font-family: 'Caveat';
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url('/css/fonts/caveat-600.woff2') format('woff2');
}

/* « par/by/por/von » en écriture manuscrite (comme la page Insights) */
.insights-section .insights-title-prep {
    font-family: 'Caveat', 'Segoe Script', 'Bradley Hand', cursive;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--primary-blue, #0052CC);
    margin: 0 0.1em;
    vertical-align: baseline;
}
.insights-section .insights-title-brand {
    font-weight: 700;
}

/* CTA « Accélérez vos transactions » en pied de la section Insights */
.insights-footer-cta {
    margin-top: 4rem;
    padding: 3rem 2rem;
    background: linear-gradient(135deg, var(--secondary-blue, #003D99) 0%, var(--primary-blue, #0052CC) 100%);
    border-radius: 20px;
    text-align: center;
    color: #fff;
}
.insights-footer-cta h3 {
    font-size: 1.9rem;
    margin: 0 0 0.75rem;
    color: #fff;
}
.insights-footer-cta p {
    font-size: 1.15rem;
    margin: 0 0 2rem;
    opacity: 0.95;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}
.insights-footer-cta .whatsapp-button {
    margin: 0;
}
@media (max-width: 768px) {
    .insights-footer-cta { margin-top: 2.5rem; padding: 2rem 1.2rem; }
    .insights-footer-cta h3 { font-size: 1.5rem; }
    .insights-footer-cta p { font-size: 1rem; }
}


/* 27/08/2026 : fond blanc pour distinguer la section de la precedente (testimonials grise) */
.insights-section {
    background: #ffffff !important;
}

/* ---------- Cartes : hauteurs égales, texte propre (28/08/2026) ---------- */
.insights-card-title {
    display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
    overflow: hidden;
}
.insights-card-excerpt {
    flex: 0 0 auto;
    -webkit-line-clamp: 4;
    min-height: calc(0.92rem * 1.55 * 2);
}
.insights-card-author {
    margin-top: auto;
    padding-top: 0.9rem;
}
