/* ═══════════════════════════════════════════════════════
   TakuGeek RSS — Grille Actualités + Single + Archive
   Texte sombre sur fond clair (compatible GeneratePress)
   ═══════════════════════════════════════════════════════ */

/* ── Grille ──────────────────────────────────────────────────────────────── */
.tkg-actu-grid {
    display: grid;
    gap: 24px;
    grid-template-columns: 1fr;
    margin: 24px 0;
}
@media (min-width: 600px) {
    .tkg-actu-grid--cols-2,
    .tkg-actu-grid--cols-3,
    .tkg-actu-grid--cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
    .tkg-actu-grid--cols-3 { grid-template-columns: repeat(3, 1fr); }
    .tkg-actu-grid--cols-4 { grid-template-columns: repeat(4, 1fr); }
}

/* ── Carte ────────────────────────────────────────────────────────────────── */
.tkg-actu-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,.08);
    border: 1px solid #e5e7eb;
    transition: transform .2s, box-shadow .2s;
}
.tkg-actu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,0,0,.13);
}

/* ── Thumbnail ────────────────────────────────────────────────────────────── */
.tkg-actu-card__thumb-link {
    display: block;
    aspect-ratio: 16/9;
    overflow: hidden;
    background: #f3f4f6;
}
.tkg-actu-card__thumb-link--placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
}
.tkg-actu-card__no-img { font-size: 40px; opacity: .25; }
.tkg-actu-card__thumb {
    width: 100%; height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}
.tkg-actu-card:hover .tkg-actu-card__thumb { transform: scale(1.05); }

