/*
Theme Name: CED 2026
Theme URI: https://grossiste-fete.fr
Author: CED
Author URI: https://grossiste-fete.fr
Description: Theme e-commerce pour CED - Grossiste en articles de fete
Requires at least: 6.9
Tested up to: 6.9
Requires PHP: 7.4
Version: 1.6.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: twentytwentyfive
Text Domain: ced
Tags: e-commerce, woocommerce, full-site-editing, block-patterns
*/

/* === TOP BANNER BAR === */
.ced-top-banner {
	font-size: 0.8125rem;
	letter-spacing: 0.02em;
}

.ced-top-banner .wp-block-group {
	gap: 1.5rem;
}

/* === CATEGORY CIRCLES === */
.ced-category-circles .wp-block-image img {
	border-radius: 50%;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.ced-category-circles .wp-block-image:hover img {
	transform: scale(1.08);
	box-shadow: 0 4px 16px rgba(214, 0, 110, 0.25);
}

/* === PRODUCT CARDS === */
.is-style-ced-card {
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.is-style-ced-card:hover {
	box-shadow: 0 6px 24px rgba(0, 0, 0, 0.12);
	transform: translateY(-2px);
}

/* === PROMO BANNERS === */
.ced-promo-banners .wp-block-cover {
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease;
}

.ced-promo-banners .wp-block-cover:hover {
	transform: translateY(-4px);
}

/* === MEGA MENU === */
.ced-mega-menu {
	position: relative;
	width: 100%;
}

.ced-mega-menu__items {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	justify-content: center;
	gap: 0;
}

.ced-mega-menu__item {
	position: static;
}

.ced-mega-menu__link {
	display: flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.75rem 1.25rem;
	color: #fff;
	text-decoration: none;
	font-size: var(--wp--preset--font-size--small);
	transition: background-color 0.2s ease;
	white-space: nowrap;
}

.ced-mega-menu__link:hover,
.ced-mega-menu__item--hover > .ced-mega-menu__link,
.ced-mega-menu__item:focus-within > .ced-mega-menu__link {
	background-color: var(--wp--preset--color--accent-1);
	color: #fff;
}

.ced-mega-menu__chevron {
	width: 12px;
	height: 12px;
	transition: transform 0.2s ease;
}

.ced-mega-menu__item--hover .ced-mega-menu__chevron {
	transform: rotate(180deg);
}

/* -- Dropdown panel -- */
.ced-mega-menu__panel {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: #fff;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
	z-index: 1000;
	padding: 2rem;
	opacity: 0;
	visibility: hidden;
	transform: translateY(-6px);
	transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
	pointer-events: none;
}

.ced-mega-menu__item--hover > .ced-mega-menu__panel,
.ced-mega-menu__item:focus-within > .ced-mega-menu__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
	pointer-events: auto;
}

/* -- Grille sous-categories -- */
.ced-mega-menu__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.5rem;
	max-width: 1200px;
	margin: 0 auto;
}

.ced-mega-menu__subcat {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: var(--wp--preset--color--contrast);
	gap: 0.5rem;
	transition: transform 0.2s ease;
}

.ced-mega-menu__subcat:hover {
	transform: translateY(-3px);
}

.ced-mega-menu__subcat img {
	width: 100%;
	height: auto;
	aspect-ratio: 350 / 220;
	object-fit: cover;
	border-radius: 8px;
	opacity: 0;
	transition: opacity 0.25s ease, box-shadow 0.2s ease;
}

.ced-mega-menu__subcat img.loaded {
	opacity: 1;
}

.ced-mega-menu__subcat:hover img {
	box-shadow: 0 4px 16px rgba(214, 0, 110, 0.25);
}

.ced-mega-menu__subcat span {
	font-size: 1.1rem;
	line-height: 1.2;
	color: #000000;
	font-weight: 500;
	letter-spacing: 1px;
}

.ced-mega-menu__subcat-placeholder {
	width: 100%;
	aspect-ratio: 350 / 220;
	border-radius: 8px;
	background: var(--wp--preset--color--accent-5);
}

