@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900&display=swap');

* {
    margin: 0;
    padding: 0;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: "Poppins", sans-serif;
    padding: 0px 50px;
    background-color: #000;
    color: #fff;
    padding: 0px 50px;
    background-image: url("media/Minimalist-Wallpaper-4K-Desktop-HD.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    position: relative;
    background-clip: text;
    -webkit-background-clip: text;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
}

header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("media/Minimalist-Wallpaper-4K-Desktop-HD.jpg");
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

main {
    padding-top: 190px;
    position: relative;
    z-index: 1;
}

.navbar {
    position: relative;
    left: 0;
    width: 100%;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-sizing: border-box;
}

.navbar a {
    color: #fff;
    transition: color 0.3s ease;
}

.navbar .portfolio {
    font-size: 2em;
    font-weight: bold;
    display: flex;
    align-items: center;
}

.navbar .portfolio .linkedIn {
    color: #0E76A8;
    margin-left: 10px;
    font-size: 0.8em;
}

.navbar .portfolio .github {
    color: #fff;
    margin-left: 10px;
    font-size: 0.8em;
}

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

.navbar .nav-links ul li {
    padding-right: 100px;
}

.navbar .nav-links ul li a {
    position: relative;
    transition: color 0.3s ease;
}

/* Effet hover pour les liens */
.navbar .nav-links ul li a:hover {
    color: rgb(252, 98, 98);
    font-weight: 600;
}

.navbar #menu-hamburger {
    display: none;
    position: absolute;
    top: 25px;
    right: 35px; /* A changer une fois tout la responsive faite */
    font-size: 2.2em;
}

@media screen and (max-width:1250px) {
    .navbar {
        padding: 0;
    }
    .navbar #menu-hamburger {
        display: block;
    }

   .navbar .portfolio {
        position: absolute;
        top: 20px;
        left: 20px;
    }

    .nav-links {
        background: rgba(0, 0, 0, 0.21);
        box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);

        position: absolute;
        width: 100%;
        height: 100vh;
        top: 0;
        left: 0;
        display: flex;
        justify-content: center;
        align-items: center;
        margin-left: -100%;
        transition: all 0.5s ease;
   }

    .nav-links ul {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .nav-links ul li {
        margin-bottom: 20px;
    }

    .mobile-menu {
        margin-left: 0;
    }
}



/* Présentation */
#presentation {
    background: rgba(141, 141, 141, 0.34);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(12.4px);
    -webkit-backdrop-filter: blur(12.4px);
    border: 1px solid rgba(141, 141, 141, 0.77);

    padding: 20px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
}

#presentation h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

#presentation p {
    font-size: 1.2em;
    line-height: 1.6;
}

/* Projets / Compétences */
#projets h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 20px;
}

.projets-wrapper {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
    min-height: 500px;
}

.projets-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 40px;
    width: 100%;
    padding: 60px calc(50% - 150px);
    margin: 0 60px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    align-items: center;
}

.projets-container::-webkit-scrollbar {
    display: none;
}

.projet-card {
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 30px;
    width: 350px;
    min-height: 300px; 
    max-height: 80vh; 
    scroll-snap-align: center;
    transition: all 0.4s ease;
    flex: 0 0 350px; 
    display: flex;
    flex-direction: column;
    overflow-y: auto; /* Ajout d'un scroll vertical dans la description si le contenu dépasse */
}

.projet-card::-webkit-scrollbar {
    width: 6px;
}

.projet-card::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.projet-card::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 3px;
}

.projet-card.active {
    transform: scale(1.2);
    opacity: 1;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.projet-card:not(.active) {
    transform: scale(0.85);
    opacity: 0.5;
}

.projet-card h3 {
    margin-bottom: 1rem;
}

.projet-card p {
    flex-grow: 1;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
}

.projet-card .languages {
    margin-top: auto;
}

.scroll-button {
    background: rgba(255, 255, 255, 0.1);
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1;
    padding: 1.5rem 1rem;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.scroll-button:hover {
    background: rgba(255, 255, 255, 0.2);
}

.scroll-button.left {
    left: 10px;
}

.scroll-button.right {
    right: 10px;
}

.github-button {
    background: none;
    border: none;
    cursor: pointer;
    margin: 5px;
    font-size: 2em;
}

.languages {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.language-card {
    background-color: #e0e0e0a6;
    border-radius: 4px;
    padding: 5px 10px;
    font-size: 14px;
}


/* CV */
#curiculum h1 {
    font-size: 2em;
    text-align: center;
    margin-bottom: 50px;
}

.buttons {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.buttons button {
    padding: 15px 40px;
    margin-bottom: 20px;
    font-size: 1.2em;
    font-weight: 500;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    font-family: "Poppins", sans-serif;
}

.buttons .download {
    background-color: #fc6262;
    color: white;
}

.buttons .view {
    background-color: transparent;
    color: white;
    border: 2px solid #fc6262;
}

.buttons button:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(252, 98, 98, 0.4);
}

.buttons .download:active {
    background-color: #e55757;
}

.buttons .view:active {
    background-color: rgba(252, 98, 98, 0.1);
}


/* Contact */
#contact {
    background-color: rgba(255, 255, 255, 0.28);
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(6.6px);
    -webkit-backdrop-filter: blur(6.6px);

    padding: 20px;
    margin-top: 20px;
    margin-bottom: 20px;
}

#contact h2 {
    font-size: 2em;
    margin-bottom: 10px;
    text-align: center;
}

#contact form {
    display: flex;
    flex-direction: column;
    text-align: center;
    gap: 10px;
}

#contact label {
    font-size: 1.2em;
}

#contact input, #contact textarea {
    font-family: "Poppins", sans-serif;
    padding: 10px;
    font-size: 1em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

#contact button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
}

#contact button:hover {
    background-color: #0056b3;
}
.banderolle img.ordinateur {
    width: 35%;
    height: auto;
    margin-top: 200px;
    margin-left: -175px;
}