/* FONTS */

@font-face {
    font-family: 'Circular';
    src: url('../fonts/CircularStd-Black.woff2') format('woff2');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Circular';
    src: url('../fonts/CircularStd-Book.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}


/* VARIABLES */

:root {
  --bgColor: #FAFAFA;
  --textColor: #000;
}


/* GENERAL */

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

html{
    height: 100%;
    overflow: overlay;
    overflow-y: scroll;
    scroll-behavior: smooth;
}

body{
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: 'Circular', Helvetica, Arial, sans-serif;
    font-size: 1.5rem;
    line-height: 1.1;
    font-weight: normal;
    background-color: var(--bgColor);
}

ul, ol{
    list-style-type: none;
}

a{
    text-decoration: none;
    color: var(--textColor);
}


/* GENERAL CONTENT */

.space_above{
    margin-top: 8rem;
}

.container{
    padding-inline:10rem;
}

main {
    flex: 1;
    margin-bottom: 1rem;    
}

.bold {
    font-weight: bold;
}


/* NAV BAR */

header{
    overflow: hidden;
    width: 100%;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 99;
    transition: all 300ms ease-in-out;
}

.logo{
    display: block;
}

.logo img{
    display: block;
    object-fit: contain;
    width: 7rem;

    transition: transform 0.3s ease-in-out;
    }

.logo img:hover{
    transform: scale(1.1);
}

header nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 100%;
    border-bottom: 2px solid var(--textColor);
    background-color: var(--bgColor);
}

header nav ul{
    display: flex;
    padding-top: 0.2rem;
}

header nav ul li + li{
    padding-left: 1rem;
    margin-left: 1rem;
    border-left: 2px solid var(--textColor);
}

header nav ul li a{
    transition: all 0.2s ease;
}

header nav ul li a:hover{
    color: purple;
}

/* NAV BAR SCROLL ACTIVATION */

.scroll-down header{
    transform: translate3d(0, -100%, 0);
}


/* ISOTOPE FILTER */

nav.menu{
    padding-bottom: 1.5rem;
}

nav.menu .button-group{
    display: flex;
}

nav.menu .button-group button{
    margin-right: 0.8rem;
    padding: 0.5rem 0.8rem;
    border: 2px solid var(--textColor);
    border-radius: 2rem;
    background-color: white;
    transition: all 0.2s ease;
}

nav.menu .button-group button:hover,
nav.menu .button-group button.filter-active{
    color: white;
    background-color: var(--textColor);
}


/* MASONRY */

main.grid{
    margin: 0 auto;
    width: 100%;
}

/* clear fix */
.isotope:after {
    content: '';
    display: block;
    clear: both;
}

/* MASONRY - GRID ITEM */

.grid-sizer,
.grid-item{
    width: 22.75%;
    padding-bottom: 2rem;
}

.gutter-sizer{width: 3%;}

.grid-item{float: left;}

.grid-item p{
    font-size: 0.8rem;
}


/* ISOTOPE LOADING */

.grid {
    opacity: 0;
    transition: opacity .3s ease;
}

.grid.loaded {
    opacity: 1;
}

.grid-item .blur-load:hover {
    filter: grayscale(1);
}

.blur-load {
    width: 100%;
    overflow: hidden;
}

.blur-load img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    opacity: 0;
    transition: opacity .6s ease;
}

.blur-load.loaded img {
    opacity: 1;
}

.grid-item .blur-load {
    background: #ddd;
    margin-bottom: 1.5rem;
    box-shadow: 0 2px 4px rgba(100,100,100,1);
    transition: all .2s ease;
}


/* FOOTER */

footer {
    width: 100%;
    border-top: 2px solid var(--textColor);
}

footer .container{
    font-size: 1.2rem;
    padding-bottom: 2rem;
    padding-top: 2.5rem;
}

