/**/
*,
::before,
::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}







/*** En grand ecran on va utiliser grid et en petit format < 882px on passe en flex-box*/
.container-grille {
    height: 100vh;
    width: 100%;
    display: grid;
    grid-template-columns: 250px 160px 1fr 300px;
    grid-template-rows: auto 1fr auto;
}

nav {
    background-color: #FFF8EC;
    /* border: 1px solid #171414; */
 }

nav .colonne-03 { align-items: flex-start; }

main {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

main img {
    max-width: 100%;
    min-width: 70%;
    height: auto;
}

h1 {
    display: none;
}

.liste-sidenav {
    list-style-type: none;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    padding-top: 40px;
}

.liste-sidenav li {
    height: 150px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

/*
* les changements qui  s'opérent lorsque l'affichage pass en petit format
*/
@media screen and (max-width: 882px) {
    .container-grille {
        display: flex;
        flex-direction: column;
    }

    .liste-sidenav {
        flex-direction: row;
        max-height: auto;
        padding:5px;
        /* max-height: 100%; */
        justify-content: center;
    }
    
    .liste-sidenav li {
        width: auto;
        height: auto;
        margin: 0 5px;
    }

    main p {
        min-height: 500px;
    }
    /*on affiche pas le texte droits d'auteur et derniere maj en petit format (pour l'instant)*/ 
    main .acceuil-droits{  display:none; }

    main { order: 1;}
    nav  { order: 2;}
}