/* Valide pour tous  */

#diacontainer{
    position: relative;
    display: block;
    
}


#legende {
   position: absolute;
   bottom: 0;
   width: 100%;
   z-index: 2;
   background-color: rgba(235, 231, 231, 0.3);
   text-align: center;
  

}

#dias {
    background-position-y: top;
    background-position-x: center;
    background-repeat: no-repeat;
    background-size: contain;
    margin: 0 auto;
    position: absolute;
    top:0;
    display: block;
    width : 100%;
    height: 90%;
}
#icons {
    background-color:#A90101;
    color:white;
    z-index: 4;
    

}


/* ###########  Valide pour tailles larger que 1200 px  ########### */
/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width:1200px) {
    #diacontainer{
        width: 75%;
        min-height: 720px;
        height: 70%;
        margin-left:280px;
        margin-bottom: 0;
    }
    #legende {
        font-size: 1.2rem;
        margin-bottom: 0;
        padding: 0;
        text-align: right;
        top: -60px;
       
    }
    #titre h1{
        padding-left: 300px;
    }

    #icons {
        margin-left:300px;
        margin-top: 0;
        position: fixed;
        right: 7%;
        bottom: 23px;

    }
}
/* ####### Valide pour tailles entre 992 et 1200 px########### */
/* Large devices (laptops/desktops, 992px and up) */

@media only screen and (min-width:992px) and (max-width:1199px) {
    #diacontainer{
        width: 75%;
        min-height: 600px;
        margin-left:250px;
    }
    #legende {
        font-size: 1.2rem;
        margin-bottom: 0;
        padding: 0;
    }
    #titre h1{
        padding-left: 250px;
     }

    #icons {
        margin-left: 250px;
        margin-top: 0;
    }
    footer {
        opacity: 0.3;
    }
}


/* ######## Valide pour tailles  entre 768 et 992 px ############ */
/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width:768px) and (max-width:991px) {

    #diacontainer{
        width: 80%;
        min-height: 690px;
        margin-left:130px;
    }
    #legende {
        font-size: 1.2rem;
        padding: 10px 0;
        font-size: 1rem;
        margin-bottom: 2%;
    }
    #titre h1{
        padding-left:250px;
     }

    #icons {
        margin-left: 250px;
        margin-top:2%;
    }
    footer {
        opacity: 0.3;
    }
}

@media only screen and (max-width:767px) {
 
    #diacontainer{
        width: 98%;    
        margin:auto;
        min-height: 410px;
    }
    #legende {
        padding: 10px 0;
        font-size: 1rem;
        margin-bottom: 2%;
    }
    #titre h1{
        padding-left:250px;
     }

    #icons {
        margin-left: 250px;
        margin-top:2%;
    }
    footer {
        opacity: 0.3;
    }
}