/* Appel de la police de caractère */
@font-face {
    font-family: 'Quentin';
    src: url('fonts/Quentin.woff2') format('woff2'),
        url('fonts/Quentin.woff') format('woff'),
}

/* Palette de couleurs */
:root {
    --bg-color: #F9F7F3;
    --text-color: #1B1716;
    --text-color-light: #7d7b79;
    --pink: #F8C1CA;
    --brown: #9F663F;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track-piece {
    background-color: var(--bg-color);
    border: 2px solid var(--bg-color);
}

::-webkit-scrollbar-thumb:vertical,
::-webkit-scrollbar-thumb:horizontal {
    background-color: var(--pink);
    border: 1px solid var(--pink);
}

::-webkit-scrollbar-button {
    display: none
}

::selection {
    background-color: var(--brown);
    color: var(--bg-color);
}

/* Canvas */
#canvas-container {
    position: fixed;
    top: 0;
    left: 0;
    z-index: -1;
    width: 100vw;
    height: 100vh;
}

.sr-only {
    border: 0 !important;
    clip: rect(1px, 1px, 1px, 1px) !important;
    -webkit-clip-path: inset(50%) !important;
    clip-path: inset(50%) !important;
    height: 1px !important;
    overflow: hidden !important;
    padding: 0 !important;
    position: absolute !important;
    width: 1px !important;
    white-space: nowrap !important;
}

.not-sr-only:focus-within {
    clip: auto !important;
    -webkit-clip-path: none !important;
    clip-path: none !important;
    height: auto !important;
    overflow: visible !important;
    position: fixed !important;
    width: auto !important;
    white-space: normal !important;
}

.skip-link a {
    font-size: 1.5rem;
    color: white;
    padding: 10px 15px;
    border-radius: 90px;
    background-color: var(--text-color);
}

