/* Variables */
:root {
    --ecriture: #3333;


    --color-primary: #FF6421;
    --color-secondary: #fff7ed;
    --color-trimary: #386C0B;
    --color-complementary: #82FF9E;

    --fs-medium: clamp(.8rem, .8rem, 3rem);
    --border-radius: 0.75rem;
    --font-primary: Lekton;

    --polygon-type: polygon(0% 0%, 100% 0%, 100% 90%, 95% 100%, 0% 100%);
}


h2,
h3,
p,
li,
.close-btn,
figcaption,
.sidebar {
    color: var(--color-primary);
}

body,
.sidebar li a,
nav,
mark,
.volumeRange,
.qrCode:hover {
    background-color: var(--color-secondary);
}


.volumeRange::-webkit-slider-thumb,
.volumeRange::slider-thumb,
.progress-bar {
    background-color: var(--color-primary);
}

footer {
    background-color: var(--color-primary);
}

click-spark,
nav button a,
.animated-btn,
.menu,
.close-btn,
.notification h3,
.notification p,
.chapitreContainer a,
mark,
.progress-bar-container span {
    color: var(--color-primary);
}


.language,
.select,
.presentation p,
.contactClassic p,
.contactClassic,
.title span {
    color: var(--color-secondary);
}

/* border-color: ; */
.notification,
mark,
.volumeRange {
    border: solid 1px var(--color-primary);
}

#cercle {
    border: solid var(--color-primary);
}

.containerCard .card {
    border-top: 1px solid var(--color-primary);
}




#controlsContainer {
    border-bottom: solid 1px var(--color-primary);
}

.conception .type {
    border-top: solid 1px var(--color-primary);
}


.conception .type,
.dateProjet,
.conception .type {
    border-top: solid 1px var(--color-primary);
}



/* Typography */
h2,
h3,
p,
li,
.close-btn,
figcaption {
    font-family: var(--font-primary);
}

h2 {
    font-size: 1.2rem;
}

/* Reset */
body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    overflow-x: hidden;
    transition: transform 0.25s;
    will-change: transform;
}


main {
    padding-top: 6rem;
    padding-bottom: 2rem;
    margin: 0rem 1rem 1rem 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 2rem;
}

/* --------------------- Navbar CSS ---------------------  */

/* Navbar */
#navbar {
    position: fixed
}

.iconeSidebar {
    display: none;
}

.sidebar {
    position: fixed;
    top: -17px;
    right: 0;
    height: 100vh;
    width: 100vw;
    z-index: 999;
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    justify-content: space-evenly;
}

.sidebar li a {
    width: 100%;
    font-size: 2rem;
    padding: 4rem;
    text-decoration: none;

}

.sidebar a {
    width: 100%;
    left: 50%;
}

.iconeSidebar {
    width: 26px;
    height: 26px;
}

.crossSidebar {
    width: 26px;
    height: 26px;
}

.sidebar button a {
    width: 100%;
}


nav {
    width: 100%;
    margin: 0;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

nav button a {
    text-decoration: none;
}


.linkNav {
    display: flex;
    flex-direction: row;
}

.logoNav {
    margin-top: 6px;
}

#navbar {
    transition: top 0.6s ease-in-out;
    z-index: 1;
}

.localisationNav {
    text-align: center;
    align-items: center;
}

