body{
    
    
    margin: 0;
    padding-right: 0.5vh;
    background-color: white;
    display: flex;
   



}


header{
    display: flex;
    height: 100vh;
    min-height: 500px;
    animation: 3s   header_anim ;
    background-color: #ffffff;
    justify-content: center;
}
@keyframes header_anim {
    from {
       flex: 1.5;
       
    }
   
    to{
        flex: 0;
    }
 
  }
  #Logo{
    padding:1vh;
    height: 98vh;
    min-height: 500px;
    width: auto;
    
}
article{
    flex: 1;
    padding: 1vh 0;
    animation: 4s ease-in-out opacity ;
 
}
menu{
    flex: 1;
    width: auto;
    height: 90vh;
    min-height: 500px;
    margin: 0 ;
    padding: 0;
    display: flex;
    animation: 4s ease-in-out opacity ;
    font-size: 1em;
}
@keyframes opacity{
    from{
        margin: 0;
        flex: 0;
        font-size: 0;
        opacity: 0;
        background-position: left;
    
        
    }
    50%{
        margin: 0;
        flex: 0;
        opacity: 0;
        background-position: left;
        border-radius: 2em;
       
    }
    90%{
        font-size: 0;
    }
    
 
}

button{
    margin: 0 0.5vh;
    padding: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: auto;
    height: auto;
    border: none;
    transition: 1s;
    background-position: center;
    background-size: cover;
    color: white;
    font-family: monospace;
    cursor: pointer;
    animation: 4s ease-in-out opacity ;
    background-color: rgba(0, 0, 0, 0.2);
    background-blend-mode: darken;
}
 button:hover{
     background-position: 55%;
     border-radius: 25px;
     
 }


button:focus{
    background-position: 52%;
    flex: 6;
    cursor: initial;
    background-color: rgba(0, 0, 0, 0.4);

}


#section_01{
    background-image: url(pictures/bar.jpg) ;
}

#section_02{
    background-image: url(pictures/hotel.jpg) ;
    
}

#section_03{
    background-image: url(pictures/bureau.jpg) ;
}

#section_04{
    background-image: url(pictures/boutique.jpg) ;
}

#section_05{
    background-image: url(pictures/domicile.jpg) ;
}




h1{
    position: absolute;
    font-weight: bold;
    font-size: 4em;
    transform: rotate(90deg);
    margin: 0;
    padding: 0;
    transition: 0.25s;
    animation: 4s ease-in-out opacity ;
   
    
    

}

button:hover h1 {
    width: auto;
    font-size: 3em;
    
   
    
}
button:focus h1{
    position: initial;
    width: auto;
    transform: rotate(0);
    font-size: 2em;
    
    
    
}

p{
    text-align: justify;
    font-size:0;
    transition: 1s;
    
}
.p_menu{
    transition: 0s;
}

button:focus p{
    transition: 0.5s 0.5s;
    font-size: 1em;
    margin: 0 20px;
}

footer{
    display: flex;
    flex-direction: row-reverse;
    bottom: 0;
    left: 0;
    padding-top: 1vh;
    width: auto;
    height: 7vh ;
    transition: 1s;
    animation: 4s noway;
    
}

@keyframes noway{
    from{
       position: absolute;
       z-index: -1;
    }

    40%{
        position: absolute;
        z-index: -1;
    }
}

.footer_button{
    flex: 0;
    display: flex;
    flex-direction: row;
    background-color: white;
    color: black;
    
}
.footer_button:focus{
    transition: 2s ;
background-color: white;
}
.footer_button:focus p{
  
    text-align: start;
    background-color: transparent;

} section{
    margin: 0;
    width: 6vh;
    height: 6vh;

}



.png{
    background-position: center;
    background-size: cover;

}
.gif{
    display: none;
    background-position: center;
    background-size: cover;
}
.footer_button:hover .png{
    display: none;
}
.footer_button:focus .png{
    display: none;
}
.footer_button:hover .gif{
    display: block;
}
.footer_button:focus .gif{
    display: block;
}
a{
    color: black;
}

#img1_1{
    background-image: url(pictures/icons8-google-maps.png);
}
#img2_1{
    background-image: url(pictures/icons8-google-maps.gif);
}

#img1_2{
    background-image: url(pictures/icons8-information.png);
}
#img2_2{
    background-image: url(pictures/icons8-information.gif);
}

#img1_3{
    background-image: url(pictures/icons8-réseau.png);
}
#img2_3{
    background-image: url(pictures/icons8-réseau.gif);
}

#img1_5{
    background-image: url(pictures/icons8-message-téléphonique.png);
}
#img2_5{
    background-image: url(pictures/icons8-message-téléphonique.gif);
}

#img1_4{
    background-image: url(pictures/icons8-envoyer.png);
}
#img2_4{
    background-image: url(pictures/icons8-envoyer.gif);
}

@media (max-width:900px),(orientation: portrait){

    body{
        flex-direction: column;
        animation: none;

    }
    header{
        animation: none;
    }

    menu{
        flex-direction: column;
        min-height: 400px;
        height: auto;
        animation: none;
    }

    h1{
     
        position: initial;
        font-size: 6em;
       
    
     

    }

    button{
        flex:none;
        min-height: 110vh;
        margin: 1px;

    
    }
    button:hover{
        border-radius: 0px;
        
    }
    button:hover h1{
        font-size: 6em;

        
    }
    button:focus h1{
      
        font-size: 2.5em;
        background-color: rgba(255, 255, 255, 0);
        
    }


    button:focus{
        flex: none;
        
    }
    button:focus p{
        font-size: 1.2em;
    }

    .p_menu{
        font-size: 0;
        
    }

    footer{
        flex: none;
        height: 100vh;
       flex-direction: column-reverse;
       justify-content: center;
       margin-bottom: 20px;
    }

    .footer_button{
        min-height: 9vh;
        flex-direction: column;
        text-align: center;
        margin: 5px;
        
        
    }

    .footer_button:focus .icone{
        transform: scale(0.8);
        transition: 1s;
    }
    p{
        
        text-align: center;
        margin: 0 20px;
    }
}