/**
 * Realisations Portfolio - CSS Public v2.4
 * Compatible Elementor - Styles forcés
 */

:root {
    --rp-primary: #046BD2;
    --rp-secondary: #1a1a1a;
    --rp-text: #ffffff;
    --rp-text-light: #cccccc;
    --rp-card-bg: #F8BC0C;
    --rp-btn-bg: #046BD2;
    --rp-btn-text: #fff;
    --rp-radius: 8px;
    --rp-gap: 30px;
    --rp-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    --rp-ratio: 100%;
    --rp-transition: all 0.3s ease;
}

/* ========================================
   BOX SIZING GLOBAL
   ======================================== */

.rp-portfolio,
.rp-portfolio *,
.rp-portfolio *::before,
.rp-portfolio *::after {
    box-sizing: border-box;
}

/* ========================================
   CONTENEUR PRINCIPAL
   ======================================== */

.rp-portfolio {
    width: 85%;
    max-width: 100%;
    margin: 0 auto;
    padding: 40px 20px;
    overflow: hidden;
}

/* ========================================
   FILTRES
   ======================================== */

.rp-filter {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-bottom: 40px;
    padding: 0;
    width: 100%;
}

.rp-filter-btn {
    padding: 12px 28px;
    background: var(--rp-card-bg);
    border: 2px solid #444;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rp-text);
    cursor: pointer;
    transition: var(--rp-transition);
}

.rp-filter-btn:hover {
    border-color: var(--rp-primary) !important;
    color: var(--rp-primary) !important;
    background-color: var(--rp-secondary) !important;
}

.rp-filter-btn.active {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #fff;
}

/* Style Pills */
.rp-filter-pills .rp-filter-btn {
    border-radius: 8px;
    padding: 10px 20px;
}

/* Style Underline */
.rp-filter-underline {
    border-bottom: 2px solid #eee;
    gap: 0;
}

.rp-filter-underline .rp-filter-btn {
    border: none;
    border-radius: 0;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.rp-filter-underline .rp-filter-btn.active {
    background: transparent;
    color: var(--rp-primary);
    border-bottom-color: var(--rp-primary);
}

/* ========================================
   BARRE DE RECHERCHE - Override Astra
   ======================================== */

.rp-portfolio .rp-search-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 15px !important;
    background: #0C2053 !important;
    padding: 20px 30px !important;
    border-radius: 50px !important;
    margin-bottom: 40px !important;
    max-width: 800px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    flex-wrap: nowrap !important;
}

.rp-portfolio .rp-search-field {
    flex: 1 !important;
    min-width: 180px !important;
    max-width: 280px !important;
}

/* Override complet pour les selects - Astra */
.rp-portfolio .rp-search-bar select,
.rp-portfolio .rp-search-bar select.rp-select,
.rp-portfolio select.rp-select,
.rp-portfolio .rp-select,
body .rp-portfolio .rp-select,
body.flavor-flavor-flavor .rp-portfolio .rp-select {
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 12px 40px 12px 20px !important;
    margin: 0 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: 2px solid #F8BC0C !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    font-style: normal !important;
    color: #ffffff !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23ffffff' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 15px center !important;
    background-size: 12px !important;
    box-shadow: none !important;
    outline: none !important;
    line-height: 1.4 !important;
}

.rp-portfolio .rp-select:focus,
.rp-portfolio .rp-search-bar select:focus {
    outline: none !important;
    border-color: #F8BC0C !important;
    box-shadow: 0 0 0 3px rgba(243, 227, 0, 0.3) !important;
}

.rp-portfolio .rp-select option,
.rp-portfolio .rp-search-bar select option {
    background: #1a1a1a !important;
    color: #ffffff !important;
    padding: 10px !important;
}

/* Bouton rechercher - Override */
.rp-portfolio .rp-search-button,
.rp-portfolio button.rp-search-button,
body .rp-portfolio .rp-search-button {
    padding: 14px 35px !important;
    background: #F8BC0C !important;
    background-color: #F8BC0C !important;
    border: none !important;
    border-radius: 50px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #fff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    white-space: nowrap !important;
    height: auto !important;
    line-height: 1.4 !important;
    min-height: 48px !important;
}

.rp-portfolio .rp-search-button:hover,
.rp-portfolio button.rp-search-button:hover {
    background: #F8BC0C !important;
    background-color: #F8BC0C !important;
    transform: translateY(-2px) !important;
}

