/* ----------- Partie Générale ----------- */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', Arial, sans-serif;
    font-weight: 1000;
    font-size: 1.2rem;
}

::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgb(190, 186, 186, 0.3);
}

::-webkit-scrollbar-thumb {
    background: black;
    border-radius: 5px;
    border: solid 2px white;
}

::-webkit-scrollbar-thumb:hover {
    background: #78DBC3;
    border: solid 2px white;
}

.bar {
    display: block;
    width: 25px;
    height: 3px;
    margin: 5px auto;
    border-radius: 15px;
    background-color: black;
    -webkit-transition: all 0.3s ease-in-out;
    transition: all 0.3s ease-in-out;
}

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

    .container-main {
        display: flex;
        flex-direction: column;
    }

    .bloc-noir {
        display: flex;
        width: 100%;
        height: 960px;
        background: black;
        justify-content: center;
        align-items: center;
    }

    .text {
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 500px;
        padding: 100px;
        font-size: 2.16rem;
        font-weight: 600;
    }

    .bloc-vert {
        display: flex;
        width: 100%;
        height: 960px;
        background: #78DBC3;
        justify-content: center;
        align-items: center;
    }

    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 8rem;
    }

    .mrg-btm {
        margin-bottom: 20px;
    }
}

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

    .container {
        padding: 0 2rem;
    }

    .mrg-btm {
        margin-bottom: 20px;
    }

    .text {
        font-size: 1.8rem;
    }

    span.vert {
        color: #78DBC3;
        font-size: 1.8rem;
        font-weight: 600;
    }

}

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

    .text {
        font-size: 1.5rem;
        padding: 50px;
    }

    span.vert {
        color: #78DBC3;
        font-size: 1.5rem;
        font-weight: 600;
    }

    .container {
        display: block;
        padding: 0 1rem;
    }

    .mrg-btm {
        margin-bottom: 20px;
    }

    .rec-proj {
        display: flex;
        height: 400px;
        margin: 2rem 2.5rem;
        background-position: center;
        border-radius: .5rem;
        background-size: auto 100%;
        width: 80%;
        flex-shrink: 1;
        transition: width 300ms ease;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.4);
    }
}

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

    .svg {
        margin: 0.5rem;
        transform: scale(1);
        transition-duration: 300ms;
    }
}

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

    .nom {
        Margin-left: 14%;
    }

    .sous-nom {
        Margin-left: 18%;
    }
}

@media screen and (min-width: 520px) and (max-width: 800px) {

    .container {
        display: flex;
        padding: 0 1rem;
        width: 100%
    }

    .mrg-btm {
        margin-bottom: 20px;
    }
}

.nav-menu {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 60px;
}

.hamburger {
    display: none;
    cursor: pointer;
}

@media(max-width: 800px) {

    .hamburger {
        display: block;
        margin-right: 0;
    }

    .hamburger.active .bar:nth-child(2) {
        opacity: 0;
    }

    .hamburger.active .bar:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }

    .hamburger.active .bar:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        gap: 0;
        flex-direction: column;
        width: 100%;
        text-align: center;
        background-color: #fff;
        transition: 0.3s;
        z-index: 6;
    }

    .nav-item {
        margin: 16px 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .background.active {
        opacity: 0;
        margin-bottom: 200px;
    }

    .PP {
        height: 300px;
        border-radius: 600px;
        border: 10px solid white;
        transition: 0.3s ease;
    }

    .actions>a {
        display: none;
    }

    .li {
        display: none;
    }

    .rotating,
    .fleche {
        display: none;
    }
}

/* ----------- Partie Header ----------- */

.navbar {
    min-height: 70px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
}

.nav-branding {
    font-weight: 700;
    font-size: 1.4rem;
}

ul {
    display: flex;
    align-items: center;
    gap: 80px;
    list-style: none;
}

.actions {
    display: flex;
    align-items: center;
    width: 207px;
}

.btn {
    background: black;
    color: white;
    padding: 0 26px;
    border-radius: 24px;
    height: 40px;
    line-height: 0;
    font-weight: 500;
    font-size: 1.10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid black;
    white-space: nowrap;
}

.btn:hover {
    background-color: white;
    color: black;
    cursor: pointer;
    box-shadow: 0.5px 0.5px 0.5px 0.5px black;
}

ul li a {
    transition: all 0.3s ease-in-out 0s;
    color: black;
}

ul li a:visited {
    color: black;
}

div>a:visited {
    color: white;
}

div:hover>a:visited {
    color: black;
}

ul li a:hover {
    color: #78DBC3;
}

a {
    text-decoration: none;
}

