@charset "utf-8";
/* CSS Document */

.filter-buttons {
            display: flex;
            justify-content: center;
            gap: 10px;
            margin-bottom: 40px;
            flex-wrap: wrap;
        }

        .filter-btn {
            padding: 10px 24px;
            font-size: 15px;
            font-weight: 600;
            background-color: #ffffff;
            border: 2px solid #e2e8f0;
            border-radius: 25px;
            cursor: pointer;
            transition: all 0.3s ease;
            color: #64748b;
        }

        .filter-btn.active, .filter-btn:hover {
            background-color: #0284c7;
            border-color: #018a3a;
            color: #ffffff;
            box-shadow: 0 4px 12px rgba(2, 132, 199, 0.2);
        }

        /* --- GRILLE DE LA GALERIE --- */
        .gallery-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
            gap: 25px;
            max-width: 1200px;
            margin: 0 auto;
        }

        /* --- VIGNETTES ARRONDIES --- */
        .gallery-item {
            position: relative;
            cursor: pointer;
            transition: transform 0.3s ease;
        }

        /* Masquage des éléments filtrés */
        .gallery-item.hide {
            display: none;
        }

        .image-container {
            width: 100%;
            aspect-ratio: 1 / 1; /* Force l'image à être un carré parfait */
            border-radius: 10%;  /* Rend la vignette parfaitement ronde */
            overflow: hidden;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            border: 4px solid #257019;
            transition: all 0.3s ease;
        }

        .gallery-item img {
            width: 100%;
            height: 100%;
            object-fit: cover; /* Évite de déformer l'image */
            transition: transform 0.5s ease;
        }

        /* Effets au survol (Hover) */
        .gallery-item:hover .image-container {
            border-color: #dfb780;
            transform: translateY(-5px);
            box-shadow: 0 8px 25px rgba(2, 132, 199, 0.3);
        }

        .gallery-item:hover img {
            transform: scale(1.1); /* Zoom léger à l'intérieur du rond */
        }

        .item-title {
            text-align: center;
            margin-top: 12px;
            font-weight: 500;
            font-size: 14px;
            color: #1e293b;
        }

        /* --- VISIONNEUSE / LIGHTBOX (AGRANDISSEMENT AU CLIC) --- */
        .lightbox {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(15, 23, 42, 0.9); /* Fond sombre transparent */
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 1000;
            opacity: 0;
            pointer-events: none;
            transition: opacity 0.4s ease;
        }

        /* Activation de la lightbox */
        .lightbox.active {
            opacity: 1;
            pointer-events: auto;
        }

        .lightbox img {
            max-width: 85%;
            max-height: 85%;
            border-radius: 8px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.5);
            transform: scale(0.9);
            transition: transform 0.4s ease;
        }

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

        /* Bouton Fermer (X) */
        .close-lightbox {
            position: absolute;
            top: 20px;
            right: 30px;
            color: #ffffff;
            font-size: 40px;
            font-weight: bold;
            cursor: pointer;
            user-select: none;
        }