@media screen and (max-width: 768px) {
    .rp-portfolio .rp-search-bar {
        flex-direction: column !important;
        border-radius: 20px !important;
        padding: 20px !important;
        gap: 10px !important;
    }
    
    .rp-portfolio .rp-search-field {
        width: 100% !important;
        max-width: 100% !important;
    }
    
    .rp-portfolio .rp-search-button,
    .rp-portfolio button.rp-search-button {
        width: 100% !important;
    }
}

/* ========================================
   GRILLE
   ======================================== */

.rp-grid {
    display: grid;
    gap: var(--rp-gap);
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
}

/* ========================================
   CARTE - Styles forcés pour Elementor
   ======================================== */

.rp-portfolio .rp-item {
    background: #2d2d2d !important;
    border-radius: var(--rp-radius) !important;
    overflow: hidden !important;
    transition: var(--rp-transition);
    opacity: 0;
    animation: rpFadeUp 0.5s ease forwards;
    min-width: 0;
    position: relative;
    padding-bottom: 3px;
    border: none !important;
    box-shadow: none !important;
}

/* Trait en bas de la carte - 100% largeur */
.rp-portfolio .rp-item::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #F8BC0C !important;
}

.rp-portfolio .rp-item-link {
    display: block;
    text-decoration: none !important;
    color: inherit;
}

.rp-portfolio .rp-item-image {
    position: relative;
    padding-top: 72%;
    overflow: hidden;
    background: #0C2053 !important;
    border-radius: var(--rp-radius) var(--rp-radius) 0 0 !important;
}

.rp-portfolio .rp-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.rp-portfolio .rp-item-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #333, #222) !important;
}

.rp-portfolio .rp-item-placeholder .dashicons {
    font-size: 50px;
    width: 50px;
    height: 50px;
    color: #666 !important;
}

.rp-portfolio .rp-item-content {
    padding: 15px !important;
    background: #0C2053 !important;
}

.rp-portfolio .rp-item-category {
    display: block !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #F8BC0C !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px;
    margin-bottom: 8px !important;
    background: transparent !important;
}

.rp-portfolio .rp-item-title,
.rp-portfolio .rp-item-title a,
.rp-portfolio .rp-item h3, .rp-single-modern .rp-item-title,
.rp-single-modern .rp-item-title a, .rp-single-modern .rp-item h3 {
    margin: 0 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.4 !important;
    background: transparent !important;
}

.rp-portfolio .rp-item-location {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 13px;
    color: #cccccc !important;
}

.rp-portfolio .rp-item-location .dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    color: #F8BC0C !important;
}

.rp-portfolio .rp-item-excerpt {
    margin: 12px 0 0;
    font-size: 14px;
    color: #cccccc !important;
    line-height: 1.6;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */


.rp-hover-zoom:hover .rp-item-image img {
    transform: scale(1.05);
}

.rp-hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

.rp-hover-glow:hover {
    box-shadow: 0 0 20px rgba(201, 162, 39, 0.3);
}

/* ========================================
   CARD STYLES
   ======================================== */

.rp-style-flat .rp-item {
    box-shadow: none;
    border: 1px solid #e0e0e0;
}

.rp-style-minimal .rp-item {
    box-shadow: none;
    border-radius: 0;
}

.rp-style-minimal .rp-item::after {
    display: none;
}

.rp-style-overlay .rp-item {
    position: relative;
}

.rp-style-overlay .rp-item-content {
    position: absolute;
    bottom: 3px;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    color: #fff;
}

.rp-style-overlay .rp-item-title {
    color: #fff;
}

.rp-style-overlay .rp-item-category {
    color: var(--rp-primary);
}

.rp-style-overlay .rp-item::after {
    background: var(--rp-primary);
}

.rp-style-overlay .rp-item-image {
    padding-top: 100%;
}

/* ========================================
   PAGINATION
   ======================================== */

.rp-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin-top: 50px;
    padding: 20px 0;
    width: 100%;
}

.rp-pagination a,
.rp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    background: var(--rp-card-bg);
    border: 2px solid #0C2053;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rp-text);
    text-decoration: none;
    transition: var(--rp-transition);
}

.rp-pagination a:hover {
    border-color: var(--rp-primary);
    color: var(--rp-primary);
}

.rp-pagination .current {
    background: var(--rp-primary);
    border-color: var(--rp-primary);
    color: #fff;
}

