:root{
    --border-size : 0.2vw;
    --border-radius : 2vw;
}


html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}



body {
    /* overflow-y: hidden; */
    font-family: Arial, Helvetica, sans-serif;
    /* min-height: 100vh; */
    overflow-x: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

*{
    padding: 0;
    margin: 0;
    transition: color 1.5s, background-color 2s, border 2s, scale 0.7s;
}




#switch_mode_div{
    width: 100%;
    display: flex;
    justify-content: right;
}

#switch_mode_div>*{
    width: 20%;
}

#switch_mode_div>*{
    padding: 1vw;
    /* height: 65%; */
}

#switch_mode_div>form{
    display: flex;
    justify-content: right;
}

#select_lang{
    width: 100%;
    padding-left: 5%;
    font-size: 1em;
    
    height: max-content;
    align-self: center;
}

header{
    display: flex;
    position: sticky;
    top: 0;
    height: 7em;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
}

#left,#right{
    width: 20%;
}

#right{
    display: flex;
    justify-content: right;
}

#logo{
    height: 6em;
    max-width: 100%;
    margin-left: 1%;
}

nav li{
    display: inline-flex;
}

nav ul{
    display: flex;
    flex-wrap: nowrap;
    gap: 2.5vw;
}

nav a {
    font-size: 2.2vw;
    text-decoration: underline 0.15em rgba(0, 0, 0, 0);
    text-underline-offset: 0.1em;
    transition: text-decoration-color 300ms, text-underline-offset 300ms, color 1.5s;
}

nav a:hover {
    text-underline-offset: 0.3em;
    /* font-weight: 600; */
}

.navActuel{
    pointer-events: none;
}

#navActuelPhone{
    width: 100%;
    cursor: pointer;
}

footer{
    height: 6em;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px;
    font-size: 1em;
    margin-top: auto;
    margin-bottom: 0;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    position: inherit;
    /* height: inherit; */
}

footer #reseaux, footer #contact{
    width: 20%;
    height: 6em;
}

footer #reseaux{
    display: flex;
    align-items: center;
    gap: 1em;
}

footer #reseaux img{
    height: 3em;
}

footer #contact img{
    height: 2em;
}

footer #contact{
    display: flex;
    flex-direction: column;
    align-items:flex-end;
    justify-content: center;
    font-size: 1em;
    gap: 5px;
}

footer #contact a>*{
    display: inline;
}

footer #contact a{
    display: flex;
    justify-content: center;
    align-items:center;
    gap: 5px;
}

footer #middle{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

main{
    /* max-height: calc(100vh - 17vh - 10vh); */
    /* max-height: calc(100% - 17vh - 10vh); */
    margin-top: 3em;
    margin-bottom: 2em;
    /* overflow-y: auto; */
}

#divMenu{
    display: none;
}

@media screen and (max-width:768px){
    main{
        margin-bottom: 5%;
        margin-top: 2%;
    }

    header{
        /* position: inherit; */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: fit-content;
    }

    header.close nav, header.close #right{
        display: none;
    }
    
    #left{
        width: 90%;
        padding-left: 5%;
        padding-right: 5%;
        margin-top: 1%;
        margin-bottom: 1%;
        font-size: 1.5em;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    #logo{
        height: 90%;
        max-width: 20%;
        margin: 0;
    }

    #divMenu{
        display: flex;
        align-items: center;
    }

    #menu{
        height: 90%;
        max-width: 10%;
        margin: 0;
    }

    #right{
        /* flex-direction: row; */
        /* justify-content: inherit; */
        width: 100%;
        height: 10vh;
    }

    nav{
        padding-left: 8%;
        width: 92%;
    }

    nav ul{
        width: 100%;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    nav li a{
        font-size: 1em;
    }

    #switch_mode_div{
        display: flex;
        /* flex-direction: column; */
        /* flex-wrap: nowrap; */
        align-items: center;
        justify-content: space-between;
    }

    #switch_mode_div > * {
        width: 10vw;
        height: auto;
    }

    footer{
        
        display: flex;
        flex-direction: column;
        gap: 1vh;
    }

    #reseaux{
        height: initial !important;
    }

    footer > div, #reseaux, #contact{
        width: 90vw !important;
        max-width: 90vw;
        display: flex;
        align-items: center !important;
        justify-content: center;
    }

    #reseaux img{
        height: 5vh !important;
    }
}


