/* ============================================================
   TurfAI Quinté du Jour — Feuille de style
   Design fidèle au site turfai.fr
============================================================ */

/* ── Reset dans le scope du plugin ─────────────────────── */
.tq-wrap, .tq-wrap * {
    box-sizing: border-box;
}
.tq-wrap {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
    color: #334155;
    margin: 0;
    padding: 0;
    /* Annuler les styles du thème WordPress sur ce bloc */
    line-height: 1.6;
    font-size: 16px;
}
.tq-wrap a {
    text-decoration: none;
}

/* ── HERO vert ──────────────────────────────────────────── */
.tq-hero {
    background: linear-gradient(135deg, #004D25 0%, #006B35 100%);
    padding: 32px 0 40px;
    color: #fff;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    margin-bottom: 0;
}
.tq-hero-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 24px;
}
.tq-hero-date {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.85rem;
    color: rgba(255,255,255,0.75);
    margin-bottom: 10px;
    font-weight: 500;
}
.tq-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    font-weight: 900;
    color: #fff !important;
    margin: 0 0 10px !important;
    padding: 0 !important;
    line-height: 1.15 !important;
    border: none !important;
}
.tq-hero-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.95rem;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}
.tq-back-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: rgba(255,255,255,0.65);
    font-size: 0.82rem;
    text-decoration: none !important;
    margin-bottom: 14px;
    transition: color 0.15s;
}
.tq-back-link:hover {
    color: #fff;
}
.tq-cat-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 0.28rem 0.8rem;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 10px;
}

/* ── BODY (zone sous le hero) ───────────────────────────── */
.tq-body {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 56px;
    background: transparent;
}

/* ── GRILLE CARDS ───────────────────────────────────────── */
.tq-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 20px;
}
.tq-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    text-decoration: none !important;
    color: inherit !important;
    display: block;
    transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}
.tq-card:hover {
    border-color: #94a3b8;
    box-shadow: 0 8px 28px rgba(0,0,0,0.1);
    transform: translateY(-2px);
    color: inherit !important;
    text-decoration: none !important;
}
.tq-card-cat {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.tq-card-cat-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    flex-shrink: 0;
}
.tq-card-cat-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
}
.tq-card-title {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.4;
}
.tq-card-desc {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.5;
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.tq-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
    color: #94a3b8;
}
.tq-card-read {
    font-size: 0.75rem;
    color: #94a3b8;
}

/* ── LIEN ARCHIVES ──────────────────────────────────────── */
.tq-archives-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    margin-top: 8px;
    transition: border-color 0.15s, box-shadow 0.15s;
    color: inherit !important;
}
.tq-archives-link:hover {
    border-color: #004D25;
    box-shadow: 0 4px 14px rgba(0,0,0,0.07);
    text-decoration: none !important;
}
.tq-archives-link-inner {
    display: flex;
    align-items: center;
    gap: 12px;
}
.tq-archives-icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.tq-archives-text-title {
    font-weight: 700;
    color: #0f172a;
    font-size: 0.9rem;
}
.tq-archives-text-sub {
    font-size: 0.78rem;
    color: #64748b;
}
.tq-archives-arrow {
    color: #94a3b8;
    font-size: 1.3rem;
    line-height: 1;
}

/* ── MESSAGE D'ATTENTE ──────────────────────────────────── */
.tq-waiting-wrap {
    display: flex;
    justify-content: center;
    padding: 40px 24px;
}
.tq-waiting {
    background: linear-gradient(135deg, #004D25 0%, #006B35 100%);
    border-radius: 20px;
    padding: 48px 40px;
    text-align: center;
    color: #fff;
    max-width: 560px;
    width: 100%;
}
.tq-waiting-icon {
    font-size: 3.5rem;
    margin-bottom: 16px;
    display: block;
}
.tq-waiting-title {
    font-size: 1.5rem;
    font-weight: 900;
    color: #fff !important;
    margin: 0 0 10px !important;
}
.tq-waiting-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.9rem;
    margin: 0 0 28px;
    line-height: 1.6;
}
.tq-waiting-cd {
    display: inline-flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.25);
    border-radius: 12px;
    padding: 14px 28px;
    font-size: 2.2rem;
    font-weight: 900;
    font-family: 'Courier New', monospace;
    letter-spacing: 3px;
    color: #fff;
}
.tq-waiting-hippo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(251,133,0,0.2);
    border: 1px solid rgba(251,133,0,0.4);
    color: #FB8500;
    border-radius: 20px;
    padding: 0.35rem 1rem;
    font-size: 0.8rem;
    font-weight: 700;
    margin-top: 20px;
}

/* ── ARTICLE INDIVIDUEL ─────────────────────────────────── */
.tq-article-outer {
    max-width: 1100px;
    margin: 0 auto;
    padding: 32px 24px 56px;
}
.tq-article-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 32px;
    align-items: start;
}
.tq-article-body {
    min-width: 0;
}
.tq-article-body h2 {
    font-size: 1.2rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 2rem 0 0.75rem !important;
    padding: 0 !important;
    border: none !important;
    line-height: 1.3 !important;
}
.tq-article-body h3 {
    font-size: 1rem !important;
    font-weight: 700 !important;
    color: #1e293b !important;
    margin: 1.5rem 0 0.5rem !important;
    padding: 0 !important;
    border: none !important;
}
.tq-article-body p {
    color: #475569;
    line-height: 1.85;
    margin-bottom: 1rem;
}
.tq-article-body ul,
.tq-article-body ol {
    color: #475569;
    margin-bottom: 1rem;
    line-height: 1.8;
    padding-left: 1.4rem;
}
.tq-article-body li {
    margin-bottom: 0.3rem;
}
.tq-article-body strong {
    color: #1e293b;
}
.tq-article-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.85rem;
}
.tq-article-body th {
    background: #f8fafc;
    padding: 8px 12px;
    text-align: left;
    font-weight: 700;
    border: 1px solid #e2e8f0;
    color: #334155;
}
.tq-article-body td {
    padding: 8px 12px;
    border: 1px solid #e2e8f0;
    color: #475569;
}
.tq-article-body tr:hover td {
    background: #f8fafc;
}

