
body {
    font-family: 'Source Sans 3', sans-serif;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    min-height: 100vh;
    overflow-x: hidden;
    color: #050505;
    background-color: #121212;
    position: relative;
    scroll-behavior: smooth;
    transition: opacity 0.5s, background-color 0.5s, background-image 0.5s;
}

body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('scott-rodgerson-PSpf_XgOM5w-unsplash.jpg');
    background-size: cover;
    background-position: center;
    z-index: -1;
}


.nav-button {
    display: inline-block;
    padding: 10px 5px;
    margin: 10px 0;
    background-color: #f0f0f0;
    text-decoration: none;
    color: black;
    border-radius: 5px;
    font-family: 'Oswald', sans-serif;
    cursor: pointer;
    text-align: center;
    box-shadow: none;
    border: none;
    z-index: 10;
    position: relative;
}


#sidebar-left, #sidebar-right {
    position: fixed;
    top: 0;
    width: 200px;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    flex-direction: column;
    padding: 20px;
    box-sizing: border-box;
    z-index: 10;
    overflow-y: auto;
}

#sidebar-left {
    left: 0;
}

#sidebar-right {
    right: 0;
}


#bastien-info {
    position: relative;
    margin-bottom: 20px;
    color: #fff;
    font-size: 20px;
    text-align: center;
    padding: 20px;
    background-color: #242424;
    border-radius: 8px;
    overflow: hidden;
    text-shadow: 3px 3px 7px rgba(0, 0, 0, 0.8);
}

#bastien-info svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

#bastien-info .line {
    stroke-dasharray: 1000;
    stroke-width: 2px;
    fill: transparent;
    stroke: rgba(13, 45, 255, 0.8);
    animation: svgAnimation 3s linear infinite;
}

#bastien-info .inner {
    position: relative;
    z-index: 1;
    font-family: 'Oswald', sans-serif; 
}

@keyframes svgAnimation {
    from {
        stroke-dashoffset: 1000;
    }
    to {
        stroke-dashoffset: 0;
    }
}

.text-container {
    position: relative;
    display: inline-block;
    margin-top: 50px;
}

.scroll-text {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    white-space: nowrap;
    position: relative;
    font-size: 50px;
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    overflow: hidden;
}

.text-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 3px solid white; 
    box-sizing: border-box;
    z-index: -1; 
}

.scroll-text span {
    display: inline-block;
    position: relative;
    padding: 0 5px;
    animation: float 4s ease-in-out infinite;
}

.scroll-text .fl {
    position: relative;
    display: inline-block;
}

.scroll-text .y1 { animation-delay: 0.1s; }
.scroll-text .y2 { animation-delay: 0.3s; }
.scroll-text .y3 { animation-delay: 0.5s; }
.scroll-text .y4 { animation-delay: 0.7s; }
.scroll-text .y5 { animation-delay: 0.9s; }
.scroll-text .y6 { animation-delay: 1.1s; }

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}


#additional-content {
    margin: 50px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    z-index: 10;
    position: relative;
}


#presentation {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.presentation-image {
    max-width: 150px;
    height: auto;
    border-radius: 50%;
    margin-right: 20px;
}

.presentation-text {
    flex: 1;
}

h1, h2, h3, h4 {
    font-family: 'Oswald', sans-serif;
    margin: 20px 0;
    font-weight: normal;
}

#presentation h2 {
    color: black;
}

h2 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-family: 'Oswald', sans-serif;
}

h3 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
}

h4 {
    font-size: 28px;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    font-family: 'Oswald', sans-serif;
}

.competences {
    text-align: center; 
    margin: 0; 
    padding: 20px 0;
}

#competences-content {
    margin: 50px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    z-index: 10;
}

.competences-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center; 
    
}


.competence-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    transition: transform 0.3s ease;
    border: 1px solid rgba(200, 200, 200, 0.3); 
    width: 45%; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);

}

.competence-item:hover {
    transform: translateY(-5px);
}


.competence-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    justify-content: center;
}

.competence-icons {
    display: flex;
    justify-content: center;
    gap: 15px; /* Espace entre les images */
    margin-bottom: 15px;
}

.competence-icon {
    width: 90px; /* Largeur uniforme */
    height: 90px; /* Hauteur uniforme */
    object-fit: contain; /* Conserve les proportions des images */
    border-radius: 8px; /* Coins arrondis pour harmonisation */
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2); /* Optionnel : ajouter une ombre douce */
}

.competence-item h4 {
    font-family: 'Arial', sans-serif; 
    font-size: 18px; 
    color: #333; 
    margin: 10px 0; 
    text-align: center; 
    text-transform: uppercase; 
}

.competence-item p {
    text-align: center; 
    margin: 5px 0; 
    font-size: 16px; 
}


@media (max-width: 768px) {
    .competence-item {
        width: 100%;
    }
}


#certifications-content {
    margin: 50px 0;
    padding: 20px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 800px;
    z-index: 10;
    position: relative;
}

.mooc-images {
    display: flex; /* Active le mode Flexbox */
    flex-wrap: nowrap; /* Empêche les retours à la ligne */
    gap: 20px; /* Ajoute un espace entre les images */
    justify-content: center; /* Aligne horizontalement au centre */
    align-items: center; /* Aligne verticalement au centre */
    overflow-x: auto; /* Permet le défilement horizontal si nécessaire */
    padding: 10px;
}

.mooc-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    transition: transform 0.3s ease;
}

.mooc-item:hover {
    transform: translateY(-5px);
}
.pdf-link {
    margin-top: 10px;
    text-decoration: none;
    color: #3498db;
    font-weight: bold;
    z-index: 1;
    position: relative;
}

.pdf-link:hover {
    text-decoration: underline;
}

.mooc-image {
    width: 150px; /* Définit une largeur fixe */
    height: 150px; /* Définit une hauteur fixe */
    object-fit: contain; /* Conserve les proportions des images */
    flex-shrink: 0; /* Empêche les images de se réduire si l'espace est limité */
    border-radius: 8px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}


@media only screen and (max-width: 768px) {
    #sidebar-left, #sidebar-right {
        position: relative;
        width: 100%;
        height: auto;
        padding: 10px;
        display: flex;
        justify-content: center;
        background: none;
    }

    .nav-button {
        width: 100%;
        font-size: 14px;
        padding: 8px;
    }

    .presentation-image {
        width: 80px;
        margin-right: 10px;
    }

    .presentation-text h2 {
        font-size: 20px;
    }

    .presentation-text p {
        font-size: 14px;
    }

    #additional-content {
        margin: 20px 0;
        padding: 15px;
        width: 90%;
        max-width: 100%;
    }

    .mooc-images {
        flex-direction: column;
        gap: 20px;
    }

    .mooc-item {
        width: 100%;
    }

    .mooc-image {
        max-width: 100px;
    }

    .scroll-text {
        font-size: 24px;
        padding: 20px 0;
    }

    h2, h3 {
        font-size: 24px;
    }

    #presentation {
        flex-direction: column;
        text-align: center;
    }

    #bastien-info {
        font-size: 16px;
    }

    body {
        font-size: 16px;
    }

    .competence-icon {
        width: 30px;
        height: 30px;
    }

    .competence-item {
        padding: 15px;
    }
}

@media only screen and (max-width: 480px) {
    .scroll-text {
        font-size: 18px;
    }

    .presentation-text p {
        font-size: 12px;
    }

    .mooc-image {
        max-width: 80px;
    }
}
