/*Reset CSS*/
*{
    margin: 0px;
    padding: 0px;
    font-family: Avenir, sans-serif;
}

body {
	/*background-color: darkorange;*/
    /*background-image: linear-gradient(to top right, darkorange, rgb(236, 172, 115));*/
    background-image: linear-gradient(to top right, darkgrey, lightgrey);
    overflow: hidden;
    /*background-image: url(http://guigui793.free.fr/mesono/static/madras2.jpg);*/
}

/* Header */
#top-header {
	background-color: lightgray;
	padding: 0px 20px;
    height: 1.5rem;
}

#top-header ul{
    list-style-type: none;
    display: flex;
	justify-content: space-between;
}
#top-header ul li{
    /* flex: 1 1 auto; */
    text-align: center;
    position: relative;
}

#title-header{
	/*background-color: darkorange;*/
	text-align: center;
	border: 1px solid black;
    height: 4.5rem;
    /*background-image: url(http://guigui793.free.fr/mesono/static/madras.jpg);*/
}

.logo {
	height: 40px;
}

/*NavBar*/
nav{
    width: 100%;
    margin: 0 auto;
    /*background-color: #ffe28f;*/
    position: sticky;
    top: 0px;
    height: 3rem;
    background-image: linear-gradient(to top right, #f5cc5e, #ffe28f);
}

nav ul{
    list-style-type: none;
    display: flex;
}

nav ul li{
    flex: 1 1 auto;
    text-align: center;
    position: relative;
}

nav a{
    display: block;
    text-decoration: none;
    color: black;
    border-bottom: 2px solid transparent;
    padding: 10px 0px;
}

nav a:hover{
    color: red;
    border-bottom: 2px solid gold;
}

.sous{
    display: none;
    box-shadow: 0px 1px 2px #CCC;
    background-color: white;
    position: absolute;
    width: 100%;
    z-index: 1000;
}
nav > ul li:hover .sous{
    display: flex;
    flex-flow: column wrap;
}
.sous li{
    flex: 1 1 auto;
    text-align: left;
}
.sous a{
    padding: 10px;
    border-bottom: none;
}
.sous a:hover{
    border-bottom: none;
    background-color: RGBa(200,200,200,0.1);
}
.deroulant > a::after{
    content:" ▼";
    font-size: 12px;
}

nav .menu_burger {
  display: none;
}


/* Main */
main {
	display: flex;
	flex-wrap: wrap;
	padding: 0 10%;
	justify-content: space-between;
    height: calc(100vh - 1.5rem - 5rem - 3rem - 1.5rem); /* Top-header - title-header - nav - footer */
    overflow-y: auto;
}

main .flex_half{
	/*display: flex;*/
	flex-basis: 45%;
    /*background-color: lightsalmon;*/
}

main .flex_full{
	/*display: flex;*/
	flex-basis: 100%;
    /*background-color: lightsalmon;*/
}

fieldset {
    border-radius: 14px;
    padding: 10px 15px;
    margin-top: 10px;
    border: black 1px solid;
}

legend {
    /*background-color: lightsalmon;*/
    border-radius: 14px;
    padding: 0px 14px;
    border: 1px black dashed;
}

ul .nolist{
    list-style-type: none;
}

p+p { /* p qui est précédé d'un p */
    margin-top: 1em;
}

.ref_logo { /* Les logos de références */
    /* width: 200px; */
    max-width: 12em;
    height: 5em;
    /*object-fit: cover;*/ /* Garder les proportions de l'image tout en remplissant l'espace (si on force w et h)*/
}

/* Other */
.div_ref {
    /*width: 100%;*/
    height: 3rem;
    display: flex;
    /* flex-wrap: no-wrap; */
    justify-content: space-between;
    padding-left: 10%;
    padding-right: 10%;
    align-items: center; /* Pour centrer verticalement les images */
}

.div_ref .ref_logo {
    height: 2em;
}

/* Footer */
footer {
	background-color: lightgray;
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 1.5rem;            /* Footer height */
}

footer ul{
    list-style-type: none;
    display: flex;
    justify-content: space-between;
}

footer ul li{
    text-align: center;
    position: relative;
}

/* Not used if fieldset
.service_div {
    border: 1px black solid;
    border-radius: 15px;
    margin: 5px;
    padding: 10px;
    background-color: lightsalmon;
    width: 100%
}
*/
ul {
    padding-left: 40px
}

li {
    margin-top: 5px
}
.fa, .fa-solid {
    margin-right: 5px;
}


@media screen and (max-width: 600px) {
    main {
        padding: 0 2%;
    }
    nav li.menu_bigscreen {
        display: none;
        }
    nav li.menu_burger {
      display: block;
    }
    main .flex_half{
        flex-basis: 100%;
    }
    h2 {
        font-size: 1em;
    }
    }

    .div_fieldset {
        /*background-image: url(http://guigui793.free.fr/mesono/static/madras2.jpg);*/
        padding: 1vh;
        padding-top: 0vh;
        border-radius: 15px;
        margin: 2vh 0vh;
        width: 100%;
        background-image: linear-gradient(to top right, lightsalmon, sandybrown);
    }