/**
 * Recent Posts Bundle - Styles
 * Préserve le style original des articles WordPress
 */

/* Container principal */
.recent-posts-bundle {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.rpb-posts-container {
    display: grid;
    gap: 30px;
}

/* Layout Grille - Affichage en colonne (liste verticale) */
.rpb-layout-grid .rpb-posts-container {
    grid-template-columns: 1fr;
    gap: 40px;
}

/* Layout Liste */
.rpb-layout-list .rpb-posts-container {
    grid-template-columns: 1fr;
}

.rpb-layout-list .rpb-post-item {
    display: flex;
    gap: 20px;
}

.rpb-layout-list .rpb-post-image {
    flex: 0 0 300px;
}

.rpb-layout-list .rpb-post-content {
    flex: 1;
}

/* Layout Carrousel */
.rpb-layout-carousel .rpb-posts-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 15px;
    scrollbar-width: thin;
    scrollbar-color: #ddd #f5f5f5;
}

.rpb-layout-carousel .rpb-post-item {
    flex: 0 0 350px;
    scroll-snap-align: start;
}

.rpb-layout-carousel .rpb-posts-container::-webkit-scrollbar {
    height: 8px;
}

.rpb-layout-carousel .rpb-posts-container::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 4px;
}

.rpb-layout-carousel .rpb-posts-container::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 4px;
}

.rpb-layout-carousel .rpb-posts-container::-webkit-scrollbar-thumb:hover {
    background: #ccc;
}

/* Article individuel */
.rpb-post-item {
    background: #ffffff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.rpb-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}

/* Image de l'article */
.rpb-post-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.rpb-post-image a {
    display: block;
    line-height: 0;
}

.rpb-post-thumbnail {
    width: 100%;
    height: auto;
    object-fit: cover;
    aspect-ratio: 16 / 9;
    transition: transform 0.3s ease;
}

.rpb-post-item:hover .rpb-post-thumbnail {
    transform: scale(1.05);
}

/* Contenu de l'article */
.rpb-post-content {
    padding: 20px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* Catégories */
.rpb-post-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.rpb-category {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: #0073aa;
    color: #ffffff;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.rpb-category:hover {
    background: #005a87;
}

/* Titre de l'article */
.rpb-post-title {
    margin: 0 0 12px 0;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.4;
}

.rpb-post-title a {
    color: #333333;
    text-decoration: none;
    transition: color 0.2s ease;
}

.rpb-post-title a:hover {
    color: #0073aa;
}

/* Meta informations */
.rpb-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e5e5;
    font-size: 14px;
    color: #666666;
}

.rpb-post-author,
.rpb-post-date {
    display: flex;
    align-items: center;
    gap: 6px;
}

.rpb-icon-author::before {
    content: "👤";
    font-size: 14px;
}

.rpb-icon-date::before {
    content: "📅";
    font-size: 14px;
}

/* Contenu complet de l'article */
.rpb-post-content-full {
    margin-bottom: 20px;
    font-size: 16px;
    line-height: 1.8;
    color: #333333;
    flex: 1;
}

/* Préservation complète du style WordPress original */
.rpb-post-content-full p {
    margin: 0 0 1.5em 0;
}

.rpb-post-content-full p:last-child {
    margin-bottom: 0;
}

.rpb-post-content-full h1,
.rpb-post-content-full h2,
.rpb-post-content-full h3,
.rpb-post-content-full h4,
.rpb-post-content-full h5,
.rpb-post-content-full h6 {
    margin: 1.5em 0 0.75em 0;
    font-weight: 700;
    line-height: 1.3;
    color: #222222;
}

.rpb-post-content-full h1 { font-size: 2em; }
.rpb-post-content-full h2 { font-size: 1.75em; }
.rpb-post-content-full h3 { font-size: 1.5em; }
.rpb-post-content-full h4 { font-size: 1.25em; }
.rpb-post-content-full h5 { font-size: 1.1em; }
.rpb-post-content-full h6 { font-size: 1em; }

.rpb-post-content-full strong,
.rpb-post-content-full b {
    font-weight: 700;
}

.rpb-post-content-full em,
.rpb-post-content-full i {
    font-style: italic;
}

.rpb-post-content-full a {
    color: #0073aa;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.rpb-post-content-full a:hover {
    color: #005a87;
}

.rpb-post-content-full ul,
.rpb-post-content-full ol {
    margin: 1.5em 0;
    padding-left: 2em;
}

.rpb-post-content-full ul {
    list-style-type: disc;
}

.rpb-post-content-full ol {
    list-style-type: decimal;
}

.rpb-post-content-full li {
    margin-bottom: 0.5em;
}

.rpb-post-content-full ul ul,
.rpb-post-content-full ol ol,
.rpb-post-content-full ul ol,
.rpb-post-content-full ol ul {
    margin: 0.5em 0;
}

.rpb-post-content-full blockquote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #0073aa;
    background: #f8f9fa;
    font-style: italic;
    color: #555555;
}

