/*
 Theme Name:   Nt-agricom child
 Theme URI:    URL du thème parent (Nt-agricom)
 Description:  Thème enfant du thème nt-agricom
 Author:       Bryan
 Author URI:   bryan-is-here.com
 Template:     nt-agricom
 Version:      1.0.0
*/

/* Styles spécifiques au thème enfant vont ici */

@media screen and (min-width: 1024px){
	/* Modification porte ouverte mars 2026*/
	#top-bar{
		top: unset !important;
	}


	/*.page-blog .container{
		margin-top: -60px;
	}*/
}

.nav>li>a:focus,
.nav>li>a:hover {
	text-decoration: none;
	background-color: inherit;
}

/* Icone recherche produit qui apparaît mais pas utile */
a.dgwt-wcas-search-icon.js-dgwt-wcas-search-icon-handler{
	display: none !important;
}

.woocommerce .woocommerce-ordering select {
	vertical-align: top;
	width: 100%;
	border: 1px solid #e1e2e6;
	font-size: 14px;
	padding: 10px;
	height: 42px;
	display: block;
	border-radius: 0px !important;
	position: relative;
}

li.product-category.product {
	border: 1px solid #eee;
	padding: 20px !important;
	background: #e9e9e9;
	text-transform: capitalize;
}

.woocommerce-info {
	padding: 1em 2em 1em 3.5em !important;
}

.team__item__inner a {
	pointer-events: none;
}

.widget-title {
	font-family: poppins, sans-serif;
}

.woocommerce-product-search button {
	display: none;
}

.woocommerce table.shop_table td {
	border-top: 1px solid rgba(0, 0, 0, .1);
	padding: 20px 12px;
	vertical-align: middle;
	font-size: inherit;
}

.woocommerce table.shop_table th {
	font-weight: 700;
	padding: 22px 12px;
	line-height: 1.5em;
}

.woocommerce-cart table.cart td.actions .coupon .input-text {
	padding: 6.3px;
	width: 145px;
}

.woocommerce .select2-container--default .select2-selection--single {
	background-color: #fff;
	border: 1px solid #ededed;
	border-radius: 4px;
	height: 31px;
}

.woocommerce-form-coupon-toggle {
	margin-bottom: 50px;
}

.breadcrubms span {
	color: #f1cf69 !important;
	text-transform: initial;
}

body.woocommerce-page:not(.woocommerce-shop) .breadcrubms span a span:hover,
.page-id-5627 .breadcrubms span a span:hover,
.page-id-5827 .breadcrubms span a span:hover {
	color: #333 !important;
}

body.woocommerce-page:not(.woocommerce-shop) .breadcrubms span,
.page-id-5627 .breadcrubms span,
.page-id-5827 .breadcrubms span {
	color: #fff !important;
}

.woocommerce form .form-row {
	padding: 3px;
	margin: 0 0 25px;
}

.img-responsive {
	max-width: 100%;
}

.woocommerce ul.products li.product .onsale {
	z-index: 1;
}

.product_list_widget del {
	opacity: .5
}

.woocommerce .widget_price_filter .ui-slider .ui-slider-handle {
	background-color: #f1cf69;
}

.woocommerce .widget_price_filter .ui-slider-horizontal .ui-slider-range {
	background-color: #f1cf69;
}

mark {
	background-color: #f1cf69 !important;
	padding: 0 .2em !important;
}

#footer.footer--dark {
	background-color: #555144 !important;
}

#footer .footer__item h3.rs-title {
	margin-bottom: 15px;
}

.footer__item #rs li {
	margin-right: 5%;
}

.footer__item #rs li a {
	color: #4A8B71;
}

.footer__item #rs li a:hover {
	color: #282828;
}

.footer__item #rs.rs-white li a:hover {
	color: #FFF;
}

#footer .footer__title{
	margin-bottom: 25px !important;
}

.footer--style-1 ul.footer-hours li{
	color: #555;
}

.footer__menu{
	margin-top: 11px !important;	
}

/* Modification du 01/04/23 */
/* Bloc contact */
.company-contacts address p:first-child,
.company-contacts address p:nth-child(4) {
	margin-top: 60px;
}

/* Map page contact */
.page-id-666 main {
	display: flex;
	flex-direction: column;
}

.page-id-666 main div:first-child {
	order: 1;
}

.page-id-666 main div:nth-child(2) {
	order: 2;
}