/* ── Corps ────────────────────────────────────────────────────────────────── */
.tkg-actu-card__body {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

/* ── Badge catégorie ──────────────────────────────────────────────────────── */
.tkg-actu-card__cat {
    display: inline-block;
    background: rgba(124,58,237,.1);
    color: #7c3aed;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 3px 10px;
    border-radius: 20px;
    align-self: flex-start;
}

/* ── Titre ────────────────────────────────────────────────────────────────── */
.tkg-actu-card__title {
    margin: 0;
    font-size: 15px;
    line-height: 1.35;
    font-weight: 700;
}
.tkg-actu-card__title a {
    color: #111827 !important;
    text-decoration: none !important;
    transition: color .15s;
}
.tkg-actu-card__title a:hover  { color: #7c3aed !important; }
.tkg-actu-card__title a:visited { color: #111827 !important; }

/* ── Extrait ──────────────────────────────────────────────────────────────── */
.tkg-actu-card__excerpt {
    margin: 0;
    font-size: 13px;
    color: #4b5563;
    line-height: 1.5;
    flex: 1;
}

/* ── Méta ─────────────────────────────────────────────────────────────────── */
.tkg-actu-card__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #9ca3af;
    gap: 8px;
}
.tkg-actu-card__source { font-weight: 700; color: #7c3aed; }

/* ── Bouton ───────────────────────────────────────────────────────────────── */
.tkg-actu-card__btn {
    display: inline-block;
    margin-top: 4px;
    padding: 7px 16px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff !important;
    font-size: 12px;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none !important;
    align-self: flex-start;
    transition: opacity .2s;
}
.tkg-actu-card__btn:hover { opacity: .85; }

.tkg-no-posts { color: #6b7280; font-style: italic; }

/* ═══════════════════════════════════════════════════════
   Archive
   ═══════════════════════════════════════════════════════ */
.tkg-archive-wrap {
    max-width: 1200px;
    margin: 0 auto;
    padding: 32px 20px 64px;
}
.tkg-archive-title {
    font-size: 32px;
    font-weight: 800;
    color: #111827;
    margin-bottom: 24px;
}
.tkg-archive-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}
.tkg-archive-filter-btn {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #e5e7eb;
    color: #374151;
    text-decoration: none;
    transition: all .15s;
    background: #fff;
}
.tkg-archive-filter-btn:hover,
.tkg-archive-filter-btn.is-active {
    border-color: #7c3aed;
    background: #7c3aed;
    color: #fff !important;
}
.tkg-archive-pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 48px;
    flex-wrap: wrap;
}
.tkg-archive-pagination .page-numbers {
    padding: 8px 14px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    color: #374151;
    text-decoration: none;
    font-size: 14px;
    transition: all .15s;
}
.tkg-archive-pagination .page-numbers:hover,
.tkg-archive-pagination .current {
    background: #7c3aed;
    border-color: #7c3aed;
    color: #fff;
}

/* ═══════════════════════════════════════════════════════
   Single Article — texte noir sur fond blanc
   ═══════════════════════════════════════════════════════ */
.tkg-single-wrap {
    max-width: 780px;
    margin: 0 auto;
    padding: 32px 20px 80px;
}

/* ── Breadcrumb ───────────────────────────────────────────────────────────── */
.tkg-single-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 24px;
}
.tkg-single-breadcrumb a { color: #7c3aed; text-decoration: none; }
.tkg-single-breadcrumb a:hover { text-decoration: underline; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.tkg-single-header { margin-bottom: 24px; }

.tkg-single-cats { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.tkg-single-cat-badge {
    display: inline-block;
    background: rgba(124,58,237,.1);
    color: #7c3aed;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .06em;
    padding: 4px 12px;
    border-radius: 20px;
    text-decoration: none;
}
.tkg-single-cat-badge:hover { background: #7c3aed; color: #fff; }

.tkg-single-title {
    font-size: clamp(22px, 4vw, 36px);
    line-height: 1.2;
    font-weight: 800;
    margin: 0 0 16px;
    color: #111827;
}

.tkg-single-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6b7280;
    padding-bottom: 16px;
    border-bottom: 2px solid #f3f4f6;
}
.tkg-single-meta__source { font-weight: 700; color: #7c3aed; }
.tkg-single-meta__sep    { color: #d1d5db; }

/* ── Hero image ───────────────────────────────────────────────────────────── */
.tkg-single-hero {
    margin: 0 0 36px;
    border-radius: 12px;
    overflow: hidden;
    aspect-ratio: 16/9;
    background: #f3f4f6;
}
.tkg-single-hero__img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Contenu — texte noir lisible ─────────────────────────────────────────── */
.tkg-single-content {
    font-size: 17px;
    line-height: 1.8;
    color: #1f2937;
    margin-bottom: 40px;
}
.tkg-single-content p        { margin-bottom: 1.4em; color: #1f2937; }
.tkg-single-content h2       { font-size: 22px; font-weight: 700; color: #111827; margin: 2em 0 .7em; }
.tkg-single-content h3       { font-size: 18px; font-weight: 700; color: #111827; margin: 1.8em 0 .6em; }
.tkg-single-content img      { max-width: 100%; border-radius: 10px; height: auto; display: block; margin: 20px auto; }
.tkg-single-content a        { color: #7c3aed; }
.tkg-single-content a:hover  { color: #5b21b6; }
.tkg-single-content blockquote {
    border-left: 4px solid #7c3aed;
    margin: 1.5em 0;
    padding: 12px 20px;
    background: #faf5ff;
    border-radius: 0 8px 8px 0;
    color: #4b5563;
    font-style: italic;
}
.tkg-single-content ul,
.tkg-single-content ol  { padding-left: 1.5em; margin-bottom: 1.4em; }
.tkg-single-content li  { margin-bottom: .4em; color: #1f2937; }
.tkg-single-excerpt {
    font-size: 17px;
    line-height: 1.8;
    color: #374151;
}

/* ── CTA source originale ─────────────────────────────────────────────────── */
.tkg-cta-block {
    background: linear-gradient(135deg, #faf5ff, #ede9fe);
    border: 1px solid #ddd6fe;
    border-radius: 12px;
    padding: 24px 28px;
    margin-bottom: 48px;
    text-align: center;
}
.tkg-cta-block__text {
    margin: 0 0 16px;
    color: #374151;
    font-size: 15px;
}
.tkg-cta-block__btn {
    display: inline-block;
    padding: 12px 28px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    text-decoration: none !important;
    transition: opacity .2s, transform .2s;
    box-shadow: 0 4px 14px rgba(124,58,237,.35);
}
.tkg-cta-block__btn:hover { opacity: .88; transform: translateY(-2px); }

/* ── Navigation prev/next ─────────────────────────────────────────────────── */
.tkg-single-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 32px;
}
.tkg-single-nav__item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 16px 20px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none !important;
    transition: background .2s, border-color .2s;
}
.tkg-single-nav__item--next { text-align: right; }
.tkg-single-nav__item:hover { background: #faf5ff; border-color: #ddd6fe; }
.tkg-single-nav__dir   { font-size: 11px; color: #7c3aed; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.tkg-single-nav__ptitle { font-size: 13px; color: #374151; line-height: 1.35; }

/* ── Retour ───────────────────────────────────────────────────────────────── */
.tkg-single-back { text-align: center; margin-top: 8px; }
.tkg-single-back__link {
    display: inline-block;
    padding: 10px 24px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    color: #374151 !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 600;
    transition: all .2s;
}
.tkg-single-back__link:hover { border-color: #7c3aed; color: #7c3aed !important; }

@media (max-width: 600px) {
    .tkg-single-nav { grid-template-columns: 1fr; }
    .tkg-single-nav__item--next { text-align: left; }
}
