/**************************
HTML
PAR DEFAUT
HAUT DU SITE
PHOTOS
CONTENU
WRAPPER
FORMULAIRE
PIED DE PAGE
@MEDIA TABLETTE
@MEDIA ORDINATEUR
***************************/



/**************************
PAR DEFAUT
***************************/
html * {
    box-sizing: border-box;
}

/*
sousbtration : 
height
padding
border

ne fonctionne pas pour les:display: 
margins
}*/


/**************************
HAUT DU SITE
***************************/
body {
    margin: 0;
    font-family: 'Milky Coffee';
    font-size: 1rem;
    font-weight: 700;
    /* 16px */
}

p {
    margin-bottom: 40px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    font-family: 'Oswald', sans-serif;
}

/**************************
PHOTO
***************************/
a.btn {
    background-color: white;
    box-shadow: 0 0 10px black;
    padding: 10px;
    /* border: 2px solid rgb(255, 255, 255); */
    border-radius: 20px;
    color: #7393bc;
    text-transform: uppercase;
    font-weight: bold;
    font-size: 80%;
    text-decoration: none;
    transition: background-color 0.6s ease-in-out;
}

/*mettre toujours un point entre la même classe et même parent*/
a.btn.large {
    display: block;
    margin: 0 15%;
}

a.btn:hover {
    background-color: #7393bc;
    color: white
}

header {
    background-color: rgb(255, 255, 255);
    /*height: 100px;*/
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    text-align: center;
    /*placement horizontale du logo et menu*/
}

header img {
    height: 100%;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding-left: 0;
}

header nav {
    /*width: 40%;*/
    display: flex;
    align-items: center;
    /*center verticalement*/
    justify-content: center;
    /*justify-content: flex-end;*/
    /*alignement à droite*/
}

header nav ul li {
    display: inline;
    margin: 0 10px;
}

header nav ul li a {
    padding: 10px;
    display: inline-block;
    background-color: transparent;
    color: #7393bc;
    text-transform: uppercase;
    text-decoration: none;
    font-weight: bold;
}

header nav ul li a:hover {
    text-decoration: underline;
}


.image {
    height: 300px;
    background-position: center;
    background-size: cover;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.image h1 {
    color: rgb(255, 255, 255);
    font-size: 200%;
    /*font-size: 400%;*/
    text-shadow: -5px 0 10px black;
}

.image h2 {
    color: rgb(255, 255, 255);
    font-size: 200%;
    text-shadow: -5px 0 10px black;
    text-transform: uppercase;
}


.image.entete {
    background-image: url(../images/montagne.jpg);
}

.image .centrer {
    display: inline-block;
}

.image.bas {
    background-image: url(../images/montagne2.jpg);

}

/**************************
CONTENU
***************************/

main {
    /*background-color: rgb(200, 255, 0);*/
    width: 70%;
    margin: 40px auto;
}

main section {
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

main section img {
    width: 100%
}

main section.cards {
    margin: 20px 0px;
}

main section.cards article {
    background-color: white;
    /*margin: 0 0 2% 0;*/
    margin: 0 0 20px 0;
    /*width: 25%;*/
    width: 100%;
    box-shadow: 0px 0 10px black;
    border-radius: 20px;
}

main section.cards article img {
    border-radius: 20px 20px 0 0;
    margin: 0%;
}

main section.cards article p {
    padding: 0 20px 10px 20px;
    margin: 0px;
    text-align: justify;
}

main section.large article {
    display: flex;
    flex-direction: column;
    width: 100%;
    /*background-color: blueviolet*/
}

/*chevron = s'applique aux enfants immediats, pas applicable aux sous-enfants*/
main section.large article > div {
    width: 50%;
}

/*************
PAGE DETAILS
**************************/
main.gabarit-page div:first-child {
    width: 100%;
}


/*************
FIN PAGE DETAILS
**************************/

main section.large article div.image,
main.gabarit-page div.image {
    background-image: url(../images/montagne.jpg);
    /*image dans CSS pour pouvoir mettre en background*/
    background-size: cover;
    background-position: center;
    height: 500px;
}

main section.large article div.text {
    background-color: white;
    box-shadow: 0px 0 10px black;
    padding: 20px;
    display: flex;
    align-items: center;
    margin-top: 20px;
    /*margin-left: 40px;*/
    /* active scroll bar si superieur à 500px*/
    height: 500px;
    overflow-y: auto;
}

main section.large article div.text div {
    margin: auto;
    /*aligment auto (haut et bas)*/
}



/**************************
WRAPPER
***************************/

section .wrapper {
    width: 70%;
    background-color: white;
    margin: 0 auto;
    /*pour centrer la section */
}

section .wrapper.small {
    width: 70%;
    background-color: white;
    margin: 0 auto;
    /*pour centrer la section */
}


/**************************
FORMULAIRE
***************************/
.form-group {
    display: block;
    background-color: rgb(255, 255, 255);
    margin-bottom: 20px;
}

.form-group label {
    width: 100%;
    display: inline-block;
    color: #7393bc;
    margin-bottom: 5px;
}

.form-group input,
/*virgule permet de donner les mêmes propriétés à deux elements*/
.form-group textarea {
    width: 100%;
    display: inline-block;
    border-radius: 20px;
    border: 3px solid #7393bc;
    padding: 10px;
    font-weight: bold;
}

.bouton {
    width: 100%;
    display: inline-block;
    border-radius: 20px;
    padding: 10px;
    background-color: #7393bc;
    border: 3px solid #7393bc;
    /*par défaut il y a un border noir*/
    color: white;
    text-transform: uppercase;
}

.bouton:hover {
    background-color: white;
    color: #7393bc
}
/**************************
PIED DE PAGE
***************************/
footer {
    text-align: center;
}

footer img {
    width: 100px;
}

/**************************
TABLETTE -> taille à partir de 600px jusqu'à 999px
***************************/


@media screen and (min-width: 600px) {
    header {
        height: 100px;
        flex-direction: row;
        /*placement vertical du logo et menu*/
    }

    .image h1 {
        font-size: 400%;

    }


    main section.cards {
        flex-wrap: wrap;
        /*2 articles sur une ligne*/
    }

    main section.cards article {
        width: 45%;
    }

    main section {
        flex-direction: row;
    }
    section .wrapper.small {
        width: 50%;
    }
}

/*fin @media*/


/**************************
ORDINATEUR -> taille à partir de 1000px jusqu'à l'infini
***************************/

@media screen and (min-width: 1000px) {

    main section.cards article {
        width: 30%;
        margin: 0 0 2% 0;
    }

    main section.large article {
        flex-direction: row;
        /*background-color: blueviolet*/
    }

    main section.large article>div {
        width: 50%;
    }

    main section.large article div.text {
        margin-top: 0px;
        margin-left: 40px;

    }
    section .wrapper.small {
        width: 30%;
    }

}