/** 
 * main.css
 * 
 * 1. General HTML tags
 * 2. Masthead area
 * 3. Main content and sidebar
 * 4. Footer
 * 5. Form
 * 6. Media queries for responsive layout
 * 
 */

/*********************************************************************
 * 1. General HTML tags
 *
 */

* {
	box-sizing: border-box; 
}

body {
	padding: 0 5% 5%;
	max-width: 1600px; 
	margin: 0 auto; 
	background-color: #fffdd0;
}

body, td, input[type=text], textarea, input[type="email"] {
	font-family: sans-serif;
	font-size: 105%; 
	line-height: 1.4em;
	color: #000505; 
}

.FormBuilder.InputfieldForm input:not([type="radio"]):not([type="checkbox"]):not([type="file"]):not([type="range"]), .FormBuilder.InputfieldForm select:not([multiple]), textarea {
    
    background-color: #fffdd0 !important;
    border: 1px solid #820333 !important;
}

input[type="text"], input[type="email"] {
    margin-bottom: 0.5em;
}

input[type="submit"] {
    background-color: transparent;
    border: 1px dotted #ffce00;
    color: #820333;
}
input[type="submit"]:hover {
    background-color: #8b0000;
    color: #ffce00;
}

img {
	max-width: 100%; 
}

h1, h2, h3, h4, h5, h6 {
	color: #000505;
} 

h1 {
  color: #ffce00;
	font-size: 1.32em;
	text-align: center;
  background-color: #820333;
  border: 3px double #ffce00;
  padding: 0.125em 0.5em;
} 

h2 {
	font-size: 1.22em;
}

h2 + p {

  margin-top: -17px;
}

h3 { 
	font-size: 1.12em;
}

h4 {
    font-size: 1.02em;
}

h4.error {
    margin-top: 0.94em;
}

.centre {
	text-align: center;
}

.gras {
	font-weight: bold;
}

.noir {
	color: #000;
}

a {
	color: #820333;
	text-decoration: none;
}
	a:hover, a:focus {
		border-bottom: 1px solid #820333; 
	}
	
hr {
    background-color: #000505;
    border: none;
    height: 1px;
    width: 50%;
}

blockquote {
	margin-left: 0;
	padding-left: 1.5em;
	padding-right: 2em; 
	border-left: 4px solid #ddd; 
	font-style: italic; 
	color: #777; 
}

/*********************************************************************
 * 2. Masthead area
 *
 */

#header img {
  width: 100%;
  height: auto;
  margin-bottom: 0.85em;
}

#main-nav a {
  padding: 0.125em 0.25em; 
  margin-right: 0.75em;
  margin-bottom: 0.75em;
  display: inline-block; 
  color: #820333;  
  border: 3px double #820333;
}
#main-nav a:hover, #main-nav a:focus, #main-nav a.current {
  color: #ffce00;
  background-color: #820333;
  border: 3px double #ffce00;
}
#main-nav a.current {
  cursor: default;
}
#main-nav a.edit {
  background: none; 
}

/*********************************************************************
 * 3. Main content and sidebar
 *
 */

#contents { 
	margin-top: 1em; 
	clear: both; 
}
  #contents a {
    border-bottom: 1px solid #820333;
  }
  #contents a:hover, #contents a:focus {
    border-bottom-color: #000505;
  }

#main-content {
	width: 85%; 	
  border: 3px double #820333;
}
	#main-content ul {
  	padding-left: 1.5em;
    list-style-type: none;
	}
  #main-content ul li::before {content: "▪"; color: #820333; margin-left: -1em; margin-right: 0.5em;}
	
#main-content #date_horaire {
	margin-top: -1em;
	margin-left: 1.5em;
}    	
	
#main-content .summary {
  color: #000505;
}