.page-id-666 main div:nth-child(3) {
	order: 4;
}

.page-id-666 main .section-contact {
	order: 3;
	width: 80%;
	margin: 0 auto 40px;
}

.page-id-666 .wpcf7 label{
	margin-bottom: 20px !important;
}

/* Réseaux sociaux */
.footer__item #rs {
	display: flex;
	justify-content: start;
	margin-top: 10px;
}

/* Modification affichage prix 07/04 */
.tax-product_cat ul.products li.type-product,
.single-product section.products ul.products li.type-product {
	position: relative;
}

.tax-product_cat ul.products li.type-product .price,
.single-product section.products ul.products li.type-product .price {
	position: absolute;
	top: 10px;
	right: 10px;
	background-color: #f1cf69 !important;
	padding: 1px 5px;
}

.tax-product_cat ul.products li.type-product .price span,
.single-product section.products ul.products li.type-product .price span {
	color: #333;
	font-weight: 700;
}

.single-product .entry-summary .price {
	display: none;
}

.stock-sous-reserve {
	font-weight: bold;
}

.single-product span.tagged_as a[href*="tag/sous_reserve"] {
	display: none;
}

.single-product span.tagged_as:has(a[href*="tag/sous_reserve"]) {
	display: none;
}

.single-product span.tagged_as:has(:not(a[href*="tag/sous_reserve"])) {
	display: block;
}

/* Ajout entreprises partenaires 27/04 */
h5.title-agency {
	font-size: 16px;
	font-weight: bold;
	margin: 20px 0 0 0;
}

main p.vc_custom_heading.last-paragraphe-agency {
	margin-top: -10px;
}

.logo-agency img {
	margin-top: -20px;
	cursor: pointer;
}

#row-logo-agency .wpb_wrapper {
	display: flex;
	justify-content: center;
	align-items: center;
}


/* Page nos réalisations */

.page-realisations {
	background: #ffffff;
	padding-top: 80px;
	position: relative;
	padding-bottom: 80px;
}

.page-id-4437 li.realisations,
.page-id-4125 li.realisations {
	border: 1px solid #eee;
	padding: 20px !important;
	background: #e9e9e9;
	/* margin-bottom: 2.992em; */
}

.page-id-4437 li.realisations h2,
.page-id-4125 li.realisations h2 {
	padding: .5em 0;
	margin: 0;
	font-size: 1em;
}

.page-id-4437 li.realisations h2 a:hover,
.page-id-4125 li.realisations h2 a:hover {
	color: #333;
}

.page-id-4437 li.realisations img,
.page-id-4125 li.realisations img {
	height: 220px;
	width: 220px;
	object-fit: cover;
	margin: 0 0 1em;
	cursor: pointer;
}


/* Single réalisation */
.single.single-realisations .index-header h1.intro__title {
	font-size: 40px;
}

/* Btn to top */
#btn-to-top-wrap {
    position: fixed;
    right: 10px;
    bottom: 90px;
    z-index: 5;
}


/* Instagram Feed 21/09/26 */ 

.FeedHeader__normal-style.FeedHeader__root{
	width: max-content;
  	gap: 30px;
  	margin: 0 auto 10px;
}

@media (max-width: 767px) {
	.single.single-realisations .index-header h1.intro__title {
		font-size: 25px;
	}
}

.realisations-template-default .intro__post-date {
	display: none;
}

.slick-slide img {
	display: block;
	margin-left: auto;
	margin-right: auto;
	object-fit: contain;
}

.related {
	margin-top: 100px;
	margin-bottom: 15px;
}

.related+.card-container {
	justify-content: center;
}

.block-related a {
	text-align: center
}

.block-related img {
	display: block;
	margin: 0 auto;
	cursor: pointer;
}

/* Page d'accueil 04/05/23 */

.nt-theme-homepage .vc_gitem-zone-img,
.home .vc_gitem-zone-img {
	height: 200px;
	object-fit: contain;
}

@media (min-width: 768px) {

	.nt-theme-homepage .vc_col-sm-1,
	.home .vc_col-sm-1 {
		width: 14.2% !important;
	}
}

@media (max-width: 767px) {
	.title-realisation {
		word-break: break-all;
	}
}

/* Prix ttc */
.price-ttc {
	font-size: 12px;
	font-style: italic;
	margin-top: 15px;
}