/* -- Hamburger toggle (hidden on desktop) -- */
.ced-mega-menu__toggle {
	display: none;
	align-items: center;
	gap: 0.5rem;
	background: none;
	border: none;
	color: #fff;
	padding: 0.75rem 1rem;
	cursor: pointer;
	font-size: var(--wp--preset--font-size--small);
}

.ced-mega-menu__toggle-icon {
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	position: relative;
}

.ced-mega-menu__toggle-icon::before,
.ced-mega-menu__toggle-icon::after {
	content: '';
	display: block;
	width: 24px;
	height: 2px;
	background: #fff;
	position: absolute;
	left: 0;
	transition: transform 0.2s ease;
}

.ced-mega-menu__toggle-icon::before { top: -7px; }
.ced-mega-menu__toggle-icon::after { top: 7px; }

.ced-mega-menu__toggle[aria-expanded="true"] .ced-mega-menu__toggle-icon {
	background: transparent;
}

.ced-mega-menu__toggle[aria-expanded="true"] .ced-mega-menu__toggle-icon::before {
	transform: rotate(45deg);
	top: 0;
}

.ced-mega-menu__toggle[aria-expanded="true"] .ced-mega-menu__toggle-icon::after {
	transform: rotate(-45deg);
	top: 0;
}

/* -- Mobile (< 1024px) -- */
@media (max-width: 1023px) {
	.ced-mega-menu__toggle {
		display: flex;
	}

	.ced-mega-menu__items {
		display: none;
		flex-direction: column;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--wp--preset--color--contrast);
		z-index: 1000;
		max-height: 80vh;
		overflow-y: auto;
	}

	.ced-mega-menu__items--open {
		display: flex;
	}

	.ced-mega-menu__link {
		padding: 1rem 1.25rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.1);
	}

	.ced-mega-menu__panel {
		position: static;
		box-shadow: none;
		padding: 0;
		background: rgba(255, 255, 255, 0.05);
		opacity: 0;
		visibility: hidden;
		transform: none;
		transition: none;
		pointer-events: none;
	}

	.ced-mega-menu__item--open > .ced-mega-menu__panel {
		opacity: 1;
		visibility: visible;
		pointer-events: auto;
	}

	.ced-mega-menu__item--open > .ced-mega-menu__link .ced-mega-menu__chevron {
		transform: rotate(180deg);
	}

	.ced-mega-menu__grid {
		display: flex;
		flex-direction: column;
		gap: 0;
		padding: 0;
	}

	.ced-mega-menu__subcat {
		flex-direction: row;
		padding: 0.75rem 2rem;
		border-bottom: 1px solid rgba(255, 255, 255, 0.05);
		color: #fff;
	}

	.ced-mega-menu__subcat img {
		display: none;
	}

	.ced-mega-menu__subcat-placeholder {
		display: none;
	}
}

/* === SUBCATEGORIES GRID === */
.ced-subcategories__title {
	font-size: var(--wp--preset--font-size--large);
	color: var(--wp--preset--color--contrast);
	margin: 0 0 1.5rem 0;
}

.ced-subcategories__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 1.5rem;
}

.ced-subcategories__item {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	gap: 0.5rem;
	transition: transform 0.2s ease;
}

.ced-subcategories__item:hover {
	transform: translateY(-3px);
}

.ced-subcategories__item img {
	width: 100%;
	height: auto;
	aspect-ratio: 350 / 220;
	object-fit: cover;
	border-radius: 8px;
	transition: box-shadow 0.2s ease;
}

.ced-subcategories__item:hover img {
	box-shadow: 0 4px 16px rgba(214, 0, 110, 0.25);
}

.ced-subcategories__placeholder {
	width: 100%;
	aspect-ratio: 350 / 220;
	border-radius: 8px;
	background: var(--wp--preset--color--accent-5);
}

.ced-subcategories__name {
	font-size: 1.1rem;
	line-height: 1.2;
	color: var(--wp--preset--color--contrast);
	font-weight: 500;
	letter-spacing: 1px;
}