.skip-link {
    margin-top: 24px;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

body,
html {
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    font-family: 'Space Mono', monospace;
    line-height: 1.5;
    font-weight: 400;
    font-size: 1rem;
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 32px;
    margin-top: 0;
    line-height: 1.2;
    font-family: 'Times New Roman', Times, serif;
    font-weight: 500;
}

h2 {
    font-size: 2rem;
    margin-bottom: 24px;
    margin-top: 0;
    line-height: 1.25;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
}

h3 {
    font-size: 1rem;
    margin-bottom: 16px;
    margin-top: 0;
    line-height: 1.5;
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 600;
}

p {
    margin-top: 0;
    margin-bottom: 16px;
    max-width: 80ch;
}

a {
    text-decoration: none;
    cursor: pointer;
    color: var(--brown);
}

a:hover {
    text-decoration: underline;
}

header {
    position: fixed;
    display: flex;
    backdrop-filter: blur(100px);
    width: 100%;
    border-bottom: solid 2px var(--text-color);
    transition: background-color 0.5s;
    z-index: 10;
}

header:has(.active) {
    background-color: var(--bg-color);
}

.header-content {
    display: flex;
    padding: 1rem;
    height: 80px;
}

header .logo {
    flex-shrink: 0;
    padding-left: 5rem;
}

header .logo img {
    height: 100%;
}

.burger-container {
    align-items: center;
    justify-content: center;
    flex-grow: 1;
}

.open-menu {
    padding: 1rem;
}

.open-menu:hover {
    cursor: pointer;
}

.open-menu .menu-lines {
    display: block;
    width: 40px;
    height: 1.2rem;
    position: relative;
    transition: transform 0.5s ease-in-out;
}

.open-menu .menu-lines::before {
    top: 0;
    transform: rotate(0);
}

.open-menu:hover .menu-lines::before {
    transform: rotate(180deg);
}

.open-menu .menu-lines::after {
    top: calc(100% - 3px);
    transform: rotate(0);
}

.open-menu:hover .menu-lines::after {
    transform: rotate(180deg);
}


.open-menu .menu-lines::before,
.open-menu .menu-lines::after {
    content: '';
    width: 100%;
    background-color: var(--text-color);
    height: 3px;
    position: absolute;
    transition: top 0.5s ease-in-out,
        transform 0.5s ease-in-out;
}

.burger-container.active .menu-lines:before {
    margin-top: 0;
    transform: rotate(135deg);
    top: 50%;
}

.burger-container.active .menu-lines:after {
    margin-top: 0;
    transform: rotate(45deg);
    top: 50%;
}

.burger-container.active .open-menu:hover .menu-lines {
    transform: rotate(180deg);
}

.contact-emoji {
    justify-content: flex-end;
    perspective: 1000px;
    flex-shrink: 0;
    border-left: solid 2px var(--text-color);
}

.contact-emoji img {
    height: 100%;
    transition: transform 0.5s;
    transform-style: preserve-3d;
}

.contact-emoji img:hover {
    transform: rotateY(180deg);
}

.burger-container~.header-nav {
    display: flex;
    position: fixed;
    justify-content: center;
    padding-top: 128px;
    visibility: hidden;
    opacity: 0;
    top: 82px;
    width: 100%;
    height: calc(100vh - 82px);
    background-color: var(--bg-color);
    transition: opacity 0.5s, visibility 0.5s;
    overflow: auto;
}

.burger-container.active~.header-nav {
    visibility: visible;
    opacity: 1;
}

.header-nav a {
    position: relative;
    font-family: "Source Sans 3", sans-serif;
    color: var(--text-color);
    font-size: 4rem;
}

.header-nav a {
    text-decoration: none;
}

.header-nav a::before {
    content: "";
    top: 50%;
    height: 5px;
    transform-origin: 100% 50%;
    transform: scale3d(0, 1, 1);
    transition: transform 0.3s cubic-bezier(0.4, 1, 0.8, 1);
    position: absolute;
    width: 100%;
    background-color: var(--text-color);
    left: 0;
}

.header-nav a:hover::before {
    transform-origin: 0% 50%;
    transform: scale3d(1, 1, 1);
}

.mixed-font {
    font-family: "Times New Roman", Times, serif;
    font-style: italic;
}

ul {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.header-nav li {
    text-align: center;
    margin-bottom: 32px;
}

main {
    width: calc(100% - 80px);
    padding-top: 82px;
}

#content {
    max-width: 900px;
    padding: 20px;
    margin: 0 auto;
}

.flex-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: calc(100vh - 82px);
    position: relative;
}

.layer {
    display: flex;
    align-items: center;
    flex-direction: column;
    position: absolute;
}

.layer1 {
    z-index: 1;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -110%);
}

.layer2 {
    z-index: 2;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -30%);
}

.layer3 {
    z-index: 3;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
}


.parallax h1 {
    font-family: 'Times New Roman', Times, serif;
    font-size: 20vw;
    font-weight: 400;
    margin: 0;
}

.img-container {
    width: 25vw;
}

.img-container img {
    width: 100%;
    filter: grayscale(100%);
    transition: filter 0.5s;
}

.img-container img:hover {
    filter: grayscale(0%);
}

