/*
Theme Name: green-vegetable-store-child
Theme URI: 
Author: Stéphane Plessis
Author URI: 
Description: 
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 5.7
Version: 
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: green-vegetable-store
Text Domain: green-vegetable-store-child
Tags: 
*/

/* =========================
   FIX SWIPER - STABILISATION COMPLÈTE
========================= */

html,
body {
	overflow-x: hidden;
}

.homepage-wrapper {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
	margin: 0;
	padding: 0;
}

.green-vegetable-store-child-swiper {
	position: relative;
	width: 100%;
	max-width: 100%;
	height: 530px;
	min-height: 530px;
	overflow: hidden !important;
	opacity: 0;
	visibility: hidden;
}

.green-vegetable-store-child-swiper.swiper-initialized,
.green-vegetable-store-child-swiper.glandinette-swiper-ready {
	opacity: 1;
	visibility: visible;
}

.green-vegetable-store-child-swiper .swiper-wrapper {
	display: flex;
	width: 100%;
	height: 530px;
	align-items: stretch;
}

.green-vegetable-store-child-swiper .swiper-slide,
.green-vegetable-store-child-swiper .slider-section {
	position: relative;
	width: 100% !important;
	max-width: 100%;
	height: 530px;
	min-height: 530px;
	flex: 0 0 100%;
	overflow: hidden;
	margin: 0 !important;
	padding: 0 !important;
}

.green-vegetable-store-child-swiper .slide-bg {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	z-index: 0;
}

.green-vegetable-store-child-swiper .slide-bg img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center center;
	display: block;
	margin: 0 !important;
	padding: 0 !important;
}

.green-vegetable-store-child-swiper .slide-overlay {
	position: absolute;
	inset: 0;
	z-index: 1;
}

.green-vegetable-store-child-swiper .slide-content-wrapper {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 530px;
	min-height: 530px;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 !important;
	padding: 65px 40px 0 40px;
	box-sizing: border-box;
}

.green-vegetable-store-child-swiper .slider-cols-wrap {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto !important;
	align-items: center !important;
	transform: scale(1.18);
	transform-origin: center center;
}

.green-vegetable-store-child-swiper figure,
.green-vegetable-store-child-swiper img,
.green-vegetable-store-child-swiper .wp-block-columns,
.green-vegetable-store-child-swiper .wp-block-column {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
}

/* =========================
   AGRANDIR LE CONTENU DU SLIDE
========================= */

.green-vegetable-store-child-swiper .slider-content h2 {
	font-size: clamp(42px, 4vw, 72px);
	line-height: 1.05;
}

.green-vegetable-store-child-swiper .slider-content p {
	font-size: 20px;
	line-height: 1.6;
}

.green-vegetable-store-child-swiper .slider-content .wp-block-button__link {
	font-size: 18px;
	padding: 18px 46px;
}

.green-vegetable-store-child-swiper .wp-block-image img {
	width: 100%;
	max-width: 620px;
}

/* =========================
   DESKTOP - IMAGE COLLÉE À DROITE SANS COUPURE
========================= */

@media (min-width: 1025px) {

	.green-vegetable-store-child-swiper .slider-cols-wrap {
		max-width: 1550px;
		padding-right: 0 !important;
		transform: scale(1.00) translateY(0px);
	}

	.green-vegetable-store-child-swiper .wp-block-columns {
		gap: 0 !important;
	}

	.green-vegetable-store-child-swiper .wp-block-column:last-child {
		display: flex;
		justify-content: flex-end;
		padding-right: 0 !important;
		margin-right: -40px;
	}

	.green-vegetable-store-child-swiper .wp-block-image {
		margin-right: 0 !important;
		width: 100%;
	}

	.green-vegetable-store-child-swiper .wp-block-image img {
		max-width: 730px;
		width: 100%;
		display: block;
		margin-right: 0 !important;
	}
}

/* =========================
   RESPONSIVE SLIDER - TABLETTE / MOBILE
========================= */

@media (max-width: 1024px) {

	.green-vegetable-store-child-swiper,
	.green-vegetable-store-child-swiper .swiper-wrapper,
	.green-vegetable-store-child-swiper .swiper-slide,
	.green-vegetable-store-child-swiper .slider-section,
	.green-vegetable-store-child-swiper .slide-content-wrapper {
		height: auto !important;
		min-height: 620px !important;
	}

	.green-vegetable-store-child-swiper .slide-content-wrapper {
		padding: 90px 25px 30px 25px !important;
		align-items: center !important;
	}

	.green-vegetable-store-child-swiper .slider-cols-wrap {
		transform: none !important;
		max-width: 100%;
		display: flex !important;
		flex-direction: column !important;
		gap: 30px;
		text-align: center;
	}

	.green-vegetable-store-child-swiper .wp-block-column {
		flex-basis: 100% !important;
		width: 100% !important;
	}

	.green-vegetable-store-child-swiper .slider-content {
		text-align: center;
	}

	.green-vegetable-store-child-swiper .slider-content h2 {
		font-size: clamp(36px, 8vw, 56px);
		line-height: 1.08;
		margin: 0 auto 20px auto !important;
		max-width: 95%;
	}

	.green-vegetable-store-child-swiper .slider-content p {
		font-size: 17px;
		line-height: 1.5;
		max-width: 90%;
		margin-left: auto !important;
		margin-right: auto !important;
	}

	.green-vegetable-store-child-swiper .wp-block-image img {
		max-width: 92%;
		margin: 0 auto !important;
		display: block;
	}
}

