 /* FONT */
 @font-face {
    font-family: "Joly-BoldText";
    src: url("../font/Joly-BoldText.eot") format("eot");
    src: url("../font/Joly-BoldText.woff2") format("woff2"),
        url("../font/Joly-BoldText.woff") format("woff");
}

@font-face {
    font-family: "Joly-RegularText";
    src: url("../font/Joly-RegularText.eot") format("eot");
    src: url("../font/Joly-RegularText.woff2") format("woff2"),
        url("../font/Joly-RegularText.woff") format("woff");
}

@font-face {
    font-family: "Joly-RegularTextItalic";
    src: url("../font/Joly-RegularTextItalic.eot") format("eot");
    src: url("../font/Joly-RegularTextItalic.woff2") format("woff2"),
        url("../font/Joly-RegularTextItalic.woff") format("woff");
}


/* ENSEMBLE */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;

    width: 100%;
    height: 100%;
}




/* LIENS */
a {
    text-decoration: none;

}

a:link {
    color: black;
    font-family: "Joly-RegularTextItalic";
}

a:hover {
    color: black;
    font-family: "Joly-RegularText";
}

a:visited {
    color: black;
}


/* HEADER */

#header {
    width: 100vw;
    height: 10vh;
    position: fixed;
    /* background-color: blue; */
    z-index: 1000;
}

#header .ligne {
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#header .ligne:first-of-type {
   background-color: white;
    height: 5vh;
}

#header .ligne:last-of-type {
    /* background-color:rgb(42, 74, 148); */
    background-color: black;
    height: 5vh;

    font-family: "Joly-RegularTextItalic";
    color:white;
    font-size: 1.4rem;
    text-align: center;

}

#header .ligne .retour {
   display: inline;
   position: absolute;
   left: 0.8rem;
   vertical-align: baseline;

   font-family: "Joly-RegularText";
   font-size: 1.4rem;
}

#header .ligne h1 {
   text-align: center;
   margin: 0;
   padding: 0;
   font-family: "Joly-RegularText";
   font-weight: normal;
   font-size: 1.6rem;
}
#header .ligne h2 {
    text-align: center;
    margin: 0;
    padding: 0;
    font-family: "Joly-RegularTextItalic";
    font-weight: normal;
    font-size: 1.6rem;
 }

#header .ligne .info {
    display: inline;
    position: absolute;
    right: 0.8rem;
    font-family: "Joly-RegularText";
    font-size: 1.2rem;
}
#header a{
    text-decoration: none;
}

#header a:link{
    color: black;
    font-family: "Joly-RegularText";
}

#header a:hover{
    color: black;
    font-family: "Joly-RegularText";
  
}
#header a:visited{
    color: black;
}


/* GRID */

#content {
    display: grid;
    grid-auto-rows: 45vh;
    grid-template-columns: repeat(2, 1fr);

    position: relative;
    top: 10vh;
    background-color: white;

}

.imgrid {
    /* width: 50vw; */
    margin-left: auto;
    margin-right: auto;


}

img {
    object-fit: cover;
    object-position: center;
    height: 45vh;
    width: 50vw;

}

video{
    aspect-ratio: 16/9;
    height: 45vh;
    width: 50vw;
    border-radius: 30px;
   
}

/* PROJET TEXTE FERME */

/* .projet{
    height: 10vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    background-color: white;
}

.titre{
    grid-column: 1 / 5;
    grid-row: 1 / 3;

    font-family: "Joly-BoldText";
    font-size: 1.6rem;
    padding-left: 0.4rem;
    padding-top: 0.6rem;    
    border-bottom: 0.08rem solid black;

}

.button{
    grid-column: 4 / 5;
    grid-row: 2 / 3;
    font-family: "Joly-BoldText";
    font-size: 2rem;
    border: none;
    padding: 0;
    text-decoration: none;
    text-align: right;
    padding-right: 1rem;

}

.legende, .categorie, .taille, .annee, .medium, .lien{
    display: none;
} */

/* PROJET TEXTE OUVERT*/

.projet{
    height: 45vh;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(8, 1fr);
    background-color: white;
}

.titre{
    grid-column: 1 / 5;
    grid-row: 1 / 2;

    font-family: "Joly-BoldText";
    font-size: 1.6rem;
    padding-left: 0.4rem;
    padding-top: 0.6rem;    
    border-bottom: 0.08rem solid black;

}

.button{
    grid-column: 4 / 5;
    grid-row: 1 / 2;
    font-family: "Joly-BoldText";
    font-size: 1.6rem;
    border: none;
    padding: 0;
    text-decoration: none;
    text-align: right;
    padding-right: 1rem;

}

.legende, .categorie, .taille, .annee, .medium, .lien{
    padding-left: 0.4rem;
    padding-top: 0.4rem;
    justify-content: baseline;
    font-family: "Joly-RegularText";
    font-size: 1rem;
}
.legende{
    grid-column: 2 / 5;
    grid-row: 2 / 7;
    padding-right: 0.6rem;
}
 .categorie, .taille, .annee, .medium {
    /* border-bottom: 0.08rem solid black; */
    border-top: 0.08rem solid black ;

}

.categorie{
    grid-column: 1 / 2;
    grid-row: 8 / 9;
    
}


.medium{
    grid-column: 3 / 4;
    grid-row: 8 / 9;

}

.taille{
    grid-column: 2 / 3;
    grid-row: 8 / 9;

}

.annee{
    grid-column: 4 / 5;
    grid-row: 8 / 9;
}

.lien{
    grid-column: 1 / 5;
    grid-row: 7 / 8;

    border-top: 0.08rem solid black;
} 

@media only screen and (max-width: 600px) {
    #header .ligne:first-of-type {
        height: 6vh;
     }
    
    #header .ligne:last-of-type {
        height: 6vh;
        font-size: 0.8rem;
    }

    #header .ligne .retour {
        font-size: 1.4rem;
     }
     
     #header .ligne h1 {
        font-size: 1.4rem;
     }
     
     #header .ligne .info {
         font-size: 0.8rem;
         right: 0.4rem;
    }

    #content {
        top: 12vh;
        display: flex;
        flex-direction: column;
        justify-content: start;
        border-collapse: collapse;
    }
    
    .imgrid{
        width: 100vw;
        height: 38vh;
    }
    img {
        width: 100vw;
        height: 38vh;
    }
    video{
        width: 100vw;
        height: 38vh;
        border-radius: 15px;
        

       
    }

    
    .projet{
        display: flex;
        flex-direction: column;
        justify-content: flex-start;
        border-collapse: collapse;
        /* background-color: violet; */
        height: auto;
    }
    .titre{
        /* position: fixed; */
        background-color: white;
        font-size: 1.4rem;
        width: 100vw;
        padding: 0.6rem; 
    }
    .legende{
        /* background-color: thistle; */
        padding: 0.6rem;
    }

    .legende, .categorie, .taille, .annee, .medium, .lien{
        display: block;
        height: auto;
        justify-content: center;
        padding: 0.6rem;
        font-size: 0.8rem;
    }

} 
