/****************************** Propriétés Globales ******************************/

html {
    font-size: 100%;
    scroll-behavior: smooth;
}

a {
    color: #FFFFFF;
    text-decoration: none;
    cursor: url("../images/voir.png") 16 16, auto;
}

html::-webkit-scrollbar {
    width: 0.375rem;
}

html::-webkit-scrollbar-track {
    background-color: #121212;
}

html::-webkit-scrollbar-thumb {
    background-color: #FFFFFF;
    border-radius: 0.625rem;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background-color: #121212;
    color: #FFFFFF;
    font-family: "Montserrat";
    
    cursor: url("../images/curseur.png") 16 16, auto;
}

    header {
        cursor: url("../images/curseur.png") 16 16, auto;
        display: flex;
        justify-content: space-between;
        position: fixed;
        width: 100%;
        height: 60px;
        padding-right: 70px;
        background: #000000;
        z-index: 3;
        padding-bottom: 10px;
    }

    body {
        margin: 0;
    }

    .lien-logo {
        display: contents;
    }

    .logo {
        width: 5em;
        position: fixed;
        z-index: 4;
        margin: 15px 0 0 30px
    }

    ul {
        display: flex;
        flex-direction: row;
        gap: 70px;
        align-items: center;
    }

    li {
        list-style-type: none;
    }

    ul li a {
        font-size: 15px;
        transition: opacity 0.3s;
        font-weight: bold;
        opacity: 0.7;
    }

    ul li a:hover {
        opacity: 1;
    }

    .section-accueil {
        width: 99vw;
        justify-content: center;
    }

    h2 {
        font-size: 42px;
    }

    h3 {
        font-size: 40px;
        font-weight: bold;
        margin: 30px 0 30px 0;
    }
    
    img {
        border-radius: 7px;
    }

    .btn-cv {
        position: relative;
        transition: all 0.4s ease;
        text-decoration: none;
    }

    .btn-cv::before {
        content: "";
        position: absolute;
        top: -1.1rem;
        left: -1.1rem;
        display: block;
        border-radius: 1.75rem;
        border: 0.188rem solid #FBE384;
        width: 3rem;
        height: 3rem;
        transition: all 0.5s ease;
        filter: none;
    }

    .btn-cv:hover::before {
        width: 121%;
        filter: drop-shadow(0 0 0.313rem #FBE384);
    }

    .btn-cv:hover span {
        background-color: transparent;
    }

    .btn-cv:hover svg {
        transform: translateX(0);
        transition-delay: 0.2s;
        transition-property: transform;
    }

    .btn-cv span:hover {
        background-color: transparent;
    }

    .btn-cv span {
        line-height: 1.125rem;
        vertical-align: middle;
        font-family: "Nunito Sans";
        text-decoration: none;
        color: #FFFFFF;
        position: relative;
        font-size: 1.063rem;
        font-weight: bold;
        background-color: #121212;
        border-radius: 1.25rem;
        padding: 0.313rem 0;
    }

    .btn-cv:active {
        transform: scale(0.96);
    }

    .btn-cv svg {
        position: relative;
        top: 0.125rem;
        margin-left: 0.938rem;
        fill: none;
        stroke-linecap: round;
        stroke-linejoin: round;
        stroke: #FFFFFF;
        stroke-width: 2;
        transform: translateX(-0.313rem);
        transition: all 0.3s ease;
        background-color: transparent;
    }

    .div-btn-cv {
        margin-top: 3.125rem;
    }


    .voir {
        font-size: 1.125rem;
        color: #FFFFFF;
        text-decoration: none;
        padding: 0.313rem 0.938rem 0.313rem 0.938rem;
        border-radius: 0.625rem;
        width: fit-content;
        transition: all 0.3s;
    }

    .voir:hover {
        background-color: #FFFFFF;
        color: #000000;
        transition: all 0.3s;
    }
    
    a.img-link {
        width: 47%;
    }
    
    .img-overflow {
        overflow: hidden;
    }
    .img-overflow img:hover {
        transform: scale(1.05);
    }

    .oops {
        height: 50%;
        width: 100%;
        margin-top: 1em;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .oops img {
        height: 45vh;
        padding-left: 4em;
    }
    
    .nomai {
        color: #b5b5ff;
        text-shadow: 2px 2px 40px #8071f9;
    }
    
    section.redirect {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin: 50px;
    }
    
    .redirect p:first-child {
    font-weight: 750;
    font-size: 4em;
    }
    

    .redirect p:nth-child(2) {
        font-weight: 500;
        font-size: 1.8em;
        margin-top: 0;
        text-align: center;
    }
    
    .redirect p:nth-child(3) {
    font-weight: 250;
    font-size: 1.1em;
    }

    .contact {
        display: flex;
        flex-direction: row;
        justify-content: space-evenly;
        align-items: center;
    }

    .lien-icone-contact {
        width: 60px;
        display: flex;
    }

    .icone-contact {
        padding: 0.25rem;
        width: 100%;
        border: solid 0.188rem #FBE384;
        filter: drop-shadow(0 0 0.313rem #FBE384);
        border-radius: 0.625rem;
    }

    .icone-contact {
        filter: none;
        transition: filter 0.3s;
    }

    .icone-contact:hover {
        filter: drop-shadow(0 0 0.313rem #FBE384);
        transition: filter 0.3s;
    }

    .contact .div-btn-cv {
        margin-top: 0;
    }

    footer {
        display: flex;
        flex-direction: column;
        justify-content: center;
    }

     .switch {
      position: relative;
      width: 60px;
      height: 30px;
      background: #e0e0e0;
      border-radius: 20px;
      cursor: pointer;
      display: none; /*flex (langue)*/
      align-items: center;
      justify-content: space-between;
      padding: 0 9px;
      box-shadow: inset 0 0 5px rgba(0,0,0,0.1);
      transition: background 0.3s;
    }
    
    /* Tablette portrait */
@media (max-width: 768px) {
    .container {
        width: 90vw;
        padding: 1.5rem;
    }
}

/* Mobile portrait */
@media (max-width: 480px) {
    .container {
        width: 95vw;
        padding: 1rem;
    }
    
    section.redirect{
        margin: 10px;
        margin-top: 0;
        text-align: center;
    }
    
    .oops{
        flex-direction: column;
        
    }
    
    .oops img {
        max-width: 75%;
        height: auto;
        padding: 0;
    }
    
    .redirect p:first-child {
        font-size: 3em;
        margin: 0;
        margin-top: 0.5em;
    }
    
    .redirect p:nth-child(3) {
        margin-left: 0.5em;
        margin-right: 0.5em; 
        font-weight: 250;
        font-size: 0.8em;
    }
    
    .nomai{
        margin-left: 1em;
        margin-right: 1em;
    }
    
    .lien-icone-contact {
        width: 40px;
    }
    
    .btn-cv::before {
        width: 2rem;
        height: 2rem;
    }
    
    .btn-cv::before {
        top: -0.5rem;
        left: -1rem;
    }
    
    *.btn-cv span {
        font-size: 0.8em;
    }
    
    footer{
        margin-top: 20px;
    }
}