:root::-webkit-scrollbar{
    display: none;
}

:root {
    scrollbar-width: none;
    -ms-overflow-style: none;


    --main-bgcolor: rgb(31, 29, 29);
    --text-color: rgb(0, 0, 0);
    --title-color: rgb(216, 212, 212);
    --secondary-bgcolor: rgb(76, 65, 92);
    --secondary-selected-bgcolor: rgb(53, 45, 66);
    --third-bgcolor: rgb(21, 77, 122);
    --button-bgcolor: rgb(255, 255, 255);
    --card-title-bgcolor: rgba(24, 34, 43, 0.7);
    --icone-bgcolor: rgba(34, 103, 112);

}

*{
    font-family: "Roboto", sans-serif;
}

html {
    background: radial-gradient(ellipse at center, #592a6e 0%, var(--main-bgcolor) 100%);
    scroll-behavior: smooth;
}

#bg{
    z-index: -1;
    position: fixed;
    top: 0;
    left: 0;
}

body{
    margin: 0;
    min-height: 100vh;
    display: block;
    /*background-color: var(--main-bgcolor);*/
    color: var(--text-color);
}

p, li{
    font-weight: bold;
    font-size: 0.9rem;
}


.iconeButton{
    color: var(--text-color);
    padding: 0;
}

.iconeButton:hover{
    transition: 0.5s;
    transform: scale(1.2);
}

.iconeButton:focus .icon{
    transition: 0.2s;
    opacity: 0;
    visibility: hidden;
}

.icon{
    transition: 0.3s;
    transition-delay: 0.4s;
    height: 70%;
    visibility: visible;
    position: absolute;
    place-self: center;
}

.content ul{
    list-style-type: none;
    text-align: center;
    padding: 0;
    margin: 10px 0;
}

.content ul li{
    margin: 10px 0;
}

#downloadPDF img{
    height: 70%;
}

#competencesContent ul li img{
    transition: 0.2s;
    height: 50px;
}

.clickableImg:hover{
    transition: 0.2s;
    transform: scale(1.2);
}



/* ================================================================= */

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

.infoBox h1{
    color: var(--title-color);
    text-align: center;
    justify-content: center;
    background-color: var(--secondary-bgcolor);
    width: fit-content;
    padding: 10px 2%;
    border-radius: 20px;
    margin: 1% 50%;
    transform: translate(-50%, 0);
}

.infoBox ul {
    padding: 0;
    margin: 0;
    width: 80%;
    height:42px;
    background-color: var(--secondary-bgcolor);
    position: relative;
    left: 10%;
    border-radius: 20px 20px 0 0;
}

.infoBox li {
    float: left;
    list-style-type: none;
    height: 42px;
    overflow: hidden;
}

.infoBox li button {
    display: inline-block;
    text-decoration: none;
    width: 100%;
    background-color: var(--secondary-bgcolor);
    color: var(--text-color);
    text-align: center;
    border-radius: 20px 20px 0 0;
    border-style: hidden;
    overflow: hidden;
}

* {
    box-sizing: border-box;
}

.infoBox li button:focus,
.infoBox li button:hover {
    background-color: var(--secondary-selected-bgcolor);
}

.infoBox li button.active {
    background-color: var(--secondary-selected-bgcolor);
}

.infoBox ul li button{
    border-style: solid;
    border-width: 0 2px 0 0;
    border-color: var(--secondary-selected-bgcolor);
    border-radius: 20px 20px 0 0;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.infoBox ul li button img{
    height: 35px;
    margin: 0 3%;
}

.infoBox .panels {
    height: 80%;
    position: relative;
    clear: both;
}

.infoBox .panel {
    position: absolute;
    top: 0;
    left: 10%;
    height: 100%;
    width: 80%;
    padding: 10px;
    color: var(--text-color);
    background-color: var(--secondary-selected-bgcolor);
    border-radius: 0 0 20px 20px;
    display: flex;
    flex-wrap: wrap;
    overflow-y: auto;
    justify-content: center;
}

.infoBox .activePanel {
    z-index: 5;
}

.card{
    transition: 0.3s;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    height: 200px;
    width: 356px;
    margin: 20px;
    border-radius: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    text-decoration: none;
    color: white;
}

.card:hover{
    transition: 0.3s;
    transform: scale(1.05);
}

.card-title{
    height: fit-content;
    width: 50%;
    text-align: center;
    background-color: var(--card-title-bgcolor);
    border-radius: 20px;
    z-index: 1;
}

.card-img{
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    border-radius: 40px;
}

.panel p{
    height: fit-content;
    width: 100%;
    text-align: center;
}

#feedbackPanel{
    position: fixed;
    left: 50%;
    top: 50%;
    z-index: 100;
    background-color: var(--third-bgcolor);
    transform: translate(-50%, -50%);
    border-radius: 20px;
    display: grid;
}

