:root {
    --violet-color: #252968;
    --beige-color: #ffead1;
}

/* GENERAL SETTINGS */
* {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Nunito', 'Open Sans', sans-serif;
    background-color: #f2f2f2;
}

img {
    max-width: 100%;
}

ul {
    padding-left: 0;
}

li {
    list-style-type: none;
}

a {
    text-decoration: none;
}

a[target="_blank"] {
    cursor: alias;
}

figure {
    margin: 0;
}

/* GRID */

.row {
    display: flex;
    flex-direction: row;
}

.row-inverse {
    flex-direction: row-reverse;
}

.container {
    margin: 80px auto 0;
    max-width: 1100px;
}

main > section {
    margin-bottom: 80px;
}

main p {
    line-height: 24px;
    margin: 0;
}

.anchor {
    display: block;
    height: 80px;
    margin-top: -80px;
    visibility: hidden;
}

.wrap {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 60px 30px;
    justify-content: space-between;
}

.projet {
    width: calc(50% - 30px);
    border-radius: 20px;
    padding: 30px;
    border: solid 3px var(--violet-color);
    box-sizing: border-box;
    background: #fff;
    gap: 20px;
    justify-content: space-between;
    display: flex;
    flex-direction: column;
}

span.bold {
    font-weight: 700;
}

@media screen and (max-width: 1260px) {
    .container {
        margin: 80px 80px 0;
        max-width: 100%;
    }
}

@media screen and (max-width: 1000px) {
    .container {
        margin: 70px 50px 0;
    }

    main > section {
        margin-bottom: 70px;
    }

    main p {
        font-size: 15px;
    }

    .wrap {
        gap: 30px;
    }

    .projet {
        width: calc(50% - 15px);
        padding: 25px;
    }
}

@media screen and (max-width: 900px) {
    .row {
        flex-direction: column-reverse;
    }
}

@media screen and (max-width: 650px) {
    .container {
        margin: 40px 30px 0;
    }

    main > section {
        margin-bottom: 40px;
    }

    main p {
        font-size: 14px;
    }

    .wrap {
        flex-direction: column;
    }

    .projet {
        width: 100%;
        padding: 20px;
    }

    .anchor {
        height: 70px;
        margin-top: -70px;
    }
}


/* TITLES */
h1 {
    font-size: 50px;
    text-transform: uppercase;
    font-family: "Trebuchet MS", Arial, sans-serif;
    z-index: 1;
    color: #fff;
    margin: 0;
    letter-spacing: .04em;
}

h2 {
    font-size: 50px;
    text-transform: uppercase;
    font-family: "Trebuchet MS", Arial, sans-serif;
    z-index: 0;
    color: #fff;
    margin: 0;
    letter-spacing: .04em;
    width: 1100px;
    padding-bottom: 30px;
}

h1 span,
h2 span {
    font-family: 'Pinyon Script', cursive;
    font-size: 70px;
    text-transform: initial;
    display: block;
    position: relative;
    top: 35px;
    color: var(--beige-color);
    z-index: -1;
    letter-spacing: 0;
}

.heading {
    background: var(--violet-color);
    z-index: -1;
    position: relative;
    display: flex;
    justify-content: center;
}

h3 {
    text-transform: uppercase;
    font-size: 30px;
    margin: 0;
}

h4 {
    font-size: 20px;
    margin: 0 0 10px;
}

@media screen and (max-width: 1260px) {
    h2 {
        width: auto;
    }
}

@media screen and (max-width: 650px) {
    h1 {
        font-size: 35px;
    }

    h2 {
        font-size: 35px;
    }

    h1 span,
    h2 span {
        font-size: 50px;
        top: 24px;
    }

    h3 {
        font-size: 20px;
    }
}


/* BUTTONS */
.button {
    background: var(--beige-color);
    color: #000;
    border-radius: 15px;
    padding: 10px 70px;
    font-size: 18px;
    font-weight: 600;
    transition: 0.3s;
}

.button:hover {
    scale: 1.04;
}

.button-reverse {
    background: var(--violet-color);
    color: var(--beige-color);
    padding: 10px 40px;
    font-size: 16px;
    text-align: center;
}

@media screen and (max-width: 1000px) {
    .button-reverse {
        padding: 10px 15px;
    }
}

@media screen and (max-width: 650px) {
    .button {
        padding: 10px 30px;
        font-size: 16px;
    }

    .button:hover {
        scale: 1;
    }

    .button-reverse {
        font-size: 14px;
    }
}

/* HEADER/NAV */
header {
    position: fixed;
    z-index: 1000;
    width: 100%;
}

