/**/
/*  Teaser  */
/**/

#teaser {
    overflow: hidden;
    height: 100vh;
    position: relative;
    z-index: -10;
    text-align: center;
}

#teaser video {
    min-width: 100%;
    min-height: 100%;
    position: absolute;
    left: 50%;
    top: 50%;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
    z-index: -5;
}

#teaser img {
    display: none;
}

/**/
/*  Présentation  */
/**/

#home-presentation {
    display: flex;
    height: 50vh;
    margin: 15vh 10vw;
    box-shadow: 0 0 100px rgba(0, 0, 0, 0.3);
    background-color: #b4a163;
}

#home-presentation div {
    width: calc(100%/3);
    height: 100%;
    overflow: hidden;
}

#home-presentation div img {
    width: auto;
    height: 100%;
    position: relative;
    left: 50%;
    top: 50%;
    -moz-transform: translate(-50%, -50%);
    -webkit-transform: translate(-50%, -50%);
    transform: translate(-50%, -50%);
}

#home-presentation article {
    display: flex;
    align-items: center;
    width: calc(100%/1.5);
    padding: 5% 10%;
    background-color: #b4a163;
}

#home-presentation article p {
    color: #f4f4f4;
    line-height: 1.5em;
}

/**/
/*  Catégories  */
/**/

#home-categories {
    display: flex;
    height: 100vh;
}

#column-left {
    width: 60%;
}

#column-right {
    width: 40%;
}

#div1 {
    height: 40%;
}

#div2 {
    height: 60%;
}

#div3 {
    height: 60%;
}

#div4 {
    height: 40%;
}

.cat-div {
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.cat-img {
    width: 100%;
    height: 100%;
    background-color: black;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -moz-transition: all 2s;
    -webkit-transition: all 2s;
    transition: all 2s;
}

.cat-div:hover > .cat-img,
.cat-div:focus > .cat-img {
    -webkit-transform: scale(1.2);
    transform: scale(1.2);
    -webkit-filter: blur(2px);
    filter: blur(2px);
}

.cat-img::before {
    content: "";
    display: none;
    height: 100%;
    width: 100%;
    position: absolute;
    background-color: rgba(0, 0, 0, 0.5);
}

.cat-div:hover .cat-img:before,
.cat-div:focus .cat-img:before {
    display: block;
}

#div1 .cat-img {
    background-image: url(../img/header/maison-header.jpg);
}  

#div2 .cat-img {
    background-image: url(../img/header/vins-header.jpg);
}

#div3 .cat-img {
    background-image: url(../img/header/sf-header.jpg);
}

#div4 .cat-img {
    background-image: url(../img/header/contact-header.jpg);
}

.cat-title {
    position: absolute;
    color: #f4f4f4;
    font-family: 'Catamaran', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(0, 0, 0, 1);
    animation: title 2s linear;
}

@keyframes title {
    from {opacity: 0;}
    to {opacity: 1;}
}

/**/
/*  Description  */
/**/

#description p {
    padding: 10vh 10vw;
}

@media screen and (max-width: 1300px) {

    /*  Présentation  */

    #home-presentation {
        margin: 15vh 5vw;
    }

}

@media screen and (max-width: 1000px) {

    /*  Présentation  */

    #home-presentation {
        margin: 15vh 0;
    }

    #home-presentation div {
        width: 40%;
    }

    #home-presentation article {
        width: 60%;
        padding: 5%;
    }

}

@media screen and (max-width: 800px) {

    /*  Présentation  */

    #home-presentation article {
        overflow: auto;
    }

}

@media screen and (max-width: 600px) {

    /*  Présentation  */

    #home-presentation {
        flex-direction: column;
        margin: 10vh 0;
        height: auto;
    }

    #home-presentation div {
        width: 100%;
        max-height: 50vh;
    }

    #home-presentation div img {
        width: 100%;
        height: auto;
        position: initial;
        left: initial;
        top: initial;
        transform: initial;
    }

    #home-presentation article {
        width: 100%;
        padding: 10%;
    }

    /*  Catégories  */

    #home-categories {
        flex-direction: column;
        height: 150vh;
    }

    #column-left, #column-right {
        width: 100%;
        height: 50%;
    }
    
    #div1, #div2, #div3, #div4 {
        height: 50%;
    }

    .cat-img {
        -webkit-filter: grayscale(30%);
        filter: grayscale(30%);
    }

    .cat-div:hover > .cat-img,
    .cat-div:focus > .cat-img {
        -webkit-transform: initial;
        transform: initial;
        -webkit-filter: initial;
        filter: initial;
    }

    .cat-div:hover .cat-img:before,
    .cat-div:focus .cat-img:before {
        display: none;
    }

    .cat-title {
        animation: none;
    }
    
}