@media (max-width: 600px) {

	.green-vegetable-store-child-swiper,
	.green-vegetable-store-child-swiper .swiper-wrapper,
	.green-vegetable-store-child-swiper .swiper-slide,
	.green-vegetable-store-child-swiper .slider-section,
	.green-vegetable-store-child-swiper .slide-content-wrapper {
		min-height: 560px !important;
	}

	.green-vegetable-store-child-swiper .slide-content-wrapper {
		padding: 75px 18px 25px 18px !important;
	}

	.green-vegetable-store-child-swiper .slider-cols-wrap {
		gap: 28px;
	}

	.green-vegetable-store-child-swiper .slider-content h2 {
		font-size: clamp(34px, 11vw, 48px);
		line-height: 1.08;
		max-width: 100%;
	}

	.green-vegetable-store-child-swiper .slider-content p {
		display: none;
	}

	.green-vegetable-store-child-swiper .slider-content .wp-block-button__link {
		font-size: 16px;
		padding: 16px 36px;
	}

	.green-vegetable-store-child-swiper .wp-block-image img {
		max-width: 100%;
	}
}

/* =========================
   MENU ACTIF - ACTUALITÉS
   uniquement blog / articles
========================= */

body.blog .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"],
body.category .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"],
body.tag .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"],
body.single-post .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"] {
	position: relative;
}

body.blog .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]::after,
body.category .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]::after,
body.tag .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]::after,
body.single-post .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -20px;
	width: 100%;
	height: 2px;
	background: #f5d000;
	border-radius: 20px;
}

/* Évite le double trait au survol sur Actualités */
body.blog .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]:hover::before,
body.category .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]:hover::before,
body.tag .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]:hover::before,
body.single-post .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]:hover::before {
	display: none !important;
}

/* =========================
   RANK MATH BREADCRUMB
========================= */

.rank-math-breadcrumb {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto 30px auto;
	padding: 12px 20px;
	font-size: 15px;
	line-height: 1.5;
	color: #666;
}

.rank-math-breadcrumb a {
	color: #6b8e23;
	text-decoration: none;
	transition: opacity 0.3s ease;
}

.rank-math-breadcrumb a:hover {
	opacity: 0.7;
}

.rank-math-breadcrumb .separator {
	margin: 0 8px;
	color: #999;
}

/* =========================
   BORDURE BAS BANNIÈRE
========================= */

.inner-cover-img {
	border-bottom: 20px solid #0C7735;
}

/* =========================
   FIL D'ARIANE - UNIFORMISATION
========================= */

.glandinette-breadcrumb-wrap {
	margin-top: 0 !important;
	margin-bottom: 0 !important;
	padding-top: 10px !important;
	padding-bottom: 0 !important;
}

.glandinette-breadcrumb-wrap .wp-block-shortcode {
	margin: 0 !important;
	padding: 0 !important;
}

.glandinette-breadcrumb-wrap .rank-math-breadcrumb {
	margin: 0 0 25px 0 !important;
	padding: 0 !important;
	max-width: 100% !important;
}

/* =========================
   IMAGE PRINCIPALE ARTICLE - FORMAT BANNIÈRE
========================= */

body.single-post main > .wp-block-group.alignwide > .wp-block-columns > .wp-block-column:first-child > .wp-block-post-featured-image {
	width: 100% !important;
	margin-bottom: 30px !important;
}

body.single-post main > .wp-block-group.alignwide > .wp-block-columns > .wp-block-column:first-child > .wp-block-post-featured-image img {
	width: 100% !important;
	height: 500px !important;
	object-fit: cover !important;
	object-position: center center !important;
	border-radius: 12px;
	display: block;
}

/* =========================
   MINIATURES ARTICLES LIÉS
========================= */

.related-post .wp-block-post-featured-image {
	width: 100% !important;
	margin-bottom: 20px !important;
}

.related-post .wp-block-post-featured-image img {
	width: 100% !important;
	height: 260px !important;
	object-fit: cover !important;
	object-position: center center !important;
	border-radius: 10px;
	display: block;
}

/* =========================
   RESPONSIVE ARTICLES
========================= */

@media (max-width: 768px) {

	body.single-post main > .wp-block-group.alignwide > .wp-block-columns > .wp-block-column:first-child > .wp-block-post-featured-image img {
		height: 260px !important;
	}

	.related-post .wp-block-post-featured-image img {
		height: 220px !important;
	}
}

/* =========================
   MENU MOBILE - CORRECTIONS ACTIF
========================= */

@media screen and (max-width: 999px) {

	/* Supprime les cadres de focus noirs dans le menu mobile */
	.wp-block-navigation__responsive-container.is-menu-open a,
	.wp-block-navigation__responsive-container.is-menu-open a:focus,
	.wp-block-navigation__responsive-container.is-menu-open a:focus-visible,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:focus,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item:focus-visible {
		outline: none !important;
		box-shadow: none !important;
	}

	/* Empêche Accueil de rester sélectionné sur les autres pages */
	body:not(.home):not(.front-page) 
	.wp-block-navigation__responsive-container.is-menu-open 
	.wp-block-navigation__container > li:first-child > a {
		background-color: transparent !important;
		color: #000 !important;
		outline: none !important;
		box-shadow: none !important;
	}

	/* Supprime le soulignement desktop sur Actualités en mobile */
	body.blog .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]::after,
	body.category .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]::after,
	body.tag .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]::after,
	body.single-post .menu-header-wrap .wp-block-navigation-item a[href*="/actualites/"]::after {
		display: none !important;
		content: none !important;
	}

	/* Colore la cellule Actualités en mobile quand on est dans le blog */
	body.blog .wp-block-navigation__responsive-container.is-menu-open a[href*="/actualites/"],
	body.category .wp-block-navigation__responsive-container.is-menu-open a[href*="/actualites/"],
	body.tag .wp-block-navigation__responsive-container.is-menu-open a[href*="/actualites/"],
	body.single-post .wp-block-navigation__responsive-container.is-menu-open a[href*="/actualites/"] {
		background-color: var(--wp--preset--color--primary-light) !important;
		color: var(--wp--preset--color--primary) !important;
		outline: none !important;
		box-shadow: none !important;
	}
}
/* =========================
   COMPLIANZ - STYLE GLANDINETTE PARK
========================= */