footer div {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

footer div img {
    display: block;
    height: 2rem;
    padding-left: 1rem;
}

.back-to-top {
    text-decoration: underline;
    transition: all 0.2s ease;
}

.back-to-top:hover{
    color: purple;
}


/* PROJETS */

.projet-layout{
    display: grid;
    grid-template-columns: 4fr 6fr;
    gap: 2rem;
    align-items: start;
}

.projet-description h1,
.about h1 {
    text-transform: uppercase;
    line-height: 1;
    padding-bottom: 1rem;
}

.project-client {
    font-size: 1rem;
    font-weight: bold;
    text-transform: uppercase;
}

.projet-description p {
    font-size: 1.2rem;
    padding-bottom: 1.2rem;
}

.projet-description p a {
    text-decoration: underline;
}

.projet-images div img,
.projet-images div figcaption{
    width: 100%;
    height: auto;
    display: block;
}

.image-row{
    display: grid;
    gap: 2rem;
}

.image-row {
    margin-bottom: 2rem;
}

.image-row img {
    display: block;
    width: 100%;
    height: auto;
}

.image-caption {
    font-size: 1rem;
    line-height: 1.4;
    text-align: center;
    margin-top: -.6rem;
}

.gallery {
    display: flex;
    gap: 2rem;
}

.gallery .item {
    flex: 0 0 auto;
}

.gallery img {
    display: block;
    width: 100%;
    height: auto;
}


/* FADE IN/OUT */

@view-transition {
    navigation: auto;
}

::view-transition-old(root) {
    animation: fade-out 0.15s ease both;
}

::view-transition-new(root) {
    animation: fade-in 0.15s ease both;
}

@keyframes fade-out {
    to {
        opacity: 0;
    }
}

@keyframes fade-in {
    from {
        opacity: 0;
    }
}




/* ABOUT */

.about a {
    text-decoration: underline;
    transition: all 0.2s ease;
}

.about a:hover{
    color: purple;
}

.about-intro{
    display:flex;
    align-items:center;
    gap:4rem;
}

.about-intro p {
    padding-bottom: 1.5rem;
}

.about-intro article{
    flex:1;
}

.about-intro article .contact {
    padding-top: 1.5rem;
}

.about-intro article .contact div{
    display: flex;
    align-items: center;
    padding-bottom: 1.2rem;
}

.about-intro article img{
    display: block;
    width: 1.5rem;
    padding-right: 0.3rem;
}

.about-intro article .contact div p{
    padding-bottom: 0;
}

.about-photo{
    flex:1;
}

.about-photo img{
    display:block;
    width:100%;
    max-width:100%;
    height:auto;
}

.about-infos{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:3rem;
    margin-top: 1.8rem;
    padding-top: 3rem;
    border-top: 2px solid var(--textColor);
}

.about-infos h2
{
    text-transform: uppercase;
    padding-bottom: 1rem;
}

.about-infos p{
    font-size: 1.2rem;
    padding-bottom: 1.2rem;
}

.about-infos article{
    display: flex;
    flex-direction: column;
}

.formations .description {
    line-height: 1.3;
}

.formations .date p {
    font-weight: bold;
    font-size: 1.2rem;
    padding-bottom: 0;
}


/* MEDIA QUERIES */

@media (max-width: 1650px) {

    .container {
        padding-left: 5rem;
        padding-right: 5rem;
    }
    
    .projet-layout {
        grid-template-columns: 1fr 1fr;
    }

    .about-intro {
        display: gird;
        grid-template-columns: 6fr 4fr; 
    }
}

@media (max-width: 1300px) {

    .grid-sizer,
    .grid-item {
        width: 31.33%;
    }

    .about-intro {
        display: flex;
        flex-direction: column; 
    }

    .about-photo {
        width: 100%;
    }
}

@media (max-width: 1100px) {

    .container {
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }

    .projet-layout {
        grid-template-columns: 1fr;
    }

    .about-infos {
        padding-top: 2rem;
        grid-template-columns: 1fr;
        gap: 0;
    }
    
    .about-infos article {
        border-top: 2px solid var(--textColor);
        padding-top: 2rem;
        padding-bottom: 0.8rem;
    }

    .about-infos article:first-child {
        border: none;
        padding-top: 0;
    }
}

@media (max-width: 900px) {

    .container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    .grid-sizer,
    .grid-item{
        width: 48.5%;
    }
}

@media (max-width: 600px) {

    .grid-sizer,
    .grid-item {
        width: 100%;
    }
}

