/*
Theme Name: Theme enfant Koality pour la ville d'Achicourt
Description: Theme enfant de Divi
Author: Koality
Author URI: http://www.koality.fr
Template: Divi
Version: 1.000

COLORS
*/

@import 'css/pages.css';
@import 'css/menuland.css';

body.et_header_style_left .logo_container {
	height: 115px;
}

body.et_header_style_left .et-fixed-header .logo_container {
	height: 74px;
}

body .et_pb_main_blurb_image {
	margin-bottom: 0;
}

body #et_pb_contact_form_0 .et_contact_bottom_container {
	float: none;
	margin-top: -1.5%;
	text-align: center;
}

/* MENU */
body .et-fixed-header #top-menu .sub-menu a {
	color: gray !important;
}

/* BLOG HOME */
@media only screen and (min-width: 981px) {
	.actu-home .et_pb_column_4_4 .et_pb_blog_grid .et_pb_salvattore_content[data-columns]::before,
	.agenda-home .et_pb_column_4_4 .et_pb_blog_grid .et_pb_salvattore_content[data-columns]::before {
		content: "4 .column.size-1of4" !important;
	}
	.actu-home .et_pb_column_4_4 .column.size-1of4 {
		width: 22.15% !important;
        margin-right: 3%;
	}

	.actu-home .et_pb_column_4_4 .column.size-1of4 article {
		box-shadow: 0px 2px 50px 1px rgba(0,0,0,0.13);
		min-height: 495px;
	}

	.agenda-home .et_pb_column_4_4 .column.size-1of4 {
		width: 22.15% !important;
        margin-right: 3%;
	}

	.agenda-home .et_pb_column_4_4 .column.size-1of4 article {
		background: #f2f2f2!important;
		min-height: 465px;
	}

	.agenda-home .et_pb_column_4_4 .ds-blog-four-column.et_pb_blog_grid[data-columns]::before,
	.actu-home .et_pb_column_4_4 .ds-blog-four-column.et_pb_blog_grid[data-columns]::before {
		content: "4 .column.size-1of4";
	}
	.ds-blog-four-column.et_pb_blog_grid .column.size-1of4 {
		margin-right: 3.8%;
		padding-bottom: 30%;
		width: 22.15%;
	}
	.actu-home .et_pb_blog_grid .column.size-1of4:last-child,
	.agenda-home .et_pb_blog_grid .column.size-1of4:last-child {
		margin-right: 0;
	}

	.agenda-date {
		font-size: 34px;
		color: #197592 !important;
		font-weight: bold;
		padding-bottom: 20px !important;
		/*margin-bottom: 20px;*/
	}

	.agenda-readmore {
		margin: 10px 0;
		padding: 5px 20px;
		background: white;
		display: inline-block;
		width: 100%;
	}

	.agenda-readmore:before {
		font-family: 'ETModules';
		content : "\e06c";
		margin-right: 5px;
	}

}

.actu-home .post-content {
	/*position: relative;*/
}

.actu-home .more-link {
	position: absolute;
	bottom:10px;
	background: #f2f2f2;
	color: gray;
	padding: 5px 20px;
	text-align: center;
}

.ds-blog-four-column .et_pb_blog_grid .et_pb_post {
	background-color: transparent;
}

.ds-blog-four-column .et_pb_post {
	margin-bottom: 20px;
}
.ds-blog-four-column .ds-blog-square a img {
	height: 33vh !important;
}

@media only screen and (max-width: 1440px) {
	.ds-blog-four-column .ds-blog-square a img {
		height: 28vh !important;
	}
}
@media only screen and (max-width: 1280px) {
	.ds-blog-four-column .ds-blog-square a img {
		height: 25vh !important;
	}
}
@media only screen and (min-width: 1024px) {
	.calameo-full,
	.calameo-full iframe {
		height: 700px !important;
	}

	.calameo-medium,
	.calameo-medium iframe {
		height: 400px !important;
	}

	.calameo-full {
		margin-bottom: 120px !important;
	}

	.calameo-medium {
		margin-bottom: 80px !important;
	}
}
@media only screen and (max-width: 768px) {
	.ds-blog-four-column .ds-blog-square a img {
		height: 28vh !important;
	}
}
@media only screen and (max-width: 480px) {
	.ds-blog-four-column .ds-blog-square a img {
		height: 40vh !important;
	}
}

