/* Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    color: #333;
    background-color: #fdfdfd;
    line-height: 1.6;
}

/* Navigation */
.navbar {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    width: 100%;
    height: 70px;
    background-color: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    z-index: 1000;
}

.navbar a {
    margin: 0 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    position: relative;
    transition: color 0.3s;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0%;
    height: 2px;
    background: #5c6bc0;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.navbar a:hover {
    color: #5c6bc0;
}

.navbar a:hover::after {
    width: 100%;
}

/* Container */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 20px 50px;
}

/* Intro Section */
.intro {
    text-align: center;
    margin-top: 100px;
}

.intro h1 {
    font-size: 3rem;
    color: #5c6bc0;
    margin-bottom: 20px;
    animation: fadeInUp 1s ease forwards;
}

.intro p {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto;
    color: #666;
    animation: fadeInUp 1.3s ease forwards;
}

.photo {
    text-align: center;
    margin-top: 40px;
}

.photo img {
    width: 200px;
    height: 200px;
    object-fit: cover;
    border-radius: 50%;
    border: 5px solid #5c6bc0;
    transition: transform 0.3s ease;
}

.photo img:hover {
    transform: scale(1.05);
}

/* Timeline */
#timeline {
    text-align: center;
    padding: 50px 0;
    background-color: #f4f4f4;
}
.timeline-content {
    font-size: 18px;
    font-weight: bold;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
#timeline .texte {
    text-align: center;
}

.section-title {
    font-size: 2rem;
    color: #333;
    margin-bottom: 40px;
}

.timeline-1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}
.timeline-content h3 {
    margin: 0;
    display: flex;
    align-items: center;
}

.timeline-content p {
    margin-top: 5px;
    font-size: 14px;
    color: #666;
}

/* Icônes des langages */
.timeline-content h3::before {
    content: "";
    display: inline-block;
    width: 30px;
    height: 30px;
    margin-right: 10px;
    background-size: contain;
    background-repeat: no-repeat;
}

/* Ajout des icônes spécifiques */
.timeline-content h3:has(span.html)::before {
    background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/html5/html5-original.svg');
}

.timeline-content h3:has(span.css)::before {
    background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/css3/css3-original.svg');
}

.timeline-content h3:has(span.sql)::before {
    background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/mysql/mysql-original.svg');
}

.timeline-content h3:has(span.php)::before {
    background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/php/php-original.svg');
}

.timeline-content h3:has(span.javascript)::before {
    background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/javascript/javascript-original.svg');
}

.timeline-content h3:has(span.csharp)::before {
    background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/csharp/csharp-original.svg');
}

.timeline-content h3:has(span.symfony)::before {
    background-image: url('https://cdn.jsdelivr.net/gh/devicons/devicon/icons/symfony/symfony-original.svg');
}
.timeline-component {
    width: 50%;
    padding: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.timeline-component:hover {
    transform: translateY(-5px);
}

.timeline-circle {
    width: 20px;
    height: 20px;
    background: #5c6bc0;
    border-radius: 50%;
    margin: 0 auto 10px;
}

/* Certifications */
#certifications {
    background-color: #f9f9f9;
    padding: 80px 20px;
}

.certifications-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.certification-item {
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    transition: transform 0.3s ease;
}

.certification-item:hover {
    transform: translateY(-5px);
}

.certification-item img {
    max-width: 100%;
    border-radius: 5px;
    margin-bottom: 15px;
}

/* Contact */
#contact {
    padding: 80px 20px;
    background-color: #fff;
}

#contact h2 {
    text-align: center;
    color: #333;
    margin-bottom: 40px;
}

form {
    max-width: 600px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
}

button[type="submit"] {
    background-color: #5c6bc0;
    color: #fff;
    padding: 12px 30px;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    font-size: 1rem;
    transition: background-color 0.3s;
}

button[type="submit"]:hover {
    background-color: #3f51b5;
}

/* Footer */
footer {
    text-align: center;
    padding: 40px 20px;
    font-size: 0.9rem;
    color: #aaa;
    position: relative;
}

footer .social-icons {
    margin-top: 10px;
}

footer .social-icons a {
    color: #333;
    margin: 0 10px;
    font-size: 1.2rem;
    transition: color 0.3s;
}

footer .social-icons a:hover {
    color: #5c6bc0;
}

.scroll-to-top {
    position: fixed;
    right: 20px;
    bottom: 20px;
    display: none;
    background: #5c6bc0;
    color: #fff;
    padding: 12px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

/* Animations */
@keyframes fadeInUp {
    0% { opacity: 0; transform: translateY(20px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Responsive */
@media(max-width: 768px) {
    .intro h1 {
        font-size: 2.5rem;
    }

    .timeline-component {
        width: 100%;
    }
}
/* ===== Projects Section ===== */
.projects-section {
    padding: 80px 20px;
    background-color: #f9f9f9;
  }
  
  .projects-section .section-title {
    text-align: center;
    font-size: 3rem;
    margin-bottom: 60px;
    color: #333;
  }
  
  .projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    justify-items: center;
  }
  
  .project-card {
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 400px;
  }
  
  .project-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
  }
  
  .project-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }
  
  .project-info {
    padding: 20px;
  }
  
  .project-info h3 {
    font-size: 1.8rem;
    color: #333;
    margin-bottom: 10px;
  }
  
  .project-info p {
    font-size: 1rem;
    color: #666;
    margin-bottom: 20px;
  }
  
  .project-info .btn {
    display: inline-block;
    background-color: #6C63FF;
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: background-color 0.3s ease;
  }
  
  .project-info .btn:hover {
    background-color: #5146d8;
  }
  