/* ── AUTRES ARTICLES DU JOUR ────────────────────────────── */
.tq-others {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e2e8f0;
}
.tq-others-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}
.tq-others-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
}
.tq-other-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    text-decoration: none !important;
    transition: border-color 0.15s;
    color: inherit !important;
}
.tq-other-link:hover {
    border-color: #004D25;
    text-decoration: none !important;
}
.tq-other-icon {
    width: 28px;
    height: 28px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}
.tq-other-cat {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    margin-bottom: 2px;
}
.tq-other-title {
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    line-height: 1.3;
}

/* ── ANALYSES PRÉCÉDENTES ───────────────────────────────── */
.tq-prev {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}
.tq-prev-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
}
.tq-prev-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0.65rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    color: inherit !important;
    transition: opacity 0.15s;
}
.tq-prev-item:last-child {
    border-bottom: none;
}
.tq-prev-item:hover {
    opacity: 0.75;
}
.tq-prev-date {
    font-size: 0.75rem;
    color: #94a3b8;
    width: 52px;
    flex-shrink: 0;
}
.tq-prev-cat-badge {
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    flex-shrink: 0;
    white-space: nowrap;
}
.tq-prev-text {
    font-size: 0.82rem;
    color: #475569;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    flex: 1;
}

/* ── SIDEBAR ────────────────────────────────────────────── */
.tq-sidebar-box {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    position: sticky;
    top: 80px;
}
.tq-sidebar-head {
    background: linear-gradient(135deg, #004D25, #006B35);
    padding: 14px 16px;
}
.tq-sidebar-head-label {
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 3px;
}
.tq-sidebar-head-date {
    color: rgba(255,255,255,0.75);
    font-size: 0.82rem;
}
.tq-sidebar-body {
    padding: 12px 14px;
}
.tq-sidebar-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0.6rem 0;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none !important;
    transition: opacity 0.15s;
    color: inherit !important;
}
.tq-sidebar-link:last-child {
    border-bottom: none;
}
.tq-sidebar-link:hover {
    opacity: 0.75;
}
.tq-sidebar-icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.78rem;
    flex-shrink: 0;
}
.tq-sidebar-link-title {
    font-size: 0.8rem;
    color: #334155;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}
.tq-sidebar-arch {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 10px;
    padding: 10px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #004D25 !important;
    text-decoration: none !important;
    transition: background 0.15s;
}
.tq-sidebar-arch:hover {
    background: #f1f5f9;
}

/* ── ARCHIVES ───────────────────────────────────────────── */
.tq-arch-month {
    margin-bottom: 2.5rem;
}
.tq-arch-month-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #e2e8f0;
}
.tq-arch-day {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 14px 20px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    margin-bottom: 0.6rem;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.tq-arch-day:hover {
    border-color: #004D25;
    box-shadow: 0 4px 12px rgba(0,0,0,0.07);
}
.tq-arch-day-num {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: #004D25;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 1.1rem;
    flex-shrink: 0;
}
.tq-arch-day-info {
    flex: 1;
}
.tq-arch-day-date {
    font-size: 0.95rem;
    font-weight: 700;
    color: #0f172a;
}
.tq-arch-day-hippo {
    font-size: 0.8rem;
    color: #64748b;
    margin-top: 2px;
    text-transform: uppercase;
}
.tq-arch-day-count {
    font-size: 0.8rem;
    font-weight: 700;
    color: #004D25;
    white-space: nowrap;
}

/* ── NOTICES ────────────────────────────────────────────── */
.tq-notice {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #0369A1;
    margin: 16px 0;
}
.tq-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.875rem;
    color: #dc2626;
}

/* ── RESPONSIVE ─────────────────────────────────────────── */
@media (max-width: 900px) {
    .tq-cards {
        grid-template-columns: repeat(2, 1fr);
    }
    .tq-article-grid {
        grid-template-columns: 1fr !important;
    }
    .tq-sidebar-box {
        position: static !important;
    }
    .tq-hero {
        margin-left: -16px;
        margin-right: -16px;
        left: 0;
        right: 0;
        width: auto;
    }
}
@media (max-width: 600px) {
    .tq-cards {
        grid-template-columns: 1fr;
    }
    .tq-others-grid {
        grid-template-columns: 1fr;
    }
    .tq-waiting {
        padding: 32px 20px;
    }
    .tq-body {
        padding: 24px 16px 40px;
    }
}

/* ═══════════════════════════════════════════
   NOUVEAU DESIGN ARTICLE SINGLE — v6
═══════════════════════════════════════════ */

/* Breadcrumb */
.tq-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .8rem;
    color: rgba(255,255,255,.6);
    margin-bottom: 16px;
    flex-wrap: wrap;
}
.tq-breadcrumb a { color: rgba(255,255,255,.75); text-decoration: none; transition: color .15s; }
.tq-breadcrumb a:hover { color: #fff; }
.tq-breadcrumb span { opacity: .5; }

/* Badge catégorie dans le hero */
.tq-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 50px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    margin-bottom: 14px;
}

/* Méta hero */
.tq-hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-top: 12px;
}
.tq-hero-meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: .82rem;
    color: rgba(255,255,255,.7);
    font-weight: 500;
}

