html {
    /* root */
    /* Par défaut la taille est de 16px (1rem = 16px) */
    /* Pour simplifier on veut 1rem = 10px  soit 62.5% */
    font-size: 62.5%;
}

*,
::before,
::after {
    /*sélectionne tout et les pseudo éléments*/
    box-sizing: border-box;
    /* Ne modifie pas la taille de l'élément si on ajoute une bordure ou du remplissage. Permet de respecter facilement des dimensions */
    margin: 0;
    /* Supprime les margin par défaut  */
    padding: 0;
    /* Supprime les padding par défaut */
}

/* ############# Elements communs  ################################################################### */

/* ########## BODY ########################## */
body {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    background-color: rgb(245, 245, 245);
    overflow: scroll;
}

/* ########## CONTAINER ##################### */
.container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}

/* ########## ZONE HEADER ################### */
.entete {
    width: 100%;
    height: fit-content;
    background-color: white;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.logo img {
    width: 30rem;
    height: auto;
    margin: 1rem;
}

.banniere {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.entete h1 {
    font-family: "Aaargh";
    font-style: normal;
    font-weight: 900;
    color: rgba(185, 46, 46, 0.473);
    /*text-align: center;*/
    font-size: 6rem;
}

.entete h2 {
    font-family: "Aaargh";
    font-style: normal;
    font-weight: 700;
    color: black;
    /*text-align: center;*/
    font-size: 2.1rem;
}

.entete .social {
    width: 14rem;
    height: auto;
    margin-right: 1rem;
    text-align: center;
    font-size: 1.6rem;
}

/* ########## ZONE NAV ###################### */
.navigation {
    padding-top: 1rem;
    padding-bottom: 1rem;
    width: 100%;
    height: 7rem;
}

#menuPrinc {
    /*ul 1er niveau*/
    display: flex;
    flex-direction: row;
    list-style-type: none;
    justify-content: center;
    /*pour row*/
    align-items: flex-start;
    /*pour col*/
    position: relative;
    /*Pour positionner la sousNav par dessus*/
    padding-top: 2rem;
}

/*Affichage et masquage du sous menu*/
.sousNav {
    /*ul 2ième niveau*/
    list-style-type: none;
    background-color:  rgb(190, 162, 162); 
    /*background-color:  rgb(205, 201, 201);*/ 
    /*background-color: white;*/
    text-align: start;
    display: none;
    position: absolute;
    /*Pour positionner la sousNav par dessus*/
    z-index: 999;
    /*Pour positionner la sousNav par dessus*/
}

#menuPrinc > li:nth-child(5):hover .sousNav {
    /*Affiche le sousNav au survol*/
    display: block;
}

/*Masquage du burger*/
#menuPrinc > li:nth-child(1) > a {
    display: none;
}

/*mise en forme des a 1er niveau */
#menuPrinc > li > a {
    text-decoration: none;
    font-family: "Aaargh";
    font-style: normal;
    font-weight: 700;
    font-size: 2rem;
    color: black;
    padding: 1rem;
}

/*mise en forme des li du 2ième niveau */
#menuPrinc > li > ul > li {
    margin-bottom: 1rem;
    margin-top: 1rem;
    /*padding-bottom: 2rem;*/
    /*
    border-bottom: 0.5px solid rgb(167, 167, 167);
    border-top: 0.5px solid rgb(167, 167, 167);
    */
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

/*mise en forme des a 2ième niveau */
#menuPrinc > li > ul > li > a {
    text-decoration: none;
    font-family: "Aaargh";
    font-style: normal;
    font-weight: 700;
    font-size: 2rem;
    color: black;
    padding: 1rem;
}

/*Survol des li 1er niveau*/
#menuPrinc > li:hover {
    display: block;
    background-color: rgb(163, 162, 162);
}

#menuPrinc > li > ul > li:hover {
    display: block;
    background-color: rgb(163, 162, 162);
}


/*Pour la flèche qui signale un sous-menu*/
.menuItem span {
    color: black;
    font-size: 10px;
}


