@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed&display=swap');
@import url('https://fonts.googleapis.com/css?family=Roboto');

/*Header */
header{
    font-size: 130%;
    padding-top: 5px;
    height:55px;
    background-color: #000027;
    color:#ffffff;
    width:100%;
    left: 2%;
}
header img{
    position: absolute;
    top: -8px;
    right: 30px;
    width: 60px;
}
header p{
    display: none;
}

#cont{
    width: 100%;
    height:100%;
    overflow: hidden;
}

nav ul li{
    display: inline-block;
    padding: 0% 9% 0% 4%;
    left: 2%;
}

nav ul li:last-child{
    padding: 0% 5% 0% 4%;
}
nav ul li:first-child{
    padding: 0% 9% 0% 1%;
}

ul{
    margin-top: 15px;
    padding-left: 35px;
    padding-right: 35px;
}

nav ul li a{
    color: #ffffff;
    text-decoration: none;
}

div{
    margin:auto;
    width:100%;
}

nav{
    text-align:center;
    position:relative;
}

#current_page{
    font-weight:bold;
}

body{
    margin: 0px;
}

#current-page{
    color: white;
    font-weight: bold;
}

/* fin header */
#image{
    overflow: hidden;
    width: 100%;
    height: 300px;
}

h1{
    text-align: center;
    font-family: "Roboto";
}


body{
    text-align: center;
    font-family: "Roboto Condensed";
}

/*Début du premier bloc*/
.contain{
    width: 90%;
    padding-top: 5%;
    position: relative;
}

.box{
    display: inline-block;
    width: 35%;
}

#moon{
    padding-right: 5%;
    
}

#eclipse{
    padding-left:5%;
    position: relative;
    bottom: 50px;
}

/* Début du deuxieme bloc */
.contain2{
    margin-top: 4%;
    position: relative;
    width: 90%;
}

#orion{
    padding-left: 5%;
}

#andromede{
    width: 40%;
    position: relative;
    bottom: 70px;
}

#c{
    height: 40%;
    width: 25%;
}

#chien{
    width: 45%;
    padding-left: 9%;
    position: relative;
    bottom: 50px;
}

/* Debut du troisieme bloc */
.contain3{
    padding-top: 5%;
    width: 90%;
}

#newlune{
    display: none;
    position: absolute;
    top: 70%;
    width: 40%;
}

#lune:hover + #newlune {
    display: block;
    position: absolute;
    margin-top: -25%;
    margin-right: -40%;
    margin-left: -2%;
    z-index: 1;
    left: 55%;
}

#neweclipse{
    display: none;
    position: absolute;
    width: 115%;
    height: 125%;
    top: 90%;
}

#pheclipse:hover + #neweclipse{
    display: block;
    position: absolute;
    margin-top: -82%;
    z-index: 1;
    margin-left: -75%;
    right: 110%;
}

#newandromede{
    display: none;
    position: absolute;
    top: 70%;
    width: 120%;
    right: 100%;
}

#phandromede:hover + #newandromede {
    display: block;
    position: absolute;
    margin-top: -50%;
    margin-right: -90%;
    margin-left: -2%;
    z-index: 1;
    left: 110%;
}

#neworion{
    display: none;
    position: absolute;
    width: 50%;
    height: 80%;
}

#phorion:hover + #neworion{
    display: block;
    position: absolute;
    margin-top: -40%;
    z-index: 1;
    margin-left: -55%;
}

#newcomete{
    display: none;
    position: absolute;
    width: 50%;
    right: 100%;
}

#comete:hover + #newcomete {
    display: block;
    position: absolute;
    margin-top: -40%;
    margin-right: -90%;
    margin-left: -2%;
    z-index: 1;
}

#newchien{
    display: none;
    position: absolute;
    width: 80%;
}

#phchien:hover + #newchien{
    display: block;
    position: absolute;
    margin-top: -66%;
    z-index: 1;
    margin-left: -90%;
    
}

/* Effet photo */
.photo{
    width: 100%;
    height: auto;
    -webkit-transition: all 0.2s;
    -moz-transition: all 0.2s;
    -ms-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;

}

.photo:hover{
    transform: scale(1.1);
}

/* Footer */
#foot{
    width: 60%;
    text-align: center;
}

footer{
    display: flex;
    color: #ffffff;
    text-align: center;
    height: 120px;
    margin-top: 55px;
    font-size:120%;
    background-color:#000027;
    padding:10px 0px 10px 0px;
    bottom: 0;
}

footer img{
    padding-left: 2%;
    width: 100px;
    height: 100px;
    margin-top: auto;
    margin-bottom: auto;
}

footer p{
    margin: auto;
}

footer #insta{
    padding-left: 0;
    padding-right: 20px;
    padding-top: 10px;
}

footer a{
    color: #999999;
}