.cmplz-cookiebanner {
	border-radius: 18px !important;
	border: 3px solid #ffd400 !important;
	box-shadow: 0 18px 45px rgba(0, 0, 0, 0.25) !important;
	font-family: "DM Sans", sans-serif !important;
	color: #1d2b1f !important;
}

.cmplz-cookiebanner .cmplz-title {
	font-family: "Amatic SC", cursive !important;
	font-size: 34px !important;
	font-weight: 700 !important;
	color: #087b35 !important;
	text-align: center !important;
}

.cmplz-cookiebanner .cmplz-message {
	font-size: 15px !important;
	line-height: 1.55 !important;
	color: #263426 !important;
}

/* Boutons */
.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
	border-radius: 12px !important;
	font-weight: 700 !important;
	padding: 14px 24px !important;
	border: none !important;
	transition: all 0.25s ease !important;
}

/* Bouton Accepter */
.cmplz-cookiebanner .cmplz-btn.cmplz-accept {
	background-color: #087b35 !important;
	color: #ffffff !important;
}

/* Bouton Refuser */
.cmplz-cookiebanner .cmplz-btn.cmplz-deny {
	background-color: #ffd400 !important;
	color: #1d2b1f !important;
}

/* Bouton Préférences */
.cmplz-cookiebanner .cmplz-btn.cmplz-view-preferences {
	background-color: #ffffff !important;
	color: #087b35 !important;
	border: 2px solid #087b35 !important;
}

/* Hover boutons */
.cmplz-cookiebanner .cmplz-btn:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}

/* Liens politiques */
.cmplz-cookiebanner .cmplz-links a {
	color: #087b35 !important;
	font-weight: 600 !important;
	text-decoration: underline !important;
}

/* Croix de fermeture */
.cmplz-cookiebanner .cmplz-close {
	color: #087b35 !important;
	font-size: 24px !important;
}

/* Version mobile */
@media (max-width: 768px) {
	.cmplz-cookiebanner {
		width: calc(100% - 24px) !important;
		left: 12px !important;
		right: 12px !important;
		bottom: 12px !important;
	}

	.cmplz-cookiebanner .cmplz-buttons {
		flex-direction: column !important;
	}

	.cmplz-cookiebanner .cmplz-buttons .cmplz-btn {
		width: 100% !important;
	}
}
/* =========================
   ACTUALITÉS ACCUEIL - STYLE GLANDINETTE
   Compatible bloc parent latest-news
========================= */

.latest-news {
	background: #fffdf4;
	position: relative;
	overflow: hidden;
}

.latest-news .wp-block-post-template {
	gap: 34px !important;
}

.latest-news .wp-block-post {
	position: relative;
	background: #fffdf4 !important;
	border: 1px solid rgba(12, 119, 53, 0.18) !important;
	border-top: 5px solid #0c7735 !important;
	border-bottom: 5px solid #ffd400 !important;
	border-radius: 24px !important;
	padding: 22px !important;
	box-shadow: 0 18px 35px rgba(0, 65, 30, 0.10) !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
	text-align: center;
}

.latest-news .wp-block-post:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 45px rgba(0, 65, 30, 0.18) !important;
}

.latest-news .wp-block-post::before {
	content: "";
	position: absolute;
	top: -42px;
	right: -42px;
	width: 120px;
	height: 120px;
	background: #FFD800;
	border-radius: 50%;
	z-index: 0;
}

.latest-news .wp-block-post > * {
	position: relative;
	z-index: 1;
}

.latest-news .wp-block-post-date {
	display: inline-block !important;
	background: #0c7735 !important;
	color: #ffffff !important;
	padding: 12px 20px !important;
	margin-top: -22px !important;
	margin-bottom: 22px !important;
	border-radius: 0 0 18px 18px !important;
	font-weight: 700 !important;
	box-shadow: 0 8px 18px rgba(12, 119, 53, 0.25);
}

.latest-news .wp-block-post-featured-image {
	margin-bottom: 22px !important;
}

.latest-news .wp-block-post-featured-image img {
	width: 100% !important;
	height: 190px !important;
	object-fit: cover !important;
	object-position: center center !important;
	border-radius: 18px !important;
	border: 3px solid rgba(12, 119, 53, 0.14);
	display: block;
}

.latest-news .wp-block-post-title {
	min-height: 88px;
	margin: 8px 0 14px 0 !important;
	text-align: center !important;
}

.latest-news .wp-block-post-title a {
	color: #143d25 !important;
	font-size: clamp(30px, 2vw, 38px) !important;
	line-height: 0.95 !important;
	text-decoration: none !important;
}

.latest-news .wp-block-post-title a:hover {
	color: #0c7735 !important;
}

.latest-news .wp-block-post-excerpt {
	min-height: 78px;
	color: #66706a !important;
	font-size: 16px;
	line-height: 1.55;
	text-align: center;
}

.latest-news .wp-block-read-more {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	border: 2px solid #ffd400 !important;
	background: #ffffff !important;
	color: #d4a900 !important;
	border-radius: 999px !important;
	padding: 14px 22px !important;
	font-weight: 700 !important;
	text-align: center !important;
	text-decoration: none !important;
}

.latest-news .wp-block-read-more:hover {
	background: #ffd400 !important;
	color: #143d25 !important;
}

