/* --- Conteneurs de shortcodes (Pills) --- */
.srcp-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
    clear: both;
}

.srcp-pill-link {
    text-decoration: none !important;
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: bold;
    display: inline-block;
    background: #f9f9f9;
    color: #333;
    border: 1px solid #ccc;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s;
}

.srcp-pill-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.srcp-pill-category { background: #2271b1; color: #fff !important; border: 1px solid #2271b1; }
.srcp-pill-post_tag { background: #f0f0f1; color: #3c434a !important; border: 1px solid #8c8f94; }

/* --- Liens auto-générés dans le texte --- */
.srcp-auto-link {
    text-decoration: none !important;
    font-weight: bold;
    border-bottom: 1.5px dotted currentColor;
    color: inherit;
    transition: color 0.2s;
}

.srcp-auto-link:hover {
    color: #2271b1;
}

/* --- Sidebar Latérale --- */
.srcp-sidebar {
    position: fixed;
    right: -320px;
    top: 0;
    width: 320px;
    height: 100vh;
    background: #ffffff;
    z-index: 100000;
    box-shadow: -2px 0 10px rgba(0,0,0,0.1);
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0;
    display: flex;
    flex-direction: column;
}

.srcp-sidebar.active {
    right: 0;
}

.srcp-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.2);
    z-index: 99999;
    display: none;
}

.srcp-sidebar-overlay.active {
    display: block;
}

.srcp-sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid #333;
    background: #fff;
}

.srcp-sidebar-header h3 {
    margin: 0;
    font-size: 16px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#srcp-sidebar-close {
    background: none;
    border: none;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
    color: #999;
}

#srcp-sidebar-close:hover {
    color: #d63638;
}

.srcp-sidebar-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.srcp-loader {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 13px;
    font-style: italic;
}

/* --- Accordéon Sidebar --- */
.srcp-accordion {
    border-bottom: 1px solid #eee;
    margin-bottom: 5px;
}

.srcp-accordion-header {
    padding: 12px 0;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    color: #999;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: color 0.2s;
    user-select: none;
}

.srcp-accordion-header:hover, 
.srcp-accordion-header.active {
    color: #2c3338;
}

.srcp-accordion-icon::after {
    content: "▼";
    font-size: 9px;
    transition: transform 0.3s ease;
    display: inline-block;
}

.srcp-accordion-header.active .srcp-accordion-icon::after {
    transform: rotate(-180deg);
}

.srcp-accordion-content {
    display: none;
    padding-bottom: 15px;
    animation: fadeAccordion 0.3s ease-in-out;
}

.srcp-accordion-content.active {
    display: block;
}

@keyframes fadeAccordion {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* --- Cartes d'articles (Sidebar dans l'accordéon) --- */
.srcp-accordion-content .srcp-card {
    display: flex;
    text-decoration: none !important;
    color: inherit !important;
    gap: 12px;
    padding: 10px 0;
    border: none;
    border-bottom: 1px solid #f0f0f1;
    background: transparent;
    cursor: pointer;
    transition: background 0.2s;
}

.srcp-accordion-content .srcp-card:last-child {
    border-bottom: none;
}

.srcp-accordion-content .srcp-card:hover {
    background: #fcfcfc;
}

.srcp-card-img img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 4px;
    display: block;
}

.srcp-card-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.srcp-card-text h4 {
    margin: 0 0 5px 0;
    font-size: 14px;
    font-weight: bold;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: #2271b1;
}

.srcp-card-text p {
    margin: 0;
    font-size: 12px;
    line-height: 1.4;
    color: #666;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}