/*
=====================================CSS home.html=====================================
Developped in mobile first
*/


/*
A litle reset
*/
*
{
    overflow: hidden;

    box-sizing: border-box;
}

html
{
    font-size: 100%;
}




/*
=====================================CSS for mobile=====================================
*/

body
{
    display: flex;
    flex-direction: column;

    margin: 0;

    background-color: #eee;

    justify-content: flex-start;
    flex-wrap: nowrap;
}

/*
CSS for elements sidebar on mobile
*/
.sidebar
{
    display: none;
}

/*
CSS for elements containt on mobile
*/
.containt
{
    display: flex;
    flex-direction: row;

    width: 100vw;
    height: 100vh;

    background-color: white;
    background-color: #eee;

    justify-content: center;
    flex-wrap: wrap;
    flex-wrap: wrap;
}


.containt__title
{
    font-family: 'Droid Serif', serif;
    font-size: 2.9rem;

    display: flex;
    flex-direction: row;

    width: 100vw;
    height: 10vh;

    color: #554e46;
    background-color: #eee;

    justify-content: space-between;
    align-items: center;
    order: -1;
    padding: 0px 15px;
}


.containt__category
{
    width: 50%;
    height: 30%;
    padding: 0px;

    background-repeat: no-repeat;
    background-size: cover;

            filter: grayscale(1);
    -webkit-filter: grayscale(1);
       -moz-filter: grayscale(1);
         -o-filter: grayscale(1);
        -ms-filter: grayscale(1);
}




.containt__category:hover
{
            filter: grayscale(0);
    -webkit-filter: grayscale(0);
       -moz-filter: grayscale(0);
         -o-filter: grayscale(0);
        -ms-filter: grayscale(0);
}



.containt .containt__category:hover
{
    filter: blur(0);
}

.contain__category-title
{
    width: 100%;
    height: 100%;
    display: none;
    font-size: 1.8rem;
    text-decoration: none;
    background-color: transparent;
    color: #eee;
}

.containt__category:hover .contain__category-title
{
    display: flex;
    flex-direction: column;

    justify-content: center;
    align-items: center;
}

.contain__category-color{
        width: 100%;
    height: 100%;
    opacity: 0;
}

.containt__category:hover  .contain__category-color{
    opacity: 1;
}

.contain__category-title > a
{
    font-size: 1.8rem;

    text-decoration: none;

    color: #eee;
}

/*
Color of the categories
*/
.eco
{
    /*background-image: url('./../../assets/img/SciencesEcoSociales.JPG');*/
    background-repeat: no-repeat;
    background-size: cover;
}


.geo
{
    background-image: url('./../../assets/img/Geographie.JPG');
    background-repeat: no-repeat;
    background-size: cover;
}

.hist
{
    background-image: url('./../../assets/img/Histoire.JPG');
    background-repeat: no-repeat;
    background-size: cover;
}

.arch
{
    background-color: #8d6e63;
}

.soci
{
    background-color: #85a6db;
}

.ann
{
    background-color: rgb(150,143,139);
}

/*
=====================================CSS for tablet=====================================
 */
@media ( min-width : 847px )
{
    /*
    CSS for elements containt on tablet
    */
    .containt__title
    {
        padding-right: 15px;

        color: #554e46;
        background-color: #eee;

        justify-content: space-between;
        align-items: center;
        order: 0;
    }
    .containt__category
    {
        width: 33.33333333%;
        height: 45vh;
    }
}

/*
=====================================CSS for medium screen=====================================
 */
@media ( min-width : 992px )
{
    body
    {
        overflow: hidden;
        flex-direction: row;

        justify-content: flex-start;
    }
}

/*
=====================================CSS for desktop=====================================
 */
@media ( min-width : 1200px )
{
    /*
    CSS for elements sidebar on desktop
    */
    .sidebar
    {
        display: flex;
        flex-direction: column;

        min-width: 30vw;
        max-width: 40vw;
        height: auto;

        background-color: #eee;

        align-items: center;
        justify-content: space-between;
    }

    .mention{
        align-self: flex-end;
        padding-right: 10px;
        padding-bottom: 10px;
    }

    .sidebar__text
    {
        font-family: 'Muli', sans-serif;
        font-size: 1rem;

        margin-top: 0;
        padding: 0 1vw;

        text-align: justify;

        color: #554e46;
    }

    .sidebar__subtitle
    {
        font-family: 'Droid Serif', serif;
        font-size: 1.7rem;

        height: 5vh;

        color: #554e46;
    }

    /*
    CSS for elements containt on desktop
     */
    .containt
    {
        width: 70vw;
        height: 100vh;
    }

    .containt__title
    {
        font-family: 'Droid Serif', serif;
        font-size: 2.9rem;

        display: flex;
        flex-direction: row;

        width: 100vw;
        height: 10vh;
        padding:0px 15px;

        color: #554e46;
        background-color: #eee;

        justify-content: space-between;
        align-items: center;
    }

    .containt__category
    {
        width: 33.333333333%;
        height: 45vh;

        background-repeat: no-repeat;
        background-size: cover;

                filter: grayscale(1);
        -webkit-filter: grayscale(1);
           -moz-filter: grayscale(1);
             -o-filter: grayscale(1);
            -ms-filter: grayscale(1);
    }
}