/* Titres de la section */
.latest-news .head-box h3 {
	color: #0c7735 !important;
}

.latest-news .head-box h2 {
	color: #143d25 !important;
}

/* Responsive */
@media (max-width: 999px) {
	.latest-news .wp-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}

	.latest-news .wp-block-post-featured-image img {
		height: 170px !important;
	}
}

@media (max-width: 767px) {
	.latest-news .wp-block-post-template {
		display: block !important;
	}

	.latest-news .wp-block-post {
		margin-bottom: 30px !important;
		padding: 18px !important;
	}

	.latest-news .wp-block-post-title {
		min-height: auto;
	}

	.latest-news .wp-block-post-featured-image img {
		height: auto !important;
	}
}
/* =========================
   PAGE ACTUALITÉS - MÊME STYLE QUE ACCUEIL
========================= */

body.blog .post-grid-layout,
body.archive .post-grid-layout,
body.category .post-grid-layout,
body.tag .post-grid-layout {
	gap: 34px !important;
}

body.blog .inner-post-box,
body.archive .inner-post-box,
body.category .inner-post-box,
body.tag .inner-post-box {
	position: relative;
	background: #fffdf4 !important;
	border: 1px solid rgba(12, 119, 53, 0.18) !important;
	border-top: 5px solid #0c7735 !important;
	border-bottom: 5px solid #ffd400 !important;
	border-radius: 24px !important;
	padding: 22px !important;
	box-shadow: 0 18px 35px rgba(0, 65, 30, 0.10) !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	overflow: hidden;
	text-align: center;
}

body.blog .inner-post-box:hover,
body.archive .inner-post-box:hover,
body.category .inner-post-box:hover,
body.tag .inner-post-box:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 45px rgba(0, 65, 30, 0.18) !important;
}

body.blog .inner-post-box::before,
body.archive .inner-post-box::before,
body.category .inner-post-box::before,
body.tag .inner-post-box::before {
	content: "";
	position: absolute;
	top: -42px;
	right: -42px;
	width: 120px;
	height: 120px;
	background: #ffd800;
	border-radius: 50%;
	z-index: 0;
}

body.blog .inner-post-box > *,
body.archive .inner-post-box > *,
body.category .inner-post-box > *,
body.tag .inner-post-box > * {
	position: relative;
	z-index: 1;
}

body.blog .inner-post-box .wp-block-post-featured-image,
body.archive .inner-post-box .wp-block-post-featured-image,
body.category .inner-post-box .wp-block-post-featured-image,
body.tag .inner-post-box .wp-block-post-featured-image {
	margin-bottom: 22px !important;
}

body.blog .inner-post-box .wp-block-post-featured-image img,
body.archive .inner-post-box .wp-block-post-featured-image img,
body.category .inner-post-box .wp-block-post-featured-image img,
body.tag .inner-post-box .wp-block-post-featured-image img {
	width: 100% !important;
	height: 190px !important;
	object-fit: cover !important;
	object-position: center center !important;
	border-radius: 18px !important;
	border: 3px solid rgba(12, 119, 53, 0.14);
	display: block;
}

body.blog .inner-post-box .post-title,
body.archive .inner-post-box .post-title,
body.category .inner-post-box .post-title,
body.tag .inner-post-box .post-title {
	justify-content: center !important;
	text-align: center !important;
}

body.blog .inner-post-box .post-title .wp-block-separator,
body.archive .inner-post-box .post-title .wp-block-separator,
body.category .inner-post-box .post-title .wp-block-separator,
body.tag .inner-post-box .post-title .wp-block-separator {
	display: none !important;
}

body.blog .inner-post-box .wp-block-post-title,
body.archive .inner-post-box .wp-block-post-title,
body.category .inner-post-box .wp-block-post-title,
body.tag .inner-post-box .wp-block-post-title {
	min-height: 88px;
	margin: 8px 0 14px 0 !important;
	text-align: center !important;
}

body.blog .inner-post-box .wp-block-post-title a,
body.archive .inner-post-box .wp-block-post-title a,
body.category .inner-post-box .wp-block-post-title a,
body.tag .inner-post-box .wp-block-post-title a {
	color: #143d25 !important;
	font-size: clamp(30px, 2vw, 38px) !important;
	line-height: 0.95 !important;
	text-decoration: none !important;
}

body.blog .inner-post-box .wp-block-post-date,
body.archive .inner-post-box .wp-block-post-date,
body.category .inner-post-box .wp-block-post-date,
body.tag .inner-post-box .wp-block-post-date {
	color: #0c7735 !important;
	font-weight: 700 !important;
	text-align: center !important;
	margin-bottom: 22px !important;
}

body.blog .inner-post-box .wp-block-post-excerpt,
body.archive .inner-post-box .wp-block-post-excerpt,
body.category .inner-post-box .wp-block-post-excerpt,
body.tag .inner-post-box .wp-block-post-excerpt {
	min-height: 78px;
	color: #66706a !important;
	font-size: 16px;
	line-height: 1.55;
	text-align: center;
}

body.blog .inner-post-box .wp-block-read-more,
body.archive .inner-post-box .wp-block-read-more,
body.category .inner-post-box .wp-block-read-more,
body.tag .inner-post-box .wp-block-read-more {
	display: block !important;
	width: 100% !important;
	box-sizing: border-box;
	border: 2px solid #ffd400 !important;
	background: #ffffff !important;
	color: #d4a900 !important;
	border-radius: 999px !important;
	padding: 14px 22px !important;
	font-weight: 700 !important;
	text-align: center !important;
	text-decoration: none !important;
	margin-top: 22px !important;
}

