/*
Theme Name:     OTM
Theme URI:      http://dev.wsiteam.fr/otm
Description:    Theme enfant Divi pour OTM
Author:         WSI Atouts du Net
Author URI:     http://www.wsiadn.fr
Template:       Divi
Version:        1.0.0
*/

@import url("../Divi/style.css" );

/* =Theme customization starts here
------------------------------------------------------- */

/**** blog module.php****/

#main-content.bzh_main_container .container:before{
    display: none;
}

.bzh_post{
    width: 31.3333% !important;
    margin-right: 3% !important;
    float: left;
    clear: none;
    cursor: pointer;
    box-shadow: 0px 14px 32px 0px rgba(0,0,0,0.21);
    position: relative;
    overflow: hidden;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
    background-color: #ffffff;
    margin-bottom: 30px;
    position:relative;
    word-wrap: break-word;
}


a.bzh_thumb_post {
    border-top-left-radius: 0.5em;
    border-top-right-radius: 0.5em;
    overflow: hidden;

    background-color: #623636 !important;
    display: block;
    position: relative;
    height: 200px;
    margin-bottom: 10px;

}
/*** if not thumb***/

a.bzh_thumb_post.bzh_not_thumb{
    background-color: #ffffff !important;
}

.bzh_post:hover a.bzh_thumb_post.bzh_not_thumb:after {
    color: #333333;
}

/*** end ***/


a.bzh_thumb_post:before{
    content: '';
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 1px solid #fff;
    z-index: 1;
}

.bzh_post a.bzh_thumb_post .bzh_pict {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 200px;
    display: block !important;
    width: 100% !important;
    transition: 0.3s !important;
}


.bzh_post:hover a.bzh_thumb_post .bzh_pict {

    transform: scale(1.1);
    opacity: 0.5;
}

.bzh_post h2.bzh_post_title {
    margin-top: 19px;
    padding-left: 0.3vw;
    margin: 0 1.6vw 0 1.6vw;
    padding-bottom: 0px!important;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
    font-weight: 700!important;
    font-size: 18px!important;
    line-height: 128%!important;
    text-align: left!important;
}

.bzh_post .post-meta {
    margin-bottom: 0 !important;
    font-size: 0;
    padding-left: 0.3vw !important;
    margin: 0 3.6vw 0 1.6vw;
}

.bzh_post .bzh_entry_content {
    padding-bottom: 3.4vw !important;
    padding-left: 0.3vw;
    padding-top: 9px;
    line-height: 160%;
    margin: 0 1.6vw 0 1.6vw;
    font-family:"Open Sans";
}

.bzhd_date_calendar:before{
    font-family: ETmodules;
    text-transform: lowercase;
    margin-right: 9px;
    color: #000;
    font-weight: 700;
    margin-left: 3px;
}

span.bzhd_date_calendar {
    color: #333333;
}


.bzhd_date_calendar:before {
    content: "\e025";
}

.bzh_post_meta{
    border-top: 1px solid #ebebeb;
    border-bottom: 1px solid #ebebeb;
    margin-top: 24px;
    padding: 3px 0;
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff;
    text-align: center;

}


.bzh_main_category_post{
    display: inline-block;
    font-size: 12px;
    border-radius: 20px;
    border: solid #ffffff 1px;
    padding: 2px 10px 2px 10px;
    text-transform: uppercase;
    background-color: #623636;
    margin-left: 0px;
    margin-bottom: 10px;

}
.bzh_main_category_post:first-child{
    margin-left: 25px;
}
.bzh_main_category_post a{
    color:#ffffff;
}

/*** Animation hover ***/


/*Hovers*/

.bzh_post .bzh_thumb_post:after,
.bzh_post .bzh_thumb_post:before {
    transition: 0.3s;
}

.bzh_post:hover:before {
    width: 32%;
    opacity: 1;
}



.bzh_post .bzh_thumb_post:before {
    content: '';
    display: block;
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    border: 1px solid #fff;
    z-index: 1;
}


.bzh_post:hover.bzh_thumb_post:after {
    opacity: 1;
    transform: translate(0, -50%);
}

.bzh_post:hover.bzh_thumb_post img {
    opacity: 0.5;
}

a.bzh_thumb_post:after {
    content: 'En savoir +';
    display: block;
    opacity: 0;
    position: absolute;
    top: 50%;
    color: #fff;
    transform: translate(80%, -50%);
    width: 80%;
    font-size: 24px;
    text-align: right;
    font-family: 'Montserrat',Helvetica,Arial,Lucida,sans-serif;
}

.bzh_post:hover a.bzh_thumb_post:after {
    opacity: 1;
    transform: translate(0, -50%);
}

@-webkit-keyframes fadeIn {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}

.fadeIn {
    -webkit-animation-name: fadeIn;
    animation-name: fadeIn;
}

@media only screen and (min-width: 1025px) {
    .bzh_post:nth-of-type(3n) {
        margin-right: 0 !important;
    }

    .bzh_post:nth-of-type(3n):after {
        display: block;
        visibility: hidden;
        clear: both;
        height: 0;
        font-size: 0;
        content: " ";
    }
}

