/* Garden Poterie – compléments au theme.json (en-tête, pied de page, WooCommerce). */

:root {
	--gp-creme: #FAF8F2;
	--gp-sable: #EEEADF;
	--gp-olive: #3F4530;
	--gp-olive-2: #5E6647;
	--gp-texte: #4A4A3F;
	--gp-terre: #A9552F;
	--gp-trait: #E6E1D3;
	--gp-ombre: 0 14px 34px rgba(63, 69, 48, .16);
}

html { scroll-padding-top: 110px; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; }
:where(.wp-site-blocks) > * { margin-block-start: 0; }

/* ---------- En-tête ---------- */
.gp-topbar { background: var(--gp-olive); height: 28px; }
/* Bandeau du haut : picto champignons bleu-blanc-rouge « Fabriqué en Gascogne » (à gauche, le logo occupe le centre) */
.gp-topbar__in { max-width: 1240px; height: 100%; margin: 0 auto; padding: 0 clamp(14px, 3vw, 28px); display: flex; align-items: center; }
.gp-france { display: inline-flex; align-items: center; gap: 8px; color: var(--gp-creme); text-decoration: none; font-family: Roboto, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 1.6px; text-transform: uppercase; opacity: .92; transition: opacity .25s ease; }

.gp-france img { display: block; width: 36px; height: 24px; }
/* Collant : c'est l'en-tête entier (bandeau vert + barre) qui colle ; un sticky sur .gp-barre seule ne colle pas,
 * son parent étant à peine plus haut qu'elle. */
.wp-site-blocks > header.wp-block-template-part { position: sticky; top: 0; z-index: 100; }
.admin-bar .wp-site-blocks > header.wp-block-template-part { top: var(--wp-admin--admin-bar--height, 32px); }
.gp-barre {
	position: relative; z-index: 100;
	background: var(--gp-creme);
	border-bottom: 1px solid rgba(94, 102, 71, .12);
	padding: 8px clamp(14px, 3vw, 28px);
	transition: padding .4s ease, box-shadow .4s ease, background-color .4s ease;
}
.gp-barre__in {
	max-width: 1320px; margin: 0 auto;
	display: grid; grid-template-columns: 1fr 172px 1fr; align-items: center; column-gap: 0;
	min-height: 52px;
}
.gp-barre__in > *, .gp-barre__d > *, .gp-barre__g > * { margin: 0 !important; }
.gp-barre__g { justify-self: end; }
.gp-barre__d { justify-self: start; display: flex; align-items: center; gap: 14px; }
.gp-barre__c { position: relative; align-self: stretch; }

/* Logo dans un médaillon rond qui déborde sur le contenu du dessous */
.gp-logo {
	position: absolute; left: 50%; top: -36px; transform: translateX(-50%); z-index: 20;
	width: 172px; height: 172px; border-radius: 50%;
	background: var(--gp-creme); box-shadow: var(--gp-ombre);
	display: flex; align-items: center; justify-content: center;
	transition: width .4s ease, height .4s ease, top .4s ease;
}
.gp-logo img { width: 104px; transition: width .4s ease; }

/* Au défilement : barre resserrée, médaillon réduit (le bandeau vert reste collé au-dessus) */
.gp-scrolled .gp-barre { padding-top: 14px; padding-bottom: 14px; background: rgba(250, 248, 242, .97); box-shadow: 0 10px 30px rgba(63, 69, 48, .08); }
.gp-scrolled .gp-logo { width: 130px; height: 130px; top: -42px; }
.gp-scrolled .gp-logo img { width: 76px; }

