/* === Base === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
}

body {
    color: #000000;
    background-color: #707070;
    scroll-behavior: smooth;
}

#logo{
    font-family: 'Arial Black', sans-serif;
}
.titre{
    font-family: "calibri", sans-serif, 900;
}

/* === Navbar === */
header {
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
    transition: background 0.3s;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 10%;
}

#logo {
    font-size: 24px;
    font-weight: bold;
    color: #fff;
}

nav ul {
    list-style: none;
    display: flex;
}

nav ul li {
    margin-left: 20px;
}

nav ul li a {
    color: #ffffff;
    text-decoration-color: #ffffff;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0400ff;
}

/* === Hero Section === */
.hero {
    height: 100vh;
    background: url('images/hero.jpg') center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgb(0, 0, 0);
    text-align: center;
}
span{
    color: #6c78ff;
}

.hero h2 {
    font-size: 48px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
}

.apropos {
    padding: 12px 25px;
    margin: 0 10px;
    background-color: #6c78ff;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
}

.apropos:hover {
    background-color: #0400ff;
}

.conteneur-boutons {
    display: flex;
    justify-content: center;
    gap: 20px; /* espace entre les boutons */
    flex-wrap: wrap; /* pour le responsive */
}

.VTechno {
    padding: 12px 25px;
    background-color: #6c78ff;
    color: white;
    border: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background 0.3s;
    cursor: pointer;
}

.VTechno:hover {
    background-color: #5562e0;
}

.btn {
    padding: 12px 25px;
    background-color: #6c78ff;
    color: white;
    border: none;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background 0.3s;
}

.btn:hover {
    background-color: #0400ff;
}

/* === Sections === */
section {
    padding: 100px 10%;
}

h2 {
    text-align: center;
    margin-bottom: 50px;
}

/* === Projets === */
.project-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}



.project {
    background: rgb(255, 255, 255);
    padding: 20px;
    border-radius: 10px;
    width: 300px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    text-align: center;
    transform: translateY(50px);
    opacity: 50;
    transition: all 0.6s ease;
}

.project img {
    width: 100%;
    border-radius: 10px;
}

.project a {
    color: #ff6b6b;
    text-decoration: none;
}

.project a:hover {
    text-decoration: underline;
}

/* Animation lorsqu'on ajoute la classe "show" */
.project.show {
    transform: translateY(0);
    opacity: 1;
}

/* === Contact Form === */
form {
    max-width: 500px;
    margin: auto;
    display: flex;
    flex-direction: column;
}

input, textarea {
    padding: 12px;
    margin-bottom: 15px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 16px;
}

button {
    padding: 12px;
    border: none;
    border-radius: 5px;
    background-color: #6c78ff;
    color: white;
    font-size: 16px;
    cursor: pointer;
    font-weight: bold;
}

button:hover {
    background-color: #0400ff;
}

/* === Footer === */
footer {
    text-align: center;
    padding: 20px 0;
    background-color: #1a1a1a;
    color: white;
    margin-top: 40px;
}

footer .socials a {
    color: white;
    text-decoration: none;
    margin: 0 5px;
}

footer .socials a:hover {
    color: #6c78ff;
}

/* === Animations === */
.fade-in.show {
    transform: translateY(0);
    opacity: 1;
}

/* === Responsive === */
@media(max-width: 768px) {
    .project-list {
        flex-direction: column;
        align-items: center;
    }

    nav ul {
        display: none;
    }
}

/* Taille de l'image dans la page */
/* .Images img {
    width: 300px; 
    height: auto;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s;
}

.Images img:hover {
    transform: scale(1.03);
} */

        .Images img {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(20px, 1fr));
            gap: 20px;
            max-width: 200px;
            margin: 0 auto;
        }
        .Images img:hover {
            transform: scale(1.05);
        }

/* Lightbox en grand
#lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
} */

/* @keyframes zoomFade {
    0% {
        opacity: 0;
        transform: scale(0.7);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
 } */

/* Lightbox animée */
#lightbox {
    display: none; 
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(3px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Animation zoom + fade */
#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 10px;
    animation: zoomFade 0.35s ease;
}
 
@keyframes pop {
    0% { transform: scale(0.6); opacity: 0; }
    70% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(1); }
}

#lightbox img {
    animation: pop 0.3s ease-out;
}


/* Bouton fermer */
#lightbox .close {
    position: absolute;
    top: 30px;
    right: 50px;
    font-size: 50px;
    color: white;
    cursor: pointer;
}

/* Bouton Download */
#download-btn {
    position: absolute;
    bottom: 40px;
    background: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 18px;
    color: #333;
    text-decoration: none;
    font-weight: bold;
    transition: 0.2s;
}

#download-btn:hover {
    background: #ddd;
}

        .thumbnail {
            width: 400px;
            height:600px;
            object-fit: cover;
            cursor: pointer;
            border-radius: 8px;
            transition: transform 0.3s;
        }

        .thumbnail:hover {
            transform: scale(1.05);
        }

        .popup-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.9);
            z-index: 1000;
            justify-content: center;
            align-items: center;
        }

        .popup-overlay.active {
            display: flex;
        }

        .popup-content {
            position: relative;
            max-width: 90%;
            max-height: 90%;
        }

        .popup-image {
            max-width: 100%;
            max-height: 90vh;
            border-radius: 8px;
        }