/* le fond du site */
body {
    background-color : #312e2b;
}

/* le milieu où il y aura le contenu */
.middle {
    width: 950px;
    margin-left: auto;
    margin-right: auto;
}

/* l'en-tête du site */
header {
    height: 498px;
    margin-top: -54px;
    background-image: url(../images/page_daccueil_arriere_plan.jpg);
    transition: 100ms;
}

/* l'en-tête quand on passe dessus l'image et le disparait et est remplacé par une autre images */
header:hover{
    background-image: url(../images/page_dacceuil_qui_change.jpg);
}

header:hover h1{
    color:transparent;
}

/* Le titre qui est écrit sur l'en-tête */
.enTeteTxt {
    font-size: 4.5em;
    padding-top: 1%;
    padding-right: 10px;
    padding-left: 10px;
    font-weight: bold;
    color : #ffffff;
    text-align: center;
}

/* le menu de navigation quand l'écran est grand*/
nav {
    display: block;
    height: 3em;
    margin-top: -1em;
    background-color: #000000;
}

.boutonMenu {
    display: block;
    text-decoration:none;
    color: #ffffff;
    font-family: Verdana, Arial, 'Trebuchet MS';
    font-size: 1.68em;
}

.menu{
    display: block;
    display: inline-block;
    padding-left: 19.5px;
    padding-right: 19.5px;
    padding-top: 5px;
    text-align: center;
}

.menu:hover {
    font-weight : bold;
}

/* mets en gras la page sur laquelle on se trouve */
.activ{
    font-weight:bold;
}

/* le texte du menu */
.contenu {
    margin-top: -27px;
    background-color: #ffffff;
    padding-bottom : 3%;
}

/* le pied de page */
/* conteneur du pied de page s'adapte à se qu'il on besoin */
.container{
    display: flex;
}

/* le fond du pied de page et ça couleur de texte */
footer {
    height: auto;
    margin-top: -16px;
    background-color: #000000;
    color : #ffffff;
}

/* comment est écrit le texte du pied de page */
.piedPage {
    width: 316px;
    text-align: center;
    font-family: Verdana, Arial, 'Trebuchet MS';
    font-size: 0.9em;
    margin-top: 10px;
    margin-bottom: 10px;
}

.piedPageListe{
    list-style: none;
}

/* style pour le titre contact dans le pied de page */
h5 {
    font-size: 1.05em;
    margin-bottom: -15px;
    margin-top: 0px;
    text-align: center;
    padding-left: 2.5em;
}

/* placé la date dans le pied de page */
.date{
    margin-top: 10px;
    margin-bottom: -12px;
}

/* Style pour le nom de la page */
h2 {
    font-size: 1.9em;
    padding-top: 19px;
    padding-left: 25px;
    font-family: Verdana, Arial, 'Trebuchet MS';
}

/* style pour les titre sur la page */
h3 {
    margin-top: -12px;
    padding-left: 55px;
    font-size: 1.5em;
    font-family: Verdana, Arial, 'Trebuchet MS';
}

/* marge entre les paragraphe */
article + article{
    padding-top: 15px;
}

/* style pour les paragraphe et le texte à l'interieur */
div p{
    margin-top: -16px;
    padding-left: 65px;
    margin-right: 50px ;
    padding-bottom: 8px;
    font-size: 1.035em;
    font-family: Verdana, Arial, 'Trebuchet MS';
    text-align: justify;
}

