body {
    padding: 0;
    margin: 0;
    background-image: url(./img/background-body.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Chau Philomene One', sans-serif;
    font-family: 'Roboto', sans-serif;
    color: rgb(50,50,50);
    display: grid;
    grid-template-columns: 1fr;
}
a {
    text-decoration: none;
    color: rgb(50,50,50);
}

/*--Boutons---------------------------------------------------*/
.php{
    padding: 0.3em;
    border-radius: 5px;
    background-color: lightslategray;
    color: white;
    margin: 0 0.5em;
    text-shadow: 0 0 5px rgb(25,25,25,0.5);
    border-bottom: 4px solid rgb(25,25,25,0.5);
}
.html{
    padding: 0.3em;
    border-radius: 5px;
    background-color: lightcoral;
    color: white;
    margin: 0 .5em;
    text-shadow: 0 0 5px rgb(25,25,25,0.5);
    border-bottom: 4px solid rgb(25,25,25,0.5);
}
.css{
    padding: 0.3em;
    border-radius: 5px;
    background-color: lightgreen;
    color: white;
    margin: 0 0.5em;
    text-shadow: 0 0 5px rgb(25,25,25,0.5);
    border-bottom: 4px solid rgb(25,25,25,0.5);
}
.mysql{
    padding: 0.3em;
    border-radius: 5px;
    background-color:lightseagreen;
    color: white;
    margin: 0 0.5em;
    text-shadow: 0 0 5px rgb(25,25,25,0.5);
    border-bottom: 4px solid rgb(25,25,25,0.5);
}

/*--Menu---------------------------------------------------*/

header {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-content: center;
    width: 100%;
    height: 9em;
    text-align: center;
    position: relative;
    z-index: 100;
}
/*
.menu {
    display:block;
    position: absolute;
    top: 5vh;
    right: 2vw;
    font-size: 0;
    border: 1px solid white;
    border-radius: 5px;
    background-color: rgb(25,25,25);
    overflow: hidden;
    transition: all 100ms;
}
.menu:hover {
    display: block;
    position: absolute;
    top: 5vh;
    right: 2vw;
    font-size: 1em;
    transition: all 100ms;
}
.menu > ul {
    display:block;
    top: 40px;
    right: 0;
    width: 40px;
    overflow: hidden;
    list-style: none;
    text-decoration: none;
    padding: 0;
    margin: 0;
    transition: all 100ms;
}
.menu > ul > li > a {
    line-height: 3em;
    color: white;
    display: block;
    text-align: center;
    width: 180px;
    transition: all 100ms;
}
#burger {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    position: relative;
    width: 40px;
    height: 40px; 
    border-radius: 5px;
    transition: all 100ms;

}
.menu:hover ul {
    width: 180px;
    border-top: 0;
    transition: all 100ms;
}
.menu:hover #burger {
    width: 180px;
    border-radius: 5px 5px 0 0;
    transition: all 100ms;
}
.menu > ul > li > a:hover {
    color: orange;
    background-color: white;
    transition: all 100ms;
}
.barre {
    display: block;
    width: 30px;
    height: 10%;
    background-color: white;
}*/
.logo {
    margin: auto;
    height: 8em;
}







.menu {
    display: none;
    position: absolute;
    top: 1em;
    right: 2em;
    height: 30%;
    width: fit-content;
    text-align: right;
    margin: 1em 2em 0 0 ;
}
.menu > ul {
    display:block;
    width: 100%;
    list-style: none;
    text-decoration: none;
    padding: 0;
    margin: 0;
    transition: all 100ms;
}
.menu > ul > li > a {
    font-size: 0;
    color: white;
    display: block;
    text-align: center;
    width: 180px;
    transition: all 100ms;
}
.menu:hover > ul > li > a {
    font-size: 1em;
    color: white;
    display: block;
    text-align: center;
    width: 180px;
    transition: all 100ms;
}
.menu > img{
    height: 3em;
    vertical-align: middle;
    transition: all 200ms;
}
.menu > img{
    display: block;
    text-align: center;
    padding: 1em;
    margin-right: 1em;
    border-radius: 15px;
    transition: all 200ms;
}
.menu:hover > img{
    transform: rotate(90deg);
}
.menu:hover {
    background-color: rgb(25,25,25);
    border-left: 1px solid white;
}


/*--Menu Gauche------------------------------------------------*/
.menu_gauche{
    height: 30%;
    width: fit-content;
    text-align: left;
    margin: 1em 0 0 2em;
}
.menu_gauche > a{
    display: inline-block;
    text-align: center;
    padding: 1em;
    margin-right: 1em;
    border-radius: 15px;
    transition: all 200ms;
}
.menu_gauche > a > span{
    font-size: 0;
    color: white;
    transition: all 200ms;
}
.menu_gauche > a:hover > span{
    font-size: 1em;
    color: white;
}
.menu_gauche > a:hover {
    background-color: rgb(25,25,25);
    border-right: 1px solid white;
}
.menu_gauche > a > img{
    height: 3em;
    margin-right: 1em;
    vertical-align: middle;
    transition: all 200ms;
}
.menu_gauche > a:hover > img{
    transform: rotate(-90deg);
}



/*--Article---------------------------------------------------*/
main {
    display:grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 400px;
    gap: 2em;
    justify-content:center;
    justify-items: center;
    padding:0;
    margin: 2em;
}

main > a {
    width:100%;
    margin:0;
    padding: 0;
}
main > a:nth-child(3){
    grid-column: 2;
    grid-row: 1 / 3;
}
main > a:nth-child(4){
    grid-column: 3;
    grid-row: 1 / 2;
}
main > a:nth-child(5){
    grid-column: 3;
    grid-row: 2 / 3;
}

article {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    width: 100%;
    height: 100%;
    box-shadow: 0 0 20px rgb(255,255,255,0.3);
    border-radius: 10px;
    overflow: hidden;
}
article:hover {
    box-shadow: 0 0 100px rgb(255,255,255,0.3);
}
.bloc_text {
    display: grid;
    grid-template-columns: 1fr;
    justify-items: center;
    align-items: center;
    overflow: hidden;
    width: 100%;
    height: 100%;
    background-color: rgb(255,255,255,0);
    backdrop-filter: blur(0);
    box-shadow: 0 0 20px rgb(0,0,0,0.3);
    border-radius: 8px;
    opacity: 0;
    transition: all 400ms;
}
.bloc_text_int {
    background-color: rgb(255,255,255,0.7);
    padding: 0;
    margin: 0;
    width: 0;
    height: 0;
    border-radius: 10px;
    overflow: hidden;
    transition: all 400ms;
}
article:hover > .bloc_text {
    backdrop-filter: blur(10px);
    background-color: rgb(255,255,255,0.4);
    opacity: 100%;
    transition: all 400ms;
}
article:hover .bloc_text_int {
    width: fit-content;
    height: fit-content;
    padding: 1em;
    margin: 2vw;
    transition: all 400ms;
}
.head {
    display: grid;
    grid-template-columns: 3fr 1fr;
    background-color: rgb(50,50,50);
    padding: 1em;
    margin: 0;
    position: relative;
    border-radius: 5px 5px 0 0;
}
.head > h1 {
    font-size: 1.5em;
    display:block;
    color: white;
    font-weight: 400;
    padding: 0;
    margin: 0;
}
.head > span {
    display: block;
    color: white;
    text-align: right;
    white-space: nowrap;
}

.head > span > img {
    height: 2.5em;
    vertical-align: middle;
}
P {
    background-color: white;
    padding: 1em;
    border-radius: 0 0 5px 5px;
    border: 2px solid rgb(50,50,50);
    margin: 0;
}
P > span {
    font-weight: 600;
}
.techno{
    display: block;
    text-align: right;
    margin: 1em 0 0.5em 0;
}




/*--articles---------------------------------------------------*/


.fansite{
    background-image: url(./img/fansite.png);
    background-position: left top;
    background-size: cover;
    transition: all 500ms;
}
.voyage{
    background-image: url(./img/voyages.png);
    background-position: center;
    background-size: cover;
    transition: all 500ms;
}
.moduleConnexion{
    background-image: url(./img/module-connexion.png);
    background-position: center top;
    background-size: cover;
    transition: all 500ms;
}
.livreOr{
    background-image: url(./img/livre-d-or.png);
    background-position: center top;
    background-size: cover;
    transition: all 500ms;
}
.reservationSalle{
background-image: url(./img/reservation-salle.png);
background-position: center top;
background-size: cover;
transition: all 500ms;
}


/*--Footer---------------------------------------------------*/

footer {
    color: white;
    display: block;
    width: 100%;
    margin-bottom: 2em;
    text-align: center;
}





/*--Version petits écrans---------------------------------------------------*/

@media screen and (max-width: 1250px) {
    main {
        grid-template-columns: repeat(2, 1fr);
    }
    main > a:nth-child(3){
        grid-column: auto;
        grid-row: auto;
    }
    main > a:last-child{
        grid-column: auto;
        grid-row: auto;
    }

}
/*--Version Mobile---------------------------------------------------*/

@media screen and (orientation: portrait) {
    main {
        grid-template-columns: repeat(1, 1fr);
        grid-auto-rows: 500px;
        grid-auto-columns: 100%;
    }
    main > a:nth-child(3){
        grid-column: auto;
        grid-row: auto;
    }
    main > a:last-child{
        grid-column: auto;
        grid-row: auto;
    }

article > .bloc_text {
    backdrop-filter: blur(0);
    background-color: rgb(255,255,255,0.3);
    opacity: 100%;
    transition: all 400ms;
}

.bloc_text {
    align-items:flex-end;
    overflow: visible;
}
.bloc_text_int {
        box-shadow: 0 0 20px rgb(50,50,50,0.5);
        border: 1px solid rgb(25,25,25);
        width: fit-content;
        height: fit-content;
        padding: 1em;
        margin: 2vw;
        overflow: visible;
    }
    

}