html, body, main, section{
    margin: 0;
    padding: 0;
}

header img{
    width: 20%;
    margin-left: calc(50% - 10%);
}

header div{
    background-color: rgba(0,0,0,0.75);
    padding: 10px 0;
    transition: all 0.3s linear;
}

header div:hover{
    background-color: black;
    transition: all 0.3s linear;
}

body{
    background-image: url(../images/fond2.jpg);
    background-position: center right;
    background-attachment: fixed;
    background-repeat: no-repeat;
    background-color: rgba(0,0,0,0.75);
}

main{
    background-color: rgba(255,255,255,0.2);
    width: 100%;
}

section{
    background-color: white;
    width: 70%;
    margin-left: calc(50% - 35%);
    padding: 70px;
    box-sizing: border-box;
    overflow-x: hidden;
}

footer{
    position: absolute;
    background-color: rgba(24,195,12,0.75);
    width: 100%;
    padding: 10px 0;
    text-align: center;
    color: white;
    font-family: 'Open Sans';
    font-size: 12px;
}

h1{
    font-family: 'Roboto';
    font-size: 30px;
    text-transform: uppercase;
    margin: 0 0 20px 0;
}

h2{
    font-family: 'Open Sans';
    font-size: 20px;
    font-weight: lighter;
    margin: 0 0 30px 0;
    text-indent: 30px;
}

p+h2{
    margin: 50px 0 30px 0;
}

p{
    font-family: 'Open Sans';
    margin: 0 0 10px 0;
    font-size: 16px;
}

#chevaux{
    float: right;
    width: 40%;
    margin-left: 30px;
    border-radius: 10px;
    /*box-shadow: 0 3px 6px rgba(0,0,0,0.3);*/
}

#chevaux:hover{
    /*box-shadow: 0 3px 6px rgba(0,0,0,0.6);*/
}

#presta{
    display: flex;
    flex-direction: column;
    margin-left: calc(50% - 20%);
}

#presta a{
    background-color: #41C135;
    color: white;
    padding: 10px;
    width: 60%;
    border-radius: 10px;
    border: 1px solid white;
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    font-size: 16px;
    font-family: 'Open Sans';
    text-decoration: none;
    text-align: center;
    transition: all 0.2s linear;
}

#presta a+a{
    margin-top: 10px;
}

#presta a:hover{
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: all 0.2s linear;
}

#photoPortrait{
    float: right;
    width: 20%;
    margin-left: 30px;
}

#photoPublic{
    float: left;
    width: 30%;
    margin-right: 30px;
}

#photoApproche{
    float: right;
    width: 40%;
    margin-left: 30px;
    /*transform: rotateZ(90deg);*/
}

#flyer{
    width: 80%;
    margin-left: calc(50% - 40%);
    margin-top: 50px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.6);
    transition: all 0.3s linear;
}

#flyer:hover{
    width: 100%;
    margin-left: 0;
    transition: all 0.3s linear;
}

#liste{
    list-style: url(../images/puce.svg);
    font-family: 'Open Sans';
}

#liste li{
    padding-left: 10px;
}

#liste li+li{
    margin-top: 10px;
}

#blocCheval{
    margin: 50px 0;
}

#photoCheval{
    float: left;
    margin-right: 30px;
    width: 25%;
}

#photoCheval2{
    float: right;
    margin-left: 30px;
    width: 30%;
}

#photoCheval2:hover, #photoApproche:hover, #photoPortrait:hover, #blocCheval:hover img{
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

#blocCheval .slide{
    padding: 0;
}

.slide, .hide{
    border: none;
    margin: 0;
    padding: 30px 0 0 0;
    opacity: 0;
}

.slide-right {
	-webkit-animation: slide-right 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;
	        animation: slide-right 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;
}

@-webkit-keyframes slide-right {
  0% {
    -webkit-transform: translateX(-1000px);
            transform: translateX(-1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
      opacity: 1;
  }
}
@keyframes slide-right {
  0% {
    -webkit-transform: translateX(-1000px);
            transform: translateX(-1000px);
      opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
      opacity: 1;
  }
}

.slide-left {
	-webkit-animation: slide-left 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;
	        animation: slide-left 1s cubic-bezier(0.250, 0.460, 0.450, 0.940) 0.2s both;
}

@-webkit-keyframes slide-left {
  0% {
    -webkit-transform: translateX(1000px);
            transform: translateX(1000px);
    opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
      opacity: 1;
  }
}
@keyframes slide-left {
  0% {
    -webkit-transform: translateX(1000px);
            transform: translateX(1000px);
      opacity: 0;
  }
  100% {
    -webkit-transform: translateX(0);
            transform: translateX(0);
      opacity: 1;
  }
}


blockquote{
    font-family: 'Open Sans';
    text-align: center;
    margin-top: 70px;
}

div+div{
    border-top: 3px solid #3EBC2F;
    margin-top: 50px;
    padding-top: 50px;
}

.note{
    font-size: 12px;
    margin-top: 50px;
}

#vide, #vide2, #vide3{
    height: 150px;
    background-image: url(../images/IMG_3614.JPG);
    background-size: cover;
    background-position: center;
    margin-top: 50px;
    width: 100%;
    transition: all 0.3s ease-in-out;
}

#vide:hover, #vide2:hover, #vide3:hover{
    width: 90%;
    margin-left: calc(50% - 45%);
    transition: all 0.3s linear;
}

#vide2{
    background-image: url(../images/manege.jpg);
    border: none;
    height: 100px;
}