/* le site sur ordinateur et en dessous de 975 px*/
@media screen and (max-width: 975px){
    /* la page blanche au milieu doit prendre la taille maximum */
    .middle {
        width: 100%;
    }
    
    header {
        flex: auto;
        height: 498px;
        background-position: right;
    }

    /* le menu burger pour naviguer sur le site */
    .btn{
        display: inline-block;
        cursor: pointer;
    }

    .btn-navbar {
        width: 10vw;
        float: right;
        padding: 12px 15px;
        margin-right: 5px;
        margin-left: 5px;
        z-index : 2;
        position: absolute;
        top: 435px;
        left: 2px;
    }

    .icon-bar {
        display: block;
        width : 30vw;
        height: 5vw;
        max-width: 30px;
        max-height: 5px;
        background-color: #ffffff;
    }

    .icon-bar + .icon-bar {
        margin-top: 4px;
    }

    nav {
        display: none;
        height: 50px;
        background-color: #000000;
        margin-top: -2px;
        z-index : 1;
        position: absolute;
    }

    nav ul{
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    nav li{
        padding-top: 1em;
        padding-bottom: 1em;
        text-align: center;
        background-color: #000000;
    }

    nav li:hover {
        background-color: #fdfdfd;
    }

    nav li:hover a{
        color: rgb(0, 0, 0);
    }

    /* raccourcir la taille à gauche pour les titre des articles */
    h3{
        margin-left: -13px;
    }
    
    /* changer les marge pour les articles */
    div p{
        padding-left: 42px;
        margin-right: 35px;
        padding-bottom: 8px;
    }

    /*ce n'est plus le modèle de page CSS*/
    .droite{
        margin-right: -15px;
    }
    
    .gauche{
        margin-left: -15px;
    }
    
    h4{
        margin-left: -15px;
        font-size: 4vw;
    }
        
    .Dame{
        margin-top: -22px;
    }
    
    .fou{
        margin-top: -9px;
    }
    
    .h4pions{
        margin-left: 0px;
    }
}

/* le site sur mobile*/
@media (max-width: 420px) and (max-height: 850px){
    /* la page blanche au milieu doit prendre la taille maximum */
    .middle {
        width: 100%;
    }
    
    /* faire un zoom vers la droite de l'image quand le site est mode mobile */
    header {
        flex: auto;
        height: 498px;
        background-position: right;
    }
    
    /* enlevé la fonctionnalité qui change l'image quand on passe dessus avec la souris*/
    header:hover{
        display: none;
    }
    
    header:hover h1{
        display: none;
    }

    /* modifier la taille du titre dans l'en-tête */
    .enTeteTxt {
        font-size: 12vw;
        padding-top: 9%;
    }

    /* le style pour le menu burger */
    .btn{
        display: inline-block;
        cursor: pointer;
    }

    .btn-navbar {
        width: 10vw;
        float: right;
        padding: 12px 15px;
        margin-right: 5px;
        margin-left: 5px;
        z-index : 2;
        position: absolute;
        top: 417px;
        left: 2px;
    }

    .icon-bar {
        display: block;
        width : 30vw;
        height: 5vw;
        max-width: 30px;
        max-height: 5px;
        background-color: #ffffff;
    }

    .icon-bar + .icon-bar {
        margin-top: 4px;
    }

    nav {
        display: none;
        height: 50px;
        background-color: #000000;
        margin-top: -3vw;
        z-index : 1;
        position: absolute;
    }

    nav ul{
        list-style: none;
        margin: 0;
        padding: 0;
        display: flex;
        flex-direction: column;
    }

    nav li{
        padding-top: 1em;
        padding-bottom: 1em;
        text-align: center;
        background-color: #000000;
    }

    nav li:hover {
        background-color: #fdfdfd;
    }

    nav li:hover a{
        color: black;
    }
  
    /* modifier le pied de page pour qu'il s'adapte mieux à la taille du mobile */
    footer {
        height: auto;
        margin-top: -16px;
        background-color: #000000;
        color : #ffffff;
    }
    
    .piedPage {
        height: auto;
        width: auto;
        text-align: center;
        font-family: Verdana, Arial, 'Trebuchet MS';
        font-size: 2.9vw;
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .contact{
        margin-left: -19px;
        padding-top: 4px;
    }
    
    .piedPageListe{
        list-style: none;
    }

    /* centrer les element du pied de page */
    .container{
        align-items: center;
        display: flex;
    }

    /* supprimer la partie du pied de page où j'explique pourquoi j'ai fait se site */
    .projet{
        display : none;
    }

    /* modifier les marge de la date dans le pied de page */
    .date{
        margin-top: -12px;
        margin-bottom: -12px;
        margin-left: -15px;
    } 
    
    /* rendre les site plus responsable à l'écran utilisé et mieux les placé */
    h5 {
        font-size: 3.02vw;
        margin-bottom: -16px;
        margin-top: 0px;
        text-align: center;
        padding-left: 1.5em;
    }
    
    h2 {
        font-size: 6vw;
        margin-left: -10px;
        margin-bottom: 25px;
    }
    
    h3 {
        font-size: 5vw;
        margin-left: -25px;
        margin-bottom: 23px;
    }

    /* modifier les styles de paragraphes pour qu'il s'adapte mieux au téléphone */
    div article + div article{
        padding-top: 15px;
    }
    
    div p{
        font-size: 4.24vw;
        padding-left: 30px;
        margin-right: 25px;
        padding-bottom: 8px;
    }

    /*ce n'est plus le modèle de page CSS*/
    .droite{
        margin-right: -25px;
    }

    .gauche{
        margin-left: -25px;
    }

    h4{
        margin-left: -25px;
        font-size: 4vw;
    }

    .Dame{
        margin-top: -22px;
    }

    .fou{
        margin-top: -9px;
    }

    .h4pions{
        margin-left: 0px;
    }

    img{
        width: 158px;
        height: auto;
    }
}

/*ce n'est plus le modèle de page CSS*/
h4{
    margin-top: 0px;
    padding-left: 55px;
    margin-bottom: 19px;
    font-size: 1.2em;
    font-family: Verdana, Arial, 'Trebuchet MS';
}

.gauche{
    float :left;
    padding-left: 55px;
    padding-right: 12px;
    margin-top: 3px;
}

.droite{
    float :right;
    padding-right: 50px;
    padding-top: 15px;
    padding-left: 12px;
}

.texteRegles2{
    padding-top: 12px;
    margin-bottom: 8px;
}

.pions{
    float: none;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-around;
}

.pions h4,.pions p{
    padding-left: 0px;
}

.fou{
    float: none;
    display: flex;
    flex-direction: row-reverse;
    align-items: flex-start;
    justify-content: space-around;
    margin-top: 49px;
    margin-bottom: 38px;
}

.fou p{
    margin-right: 0px;
    margin-bottom: 8px;
    margin-top: 8px;
}

.fouImg{
    margin-top: -8px;
}

.texteRegles{
    margin-bottom: 55px;
}


.Dame{
    margin-top: 62px;
}