/*
ul>li>a {
    display :block;
    text-decoration:none;
    color:#778899;
    position:relative;
    font-size: 1.000em;
    transition: color 2.5s;
}

ul>li>a:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: -2px;
  left: 0;
  background-color: #78DBC3;
  visibility: hidden;
  -webkit-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

ul>li>a:hover{
    color: #78DBC3;transition: all 0.3s;
}

ul>li>a:hover:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
}*/


/* ----------- Partie Main ----------- */

/* --- Accueil --- */

/*.nom {
    background-color: #78DBC3;
    height: 40px;
    width: 260px;
}*/

@keyframes rotating {
    from {
        -webkit-transform: rotate(0deg);
    }

    to {
        -webkit-transform: rotate(360deg);
    }
}

.head-bg {
    width: 100%;
    background-size: cover;
    z-index: 5;
}

.img-bg {
    position: absolute;
    object-fit: cover;
    max-width: 100%;
    left: 50%;
    height: 100%;
    margin-top: 10px;
    background-size: cover;
    background-repeat: no-repeat;
    z-index: 5;
}

.rotating {
    position: absolute;
    margin-top: 500px;
    margin-left: 100px;
    width: 180px;
    height: 180px;
    transform-origin: 50% 50%;
    animation: rotating 8s linear infinite;
}

.fleche {
    position: absolute;
    margin-top: 560px;
    margin-left: 180px;
}

.nom {
    position: absolute;
    Margin-left: 24%;
    margin-top: 11.8rem;
    letter-spacing: 0.2rem;
    overflow: hidden;
}

.sous-nom {
    display: flex;
    position: absolute;
    Margin-left: 28%;
    margin-top: 16rem;
}

#autotext {
    border-right: 0.15em solid #ff79c6;
    letter-spacing: 0.05em;
    animation: blink 0.75s step-end infinite;
}

@keyframes blink {

    from,
    to {
        border-color: transparent
    }

    50% {
        border-color: #ff79c6;
    }
}

.nom::before {
    position: absolute;
    content: " ";
    top: 1.6rem;
    left: -1rem;
    width: 16.3rem;
    height: 35px;
    background: #78DBC3;
    mix-blend-mode: multiply;
}

.background {
    display: flex;
    height: 450px;
    width: 100%;

}

.about {
    margin-top: 18rem;
}

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

    .nom {
        Margin-left: 14%;
        white-space: nowrap;
    }

    .sous-nom {
        Margin-left: 18%;
    }

    .text {
        text-align: center;
    }
}

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

    .nom {
        Margin-left: 8%;
        white-space: nowrap;
    }

    .sous-nom {
        Margin-left: 12%;
    }
}

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

    .img-bg {
        left: 55%;
    }
}

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

    .nom {
        position: absolute;
        Margin-left: 12%;
        letter-spacing: 0.2rem;
    }

    .sous-nom {
        position: absolute;
        Margin-left: 16%;
    }

    .img-bg {
        left: 50%;
    }
}

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

    .img-bg {
        display: none;
    }

    .nom {
        position: absolute;
        Margin-left: 22%;
        margin-top: 1rem;
        letter-spacing: 0.2rem;
    }

    .sous-nom {
        position: absolute;
        Margin-left: 26%;
        margin-top: 5rem;
    }

    .background {
        height: 100px;
    }

    .about {
        margin-top: 6rem;
    }
}

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

    .nom {
        position: absolute;
        Margin-left: 12%;
        margin-top: 1rem;
        letter-spacing: 0.2rem;
    }

    .sous-nom {
        position: absolute;
        Margin-left: 16%;
        margin-top: 5rem;
    }
}

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

    .nom {
        position: absolute;
        Margin-left: 2%;
        margin-top: 1rem;
        letter-spacing: 0.2rem;
    }

    .sous-nom {
        position: absolute;
        Margin-left: 10%;
        margin-top: 5rem;
    }
}

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

    .nom {
        Margin-left: 0%;
    }
}

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

    .img-bg {
        left: 3%;
    }
}


/* --- About --- */

@media screen and (min-width: 652px) {

    span.vert {
        color: #78DBC3;
        font-size: 2.16rem;
        font-weight: 600;
    }
}

.title {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 1.5rem;
}

.container-main {
    display: flex;
}

@media screen and (min-width: 1230px) {

    .bloc-noir {
        display: flex;
        width: 50%;
        height: 960px;
        background: black;
        justify-content: center;
        align-items: center;
    }

    .text {
        color: white;
        display: flex;
        justify-content: center;
        align-items: center;
        height: 500px;
        padding: 100px;
        font-size: 2.16rem;
        font-weight: 600;
    }

    .bloc-vert {
        display: flex;
        width: 50%;
        height: 960px;
        background: #78DBC3;
        justify-content: center;
        align-items: center;
    }
}