/* Projects */

#projects,#skills{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 5%;
    padding: 2%;
}

.aProject, .aSkill, .aProjectLittle{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    border-style :solid;
    border-width: var(--border-size);
    border-radius: var(--border-radius);
    /* padding: 2%; */
    /* margin: 2vw; */
    /* height: calc(33vh * 1vw); */
    gap: 5%;
}

.aSkillBox, .aProjectBox, .aProjectLittleBox{
    flex-basis: 20%;
    margin-bottom: 5vh;
    height: 40vh;
    max-height: 20%;
    flex-grow: 1;
}

.aProjectBox{
    flex-basis: 40%;
}


.aSkill, .aProjectLittle, .aProject{
    height: 100%;
}

.aProjectLittle:hover .textLittleProject{
    height: auto;
}

.aProjectLittle:hover{
    min-height: fit-content;
}

.textLittleProject{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5vh;
    height: 20%;
    overflow: clip;
}

.projectMatching{
    font-weight: bold;
    margin-top: 0.8vh;
}


progress{
    max-width: 80%;
}

.aProject h2, .aSkill h2, .aProjectLittle h2{
    font-weight: bold;
    font-size: 1.5em;
}

.aProject p{
    /* white-space: nowrap;
    text-overflow: ellipsis;
    word-wrap: break-word; */
    display: -webkit-box;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 1;
    /* line-clamp: 1; */
    overflow: hidden;
}


.aProject:hover, .aProjectLittle:hover{	
    scale: 1.04;
}

.aSkill:hover{	
    scale: 1.1;
}

.aProject:hover p, .aProjectLittle:hover p{	
	-webkit-line-clamp: inherit;
    /* line-clamp: inherit; */
}

.aProject p{
    max-width: 80%;
}

.aProjectLittle p{
    max-width: 80%;
}

.skillLogo, .projectLogo{
    height: 50%;
    max-width: 50%;
    max-height: 20vh;
    /* max-width: 12vw; */
}



@media screen and (max-width:425px) {
    .aSkillBox, .aProjectBox, .aProjectLittleBox{
        flex-basis: 90%;
    }
}

/* A project */

section#main{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 5vw;
}

section#description, div#lesImages{
    width: 40vw;
    margin-top: 5vh;
    margin-bottom: 5vh;
    height: calc(50vh + 2vh + 2vh);
}

#description{
    overflow-y: auto;
}

div#lesImages{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

div#lesImages>*{
    margin-bottom: 0.2vw;
}

/* #titreProjet{
    margin-left: 2vw;
    font-weight: bold;
    font-size: 1.5em;
} */

.titreProjet{
    font-weight: bold;
}

#descriptionTextuel p{
    margin-bottom: 0.2vh;
}

#description>div{
    height: max-content;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#description>*, #lesImages>*{
    padding: 1vh;
}

#description>div>*{
    margin-bottom: 5vh;
    margin: 1vw;
}


#fullScreen, #fullScreenAlone{
    height: 35vh;
    /* display: block; */
    /* margin: auto; */
    /* max-width: 30vw; */
    max-width: 80%;
}

#fullScreenAlone{
    max-height: 50vh;
    margin: auto;
}

.triangleImage{
    width: 5%;
    cursor: pointer;
    margin-left: 2.5%;
    margin-right: 2.5%;
}

#triangleImageDroit, .triangleImageDroit{
    transform: rotate(180deg);
}