.rp-pagination .dots {
    border: none;
    background: none;
    min-width: 30px;
    padding: 0;
}

.rp-pagination .prev,
.rp-pagination .next {
    padding: 0 18px;
    font-weight: 500;
}

.rp-pagination .prev:not([href]),
.rp-pagination .next:not([href]) {
    opacity: 0.4;
    pointer-events: none;
}

.rp-page-info {
    border: none;
    background: none;
}

.rp-load-more {
    display: block;
    width: 100%;
    max-width: 280px;
    margin: 50px auto 0;
    padding: 16px 40px;
    background: transparent;
    border: 2px solid var(--rp-primary);
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: var(--rp-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: var(--rp-transition);
}

.rp-load-more:hover {
    background: var(--rp-primary);
    color: #fff;
}

/* ========================================
   PAGE SINGLE - Thème sombre
   ======================================== */

.rp-single {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background: transparent;
}

/* Navigation précédent/suivant */
.rp-single-nav {
    display: flex;
    justify-content: space-between;
    margin-bottom: 40px;
}

.rp-nav-prev,
.rp-nav-next {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: #2d2d2d !important;
    border: 2px solid #444 !important;
    border-radius: 50px;
    text-decoration: none !important;
    color: #ffffff !important;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.rp-nav-prev:hover,
.rp-nav-next:hover {
    border-color: #DB1100 !important;
    color: #DB1100 !important;
    background: #1a1a1a !important;
}

.rp-nav-prev .dashicons,
.rp-nav-next .dashicons {
    color: inherit !important;
}

/* Header */
.rp-single-header {
    text-align: center;
    margin-bottom: 50px;
}

.rp-single-title,
.rp-single h1,
.rp-single-header h1 {
    font-size: 42px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 20px 0 !important;
    line-height: 1.2 !important;
}

.rp-single-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 25px;
}

.rp-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #cccccc !important;
}

.rp-single-meta .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #DB1100 !important;
}

/* Badge catégorie */
.rp-meta-category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(219, 17, 0, 0.15) !important;
    border: 1px solid rgba(219, 17, 0, 0.3);
    border-radius: 25px;
    color: #DB1100 !important;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Galerie */
.rp-single-gallery {
    margin-bottom: 50px;
}