nav {
    display: flex;
    flex-direction: row;
    max-width: 1100px;
    height: 90px;
    margin: 0 auto;
    padding: 20px 80px;
    justify-content: space-between;
    align-items: center;
    transition: 0.3s;
}

nav img {
    height: 90px;
    transition: 0.3s;
}

.nav-logo a:hover img {
    scale: 1.05;
}

.nav-logo {
    transition: 0.3s;
}

.image-logo-scroll {
    display: none;
}

.header-scroll .image-logo,
#navigation.open .image-logo {
    display: none;
}

.header-scroll .image-logo-scroll,
#navigation.open .image-logo-scroll {
    display: block;
}

nav ul {
    display: flex;
    flex-direction: row;
}

nav ul li {
    padding-right: 35px;
}

nav ul li a {
    position: relative;
}

nav ul li a:after {
    z-index: 2;
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 3px;
    background-color: #fff;
    border-radius: 40px;
    transition: 0.3s;
}

nav ul li a:hover:after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
}

.header-scroll nav ul li a:after,
.header-page nav ul li a:after,
#navigation.open ul li a:after {
    background-color: #000;
}

nav ul li:last-of-type {
    padding-right: 0;
}

nav ul li a {
    color: #fff;
    font-size: 17px;
    transition: 0.5s;
    font-weight: 600;
}

.nav-logo {
    position: relative;
}

@media screen and (min-width: 1000px) {
    nav button {
        display: none;
    }
}

@media screen and (max-width: 1000px) {
    nav {
        padding: 20px 50px;
    }

    nav img {
        height: 80px;
    }

    .nav-logo a:hover img {
        scale: 1;
    }
}

.header-scroll {
    background: #fff;
    box-shadow: 0 1px 6px 2px rgb(0 0 0 / 20%);
}

.header-scroll nav {
    height: 40px;
}

.header-scroll nav img {
    height: 60px;
}

.header-scroll nav ul li a {
    color: #000;
}

#menu-burger {
    display: none;
}

@media screen and (max-width: 650px) {
    nav img {
        height: 70px;
    }

    nav ul li a {
        color: #000;
        font-size: 18px;
    }

    .header-scroll nav img {
        height: 50px;
    }

    .nav-menu {
        display: none;
        height: 0;
        transition: 0.3s;
    }

    #menu-burger {
        display: block;
    }

    #burger {
        width: 25px;
        height: 2px;
        background: #fff;
        display: inline-block;
        position: relative;
        border-radius: 10px;
    }

    #burger::before,
    #burger::after {
        content: '';
        width: 25px;
        height: 2px;
        border-radius: 10px;
        background: #fff;
        display: inline-block;
        position: absolute;
        transform-origin: center;
        transition: all 0.3s ease;
    }

    .header-scroll #burger,
    .header-scroll #burger::before,
    .header-scroll #burger::after {
        background: #000;
    }

    #burger::before {
        top: -8px;
    }

    #burger::after {
        top: 8px;
    }

    #navigation.open #burger {
        background: transparent;
    }

    #navigation.open #burger::before {
        transform: rotate(45deg);
        top: 0;
        background: #000;
    }

    #navigation.open #burger::after {
        transform: rotate(-45deg);
        top: 0;
        background: #000;
    }

    #navigation.open {
        background-color: #fff;
    }

    #navigation.open .nav-menu {
        display: block;
        position: absolute;
        top: 120px;
        left: 0;
        background: #fff;
        border-radius: 0 0 10px 10px;
        width: 100%;
        border-top: solid 2px var(--violet-color);
        padding: 0 30px;
        box-sizing: border-box;
        height: auto;
    }

    .header-scroll #navigation.open .nav-menu {
        top: 70px;
    }

    #navigation.open .nav-menu {
        box-shadow: 0 6px 5px 0 rgb(0 0 0 / 20%);
    }

    #navigation.open .navbar-right {
        flex-direction: column;
        margin: 25px 0;
        gap: 25px;
    }
}


/* SLIDER */
.slider {
    position: relative;
}

.swiper {
    width: 100%;
    height: 100vh;
    z-index: unset;
}

.swiper-button-prev,
.swiper-button-next {
    color: #fff;
    opacity: 0;
    transition: 0.5s;
    background-color: #00000075;
    padding: 10px 20px;
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
    background-color: #000000;
}

