/**
 * Realisations Portfolio - CSS Public v3.0 (habillage H-TIC)
 * Reprend les jetons et le langage visuel de hx-premium : marine, jaune, étiquettes « # », pastilles, panneaux, halo.
 * Les variables --hx-* de hx-premium sont utilisées si elles existent, sinon les mêmes valeurs en repli :
 * le plugin reste donc autonome, avec ou sans hx-premium.min.css sur le site.
 * Rangé par composant ; le CSS mort de la v2 (layout sidebar, navigation précédent/suivant, filtres boutons, rouge #DB1100) a été retiré.
 */

/* ========================================
   JETONS
   ======================================== */

:root {
    --rp-primary: #F8BC0C;
    --rp-secondary: #071434;
    --rp-text: #071434;
    --rp-text-light: #A7B2DC;
    --rp-card-bg: #ffffff;
    --rp-btn-bg: #F8BC0C;
    --rp-btn-text: #071434;
    --rp-radius: 26px;
    --rp-gap: 30px;
    --rp-shadow: none;
    --rp-ratio: 72%;
}

.rp-portfolio,
.rp-single-modern,
.rp-single-embed,
.rp-lightbox {
    --rp-navy: var(--hx-navy, #071434);
    --rp-navy2: var(--hx-navy2, #0B2154);
    --rp-yellow: var(--hx-yellow, #F8BC0C);
    --rp-muted: var(--hx-muted, #A7B2DC);
    --rp-line: rgba(255, 255, 255, .14);
    --rp-ease: var(--hx-ease, cubic-bezier(.22, 1, .36, 1));
    --rp-yellow-ink: #B68600; /* jaune lisible sur fond clair */
    font-family: "Lota Grotesque", sans-serif;
}

.rp-portfolio,
.rp-portfolio *,
.rp-portfolio *::before,
.rp-portfolio *::after,
.rp-single-modern,
.rp-single-modern *,
.rp-single-embed,
.rp-single-embed * {
    box-sizing: border-box;
}

/* Étiquette « # Texte » avec filet jaune (équivalent .hx-tag) */
.rp-item-category,
.rp-single-modern .rp-section-tag,
.rp-meta-category {
    display: inline-flex !important;
    align-items: center;
    gap: 10px;
    font-size: .95rem !important;
    font-weight: 500 !important;
    letter-spacing: .02em;
    line-height: 1.4;
    text-transform: none !important;
    color: var(--rp-yellow) !important;
    background: transparent !important;
}

.rp-item-category::before,
.rp-section-tag::before,
.rp-meta-category::before {
    content: "";
    flex: 0 0 22px;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--rp-yellow);
}

/* ========================================
   CONTENEUR PRINCIPAL
   ======================================== */

.rp-portfolio {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
}

/* La grille aléatoire (mur de réalisations) garde son ancienne largeur */
.rp-portfolio-random {
    width: 85%;
    padding: 40px 20px;
}

/* ========================================
   BARRE DE RECHERCHE (catégorie + bouton) - Override Astra / Elementor
   ======================================== */

.rp-portfolio .rp-search-bar {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    max-width: 640px !important;
    margin: 0 0 22px 0 !important;
    padding: 12px !important;
    border: 1px solid var(--rp-line) !important;
    border-radius: 999px !important;
    background: linear-gradient(165deg, var(--rp-navy2) 0%, var(--rp-navy) 100%) !important;
}

.rp-portfolio .rp-search-field {
    flex: 1 1 220px !important;
    min-width: 180px !important;
    max-width: none !important;
}

.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 {
    width: 100% !important;
    height: auto !important;
    min-height: 48px !important;
    margin: 0 !important;
    padding: 12px 44px 12px 22px !important;
    background-color: transparent !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='%23F8BC0C' d='M6 8L1 3h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 18px center !important;
    background-size: 12px !important;
    border: 1px solid rgba(255, 255, 255, .22) !important;
    border-radius: 999px !important;
    font-family: "Lota Grotesque", sans-serif !important;
    font-size: .95rem !important;
    font-weight: 500 !important;
    font-style: normal !important;
    line-height: 1.4 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    box-shadow: none !important;
    outline: none !important;
    transition: border-color .3s, background-color .3s;
}

.rp-portfolio .rp-select:focus,
.rp-portfolio .rp-search-bar select:focus {
    border-color: var(--rp-yellow) !important;
    background-color: rgba(248, 188, 12, .06) !important;
    outline: none !important;
}

.rp-portfolio .rp-select option,
.rp-portfolio .rp-search-bar select option {
    background: #0B2154 !important;
    color: #ffffff !important;
    padding: 10px !important;
}

/* Boutons jaunes pilule (équivalent .hx-btn) */
.rp-portfolio .rp-search-button,
.rp-portfolio button.rp-search-button,
body .rp-portfolio .rp-search-button,
.rp-load-more,
.rp-portfolio .rp-load-more,
.rp-btn-website {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: auto !important;
    height: auto !important;
    min-height: 48px !important;
    padding: 14px 28px !important;
    background: var(--rp-yellow) !important;
    background-color: var(--rp-yellow) !important;
    border: 1px solid transparent !important;
    border-radius: 999px !important;
    font-family: "Lota Grotesque", sans-serif !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    text-decoration: none !important;
    white-space: nowrap !important;
    color: var(--rp-navy) !important;
    cursor: pointer !important;
    box-shadow: none !important;
    transition: transform .3s var(--rp-ease), box-shadow .3s !important;
}

.rp-portfolio .rp-search-button:hover,
.rp-portfolio button.rp-search-button:hover,
.rp-load-more:hover,
.rp-portfolio .rp-load-more:hover,
.rp-btn-website:hover {
    background: var(--rp-yellow) !important;
    color: var(--rp-navy) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 14px 30px -12px rgba(248, 188, 12, .7) !important;
}

.rp-btn-website::after {
    content: "\2192";
    font-size: 1.05em;
    transition: transform .3s var(--rp-ease);
}

.rp-btn-website:hover::after {
    transform: translateX(4px);
}

.rp-load-more {
    display: flex !important;
    margin: 50px auto 0 !important;
}

.rp-load-more:disabled {
    opacity: .6;
    cursor: wait !important;
}

@media screen and (max-width: 768px) {
    .rp-portfolio .rp-search-bar {
        border-radius: 26px !important;
    }

    .rp-portfolio .rp-search-field,
    .rp-portfolio .rp-search-button,
    .rp-portfolio button.rp-search-button {
        flex: 1 1 100% !important;
        width: 100% !important;
    }
}

/* ========================================
   COMPTEUR, CHARGEMENT ET ANCRE (filtre / pagination sans rechargement)
   ======================================== */

.rp-portfolio {
    scroll-margin-top: 110px; /* l'ancre #rp-portfolio ne passe pas sous le header fixe */
}

.rp-results {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px;
    margin: 0 0 28px !important;
    padding-left: 4px;
    font-size: .95rem;
    font-weight: 500;
    line-height: 1.4;
    opacity: .85;
}

.rp-results strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--rp-yellow-ink);
}

.rp-results .rp-results-page {
    opacity: .7;
}

.rp-grid-wrap {
    position: relative;
}

/* Pendant le chargement : grille atténuée + barre jaune qui glisse au-dessus */
.rp-portfolio.is-loading .rp-grid {
    opacity: .35;
    filter: saturate(.7);
    pointer-events: none;
}

.rp-portfolio .rp-grid-wrap::before {
    content: "";
    position: absolute;
    top: -12px;
    left: 0;
    z-index: 5;
    width: 100%;
    height: 3px;
    border-radius: 3px;
    opacity: 0;
    background: linear-gradient(90deg, transparent, var(--rp-yellow) 40%, var(--rp-yellow) 60%, transparent);
    background-size: 40% 100%;
    background-repeat: no-repeat;
    transition: opacity .2s;
}

.rp-portfolio.is-loading .rp-grid-wrap::before {
    opacity: 1;
    animation: rpSlide 1s linear infinite;
}

@keyframes rpSlide {
    from { background-position: -50% 0; }
    to { background-position: 150% 0; }
}

.rp-pagination-wrap {
    min-height: 1px;
}

/* ========================================
   GRILLE
   ======================================== */

.rp-grid {
    display: grid;
    gap: var(--rp-gap);
    grid-template-columns: repeat(4, 1fr);
    width: 100%;
    transition: opacity .3s;
}

/* ========================================
   CARTE (équivalent .hx-proof : panneau marine, image qui s'efface vers le bas)
   ======================================== */

.rp-portfolio .rp-item {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden !important;
    border: 1px solid var(--rp-line) !important;
    border-radius: 26px !important;
    background: linear-gradient(165deg, var(--rp-navy2) 0%, var(--rp-navy) 100%) !important;
    box-shadow: none !important;
    opacity: 0;
    animation: rpFadeUp .7s var(--rp-ease) forwards;
    transition: transform .6s var(--rp-ease), border-color .5s, box-shadow .6s var(--rp-ease);
}

/* Halo qui suit la souris (--mx / --my posés par public.js) */
.rp-portfolio .rp-item::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    opacity: 0;
    transition: opacity .5s;
    background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(248, 188, 12, .16), transparent 45%);
}

