body {
    font-family: Arial, Helvetica, sans-serif !important;
    margin: 0;
    padding: 0;
}

/*----------------------------------------------
1. PARTIE 1
----------------------------------------------*/

.section1 {
    width: 100%;
    height: 100vh;
}

.slider-background {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-content {
    justify-content: center;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #ffffff;
    font-size: 1.5rem;
}

.titlepresentation h1 {
    font-size: 2.7rem;
    margin: 0;
    font-weight: 500;
}

html {
    scroll-behavior: smooth;
}

.about-me-link {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000b3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 20px;
    transition: background-color 0.5s ease;
    font-size: 1rem;
    width: 150px;
    transition: transform 1s ease;
    box-shadow: 0 0 10px #3dcbf6;
}

.about-me-link:hover {
    background: linear-gradient(90deg, rgba(208, 78, 43, 1) 7%, rgba(0, 212, 255, 1) 100%);
    transform: scale(1.05);
    /* Augmente légèrement la taille du certificat lorsqu'il est survolé */
    box-shadow: 0 0 10px rgba(177, 88, 167, 0.5);
    /* Ajoute une ombre portée pour créer un effet de profondeur */
}

/*----------------------------------------------
2. PARTIE 2
----------------------------------------------*/

#section2 {
    background: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(7, 36, 59, 1) 35%, rgba(15, 183, 242, 1) 57%, rgba(6, 34, 59, 1) 71%);
}

.titlepresentation {
    padding: 30px;
    line-height: 150%;
    font-weight: bold;
    font-size: xx-large;
    text-align: center;
    color: #ffffff;
    font-weight: 100;
    letter-spacing: 2px;
}

.Aproposdemoi {
    font-size: x-large;
    line-height: 150%;
    color: #ffffff;
    padding: 20px;
    border: 2px solid #006faa;
    border-radius: 30px;
    background-color: #06202f;
    box-shadow: 0 0 10px rgba(29, 170, 242, 1);
    margin-right: 20px;
    margin-bottom: 30px;
}

.Competences,
.Contacts {
    font-size: x-large;
    line-height: 150%;
    color: #ffffff;
    margin-bottom: 20px;
}

.skill-bar {
    background-color: #333;
    border-radius: 10px;
    height: 20px;
    width: 100%;
    margin-top: 10px;
}

.skill {
    background-color: #00a4f6;
    border-radius: 10px;
    height: 100%;
    text-align: center;
    line-height: 20px;
    color: #ffffff;
}

#content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

#left {
    flex: 1;
    margin-right: 40px;
    /* Ajoute une marge à droite de la box à propos de moi */
    margin-left: 40px;
    margin-top: 50px;
}

#right {
    flex: 1;
    justify-content: center;
    display: flex;
    flex-direction: column;
}

#right .Competences {
    margin-bottom: 20px;
    /* Espace entre les compétences et les contacts */
}

#right .Contacts {
    margin-top: 20px;
    margin-right: 20px;
    /* Ajoute une marge à droite des contacts */
}

/* Espace au-dessus des compétences et contacts */
#right>div {
    margin-top: 30px;
}

.BoutonCV {
    display: inline-block;
    padding: 10px 20px;
    background-color: #041721cc;
    color: #ffffff;
    text-decoration: none;
    border-radius: 12px;
    border-color: #00a4f6;
    transition: transform 0.7s ease;
    font-size: 1rem;
    width: 150px;
    box-shadow: 0 0 10px rgba(29, 170, 242, 1);
}

.BoutonCV:hover {
    transform: scale(1.05);
    /* Augmente légèrement la taille du certificat lorsqu'il est survolé */
    box-shadow: 0
}

.container {
    width: 50%;
    margin: 0 auto;
}

.bar {
    background-color: #EEE;
    padding: 2px;
    border-radius: 15px;
    margin-bottom: 10px;
    font-size: 14px;
    color: #FFF;
    font-weight: bold;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}

.bar::before {
    content: attr(data-skill);
    background-color: #9fd3fa;
    display: inline-block;
    padding: 5px 0 5px 10px;
    border-radius: inherit;
    animation: load 2s 0s;
    -webkit-animation: load 2s 0s;
    -moz-animation: load 2s 0s;
    -o-animation: load 2s 0s;
}

.bar.front::before {
    background-color: #3d63b4;
}

.bar.back::before {
    background-color: #6087e7;
}


.bar.side::before {
    background-color: #3162de;
}

.bar.learning::before {
    width: calc(40% - 10px);
}

.bar.basic::before {
    width: calc(50% - 10px);
}

.bar.intermediate::before {
    width: calc(65% - 10px);
}

.bar.middle::before {
    width: calc(70% - 10px);
}

.bar.advanced::before {
    width: calc(35% - 10px);
}