#vide3{
    background-image: url(../images/rela.jpg);
    border: none;
}

#ecuries{
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

#ecuries p+p{
    margin-left: 20%;
}

.btn{
    background-color: #21A90D;
    font-family: 'Open Sans';
    border: 1px solid white;
    border-radius: 10px;
    padding: 10px;
    color: white;
    text-transform: uppercase;
    box-shadow: 0 3px 6px rgba(0,0,0,0.16);
    cursor: pointer;
    margin: 30px 0 0 20px;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s linear;
}

.btn:hover{
    transform: scale(1.1);
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
    transition: all 0.2s linear;
}

#contact{
    padding-bottom: 100px;
}

#contact p{
    margin-top: 30px;
}

#tel, #mail{
    display: flex;
    align-items: center;
    margin-left: 50px;
    border: none;
    padding: 10px 0 10px 60px;
    margin: 0;
}

#tel p, #mail p{
    height: 40px;
}

#tel img, #mail img{
    width: 50px;
    margin-right: 30px;
    transition: all 0.5s linear;
}

#tel:hover img, #mail:hover img{
    transform: rotateY(180deg);
    transition: all 0.3s linear;
}

#lienfb{
    display: flex;
    width: 100%;
    justify-content: center;
}

.article{
    width: 80%;
    margin-left: calc(50% - 40%);
}

.plus{
    background: url(../images/plus.svg) no-repeat;
    padding-left: 30px;
    cursor: pointer;
}

#articles h1{
    margin-bottom: 50px;
}

#articles a{
    color: darkred;
    text-decoration: none;
    font-family: 'Open Sans';
}

#articles a:hover{
    color: red;
}

#liens{
    display: flex;
    width: 100%;
    justify-content: center;
}

#liens a{
    width: 20%;
}

#liens a+a{
    margin-left: 10%;
}

#vide4{
    display: none;
}

.shadow-drop-2-center {
	-webkit-animation: shadow-drop-2-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s both;
    animation: shadow-drop-2-center 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) 1s both;
}

@-webkit-keyframes shadow-drop-2-center {
  0% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    -webkit-transform: translateZ(50px);
            transform: translateZ(50px);
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.35);
  }
}
@keyframes shadow-drop-2-center {
  0% {
    -webkit-transform: translateZ(0);
            transform: translateZ(0);
    box-shadow: 0 0 0 0 rgba(0, 0, 0, 0);
  }
  100% {
    -webkit-transform: translateZ(50px);
            transform: translateZ(50px);
    box-shadow: 0 0 20px 0px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 770px){
     .hide{
        opacity: 1;
    }
    
    section{
        width: 80%;
        margin-left: calc(50% - 40%);
        padding: 50px;
        box-sizing: border-box;
    }
    
    .article{
        width: 90%;
        margin-left: calc(50% - 45%);
    }
}

@media (max-width: 415px){
    header img{
        width: 80%;
        margin-left: calc(50% - 40%);
    }
    
    section{
        width: 100%;
        margin: 0;
        padding: 50px;
        box-sizing: border-box;
    }
    
    html, body, main, header{
        width: 100%;
    }
    
    header div{
        width: 100%;
    }
    
    #presta{
        margin-left: calc(50% - 45%);
    }

    #presta a{
        width: 90%;
    }
    
    #chevaux{
        float: none;
        width: 80%;
        margin-left: calc(50% - 40%);
        margin-bottom: 30px;
    }
    
    .article{
        width: 100%;
        margin-left: 0;
    }
    
    #articles{
        padding: 50px 0;
    }

    .plus{
        background: url(../images/plus.svg) no-repeat;
        padding-left: 30px;
        cursor: pointer;
        margin-left: 30px;
    }

    #articles h1{
        margin-left: 30px;
    }
    
    #photoCheval{
        float: none;
        margin-left: calc(50% - 40%);
        margin-bottom: 30px;
        width: 80%;
    }
    
    #photoCheval2{
        float: none;
        width: 80%;
        margin-left: calc(50% - 40%);
        border-top-left-radius: 10px;
        border-bottom-right-radius: 10px;
        margin-bottom: 30px;
    }
    
    #photoPublic{
        float: none;
        width: 90%;
        margin-left: calc(50% - 45%);
        margin-bottom: 30px;
        margin-top: 30px;
    }
    
    #photoApproche{
        display: none;
    }
    
    #ecuries{
        display: block;
        justify-content: center;
        margin-top: 40px;
        margin-left: 30px;
    }

    #ecuries p+p{
        margin-left: 0;
        margin-top: 40px;
    }
    
    #vide4{
        display: block;
        background-image: url(../images/contact.JPG);
        background-size: cover;
        height: 150px;
    }
    
    #liens{
        display: flex;
        flex-direction: column;
        width: 100%;
        align-items: center;
    }

    #liens a{
        width: 70%;
        margin-left: 0;
    }

    #liens a+a{
        margin-top: 10%;
        margin-left: 0;
    }
    
    #photoPortrait{
        float: none;
        width: 50%;
        margin-left: calc(50% - 25%);
        margin-bottom: 30px;
    }
    
    #flyer{
        width: 100%;
        margin-left: 0;
    }
    
    blockquote{
        width: 100%;
        margin-left: 0;
    }
    
    .hide{
        opacity: 1;
    }
    
    #tel, #mail{
        padding: 0;
    }
    
    #contact img{
        margin-right: 15px;
        width: 40px;
    }

}