/* Filet jaune en pied de carte : repère de 28 px au repos, pleine largeur au survol */
.rp-portfolio .rp-item::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    z-index: 3;
    width: 28px;
    height: 3px;
    border-radius: 0 3px 0 0;
    background: var(--rp-yellow) !important;
    transition: width .6s var(--rp-ease);
}

.rp-portfolio .rp-item:hover {
    transform: translateY(-6px);
    border-color: rgba(248, 188, 12, .55) !important;
    box-shadow: 0 40px 80px -30px rgba(7, 20, 52, .7) !important;
}

.rp-portfolio .rp-item:hover::before {
    opacity: 1;
}

.rp-portfolio .rp-item:hover::after {
    width: 100%;
}

.rp-portfolio .rp-item-link {
    display: block;
    color: inherit;
    text-decoration: none !important;
}

.rp-portfolio .rp-item-image {
    position: relative;
    overflow: hidden;
    padding-top: var(--rp-ratio, 72%);
    border-radius: 0 !important;
    background: var(--rp-navy2) !important;
}

/* Dégradé bas de visuel (équivalent .hx-proof__visual) */
.rp-portfolio .rp-item-image::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, transparent 45%, rgba(7, 20, 52, .92));
}

.rp-portfolio .rp-item-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100% !important;
    object-fit: cover;
    transition: transform 1.2s var(--rp-ease);
}

