@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&display=swap');

:root {
    --maincolor: #fff;
    --secondcolor: #001F4F;
    --thirdcolor: #809fff;
    --backgroundcolor: #000000;
    --backgroundcolor2: rgb(11, 17, 63);
    --mainfont: 'Inter', sans-serif;
    --secondfont: 'Syne', sans-serif;

}

/*-------------------  Header Page  -----------------------*/
header {
    height: 90px;
    width: 100%;
    position: fixed;
    z-index: 1;
    display: flex;
    background-color: #000;
    top: 0;
}

.logo {
    width: 12%;
    margin-top: 2em;
    margin-right: 1em;
}

.logo img {
    width: 100%;

}

/*-------------------  Footer  -----------------------*/
footer {
    text-align: center;
}

.copyright {
    color: #666;
    text-align: center !important;
    display: block !important;
    position: relative !important;
    padding-top: 1em !important;
    padding-bottom: 1em !important;
    font-family: var(--mainfont);
    width: 100% !important
}

.copyright a {
    color: #666 !important;

}

/*------------------------- HOME Introduction -------------------------------*/

.blocintro {
    margin-top: 0.3em !important;
    margin-bottom: 0em !important;
    padding: 2em !important;

    display: grid;
    grid-template-columns: 30% 70%;


}

.blocintro .introtext {
    padding: 0em 0em 3em 2em;

}




/*-------------------  LIENS   -----------------------*/
.liens li a {
    box-shadow: 0px 10px 30px rgb(88 164 176 / 30%);
    z-index: 3;
    padding: 1rem;
    padding-left: 2.5rem;
    margin-left: 1rem;
    background-color: #FFFFFF;
    margin-bottom: 1rem;
    display: block;
    text-decoration: none;
    color: var(--maincolor);
}

.liens li a:hover {
    box-shadow: 0px 15px 35px rgb(88 164 176 / 30%);
    padding: 1.3rem;
    padding-left: 3.2rem !important;
}


.liens li a:after {
    content: '→';
    margin-left: 2rem !important;
}

.liens li {
    list-style-type: none;
}

/*-------------------  projectbloc  -----------------------*/
.projectbloc {
    display: grid;
    grid-template-columns: 40% 60%;
    grid-template-rows: auto;
    box-shadow: 5px 4px 0px 3px var(--secondcolor);
    margin-bottom: 4em;
}

.imagebloc {
    max-width: 100%;
    padding-right: 2em;
}

.imagebloc img {
    max-width: 100%;
}

.projectbutton {
    display: block;
    margin-top: 4em !important;
}

.projectdate {
    font-size: 1em !important;
    line-height: 1.3em !important;
}

.projectdescription {
    font-size: 1.3em !important;
}

/*-------------------  Button  -----------------------*/
[type=button],
[type=button]:focus,
[type=button]:hover,
[type=submit]:focus,
[type=submit]:hover,
button:focus,
button:hover {
    color: inherit !important;
    background-color: transparent !important;
    text-decoration: none !important;
    border: none;

}

[type=button]:hover {
    color: inherit !important;
    background-color: transparent !important;
    text-decoration: none !important
}

#openBtn,
button a {
    --c: var(--maincolor);
    box-shadow: 0 0 0 .1em inset var(--c);
    --_g: linear-gradient(var(--c) 0 0) no-repeat;
    background:
        var(--_g) calc(var(--_p, 0%) - 100%) 0%,
        var(--_g) calc(200% - var(--_p, 0%)) 0%,
        var(--_g) calc(var(--_p, 0%) - 100%) 100%,
        var(--_g) calc(200% - var(--_p, 0%)) 100%;
    background-size: 53.5% calc(var(--_p, 0%)/2 + 4%);
    outline-offset: .1em;
    transition: background-size .4s, background-position 0s .4s;
    color: #fff;
    font-size: 1.6em;
    font-weight: 600;
    text-decoration: none;
    border-radius: inherit !important;
    padding: 0.3em 1em 0.3em 1em;
    position: relative;
    bottom: 1em !important;
}

#openBtn:hover,
button a:hover {
    --_p: 100%;
    transition: background-position .4s, background-size 0s;
    color: var(--backgroundcolor2) !important;
}


/*-------------------  GENERAL   -----------------------*/

#content {
    max-width: 70vw;
    min-height: 100vh !important;
    margin: 2vw auto;
    padding-top: 0em !important;
    margin-bottom: 10rem !important;
    position: relative !important;
    top: 90px;

}



body,
html {
    height: 100% !important;
    max-width: 100% !important;
    background-color: var(--backgroundcolor) !important;
    -webkit-font-smoothing: antialiased;

}

html {
    -webkit-font-smoothing: antialiased;
}

body {
    font: 1em/1.5em var(--mainfont);
    font-style: normal;
    font-weight: 400;
    color: var(--maincolor);
    word-wrap: break-word;
    background-color: var(--backgroundcolor) !important;
    /* enhance Safari image rendering */
    image-rendering: optimizeQuality;

}