#caroussel{
    display: flex;
    flex-wrap: nowrap;
    max-width: max-content;
    gap: 0.2vw;
    overflow-x: auto;
    /* background-color: white; */
    /* opacity: 20%; */
    margin-bottom: 0;
    margin-left: 0.8vw;
    margin-right: 0.8vw;
    max-width: 38vw;
}

/* #caroussel:hover{
    opacity: 100%;
} */

.uneImageProjet{
    height: 13vh;
    cursor: pointer;
}

/* Skills */

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

#titrePage, #sousTitrePage{
    font-size: 2em;
    text-align: center;
    margin-top: 1.5vh;
}

#skillsHeader #titrePage{
    margin-top: 0;
}

#sousTitrePage{
    font-size: 1.5em;
}

#formSkills,#skillsHeaderCache{
    margin-right: 2vh;
    width: 10vw;
    /* margin-top: 2vh; */
    /* display: flex;
    justify-content: right; */
    /* position: fixed; */
    /* right: 1vw; */
}

#select_skills{
    width: 8vw;
    text-align: center;
}

@media screen and (max-width:768px){
    #skillsHeader{
        display: flex;
        flex-direction: column;
        gap: 3vh;
    }

    #skillsHeader, #titrePage{
        margin-bottom: 3vh;
    }

    #skillsHeader #titrePage{
        margin-bottom: 0;
    }

    #formSkills{
        margin: 0;
        width: 50%;
    }

    #formSkills *{
        width: 100%;
    }
}


@media screen and (max-width:768px){
    section#main{
        flex-direction: column;
        gap: 5vh;
    }

    section#description, div#lesImages{
        width: 90vw;
        margin: 0;
    }

    section#description{
        height: fit-content;
    }

    #sousTitrePage{
        margin-top: 5vh;
    }
}


/* Home */

#logoHome{
    height: 35vh;
    display: block;
}

#aboutMe{
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 5vh;
    gap:5vw;
}

#aboutMeDescription{
    display: flex;
    flex-direction: column;
    gap: 2vh;
}

#aboutMeDescription a{
    width: fit-content;
}

#aboutMe p{
    font-size: 1.2em;
    max-width: 50vw;
}

#aboutMeDescription a, #description a{
    font-weight: bold;
}

@media screen and (max-width:768px){
     #aboutMe{
        display: flex;
        flex-direction: column-reverse;
     }

     #aboutMeDescription{
        width: 90%;
     }

     #aboutMeDescription p {
        max-width: 100%;
     }
}

/* Contact */

#verificationBox{
    text-align: center;
    /* border-color: black; */
    /* border-width: 2px; */
    /* border-style: solid; */
    border-radius: 5px;
    padding: 10px 20px;
    position: fixed;
    right: 2vw;
    top: 20vh;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.2);
    z-index: 1000000000;
}

#verificationBox p{
    color: white;
}

#verificationBox.failed{
    background-color: #c81313;
}

#verificationBox.success{
    background-color: #4caf50;
}

#mainContact{
    display: flex;
    justify-content: center;
    align-items: center;
}

#contactForm{
    /* margin: auto; */
    display: flex;
    flex-direction: column;
    row-gap: 2.5vh;
    width: 60vw;
}

#contactForm #message{
    height: 30vh;
    resize: none;
}

label{
    font-size: 1.2em;
}

.contactItem{
    display: flex;
    flex-direction: column;
    row-gap: 1vh;
}

.contactItem input, .contactItem textarea{
    padding: 5px;
    border-radius: 0.5vw;
    border-width: 2px;
    border-style: solid;
}

input[type=submit]{
    width: 25vw;
    display: block;
    margin: auto;
    margin-top: 2.5vh;
    margin-bottom: 2vh;
}

input[type=submit]:disabled{
    cursor:not-allowed;
}

@media screen and (max-width:768px){
    #contactForm{
        width: 90%;
    }
}

/* Events */

#lesEvents{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3em;
}

.event{
    width: 90%;
    height: fit-content;

    padding: 1em;

    border-style :solid;
    border-width: var(--border-size);
    border-radius: var(--border-radius);
}

