@font-face {
    font-family: 'MyCustomFont';
    src: url('./assets/fonts/SF-Pro.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MyCustomFont';
    src: url('./assets/fonts/SF-Pro.ttf') format('truetype');
    font-weight: 510;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MyCustomFont';
    src: url('./assets/fonts/SF-Pro.ttf') format('truetype');
    font-weight: 590;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'MyCustomFont';
    src: url('./assets/fonts/SF-Pro.ttf') format('truetype');
    font-weight: 274;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'FontAmour';
    src: url('./assets/fonts/Font_loulou-Regular.ttf') format('truetype');
    font-style: normal;
    font-display: swap;
}

:root {
    --main-font: 'MyCustomFont', sans-serif;
    --secondary-font: 'FontAmour', sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body.loading {
    visibility: hidden;
  }
  
  body.loaded {
    visibility: visible;
    transition: visibility 0s;
  }
  
body {
    font-family: var(--main-font);
    line-height: 1.6;
    background-color: #ffffff;
    color: #000000;

    display: block;
    letter-spacing: normal;
    transition: 0.5s;
}

header {
    padding: 2rem;
    text-align: center;
    width: 1340px;
    height: 113px;
}

html,
body {
    scroll-behavior: smooth;
}

body.active {
    background-color: #000000;
    color: #fff;
}

/* BOUTON NUIT/JOUR */
#changeur {
    position: absolute;
    top: 6%;
    left: 92%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 30px;
    background-color: #f9f9f9;
    border-radius: 500px;
    box-shadow: inset 1px 1px 10px 0px #00000028;
    transition: 0.5s;
}

.cercle {
    position: absolute;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    transform: scale(0.9);
    background: linear-gradient(to bottom, #fff, #ecebeb);
    border-radius: 50%;
    box-shadow: 1px 1px 5px 1px #0000003f,
    inset 0.5px 0.5px 2px #0000003f;
    transition: 0.5s;
}

#changeur.active .cercle {
    left: 30px;
    background: linear-gradient(to bottom, #464545, #2d2c2c);
    box-shadow: 1px 1px 5px 1px #0000003f,
    inset 0.5px 0.5px 2px #0000003f;
}

#changeur.active {
    background-color: #323030;
    box-shadow: inset 1px 1px 10px 0px #000000;
}

@media (max-width: 768px) {
    #changeur {
        margin-top: 220px;
        left: 50%;
    }
}

/* NAVBAR */

#navbarcontainer {
    width: 100%;
    max-width: 660px;
    padding: 10px;
    margin: 10px auto 50px;
}

.navbar {
    background-color: #ffffff00;
    border: 0.5px solid #000000;
    color: #000000;
    padding: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 30px;
}

.nav-left a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-weight: 510;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav-links li a {
    color: #000000;
    text-decoration: none;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.nav-links li a.active {
    background-color: #0836FF;
    color: #ffffff;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
}

.nav-links li a.contact {
    border: 0.5px solid #000000;
    color: #000000;
    font-weight: 400;
    padding: 10px 20px;
    border-radius: 25px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

#navbarcontainer.active .navbar {
    border: 0.5px solid #ffffff;
    color: #ffffff;
}

#navbarcontainer.active .nav-left a{
    color: #ffffff;
}

#navbarcontainer.active .nav-links li a {
    color: #ffffff;
}

#navbarcontainer.active li a.contact {
    border: 0.5px solid #ffffff;
    color: #ffffff;
}


/* RESPONSIVE NAVBAR */
@media (max-width: 768px) {
    .navbar {
        margin-top: 20px;
        flex-direction: column;
        align-items: center;
        text-align: center;
        border: 0.5px solid #00000000;
    }

    #navbar-container {
        margin: 10px auto 10px;
    }

    .nav-links li a {
        color: #000000;
        text-decoration: none;
        font-size: 15px;
        font-style: normal;
        font-weight: 400;
        line-height: normal;
    }

    .nav-left {
        margin-bottom: 10px;
    }

    .nav-links {
        flex-direction: column;
        gap: 20px;
        background-color: #ffffff00;
        border: 0.5px solid #000000;
        color: #000000;
        padding: 15px 10px;
        border-radius: 30px;
    }

    #navbarcontainer.active .navbar {
        border: 1px solid #ffffff00;
    }

    #navbarcontainer.active .nav-links {
        border: 0.5px solid #ffffff;
    }
}


/* IMAGE LANDING */
.image-container {
    margin: 15px auto;
    padding: 0;
    width: 100%;
    max-width: 1340px;
    height: 406px;
    border-radius: 16px;
    display: flex;
    justify-content: center;
    position: relative;
}

.image-container img {
    width: 98%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: opacity 0.3s ease;
}

.image-hover {
    position: absolute;
    opacity: 0;
    z-index: 1;
    transition: opacity 0.3s ease;
}

.image-container:hover .image-hover {
    opacity: 1;
}

.image-container:hover .image-index {
    opacity: 0;
}

/* RESPONSIVE IMAGE */
@media (max-width: 768px) {
    .image-container {
        padding: 0 4%;
    }

    .image-container:hover .image-hover {
        opacity: 0;
    }

    .image-container:hover .image-index {
        opacity: 1;
    }

    .image-container img {
        content: url('./assets/image-index/image-index-mobile.png');
    }
}


/* GRILLE PROJETS */

.image-portfolio {
    display: flex;
    padding: 0;
    width: 100%;
    max-width: 1340px;
    flex-shrink: 0;
    margin: 0 auto;
    border-radius: 16px;
    height: 1410px;
}

