/*
Theme Name:  GeneratePress Enfant
Description:  Thème enfant de GeneratePress
Author:  Lysiane Binet
Author URI:  https://lysianebinet.fr
Template:  generatepress
Version:  1.0         
*/


/** TITRES **/

h1, h2, h3 {
	color: #5E8D22;
}

.home h2.wp-block-heading {
	font-size: 1.6em;
}

h1.entry-title {
	font-size: 1.7em;
	margin-bottom: 2em;
}

.entry-content h1 {
	font-size: 1.7em;
	margin-top: 1em;
}

.entry-content h2 {
	font-size: 1.4em;
}
.entry-content h3 {
	font-size: 1.3em;
	font-style: italic;
}

/** BOUTONS **/

.woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) #respond input#submit, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) a.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) button.button, .woocommerce:where(body:not(.woocommerce-block-theme-has-button-styles)) input.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce #respond input#submit, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce a.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce button.button, :where(body:not(.woocommerce-block-theme-has-button-styles)):where(:not(.edit-post-visual-editor)) .woocommerce input.button {
	border-radius: 0;
	font-weight: 600;
	margin-top: 1em;
	margin-bottom: 2em;
}

button, html input[type="button"], input[type="reset"], input[type="submit"], a.button, a.wp-block-button__link:not(.has-background) {
	border-radius: 0;
	font-weight: 600;
}

/** HEADER **/

header#masthead {
	background-image: url("/wp-content/themes/generatepress-enfant/img/banniere-champ-ble.jpg");
	background-size: cover;
	background-repeat: no-repeat;
}

.main-title a {
	font-size: 1.4em;
	font-family: Verdana;
	font-weight: 400;
	color: #324A00;
}
.site-description {
	font-size: 1.2em;
	color: #363636;
}

@media (min-width: 780px) {
	header#masthead {
		height: 486px;
	}
}
@media (max-width: 779px) and (min-width: 480px) {
	header#masthead {
		height: 240px;
	}
}
@media (max-width: 480px) {
	header#masthead {
		height: 100px;
	}
}

header#masthead::after {
	content: "";
	display: block;
	height: 100%;
	background-image: url("/wp-content/themes/generatepress-enfant/img/bandeau-vague-vect-texteV2.svg");
	background-size: contain;
	background-repeat: no-repeat;
	background-position: bottom;
}

/** MENU **/

#menu-menu-principal a {
	text-transform: uppercase;
	color: #000000;
}

#primary-menu li:hover {
	background-color: #9cc446;
}

@media(min-width: 1000px) {
	.main-navigation {
		margin-top: -24px;
	}
}

/* Sous-menu */

#primary-menu ul.sub-menu {
	width: 250px;
	background-color: #ACD674;
	border-top: solid 1px #ffffff;
}

#primary-menu ul.sub-menu ul {
	border: none;
}

#primary-menu ul.sub-menu a,
#primary-menu ul.sub-menu ul a {
	color: #000000 !important;
}

#primary-menu ul.sub-menu li:hover {
	background-color: #9cc446;
}

#primary-menu ul.sub-menu li:not(:first-child) {
	border-top: solid 1px #ffffff;
}

/* Picto demande de devis */

.quote-icon {
	display: block;
	background-image: url("/wp-content/themes/generatepress-enfant/img/icons8-verifier-24.png");
	background-repeat: no-repeat;
	background-position: left;
	padding: 0 0 0 8px;
	margin-left: 20px;
}
	
/** PAGE ACCUEIL **/

.home h1.entry-title {
	display: none;
}
.home .entry-content h1 {
	margin-bottom: 1.5em;
}
.home .inside-article {
	padding-top: 10px;
}

.bloc-accueil-actus h2 {
	text-transform: uppercase;
	padding-bottom: 1em;
}
.bloc-accueil-actus ul {
	margin: 0;
}
.bloc-accueil-actus li {
	background-color: #ffffff;
	padding: 1em;
}

/** SIDEBAR **/

h2.widget-title {
	font-size: 1.6em;
}

#mega-menu-wrap-max_mega_menu_1 .mega-menu-toggle + #mega-menu-max_mega_menu_1 li:hover,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item.mega-current-menu-item > a.mega-menu-link:hover {
	background-color: #324A00;
}