@media only screen and (max-width: 1450px) {
    a.bzh_thumb_post {
        max-height: 200px;
    }


}
@media only screen and (max-width: 1390px) {
    .bzh_post .bzh_entry_content {
        padding-bottom: 70px !important;
    }
}

@media only screen and (max-width: 1024px) {
    .bzh_post {
        width: 49% !important;
        margin-right: 2% !important;
    }
}

@media only screen and (min-width: 768px) and (max-width: 1024px) {
    .bzh_post:nth-of-type(2n) {
        margin-right: 0 !important;
    }
}


@media only screen and (max-width: 767px) {
    .bzh_post {
        width: 100% !important;
        margin-right: 0 !important;
        float: none;
    }
}

@media only screen and (min-width: 768px) {
    .bzh_post {
        height: 510px;
    }

}

/* Truncate css styles for '...' */
.block-with-text {
    /* hide text if it more than N lines  */
    overflow: hidden;
    /* for set '...' in absolute position */
    position: relative;
    /* use this value to count block height */
    line-height: 1.2em;
    /* max-height = line-height (1.2) * lines max number (3) */
    max-height: 3.6em;
    /* fix problem when last visible word doesn't adjoin right side  */
    text-align: justify;
    /* place for '...' */
    margin-right: -1em;
    padding-right: 1em;
}
/* create the ... */
.block-with-text:before {
    /* points in the end */
    content: '...';
    /* absolute position */
    position: absolute;
    /* set position to right bottom corner of block */
    right: 0;
    bottom: 0;
}
/* hide ... if we have text, which is less than or equal to max lines */
.block-with-text:after {
    /* points in the end */
    content: '';
    /* absolute position */
    position: absolute;
    /* set position to right bottom corner of text */
    right: 0;
    /* set width and height */
    width: 1em;
    height: 1em;
    margin-top: 0.2em;
    /* bg color = bg color under block */
    background: white;
}

/* GDPR Module */
.cli-nav-pills .cli-nav-link.cli-active, .cli-nav-pills .cli-show>.cli-nav-link {
    background-color: #623636;
    border: 1px solid #623636;
}

.cli-switch input:checked + .cli-slider, .bzhd-custom-cli-button, .bzhd-custom-cli-button:hover {
    background-color: #623636
}

.cli-nav-pills .cli-nav-link {
    border: 1px solid #623636;
    color: #623636;
}

#main-header .container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: auto;
}

@media screen and (min-width:981px) and (max-width:1075px){
    #top-menu li {
        display: inline-block;
        padding-right: 15px;
        font-size: 13px;
    }
}


/* Dropcaps */
.dropcaps p:first-child:first-letter{
   font-size: 6em;
   line-height: 1em;
   margin-top: -5px;
   padding-right: 30px;
   padding-left: 3px;
   float: left;
   color: #333333;
   font-weight: 500;
}

/**  Adaptation blog : page de catégories **/

.bzh_post a.bzh_thumb_post.bzh_not_thumb .bzh_pict{
   background-size: contain;
}
#main-content.bzh_main_container:not(.bzh_single) .container{
   /*background-image: linear-gradient(168deg,#623636 38%,#f6f9fc 2%)!important; */
   margin-top: -130px;
   padding-top: 0;
}
.archive-info{
   /*background-color: #623636;*/
   background-image: linear-gradient(0deg,rgba(98, 54, 54, 0.6),rgba(98, 54, 54, 0.6)),url('https://www.association-otm.fr/sites/uploads/2019/06/ecole-1.jpg');
   background-size: cover;
   background-position: center;
   padding-top: 100px;
   padding-bottom: 150px;
   position: relative;
}
.bzh_main_container .archive-info .et_pb_bottom_inside_divider {
    background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwJSIgaGVpZ2h0PSIxMDBweCIgdmlld0JveD0iMCAwIDEyODAgMTQwIiBwcmVzZXJ2ZUFzcGVjdFJhdGlvPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxnIGZpbGw9IiNmZmZmZmYiPjxwYXRoIGQ9Ik0xMjgwIDE0MFYwSDBsMTI4MCAxNDB6Ii8+PC9nPjwvc3ZnPg==); 
    background-size: 100% 100px;
    bottom: 0;
    height: 100px;
    transform: rotateX(180deg);
}
h1.bzh_archive-title{
   color: white;
   font-family: Arial, Helvetica, sans-serif;
   text-align: center;
   font-size: 6em;
   font-weight: 700;
   margin-top: 1em;
}

@media screen and (max-width:1200px){
    h1.bzh_archive-title{
        font-size: 4em;

    }

}

@media screen and (max-width:981px){
    h1.bzh_archive-title{
        font-size: 26px;

    }

}

@media screen and (max-width:472px){
    h1.bzh_archive-title{
        font-size: 22px;

    }

}

