#contact {
    text-align: center;
    margin-top: 20px;
}

#contact img {
    width: 40px;
    margin: 0 10px;
}

.content {
    display: flex;
    height: calc(100vh - 80px); /* Ajuste taille */
}

.left {
    width: 50%;
    padding: 50px;
    margin-top: 150px;
}

.right {
    width: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.robot-container {
    position: relative;
    width: 80%;
    height: auto;
    display: inline-block;
}


.robot {
    width: 100%; 
    height: auto;
    display: block;
}

#mooc-container {
    position: absolute;
    width: 25%;
    height: 25%;
    top: 28%; /* Position image sur écran robot*/
    left: 39.5%; /* Position image sur écran robot*/
    transform: translate(-50%, -50%);
    overflow: hidden;
    z-index: 2;
}

.carousel {
    width: 100%; 
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-img {
    width: 60px;  
    height: 60px;  
    border-radius: 50%;  
    object-fit: contain;  
    background-color: transparent; 
}

.mytimeline {
    display: flex;
    justify-content: space-around;
    position: relative;
    width: 90%;
    margin: 20px auto;
    padding-top: 20px;
}

.timeline {
    position: relative;
    text-align: center;
    cursor: pointer;
}

.year {
    font-weight: bold;
    width: 10%;
}

.year:hover{
    background: radial-gradient(circle, #AE8625, #F7EF8A, #D2AC47, #EDC967);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}


.contentime {
    display: none;
    position: absolute;
    top: 30px;
    left: 50%;
    transform: translateX(-50%);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    width: 500px;
    z-index: 10;
    text-align: left;
}

.contentime::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 5px; 
    border: 2px solid transparent; 
    background: linear-gradient(to right, #AE8625, #EDC967); 
    background-origin: border-box;
    background-clip: padding-box, border-box;
    z-index: -1; 
}

.timeline:hover .contentime {
    display: block;
}

.education-section {
    width: 90%;
    height: 300px;
}

.skill-section {
    margin-bottom: 10vh; 
}


.skill-section p {
    display: flex;
    justify-content: space-between;
    margin-bottom: 20px; 
    margin-top: 30px;
}

.skill {
    font-weight: bold;
    margin-right: 20px; 
}

.skill-logo {
    width: 100px; /* Définit la même taille pour toutes les images */
    height: auto; /* Maintient le ratio */
    margin: 10px; 
}

#certifs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: 20px;
    gap: 20px;
}

.vignette-certifs {
    position: relative;
    width: 300px;
    overflow: hidden;
    border: 1px solid #333;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
    transition: transform 0.3s;
    background-color: #222;
    display: flex;
    flex-direction: column;
}

.vignette-certifs img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.vignette-certifs .content-certifs {
    padding: 15px;
    background-color: #222;
    color: #fff;
    display: flex;
    flex-direction: column;
}

.vignette-certifs .content-certifs h2 {
    margin: 0 0 10px;
    font-size: 1.3em;
}

.vignette-certifs .content-certifs p {
    margin: 5px 0;
}

.vignette-certifs .content-certifs .link {
    display: inline-block;
    margin-top: 10px;
    color: #007bff;
    text-decoration: none;
}

.vignette-certifs:hover {
    transform: scale(1.05);
}


@media screen and (max-width: 768px) {
    
    .content {
        flex-direction: column;
        height: auto;
    }
    
    .left, .right {
        width: 100%;
        padding: 20px;
    }
    
    .left {
        margin-top: 20px;
        order: 1; 
    }
    
    .right {
        order: 2; 
        padding-top: 5px;
    }
    
    
    .robot-container {
        width: 90%;
    }
    
    #mooc-container {
        width: 30%;
        height: 30%;
    }
    
    .carousel-img {
        width: 40px;
        height: 40px;
    }
    
 
    .mytimeline {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .timeline {
        margin-bottom: 30px;
        width: 100%;
    }
    
    .year {
        width: 100%;
        margin-bottom: 10px;
    }
    
    .contentime {
        width: 90%;
        position: static;
        transform: none;
        margin-top: 10px;
        display: none;
    }
    
   
    .timeline.active .contentime {
        display: block;
    }
    
 
    .education-section {
        height: auto;
        width: 100%;
    }
    
  
    .skill-section p {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .skill {
        margin-bottom: 10px;
    }
    
    .skill-logo {
        width: 70px;
        margin: 5px;
    }
    
   
    #certifs {
        margin: 10px;
        gap: 15px;
    }
    
    .vignette-certifs {
        width: 100%;
    }
    
  
    #contact img {
        width: 30px;
        margin: 0 5px;
    }
}


@media screen and (max-width: 480px) {
    .left {
        padding: 15px;
    }
    
    #mooc-container {
        width: 35%;
        height: 35%;
        top: 28%;
        left: 40%;
    }
    
    .carousel-img {
        width: 30px;
        height: 30px;
    }
    
    .vignette-certifs .content-certifs h2 {
        font-size: 1.1em;
    }
}