.rp-gallery-main {
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 15px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.rp-gallery-main img {
    width: 100%;
    height: auto;
    display: block;
}

.rp-gallery-main a {
    display: block;
    cursor: zoom-in;
}

.rp-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.rp-gallery-thumb {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    opacity: 0.6;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.rp-gallery-thumb:hover,
.rp-gallery-thumb.active {
    opacity: 1;
    border-color: #DB1100 !important;
}

.rp-gallery-thumb img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    display: block;
}

/* Description */
.rp-single-description {
    font-size: 16px;
    line-height: 1.9;
    color: #cccccc !important;
    background: #2d2d2d;
    padding: 40px;
    border-radius: 12px;
    border-left: 4px solid #DB1100;
}

.rp-single-description p {
    margin-bottom: 1.5em;
    color: #cccccc !important;
}

.rp-single-description p:last-child {
    margin-bottom: 0;
}

.rp-single-description strong,
.rp-single-description b {
    color: #ffffff !important;
    font-weight: 700;
}

.rp-single-description a {
    color: #DB1100 !important;
    text-decoration: underline;
}

.rp-single-description a:hover {
    color: #ff3333 !important;
}

/* Projets similaires */
.rp-related {
    margin-top: 80px;
    padding-top: 50px;
    border-top: 1px solid #333;
}

.rp-related-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    color: #ffffff !important;
    margin-bottom: 40px;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.rp-item:nth-child(1) {
    animation-delay: 0.05s;
}

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

.rp-item:nth-child(3) {
    animation-delay: 0.15s;
}

.rp-item:nth-child(4) {
    animation-delay: 0.2s;
}

.rp-item:nth-child(5) {
    animation-delay: 0.25s;
}

.rp-item:nth-child(6) {
    animation-delay: 0.3s;
}

.rp-item:nth-child(n+7) {
    animation-delay: 0.35s;
}

@keyframes rpFadeUp {
    from {
        opacity: 0;
        transform: translateY(25px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rp-item.rp-hidden {
    display: none;
}

/* No Results */
.rp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px;
    background: #f9f9f9;
    border-radius: var(--rp-radius);
    color: var(--rp-text-light);
}

/* ========================================
   RESPONSIVE
   ======================================== */

/* Grille random 6 colonnes */
@media screen and (max-width: 1400px) {
    .rp-grid-random {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media screen and (max-width: 1200px) {
    .rp-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }

    .rp-grid-random {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media screen and (max-width: 992px) {
    .rp-portfolio {
        padding: 30px 15px;
    }

    .rp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .rp-grid-random {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .rp-single-title {
        font-size: 32px;
    }
}

@media screen and (max-width: 768px) {
    .rp-portfolio {
        padding: 20px 15px;
    }

    .rp-grid-random {
        grid-template-columns: repeat(2, 1fr) !important;
    }

    .rp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .rp-filter {
        gap: 8px;
    }

    .rp-filter-btn {
        padding: 10px 18px;
        font-size: 12px;
    }

    .rp-item-content {
        padding-top: 12px;
    }

    .rp-item-title {
        font-size: 14px;
    }

    .rp-item-category {
        font-size: 10px;
    }

    .rp-single {
        padding: 20px 15px;
    }

    .rp-single-title,
    .rp-single h1 {
        font-size: 28px !important;
    }

    .rp-single-nav {
        flex-direction: column;
        gap: 10px;
    }

    .rp-nav-prev,
    .rp-nav-next {
        justify-content: center;
    }

    .rp-single-description {
        padding: 25px;
    }

    .rp-pagination {
        gap: 4px;
    }

    .rp-pagination a,
    .rp-pagination span {
        min-width: 38px;
        height: 38px;
        font-size: 13px;
    }

    .rp-gallery-thumb img {
        height: 60px;
    }
}

@media screen and (max-width: 480px) {
    .rp-portfolio {
        padding: 15px 10px;
    }

    .rp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rp-grid-random {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .rp-filter {
        flex-direction: column;
        align-items: center;
    }

    .rp-filter-btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }

    .rp-item-content {
        padding-top: 15px;
    }

    .rp-item-title {
        font-size: 16px;
    }

    .rp-single-title,
    .rp-single h1 {
        font-size: 24px !important;
    }

    .rp-single-description {
        padding: 20px;
    }

    .rp-single-meta {
        flex-direction: column;
        gap: 10px;
    }
}
/* ========================================
   PAGE SINGLE - LAYOUT 2 COLONNES
   ======================================== */

.rp-single-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 40px;
    align-items: start;
    margin-bottom: 60px;
}

.rp-single-main {
    min-width: 0;
}

/* ========================================
   SIDEBAR
   ======================================== */

.rp-single-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 140px;
}

/* Card générique sidebar */
.rp-sidebar-card {
    border-radius: 12px;
    overflow: hidden;
}

/* ---- Card Détail du projet ---- */
.rp-sidebar-details {
    background: #2d2d2d;
    border: 1px solid rgba(219, 17, 0, 0.2);
}

.rp-sidebar-card-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 20px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.rp-sidebar-card-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(219, 17, 0, 0.15);
    border-radius: 8px;
    color: #DB1100;
    flex-shrink: 0;
}

.rp-sidebar-card-title {
    margin: 0 !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.3 !important;
}

/* Liste des détails */
.rp-detail-list {
    list-style: none !important;
    margin: 0 !important;
    padding: 8px 0 !important;
}

.rp-detail-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 22px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    transition: background 0.2s ease;
}

.rp-detail-item:last-child {
    border-bottom: none;
}

.rp-detail-item:hover {
    background: rgba(255, 255, 255, 0.04);
}

.rp-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: rgba(219, 17, 0, 0.12);
    border-radius: 8px;
    color: #DB1100;
    flex-shrink: 0;
}

.rp-detail-text {
    font-size: 14px !important;
    color: #cccccc !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* ---- Card Contact ---- */
.rp-sidebar-contact {
    position: relative;
    min-height: 260px;
    background:
        linear-gradient(
            160deg,
            rgba(26, 26, 26, 0.82) 0%,
            rgba(219, 17, 0, 0.55) 60%,
            rgba(26, 26, 26, 0.92) 100%
        ),
        url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="400" height="300"><defs><filter id="noise"><feTurbulence type="fractalNoise" baseFrequency="0.65" numOctaves="3" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/></filter></defs><rect width="400" height="300" filter="url(%23noise)" opacity="0.12"/></svg>');
    background-size: cover;
    background-position: center;
}

.rp-sidebar-contact::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(26, 26, 26, 0.3) 0%,
        rgba(219, 17, 0, 0.18) 50%,
        rgba(26, 26, 26, 0.85) 100%
    );
    border-radius: 12px;
}

.rp-sidebar-contact-overlay {
    position: relative;
    z-index: 1;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.rp-sidebar-contact-title {
    margin: 0 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    line-height: 1.3 !important;
}

.rp-sidebar-contact-text {
    margin: 0 !important;
    font-size: 13px !important;
    color: rgba(255, 255, 255, 0.82) !important;
    line-height: 1.7 !important;
}

.rp-sidebar-contact-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 6px;
    padding: 10px 20px;
    background: #DB1100;
    border-radius: 50px;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: all 0.3s ease;
    align-self: flex-start;
    border: 2px solid #DB1100;
}

.rp-sidebar-contact-link:hover {
    background: transparent !important;
    color: #ffffff !important;
    border-color: #ffffff !important;
    transform: translateX(3px);
}

/* ========================================
   RESPONSIVE SINGLE LAYOUT
   ======================================== */

@media screen and (max-width: 1024px) {
    .rp-single-layout {
        grid-template-columns: 1fr 280px;
        gap: 28px;
    }
}

@media screen and (max-width: 768px) {
    .rp-single-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rp-single-sidebar {
        position: static;
    }

    .rp-single {
        padding: 20px 15px;
    }
}

/* ========================================
   PAGE SINGLE - LAYOUT SPLIT (Maquette H-TIC)
   ======================================== */

.rp-single-modern {
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 160px 10px 80px 10px; 
    background: linear-gradient(180deg, #046BD2 0%, #071637 100%);
    font-family: inherit;
}

.rp-hero-split {
    width: 100%;
    max-width: 80%; 
    margin: 0 auto;  
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.rp-single-gallery-section,
.rp-related {
    width: 100%;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}
/* --- Colonne Image --- */
.rp-hero-image-col {
    width: 100%;
    display: flex;
    justify-content: center;
}

.rp-hero-main-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.3)); /* Ombre douce sous les mockups */
}