#closeFeedback{
    transition: 0.2s;
    position: absolute;
    right: 15px;
    top: 15px;
    border-radius: 20px;
    border-style: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

#closeFeedback img{
    height: 50%;
}

#closeFeedback:hover{
    transition: 0.2s;
    transform: scale(1.1);
}

#feedbackForm{
    margin: 5%;
    height: 90%;
    width: 90%;
    place-self: center;
    display: flex;
    flex-direction: column;
}

#feedbackForm input, #feedbackForm textarea{
    width: 100%;
    margin-bottom: 10px;
}

#feedbackForm select{
    padding: 5px;
    margin-bottom: 10px;
}

#downloadPDF:hover{
    transform: scale(1.1);
    transition: 0.2s;
}

.content{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content div{
    display: flex;
    flex-direction: column;
    align-items: center;
}

.content h2{
    background-color: var(--secondary-selected-bgcolor);
    width: 100%;
    padding: 5px 0;
}

.content h3{
    background-color: var(--secondary-selected-bgcolor);
    width: fit-content;
    border-radius: 20px;
    padding: 5px 10px;
}

#feedbackForm h2{
    align-self: center;
    height: fit-content;
    width: fit-content;
    padding: 5px 10px;
    text-align: center;
    margin-top: 0;
    background-color: var(--secondary-selected-bgcolor);
    border-radius: 20px;
}

#feedbackPanel{
    border-style: solid;
    border-width: 1px;
    border-color: var(--secondary-selected-bgcolor);
}

#submitButton{
    width: fit-content;
    padding: 5px 10px;
}

/* ================================================================= */





@media screen and (min-width: 1000px)
{

    button{
        cursor: pointer;
    }

    body{
        padding: 0;
        overflow-y: hidden;
    }

    #CV{
        height: 100vh;
        display: grid;
        overflow-y: auto;
    }

    #iconeButtons{
        place-self: center;
        width: 100%;
        display: grid;
        flex-direction: row;
        grid-template-columns: repeat(7, 1fr);
        max-height: 100vh;
    }

    .iconeButton{
        transition:  transform 0.5s, max-height 0.5s, width 0.5s ease 0.5s, border-radius 0.5s ease 0.7s;
        transform: scale(1);
        border-radius: 50%;
        border-style: hidden;
        max-height: 100px;
        width: 100px;
        background-color: var(--icone-bgcolor);
        position: relative;
        place-self: center;
        margin-bottom: 10%;
        display: grid;
        overflow: hidden;
    }

    .iconeButton:focus{
        transition: width 0.5s, max-height 1s ease 0.5s;
        border-radius: 20px;
        max-height: 1000px;
        transform: scale(1);
    }

    .iconeButton:focus .content{
        transition: 0.5s;
        transition-delay: 0.4s;
        opacity: 1;
        visibility: visible;
        overflow: hidden;
    }
    
    .content{
        transition: 0.5s;
        opacity: 0;
        visibility: hidden;
    }

    #profilButton{
        grid-column: 2;
        grid-row: 1;
    }

    #profilButton:focus{
        width: 110%;
    }

    #formationButton{
        grid-column: 3;
        grid-row: 2;
    }

    #formationButton:focus{
        width: 220%;
    }

    #experienceButton{
        grid-column: 4;
        grid-row: 1;
    }

    #experienceButton:focus{
        width: 300%;
    }

    #competencesButton{
        grid-column: 5;
        grid-row: 2;
    }

    #competencesButton:focus{
        width: 100%;
    }

    #loisirsButton{
        grid-column: 6;
        grid-row: 1;
    }

    #loisirsButton:focus{
        width: 100%;
    }

    #themeButton{
        transition: 0.2s;
        border-radius: 50%;
        height: 40px;
        width: 40px;
        border-style: hidden;
        position:fixed;
        top: 20px;
        right: 20px;
        z-index: 100;
    }
    #themeButton:hover{
        transition: 0.2s;
        transform: scale(1.2);
    }

    #ticketButton{
        transition: 0.2s;
        border-radius: 50%;
        height: 40px;
        width: 40px;
        border-style: hidden;
        position:fixed;
        top: 80px;
        right: 20px;
        z-index: 100;
        background-color: var(--icone-bgcolor);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #ticketButton:hover{
        transition: 0.2s;
        transform: scale(1.2);
    }
    #ticketButton img{
        height: 90%;
    }

    #downloadPDF{
        transition: 0.2s;
        background-color: var(--icone-bgcolor);
        height: 50px;
        width: 80px;
        border-radius: 30px;
        grid-row: 3;
        grid-column: 4;
        place-self: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: var(--text-color);
    }

    #projets{
        scroll-margin-top: 30px;
    }

    #projetsButton{
        transition: 0.2s;
        border-style: hidden;
        background-color: var(--button-bgcolor);
        height: 50px;
        width: 50px;
        border-radius: 30px;
        place-self: center;
        text-decoration: none;
        font-weight: 700;
        color: var(--text-color);
        display: flex;
        align-items: center;
        justify-content: center;
        /*place-self: center;*/
        position: fixed;
        bottom: 5%;
        z-index: 100;
    }
    #projetsButton:hover{
        transition: 0.2s;
        transform: scale(1.2);
    }
    #projetsButton img{
        height: 80%;
    }

    #feedbackPanel{
        width: 50%;
        height: 50%;
    }

    #descriptionArea{
        height: 70%;
    }

    textarea{
        scroll-behavior: auto;
        resize: none;
        height: 95%;
    }

    #closeFeedback{
        height: 20px;
        width: 20px;
    }
}







