/**
 * Styles Frontend - Rank Press
 * Design professionnel et moderne pour les articles
 */

:root {
    /* Colors */
    --po-primary: #296cd1;
    --po-primary-dark: #1d5bb8;
    --po-secondary: #100f5b;
    --po-accent: #3D9BFF;
    --po-link-blue: #007bff;
    --po-gradient: radial-gradient(circle at bottom left, #296cd1 17%, #100f5b 81%);
    --po-text-dark: #000219;
    --po-text-body: #000219;
    --po-text-light: #4a5568;

    /* Typography - Article body text (shared by .po-main-content p and .rp-cta-intro) */
    --po-body-font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    --po-body-font-size: 18px;
    --po-body-font-weight: 500;
    --po-body-line-height: 1.6;
    --po-body-letter-spacing: 0.7px;
}

/* ===== FORCER PLEINE LARGEUR SUR MOBILE ===== */
@media (max-width: 767px) {
    body.po-rankpress-article #page-container,
    body.po-rankpress-article #main-content,
    body.po-rankpress-article .container,
    body.po-rankpress-article #et-main-area,
    body.po-rankpress-article .et_pb_section {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.po-rankpress-article .entry-content,
    body.po-rankpress-article article,
    body.po-rankpress-article .post {
        width: 100% !important;
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    body.po-rankpress-article .po-toc {
        margin-top: 0px !important;
    }
}

/* ===== RESET ENTRY-CONTENT ===== */
body.po-rankpress-article .entry-content {
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    max-width: 100% !important;
}

/* ===== WRAPPER PRINCIPAL (MOBILE PAR DÉFAUT) ===== */
.po-rankpress-wrapper {
    max-width: 1080px !important;
    margin: 0 auto !important;
    padding: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ===== SIDEBAR ===== */
/* Mobile: sidebar invisible mais TOC rendu (position: fixed) */
/* Desktop: sidebar visible dans le grid */
.po-sidebar {
    display: block;
    position: static;
    width: 0;
    height: 0;
    overflow: visible;
}

/* ===== BOX AUTEUR ===== */
.po-author-box {
    margin-bottom: 20px;
}

/* ===== CONTENU PRINCIPAL ===== */
.po-main-content {
    width: 100%;
}

/* v5.0: Limiter la largeur quand pas de TOC (desktop) */
@media (min-width: 1025px) {
    .po-main-content.po-no-toc {
        max-width: 800px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* ===== TITRE H1 ===== */
body.po-rankpress-article .entry-title.main_title,
body.po-rankpress-article h1 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    line-height: 1.1em !important;
    text-align: center !important;
    margin: 0 auto !important;
    max-width: 1080px !important;
    padding: 5px !important;
    margin-top: -15px !important;
}

@media (max-width: 768px) {
    body.po-rankpress-article .entry-title.main_title,
    body.po-rankpress-article h1 {
        margin-top: -25px !important;
    }
}

/* ===== PARAGRAPHES ===== */
.po-main-content p {
    margin-bottom: 1.5em !important;
    color: var(--po-text-dark) !important;
    /* Typography - uses CSS variables for consistency with .rp-cta-intro */
    font-family: var(--po-body-font-family) !important;
    font-size: var(--po-body-font-size) !important;
    font-weight: var(--po-body-font-weight) !important;
    line-height: var(--po-body-line-height) !important;
    letter-spacing: var(--po-body-letter-spacing) !important;
}

.po-main-content p strong {
    color: var(--po-accent) !important;
    font-weight: 900 !important;
}

/* ===== TABLE DES MATIÈRES ===== */
body.po-rankpress-article .po-toc {
    background: #ffffff;
    border: 1px solid rgba(229, 231, 235, 0.8);
    border-radius: 12px;
    margin: 20px 0;
    overflow: hidden;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05), 0 10px 30px -5px rgba(0,0,0,0.08);
    --po-toc-primary: var(--po-accent, #0f766e); /* Use theme accent color */
}

/* Header - Modern & Compact with adaptive color */
.po-toc-header {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 10px 16px !important;
    background: linear-gradient(135deg, var(--po-toc-primary) 0%, color-mix(in srgb, var(--po-toc-primary) 85%, #000) 100%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--po-toc-primary) 70%, #000) !important;
    cursor: pointer !important;
    user-select: none !important;
    transition: all 0.2s ease !important;
    min-height: 44px !important;
    max-height: 44px !important;
    box-sizing: border-box !important;
}

.po-toc-icon {
    font-size: 16px !important;
    margin-right: 10px !important;
    color: white !important;
    flex-shrink: 0 !important;
}

.po-toc-title {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: white !important;
    flex: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.3 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.po-toc-count {
    font-size: 11px !important;
    color: rgba(255, 255, 255, 0.75) !important;
    font-weight: 500 !important;
    margin-left: 8px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    padding: 3px 8px !important;
    border-radius: 12px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.po-toc-chevron {
    color: white !important;
    transition: transform 0.3s ease !important;
    flex-shrink: 0 !important;
    font-size: 14px !important;
}

.po-toc.expanded .po-toc-chevron {
    transform: rotate(180deg);
}

.po-toc-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.po-toc.expanded .po-toc-list {
    max-height: 1000px;
    padding: 0 0 12px 0 !important;
}

.po-toc-list li {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.po-toc-list li::before {
    content: none !important;
    display: none !important;
}

.po-toc-link {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 10px 20px !important;
    color: var(--po-text-dark) !important;
    text-decoration: none !important;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
    position: relative;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

.po-toc-link:hover {
    background: #f8f9fb;
    color: var(--po-primary) !important;
    padding-left: 24px !important;
}

.po-toc-link.active {
    background: linear-gradient(90deg, #e8f2ff 0%, #f0f7ff 100%);
    color: var(--po-primary) !important;
    font-weight: 600;
    border-left: 3px solid var(--po-primary);
}

.po-toc-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #cbd5e1;
    flex-shrink: 0;
    margin-top: 6px;
    transition: all 0.2s ease;
}

.po-toc-link:hover .po-toc-bullet {
    background: var(--po-primary);
    transform: scale(1.3);
}

.po-toc-link.active .po-toc-bullet {
    background: var(--po-primary);
    width: 8px;
    height: 8px;
    box-shadow: 0 0 0 3px rgba(41, 108, 209, 0.2);
}

.po-toc-text {
    flex: 1;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

.po-toc-progress {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════════════════
   TOC Mobile v2.0 - Drawer Glassmorphism avec Smart Sticky
   - Position fixe en bas avec safe-area iPhone
   - Drawer 65% de l'écran avec scroll
   - Barre de progression horizontale
   - Smart sticky (apparition au scroll vers le haut)
   - Effet glassmorphism sombre (verre dépoli premium)
   ═══════════════════════════════════════════════════════════════════════════ */
@media (max-width: 767px) {
    /* === CONTENEUR PRINCIPAL - FIXED EN BAS === */
    body.po-rankpress-article .po-toc {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 9999 !important;
        margin: 0 !important;
        border-radius: 0 !important;
        border: none !important;
        box-shadow: none !important;
        background: transparent !important;
        overflow: visible !important;
        max-width: 100% !important;
        width: 100% !important;
        /* Safe area iPhone */
        padding-bottom: env(safe-area-inset-bottom) !important;
        /* Smart sticky - caché par défaut */
        transform: translateY(100%) !important;
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* État visible */
    body.po-rankpress-article .po-toc.po-toc-visible {
        transform: translateY(0) !important;
    }

    /* === BARRE DE PROGRESSION DE LECTURE === */
    .po-toc-mobile-progress {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        height: 4px !important;
        width: 0% !important;
        background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%) !important;
        border-radius: 0 !important;
        transition: width 0.1s ease-out !important;
        z-index: 10 !important;
        box-shadow: 0 0 12px rgba(16, 185, 129, 0.7) !important;
    }

    /* === HEADER/BARRE STICKY - GLASSMORPHISM === */
    .po-toc-header {
        position: relative !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 14px 20px 18px 20px !important;
        /* Glassmorphism bleu foncé */
        background: rgb(12 38 100 / 54%) !important;
        backdrop-filter: blur(8px) !important;
        -webkit-backdrop-filter: blur(8px) !important;
        border: 1px solid rgba(255, 255, 255, 0.1) !important;
        border-bottom: none !important;
        border-radius: 16px 16px 0 0 !important;
        cursor: pointer !important;
        user-select: none !important;
        transition: all 0.3s ease !important;
        min-height: 52px !important;
        box-sizing: border-box !important;
        box-shadow:
            0 -8px 32px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    }

    .po-toc-header:active {
        background: rgb(12 38 100 / 70%) !important;
    }

    .po-toc-icon {
        color: #e2e8f0 !important;
        font-size: 18px !important;
        margin-right: 10px !important;
        flex-shrink: 0 !important;
    }

    .po-toc-title {
        color: #f1f5f9 !important;
        font-size: 0.9rem !important;
        font-weight: 600 !important;
        text-transform: uppercase !important;
        letter-spacing: 1px !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        flex: 1 !important;
    }

    .po-toc-count {
        color: rgba(226, 232, 240, 0.9) !important;
        font-size: 0.7rem !important;
        font-weight: 500 !important;
        background: rgba(255, 255, 255, 0.1) !important;
        padding: 4px 10px !important;
        border-radius: 20px !important;
        margin-right: 8px !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
    }

    .po-toc-chevron {
        color: #94a3b8 !important;
        transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
        flex-shrink: 0 !important;
        font-size: 16px !important;
        /* Rotation inversée pour drawer (flèche vers le haut = fermé) */
        transform: rotate(180deg) !important;
    }

    .po-toc.expanded .po-toc-chevron {
        transform: rotate(0deg) !important;
    }

    /* === DRAWER - LISTE DES SECTIONS === */
    .po-toc-list {
        list-style: none !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Drawer fermé par défaut */
        max-height: 0 !important;
        overflow: hidden !important;
        transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
        /* Glassmorphism pour le drawer */
        background: rgba(255, 255, 255, 0.92) !important;
        backdrop-filter: blur(25px) saturate(200%) !important;
        -webkit-backdrop-filter: blur(25px) saturate(200%) !important;
        border: 1px solid rgba(255, 255, 255, 0.3) !important;
        border-top: none !important;
        border-bottom: none !important;
    }

    /* Drawer ouvert - 65% de la hauteur viewport */
    .po-toc.expanded .po-toc-list {
        max-height: 65vh !important;
        overflow-y: auto !important;
        padding: 12px 0 20px 0 !important;
        /* Scrollbar custom */
        scrollbar-width: thin !important;
        scrollbar-color: rgba(16, 185, 129, 0.4) transparent !important;
    }

    /* Scrollbar Webkit */
    .po-toc.expanded .po-toc-list::-webkit-scrollbar {
        width: 4px !important;
    }

    .po-toc.expanded .po-toc-list::-webkit-scrollbar-track {
        background: transparent !important;
    }

    .po-toc.expanded .po-toc-list::-webkit-scrollbar-thumb {
        background: rgba(16, 185, 129, 0.4) !important;
        border-radius: 4px !important;
    }

    /* === ITEMS DE LA LISTE === */
    .po-toc-list li {
        margin: 0 !important;
        padding: 0 !important;
        list-style: none !important;
    }

    .po-toc-list li::before {
        content: none !important;
        display: none !important;
    }

    .po-toc-link {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
        padding: 14px 20px !important;
        color: #1e293b !important;
        text-decoration: none !important;
        font-size: 0.92rem !important;
        font-weight: 500 !important;
        line-height: 1.4 !important;
        transition: all 0.2s ease !important;
        position: relative !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
        border-left: 3px solid transparent !important;
    }

    .po-toc-link:hover,
    .po-toc-link:active {
        background: rgba(16, 185, 129, 0.08) !important;
        color: #047857 !important;
        padding-left: 24px !important;
    }

    /* Section active */
    .po-toc-link.active {
        background: linear-gradient(90deg, rgba(16, 185, 129, 0.12) 0%, rgba(16, 185, 129, 0.04) 100%) !important;
        color: #047857 !important;
        font-weight: 600 !important;
        border-left-color: #10b981 !important;
    }

    .po-toc-bullet {
        width: 8px !important;
        height: 8px !important;
        border-radius: 50% !important;
        background: #cbd5e1 !important;
        flex-shrink: 0 !important;
        transition: all 0.2s ease !important;
    }

    .po-toc-link:hover .po-toc-bullet,
    .po-toc-link:active .po-toc-bullet {
        background: #10b981 !important;
        transform: scale(1.2) !important;
    }

    .po-toc-link.active .po-toc-bullet {
        background: #10b981 !important;
        width: 10px !important;
        height: 10px !important;
        box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25) !important;
    }

    .po-toc-text {
        flex: 1 !important;
        font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    }

    /* Barre de progression par section (cachée sur mobile - on utilise la globale) */
    .po-toc-progress {
        display: none !important;
    }

    /* === OVERLAY FOND SOMBRE QUAND DRAWER OUVERT === */
    .po-toc-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        background: rgba(0, 0, 0, 0.4) !important;
        backdrop-filter: blur(2px) !important;
        -webkit-backdrop-filter: blur(2px) !important;
        z-index: 9998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.3s ease, visibility 0.3s ease !important;
    }

    .po-toc-overlay.active {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* === SAFE AREA BOTTOM PADDING ADDITIONNEL === */
    .po-toc.expanded .po-toc-list::after {
        content: '' !important;
        display: block !important;
        height: env(safe-area-inset-bottom) !important;
    }
}

/* ===== TITRES H2 ===== */
.po-main-content h2 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 900 !important;
    letter-spacing: 1px !important;
    line-height: 1.3em !important;
    text-align: left !important;
    margin: 0 !important;
}

/* ===== TITRES H3 ===== */
.po-main-content h3 {
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 800 !important;
    text-align: left !important;
    margin: 10px 0 0px 0 !important;
    line-height: 1.4 !important;
}

/* ===== LIENS ===== */
.po-main-content a:not(.po-inline-btn):not(.et_pb_button):not(.po-faq-question) {
    color: var(--po-primary);
    text-decoration: underline;
    font-weight: 500;
    transition: color 0.2s ease;
}

.po-main-content a:not(.po-inline-btn):not(.et_pb_button):not(.po-faq-question):hover {
    color: var(--po-primary-dark);
}

/* ===== LISTES UL ===== */
.po-main-content ul:not(.po-toc-list):not(.tldr-grid) {
    margin-top: -9px !important;
    margin-bottom: 9px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    list-style: none !important;
}

.po-main-content ul:not(.po-toc-list):not(.tldr-grid) li:not(.info-card) {
    position: relative !important;
    margin-bottom: 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 35px !important;
    padding-right: 0 !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    letter-spacing: 0.7px !important;
    font-size: 18px !important;
    color: var(--po-text-dark) !important;
    list-style: none !important;
    list-style-type: none !important;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
}

.po-main-content ul:not(.po-toc-list):not(.tldr-grid) li:not(.info-card)::before {
    content: "\f058";
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    left: 0;
    top: 2px;
    color: #007bff !important;
    font-size: 16px;
    display: inline-block;
}

/* ===== LISTES OL ===== */
.po-main-content ol {
    margin-top: -9px !important;
    margin-bottom: 9px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    list-style: none !important;
    counter-reset: ol-counter;
}

.po-main-content ol li {
    position: relative !important;
    margin-bottom: 6px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    padding-left: 35px !important;
    padding-right: 0 !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    letter-spacing: 0.7px !important;
    font-size: 18px !important;
    color: var(--po-text-dark) !important;
    list-style: none !important;
    list-style-type: none !important;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif !important;
    counter-increment: ol-counter;
}

.po-main-content ol li::before {
    content: counter(ol-counter);
    position: absolute;
    left: 0;
    top: 2px;
    width: 20px !important;
    height: 20px !important;
    background-color: #fdd544;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* ===== TABLEAUX ===== */
.po-table-wrapper {
    width: 100%;
    margin: 35px 0;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    overflow: hidden;
}

.po-table-responsive {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

body.po-rankpress-article .po-table-responsive table {
    width: 100%;
    min-width: 600px;
    margin: 0;
    border-collapse: collapse;
    font-family: 'Segoe UI', sans-serif;
    font-size: 16px;
    color: #333;
    line-height: 1.2;
    box-shadow: none;
    border-radius: 0;
}

/* Table Header - Même couleur que TOC/TLDR/MindMap/FAQ (--po-accent = H3) */
body.po-rankpress-article .po-table-responsive thead {
    background: linear-gradient(135deg,
        var(--po-accent, #0f766e) 0%,
        color-mix(in srgb, var(--po-accent, #0f766e) 85%, #000) 100%) !important;
    border-bottom: 2px solid color-mix(in srgb, var(--po-accent, #0f766e) 70%, #000) !important;
}

body.po-rankpress-article .po-table-responsive thead th {
    padding: 12px 14px !important;
    text-align: left !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: transparent !important;
    background-color: transparent !important;
    background-image: none !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    line-height: 1.4 !important;
    border: none !important;
    border-left: none !important;
    border-right: none !important;
    border-top: none !important;
    border-bottom: none !important;
    box-sizing: border-box !important;
}

/* Table first column - couleur du thème (H3) */
body.po-rankpress-article .po-table-responsive tbody td:first-child {
    font-weight: 600 !important;
    color: var(--po-accent, #0f766e) !important;
}

/* Table hover row */
body.po-rankpress-article .po-table-responsive tbody tr:hover {
    background: color-mix(in srgb, var(--po-accent, #0f766e) 8%, transparent) !important;
    transform: translateY(-2px);
    transition: all 0.2s ease;
}

body.po-rankpress-article .po-table-responsive tbody td {
    padding: 12px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 16px;
    line-height: 1.2;
}

body.po-rankpress-article .po-table-responsive tbody tr:nth-child(even) {
    background: #f9f9f9;
}

/* Bouton "Afficher le reste" - masqué, tableau visible par défaut */
.po-show-more-btn {
    display: none !important;
}

/* Indicateur de scroll horizontal sur mobile */
.po-table-scroll-indicator {
    display: inline-block;
    margin-top: 8px;
    margin-left: auto;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 500;
    pointer-events: none;
}

.po-table-scroll-indicator i {
    margin-right: 6px;
}

@media (min-width: 768px) {
    .po-table-scroll-indicator {
        display: none;
    }
}

/* ===== BLOCKQUOTES ===== */
.po-main-content blockquote {
    margin: 28px 0;
    padding: 20px 16px 0px 20px;
    background: linear-gradient(135deg, #fffbf0 0%, #ffffff 100%);
    border: 1px solid #fbbf24;
    border-left: 5px solid #fbbf24 !important;
    border-radius: 10px;
    position: relative;
    font-style: italic;
    overflow: visible;
}

.po-main-content blockquote::before {
    font-family: 'Font Awesome 6 Free', 'Font Awesome 5 Free', 'FontAwesome' !important;
    content: '\f075' !important;
    font-weight: 900 !important;
    position: absolute !important;
    right: -6px !important;
    top: -14px !important;
    left: auto !important;
    font-size: 16px !important;
    line-height: 33px !important;
    text-align: center !important;
    color: #fff !important;
    font-style: normal !important;
    background: #fbbf24 !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    border: 3px solid #fff !important;
}

.po-main-content blockquote p {
    margin: 0;
    color: var(--po-text-dark);
    font-size: 16px;
    line-height: 1.6;
    font-weight: 600;
    letter-spacing: 0.7px;
}

.po-main-content blockquote strong {
    color: #d97706 !important;
    font-weight: 700;
}

/* ===== IMAGES ===== */
.po-main-content img {
    max-width: 100%;
    height: auto;
    margin-top: 0px !important;
    display: block;
}

/* ===== ACCORDÉON FAQ ===== */
body.po-rankpress-article .po-faq-section {
    margin: 50px 0 40px 0 !important;
    padding: 0 !important;
}

/* Header FAQ - Style moderne comme TLDR/TOC/MindMap (couleur H3) */
.po-faq-header {
    background: linear-gradient(135deg, var(--po-accent, #0f766e) 0%, color-mix(in srgb, var(--po-accent, #0f766e) 85%, #000) 100%) !important;
    padding: 10px 16px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    margin: 0 0 30px 0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.po-faq-header h2,
.po-faq-header h3 {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    background: none !important;
    background-image: none !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: #ffffff !important;
    text-align: center !important;
    line-height: 1.4 !important;
}

.po-faq-accordion {
    max-width: 100% !important;
    margin: 0 !important;
}

.po-faq-item {
    background: white !important;
    border: 2px solid #e8eef5 !important;
    border-radius: 12px !important;
    margin-bottom: 16px !important;
    overflow: hidden !important;
    transition: all 0.3s ease !important;
}

.po-faq-item:hover {
    border-color: #d1dce8 !important;
}

.po-faq-question {
    width: 100% !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 20px 24px !important;
    background: white !important;
    border: none !important;
    cursor: pointer !important;
    font-family: 'Montserrat', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: #100f5b !important;
    text-align: left !important;
    white-space: normal !important;
    line-height: 1.4 !important;
    transition: all 0.3s ease !important;
}

.po-faq-question span {
    min-width: 0 !important;
    overflow-wrap: break-word !important;
    word-break: break-word !important;
}

.po-faq-question:hover {
    background: #f8f9fb !important;
}

.po-faq-icon {
    flex-shrink: 0 !important;
    margin-left: 16px !important;
    color: #100f5b !important;
    transition: transform 0.3s ease !important;
}

.po-faq-item.active .po-faq-icon {
    transform: rotate(180deg) !important;
}

.po-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.po-faq-answer-content {
    padding: 0 24px 24px 24px !important;
    color: var(--po-text-dark) !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    letter-spacing: 0.7px !important;
}

.po-faq-answer-content p {
    margin-bottom: 14px !important;
    font-size: 16px !important;
    line-height: 1.6 !important;
    font-weight: 500 !important;
    letter-spacing: 0.7px !important;
}

.po-faq-answer-content p:last-child {
    margin-bottom: 0 !important;
}

/* Contenu riche dans les réponses FAQ */
.po-faq-answer-content strong {
    color: var(--po-primary) !important;
    font-weight: 700 !important;
}

.po-faq-answer-content ul,
.po-faq-answer-content ol {
    margin: 12px 0 !important;
    padding-left: 0 !important;
    list-style: none !important;
}

.po-faq-answer-content ul li,
.po-faq-answer-content ol li {
    position: relative !important;
    padding-left: 28px !important;
    margin-bottom: 8px !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: var(--po-text-dark) !important;
}

.po-faq-answer-content ul li::before {
    content: "\f00c" !important;
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: var(--po-primary) !important;
    font-size: 12px !important;
}

.po-faq-answer-content ol {
    counter-reset: faq-counter !important;
}

.po-faq-answer-content ol li {
    counter-increment: faq-counter !important;
}

.po-faq-answer-content ol li::before {
    content: counter(faq-counter) !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    width: 18px !important;
    height: 18px !important;
    background: var(--po-primary) !important;
    color: white !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* ===== BARRE DE PROGRESSION (desktop uniquement) ===== */
.po-reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--po-gradient);
    z-index: 9999;
    transition: width 0.1s ease;
    box-shadow: 0 1px 4px rgba(41, 108, 209, 0.3);
}

/* Sur mobile, la barre est dans le TOC, pas en haut de page */
@media (max-width: 767px) {
    .po-reading-progress {
        display: none !important;
    }
}

/* ===== DESKTOP - LAYOUT CSS GRID + STICKY ===== */
@media (min-width: 768px) {
    .po-main-content h3 {
        margin: 35px 0 14px 0;
    }

    .po-main-content blockquote {
        padding: 20px 16px 0px 20px;
        margin: 32px 0;
    }

    /* Section FAQ desktop */
    body.po-rankpress-article .po-faq-section {
        margin: 60px 0 50px 0 !important;
    }

    body.po-rankpress-article .po-faq-section h2,
    body.po-rankpress-article .po-faq-section > h3:first-child,
    body.po-rankpress-article .po-faq-section > h3[data-faq="true"] {
        margin-bottom: 45px !important;
    }

    .po-faq-question {
        padding: 24px 28px;
        font-size: 18px;
    }

    .po-faq-answer-content {
        padding: 0 28px 28px 28px;
        font-size: 18px;
        font-weight: 600;
        letter-spacing: 0.7px;
    }

    .po-faq-answer-content p {
        font-size: 18px;
        font-weight: 500;
        letter-spacing: 0.7px;
    }

    .po-faq-answer-content ul li,
    .po-faq-answer-content ol li {
        font-size: 16px !important;
        padding-left: 32px !important;
    }

    .po-faq-answer-content ul li::before {
        font-size: 14px !important;
    }

    .po-faq-answer-content ol li::before {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px !important;
    }

    /* Reset complet des listes sur desktop (fix GeneratePress, Astra, etc.) */
    .po-main-content ul:not(.po-toc-list):not(.tldr-grid) {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .po-main-content ul:not(.po-toc-list):not(.tldr-grid) li:not(.info-card) {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 38px !important;
        padding-right: 0 !important;
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .po-main-content ul:not(.po-toc-list):not(.tldr-grid) li:not(.info-card)::before {
        font-size: 18px;
        top: 3px;
        color: #007bff !important;
    }

    /* OL desktop adjustments */
    .po-main-content ol {
        margin-left: 0 !important;
        padding-left: 0 !important;
    }

    .po-main-content ol li {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding-left: 38px !important;
        padding-right: 0 !important;
        font-size: 18px;
        font-weight: 500;
        margin-bottom: 8px;
    }

    .po-main-content ol li::before {
        width: 20px !important;
        height: 20px !important;
        font-size: 12px;
        top: 2px;
    }

    /* === LAYOUT CSS GRID 2 COLONNES === */
    .po-rankpress-wrapper {
        display: grid !important;
        grid-template-columns: 280px 1fr !important;
        gap: 40px !important;
        max-width: 1280px !important;
        padding: 20px !important;
    }

    /* SIDEBAR - Dimensions normales sur desktop */
    .po-sidebar {
        display: block !important;
        width: auto !important;
        height: auto !important;
        overflow: visible !important;
    }

    /* Box auteur - STATIQUE */
    .po-author-box {
        margin-bottom: 20px !important;
    }

    /* CONTAINER TOC - STICKY */
    .po-toc-container {
        position: sticky !important;
        position: -webkit-sticky !important;
        top: 100px !important;
        align-self: start !important;
    }

    /* TOC - STYLES VISUELS */
    body.po-rankpress-article .po-toc {
        margin: 0 !important;
        border: 1px solid #e1e8ed !important;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        max-height: calc(100vh - 140px) !important;
        overflow-y: auto !important;
        scrollbar-width: thin;
        scrollbar-color: #94a3b8 transparent;
    }

    body.po-rankpress-article .po-toc::-webkit-scrollbar {
        width: 6px;
    }

    body.po-rankpress-article .po-toc::-webkit-scrollbar-track {
        background: transparent;
        border-radius: 3px;
    }

    body.po-rankpress-article .po-toc::-webkit-scrollbar-thumb {
        background: #cbd5e1;
        border-radius: 3px;
        transition: background 0.2s ease;
    }

    body.po-rankpress-article .po-toc::-webkit-scrollbar-thumb:hover {
        background: #94a3b8;
    }

    .po-toc-header {
        cursor: pointer !important;
        padding: 20px !important;
        border-bottom: none !important;
    }

    .po-toc-chevron {
        color: white !important;
        transition: transform 0.3s ease !important;
    }

    .po-toc-count {
        font-size: 13px;
        color: #64748b;
        font-weight: 500;
        margin-left: 8px;
    }

    .po-toc-title {
        font-size: 17px !important;
    }

    .po-toc.expanded .po-toc-list {
        max-height: calc(100vh - 220px) !important;
        overflow-y: auto !important;
        padding: 8px 0 !important;
    }

    .po-toc-link {
        font-size: 14px !important;
        padding: 12px 20px !important;
    }

    .po-toc-link:hover {
        padding-left: 24px !important;
    }

    .po-toc-progress {
        display: block !important;
        position: absolute;
        left: 0;
        bottom: 0;
        height: 2px;
        background: var(--po-primary);
        width: 0%;
        transition: width 0.1s ease;
        opacity: 0;
    }

    .po-toc-link.active .po-toc-progress {
        opacity: 1;
    }

    .po-main-content {
        min-width: 0 !important;
    }
}

/* ===== XL SCREENS ===== */
@media (min-width: 1400px) {
    .po-rankpress-wrapper {
        grid-template-columns: 320px 1fr !important;
        gap: 60px !important;
    }
}

/* ===== BOX RÉSUMÉ "L'ESSENTIEL EN BREF" (TLDR) - v3.1.0 ULTRA-MODERNE ===== */
.rankpress-tldr-box {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.03) 0%, rgba(255, 255, 255, 0.97) 100%) !important;
    padding: 0 !important;
    margin: 24px 0 !important;
    border-radius: 12px !important;
    border: 1.5px solid rgba(59, 130, 246, 0.15) !important;
    box-shadow: 0 4px 20px rgba(59, 130, 246, 0.08), 0 1px 3px rgba(0, 0, 0, 0.04) !important;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

.rankpress-tldr-box:hover {
    box-shadow: 0 6px 28px rgba(59, 130, 246, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06) !important;
    transform: translateY(-1px) !important;
}

/* Barre supérieure gradient moderne */
.rankpress-tldr-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--po-primary, #3b82f6), var(--po-accent, #007bff)) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.3) !important;
}

/* Container interne avec padding */
.rankpress-tldr-content {
    padding: 18px 22px 20px 22px !important;
}

/* Header avec icône + titre - MODERNE */
.rankpress-tldr-title {
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    color: var(--po-primary, #3b82f6) !important;
    font-size: 12px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.rankpress-tldr-title span {
    line-height: 1 !important;
}

/* Icône bookmark moderne - MÊME COULEUR QUE LE TITRE */
.rankpress-tldr-icon {
    font-size: 14px !important;
    line-height: 1 !important;
    color: var(--po-primary, #3b82f6) !important;
    flex-shrink: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Container texte */
.rankpress-tldr-text {
    margin: 0 !important;
    line-height: 1.65 !important;
    color: #1e293b !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

/* Premier paragraphe (phrase direct answer) - ACCROCHEUR */
.rankpress-tldr-text > p:first-child {
    margin: 0 0 12px 0 !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    color: #0f172a !important;
    line-height: 1.6 !important;
}

/* Liste à puces avec Font Awesome - MODERNE */
.rankpress-tldr-box ul {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.rankpress-tldr-box ul li {
    position: relative !important;
    padding-left: 26px !important;
    margin-bottom: 9px !important;
    line-height: 1.65 !important;
    font-size: 14px !important;
    color: #334155 !important;
    font-weight: 500 !important;
    list-style: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif !important;
}

.rankpress-tldr-box ul li:last-child {
    margin-bottom: 0 !important;
}

/* Icône check moderne avec couleur thème */
.rankpress-tldr-box ul li::before {
    content: "\f00c" !important;
    font-family: "Font Awesome 7 Free", "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    position: absolute !important;
    left: 0 !important;
    top: 2px !important;
    color: var(--po-accent, #007bff) !important;
    font-size: 13px !important;
    opacity: 0.85 !important;
}

/* Strong dans les bullets - COULEUR THÈME */
.rankpress-tldr-box ul li strong {
    color: var(--po-accent, #007bff) !important;
    font-weight: 700 !important;
}

/* Variantes de couleur */
.rankpress-tldr-box.tldr-green {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    border-color: #bbf7d0 !important;
}

.rankpress-tldr-box.tldr-green::before {
    background: linear-gradient(90deg, #10b981, #059669);
}

.rankpress-tldr-box.tldr-green .rankpress-tldr-title {
    color: #047857 !important;
}

.rankpress-tldr-box.tldr-green .rankpress-tldr-icon,
.rankpress-tldr-box.tldr-green ul li::before {
    color: #10b981 !important;
}

.rankpress-tldr-box.tldr-green ul li strong {
    color: #047857 !important;
}

.rankpress-tldr-box.tldr-orange {
    background: linear-gradient(135deg, #fff7ed 0%, #ffffff 100%) !important;
    border-color: #fed7aa !important;
}

.rankpress-tldr-box.tldr-orange::before {
    background: linear-gradient(90deg, #f97316, #ea580c);
}

.rankpress-tldr-box.tldr-orange .rankpress-tldr-title {
    color: #c2410c !important;
}

.rankpress-tldr-box.tldr-orange .rankpress-tldr-icon,
.rankpress-tldr-box.tldr-orange ul li::before {
    color: #f97316 !important;
}

.rankpress-tldr-box.tldr-orange ul li strong {
    color: #c2410c !important;
}

.rankpress-tldr-box.tldr-purple {
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%) !important;
    border-color: #e9d5ff !important;
}

.rankpress-tldr-box.tldr-purple::before {
    background: linear-gradient(90deg, #a855f7, #9333ea);
}

.rankpress-tldr-box.tldr-purple .rankpress-tldr-title {
    color: #7e22ce !important;
}

.rankpress-tldr-box.tldr-purple .rankpress-tldr-icon,
.rankpress-tldr-box.tldr-purple ul li::before {
    color: #a855f7 !important;
}

.rankpress-tldr-box.tldr-purple ul li strong {
    color: #7e22ce !important;
}

/* Empêcher le sommaire d'apparaître dans la box */
.rankpress-tldr-box .po-toc {
    display: none !important;
}

/* Mobile: Ultra-compact et responsive */
@media (max-width: 767px) {
    .rankpress-tldr-box {
        margin: 18px 0 !important;
        border-radius: 10px !important;
        border-width: 1.5px !important;
    }

    .rankpress-tldr-content {
        padding: 14px 16px 16px 16px !important;
    }

    .rankpress-tldr-title {
        font-size: 11px !important;
        margin-bottom: 10px !important;
        gap: 6px !important;
        letter-spacing: 1px !important;
    }

    .rankpress-tldr-icon {
        font-size: 16px !important;
    }

    .rankpress-tldr-text {
        font-size: 13px !important;
        margin-bottom: 10px !important;
    }

    .rankpress-tldr-box ul li {
        padding-left: 22px !important;
        margin-bottom: 8px !important;
        font-size: 12px !important;
    }

    .rankpress-tldr-box ul li::before {
        font-size: 11px !important;
    }

    /* Couleurs thème sur mobile aussi */
    .rankpress-tldr-box ul li strong {
        color: var(--po-accent, #007bff) !important;
        font-weight: 700 !important;
    }

    .rankpress-tldr-title {
        color: var(--po-primary, #3b82f6) !important;
    }

    .rankpress-tldr-icon {
        color: var(--po-primary, #3b82f6) !important;
    }
}

/* Desktop: Design professionnel ultra-moderne */
@media (min-width: 768px) {
    .rankpress-tldr-box {
        margin: 32px 0 !important;
        border-radius: 14px !important;
        border-width: 2px !important;
    }

    .rankpress-tldr-content {
        padding: 22px 28px 24px 28px !important;
    }

    .rankpress-tldr-title {
        font-size: 13px !important;
        margin-bottom: 16px !important;
        gap: 9px !important;
        letter-spacing: 1.4px !important;
    }

    .rankpress-tldr-icon {
        font-size: 15px !important;
    }

    .rankpress-tldr-text > p:first-child {
        font-size: 16px !important;
        margin-bottom: 14px !important;
        line-height: 1.7 !important;
    }

    .rankpress-tldr-box ul li {
        padding-left: 28px !important;
        margin-bottom: 10px !important;
        font-size: 15px !important;
        line-height: 1.7 !important;
    }

    .rankpress-tldr-box ul li::before {
        font-size: 14px !important;
        top: 3px !important;
    }

    .rankpress-tldr-box ul li strong {
        font-weight: 700 !important;
        color: var(--po-accent, #007bff) !important;
    }
}

/* ✅ COMPATIBILITÉ : Support ancienne structure HTML (span autour de l'icône) */
.rankpress-tldr-title span.rankpress-tldr-icon {
    display: inline-flex !important;
    align-items: center !important;
}

.rankpress-tldr-title span.rankpress-tldr-icon i {
    font-size: 14px !important;
    color: var(--po-primary, #3b82f6) !important;
}

/* S'assurer que la box ne se confond pas avec le sommaire */
.rankpress-tldr-box + .po-toc,
.po-toc + .rankpress-tldr-box {
    margin-top: 30px !important;
}

@media (max-width: 767px) {
    .rankpress-tldr-box + .po-toc,
    .po-toc + .rankpress-tldr-box {
        margin-top: 20px !important;
    }
}

/* ===== TL;DR V4 - NOUVELLE VERSION AVEC CARTES ===== */
/* @since 4.1.0 - Template dynamique optimisé SEO/IA/Accessibilité */

/* --- CADRE PRINCIPAL --- */
.tldr-container {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.08), 0 5px 10px -5px rgba(0, 0, 0, 0.02);
    max-width: 100%;
    width: 100%;
    overflow: hidden;
    border: 1px solid rgba(229, 231, 235, 0.8);
    margin: 24px 0;
    position: relative;
}

/* ═══════════════════════════════════════════════════════════════════
   v5.7.0: TLDR AVEC IMAGE À LA UNE EN ARRIÈRE-PLAN
   - Image en position absolute avec blur
   - Overlay gradient de marque (bleu foncé)
   - Texte blanc pour contraste optimal
   - Conserve la balise <img> pour SEO/Google Discover
   ═══════════════════════════════════════════════════════════════════ */

/* Container avec image de fond */
.tldr-container.tldr-with-background {
    background: #000000b0;
    border: none;
}

/* Wrapper pour l'image + overlay (en arrière-plan) */
.tldr-background-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
    border-radius: 12px;
    overflow: hidden;
}

/* Image à la une en background - visible, sans blur */
.tldr-background-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay avec blur */
.tldr-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgb(0 0 0 / 39%), rgb(15 30 49 / 63%));
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    z-index: 1;
}

/* === STYLES TEXTE BLANC POUR VERSION AVEC BACKGROUND === */

/* Header transparent - sélecteur spécifique pour éviter conflit CSS */
.tldr-container.tldr-with-background .tldr-header {
    background: #00000000 !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative;
    z-index: 2;
}

/* Intro texte blanc - bien visible */
.tldr-container.tldr-with-background .tldr-intro {
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    position: relative;
    z-index: 2;
}

/* Cartes avec fond semi-transparent pour lisibilité */
.tldr-with-background .tldr-grid {
    position: relative;
    z-index: 2;
}

.tldr-with-background .info-card {
    background: #0101171a !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 15px rgb(0 0 0 / 72%);
}

.tldr-with-background .info-card:hover {
    background: #01011730 !important;
    border-color: rgba(255, 255, 255, 0.35) !important;
    box-shadow: 0 10px 30px -5px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

/* Titres et contenus des cartes en blanc */
.tldr-container.tldr-with-background .card-title {
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.tldr-with-background .card-content {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.tldr-with-background .card-content ul,
.tldr-with-background .card-content ol {
    color: rgba(255, 255, 255, 0.9) !important;
}

.tldr-with-background .card-content li {
    color: rgba(255, 255, 255, 0.9) !important;
}

/* Icônes des cartes - fond semi-transparent */
.tldr-with-background .card-icon {
    background: rgba(255, 255, 255, 0.2) !important;
    color: #ffffff !important;
}

.tldr-with-background .card-icon.icon-success {
    background: rgba(34, 197, 94, 0.25) !important;
    color: #86efac !important;
}

.tldr-with-background .card-icon.icon-warning {
    background: rgba(251, 191, 36, 0.25) !important;
    color: #fde047 !important;
}

.tldr-with-background .card-icon i {
    color: inherit !important;
}

/* Footer avec fond glassmorphism */
.tldr-with-background .tldr-footer {
    background: rgba(255, 255, 255, 0.1) !important;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.15) !important;
    position: relative;
    z-index: 2;
}

.tldr-with-background .footer-label {
    color: rgba(255, 255, 255, 0.7) !important;
}

.tldr-with-background .footer-value {
    color: #ffffff !important;
}

.tldr-with-background .footer-value .separator {
    color: rgba(255, 255, 255, 0.4) !important;
}

.tldr-with-background .footer-tag {
    color: #ffffff !important;
}

.tldr-with-background .footer-tag i {
    color: #86efac !important;
}

/* CTA bouton - style inversé pour contraste */
.tldr-with-background .action-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.tldr-with-background .action-btn:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.5) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tldr-with-background .action-btn.filled {
    background: #ffffff !important;
    color: #1e40af !important;
    border-color: #ffffff !important;
}

.tldr-with-background .action-btn.filled:hover {
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1e3a8a !important;
}

/* Highlight tags adaptés au fond sombre */
.tldr-with-background .highlight {
    background: rgba(59, 130, 246, 0.3) !important;
    color: #93c5fd !important;
}

.tldr-with-background .tag-success {
    background: rgba(34, 197, 94, 0.3) !important;
    color: #86efac !important;
}

.tldr-with-background .tag-danger {
    background: rgba(239, 68, 68, 0.3) !important;
    color: #fca5a5 !important;
}

.tldr-with-background .tag-warning {
    background: rgba(251, 191, 36, 0.3) !important;
    color: #fde047 !important;
}

/* === RESPONSIVE - TLDR avec background === */

/* Tablette */
@media (max-width: 768px) {
    .tldr-background-wrapper {
        border-radius: 12px;
    }

    .tldr-with-background .info-card {
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }
}

/* Mobile */
@media (max-width: 480px) {
    /* Hauteur min pour que l'image couvre bien le cadre TLDR */
    .tldr-container.tldr-with-background {
        min-height: 350px;
    }

    /* Override .po-main-content img pour l'image background TLDR */
    .po-main-content .tldr-container .tldr-background-image,
    .tldr-background-image {
        height: 100% !important;
        min-height: 350px !important;
        width: 100% !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        margin: 0 !important;
    }

    .tldr-background-wrapper {
        border-radius: 10px;
    }

    .tldr-with-background .info-card {
        backdrop-filter: blur(6px);
        -webkit-backdrop-filter: blur(6px);
    }

    /* Cartes: texte lisible sur mobile avec fond sombre */
    .tldr-with-background .card-content {
        font-size: 0.8rem;
        color: rgba(255, 255, 255, 0.95) !important;
    }

    /* Masquer "Dans cet article" sur mobile, garder le bouton */
    .tldr-with-background .footer-content {
        display: none !important;
    }

    /* Centrer le bouton CTA sur mobile */
    .tldr-with-background .tldr-footer {
        justify-content: center !important;
    }
}

/* === HEADER - Modern & Compact (like MindMap) === */
.tldr-container .tldr-header {
    background: linear-gradient(135deg, var(--tldr-primary-color, #0f766e) 0%, color-mix(in srgb, var(--tldr-primary-color, #0f766e) 85%, #000) 100%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--tldr-primary-color, #0f766e) 70%, #000) !important;
    padding: 8px 16px !important;
    min-height: 44px !important;
    max-height: 44px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    box-sizing: border-box !important;
    flex-shrink: 0 !important;
}

.tldr-container .tldr-header * {
    box-sizing: border-box !important;
}

.tldr-container .tldr-header-left {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    flex-shrink: 0 !important;
}

.tldr-container .tldr-header i {
    font-size: 16px !important;
    color: white !important;
    filter: drop-shadow(0 2px 2px rgba(0,0,0,0.1)) !important;
    flex-shrink: 0 !important;
}

.tldr-container .tldr-header h2 {
    margin: 0 !important;
    padding: 0 !important;
    color: white !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    line-height: 1.3 !important;
    text-align: left !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* Badge temps de lecture - Modern */
.tldr-container .reading-time {
    display: flex !important;
    align-items: center !important;
    gap: 5px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    padding: 5px 10px !important;
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    color: white;
}

.tldr-container .reading-time i {
    font-size: 14px;
}

/* === INTRO === */
.tldr-container .tldr-intro {
    padding: 14px 16px 0 16px;
    font-size: 0.95rem !important;
    line-height: 1.5 !important;
    color: #4b5563 !important;
    margin: 0 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

/* === GRID CARTES === */
.tldr-container .tldr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    padding: 12px 16px 16px 16px;
    margin: 0 !important;
    list-style: none !important;
}

/* Grid 2 cartes */
.tldr-container .tldr-grid.two-cards {
    grid-template-columns: repeat(2, 1fr);
}

/* Cartes */
.tldr-container .info-card {
    background: #ffffff;
    border-radius: 8px;
    padding: 12px 10px;
    border: 1px solid #e5e7eb;
    background-color: #f9fafb;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    list-style: none !important;
    margin: 0 !important;
}

.tldr-container .info-card::before {
    display: none !important;
    content: none !important;
}

.tldr-container .info-card:hover {
    transform: translateY(-3px);
    background-color: #ffffff;
    box-shadow: 0 10px 20px -5px rgba(0, 0, 0, 0.08);
    border-color: #93c5fd;
}

/* Card header: icône + titre sur la même ligne */
.tldr-container .card-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    width: 100%;
}

.tldr-container .card-icon {
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: #eff6ff;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2563eb;
}

.tldr-container .card-icon i {
    font-size: 16px;
    color: inherit;
}

.tldr-container .card-title {
    font-weight: 700 !important;
    color: #111827 !important;
    margin: 0 !important;
    font-size: 0.95rem !important;
    line-height: 1.3 !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
}

.tldr-container .card-content {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #6b7280;
    width: 100%;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tldr-container .card-content ul,
.tldr-container .card-content ol {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-left: 18px !important;
}

.tldr-container .card-content li {
    margin-bottom: 4px !important;
}

/* === UTILITAIRES COULEURS (texte) === */
.tldr-container .highlight {
    color: #1d4ed8;
    font-weight: 600;
    background-color: rgba(37, 99, 235, 0.08);
    padding: 1px 6px;
    border-radius: 4px;
}

.tldr-container .tag-success {
    color: #15803d;
    font-weight: 600;
    background-color: #dcfce7;
    padding: 1px 6px;
    border-radius: 4px;
}

.tldr-container .tag-danger {
    color: #b91c1c;
    font-weight: 600;
    background-color: #fee2e2;
    padding: 1px 6px;
    border-radius: 4px;
}

.tldr-container .tag-warning {
    color: #b45309;
    font-weight: 600;
    background-color: #fef3c7;
    padding: 1px 6px;
    border-radius: 4px;
}

/* === UTILITAIRES COULEURS (icônes) === */
.tldr-container .icon-success {
    color: #15803d !important;
    background: #dcfce7 !important;
}

.tldr-container .icon-danger {
    color: #b91c1c !important;
    background: #fee2e2 !important;
}

.tldr-container .icon-warning {
    color: #b45309 !important;
    background: #fef3c7 !important;
}

/* === FOOTER === */
.tldr-container .tldr-footer {
    padding: 12px 16px;
    background: #f9fafb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    border-top: 1px solid #e5e7eb;
}

.tldr-container .footer-content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
    flex: 1;
}

.tldr-container .footer-label {
    font-size: 0.7rem;
    color: #6b7280;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tldr-container .footer-value {
    font-size: 0.8rem;
    color: #374151;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: hidden;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tldr-container .footer-value .separator {
    color: #d1d5db;
    font-weight: 400;
}

.tldr-container .footer-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 0.75rem;
}

.tldr-container .footer-tag i {
    font-size: 0.65rem;
    color: #3b82f6;
}

/* === CTA BOUTONS === */

/* Style Outlined (défaut) */
.tldr-container .action-btn {
    background-color: #ffffff;
    color: #2563eb;
    border: 1px solid #e2e8f0;
    padding: 10px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none !important;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.tldr-container .action-btn:hover {
    background-color: #f8fafc;
    border-color: #3b82f6;
    color: #1d4ed8;
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.05);
    transform: translateY(-1px);
    text-decoration: none !important;
}

/* Style Filled (plus impactant) */
.tldr-container .action-btn.filled {
    background-color: #2563eb;
    color: #ffffff;
    border: 1px solid #2563eb;
}

.tldr-container .action-btn.filled:hover {
    background-color: #1d4ed8;
    border-color: #1d4ed8;
    color: #ffffff;
    box-shadow: 0 4px 12px -2px rgba(37, 99, 235, 0.4);
}

.tldr-container .action-btn i {
    transition: transform 0.2s ease;
}

.tldr-container .action-btn:hover i {
    transform: translateY(3px);
}

/* === RESPONSIVE - Tablette === */
@media (max-width: 768px) {
    .tldr-container {
        margin: 16px 0;
        max-width: 100%;
        width: 100%;
    }

    .tldr-container .tldr-header {
        padding: 7px 14px !important;
        min-height: 42px !important;
        max-height: 42px !important;
    }

    .tldr-container .tldr-header h2 {
        font-size: 13px !important;
    }

    .tldr-container .tldr-header i {
        font-size: 15px !important;
    }

    .tldr-container .tldr-intro {
        padding: 10px 12px 0 12px;
        font-size: 0.9rem !important;
    }

    .tldr-container .tldr-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 10px 12px 12px 12px;
        gap: 10px;
    }

    .tldr-container .tldr-grid:not(.two-cards) .info-card:last-child {
        grid-column: 1 / -1;
    }

    .tldr-container .info-card {
        padding: 10px 8px;
    }

    .tldr-container .tldr-footer {
        padding: 10px 12px;
        gap: 10px;
    }

    .tldr-container .footer-value {
        flex-wrap: nowrap;
    }

    .tldr-container .action-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
    }
}

/* === RESPONSIVE - Mobile === */
@media (max-width: 480px) {
    .tldr-container {
        margin: 12px 0;
        max-width: 100%;
        width: 100%;
    }

    .tldr-container .tldr-header {
        padding: 6px 10px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        gap: 8px !important;
    }

    .tldr-container .tldr-header-left {
        gap: 6px !important;
        min-width: 0 !important;
        flex: 1 !important;
    }

    .tldr-container .tldr-header i {
        font-size: 14px !important;
        flex-shrink: 0 !important;
    }

    .tldr-container .tldr-header h2 {
        font-size: 12px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }

    .tldr-container .reading-time {
        font-size: 0.65rem;
        padding: 3px 6px;
        flex-shrink: 0;
        gap: 4px;
    }

    .tldr-container .reading-time i {
        font-size: 10px;
    }

    .tldr-container .tldr-intro {
        padding: 8px 10px 0 10px;
        font-size: 0.85rem !important;
    }

    /* 2 colonnes + 3ème en dessous pleine largeur */
    .tldr-container .tldr-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 8px 10px 10px 10px;
        gap: 8px;
    }

    .tldr-container .tldr-grid.two-cards {
        grid-template-columns: repeat(2, 1fr);
    }

    .tldr-container .tldr-grid:not(.two-cards) .info-card:last-child {
        grid-column: 1 / -1;
    }

    .tldr-container .info-card {
        padding: 8px 6px;
    }

    .tldr-container .card-header {
        gap: 6px;
        margin-bottom: 6px;
    }

    .tldr-container .card-icon {
        width: 24px;
        height: 24px;
        min-width: 24px;
        border-radius: 6px;
    }

    .tldr-container .card-icon i {
        font-size: 12px;
    }

    .tldr-container .card-title {
        font-size: 0.8rem !important;
    }

    .tldr-container .card-content {
        font-size: 0.75rem;
        line-height: 1.35;
    }

    .tldr-container .tldr-footer {
        padding: 10px 10px;
        gap: 10px;
        flex-direction: column;
        align-items: stretch;
    }

    .tldr-container .footer-content {
        text-align: center;
    }

    .tldr-container .footer-value {
        justify-content: center;
        flex-wrap: wrap;
    }

    .tldr-container .footer-label {
        font-size: 0.6rem;
    }

    .tldr-container .footer-tag {
        font-size: 0.7rem;
        gap: 3px;
        color: #1f2937;
    }

    .tldr-container .footer-tag i {
        font-size: 0.6rem;
    }

    .tldr-container .action-btn {
        padding: 10px 16px;
        font-size: 0.85rem;
        gap: 6px;
        width: 100%;
        justify-content: center;
    }

    /* Cards: texte plus grand et plus foncé sur mobile */
    .tldr-container .card-content {
        font-size: 0.8rem;
        color: #1f2937;
    }
}

/* Espacement avec le reste du contenu */
.tldr-container + .po-toc,
.po-toc + .tldr-container {
    margin-top: 30px;
}

@media (max-width: 767px) {
    .tldr-container + .po-toc,
    .po-toc + .tldr-container {
        margin-top: 20px;
    }
}

/* ===== ENGAGEMENT INTRO - Hook percutant après TL;DR v5.9.0 ===== */
.rp-engagement-intro p {
    margin: 0;
    font-size: 1.15rem;
    line-height: 1.8;
    color: #1e293b;
    font-weight: 400;
}

.rp-engagement-intro p strong {
    color: #0f172a;
    font-weight: 600;
}

@media (max-width: 767px) {
    .rp-engagement-intro p {
        font-size: 1.05rem;
        line-height: 1.7;
    }
}

/* ===== BLOC KNOWLEDGE BASE E-E-A-T UNIFIÉ - DESIGN PREMIUM v5.1 ===== */
/* @since 5.1.0 - Bloc unique intelligent avec design "Trust Badge" */

/* === VARIABLES CSS POUR BLOC EEAT === */
:root {
    /* Design "Trust" - Bleu professionnel avec accent doré */
    --eeat-bg: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 30%, #e8f4fc 70%, #f1f5f9 100%);
    --eeat-border: #3b82f6;
    --eeat-icon-bg: linear-gradient(135deg, #1e40af 0%, #1d4ed8 50%, #2563eb 100%);
    --eeat-glow: rgba(59, 130, 246, 0.15);
    --eeat-title: #1e3a5f;
    --eeat-grid-color: rgba(59, 130, 246, 0.04);
    --eeat-accent: #f59e0b;
}

/* === ANIMATION GRILLAGE MODERNE === */
@keyframes eeat-grid-flow {
    0% {
        background-position: 0 0, 0 0;
    }
    100% {
        background-position: 40px 40px, 40px 40px;
    }
}

@keyframes eeat-shimmer {
    0% {
        opacity: 0.3;
    }
    50% {
        opacity: 0.6;
    }
    100% {
        opacity: 0.3;
    }
}

@keyframes eeat-block-enter {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === BLOC EEAT UNIFIÉ - DESIGN PREMIUM === */
.rankpress-eeat-block {
    position: relative !important;
    margin: 32px 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    border-left: 4px solid var(--eeat-border) !important;
    overflow: hidden !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: var(--eeat-bg) !important;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -2px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Grillage animé en arrière-plan */
.rankpress-eeat-block::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(var(--eeat-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--eeat-grid-color) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    animation: eeat-grid-flow 20s linear infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
    opacity: 1 !important;
}

/* Overlay shimmer subtil */
.rankpress-eeat-block::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        135deg,
        transparent 0%,
        rgba(255, 255, 255, 0.4) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.2) 75%,
        transparent 100%
    ) !important;
    background-size: 400% 400% !important;
    animation: eeat-shimmer 8s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

/* Effet hover élégant */
.rankpress-eeat-block:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    border-left-color: var(--eeat-border) !important;
    box-shadow:
        0 20px 25px -5px rgba(59, 130, 246, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.05),
        0 0 40px var(--eeat-glow),
        0 0 0 1px rgba(255, 255, 255, 0.9) inset !important;
}

/* === HEADER DU BLOC === */
.rankpress-eeat-block > p:first-child {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    background: linear-gradient(90deg, rgb(227 235 247) 0%, #ecf4fc 50%, #f1f6fb 100%) !important;
    border-bottom: 1px solid rgb(59 130 246 / 9%) !important;
    font-size: 15px !important;
    line-height: 1.5 !important;
}

/* Titre du header */
.rankpress-eeat-block > p:first-child strong {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    letter-spacing: -0.01em !important;
    margin: 0 !important;
    color: var(--eeat-title) !important;
}

/* Icône badge */
.rankpress-eeat-block > p:first-child strong i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    color: white !important;
    flex-shrink: 0 !important;
    background: var(--eeat-icon-bg) !important;
    box-shadow: 0 2px 8px rgba(51, 65, 85, 0.25) !important;
}

/* === CONTENU DU BLOC === */
.rankpress-eeat-block > p:not(:first-child) {
    position: relative !important;
    z-index: 1 !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #374151 !important;
}

.rankpress-eeat-block > p:not(:first-child):last-child {
    padding-bottom: 18px !important;
}

/* === LIEN SOURCE - STYLE BADGE === */
.rankpress-eeat-block .rp-source {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    backdrop-filter: blur(4px) !important;
    transition: all 0.2s ease !important;
    margin-top: 12px !important;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.1) !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
}

.rankpress-eeat-block .rp-source:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 8px rgba(59, 130, 246, 0.15) !important;
    text-decoration: none !important;
    background: rgba(239, 246, 255, 0.95) !important;
    border-color: rgba(59, 130, 246, 0.3) !important;
}

.rankpress-eeat-block .rp-source i {
    font-size: 11px !important;
}

/* ========================== */
/* === RESPONSIVE MOBILE === */
/* ========================== */
@media (max-width: 767px) {
    .rankpress-eeat-block {
        margin: 24px 0 !important;
        border-radius: 12px !important;
    }

    .rankpress-eeat-block > p:first-child {
        padding: 14px 16px !important;
        gap: 12px !important;
    }

    .rankpress-eeat-block > p:first-child strong {
        font-size: 15px !important;
        gap: 10px !important;
    }

    .rankpress-eeat-block > p:first-child strong i {
        width: 32px !important;
        height: 32px !important;
        font-size: 14px !important;
        border-radius: 8px !important;
    }

    .rankpress-eeat-block > p:not(:first-child) {
        padding: 14px 16px !important;
        font-size: 14px !important;
    }

    .rankpress-eeat-block .rp-source {
        font-size: 12px !important;
        padding: 5px 10px !important;
    }

    /* Désactiver animations sur mobile pour perf */
    .rankpress-eeat-block::before {
        animation: none !important;
    }

    .rankpress-eeat-block::after {
        animation: none !important;
        opacity: 0.3 !important;
    }

    .rankpress-eeat-block:hover {
        transform: none !important;
    }
}

/* =========================== */
/* === DESKTOP AMÉLIORÉ === */
/* =========================== */
@media (min-width: 768px) {
    .rankpress-eeat-block {
        margin: 36px 0 !important;
    }

    .rankpress-eeat-block > p:first-child {
        padding: 18px 24px !important;
    }

    .rankpress-eeat-block > p:first-child strong {
        font-size: 17px !important;
    }

    .rankpress-eeat-block > p:first-child strong i {
        width: 40px !important;
        height: 40px !important;
        font-size: 17px !important;
    }

    .rankpress-eeat-block > p:not(:first-child) {
        padding: 18px 24px !important;
        font-size: 16px !important;
    }
}

/* === ANIMATION D'ENTRÉE === */
.rankpress-eeat-block.animate-in {
    animation: eeat-block-enter 0.5s ease-out forwards;
}

/* === RÉTROCOMPATIBILITÉ - Anciens blocs (legacy) === */
/* Ces styles mappent les anciens blocs vers le nouveau design unifié */
.rankpress-case-block,
.rankpress-data-block,
.rankpress-method-block,
.rankpress-warning-block {
    position: relative !important;
    margin: 32px 0 !important;
    padding: 0 !important;
    border-radius: 16px !important;
    border: 1px solid rgba(59, 130, 246, 0.15) !important;
    border-left: 4px solid var(--eeat-border) !important;
    overflow: hidden !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    background: var(--eeat-bg) !important;
    box-shadow:
        0 4px 6px -1px rgba(0, 0, 0, 0.05),
        0 2px 4px -2px rgba(0, 0, 0, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.8) inset !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.rankpress-case-block::before,
.rankpress-data-block::before,
.rankpress-method-block::before,
.rankpress-warning-block::before {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background-image:
        linear-gradient(var(--eeat-grid-color) 1px, transparent 1px),
        linear-gradient(90deg, var(--eeat-grid-color) 1px, transparent 1px) !important;
    background-size: 40px 40px !important;
    animation: eeat-grid-flow 20s linear infinite !important;
    pointer-events: none !important;
    z-index: 0 !important;
}

.rankpress-case-block:hover,
.rankpress-data-block:hover,
.rankpress-method-block:hover,
.rankpress-warning-block:hover {
    transform: translateY(-3px) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
    border-left-color: var(--eeat-border) !important;
    box-shadow:
        0 20px 25px -5px rgba(59, 130, 246, 0.1),
        0 8px 10px -6px rgba(0, 0, 0, 0.05),
        0 0 40px var(--eeat-glow) !important;
}

.rankpress-case-block > p:first-child,
.rankpress-data-block > p:first-child,
.rankpress-method-block > p:first-child,
.rankpress-warning-block > p:first-child {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    background: linear-gradient(90deg, rgb(227 235 247) 0%, #ecf4fc 50%, #f1f6fb 100%) !important;
    border-bottom: 1px solid rgb(59 130 246 / 9%) !important;
}

.rankpress-case-block > p:first-child strong,
.rankpress-data-block > p:first-child strong,
.rankpress-method-block > p:first-child strong,
.rankpress-warning-block > p:first-child strong {
    display: inline-flex !important;
    align-items: center !important;
    gap: 12px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    color: var(--eeat-title) !important;
}

.rankpress-case-block > p:first-child strong i,
.rankpress-data-block > p:first-child strong i,
.rankpress-method-block > p:first-child strong i,
.rankpress-warning-block > p:first-child strong i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 10px !important;
    font-size: 16px !important;
    color: white !important;
    background: var(--eeat-icon-bg) !important;
    box-shadow: 0 2px 8px rgba(51, 65, 85, 0.25) !important;
}

.rankpress-case-block > p:not(:first-child),
.rankpress-data-block > p:not(:first-child),
.rankpress-method-block > p:not(:first-child),
.rankpress-warning-block > p:not(:first-child) {
    position: relative !important;
    z-index: 1 !important;
    padding: 16px 20px !important;
    margin: 0 !important;
    font-size: 15px !important;
    line-height: 1.7 !important;
    color: #374151 !important;
}

.rankpress-case-block .rp-source,
.rankpress-data-block .rp-source,
.rankpress-method-block .rp-source,
.rankpress-warning-block .rp-source {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    padding: 6px 12px !important;
    border-radius: 20px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    color: #1d4ed8 !important;
    border: 1px solid rgba(59, 130, 246, 0.2) !important;
    margin-top: 12px !important;
    transition: all 0.2s ease !important;
}

@media (max-width: 767px) {
    .rankpress-case-block,
    .rankpress-data-block,
    .rankpress-method-block,
    .rankpress-warning-block {
        margin: 24px 0 !important;
        border-radius: 12px !important;
    }

    .rankpress-case-block::before,
    .rankpress-data-block::before,
    .rankpress-method-block::before,
    .rankpress-warning-block::before {
        animation: none !important;
    }

    .rankpress-case-block:hover,
    .rankpress-data-block:hover,
    .rankpress-method-block:hover,
    .rankpress-warning-block:hover {
        transform: none !important;
    }
}

/* =============================================
   v5.7.0: FEATURED IMAGE HOOK - DEPRECATED
   L'image à la une est maintenant intégrée comme
   background du bloc TLDR (voir .tldr-with-background)
   ============================================= */

/* =============================================
   v5.10.5: LIENS INTERNES - Style subtil et pro
   Soulignement discret + petit badge avec flèche
   ============================================= */
.rp-internal-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: rgba(99, 102, 241, 0.4);
    text-underline-offset: 2px;
    text-decoration-thickness: 1px;
    transition: all 0.2s ease;
    font-size: inherit;
    font-weight: inherit;
}

.rp-internal-link:hover {
    color: #4f46e5;
    text-decoration-color: #4f46e5;
}

/* Badge discret avec flèche */
.rp-internal-link .rp-link-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25em;
    padding: 0.15em 0.35em;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-radius: 3px;
    font-size: 0.7em;
    vertical-align: middle;
    transition: all 0.2s ease;
}

.rp-internal-link .rp-link-badge i {
    color: #6366f1;
    opacity: 0.7;
}

.rp-internal-link:hover .rp-link-badge {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
}

.rp-internal-link:hover .rp-link-badge i {
    opacity: 1;
    transform: translateX(1px);
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .rp-internal-link {
        text-decoration-color: rgba(129, 140, 248, 0.5);
    }
    .rp-internal-link:hover {
        color: #818cf8;
        text-decoration-color: #818cf8;
    }
    .rp-internal-link .rp-link-badge {
        background: linear-gradient(135deg, rgba(129, 140, 248, 0.15) 0%, rgba(167, 139, 250, 0.15) 100%);
    }
    .rp-internal-link .rp-link-badge i {
        color: #a5b4fc;
    }
}

/* Responsive: liens internes sur mobile */
@media (max-width: 767px) {
    .rp-internal-link .rp-link-badge {
        padding: 0.1em 0.25em;
    }
}

/* =============================================
   Rétrocompatibilité: ancienne structure HTML
   (liens créés avant v5.10.5)
   ============================================= */
.rp-internal-link .rp-link-text {
    /* Le texte hérite du style du lien parent */
}

.rp-internal-link .rp-link-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.25em;
    padding: 0.15em 0.35em;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.12) 0%, rgba(139, 92, 246, 0.12) 100%);
    border-radius: 3px;
    font-size: 0.7em;
    vertical-align: middle;
    transition: all 0.2s ease;
    color: #6366f1;
    opacity: 0.7;
}

.rp-internal-link:hover .rp-link-icon {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2) 0%, rgba(139, 92, 246, 0.2) 100%);
    opacity: 1;
    transform: translateX(1px);
}

/* =============================================
   v5.11.0: HYBRID INTERNAL LINKING SYSTEM
   - Inline links: discrete, natural SEO links
   - CTA Expert: contextual recommendation blocks
   ============================================= */

/* === INLINE LINKS (discrete, SEO-focused) === */
.rp-inline-link {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: currentColor;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.rp-inline-link:hover {
    color: #4f46e5;
}

/* =========================================
   CTA EXPERT BLOCKS - v1.0.28
   Design moderne avec animations breathing
   Style isolé pour éviter les interférences CSS
   ========================================= */

/* Reset et isolation du conteneur CTA */
.rp-cta-expert {
    margin: 2.5rem 0 !important;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    max-width: 100% !important;
    width: auto !important;
    clear: both !important;
    overflow: visible !important;
    position: relative !important;
}

/* Supprimer tous les pseudo-éléments du conteneur principal (sauf ceux de .rp-cta-link et .rp-cta-visual) */
.rp-cta-expert::before,
.rp-cta-expert::after {
    content: none !important;
    display: none !important;
}

/* Reset de tous les éléments à l'intérieur pour éviter l'héritage - SAUF Font Awesome */
.rp-cta-expert *:not(i):not([class*="fa-"]) {
    box-sizing: border-box !important;
    -webkit-font-smoothing: antialiased !important;
    text-rendering: optimizeLegibility !important;
}

/* Font family pour le texte CTA uniquement (PAS l'intro qui doit hériter de l'article) */
.rp-cta-expert p:not(.rp-cta-intro),
.rp-cta-expert span:not([class*="fa-"]),
.rp-cta-expert div,
.rp-cta-expert blockquote {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* ✅ FIX: Masquer les .rp-cta-link vides (cadres blancs parasites) */
.rp-cta-expert .rp-cta-link:not(:has(.rp-cta-visual)) {
    display: none !important;
}

/* Masquer aussi les <p> parents qui contiennent uniquement un lien vide */
.rp-cta-expert > p:has(.rp-cta-link:not(:has(.rp-cta-visual))) {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    overflow: hidden !important;
}

/* Intro text - Uses same CSS variables as .po-main-content p for consistency */
.rp-cta-expert .rp-cta-intro {
    /* Spacing */
    margin: 0 0 1.5rem 0 !important;
    padding: 0 !important;

    /* Typography - uses CSS variables (change :root to update both) */
    font-family: var(--po-body-font-family) !important;
    font-size: var(--po-body-font-size) !important;
    color: var(--po-text-dark) !important;
    line-height: var(--po-body-line-height) !important;
    font-weight: var(--po-body-font-weight) !important;
    font-style: normal !important;
    text-align: left !important;
    text-transform: none !important;
    letter-spacing: var(--po-body-letter-spacing) !important;

    /* Reset decorations */
    background: none !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    display: block !important;
    width: auto !important;
    max-width: none !important;
}

/* Supprimer les pseudo-éléments du texte intro */
.rp-cta-expert .rp-cta-intro::before,
.rp-cta-expert .rp-cta-intro::after {
    content: none !important;
    display: none !important;
}

.rp-cta-expert .rp-cta-link,
.rp-cta-expert .rp-cta-card {
    display: flex !important;
    gap: 24px !important;
    background:
        linear-gradient(180deg, #F4A661 0%, #FAD7A1 50%, #F4A661 100%) left/6px 100% no-repeat,
        #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.6) !important;
    border-radius: 24px !important;
    padding: 20px 10px 0px 26px !important; /* +6px left for decorative border */
    text-decoration: none !important;
    position: relative !important;
    transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1) !important;
    box-shadow: 0 10px 40px -10px rgba(244, 166, 97, 0.08) !important;
    overflow: visible !important; /* Allow particles and pulsing rings to extend beyond */
    z-index: 1 !important;
    width: auto !important;
    max-width: 100% !important;
    cursor: default !important; /* Not pointer - only action link is clickable visually */
}

/* Shine effect on the card */
.rp-cta-expert .rp-cta-link::after,
.rp-cta-expert .rp-cta-card::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 50% !important;
    height: 100% !important;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    ) !important;
    transform: skewX(-25deg) !important;
    animation: rpCtaShine 4s ease-in-out infinite !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

@keyframes rpCtaShine {
    0%, 100% { left: -100%; }
    50%, 55% { left: 150%; }
}

.rp-cta-expert .rp-cta-link:hover,
.rp-cta-expert .rp-cta-card:hover {
    border-color: rgba(244, 166, 97, 0.3) !important;
    /* No transform or box-shadow change - only action link has hover effect */
}

/* Barre Latérale : intégrée via background gradient sur la carte */

/* Avatar container */
.rp-cta-expert .rp-cta-visual {
    flex-shrink: 0 !important;
    position: relative !important;
    z-index: 2 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Avatar avec animation breathing */
.rp-cta-expert .rp-cta-avatar {
    width: 68px !important;
    height: 68px !important;
    border-radius: 20px !important;
    object-fit: cover !important;
    border: 3px solid #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0,0,0,0.05) !important;
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    position: relative !important;
    z-index: 2 !important;
    animation: rpCtaBreathing 4s ease-in-out infinite !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 68px !important;
    filter: none !important;
}

@keyframes rpCtaBreathing {
    0%, 100% { transform: rotate(-3deg) scale(1); }
    50% { transform: rotate(-2deg) scale(1.03); }
}

/* Halo lumineux - positioned just below avatar (68px) for elevation effect */
.rp-cta-expert .rp-cta-visual::after {
    content: '' !important;
    position: absolute !important;
    top: 45px !important; /* Avatar is 68px, halo centered ~10px below bottom */
    left: 50% !important;
    transform: translateX(-50%) !important;
    width: 50px !important;
    height: 50px !important;
    border-radius: 24px !important;
    background: linear-gradient(135deg, #F4A661 0%, #d97706 100%) !important;
    z-index: 1 !important;
    filter: blur(14px) !important;
    transition: all 0.4s ease !important;
    animation: rpCtaHaloBreathing 4s ease-in-out infinite !important;
    pointer-events: none !important;
}

@keyframes rpCtaHaloBreathing {
    0%, 100% { transform: translateX(-50%) rotate(-3deg) scale(1); opacity: 0.5; }
    50% { transform: translateX(-50%) rotate(-2deg) scale(1.05); opacity: 0.6; }
}

/* Hover - désactive les animations et applique transformation douce */
.rp-cta-expert .rp-cta-link:hover .rp-cta-avatar {
    animation: none !important;
    transform: rotate(-1deg) scale(1.02) translateY(-1px) !important;
}

.rp-cta-expert .rp-cta-link:hover .rp-cta-visual::after {
    animation: none !important;
    opacity: 0.6 !important;
    filter: blur(16px) !important;
    transform: translateX(-50%) scale(1) !important;
}

/* Content */
.rp-cta-expert .rp-cta-content {
    flex: 1 !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Supprimer les pseudo-éléments du content */
.rp-cta-expert .rp-cta-content::before,
.rp-cta-expert .rp-cta-content::after {
    content: none !important;
    display: none !important;
}

.rp-cta-expert .rp-cta-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    margin-bottom: 6px !important;
    flex-wrap: wrap !important;
    margin-top: 0 !important;
    padding: 0 !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Supprimer les pseudo-éléments du header */
.rp-cta-expert .rp-cta-header::before,
.rp-cta-expert .rp-cta-header::after {
    content: none !important;
    display: none !important;
}

.rp-cta-expert .rp-cta-name {
    font-weight: 700 !important;
    font-size: 15px !important;
    color: #1e293b !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
    text-transform: none !important;
    letter-spacing: normal !important;
    background: none !important;
    border: none !important;
    box-shadow: none !important;
}

/* Supprimer les pseudo-éléments du name */
.rp-cta-expert .rp-cta-name::before,
.rp-cta-expert .rp-cta-name::after {
    content: none !important;
    display: none !important;
}

/* Badge rôle */
.rp-cta-expert .rp-cta-role {
    font-size: 10px !important;
    color: #9a3412 !important;
    background: #ffedd5 !important;
    padding: 4px 8px !important;
    border-radius: 20px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    margin: 0 !important;
    border: none !important;
    display: inline-block !important;
    box-shadow: none !important;
    line-height: 1.2 !important;
}

/* Supprimer les pseudo-éléments du role badge */
.rp-cta-expert .rp-cta-role::before,
.rp-cta-expert .rp-cta-role::after {
    content: none !important;
    display: none !important;
}

.rp-cta-expert .rp-cta-quote {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    font-size: 16px !important;
    color: #475569 !important;
    line-height: 1.5 !important;
    font-weight: 500 !important;
    font-style: normal !important;
    text-align: left !important;
    background: none !important;
    box-shadow: none !important;
    quotes: none !important;
}

/* Reset blockquote styling */
.rp-cta-expert .rp-cta-quote::before,
.rp-cta-expert .rp-cta-quote::after {
    content: none !important;
    display: none !important;
}

/* =========================================
   CTA ACTION BUTTON - GLASS + GLOW DESIGN
   ========================================= */
aside.rp-cta-expert .rp-cta-action,
.rp-cta-expert .rp-cta-link .rp-cta-action,
.rp-cta-expert .rp-cta-content .rp-cta-action {
    /* Reset any inherited styles */
    all: unset !important;
    box-sizing: border-box !important;
    /* Layout */
    margin-top: 3px !important;
    margin-bottom: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    /* Typography - dark text for readability */
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
    text-decoration: none !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
    /* Glass morphism background */
    background: linear-gradient(135deg, rgba(255,255,255,0.9) 0%, rgba(241,245,249,0.85) 100%) !important;
    background-color: transparent !important;
    backdrop-filter: blur(8px) !important;
    -webkit-backdrop-filter: blur(8px) !important;
    /* Border & shape */
    border: 1px solid rgba(148, 163, 184, 0.15) !important;
    padding: 6px 6px 6px 14px !important;
    border-radius: 50px !important;
    /* Positioning - overflow visible for particles and pulsing rings */
    position: relative !important;
    overflow: visible !important;
    /* Effects */
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    box-shadow:
        0 1px 3px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(255,255,255,0.5) inset !important;
    cursor: pointer !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
}

aside.rp-cta-expert .rp-cta-action:hover,
.rp-cta-expert .rp-cta-link .rp-cta-action:hover,
.rp-cta-expert .rp-cta-content .rp-cta-action:hover {
    background: linear-gradient(135deg, rgba(255,255,255,0.95) 0%, rgba(226,232,240,0.9) 100%) !important;
    border-color: rgba(244, 166, 97, 0.3) !important;
    box-shadow:
        0 4px 20px rgba(244, 166, 97, 0.15),
        0 0 0 1px rgba(244, 166, 97, 0.1),
        0 0 0 1px rgba(255,255,255,0.5) inset !important;
}

/* Shimmer sweep effect - contained within button bounds */
aside.rp-cta-expert .rp-cta-action::before,
.rp-cta-expert .rp-cta-link .rp-cta-action::before,
.rp-cta-expert .rp-cta-content .rp-cta-action::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.5) 50%, transparent 100%) !important;
    border-radius: 50px !important;
    pointer-events: none !important;
    z-index: 5 !important;
    transform: translateX(-100%) !important;
    opacity: 0 !important;
}

aside.rp-cta-expert .rp-cta-action:hover::before,
.rp-cta-expert .rp-cta-link .rp-cta-action:hover::before,
.rp-cta-expert .rp-cta-content .rp-cta-action:hover::before {
    animation: rpCtaShimmerSweep 0.6s ease-out !important;
}

@keyframes rpCtaShimmerSweep {
    0% { transform: translateX(-100%); opacity: 1; }
    100% { transform: translateX(100%); opacity: 1; }
}

/* Label text with animated underline */
.rp-cta-expert .rp-cta-label {
    position: relative !important;
    letter-spacing: 0 !important;
    transition: letter-spacing 0.3s ease !important;
    display: inline-block !important;
    color: #1e293b !important;
    -webkit-text-fill-color: #1e293b !important;
}

.rp-cta-expert .rp-cta-action:hover .rp-cta-label {
    letter-spacing: 0.03em !important;
}

.rp-cta-expert .rp-cta-label::after {
    content: '' !important;
    position: absolute !important;
    bottom: -1px !important;
    left: 0 !important;
    width: 0 !important;
    height: 1px !important;
    background: linear-gradient(90deg, #F4A661, #fcc580) !important;
    transition: width 0.3s ease !important;
}

.rp-cta-expert .rp-cta-action:hover .rp-cta-label::after {
    width: 100% !important;
}

/* Particles emanating from micro-CTA */
.rp-cta-expert .rp-cta-particles {
    position: absolute !important;
    right: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 24px !important;
    height: 24px !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

.rp-cta-expert .rp-cta-particles span {
    position: absolute !important;
    width: 3px !important;
    height: 3px !important;
    background: #F4A661 !important;
    border-radius: 50% !important;
    opacity: 0; /* No !important - let animation control opacity */
    top: 50% !important;
    left: 50% !important;
}

.rp-cta-expert .rp-cta-particles span:nth-child(1) {
    animation: rpParticleEscape1 2.5s ease-out infinite !important;
}
.rp-cta-expert .rp-cta-particles span:nth-child(2) {
    animation: rpParticleEscape2 3s ease-out infinite 0.8s !important;
}
.rp-cta-expert .rp-cta-particles span:nth-child(3) {
    animation: rpParticleEscape3 2.8s ease-out infinite 1.5s !important;
}
.rp-cta-expert .rp-cta-particles span:nth-child(4) {
    width: 2px !important;
    height: 2px !important;
    background: #fcc580 !important;
    animation: rpOrbit1 4s linear infinite !important;
}
.rp-cta-expert .rp-cta-particles span:nth-child(5) {
    width: 2px !important;
    height: 2px !important;
    background: #fcd9a8 !important;
    animation: rpOrbit2 5s linear infinite reverse !important;
}

@keyframes rpParticleEscape1 {
    0% { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    10% { opacity: 0.7; }
    100% { transform: translate(calc(-50% + 20px), calc(-50% - 16px)) scale(0.3); opacity: 0; }
}

@keyframes rpParticleEscape2 {
    0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0; }
    10% { opacity: 0.6; }
    100% { transform: translate(calc(-50% + 24px), calc(-50% + 4px)) scale(0.2); opacity: 0; }
}

@keyframes rpParticleEscape3 {
    0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
    10% { opacity: 0.5; }
    100% { transform: translate(calc(-50% + 16px), calc(-50% + 14px)) scale(0.25); opacity: 0; }
}

@keyframes rpOrbit1 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(16px) rotate(0deg); opacity: 0.6; }
    50% { opacity: 0.3; }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(16px) rotate(-360deg); opacity: 0.6; }
}

@keyframes rpOrbit2 {
    0% { transform: translate(-50%, -50%) rotate(0deg) translateX(20px) rotate(0deg); opacity: 0.4; }
    50% { opacity: 0.2; }
    100% { transform: translate(-50%, -50%) rotate(360deg) translateX(20px) rotate(-360deg); opacity: 0.4; }
}

/* Micro-CTA wrapper with pulsing rings */
.rp-cta-expert .rp-cta-micro-wrapper {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    flex-shrink: 0 !important;
    overflow: visible !important; /* Allow pulsing rings to extend beyond */
}

.rp-cta-expert .rp-cta-micro-wrapper::before,
.rp-cta-expert .rp-cta-micro-wrapper::after {
    content: '' !important;
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    border-radius: 50% !important;
    border: 1.5px solid #F4A661 !important;
    opacity: 0; /* No !important - let animation control opacity */
    animation: rpRingPulse 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite !important;
}

.rp-cta-expert .rp-cta-micro-wrapper::after {
    animation-delay: 1.25s !important;
}

@keyframes rpRingPulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.8); opacity: 0; }
}

/* Micro-CTA button with rotating gradient */
.rp-cta-expert .rp-cta-micro {
    position: relative !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 24px !important;
    height: 24px !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 10px !important;
    /* No z-index here to avoid creating stacking context that traps ::before */
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    background: transparent !important; /* Transparent - inner fill handled by ::after */
    overflow: visible !important;
}

/* Rotating gradient border - visible ring around button */
.rp-cta-expert .rp-cta-micro::before {
    content: '' !important;
    position: absolute !important;
    inset: -2px !important;
    background: conic-gradient(from 0deg, #F4A661, #fcc580, #fcd9a8, #F4A661, #e8955a, #F4A661) !important;
    border-radius: 50% !important;
    z-index: 1 !important;
    animation: rpSmoothRotate 3s linear infinite !important;
}

@keyframes rpSmoothRotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Inner background circle - fills the button area */
.rp-cta-expert .rp-cta-micro::after {
    content: '' !important;
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(135deg, #F4A661 0%, #e8955a 100%) !important;
    border-radius: 50% !important;
    z-index: 2 !important;
    box-shadow:
        0 2px 8px rgba(244, 166, 97, 0.4),
        0 0 16px rgba(244, 166, 97, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* Icon styling */
.rp-cta-expert .rp-cta-micro i {
    position: relative !important;
    z-index: 3 !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 10px !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased !important;
    background: none !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

/* Hover effects */
.rp-cta-expert .rp-cta-action:hover .rp-cta-micro {
    transform: scale(1.1) rotate(3deg) !important;
}

.rp-cta-expert .rp-cta-action:hover .rp-cta-micro::after {
    box-shadow:
        0 4px 16px rgba(244, 166, 97, 0.5),
        0 0 24px rgba(244, 166, 97, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

.rp-cta-expert .rp-cta-action:hover .rp-cta-micro i {
    animation: rpArrowBounce 0.5s ease-in-out !important;
}

@keyframes rpArrowBounce {
    0%, 100% { transform: translateX(0); }
    50% { transform: translateX(2px); }
}

/* =========================================
   FALLBACK: OLD HTML FORMAT (legacy articles)
   Old format: <span class="rp-cta-action">text <i></i></span>
   New format: <span class="rp-cta-action"><span class="rp-cta-label">text</span>...</span>
   ========================================= */
.rp-cta-expert .rp-cta-action > i,
.rp-cta-expert .rp-cta-action > i.fas,
.rp-cta-expert .rp-cta-action > i.fa-arrow-right {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 22px !important;
    height: 22px !important;
    border-radius: 50% !important;
    background: linear-gradient(135deg, #F4A661 0%, #e8955a 100%) !important;
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    font-size: 10px !important;
    font-family: "Font Awesome 6 Free" !important;
    font-weight: 900 !important;
    -webkit-font-smoothing: antialiased !important;
    -webkit-background-clip: border-box !important;
    background-clip: border-box !important;
    margin: 0 !important;
    margin-left: 4px !important;
    padding: 0 !important;
    line-height: 1 !important;
    box-shadow:
        0 2px 6px rgba(244, 166, 97, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.rp-cta-expert .rp-cta-action:hover > i {
    transform: scale(1.1) !important;
    box-shadow:
        0 3px 12px rgba(244, 166, 97, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
}

/* =========================================
   CTA EXPERT RESPONSIVE MOBILE
   ========================================= */
@media (max-width: 640px) {
    /* Container - prevent overflow */
    .rp-cta-expert {
        margin: 1.5rem 0 !important;
        max-width: 100% !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    /* Intro keeps same style as article text, only reduce margin */
    .rp-cta-expert .rp-cta-intro {
        margin-bottom: 10px !important;
    }

    /* Mobile: Use CSS Grid for reorganized layout */
    .rp-cta-expert .rp-cta-link,
    .rp-cta-expert .rp-cta-card {
        display: grid !important;
        grid-template-columns: 48px 1fr !important;
        grid-template-rows: auto auto auto !important;
        grid-template-areas:
            "avatar header"
            "quote quote"
            "action action" !important;
        gap: 6px 10px !important;
        background:
            linear-gradient(180deg, #F4A661 0%, #FAD7A1 50%, #F4A661 100%) left/4px 100% no-repeat,
            #ffffff !important;
        padding: 12px 6px 0px 16px !important; /* +4px left for decorative border */
        border-radius: 14px !important;
        align-items: center !important;
        overflow: visible !important; /* Allow particles and pulsing rings */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Avatar in grid - positioned relative for halo */
    .rp-cta-expert .rp-cta-visual {
        grid-area: avatar !important;
        display: flex !important;
        align-items: flex-start !important;
        position: relative !important;
        width: 48px !important;
        height: 48px !important;
        flex-shrink: 0 !important;
    }

    .rp-cta-expert .rp-cta-avatar {
        width: 48px !important;
        height: 48px !important;
        border-radius: 12px !important;
        max-width: 48px !important;
        min-width: 48px !important;
        position: relative !important;
        z-index: 2 !important;
    }

    /* Halo mobile - positioned just below avatar, not too far */
    .rp-cta-expert .rp-cta-visual::after {
        top: 30px !important;
        left: 24px !important;
        transform: translateX(-50%) !important;
        width: 32px !important;
        height: 20px !important;
        filter: blur(10px) !important;
        z-index: 1 !important;
    }

    /* Content container spans full width for quote */
    .rp-cta-expert .rp-cta-content {
        display: contents !important;
    }

    /* Header next to avatar - name visible */
    .rp-cta-expert .rp-cta-header {
        grid-area: header !important;
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 0 !important;
        overflow: visible !important;
        min-width: 0 !important;
        max-width: 100% !important;
    }

    /* Name - visible with ellipsis if too long */
    .rp-cta-expert .rp-cta-name {
        font-size: 13px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        flex: 1 1 auto !important;
        min-width: 60px !important;
        max-width: none !important;
        display: block !important;
    }

    .rp-cta-expert .rp-cta-role {
        font-size: 7px !important;
        padding: 2px 5px !important;
        white-space: nowrap !important;
        flex-shrink: 0 !important;
        max-width: none !important;
    }

    /* Quote takes full width - smaller text on mobile */
    .rp-cta-expert .rp-cta-quote,
    .rp-cta-expert blockquote.rp-cta-quote,
    aside.rp-cta-expert .rp-cta-quote {
        grid-area: quote !important;
        font-size: 13px !important;
        line-height: 1.3 !important;
        margin: 2px 0 !important;
        padding: 0 !important;
        border: none !important;
        background: none !important;
        color: #475569 !important;
        font-weight: 500 !important;
        font-style: normal !important;
        text-align: left !important;
        quotes: none !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }

    /* Action button - full width on mobile, single line */
    .rp-cta-expert .rp-cta-action {
        grid-area: action !important;
        font-size: 11px !important;
        margin-top: 1px !important;
        margin-bottom: 0 !important;
        padding: 8px 10px 8px 14px !important;
        gap: 8px !important;
        white-space: nowrap !important;
        justify-content: space-between !important;
        width: 100% !important;
    }

    .rp-cta-expert .rp-cta-label {
        white-space: nowrap !important;
        flex-shrink: 0 !important;
    }

    .rp-cta-expert .rp-cta-micro {
        width: 20px !important;
        height: 20px !important;
        font-size: 9px !important;
        flex-shrink: 0 !important;
    }

    .rp-cta-expert .rp-cta-micro i {
        font-size: 9px !important;
    }

    .rp-cta-expert .rp-cta-particles {
        width: 20px !important;
        height: 20px !important;
        right: 8px !important;
    }

    .rp-cta-expert .rp-cta-particles span {
        width: 2px !important;
        height: 2px !important;
    }

    /* Fallback for old format on mobile */
    .rp-cta-expert .rp-cta-action > i {
        width: 20px !important;
        height: 20px !important;
        font-size: 9px !important;
        flex-shrink: 0 !important;
    }
}

/* === HYBRID LINKS DARK MODE === */
@media (prefers-color-scheme: dark) {
    .rp-inline-link:hover {
        color: #818cf8;
    }
}

/* ===== v5.23.0: CONTENT IMAGES ===== */
/* AI-generated contextual images for article sections */

.rankpress-content-image {
    margin: 2rem 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f8fafc;
}

.rankpress-content-image__img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 12px 12px 0 0;
}

/* If no caption, round all corners */
.rankpress-content-image:not(:has(.rankpress-content-image__caption)) .rankpress-content-image__img {
    border-radius: 12px;
}

.rankpress-content-image__caption {
    padding: 12px 16px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--po-text-light, #4a5568);
    background: #f8fafc;
    text-align: center;
    font-style: italic;
}

/* Mobile responsive - fullbleed sans scrollbar horizontale */
@media (max-width: 767px) {
    .rankpress-content-image {
        margin: 1.5rem 0;
        position: relative;
        left: 50%;
        transform: translateX(-50%);
        width: 100vw;
        border-radius: 0;
    }

    .rankpress-content-image__img {
        border-radius: 0;
    }

    .rankpress-content-image:not(:has(.rankpress-content-image__caption)) .rankpress-content-image__img {
        border-radius: 0;
    }

    .rankpress-content-image__caption {
        padding: 10px 15px;
        font-size: 13px;
    }
}

