*,
*::before,
*::after {
    box-sizing: border-box;
}


/*title*/

@font-face {
    font-family: 'fantome';
    src: url(fonts/Fantome-Regular.otf) format('opentype'),
        url(fonts/Fantome-Regular.woff) format('woff'),
        url(fonts/Fantome-Regular.woff2) format('woff2');
}


/*sub/text*/

@font-face {
    font-family: 'raylig alt';
    src: url(fonts/RayligAlternatebold-d9dlE.otf) format("opentype");
    font-weight: 700;
}

@font-face {
    font-family: 'raylig alt';
    src: url(fonts/RayligAlternatelight-PKd9x.otf) format("opentype");
    font-weight: 300;
}

@font-face {
    font-family: 'raylig alt';
    src: url(fonts/RayligAlternateregular-L3vKD.otf) format("opentype");
    font-weight: 400;
}

@font-face {
    font-family: 'raylig alt';
    src: url(fonts/RayligAlternatemedium-X3RJj.otf) format("opentype");
    font-weight: 500;
}

@font-face {
    font-family: 'raylig alt';
    src: url(fonts/RayligAlternatesemibold-gxXRP.otf) format("opentype");
    font-weight: 600;
}

@font-face {
    font-family: 'raylig';
    src: url(fonts/RayligBold-owAya.otf) format("opentype");
    font-weight: 700;
}

@font-face {
    font-family: 'raylig';
    src: url(fonts/RayligLight-4BqEx.otf) format("opentype");
    font-weight: 300;
}

@font-face {
    font-family: 'raylig';
    src: url(fonts/RayligMedium-0Wq0R.otf) format("opentype");
    font-weight: 500;
}

@font-face {
    font-family: 'raylig';
    src: url(fonts/RayligRegular-eZPn6.otf) format("opentype");
    font-weight: 400;
}


:root {
    scrollbar-width: none !important
}


html {
    height: 100%;
    margin: 0;
    scroll-behavior: smooth;
    overflow-y: scroll;
    scroll-snap-type: y mandatory;
    -ms-scroll-snap-type: y mandatory;
    -webkit-scroll-snap-type: y mandatory;
    -o-scroll-snap-type: y mandatory;
    -moz-scroll-snap-type: y mandatory;
}

h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6,
p {
    margin: 0;
}

body {
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('img/background/darkbackground.jpg');
    margin: 0;
    padding: 0;
    position: relative;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -moz-overflow-style: none;
    animation: fadeInAnimation ease 3s;
    animation-iteration-count: 1;
    animation-fill-mode: forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

body::-webkit-scrollbar {
    display: none;
    scrollbar-width: none;
}

section {
    scroll-snap-align: start;
    scroll-snap-stop: always;
    -moz-scroll-snap-align: start;
    -moz-scroll-snap-stop: always;
}

:not(header section) {
    position: relative;
}



/*links*/

a {
    font-weight: 800;
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: x-large;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

a:visited {
    text-decoration: none;
    color: rgb(255, 255, 255);
}

a:hover {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.8);
    padding-left: 0.8rem;
}

a:active {
    text-decoration: none;
    color: rgb(255, 255, 255);
}


/*scroll to top button*/

.scrollToTopBtn {
    background-color: rgba(255, 255, 255, 0.342);
    border: none;
    border-radius: 20px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    position: fixed;
    bottom: 4vh;
    right: 2vw;
    z-index: 1000000000;
    opacity: 0;
    transform: translateY(100px);
    transition: all 0.5s ease;
}

.showBtn {
    opacity: 1;
    transform: translateY(0);
}


/*dark/light mode*/

#css-mode {
    position: fixed;
    width: 1.5vw;
    bottom: 4rem;
    left: 4rem;
    cursor: pointer;
    z-index: 80000000000000000000;
    opacity: 0.5;
    transition: all 0.3s ease;
}

#css-mode:hover {
    opacity: 1;
}


/*nav*/