.detailLocalisation {
    margin-bottom: -1.5rem;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.coordonneesGeo {
    font-size: 50%;
}

.split-char {
    font-family: var(--font-primary);
}

.animated-btn {
    line-height: 1;
    letter-spacing: 1px 1px 1px 1px;
    background-color: var(--color-black);
    cursor: pointer;
    border: none;
    border-radius: var(--border-radius);
    transition: 2s;

    & .wrapper {
        font-size: var(--fs-medium);
        height: var(--fs-medium);
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }
}


.split-word {
    display: inline-flex;
}

.dropdown {
    min-width: 15em;
    position: relative;
}

.dropdown * {
    box-sizing: border-box;
}

.select {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 0.5em;
    padding: 1em;
    cursor: pointer;
    transition: background 0.3s;
}

.select-clicked {
    border: 2px #FF6421 solid;
}


.caret {
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #fff;
    transition: 0.3s;
}

.caret-rotate {
    transform: rotate(180deg);
}

.menu {
    list-style: none;
    padding: 0.2em 0.5em;
    border-radius: 0.5em;
    position: absolute;
    top: 3em;
    left: 50%;
    width: 100%;
    transform: translateX(-50%);
    opacity: 0;
    display: none;
    transition: 0.2s;
    z-index: 1;
}

.menu li {
    padding: 0.7em 0.5em;
    cursor: pointer;
}


/* Active styles (added later in JavaScript) */
.menu-open {
    display: block;
    opacity: 1;
    gap: 1em;
}

/* notifications */
.notifications {
    position: fixed;
    right: 0;
    top: 50;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    gap: 1em;
    padding: 2em;
    right: 5%;
    width: 100%;
    max-width: 260px;
    z-index: 1000;

}

.notification {
    padding: 1em;
    backdrop-filter: hue-rotate(120deg)blur(8px);
    border-radius: .3rem;
}

.notification,
.notification>div {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1em;
    width: 100%;
}

.notification span {
    font-style: 1.7em;
    backdrop-filter: hue-rotate(120deg);
}

.close-btn {
    cursor: pointer;
}

/* --------------------- Main Css ---------------------  */

.presentationHeader {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: end;

}

.leadProfil {
    display: flex;
    justify-content: center;
}

.profil {
    display: flex;
    justify-content: center;
}

video {
    width: 45vw;
    clip-path: var(--polygon-type);
}

#background-video {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
}

#logoHugoFoisseau {
    width: 45vw;
    height: auto;
}

svg .cross {
    cursor: pointer;
    width: 2rem;
    display: flex;
    justify-content: end;
}

.buttonMore {
    background-color: #fffcf800;
    border: none;
    display: flex;
    justify-content: end;
}


.codeMore {
    margin-top: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.qrCode {
    width: 4rem;
    transition: transform 1s;
}

.qrCode:hover {
    transition: transform 1s;
    -ms-transform: scale(3) translate(20px);
    -webkit-transform: scale(3) translate(20px);
    transform: scale(2) translate(20px);
}

/* ------- modal -------  */
.overlay {
    position: fixed;
    width: 100%;
    height: 100%;
    backdrop-filter: blur(8px);
    display: none;
    z-index: 70;
}

.modal__header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.modal {
    position: fixed;
    background-color: #B1B695;
    box-shadow: rgba(99, 99, 99, 0.2rem) 0px 2px 8px 0px;
    padding: 20px;
    display: none;
    z-index: 900;
}

.modal__footer__button img {
    cursor: pointer;
    width: 20px;
    height: 20px;
}

.modal--open {
    transform: initial;
    display: block;
}

.modal__close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
    transition: 0.3s all ease-in-out;
}

.modal__close svg {
    position: absolute;
    width: 20px;
    height: 20px;
}

.modal__close:hover {
    transform: rotate(360deg);
}

.interlign {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.chapitreContainer {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: left;
    font-family: var(--font-primary);
    font-size: .8rem;
    gap: 1rem;
}

.chapitreContainer a {
    text-decoration: none;
}

.modal__body p {
    color: #fff1eb;

}

.chapitre {
    text-decoration: none;
    cursor: pointer;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    transition: opacity 0.8s ease;
}

#cercle {
    width: 1px;
    height: 1px;
}

/* ------- transition -------  */
.interSection {
    display: flex;
    justify-content: center;
}

#scrollNow {
    fill: #FF6421;
    width: 3rem;
}


/* mouse between main and gallery */
.interSection {
    margin: 4rem;
}

