/* ============================================
   POP-UP LOI 25
   ============================================ */

.loi25-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.loi25-modal {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    max-width: 42rem;
    width: 100%;
    padding: 2rem;
    position: relative;
    animation: loi25-slideIn 0.3s ease-out;
}

@keyframes loi25-slideIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.loi25-content {
    margin-bottom: 1.5rem;
}

.loi25-title {
    font-size: 1.875rem;
    font-weight: bold;
    color: #A8D5E2;
    margin-bottom: 1.5rem;
    font-family: 'Dancing Script', cursive;
}

.loi25-text {
    color: #333;
    line-height: 1.75;
}

.loi25-text p {
    margin-bottom: 1rem;
}

.loi25-text strong {
    font-weight: 600;
    color: #000;
}

.loi25-list {
    list-style: disc;
    padding-left: 1.5rem;
    margin: 1rem 0;
}

.loi25-list li {
    margin-bottom: 0.5rem;
}

.loi25-buttons {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 2rem;
}

@media (min-width: 640px) {
    .loi25-buttons {
        flex-direction: row;
    }
}

.loi25-btn {
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.loi25-btn-decline {
    border: 2px solid #d1d5db;
    color: #374151;
    background: transparent;
}

.loi25-btn-decline:hover {
    background-color: #f3f4f6;
}

.loi25-btn-accept {
    background-color: #F8BBD9;
    color: white;
    box-shadow: 0 4px 15px rgba(248, 187, 217, 0.4);
}

.loi25-btn-accept:hover {
    background-color: rgba(248, 187, 217, 0.9);
    transform: scale(1.05);
}

/* ============================================
   GALERIE LIGHTBOX
   ============================================ */

.lightbox-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.95);
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox-overlay.active {
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    color: white;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 10;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.lightbox-close:hover {
    color: #F8BBD9;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.3);
    border: none;
    border-radius: 50%;
    padding: 0.75rem;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s ease;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: #F8BBD9;
    background-color: rgba(0, 0, 0, 0.5);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox-image-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 1rem;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 0.5rem;
}

.lightbox-counter {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    background-color: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1.5rem;
    border-radius: 9999px;
    font-weight: 500;
}

.lightbox-dots {
    position: absolute;
    bottom: 6rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.5rem;
}

.lightbox-dot {
    width: 0.75rem;
    height: 0.75rem;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.lightbox-dot:hover {
    background-color: rgba(255, 255, 255, 0.8);
}

.lightbox-dot.active {
    background-color: #F8BBD9;
    transform: scale(1.25);
}

/* Icône caméra sur les images de la galerie */
.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.5), transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .loi25-modal {
        padding: 1.5rem;
        margin: 1rem;
    }

    .loi25-title {
        font-size: 1.5rem;
    }

    .lightbox-prev {
        left: 0.5rem;
    }

    .lightbox-next {
        right: 0.5rem;
    }

    .lightbox-dots {
        bottom: 5rem;
    }

    .lightbox-counter {
        bottom: 1.5rem;
    }
}

@media (max-width: 480px) {
    .loi25-title {
        font-size: 1.25rem;
    }

    .loi25-text {
        font-size: 0.875rem;
    }

    .loi25-btn {
        padding: 0.625rem 1.5rem;
        font-size: 0.875rem;
    }

    .lightbox-dots {
        gap: 0.375rem;
    }

    .lightbox-dot {
        width: 0.625rem;
        height: 0.625rem;
    }
}