.ced-subcategories__count {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--accent-4);
}

/* === SEARCH BAR === */
.wp-block-search__inside-wrapper {
	border: 2px solid var(--wp--preset--color--accent-6) !important;
	transition: border-color 0.2s ease;
}

.wp-block-search__inside-wrapper:focus-within {
	border-color: var(--wp--preset--color--accent-1) !important;
}

/* === WooCommerce OVERRIDES === */

/* -- Product grid -- */
.wc-block-product-template__responsive {
	margin-top: 0;
}

.wc-block-product-template__responsive > li {
	border: solid 1px #f0f0f0;
	border-radius: 0;
}

/* -- Product card layout -- */
.wc-block-product {
	display: flex;
	flex-direction: column;
	border-radius: 8px;
	overflow: hidden;
	transition: box-shadow 0.3s ease;
}

.wc-block-product:hover {
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

/* -- Product image -- */
.wc-block-components-product-image {
	padding: 25px;
}

.wc-block-product .wc-block-components-product-image img {
	width: 100%;
	height: 250px;
	max-height: 250px;
	object-fit: contain;
}

/* -- Product title -- */
.wc-block-product .wp-block-post-title {
	min-height: 60px;
	max-width: 80%;
	margin: auto;
}

.wc-block-product .wp-block-post-title :where(a) {
	font-size: 16px;
}

/* -- Product price -- */
.wc-block-product .wp-block-woocommerce-product-price {
	font-size: 16px !important;
	flex-grow: 1;
}

/* -- Product button (pushed to bottom) -- */
.wc-block-product .wp-block-woocommerce-product-button {
	margin-top: auto;
}

/* === BACK TO TOP === */
#ced-back-to-top {
	display: none;
	position: fixed;
	bottom: 2rem;
	right: 2rem;
	background: var(--wp--preset--color--accent-1);
	color: #fff;
	font-size: 13px;
	line-height: 1.3;
	text-align: center;
	padding: 10px 14px;
	border-radius: 6px;
	cursor: pointer;
	z-index: 9999;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
	transition: opacity 0.2s ease, transform 0.2s ease;
}

#ced-back-to-top:hover {
	opacity: 0.85;
	transform: translateY(-2px);
}

/* === CHECKOUT === */
.wc-block-checkout__shipping-option--free {
	display: none;
}
.wp-block-woocommerce-checkout-order-summary-shipping-block {
	display: none;
}

/* Watermark Artyfetes */
.ced-watermark {
	position: absolute;
	bottom: 50px;
	left: 4px;
	background: rgba(255,255,255,0.85);
	padding: 2px 4px;
	font-size: 11px;
	z-index: 10;
}


/* ============================================================
   PAGE D'ACCUEIL « GRAND BAZAR » — sections ced-hp-*
   ============================================================ */