.nav {
    list-style: none;
    position: fixed;
    z-index: 10000000000;
    color: white;
    top: 0;
    bottom: 0;
    right: 2vw;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.nav a {
    transition: all 500ms ease;
}

.nav a:hover {
    transition: none;
    transition: all 500ms ease;
}

.nav ul {
    list-style: none;
}

.nav-btn {
    margin: 10px;
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
    margin: 15px;
}

.nav-btn:hover {
    background-color: white;
    width: 15px;
    height: 15px;
}

.bar {
    position: fixed;
    z-index: 1;
    transition: all 1s;
}

.hide {
    opacity: 0;
    left: -100%;
}

.show {
    opacity: 1;
    left: 0;
}



/*header css*/

header {
    height: 100vh;
    width: 100vw;
    margin: 0;
    min-height: 100%;
    padding: 0;
    position: relative;
    color: white;
}

#videoMessage {
    height: 100%;
    top: 0;
    left: 8vw;
    position: absolute;
    display: flex;
    justify-content: center;
    flex-direction: column;
    letter-spacing: 0.3vw;
    font-weight: lighter;
}

header .title {
    font-size: 12vh;
    font-family: 'fantome', serif;
    text-transform: uppercase;
    background: #FFFFFF;
    background: -webkit-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: -moz-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.start a {
    font-size: 5vh;
    font-family: 'raylig alt';
    font-weight: 700;
    background: #FFFFFF;
    background: -webkit-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: -moz-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.start a:visited {
    -webkit-text-stroke-width: 1.5px;
    -webkit-text-stroke-color: white;
}

.start a:hover {
    -webkit-text-stroke-width: 0px;
    -webkit-text-stroke-color: white;
    color: white;
}

.start a:active {
    -webkit-text-stroke-width: 0px;
    -webkit-text-stroke-color: white;
    color: white;
}

.def {
    font-family: 'Poppins', sans-serif;
    font-size: 2vh;
    text-transform: uppercase;
    font-style: italic;
    font-weight: 500;
    letter-spacing: 0.2rem;
    position: absolute;
    top: 6vh;
    left: 4vw;
    background: #FFFFFF;
    background: -webkit-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: -moz-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.auteur {
    font-size: 2vh;
    position: absolute;
    font-family: 'Poppins', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.4rem;
    top: 6vh;
    right: 4vw;
    background: #FFFFFF;
    background: -webkit-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: -moz-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.butmmi {
    font-size: 2vh;
    position: absolute;
    right: 4vw;
    bottom: 7vh;
    font-family: 'Poppins', sans-serif;
    letter-spacing: 0.4rem;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    background: #FFFFFF;
    background: -webkit-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: -moz-radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    background: radial-gradient(circle farthest-corner at center center, #FFFFFF 0%, #8F8F8F 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

#moon {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

#moon img {
    width: 20vw;
    opacity: 0.7;
}


/*profil*/

#about {
    height: 100vh;
    width: 100vw;
    display: flex;
    justify-content: center;
    color: white;
}

.about {
    margin: auto;
    width: 70vw;
}

.about .propos {
    font-size: 8vh;
    font-family: 'fantome', serif;
    text-transform: uppercase;
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(255, 255, 255, 1);
}

.par-ici {
    font-family: 'raylig alt';
    font-weight: 700;
    color: rgba(255, 255, 255, 0.486);
    letter-spacing: 0.1em;
    font-size: 3vh;

}

.about-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
}

.desc {
    margin-left: 5rem;
    float: right;
    letter-spacing: 0.02em;
}

.wrapper-text {
    font-family: 'Poppins', sans-serif;
    width: 40vw;
    font-size: 1.7vh;

}

#profile-img {
    float: left;
    width: 20vw;
    padding: 0.6rem;
    border-radius: 20vw;
    box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.2);
    -webkit-box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.2);
    -moz-box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.2);
    -ms-box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.2);
    -o-box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.2);
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

@keyframes floating {
    0% {
        transform: translate(0, 0px);
    }

    50% {
        transform: translate(0, 15px);
    }

    100% {
        transform: translate(0, -0px);
    }
}

/*portrait chinois*/

.thematique {
    height: 100vh;
    display: flex;
    justify-content: center;
    margin: auto;
    position: relative;
}

