@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,400;0,600;0,700;0,800;0,900;1,700;1,800;1,900&display=swap');

:root{
    --c-purple: #826888;
    --c-blue: #42a2a2;
    --c-red: #eb5757;
    --c-yellow: #f9b550;
    --c-brighter: #2e3f48;
    --c-dark: #182930;
    --c-dark-changed: #182930;

    --font-color: #182930;

    --white: #ffffff;

    --nav-height: 120px;
    --nav-under: 60px;
    --nav-tot: 180px;
}

* {
    margin: 0;
    scroll-behavior: smooth;
    font-family: 'Montserrat', sans-serif;
    text-decoration: none;
    transition: all .3s;
}
html{
    /* scroll-padding-top:var(--nav-tot); */
    background-color: var(--white);
    overflow-x: hidden;
}
body{
    overflow: auto
}

/* Region générale */
.shadowed{
    -webkit-box-shadow: 5px 5px 15px 5px var(--c-dark-changed); 
    box-shadow: 5px 5px 15px 5px var(--c-dark-changed);
}
.dark-mode{
    position: absolute;
    right: 0px;
    bottom: 5px;
    width:40px;
    padding: 4px 8px;

    display:flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 1000px;
    border: 1px solid var(--c-brighter);

    background-color: white;
}
.dark-mode-icone{
    color: var(--c-dark);
    transition: all .3s;
    cursor: pointer;
}
.dark-mode-switcher{
    position: absolute;
    height: 18px;
    aspect-ratio: 1/1;
    border-radius: 1000px;
    translate: 22px; /* -4 */
    transition: all .3s;
    border: 1px ridge var(--c-dark);
}

/* Region nav-bar */
.nav-bar{
    width: 100%;
    height: var(--nav-tot);
    position: fixed;
    z-index: 1;
    top: 0;
    transition: all .3s;
    background-color: var(--white);

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}
.nav-bar-inn{
    width: 60%;
    height: var(--nav-height);
    position: relative;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;

    /* border: 1px dashed red */
}
.nav-bar-inner{
    height: calc(100% - 20px);
    transition: all .3s;
    color: var(--font-color);

    display: flex;
    justify-content: center;
    align-items: flex-end;

    font-size: 32px;
    padding-top: 20px;
}
.nav-bar-under{
    height: var(--nav-under);
    justify-content: flex-end;
    align-items: flex-end;
    gap: 15px;
    color: var(--font-color)
}
.nav-bar-under a{
    color: var(--font-color)
}
.nav-bar-inner-logo{
    width: 60px;
    height: auto;
    padding: 55px 25px 0 0;
}
.subtitle{
    cursor: pointer;
    border-bottom: 1px solid var(--font-color)
}


/* Region body */
.bod{
    width: 100%;
    margin-top: var(--nav-tot);
    margin-bottom: 30px;
    background-color: var(--white);

    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.container-g{
    width: 100vw;
    height: 100vh;
    overflow: hidden;

    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;

    background-color: var(--c-brighter)
}

.container-g-inner{
    width: 60%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-content: flex-start;
    gap: 8%;
    padding-top: 45px;
}

.presentation-g{
    width: 100%;
    height: 150px;

    color: var(--font-color);
}
.vignette{
    width: 28%;
    aspect-ratio: 1/1;

    position: relative;

    background-repeat: no-repeat;
    background-position: center;;
    background-size: 160%;
    transition: all .3s;
    cursor: pointer;
    overflow: hidden;
}
.vignette:hover .vignette-hover{
    top:0;
    background-color: var(--c-brighter);
    color: var(--white);
}
.vignette-hover{
    position: absolute;
    width: 80%;
    height: 80%;
    top: 100%;
    
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    overflow: auto;

    transition: all .2s;
    margin: 5% 5%;
    padding: 5% 5%;
}
.vignette-hover h3{
    height: 25%;
    text-align: end;
    font-weight: 600;
    font-size: 1em;
}
.vignette-hover a{
    width: 22px;
    font-size: 12px;
    aspect-ratio: 1/1;
    text-decoration: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--white);
    color: var(--c-brighter);
    border-radius: 1000px
}
.vignette-hover p{
    text-align: justify;
    font-size: 12px;
}

/* Region footer */
.footer{
    width: 100%;
    height: 20px;
    position: fixed;
    bottom: 5px;

    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;

    font-size: 12px;
    color: var(--font-color);
    text-decoration: none;
}
.footer-logo{
    height: 20px;
    width: auto;
}
.footer a{
    color: var(--font-color);
}


@media (max-width: 1450px){
    .container-g-inner {
        width: 80%;
    }
    .nav-bar-inn {
        width: 80%;
    }
}
@media (max-width: 1200px){
    .container-g-inner {
        width: 90%;
    }
    .nav-bar-inn {
        width: 90%;
    }
}


@media (max-width: 768px) {
    .container-g-inner {
        width: 95%;
        flex-direction: column;
        align-content: center;
        gap: 30px
    }
    .vignette{
        width: 80%;
    }
    .nav-bar-inn {
        width: 95%;
    }
    .nav-bar-inner{
        font-size: 15px
    }

    .footer{
        font-size: 8px;
        gap: 5px
    }
}

.contactForm{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    width: 400px;
    position: absolute;
    background-color: white;
    padding: 15px;
    translate: 1500px -50%;
    z-index: 90;
    top: 50%;
    left: 50%;
    transition: all .3s;
}
.contactForm > form{width: 90%}
#message{width: 100%}
.close-popup {
    position: absolute;
    right: 2%;
    top: 2%;
    font-size: 20px;
    cursor: pointer;
}

@media (min-width: 769px) and (max-width: 992px) {

}

/* Ordinateurs de bureau standard */
@media (min-width: 993px) and (max-width: 1200px) {
    .container-g-inner {
        width: 80%;
    }
    .nav-bar-inn {
        width: 80%;
    }
}

/* Grands écrans de bureau */
@media (min-width: 1201px) {
    /* Base */
}