/*
    RESET CSS
*/
@charset "utf-8";
/***
    The new CSS reset - version 1.8.5 (last updated 14.6.2023)
    GitHub page: https://github.com/elad2412/the-new-css-reset
***/

/*
    Remove all the styles of the "User-Agent-Stylesheet", except for the 'display' property
    - The "symbol *" part is to solve Firefox SVG sprite bug
    - The "html" attribute is exclud, because otherwise a bug in Chrome breaks the CSS hyphens property (https://github.com/elad2412/the-new-css-reset/issues/36)
 */
*:where(:not(html, iframe, canvas, img, svg, video, audio):not(svg *, symbol *)) {
    all: unset;
    display: revert;
}

/* Preferred box-sizing value */
*,
*::before,
*::after {
    margin:0;
    padding: 0;
    box-sizing: border-box;
}

/* Reapply the pointer cursor for anchor tags */
a, button {
    cursor: revert;
}

/* Remove list styles (bullets/numbers) */
ol, ul, menu {
    list-style: none;
}

/* For images to not be able to exceed their container */
img {
    max-inline-size: 100%;
    max-block-size: 100%;
}

/* removes spacing between cells in tables */
table {
    border-collapse: collapse;
}

/* Safari - solving issue when using user-select:none on the <body> text input doesn't working */
input, textarea {
    -webkit-user-select: auto;
}

/* revert the 'white-space' property for textarea elements on Safari */
textarea {
    white-space: revert;
}

/* minimum style to allow to style meter element */
meter {
    -webkit-appearance: revert;
    appearance: revert;
}

/* preformatted text - use only for this feature */
:where(pre) {
    all: revert;
}

/* reset default text opacity of input placeholder */
::placeholder {
    color: unset;
}

/* remove default dot (•) sign */
::marker {
    content: initial;
}

/* fix the feature of 'hidden' attribute.
   display:revert; revert to element instead of attribute */
:where([hidden]) {
    display: none;
}

/* revert for bug in Chromium browsers
   - fix for the content editable attribute will work properly.
   - webkit-user-select: auto; added for Safari in case of using user-select:none on wrapper element */
:where([contenteditable]:not([contenteditable="false"])) {
    -moz-user-modify: read-write;
    -webkit-user-modify: read-write;
    overflow-wrap: break-word;
    -webkit-line-break: after-white-space;
    -webkit-user-select: auto;
}

/* apply back the draggable feature - exist only in Chromium and Safari */
:where([draggable="true"]) {
    -webkit-user-drag: element;
}

/* Revert Modal native behavior */
:where(dialog:modal) {
    all: revert;
}


/* MON CSS */

:root
{
    --white: #D9E5D6;
    --black: #141115;
    --blackBack:#14111580 ;
    
    --pink: #ff6188 ;
    --orange: #fc9867;
    --yellow: #ffd866;
    --blue: #78dce8;
    --green: #a9dc76;
    --violet: #ab9df2;

    background-color: var(--black);
    color: var(--white);
    scroll-behavior: smooth;
    /* font-size: calc(100vw * 0.02); TODO SIZE */
    font-family: Arial, Helvetica, sans-serif;
}

progress::-moz-progress-bar {background-color: var(--pink);;}
progress{background-color: var(--white);}
progress::-webkit-progress-value{background-color: var(--pink);}
progress::-webkit-progress-bar{background-color: var(--white);}

p
{
    line-height: 1.8em;
}
h2
{
    font-size: 2em;
}
h3
{
    font-size: 1.5em;
}


body
{
    overflow-x: hidden;
}

/*  HEADER CSS */

header
    {
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
        padding: 0 12.5%;
        height: 100vh;
    }

    #canvAc
        {
            background-color: var(--black);
            position: absolute;
            top: 0;
            left: -5px;
            z-index: -1;
        }

    header > div
    {
        padding-left: 2%;
    }

    h1
    {
        font-size: 7em;
    } /* TODO*/

    header > div > p
    {
        display: inline-block;
        padding: .1%;
    }

    header > ul
        {
            display: flex;
            justify-content: space-evenly;
            align-items: center;
        }
    header > ul > li
    {
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(5px);
        width: 50%;
        border-bottom: 1px solid rgb(160, 160, 160);
        text-align: center;
        transition: border-bottom .5s linear;
    }
    
    header li:hover
    {
        border-bottom: 1px solid var(--white);
    }

    header a
    {
        display: block;
        padding: 5% 0 5% 0;
        cursor: pointer;
        color: rgb(160, 160, 160);
        transition: color .5s linear;
        white-space: nowrap;
    }
    header li >  a:hover
    {
        color: var(--white);
    }

/* MAIN */

main
{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-evenly;
    margin-bottom: 20vh;
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}

main > nav
{
        background-color: var(--black);
        position: sticky;
        left: 0;
        top: 0;
        z-index: 1;
        height: 5vh;
        width: 100vw;
        display: flex;
        justify-content: center;
        align-items: center;
}

main > nav > a
{
    position: absolute;
    left: 32px;
    height: 90%;
}

nav > ul
{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 50%;                
}

#nav > li
{
    width: 100%;
    padding: 0 1%;
    text-align: center;
    border-bottom: 10px solid var(--black);
    transition: border-bottom .2s linear;
}

#nav li > a
{ 
    font-size: 1em;
    white-space: nowrap;
    display: block;                    
    width: 100%;
    padding-bottom: 1.5vh;
    padding-top: 1.5vh;
    cursor: pointer;
}


/* MAIN SECTION */
section
{
    width: 100%;
    min-height: 20vh;
    margin-top: 12.5%;
    scroll-margin: 10vh;
}

