body {
    margin: 0;
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: #1e1e1e;
    color: #f8f8f8;
    overflow-x: hidden;
    position: relative;
    padding-top: 90px;
    text-align: justify;
}

@keyframes float {
    0% { transform: translateY(0) translateX(0); opacity: 0.8; }
    50% { transform: translateY(-50px) translateX(20px); opacity: 0.5; }
    100% { transform: translateY(0) translateX(0); opacity: 0.8; }
}

.background-element {
    position: absolute;
    width: 10px;
    height: 10px;
    background: pink;
    border-radius: 50%;
    animation: float 6s ease-in-out infinite;
    opacity: 0.8;
}

.background-element.star {
    width: 6px;
    height: 6px;
    background: #ff66ff;
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
}

.background-element:nth-child(1) { 
    left: 10%; 
    animation-duration: 5s; 
}
.background-element:nth-child(2) { 
    left: 30%; 
    animation-duration: 7s; 
}
.background-element:nth-child(3) { 
    left: 50%; 
    animation-duration: 6s; 
}
.background-element:nth-child(4) { 
    left: 70%; 
    animation-duration: 8s; 
}
.background-element:nth-child(5) { 
    left: 90%; 
    animation-duration: 5.5s; 
}

/* Navbar */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #2c2c2c;
    color: #fff;
    padding: 6px 20px;
    flex-wrap: wrap;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}
.logo {
    font-size: 2rem;
    color: #ff66cc;
    margin: 0;
}

.navbar {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}
.nav-links li a {
    color: #ff66cc;
    text-decoration: none;
    font-weight: bold;
}
.nav-links li a:hover {
    color: #ff3399;
    text-decoration: underline;
}

/* Bouton de changement de langue */
.language-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background-color: #ff66cc;
    color: #fff;
    border: none;
    border-radius: 20px;
    padding: 0.5rem 1rem;
    cursor: pointer;
    font-weight: bold;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.language-toggle:hover {
    background-color: #ff3399;
    transform: scale(1.05);
}

.lang-icon {
    font-size: 1.2rem;
}

.lang-text {
    font-size: 0.9rem;
}

section {
    padding: 4rem 2rem;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}
/* Buttons */
.btn {
    display: inline-block;
    margin-top: 1rem;
    padding: 0.5rem 1rem;
    background-color: #ff66cc;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    transition: 0.3s;
}
.btn:hover {
    background-color: #ff3399;
}

/*Home*/
.home-content-container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}
.home-text {
    flex: 1 1 300px;
    text-align: center;
}
.greeting-line {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}
.salut { 
    font-size: 3rem; 
    margin: 0; 
}
.intro { 
    margin: 0; 
    font-size: 1.5rem;
}
.name { 
    font-size: 2.5rem;
    margin: 0;
    color: #ff66cc; 
}
.job { 
    margin: 0; 
}
.social-links { 
    display: flex; 
    gap: 2rem; 
    margin-top: 1rem; 
    justify-content: center;
    align-items: center;
}
.social-links a {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    text-decoration: none;
    transition: transform 0.3s;
}
.social-links a:hover {
    transform: scale(1.1);
}
.social-links i { 
    transition: color 0.3s; 
    cursor: pointer; 
    color: #ff66cc; 
}
.social-links a:hover i { 
    color: #ff3399; 
}
.social-links span {
    font-size: 0.7rem;
    color: #ff66cc;
    font-weight: bold;
    transition: color 0.3s;
}
.social-links a:hover span {
    color: #ff3399;
}
/*Skills*/
.skills { 
    margin-top: 2rem; 
}

.skills-icons { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    gap: 1rem; 
    font-size: 3.5rem; 
    margin-top: 1rem; 
}

.skills-icons .skill { 
    display: flex; 
    flex-direction: column; 
    align-items: center; 
    gap: 0.5rem; 
    cursor: pointer; 
    transition: transform 0.3s, color 0.3s; 
    color: #ff66cc; 
}

.skills-icons .skill i { 
    font-size: 3.5rem; 
}

.skills-icons .skill span { 
    font-size: 1rem; 
    color: #c0b7b7; 
    text-align: center; 
}

.soft-skills-icons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  font-size: 3.5rem;
  margin-top: 1rem;
}

.soft-skills-icons .skill {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: transform 0.3s, color 0.3s;
  color: #ff66cc;
}

.soft-skills-icons .skill i {
  font-size: 3.5rem;
}

.soft-skills-icons .skill span {
  font-size: 1rem;
  color: #c0b7b7;
  text-align: center;
}

/*Projects*/
.projects-container { 
    display: flex; 
    flex-direction: column; 
    gap: 2rem; 
}
.project-card { 
    background-color: #2c2c2c; 
    padding: 1rem; 
    border-radius: 10px; 
    box-shadow: 0 2px 8px rgba(255,102,204,0.4); 
    display: flex; 
    flex-direction: column; 
    align-items: stretch; 
    text-align: justify; 
    transition: transform 0.3s, box-shadow 0.3s; 
}
.project-card h2,
.project-card h3,
.project-card h4 {
    text-align: center;
}
.project-card > div:last-of-type {
    display: flex;
    justify-content: center;
}
.project-card:hover { 
    transform: translateY(-5px); 
    box-shadow: 0 4px 12px rgba(255,102,204,0.6); 
}
.project-media {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
}
.project-img { 
    width: 100%; 
    max-width: 400px; 
    height: auto; 
    border-radius: 10px; 
}
.project-languages { 
    display: flex; 
    flex-direction: row;
    gap: 0.5rem; 
    align-items: center;
    margin-top: 1rem; 
}
.project-languages i { 
    font-size: 3rem; 
    color: #ff66cc; 
    transition: transform 0.3s, color 0.3s; 
    cursor: default; 
}

/*Footer*/
footer { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: center; 
    align-items: center; 
    gap: 0.5rem; 
    background-color: #2c2c2c; 
    color: #ff66cc; 
    text-align: center; 
    padding: 1rem 2rem; 
}

/*Media*/
@media screen and (max-width: 768px) {
    * {
    margin: 0;
    padding: 0;
  }
  
  body {
    width: 100%;
    overflow-x: hidden;
  }
    /* Navbar */
    .navbar { 
        display: none;
    }

    /* Home */
    .home-avatar { 
        display: none;
    }
    .salut { 
        font-size: 2rem; 
    }

    /* Skills */
    .skills-icons { 
        font-size: 2.5rem; 
        gap: 0.8rem; 
    }

        /* Projects */
        .project-media {
            flex-direction: column;
            align-items: center;
        }
        .project-languages {
            margin-left: 0;
            align-items: center;
            margin-top: 0.5rem;
        }
}

@media screen and (max-width: 480px) {
    body {
    width: 100vw;
    overflow-x: hidden;
  }
    .logo { 
        font-size: 1.8rem; 
    }
    .home-avatar { 
        width: 120px;
        height: 120px; 
    }
    .salut { 
        font-size: 1.6rem; 
    }
    .name { 
        font-size: 1.5rem; 
    }
    .skills-icons { 
        font-size: 2rem; 
        gap: 0.7rem;
    }
    .nav-links li a { 
        font-size: 0.9rem; 
    }
    .btn { 
        padding: 0.4rem 0.8rem; 
        font-size: 0.9rem;
    }
}
