/* === GENERAL === */
@keyframes fadeTimeline {
    0% {
        opacity: 0;
        transform: translateY(25px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === BACKGROUND WAVE (Three.js) === */
#bg-wave {
    position: fixed;
    inset: 0;
    z-index: 0;          /* arrière-plan */
    pointer-events: none; /* le canvas ne bloque pas les clics */
}

/* Le canvas généré par Three.js */
#bg-wave canvas {
    width: 100%;
    height: 100%;
    display: block;
}

body {
margin: 0;
font-family: 'Inter', sans-serif;
color: #c9d1d9;
}

p {
margin: 0;
padding: 0;
}

/* === NAVBAR === */
.navbar {
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 40px;
position: sticky;
top: 0;
z-index: 1000;
}

.navbar .logo {
font-size: 24px;
font-weight: bold;
color: #58a6ff;
font-family: 'Fira Code', monospace;
letter-spacing: 0.5px;
text-shadow: 0 0 5px rgba(88, 166, 255, 0.4), 0 0 10px rgba(88, 166, 255, 0.2);
transition: text-shadow 0.3s ease;
}

.navbar .logo:hover {
text-shadow: 0 0 8px rgba(88, 166, 255, 0.7), 0 0 12px rgba(88, 166, 255, 0.5);
}

.navbar .nav-links {
list-style: none;
display: flex;
gap: 30px;
}

.navbar .nav-links li a {
    text-decoration: none;
    color: #c9d1d9;
    font-weight: 500;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 14px;
}

.nav-links li a i {
    margin-right: 6px;
}

.navbar .nav-links li a i {
    font-size: 20px;
    transition: transform 0.2s, color 0.3s;
}

.navbar .nav-links li a:hover i {
    transform: scale(1.2);
    color: #58a6ff;
}

.navbar .nav-links li a:hover {
    color: #58a6ff;
}

#main-content {
    position: relative;
    z-index: 5;
}

/* === FOOTER === */
footer {
text-align: center;
padding: 37px 20px;
color: #f6f8fa;
font-size: 0.9em;
z-index: 1000;
position: relative;
}

/* === ABOUT === */
.about-box {
    background-color: rgba(13, 17, 23, 0.8);
    border: 1px solid rgba(88, 166, 255, 0.2);
    padding: 30px;
    margin: auto;
    border-radius: 10px;
    max-width: 1000px;
    box-shadow: 0 0 20px rgba(88, 166, 255, 0.1);
}

.about p {
    max-width: 1000px;
    margin: auto;
    line-height: 1.6;
}

section {
padding: 80px 20px;
text-align: center;
border-radius: 12px;
margin: 40px auto;
max-width: 1000px;
}

.section-title {
    font-size: 2.6em;
    color: #58a6ff;
    margin-bottom: 30px;
    text-decoration: underline;
    text-shadow: 0 0 12px rgba(88, 166, 255, 0.4);
}

/* === TIMELINE === */
.parcours {
    padding: 80px 20px;
    border-radius: 12px;
    margin: 40px auto;
    max-width: 1000px;
}

.experience {
    padding: 100px 20px;
    border-radius: 12px;
    margin: 20px auto;
    max-width: 1000px;
}

/* === TIMELINE === */

.timeline {
    position: relative;
    margin: 50px auto;
    padding: 0;
    max-width: 1000px;
}

.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background-color: #58a6ff;
    transform: translateX(-50%);
    z-index: 0;
}

.timeline-item {
    width: 50%;
    position: relative;
    padding: 40px 20px;
    box-sizing: border-box;
    opacity: 0;
    animation: fadeTimeline 0.9s ease forwards;
}

.timeline-item.left {
    left: 0;
    text-align: right;
    animation-delay: 0.2s;
}

.timeline-item.right {
    left: 50%;
    text-align: left;
    animation-delay: 0.4s;
}

.timeline-dot.left {
    position: absolute;
    top: 28px;
    left: 100%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background-color: #58a6ff;
    border: 3px solid #0d1117;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.6);
    z-index: 2;
    pointer-events: none;
}
.timeline-dot.right {
    position: absolute;
    top: 28px;
    left: 0;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    background-color: #58a6ff;
    border: 3px solid #0d1117;
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(88, 166, 255, 0.6);
    z-index: 2;
    pointer-events: none;
}

.timeline-item .timeline-content {
    background-color: #0d1117;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(88, 166, 255, 0.2);
    position: relative;
    z-index: 1;
    max-width: 90%;
}

.timeline-item.left .timeline-content::before {
    content: "";
    position: absolute;
    right: -10px;
    top: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent transparent transparent #0d1117;
}

.timeline-item.right .timeline-content::before {
    content: "";
    position: absolute;
    left: -10px;
    top: 20px;
    border-width: 10px;
    border-style: solid;
    border-color: transparent #0d1117 transparent transparent;
}

.timeline::after {
    content: "";
    display: table;
    clear: both;
}

/* Responsive */
@media screen and (max-width: 768px) {
.navbar .nav-links li a {
    font-size: 0;
    }

    .navbar .nav-links li a i {
    font-size: 22px;
    }

    .timeline::before {
        left: 10px;
    }

    .timeline-item {
        width: 100%;
        padding-left: 40px;
        padding-right: 20px;
        left: 0 !important;
        text-align: left;
    }

    .timeline-item.right,
    .timeline-item.left {
        left: 0;
    }

    .timeline-item .timeline-content {
        max-width: 100%;
    }

    .timeline-item .timeline-content::before {
        left: -10px !important;
        right: auto !important;
        border-color: transparent #0d1117 transparent transparent !important;
    }

    .timeline-dot.left {
        left: 0;
        transform: none;
    }
    .timeline-dot.right {
        left: 0;
        transform: none;
    }
}  