#breadcrumbs {
	clear: both; 
	font-size: 80%;
	padding: 0 0.5em;
	border: 3px double #820333;
	border-bottom: none;
}
	#breadcrumbs span:last-child {
    	color: #000505;
	}
	#breadcrumbs span:after {
		content: ">";
		color: #000505; 
		padding-left: 0.5em;
		padding-right: 0.25em; 
	}
	#breadcrumbs span:last-child:after {
		content: none;
	}
  #breadcrumbs a {
    border-bottom: none;
  }
  #breadcrumbs a:hover, #breadcrumbs a:focus {
    border-bottom: 1px solid #820333;
  }

#sidebar p.image {
	text-align: center;
}

#main-content, #sidebar {
	padding: 0 1em;  
	margin-bottom: 2em;
}

body.has-sidebar #main-content {
	width: 65%; 
	float: left;
}

body.has-sidebar #sidebar {
	width: 35%;
	padding-left: 5%; 
	float: left; 
}

.nav {
	margin-left: 0;
	padding-left: 0;
	list-style-type: square; 
	color: #ffce00;
}
	.nav .nav {
		padding-left: 1.5em;
		list-style: square;
	}
	.nav li {
		margin: 0.7em 0;
    list-style-type: none;
	}

	.nav-tree li {
		margin-top: 0;
		margin-bottom: 0;
	}
    .nav-tree li a {
		  color: #820333; 
	  }

	.nav .current > a {		
    cursor: default;    
	}

	#sidebar .nav a {
    padding: 0.125em 0.5em;
		border: 3px double #820333;        
    display: inline-block;
	}
	#sidebar .nav a:hover, #sidebar .nav a:focus, #sidebar .nav .current > a {    
		color: #ffce00;
    background-color: #820333;
    border: 3px double #ffce00;
	}

  #additional-content {
    border: 1px solid #820333;
  }
    #additional-content p {
    padding: 0 1em;
  }
	
.align_left {
	/* for images placed in rich text editor */ 
	float: left;
	margin: 0 1em 0.5em 0; 
	position: relative;
	top: 0.5em;
	max-width: 50%; 
}

.align_right {
	/* for images placed in rich text editor */ 
	float: right;
	margin: 0 0 0.5em 1em;
	max-width: 50%; 
}

.align_center {
	/* for images placed in rich text editor */ 
	display: block;
	margin: 1em auto; 
	position: relative;
	top: 0.5em;
}

/*********************************************************************
 * 4. Footer
 *
 */

#footer {
	clear: both; 
	font-size: 80%; 
	text-align: center;
}

	#footer p {
  	border: 3px double #820333;
  	padding: 0 1em;
	}
	
	#footer p#credit {
  	float: right;
    border: none;
	}

/*********************************************************************
 * 5. Form
 *
 */

#wrap_Inputfield_your_genre_1, #wrap_Inputfield_your_genre_2 {
  display: none;
}

/* show a red asterisk after label when field "required" */
.InputfieldStateRequired > .InputfieldHeader:first-child:after {
	color: #820333;
	content: '*';
}

button {
  margin: 0.5em 0 1em;
  color: #820333;
  background: #fffdd0;
  border: 1px solid #820333;
}
  button:hover, button:focus {
    border-color: #000505;
    cursor: pointer;
  }

.error {
    color: red;
}

/*********************************************************************
 * 6. Media queries for responsive layout
 *
 */

@media only screen and (max-width: 767px) {
	/* mobile layout */ 

	body, td, textarea {
		font-size: 100%; 
	}
	body.has-sidebar #main-content, 
	body.has-sidebar #sidebar {
		float: none;
		width: 100%; 
	}
	#main-content {
		width: 100%; 
	}
	.align_left, .align_right, .align_center {
		display: block;
		float: none; 
		margin: 1em auto;
		max-width: 100%; 
	}

}

@media only screen and (min-width: 1200px) {
	/* extra-wide desktop layout */ 
	
	body, td, textarea {
		font-size: 115%; 
	}
  a#skip {
    display: none;
  }

}
