/* ==========================================================================
   12 - Marketing blocks: product spotlight, countdown, USP bar, accordion,
   brand strip. Tokens only; breakpoints 1280 / 1024 / 782 / 560.
   ========================================================================== */

/* Product spotlight ------------------------------------------------------- */

.demande-product-spotlight {
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
	gap: var(--demande-space-6);
	align-items: center;
	background-color: var(--demande-surface);
	border: var(--demande-border-thin);
	border-radius: var(--demande-radius-lg);
	padding: var(--demande-space-5);
}

.demande-product-spotlight--image-right .demande-product-spotlight__media {
	order: 2;
}

.demande-product-spotlight__media {
	display: block;
	border-radius: var(--demande-radius);
	overflow: hidden;
	background-color: var(--demande-lavender);
}

.demande-product-spotlight__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 1;
	object-fit: cover;
}

.demande-product-spotlight__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--demande-space-3);
}

.demande-product-spotlight__badge {
	display: inline-block;
	background-color: var(--demande-primary-soft);
	color: var(--demande-primary);
	border-radius: var(--demande-radius-pill);
	padding: var(--demande-space-1) var(--demande-space-3);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: 0.04em;
}

.demande-product-spotlight__title {
	margin: 0;
	font-family: var(--demande-font-heading);
	color: var(--demande-heading);
}

.demande-product-spotlight__title a {
	color: inherit;
	text-decoration: none;
}

.demande-product-spotlight__title a:hover,
.demande-product-spotlight__title a:focus-visible {
	color: var(--demande-primary);
}

.demande-product-spotlight__text {
	color: var(--demande-body);
}

.demande-product-spotlight__text > :first-child { margin-top: 0; }
.demande-product-spotlight__text > :last-child { margin-bottom: 0; }

.demande-product-spotlight__price {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--demande-heading);
}

/* Countdown -------------------------------------------------------------- */

.demande-countdown {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--demande-space-3);
	text-align: center;
}

.demande-countdown__heading {
	margin: 0;
	font-family: var(--demande-font-heading);
	font-size: 1.5rem;
	color: var(--demande-heading);
}

.demande-countdown__timer {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: var(--demande-space-3);
}

.demande-countdown__timer[hidden],
.demande-countdown__expired[hidden] {
	display: none;
}

.demande-countdown__unit {
	display: flex;
	flex-direction: column;
	align-items: center;
	min-width: 5rem;
	background-color: var(--demande-lavender);
	border-radius: var(--demande-radius);
	padding: var(--demande-space-3) var(--demande-space-4);
}

.demande-countdown__value {
	font-size: 2.25rem;
	font-weight: 600;
	line-height: 1.1;
	font-variant-numeric: tabular-nums;
	color: var(--demande-primary);
}

.demande-countdown__label {
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	color: var(--demande-muted);
}

.demande-countdown__expired {
	margin: 0;
	color: var(--demande-muted);
}

/* USP bar ---------------------------------------------------------------- */

.demande-usp-bar {
	--demande-usp-columns: 3;
	display: grid;
	grid-template-columns: repeat(var(--demande-usp-columns), minmax(0, 1fr));
	gap: var(--demande-space-4);
	list-style: none;
	margin: 0;
	padding: var(--demande-space-4) 0;
	border-block: var(--demande-border-thin);
}

.demande-usp-bar--cols-2 { --demande-usp-columns: 2; }
.demande-usp-bar--cols-4 { --demande-usp-columns: 4; }

.demande-usp-bar__item {
	display: flex;
	align-items: center;
	gap: var(--demande-space-3);
	margin: 0;
}

.demande-usp-bar__icon {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: var(--demande-radius-pill);
	background-color: var(--demande-primary-soft);
	color: var(--demande-primary);
}

.demande-usp-bar__content {
	display: flex;
	flex-direction: column;
	gap: 0.125rem;
}

.demande-usp-bar__title {
	color: var(--demande-heading);
	font-weight: 600;
}

.demande-usp-bar__text {
	color: var(--demande-muted);
	font-size: 0.875rem;
}

/* Accordion -------------------------------------------------------------- */

.demande-accordion {
	border-top: var(--demande-border-thin);
}

.demande-accordion__item {
	border-bottom: var(--demande-border-thin);
}

.demande-accordion__question {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--demande-space-3);
	padding: var(--demande-space-4) 0;
	cursor: pointer;
	list-style: none;
	font-weight: 600;
	color: var(--demande-heading);
	transition: color var(--demande-transition-fast);
}

.demande-accordion__question::-webkit-details-marker {
	display: none;
}

.demande-accordion__question:hover {
	color: var(--demande-primary);
}

.demande-accordion__question:focus-visible {
	outline: var(--demande-focus-ring);
	outline-offset: 3px;
	border-radius: var(--demande-radius-sm);
}

.demande-accordion__chevron {
	flex: none;
	color: var(--demande-primary);
	transition: transform var(--demande-transition);
}

