/* ------------- Balises générales ------------- */


* {
    box-sizing: border-box;
    padding : 0;
    margin: 0;
}

button {
    border: none;
}


/* ------------- Polices d'écriture et balises textes ------------- */

@font-face {
    font-family: 'Roboto-Light';
    src: url(../Police/roboto/Roboto-Light.ttf) format("truetype") ;
       
}

@font-face {
    font-family: 'Roboto-Bold';
    src: url(../Police/roboto/Roboto-Bold.ttf) format("truetype") ;
       
}

@font-face {
    font-family: 'Roboto-Regular';
    src: url(../Police/roboto/Roboto-Regular.ttf) format("truetype") ;
       
}

h1 {
    font-family: 'Roboto-Bold';
    font-size: 40px ;
    color: #ffffff;
    padding-top : 7%;
    padding-bottom: 2%;
    padding-right: 10%;
    text-align: right;
    
}

h3 {
    font-family: 'Roboto-Bold';
    padding-top: 10px;
    padding-bottom: 20px;
    font-size: 35px ;
    color: #0c312c;
    margin-left: 2%;
}

.texte_principal {
    font-family: 'Roboto-Regular';
    font-size: 18px;
    text-align: justify;
    color: rgb(255, 255, 255);
    padding-top : 10px;
    padding-bottom: 20px;
    padding-right: 10%;
    padding-left: 10%;

}



/*--------------------- Contenu principal  ---------------------*/

body {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 100vh;
    background-image: url(../IMAGE/fond_papyrus.jpg);
    position: relative;

}


.contenu {
    background-color: rgba(0, 0, 0, 0.877);
    height: 100vh;
    margin-left: 20%;
    
}


/*--------------- Boutons de navigation --------------*/

#btnPrecedent {
    background-color: rgba(0, 0, 0, 0.900);
    padding: 4em 1em;
    border-radius : 0px 15px 15px 00px;
    color: rgb(0, 0, 0);
    position: relative;
}
    

#btnPrecedent:hover{
    background-color: rgba(33, 95, 97, 0.705);
    border-color: rgba(33, 95, 97, 0.705);
    color: rgb(255, 255, 255);


}


.btnSuivant {
    background-color: rgba(0, 0, 0, 0.877);
    height: 100vh;
    


}

#btnSuivant {
    background-color: rgba(255, 255, 255, 0.664);
    padding: 4em 1em;
    margin-top: calc(50vh - 3.36rem);
    border-radius : 15px 00px 00px 15px;
    color: rgb(0, 0, 0);
}
    

#btnSuivant:hover{
    background-color: rgba(33, 95, 97, 0.705);
    border-color: rgba(33, 95, 97, 0.705);
    color: rgb(255, 255, 255);


}

/*----------------- Boutons pour les usages du Papyrus -----------------*/

.hexagons {
    max-width: 600px;
    overflow: hidden;
    margin: 0 auto;
    padding: 0px;
}
.hexagons li {
    position: relative;
    list-style-type: none;
    float: left;
    overflow: hidden;
    width: 27.8571428571%;
    padding-bottom: 32.1676014517%;
   /* = (100-2.5) / 3.5 */
   /* = width /0.866 */
    transform: rotate(-60deg) skewY(30deg);
}
.hexagons li:nth-child(3n+2) {
    margin: 0 1%;
}
.hexagons li:nth-child(6n+4) {
    margin-left: 0.5%;
}
.hexagons li:nth-child(6n+4), .hexagons li:nth-child(6n+5), .hexagons li:nth-child(6n+6) {
    margin-top: -6.9285714285%;
    margin-bottom: -6.9285714285%;
    transform: translateX(50%) rotate(-60deg) skewY(30deg);
}
.hexagons li:nth-child(6n+4):last-child, .hexagons li:nth-child(6n+5):last-child, .hexagons li:nth-child(6n+6):last-child {
    margin-bottom: 0%;
}
.hexagons li > div {
    position: absolute;
    visibility: visible;
    width: 100%;
    height: 100%;
    text-align: center;
    overflow: hidden;
    transform: skewY(-30deg) rotate(60deg);
    display: flex;
    align-items: center;
    justify-content: center;
}

body .hexagons {
    margin-top: 2%;
}



#fonction1 {
    background-color: rgb(12, 65, 65);
    background-image: url('../IMAGE/bateau.png');
    background-size: 165px;
}


#fonction2 {

    background-color: rgb(12, 65, 65);
    background-image: url('../IMAGE/sandales.png');
    background-size: 165px;
}



#fonction3 {
    background-color: rgb(12, 65, 65);
    background-image: url('../IMAGE/stele.png');
    background-size: 165px;
}


#fonction4 {
    background-color: rgb(12, 65, 65);
    background-image: url('../IMAGE/galeno.png');
    background-size: 165px;
}


#fonction5 {
    background-color: rgb(23, 51, 51);
    background-image: url('../IMAGE/papyrus.png');
    background-size: 165px;
}



/*------------------ Contenu pop-up ------------------*/
.popup{
   
    margin: 10% auto;
    width : 50%;
    background-color: rgba(243, 243, 243, 0.966);
    padding: 1em;
    box-shadow: 0 15px 20px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
    }

.overlay {
    overflow-x:scroll;
    position: fixed;
    left: 0px;
    top:0px;
    background-color: rgba(0, 0, 0, 0.466);
    width: 100%;
    height: 100%;
    z-index:99;
    display:none;
    }

.btnClose {
    float: right;
    font-size:20pt;
    cursor: pointer;
    color: rgb(26, 26, 26)
    }

.texte-popup {
    font-size: 16px;
    font-family:'Roboto-Regular';
    margin-right: 2%;
    margin-left: 2%;
    }