h1,
h2,
h3,
h4,
h5,
h6 {
    line-height: 1.5em;
    margin: 0 0 .4em;

    font-style: normal;
    font-weight: 300;
    word-wrap: normal;
}

h1 {
    font-size: 8em;
    text-shadow: -1px -1px 0 var(--thirdcolor), 1px -1px 0 #ffffffee, -1px 1px 0 #fff, 1px 1px 0 #fff;
    color: #000 !important;
    font-family: var(--secondfont) !important;
    writing-mode: vertical-rl;
    text-orientation: sideways;
    position: fixed;
    margin-left: inherit !important;
    right: -0.8em;
    top: 1em;
    bottom: 0em;
    padding-bottom: 0.5em;
    padding-top: 0.5em;
    margin-top: 0px;
    padding-left: 0.5em;
    padding-right: 0.5em;
    margin-bottom: 1em;
}

h2 {
    font-size: 3em !important;
    /* -webkit-text-stroke: 2px #FFF; */
    text-shadow: -1px -1px 0 #fff, 1px -1px 0 #fff, -1px 1px 0 #fff, 1px 1px 0 #fff;
    color: #000 !important;
    line-height: 110%;
    font-family: var(--secondfont) !important;
    font-style: normal;
    font-weight: 700 !important;
    letter-spacing: 0px;
    margin-left: -2em;
    margin-top: 1.7em;
    margin-bottom: 1.7em;
}

h2 strong {
    text-shadow: none;
    color: #fff;
    font-weight: 700 !important;


}

h3 {
    font-size: 1.6em !important;
    color: #FFF !important;
    line-height: 110%;
    font-family: var(--mainfont);
    font-style: normal;
    font-weight: 400 !important;
    letter-spacing: 0px;


}

p {
    font-family: var(--mainfont) !important;
    color: var(--maincolor);
    font-weight: 200;
    word-wrap: break-word;
    font-kerning: normal;
    font-size: 1.7em;
    line-height: 1.6 !important;
}


a {
    color: var(--maincolor) !important
}

p a {
    color: var(--maincolor) !important
}



/* ------------------------------------------------------- EXPERIENCE / EDUCATION ------------------------------------------ */
.experiencecontainer {
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 1em;
    margin-bottom: 2em;
}

.experiencedate {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    padding-right: 2em;

}

.experiencedate h2 {
    text-align: right;
    font-size: 2em !important;
    vertical-align: top;
    padding-right: 0.8em;
    border-right: 1px solid #fff;
    margin-top: 0 !important;


}

.experiencecontenu p {
    font-size: 1.1em !important;
}

.certificatescontainer {
    display: grid;
    grid-template-columns: 20% 80%;
    grid-template-rows: auto;
    gap: 1em;
    font-size: 1.3em;
    margin-bottom: 1em;
}

.certificatesdate {
    text-align: right;
}

/* -------------------------------------------------- FORM --------------------------------------- */

form {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

label {
    display: block;
    margin-bottom: 10px;
    color: var(--maincolor);
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--maincolor);
    border-radius: 5px;
    background-color: black;
    color: white;
    margin-bottom: 20px;
}

input[type="submit"] {
    --c: var(--maincolor);
    border-radius: 0px !important;
    border: none;
    margin-top: 1em;
    box-shadow: 0 0 0 .1em inset var(--c);
    --_g: linear-gradient(var(--c) 0 0) no-repeat;
    background:
        var(--_g) calc(var(--_p, 0%) - 100%) 0%,
        var(--_g) calc(200% - var(--_p, 0%)) 0%,
        var(--_g) calc(var(--_p, 0%) - 100%) 100%,
        var(--_g) calc(200% - var(--_p, 0%)) 100%;
    background-size: 53.5% calc(var(--_p, 0%)/2 + 4%);
    outline-offset: .1em;
    transition: background-size .4s, background-position 0s .4s;
    color: #fff;
    font-size: 1.6em;
    font-weight: 600;
    text-decoration: none;
    border-radius: inherit !important;
    padding: 0.3em 1em 0.3em 1em;
    position: relative;
    bottom: 1em !important;
    cursor: pointer;
}

input[type="submit"]:hover {
    --_p: 100%;
    transition: background-position .4s, background-size 0s;
    color: var(--backgroundcolor2) !important;
}

/* -------------------------------------------------- FORM --------------------------------------- */
video {
    max-height: 50vw !important;
}

.popup {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
}

.popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 20px;
    border-radius: 5px;
}

#openBtn {
    font-size: 1.4em !important;
    cursor: pointer;
}

.close-btn {
    position: fixed;
    top: 0em;
    right: -3em;
    width: 2em;
    height: 2em;
    border: none;
    background: transparent;
    font-size: 3em;
    cursor: pointer;
}

.close-btn::before {
    content: "X";
    color: var(--maincolor);
}