.bar.expert::before {
    width: calc(35% - 10px);
}


.container h1 {
    color: #ffffff;
    font-weight: 100;
    letter-spacing: 4px;
}

.contact h1 {
    color: #ffffff;
    text-align: center;
    font-weight: 100;
    letter-spacing: 3px;
}

.contact {
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

/* From Uiverse.io by PapaUiiss404 */
.card {
    width: fit-content;
    height: fit-content;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 25px;
    gap: 20px;
    margin-top: -25px;
}

/* for all social containers*/
.socialContainer {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background-color: rgb(12, 136, 219);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    transition-duration: .3s;
}

/* twitter*/
.containerTwo:hover {
    background-color: #00acee;
    transition-duration: .3s;
}

/* linkdin*/
.containerThree:hover {
    background-color: #0072b1;
    transition-duration: .3s;
}

/* Whatsapp*/
.containerFour:hover {
    background-color: #128C7E;
    transition-duration: .3s;
}

.socialContainer:active {
    transform: scale(0.9);
    transition-duration: .3s;
}

.socialSvg {
    width: 17px;
}

.socialSvg path {
    fill: rgb(255, 255, 255);
}

.socialContainer:hover .socialSvg {
    animation: slide-in-top 0.3s both;
}

@keyframes slide-in-top {
    0% {
        transform: translateY(-50px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.Aproposdemoi h2 {
    font-weight: 100;
    letter-spacing: 1.5px;
}


/*----------------------------------------------
3. PARTIE 3
----------------------------------------------*/


.section3 {
    margin-top: 120px;
}

.certifications {
    display: flex;
    margin-left: 50px;
    flex-wrap: wrap;
}

.titlepresentation hr {
    border: 1.6px solid rgb(255, 255, 255);
    background: linear-gradient(0deg, rgba(29, 170, 242, 1) 0%, rgba(0, 0, 0, 1) 56%);
    width: 200px;
    box-shadow: 0 0 10px rgba(29, 170, 242, 1);
    border-radius: 15px;
}

.carousel {
    position: relative;
    width: 90%;
    max-width: 1400px;
    margin: 0 auto;
    overflow: hidden;
}

.certifications {
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    mask-image: linear-gradient(to right,
            transparent,
            black 20%,
            black 80%,
            transparent);
    -webkit-mask-image: linear-gradient(to right,
            transparent,
            black 20%,
            black 80%,
            transparent);
}

.carousel-track {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 30px;
}

.certif-link {
    flex: 0 0 calc(33.333% - 20px);
    max-width: 440px;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.certif {
    width: 100%;
    height: 300px;
    transform-style: preserve-3d;
    transition: all 0.5s ease;
    background: rgba(2, 76, 115, 0.64);
    backdrop-filter: blur(10px);
    border: 3px solid #219bff;
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certif:hover {
    transform: translateZ(20px) rotateX(5deg) rotateY(5deg);
    border: 3px solid #ffffff;
}

.imgcertif {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/*----------------------------------------------
4. PARTIE 4
----------------------------------------------*/

.section4 {
    margin-top: 100px;
}

.design {
    display: flex;
    align-items: center;
    justify-content: center;
}

.timeline {
    width: 80%;
    height: auto;
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
}

.timeline-content {
    padding: 20px;
    background: #023c5d;
    -webkit-box-shadow: 5px 5px 10px #0a4e67, -5px -5px 10px #0b4374;
    box-shadow: 5px 5px 10px #025973, -5px -5px 10px #034977;
    border-radius: 5px;
    color: white;
    padding: 1.75rem;
    transition: 0.4s ease;
    overflow-wrap: break-word !important;
    margin: 1rem;
    margin-bottom: 20px;
    border-radius: 6px;
    border: 2px solid #ffffff;
}

.timeline-component {
    margin: 0px 20px 20px 20px;
}

.timeline {
    display: grid;
    grid-template-columns: 1fr 3px 1fr;
}

.timeline-middle {
    position: relative;
    background-image: linear-gradient(45deg, #68b8e0, #68b8e0, #68b8e0);
    width: 3px;
    height: 100%;
}

.main-middle {
    opacity: 0;
}

.timeline-circle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background-image: linear-gradient(45deg, #ffffff, #ffffff, #ffffff);
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
}

/*----------------------------------------------
Responsive
----------------------------------------------*/

/* Ajout de styles pour les petits écrans */
@media (max-width: 767px) {
    .section1 {
        height: auto;
        /* Permet à la section de s'ajuster à son contenu */
    }

    .slider-content {
        font-size: 1.2rem;
        /* Réduit la taille de la police pour les petits écrans */
    }

    #content {
        flex-direction: column;
        /* Aligne le contenu en colonne */
        padding: 10px;
        /* Ajoute un peu de padding pour l'espacement */
        margin: 0 auto;
        /* Centre le contenu */
    }

    #left {
        flex: 1;
        /* Permet à la div gauche de prendre plus de place */
        margin-right: 20px;
        /* Ajoute un espace entre les deux colonnes */
        margin-bottom: 20px;
        /* Ajoute un espace en bas pour le responsive */
    }

    #right {
        flex: 1;
        /* Permet à la div droite de prendre plus de place */
        margin-left: 20px;
        /* Ajoute un espace entre les deux colonnes */
    }

    #right {
        width: 100%;
        /* Prend toute la largeur sur les petits écrans */
        margin: 0;
        /* Supprime les marges */
    }

    .carousel {
        flex-direction: column;
        /* Aligne les éléments du carousel en colonne */
        width: 100%;
        /* Prend toute la largeur */
        align-items: center;
        /* Centre les éléments du carrousel */
    }

    .certifications {
        flex-direction: column;
        /* Aligne les certifications en colonne */
        margin-left: 0;
        /* Supprime la marge à gauche */
        width: 100%;
        /* Prend toute la largeur */
    }

    .certif-link {
        flex: 0 0 100%;
        /* Affiche une seule certification à la fois */
        opacity: 1;
        transition: opacity 0.3s ease-in-out;
    }

    .certif {
        height: 200px;
        /* Ajuste la hauteur */
        margin: 0 auto;
        /* Centre la certification */
        display: flex;
        /* Utilise flexbox pour centrer le contenu */
        justify-content: center;
        /* Centre horizontalement */
        align-items: center;
        /* Centre verticalement */
    }

    /* Ajout pour centrer la timeline */
    .timeline {
        margin: 0 auto;
        /* Centre la timeline */
        display: block;
        /* Affiche les éléments en bloc */
    }

    .timeline-middle {
        display: none;
        /* Masque les barres de la timeline */
    }

    .timeline-circle {
        margin: 0 auto;
        /* Centre les cercles */
    }

    .timeline-component {
        text-align: center;
        /* Centre le texte */
    }
}

/* Styles pour le menu mobile */
.mobile-menu {
    display: none;
    /* Masqué par défaut */
    font-size: 30px;
    cursor: pointer;
    color: white;
    /* Couleur du texte en blanc */
    background-color: transparent;
    /* Fond transparent */
    border: none;
    /* Pas de bordure */
    padding: 10px;
    /* Ajoute un peu d'espace autour du texte */
    transition: color 0.3s;
    /* Transition douce pour le changement de couleur */
}

.mobile-menu:hover {
    color: #f0f0f0;
    /* Couleur légèrement plus claire au survol */
}

.mobile-menu-overlay {
    display: none;
    /* Masqué par défaut */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    /* Augmentez l'opacité ici (0.85 au lieu de 0.7) */
    z-index: 1000;
    /* Au-dessus du contenu */
    justify-content: center;
    align-items: center;
}

.mobile-menu-content {
    text-align: center;
    color: white;
}

.mobile-menu-content ul {
    list-style: none;
    padding: 0;
}

.mobile-menu-content li {
    margin: 20px 0;
    /* Espacement entre les éléments */
}

.mobile-menu-content a {
    color: white;
    /* Couleur du texte en blanc */
    text-decoration: none;
    /* Pas de soulignement */
    font-size: 20px;
    /* Taille de la police */
    transition: color 0.3s;
    /* Transition douce pour le changement de couleur */
}

.mobile-menu-content a:hover {
    color: #f0f0f0;
    /* Couleur légèrement plus claire au survol */
}

/* Afficher le menu mobile sur les petits écrans */
@media (max-width: 767px) {
    .nav-links {
        display: none;
        /* Masquer les liens de navigation par défaut */
    }

    .mobile-menu {
        display: block;
        /* Afficher le bouton de menu mobile */
    }
}

.no-scroll {
    overflow: hidden;
    /* Empêche le défilement */
}

/*----------------------------------------------
Mentions légles
----------------------------------------------*/

/* Styles pour les liens en bas de page */
.footer-links {
    margin-top: 30px;
    bottom: 0;
    /* Colle au bas de la page */
    left: 0;
    /* Colle à gauche */
    background-color: rgba(6, 32, 47, 0.9);
    /* Fond semi-transparent */
    padding: 20px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 100;
    border-top: 1px solid rgba(0, 111, 170, 0.4);
}

.copyright {
    color: #ffffff;
    font-size: 0.9rem;
    opacity: 0.8;
}

.mentions-link {
    color: #ffffff;
    font-size: 0.9rem;
    text-decoration: none;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.mentions-link:hover {
    opacity: 1;
    text-decoration: underline;
}

/* Ajout de styles responsives pour les liens du footer */
@media (max-width: 767px) {
    .footer-links {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
}