.swiper-button-prev:after,
.swiper-button-next:after {
    font-size: 30px;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

.slider:hover .swiper-button-prev,
.slider:hover .swiper-button-next {
    opacity: 1;
}

.swiper-pagination-bullets {
    bottom: 30px !important;
}

.swiper-horizontal > .swiper-pagination-bullets,
.swiper-pagination-bullets.swiper-pagination-horizontal {
    left: unset;
    right: 30px;
    width: auto;
}

.swiper-pagination-bullet {
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
    height: 10px;
    width: 10px;
}

.swiper-pagination-horizontal.swiper-pagination-bullets span:first-child {
    margin-right: 6px;
}

.swiper-pagination-horizontal.swiper-pagination-bullets span:last-child {
    margin-left: 6px;
}

.swiper-pagination-bullet-active {
    background-color: #fff;
}

.swiper .swiper-slide {
    position: relative;
}

.swiper .swiper-slide:before {
    content: "";
    position: absolute;
    background: rgba(0, 0, 0, 0.2);
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.swiper-slide img {
    width: 100%;
    height: 100vh;
    object-fit: cover;
    object-position: center;
}

.slider-container {
    position: absolute;
    bottom: 20%;
    z-index: 1;
    width: 100%;
    display: flex;
    justify-content: center;
}

.slider-text {
    max-width: 600px;
    display: flex;
    flex-direction: column;
    z-index: 20;
}

.slider-text p {
    font-size: 23px;
    color: #fff;
    margin: 10px 0 40px;
}

.slider-text div {
    display: flex;
    gap: 30px;
    justify-content: center;
}

.button .fa-arrow-down,
.button .fa-download,
.button .fa-arrow-up-right-from-square {
    padding-left: 10px;
}

@media screen and (max-width: 1100px) {
    .swiper-button-prev,
    .swiper-button-next {
        opacity: 1;
    }
}

@media screen and (max-width: 650px) {
    .swiper-button-prev,
    .swiper-button-next {
        display: none;
    }

    nav {
        padding: 15px 30px;
    }

    nav ul li {
        padding-right: 0;
    }

    .slider-text p {
        font-size: 18px;
    }
}

@media screen and (max-width: 370px) {
    .slider-text div {
        flex-direction: column;
        gap: 20px;
        align-items: center;
    }
}

.arrows {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: 20px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    font-size: 30px;
}

.arrows svg {
    color: var(--beige-color);
    animation: arrow 2s infinite;
    -webkit-animation: arrow 2s infinite;
}

@keyframes arrow {
    0% {
        opacity: 0
    }
    40% {
        opacity: 1
    }
    80% {
        opacity: 0
    }
    100% {
        opacity: 0
    }
}

@-webkit-keyframes arrow {
    0% {
        opacity: 0
    }
    40% {
        opacity: 1
    }
    80% {
        opacity: 0
    }
    100% {
        opacity: 0
    }
}

.arrows .a1 {
    animation-delay: -1s;
    -webkit-animation-delay: -1s;
    transform: translate(0, 8px);
}

.arrows .a2 {
    animation-delay: -0.5s;
    -webkit-animation-delay: -0.5s;
}

.arrows .a3 {
    animation-delay: 0s;
    -webkit-animation-delay: 0s;
    transform: translate(0, -8px);
}

/* SECTION A PROPOS */
.a-propos .row {
    align-items: center;
    gap: 50px;
}

.a-propos .row > div {
    width: 50%;
}

.a-propos p {
    margin: 0;
}

.a-propos .margin-p {
    margin-bottom: 20px;
}

.a-propos .container {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.about-image {
    text-align: center;
}

.about-image img {
    border-radius: 20px;
}

.about-image figcaption {
    padding-top: 15px;
    color: #000;
    font-style: italic;
    font-size: 14px;
}

@media screen and (max-width: 1000px) {
    .a-propos .container {
        gap: 40px;
    }

    .a-propos .row > div {
        width: 100%;
    }
}

@media screen and (max-width: 650px) {
    .about-image img {
        width: 100%;
    }

    .a-propos .container {
        gap: 30px;
    }

    .a-propos .row {
        gap: 30px;
    }

    .about-image figcaption {
        font-size: 12px;
    }
}

/* SECTION PORTFOLIO */
.projet-web,
.projet-graph {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    margin: 0 0 40px;
}

.projet-web .fa-code-commit,
.projet-graph .fa-palette {
    font-size: 30px;
}

.projet-graph {
    margin-top: 110px;
}

.place,
.year,
.code,
.logiciel {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.fa-location-dot,
.fa-calendar,
.fa-code,
.fa-pen {
    padding-right: 8px;
}

.italic {
    font-style: italic;
    color: #BC0431;
}

.projet img {
    transition: 0.3s;
    border-radius: 20px;
}

.projet img:hover {
    scale: 1.04;
}

.projet.nolink img:hover {
    scale: 1;
}

.projet ul {
    margin: 0;
}

.projet ul li {
    padding-bottom: 5px;
}

.projet .fa-caret-right {
    padding-right: 10px;
}

.container-iframe {
    position: relative;
    overflow: hidden;
    padding-top: 56.25%;
}

iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 20px;
}

@media screen and (max-width: 650px) {
    .projet-graph {
        margin: 80px 0 25px;
    }

    .projet-web {
        margin: 0 0 25px;
    }

    .projet-web .fa-code-commit,
    .projet-graph .fa-palette {
        font-size: 25px;
    }
}

/* SECTION ME CONTACTER */
.contact .container {
    display: flex;
    align-items: center;
    max-width: 900px;
}

.contact-left {
    display: flex;
    flex-direction: column;
    width: 50%;
}

.contact-left a {
    width: fit-content;
}

.mail {
    font-size: 18px;
    margin-bottom: 40px;
    color: var(--violet-color);
    transition: 0.3s;
    font-weight: bold;
}

.mail:hover {
    color: #BC0431;
}

.contact-right {
    width: 50%;
}

.contact-right > div {
    border: solid 3px var(--violet-color);
    border-radius: 20px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 18px;
    background: #fff;
}

.contact-right > div > p {
    margin: 0;
}

.contact-right > div > p > span {
    font-weight: bold;
}

.linkedin {
    width: 60px;
    transition: 0.3s;
}

.linkedin:hover {
    scale: 1.1;
}

@media screen and (max-width: 1150px) {
    .contact .container {
        max-width: 100%;
    }
}

@media screen and (max-width: 1000px) {
    .contact .container {
        flex-direction: column;
        gap: 70px;
    }

    .contact-left {
        width: 100%;
        align-items: center;
    }

    .contact-right {
        width: 80%;
    }
}

@media screen and (max-width: 650px) {
    .contact .container {
        flex-direction: column;
        gap: 45px;
    }

    .contact-right {
        width: 100%;
    }

    .mail {
        font-size: 16px;
    }
}


/* MENTIONS LÉGALES */
.header-page {
    background: #fff;
    box-shadow: 0 1px 6px 2px rgb(0 0 0 / 20%);
}

.header-page nav {
    height: 40px;
}

.header-page nav img {
    height: 60px;
    display: block;
}

.header-page nav ul li a {
    color: #000;
}

.mentions-legales {
    padding-top: 80px;
}

.mentions-legales .heading {
    height: 200px;
}

.mentions-legales h1 {
    padding-top: 6px;
    padding-bottom: 35px;
}

.mentions-legales h2 {
    color: var(--violet-color);
    font-size: 30px;
    text-transform: initial;
    font-family: 'Nunito', sans-serif;
    padding-bottom: 15px;
    padding-top: 30px;
    letter-spacing: unset;
}

.mentions-legales h2:first-child {
    padding-top: 0;
}

.mentions-legales a {
    color: var(--violet-color);
    transition: 0.3s;
    font-weight: bold;
}

.mentions-legales a:hover {
    color: #BC0431;
}

@media screen and (max-width: 650px) {
    .mentions-legales {
        padding-top: 70px;
    }

    .mentions-legales .heading {
        height: 180px;
    }

    .mentions-legales h1 {
        padding-top: 24px;
    }

    .mentions-legales h2 {
        font-size: 25px;
    }

    .header-page nav img {
        height: 50px;
    }

    .header-page #burger,
    .header-page #burger::before,
    .header-page #burger::after {
        background: #000;
    }

    .header-page #navigation.open .nav-menu {
        top: 70px;
    }
}

/* 404 */
.error-404 {
    padding-top: 80px;
}

.error-404 .heading {
    height: 200px;
}

.error-404 h2 {
    color: var(--violet-color);
    font-size: 30px;
    font-family: 'Nunito', sans-serif;
    padding-bottom: 15px;
    padding-top: 30px;
    letter-spacing: unset;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.error-404 .container {
    text-align: center;
}

.error-404 h2:first-child {
    padding-top: 0;
}

.error-404 .button svg {
    padding-right: 10px;
}

/* FOOTER */
footer {
    background-color: var(--violet-color);
    padding: 25px 0;
}

footer .container {
    text-align: center;
    margin: 0 auto;
}

footer p {
    margin: 0;
    color: #fff;
    font-size: 14px;
    display: inline;
}

footer p a {
    color: #fff;
    transition: 0.3s;
}

footer p a:hover {
    color: var(--beige-color);
}

@media screen and (max-width: 650px) {
    footer {
        padding: 20px 0;
    }

    footer p {
        font-size: 12px;
    }
}