.wrapper-analogie {
    margin: 0;
    top: 0;
    left: 0;
    width: 65vw;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wrapper2 {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
}

.box {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 2.5rem;
    border-radius: 20px;
    float: right;
    position: relative;
    background: rgba(255, 255, 255, 0.27);
    box-shadow: 0 4px 30px rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(6.1px);
    -webkit-backdrop-filter: blur(6.1px);
    -moz-backdrop-filter: blur(6.1px);
    -ms-backdrop-filter: blur(6.1px);
    width: 100%;

}

.box h2 {
    margin-bottom: 3vh;
}

#img-desc {
    float: left;
    margin-right: 4vw;
    width: 50%;
    height: 50vh;
    background-size: cover;
    background-position: center;
    background-clip: content-box;
    padding: 0.6rem;
    border-radius: 20vw;
    box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.5);
    -webkit-box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.5);
    -moz-box-shadow: 0px 0px 30px 8px rgba(0, 0, 0, 0.5);
    animation-name: floating;
    animation-duration: 3s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
    margin-right: 5rem;
}

.element {
    color: rgb(255, 255, 255);
    -webkit-text-stroke-width: 0px;

}

.analogie {
    text-align: center;
    font-size: 3.5vh;
    font-family: 'raylig alt';
    font-weight: 700;
    color: transparent;
    -webkit-text-stroke-width: 1px;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.8);

}

p {
    font-size: 1.8vh;
    font-family: 'Poppins', sans-serif;
}

#page {
    font-family: "Fantome";
    text-transform: uppercase;
    position: absolute;
    z-index: -10000000;
    font-size: 19vh;
    color: rgba(255, 255, 255, 0.116);
    bottom: 19vh;
    right: 13vw;
}



/*formulaire css*/

form {
    display: inline;
    align-items: center;
}

::placeholder {
    color: rgba(0, 0, 0, 0.5);
}

.form {
    display: block;
    text-align: center;
    height: 100vh;
    width: 100vw;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    color: white;
}

.form h2 {
    text-transform: uppercase;
    color: transparent;
    font-family: 'raylig alt';
    font-weight: 700;
    font-size: 5vh;
    -webkit-text-stroke-width: 0.08rem;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.8);
    margin-bottom: 1.5rem;
}

.form .sub {
    font-size: 3vh;
    font-family: 'raylig alt';
    font-weight: 400;
    margin-bottom: 1.3rem;
}

.form span {
    font-size: 2vh;
}

label {
    font-family: 'Poppins', sans-serif;
    font-size: 1.8vh;
}

input {
    font-family: 'Poppins', sans-serif;
    outline: none;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.8em;
    margin: 0.125rem;
    border: 0.2vh solid transparent;
}

input[placeholder] {
    font-size: 1.5vh;
    color: rgb(255, 255, 255);
}

textarea {
    color: rgb(255, 255, 255);
    font-family: 'Poppins', sans-serif;
    outline: none;
    width: 20vw;
    height: 10vh;
    border-radius: 7px;
    background-color: rgba(255, 255, 255, 0.5);
    padding: 0.8em;
    margin: 0.125rem;
    border: 0.125rem solid transparent;
    font-size: 1.5vh;
    scrollbar-width: none;
}

textarea::-webkit-scrollbar {
    display: none;
}


input[type=email]:hover:invalid,
input[type=url]:hover:invalid {
    outline: 2px solid rgba(255, 255, 255, 0.678);
}


/*submit button*/

#buttonsubmit {
    display: flex;
    justify-content: center;
}

.btn {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    width: 12vw;
    height: 6vh;
    line-height: 4vh;
    transition: all 0.3s;
    cursor: pointer;
}

.btn span {
    font-family: 'raylig alt';
    font-weight: 300;
    transition: all 0.3s;
    transform: scale(1, 1);
}

.btn::before,
.btn::after {
    content: '';
    position: absolute;
    transition: all 0.3s;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.animation::before,
.animation::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    bottom: 0;
    left: 0;
    z-index: 1;
    transition: all 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.animation:hover::after {
    animation-name: rotatecw;
    animation-duration: 2s;
}

.animation:hover::before {
    animation-name: rotateccw;
    animation-duration: 3s;
}

.animation:hover::after,
.animation:hover::before {
    left: 4vw;
    width: 4vw;
    animation-iteration-count: infinite;
    animation-timing-function: linear;
}

@keyframes rotatecw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

@keyframes rotateccw {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(-360deg);
    }
}

/*api*/
#message {
    margin-top: 1.2vh;
    font-family: 'Poppins', sans-serif;
    font-size: 1.2vh;
}



#nouvelle-analogie {
    width: 100vw;
}


/*footer css*/

footer {
    color: rgb(255, 255, 255);
    position: absolute;
    width: 100vw;
    background-color: rgba(0, 0, 0, 0.466);
    scroll-snap-align: start;
    scroll-snap-stop: always;
    scroll-behavior: smooth;
}