.rp-portfolio .rp-item-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--rp-navy2), var(--rp-navy)) !important;
}

.rp-portfolio .rp-item-placeholder .dashicons {
    width: 50px;
    height: 50px;
    font-size: 50px;
    color: rgba(255, 255, 255, .25) !important;
}

.rp-portfolio .rp-item-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    margin-top: -34px; /* la carte « remonte » sous le dégradé de l'image */
    padding: 0 24px 26px !important;
    background: transparent !important;
}

.rp-portfolio .rp-item-category {
    margin: 0 !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-family: "Lota Grotesque", sans-serif !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    color: #ffffff !important;
    background: transparent !important;
}

/* « Voir le projet » : lien fléché */
.rp-portfolio .rp-item-more {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
    font-size: .92rem;
    font-weight: 600;
    color: #D5DBF2;
    transition: color .3s;
}

.rp-portfolio .rp-item-more::after {
    content: "\2192";
    color: var(--rp-yellow);
    transition: transform .3s var(--rp-ease);
}

.rp-portfolio .rp-item:hover .rp-item-more {
    color: #ffffff;
}

.rp-portfolio .rp-item:hover .rp-item-more::after {
    transform: translateX(6px);
}

.rp-portfolio .rp-item-underline {
    display: none;
}

/* Mur de réalisations (6 colonnes) : cartes compactes, sans lien fléché */
.rp-grid-random .rp-item-more {
    display: none;
}