body.blog .inner-post-box .wp-block-read-more:hover,
body.archive .inner-post-box .wp-block-read-more:hover,
body.category .inner-post-box .wp-block-read-more:hover,
body.tag .inner-post-box .wp-block-read-more:hover {
	background: #ffd400 !important;
	color: #143d25 !important;
}

/* Responsive */
@media (max-width: 768px) {
	body.blog .inner-post-box,
	body.archive .inner-post-box,
	body.category .inner-post-box,
	body.tag .inner-post-box {
		padding: 18px !important;
	}

	body.blog .inner-post-box .wp-block-post-title,
	body.archive .inner-post-box .wp-block-post-title,
	body.category .inner-post-box .wp-block-post-title,
	body.tag .inner-post-box .wp-block-post-title {
		min-height: auto;
	}

	body.blog .inner-post-box .wp-block-post-featured-image img,
	body.archive .inner-post-box .wp-block-post-featured-image img,
	body.category .inner-post-box .wp-block-post-featured-image img,
	body.tag .inner-post-box .wp-block-post-featured-image img {
		height: auto !important;
	}
}
/* Supprime le petit trait jaune avant "Lire la suite" */
body.blog .inner-post-box .wp-block-read-more::before,
body.archive .inner-post-box .wp-block-read-more::before,
body.category .inner-post-box .wp-block-read-more::before,
body.tag .inner-post-box .wp-block-read-more::before,
body.blog .inner-post-box a.wp-block-read-more::before,
body.archive .inner-post-box a.wp-block-read-more::before,
body.category .inner-post-box a.wp-block-read-more::before,
body.tag .inner-post-box a.wp-block-read-more::before {
	display: none !important;
	content: none !important;
	width: 0 !important;
	height: 0 !important;
	margin: 0 !important;
	border: 0 !important;
	background: transparent !important;
}

/* Supprime aussi les traits jaunes générés par les séparateurs proches du bouton */
body.blog .inner-post-box .wp-block-read-more + .wp-block-separator,
body.archive .inner-post-box .wp-block-read-more + .wp-block-separator,
body.category .inner-post-box .wp-block-read-more + .wp-block-separator,
body.tag .inner-post-box .wp-block-read-more + .wp-block-separator,
body.blog .inner-post-box .wp-block-separator:has(+ .wp-block-read-more),
body.archive .inner-post-box .wp-block-separator:has(+ .wp-block-read-more),
body.category .inner-post-box .wp-block-separator:has(+ .wp-block-read-more),
body.tag .inner-post-box .wp-block-separator:has(+ .wp-block-read-more) {
	display: none !important;
}
/* =========================
   PLUS D'ARTICLES À DÉCOUVRIR
   CARTES INDIVIDUELLES
========================= */

/* Neutralise le gros bloc global */
.related-post {
	background: transparent !important;
	border: none !important;
	box-shadow: none !important;
	padding: 0 !important;
	overflow: visible !important;
}

.related-post::before {
	display: none !important;
	content: none !important;
}

/* Applique le style à chaque carte */
.related-post .wp-block-post {
	position: relative;
	background: #fffdf4 !important;
	border: 1px solid rgba(12, 119, 53, 0.18) !important;
	border-top: 5px solid #0c7735 !important;
	border-bottom: 5px solid #ffd400 !important;
	border-radius: 24px !important;
	padding: 22px !important;
	box-shadow: 0 18px 35px rgba(0, 65, 30, 0.10) !important;
	overflow: hidden;
	text-align: center;
}

.related-post .wp-block-post::before {
	content: "";
	position: absolute;
	top: -42px;
	right: -42px;
	width: 120px;
	height: 120px;
	background: #ffd800;
	border-radius: 50%;
	z-index: 0;
}

.related-post .wp-block-post > * {
	position: relative;
	z-index: 1;
}
/* =========================
   PLUS D'ARTICLES À DÉCOUVRIR
   IMAGES PLUS PETITES NON TRONQUÉES
========================= */

.related-post .wp-block-post-featured-image {
	width: 100% !important;
	margin-bottom: 18px !important;
	text-align: center !important;
}

.related-post .wp-block-post-featured-image img {
	width: 100% !important;
	height: 135px !important;
	object-fit: contain !important;
	object-position: center center !important;
	background: #fffdf4 !important;
	border-radius: 18px !important;
	border: 3px solid rgba(12, 119, 53, 0.14) !important;
	display: block !important;
}

/* Ajuste un peu la hauteur des cartes */
.related-post .wp-block-post {
	padding: 20px !important;
}

/* Responsive */
@media (max-width: 768px) {
	.related-post .wp-block-post-featured-image img {
		height: auto !important;
		max-height: 180px !important;
		object-fit: contain !important;
	}
}
/* =========================
   COMPLIANZ - CENTRAGE MOBILE
========================= */

@media (max-width: 768px) {

	.cmplz-cookiebanner {
		left: 50% !important;
		transform: translateX(-50%) !important;

		width: calc(100% - 30px) !important;
		max-width: 420px !important;

		right: auto !important;
		margin: 0 auto !important;

		box-sizing: border-box !important;
	}

	.cmplz-cookiebanner .cmplz-body,
	.cmplz-cookiebanner .cmplz-buttons {
		width: 100% !important;
		box-sizing: border-box !important;
	}
}
/* =========================
   BOUTON "GÉRER LE CONSENTEMENT"
========================= */

.cmplz-manage-consent {
	right: 0px !important;
	bottom: 0px !important;

	background: #ffffff !important;
	color: #1d4d2f !important;

	border: 2px solid #f5d300 !important;
	border-radius: 18px 18px 0 0 !important;

	padding: 10px 18px !important;

	font-size: 15px !important;
	font-weight: 600 !important;

	box-shadow: 0 6px 18px rgba(0,0,0,0.18) !important;

	transition: all 0.25s ease !important;
}

