/*GENERAL*/
@font-face {
	font-family:"Perfectly";
    src:url('../ressources/font/perfectly.otf');
}

@font-face {
	font-family:"Satoshi";
    src:url('../ressources/font/Satoshi-Regular.otf');
}

@font-face {
	font-family:"Satoshi";
  	font-weight: bold;
    src:url('../ressources/font/Satoshi-Bold.otf');
}

html{
    font-family:"Satoshi";
    color:#18000C;
  	background-color:#FFF5F0;
}

body{
    margin:0;
    padding:0;
    width: auto;
}

section{
    margin:0 auto;
  	padding-left:10px;
 	padding-right:10px;
    padding-top:32px;
}

#nightheader{
	display:none;
}

.night{
	display:none;
}

h1, h2, h3{
  font-family:"Perfectly";
    color: #18000C;
}
  
h4{
    color:#FFF;
    padding:20px;
    background-color:#400000;
    border-radius:36px;
}

p{
    text-align: left;
    line-height:1.4;
	color: #400000;
}

a{
  color:#18000C;
  text-decoration: underline 0.15em #18000C;
  text-underline-offset: 0.2em;
  transition: text-decoration-color 300ms, text-underline-offset 300ms;
}

a:hover{
  text-decoration-color: #FFF5F0;
  text-underline-offset: 0.4em;
  color:#18000C;
}

p b{
 color:#000; 
}

figcaption {
    padding: 8px;
    text-align: center;
}

hr{
    height:0px;
    border-width:0;
    margin-top:24px;
  	margin-bottom:24px;
}

u{
  text-decoration:underline;
}


/*Formatage des éléments*/

.hide{
	display:none;
}

.show{
	display:block;
}

.centre{
    display:block;
    margin : auto ;
    padding : auto ;
    text-align : center;
}

.left{
    text-align:left;
}

.right{
    display:block;
    margin : auto ;
    padding : auto ;
    text-align:right;
}

.bottom{
  	position:absolute;
  	bottom:36px;
    right: 24px;
}

#resultat{
  	border-radius: 36px;
	padding-left: 5%;
	padding-right: 5%;
	padding-top: 32px;
	padding-bottom: 32px;
   	background-color: #FFF;
}

#chiffre{
	border-radius: 64px;
	padding-left: 20px;
	padding-right: 20px;
	padding-top: 8px;
	padding-bottom: 8px;
  	color:#FFF;
	background-color:#18000C; 
  	text-align:center;
  	max-width:max-content;
  	display:inline;
}

#dl{
    padding-top : 12px;
  	padding-bottom : 12px;
 	padding-left : 32px;
  	padding-right : 32px;
    border-radius: 32px;
  	border:0px solid;
	color : #FFF;
    text-align:center;
  	text-decoration: none;
  	font-weight: bold;
  	max-width: max-content;
    background-color:#18000C;
}

#dl p, #dl a{
    text-decoration: none;
    color:#FFF;
}

#dl:hover{
  	text-decoration: none;
  	cursor: pointer;
  	background-color: #888;
}

.green{
  background-color:#00786C;
}

.red{
  background-color:#DC0714;
}


/* Accordéon FAQ */
.accordion {
  background-color: initial;
  color: initial;
  border:none;
  cursor: pointer;
  padding-top: 24px;
  padding-bottom: 24px;
  width: 100%;
  text-align: left;
  outline: none;
  font-weight: bold;
  line-height:2.2;
}

.active, .accordion:hover {
    background-color: initial;
  	color: initial;
}

.panel {
  padding: 0 32px;
  background-color: initial;
  color: initial;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.33s ease-out;
} 

button{
  font: inherit;
}

/* Navigation */

header{
    margin:30px;
}

nav{
    position: sticky;
    top: 10px;
	margin:0px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
}

nav ul {
  list-style-type: none;
  padding:0;
  overflow: hidden;
}

nav li {
  float: left;
  width:29.33%;
  margin-right:2%;
  margin-left:2%;
}

nav li a {
  display: block;
  text-align: center;
  text-decoration: none;
  border-radius:36px;
  color:#FFF;
  background-color: #18000C; 
}

nav li a:hover{
    transition-property: background-color;
	transition-duration: 0.5s;
  	transition: 0.5s;
  	color:#FFF;
    background-color:#888;
}

/*Cookies*/

#bandeau{
    color:#400000;
    background-color:#FFF;
    padding:10px;
    margin:20px;
    border-radius:36px;
    font-size:small;
}


/* Tableaux */

table {
    border-collapse:collapse;
    overflow:auto;
    width: 100%;
 }
 
th, td {
    border:1px solid #E1DDE4;
    padding: 10px;
 }
 
 th{
   color:#FFF;  
   background-color:#F7F1EF;
 }


/*Formulaire */

form {
	-webkit-appearance:none;  
 }
 
input/*, textarea, select*/{
	padding:14px;
  	border:0.5px solid #888;
	border-radius:32px;
	background-color:#FFF;
  	font: inherit;
  	color:#400000;
  	font-size:12px;
    transition: border 0.33s ease-out;
 }

form .text{
 width:192px; 
}

form .date{
  width:96px;
}

input:focus, textarea:focus, select:focus {
  outline:none;
  border:1px solid #18A558;
}
 
label{
   	font: inherit;
  	color:#888;
  	font-size:12px;
}

input::placeholder{
 font-weight: bold;
  color:#888;
}

.checkbox{
	padding:16px;
  	border:none;
	border-radius:32px;
  	font-size:12px;
    background-color: #FFF;
    color: #000;
    -webkit-appearance: none;
}

.checkbox:active{
  outline:none;
  border:none;
  background-color: #888;
}

/*GRAND ECRAN */
@media screen and (min-width: 720px){
	section{
		width:720px;
	}
	
	header img{
    	max-width:480px;
    }
  
  	nav ul{
    	width:480px;
    	margin-top:12px;
    	margin-bottom:12px;
  	}
  
  	nav li a{
        padding-top: 22px;
  		padding-bottom:22px;
  }
	
	#imgz img{
	    width:30%;
	}
  
  	#imgz2 img{
	    width:70%;
	}
	
	#logo img {
        max-width:70%;
        height: auto;
    }
}

/* PETIT ECRAN */
@media screen and (max-width: 720px){
    html{
        font-size: small;
    }
    
    section{
        width:90%;
    }
    
    header img{
    	max-width:90%;
    }
  
    nav ul{
    	width:100%;
     	margin-top:0px;
      	margin-bottom:0px;
  	}
  
    nav li a{
        padding-top: 16px;
  		padding-bottom:16px;
  	}
    
	#imgz img{
	    width:50%;
	}
	
	#imgz2 img{
	    width:80%;
	}
	
	#logo img {
        max-width: 70%;
        height: auto;
    }
}

/* Pied de page */

footer{
    padding: 30px;
    background-color : #18000C;
}

footer p{
    text-align:center;
    color:#FFF;
    font-size:small;
}

footer a{
    text-decoration: none;
    color:#FFF;
}

footer a:hover{
  	text-decoration: underline;
  	color:#FFF;
}