.links {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

.links a {
    background-color: var(--text-color);
    color: white;
    padding: 5px 10px;
    border-radius: 90px;
    border: 2px solid var(--text-color);
    text-align: center;
}

.links a:hover {
    background-color: var(--brown);
    border-color: var(--brown);
    text-decoration: none;
}

.links a:last-child {
    background-color: transparent;
    color: var(--text-color);
}

.links a:last-child:hover {
    color: var(--brown);
}

.parallax h2 {
    font-family: 'Source Sans 3', sans-serif;
    text-transform: uppercase;
    font-weight: 200;
    letter-spacing: .2em;
    margin: 0;
    font-size: 10vw;
}

.error-container {
    display: inline-flex;
    align-items: center;
}

.error-letter {
    height: 1em;
    width: auto;
}

.error h1 {
    font-size: 20vw;
}

.error p {
    text-align: center;
}

.about {
    display: flex;
    gap: 40px;
    margin-bottom: 32px;
    align-items: stretch;
}

.passion {
    overflow: hidden;
    flex: 1;
    height: 800px;
}

.about-text {
    flex: 1;
}

.passion img {
    filter: grayscale(100%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: filter 0.5s;
}

.passion img:hover {
    filter: grayscale(0%);
}

.signature {
    font-family: 'Quentin', sans-serif;
    font-size: 2rem;
}

.subtitle {
    font-family: 'Source Sans 3', sans-serif;
    letter-spacing: .2em;
    color: var(--text-color-light);
    text-transform: uppercase;
}

.internship {
    margin-bottom: 32px;
    border-top: solid 2px var(--text-color);
    border-bottom: solid 2px var(--text-color);
    padding: 20px;
}

.internship h2 {
    text-align: center;
}

.opquast {
    background-color: white;
    padding: 20px;
    border-radius: 20px;
    max-width: fit-content;
    margin: auto;
}

.opquast-container {
    display: flex;
}

.opquast-container a{
    display: block;
    text-align: center;
    width: 100%;
    background-color: transparent;
    border: 2px solid var(--brown);
    padding: 5px;
    font-family: 'Space Mono', monospace;
    line-height: 1.5;
    font-weight: 400;
    font-size: 1rem;
    color: var(--brown);
    transition: background-color .5s, color .5s;
}

.opquast-container a:hover{
    background-color: var(--brown);
    color: white;
    cursor: pointer;
    text-decoration: none;
}

.opquast-container img{
    padding-bottom: 2rem;;
}

.opquast-container div{
    width: 50%;
    padding: 2rem;
}

.opquast h2 {
    text-align: center;
    color: var(--brown);
}

#caroussel {
    overflow: hidden;
    height: 400px;
    width: 100%;
    display: flex;
    margin-bottom: 32px;
}

.slide {
    width: 100%;
    height: 100%;
    transition: flex 0.5s;
}

.slide:hover {
    flex: 1 0 100%;
}

.slide img {
    filter: grayscale(100%);
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    transition: filter 0.5s;
}

.slide img:hover {
    filter: grayscale(0%);
}

.line {
    width: 100%;
    height: 2px;
    background-color: var(--text-color);
    margin-bottom: 32px;
}

.cards {
    display: grid;
    grid-template-columns:repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.card {
    padding: 20px;
    border: 2px solid var(--text-color);
    border-radius: 10px;
}

.card-img {
    width: 100%;
    height: 200px;
    overflow: hidden;
    border-radius: 10px;
    border: solid 1px var(--text-color);
    margin-bottom: 16px;
}

.card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.tools-container {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.tool {
    display: flex;
    gap: 5px;
    align-items: center;
    padding: 5px;
    border-radius: 50px;
    border: solid 1px var(--text-color);
}

.tool p{
    margin: 0;
    font-size: 0.875rem;
}

.tool-img {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 25px;
    height: 25px;
    background-color: var(--text-color);
    padding: 5px;
    border-radius: 50%;
    overflow: hidden;
}

.tool-img img {
    width: 100%;
    height: 100%;
}

.card-links{
    display: flex;
    gap: 20px;
}

.card-links a {
    background-color: var(--text-color);
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 50px;
    border: 1px solid var(--text-color);
}

.card-links .github {
    background-color: transparent;
}

.card-links a:hover {
    background-color: var(--brown);
    border-color: var(--brown);
    text-decoration: none;
}

.card-links .github:hover {
    background-color: transparent;
    color: var(--brown);
}

.card-links a svg {
    stroke: white;
    width: 100%;
    height: 100%;
}

.card-links .github svg {
    stroke: var(--text-color);
}

.card-links a:hover svg {
    stroke: white;
}

.card-links .github:hover svg {
    stroke: var(--brown);
}

.card-bottom {
    display: flex;
    justify-content:flex-end;
    align-items: center;
    padding-top: 16px;
    border-top: solid 1px var(--text-color);
}

.backtop {
    position: fixed;
    bottom: 0;
    right: 0;
    width: 82px;
    height: calc(100vh - 82px);
    backdrop-filter: blur(100px);
    border-left: solid 2px var(--text-color);
    z-index: 9;
}

#backtop-btn {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    background-color: var(--text-color);
    border: none;
    height: 160px;
    padding: 0;
}

#backtop-btn img {
    width: 50%;
}

#backtop-btn:hover {
    cursor: pointer;
}

