        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        body {
            background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
             
            color: #e0e0e0;
            line-height: 1.6;
            min-height: 100vh;
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
            padding: 20px;
        }

        header {
            text-align: center;
            margin-bottom: 40px;
            padding: 30px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        h1 {
            font-size: 3rem;
            margin-bottom: 15px;
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            color: #764ba2;
        }

        .subtitle {
            font-size: 1.2rem;
            color: #a0a0a0;
            margin-bottom: 30px;
        }
        .search-container {
            display: flex;
            max-width: 700px;
            margin: 0 auto 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border-radius: 50px;
            overflow: hidden;
        }

        #search-input {
            flex: 1;/*prendre tout l'espace dispo*/
            padding: 18px 25px;
            border: none;
            background: rgba(255, 255, 255, 0.1);
            backdrop-filter: blur(10px);/*effet du flou*/
            color: white;
            font-size: 1.1rem;
            outline: none;/*retire le contour du champ de recherche*/
            border-right: 1px solid rgba(255, 255, 255, 0.1);
        }

        #search-input::placeholder {
            color: #b0b0b0;
        }

        #search-btn {
            padding: 18px 30px;
            background: linear-gradient(45deg, #667eea, #764ba2);
            color: white;
            border: none;
            cursor: pointer;/*le curseur devient un doigt qui pointe vers le boutton*/
            font-size: 1.1rem;
            font-weight: 600;
            transition: all 0.3s ease;/*Transition fluide*/
            min-width: 150px;
        }

        #search-btn:hover {
            background: linear-gradient(45deg, #764ba2, #667eea);
            transform: translateY(-2px);/*effet de levitation*/
            box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
        }
        .keywords {
            display:flex;
            flex-wrap: wrap;/*retour a la ligne si trop des mots-cles*/
            justify-content: center;
            gap: 12px;
            margin-bottom: 40px;
        }
        .keyword {
            background: rgba(255,255,255,0.08);
            padding: 12px 20px;
            border-radius: 25px;
            font-size: 0.95rem;
            cursor: pointer;
            transition: all 0.3s ease;
            border: 1px solid rgba(255,255,2550.1);
            backdrop-filter: blur(10px);

        }
        .keyword:hover{
            background: linear-gradient(45deg,#667eea,#764ba2);
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(102,126,234,0.3);
        }

         .categories {
            display:flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin-bottom: 50px;
        }
        .categorie {
            background: rgba(255,255,255,0.08);
            padding: 15px 25px;
            border-radius: 12px;
            cursor:pointer;
            transition: all 0.3 ease;
            font-weight: 500;
            border:1px solid rgba(255,255,255,0.1);
            backdrop-filter:blur(10px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.2);

        }
        .categorie:hover{
            transform: translateY(-5px);
            box-shadow: 0 15px 30px rgba (0,0,0,0.3);
        }
        .categorie.active{
            background: linear-gradient(45deg , #667eea , #764ba2);
            box-shadow: 0 10px 25px rgba(102,126,234,0.4);
        }
        .gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));/*colonnes adaptatives qui s'ajustent automatiquement*/
            gap: 25px;
            margin-bottom: 40px;
        }
         .loading {
            text-align: center;
            padding: 50px;
            font-size: 1.3rem;
            color: #a0a0a0;
            grid-column: 1 / -1;/*prend tout l'espace disponible */
        }
        .modal {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.95);
            z-index: 1000; /*position de model*/
            justify-content: center;
            align-items: center;
            opacity: 0; /*Initialement invisible*/
            transition: opacity 0.4s ease;
            backdrop-filter: blur(10px);
        }
        footer{
            text-align: center;
            margin-top: 60px;
            padding: 30px 0;
            color: #888;
            font-size: 0.9rem;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        /*ANIMATIONS*/
        @keyframes fadeInUp {
            from{
                opacity:0;
                transform: translateY(30px);/* Départ : invisible et 30px plus bas */
            }
            to{
                opacity:1;
                transform: translateY(0);/* Arrivée : visible et position normale */
            }
        }
        .photo-card{
            animation: fadeInUp 0.6 ease forwards; /*Durée : 0.6 secondes Style : mouvement fluide ("ease") Forwards : reste visible à la fin (ne disparaît pas)*/
        }
        /*affichage des photos une par une*/
        .photo-card:nth-child(2){animation-delay: 0.1s;}
        .photo-card:nth-child(3) { animation-delay: 0.2s; }
        .photo-card:nth-child(4) { animation-delay: 0.3s; }
        .photo-card:nth-child(5) { animation-delay: 0.4s; }
        .photo-card:nth-child(6) { animation-delay: 0.5s; }
        .photo-card:nth-child(7) { animation-delay: 0.6s; }
        .photo-card:nth-child(8) { animation-delay: 0.7s; }
        .photo-card:nth-child(9) { animation-delay: 0.8s; }
        .photo-card:nth-child(10) { animation-delay: 0.9s; }
        .photo-card:nth-child(11) { animation-delay: 1s; }
        .photo-card:nth-child(12) { animation-delay: 1.1s; }
        .photo-card:nth-child(13) { animation-delay: 1.2s; }
        .photo-card:nth-child(14) { animation-delay: 1.3s; }
        .photo-card:nth-child(15) { animation-delay: 1.4s; }
        .photo-card:nth-child(16) { animation-delay: 1.5s; }
        .photo-card:nth-child(17) { animation-delay: 1.6s; }
        .photo-card:nth-child(18) { animation-delay: 1.7s; }
        .photo-card:nth-child(19) { animation-delay: 1.8s; }
        .photo-card:nth-child(20) { animation-delay: 1.9s; }
@media(max-width:768px){
    .gallery{
        grid-template-columns: repeat(auto-fill,minmax(220px,1fr));
        gap: 20px;
    }
    .categories{
        gap:10px;
    }
    .categorie{
        padding: 12px 18px;
        font-size: 0.9rem;
    }
    h1{
        font-size: 2.2rem;
    }
}
@media(max-width : 480px){
.gallery{
    grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
    gap: 15px;
}
h1{
    font-size: 1.8rem;
}
.search-container{
    flex-direction: column;
    border-radius: 15px;
}
#search-input {

    border-radius: 15px 15px 0 0;
    margin-bottom: 0;
    border-right: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
#search-btn{
    border-radius: 0 0 15px 15px;
}
}
.photo-card{
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 15px 35px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.175,0.885,0.32,1.275);
    cursor: pointer;
    border:1px solid rgba(255,255,255,0.1);
    position : relative;
    transform-style:preserve-3d;
    perspective:1000px;
}
.photo-card:hover{
    transform: translateY(-15px) scale(1.05);
    box-shadow:
    0 25px 50px rgba(0,0,0,0.6),
    0 0 80px rgba(102,126,234,0.3);
    z-index: 10;

}
.photo-card::before{
    content:'';
    position:absolute;
    top:0;
    left:0;
    right:0;
    bottom:0;
    background: linear-gradient(45deg,rgba(102,126,234,0.1),rgba(118,75,162,0.1));
    opacity:0;
    transition: opacity 0.3s ease;
    border-radius: 15px;
}
.photo-card:hover::before{
    opacity: 1;
}
.photo-card img{
    width:100%;
    height: 240px;
    object-fit:cover;
    display:block;
    transition:transform 0.4s ease;
}
.photo-info{
    padding: 20px;
    position: relative;
    z-index: 2;
}
.photo-info p {
    font-size: 0.85rem;
    color:#b0b0b0;
}
.modal.active {
            display: flex;
            opacity: 1;
        }

        .modal-content {
            max-width: 90%;
            max-height: 90%;
            position: relative;
            border-radius: 15px;
            overflow: hidden;
            box-shadow: 0 30px 60px rgba(0, 0, 0, 0.8);
        }

        .modal-content img {
            max-width: 100%;
            max-height: 90vh;
            display: block;
        }

        .modal-info {
            position: absolute;
            bottom: 0;
            left: 0;
            right: 0;
            background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
            color: white;
            padding: 30px;
            border-radius: 0 0 15px 15px;
        }

        .close-btn, .nav-btn {
            position: absolute;
            background: rgba(0, 0, 0, 0.6);
            color: white;
            border: none;
            border-radius: 50%;
            width: 50px;
            height: 50px;
            display: flex;
            justify-content: center;
            align-items: center;
            cursor: pointer;
            font-size: 1.3rem;
            transition: all 0.3s ease;
            backdrop-filter: blur(10px);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .close-btn:hover, .nav-btn:hover {
            background: rgba(102, 126, 234, 0.8);
            transform: scale(1.1);
        }

        .close-btn {
            top: 20px;
            right: 20px;
        }

        .prev-btn {
            left: 20px;
            top: 50%;
        }

        .next-btn {
            right: 20px;
            top: 50%;
        }
        .pagination{
            display: flex;
            justify-content: center;
            gap:12px;
            margin-top: 40px;
        }
        .page-btn{
            padding:12px 20px;
            background: rgba(255,255,255,0.08);
            border: 1px solid rgba(255,255,255,0.2);
            border-radius:8px;
            cursor:pointer;
            transition: all 0.3s ease;
            color:#e0e0e0;
            font-weight: 500;
            backdrop-filter: blur(10px);
        }
        .page-btn:hover,.page-btn.active{
            background: linear-gradient(45deg,#667eea,#764ba2);
            transform:translateY(-3px);
            box-shadow: 0 8px 20px rgba(102,126,234,0.4);
        }
        i{
            text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
            color: #764ba2;
        }