/* Sous-menu */

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-item,
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 li.mega-menu-item {
	border-bottom: solid 1px #ffffff;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link {
	background-color: #F1F1F1;
	padding-top: 6px;
}
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item a.mega-menu-link:hover {
	background-color: #F6F6F6;
}

#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item {
	height: 50px;
	background-color: #F1F1F1;
}
#mega-menu-wrap-max_mega_menu_1 #mega-menu-max_mega_menu_1 > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item:hover {
	background-color: #F6F6F6;
}

/** DEMANDE DEVIS **/

.yith_ywraq_add_item_browse_message {
	margin-top: 1.5em;
	margin-bottom: 2em;
}
.yith_ywraq_add_item_browse_message a {
	background-color: #61821B;
	color: #ffffff;
	text-decoration:none;
	padding: 10px 15px 10px 15px;
	font-weight: 600;
}
.yith_ywraq_add_item_browse_message a:hover {
	background-color: #324A00;
}

.woocommerce input.button {
	background-color: #61821B;
	color: #ffffff;
}
.woocommerce input.button:hover {
	background-color: #324A00;
	color: #ffffff;
}

.woocommerce .add-request-quote-button.button {
	font-weight: 600;
}

.wpcf7-turnstile {
	padding-top: 1em;
	padding-bottom: 2em;
}

/** BLOG - ACTUALITES **/

.wp-block-latest-posts__post-title {
	display: block;
	margin-bottom: 0.8em;
	font-size: 1.5em;
}

.wp-block-latest-posts__post-date::before,
.published::before {
	content: "Publié le ";
}

.byline,
.cat-links {
	display: none !important;
}

/** BOUTIQUE **/

.add_to_cart_button {
	display: none !important;
}

.woocommerce-ordering {
	display: none;
}

/** PAGES PRODUIT **/

p.cart-empty,
.woocommerce-info {
	background-color: #ffffff;
	border-top: none;
	padding-left: 0;
	color: #000000;
}
p.cart-empty:before,
.woocommerce-info:before {
	display: none;
}

.sku_wrapper {
	display: none;
}

/** RESULTATS RECHERCHE **/

.search-results .inside-article .post-image {
	max-width: 200px;
	margin: 0 auto;
	padding-top: 2em;
}

/** FOOTER **/

.site-footer .footer-widgets-container .inner-padding {
	padding-right: 40px;
}

#footer-widgets h2 {
	text-transform: uppercase;
	font-weight: 400;
	font-size: 1.2em;
	color: #363636;
}

#footer-widgets p,
#footer-widgets li {
	font-size: 0.9em;
}

/** MOBILE **/

@media (max-width: 580px) {
	#yith-ywraq-form .update-list-wrapper .after-table-right,
	#yith-ywraq-form .update-list-wrapper {
		display: block;
		text-align: center;
	}
}

/** COOKIES **/

@media (max-width: 425px) {
	.cmplz-cookiebanner .cmplz-header .cmplz-title {
		display: block !important;
	}
	.cmplz-cookiebanner .cmplz-header {
		grid-template-columns: 100% !important;
		display: inline !important;
		text-align: center;
	}
}

.cmplz-cookiebanner .cmplz-title {
	color: #324A00;
	font-weight: bold;
}

.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-accept:hover {
	background-color: #324A00;
	border-color: #324A00;
}
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-deny:hover {
	background-color: #324A00;
	color: #ffffff;
}
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-save-preferences:hover {
	background-color: #324A00;
	border-color: #324A00;
	color: #ffffff;
}
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn.cmplz-view-preferences:hover {
	background-color: #324A00;
	border-color: #324A00;
	color: #ffffff;
}
.cmplz-cookiebanner .cmplz-links .cmplz-link:hover {
	text-decoration: none;
}

#cmplz-document {
	min-width: 100% !important;
}
#cmplz-document h2 {
	font-size: 2.2em !important;
}
#cmplz-document p,
#cmplz-document li {
	font-size: 1.2em !important;
}
#cmplz-document p.cmplz-subtitle {
	font-weight: normal !important;
	font-size: 1.8em !important;
}