/* Desktop L (large) - 1440px and above */
@media only screen and (min-width: 1440px) {
    div > #expres {
        display: none ;
    }
}
  
/* Desktop - 1024px to 1439px */
@media only screen and (min-width: 1024px) and (max-width: 1439px) {
    /* le header  */
   .profile > .cercle{
    width: 400px;
    height: 400px;
   } 
   .profile > .cercle5{
    width: 20px;
    height: 20px;
   } 
   .profile > .cercle4{
    width: 50px;
    height: 50px;
   } 
   .profile > .cercle3{
    width: 20px;
    height: 20px;
   } 
   .profile > .cercle2{
    width: 30px;
    height: 30px;
   } 
   .profile > .cercle1{
    width: 150px;
    height: 150px;
   } 
   div > .name > p:nth-child(3){
    font-size: 0.8rem;
    width: 80%;
   }
   div > .name > a{
    margin: 0;
    padding: 5px;
    font-size: 0.8rem;
   }
   main > section{
    padding: 4%;
   }
   div > #expres {
    display: none ;
   }
}

/* Tablet - 768px to 1023px */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
    /* header  */
    header > .head{
        display: flex;
        flex-direction: column-reverse;
    }
    .profile > .cercle{
        width: 200px;
        height: 200px;
       }
       .profile > .cercle5{
        display: none;
       } 
       .profile > .cercle4{
        display: none;
       } 
       .profile > .cercle3{
        display: none;
       } 
       .profile > .cercle2{
        display: none;
       } 
       .profile > .cercle1{
        display: none;
       } 
       div > .name > p:nth-child(3){
        font-size: 1rem;
        width: 100%;
       }
       div > .name > a{
        margin: 0;
        padding: 5px;
        font-size: 0.8rem;
       }
       main > section{
        padding: 4%;
       }
       /* à propos de moi  */
       main > section > p{
        padding: 4%;
        font-size: 1rem;
        width: 90%;
       }
       .head > .profile{
        display: flex;
        justify-content: center;
        margin-top: 1%;
       }
       .head > .name{
        width: 100%;
        padding: 0 3%;
       }
       .profile > .cercle > img{
        height: 300px;
        transform: translateX(-4px) translateY(-76px);
       }
       header > .reseau {
        display: flex;
        justify-content: center;
        margin-top: 2%;
        margin-left: 0;
       }

       /* partie compétences  */

       .tab-pane > #skill-logo {
        gap: 50px;
        flex-wrap: wrap;
       }
       .tab-pane > #skill-logo > div > img   {
        width: 70%;

       }
       .carousel-item > .carousel-caption > h5,p{
        font-size: 0.5rem;
       }
       #skill-text > ul > li {
        font-size: 1rem ;
       }

       /* expérience  */

       div > .bar {
        width: 90%;
        flex-wrap: wrap;
        gap: 20px;
       }
       #important {
        display: none ;
       }
       #expres {
        display: block ;
       }
}

/* Tablettes et petits écrans */
@media screen and (max-width: 992px) {
    /* Timeline styles */
    .timeline-line {
        left: 2rem;
    }

    .timeline-item {
        width: 100%;
        padding-left: 4rem;
    }

    .timeline-item:nth-child(even) {
        padding-right: 0;
    }

    .timeline-item:nth-child(odd) {
        margin-left: 0;
    }

    .timeline-content::before {
        left: -2rem !important;
        right: auto !important;
    }
    .head {
        flex-direction: column;
        gap: 3rem;
    }

    .name {
        max-width: 100%;
        text-align: center;
    }

    .profile {
        max-width: 100%;
    }

    .cercle {
        width: 350px;
        height: 350px;
    }

    .skills-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobiles */
@media screen and (max-width: 768px) {
    /* Timeline styles */
    .timeline-line {
        left: 1rem;
    }

    .timeline-item {
        padding-left: 3rem;
        margin-bottom: 2rem;
    }

    .timeline-content {
        padding: 1rem;
    }

    .timeline-content::before {
        width: 15px;
        height: 15px;
        left: -1.5rem !important;
    }

    .timeline-date {
        font-size: 1rem;
    }

    .timeline-title {
        font-size: 1.2rem;
    }

    .timeline-description {
        font-size: 0.85rem;
    }
    header.container-fluid {
        padding: 2rem 1rem;
    }

    .name h1 {
        font-size: 2.5rem;
    }

    .name .title {
        font-size: 1.2rem;
    }

    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }

    .btn-97, .btn-secondary {
        width: 100%;
        text-align: center;
    }

    .cercle {
        width: 280px;
        height: 280px;
    }

    .section {
        padding: 3rem 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .skill-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .timeline-item {
        padding: 1.5rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .footer-links, .footer-social {
        justify-content: center;
    }
}

/* Très petits écrans */
@media screen and (max-width: 480px) {
    /* Timeline styles */
    .timeline-line {
        left: 0.5rem;
    }

    .timeline-item {
        padding-left: 2rem;
        margin-bottom: 1.5rem;
    }

    .timeline-content {
        padding: 0.8rem;
    }

    .timeline-content::before {
        width: 12px;
        height: 12px;
        left: -1.2rem !important;
    }

    .timeline-date {
        font-size: 0.9rem;
    }

    .timeline-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .timeline-description {
        font-size: 0.8rem;
    }
    .name h1 {
        font-size: 2rem;
    }

    .skill-items {
        grid-template-columns: 1fr;
    }

    .reseau {
        flex-wrap: wrap;
    }
}

/* Grands écrans */
@media screen and (min-width: 1200px) {
    .container {
        max-width: 1140px;
        margin: 0 auto;
    }

    .head {
        gap: 4rem;
    }
}

/* Mobile L - 465px to 767px */
@media only screen and (min-width: 465px) and (max-width: 767px) {

}

/* Mobile M - 375px to 464px */
@media only screen and (min-width: 375px) and (max-width: 464px) {

}

/* Mobile S - 320px to 374px */
@media only screen and (min-width: 320px) and (max-width: 374px) {

}