        /* Modal pour la demande de code */
        .modal {
            display: none;
            position: fixed;
            z-index: 1000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.8);
        }

        .modal-content {
            background-color: #fefefe;
            margin: 10% auto;
            padding: 20px;
            width: 90%;
            max-width: 500px;
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
        }

        .modal-header h3 {
            color: #721c24;
            margin: 0 0 15px 0;
            text-align: center;
        }

        .password-form {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .password-input {
            padding: 10px;
            border: 1px solid #ced4da;
            border-radius: 4px;
            font-size: 16px;
            width: 100%;
        }

        .password-submit {
            background-color: #28a745;
            color: white;
            padding: 10px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
        }

        .password-error {
            color: #dc3545;
            margin-top: 10px;
            font-weight: bold;
            text-align: center;
        }

        .close {
            color: #aaa;
            float: right;
            font-size: 28px;
            font-weight: bold;
            cursor: pointer;
        }

        /* Galerie avec images proportionnelles */
        .photos-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
            gap: 15px;
            margin: 20px 0;
        }

        .photo-card {
            background: #fff;
            overflow: hidden;
            box-shadow: 0 1px 2px rgba(0,0,0,0.1);
            transition: transform 0.2s, box-shadow 0.2s;
            cursor: pointer;
        }

        .photo-card:hover {
            transform: scale(1.02);
            box-shadow: 0 2px 4px rgba(0,0,0,0.15);
        }

        .photo-image-container {
            width: 100%;
            height: 160px;
            display: flex;
            justify-content: center;
            align-items: center;
            background: #f8f9fa;
        }

        .photo-card img {
            max-width: 100%;
            max-height: 100%;
            object-fit: contain;
            display: block;
        }

        .photo-legende {
            padding: 6px;
            text-align: center;
            font-size: 0.75em;
            color: #333;
            width: 100%;
            word-break: break-word;
            background: #fff;
            border-top: 1px solid #eee;
        }

        .erotique-badge {
            position: absolute;
            top: 5px;
            right: 5px;
            background-color: #ffc107;
            color: #856404;
            padding: 3px 6px;
            border-radius: 3px;
            font-size: 0.65em;
            font-weight: bold;
            z-index: 10;
        }

        .back-link {
            display: inline-block;
            margin-bottom: 20px;
            color: #007bff;
            text-decoration: none;
            font-size: 0.9em;
        }

        .empty-album {
            text-align: center;
            padding: 40px;
            color: #666;
        }

        .album-title {
            margin-bottom: 20px;
            font-size: 1.5em;
            color: #333;
        }

        /* Lightbox avec flèches toujours visibles */
        .lightbox {
            display: none;
            position: fixed;
            z-index: 2000;
            left: 0;
            top: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.95);
        }

        .lightbox-inner {
            position: relative;
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
        }

        .lightbox-content {
            position: relative;
            max-width: 90%;
            max-height: 70vh;
            margin: 0 auto;
        }

        .lightbox-img {
            max-width: 100%;
            max-height: 70vh;
            display: block;
            margin: 0 auto;
        }

        /* Croix de fermeture */
        .lightbox-close {
            position: absolute;
            top: 15px;
            right: 15px;
            color: #fff;
            font-size: 35px;
            font-weight: bold;
            cursor: pointer;
            text-shadow: 0 0 5px rgba(0,0,0,0.5);
            z-index: 10;
            background-color: rgba(0,0,0,0.5);
            width: 40px;
            height: 40px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
        }

        /* Flèches positionnées en dehors de l'image */
        .lightbox-nav {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            color: #fff;
            font-size: 30px;
            cursor: pointer;
            text-shadow: 0 0 5px rgba(0,0,0,0.5);
            user-select: none;
            background-color: rgba(0,0,0,0.5);
            width: 50px;
            height: 50px;
            display: flex;
            align-items: center;
            justify-content: center;
            border-radius: 50%;
            z-index: 10;
        }

        .lightbox-prev {
            left: 10px;
        }

        .lightbox-next {
            right: 10px;
        }

        .lightbox-legende {
            color: #fff;
            margin-top: 15px;
            font-size: 1.1em;
            text-shadow: 0 0 3px rgba(0,0,0,0.8);
            padding: 0 10px;
            text-align: center;
        }

        /* Pagination */
        .pagination {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .pagination a {
            display: inline-block;
            padding: 8px 12px;
            background: #f8f9fa;
            color: #333;
            text-decoration: none;
            border-radius: 4px;
        }

        .pagination a.active {
            background: #007bff;
            color: white;
        }

        .pagination a:hover:not(.active) {
            background: #e9ecef;
        }

        /* Adaptation pour mobile */
        @media (max-width: 768px) {
            .lightbox-nav {
                width: 45px;
                height: 45px;
                font-size: 24px;
            }

            .lightbox-nav i {
                font-size: 20px;
            }

            .lightbox-close {
                width: 45px;
                height: 45px;
                font-size: 28px;
                top: 10px;
                right: 10px;
            }

            .lightbox-prev {
                left: 5px;
            }

            .lightbox-next {
                right: 5px;
            }

            .photos-gallery {
                grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
                gap: 10px;
            }

            .photo-image-container {
                height: 140px;
            }
        }

        @media (max-width: 480px) {
            .lightbox-nav {
                width: 50px;
                height: 50px;
                font-size: 28px;
            }

            .lightbox-nav i {
                font-size: 24px;
            }

            .lightbox-prev {
                left: 0;
            }

            .lightbox-next {
                right: 0;
            }
        }
/* Footer */
.footer {
    padding: 15px 0;
    background-color: #f8f9fa;
    border-top: 1px solid #e9ecef;
    margin-top: 10px;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.footer p {
    margin: 5px 0;
    color: #666;
    font-size: 0.85rem;
}

.social-links {
    display: flex;
    gap: 15px;
    margin: 10px 0;
}

.social-links a {
    color: #666;
    font-size: 1.2rem;
    transition: color 0.2s;
}

.social-links a:hover {
    color: #3498db;
}
