body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

#particles-js {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background-color: #f7f7f7;
}


/* Navbar CSS */

header {
    background-color: #1e1e1e;
    color: #fff;
    padding: 1rem 2rem;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

header h1 {
    margin: 0;
    font-size: 2rem;
    letter-spacing: 1px;
    font-weight: 700;
}

.navbar {
    margin-top: 1rem;
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.navbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    transition: all 0.3s ease;
}

.navbar a:hover {
    color: #a290c5; 
}

.navbar a::after {
    content: "";
    display: block;
    height: 2px;
    background: #a290c5;
    transition: width 0.3s;
    width: 0;
    position: absolute;
    bottom: -4px;
    left: 0;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar i {
    transition: transform 0.3s ease, color 0.3s ease;
}

.navbar a:hover i {
    transform: translateY(-3px); 
    color: #a290c5; 
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
        gap: 1rem;
    }
}

/* About CSS */

#about {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: auto;
}

#about h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #333;
}

#about h2 i {
    color: #a290c5;
}

.about-container {
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.about-info-card {
    background-color: #f7f7f7;
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    flex: 0 0 250px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover;
    border-radius: 50%;
    border: 3px solid #a290c5;
    margin-bottom: 1rem;
}

.about-info-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #555;
}

.about-info-card li {
    margin: 0.5rem 0;
}

.about-container p {
    flex: 1 1 400px;
    line-height: 1.7;
    color: #444;
    margin-bottom: 1rem;
}

@media (max-width: 768px) {
    .about-container {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .about-container p {
        flex: unset;
    }
}

.about-info-card {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: 8px;
    max-width: 400px; 
    gap: 1rem;
}

.about-info-card img {
    object-fit: cover;
    border-radius: 50%;
    margin-right: 1rem;
}

.about-info-card p {
    margin: 0;
    flex: 1;
}

/* Projects CSS */

#projects {
    padding: 3rem 2rem;
    max-width: 900px;
    margin: auto;
}

#projects h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: #333;
}

#projects h2 i {
    color: #a290c5;
}

.project {
    background-color: #f7f7f7;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
    box-shadow: 0 4px 8px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.project:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.project h3 {
    margin-top: 0;
    margin-bottom: 1rem;
    color: #222;
}

.project p {
    margin-bottom: 1rem;
    line-height: 1.6;
    color: #444;
}

.project ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
    color: #555;
}

.project a {
    display: inline-block;
    background-color: #333;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.project a:hover {
    background-color: #a290c5;
    transform: translateY(-2px);
    color: #fff;
}

@media (max-width: 768px) {
    .project {
        padding: 1rem;
    }
}

/* Contact CSS */

/* Section Contact */
#contact {
    padding: 3rem 2rem;
    max-width: 800px;
    margin: auto;
    text-align: center;
}

/* Titre */
#contact h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    color: #333;
}

#contact h2 i {
    color: #a290c5;
}

/* Container des liens */
.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
}

/* Liens contact */
.contact-info a {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: #333;
    background-color: #f7f7f7;
    padding: 0.7rem 1rem;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

/* Hover effect */
.contact-info a:hover {
    background-color: #a290c5;
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

/* Icônes dans les liens */
.contact-info i {
    font-size: 1.2rem;
    transition: transform 0.3s ease, color 0.3s ease;
}

.contact-info a:hover i {
    transform: scale(1.2);
}

/* Responsive */
@media (max-width: 600px) {
    .contact-info {
        flex-direction: column;
        gap: 1rem;
    }
}


i.fab.fa-github {
    color: black;
}

i.fab.fa-linkedin {
    color: #0077b5;
}

i.fas.fa-envelope {
    color: #D44638;
}

.contact-info {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    text-decoration: none; 
    color: inherit;
}

.contact-info a {
    text-decoration: none;
    color: inherit;
}

.contact-info a:hover {
    opacity: 0.8;
    scale: 1.5;
}

header {
    background: #333;
    color: #fff;
    padding: 1rem;
    text-align: center;
}

nav a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

section {
    padding: 2rem;
    max-width: 800px;
    margin: auto;
}

.project {
    border: 1px solid #ccc;
    padding: 1rem;
    margin: 1rem 0;
    border-radius: 8px;
}

i {
    margin-right: 8px;
}

footer {
    text-align: center;
    padding: 1rem;
    background: #f4f4f4;
}

.about-container {
    display: flex;
    align-items: center;
    gap: 2rem; 
    flex-wrap: wrap; 
}

.profile-photo {
    width: 150px;
    height: 150px;
    object-fit: cover; /* remplit le cadre en gardant les proportions */
    border-radius: 50%; /* rend la photo ronde */
    border: 2px solid #333; /* contour facultatif */
}

/* Loader CSS */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #fff; 
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.loader-bar {
    width: 0;
    height: 6px;
    background-color: #9b59b6; 
    border-radius: 3px;
    animation: load 3s linear infinite;
}

@keyframes load {
    0% { width: 0; }
    100% { width: 300px; } 
}
