/* ************* Import Font ************* */

@import url('https://fonts.googleapis.com/css2?family=Cousine:ital,wght@0,400;0,700;1,400;1,700&family=Domine:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Red+Hat+Display:ital,wght@0,300..900;1,300..900&family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&family=Telex&display=swap');
    /* Cousine */
    /* Domine */
    /* Inter */
    /* Red Hat Display */
    /* Space Mono */
    /* Telex */


/* ************* General style ************* */

body, html {
    margin: 0px;
    padding: 0px;

    scroll-behavior: smooth;
}


/* ************* Header content ************* */

header {
    display: flex;
    flex-direction: column;
    text-align: center;

    font-size: 1.3em;
    color: white;

    min-width: 240px;

    position: sticky;
    top: 0px;
    z-index: 100;
}

header .top-header {
    display: flex;
    justify-content: center;
    align-items: center;

    font-size: 1.4em;
    text-shadow: 3px 1px 7px #0044ff;

    margin: 0px;
    padding: 5px 0px;

    border-bottom: #0037ff 3px solid;

    background: linear-gradient(to bottom, #4f94ff, #3886ff);
}

header .top-header h3 {
    margin: 0px 25px;

    font-family: 'Domine', serif;
}

header .menuIcon {
    display: none;
    cursor: pointer;

    margin: 0px 5px;
}

header .menuIcon .bar {
    display: block;
    width: 30px;
    height: 3px;
    background-color: white;

    position: relative;

    margin: 5px 0px;
    transform: rotate(0deg);
    transform-origin: center;
    transition: opacity 0.4s;
}

/* Animation lors du passage à l'état croix */
header .menuIcon.cross .bar:nth-child(1) {
    animation: bar1 0.5s forwards;
}

header .menuIcon.cross .bar:nth-child(2) {
    opacity: 0;
}

header .menuIcon.cross .bar:nth-child(3) {
    animation: bar3 0.5s forwards;
}

/* Animation lors du retour à l'état menu */
header .menuIcon:not(.cross) .bar:nth-child(1) {
    animation: bar1reverse 0.5s forwards;
}

header .menuIcon:not(.cross) .bar:nth-child(3) {
    animation: bar3reverse 0.5s forwards;
}

@keyframes bar1 {
    0% {
        transform: rotate(0deg);
        top: 0px;
    }
    50% {
        transform: rotate(0deg);
        top: 8px;
    }
    100% {
        transform: rotate(45deg);
        top: 8px;
    }
}

@keyframes bar3 {
    0% {
        transform: rotate(0deg);
        bottom: 0px;
    }
    50% {
        transform: rotate(0deg);
        bottom: 8px;
    }
    100% {
        transform: rotate(-45deg);
        bottom: 8px;
    }
}

@keyframes bar1reverse {
    0% {
        transform: rotate(45deg);
        top: 8px;
    }
    50% {
        transform: rotate(0deg);
        top: 8px;
    }
    100% {
        transform: rotate(0deg);
        top: 0px;
    }
}

@keyframes bar3reverse {
    0% {
        transform: rotate(-45deg);
        bottom: 8px;
    }
    50% {
        transform: rotate(0deg);
        bottom: 8px;
    }
    100% {
        transform: rotate(0deg);
        bottom: 0px;
    }
}

header .navBar {
    padding: 5px;
    display: flex;
    justify-content: center;
    align-items: center;

    background: linear-gradient(to bottom, #3886ff, #2279ff);

    overflow: hidden;
    transition: height 0.4s;
}

header .navBar a {
    text-decoration: none;
    color: white;
    margin: 0px 10px;

    display: block;

    font-family: 'Telex', sans-serif;
}

header .navBar a::after {
    content:  "";
    display: block;
    height: 0.15em;
    background-color: white;

    transform: scale(0);
    transition: transform 0.3s;
}

header .navBar a:hover::after {
    transform: scale(1);
}


/* ************* Main content ************* */

.main {
    margin-top: 15px;
}

.main section {
    font-size: 1.2em;

    margin: 0px calc(2px + 2vw) 10px calc(5px + 4vw);
}

.main section .title {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 1.1em;
    margin: 15px 0px;
    transition: margin 0.5s;

    display: inline-block;

    scroll-margin-top: 100px;
}

.main section .title:hover {
    margin: 15px 10px;
}

.main section .title a {
    text-decoration: none;
    color: black;

    border-bottom: 3px solid;
    border-color: transparent;
    transition: border-color 0.3s;
}

.main section .title a::before {
    content: ">";
    margin: 1px 5px;
    color: transparent;
    transition: color 0.3s;
}

.main section .title a:hover {
    border-color: currentColor;
}

.main section .title a:hover::before {
    color: #888888;
}

.main section p, .main section ul li {
    margin: 0px;

    line-height: 1.2;
    letter-spacing: 1px;
    word-spacing: 2.3px;

    font-family: 'Inter', sans-serif;
}

.main section .links {
    text-decoration: none;
    font-weight: 400;
    transition: font-weight 0.3s, color 0.3s;

    color: #0000FF;
}

.main section .links:active {
    color: #7300FF;
}

.main section .links:hover {
    font-weight: 700;
}

.main section .projects-grid {
    display: flex;
}

.main section .projects-grid .project {
    position: relative;
    overflow: hidden;
    flex: 0.5;
    max-width: 800px;
    cursor: pointer;
}

.main section .projects-grid .project img  {
    width: 100%;
}

.main section .projects-grid .project .button-play {
    background-color: #00000075;
    color: white;
    text-align: center;
    font-family: 'Red Hat Display', sans-serif;
    text-decoration: none;

    position: absolute;
    bottom: 6px;
    overflow: hidden;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;

    width: 100%;
    height: 0%;
    transition: height 0.4s;
}

.main section .projects-grid .project:hover .button-play {
    height: 100%;
}

.main section .projects-grid .project .button-play div {
    mask-image: url(./svg/play_circle.svg);
    mask-repeat: no-repeat;
    mask-size: contain;

    width: 50px;
    height: 50px;
    min-width: 50px;
    min-height: 50px;

    background-color: white;
}

/*
.main section .logo {
    display: inline;
    width: 50px;
    height: 50px;
}
*/

.main section .date {
    font-family: 'Space Mono', monospace;
    font-style: italic;
}

.main section .content-slider {
    background-color: #E5E5E5;
    padding: 15px;
    border-radius: 20px;
}

.main section .content-slider .main-content-slider {
    position: relative;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    display: flex;

    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none;  /* IE and Edge */
}

.main section .content-slider .main-content-slider::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.main section .content-slider .main-content-slider .slider {
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    scroll-snap-align: center;
}

.main section .content-slider .action-bar {
    display: flex;
    align-items: center;
    justify-content: space-around;

    margin-top: 10px;
}

.main section .content-slider .action-bar div {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 31%;
}

.main section .content-slider .action-bar .progress-bar {
    height: 15px;
    max-width: 350px;

    border-radius: 20px;
    overflow: hidden;
}

.main section .content-slider .action-bar .icons-button {
    background-color: #1f1f1f;
    mask-repeat: no-repeat;
    mask-size: contain;

    width: 4vw;
    height: 4vw;
    max-width: 47px;
    max-height: 47px;
    min-width: 28px;
    min-height: 28px;

    margin: 0.5vw;

    cursor: pointer;
}

.main section .content-slider .action-bar .chevron-left {
    mask-image: url(./svg/chevron_left.svg);
}

.main section .content-slider .action-bar .chevron-right {
    mask-image: url(./svg/chevron_right.svg);
}

.main section .content-slider .action-bar .autoplay {
    mask-image: url(./svg/autopause.svg);
}

.main section .content-slider.stopped .action-bar .autoplay {
    mask-image: url(./svg/autoplay.svg);
}

.main section .content-slider .action-bar .button-slide-content {
    flex-wrap: wrap;
}

.main section .content-slider .action-bar .button-set-slide {
    width: 2.2vw;
    height: 2.2vw;
    max-width: 25px;
    max-height: 25px;
    transform: scale(1);
    transform-origin: center;

    border-radius: 50%;
    background-color: #1f1f1f;

    margin: 2px 7px;
    position: relative;
    cursor: pointer;

    transition: background-color 0.6s, transform 0.6s;
}

.main section .content-slider .action-bar .button-set-slide.animate {
    background-color: #acacac;
    transform: scale(1.3);
}

.main section .slider img {
    width: 80%;
    max-width: 900px;
    margin: 10px 0px;
}

.main section .slider img.logoQD {
    width: 35%;
}

.main section .content-icons {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 60%;
    max-width: 960px;
}

.main section .content-icons .icons {
    background-color: #1F1F1F;
    mask-repeat: no-repeat;
    mask-size: contain;

    display: inline-block;
    width: calc(30px + 3vw);
    height: calc(30px + 3vw);
    max-width: 82px;
    max-height: 82px;

    transition: background-color 0.4s;
}

.main section .content-icons .icons.send-mail {
    mask-image: url(./svg/mail.svg);
}
.main section .content-icons .icons.send-mail:hover {
    background-color: #d32525;
}

.main section .content-icons .icons.send-message {
    mask-image: url(./svg/sms.svg);
}
.main section .content-icons .icons.send-message:hover {
    background-color: #2585d3;
}

.main section .content-icons .icons.whatsapp {
    mask-image: url(./svg/whatsapp_logo.svg);
}
.main section .content-icons .icons.whatsapp:hover {
    background-color: #25D366;
}


/* ************* Media Queries ************* */

@media screen and (max-width: 907px) { /* Si l'ecran est < 907px */
    /* Gère la marge au dessus ses liens (titres de sections) lorsque l'on clique dessus */
    .main section .title {
        scroll-margin-top: 125px;
    }
}

@media screen and (max-width: 768px) { /* Si l'ecran est < 768px */

    /* Transformation du menu des liens */
    header .navBar {
        flex-direction: column;

        background: linear-gradient(to right bottom, #2c3e50, #274059);

        position: fixed;
        height: 0px;
        width: 100%;
        padding: 0px;
    }

    header .navBar:not(.closed) {
        height: 295px;
        padding: 5px;
    }

    header .navBar a {
        margin: 5px calc((100vw - 215px) / 2);
        font-size: 1.2em;
        color: white;

        position: relative;
        left: 150%;
    }

    header .navBar a:nth-child(1) {
        transition: left 0.5s;
    }
    header .navBar a:nth-child(2) {
        transition: left 0.7s;
    }
    header .navBar a:nth-child(3) {
        transition: left 0.9s;
    }
    header .navBar a:nth-child(4) {
        transition: left 1.1s;
    }
    header .navBar a:nth-child(5) {
        transition: left 1.3s;
    }
    header .navBar a:nth-child(6) {
        transition: left 1.5s;
    }

    header .navBar:not(.closed) a {
        left: 0%;
    }

    header .navBar a::after {
        height: 0.15em;
    }

    header .menuIcon {
        display: block;
    }

    /* Gère la marge au dessus ses liens (titres de sections) lorsque l'on clique dessus */
    .main section .title {
        scroll-margin-top: 62px;
    }
}

@media screen and (max-width: 381.5px) { /* Si l'ecran est < 380px */
    header .top-header .menuIcon {
        margin: 0px 30px 0px 0px;
    }

    /* Gère la marge au dessus ses liens (titres de sections) lorsque l'on clique dessus */
    .main section .title {
        scroll-margin-top: 102px;
    }
}