.scroll {
    text-align: center;
}

/* --------------------- interlude ---------------------  */
#interlude {
    margin-top: 7rem;
    margin-bottom: 7rem;
    padding: 0;
    display: flex;
    justify-content: center;
    align-items: center;
}

.interludeFont p {
    line-height: 1.5;
    font-size: 2rem;
}

.interludeFont p:nth-child(1) {
    margin: 1rem 12rem 2rem 2rem;

}

.interludeFont p:nth-child(2) {
    text-align: end;
    margin: 2rem 2rem 1rem 12rem;
}

mark {
    border-radius: .2rem;
}

.guill {
    max-width: 2rem;
    margin: 1rem;
}

.containerGuil {
    width: 100%;
    transform: scaleX(-1);
    filter: FlipH;
    -ms-filter: "FlipH";

}


/* --------------------- gallery ---------------------  */
#annexe {
    margin-bottom: 4rem;
    padding: 0;
}

#techno {
    margin: 7rem 0rem 7rem 0rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#gallery {
    margin: 1rem;

}

#gallery h2,
#techno h2,
#annexe h2 {
    display: flex;
    justify-content: end;
}

.titleSection {
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}

#gallery #h2Detail {
    height: 14px;
}

.containerCard {
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    justify-content: space-around;
}

.containerCard .card {
    padding: .5rem;
    width: 45vw;

}

.card {
    opacity: 0%;
    transform: translateY(-60px);
}

.card-visible {
    opacity: 100%;
    transform: translateY(0);
    transition: .4s ease-in-out;
}

.containerCard .logoCard {
    height: 4rem;
}

.dateCard {
    text-align: end;
}

.titleCard,
.frontCard {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.language {
    background-color: var(--color-primary);
    padding: 12px 12px 12px 12px;
}

.moreAbout {
    display: flex;
    justify-content: end;
}

.fontMoreAbout {
    margin-right: 10px;
    visibility: hidden;
}

.buttonMoreAbout {
    cursor: pointer;
    overflow: hidden;
    transition: 2s;
    color: transparent;
    transition: color 0.3s;
}

#buttonMoreAbout {
    color: #386C0B;
    /* Définissez la couleur souhaitée */
}

ul li img {
    width: 4rem;
}

/* --------------------- section projet ---------------------  */
.frontLog {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}


.topPage {
    padding: 2rem 2rem 2rem 2rem;
    background-position-y: bottom;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

.frontSvg {
    width: 50vw;
    max-height: 40vh;
    margin: 4rem 0rem 4rem 0rem;
}

.maquette div {
    margin: 1rem;
    display: flex;
    flex-wrap: wrap;
}

.drawMaquette {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;

}

.maquetteDetail {
    display: flex;
    flex-direction: column;
}

.maquette img {
    width: 45vw;
}



/* --------------------- scroller techno ---------------------  */
.scroller {
    max-width: 100vw;
}

.scroller__inner {
    padding-block: 1rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.scroller[data-animated="true"] {
    overflow: hidden;

    mask: linear-gradient(90deg, transparent, white 20%, white 80%, transparent);
}

.scroller[data-animated="true"] .scroller__inner {
    width: max-content;
    flex-wrap: nowrap;
    -webkit-animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
    animation: scroll var(--_animation-duration, 40s) var(--_animation-direction, forwards) linear infinite;
}

.scroller[data-direction="right"] {
    --_animation-direction: reverse;
}

.scroller[data-direction="left"] {
    --_animation-direction: forwards;
}

.scroller[data-speed="fast"] {
    --_animation-duration: 20s;
}

.scroller[data-speed="slow"] {
    --_animation-duration: 60s;
}

@keyframes scroll {
    to {
        transform: translate(calc(-50% - 0.5rem));
    }
}

/* Annexe */
.allPlayer {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.syntheseMusic {
    margin: 1rem;
    max-width: 50%;

}

.cardsMusic {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;

}

#controlsContainer {

    width: 90vw;
    padding: .3rem;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
}

.playerController {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.cardsMusic {
    display: flex;
    align-content: center
}

.topCardMusic {
    width: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;

}

#controlsContainer .imgPlayer {
    margin-right: 1rem;
    width: 10rem;
    height: 10rem;
}

.lecteurSource {
    display: flex;
    flex-direction: column;
    justify-content: space-around;
    width: 100%;
}

#annexe .titleAnnexe {
    width: 20vw;
    margin-left: 1rem;
}

.playerSymbole,
.vol {
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
}

#controlsContainer .play,
.pause,
.stop,
.more {
    margin: .3rem;
    width: 1rem;
    /* max-width: 3.5vw; */
}

#controlsContainer .more,
#more {
    transition: transform 1s ease-in-out;
}

