/* ========================
   RÉALISATIONS PAGE
   ======================== */

/* HERO */
.real-hero {
    padding: 140px 0 40px;
    background: linear-gradient(135deg, #FFF5F7 0%, #FDE8ED 50%, #FFF0F3 100%);
    text-align: center;
    position: relative;
}

.real-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #E8789A;
    font-weight: 500;
    font-size: 14px;
    text-decoration: none;
    margin-bottom: 24px;
    transition: all 0.3s ease;
    padding: 8px 16px;
    border-radius: 50px;
    background: rgba(232, 120, 154, 0.08);
}

.real-back:hover {
    background: rgba(232, 120, 154, 0.15);
    transform: translateX(-4px);
}

.real-back i {
    font-size: 12px;
}

/* GALLERY */
.real-gallery {
    padding: 60px 0 80px;
    background: #FFFAF9;
}

.real-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.real-card {
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(244, 160, 181, 0.12);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: flex;
    flex-direction: column;
}

.real-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(244, 160, 181, 0.25);
}

.real-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background: #FDE8ED;
}

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

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

.real-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 20px;
    background: linear-gradient(135deg, #F4A0B5, #E8789A);
    color: #fff;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.real-cta:hover {
    background: linear-gradient(135deg, #E8789A, #D4667F);
    letter-spacing: 0.5px;
}

/* BOTTOM CTA */
.real-bottom-cta {
    padding: 80px 0;
    background: linear-gradient(135deg, #FDE8ED 0%, #FFF5F7 100%);
    text-align: center;
}

.real-bottom-cta h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2D2D2D;
    margin-bottom: 12px;
}

.real-bottom-cta p {
    color: #888;
    font-size: 1.1rem;
    margin-bottom: 30px;
}

/* LIGHTBOX */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    transform: scale(0.9);
    transition: transform 0.3s ease;
}

.lightbox.active .lightbox-img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 24px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    color: #fff;
    font-size: 20px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(244, 160, 181, 0.4);
    transform: translateY(-50%) scale(1.1);
}

/* RESPONSIVE TABLETTE */
@media (max-width: 968px) {
    .real-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
    
    .real-bottom-cta h2 {
        font-size: 2rem;
    }
}

/* RESPONSIVE MOBILE */
@media (max-width: 640px) {
    .real-hero {
        padding: 120px 0 30px;
    }
    
    .real-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 0 10px;
    }
    
    .real-card {
        border-radius: 16px;
    }
    
    .real-cta {
        padding: 14px 16px;
        font-size: 13px;
    }
    
    .real-bottom-cta {
        padding: 50px 0;
    }
    
    .real-bottom-cta h2 {
        font-size: 1.6rem;
    }
    
    .real-bottom-cta p {
        font-size: 0.95rem;
    }
    
    .real-gallery {
        padding: 40px 0 60px;
    }
}