section > h2
{
    border-bottom: 1px solid var(--white);
    display: block;
    margin-left: 2%;
}

article
{
    padding-left: 5vh;
    border-left: 1px solid rgba(56, 56, 56, 0.452);
}

article p
{
    margin-top: 5%;
    padding: 2%;
}

#Pres p, #PP p
{
    text-align: justify;
}

/* PARCOURS CSS*/
#monParc article
{
        display: flex;
        justify-content: space-evenly;
        align-items: center;
}

.timeline
{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    margin-top: 12.5%;
    margin-bottom: 12.5%;
}
.timeline > div
{
    position: relative;
    border: 1px double var(--white);
    background-color: var(--blackBack);
    height: 10vh;
    width: 10vw;
    margin: 6% 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    transition: .1s linear box-shadow, .1s linear left;
    cursor: pointer;
}
.timeline p
{
    text-align: center;
}

.is-Selected
{
    border: 1px solid var(--white);
    box-shadow: -4px 4px 0px -2px var(--black) ,-4px 4px var(--pink), -8px 8px 0px -2px var(--black), -8px 8px var(--violet);
}



#textContent
{
    width: 50vw;
    padding: 2%;
    color: var(--white);
    transition: .5s linear box-shadow;
    position: relative;
    overflow: hidden;
    display: flex;
}

#textContent div
{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: var(--black);
    padding: 6% 6%;                        
    border: 1px solid var(--white);
    box-shadow: -5px 5px 0px -2px var(--black) ,-5px 5px var(--pink), -10px 10px 0px -2px var(--black), -10px 10px var(--violet);
}

#textContent h2 , #textContent h3, #textContent p
{
    transition: .5s linear opacity;
}

#textContent h2
{
    text-decoration: underline var(--violet);
    text-decoration-thickness: 2px;
    text-underline-offset: 8%;
}
#textContent h3
{
    font-style: italic;
    margin-bottom: 4%;
}
#textContent p
{
    text-align: justify;
    line-height: 2em;
}
           
/* Comp */

#Comp
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#Comp article
{
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding-bottom: 2%;
    margin: 6%;
    border: 1px solid var(--white);
    background-color: var(--black);
}

#Comp h3
{
    display: inline-block;
    position: relative;
    top: -1.25em;
    width: fit-content;
    padding: .5em;
    background-color: var(--black);
    border: 1px solid var(--white);    
    box-shadow: -5px 5px 0px -2px var(--black) ,-5px 5px var(--pink), -10px 10px 0px -2px var(--black), -10px 10px var(--violet);
}

#Comp p
{
    text-align: justify;
    padding: .5% 5%;
    margin: 0;
}

#Comp img
{
    float: left;
    aspect-ratio: 1/1;
    width: 32px;
}

#Comp label, #Comp progress
{
    display: inline-block;
    width: calc(100% - 75px);
    margin-left: 2%;
}
#Comp progress
{
    height: 2px;
}

#Comp ul
{
    margin-top: 2%;
}

#Comp li
{
    padding:2% 0;
}

#files
{
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}

#files > a
{
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-evenly;
    text-align: center;
    white-space: wrap;
    width: 25vw;
    padding: 2%;
    border: 1px solid var(--white);
    box-shadow: -4px 4px 0px -2px var(--black) ,-4px 4px var(--pink), -8px 8px 0px -2px var(--black), -8px 8px var(--violet);
}

#files img
{
    width: 24px;
}
footer
{
    height: 10vh;
    background-color: var(--black);
    display: flex;
    justify-content: center;
    align-items: center;
}
footer ul
{
    display: flex;
    width: 50%;
    justify-content: space-evenly;
    align-items: center;
}
footer li
{
    padding: 2%;
}

footer img
{
    width: 3vh;
}
@media screen and (min-width: 901px)
{
    main 
    {
        width: 80vw;
        margin-left: 10vw;
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(10px);
    }
    #canvTime
    {
        display:initial;
    }
}

@media screen and (max-width: 900px) and (min-width: 426px)
{
    h1
    {
        font-size: 5em;
    }
    main
    {
        -webkit-backdrop-filter: blur(5px);
        backdrop-filter: blur(10px);
    }
    section
    {
        width: 100%;
    }
    article
    {
        padding-left: 0;
    }

    #Comp p
    {
        padding: 4% 2%;
    }

    #textContent
    {
        display: flex;
        flex-direction: column;
    }
    #textContent > div
    {
        margin: 5% 0;
    }

    #Comp article
    {
        margin: 6%;
    }
    #Comp > article > ul
    {
        padding-left: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
    }
    #Comp > article > ul > li
    {
        width:100%;
        padding-left: 2%;
    }
    #Comp > article > ul > li > label
    {
        white-space: wrap;
    }
    
    #textContent
    {
        width: 90%;
    }
    .timeline ,#canvTime
    {
        display: none;
    }


    #files
    {
        flex-direction: column;
        justify-content: space-between;
    }
    #files a
    {
        width: 50vw;
    }
}
    
@media screen and (max-width: 425px)
{
    h1
    {
        font-size: 3em;
    }
    #Comp p
    {
        padding: 4% 2%;
    }
    #Comp label
    {
        white-space: normal;
    }
    header ul
    {
        display: none;
    }
    main > nav
    {
        display: none;
    }
    #canvTime, .timeline
    {
        display: none;
    }

    article
    {
        padding: 2%;
    }

    #textContent
    {
        flex-direction: column;
        width: 100%;
        padding: 0;
    }

    #textContent div
    {
        padding-left: 2%;
        margin: 12% 0;
    }

    #files
    {
        flex-direction: column;
    }
    #files a
    {
        width: max-content;
    }
}