/*CSS relatif a la page principale*/
body {
    font-size: 100%;
    background-color: rgb(31, 31, 39);
    color: rgb(153, 153, 153);
}

#colorBack {
    display: none;
    justify-content: space-evenly;
    background: linear-gradient(to bottom, white, rgb(255, 255, 255));
    width: 90%;
    height: 50px;
    position: fixed;
    left: 50%;
    top: 40px;
    transform: translate(-50%, -50%);
    z-index: 0;
    overflow: hidden;
}

#imgBack {
    width: 50px;
    height: 50px;
    margin-top: 10px;
    margin-left: 13%;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}

header {
    /* background-colo: rgb(46, 35, 25); */
    color: rgb(219, 181, 13);
    width: 98%;
    padding: 15px 0px 15px 0px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0px 2px 4px rgb(61, 61, 61), 0px -20px 1px rgb(31, 31, 39);
    position: fixed;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
    z-index: 10000;
    overflow: hidden;
    background: rgba(255, 255, 255, 0);
    /* Fond semi-transparent pour atténuer le flou */
    backdrop-filter: blur(30px);
    /* Applique un flou au header */
}

header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.411);
    /* Fond semi-transparent pour atténuer le flou */
    backdrop-filter: blur(30px);
    /* Applique un flou au pseudo-élément */
    z-index: -1;
    /* Place le pseudo-élément en arrière-plan pour que les éléments au-dessus restent lisibles */
}

nav {
    display: flex;
    justify-content: space-between;
    font-size: 140%;
}

#logo {
    width: 50px;
    margin-left: 50px;
}

#centerPages {
    color: rgb(117, 53, 23);
    padding: 10px;
    box-shadow: 2px 2px 3px rgb(255, 143, 143);
    border: 1px solid;
}
 
#sousNav{
    display: block;
}

.item {
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    margin-right: 80px;
    text-decoration: none;
    color: rgb(255, 139, 7);
    font-size: 100%;
    font-weight: bold;
    cursor: alias;
}

a {
    text-decoration: none;
}

#menu{
    display: none;
}

#menuButton,
#noMenuButton {
    display: none;
}

main {
    padding-top: 50px;
}

#gestion-horizontale {
    display: flex;
    gap: 30px;
    align-items: center;
    justify-content: center;
}

.introMyself {
    font-size: 200%;
    font-weight: bold;
    padding: 50px;
    color: rgb(88, 88, 88);
}

.MyName {
    color: rgb(204, 203, 202);
    font-weight: bold;
    display: inline;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 100%;
}

.specialite {
    margin-top: 47px;
    animation: Color 20s linear infinite;
}

@keyframes Color {
    0% {
        color: rgb(255, 139, 7);
    }

    50% {
        color: rgb(192, 74, 42);
    }

    100% {
        color: rgb(192, 121, 28);
    }
}

#button-contact {
    font-size: 65%;
    margin-left: 0px;
    width: 200px;
    background-color: rgb(2, 49, 58);
    color: aliceblue;
    margin-top: 60px;
    padding: 25px;
    border-top-left-radius: 100px;
    border-top-right-radius: 100px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 100px;
    max-width: border width 100px;
    ;
    animation: Color 1s infinite linear;
}

#profil {
    width: 300px;
    ;
    margin-top: 70px;
    border-top-left-radius: 250px;
    border-top-right-radius: 330px;
    border-bottom-left-radius: 330px;
    border-bottom-right-radius: 250px;
}

.description{
    padding: 10px;
    font-size: xx-large; 
    width: 300px;
}

#skills-img {
    text-align: center;
}

#logoS {
    width: 50px;
    height: 50px;
    padding: 40px 0 10px 30px;
    border-top-left-radius: 0px;
    border-top-right-radius: 0px;
    border-bottom-left-radius: 0px;
    border-bottom-right-radius: 0px;
}


#project {
    text-align: center;
}

#project-img {
    width: 350px;
    height: 190px;
    border: solid rgb(194, 86, 14);
    margin: 10px;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

#service{
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
    text-align: center;
}
#service1, #service2{
    display: flex;
    gap: 20px;
    justify-content: center;
    align-items: start;
    font-size: 140%;
    padding: 20px;
    background-color: rgb(80, 80, 80);
    color: rgb(226, 224, 224);
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
    margin-top: 30px;
    max-width: 800px;
}
#img-service{
    width: 500px;
}
#about,
#skills,
#works,
#contact {
    font-size: x-large;
    padding: 50px;
}

#skills {
    font-size: 150%;
    padding: 50px;
}