/* Hover */

.cmplz-manage-consent:hover {
	background: #1d7c35 !important;
	color: #ffffff !important;

	transform: translateY(-2px);
}

/* Mobile */

@media (max-width: 768px) {

	.cmplz-manage-consent {
		right: 0px !important;
		bottom: 0px !important;

		font-size: 13px !important;
		padding: 8px 14px !important;
	}
}
.latest-news .wp-block-post-featured-image,
.latest-news .wp-block-post-title {
	cursor: pointer;
}
/* =========================
   BOUTIQUE - STYLE CARTES ACTUALITÉS
========================= */

.post-type-archive-product main#primary,
.woocommerce-shop main#primary {
	background: #fbfaf1 !important;
	padding-top: 0 !important;
}
/* Correction position fil d'Ariane boutique */
.post-type-archive-product .glandinette-breadcrumb-wrap,
.woocommerce-shop .glandinette-breadcrumb-wrap {
	margin-top: 0 !important;
	padding-top: 10px !important;
}

/* Le titre Boutique dans le contenu, pas celui de la bannière */
.post-type-archive-product main#primary > .wp-block-query-title,
.woocommerce-shop main#primary > .wp-block-query-title {
	margin-top: 0 !important;
}
/* Titre Boutique */
.post-type-archive-product main#primary > .wp-block-query-title,
.woocommerce-shop main#primary > .wp-block-query-title {
	font-family: "Amatic SC", sans-serif !important;
	font-size: clamp(52px, 5vw, 76px) !important;
	line-height: 1 !important;
	color: #007a35 !important;
	text-align: center !important;
	margin: 0 0 35px !important;
}

/* Résultats + tri */
.post-type-archive-product main#primary > .wp-block-group.alignwide,
.woocommerce-shop main#primary > .wp-block-group.alignwide {
	margin-bottom: 45px !important;
}

.post-type-archive-product .wc-block-product-results-count,
.post-type-archive-product .wp-block-woocommerce-product-results-count,
.woocommerce-shop .wc-block-product-results-count,
.woocommerce-shop .wp-block-woocommerce-product-results-count {
	color: #007a35 !important;
	font-weight: 600 !important;
}

.post-type-archive-product select,
.woocommerce-shop select {
	border: 2px solid rgba(0,122,53,0.25) !important;
	border-radius: 14px !important;
	padding: 14px 20px !important;
	background: #fff !important;
	font-weight: 700 !important;
	color: #111 !important;
}