@media only screen
and (max-device-width: 430px)
and (orientation: portrait){
    /* Header */
    #cont{
        height: 640px;
    }
    header{
        padding: 0;
        height: 50px;
    }
    header img{
        position: absolute;
        top: 10px;
        right: 15px;
        width: 60px;
    }
    header p{
        position: absolute;
        display: block;
        top: 15px;
        margin: auto;
        color: #ffffff;
        width: 100%;
        text-align: center;
    }
    header:hover + #image{
        margin-top: 200px;
    }

    h2{
        line-height: 40px;
    }
    nav{
        height: 50px;
        line-height: 40px;
        text-align: left !important;
    }
    nav ul{
        padding: 0;
        margin: -10px;
    }
    nav::before{
        content: "≡";
        color:#eeeeee;
        font-size: 50px;
        line-height: 50px;
        padding: 20px 0px 0px 25px;
    }
    nav ul li{
        display:none;
        border: 2px;
        border-top-style: solid;
        border-color:#000000;
        background-color: #000029;
        margin: 0;
        padding: 0px 0px 0px 25px;
    }
    nav ul li:first-child{
        margin: 0;
        padding: 0px 0px 0px 25px;
        margin: -10px 0px 0px 0px;
    }
    nav ul li:last-child{
        margin: 0;
        padding: 0px 0px 0px 25px;
    }
    nav:hover ul li{
        display:block;
    }

    /*fin header */

    #prevention{
        padding-left: 6%;
        padding-right: 6%;
    }

    /* Début premier bloc */
    
    #eclipse{
        width: 90%;
        bottom: 0;
        padding-left: 1%;
        margin-top: 40%;
    }
    
    #contain{
        flex-direction: column;
        
    }

    #contain h2{
        width: 10%;
    }

    #moon{
        width: 90%;
        padding-left: 5%;
    }

    #lune:hover + #newlune{
        width: 105%;
        left: 0;
        margin-top: 5%;
        position: relative;
    }

    #pheclipse:hover + #neweclipse{
        position: relative;
        display: flex;
        margin-top: 5%;
        width: 105%;
        z-index: 1;
        height: 350px;
        left: 72%;
        margin-bottom: 5%;
    }

    /* Début deuxieme bloc */

    #contain2{
       flex-direction: column;
    } 

    #andromede{
        left: 0;
        width: 95%;
        top:0;
        margin-top: 40%;
    }

    #orion{
        left: 0;
        width: 95%;
        padding-left: 0%;
        margin-top: 40%;
        height: 85%;
    }

    #phandromede:hover + #newandromede {
        position: absolute;
        width: 100%;
        left: 0;
        margin-top: 5%;
        position: relative;
    }

    #phorion:hover + #neworion{
        position: absolute;
        width: 100%;
        left: 55%;
        margin-top: 6%;
        position: relative;
        height: 300px;
    }

    /* 3eme bloc */

    #c{
        left: 0;
        width: 100%;
        margin-top: 40%;
        height: 70%;
    }

    #chien{
        left: 0;
        width: 100%;
        bottom: 0;
        margin-top: 40%;
        padding-left: 0%;
    }

    #contain3{
        flex-direction: column;
    }

    #comete:hover + #newcomete {
        position: absolute;
        width: 100%;
        left: 0;
        margin-top: 10%;
        position: relative;
    }

    #phchien:hover + #newchien{
        position: absolute;
        width: 100%;
        left: 90%;
        margin-top: 10%;
        position: relative;
        
    }
    /* 4eme bloc */

    /*
    #id du bloc{
        left: 0;
        width: 100%;
        margin-top: 40%;
        height: 70%;                                  ----------------------------
    #id du 2eme bloc{                                 Redimensionner à votre guise
        left: 0;                                      ----------------------------
        width: 100%;
        bottom: 0;
        margin-top: 40%;
        padding-left: 0%;
    }

    #contain4{
        flex-direction: column;
    }

    #id de l'ancinne image1:hover + #id de la récente image1{
        position: absolute;
        width: 100%;                                                            ----------------------------
        left: 0;                                                                Redimensionner à votre guise
        margin-top: 10%;                                                        ----------------------------
        position: relative;
    }

     #id de l'ancinne image2:hover + #id de la récente image2{
        position: absolute;
        width: 100%;                                                            ----------------------------
        left: 0;                                                                Redimensionner à votre guise
        margin-top: 10%;                                                        ----------------------------
        position: relative;
    }*/


    /* footer */
    footer{
        font-size: 12px;
        line-height: 15px;
        margin-top: 50%;
    }
    footer img{
        width: 70px;
        height: 70px;
    }
    #foot p{
        width: 210px;
    }
    footer #insta{
        padding-left: 0;
        padding-right: 10px;
        padding-top: 23px;
    }
}