.demande-accordion__item[open] .demande-accordion__chevron {
	transform: rotate(180deg);
}

.demande-accordion__answer {
	padding-bottom: var(--demande-space-4);
	color: var(--demande-body);
}

.demande-accordion__answer > :first-child { margin-top: 0; }
.demande-accordion__answer > :last-child { margin-bottom: 0; }

/* Brand strip ------------------------------------------------------------ */

.demande-brand-strip {
	overflow: hidden;
}

.demande-brand-strip__track {
	display: flex;
}

.demande-brand-strip__list {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: var(--demande-space-6);
	list-style: none;
	margin: 0;
	padding: var(--demande-space-3) 0;
	width: 100%;
}

.demande-brand-strip__item {
	display: flex;
	align-items: center;
	margin: 0;
}

.demande-brand-strip__logo {
	display: block;
	max-height: 3rem;
	max-width: 10rem;
	width: auto;
	height: auto;
	object-fit: contain;
	transition: filter var(--demande-transition), opacity var(--demande-transition);
}

.demande-brand-strip--grayscale .demande-brand-strip__logo {
	filter: grayscale(1);
	opacity: 0.7;
}

.demande-brand-strip--grayscale .demande-brand-strip__item:hover .demande-brand-strip__logo,
.demande-brand-strip--grayscale .demande-brand-strip__link:focus-visible .demande-brand-strip__logo {
	filter: none;
	opacity: 1;
}

.demande-brand-strip__link:focus-visible {
	outline: var(--demande-focus-ring);
	outline-offset: 3px;
	border-radius: var(--demande-radius-sm);
}

.demande-brand-strip--marquee .demande-brand-strip__track {
	width: max-content;
	animation: demande-brand-marquee 30s linear infinite;
}

.demande-brand-strip--marquee .demande-brand-strip__list {
	flex-wrap: nowrap;
	width: auto;
	padding-inline-end: var(--demande-space-6);
}

.demande-brand-strip--marquee:hover .demande-brand-strip__track,
.demande-brand-strip--marquee:focus-within .demande-brand-strip__track {
	animation-play-state: paused;
}

@keyframes demande-brand-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
	.demande-brand-strip--marquee .demande-brand-strip__track {
		animation: none;
		width: 100%;
	}

	.demande-brand-strip--marquee .demande-brand-strip__list {
		flex-wrap: wrap;
		width: 100%;
		padding-inline-end: 0;
	}

	.demande-brand-strip--marquee .demande-brand-strip__list[aria-hidden="true"] {
		display: none;
	}

	.demande-accordion__chevron {
		transition: none;
	}
}

/* Coming soon (templates/coming-soon.html) ------------------------------- */

/* Presentation that core/group attributes cannot express (layered gradient +
   image background; a 720px centered column) lives here instead of as inline
   style on the group blocks, which the editor's save validation rejects. The
   declared layout/blockGap/padding attributes still drive WP's generated
   layout styles and the vertical rhythm, so only the non-attribute
   declarations moved out of the markup. */

.wp-block-group.demande-coming-soon {
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	background-color: #f5f2fa;
	background-image:
		linear-gradient(135deg, rgba(245, 242, 250, 0.6) 0%, rgba(237, 231, 248, 0.55) 100%),
		url("/wp-content/uploads/2026/10/demande-lists.png");
	background-size: cover, cover;
	background-position: center, center;
	background-repeat: no-repeat, no-repeat;
}

.demande-coming-soon .wp-block-group.demande-coming-soon__inner {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--40, 24px);
	width: 100%;
	max-width: 720px;
	margin-inline: auto;
}

.demande-coming-soon .wp-block-group.demande-coming-soon__stack {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: var(--wp--preset--spacing--20, 8px);
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1280px) {
	.demande-product-spotlight {
		gap: var(--demande-space-5);
	}
}

@media (max-width: 1024px) {
	.demande-usp-bar--cols-4 {
		--demande-usp-columns: 2;
	}

	.demande-countdown__value {
		font-size: 1.875rem;
	}
}

@media (max-width: 782px) {
	.demande-product-spotlight {
		grid-template-columns: minmax(0, 1fr);
		padding: var(--demande-space-4);
	}

	.demande-product-spotlight--image-right .demande-product-spotlight__media {
		order: 0;
	}

	.demande-usp-bar--cols-3 {
		--demande-usp-columns: 1;
	}

	.demande-brand-strip__list {
		gap: var(--demande-space-5);
	}
}

@media (max-width: 560px) {
	.demande-usp-bar {
		--demande-usp-columns: 1;
	}

	.demande-countdown__unit {
		min-width: 4rem;
		padding: var(--demande-space-2) var(--demande-space-3);
	}

	.demande-countdown__value {
		font-size: 1.5rem;
	}

	.demande-brand-strip__logo {
		max-height: 2.25rem;
		max-width: 7.5rem;
	}
}
