@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, #a5a4a4, #565656);
    background-attachment: fixed;
    background-size: cover;
    color: rgb(255, 255, 255);
    text-shadow: 3px 3px 6px rgb(0, 0, 0);
    overflow-x: hidden;
}

/* --- HEADER & NAV --- */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background-color: #141414;
    color: floralwhite;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 10px;
    z-index: 1000;
}

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

.navbar .nav-links ul li a {
    color: whitesmoke;
    font-weight: bold;
    transition: color 0.3s ease;
}

.navbar .nav-links ul li a:hover {
    color: #5D0406;
}

/* --- IMAGE PROFIL --- */
.profil {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border: 2px solid whitesmoke;
    border-radius: 50%;
    box-shadow: 3px 3px 0px #5D0406;
    display: block;
    margin: 120px auto 20px auto; /* espace sous la navbar */
}

/* --- TEXTE D'ACCUEIL --- */
.app {
    width: 80%;
    max-width: 900px;
    text-align: center;
    margin: 20px auto;
    font-size: 1.1rem;
    line-height: 1.5;
}

/* --- BOUTON CV --- */
.form {
    text-align: center;
    margin: 20px auto;
}

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

button:hover {
    background-color: #5D0406;
    color: white;
}

/* --- BANNIÈRE + PROJETS --- */
.banniere {
    background-color: #646464;
    width: 80%;
    border-radius: 20px;
    margin: 2em auto;
    padding: 20px;
}

.banniere h2 {
    text-decoration: underline;
    margin-bottom: 20px;
    text-align: center;
}

.other {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}

.other .case {
    box-shadow: 3px 3px 3px 4px #5D0406;
    background-color: #8f8f8f88;
    text-align: center;
    border-radius: 20px;
    width: 250px;
    padding: 10px;
    transition: transform 0.3s;
}

.other .case:hover {
    transform: translateY(-5px);
}

.other .case img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    margin-bottom: 10px;
}

/* --- FOOTER --- */
footer {
    text-align: center;
    margin-top: 40px;
    padding: 15px;
    background-color: #333;
    color: #fff;
}

/* ============================= */
/* RESPONSIVE DESIGN             */
/* ============================= */

/* TABLETTES */
@media screen and (max-width: 992px) {
    .profil {
        width: 160px;
        height: 160px;
    }

    .app {
        width: 90%;
        font-size: 1rem;
    }

    .navbar .nav-links ul {
        gap: 15px;
    }
     .pre-proj {
        grid-template-columns: 1fr;  /* passe en 1 colonne */
        grid-template-rows: auto;
        height: auto;
    }

    .pre-proj .tit,
    .pre-proj .txt {
        text-align: center;
        font-size: 1rem;
    }

    .pre-proj img {
        max-width: 90%;
        height: auto;
        margin: 0 auto;
        display: block;
    }
}

/* MOBILES */
@media screen and (max-width: 600px) {
    .navbar {
        justify-content: center;
    }

    .navbar .nav-links ul {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .profil {
        width: 130px;
        height: 130px;
        margin-top: 100px;
    }

    .app {
        font-size: 0.95rem;
    }

    .banniere {
        width: 95%;
        padding: 15px;
    }

    .other {
        flex-direction: column;
        align-items: center;
    }

    .other .case {
        width: 90%;
    }

    footer {
        font-size: 0.8rem;
        padding: 10px;
    }
    .pre-proj {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 15px;
        margin: 20px;
    }

    .pre-proj .tit h1,
    .pre-proj .tit h3 {
        font-size: 1.2rem;
        text-align: center;
    }

    .pre-proj .txt {
        font-size: 0.9rem;
        padding: 10px;
    }

    .git img {
        width: 100%;
        height: auto;
    }
}