

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    color: #333;
    background-color: #f8f9fa;
    height: 950px;
    margin: 0;
    display: grid;
    grid-template-rows: auto 1fr auto; /* Header - Contenu - Footer */}
    

@font-face {font-family:Blastimo ; src:url("polices/BLASTIMO.ttf")
}
@font-face {font-family:Pilowlava ; src:url("polices/Pilowlava-Regular.otf")
}
@font-face {font-family:Turen ; src:url("polices/TurenDroneRegular.ttf")
}
.anton-regular {
    font-family: "Anton", serif;
    font-weight: 400;
    font-style: normal;
  }
  
/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background:#333;
    color: #faebd7;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

.nav-content {
    max-width: 1600px;
    margin: 0 auto;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 2.5rem;
    font-weight: bold;
    color: sandybrown;
    font-family: Turen;
}


.nav-links {
    display: none;
    color:antiquewhite;
    text-decoration: none;
    padding: 0.5rem 1rem;
    font-size: large;
    transition: color 0.3s;
    font-family:Pilowlava ;
}

.nav-link {
    color:antiquewhite;
    text-decoration: none;
    justify-content: right;
    padding: 0.5rem 1rem;
    font-size: large;
    transition: color 0.3s;
    font-family:Pilowlava ;
}

.nav-link:hover {
    color:antiquewhite;
}

h1 {
    text-align: center;
    margin-top: 100px; /* Ajuste selon la hauteur de ta navbar */
    font-size: 5rem; /* Ajuste la taille si nécessaire */
    font-family: Turen, sans-serif;
}


.projects-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: nowrap; /* Empêche le passage à la ligne */
    gap: 1rem;
    height: 400px;
    padding: 2rem;
    max-width: 1900px;
    margin: 0 auto;
    flex: 1; /* Permet au contenu de prendre toute la place disponible */
}

.project-box {
    width: 23%; /* Assure que 4 éléments tiennent sur une ligne */
    background: white;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    position: relative;
    text-decoration: none;
    color: inherit; /* Garde la couleur d'origine */
}


/* Zoom progressif de l'image */
.project-box img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

/* Animation du titre */
.project-box h2 {
    padding: 1rem;
    font-size: 1.5rem;
    background: #333;
    color: white;
    margin: 0;
    text-decoration: none;
}

.project-box:hover h2 {
    background: sandybrown;
    color: #333;
}

/* Footer*/
.footer-credit{
    background-color: #333;
    color: antiquewhite;
    text-align: center;
    font-family: "Anton", serif;
    padding: 10px;
    width: 100%;
    }

/* Adaptation pour les écrans moyens */
@media (max-width: 1024px) {
    .projects-container {
        flex-wrap: wrap; /* Permet le passage à la ligne */
        justify-content: center;
    }

    .project-box {
        width: 45%; /* 2 projets par ligne */
    }
}

/* Adaptation pour mobile */
@media (max-width: 768px) {
    .project-box {
        width: 100%; /* 1 projet par ligne */
    }
}



@media (max-width: 1024px) {
    .projects-container {
        flex-wrap: wrap; /* Permet le passage à la ligne sur petits écrans */
    }

    .project-box {
        max-width: calc(50% - 1rem); /* 2 projets par ligne sur tablettes */
    }
}

@media (max-width: 768px) {
    .project-box {
        max-width: 100%; /* 1 projet par ligne sur mobile */
    }
}


/* Scroll to Top Button */
.scroll-top {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: brown;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    z-index: 100;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.scroll-top.visible {
    opacity: 1;
    transform: translateY(0);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}