/* ########## ZONE PRINCIPALE ############### */
.zone_principale {
    width: 90%;
    height: auto;
    margin-bottom: 1rem;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

/* ########## ZONE ASIDE GAUCHE ############# */
.aside_gauche {
    width: 8%;
    height: auto;
    border: 1px solid rgba(185, 46, 46, 0.473);
    text-align: center;
    color: red;
}

.aside_gauche img {
    max-width: 100%;
    height: auto;
}

/* ########## ZONE MAIN ##################### */
.central {
    width: 80%;
    height: auto;
    margin: 0rem 1rem 0rem 1rem;
}

/* ########## ZONE ASIDE DROITE ############# */
.aside_droite {
    width: 8%;
    height: auto;
    border: 1px solid rgba(185, 46, 46, 0.473);
    text-align: center;
    color: red;
}

.aside_droite div img {
    max-width: 100%;
    height: auto;
}

/* ########## ZONE FOOTER ################### */
.pied_de_page {
    width: 100%;
    padding: 1rem 0 1.5rem 0;
    height: fit-content;
    background-color: black;
    text-align: center;
    color: white;
    font-family: 'century';
    font-size: 2rem;
}


/* ############# Pour les écrans larges  ################################################################### */
@media screen and (min-width: 1025px) {}


/* ############# Pour les écrans moyens  ################################################################### */
@media screen and (min-width: 769px) and (max-width: 1024px) {

    /* ########## ZONE HEADER ################### */
    #logoEnt {
        width: 15rem;
    }

    body > div > header > div.banniere > h1 {
        font-size: 4rem;
    }

    body > div > header > div.banniere > h2 {
        font-family: 'century';
        font-size: 1.4rem;
    }

    body > div > header > div.social {
        width: 12rem;
    }

    /* ########## ZONE NAV ###################### */
        /*mise en forme des a 1er niveau */
        #menuPrinc > li > a {
            font-size: 1.2rem;
            padding: 1rem;
        }
    
        /*mise en forme des li du 2ième niveau */
        #menuPrinc > li > ul > li {
            margin-bottom: 1rem;
            margin-top: 1rem;
            padding-bottom: 1rem;
        }
    
        /*mise en forme des a 2ième niveau */
        #menuPrinc > li > ul > li > a {
            font-size: 1.2rem;
            padding: 1rem;
        }


    /* ########## ZONE PRINCIPALE ############### */
    .zone_principale {
        width: 95%;
        flex-wrap: wrap;
    }

    /* ########## ZONE ASIDE GAUCHE ############# */
    body > div > section > aside.aside_gauche {
        width: 100%;
        height: fit-content;
        margin-bottom: 1rem;
    }

    /* ########## ZONE MAIN ##################### */
    #centre {
        width: 87%;
        height: 100%;
    }

    /* ########## ZONE ASIDE DROITE ############# */
    body > div > section > aside.aside_droite {
        width: 10%;
        height: fit-content;
    }

    /* ########## ZONE FOOTER ################### */
    .pied_de_page {
        padding: 1rem 0 1rem 0;
        font-size: 1.5rem;
    }
}


/* ############# Grille pour les petits écrans mobile ################################################################### */
@media screen and (max-width: 768px) {

    /* ########## ZONE HEADER ################### */
    .logo img {
        width: 9rem;
        margin: 0.5rem;
    }

    .entete h1 {
        font-size: 2rem;
    }

    .entete h2 {
        font-family: "centuryBI";
        font-size: 1rem;
    }

    .entete .social {
        width: 9rem;
        font-size: 1.2rem;
    }

    /* ########## ZONE NAV ###################### */

    #menuPrinc {
        /*ul 1er niveau*/
        flex-direction: column;
        align-content: flex-start;
        padding-left: 1rem;
    }

    /*Masque ou ajoute le menu avec la classe .menu*/
    .menu .menuItem {
        display: none;
    }

    .menuresponsive .menuItem {
        background-color:  rgb(205, 201, 201);
        width: 50%;
        padding-top: 1rem;
        padding-bottom: 1rem;  
    }

    #menuPrinc > li:nth-child(1) > a {
        /*Affiche le Burger*/
        display: block;
        font-size: 2.5rem;
    }

    /*mise en forme des a 1er niveau */
    #menuPrinc > li > a {
        font-size: 1.2rem;
        line-height: 1.8rem;
        padding: 1rem;
    }

    /*mise en forme des li du 2ième niveau */
    #menuPrinc > li > ul > li {
        margin-bottom: 1rem;
        margin-top: 1rem;
        padding-bottom: 1rem;
    }

    /*mise en forme des a 2ième niveau */
    #menuPrinc > li > ul > li > a {
        font-size: 1.2rem;
        padding: 1rem;
    }

    /* ########## ZONE PRINCIPALE ############### */
    .zone_principale {
        flex-wrap: wrap;
    }

    /* ########## ZONE ASIDE GAUCHE ############# */
    .aside_gauche {
        width: 100%;
        height: fit-content;
        margin-bottom: 0.5rem;
        font-family: 'century';
        font-weight: bold;
    }

    /* ########## ZONE MAIN ##################### */
    .central {
        width: 100%;
        height: 95%;
    }

    /* ########## ZONE ASIDE DROITE ############# */
    .aside_droite {
        width: 100%;
        height: fit-content;
        margin-top: 1rem;
        font-weight: bold;
    }

    /* ########## ZONE FOOTER ################### */
    .pied_de_page {
        padding: 1rem 0 1rem 0;
        font-size: 1.2rem;
    }

}