/* Diminuer taille titre 
@media only screen and (min-width: 400px) {

	.index-header .uppercase,
	.intro__title {
		font-size: 3.75rem;
		line-height: 4rem;
	}

	.woocommerce.single .index-header .uppercase,
	.archive.woocommerce .index-header .uppercase {
		font-size: 3.75rem;
		line-height: 4rem;
	}
}
*/

/* Iframe visite virtuelle 3D */
.responsive-iframe-container {
	position: relative;
	width: 100%;
	padding-bottom: 56.25%;
	/* Rapport hauteur / largeur de 16:9 */
	height: 0;
}

.responsive-iframe-container iframe {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: none;
}

@media (min-width: 768px) {
/* Supprimer btn "Ajouter au panier / Lire la suite */
ul.products li.product a.product_type_simple.button {
	display: none;
}

/* Slider Gallery */
.single-product .woo-product-gallery-slider .slick-slider {
	margin-bottom: -40px;
}

/* Tag coup de coeur */
.coup-de-coeur-badge {
	position: absolute;
	top: 5px;
	left: 10px;
}

.coup-de-coeur-badge img {
	width: 30px;
	height: 30px;
}
}


@media (min-width: 768px) {

	/*Redimensionnement listing des produits 3/3 en 4/4 */
	.woocommerce-page.archive .container .col-lg-9.float-right.posts {
		max-width: 100%;
	}

	body.woocommerce-page:not(.woocommerce-shop) ul.products li.product a > img{
		height: 260px !important;
	}

	.index-header .uppercase,
	.intro__title {
		font-size: 3.75rem;
		line-height: 4rem;
	}

	.woocommerce.single .index-header .uppercase,
	.archive.woocommerce .index-header .uppercase {
		font-size: 3.75rem;
		line-height: 4rem;
	}

	h2.parent-category-title + ul.products {
		display: flex;
		flex-wrap: wrap;
	}

	.woocommerce ul.products li.product a img{
		height: 175px;
	}

}

/* Visibilité slider / Diminuer taille titre / Inverser column nos réalisations + centrer bouton */
@media (max-width: 767px) {
	main {
		position: relative;
		top: 70px;
	}

	.home h1 {
		font-size: 3rem;
	}

	.home h2 {
		font-size: 2.5rem;
	}

	#column-realisations {
		flex-direction: column-reverse;
	}

	h2.title-realisation {
		font-size: 4.5rem !important;
	}

	/* Section Voyez les choses en grand */
	.vc_custom_1633435843761 p.text-left {
		margin-bottom: 10px;
	}

	.vc_custom_1633435843761 p.text-left,
	#column-realisations p.text-left {
		text-align: center;
	}

	body.woocommerce-page:not(.woocommerce-shop) ul.products li.product a > img{
		height: 200px !important;
	}

	.index-header .uppercase,
	.intro__title {
		font-size: 2rem;
		line-height: 3rem;
	}

	.woocommerce.single .index-header .uppercase,
	.archive.woocommerce .index-header .uppercase {
		font-size: 2rem;
		line-height: 3rem;
	}

	.tax-product_cat ul.products li.type-product .price,
.single-product section.products ul.products li.type-product .price {
		right: 4px;
		font-size: 11px;
	}

	/* Tag coup de coeur */
	.coup-de-coeur-badge {
		top: 7px;
	}

	.coup-de-coeur-badge img {
		width: 22px !important;
		height: 22px !important;
	}

	h2.parent-category-title + ul.products li.product {
		display: flex;
		flex-wrap: wrap;
		min-height: 300px;
	}

	.woocommerce ul.products li.product a img{
		height: 125px;
	}

}

@media(max-width: 550px){

.tax-product_cat ul.products li.type-product .price,
.single-product section.products ul.products li.type-product .price {
		font-size: 9px;
	}

		.coup-de-coeur-badge {
		top: 5px;
	}
}

/* Listing produit */ 

body.woocommerce-shop .float-right.posts{
	display: flex;
	flex-wrap: wrap;
}

.parent-category-block:nth-child(1) {
    order: 2; /* Aménagement intérieur */
}

.parent-category-block:nth-child(2) {
    order: 1; /* Aménagement extérieur */
}

.parent-category-block:nth-child(3) {
    order: 3; /* Charpente */
}

.parent-category-block:nth-child(4) {
    order: 4; /* Isolation */
}

.parent-category-block:nth-child(5) {
    order: 6; /* Matériaux et outilage */
}

