@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;
    transition: 0.5s;
}

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;
}

/* RESPONSIVE NAVBAR */
@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;
    }
  
    #navbarcontainer {
        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;
  }
  }

/* SECTION À PROPOS */

#container {
    display: flex;
    flex-direction: column;
    gap: 1.25em;
    margin: 65px;
    height: auto;
    border-radius: 1em;
}

.row-top {
    display: flex;
    gap: 1.25em;
    flex: 3;
}

.large-box {
    flex: 1.5;
    border-radius: 1em;
}

.large-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1em;
    border: 0.5px solid #000;
}

.small-boxes {
    flex: 2;
    display: flex;
    flex-direction: column;
    gap: 1.25em;
}

.col-box {
    border-radius: 1em;
}

.col-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1em;
    border: 0.5px solid #000;
}

.three-boxes {
    display: flex;
    justify-content: space-between;
    gap: 1.25em;
}

.three-boxes .col-box {
    flex: 1;
    border-radius: 1em;
}

.three-boxes .col-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1em;
    border: 0.5px solid #000;
}

.row-bottom {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25em;
}

.box {
    border-radius: 1em;
}

.box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 1em;
    border: 0.5px solid #000;
}

.large-box {
    transition: 0.3s ease-in-out;
}

.large-box:hover {
    transform: scale(1.02);
}

.col-box {
    transition: 0.3s ease-in-out;
}

.box {
    transition: 0.3s ease-in-out;
}

.col-box:hover {
    transform: scale(1.02);
}

.box:hover {
    transform: scale(1.02);
}

/* RESPONSIVE CONTENU */
@media (max-width: 768px) {
    #container {
        width: 100%;
        padding: 1em;
        margin: 0;
        margin-top: 44px;
    }

    .row-top {
        flex-direction: column;
        gap: 1em;
    }

    .large-box,
    .small-boxes {
        flex: 1;
    }

    .three-boxes {
        display: block;
    }

    .three-boxes .col-box {
        margin-bottom: 1em;
    }

    .row-bottom {
        grid-template-columns: 1fr;
        gap: 1em;
    }

    .box {
        margin-bottom: 1em;
    }

    .col-box,
    .box {
        transition: none;
    }

    .col-box:hover,
    .box:hover {
        transform: none;
    }

    .large-box {
        transition: none;
    }

    .large-box:hover {
        transform: none;
    }
}

/* 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;
    }
}

/* MODE SOMBRE CHANGEMENT D'IMAGE */
img[alt="Image-2"] {
    content: url('./assets/propos/section-1-introduction.png');
}

img[alt="Image-3"] {
    content: url('./assets/propos/section-1-contact.png');
}

img[alt="Image-5"] {
    content: url('./assets/propos/section-2-experiences.png');
}

img[alt="Image-6"] {
    content: url('./assets/propos/section-2-competence.png');
}

img[alt="Image-7"] {
    content: url('./assets/propos/section-2-formation.png');
}

body.active img[alt="Image-2"] {
    content: url('./assets/propos/section-1-introduction-dark.png');
    border: 0.5px solid #ffffff;
}

body.active img[alt="Image-3"] {
    content: url('./assets/propos/section-1-contact-dark.png');
    border: 0.5px solid #ffffff;
}

body.active img[alt="Image-4-2"] {
    border: 0.5px solid #ffffff;
}

body.active img[alt="Image-5"] {
    content: url('./assets/propos/section-2-experiences-dark.png');
    border: 0.5px solid #ffffff;
}

body.active img[alt="Image-6"] {
    content: url('./assets/propos/section-2-competence-dark.png');
    border: 0.5px solid #ffffff;
}

body.active img[alt="Image-7"] {
    content: url('./assets/propos/section-2-formation-dark.png');
    border: 0.5px solid #ffffff;
}

/* RESPONSIVE CHANGEMENT D'IMAGE */

@media (max-width: 768px) {
    img[alt="Image-1"] {
        content: url('./assets/propos/section-1-image-responsive.png');
    }

    img[alt="Image-2"] {
        content: url('./assets/propos/section-1-introduction-responsive.png');
    }

    body.active img[alt="Image-2"] {
        content: url('./assets/propos/section-1-introduction-responsive-dark.png');
        border: 0.5px solid #ffffff;
    }

    img[alt="Image-3"] {
        content: url('./assets/propos/section-1-contact-responsive.png');
    }

    body.active img[alt="Image-3"] {
        content: url('./assets/propos/section-1-contact-responsive-dark.png');
    }

    img[alt="Image-4-1"] {
        content: url('./assets/propos/section-1-instagram-responsive.png');
    }

    img[alt="Image-4-2"] {
        content: url('./assets/propos/section-1-behance-responsive.png');
    }

    img[alt="Image-4-3"] {
        content: url('./assets/propos/section-1-mail-responsive.png');
    }

    body.active img[alt="Image-4-3"] {
        content: url('./assets/propos/section-1-mail-responsive-dark.png');
        border: 0.5px solid #ffffff;
    }

    .three-boxes .col-box img {
        border: 0.5px solid #00000000;
    }

    .large-box img {
        border: 0.5px solid #00000000;
    }

    .col-box img {
        border: 0.5px solid #00000000;
    }

    .box img {
        border: 1px solid #000000;
    }

}