.rpb-post-content-full blockquote p {
    margin-bottom: 0;
}

.rpb-post-content-full blockquote cite {
    display: block;
    margin-top: 0.5em;
    font-size: 0.9em;
    font-style: normal;
    color: #777777;
}

.rpb-post-content-full code {
    padding: 2px 6px;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    color: #c7254e;
}

.rpb-post-content-full pre {
    margin: 1.5em 0;
    padding: 1em;
    background: #282c34;
    color: #abb2bf;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    line-height: 1.6;
}

.rpb-post-content-full pre code {
    padding: 0;
    background: transparent;
    border: none;
    color: inherit;
}

.rpb-post-content-full img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1.5em auto;
    border-radius: 5px;
}

.rpb-post-content-full figure {
    margin: 1.5em 0;
}

.rpb-post-content-full figcaption {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #777777;
    text-align: center;
    font-style: italic;
}

.rpb-post-content-full table {
    width: 100%;
    margin: 1.5em 0;
    border-collapse: collapse;
    border-spacing: 0;
}

.rpb-post-content-full table th,
.rpb-post-content-full table td {
    padding: 0.75em;
    border: 1px solid #ddd;
    text-align: left;
}

.rpb-post-content-full table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #333333;
}

.rpb-post-content-full table tr:nth-child(even) {
    background: #f8f9fa;
}

.rpb-post-content-full hr {
    margin: 2em 0;
    border: 0;
    border-top: 2px solid #e5e5e5;
}

/* Support des alignements WordPress */
.rpb-post-content-full .alignleft {
    float: left;
    margin: 0.5em 1.5em 1em 0;
}

.rpb-post-content-full .alignright {
    float: right;
    margin: 0.5em 0 1em 1.5em;
}

.rpb-post-content-full .aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.rpb-post-content-full .alignnone {
    margin: 0.5em 0;
}

/* Support des blocs WordPress (Gutenberg) */
.rpb-post-content-full .wp-block-image {
    margin: 1.5em 0;
}

.rpb-post-content-full .wp-block-quote {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-left: 4px solid #0073aa;
    background: #f8f9fa;
}

.rpb-post-content-full .wp-block-code {
    margin: 1.5em 0;
}

.rpb-post-content-full .wp-block-button__link {
    display: inline-block;
    padding: 0.75em 1.5em;
    background: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.2s ease;
}

.rpb-post-content-full .wp-block-button__link:hover {
    background: #005a87;
    color: #ffffff;
}

.rpb-post-content-full .wp-block-columns {
    display: flex;
    gap: 2em;
    margin: 1.5em 0;
}

.rpb-post-content-full .wp-block-column {
    flex: 1;
}

.rpb-post-content-full .wp-block-separator {
    margin: 2em 0;
    border: 0;
    border-top: 2px solid #e5e5e5;
}

/* Support des galeries */
.rpb-post-content-full .gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 1em;
    margin: 1.5em 0;
}

.rpb-post-content-full .gallery-item {
    margin: 0;
}

.rpb-post-content-full .gallery-icon img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