/* --- Fil d'Ariane (Breadcrumbs) --- */
.rp-hero-breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 8px 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 30px;
}

.rp-hero-breadcrumbs a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color 0.2s;
}

.rp-hero-breadcrumbs a:hover {
    color: #FFD200 !important; /* Jaune au survol */
}

.rp-crumb-current {
    color: #FFD200 !important; /* Le jaune de la maquette */
}

/* --- Titre --- */
.rp-hero-title {
    font-size: 46px !important;
    font-weight: 800 !important;
    color: #ffffff !important;
    line-height: 1.2 !important;
    margin: 0 0 30px 0 !important;
}

/* --- Pilules Catégories --- */
.rp-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 40px;
}

.rp-pill {
    padding: 10px 24px;
    border: 1px solid #ffffff;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    color: #ffffff;
    background: transparent;
    transition: all 0.3s ease;
}

.rp-pill:hover {
    background: #ffffff;
    color: #1a1a1a;
}

/* --- Brief du Projet --- */
.rp-hero-brief h2 {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 15px 0 !important;
}

.rp-brief-text {
    font-size: 16px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 30px;
}

.rp-brief-text p {
    color: inherit !important;
}

/* --- Bouton Site Web --- */
.rp-btn-website {
    display: inline-block;
    padding: 14px 32px;
    background: transparent;
    border: 2px solid #FFD200;
    color: #FFD200 !important;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.rp-btn-website:hover {
    background: #FFD200;
    color: #1a1a1a !important;
}

/* --- RESPONSIVE MOBILE --- */
@media screen and (max-width: 1024px) {
    .rp-hero-split {
        grid-template-columns: 1fr; /* On passe sur 1 colonne */
        gap: 40px;
    }
    
    /* Sur mobile, on affiche souvent l'image en premier, ou le texte. 
       Change order à 1 ou 2 selon ce que tu préfères en haut */
    .rp-hero-image-col {
        order: 2; 
    }
    
    .rp-hero-content-col {
        order: 1;
        text-align: center; /* Centre le texte sur mobile */
    }

    .rp-hero-breadcrumbs {
        justify-content: center;
    }

    .rp-hero-pills {
        justify-content: center;
    }
    
    .rp-hero-title {
        font-size: 32px !important;
    }
}
