/* ==================================================================
   insights-page.css — Pages publiques du blog « Insights » (25/08/2026)
   Couvre : blog.php (liste) + article.php (article complet).
   Rendu serveur, style premium, autonome (n'affecte pas styles.css).
   Charte : primary-blue #0052CC, secondary-blue #003D99.
   ================================================================== */

* { box-sizing: border-box; }

body.insights-page {
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f4f6f9;
    color: #1a1a1a;
    line-height: 1.6;
}

/* --- Header --- */
.bp-header {
    background: linear-gradient(135deg, #003D99 0%, #0052CC 100%);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.12);
    position: sticky;
    top: 0;
    z-index: 100;
}

.bp-header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 14px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.bp-brand {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    text-decoration: none;
    letter-spacing: 0.01em;
}

.bp-nav { display: flex; gap: 1.5rem; }

.bp-nav a {
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.bp-nav a:hover, .bp-nav a.active { color: #FFCE32; }

/* --- Corps --- */
.bp-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px 60px;
}

.bp-hero { text-align: center; margin-bottom: 2.5rem; }
.bp-hero h1 { font-size: 2rem; color: #003D99; margin: 0 0 0.5rem; }
.bp-hero p { font-size: 1.05rem; color: #666; margin: 0; }

.bp-empty {
    max-width: 640px; margin: 0 auto; text-align: center;
    color: #777; padding: 2.5rem 1.5rem;
    background: #fff; border: 1px dashed #d5dbe3; border-radius: 12px;
}
.bp-empty a { color: #0052CC; }

/* --- Grille liste (blog.php) --- */
.bp-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.6rem;
}

.bp-card {
    background: #fff; border-radius: 14px; 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;
}
.bp-card:hover { transform: translateY(-4px); box-shadow: 0 10px 26px rgba(0,82,204,0.16); }
.bp-card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; }

.bp-card-media { width: 100%; height: 180px; overflow: hidden; background: #e9edf2; }
.bp-card-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.bp-card:hover .bp-card-media img { transform: scale(1.05); }

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

.bp-card-meta { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.6rem; }
.bp-lang { background: #0052CC; color: #fff; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.04em; padding: 2px 8px; border-radius: 20px; }
.bp-date { font-size: 0.8rem; color: #999; }

.bp-card-title { font-size: 1.12rem; font-weight: 700; color: #1a1a1a; line-height: 1.3; margin: 0 0 0.5rem; }
.bp-card-excerpt {
    font-size: 0.93rem; 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;
}
.bp-author { font-size: 0.8rem; color: #888; font-weight: 600; }

/* --- Page article --- */
.bp-article {
    max-width: 780px; margin: 0 auto; background: #fff;
    border-radius: 14px; overflow: hidden;
    box-shadow: 0 2px 14px rgba(0,0,0,0.08);
}

.bp-back {
    display: inline-block; margin: 1.2rem 0 0 1.6rem;
    color: #0052CC; text-decoration: none; font-size: 0.92rem; font-weight: 600;
}
.bp-back:hover { text-decoration: underline; }

.bp-article-media { width: 100%; max-height: 420px; overflow: hidden; }
.bp-article-media img { width: 100%; height: 100%; object-fit: cover; display: block; }

.bp-article-head { padding: 1.6rem 2rem 0.5rem; }
.bp-article-meta { display: flex; align-items: center; gap: 1rem; margin-bottom: 0.9rem; flex-wrap: wrap; }
.bp-article-meta time, .bp-read { font-size: 0.85rem; color: #999; }

.bp-article-title { font-size: 1.9rem; font-weight: 700; color: #1a1a1a; line-height: 1.25; margin: 0 0 0.6rem; }
.bp-article-author { font-size: 0.95rem; color: #666; margin: 0 0 1rem; }

.bp-langs {
    display: flex; align-items: center; gap: 0.7rem; flex-wrap: wrap;
    font-size: 0.88rem; color: #777; padding: 0.7rem 0;
    border-top: 1px dashed #e4e7ec;
}
.bp-lang-link { color: #0052CC; text-decoration: none; font-weight: 600; }
.bp-lang-link:hover { text-decoration: underline; }

.bp-article-content { padding: 1.2rem 2rem 1.6rem; font-size: 1.02rem; line-height: 1.75; color: #333; }
.bp-article-content h4 { font-size: 1.2rem; color: #003D99; margin: 1.6rem 0 0.6rem; }
.bp-article-content h4:first-child { margin-top: 0; }
.bp-article-content p { margin: 0 0 1rem; }
.bp-article-content ul { margin: 0 0 1rem; padding-left: 1.4rem; }
.bp-article-content li { margin-bottom: 0.5rem; }
.bp-article-content img { max-width: 100%; height: auto; border-radius: 8px; }
.bp-article-content a { color: #0052CC; }
.bp-article-content strong { color: #1a1a1a; }

/* --- Partage --- */
.bp-share {
    display: flex; align-items: center; gap: 1rem; flex-wrap: wrap;
    padding: 1.2rem 2rem; border-top: 1px solid #eef0f4; background: #fafbfd;
}
.bp-share-label { font-size: 0.92rem; font-weight: 600; color: #555; }
.bp-share-buttons { display: flex; gap: 0.6rem; flex-wrap: wrap; }

.bp-share-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 40px; height: 40px; border-radius: 50%;
    font-size: 1rem; font-weight: 700; text-decoration: none;
    cursor: pointer; border: none; color: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bp-share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.18); }

.bp-li   { background: #0A66C2; }
.bp-x    { background: #000000; }
.bp-wa   { background: #25D366; }
.bp-mail { background: #6b7280; }
.bp-copy { background: #0052CC; }

.bp-copy-feedback { font-size: 0.85rem; color: #2e7d32; font-weight: 600; margin-left: 0.4rem; }

/* --- Footer --- */
.bp-footer { text-align: center; padding: 2rem 20px; color: #888; font-size: 0.88rem; }
.bp-footer a { color: #0052CC; text-decoration: none; }
.bp-footer a:hover { text-decoration: underline; }

@media (max-width: 640px) {
    .bp-hero h1 { font-size: 1.6rem; }
    .bp-article-head, .bp-article-content, .bp-share { padding-left: 1.2rem; padding-right: 1.2rem; }
    .bp-article-title { font-size: 1.5rem; }
    .bp-header-inner { padding: 12px 16px; }
    .bp-nav { gap: 1rem; }
}