/* Support des vidéos et iframes */
.rpb-post-content-full iframe,
.rpb-post-content-full video,
.rpb-post-content-full embed,
.rpb-post-content-full object {
    max-width: 100%;
    margin: 1.5em auto;
    display: block;
}

.rpb-post-content-full .wp-video,
.rpb-post-content-full .wp-audio-shortcode {
    margin: 1.5em 0;
}

/* Support des bannières WordPress */
.rpb-post-content-full .wp-block-notification,
.rpb-post-content-full .wp-block-notice,
.rpb-post-content-full .notice,
.rpb-post-content-full .message,
.rpb-post-content-full .alert {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-radius: 5px;
    border-left: 4px solid;
    font-size: 1em;
    line-height: 1.6;
}

/* BANNIÈRES AVEC TEXTE SUR IMAGE (Cover Blocks) */
.rpb-post-content-full .wp-block-cover,
.rpb-post-content-full .wp-block-cover-image {
    position: relative;
    margin: 1.5em 0;
    min-height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border-radius: 8px;
}

.rpb-post-content-full .wp-block-cover__image-background,
.rpb-post-content-full .wp-block-cover-image-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.rpb-post-content-full .wp-block-cover__inner-container,
.rpb-post-content-full .wp-block-cover-text {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 2em;
    text-align: center;
    width: 100%;
    max-width: 840px;
}

/* Overlay pour améliorer la lisibilité du texte */
.rpb-post-content-full .wp-block-cover::before,
.rpb-post-content-full .wp-block-cover-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