.parent-category-block:nth-child(6){
	order: 5; /* Solutions pour cloisons intérieures */
}


.start-screen__content .title {
	letter-spacing: 10px !important;
}


.page-blog .parent-category-block .parent-category-title{
	margin-top: 40px;
}

/* Supprimer titre uncategorized de la page produits */
.parent-category-block:last-of-type .parent-category-title{
    display: none;
}

/* Intervention 07/24 - Affichage en 4x4 */ 
.woocommerceshop h2.parent-category-title{
	margin-top: 50px;
}

@media screen and (min-width: 1024px) {

	/* Désactivez les règles float */
	.woocommerce-shop ul.products li.product, .woocommerce-page ul.products li.product {
	    /*float: none; Désactive le flottement */
	    padding: 0;
	    width: 23%; /* Réinitialise la largeur */
	}
	.woocommerce-page ul.products li.product:not(:nth-child(4n)){
		margin-right: 2.5%; /* Réinitialise les marges */
	}

	/* Appliquez Flexbox */
	.woocommerce-shop .parent-category-block .products {
	    display: flex;
	    flex-wrap: wrap;
	}

	.woocommerce-shop .parent-category-block .products li {
	    box-sizing: border-box; /* Assure que le padding et la marge sont inclus dans la largeur */
		flex: 1 1 24%;
		max-width: 24%;
		margin: 0.5% !important;
	}

	/* Ajustement des marges pour l'espacement */
	.woocommerce-shop .parent-category-block .products li {
	    padding: 10px;
	}

	/* Supprimer la marge droite pour chaque 4ème élément */
	.woocommerce-shop .parent-category-block .products li:nth-child(4n) {
	    margin-right: 0;
	}

	.page-id-4437 .wp-block-post-template .wp-block-post-template .is-flex-container{
		gap: 1%;
	}

	.page-id-4437 .wp-block-post-template .is-flex-container .is-flex-container .columns-4{
		width: 24%;
	}
}

@media (min-width: 992px){
	.page-id-4437 .col-lg-9,
	.woocommerce-page .col-lg-9{
		width: 100%;
		max-width: 100%;
	}
}


/* FILTRES PDF */

.page-id-6270 main{
	background: #ffffff;
	padding-top: 80px;
	position: relative;
	padding-bottom: 80px;
}

.page-id-6270 .pdf-library{
	margin-top: 40px;
}

.page-id-6270 .pdf-item {
    text-align: center;
    margin-top: 10px;
    margin-bottom: 10px;
}

.page-id-6270 .pdf-line {
    display: flex;
    gap: 20px; /* Espacement entre les éléments */
    align-items: flex-start; /* Aligne les éléments au début */
}

.page-id-6270 .pdf-block {
    flex: 1; /* Permet à chaque bloc de prendre une largeur égale */
    max-width: 48%; /* Limite la largeur des blocs pour qu'ils restent sur une seule ligne */
    background: #e9e9e9;
	border: 1px solid #eee;
	padding: 20px;
	min-height: 250px;
}

.page-id-6270 .pdf-block img {
    max-width: 100%;
    height: auto;
}

.page-id-6270 .pdf-library h2{
	margin-top: 16px;
}

.page-id-6270 .pdf-library h3{
	margin-top: 8px;
	font-weight: 400;
    font-size: 1.9em;
}

.page-id-6270 .pdf-library h3{
	font-size: 1em;
}

@media screen and (min-width: 1025px){
	.page-id-6270 .pdf-category-items{
	    display: grid;
	    grid-template-columns: repeat(2, 1fr); /* Limite à 2 colonnes par ligne */
	    gap: 20px; /* Ajuste l'espacement entre les produits */
	    margin-bottom: 60px;
	}

	.footer__item.horaires,
	.footer__item.reseaux-sociaux{
		margin-top: 139px;
	}
}

@media screen and (max-width: 1024px){
	.page-id-6270 .pdf-category-items {
	    margin-bottom: 40px;
	}
}

@media screen and (min-width: 768px){

	.page-id-6270 .category-selector{
    	display: flex;
    	align-items: baseline;
	}

	.page-id-6270 .category-selector label{
		white-space: nowrap;
		width: 20%;
	}

	.page-id-6270 .category-selector select{
	    width: 25%;
	    text-align: center;
	}
}