/*.photo {
    display: flex;
    background: white;
    justify-content: center;
    align-items: center;
    height: 500px;
    width: 500px;
    padding: 100px;
    border-radius: 300px;
}

.photo:hover {
    width: 520px;
    height: 520px;
}*/

@media screen and (min-width: 650px) {

    .PP {
        height: 480px;
        border-radius: 600px;
        border: 10px solid white;
        transition: 0.3s ease;
    }
}

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

    .PP:hover {
        display: none;
    }
}

.PP:hover {
    height: 500px;
    border-radius: 600px;
}

.btn-cv {
    display: flex;
    justify-content: center;
    margin-top: -4rem;
    margin-bottom: 4rem;
    color: white;
}

.btn-about {
    background: black;
    color: white;
    white-space: nowrap;
    padding: 0 26px;
    border-radius: 24px;
    height: 40px;
    line-height: 0;
    font-weight: 500;
    font-size: 1.10rem;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 0;
    border: 2px solid white;
}

.btn-about:hover {
    background-color: white;
    color: black;
    border: 2px solid black;
    cursor: pointer;
}


/* --- Projects --- */

@media screen and (min-width: 1230px) {

    .container {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 0 14rem;
    }

    .mrg-btm {
        margin-bottom: 20px;
    }
}

@media screen and (min-width: 520px) {

    .rec-proj {
        display: flex;
        height: 400px;
        margin: 1rem 1.5rem;
        background-position: center;
        border-radius: .5rem;
        background-size: auto 100%;
        width: 33%;
        flex-shrink: 1;
        transition: width 300ms ease;
        cursor: pointer;
        position: relative;
        overflow: hidden;
        box-shadow: 2px 2px 2px 2px rgba(0, 0, 0, 0.4);
    }
}

.rec-proj:before {
    content: '';
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.59) 0%, rgba(0, 0, 0, 0) 30%);
    inset: 0;
    position: absolute;
}

.rec-proj:hover:before {
    content: '';
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.59) 0%, rgba(0, 0, 0, 0) 30%);
    inset: 0;
    position: absolute;
}

.rec-proj:hover {
    width: 66%;
}

.rec-proj:hover>.vertical {
    opacity: 0;
}

.rec-proj:hover>.horizontal {
    opacity: 1;
}

.vertical {
    position: absolute;
    bottom: 2rem;
    left: 2rem;
    width: 20rem;
    transform-origin: left;
    color: white;
    transform: rotate(-90deg);
    font-size: 2rem;
    transition: opacity 200ms ease;
    opacity: 1;
}

.horizontal {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
    font-size: 2rem;
    padding: 0 1rem;
    position: absolute;
    bottom: 2rem;
    width: 100%;
    opacity: 0;
    transition: opacity 200ms ease;
}

/*
.horizontal:before {
    content: '';
    background: rgba(0,0,0,0.5);
    inset: 0;
    position: absolute;
}*/

.topics {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

strong {
    font-size: 2rem;
    font-weight: normal;
    line-height: 1;
}

span {
    font-size: 1rem;
    font-weight: 500;
}

/* --- Contact --- */

.container-footer {
    background-color: black;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.rights {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 100%;
    margin-bottom: 20px;
}

.rights>a {
    font-weight: 500;
}

.rights>h5 {
    text-align: center;
}

.logo-footer {
    width: 100%;
    padding: 4rem 0rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

@media screen and (min-width: 550px) {

    .svg {
        margin: 3rem;
        transform: scale(1);
        transition-duration: 300ms;
    }
}

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

    .svg {
        margin: 0rem;
    }
}

.svg:hover {
    transition-duration: 300ms;
    transform: scale(1.2);
}

.svg:before {
    margin-top: -2rem;
}

.br {
    border-radius: 60px;
}

.behance {
    margin-top: -0.4rem;
}

.footer-jcc {
    display: flex;
    justify-content: center;
    color: white;
}

/*
.footer-name > h5 {
    margin-left: 32%;
}

.footer-name > h5:hover {
    margin-left: 32%;
}
*/
.behance-title {
    margin-top: -0.3rem;
}

.infos {
    display: flex;
    justify-content: center;
    text-align: center;
    gap: 2rem;
}

.infos:last-child {
    margin-top: 1.5rem;
}

.infos_a {
    color: white !important;
}

.gap {
    padding: 2rem 0 4rem;
}