#works {
    font-size: 150%;
    padding: 50px;
}

#contact {
    font-size: 150%;
    padding: 50px;
}

h2 {
    color: rgb(99, 165, 148);
}

/*Seul l'element footer reste sans modification*/
footer {
    display: flex;
    justify-content: center;
    text-align: center;
    padding: 10px;
    color: rgb(63, 92, 117);
}

#more-info {
    font-size: 150%;
    text-align: start;
    margin-left: 30px;
    color: rgb(92, 60, 18);
}

#logoh {
    width: 50px;
    height: 50px;
    border-top-left-radius: 30px;
    border-top-right-radius: 30px;
    border-bottom-left-radius: 30px;
    border-bottom-right-radius: 30px;
}

#responsive{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    max-width: 700px;
    min-width: 288px;
}
#responsive>img{
    max-width: 690px;
    min-width: 277px;
    padding: 10px;
}


/****************************** Styles pour les écrans de petite taille (mobiles) *********************/
@media only screen and (max-width: 900px) {
    
#imgBack {
    margin-left: 5%;
}
    header {
        width: 95%;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        justify-content: space-around;
    }

    #logo {
        margin-left: 0;
    }


    #centerPages {
        color: rgb(255, 81, 0);
        padding: 10px;
        box-shadow: 1px 1px 1px rgb(146, 55, 55);
        border: none;
        font-size: x-large;
    }
    #sousNav{
        display: none;
    }

    #menuButton {
        display: block;
        font-size: 100%;
        padding: 5px;
        color: rgb(100, 98, 87);
        border-radius: 20px;
    }

    #noMenuButton {
        font-size: 100%;
        padding: 5px;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
        border-bottom-left-radius: 15px;
        border-bottom-right-radius: 15px;
    }

    #menu {
        display: none;
        position: fixed;
        top: 100px;
        padding: 30px;
        width: 90%;
        height: 100vh;
        line-height: 50px;
        background-color: rgb(99, 92, 78);
        border-radius: 30px;
        box-shadow: 0px 20px 30px rgb(14, 171, 192);
        transition: left 0.3s ease-in-out;
        z-index: 10000;
    }

    #menu.open {
        display: inline;
        transition: 2s;
        right: 0;
        font-family: 'Lucida Sans', 'Lucida Sans Regular',
            'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    }

    .item {
        margin-right: 20px;
        font-size: xx-large;
        padding: 20px;
    }

    main {
        padding-top: 80px;
    }
    #gestion-horizontale {
        display: flex;
        flex-direction: column-reverse;
        gap: 0;
        padding: 0;
    }

    .introMyself {
        margin-top: -270px;
        z-index: 1000;
        order: 2;
    }

    .description {
        margin-top: -100px;
        order: 1;
        width: 270px;
    }

    .profil {
        margin-top: -20px;
        order: 3;
    }

    #button-contact {
        font-size: 60%;
        margin-bottom: 50px;
        margin-top: -10px;
        margin-left: 20px;
    }

    #profil {
        margin-top: 33px;
        border-top: 100px;
        border-top-left-radius: 200px;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 240px;
        border-bottom-right-radius: 170px;
    }

    #logoh {
        width: 30px;
        height: 30px;
    }

    #about,
    #skills,
    #works,
    #contact {
        padding: 10px;
    }

    iframe {
        width: 300px;
    }

    #logoS {
        width: 50px;
        height: 50px;
        padding: 40px 0 10px 5px;
    }


    #project {
        display: flexbox;
    }

    #project-img {
        width: 90%;
        height: 190px;
        border: solid rgb(194, 86, 14);
        margin: 10px;

    }

    #service{
        display: flex;
        flex-wrap: wrap;
    }

    #service1, #service2{
        display: flex;
        flex-direction: column;
        gap: 20px;
        justify-content: center;
        align-items: start;
        text-align: center;
        width: 310px;
    }
    #img-service{
        width: 300px;
    }


}

/* Styles de base pour les barres de menu */
.menu-bar {
    width: 30px;
    height: 4px;
    background-color: #333;
    margin: 6px 0;
    transition: 0.4s;
}
.menu-bar:nth-child(2) {
    width: 20px;
}

/* Styles pour le menu complet (contenant les trois barres) */
.menu {
    display: inline-block;
    cursor: pointer;
    transition: 0.4s;
}

/* Styles pour les barres de menu en état "ouvert" */
.menu-bar:hover .menu-bar:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

.menu-bar:hover .menu-bar:nth-child(2) {
    opacity: 0;
}

.menu-bar:hover .menu-bar:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