footer h2 {
    color: transparent;
    font-family: 'raylig alt';
    font-weight: 700;
    font-size: 6vh;
    -webkit-text-stroke-width: 0.07rem;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.8);
    margin-bottom: 3vh;
}

footer h2:hover {
    color: white;
    -webkit-text-stroke-width: 0px;
    outline: none;

}

footer h4 {
    font-family: 'raylig alt';
    font-weight: 700;
    letter-spacing: 0.2em;
}

footer h6 {
    font-family: 'Poppins';
    letter-spacing: 0.1em;
    font-size: 1.4vh;
    text-transform: uppercase;
    color: #ffffff75;
    text-decoration: none;
    display: block;
    outline: none;
    transition: all 500ms ease;
}

footer h6:hover {
    color: #ffffff;
    transition: all 500ms ease;
}

footer span {
    font-size: 4vh;
    font-family: 'raylig alt';
    font-weight: 500;
    text-align: center;
    margin-bottom: 6vh;
}

footer ul {
    list-style: none;
}


.volet-visible {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    overflow: hidden;
    height: 100vh
}

.volet-visible h2:hover {
    color: transparent;
    -webkit-text-stroke-width: 0.07rem;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.8);
}


.volet-invisible {
    padding-top: 2em;
    text-align: center;
    cursor: pointer;
    height: 15vh;
    overflow: hidden;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.volet-invisible h2 {
    color: transparent;
    margin-bottom: 8vh;
}

.volet-invisible h2:hover {
    color: rgba(255, 255, 255, 0.514);
}

.row {
    display: flex;
    flex-wrap: nowrap;
    margin-bottom: 5vh;
}


.footer-col {
    min-width: 13vw;
}

.footer-col h4 {
    font-size: 2.5vh;
    color: transparent;
    -webkit-text-stroke-width: 0.05rem;
    -webkit-text-stroke-color: rgba(255, 255, 255, 0.8);
    letter-spacing: 0.125rem;
    text-transform: uppercase;
    margin-bottom: 2.18rem;
    position: relative;
    text-align: center;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    bottom: -0.625rem;
    background-color: rgba(255, 255, 255, 0.2);
    height: 0.125rem;
    box-sizing: border-box;
    width: 3.125rem;
}

.footer-col ul li:not(:last-child) {
    margin-bottom: 0.625rem;
}

.footer-col ul li a {
    font-family: 'Poppins';
    font-size: 1.8vh;
    text-transform: capitalize;
    color: #ffffff73;
    text-decoration: none;
    font-weight: 800;
    display: block;
    outline: none;
}

.footer-col ul li a:hover {
    color: white;
}

/*responsive*/
@media(max-width: 40vw) {
    .footer-col {
        width: 50%;
        margin-bottom: 1.875rem;
    }
}

@media(max-width: 30vw) {
    .footer-col {
        width: 100%;
    }
}



/*pop up*/

#popup1 {
    display: flex;
    flex-direction: column;
    z-index: 80000000000000000;
}

#popup2 {
    display: flex;
    flex-direction: column;
    z-index: 80000000000000000;
}

#popup3 {
    display: flex;
    flex-direction: column;
    z-index: 80000000000000000;
}


.overlay {
    display: flex;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.658);
    transition: opacity 500ms;
    visibility: hidden;
    opacity: 0;
    z-index: 80000000000000000;
    transition: all 500ms ease;
}

.overlay:target {
    visibility: visible;
    opacity: 1;
    transition: all 500ms ease;

}

.popup {
    padding: 2rem;
    background: rgba(0, 0, 0, 0.74);
    border-radius: 20px;
    width: 40vw;
    position: relative;
    overflow: auto;
}

.popup p {
    font-size: 1.5vh;
}

.popup ul {
    margin: 1.5rem 0 1.5rem 0;
}

.popup h4 {
    text-align: left;
}

.close {
    position: absolute;
    top: 20px;
    right: 30px;
    transition: all 200ms;
    font-size: 30px;
    font-weight: bold;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.5);
    z-index: 80000000000;
}

.close:hover {
    color: #000000;
}

@media screen and (max-width: 700px) {
    #credits {
        width: 70%;
    }

    .popup {
        width: 70%;
    }
}