@media screen and (max-width: 1000px)
{
    body{
        padding: 10% 0;
    }

    #CV{
        min-height: 100vh;
        display: grid;
    }

    #iconeButtons{
        display: grid;
        flex-direction: row;
        grid-template-columns: 1fr;
    }

    .iconeButton{
        transition:  max-height 0.5s, width 0.5s ease 0.5s, border-radius 0.5s ease 0.7s;
        border-radius: 50%;
        border-style: hidden;
        max-height: 100px;
        width: 100px;
        background-color: var(--icone-bgcolor);
        position: relative;
        place-self: center;
        margin-bottom: 10%;
        display: grid;
        overflow: hidden;
    }


    .iconeButton:focus{
        transition: width 0.5s, max-height 1s ease 0.5s;
        border-radius: 20px;
        transform: scale(1);
        width: 90%;
        max-height: 1000px;
    }

    .iconeButton:focus .content{
        transition: 0.5s;
        transition-delay: 0.4s;
        opacity: 1;
        visibility: visible;
        overflow: hidden;
    }
    
    .content{
        transition: 0.5s;
        opacity: 0;
        visibility: hidden;
    }



    #profilButton{
        grid-column: 1;
        grid-row: 1;
    }

    #formationButton{
        grid-column: 1;
        grid-row: 2;
    }

    #experienceButton{
        grid-column: 1;
        grid-row: 3;
    }

    #competencesButton{
        grid-column: 1;
        grid-row: 4;
    }

    #loisirsButton{
        grid-column: 1;
        grid-row: 5;
    }

    #themeButton{
        border-radius: 50%;
        height: 40px;
        width: 40px;
        border-style: hidden;
        position:fixed;
        bottom: 20px;
        right: 20px;
        z-index: 100;
    }

    #ticketButton{
        transition: 0.2s;
        border-radius: 50%;
        height: 40px;
        width: 40px;
        border-style: hidden;
        position:fixed;
        bottom: 80px;
        right: 20px;
        z-index: 100;
        background-color: var(--icone-bgcolor);
        display: flex;
        align-items: center;
        justify-content: center;
    }
    #ticketButton:hover{
        transition: 0.2s;
        transform: scale(1.2);
    }
    #ticketButton img{
        height: 90%;
    }

    #downloadPDF{
        transition: 0.2s;
        background-color: var(--icone-bgcolor);
        height: 50px;
        width: 80px;
        border-radius: 30px;
        grid-row: 6;
        grid-column: 1;
        place-self: center;
        text-decoration: none;
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: 700;
        color: var(--text-color);
    }

    #projetsButton{
        display: none;
    }

    
    #projets{
        margin: 100px 0;
    }

    .infoBox ul {
        width: 90%;
        left: 5%;
    }

    .infoBox ul li button{
        border-style: solid;
        border-width: 0 2px 0 0;
        border-color: var(--secondary-selected-bgcolor);
        border-radius: 20px 20px 0 0;
    }
    
    .infoBox .panel {
        left: 5%;
        width: 90%;
    }

    #feedbackPanel{
        width: 90%;
        height: 70%;
    }

    #descriptionArea{
        height: 80%;
        margin-bottom: 10px;
    }

    textarea{
        scroll-behavior: auto;
        resize: none;
        height: 100%;
    }

    #closeFeedback{
        height: 30px;
        width: 30px;
    }
}