/* Menus */
.gp-nav { font-family: Roboto, sans-serif; font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: 1.8px; }
.gp-nav .wp-block-navigation-item__content { color: var(--gp-texte); padding: 6px 16px; text-decoration: none; transition: color .25s ease; }
.gp-nav .wp-block-navigation-item__content:hover,
.gp-nav .wp-block-navigation-item__content:focus,
.gp-nav .current-menu-item > .wp-block-navigation-item__content { color: var(--gp-terre); }
.gp-nav--g > .wp-block-navigation__container > .current-menu-item > .wp-block-navigation-item__content, .gp-nav--d .current-menu-item > .wp-block-navigation-item__content { box-shadow: inset 0 -1px 0 var(--gp-terre); }
.gp-nav.wp-block-navigation { gap: 0; }
.gp-nav .wp-block-navigation__submenu-icon { color: var(--gp-texte); margin-left: -12px; margin-right: 4px; width: 12px; height: 12px; }
.gp-nav .wp-block-navigation__submenu-icon svg { width: 12px; height: 12px; stroke-width: 1.8; }

/* Sous-menu Boutique : panneau crème arrondi */
/* Pont invisible entre « Boutique » et le panneau (décalé de 14 px) : sans lui le survol se perd dans le vide et le menu se referme. */
.gp-nav--g .wp-block-navigation-submenu { position: relative; }
.gp-nav--g .wp-block-navigation-submenu::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 18px; }
@media (max-width: 767px) { .gp-nav--g .wp-block-navigation-submenu::after { display: none; } }
.gp-nav .wp-block-navigation__submenu-container {
	margin-top: 14px; border: 0 !important; border-radius: 16px; overflow: hidden;
	padding: 10px 0 !important; min-width: 270px !important;
	background: var(--gp-creme) !important; box-shadow: 0 24px 50px rgba(63, 69, 48, .16);
	text-transform: none; letter-spacing: 0;
}
.gp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-family: "Playfair Display", Georgia, serif; font-size: 16px; font-weight: 400;
	padding: 10px 22px; width: 100%; transition: padding-left .3s ease, background-color .3s ease, color .3s ease;
}
.gp-nav .wp-block-navigation__submenu-container .wp-block-navigation-item__content:hover { background: var(--gp-sable); padding-left: 30px; color: var(--gp-olive); }
.gp-nav .gp-all > .wp-block-navigation-item__content {
	font-family: Roboto, sans-serif !important; font-size: 12px !important; text-transform: uppercase; letter-spacing: 1.5px;
	color: var(--gp-olive-2) !important; border-top: 1px solid #DDD8C8; margin-top: 6px;
}
.gp-nav--g .gp-mobile-only { display: none; }