/* Single */
.single-post .bc_link a {
	color: gray;
}

/* Pages */
.bc_link a {
	color: white;
}
.tableau-piscine td {
	padding: 10px !important;
	text-align: center;
}

.single .entry-content a {
	color: #3366ff;
}

.single-association .entry-content a,
.single-entreprise .entry-content a {
	color: white;
}

/* ENTREPRISE */

.single-entreprise .et_pb_section_0 {
	padding: 0 !important;
}

.entreprise {
	margin-bottom: 50px;
	width: 100% !important;
	padding-top: 27px;
	padding-right: 0px;
	padding-bottom: 0 !important;
	padding-left: 0px;
	max-width: 900px!important;
}

.et_pb_gutters2.et_pb_row.entreprise  .et_pb_column:nth-child(4n),
.entreprise .et_pb_column:nth-child(4n) {
    margin-right: 0 !important;
}

.page-entreprise .et_pb_gutters3 .et_pb_column_4_4 .et_pb_module.et_pb_post_title {
	margin-bottom: 0;
}

.page-entreprise .entry-title {
	font-family: 'Raleway',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 700;
    font-size: 30px;
    letter-spacing: 1px;
    text-align: center;
}

.entreprise .et_pb_blurb_0.et_pb_blurb {
	background-color: #78bb59;
	padding-right: 20px!important;
	padding-left: 20px!important;
	margin-bottom: 25px!important;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 200px;
}

.association.entreprise .et_pb_blurb_0.et_pb_blurb {
	background-color: #f7e070
}

.association .et_pb_blurb_0.et_pb_blurb h3.et_pb_module_header {
	color: black !important;
}

.row-with-map .et_pb_module.et_pb_text {
	min-height: 90px;
}

/* FACET */
.fwpl-linkparent {
	margin-top: 20px;
}

.fwpl-linkparent a {
	border: none !important;
	padding: 10px;
	background-color: #197592!important;
	color: white!important;
}

/* Footer */
#footer .et_pb_section_3.et_pb_section {
    background-color: #197592!important;
    color: white!important;
}

#footer .et_pb_text_5 h6 {
    font-family: 'Raleway',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 16px;
    color: #40666d!important;
    letter-spacing: 5px;
    line-height: 1.8em;
    text-align: center;
}

.button-cookie {
	font-family: sans-serif;
    display: inline-block;
    *display: inline;
    padding: 4px 12px;
    margin-right: .3em;
    margin-bottom: 0;
    *margin-left: .3em;
    line-height: 20px;
    color: #333;
    text-align: center;
    text-shadow: 0 1px 1px rgba(255,255,255,.75);
    font-style: normal;
    vertical-align: middle;
    cursor: pointer;
    color: #fff;
    text-shadow: 0 -1px 0 rgba(0,0,0,.25);
    background-color: #2a92bb;
    background-image: none !important;
    background-repeat: repeat-x;
    border-style: solid;
    border-width: 0;
    border-color: transparent;
    border-color: rgba(0,0,0,.1) rgba(0,0,0,.1) rgba(0,0,0,.25);
    padding: 2px 10px;
    font-size: 12px;
    text-decoration: none;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px;
    outline: none;
}








/***Archive pages***/
.div-entry-title h1 {
	border-bottom: 3px solid #2a92bb;
}

.post-type-archive-association .et_pb_column_3 {
	background-color: #f7e070 !important;
}


#filter_archive { color: white; }

.filter_archive-title { color: white; }

.post-type-archive-association .filter_archive-title  { color: black; }