h1.bzh_archive-title span{
   font-size: 0.8em;
   font-family: Georgia, serif;
   font-style: italic;
   font-weight: 500;
}
div.bzhd_divider{
   border-bottom: solid 3px #ffc886;
   width: 70px;
   margin: auto;
   margin-bottom: 7em;
   margin-top: 1em;
}
/* Adaptation blog : page article */
#main-content.bzh_main_container.bzh_single{
   background-color:#eeeeee;
}
#main-content.bzh_main_container.bzh_single #content-area{
   border-radius: 20px 20px 0 0;
   overflow: hidden;
   margin-bottom: 20px;
}
#main-content.bzh_main_container.bzh_single article{
   background-color: white;
   border: 1px solid #eaecee;
}
#main-content.bzh_main_container.bzh_single h1{
   color: white;
   padding: 150px 40px 0 40px;
   text-align: center;
}
#main-content.bzh_main_container.bzh_single .et_post_meta_wrapper{
   background-size: cover;
   background-position: center;
}
#main-content.bzh_main_container.bzh_single p.post-meta{
   color: white;
   text-align: center;
   padding: 50px 0 150px 0;
}
#main-content.bzh_main_container.bzh_single p.post-meta a{
   color: white;
   border: 1px solid white;
   border-radius: 10px;
   padding: 5px;
}
#main-content.bzh_main_container.bzh_single .entry-content{
   padding-right: 40px;
   padding-left: 40px;
}
#main-content.bzh_main_container.bzh_single .entry-content .et_pb_section_0{
   padding-top:0;
}
/** Contact form **/
/*** formulaire cf7 ***/
 
 
 
.bzhd-form-contact .input, .bzhd-form-contact .input[type="checkbox"]+label i, .bzhd-form-contact .input[type="radio"]+label i {
	background-color: rgba(0,0,0,0);
}
 
/*.bzhd-form-contact .et_pb_contact_field input, .bzhd-form-contact .et_pb_contact_field select, .bzhd-form-contact .et_pb_contact_field textarea, .bzhd-form-contact .et_pb_contact_field .et_pb_contact_field_options_list label>i, .bzhd-form-contact input.et_pb_contact_captcha {
	box-shadow: 0px 2px 50px 0px rgba(83,91,124,0.1);
}*/
 
.bzhd-form-contact .input {
	font-size: 16px;
	color: #128e9c!important;
}
 
.bzhd-form-contact .et_pb_button {
	color: #ffffff!important;
	border-width: 10px!important;
	border-color:transparent;
	letter-spacing: 1px;
	font-size: 16px;
	font-weight: 700!important;
	background: #623636;
}
 
.bzhd-form-contact .et_pb_button:hover,.bzhd-form-contact .et_pb_module .et_pb_button:hover {
	padding: .3em 1em;
 
}
 
.bzhd-form-contact .bzhd_select .wpcf7-form-control-wrap:before {
	position: absolute;
	top: 50%;
	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;
}
 
div.wpcf7-validation-errors, div.wpcf7-acceptance-missing {
	border: 2px solid #bcb57e;
	background-color:#bcb57e;
	color:#ffffff;
	border-radius:0.25rem;
	font-weight: bold;
	font-size: 18px;
}
span.wpcf7-not-valid-tip {
	color: #ff4a4a;
	margin-top: 0.5rem;
 
}
 
div.wpcf7-mail-sent-ok{
	border-color:#9ac45f;
	background-color:#9ac45f;
	color:#ffffff;
	border-radius:0.25rem;
	font-weight: bold;
	font-size: 18px;
}
 
.bzhd-form-contact p.et_pb_contact_field {
	margin-bottom: 1rem;
 
 
}
 
.bzhd-form-contact .et_contact_bottom_container {
	float: right;
	margin-top: 0.5rem;
	text-align: right;
}
 
.bzhd-form-contact .wpcf7-list-item input[type="checkbox"] + .wpcf7-list-item-label:before{
	display: inline-block;
	position: relative;
	width: 18px;
	height: 18px;
	margin-right: 6px;
	background-color: #eee;
	font-style: normal;
	vertical-align: middle;
	content: "";
	box-shadow: 0px 2px 50px 0px rgba(83,91,124,0.1);
	color: #ffffff;
	font-family: dashicons;
	line-height:19px;
}
 
.bzhd-form-contact .wpcf7-list-item input[type="checkbox"]:checked + .wpcf7-list-item-label:before{
	background-color:#623636;
	color: #ffffff!important;
	font-family: dashicons;
	content: "\f147";
	height: 18px;
	width: 18px;
	font-size: 17px;
	font-weight:bold;
 
}
 
.bzhd-form-contact span.wpcf7-list-item-label{
	cursor:pointer;
}
 
.bzhd-form-contact span.wpcf7-list-item {
	display: block;
}
 
.bzhd-form-contact .label-bzhd-checkbox,.bzhd-form-contact  .bzhd-label{
	font-weight:bold;
	display:block;
	font-size:16px;
	margin-bottom:0.5rem;
}
.bzhd-form-contact sup{
	color:#623636;
	bottom: 0.4em;
}
.bzhd-form-contact .et_pb_contact_field input{
	width: 100%;
	background-color: #ffffff;
	font-size: 16px;
	color: #535b7c!important;
	height: 50px;
	border: 1px solid #623636;
}
