@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

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

body {
    font-family: 'Poppins', Arial, serif;
    background: linear-gradient(225deg, #474747, #1d1d1d);
    background-attachment: fixed;
    background-size: cover;
    color: rgb(255, 255, 255);
    text-shadow: 3px 3px 6px rgb(0, 0, 0);
    overflow-x: hidden;
}

.banniere {
    background-color: #646464;
    width: 70%;
    height: 30vh;
    border-radius: 20px;
    margin: 2em auto;
}
 
.banniere h2 {
    margin-left: 2%;
    text-decoration: underline;

}

.profil {
    margin-top: 5em;
    border: 2px solid whitesmoke;
    border-radius: 180px;
    box-shadow: 3px 3px 0px #5D0406;
    float: right;
    margin-right: 10%;
    margin-bottom: 1em;
}

.app {
    width: 70%;
    text-align: center;
    padding-top: 12%;
    margin-left: 10%;
    margin-bottom: 5px;
    margin: 0 auto;
}

.form {
    text-align: center;
    padding-top: 0;
    padding: 5px 10px;
}

.other img {
    width: 70%;
    margin-top: 4%;
    border-radius: 15px;
}

.other {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: stretch;
}

.other .case {
    box-shadow: 3px 3px 3px 4px #5D0406;
    margin: 1vw;
    background-color: #8f8f8f88;
    text-align: center;
    border-radius: 20px;
    width: 30%;
}

.other .case img {
    width: 70%;
    height: 70%;

}

.pre-proj {
    margin: 5vw 0 10vw 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 10px; /* Espacement entre les éléments */
    height: 100vh; /* Hauteur de la grille, ajustable selon vos besoins */
  }
  
  .tit {
    border: 1px solid #000; /* Bordure pour visualiser les zones */
    padding: 20px; /* Ajoute un espacement interne pour le contenu */
    border-radius: 15px;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .txt {
    border: 1px solid #000; /* Bordure pour visualiser les zones */
    padding: 20px; /* Ajoute un espacement interne pour le contenu */
    border-radius: 15px;
    text-align: left;
}
  
  .png img, .git img {
    max-width: 100%; /* Redimensionne l'image pour s'adapter à la taille du conteneur */
    max-height: 100%; /* Redimensionne l'image pour s'adapter à la taille du conteneur */
    display: block; /* Empêche les images de s'étirer */
    border-radius: 15px;
  }
  

nav {
    background-color: #333;
}

a {
    text-decoration: underline;
    color: whitesmoke;
    text-shadow: #5D0406;
}

a:hover {
    text-decoration: underline;
    color: #5D0406;
    text-shadow: whitesmoke;
}

footer {
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: #333;
    color: #fff;
    padding: 10px;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #2c2c2c;
    color: floralwhite;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    z-index: 1000;
}

.navbar .logo {
    font-size: 2em;
    font-weight: bold;
}

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

.navbar .nav-links ul li {
    margin: 0 25px;
}

button {
    width: 12em;
    border-radius: 20px;
    border: 1px solid #5D0406;
    color: #252525;
    background-color: #ffffff;
    font-family: 'Poppins', Arial;
    cursor: pointer;
}

.doc {
    text-align: center;
}
.zoom {
    transform: scale(2, 2);
    transform-origin: left;
    position: relative;
    top: 22%;
}

/* Ajout des media queries pour rendre le site réactif */
@media screen and (max-width: 768px) {
    .app {
        width: 90%;
    }

    .img {
        float: none;
        margin-right: auto;
        margin-left: auto;
    }

    .navbar {
        flex-direction: column;
        align-items: flex-start;
    }

    .navbar .nav-links ul {
        flex-direction: column;
    }

    .navbar .nav-links ul li {
        margin: 10px 0;
    }
    .nav-links {
        display: none;
    }

    .toggle-button {
        display: block;
    }
}
@media screen and (max-width: 480px) {
    .nav-links {
        display: none;
    }

    .toggle-button {
        display: block;
    }
    .navbar .nav-links ul li {
        margin: 5px 0;
    }

    .profil {
        width: 100px; 
        margin-top: 2em;
        float: none;
        margin-left: auto;
        margin-right: auto;
    }

    .banniere {
        width: 90%;
        height: auto;
        margin: 1em auto;
    }

    .other {
        flex-direction: column; 

    .other .case {
        width: 100%; 
        margin-bottom: 1em;
    }

    .form button {
        width: 100%; 
    }
    img {
        max-width: 100%;
        height: auto;
    }
    body {
        margin-top: 50px;
        font-size: 14px;
        margin-bottom: 100px;
    }

    h2 {
        font-size: 18px;
    }
}