/* Page "Réalisations". Palette du thème : #4fa9d3 (bleu), #0F2454 (marine), #F3F7FA (fond clair). */

/* ---------- Bandeau d'accueil ---------- */
.rp-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;
    /* le thème remonte <main> de 9.5rem sous l'en-tête : on compense pour démarrer juste dessous */
    margin-top: 100px;
    padding: 90px 0 100px;
    background-size: cover;
    background-position: center;
    color: #ffffff;
}

.rp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgb(15 36 84 / 88%) 0%, rgb(15 36 84 / 62%) 55%, rgb(15 36 84 / 25%) 100%);
}

.rp-hero .container {
    position: relative;
    z-index: 1;
}

.rp-hero-content {
    max-width: 640px;
}

.rp-tagline {
    display: inline-block;
    margin-bottom: 14px;
    text-transform: uppercase;
    letter-spacing: 5px;
    font-size: 16px;
    font-weight: 700;
    color: #4fa9d3;
}

.rp-hero-title {
    margin-bottom: 20px;
    font-size: 58px;
    font-weight: 700;
    line-height: 1.1;
    color: #ffffff;
}

.rp-hero-title span {
    color: #4fa9d3;
}

.rp-hero-content p {
    margin-bottom: 32px;
    font-size: 18px;
    line-height: 1.7;
    color: rgb(255 255 255 / 88%);
}

.rp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

.rp-btn-light {
    display: inline-block;
    padding: 12px 24px;
    border: 2px solid rgb(255 255 255 / 85%);
    border-radius: 8px;
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
    transition: all .35s ease;
}

.rp-btn-light:hover {
    background: #ffffff;
    color: #0F2454;
}

.rp-btn-light.is-solid {
    border-color: #ffffff;
    background: #ffffff;
    color: #0F2454;
    white-space: nowrap;
}

.rp-btn-light.is-solid:hover {
    background: #4fa9d3;
    border-color: #4fa9d3;
    color: #ffffff;
}

/* ---------- Projets à la une ---------- */
.rp-project {
    display: flex;
    align-items: center;
    gap: 60px;
    margin-top: 70px;
}

.rp-project.is-reversed {
    flex-direction: row-reverse;
}

.rp-project-media {
    position: relative;
    flex: 1 1 56%;
    padding-bottom: 60px;
}

.rp-zoom {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 18px;
    box-shadow: 0 16px 44px rgb(15 36 84 / 18%);
}

.rp-zoom img {
    display: block;
    width: 100%;
    height: auto;
    transition: transform .6s ease;
}

.rp-zoom:hover img {
    transform: scale(1.06);
}

.rp-project-second {
    position: absolute;
    right: -20px;
    bottom: 0;
    width: 46%;
    border: 6px solid #ffffff;
}

.rp-project.is-reversed .rp-project-second {
    right: auto;
    left: -20px;
}

.rp-zoom-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    margin: -28px 0 0 -28px;
    border-radius: 50%;
    background: rgb(255 255 255 / 92%);
    color: #0F2454;
    font-size: 20px;
    opacity: 0;
    transform: scale(.7);
    transition: opacity .35s ease, transform .35s ease;
    pointer-events: none;
}

.rp-zoom:hover .rp-zoom-icon,
.rp-zoom:focus-visible .rp-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

.rp-project-body {
    flex: 1 1 44%;
}

.rp-index {
    display: block;
    margin-bottom: 4px;
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    color: #4fa9d3;
    opacity: .28;
}

.rp-project-body h3 {
    margin-bottom: 16px;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.2;
    color: #0F2454;
}

.rp-project-body p {
    margin-bottom: 22px;
    font-size: 17px;
    line-height: 1.75;
}

.rp-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 30px;
    padding: 0;
    list-style: none;
}

.rp-tags li {
    padding: 6px 16px;
    border-radius: 50px;
    background: #F3F7FA;
    color: #0F2454;
    font-size: 14px;
    font-weight: 500;
}

/* ---------- Galerie ---------- */
.rp-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-flow: dense;
    gap: 22px;
}

.rp-gallery-item {
    aspect-ratio: 4 / 3;
}

.rp-gallery-item.is-large {
    grid-column: span 2;
    grid-row: span 2;
    aspect-ratio: auto;
}

.rp-gallery-item img {
    height: 100%;
    object-fit: cover;
}

.rp-gallery-caption {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    padding: 46px 20px 16px;
    background: linear-gradient(to top, rgb(15 36 84 / 82%), rgb(15 36 84 / 0%));
    color: #ffffff;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity .35s ease, transform .35s ease;
}

.rp-gallery-item:hover .rp-gallery-caption,
.rp-gallery-item:focus-visible .rp-gallery-caption {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Filtres de galerie (page Concept) ---------- */
.rp-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin: -10px 0 40px;
}

.rp-filter {
    padding: 10px 24px;
    border: 2px solid #dbe7f1;
    border-radius: 50px;
    background: #ffffff;
    color: #0F2454;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all .3s ease;
}

.rp-filter:hover {
    border-color: #4fa9d3;
}

.rp-filter.is-active {
    border-color: #4fa9d3;
    background: #4fa9d3;
    color: #ffffff;
    box-shadow: 0 6px 18px rgb(79 169 211 / 35%);
}

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

/* ---------- Appel à l'action ---------- */
.rp-cta {
    padding: 70px 0;
}

.rp-cta-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    padding: 46px 52px;
    border-radius: 22px;
    background: linear-gradient(120deg, #0F2454 0%, #1f5f8f 60%, #4fa9d3 100%);
    box-shadow: 0 18px 48px rgb(15 36 84 / 25%);
    color: #ffffff;
}

.rp-cta-box h2 {
    margin-bottom: 8px;
    font-size: 34px;
    font-weight: 700;
    color: #ffffff;
}

.rp-cta-box p {
    margin: 0;
    font-size: 17px;
    color: rgb(255 255 255 / 88%);
}

/* ---------- Apparition au défilement (actif seulement si le script tourne) ---------- */
.rp-js .rp-reveal {
    opacity: 0;
    transform: translateY(26px);
    transition: opacity .7s ease, transform .7s ease;
}

.rp-js .rp-reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* ---------- Adaptation écrans ---------- */
@media (max-width: 991px) {
    .rp-hero {
        min-height: 480px;
        margin-top: 130px;
        padding: 80px 0 80px;
    }

    .rp-hero-title {
        font-size: 44px;
    }

    .rp-project,
    .rp-project.is-reversed {
        flex-direction: column;
        gap: 34px;
    }

    .rp-project-media {
        width: 100%;
    }

    .rp-project-second,
    .rp-project.is-reversed .rp-project-second {
        right: 10px;
        left: auto;
    }

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

    .rp-cta-box {
        flex-direction: column;
        align-items: flex-start;
        padding: 36px 30px;
    }
}

@media (max-width: 575px) {
    .rp-hero-title {
        font-size: 36px;
    }

    .rp-hero-content p {
        font-size: 16px;
    }

    .rp-project-body h3,
    .rp-cta-box h2 {
        font-size: 27px;
    }

    .rp-gallery {
        grid-template-columns: 1fr;
    }

    .rp-gallery-item.is-large {
        grid-column: auto;
        grid-row: auto;
        aspect-ratio: 4 / 3;
    }

    /* pas de survol sur mobile : la légende reste visible */
    .rp-gallery-caption {
        opacity: 1;
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .rp-js .rp-reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .rp-zoom img,
    .rp-zoom-icon,
    .rp-gallery-caption,
    .rp-btn-light {
        transition: none;
    }

    .rp-zoom:hover img {
        transform: none;
    }
}
