/* Global reset */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Montserrat', sans-serif;
    line-height: 1.6;
    background-color: #f4f4f9;
    padding: 0 20px;
}

html {
    scroll-behavior: smooth;
}


nav {
    background-color: #163854;
    padding: 10px 0;
    text-align: center;
}

nav ul {
    list-style-type: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin: 0 15px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    font-size: 1.1rem;
}

nav ul li a:hover {
    text-decoration: underline;
}

.maintitle {
    text-align: center;
    margin-top: 20px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #163854;
}

.bio-section {
    margin: 20px auto;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.bio-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    position: relative;
}

.mypicture {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 10px;
}

.bio-text p {
    font-size: 1.1rem;
    color: #333;
}

.linkedin {
    font-size: 1.1rem;
    color: #0e76a8;
    text-decoration: none;
}

.linkedin:hover {
    text-decoration: underline;
}

.experience-section {
    margin-top: 40px;
}

.experience-section h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
}

.experience {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.experience h2 {
    font-size: 1.5rem;
    color: #163854;
}

.experience p {
    font-size: 1rem;
    color: #333;
    margin-top: 10px;
}

.experience-img {
    width: 100px;
    height: auto;
    margin-top: 10px;
}

footer {
    text-align: center;
    margin-top: 50px;
    padding: 20px 0;
    background-color: #163854;
    color: #fff;
}

/* Modal styles */
.modal {
    position: fixed;
    z-index: 999;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
    transition: opacity 0.3s ease;
    opacity: 0;
    pointer-events: none;
}

.modal.show {
    display: block;
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fff;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    position: relative;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.modal-header h2 {
    font-size: 1.5rem;
    color: #103567;
}

.close {
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
}

.modal-body input,
.modal-body textarea,
.modal-body small {
    font-family: 'Montserrat', sans-serif;
    font-size: 1rem;
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ccc;
    width: 100%;
}

.modal-body textarea {
    resize: none;
    height: 150px;
}

.modal-footer {
    text-align: right;
    margin-top: 10px;
}

.modal-footer button {
    background-color: #163854;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 500;
}

.modal-footer button:hover {
    background-color: #0e2940;
}

.bio-action {
    margin-top: 15px;
    text-align: right; /* Pour centrer le bouton */
}


.mail-icon-btn {
    background-color: #e6ecf5;
    border: 2px solid #103567;
    border-radius: 50%;
    padding: 10px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.mail-icon-btn:hover {
    background-color: #d0dff2;
    transform: scale(1.1);
}

/* Compétences section */
.competences-section {
    margin-top: 40px;
    background-color: #ffffff;
    padding: 30px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.competences-section h1 {
    text-align: center;
    margin-bottom: 20px;
    font-size: 2rem;
    color: #163854;
}

.competences-section ul {
    list-style-type: "⮚ ";
    padding-left: 20px;
    font-size: 1.1rem;
    color: #333;
}

.competences-section li {
    margin-bottom: 10px;
}


#successMessage,
#loadingSpinner {
    text-align: center;
    margin-top: 15px;
}

#successMessage {
    color: #103567;
    font-weight: bold;
    font-size: 1rem;
}

#loadingSpinner svg {
    display: block;
    margin: auto;
}

#loadingSpinner p {
    color: #103567;
    font-size: 0.95em;
    margin-top: 5px;
}

/* Timeline container */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 50px auto;
    padding: 20px 0;
}

/* Each timeline item */
.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    position: relative;
    background-color: #fff;
    border-left: 4px solid #163854;
    margin-bottom: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease;
}

.timeline-item:hover {
    transform: scale(1.01);
}

.timeline-date {
    position: absolute;
    left: -110px;
    top: 25px;
    width: 100px;
    font-weight: bold;
    color: #163854;
    text-align: right;
}

.timeline-content {
    flex: 1;
    padding-right: 20px;
}

.timeline-content h2 {
    color: #103567;
    font-size: 1.4rem;
    margin-bottom: 10px;
}

.timeline-content p {
    color: #333;
    font-size: 1rem;
}

.timeline-logo {
    margin-left: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline-logo img {
    max-width: 60px;
    max-height: 60px;
    object-fit: contain;
    display: block;
}


/* Responsive design */
@media (min-width: 768px) {
    .bio-content {
        flex-direction: row;
        text-align: left;
    }

    .bio-text {
        margin-left: 20px;
    }
	
}

@media (max-width: 768px) {
    .experience {
        padding: 15px;
    }

    .bio-content {
        flex-direction: column;
    }
	
    .timeline-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline-date {
        position: static;
        text-align: left;
        margin-bottom: 10px;
    }

    .timeline-logo {
        margin: 15px 0 0 0;
        align-self: flex-end;
    }
}