footer {
    padding: 64px 24px;
    background-color: var(--text-color);
    color: var(--text-color-light);
    padding-right: 82px;
    z-index: 8;
    position: relative;
}

.footer-container {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-right: 24px;
    border-bottom: solid 1px white;
    margin-bottom: 24px;
    padding-bottom: 24px;
    gap: 24px;
}

footer .logo {
    width: 80px;
    margin-bottom: 16px;
}

footer h3 {
    text-transform: uppercase;
    color: white;
}

.social-links a {
    display: inline-block;
    width: fit-content;
    margin-right: 10px;
    margin-bottom: 10px;
}

.social-links a:hover {
    text-decoration: none;
}

.social-links img {
    background-color: white;
    padding: 5px;
    border-radius: 25%;
}

.social-links img:hover {
    background-color: var(--brown);
}

.footer-credit {
    text-align: center;
}

.txt-required {
    font-style: italic;
}

form .input-box {
    margin-bottom: 16px;
}

input:focus,
textarea:focus {
    outline: none;
}

.input-box {
    position: relative;
}

.name-input {
    width: 100%;
    padding: 5px;
    border: 2px solid white;
    background: transparent;
    color: white;
    font-family: 'Space Mono', monospace;
    line-height: 1.5;
    font-weight: 400;
    font-size: 1rem;
}

.name-label {
    background-color: var(--text-color);
    position: absolute;
    left: 0;
    margin: 7px;
    color: white;
    transition: .5s;
}

.name-input:valid~label,
.name-input:focus~label,
.name-input:not(:placeholder-shown)~label {
    transform: translateY(-1rem);
    color: white;
    font-size: .75em;
    margin-left: 5px;
    padding: 0 7px;
}

textarea {
    resize: vertical;
}

input[type="submit"] {
    width: 100%;
    background-color: transparent;
    border: 2px solid var(--brown);
    padding: 5px;
    font-family: 'Space Mono', monospace;
    line-height: 1.5;
    font-weight: 400;
    font-size: 1rem;
    color: var(--brown);
    transition:
        background-color .5s,
        color .5s;
}

input[type="submit"]:hover {
    background-color: var(--brown);
    color: white;
    cursor: pointer;
}

/* error and success messages */
.error-message {
    background-color: #fce4e4;
    border: 1px solid #fcc2c3;
    padding: 20px 30px;
    float: left;
    margin-bottom: 16px;
}

.error-text {
    color: #cc0033;
    font-size: .813rem;
    font-weight: bold;
    text-shadow: 1px 1px rgba(250, 250, 250, .3);
    margin: 0;
}

.success-message {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    float: left;
    padding: 20px 30px;
    margin-bottom: 16px;
}

.success-text {
    color: #3c763d;
    font-size: .813rem;
    font-weight: bold;
    text-shadow: 1px 1px rgba(250, 250, 250, .3);
    margin: 0;
}


@media screen and (max-width: 1024px) {

        #canvas-container {
        display: none;
    }

    canvas {
        display: none;
    }

    footer {
        padding-right: 24px;
    }

    .footer-container {
        flex-direction: column;
        margin-right: 0px;
    }

    header .logo {
        padding-left: 20px;
    }

    .links {
        flex-direction: column;
    }

    main {
        width: 100%;
    }

    .parallax h1 {
        font-size: 40vw;
    }

    .error h1 {
        font-size: 40vw;
    }

    .img-container {
        width: 40vw;
    }

    .parallax h2 {
        font-size: 15vw;
    }

    .about {
        flex-direction: column;
    }

    .passion img {
        height: 400px;
    }

    #caroussel {
        display: none;
    }

    .cards {
        grid-template-columns: repeat(1, minmax(0, 1fr));
    }

    .opquast-container {
    flex-direction: column;
    }

    .opquast-container div {
        width: 100%;
    }

    .backtop {
        display: none;
    }
}