.image-portfolio a {
    text-decoration: none;
}

:root {
    --card_width: 443px;
    --card_border_radius: 16px;
    --row_increment: 10px;
    --card_small: 35;
    --card_medium: 50;
    --card_large: 60;
}

#pincontainer {
    position: relative;
    top: 0;
    margin-top: 20px;
    width: 1340px;
    height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, var(--card_width));
    grid-auto-rows: var(--row_increment);
    justify-content: center;
}

.card {
    padding: 0px;
    margin: 15px 10px;
    border-radius: var(--card_border_radius);
    background-color: #203ec500;
    margin-bottom: 55px;
}

.card img {
    display: block;
    width: 100%;
    height: 100%;
    filter: grayscale(100%);
    transition: filter 0.3s;
    transition: 0.3s ease-in-out;
    border-radius: 16px;
}

.card:hover img {
    filter: grayscale(0%);
    transform: scale(1.02);
}

.card_small {
    grid-row-end: span var(--card_small);
}

.card_medium {
    grid-row-end: span var(--card_medium);
}

.card_large {
    grid-row-end: span var(--card_large);
}

.card-title {
    margin-top: 15px;
    color: #000000;
    font-size: 15px;
    font-weight: 590;
}

#pincontainer.active .card-title {
    color: rgb(255, 255, 255);
}

@media only screen and (max-width: 768px) {
    .image-portfolio {
        max-width: 100%;
        padding: 20px 10px;
        height: 3510px;
    }

    .image-gallery .image-container img {
        margin-top: 10px;
    }

    #pincontainer {
        width: 100%;
        grid-template-columns: 1fr;
        justify-content: center;
    }

    .card {
        margin: 5px auto;
        width: 100%;
        max-width: 97%;
    }

    .card img {
        height: auto;
        width: 100%;
        filter: grayscale(0%);
    }

    .card-title {
        font-size: 14px;
    }

    :root {
        --row_increment: 9.3px;
    }

    .card img {
        transition: none;
    }

    .card:hover img {
        transform: none;
    }

    .card_small,
    .card_medium,
    .card_large {
        height: 40px;
    }
}

/* POP UP CONTACT */

#popup {
    display: none;
  }
  

.popup-container {
    display: flex;
    position: fixed;
    z-index: 10;
    width: 100%;
    height: 100%;
    top: 0;
    background-color: rgba(0, 0, 0, 0.312);
    justify-content: center;
    align-items: center;
}

.popup-content {
    background-color: rgba(255, 255, 255, 0.15);
    border: 2px solid #ffffff10;
    backdrop-filter: blur(15px);
    padding: 30px;
    border-radius: 16px;
    width: 400px;
    text-align: center;
    position: absolute;
    z-index: 2;
}

.popup-content img {
    width: 100%;
}

.close {
    position: absolute;
    top: 8px;
    right: 8px;
    cursor: pointer;
}

.bouton-cv {
    border: 1px solid #ffffff;
    line-height: 2.5;
    padding: 0px 50px;
    margin-top: 20px;
    font-size: 0.8750rem;
    text-align: center;
    color: #fff;
    border-radius: 20px;
    background-color: rgba(255, 255, 255, 0.15);
}

.bouton-cv:hover {
    box-shadow:
        inset -2px -2px 3px rgba(222, 222, 222, 0.6),
        inset 2px 2px 3px rgba(90, 90, 90, 0.6);
}

.logo-contact {
    left: 0;
    display: flex;
    justify-items: center;
    flex-direction: column;
}

.logo-behance-contact {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 30px;
}

.logo-instagram-contact {
   display: flex;
   justify-content: flex-start;
}

.logo-mail-contact {
  display: flex;
  justify-content: flex-end;
  margin-top: 30px;
}

.logo-contact a {
    width: 25%;
}

.logo-contact img {
    width: 100%;
}


/* Responsive - Popup Contact */
@media (max-width: 768px) {
    .popup-container {
        display: flex;
        flex-direction: column;
    }

    .popup-content {
        width: 85%;
        padding: 15px;
    }

    .logo-contact {
        display: flex;
        flex-direction: row;
        margin-top: 420px;
    }

    .logo-behance-contact,
    .logo-instagram-contact,
    .logo-mail-contact {
        margin: 10px;
    }

    .logo-behance-contact {
        display: flex;
        justify-content: end;
    }
    
    .logo-instagram-contact {
       display: flex;
       justify-content: center;
    }
    
    .logo-mail-contact {
      display: flex;
      justify-content: start;
    }

    .logo-contact a {
        width: 50%;
    }

    img[alt="image-behance"] {
        content: url('./assets/pop-up-contact/contact-behance-responsive.png');
      }
      img[alt="image-instagram"] {
        content: url('./assets/pop-up-contact/contact-instagram-responsive.png');
      }
      img[alt="image-mail"] {
        content: url('./assets/pop-up-contact/contact-mai-responsive.png');
      }
}


/* FOOTER */

footer {
    width: 100%;
    padding: 20px 0;
    background-color: #ffffff;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 30px;
}

.footer-text {
    font-size: 15px;
    font-style: normal;
    font-weight: 274;
}

.text-amour {
    font-family: var(--secondary-font);
    font-size: 18px;
    line-height: normal;
}

footer.active {
    background-color: #000000;
}

/* RESPONSIVE FOOTER */
@media (max-width: 768px) {
    footer {
        padding: 20px 100px;
    }

    .footer-text {
        font-size: 14px;
    }

    .text-amour {
        font-size: 17px;
        padding-top: 10px;
    }
}