@font-face {
    font-family: "Comfortaa";
    src:
      url("assets/Comfortaa-VariableFont_wght.ttf") format("truetype");
}
@font-face {
    font-family: "DarkerGrotesque";
    src:
      url("assets/DarkerGrotesque-VariableFont_wght.ttf") format("truetype");
}
*{
    margin:0;
    padding:0;
    box-sizing: border-box;
    color:rgb(34, 33, 35);
    font-family: "DarkerGrotesque",sans-serif;
}
body{
    background-color: #F0EDF5;
    overflow-y: hidden;
    
}

main{
    position: absolute;
    width:100vw;
    height:100vh;
    top:0;
    left:0;
    z-index:0;
}
#placeholder{
    position:absolute;
    left:460px;
    top:20px;
    width:calc(100vw - 480px);
    height:calc(100vh - 40px);
    background-image: url("assets/placeholder.svg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
#placeholder>h2{
    width:fit-content;
    margin:40vh auto auto;
    color: #7462BE;
    user-select: none;
    font-size: 1.4em;
    font-style: italic;
}
#auto{
    position:absolute;
    bottom:20px;
    right:40px;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    cursor: pointer;
}

#projectsSmartphone{
    display:none;
}

.projects{
    
    background-size: cover;
    background-position: center;
    cursor:grab;
    background-color: white;
}
#projectsDesktop>.projects{
    display:none;
    position: absolute;
}
h3{
    font-family: "Comfortaa",sans-serif;
    font-size: 1em;
    font-weight: 400;
}
.projectsName{
    position:absolute;
    
    right:0;
    bottom:-30px;
    padding: 20px 30px;
    background-color: #7462BE;
    transform-origin: 10% 50%;
    transform: rotate(-4deg);
    font-weight: 600;
    user-select: none;
    cursor: pointer;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
#projectsSmartphone>.projects{
    width:100vw;
    height:100vw;
    margin-bottom:100px;
    position:relative;
}
#projectsSmartphone .projectsName{
    width:fit-content;
    padding: 10px 20px;
    max-width:90vw;
}
.projectsName.yellow{
    background-color: #FAE523;
}
.projectsName.pink{
    background-color:#FF5C7A
}
.projectsName.purple{
    background-color: #7462BE;
    color: white;
}
.projectsName.purple>h3{
    color: white;
}

.small>.projectsName{
    width:100%;
    height:100%;
    bottom:0;
    padding:10px;
    font-size:0.8em;
    overflow-wrap: anywhere; /* Permet une césure entre les mots si possible */
    hyphens: auto; 
}
.small>.long{
    font-size: 0.6em;
}
.verySmall>.projectsName{
    padding:0;
}
.verySmall>.projectsName>h3{
    display:none;
}
.closeDiv{
    width:30px;
    height:30px;
    background-color: white;
    border-radius: 15px;
    position: absolute;
    right:-15px;
    top:-15px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity:0.5;
    background-image: url("assets/cross.svg");
    background-repeat:no-repeat;
    background-position: center;
}
.closeDiv:hover{
    opacity:1;
}
.resize{
    width:30px;
    height:30px;
    background-color: white;
    border-radius: 15px;
    position: absolute;
    right:-15px;
    bottom:-15px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0.5;
    background-image: url("assets/resize.svg");
    background-repeat:no-repeat;
    background-position: center;
}
.resize:hover{
    opacity:1;
}
#title{
    width:300px;
    
}
h2{
    font-family: "Comfortaa",sans-serif;
    font-size: 1em;
    font-weight: 400;
    margin:4px 0 12px;
}
h2>a{
    font-family: "Comfortaa",sans-serif;
}
p{
    
    font-size: 1.1em;
    font-weight: 100;
    line-height: 24px;
}
#burger{
    display: none;
    gap:4px
}
.burgerElement{
    width:22px;
    height:4px;
    border-radius: 3px;
    background-color: #7462BE;
    margin-bottom:4px;
    transition: all 300ms ease;
    position: relative;
    top:0px;
    left:0px
}
#intro{
    display:flex;
    gap:20px;
    align-items: center;
}
#pile{
    height: 84px;
}

#parameters{
    list-style: none;
    display: flex;
    width:100%;
    flex-wrap:wrap;
    gap:5px;
}
#parameters li{
    border-width:1px;
    border-style: solid;
    border-color: rgb(34, 33, 35);
    padding:10px 6px;
    cursor: pointer;
    flex-grow:1;
    text-align: center;
}
#parameters .pink.on{
    background-color:#FF5C7A;
}
#parameters .purple.on{
    background-color:#7462BE;
      
}
#parameters .purple.on p{
    color:white;
}
#parameters .yellow.on{
    background-color:#FAE523;
}
nav{
    border-left:2px solid #F0EDF5;
    padding-left:16px;
}
#mesProjets{
    cursor: pointer;
}
#projectsLinks{
    list-style: none;
    margin-bottom:20px;
    display:none;
    
}
#projectsLinks.projectsLinksOpen{
    display:block

}
#chevron{
    display: inline-block;
}
#chevron.projectsLinksOpen{
    transform: rotate(90deg);
}
#projectsLinks li{
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    cursor: pointer;
}
#projectsLinks .pink{
    text-decoration-color: #FF5C7A;
}
#projectsLinks .purple{
    text-decoration-color: #7462BE
}
#projectsLinks .yellow{
    text-decoration-color: #FAE523
}
#mention{
    display: flex;
    justify-content:space-between;
    margin-top:12px;
}