/* Cartes produits */
.post-type-archive-product .products-block-post-template > li,
.woocommerce-shop .products-block-post-template > li {
	position: relative !important;
	background: #fbfaf1 !important;
	border: 3px solid #007a35 !important;
	border-bottom: 6px solid #ffd400 !important;
	border-radius: 24px !important;
	padding: 90px 28px 34px !important;
	box-shadow: 0 18px 35px rgba(0,0,0,0.08) !important;
	overflow: hidden !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

/* Rond jaune décoratif en haut à droite */
.post-type-archive-product .products-block-post-template > li::before,
.woocommerce-shop .products-block-post-template > li::before {
	content: "";
	position: absolute;
	top: -42px;
	right: -42px;
	width: 120px;
	height: 120px;
	background: #ffd400;
	border-radius: 50%;
	z-index: 1;
}

/* Hover */
.post-type-archive-product .products-block-post-template > li:hover,
.woocommerce-shop .products-block-post-template > li:hover {
	transform: translateY(-6px);
	box-shadow: 0 24px 45px rgba(0,0,0,0.13) !important;
}

/* Image */
.post-type-archive-product .product-image-cart,
.woocommerce-shop .product-image-cart {
	margin-bottom: 25px !important;
	border-radius: 18px !important;
	overflow: hidden !important;
	position: relative;
	z-index: 2;
}

.post-type-archive-product .product-image-cart img,
.woocommerce-shop .product-image-cart img {
	width: 100% !important;
	aspect-ratio: 16 / 10 !important;
	object-fit: cover !important;
	border-radius: 18px !important;
	border: 2px solid rgba(0,122,53,0.15);
	display: block !important;
}

/* Titre produit */
.post-type-archive-product .products-block-post-template .wp-block-post-title,
.woocommerce-shop .products-block-post-template .wp-block-post-title {
	font-family: "Amatic SC", sans-serif !important;
	font-size: 30px !important;
	line-height: 0.95 !important;
	text-align: center !important;
	margin: 18px 0 20px !important;
	min-height: 86px;
}

.post-type-archive-product .products-block-post-template .wp-block-post-title a,
.woocommerce-shop .products-block-post-template .wp-block-post-title a {
	color: #111 !important;
	text-decoration: none !important;
}

.post-type-archive-product .products-block-post-template .wp-block-post-title a:hover,
.woocommerce-shop .products-block-post-template .wp-block-post-title a:hover {
	color: #007a35 !important;
}

/* Prix */
.post-type-archive-product .wc-block-components-product-price,
.woocommerce-shop .wc-block-components-product-price {
	color: #007a35 !important;
	font-size: 22px !important;
	font-weight: 800 !important;
	text-align: center !important;
	margin: 16px 0 28px !important;
}

/* Bouton panier façon "En savoir plus" */
.post-type-archive-product .wp-block-button__link,
.post-type-archive-product .wc-block-components-product-button__button,
.woocommerce-shop .wp-block-button__link,
.woocommerce-shop .wc-block-components-product-button__button {
	background: #ffffff !important;
	color: #d8aa00 !important;
	border: 2px solid #ffd400 !important;
	border-radius: 999px !important;
	padding: 16px 36px !important;
	font-weight: 800 !important;
	box-shadow: none !important;
	text-decoration: none !important;
	transition: all 0.25s ease;
}

.post-type-archive-product .wp-block-button__link:hover,
.post-type-archive-product .wc-block-components-product-button__button:hover,
.woocommerce-shop .wp-block-button__link:hover,
.woocommerce-shop .wc-block-components-product-button__button:hover {
	background: #ffd400 !important;
	color: #007a35 !important;
	transform: translateY(-2px);
}

/* Masquer les étoiles si inutiles */
.post-type-archive-product .wc-block-components-product-rating,
.woocommerce-shop .wc-block-components-product-rating {
	display: none !important;
}

/* Responsive */
@media (max-width: 999px) {
	.post-type-archive-product .products-block-post-template,
	.woocommerce-shop .products-block-post-template {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 600px) {
	.post-type-archive-product .products-block-post-template,
	.woocommerce-shop .products-block-post-template {
		grid-template-columns: 1fr !important;
	}

	.post-type-archive-product .products-block-post-template > li,
	.woocommerce-shop .products-block-post-template > li {
		padding: 80px 22px 30px !important;
	}
}
/* =========================
   BOUTIQUE AVEC SIDEBAR DROITE
========================= */

.boutique-with-sidebar {
	align-items: flex-start !important;
	gap: 35px !important;
}

.boutique-sidebar-col {
	background: transparent;
	border: none;
	border-radius: 24px;
	padding: 0;
	box-shadow: none;
}

.boutique-sidebar-col h2,
.boutique-sidebar-col h3,
.boutique-sidebar-col h4 {
	font-family: "Amatic SC", sans-serif !important;
	color: #007a35 !important;
	font-size: 34px !important;
	line-height: 1;
}

@media (max-width: 900px) {
	.boutique-with-sidebar {
		flex-direction: column !important;
	}

	.boutique-products-col,
	.boutique-sidebar-col {
		flex-basis: 100% !important;
		width: 100% !important;
	}
}
/* =========================
   BOUTIQUE - TAILLE TEXTES SIDEBAR
========================= */

/* Titres des blocs sidebar */
.boutique-sidebar-col h2,
.boutique-sidebar-col h3 {
	font-size: 18px !important;
	line-height: 1.05 !important;
	text-align: center;
}
.boutique-sidebar-col .wp-block-heading {
	font-size: 30px !important;
}
/* Titres des articles populaires */
.boutique-sidebar-col .wp-block-latest-posts__post-title,
.boutique-sidebar-col .wp-block-latest-posts li a {
	font-size: 18px !important;
	line-height: 1.25 !important;
	letter-spacing: 0.5px !important;
}

/* Dates */
.boutique-sidebar-col .wp-block-latest-posts__post-date {
	font-family: "DM Sans", sans-serif !important;
	font-size: 14px !important;
	line-height: 1.4 !important;
	color: #2d2d2d !important;
}

/* Espacement des articles */
.boutique-sidebar-col .wp-block-latest-posts li {
	margin-bottom: 24px !important;
	text-align: center;
}

/* Liens catégories / pages */
.boutique-sidebar-col .wp-block-categories li,
.boutique-sidebar-col .wp-block-page-list li,
.boutique-sidebar-col .wp-block-categories a,
.boutique-sidebar-col .wp-block-page-list a {
	font-size: 17px !important;
	line-height: 1.4 !important;
}
/* =========================
   REMONTER CONTENU PAGE BOUTIQUE
========================= */

.woocommerce-page .site-main,
.post-type-archive-product .site-main,
.tax-product_cat .site-main {
	padding-top: 20px !important;
	margin-top: -40px !important;
}
/* =========================
   BARRE TRI BOUTIQUE PREMIUM
========================= */

.woocommerce-result-count,
.woocommerce-ordering {
	margin: 0 !important;
}

/* Conteneur global */
.woocommerce .woocommerce-ordering,
.woocommerce .woocommerce-result-count {
	position: relative;
	z-index: 2;
}

/* Ligne contenant résultat + tri */
.woocommerce-notices-wrapper + .woocommerce-result-count,
.woocommerce-result-count {
	display: inline-flex;
	align-items: center;
	background: #ffffff;
	padding: 16px 24px;
	border-radius: 18px;
	border: 2px solid #0b8f3a;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08);
	font-weight: 700;
	color: #0b8f3a;
	margin-bottom: 30px !important;
}

/* Bloc du select */
.woocommerce-ordering {
	display: inline-flex;
	align-items: center;
	background: #ffffff;
	padding: 12px 18px;
	border-radius: 18px;
	border: 2px solid #b7d9c0;
	box-shadow: 0 8px 24px rgba(0,0,0,0.06);
	float: right;
	margin-bottom: 30px !important;
	transition: all 0.3s ease;
}

/* Hover */
.woocommerce-ordering:hover {
	transform: translateY(-2px);
	box-shadow: 0 12px 30px rgba(0,0,0,0.10);
}

/* Select */
.woocommerce-ordering select {
	border: none !important;
	background: transparent !important;
	font-weight: 600;
	color: #222;
	padding-right: 20px;
	cursor: pointer;
}

/* Focus */
.woocommerce-ordering select:focus {
	outline: none;
	box-shadow: none;
}
/* ==================================================
   SINGLE PRODUCT COMPLET - THÈME GLANDINETTE PARK
   Encapsulé pour WP Blocks
================================================== */

/* ========== MAIN ========== */
body.single-product main#primary {
    font-family: "DM Sans", sans-serif;
    padding: 0 20px 40px 20px;
    box-sizing: border-box;
}

/* ========== GALERIE + TEXTE + BOUTON ========== */
body.single-product .wp-block-columns.single-product-columns {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
    border: 3px solid #007a35;
    border-bottom: 6px solid #FFD800;
    border-radius: 20px;
    background-color: #fbfaf1;
    padding: 2em;
    margin-bottom: 3em;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
}

/* Colonne image */
body.single-product .wp-block-columns.single-product-columns .wp-block-column:first-child {
    flex: 0 0 512px;
}

body.single-product .wp-block-columns.single-product-columns .wp-block-column:first-child img {
    width: 100%;
    border-radius: 18px;
    display: block;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

/* Colonne texte */
body.single-product .wp-block-columns.single-product-columns .wp-block-column:last-child {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

/* Titre produit */
body.single-product .wp-block-columns.single-product-columns .wp-block-post-title {
    font-family: "Amatic SC", cursive;
    text-transform: uppercase;
    font-size: 32px;
    color: #007a35;
    margin-bottom: 0.5em;
}

/* Prix produit */
body.single-product .wp-block-columns.single-product-columns .wp-block-woocommerce-product-price {
    font-size: 1.2em;
    color: #007a35;
    margin-bottom: 0.5em;
}

/* Description courte */
body.single-product .wp-block-columns.single-product-columns .wp-block-post-excerpt {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 1.5em;
}

/* Bouton Ajouter au panier */
body.single-product .wp-block-columns.single-product-columns .single_add_to_cart_button {
    background-color: #0C7735; /* vert */
    color: #FFD800;
    border-radius: 25px;
    padding: 0.8em 2em;
    font-weight: 700;
    width: fit-content;
    transition: background 0.3s ease, transform 0.25s ease;
}

body.single-product .wp-block-columns.single-product-columns .single_add_to_cart_button:hover {
    background-color: #FFD800;
    color: #0C7735;
    transform: translateY(-2px);
}

/* ========== DESCRIPTION / ONGLET ========== */
body.single-product .wp-block-woocommerce-product-details,
body.single-product .woocommerce-tabs .panel {
    border: 3px solid #007a35;
    border-bottom: 6px solid #FFD800;
    border-radius: 12px;
    padding: 2em;
    background-color: #fbfaf1;
    margin-bottom: 2em;
}

/* ========== UP-SELLS “VOUS AIMEREZ PEUT-ÊTRE AUSSI” ========== */
body.single-product .up-sells.upsells.products > h2 {
    display: inline-block;
    font-family: "Amatic SC", cursive;
    font-size: 36px;
    color: #007a35;
    padding: 10px 30px 10px 50px;
    border: 2px solid #FFD800;
    border-radius: 12px;
    background-color: #fffdf4;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    position: relative;
    margin-bottom: 1.5em;
    text-align: left;
}

body.single-product .up-sells.upsells.products > h2::before {
    content: "";
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: #FFD800;
    border-radius: 50%;
    z-index: 1;
}

/* UL produits */
body.single-product .up-sells.upsells.products ul.products {
    display: flex;
    justify-content: center;
    flex-wrap: nowrap;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto 3em auto;
    padding: 0;
    list-style: none;
    box-sizing: border-box;
}

/* LI produit */
body.single-product .up-sells.upsells.products ul.products > li.product {
    flex: 0 0 32%;
    max-width: 32%;
    position: relative;
    overflow: hidden;
    background-color: #fbfaf1;
    border: 3px solid #007a35;
    border-bottom: 6px solid #FFD800;
    border-radius: 24px;
    padding: 90px 28px 34px;
    box-shadow: 0 18px 35px rgba(0,0,0,0.08);
    text-align: center;
}

/* Rond jaune sur produit */
body.single-product .up-sells.upsells.products ul.products > li.product::before {
    content: "";
    position: absolute;
    top: -20px;
    right: -20px;
    width: 80px;
    height: 80px;
    background: #FFD800;
    border-radius: 50%;
    z-index: 0;
}

/* Image produit */
body.single-product .up-sells.upsells.products ul.products > li.product img {
    width: 100%;
    height: auto;
    border-radius: 18px;
    border: 2px solid rgba(0,122,53,0.15);
    margin-bottom: 25px;
}

/* Titre produit */
body.single-product .up-sells.upsells.products ul.products > li.product .woocommerce-loop-product__title {
    font-family: "Amatic SC", sans-serif;
    font-size: 24px;
    line-height: 1.2;
    margin-bottom: 12px;
}

/* Prix produit */
body.single-product .up-sells.upsells.products ul.products > li.product .price {
    color: #007a35;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 28px;
}

/* Bouton panier */
body.single-product .up-sells.upsells.products ul.products > li.product .button {
    background: #0C7735;
    color: #FFD800;
    border-radius: 999px;
    padding: 16px 36px;
    font-weight: 800;
    display: inline-block;
    text-decoration: none;
    transition: all 0.25s ease;
}

body.single-product .up-sells.upsells.products ul.products > li.product .button:hover {
    background: #FFD800;
    color: #0C7735;
    transform: translateY(-2px);
}

/* ========== RESPONSIVE ========== */
@media (max-width: 1024px) {
    body.single-product .wp-block-columns.single-product-columns {
        flex-direction: column;
    }
    body.single-product .wp-block-columns.single-product-columns .wp-block-column {
        flex-basis: 100%;
    }
    body.single-product .up-sells.upsells.products ul.products > li.product {
        flex: 0 0 48%;
        max-width: 48%;
        margin-bottom: 2em;
    }
}

@media (max-width: 768px) {
    body.single-product .up-sells.upsells.products ul.products > li.product {
        flex: 0 0 100%;
        max-width: 100%;
        margin-bottom: 2em;
    }
}