html
{
    max-width: 100%;
    overflow-x: hidden;
}

body 
{
	margin: 0;
	min-height: 100vh;
	display: grid;
	grid-template-rows: auto 1fr auto;
    background-image: url("/ressources/background.jpg");
    background-repeat: no-repeat;
    background-attachment: fixed;
    background-position: center center;
    background-size: cover;
}

/* En-tête */
header 
{
    margin-bottom: 20px;
}


header > nav
{
    background-color: #F4F4F4;
    text-align: center;
    word-wrap: break-word;
}


@media screen and (max-width: 699px), print
{

    header > nav > a 
    {
        background-color: #F4F4F4;
        text-align: center;
        display: block;
    }
}

/* Pied de page */
footer 
{
    text-align: center;
    background-color: #F4F4F4;
}

/* Logo */
#logo
{
    width: 300px;
    display: block;
    margin-left: auto;
    margin-right: auto;
    cursor: pointer;
}

#logo_legende
{
    text-align: center;
    font-weight: bold;
}

/* Logo Facebook */
.logo_reseau
{
    width: 30px;
    margin-left: 20px;
    margin-right: 10px;
}

/* Fin logo */

.box
{
    width: 250px;
    background-color: white;
    text-align: center;
    border: 1px solid black;
    margin-bottom: 50px;
}

#contenu
{
    flex-grow: 2; 
    margin-bottom: 50px;
    width: 800px;
    text-align: center;
}

/* Sous-contenu */
.sous-contenu > div 
{
    margin-left: 5px;
    margin-right: 5px;
    margin-top: 30px;
}

.sous-contenu > ul > li 
{
    margin-top: 15px;
    text-align: left;
}

.sous-contenu > .coord
{
    margin-bottom: 2px;
    font-weight: bold;
}

.sous-contenu
{
    background-color: white;
    border: 1px solid black;
    margin-bottom: 20px;
    text-align: center;
}

.sous-contenu img
{
    max-width: 100%;
    height: auto;
}


/* Energies */
.illustration
{
    width: 300px;
    height: auto;
}

.expose 
{
    list-style-type: none;
}
/* Article */
.actualite 
{
    text-align: left;
}

.mini-title
{
    font-weight: bold;
    margin-bottom: 15px;
}

/* Fin sous-contenu */

/* Légendes images */
figcaption
{
    color: gray;
    font-size: 12px;
}

.erreur
{
    font-weight: bold;
    background-color: darkred;
    color: white;
}

.succes
{
    font-weight: bold;
    background-color: darkgreen;
    color: white;
}

hr
{
    color: 1px solid black;
}

/* Affichage */
.resultats
{
    margin-bottom: 50px;
}

.resultats-title
{
    font-weight: bold;
}

.resultats-affiche
{
    width: 125px;
    height: auto;
}

.resultats-miniature
{
    width: 300px;
    height: auto;
}


/* Erreur serveur */
.serv_err
{
    background-color: #F4F4F4;
    margin-top: 250px;
    height: 150px;
    text-align: center;
}

.serv_err a
{
    color: darkblue;
    text-decoration: none;
    font-weight: bold;
}

/* Ecran mobile */
@media screen and (max-width: 999px)
{
    .lien 
    {
        color: black;
        display: block;
    }

    .box
    {
        width: 100%;
    }
    
    .box > img
    {
        max-width: 100%;
        height: auto;
    }

    
    #contenu
    {
        width: auto;
        margin-left: auto;
        margin-right: auto;
    }
}

/* Ecran large */
@media screen and (min-width: 1000px)
{
    .container 
    {
        width: 100%;
        display: flex;
        flex-direction: row;
    }

    .container-col 
    {
        width: 25%;
        display: flex;
        flex-direction: column;
        margin-right: 50px;
    }

    .lien 
    {
        color: black;
        font-size: 20px;
        margin-right: 20px;
    }
}

.registered-user
{
    color: darkblue;
    font-weight: bold;
}

.closebtn 
{
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
}

.closebtn:hover 
{
    color: black;
}

.popup
{
    text-align: center;
}