* {
    margin: 0;
    padding: 0; 
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    color: #b454aa;
}

html {
    scroll-behavior: smooth;
}

.politiques {
    background: #101010;
    padding: 200px 80px;
    font-size: 2rem;
}

/* navbar */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: black;
    padding: 20px 50px;
    z-index: 1000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}

.logo {
    z-index: 2000;
    font-size: 1.7rem;
}

.navbar .menu-burger {
    display: none; 
    width: 35px;
    cursor: pointer;
}

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

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

.reveal {
    opacity: 0;
    transform: translateY(50px); 
    transition: all 0.8s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0); 
}

/* acceuil */
.accueil {
    position: relative;
    height: 100vh;
    overflow: hidden;
    background-color: black; 
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.content-center {
    z-index: 10;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 40px;
    font-size: 1.2rem;
}

.bynathan {
    font-size: 2.5rem;
    font-weight: bold;
    color: transparent;
    min-height: 1.2rem;
    border-right: 3px solid purple;
    display: inline-block;
    margin-bottom: 10px;
    background: linear-gradient(to right, #ffffff 30%, #a855f7 100%);
   -webkit-background-clip: text;
}

.accueil p {
    color: rgb(180, 84, 170);
    margin: 0;
}

.btn-services {
    border: 1px solid rgb(180, 84, 170);
    border-radius: 30px;
    padding: 10px;
}

.btn-contact {
    background-color: rgb(180, 84, 170);
    border: 1px solid rgb(180, 84, 170);
    border-radius: 30px;
    padding: 10px;
    color: white;
}

@keyframes blink {
    50% {border-color: transparent;}
}

.bynathan {
    animation: blink 0.7s step-end infinite;
}

.accueil::before, .accueil::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    z-index: 2;
    pointer-events: none;
}

.accueil::before {
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.6) 1px, transparent 1px),
        radial-gradient(circle, rgba(255,255,255,0.4) 2px, transparent 2px);
    background-size: 350px 350px, 400px 400px;
    animation: dustFlyOne 80s linear infinite;
    opacity: 0.4;
    filter: blur(0.5px);
}

.accueil::after {
    background-image: 
        radial-gradient(circle, rgba(255,255,255,0.5) 1.5px, transparent 1.5px),
        radial-gradient(circle, rgba(255, 255, 255, 0.569) 3px, transparent 3px);
    background-size: 550px 550px, 250px 250px;
    animation: dustFlyTwo 100s linear infinite;
    opacity: 0.3;
    filter: blur(1px);
}

@keyframes dustFlyOne {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(150px, -150px) rotate(360deg); }
}

@keyframes dustFlyTwo {
    0% { transform: translate(0, 0) rotate(0deg); }
    100% { transform: translate(-200px, 100px) rotate(-360deg); }
}

/* qui suis-je ? */

.qui {
    display: flex; 
    flex-direction: column;
    align-items: center;
    z-index: 10; 
    background: #101010;
    padding: 80px 40px;
    min-height: 90vh;
    margin-top: -1px;
    position: relative;
}

.titre-qui {
    margin-bottom: 150px;
    font-size: 2.5rem;
}

.container-qui {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 50px;
    max-width: 1100px;
    font-size: 1.5rem;
}

/* mes services */

.services {
    background: black;
    display: flex;
    padding: 80px 20px;
    flex-direction: column;
    align-items: center;
    gap: 50px;
    min-height: 90vh;
    justify-content: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}

.services-container {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    flex-wrap: wrap; 
    max-width: 1200px;
}

.service-card {
    flex: 1; 
    min-width: 280px; 
    max-width: 350px;
    border-radius: 12px;
    padding: 40px 30px;
    background: #b454aa;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: default;
}

.service-card p, .service-card h3 {
    color: white; 
}

.service-card p:first-child {
    font-weight: bold;
    font-size: 1.4rem;
}

.service-card:hover {
    transform: translateY(-15px); 
    box-shadow: 0 10px 20px rgba(0,0,0,0.2); 
}

.services img {
    height: 75px;
    width: auto; 
    margin-bottom: 10px;
}

/* compétence */

.compétence {
    min-height: 90vh;
    background: #101010;
    display: flex;
    flex-direction: column;
    padding: 80px;
    align-items: center;
    height: 90vh;
    justify-content: center;

}

.compétence-container {
    display: flex;
    flex-direction: row;
    gap: 100px;
    margin: 10px;
    flex-wrap: wrap;
}

.compétence-container2 {
    display: flex;
    flex-direction: row;
    gap: 100px;
    margin: 10px;
    flex-wrap: wrap;
}

.compet {
    display: flex;
    flex-direction: column;
    background: black;
    border-radius: 30px;
    padding: 10px;
    align-items: center;
    font-size: 1.3rem;
    transition: transform 0.3s ease;
    border: 1px solid transparent;
}