.event:hover{
    /* height: 25em; */
    width: 93%;
}

.eventTransition{
    transition: height 0.8s, width 0.8s;
}

.event .inside{
    display: flex;
    /* height: 70%; */
    justify-content: space-between;
}

.event .head{
    padding-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.eventDate{
    margin-top: 0.5em;
    margin-left:1.5em;
}

.eventTitle{
    font-size: 2em;
    font-weight: bold;
}


.event h3{
    margin-top: 1em;
    font-size: 1.3em;
    font-weight: bold;
}

.event a{
    text-decoration: underline;
}


.event .inside>*{
    width: 50%;
    height: 100%;
    /* max-height: 100%; */
    overflow-y: hidden;
}

.imagesEvent{
    height: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.imagesEventPop{
    width: 80vw;
    height: 80vh;
    padding: 20px;
    border: solid 5px;
    position: fixed;
    left: calc((100vw - 80vw - 40px - 10px) / 2);
    top: calc((100vh - 80vh - 40px - 10px) / 2);
    border-radius: var(--border-radius);
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 2000;
}

.darkFilter{
    width: 100vw;
    height: 100vh;
    z-index: 1500;
    opacity: 60%;
    background-color: black;
    position: fixed;
    top: 0;
    left: 0;
}

.imagesEventPopDiv{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content:space-between;

}

.descriptionEvent{
    display: flex;
    flex-direction: column;
    gap: 0.2em;
}


.upperImage, .upperImageAlone{
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 15em;
    max-height: 100%;
    width: 100%;
    /* gap: 0.2em; */
}

.imagesEventPopDiv .upperImage{
    height: 65%;
}

.imagesEventPopDiv .caroussel{
    height: 35%;
}

.imagesEventPopDiv .uneImageEvent{
    height: 8em;
}

.upperImageAlone{
    justify-content: center;
}

.fullScreen{
    cursor: pointer;
}

.upperImageAlone{
    height: 100%;
    justify-content: center;
}

.fullScreen, .fullScreenAlone{
    display: block;
    height: 100%;
    max-width: 80%;
}

.triangle:first{
    margin-left: 5%;
}

.fullScreenAlone{
    max-width: 100%;
}

.caroussel{
    display: flex;
    flex-wrap: nowrap;
    height: 30%;
    gap: 0.2vw;
    overflow-x: auto;
    overflow-y: hidden;
    max-width: 95%;
    align-items: center;
    /* margin-left: 0.8vw;
    margin-right: 0.8vw; */
}

.uneImageEvent{
    height: 100px;
    /* max-width: 80%; */
    cursor: pointer;
}

.event .pop{
    position: fixed;
    z-index: 500;
    padding: 1em;
    border-style: solid;
    border-width: 2px;
    border-radius: var(--border-radius);
    /* transition: top 1.3s; */
}

.divFleche{
    height: 3.5em;
    width: 3.5em;
    border-radius: 10vh;
    position: fixed;
    left: calc((100vw - 3.5em) / 2);
    bottom: 15vh;
    z-index: 500;
    cursor: pointer;
    transition: opacity 1s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.divFleche img{
    height: 80%;
    max-width: 80%;
}

@media screen and (max-width:768px){
    .triangleImage{
        display: none;
    }

    .upperImage{
        justify-content: center;
    }

    .fullScreen{
        max-width: 90%;
    }

    .imagesEventPop{
        width: 70vw;
        height: 70vh;
        padding: 10px;
        border: solid 5px;
        left: calc((100vw - 70vw - 20px - 10px) / 2);
        top: calc((100vh - 70vh - 20px - 10px) / 2);
    }

    .event:hover, .event{
        width: 80%;
    }

    .inside{
        display: flex;
        flex-direction: column;
        gap: 2vh;
    }

    .inside > *{
        width: 100% !important;
    }
/* 
    .imagesEvent{
        height: 200% !important;
    }

    .descriptionEvent{
        height: 400% !important;
    } */
}