section{
    position:absolute;
    left:20px;
    top:20px;
    width:420px;
    background-color: white;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    height:calc(100vh - 40px);
    display: flex;
    flex-direction: column;
    padding: 20px;
    justify-content: space-between;
    z-index:1;
}

a{
    text-underline-offset: 3px;
}

#basSmartphone{
    display:none;
    margin-top:40px;
}
.contactez{
    display:flex;
    align-items: center;
    gap:16px;
    margin-bottom:40px;
    justify-content: center;
}
.contactez>p{
    text-align: center;
    max-width: 80vw;
}
.carre3{
    display:flex;
    gap:4px;
}
.carre{
    width:16px;
    height:16px;
}
.carre.yellow{
    background-color: #FAE523;
}
.carre.pink{
    background-color: #FF5C7A;
}
.carre.purple{
    background-color: #7462BE
}
.icons{
    display:flex;
    justify-content: center;
    gap:16px;
    margin-bottom: 40px;
}
.icons>img{
    width:40px;
    height:40px;
}
.icons.desktop{
    justify-content: flex-start;
    margin-bottom: 24px;
}


@media (max-width: 1200px){
    section{
        max-height:420px;
    }
    nav{
        display:none;
    }
    #placeholder{
        width:calc(100vw - 40px);
        left:20px;
        background-image: url("assets/placeholder2.svg");
    }
    #placeholder h2{
        margin-top:480px;
    }
    .icons.desktop{
        display:none;
    }

}
@media (max-width:850px) {
    #placeholder h2{
        margin-top:40vh;
    }
    section{
        flex-direction: row;
        width:calc(100vw - 40px);
        height:auto;
        align-items: center;
        gap:20px;
    }
    section>*{
        flex:1;
    }
    footer{
        display: none;
    }
    #title{
        width:80%;
    }
    header{
        border-right:2px solid #F0EDF5;
        padding-right: 20px;
    }
    #placeholder{
        height:calc(100vh - 260px);
        background-image: url("assets/placeholder.svg");
        bottom:20px;
        top:auto;
    }
}
@media (max-width:600px){
    .icons.desktop{
        display:none;
    }
    p{
        font-size: 1.1em;
        font-weight: 300;
    }
    body{
        overflow-y:visible
    }
    section{
        display: block;
        background:none;
        box-shadow: none;
        position:static;
        width:100vw;
        padding: 0;
        max-height: none;
        position:sticky;
        top:200px;
        
    }
    section.open{
        top:0px !important;
    }
    header{
        padding:0;
        border:none;
    }
    #top{
        position:sticky;
        top:-1px;
        display:flex;
        justify-content: space-between;
        align-items: center;
        background-color: white;
        padding:20px;
        box-shadow: 0px 2px 4px 0px rgba(0, 0, 0, 0.25);
    }
    #burger{
        display:block;
    }
    #title{
        width:160px;
    }
    #intro{
        padding:40px 20px;
        gap:10px;
    }
    #tag{
        display:none;
    }
    #parameters{
        max-width: 400px;
        margin:auto;
    }
    section.menuOpen{
        background-color:white;
        padding:20px 20px 80px;
        min-height: 100vh;
        position: relative;
        top: 0 !important;
        left:0 !important;
    }
    #intro.menuOpen{
        display:none;
    }
    #tag.menuOpen{
        display: block;
        margin:50px 0;
    }
    nav.menuOpen{
        display:block;
    }
    #projectsNav.menuOpen{
        display: block ;
    }
    #top.menuOpen{
        box-shadow: none;
        padding: 0;
    }
    footer.menuOpen{
        display:block
    }
    #mention.menuOpen{
        display: flex;
        position: absolute;
        bottom:0;
        left:20px;
        height:40px;
        width:calc(100vw - 40px);
    }
    #e1.menuOpen{
        transform: rotate(45deg);
        top:8px
    }
    #e2.menuOpen{
        width:0;
        left:11px;
    }
    #e3.menuOpen{
        transform: rotate(-45deg);
        top:-8px;
    }
    #placeholder{
        display:none;
    }
    main{
        position:static;
        height:fit-content
    }
    main.menuOpen{
        display:none;
    }
    #projectsDesktop{
        display:none
    }
    #projectsSmartphone{
        display:block
    }
   
    .verySmall>.projectsName>h3{
        display:block;
    }
    .closeDiv{
        display: none;
    }
    .resize{
        display:none;
    }
    #auto{
        display:none;
    }
    #basSmartphone{
        display:block;
    }

}
@media (max-width:300px){
    #mention.menuOpen{
        display: block;
        position: absolute;
        bottom:0;
        left:20px;
        height:60px;
        width:calc(100vw - 40px);
    }
    section.menuOpen{
        padding-bottom: 100px;
    }
    #pile{
        display:none;
    }
    .carre3{
        display:none;
    }
}

