/* Customisation */

@font-face {
  font-family: "Archivo Variable";
  src: url(webfont/Archivo-Variable.woff2);
}

@font-face {
  font-family: "ClashDisplay Variable";
  src: url(webfont/ClashDisplay-Variable.woff2);
}

body{
	background-color: black;
	color: white;
    font-family: "Archivo Variable";
}

a,
a:visited {
	color:white;
	text-decoration: none;
    transition: all 0.3s ease-in-out;
}
a:hover{
    color: #2c3dff;
}

/* TYPOGRAPHIE */

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "ClashDisplay Variable";
    
}
h1{
    font-size: clamp(1.5rem, -4.7rem + 20.8vw, 7rem);
}

/* STRUCTURE */
.site-header {
    background-color: black;
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    align-items: flex-end;
}
.site-main{
    background-color: black;
    padding: 1rem
}

.site-footer {
    background-color: black;
    color: white;
    padding: 1rem;
    text-align: center;
    font-size: 0.6rem;
}
 .page-content, .entry-content, .entry-summary {
  margin: 0 0 0;
}

/* HEADER */
.site-branding

h1.site-title,
p.site-title{
    font-family:"ClashDisplay Variable";
    font-size: 3rem;
    margin: 0;
}
.site-title a{
    color: white;
    display: block;
    width: 50px;
    height: 50px;
    background: url("img/logo-portfolio.svg") no-repeat center center;
    background-size: contain;
    text-indent: -5000px;
}

/*
pour etre plus précis sur le titre
p.site-title a 
*/

.site-title a:hover{
    color: pink;
}
.site-description{
    display: none;
}

/* NAVIGATION */

.main-navigation{
    width: auto;
}


.main-navigation ul{
    background-color: black;
    justify-content: right;
}
.main-navigation li{
    margin-right: 1em;
}
.main-navigation li a:hover{
    color: #2c3dff;
    display: inline-block;
    transition: all 0.3s ease-in-out;

}

.main-navigation li a {
    color: white;
    font-weight: bold;
    text-transform: uppercase;
}

.menu-toggle{
    background-color: transparent;
    background: url(img/icone-burger-on.svg) no-repeat center center transparent;
    background-size: contain;
    width: 50px;
    height: 50px;
    text-indent: -5000px;
    border: 0;
    position: fixed;
    top: 15px;
    right: 15px;
    z-index: 1000;
}

.toggled .menu-toggle{
    background-image: url(img/icone-burger-off.svg);
}

.main-navigation.toggled ul{
    background-color: #2c3dff;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 900;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

.main-navigation.toggled ul li{
    margin: 0.7rem 0;
    padding: 0;
}

.main-navigation.toggled ul li a{
    font-size: 1.5rem;
    color: white;
}

/* HOMEPAGE */
.home .entry-header{
    display: none;
}

/* ARCHIVE */
.works-grid{
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.works-grid article {
    width: 49%;
    margin-bottom: 2rem;
    position: relative;
    background-color: pink;
}

.works-grid article h4{
    position: absolute;
    left: 50%;
    top: 50%;
    text-align: center;
    transform: translate(-50%, -50%);
    color: #2c3dff;
    text-transform: uppercase;
    margin: 0;
    opacity: 0;
    transition: all 0.3s ease-in-out;
}

.works-grid article img{
    transition: all 0.3s ease-in-out;
    display: block;
    width: 100%;
}

.works-grid article a:hover h4{
    opacity: 1;
    
}
.works-grid article a:hover img{
    opacity: 0,5;
}

/*SINGLE*/
.nav-subtitle,
.meta-nav{
    text-transform: uppercase;
    font-size: 0.6em;
    font-weight: bold;
    display: block;
}

.nav-title{
    font-size: 0.8em;
    display: block;
}

body .site-main .post-navigation {
    margin-top: 5rem;
}

.post-navigation img{
    max-width: 20rem;   /*300px;*/
    display: block;
    filter: grayscale(100%);
    opacity: 0.6;
    transition: all 0.3s ease-in-out;
}

.post-navigation .nav-next img{
    margin-left: auto;
}

.post-navigation a:hover img{
    filter: grayscale(0%);
    opacity: 1;
}

.post-navigation-img-box{
    display: inline-block;
    position: relative;
    margin: 0.2rem;
}

.post-navigation-img-box .nav-title {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0;
    z-index: 10;
}

.post-navigation a:hover .post-navigation-img-box .nav-title{
    opacity: 1;
}

/*FORMULAIRE*/

input{
    max-width: 100%;
}

/*RESPONSIVE*/

/*IPAD*/

 @media (max-width: 990px) {

h1{
    font-size: 3rem;
}
.works-grid article{
    width: 50%;
}
 }

/*MOBILE*/
  @media (max-width: 600px) {

body{
    background-color: aqua;
}
.works-grid article{
    width: 100%;
}
 }