.rp-grid-random .rp-item {
    border-radius: 18px !important;
}

.rp-grid-random .rp-item-content {
    margin-top: -26px;
    padding: 0 14px 16px !important;
}

.rp-grid-random .rp-item-title {
    font-size: .95rem !important;
}

/* ========================================
   EFFETS AU SURVOL (réglage « Effet »)
   ======================================== */

.rp-hover-zoom:hover .rp-item-image img,
.rp-hover-lift:hover .rp-item-image img,
.rp-hover-glow:hover .rp-item-image img {
    transform: scale(1.05);
}

.rp-hover-glow:hover {
    box-shadow: 0 0 0 1px rgba(248, 188, 12, .4), 0 30px 60px -28px rgba(248, 188, 12, .35) !important;
}

/* ========================================
   STYLES DE CARTE (réglage « Style »)
   ======================================== */

.rp-style-flat .rp-item {
    box-shadow: none !important;
}

.rp-style-minimal .rp-item {
    border-radius: 12px !important;
}

.rp-style-minimal .rp-item::after {
    display: none;
}

/* Texte posé sur l'image (équivalent .hx-photocard) */
.rp-style-overlay .rp-item-image {
    padding-top: 100%;
}

.rp-style-overlay .rp-item-content {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    margin-top: 0;
    padding: 24px !important;
}

/* ========================================
   PAGINATION
   ======================================== */

.rp-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-top: 50px;
    padding: 20px 0 0;
}

.rp-pagination a,
.rp-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1.5px solid rgba(7, 20, 52, .14);
    border-radius: 999px;
    background: #ffffff;
    font-size: .95rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    color: var(--rp-navy);
    transition: border-color .3s, background .3s, transform .3s var(--rp-ease);
}

.rp-pagination a:hover {
    border-color: var(--rp-yellow);
    background: rgba(248, 188, 12, .1);
    color: var(--rp-navy);
}

.rp-pagination .current {
    border-color: var(--rp-yellow);
    background: var(--rp-yellow);
    color: var(--rp-navy);
}

.rp-pagination .dots {
    min-width: 30px;
    padding: 0;
    border: none;
    background: none;
}

.rp-pagination .prev,
.rp-pagination .next {
    padding: 0 18px;
}

.rp-pagination .prev:not([href]),
.rp-pagination .next:not([href]) {
    opacity: .4;
    pointer-events: none;
}

.rp-page-info {
    border: none !important;
    background: none !important;
}

/* ========================================
   ANIMATIONS
   ======================================== */

.rp-item:nth-child(1) { animation-delay: .05s; }
.rp-item:nth-child(2) { animation-delay: .12s; }
.rp-item:nth-child(3) { animation-delay: .19s; }
.rp-item:nth-child(4) { animation-delay: .26s; }
.rp-item:nth-child(5) { animation-delay: .33s; }
.rp-item:nth-child(6) { animation-delay: .4s; }
.rp-item:nth-child(n+7) { animation-delay: .45s; }