#controlsContainer .more:hover,
#more:hover {
    transform: rotate(360deg)translateZ(0);
}

.imgPlayer {
    clip-path: var(--polygon-type);

}

#volumeText {
    opacity: 0.4;
    font-size: 12px;
}

.highOpacity {
    opacity: 1;
}

.lowOpacity {
    opacity: 0.4;
}

figure {
    visibility: hidden;
    width: 0px;
    height: 0px;
}

.volumeRange {
    width: 50px;
    height: 10px;
    -webkit-appearance: none;
    appearance: none;
}

.volumeRange::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 5px;
    height: 15px;
    cursor: pointer;
}

.volumeRange::slider-thumb {
    appearance: none;
    width: 5px;
    height: 15px;
    cursor: pointer;
}

.progress-bar-container {
    width: 100%;
    height: 10px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.progress-bar-container span {
    font-family: var(--font-primary);
    font-size: 12px;
}

.progress-bar {
    width: 60%;
    height: 70%;
}

.topCardMusic {
    position: relative;
    overflow: hidden;
}

/* --------------------- footer ---------------------  */
footer {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    align-items: center;
    justify-items: center;
}

.logoRespon {
    width: 100%;
    grid-column: 1;
    grid-row: 1;
    display: flex;
}

.logoOff {
    width: 7vw;
    margin-left: 1rem;
}

footer img {
    width: 30vw;
    grid-column: 2;
    grid-row: 3;
}

.retournTop {
    grid-column: 3;
    grid-row: 3;
    width: 100%;
    display: flex;
    flex-direction: row-reverse
}

.retournTop svg {
    cursor: pointer;
    width: 6rem;
    margin-right: 1rem;
}

.discutons {
    width: 35vw;
    margin: 1rem;
}

.title {
    position: relative;
    grid-column: 2;
    grid-row: 2;
}

.contactClassic {
    width: 100%;
    margin-right: 1rem;
    grid-column: 3;
    grid-row: 1;
    display: flex;
    flex-direction: column;
    align-items: end;
}

.contactClassic a {
    text-decoration: none;
}

.title span {
    font-size: 150px;
    transition: 0.5s;
    font-weight: 100;
    will-change: transform;
    display: inline-block;
}

.s1 span {
    transform-origin: bottom;
}

.s2 span {
    transform-origin: top;
    transform: translateY(100%) rotateX(-90deg);
}

.s2 {
    position: absolute;
    top: 0;
    left: 0;
}

.title:hover .s1 span {
    transform: translateY(-100%) rotateX(-90deg);
}

.title:hover .s2 span {
    transform: translateY(0%) rotateX(0deg);
}

/* --------------------- Page projet ---------------------  */
/* ----------------------------------------------------------  */
.conception {
    width: 35vw;
}

.conception img {
    width: 100%;
}

.explicationProjet {
    margin-top: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;

}

.conception .type {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    text-align: end;
    align-items: center;
}

ul {
    list-style-type: none;
}

.descriptionProjet {
    width: 40vw;
}


.creatLogo {
    margin: 1rem;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;

}

.creatLogo p {
    width: 42vw;
}

.creatLogo img {
    width: 22vw;
}

.lienGitHub {
    position: fixed;
    width: 4rem;
    cursor: pointer;
    right: 2%;
    bottom: 2%;
    z-index: 1;
}


/* --------------------- MediaQueries ---------------------  */

@media only screen and (max-width: 864px) {
    main {
        display: flex;
        flex-direction: column;
        overflow-x: hidden;
    }

    .syntheseMusic {
        margin: 1rem;
        max-width: none;

    }


    video {
        width: 100vw;
        clip-path: var(--polygon-type);
    }

    .scroll-container {
        justify-content: center;
        backface-visibility: hidden;
        transform-style: preserve-3d;
    }

    .popup .content {
        width: 80vw;
    }

    #logoHugoFoisseau {
        width: 50vw;
    }

    .containerCard {
        flex-wrap: none;
        justify-content: center;

    }

    .containerCard .card {
        width: 90vw;
    }

    .card {
        margin: 1rem;
        padding: .5rem;
        width: 100%;
        max-width: 100vw;
    }

    .topImage {
        width: 100vw;
    }
    
    .qrCode {
        display: none;
        visibility: hidden;
    }

}

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

    /* navbar */
    
    .qrCode {
        display: none;
        visibility: hidden;
    }
    #navbar {
        position: fixed;
        display: flex;
        flex-direction: row-reverse;
        padding: 0px;
        align-items: center;
        justify-content: space-around;
    }

    .animated-btn {
        width: 0px;
        height: 0px;
    }

    .hideOnMobile {
        display: none;
    }

    .interlign .chapitre {
        visibility: hidden;
    }

    .localisationNav {
        visibility: hidden;
        display: none
    }

    .frontSvg {
        margin: 12rem 2rem 12rem 2rem;
    }

    .explicationProjet {
        flex-direction: column;
    }

    .conception,
    .descriptionProjet {
        width: 95vw;
    }

    .creatLogo {
        flex-direction: column-reverse;
    }

    .popup .content img:nth-child(2) {
        width: 12rem;
    }

    .popup .content {
        width: 80vw;
        height: 40vh;
    }

    .pointName {
        width: 20rem;
    }

    footer img {
        margin-top: 4rem;
        width: 45vw;
    }

    .creatLogo p {
        width: 90vw;
    }

    .creatLogo img {
        width: 42vw;
    }


    .cardsMusic {
        display: flex;
        flex-direction: column;
        align-content: center
    }

    #controlsContainer {
        width: 80vw;
        display: flex;
        flex-direction: column;
    }

    #controlsContainer .imgPlayer {
        max-width: 40rem;
        width: 30rem;
        height: auto;
    }

    #controlsContainer .imgPlayer {
        width: 28rem;
        height: 28rem;
    }


    .profil video {
        width: 95vw;
        height: 0rem;
        clip-path: inset(400px 50px);
    }



    #scrollNow {
        margin: 1rem 1rem 1rem 1rem;
    }

    footer {
        display: grid;
        align-items: center;
        grid-template-columns: 1;
        grid-template-rows: repeat(3, 1fr);
    }

    .logoRespon {
        justify-content: center;

    }

    .logoOff {
        width: 60%;
    }

    footer img {
        grid-column: 1/4;
        width: 84vw;
    }

    .contactClassic {
        grid-column: 3;

    }

    .retournTop {
        justify-content: center;
        grid-column: 2;
        grid-row: 2;
        margin-right: 0rem;
    }

    /* interlude */

    .interlude p:nth-child(1),
    .interlude p:nth-child(2) {
        margin: 0;
    }

    .interludeFont p:nth-child(1),
    .interludeFont p:nth-child(2) {

        margin: 1rem;
        text-align: start;
    }

    .interlude {
        margin: 1rem;
    }

    .sidebar {
        width: 100%;
    }


    .iconeSidebar {
        display: flex;
    }

}