/* ============================================================
   DOUBLE CAROUSEL — RÉALISATIONS
   ============================================================ */

.real-2 {
    padding: 100px 0;
    background: var(--primary, #1a3c5e);
    overflow: hidden;
}

.real-2__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 5%;
    max-width: 1300px;
    margin: 0 auto 50px;
    flex-wrap: wrap;
    gap: 20px;
}

.real-2 .eyebrow {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--white, #fff);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
}

.real-2 h2 {
    font-size: clamp(2rem, 4vw, 2.8rem);
    color: var(--white, #fff);
    margin: 0;
}

/* Boutons navigation */
.real-2 .nav-btns {
    display: flex;
    gap: 10px;
}

.real-2 .nav-btn {
    width: 50px;
    height: 50px;
    padding: 0;
    background: var(--white, #fff);
    border: none;
    color: var(--black, #000);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s, color 0.3s;
    border-radius: 4px;
}

.real-2 .nav-btn:hover {
    background: var(--accent, #e07b39);
    color: var(--white, #fff);
}

.real-2 .nav-btn svg {
    width: 26px;
    height: 26px;
}

/* Double ligne */
.real-2 .scroll-rows {
    display: grid;
    gap: 30px;
}

.real-2 .scroll-container {
    display: flex;
    gap: 30px;
    /* Pas de overflow:hidden ici — le clipping est géré par .real-2 */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.real-2 .scroll-container::-webkit-scrollbar {
    display: none;
}

/* Carte */
.real-2 .card {
    flex: 0 0 420px;
    transition: transform 0.3s;
}

.real-2 .card:hover {
    transform: translateY(-8px);
}

.real-2 .card-image {
    height: 280px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 18px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.35);
}

.real-2 .card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
    display: block;
}

.real-2 .card:hover .card-image img {
    transform: scale(1.05);
}

/* ============================================================
   MODALE GALERIE
   ============================================================ */

.gallery-modal {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
}

.gallery-modal.active {
    display: block;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    cursor: zoom-out;
}

.gallery-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    pointer-events: none;
}

.gallery-image {
    max-width: 60vw;
    max-height: 80vh;
    border-radius: 12px;
    object-fit: contain;
    pointer-events: auto;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.gallery-arrow {
    pointer-events: auto;
    width: 56px;
    height: 56px;
    background: var(--primary, #1a3c5e);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: transform 0.2s, background 0.2s;
}

.gallery-arrow:hover {
    background: var(--accent, #e07b39);
    transform: scale(1.08);
}

.gallery-arrow svg {
    width: 22px;
    height: 22px;
}

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

@media (max-width: 900px) {
    .real-2 .card { flex: 0 0 270px; }
}

@media (max-width: 640px) {
    .real-2 .card { flex: 0 0 200px; }

    .gallery-image {
        max-width: 90vw;
    }

    .gallery-arrow {
        position: absolute;
        width: 38px;
        height: 38px;
    }

    .gallery-arrow.prev { left: 1rem; }
    .gallery-arrow.next { right: 1rem; }
}