/* Contenu article */
.tq-article-content {
    font-family: "Barlow", Georgia, serif;
    font-size: 1rem;
    line-height: 1.75;
    color: #1e293b;
}
.tq-article-content h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    margin: 36px 0 14px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f1f5f9;
    line-height: 1.3;
}
.tq-article-content h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1a5c28;
    margin: 24px 0 10px;
}
.tq-article-content p {
    margin-bottom: 16px;
}
.tq-article-content ul, .tq-article-content ol {
    padding-left: 22px;
    margin-bottom: 16px;
}
.tq-article-content li { margin-bottom: 8px; }
.tq-article-content strong { color: #0f172a; }
.tq-article-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    font-size: .88rem;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.tq-article-content th {
    background: #f1f5f9;
    font-weight: 700;
    color: #0f172a;
    padding: 10px 14px;
    text-align: left;
    font-size: .82rem;
    text-transform: uppercase;
    letter-spacing: .04em;
}
.tq-article-content td {
    padding: 9px 14px;
    border-bottom: 1px solid #f1f5f9;
    color: #334155;
}
.tq-article-content tr:last-child td { border-bottom: none; }
.tq-article-content tr:hover td { background: #f8fafc; }

/* Navigation entre articles du jour */
.tq-nav-articles {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 2px solid #f1f5f9;
}
.tq-nav-articles-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: .9rem;
    font-weight: 800;
    color: #0f172a;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 16px;
}
.tq-nav-articles-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}
.tq-nav-article-card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none !important;
    transition: all .2s ease;
    box-shadow: 0 2px 6px rgba(0,0,0,.04);
}
.tq-nav-article-card:hover {
    border-color: #1a5c28;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(26,92,40,.12);
}
.tq-nav-card-icon {
    width: 36px; height: 36px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}