@media screen and (max-width: 767px){
	.page-realisations,
	.page-id-6270 main,
	.single-realisations .section{
		padding-top: 0px;
	}

	.page-id-6270 .category-selector select{
	    width: 80%;
	    text-align: center;
	}

	.page-id-6270 .pdf-library h2{
		font-size: 2.5rem;
	}
}

/*---- PAGE BOUTIQUE ----*/
.page-id-674 h1,
.page-id-674 .vc_custom_1685000195647 h2,
.page-id-674  .vc_custom_1685000209740 h2{
	margin-bottom: 80px !important;
}

.page-id-674 h2{
	margin-top: 40px !important;
}

/*---- AMELIA ----*/

.amelia-app-booking #amelia-booking-wrap #am-step-booking .am-select-date .am-button-wrapper .el-button span,
.amelia-app-booking #amelia-booking-wrap .am-step-booking-catalog .am-select-date .am-button-wrapper .el-button span,
.amelia-app-booking #amelia-booking-wrap #am-step-booking .am-select-date .am-appointment-times .el-radio-button .el-radio-button__orig-radio:checked + .el-radio-button__inner:hover, 
.amelia-app-booking #amelia-booking-wrap .am-step-booking-catalog .am-select-date .am-appointment-times .el-radio-button .el-radio-button__orig-radio:checked + .el-radio-button__inner:hover,
.amelia-app-booking #amelia-booking-wrap #am-step-booking .am-select-date .am-calendar-picker .c-day-content:hover,
.amelia-app-booking #amelia-booking-wrap .am-step-booking-catalog .am-select-date .am-calendar-picker .c-day-content:hover{
	font-size: #000;
}

/* ---- RDV ---- */
.date-disabled {
  opacity: 0.6;
  cursor: not-allowed;
}


/* ---- BANDEAU ---- */
.bandeau {
	background-color: #F9F04B;
    display: flex;
    justify-content: center;
}    

.bandeau .texte {
	color: #fff;
	display: flex;
	flex-direction: column !important;
	align-items: center;
    margin: 12px auto;
}  

.bandeau .texte p {
	margin: 0;
    font-size: 14px;
    font-family: 'Poppins';
    text-align: center;
}

.bandeau .texte a {
	color: #fff;
	cursor: pointer;
}

.bandeau .texte a:hover{
	color: #4a8b71;
}

.bandeau{
	padding-top: 24px;
	padding-bottom: 24px;
}

/* Background blanc qui apparaît sur des pages */
.page-id-7035 #top-bar{
	background: transparent;
}

.bandeau-image {
  max-width: 100%;
  height: auto;
  /*max-height: 250px;*/
  display: block;
  margin: 0 auto;
  cursor: pointer;
}


/* --- Page Contact --- */
#img-devanture-besancon ul.wpb_image_grid_ul,
#img-devanture-sancey ul.wpb_image_grid_ul{
	display: flex;
}

#img-devanture-besancon ul.wpb_image_grid_ul{
	justify-content: space-evenly;
}

#img-devanture-sancey ul.wpb_image_grid_ul{
	justify-content: center;
}

#img-devanture-besancon ul.wpb_image_grid_ul li,
#img-devanture-sancey ul.wpb_image_grid_ul li{
	position: relative !important;
	top: unset !important;
	left: unset !important;
}

@media (min-width: 768px){
	/*body.home #top-bar{
		top: 255px !important;
		transition: top 0.3s;
	}

	body:not(.home) #top-bar{
		top: 300px !important;
		transition: top 0.3s;
		position: absolute !important;
	}*/
}

@media (max-width: 767px){
	 /*#top-bar {
	   top: 153px;
	   transition: top 0.3s;
	 }*/

	 #top-bar__navigation {
	 	top: 40px !important;
	 }

	.bandeau .texte p {
		margin: 12px;
	}

	.bandeau .texte p, 
	.bandeau .texte a {
		font-size: 12px;
	}
}

.mobile-header-after-scroll {
  top: 0 !important; /* Force la barre en haut lors du défilement */
}

/* Sélectionner une date */
@media (max-width: 767px) {
  .input-wrp--date {
    position: relative;
  }

  .input-wrp--date::before {
    content: attr(data-label);
    position: absolute;
    left: 0;
    top: 0;
    padding-top: 0.6rem; /* à ajuster selon ton theme */
    color: #b3b3b3;
    font-size: 14px;
    pointer-events: none;
  }

  .input-wrp--date.has-value::before {
    opacity: 0;
  }
}