/* Support des différentes intensités d'overlay */
.rpb-post-content-full .wp-block-cover.has-background-dim::before {
    background: rgba(0, 0, 0, 0.5);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-10::before {
    background: rgba(0, 0, 0, 0.1);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-20::before {
    background: rgba(0, 0, 0, 0.2);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-30::before {
    background: rgba(0, 0, 0, 0.3);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-40::before {
    background: rgba(0, 0, 0, 0.4);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-50::before {
    background: rgba(0, 0, 0, 0.5);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-60::before {
    background: rgba(0, 0, 0, 0.6);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-70::before {
    background: rgba(0, 0, 0, 0.7);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-80::before {
    background: rgba(0, 0, 0, 0.8);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-90::before {
    background: rgba(0, 0, 0, 0.9);
}

.rpb-post-content-full .wp-block-cover.has-background-dim-100::before {
    background: rgba(0, 0, 0, 1);
}

/* Alignement du contenu dans la bannière */
.rpb-post-content-full .wp-block-cover.has-custom-content-position .wp-block-cover__inner-container {
    align-self: auto;
}

.rpb-post-content-full .wp-block-cover.is-position-top-left .wp-block-cover__inner-container {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
}

.rpb-post-content-full .wp-block-cover.is-position-top-center .wp-block-cover__inner-container {
    align-items: flex-start;
    justify-content: center;
    text-align: center;
}

.rpb-post-content-full .wp-block-cover.is-position-top-right .wp-block-cover__inner-container {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: right;
}

.rpb-post-content-full .wp-block-cover.is-position-center-left .wp-block-cover__inner-container {
    align-items: center;
    justify-content: flex-start;
    text-align: left;
}

.rpb-post-content-full .wp-block-cover.is-position-center-center .wp-block-cover__inner-container {
    align-items: center;
    justify-content: center;
    text-align: center;
}

.rpb-post-content-full .wp-block-cover.is-position-center-right .wp-block-cover__inner-container {
    align-items: center;
    justify-content: flex-end;
    text-align: right;
}

.rpb-post-content-full .wp-block-cover.is-position-bottom-left .wp-block-cover__inner-container {
    align-items: flex-end;
    justify-content: flex-start;
    text-align: left;
}

.rpb-post-content-full .wp-block-cover.is-position-bottom-center .wp-block-cover__inner-container {
    align-items: flex-end;
    justify-content: center;
    text-align: center;
}

.rpb-post-content-full .wp-block-cover.is-position-bottom-right .wp-block-cover__inner-container {
    align-items: flex-end;
    justify-content: flex-end;
    text-align: right;
}

/* Texte dans la bannière */
.rpb-post-content-full .wp-block-cover h1,
.rpb-post-content-full .wp-block-cover h2,
.rpb-post-content-full .wp-block-cover h3,
.rpb-post-content-full .wp-block-cover h4,
.rpb-post-content-full .wp-block-cover h5,
.rpb-post-content-full .wp-block-cover h6,
.rpb-post-content-full .wp-block-cover p,
.rpb-post-content-full .wp-block-cover a {
    color: inherit;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.rpb-post-content-full .wp-block-cover h1,
.rpb-post-content-full .wp-block-cover h2 {
    font-size: 2.5em;
    font-weight: 700;
    margin-bottom: 0.5em;
}

.rpb-post-content-full .wp-block-cover p {
    font-size: 1.2em;
    margin-bottom: 1em;
}

/* Bannière pleine largeur */
.rpb-post-content-full .wp-block-cover.alignfull {
    margin-left: calc(-50vw + 50%);
    margin-right: calc(-50vw + 50%);
    max-width: 100vw;
    width: 100vw;
    border-radius: 0;
}

/* Support des couleurs de fond personnalisées */
.rpb-post-content-full .wp-block-cover.has-background {
    background-size: cover;
    background-position: center;
}

/* Support des vidéos en arrière-plan */
.rpb-post-content-full .wp-block-cover__video-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

/* BANNIÈRES PERSONNALISÉES (Hero Sections) */
.rpb-post-content-full .hero-banner,
.rpb-post-content-full .banner-section,
.rpb-post-content-full .header-banner {
    position: relative;
    margin: 1.5em 0;
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    border-radius: 8px;
    overflow: hidden;
}

.rpb-post-content-full .hero-banner::before,
.rpb-post-content-full .banner-section::before,
.rpb-post-content-full .header-banner::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.rpb-post-content-full .hero-banner .banner-content,
.rpb-post-content-full .banner-section .banner-content,
.rpb-post-content-full .header-banner .banner-content {
    position: relative;
    z-index: 2;
    color: #ffffff;
    padding: 2em;
    text-align: center;
    max-width: 800px;
}

.rpb-post-content-full .banner-content h1,
.rpb-post-content-full .banner-content h2,
.rpb-post-content-full .banner-content h3 {
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 0.5em;
}

.rpb-post-content-full .banner-content p {
    color: #ffffff;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-size: 1.1em;
}

/* Support des bannières avec boutons */
.rpb-post-content-full .wp-block-cover .wp-block-button,
.rpb-post-content-full .banner-content .wp-block-button,
.rpb-post-content-full .banner-content .button,
.rpb-post-content-full .banner-content .btn {
    margin-top: 1em;
}

.rpb-post-content-full .wp-block-cover .wp-block-button__link {
    background: rgba(255, 255, 255, 0.2);
    color: #ffffff;
    padding: 0.75em 1.5em;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.rpb-post-content-full .wp-block-cover .wp-block-button__link:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.5);
}

/* Support des images en arrière-plan avec CSS inline */
.rpb-post-content-full [style*="background-image"] {
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
}

/* Responsive pour les bannières */
@media (max-width: 768px) {
    .rpb-post-content-full .wp-block-cover,
    .rpb-post-content-full .hero-banner,
    .rpb-post-content-full .banner-section {
        min-height: 200px;
    }
    
    .rpb-post-content-full .wp-block-cover h1,
    .rpb-post-content-full .wp-block-cover h2,
    .rpb-post-content-full .banner-content h1,
    .rpb-post-content-full .banner-content h2 {
        font-size: 1.8em;
    }
    
    .rpb-post-content-full .wp-block-cover__inner-container,
    .rpb-post-content-full .banner-content {
        padding: 1.5em;
    }
}

/* Bannières d'alerte (info, warning, etc.) */

/* Bannière d'information (bleu) */
.rpb-post-content-full .wp-block-notification.is-info,
.rpb-post-content-full .notice-info,
.rpb-post-content-full .message-info,
.rpb-post-content-full .alert-info {
    background-color: #e7f3ff;
    border-left-color: #0073aa;
    color: #004a6f;
}

.rpb-post-content-full .wp-block-notification.is-info::before,
.rpb-post-content-full .notice-info::before,
.rpb-post-content-full .alert-info::before {
    content: "ℹ️ ";
    font-style: normal;
}

/* Bannière de succès (vert) */
.rpb-post-content-full .wp-block-notification.is-success,
.rpb-post-content-full .notice-success,
.rpb-post-content-full .message-success,
.rpb-post-content-full .alert-success {
    background-color: #e6f7e6;
    border-left-color: #46b450;
    color: #2d6e2f;
}

.rpb-post-content-full .wp-block-notification.is-success::before,
.rpb-post-content-full .notice-success::before,
.rpb-post-content-full .alert-success::before {
    content: "✅ ";
    font-style: normal;
}

/* Bannière d'avertissement (jaune/orange) */
.rpb-post-content-full .wp-block-notification.is-warning,
.rpb-post-content-full .notice-warning,
.rpb-post-content-full .message-warning,
.rpb-post-content-full .alert-warning {
    background-color: #fff8e5;
    border-left-color: #ffb900;
    color: #856404;
}

.rpb-post-content-full .wp-block-notification.is-warning::before,
.rpb-post-content-full .notice-warning::before,
.rpb-post-content-full .alert-warning::before {
    content: "⚠️ ";
    font-style: normal;
}

/* Bannière d'erreur/danger (rouge) */
.rpb-post-content-full .wp-block-notification.is-error,
.rpb-post-content-full .wp-block-notification.is-danger,
.rpb-post-content-full .notice-error,
.rpb-post-content-full .message-error,
.rpb-post-content-full .alert-error,
.rpb-post-content-full .alert-danger {
    background-color: #ffe6e6;
    border-left-color: #dc3232;
    color: #a02020;
}

.rpb-post-content-full .wp-block-notification.is-error::before,
.rpb-post-content-full .notice-error::before,
.rpb-post-content-full .alert-error::before,
.rpb-post-content-full .alert-danger::before {
    content: "❌ ";
    font-style: normal;
}

/* Bannière générique/neutre (gris) */
.rpb-post-content-full .wp-block-notification,
.rpb-post-content-full .notice,
.rpb-post-content-full .message {
    background-color: #f5f5f5;
    border-left-color: #72777c;
    color: #333333;
}

/* Support des bannières personnalisées avec icônes */
.rpb-post-content-full .banner,
.rpb-post-content-full .callout,
.rpb-post-content-full .notification-box {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-radius: 5px;
    border-left: 4px solid #0073aa;
    background-color: #f8f9fa;
    position: relative;
}

.rpb-post-content-full .banner-icon,
.rpb-post-content-full .callout-icon {
    font-size: 1.2em;
    margin-right: 0.5em;
}

/* Bannières avec titre */
.rpb-post-content-full .wp-block-notification .notification-title,
.rpb-post-content-full .notice .notice-title,
.rpb-post-content-full .banner-title {
    font-weight: 700;
    margin-bottom: 0.5em;
    display: block;
}

/* Support des bannières Bootstrap (si utilisées) */
.rpb-post-content-full .alert-primary {
    background-color: #cfe2ff;
    border-left-color: #084298;
    color: #084298;
}

.rpb-post-content-full .alert-secondary {
    background-color: #e2e3e5;
    border-left-color: #41464b;
    color: #41464b;
}

.rpb-post-content-full .alert-light {
    background-color: #fefefe;
    border-left-color: #636464;
    color: #636464;
}

.rpb-post-content-full .alert-dark {
    background-color: #d3d3d4;
    border-left-color: #141619;
    color: #141619;
}

/* Bannières dismissibles */
.rpb-post-content-full .is-dismissible .notice-dismiss,
.rpb-post-content-full .alert-dismissible .close {
    position: absolute;
    top: 0.5em;
    right: 0.5em;
    padding: 0.5em;
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.2em;
    color: inherit;
    opacity: 0.6;
    transition: opacity 0.2s ease;
}

.rpb-post-content-full .is-dismissible .notice-dismiss:hover,
.rpb-post-content-full .alert-dismissible .close:hover {
    opacity: 1;
}

/* Support des bannières de plugins populaires */
/* Ultimate Blocks */
.rpb-post-content-full .ub-notification {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-radius: 5px;
    border-left: 4px solid;
}

/* Kadence Blocks */
.rpb-post-content-full .kt-info-box {
    margin: 1.5em 0;
    padding: 1.5em;
    border-radius: 5px;
    background-color: #f8f9fa;
}

/* Stackable Blocks */
.rpb-post-content-full .stk-block-notification {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-radius: 5px;
}

/* GenerateBlocks */
.rpb-post-content-full .gb-container.notice {
    margin: 1.5em 0;
    padding: 1em 1.5em;
    border-radius: 5px;
}

/* Clearfix pour les floats */
.rpb-post-content-full::after {
    content: "";
    display: table;
    clear: both;
}

/* Support des légendes d'images WordPress */
.rpb-post-content-full .wp-caption {
    max-width: 100%;
    margin: 1.5em 0;
}

.rpb-post-content-full .wp-caption img {
    margin: 0;
}

.rpb-post-content-full .wp-caption-text {
    margin-top: 0.5em;
    font-size: 0.9em;
    color: #777777;
    text-align: center;
    font-style: italic;
}

/* Message si aucun article */
.rpb-no-posts {
    text-align: center;
    padding: 40px 20px;
    font-size: 16px;
    color: #666666;
    background: #f5f5f5;
    border-radius: 8px;
}

/* Pagination */
.rpb-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 50px;
    padding: 25px 0;
    border-top: 2px solid #e5e5e5;
    gap: 20px;
}

.rpb-pagination-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 30px;
    background: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid #0073aa;
    cursor: pointer;
}

.rpb-pagination-btn:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.3);
}

.rpb-pagination-btn.rpb-disabled {
    background: #f5f5f5;
    color: #999999;
    border-color: #e5e5e5;
    cursor: not-allowed;
    opacity: 0.6;
}

.rpb-pagination-btn.rpb-disabled:hover {
    background: #f5f5f5;
    border-color: #e5e5e5;
    transform: none;
    box-shadow: none;
}

.rpb-arrow-left,
.rpb-arrow-right {
    font-size: 18px;
    font-weight: 700;
    transition: transform 0.3s ease;
}

.rpb-pagination-btn:not(.rpb-disabled):hover .rpb-arrow-left {
    transform: translateX(-3px);
}

.rpb-pagination-btn:not(.rpb-disabled):hover .rpb-arrow-right {
    transform: translateX(3px);
}

.rpb-page-indicator {
    padding: 12px 20px;
    background: #f8f9fa;
    border-radius: 5px;
    font-weight: 600;
    color: #333333;
    font-size: 15px;
    border: 2px solid #e5e5e5;
}

/* Responsive pagination */
@media (max-width: 768px) {
    .rpb-pagination {
        flex-direction: column;
        gap: 15px;
    }
    
    .rpb-pagination-btn {
        width: 100%;
        justify-content: center;
        padding: 15px 25px;
    }
    
    .rpb-page-indicator {
        order: -1;
        width: 100%;
        text-align: center;
    }
}

/* ============================================
   NAVIGATION ENTRE ARTICLES (Single Post)
   ============================================ */

.rpb-single-post-navigation {
    margin: 60px 0 40px 0;
    padding: 40px 0;
    border-top: 2px solid #e5e5e5;
}

.rpb-single-nav-container {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 20px;
    align-items: center;
}

.rpb-single-nav-link {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px;
    background: #f8f9fa;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: #333333;
    transition: all 0.3s ease;
    min-height: 100px;
}

.rpb-single-nav-link:not(.rpb-nav-disabled):hover {
    background: #ffffff;
    border-color: #0073aa;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.2);
}

.rpb-single-nav-link.rpb-nav-disabled {
    opacity: 0;
    pointer-events: none;
}

/* Navigation précédent (à gauche) */
.rpb-single-nav-link.rpb-prev-post {
    justify-content: flex-start;
}

/* Navigation suivant (à droite) */
.rpb-single-nav-link.rpb-next-post {
    justify-content: flex-end;
}

.rpb-nav-arrow {
    font-size: 28px;
    font-weight: 700;
    color: #0073aa;
    transition: transform 0.3s ease;
}

.rpb-single-nav-link:hover .rpb-nav-arrow {
    transform: scale(1.2);
}

.rpb-prev-post:hover .rpb-nav-arrow {
    transform: translateX(-5px);
}

.rpb-next-post:hover .rpb-nav-arrow {
    transform: translateX(5px);
}

.rpb-nav-content {
    display: flex;
    flex-direction: column;
    gap: 5px;
    flex: 1;
}

.rpb-prev-post .rpb-nav-content {
    align-items: flex-start;
    text-align: left;
}

.rpb-next-post .rpb-nav-content {
    align-items: flex-end;
    text-align: right;
}

.rpb-nav-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #0073aa;
    font-weight: 700;
}

.rpb-nav-title {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    max-width: 300px;
}

.rpb-single-nav-link:hover .rpb-nav-title {
    color: #0073aa;
}

/* Bouton retour à la liste */
.rpb-back-to-list {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 25px;
    background: #0073aa;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border: 2px solid #0073aa;
    white-space: nowrap;
}

.rpb-back-to-list:hover {
    background: #005a87;
    border-color: #005a87;
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

.rpb-grid-icon {
    font-size: 18px;
}

/* Responsive navigation entre articles */
@media (max-width: 992px) {
    .rpb-nav-title {
        max-width: 200px;
        font-size: 14px;
    }
    
    .rpb-back-to-list {
        padding: 12px 20px;
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .rpb-single-nav-container {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .rpb-single-nav-link {
        width: 100%;
    }
    
    .rpb-prev-post .rpb-nav-content,
    .rpb-next-post .rpb-nav-content {
        align-items: flex-start;
        text-align: left;
    }
    
    .rpb-single-nav-link.rpb-next-post {
        flex-direction: row-reverse;
    }
    
    .rpb-nav-title {
        max-width: 100%;
    }
    
    .rpb-back-to-list {
        order: -1;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .rpb-single-post-navigation {
        margin: 40px 0 30px 0;
        padding: 30px 0;
    }
    
    .rpb-single-nav-link {
        padding: 15px;
        min-height: 80px;
    }
    
    .rpb-nav-arrow {
        font-size: 24px;
    }
    
    .rpb-nav-label {
        font-size: 11px;
    }
    
    .rpb-nav-title {
        font-size: 13px;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .recent-posts-bundle {
        padding: 15px 0;
    }
    
    .rpb-posts-container {
        gap: 20px;
    }
    
    .rpb-layout-grid .rpb-posts-container {
        grid-template-columns: 1fr;
    }
    
    .rpb-layout-list .rpb-post-item {
        flex-direction: column;
    }
    
    .rpb-layout-list .rpb-post-image {
        flex: 1;
    }
    
    .rpb-post-title {
        font-size: 20px;
    }
    
    .rpb-post-content {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .rpb-post-title {
        font-size: 18px;
    }
    
    .rpb-post-meta {
        font-size: 13px;
    }
    
    .rpb-post-excerpt {
        font-size: 14px;
    }
    
    .rpb-layout-carousel .rpb-post-item {
        flex: 0 0 280px;
    }
}

/* Animation de chargement */
@keyframes rpb-fade-in {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rpb-post-item {
    animation: rpb-fade-in 0.5s ease forwards;
}

.rpb-post-item:nth-child(2) {
    animation-delay: 0.1s;
}

.rpb-post-item:nth-child(3) {
    animation-delay: 0.2s;
}

.rpb-post-item:nth-child(4) {
    animation-delay: 0.3s;
}

.rpb-post-item:nth-child(5) {
    animation-delay: 0.4s;
}

/* Accessibilité */
.rpb-post-item:focus-within {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}