:root{
	--ced-rose: var(--wp--preset--color--accent-1, #D6006E);
	--ced-marine: var(--wp--preset--color--contrast, #1A1A2E);
	--ced-orange: var(--wp--preset--color--accent-3, #FF6B35);
	--ced-jaune: #F5B82E;
	--ced-gris: var(--wp--preset--color--accent-4, #666);
}
.ced-hp-wrap{max-width:1240px;margin:0 auto;padding:0 24px}
.ced-hp-section{padding:42px 0}
.ced-hp-section--blanc{background:#fff}
.ced-hp-title{font-size:1.7rem;font-weight:800;margin:0 0 6px}
.ced-hp-title em{font-style:normal;color:var(--ced-rose)}
.ced-hp-title--center{text-align:center}
.ced-hp-sub{margin:0 0 26px;color:var(--ced-gris);font-size:.95rem}
.ced-hp-sub--center{text-align:center}
.ced-hp-head{display:flex;justify-content:space-between;align-items:baseline;gap:16px;flex-wrap:wrap}
.ced-hp-more{color:var(--ced-rose);font-weight:700;font-size:.9rem;text-decoration:none}
.ced-btn{display:inline-block;padding:13px 30px;border-radius:8px;font-weight:700;font-size:.95rem;text-decoration:none;transition:transform .12s ease}
.ced-btn:hover{transform:translateY(-1px)}
.ced-btn--rose{background:var(--ced-rose);color:#fff}
.ced-btn--jaune{background:var(--ced-jaune);color:var(--ced-marine)}

/* Bandeau défilant */
.ced-marquee{background:var(--wp--preset--color--accent-1);color:#fff;overflow:hidden;padding:13px 0;font-weight:700;font-size:.95rem}
.ced-marquee-track{display:flex;white-space:nowrap;width:max-content;animation:ced-defile 32s linear infinite}
.ced-marquee span{margin:0 18px}
.ced-marquee em{font-style:normal;color:var(--ced-jaune)}
@keyframes ced-defile{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion: reduce){.ced-marquee-track{animation:none}}

/* Univers */
.ced-univers{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ced-univers-card{background:#fff;border-radius:12px;overflow:hidden;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.06);text-decoration:none;color:inherit;transition:transform .12s ease}
.ced-univers-card:hover{transform:translateY(-3px)}
.ced-univers-card img{width:100%;aspect-ratio:4/3;object-fit:cover;display:block}
.ced-univers-card p{margin:0;padding:12px 8px;font-weight:700;font-size:.875rem}

/* Stats */
.ced-stats{background:#fff;border-radius:14px;display:grid;grid-template-columns:repeat(4,1fr);text-align:center;padding:26px 10px;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.ced-stats b{display:block;font-size:1.9rem;color:var(--ced-rose);font-weight:800}
.ced-stats span{font-size:.85rem;color:var(--ced-gris)}

/* Cartes produit */
.ced-pgrid{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.ced-pgrid--3{grid-template-columns:repeat(3,1fr)}
.ced-pcard{background:#fff;border-radius:12px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06);position:relative;display:flex;flex-direction:column}
.ced-pcard-badge{position:absolute;top:10px;left:10px;background:var(--ced-rose);color:#fff;font-size:.7rem;font-weight:700;padding:4px 10px;border-radius:5px;z-index:1}
.ced-pcard-img img{width:100%;aspect-ratio:1/1;object-fit:contain;background:#fff;padding:12px;display:block;height:auto}
.ced-pcard-body{padding:0 14px 14px;display:flex;flex-direction:column;gap:7px;flex:1}
.ced-pcard-title{font-size:.82rem;font-weight:600;line-height:1.35;color:var(--ced-rose);text-decoration:none;min-height:2.6em;display:block}
.ced-pcard-price{font-size:1.05rem;font-weight:800}
.ced-pcard-price .woocommerce-Price-currencySymbol{font-size:.85em}
.ced-pcard-add{margin-top:auto;background:var(--ced-rose);color:#fff !important;text-align:center;border-radius:7px;padding:9px;font-size:.82rem;font-weight:700;text-decoration:none}
.ced-pcard-add--alt{background:var(--ced-marine)}
.ced-pcard-add.added{display:none}
.ced-pcard .added_to_cart{margin-top:6px;text-align:center;font-size:.82rem;font-weight:700;color:var(--ced-rose)}

/* Grand bazar (mosaïque) */
.ced-bazar{background:var(--wp--preset--color--accent-1);color:#fff;padding:50px 0 56px}
.ced-bazar .ced-hp-title{color:#fff}
.ced-bazar .ced-hp-title em{color:var(--ced-jaune)}
.ced-bazar .ced-hp-sub{color:#bbb}
.ced-wall{columns:5 200px;column-gap:14px}
.ced-wcard{break-inside:avoid;background:#fff;color:#222;border-radius:10px;overflow:hidden;margin:0 0 14px;position:relative}
.ced-wcard img{width:100%;display:block;height:auto}
.ced-wcard-price{position:absolute;top:8px;right:8px;background:var(--ced-jaune);color:var(--ced-marine);font-weight:800;font-size:.8rem;padding:4px 10px;border-radius:14px}
.ced-wcard-price del{display:none}
.ced-wcard-title{font-size:.72rem;padding:8px 10px;font-weight:600;line-height:1.3}
.ced-wcard-title a{color:#444;text-decoration:none}
.ced-bazar-cta{text-align:center;margin:26px 0 0}

/* Asymétrique déguisements */
.ced-asym{display:grid;grid-template-columns:1fr 2fr;gap:16px;align-items:stretch}
.ced-asym-big{position:relative;border-radius:14px;overflow:hidden;display:flex;align-items:flex-end;min-height:420px;background-size:cover;background-position:center;text-decoration:none}
.ced-asym-veil{position:absolute;inset:0;background:linear-gradient(0deg,rgba(26,26,46,.85),rgba(26,26,46,0) 60%)}
.ced-asym-txt{position:relative;color:#fff;padding:28px;font-size:.875rem}
.ced-asym-txt strong{display:block;font-size:1.6rem;font-weight:800;margin-bottom:6px}

/* Chips */
.ced-chips{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.ced-chip{background:#fff;border:1.5px solid #e4e1da;border-radius:20px;padding:8px 18px;font-size:.85rem;font-weight:600;color:#444;text-decoration:none;transition:transform .12s ease}
.ced-chip:hover{transform:translateY(-2px);border-color:var(--ced-rose)}
.ced-chip:nth-child(5n+1){background:var(--ced-rose);border-color:var(--ced-rose);color:#fff}
.ced-chip:nth-child(7n+3){background:var(--ced-marine);border-color:var(--ced-marine);color:#fff}
.ced-chip--plus{background:var(--ced-jaune) !important;border-color:var(--ced-jaune) !important;color:var(--ced-marine) !important;font-weight:800}

/* Rangée défilante tendances */
.ced-row-scroll{display:flex;gap:14px;overflow-x:auto;padding-bottom:10px;scrollbar-width:thin}
.ced-row-scroll .ced-pcard{min-width:200px;max-width:200px}

/* B2B */
.ced-b2b{background:var(--wp--preset--color--accent-1);color:#fff;border-radius:14px;padding:42px 48px;text-align:center}
.ced-b2b h3{font-size:1.6rem;margin:0 0 30px;font-weight:800;color:#fff}
.ced-b2b-cols{display:grid;grid-template-columns:repeat(4,1fr);gap:24px;margin-bottom:32px}
.ced-b2b-ico{font-size:2.1rem;display:block}
.ced-b2b-cols b{display:block;font-size:.95rem;margin:10px 0 4px}
.ced-b2b-cols span:not(.ced-b2b-ico){font-size:.82rem;opacity:.75}

/* Agenda */
.ced-agenda{display:grid;grid-template-columns:repeat(5,1fr);gap:14px}
.ced-evt{background:#fff;border-radius:12px;padding:18px;box-shadow:0 1px 4px rgba(0,0,0,.06);border-top:4px solid var(--ced-rose)}
.ced-evt--next{border-top-color:var(--ced-jaune);outline:2px solid var(--ced-jaune)}
.ced-evt-date{font-size:.72rem;font-weight:700;color:var(--ced-gris);text-transform:uppercase;letter-spacing:.4px}
.ced-evt b{display:block;font-size:1rem;margin:6px 0}
.ced-evt span:not(.ced-evt-date){font-size:.82rem;color:var(--ced-gris);line-height:1.45;display:block}
.ced-evt a{display:inline-block;margin-top:10px;color:var(--ced-rose);font-weight:700;font-size:.82rem;text-decoration:none}

/* Mur petits prix */
.ced-mpgrid{display:grid;grid-template-columns:repeat(6,1fr);gap:12px}
.ced-mpcard{background:#fff;border-radius:10px;overflow:hidden;text-align:center;box-shadow:0 1px 3px rgba(0,0,0,.05);text-decoration:none;display:flex;flex-direction:column;transition:transform .12s ease}
.ced-mpcard:hover{transform:translateY(-3px)}
.ced-mpcard img{width:100%;aspect-ratio:1/1;object-fit:contain;padding:8px;height:auto}
.ced-mpcard-price{background:var(--ced-jaune);font-weight:800;font-size:.875rem;padding:6px;color:var(--ced-marine);margin-top:auto}
.ced-mpcard-price del{display:none}

/* Drive */
.ced-drive{display:grid;grid-template-columns:1fr 1fr;border-radius:14px;overflow:hidden;background:#fff;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.ced-drive>img{width:100%;height:100%;object-fit:cover;min-height:280px}
.ced-drive-body{padding:38px 42px}
.ced-drive-body h3{font-size:1.5rem;margin:0 0 12px;font-weight:800}
.ced-drive-body p{font-size:.9rem;color:#444;line-height:1.7;margin:0 0 8px}
.ced-drive-infos{color:var(--ced-gris);font-size:.85rem}

/* SEO */
.ced-hp-section--seo{padding:24px 0 10px}
.ced-seo{font-size:.85rem;color:var(--ced-gris);line-height:1.7;max-width:880px}
.ced-seo a{color:var(--ced-rose)}

/* Zones éditables (patterns synchronisés : hero, saison, promos) */
.ced-sync .wp-block-cover{border-radius:14px;overflow:hidden}
.ced-sync-hero{padding-top:36px}
.ced-sync .wp-block-cover .wp-block-button__link{font-weight:700;border-radius:8px}

/* Responsive */
@media (max-width: 980px){
	.ced-univers{grid-template-columns:repeat(2,1fr)}
	.ced-pgrid,.ced-pgrid--3{grid-template-columns:repeat(2,1fr)}
	.ced-stats,.ced-b2b-cols{grid-template-columns:repeat(2,1fr);gap:18px}
	.ced-agenda{grid-template-columns:repeat(2,1fr)}
	.ced-mpgrid{grid-template-columns:repeat(3,1fr)}
	.ced-asym{grid-template-columns:1fr}
	.ced-asym-big{min-height:260px}
	.ced-drive{grid-template-columns:1fr}
	.ced-b2b{padding:32px 24px}
}
@media (max-width: 560px){
	.ced-pgrid,.ced-pgrid--3{grid-template-columns:1fr 1fr;gap:10px}
	.ced-mpgrid{grid-template-columns:repeat(2,1fr)}
	.ced-agenda{grid-template-columns:1fr}
	.ced-hp-title{font-size:1.35rem}
}


/* ============================================================
   ACCUEIL 100% BLOCS NATIFS — habillage (ced-pc-*, chips, etc.)
   ============================================================ */

/* En-têtes de section en flex (groupe natif) */
.ced-hp-head .ced-hp-more{margin:0}

/* Stats (paragraphes natifs) */
.ced-stats .ced-stats-num{font-size:1.9rem;color:var(--ced-rose);font-weight:800;margin:0;line-height:1.2}
.ced-stats .ced-stats-label{font-size:.85rem;color:var(--ced-gris);margin:0}

/* Collection de produits — carte standard */
.ced-pc ul.wc-block-product-template,.ced-pc .wc-block-product-template{gap:16px}
.ced-pc li.wc-block-product{background:#fff;border-radius:12px;box-shadow:0 1px 4px rgba(0,0,0,.06);overflow:hidden;padding:0 0 14px;display:flex;flex-direction:column}
.ced-pc li.wc-block-product>*{margin-left:14px;margin-right:14px}
.ced-pc li.wc-block-product .wc-block-components-product-image,.ced-pc li.wc-block-product figure{margin:0 0 8px}
.ced-pc li.wc-block-product img{aspect-ratio:1/1;object-fit:contain;background:#fff;padding:12px;width:100%;height:auto}
.ced-pc .wp-block-post-title{font-size:.82rem;font-weight:600;line-height:1.35;min-height:2.6em;margin-bottom:6px}
.ced-pc .wp-block-post-title a{color:var(--ced-rose);text-decoration:none}
.ced-pc .wp-block-woocommerce-product-price{font-size:1.05rem;font-weight:800;margin-bottom:8px}
.ced-pc .wp-block-woocommerce-product-button{margin-top:auto}
.ced-pc .wc-block-components-product-button .wp-block-button__link,.ced-pc .wp-block-woocommerce-product-button .wp-block-button__link{background:var(--ced-rose);color:#fff;border-radius:7px;padding:9px;font-size:.82rem;font-weight:700;width:100%;text-align:center}
.ced-pc .price_restriction{font-size:.78rem;font-weight:600;line-height:1.3;display:block}
.ced-pc .price_restriction a{color:var(--ced-rose)}

/* Variante mur maçonnerie (grand bazar) */
.ced-pc--wall ul.wc-block-product-template{display:block;columns:5 200px;column-gap:14px}
.ced-pc--wall li.wc-block-product{break-inside:avoid;margin:0 0 14px;position:relative;display:block;padding:0 0 10px}
.ced-pc--wall li.wc-block-product img{aspect-ratio:auto;padding:0}
.ced-pc--wall li.wc-block-product>*{margin-left:10px;margin-right:10px}
.ced-pc--wall li.wc-block-product .wc-block-components-product-image,.ced-pc--wall li.wc-block-product figure{margin:0 0 6px}
.ced-pc--wall .wp-block-post-title{font-size:.72rem;min-height:0;margin-bottom:0}
.ced-pc--wall .wp-block-post-title a{color:#444}
.ced-pc--wall .wp-block-woocommerce-product-price{position:absolute;top:8px;right:8px;background:var(--ced-jaune);color:var(--ced-marine);font-weight:800;font-size:.8rem;padding:4px 10px;border-radius:14px;margin:0;max-width:75%}
.ced-pc--wall .wp-block-woocommerce-product-price del{display:none}
.ced-pc--wall .price_restriction{font-size:.62rem}

/* Variante rangée défilante (tendances) */
.ced-pc--scroll ul.wc-block-product-template{display:flex;flex-wrap:nowrap;overflow-x:auto;padding-bottom:10px;scrollbar-width:thin}
.ced-pc--scroll li.wc-block-product{min-width:200px;max-width:200px;flex:0 0 auto}

/* Variante mini-cartes (petits prix) */
.ced-pc--mini li.wc-block-product{padding:0;text-align:center}
.ced-pc--mini li.wc-block-product>*{margin-left:0;margin-right:0}
.ced-pc--mini li.wc-block-product img{padding:8px}
.ced-pc--mini .wp-block-woocommerce-product-price{background:var(--ced-jaune);color:var(--ced-marine);font-weight:800;font-size:.875rem;padding:6px;margin-top:auto;margin-bottom:0;display:block;flex-grow:0}
.ced-pc--mini .wp-block-woocommerce-product-price del{display:none}

/* Chips en blocs Boutons */
.ced-chips.wp-block-buttons{gap:10px;justify-content:center}
.ced-chips .wp-block-button__link{background:#fff;border:1.5px solid #e4e1da;border-radius:20px;padding:8px 18px;font-size:.85rem;font-weight:600;color:#444}
.ced-chips .wp-block-button:nth-child(5n+1) .wp-block-button__link{background:var(--ced-rose);border-color:var(--ced-rose);color:#fff}
.ced-chips .wp-block-button:nth-child(7n+3) .wp-block-button__link{background:var(--ced-marine);border-color:var(--ced-marine);color:#fff}
.ced-chips .wp-block-button:last-child .wp-block-button__link{background:var(--ced-jaune);border-color:var(--ced-jaune);color:var(--ced-marine);font-weight:800}

/* B2B natif */
.ced-b2b-cols p{margin:0}
.ced-b2b-cols .ced-b2b-ico{font-size:2.1rem}
.ced-b2b-cols strong{display:block;font-size:.95rem;margin:10px 0 4px}
.ced-b2b-cols .ced-b2b-sub{font-size:.82rem;opacity:.75}

/* Bouton jaune natif */
.ced-btn-jaune .wp-block-button__link{background:var(--ced-jaune);color:var(--ced-marine);font-weight:700;border-radius:8px;padding:13px 30px}

/* Drive en Média et texte */
.ced-drive-mt{background:#fff;border-radius:14px;overflow:hidden;box-shadow:0 1px 4px rgba(0,0,0,.06)}
.ced-drive-mt .wp-block-media-text__content{padding:38px 42px}

/* Responsive complément natif */
@media (max-width: 980px){
	.ced-pc--scroll li.wc-block-product{min-width:170px;max-width:170px}
}

/* Contours legers sur les blocs (gris de la palette : accent-6) */
.ced-pc li.wc-block-product,.ced-univers-card,.ced-stats,.ced-evt,.ced-drive-mt{border:1px solid var(--wp--preset--color--accent-6)}

/* Petits prix : images pleine largeur + titre */
.ced-pc--mini li.wc-block-product{align-items:stretch}
.ced-pc--mini li.wc-block-product .wc-block-components-product-image{width:100%;margin:0}
.ced-pc--mini li.wc-block-product .wc-block-components-product-image a{display:block;width:100%}
.ced-pc--mini li.wc-block-product img{width:100%;height:auto;aspect-ratio:1/1;object-fit:contain}
.ced-pc--mini .wp-block-post-title{font-size:.72rem;font-weight:600;min-height:0;margin:0 8px 8px;line-height:1.3}
.ced-pc--mini .wp-block-post-title a{color:#444;text-decoration:none}

/* === CORRECTIFS MOBILE (post mise en prod, 04/07/2026) === */
@media (max-width: 1023px) {
	/* bandeau de reassurance masque en mobile */
	.ced-top-banner{display:none}
	/* panneaux fermes du mega-menu : ne plus occuper l espace */
	.ced-mega-menu__panel{display:none;opacity:1;visibility:visible;pointer-events:auto}
	.ced-mega-menu__item--open > .ced-mega-menu__panel{display:block}
	/* lisibilite : la couleur de lien globale ecrasait le blanc */
	.ced-mega-menu__items .ced-mega-menu__link{color:#fff !important}
	.ced-mega-menu__items .ced-mega-menu__subcat{color:#fff !important}
	.ced-mega-menu__items .ced-mega-menu__link{font-size:1rem}
	.ced-mega-menu__items .ced-mega-menu__subcat span{color:#fff !important;font-size:1rem !important;font-weight:inherit}
	.ced-mega-menu__items .ced-mega-menu__subcat span::before{content:"–\00a0"}
	/* focus visible mais aux couleurs du theme */
	.ced-mega-menu__link:focus-visible,.ced-mega-menu__subcat:focus-visible{outline:2px solid #F5B82E;outline-offset:-2px}
}

/* === HEADER MOBILE : logo a gauche, recherche a droite, une seule ligne === */
@media (max-width: 1023px) {
	.wp-block-group:has(> .ced-header-row){padding-left:10px !important;padding-right:10px !important}
	.ced-header-row{flex-wrap:wrap !important;align-items:center;row-gap:8px;column-gap:8px}
	.ced-header-row .wp-block-site-logo{flex:0 0 auto}
	.ced-header-row .wp-block-site-logo img{width:56px !important;height:auto}
	.ced-header-row .dgwt-wcas-search-wrapp{flex:1 1 0%;min-width:0;max-width:none;margin:0}
	.ced-header-row .dgwt-wcas-search-input{height:44px !important;min-height:44px !important}
	.ced-header-row .dgwt-wcas-sf-wrapp,.ced-header-row form.dgwt-wcas-search-form{min-height:44px}
	.ced-header-row form.dgwt-wcas-search-form{margin:0}
	.ced-header-row > .wp-block-group.is-style-default{flex-basis:100% !important;justify-content:flex-end !important}
}

/* Encadre conseil (pages guides) */
.ced-encart{background:var(--wp--preset--color--accent-2);border-radius:14px;padding:22px 28px}
.ced-encart p{margin:0}

/* Titres centres dans les vignettes profusion */
.ced-pc--mini .wp-block-post-title{text-align:center}
