/* Global Styles */
body {
    margin: 0;
    font-family: 'Rubik', sans-serif;
    color: #333;
}

/* Add margin to the main content container */
.main-container {
    max-width: 1500px; /* Set the maximum width of your content */
    margin: 0 auto; /* Center the container */
    padding: 0 20px; /* Add left and right padding */
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 30px;
    background-color: rgba(255, 255, 255, 0.5);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
    border-radius: 50px;
    margin: 20px auto;
    width: 90%;
    backdrop-filter: blur(80px);
    position: fixed;

}

.logo {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 60px;
}

.nav-links li {
    display: inline-block;
}

.nav-links a {
    text-decoration: none;
    color: #004b73;
    font-size: 18px;
    position: relative;
    transition: color 0.15s ease;
    font-weight: bold;
}

.nav-links a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 0;
    background-color: #004b73;
    transition: width 0.2s ease;
}

.nav-links a:hover::after {
    width: 100%;
}

.contact-btn {
    background-color: transparent;
    font-family: 'Rubik', sans-serif;
    color: #004b73;
    border: 2px solid #004b73;
    padding: 8px 20px;
    border-radius: 20px;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    font-weight: bold;
}

.contact-btn:hover {
    background-color: #004b73;
    color: #fff;
    font-weight: bold;
}

/* Hero Section */
.hero {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 30px;
}

.hero-content {
    flex: 1;
    font-size: 1.5em;
    text-align: left;
    padding-right: 50px;
    padding-left: 45px;
    max-width: 50%;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 50%;
}

.hero-image img {
    max-width: 130%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 10px;
}

/* Sections */
section {
    padding: 50px 0;
}

h2 {
    color: #004b73;
    font-size: 2em;
    margin-bottom: 30px;
}

/* About Section */
#about {
    background-color: #f5f5f5;
    text-align: center;
}

/* Sections Container */
.sections-container {
    display: flex;
    justify-content: space-between;
    align-items: flex-start; /* Aligne le haut des sections */
    padding: 0 30px; /* Ajustez le padding selon vos besoins */
}

/* Experience and Formation Sections */
#experience, #formation {
    width: 48%; /* Pour que les sections occupent environ la moitié de la largeur */
    padding: 20px;
    box-sizing: border-box; /* Important pour que le padding ne modifie pas la largeur totale */
}

/* Timeline Styles */
.timeline {
    position: relative;
    max-width: 100%; /* La timeline prend toute la largeur de sa section */
    margin: 30px auto;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 38px;
    width: 3px;
    background-color: #004b73;
}

.timeline-wrapper {
    position: relative;
    padding: 22px 0;
}

.timeline-wrapper:last-child::before {
    height: 0;
}

.timeline-wrapper::before {
    content: "";
    position: absolute;
    left: 38px;
    top: 0;
    height: 100%;
    width: 3px;
    background: #004b73;
}

.timeline-yr {
    background: #004b73;
    border-radius: 100%;
    position: absolute;
    width: 65px;
    height: 65px;
    line-height: 65px;
    text-align: center;
    left: 5px;
    top: 50%;
    transform: translateY(-50%);
    color: #ffffff;
    font-weight: bold;
}

.timeline-yr span {
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    display: block;
    line-height: 65px;
}

.timeline-info {
    display: inline-block;
    vertical-align: top;
    max-width: 70%;
    margin-left: 85px;
    padding: 15px;
    background-color: #ffffff;
    border-radius: 5px;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.timeline-info h3 {
    color: #004b73;
    font-size: 1.2em;
    margin-bottom: 10px;
}

.timeline-info p {
    margin-bottom: 10px;
}

.timeline-info ul {
    list-style-type: disc;
    padding-left: 20px;
    line-height: 1.6;
}

.timeline-info ul li {
    margin-bottom: 5px;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: #fff;
    padding: 20px 0;
    text-align: center;
    font-size: 0.8em;
    margin-top: 50px;
}

.footer-links {
    margin-top: 10px;
}

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

.footer-links a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
   .sections-container {
        flex-direction: column;
        padding: 0;
    }

    #experience, #formation {
        width: 100%;
        padding: 20px;
    }

    .timeline::before {
        left: 25px;
    }

    .timeline-wrapper::before {
        left: 25px;
    }

    .timeline-yr {
        width: 50px;
        height: 50px;
        line-height: 50px;
        font-size: 0.8em;
        left: 0;
    }

    .timeline-info {
        margin-left: 60px;
        max-width: 80%;
    }
}