#filter_archive select {
    box-sizing: border-box;
    width: 100%;
    padding: 16px 20px 16px 10px;
    border: 0;
    border-radius: 0;
    color: #999;
    background-color: #eee;
    -webkit-appearance: none;
    -moz-appearance: none;
	appearance: none;
	margin-bottom: 20px;
}

#filter_archive .filter_search-select:after {
    position: absolute;
    top: 55px;
    right: 10px;
    width: 0;
    height: 0;
    margin-top: 3px;
    border: 6px solid;
    border-color: #666 transparent transparent transparent;
    content: "";
    transform: translateY(-50%);
    pointer-events: none;
}

#filter_archive input {
	width: 100%;
    padding: 16px;
    border-width: 0;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    color: black;
    background-color: #eee;
    font-size: 14px;
}

#filter_archive button {
	color: #6b6b6b!important;
    border-width: 10px!important;
    border-color: #ffffff;
    border-radius: 0px;
    font-size: 16px;
	background-color: #ffffff;
	margin: 20px auto 0 auto;
	display: block;
	width: 188px;
}

.header-archives {
    padding: 20px; background: #ececec;
    margin: 20px 15px;
}


.header-archives {
    padding: 20px; background: #ececec;
    margin: 20px 15px;
}


.post-type-archive-bulletin #main-content .container:before,
.archive #main-content .container:before {
    display: none;
}

.archive-posts article {
    min-height: 550px !important;
    height: 550px !important;
}

.archive-posts .et_pb_column:nth-child(3n) {
    margin-right: 0 !important;
}

.post-type-archive-bulletin .et_pb_post,
.search .et_pb_post {
    width: 47.5%;
    float: left;
    margin-right: 5%;
    padding: 30px 0;
    border: 1px solid #e6e6e6;
}

.archive .et_pb_post:first-child {
    /*border: none !important;*/
}

.archive .et_pb_post.link-oldsite {
    background: #e6e6e6 !important;
    /*border: none !important;*/
}


/*Remove margin from every second post*/

.archive .et_pb_post.last,
.search .et_pb_post.last {
    margin-right: 0;
}


/*Set to a single column on smaller screens*/

@media all and (max-width: 767px) {
    .archive .et_pb_post,
    .search .et_pb_post {
        width: 100%;
        margin-right: 0;
    }

	#cff .cff-item {
		width: 100% !important;
	}
}


/*Add padding to the posts*/

.archive .et_pb_post,
.search .et_pb_post {
    padding-left: 15px;
    padding-right: 15px;
    margin-bottom: 30px;
}


/*Remove padding on featured image with negative margin*/

.archive .et_pb_post .ds-archive-featured,
.search .et_pb_post .ds-archive-featured {
    margin: 0 -15px 15px -15px;
}


/*Style the read more link and post nav*/

.archive a.more-link,
.search a.more-link {
    display: block;
    text-align: center;
    width: auto;
}

.archive a.more-link,
.search a.more-link,
.archive .pagination a,
.search .pagination a {
    color: #fff;
    background: #197592;
    font-weight: bold;
    text-transform: uppercase;
    font-size: 14px;
    margin-top: 10px;
    margin-bottom: 15px;
    padding: .3em .5em !important;
    border: 2px solid #197592;
    -webkit-transition: all .3s ease;
    transition: all .3s ease;
}

.archive a.more-link:hover,
.search a.more-link:hover,
.archive .pagination a:hover,
.search .pagination a:hover {
    color: #197592;
    background: #fff;
}


/*Add bottom margin to the pagination*/

.archive .pagination,
.search .pagination {
    margin-bottom: 40px;
}


/*Add padding to the post title on mobile*/

@media all and (max-width: 479px) {
    .archive .et_pb_post .entry-title,
    .search .et_pb_post .entry-title {
        padding-bottom: 10px;
	}
}


/*******************Advent Calendar 2017 - 7 & 13********************/
/****End - Custom Single Post Layout & Styling for Archive Pages*****/
/***************************By Divi Soup*****************************/