.tq-nav-card-body { flex: 1; min-width: 0; }
.tq-nav-card-cat {
    font-size: .7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .05em;
    margin-bottom: 2px;
}
.tq-nav-card-title {
    font-size: .82rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tq-nav-card-arrow {
    font-size: .9rem;
    color: #94a3b8;
    flex-shrink: 0;
    transition: transform .15s;
}
.tq-nav-article-card:hover .tq-nav-card-arrow {
    transform: translateX(3px);
    color: #1a5c28;
}

/* Sidebar active */
.tq-sidebar-active {
    background: #f0fdf4 !important;
    border-color: #bbf7d0 !important;
}
.tq-sidebar-current-dot {
    color: #22c55e;
    font-size: .6rem;
    flex-shrink: 0;
}

@media (max-width: 640px) {
    .tq-nav-articles-grid { grid-template-columns: 1fr; }
    .tq-hero-meta { gap: 12px; }
}

/* ── Pleine largeur article (pas de sidebar) ── */
.tq-article-full { max-width: 860px; margin: 0 auto; padding: 0 20px 60px; }
.tq-article-full .tq-article-body { width: 100%; }

/* ── Cartes nav articles (style screenshot) ── */
.tq-nav-articles { margin-top: 48px; padding-top: 24px; border-top: 2px solid #f1f5f9; }
.tq-nav-articles-title {
    display: flex; align-items: center; gap: 8px;
    font-size: .82rem; font-weight: 800; color: #64748b;
    text-transform: uppercase; letter-spacing: .08em; margin-bottom: 14px;
}
.tq-nav-articles-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.tq-nav-article-card {
    display: flex; align-items: center; gap: 12px;
    padding: 14px 16px; background: #fff;
    border: 1px solid #e8edf3; border-radius: 12px;
    text-decoration: none !important; transition: all .18s;
    box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.tq-nav-article-card:hover {
    border-color: #1a5c28; transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(26,92,40,.10);
}
.tq-nav-card-icon {
    width: 40px; height: 40px; border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
}
.tq-nav-card-body { flex: 1; min-width: 0; }
.tq-nav-card-cat {
    font-size: .68rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .06em; margin-bottom: 3px;
}
.tq-nav-card-title {
    font-size: .85rem; font-weight: 600; color: #1e293b;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.tq-nav-card-arrow { font-size: 1.2rem; color: #cbd5e1; flex-shrink: 0; transition: color .15s; }
.tq-nav-article-card:hover .tq-nav-card-arrow { color: #1a5c28; }

/* ── Archives pagination ── */
.tq-arch-month-nav {
    display: flex; flex-wrap: wrap; gap: 8px;
    margin-bottom: 24px;
}
.tq-arch-month-btn {
    display: inline-block; padding: 7px 16px;
    background: #f8fafc; border: 1px solid #e2e8f0;
    border-radius: 50px; font-size: .82rem; font-weight: 600;
    color: #475569 !important; text-decoration: none !important;
    transition: all .15s;
}
.tq-arch-month-btn:hover, .tq-arch-month-active {
    background: #1a5c28 !important; border-color: #1a5c28 !important;
    color: #fff !important;
}
.tq-arch-pagination {
    display: flex; align-items: center; justify-content: center;
    gap: 16px; margin-top: 28px;
}
.tq-page-btn {
    display: inline-block; padding: 9px 20px;
    background: #1a5c28; color: #fff !important;
    border-radius: 8px; font-weight: 600; font-size: .88rem;
    text-decoration: none !important; transition: background .15s;
}
.tq-page-btn:hover { background: #2d7a35; }
.tq-page-info { font-size: .85rem; color: #94a3b8; font-weight: 600; }

@media(max-width:640px) {
    .tq-nav-articles-grid { grid-template-columns: 1fr; }
    .tq-article-full { padding: 0 16px 40px; }
}

/* ── Bloc archives en bas d'article ── */
.tq-article-archives-block {
    margin-top: 32px;
}
.tq-article-archives-link {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 14px;
    padding: 18px 20px;
    text-decoration: none !important;
    transition: all .18s;
}
.tq-article-archives-link:hover {
    background: #dcfce7;
    border-color: #1a5c28;
    transform: translateY(-1px);
}
.tq-article-archives-icon {
    font-size: 1.6rem;
    flex-shrink: 0;
}
.tq-article-archives-title {
    font-size: .95rem;
    font-weight: 700;
    color: #166534;
    margin-bottom: 2px;
}
.tq-article-archives-sub {
    font-size: .8rem;
    color: #4ade80;
    color: #16a34a;
}
.tq-article-archives-arrow {
    margin-left: auto;
    font-size: 1.4rem;
    color: #1a5c28;
    flex-shrink: 0;
}

/* ── Masque le titre dupliqué du thème sur les articles CPT ── */
.single-quinte_article .entry-title,
.single-quinte_article h1.entry-title,
.single-quinte_article .post-title,
.single-quinte_article .page-title,
.single-quinte_article article > header,
.single-quinte_article .entry-header {
    display: none !important;
}

/* ── Bouton archives page d'attente ── */
.tq-waiting-archives-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 11px 24px;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.35);
    border-radius: 50px;
    color: #fff !important;
    font-size: .88rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .2s;
    backdrop-filter: blur(4px);
}
.tq-waiting-archives-btn:hover {
    background: rgba(255,255,255,.25);
    border-color: rgba(255,255,255,.6);
}


/* ═══════════════════════════════════════════════════
   RESPONSIVE COMPLET — articles quinté & cheval méthode
═══════════════════════════════════════════════════ */

/* Tablette (≤ 768px) */
@media (max-width: 768px) {
    /* Hero article */
    .tq-hero { padding: 28px 16px 24px; }
    .tq-hero-title { font-size: 1.5rem; line-height: 1.3; }
    .tq-hero-sub   { font-size: .88rem; }
    .tq-hero-meta  { gap: 10px; margin-top: 10px; }
    .tq-hero-meta-item { font-size: .78rem; }
    .tq-breadcrumb { font-size: .75rem; }
    .tq-hero-badge { font-size: .74rem; padding: 4px 11px; }

    /* Corps article */
    .tq-article-full { padding: 0 16px 48px; }
    .tq-article-content { font-size: .95rem; }
    .tq-article-content h2 { font-size: 1.1rem; }
    .tq-article-content h3 { font-size: 1rem; }
    .tq-article-content h4 { font-size: .82rem; }

    /* Pronostic liste 8 chevaux */
    .tq-prono-list li { padding: 10px 12px; gap: 8px; }
    .tq-pn   { font-size: .95rem; min-width: 38px; }
    .tq-pnom { font-size: .9rem; }
    .tq-pcote { font-size: .72rem; padding: 2px 7px; }
    .tq-pnote { font-size: .78rem; }

    /* Cheval JSP */
    .tq-jsp-horse { padding: 14px 16px; gap: 12px; }
    .tq-jsp-num  { font-size: 1.5rem; padding: 6px 12px; }
    .tq-jsp-nom  { font-size: 1.05rem; }
    .tq-jsp-cote { font-size: .85rem; padding: 5px 10px; }

    /* Cadenas abonné */
    .tq-lock-abo { border-radius: 14px; }
    .tq-lock-abo-inner { padding: 22px 18px; gap: 16px; }
    .tq-lock-abo-icon, .tq-lock-abo-iris { width: 64px; height: 64px; }
    .tq-lock-abo-padlock { width: 28px; height: 28px; }
    .tq-lock-abo-title { font-size: .95rem; }
    .tq-lock-abo-sub   { font-size: .82rem; }
    .tq-lock-abo-btn   { padding: 9px 20px; font-size: .85rem; }

    /* Footer cards */
    .tq-article-footer-cards { gap: 12px; margin-top: 28px; }
    .tq-afc-card { padding: 13px 12px; gap: 10px; }
    .tq-afc-img  { width: 52px; height: 52px; }
    .tq-afc-label { font-size: .85rem; }
    .tq-afc-sub   { font-size: .72rem; }
    .tq-afc-arrow { width: 28px; height: 28px; }

    /* Pronostic déverrouillé header */
    .tq-prono-unlocked-hd { padding: 12px 16px; gap: 10px; }
    .tq-prono-hd-iris { width: 34px; height: 34px; }
    .tq-prono-unlocked-hd strong { font-size: .88rem; }
    .tq-prono-unlocked-hd span   { font-size: .74rem; }
    .tq-prono-unlocked .tq-article-content { padding: 16px; }
}

/* Mobile (≤ 480px) */
@media (max-width: 480px) {
    .tq-hero-title { font-size: 1.25rem; }
    .tq-hero-meta  { flex-direction: column; align-items: flex-start; gap: 6px; }

    .tq-article-full { padding: 0 12px 40px; }
    .tq-article-content { font-size: .9rem; }
    .tq-article-content h2 { font-size: 1rem; margin: 24px 0 8px; }
    .tq-article-content h3 { font-size: .95rem; margin: 18px 0 6px; }
    .tq-article-content h4 { font-size: .8rem; }
    .tq-article-content p  { line-height: 1.65; }

    /* Prono liste : numéro au-dessus sur très petit écran */
    .tq-prono-list li { flex-wrap: wrap; padding: 10px; }
    .tq-pn   { width: 100%; min-width: 0; margin-bottom: 4px; }
    .tq-pnom { font-size: .85rem; }
    .tq-pcote{ align-self: flex-start; }
    .tq-pnote{ font-size: .76rem; }

    /* Cheval JSP mobile */
    .tq-jsp-horse { flex-wrap: wrap; padding: 14px; gap: 10px; }
    .tq-jsp-num  { font-size: 1.3rem; padding: 5px 10px; }
    .tq-jsp-nom  { font-size: .95rem; width: 100%; flex: none; }
    .tq-jsp-cote { font-size: .82rem; }

    /* Cadenas abonné colonne */
    .tq-lock-abo-inner { flex-direction: column; text-align: center; padding: 22px 16px; }
    .tq-lock-abo-icon  { margin: 0 auto; }

    /* Footer cards — empilées */
    .tq-article-footer-cards { grid-template-columns: 1fr; }

    /* Gate card mobile */
    .tq-gate-card { padding: 36px 20px 30px; }
    .tq-gate-card-btns { flex-direction: column; align-items: stretch; }
    .tq-gcbtn { min-width: 0; width: 100%; justify-content: center; }

    /* Sélecteur jour mobile */
    .tq-day-switch { gap: 4px; padding: 4px; }
    .tq-dsw-btn { padding: 8px 14px; font-size: .82rem; }
    .tq-dsw-date { display: none; }

    /* Duo cards listing */
    .tq-cards-duo { gap: 16px; }
    .tq-duo-img { height: 160px; }
    .tq-duo-logo { max-height: 100px; }
    .tq-duo-title { font-size: 1rem; }
    .tq-duo-btn { padding: 12px; font-size: .88rem; }
}

/* === v7 additions === */

/* ─── Hero page listing ─────────────────────────── */
.tq-hero--page {
    text-align: center;
    padding: 40px 20px 36px;
}
.tq-hero--page .tq-hero-inner { max-width: 680px; }

/* ─── Body states ────────────────────────────────── */
/* tq-body--gate: see gate card section below */
.tq-body--logged {
    padding: 32px 24px 48px;
    max-width: 1100px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
}

/* ─── Carte invitation connexion — exactement fichier_5 ── */
/* tq-body--gate: see gate card section below */
.tq-body--gate {
    background: #f4f6f8;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    width: 100%;
    box-sizing: border-box;
}
.tq-gate-card {
    background: #fff;
    border-radius: 18px;
    padding: 52px 48px 44px;
    max-width: 460px;
    width: 100%;
    text-align: center;
    box-shadow: 0 4px 32px rgba(0,0,0,.09), 0 1px 4px rgba(0,0,0,.04);
}
.tq-gate-card-icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #dff0e4;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
}
.tq-gate-card-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 12px;
    line-height: 1.25;
}
.tq-gate-card-sub {
    font-size: .94rem;
    color: #64748b;
    line-height: 1.65;
    margin: 0 0 30px;
    padding: 0 4px;
}
.tq-gate-card-btns {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 16px;
}
.tq-gate-card-hint {
    font-size: .78rem;
    color: #94a3b8;
    margin: 0;
}
/* Les deux boutons : même hauteur, même min-width, vrais boutons */
.tq-gcbtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    padding: 0 28px;
    border-radius: 10px;
    font-size: .95rem;
    font-weight: 700;
    min-width: 150px;
    text-decoration: none !important;
    transition: background .18s, transform .15s, box-shadow .15s;
    cursor: pointer;
    white-space: nowrap;
    border: none;
    outline: none;
    box-sizing: border-box;
}
.tq-gcbtn--green {
    background: #1a5c28;
    color: #fff !important;
}
.tq-gcbtn--green:hover {
    background: #236b32;
    transform: translateY(-1px);
    box-shadow: 0 4px 14px rgba(26,92,40,.3);
}
.tq-gcbtn--outline {
    background: transparent;
    color: #1a5c28 !important;
    border: 2px solid #1a5c28;
}
.tq-gcbtn--outline:hover {
    background: #f0fdf4;
}
@media(max-width:420px) {
    .tq-gate-card { padding: 40px 28px 36px; }
    .tq-gate-card-btns { flex-direction: column; align-items: stretch; }
    .tq-gcbtn { min-width: 0; width: 100%; }
}

/* ─── Sélecteur Aujourd'hui / Demain ─────────────── */
.tq-day-switch {
    display: inline-flex;
    gap: 8px;
    margin: 0 0 28px;
    background: #f1f5f9;
    border-radius: 60px;
    padding: 5px;
}
.tq-dsw-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 9px 22px;
    border-radius: 50px;
    text-decoration: none !important;
    font-size: .9rem;
    font-weight: 600;
    color: #475569;
    transition: all .2s;
    line-height: 1;
}
.tq-dsw-btn:hover { color: #004D25; }
.tq-dsw-icon { font-size: .95rem; }
.tq-dsw-label { font-weight: 700; }
.tq-dsw-date {
    font-size: .78rem;
    font-weight: 500;
    color: #94a3b8;
    background: rgba(0,0,0,.05);
    border-radius: 20px;
    padding: 2px 8px;
}
.tq-dsw-btn--on {
    background: #004D25;
    color: #fff !important;
    box-shadow: 0 2px 10px rgba(0,77,37,.25);
}
.tq-dsw-btn--on .tq-dsw-date {
    color: rgba(255,255,255,.8);
    background: rgba(255,255,255,.15);
}
.tq-dsw-btn--on:hover { background: #1a6e35; }

/* ─── Grille 2 cartes (style fichier_4) ─────────── */
.tq-cards-duo {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
@media(max-width:700px){
    .tq-cards-duo { grid-template-columns: 1fr; gap: 20px; }
}

.tq-duo-card {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 20px rgba(0,0,0,.09);
    display: flex;
    flex-direction: column;
    transition: transform .2s, box-shadow .2s;
}
.tq-duo-card:hover { transform: translateY(-4px); box-shadow: 0 12px 36px rgba(0,0,0,.14); }

/* Bannière image grande, immersive */
.tq-duo-img {
    height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}
.tq-duo-img--green {
    background: linear-gradient(160deg,#00612f 0%,#004D25 60%,#003318 100%);
}
.tq-duo-img--orange {
    background: linear-gradient(160deg,#f0a800 0%,#D97706 60%,#b05a00 100%);
}
.tq-duo-logo {
    max-height: 140px;
    max-width: 260px;
    object-fit: contain;
    filter: drop-shadow(0 4px 14px rgba(0,0,0,.3));
}

/* Corps de la carte */
.tq-duo-body {
    padding: 22px 24px 26px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.tq-duo-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.3;
}
.tq-duo-sub {
    font-size: .75rem;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 0;
}
.tq-duo-desc {
    font-size: .875rem;
    color: #475569;
    line-height: 1.65;
    margin: 0;
    flex: 1;
}
.tq-duo-lock {
    font-size: .73rem;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 4px 0 0;
}
.tq-duo-soon {
    display: inline-block;
    font-size: .82rem;
    color: #D97706;
    font-weight: 600;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 8px;
    padding: 5px 12px;
}

/* Boutons des cartes */
.tq-duo-btn {
    display: block;
    text-align: center;
    padding: 14px 24px;
    border-radius: 50px;
    font-size: .92rem;
    font-weight: 700;
    text-decoration: none !important;
    transition: all .18s;
    margin-top: 8px;
}
.tq-duo-btn:hover:not(.tq-duo-btn--off) {
    transform: translateY(-1px);
    opacity: .9;
}
.tq-duo-btn--green {
    background: #004D25;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(0,77,37,.3);
}
.tq-duo-btn--orange {
    background: #D97706;
    color: #fff !important;
    box-shadow: 0 4px 14px rgba(217,119,6,.3);
}
.tq-duo-btn--off {
    background: #e2e8f0 !important;
    color: #94a3b8 !important;
    box-shadow: none;
    pointer-events: none;
}

/* ─── Overlay non connecté sur les articles ─────── */
.tq-gate-overlay {
    position: fixed; inset: 0;
    background: rgba(15,23,42,.55);
    display: flex; align-items: center; justify-content: center;
    z-index: 9999; padding: 20px;
}
.tq-gate-box {
    background: #fff; border-radius: 20px; padding: 48px 40px;
    max-width: 480px; width: 100%; text-align: center;
    box-shadow: 0 24px 60px rgba(0,0,0,.2);
}
.tq-gate-lock-icon {
    width: 80px; height: 80px; border-radius: 50%; background: #f0fdf4;
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 22px;
}
.tq-gate-title { font-size: 1.3rem; font-weight: 800; color: #0f172a; margin: 0 0 10px; }
.tq-gate-sub   { font-size: .93rem; color: #475569; line-height: 1.65; margin: 0 0 24px; }
.tq-gate-btns  { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.tq-gate-hint  { font-size: .78rem; color: #94a3b8; margin: 0; }
.tq-gate-btn {
    display: inline-block; padding: 13px 30px; border-radius: 50px;
    font-size: .9rem; font-weight: 700;
    text-decoration: none !important; transition: all .18s;
}
.tq-gate-btn:hover { transform: translateY(-1px); }
.tq-gate-btn--green { background: #004D25; color: #fff !important; box-shadow: 0 4px 14px rgba(0,77,37,.3); }
.tq-gate-btn--outline { background: #fff; color: #004D25 !important; border: 2px solid #004D25; }
.tq-gate-btn--outline:hover { background: #f0fdf4; }

/* ─── Cadenas abonné ─────────────────────────────── */
.tq-lock-abo { border-radius: 18px; overflow: hidden; margin: 28px 0; background: linear-gradient(135deg,#004D25 0%,#1a6e35 100%); }
.tq-lock-abo-inner { display: flex; align-items: center; gap: 24px; padding: 32px; }
.tq-lock-abo-icon { position: relative; flex-shrink: 0; width: 80px; height: 80px; }
.tq-lock-abo-iris { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; opacity: .7; display: block; }
.tq-lock-abo-padlock { position: absolute; bottom: -4px; right: -4px; background: rgba(255,255,255,.2); border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; }
.tq-lock-abo-text { flex: 1; color: #fff !important; }
.tq-lock-abo-text p { color: #fff !important; }
.tq-lock-abo-title { font-size: 1.05rem; font-weight: 800; color: #fff !important; margin: 0 0 6px; }
.tq-lock-abo-sub   { font-size: .88rem; color: rgba(255,255,255,.85) !important; margin: 0 0 18px; }
.tq-lock-abo-btn { display: inline-block; background: #FF9800; color: #fff !important; padding: 11px 28px; border-radius: 50px; font-size: .9rem; font-weight: 700; text-decoration: none !important; transition: all .18s; }
.tq-lock-abo-btn:hover { background: #e68900; transform: translateY(-1px); }
@media(max-width:580px){ .tq-lock-abo-inner { flex-direction: column; text-align: center; padding: 28px 20px; } }

/* ─── Pronostic déverrouillé abonnés ─────────────── */
.tq-prono-unlocked { border: 2px solid #004D25; border-radius: 18px; overflow: hidden; margin: 28px 0; }
.tq-prono-unlocked--orange { border-color: #D97706; }
.tq-prono-unlocked-hd { background: #004D25; padding: 16px 24px; display: flex; align-items: center; gap: 14px; }
.tq-prono-unlocked-hd--orange { background: #D97706; }
.tq-prono-hd-iris { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.tq-prono-unlocked-hd strong { display: block; color: #fff; font-size: .95rem; font-weight: 800; }
.tq-prono-unlocked-hd span   { color: rgba(255,255,255,.75); font-size: .8rem; }
.tq-prono-unlocked .tq-article-content { padding: 24px; }

/* ─── Liste pronostic 8 chevaux ──────────────────── */
.tq-prono-list { list-style: none; padding: 0; margin: 16px 0; display: flex; flex-direction: column; gap: 8px; }
.tq-prono-list li {
    display: grid;
    grid-template-columns: 44px 1fr auto;
    grid-template-rows: auto auto;
    column-gap: 10px; row-gap: 2px;
    align-items: center;
    padding: 10px 14px; background: #f8fafc; border-radius: 10px;
    border-left: 4px solid #cbd5e1; position: relative;
}
/* N° — colonne gauche, 2 lignes */
.tq-prono-list .tq-pn {
    grid-column: 1; grid-row: 1 / 3;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; font-weight: 900; font-family: monospace; color: #475569;
}
/* Rôle — ligne haute, col 2 */
.tq-prono-list .tq-prole {
    grid-column: 2; grid-row: 1;
    font-size: .68rem; font-weight: 700; color: #94a3b8;
    text-transform: uppercase; letter-spacing: .04em;
    line-height: 1.2;
}
/* Nom — ligne basse, col 2 */
.tq-prono-list .tq-pnom {
    grid-column: 2; grid-row: 2;
    font-size: .95rem; font-weight: 800; color: #0f172a;
}
/* Cote — col 3, ligne 1 */
.tq-prono-list .tq-pcote {
    grid-column: 3; grid-row: 1;
}
/* Note — col 2-3, ligne 3 (si présente) */
.tq-prono-list .tq-pnote {
    grid-column: 2 / 4; grid-row: 3;
    font-size: .78rem; color: #475569; line-height: 1.5;
}
/* Rang 1 — Base forte */
.tq-prono-list li:nth-child(1) {
    background: linear-gradient(135deg,#f0fdf4,#fff);
    border-left-color: #004D25;
    box-shadow: 0 2px 8px rgba(0,77,37,.08);
}
.tq-prono-list li:nth-child(1) .tq-pn { color: #004D25; }
/* Rang 2 */
.tq-prono-list li:nth-child(2) {
    background: linear-gradient(135deg,#f0fdf4,#fff);
    border-left-color: #16a34a;
}
.tq-prono-list li:nth-child(2) .tq-pn { color: #16a34a; }
/* Rangs 3-5 */
.tq-prono-list li:nth-child(3),
.tq-prono-list li:nth-child(4),
.tq-prono-list li:nth-child(5) { border-left-color: #22c55e; }
.tq-prono-list li:nth-child(3) .tq-pn,
.tq-prono-list li:nth-child(4) .tq-pn,
.tq-prono-list li:nth-child(5) .tq-pn { color: #166534; }
/* Rangs 6-8 — outsiders */
.tq-prono-list li:nth-child(n+6) { background: #fff; border-left-color: #e2e8f0; }
/* tq-pn/tq-pnom rules moved to grid layout above */
.tq-pcote { font-size: .8rem; background: #004D25; color: #fff; padding: 3px 9px; border-radius: 20px; font-weight: 700; white-space: nowrap; }
.tq-prole { font-size: .75rem; color: #7C3AED; font-weight: 700; text-transform: uppercase; }
/* tq-pnote moved to grid context */

/* ─── Cheval JSP ─────────────────────────────────── */
.tq-jsp-horse { display: flex; align-items: center; gap: 16px; background: linear-gradient(135deg,#004D25,#1a6e35); border-radius: 14px; padding: 20px 24px; margin: 16px 0; }
.tq-jsp-num  { font-size: 2rem; font-weight: 900; color: #fff; font-family: monospace; background: rgba(255,255,255,.15); border-radius: 10px; padding: 8px 16px; }
.tq-jsp-nom  { font-size: 1.3rem; font-weight: 800; color: #fff; flex: 1; }
.tq-jsp-cote { font-size: .95rem; color: #fff; background: rgba(255,255,255,.2); border-radius: 8px; padding: 6px 14px; font-weight: 700; }

/* ─── Footer 2 cartes côte à côte (bas d'article) ── */
.tq-article-footer-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin: 36px 0 16px;
}
@media(max-width:600px){
    .tq-article-footer-cards { grid-template-columns: 1fr; }
}
.tq-afc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px 14px;
    text-decoration: none !important;
    background: #fff;
    transition: all .18s;
    overflow: hidden;
}
.tq-afc-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,.09);
}
.tq-afc-img {
    width: 64px;
    height: 64px;
    border-radius: 12px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    box-sizing: border-box;
}
.tq-afc-img--arch {
    background: #f1f5f9;
}
.tq-afc-logo {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.tq-afc-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
    min-width: 0;
}
.tq-afc-label {
    font-size: .9rem;
    font-weight: 800;
    color: #0f172a;
    line-height: 1.3;
    display: block;
}
.tq-afc-sub {
    font-size: .76rem;
    color: #64748b;
    display: block;
    line-height: 1.4;
}
.tq-afc-arrow {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.tq-afc-arrow--arch {
    background: #64748b;
}
/* CTA méthode (legacy — masqué) */
.tq-cta-methode { display: none; }

/* ─── Archives ───────────────────────────────────── */
.tq-archive-month { margin-bottom: 28px; }
.tq-archive-month-title { font-size: 1rem; font-weight: 800; color: #0f172a; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 2px solid #e2e8f0; }
.tq-archive-days { display: flex; flex-direction: column; gap: 6px; }
.tq-archive-day { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: #f8fafc; border-radius: 8px; text-decoration: none; color: #0f172a; border: 1px solid #e2e8f0; transition: background .15s; }
.tq-archive-day:hover { background: #f0fdf4; border-color: #bbf7d0; }
.tq-archive-day-date  { font-weight: 700; font-size: .9rem; }
.tq-archive-day-hippo { font-size: .82rem; color: #64748b; }

/* ─── Rétrocompat (anciennes classes masquées) ────── */
.tq-date-tabs, .tq-cards-v7, .tq-card-v7, .tq-day-switcher,
.tq-listing-gate, .tq-lgate-btn { display: none !important; }

/* ── Noms de chevaux (em.tq-horse) ──────────────── */
.tq-article-content em.tq-horse,
.tq-prono-unlocked em.tq-horse {
    font-style: italic;
    color: #4b5563;
    font-weight: 600;
    background: #f1f5f9;
    border-radius: 4px;
    padding: 1px 5px;
    white-space: nowrap;
    font-size: .95em;
}

/* ── h4 dans les articles ────────────────────────── */
.tq-article-content h4 {
    font-size: .88rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin: 16px 0 6px;
    padding-left: 10px;
    border-left: 3px solid #004D25;
}
.tq-article-content h4:first-child { margin-top: 0; }

/* ── Espacement h3 dans les articles ─────────────── */
.tq-article-content h3 {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    margin: 24px 0 8px;
}
.tq-article-content h2 {
    font-size: 1.2rem;
    font-weight: 800;
    color: #0f172a;
    margin: 32px 0 12px;
    padding-bottom: 8px;
    border-bottom: 2px solid #e2e8f0;
}
.tq-article-content h2:first-child { margin-top: 0; }
.tq-article-content p {
    margin: 0 0 12px;
    line-height: 1.72;
    color: #374151;
}
.tq-article-content p:last-child { margin-bottom: 0; }

/* ── Blocs "Ma Chance Régulière" / "Mon Outsider Délaissé" ──
   Inspiré du fichier chance_reguliere.png :
   carte claire avec label à gauche, identité cheval à droite
   ─────────────────────────────────────────────────────── */
.tq-base-block {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: stretch;
    border-radius: 12px;
    margin: 32px 0 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,.08), 0 0 0 1px rgba(0,77,37,.12);
}

/* Label horizontal à gauche */
.tq-base-picto {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 18px;
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
    min-width: 110px;
    text-align: center;
}
.tq-base-block--green .tq-base-picto {
    background: #004D25;
    color: #fff;
}
.tq-base-block--outsider .tq-base-picto {
    background: #1e3a5f;
    color: #fff;
}
.tq-base-block--utiliser .tq-base-picto {
    background: #374151;
    color: #fff;
}

/* Zone principale : numéro + nom + détail */
.tq-base-inner {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 16px 20px;
    min-width: 0;
}
.tq-base-block--green .tq-base-inner {
    background: linear-gradient(135deg, #f0fdf4 0%, #fff 100%);
    border-left: 3px solid #004D25;
}
.tq-base-block--outsider .tq-base-inner {
    background: linear-gradient(135deg, #eff6ff 0%, #fff 100%);
    border-left: 3px solid #1e3a5f;
}

/* Ligne identité : N°X NOM */
.tq-base-label {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    line-height: 1.35;
    column-gap: 14px;
}
.tq-base-num {
    font-size: 1.4rem;
    font-weight: 900;
    font-family: monospace;
    line-height: 1;
}
.tq-base-block--green   .tq-base-num { color: #004D25; }
.tq-base-block--outsider .tq-base-num { color: #1e3a5f; }

.tq-base-nom {
    font-size: 1.15rem;
    font-weight: 900;
    font-style: italic;
    letter-spacing: .02em;
    /* Pas de text-transform : on préserve la casse PMU */
}
.tq-base-block--green    .tq-base-nom { color: #004D25; }
.tq-base-block--outsider .tq-base-nom { color: #1e3a5f; }

/* Sous-ligne : cote + musique */
.tq-base-detail {
    display: block;
    font-size: .8rem;
    color: #64748b;
    font-family: monospace;
    letter-spacing: .02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Mobile */
@media (max-width: 600px) {
    .tq-base-block { grid-template-columns: 1fr; }
    .tq-base-picto {
        padding: 10px 12px;
        font-size: .72rem;
        min-width: 80px;
    }
    .tq-base-inner { padding: 12px 14px; }
    .tq-base-num { font-size: 1.2rem; }
    .tq-base-nom { font-size: 1rem; }
    .tq-base-detail { white-space: normal; font-size: .75rem; }
}

/* ── Bloc "Comment utiliser ces bases" ────────────── */
.tq-base-block--utiliser {
    box-shadow: 0 2px 12px rgba(0,0,0,.07), 0 0 0 1px rgba(55,65,81,.10);
}
.tq-base-block--utiliser .tq-base-inner {
    background: linear-gradient(135deg, #f8fafc 0%, #fff 100%);
    border-left: 3px solid #374151;
}
.tq-base-block--utiliser .tq-base-label {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0f172a;
    display: block;
    text-shadow: none;
}
.tq-base-block--utiliser .tq-base-num,
.tq-base-block--utiliser .tq-base-nom { color: #0f172a; font-style: normal; }

/* ── Gate Cheval Méthode pour membres non abonnés ─── */
.tq-jsp-member-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    padding: 40px 32px 36px;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,.05),
                0 10px 32px rgba(0,0,0,.09),
                0 20px 60px rgba(0,0,0,.05);
    margin: 24px 0;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}
.tq-jsp-gate-iris-wrap {
    position: relative;
    width: 100px;
    height: 110px;
    display: inline-block;
}
.tq-jsp-gate-iris {
    width: 100px !important;
    height: 110px !important;
    border-radius: 16px;
    object-fit: cover;
    object-position: center top;
    display: block !important;
}
.tq-jsp-gate-pad {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: #D97706;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,.2);
}
.tq-jsp-gate-title {
    font-size: 1rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    line-height: 1.4;
}
.tq-jsp-gate-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #D97706;
    color: #fff !important;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 800;
    text-decoration: none !important;
    transition: all .18s;
    box-shadow: 0 4px 14px rgba(217,119,6,.3);
}
.tq-jsp-gate-btn:hover {
    background: #b45309;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(217,119,6,.4);
}

/* ── Notice "pronostics à 7h" ── */
.tq-prono-notice {
    font-size: .82rem;
    color: #64748b;
    font-style: italic;
    margin: -4px 0 16px;
    padding: 8px 14px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 3px solid #e2e8f0;
}