.compet:hover {
    transform: translateY(-15px);
    border: 1px solid #b454aa;
}

.compétence h2 {
    font-size: 2.5rem;
    margin-bottom: 50px;
}
.compétence img {
    height: 200px;
    width: 200px;
    border-radius: 30px;
    padding: 20px;
}


/* portfolio */

.portfolio {
    display: flex;
    flex-direction: column;
    background: black;
    align-items: center;
    padding: 80px;
    height: 100vh;
}

.portfolio h2 {
    margin-bottom: 200px;
    font-size: 2.5rem;
}

.portfolio-container {
    display: flex;
    flex-direction: row;
    gap: 40px;
}

.portfolio-card {
    position: relative;
    overflow: hidden;
    display: flex;
    border-radius: 8px;
}

.portfolio-card img {
    display: block;
    width: 400px;
    height: 250px;
    object-fit: cover;
    transition: 0.3s ease;
    border: 2px solid transparent;
}

.portfolio-card img:hover {
    border: 2px solid #b454aa;
}

.hide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(180, 84, 170, 0.482);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    color: white;
    font-weight: bold;
    font-size: 1.2rem;
}

.portfolio-card:hover .hide {
    opacity: 1;
}

/* contact */

.contact {
    display: flex;
    width: 100vw;
    height: 100vh;
    background: #101010;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.contact h2 {
    margin: 50px;
    font-size: 2.5rem;
}

.contact-container {
    display: flex;
    flex-direction: column;
    gap: 40px;
    align-items: center;
}

.contact-container input {
    background: #101010;
    border: 1px solid white;
    border-radius: 8px;
    padding: 10px;
    width: 70vw;
    height: 7vh;
}

.contact-container textarea {
    background: #101010;
    border: 1px solid white;
    border-radius: 8px;
    padding: 10px;
    height: auto;
    min-height: 120px;
    width: 70vw;
}

.contact-container button {
    background: #b454aa;
    color: white;
    height: 50px;
    width: 300px;
    border: 1px solid transparent;
    border-radius: 20px;
}

.contact-container button:hover {
    background: #b073aa;
}

/* footer */ 
footer {
    background: black;
    height: 50vh;
    display: flex;
    font-size: 1.2rem;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

footer .utile {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin: 30px;
}

footer .footer-contact {
    display: flex;
    flex-direction: row;
    gap: 30px;
    margin: 30px;
}

footer .footer-contact img {
    height: 100px;
    width: 90px;
}

@media screen and (max-width: 1070px) {
    
    /* 1. Navbar */
    .navbar {
        padding: 15px 25px;
        height: 70px;
    }

    .navbar .menu-burger {
        display: block; 
    }

    .menu-burger img {
        z-index: 10000;
        height: 50px;
        width: 50px;
    }

    .nav-links {
        position: fixed;          
        top: 0;
        right: 0;
        z-index: 1500;
        width: 100%;
        height: 100vh;
        background: rgba(0, 0, 0, 0.95); 
        display: flex;
        justify-content: center;
        align-items: center;
        transform: translateY(-100%); 
        transition: transform 0.4s ease-in-out;
    } 

    .nav-links.mobile-menu {
        transform: translateY(0); 
    }

    .nav-links ul {
        flex-direction: column;
        gap: 30px;
    }

    /* 2. Accueil */
    .bynathan {
        font-size: 1.8rem; 
    }

    .content-center {
        padding: 0 20px;
        gap: 25px;
    }

    .btn-accueil {
        display: flex;
        flex-direction: column; 
        gap: 15px;
        width: 100%;
        max-width: 250px;
    }

    /* 3. Qui suis-je */
    .container-qui {
        flex-direction: column; 
        text-align: center;
        font-size: 1.1rem;
    }

    .titre-qui {
        margin-bottom: 50px;
    }

    /* 4. Compétences */
    .compétence {
        height: auto; 
        padding: 60px 20px;
    }

    .compétence-container, .compétence-container2 {
        gap: 20px;
        justify-content: center;
    }

    .compet img {
        height: 100px; 
        width: 100px;
    }

    /* 5. Portfolio */
    .portfolio {
        height: auto;
        padding: 60px 20px;
    }

    .portfolio h2 {
        margin-bottom: 50px;
    }

    .portfolio-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .portfolio-card img {
        width: 100%; 
        max-width: 400px;
        height: auto;
    }

    /* 6. Contact */
    .contact {
        height: auto;
        padding: 80px 20px;
    }

    .contact-container input, 
    .contact-container textarea {
        width: 100%; 
        max-width: 350px;
    }

    .contact-container button {
        width: 100%;
        max-width: 300px;
    }
}