@keyframes rpFadeUp {
    from {
        opacity: 0;
        transform: translateY(32px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.rp-item.rp-hidden {
    display: none;
}

.rp-no-results {
    grid-column: 1 / -1;
    padding: 60px 24px;
    border-radius: 22px;
    background: #F4F6FB;
    text-align: center;
    font-weight: 500;
    color: var(--hx-navy, #071434);
}

/* ========================================
   PAGE SINGLE /realisation/<slug>
   (équivalent hero marine + .hx-panel du site)
   ======================================== */

.rp-single-modern {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 160px 5% 90px;
    background:
        radial-gradient(900px 420px at 88% -8%, rgba(248, 188, 12, .16), transparent 62%),
        radial-gradient(700px 500px at -10% 110%, rgba(71, 102, 214, .28), transparent 60%),
        linear-gradient(180deg, #046BD2 0%, var(--rp-navy) 100%);
    color: #ffffff;
}

/* Quadrillage discret */
.rp-single-modern::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: .3;
    background-image:
        linear-gradient(var(--rp-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--rp-line) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
    mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 72%);
}

.rp-hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.rp-hero-image-col {
    display: flex;
    justify-content: center;
    width: 100%;
}

.rp-hero-noimg {
    width: 100%;
    padding-top: 75%;
    border: 1px solid var(--rp-line);
    border-radius: 26px;
    background: rgba(255, 255, 255, .06);
}

.rp-hero-main-img {
    width: 100%;
    height: auto;
    max-height: 700px;
    object-fit: contain;
    filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35));
}

/* Fil d'Ariane (pastille) */
.rp-hero-breadcrumbs {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 28px;
    padding: 8px 22px;
    border: 1px solid rgba(255, 255, 255, .4);
    border-radius: 20px;
    font-size: .92rem;
    font-weight: 500;
    color: #ffffff;
}

.rp-hero-breadcrumbs a {
    color: #ffffff !important;
    text-decoration: none !important;
    transition: color .3s;
}

.rp-hero-breadcrumbs a:hover,
.rp-crumb-current {
    color: var(--rp-yellow) !important;
}

.rp-hero-title {
    margin: 0 0 28px 0 !important;
    font-family: "Lota Grotesque", sans-serif !important;
    font-size: clamp(2rem, 3.6vw, 3rem) !important;
    font-weight: 800 !important;
    line-height: 1.12 !important;
    letter-spacing: -.01em;
    color: #ffffff !important;
}

/* Catégories en pastilles (équivalent .hx-chips) */
.rp-hero-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 36px;
}

.rp-pill {
    padding: 9px 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 999px;
    background: rgba(255, 255, 255, .04);
    font-size: .92rem;
    font-weight: 500;
    color: #ffffff;
    transition: border-color .3s, background .3s;
}

.rp-pill:hover {
    border-color: var(--rp-yellow);
    background: rgba(248, 188, 12, .08);
    color: #ffffff;
}

/* Brief */
.rp-hero-brief h2 {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0 0 16px 0 !important;
    font-family: "Lota Grotesque", sans-serif !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    color: #ffffff !important;
}

.rp-hero-brief h2::before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--rp-yellow);
}

.rp-brief-text {
    margin-bottom: 32px;
    font-size: 1.05rem;
    line-height: 1.75;
    color: #D5DBF2;
}

.rp-brief-text p {
    margin: 0 0 1em;
    color: inherit !important;
}

.rp-brief-text p:last-child {
    margin-bottom: 0;
}

.rp-brief-text a {
    color: var(--rp-yellow);
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* Galerie et projets similaires (sections de la page single) */
.rp-single-gallery-section,
.rp-related {
    width: 100%;
    max-width: 1200px;
    margin: 90px auto 0;
}

.rp-single-modern .rp-section-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-bottom: 36px;
    text-align: center;
}

.rp-single-modern .rp-section-title,
.rp-related-title {
    margin: 0 !important;
    font-family: "Lota Grotesque", sans-serif !important;
    font-size: clamp(1.7rem, 2.8vw, 2.2rem) !important;
    font-weight: 700 !important;
    line-height: 1.2 !important;
    color: #ffffff !important;
}

.rp-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.rp-gallery-link {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid var(--rp-line);
    border-radius: 22px;
    cursor: zoom-in;
    transition: border-color .4s, transform .5s var(--rp-ease);
}

.rp-gallery-link:hover {
    border-color: rgba(248, 188, 12, .6);
    transform: translateY(-4px);
}

.rp-gallery-link img {
    display: block;
    width: 100%;
    height: 170px;
    object-fit: cover;
    transition: transform 1.2s var(--rp-ease);
}

.rp-gallery-link:hover img {
    transform: scale(1.05);
}

/* ========================================
   SHORTCODE [realisation] (fiche intégrée) : panneau marine autonome
   ======================================== */