@media (max-height:800px){
    #projectsNav{
        display:none;
    }
}
@media (max-height:600px){
    nav{
        display:none;
    }
    .icons.desktop{
        display:none;
    }
}
@media (max-height:460px) and (min-width:850px){
    #parameters li{
        padding:1.5vh;
    }
    #pile{
        height:16.8vh;
    }
    #trier{
        display:none;
    }
}
#projectDisplay{
    padding:20px;
    gap:20px;
    align-items: center;
    display:flex;
    position:absolute;
    top:0;
    left:0;
    width:100vw;
    height:100vh;
    background-color: #F0EDF5;
    z-index: 2;
    
}
.unopen{
    display:none !important;
}
#descriptionOut{
    width:420px;
    position:relative;
    background-color: white;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    height:calc(100vh - 40px);
    padding: 20px;
    z-index:3;
    display:flex;
    flex-direction: column;
    max-width:40vw;
}
.description{
    overflow-y: auto;
    flex:1;
}

#image{
    width:min(calc(100vw - min(480px,40vw)),calc(100vh - 40px));
    height:min(calc(100vw - min(480px,40vw)),calc(100vh - 40px));
    background-size: cover;
    background-repeat: no-repeat;
    margin:auto;
    position:relative;
    display:flex;
    justify-content: center;
    align-items: flex-end;
}

.carreProject{
    width:24px;
    height:24px;
    position:relative !important;
    top:30px !important;
    right:0 !important;
}
h1{
    font-family: "Comfortaa",sans-serif;
    font-size: 1.5em;
    font-weight: 400;
    background-color: #7462BE;
    transform: rotate(-4deg);
    width:fit-content;
    padding:10px;
    margin-bottom: 20px;
    
}
.description p{
    margin-left:35px;
}
b{
    font-weight: 500;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
    text-decoration-color: inherit;
}
#back{
    width:50px;
    height:50px;
    background-color: white;
    border-radius: 50px;
    position: absolute;
    left:460px;
    top:20px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0.8;
    background-image: url("assets/back.svg");
    background-repeat:no-repeat;
    background-position: center;
}
#back:hover{
    opacity:1;
}

@media (max-width:850px) {
    #back{
        right:20px;
        bottom:20px;
    }
    #projectDisplay{
        flex-direction: column;
        height:100vh;
    }
    #descriptionOut{
        width:calc(100vw - 40px);
        max-width:none;
        height:260px;
    }

    #image{
        height:min(calc(100vw - 40px),calc(100vh - 320px));
        width:min(calc(100vw - 40px),calc(100vh - 320px));
        margin:0;
    }
}
#backSmartphone{
    width:50px;
    height:50px;
    background-color: white;
    border-radius: 30px;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    background-image: url("assets/back.svg");
    background-repeat:no-repeat;
    background-position: center;
    display:none;
    position:fixed;
    bottom:20px;
    right:-200px;

}
@media(max-width:600px){
    #projectDisplay{
        display:none;
    }
    .description{
        padding:0 20px 0 10px;
        margin-bottom:8px;
    }
    #backSmartphone{
        right:20px;
    }
}


#projectsSmartphone .projects.open{
    display:block !important;
    margin:70px auto 20px;
    background-color: #F0EDF5;
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
}
#projectsSmartphone .projects.open .projectsName{
    bottom:90vw;
    left:0;
    right:auto;
}

.phone *{
    opacity:1 !important;
}


#left{
    width:50px;
    height:50px;
    background-color: white;
    border-radius: 30px;
    position: absolute;
    left:20px;
    top:calc(min(calc(100vw - min(480px,40vw)),calc(100vh - 40px))/2 - 25px);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0.5;
    background-image: url("assets/left.svg");
    background-repeat:no-repeat;
    background-position: center;
}
#left:hover{
    opacity:1;
}

#right{
    width:50px;
    height:50px;
    background-color: white;
    border-radius: 30px;
    position: absolute;
    right:20px;
    top:calc(min(calc(100vw - min(480px,40vw)),calc(100vh - 40px))/2 - 25px);
    box-shadow: 0px 4px 4px 0px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    opacity: 0.5;
    background-image: url("assets/right.svg");
    background-repeat:no-repeat;
    background-position: center;
}
#right:hover{
    opacity:1;
}