/* Compte + mini-panier (pastille verte « Panier », compteur orange) */
.gp-compte { color: var(--gp-olive); display: inline-flex; padding: 6px; }
.gp-compte:hover { color: var(--gp-terre); }
.gp-panier .wc-block-mini-cart__button {
	position: relative; display: inline-flex; align-items: center; gap: 8px;
	background: var(--gp-olive-2); color: #fff; border-radius: 999px; padding: 7px 16px 7px 12px;
	font-family: Roboto, sans-serif; font-size: 15px; font-weight: 500; box-shadow: 0 6px 16px rgba(63, 69, 48, .18);
	transition: background-color .25s ease;
}
.gp-panier .wc-block-mini-cart__button:hover { background: var(--gp-olive); }
.gp-panier .wc-block-mini-cart__button::after { content: "Panier"; }
.gp-panier .wc-block-mini-cart__quantity-badge { position: relative; display: inline-flex; }
.gp-panier .wc-block-mini-cart__icon { width: 20px; height: 20px; color: #fff; }
.gp-panier .wc-block-mini-cart__icon path { fill: currentColor; }
.gp-panier .wc-block-mini-cart__badge {
	position: absolute; top: -16px; left: -6px; right: auto; transform: none;
	min-width: 22px; height: 18px; padding: 0 6px; border-radius: 999px;
	background: #C8743F !important; color: #fff !important; border: 2px solid var(--gp-creme);
	font-size: 11px; font-weight: 700; display: flex !important; align-items: center; justify-content: center; visibility: visible;
}

/* Mobile */
@media (max-width: 767px) {
	.gp-topbar { height: 24px; }
	.gp-france span { display: none; }
	.gp-france img { width: 30px; height: 20px; }
	.gp-barre { padding: 6px 14px; }
	.gp-barre__in { grid-template-columns: 1fr 100px 1fr; min-height: 48px; }
	.gp-logo { width: 100px; height: 100px; top: -22px; }
	.gp-logo img { width: 56px; }
	.gp-scrolled .gp-barre { padding-top: 10px; padding-bottom: 10px; }
	.gp-scrolled .gp-logo { width: 92px; height: 92px; top: 50%; transform: translate(-50%, -50%); }
	.gp-scrolled .gp-logo img { width: 56px; }
	.gp-barre__g { justify-self: start; }
	.gp-barre__d { justify-self: end; }
	.gp-barre__in { min-height: 52px; }
	.gp-panier .wc-block-mini-cart__button { padding: 0; width: 34px; height: 34px; justify-content: center; }
	.gp-panier .wc-block-mini-cart__button::after { content: none; }
	.gp-panier .wc-block-mini-cart__badge { top: -14px; left: 6px; }
	.gp-nav--g .wp-block-navigation__responsive-container-open { padding: 4px 0; }
	.gp-nav--g .wp-block-navigation__responsive-container-open svg { width: 30px !important; height: 30px !important; stroke: currentColor; stroke-width: 1; }
	.gp-nav--d { display: none !important; }
	.gp-compte { display: none; }
	.gp-panier .wc-block-mini-cart__amount { display: none; }
	/* Menu plein écran */
	.gp-nav--g .wp-block-navigation__responsive-container.is-menu-open { background: var(--gp-creme) !important; padding: 80px 26px 30px; }
	.gp-nav--g .is-menu-open .gp-mobile-only { display: block; }
	.gp-nav--g .is-menu-open .wp-block-navigation-item__content { font-family: "Playfair Display", Georgia, serif; font-size: 24px; text-transform: none; letter-spacing: 0; color: var(--gp-olive); padding: 14px 0; }
	.gp-nav--g .is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content { font-family: Roboto, sans-serif; font-size: 15px; padding: 8px 0 8px 18px; }
	.gp-nav--g .is-menu-open .wp-block-navigation__submenu-container { box-shadow: none; background: transparent !important; margin-top: 0; padding: 0 !important; }
	.gp-nav--g .wp-block-navigation__responsive-container-open svg { width: 26px; height: 26px; color: var(--gp-olive); }
}

/* ---------- Pied de page ---------- */
.gp-f { font-family: Roboto, sans-serif; color: #EEEADF; }
.gp-f a { color: #EEEADF; text-decoration: none; }
.gp-f a:hover { color: #fff; text-decoration: underline; }
.gp-f-trust {
	list-style: none; margin: 0; padding: 18px 40px; background: var(--gp-sable); color: var(--gp-texte);
	display: flex; flex-wrap: wrap; justify-content: center; column-gap: 56px; row-gap: 14px;
}
.gp-f-trust li { display: flex; align-items: center; gap: 10px; font-size: 13px; white-space: nowrap; margin: 0; }
.gp-f-trust img { width: 20px; height: 20px; object-fit: contain; }
.gp-f-trust img[src*="champignons"] { width: 30px; }
.gp-f-main { background: var(--gp-olive); }
.gp-f-main__in {
	max-width: 1320px; margin: 0 auto; padding: 40px 40px 34px;
	display: flex; justify-content: center; align-items: stretch; gap: 48px;
}
.gp-f-brand { display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.gp-f-logo { width: 160px; height: 160px; border-radius: 50%; background: var(--gp-creme); box-shadow: 0 14px 34px rgba(0, 0, 0, .22); display: flex; align-items: center; justify-content: center; }
.gp-f-logo img { width: 96px; }
.gp-f-slogan { margin: 4px 0 0; font-size: 15px; line-height: 1.65; max-width: 230px; }
.gp-f-social { display: flex; gap: 16px; margin-top: 18px; }
.gp-f-social img { width: 18px; height: 18px; object-fit: contain; filter: brightness(0) invert(.92); opacity: .75; transition: opacity .25s ease; }
.gp-f-social a:hover img { opacity: 1; }
.gp-f-info { display: flex; align-items: center; border-left: 1px solid rgba(238, 234, 223, .55); padding-left: 48px; }
.gp-f-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.gp-f-links li { margin: 0; }
/* Lettre d'infos (mu-plugin garden-poterie-newsletter) */
.gp-f-nl { display: flex; align-items: center; border-left: 1px solid rgba(238, 234, 223, .55); padding-left: 48px; max-width: 380px; }
.gp-nl { margin: 0; }
.gp-nl p { margin: 0; }
.gp-nl__titre { font-family: "Playfair Display", Georgia, serif; font-size: 22px; color: var(--gp-creme); }
.gp-nl__texte { font-size: 14px; line-height: 1.6; margin: 6px 0 14px !important; color: rgba(238, 234, 223, .85); }
.gp-nl__ligne { display: flex; gap: 8px; }
.gp-nl__ligne input { flex: 1; min-width: 0; padding: 11px 16px; border: 1px solid rgba(238, 234, 223, .5); border-radius: 30px; background: rgba(250, 248, 242, .08); color: var(--gp-creme); font: inherit; font-size: 14px; }
.gp-nl__ligne input::placeholder { color: rgba(238, 234, 223, .65); }
.gp-nl__ligne input:focus { outline: 2px solid #F0BC9C; outline-offset: 1px; }
.gp-nl__ligne button { padding: 11px 20px; border: 0; border-radius: 30px; background: var(--gp-creme); color: var(--gp-olive); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; transition: background .2s ease; }
.gp-nl__ligne button:hover { background: #F0BC9C; }
.gp-nl__accord { display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; font-size: 11.5px; line-height: 1.5; color: rgba(238, 234, 223, .7); cursor: pointer; }
.gp-nl__accord input { margin: 2px 0 0; accent-color: #F0BC9C; flex: none; }
.gp-f .gp-nl__accord a { color: rgba(238, 234, 223, .85); text-decoration: underline; }
.gp-nl__retour { font-size: 13px; line-height: 1.5; padding: 9px 12px; border-radius: 8px; margin: 0 0 12px !important; }
.gp-nl__retour--ok { background: rgba(240, 188, 156, .18); color: var(--gp-creme); }
.gp-nl__retour--erreur { background: rgba(169, 85, 47, .35); color: #fff; }
.gp-nl__piege { position: absolute !important; left: -9999px; }
.gp-f-bottom {
	background: #33382A; padding: 14px 40px 18px;
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 24px;
	font-size: 12px; color: #C9C5B6;
}
.gp-f-bottom a { color: #C9C5B6; }
.gp-f-bottom p { margin: 0; }
.gp-f-legal { padding-left: 24px; border-left: 1px solid rgba(238, 234, 223, .55); }
.gp-f-sep { margin: 0 10px; color: #8A8C7A; }

@media (max-width: 767px) {
	.gp-f-trust { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 18px 20px; }
	.gp-f-trust li { white-space: normal; font-size: 12px; justify-content: center; }
	.gp-f-main__in { flex-direction: column; align-items: center; gap: 0; padding: 32px 20px 24px; }
	.gp-f-info { border-left: 0; border-top: 1px solid rgba(238, 234, 223, .4); padding: 18px 0 0; margin-top: 22px; width: 100%; max-width: 320px; justify-content: center; }
	.gp-f-links { justify-items: center; text-align: center; }
	.gp-f-nl { border-left: 0; border-top: 1px solid rgba(238, 234, 223, .4); padding: 22px 0 0; margin-top: 22px; width: 100%; max-width: 360px; text-align: center; }
	.gp-nl__accord { text-align: left; }
	.gp-f-bottom { flex-direction: column; gap: 6px; padding: 14px 20px 18px; text-align: center; }
	.gp-f-legal { padding-left: 0; border-left: 0; }
}

/* ---------- Composants communs ---------- */
.gp-eyebrow {
	margin: 0 0 14px; font-family: "Playfair Display", Georgia, serif; font-size: 13px; font-weight: 500;
	letter-spacing: 3px; text-transform: uppercase; color: var(--gp-terre); line-height: 1.4;
}
h1.gp-eyebrow { font-size: 13px; color: var(--gp-terre); }
.gp-section h2, .gp-entete h2 { margin: 0 0 12px; font-size: clamp(30px, 3.4vw, 44px); line-height: 1.15; color: var(--gp-olive); font-weight: 400; }
.gp-largeur { max-width: 1240px; margin: 0 auto; }
.gp-boutons { display: flex; flex-wrap: wrap; gap: 14px; }
.gp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	padding: 14px 28px; border-radius: 4px; border: 1.5px solid var(--gp-terre);
	background: var(--gp-terre); color: #fff !important; text-decoration: none !important;
	font-family: Roboto, sans-serif; font-size: 15px; font-weight: 500; line-height: 1.2;
	transition: transform .35s ease, box-shadow .35s ease, background-color .35s ease, border-color .35s ease;
}
.gp-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(63, 69, 48, .18); background: #8E4526; border-color: #8E4526; }
.gp-btn--ghost { background: transparent; color: var(--gp-olive) !important; border-color: var(--gp-olive-2); }
.gp-btn--ghost:hover { background: transparent; border-color: var(--gp-olive); }
.gp-btn--olive { background: var(--gp-olive-2); border-color: var(--gp-olive-2); }
.gp-btn--olive:hover { background: var(--gp-olive); border-color: var(--gp-olive); }
.gp-btn--clair { background: var(--gp-creme); border-color: var(--gp-creme); color: var(--gp-olive) !important; }
.gp-btn--clair:hover { background: #E9D9B8; border-color: #E9D9B8; }
.gp-lien { display: inline-block; color: var(--gp-olive) !important; font-family: Roboto, sans-serif; font-size: 15px; font-weight: 500; text-decoration: none !important; border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.gp-lien:hover { color: var(--gp-terre) !important; }

/* Cartes produits (boucles WooCommerce classiques) */
.gp-produits ul.products, .woocommerce .gp-produits ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; margin: 0; padding: 0; list-style: none;
}
.gp-produits ul.products::before, .gp-produits ul.products::after { content: none !important; }
.gp-produits ul.products li.product {
	width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important;
	background: transparent; text-align: left; transition: transform .45s ease; position: relative;
}
/* Bouton calé en bas de la carte : même hauteur sur toute la rangée, même si un nom tient sur 2 lignes. */
.gp-produits ul.products li.product { display: flex; flex-direction: column; align-items: flex-start; }
.gp-produits ul.products li.product > a:first-child { align-self: stretch; }
.gp-produits ul.products li.product .price { margin-bottom: 14px; }
.gp-produits ul.products li.product .button { margin-top: auto !important; }
.gp-produits ul.products li.product:hover { transform: translateY(-6px); }
.gp-produits ul.products li.product a { text-decoration: none; }
.gp-produits ul.products li.product a img {
	display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover;
	margin: 0 0 18px; border-radius: 20px; transition: box-shadow .45s ease;
}
.gp-produits ul.products li.product:hover a img { box-shadow: 0 22px 44px rgba(63, 69, 48, .18); }
.gp-produits ul.products li.product .woocommerce-loop-product__title {
	padding: 0; margin: 0 0 6px; font-family: "Playfair Display", Georgia, serif; font-size: 19px; font-weight: 400; color: var(--gp-olive); line-height: 1.3;
}
.gp-produits ul.products li.product .price { display: block; padding: 0; font-family: Roboto, sans-serif; font-size: 15px; font-weight: 500; color: var(--gp-olive-2); }
.gp-produits .price del { opacity: .6; margin-right: 6px; }
.gp-produits .price ins { text-decoration: none; }
.gp-produits li.product .button {
	display: inline-block; margin: 14px 0 0; padding: 9px 16px; background: var(--gp-terre); color: #fff;
	border: 1.5px solid var(--gp-terre); border-radius: 6px; font-family: Roboto, sans-serif; font-size: 12px; font-weight: 500;
	letter-spacing: 1px; text-transform: uppercase; text-decoration: none; line-height: 1.3; transition: background-color .3s ease;
}
.gp-produits li.product .button:hover { background: #8E4526; border-color: #8E4526; color: #fff; }
.gp-produits li.product .button.loading { opacity: .6; }
.gp-produits li.product .added_to_cart { display: block; margin: 8px 0 0; font-size: 13px; color: #9C4F2E; }
.gp-produits li.product .onsale {
	position: absolute; top: 14px; left: 14px; z-index: 2; margin: 0; min-height: 0; min-width: 0; line-height: 1;
	padding: 7px 12px; border-radius: 999px; background: var(--gp-terre); color: #fff; font-size: 11px; letter-spacing: 1px; text-transform: uppercase;
}
.gp-new-badge, li.product .gp-new-badge {
	position: absolute; top: 14px; right: 14px; z-index: 2;
	padding: 7px 12px; border-radius: 999px; background: var(--gp-creme); color: var(--gp-terre);
	font-family: Roboto, sans-serif; font-size: 11px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase; line-height: 1;
}

@media (max-width: 1024px) { .gp-produits ul.products, .woocommerce .gp-produits ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
	.gp-produits ul.products, .woocommerce .gp-produits ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 14px; }
	.gp-produits .woocommerce-loop-product__title { font-size: 16px; }
	.gp-produits li.product .button { padding: 8px 10px; font-size: 11px; letter-spacing: .5px; }
}

/* Sections */
.gp-section { padding: clamp(64px, 8vw, 110px) clamp(16px, 4vw, 40px); }
.gp-entete { margin-bottom: 40px; }
.gp-entete--centre { text-align: center; }

/* Bandeau défilant */
.gp-bandeau { display: flex; align-items: center; height: 62px; background: var(--gp-terre); overflow: hidden; white-space: nowrap; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.gp-bandeau__piste { display: inline-flex; align-items: center; gap: 34px; padding-left: 34px; animation: gpBandeau 38s linear infinite; }
.gp-bandeau__piste span { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 22px; line-height: 1; color: var(--gp-creme); }
.gp-bandeau__piste i { font-style: normal; color: #fff; font-size: 14px; }
.gp-bandeau:hover .gp-bandeau__piste { animation-play-state: paused; }
@keyframes gpBandeau { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 767px) { .gp-bandeau { height: 52px; } .gp-bandeau__piste span { font-size: 18px; } }
@media (prefers-reduced-motion: reduce) { .gp-bandeau__piste { animation: none; } }

/* Chargement automatique de la suite (assets/js/chargement-auto.js) : boutique et journal.
   La pagination reste dans la page (Google, sans JavaScript) mais n'est plus affichée. */
.gp-pagination-cachee { display: none !important; }
.gp-suite { display: flex; justify-content: center; align-items: center; gap: 12px; min-height: 60px; margin-top: 40px; font-family: Roboto, sans-serif; font-size: 13px; color: #6E6E62; }
.gp-suite[hidden] { display: none; }
.gp-suite__rond { width: 22px; height: 22px; border-radius: 50%; border: 2px solid #E2DDCF; border-top-color: var(--gp-terre); animation: gp-tourne .8s linear infinite; }
@keyframes gp-tourne { to { transform: rotate(360deg); } }
.gp-arrive { animation: gp-apparait .6s ease both; }
@keyframes gp-apparait { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .gp-arrive { animation: none; } }