.rp-single-embed {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: clamp(24px, 4vw, 48px);
    border-radius: 32px;
    background:
        radial-gradient(900px 420px at 88% -8%, rgba(248, 188, 12, .13), transparent 62%),
        linear-gradient(165deg, var(--rp-navy2) 0%, var(--rp-navy) 100%);
    color: #D5DBF2;
}

.rp-single-header {
    margin-bottom: 36px;
    text-align: center;
}

.rp-single-title,
.rp-single-header h1,
.rp-single-header h2 {
    margin: 16px 0 !important;
    font-family: "Lota Grotesque", sans-serif !important;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem) !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    color: #ffffff !important;
}

.rp-single-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
}

.rp-single-meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .95rem;
    color: var(--rp-muted) !important;
}

.rp-single-meta .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
    color: var(--rp-yellow) !important;
}

.rp-single-gallery {
    margin-bottom: 36px;
}

.rp-gallery-main {
    margin-bottom: 14px;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .6);
}

.rp-gallery-main a {
    display: block;
    cursor: zoom-in;
}

.rp-gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    transition: opacity .3s;
}

.rp-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 12px;
}

.rp-gallery-thumb {
    display: block;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 14px;
    opacity: .6;
    transition: opacity .3s, border-color .3s;
}

.rp-gallery-thumb:hover,
.rp-gallery-thumb.active {
    border-color: var(--rp-yellow) !important;
    opacity: 1;
}

.rp-gallery-thumb img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
}

.rp-single-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #D5DBF2 !important;
}

.rp-single-description p {
    margin: 0 0 1.4em;
    color: #D5DBF2 !important;
}

.rp-single-description p:last-child {
    margin-bottom: 0;
}

.rp-single-description strong,
.rp-single-description b {
    font-weight: 700;
    color: #ffffff !important;
}

.rp-single-description a {
    color: var(--rp-yellow) !important;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ========================================
   RESPONSIVE
   ======================================== */

@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: 1024px) {
    .rp-hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .rp-hero-image-col {
        order: 2;
    }

    .rp-hero-content-col {
        order: 1;
        text-align: center;
    }

    .rp-hero-breadcrumbs,
    .rp-hero-pills {
        justify-content: center;
    }

    .rp-hero-brief h2 {
        align-items: center;
    }
}

@media screen and (max-width: 992px) {
    .rp-portfolio-random {
        padding: 30px 15px;
    }

    .rp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .rp-grid-random {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media screen and (max-width: 768px) {
    .rp-single-modern {
        padding: 120px 5% 60px;
    }

    .rp-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .rp-portfolio .rp-item {
        border-radius: 20px !important;
    }

    .rp-portfolio .rp-item-content {
        padding: 0 16px 18px !important;
    }

    .rp-portfolio .rp-item-title {
        font-size: 1rem !important;
    }

    .rp-pagination {
        gap: 5px;
    }

    .rp-pagination a,
    .rp-pagination span {
        min-width: 38px;
        height: 38px;
        font-size: .85rem;
    }

    .rp-gallery-link img {
        height: 130px;
    }
}

@media screen and (max-width: 480px) {
    .rp-portfolio-random {
        padding: 15px 10px;
    }

    .rp-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .rp-grid-random {
        grid-template-columns: repeat(1, 1fr) !important;
    }

    .rp-single-meta {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }
}

/* ========================================
   ACCESSIBILITÉ : réduction des animations
   ======================================== */

@media (prefers-reduced-motion: reduce) {
    .rp-portfolio.is-loading .rp-grid-wrap::before {
        animation: none !important;
    }

    .rp-portfolio .rp-item {
        opacity: 1;
        animation: none !important;
        transition: none !important;
    }

    .rp-portfolio .rp-item:hover,
    .rp-gallery-link:hover {
        transform: none;
    }

    .rp-portfolio .rp-item-image img,
    .rp-gallery-link img {
        transition: none !important;
        transform: none !important;
    }
}
