/* ==== partial: 03-controls.css ====
   Buttons, links, text styles, surfaces, media and forms.
   ======================================================================== */

/* 5. Buttons and links ----------------------------------------------------- */

.wp-block-button__link,
.demande-button,
button.demande-button,
input[type="submit"] {
	align-items: center;
	background-color: var(--demande-primary);
	border: 1px solid var(--demande-primary);
	border-radius: var(--demande-radius);
	color: var(--demande-surface);
	cursor: pointer;
	display: inline-flex;
	font-family: var(--wp--preset--font-family--inter, "Inter", sans-serif);
	font-size: 1rem;
	font-weight: 600;
	gap: 0.5rem;
	justify-content: center;
	line-height: 1.2;
	min-height: var(--demande-control-height);
	padding: 1rem 1.5rem;
	text-align: center;
	text-decoration: none;
	transition:
		background-color var(--demande-transition),
		border-color var(--demande-transition),
		color var(--demande-transition),
		box-shadow var(--demande-transition),
		transform var(--demande-transition-fast);
	will-change: transform;
}

.wp-block-button__link:hover,
.demande-button:hover,
input[type="submit"]:hover,
.woocommerce :is(a.button, button.button, input.button):hover {
	background-color: var(--demande-primary-hover);
	border-color: var(--demande-primary-hover);
	box-shadow: var(--demande-shadow-button-hover);
	color: var(--demande-surface);
	transform: translateY(-1px);
}

.wp-block-button__link:active,
.demande-button:active,
.woocommerce :is(a.button, button.button, input.button):active {
	background-color: var(--demande-primary-active);
	border-color: var(--demande-primary-active);
	box-shadow: none;
	color: var(--demande-surface);
	transform: translateY(0);
}

.wp-block-button__link:focus-visible,
.demande-button:focus-visible,
input[type="submit"]:focus-visible,
.woocommerce :is(a.button, button.button, input.button):focus-visible {
	background-color: var(--demande-primary-hover);
	border-color: var(--demande-primary-hover);
	box-shadow: var(--demande-shadow-button-focus);
	color: var(--demande-surface);
}

.wp-block-button__link:disabled,
.wp-block-button__link[aria-disabled="true"],
.demande-button[disabled],
.demande-button[aria-disabled="true"] {
	background-color: var(--demande-lavender);
	border-color: var(--demande-border);
	box-shadow: none;
	color: var(--demande-muted);
	cursor: not-allowed;
	transform: none;
}

.wp-block-button.is-style-demande-secondary .wp-block-button__link {
	background-color: transparent;
	border-color: var(--demande-primary);
	color: var(--demande-primary);
}

.wp-block-button.is-style-demande-secondary .wp-block-button__link:hover {
	background-color: var(--demande-primary-soft);
	border-color: var(--demande-primary);
	box-shadow: none;
	color: var(--demande-primary-hover);
	transform: translateY(-1px);
}

.wp-block-button.is-style-demande-secondary .wp-block-button__link:active {
	background-color: var(--demande-primary-soft);
	border-color: var(--demande-primary-active);
	color: var(--demande-primary-active);
	transform: translateY(0);
}

.wp-block-button.is-style-demande-secondary .wp-block-button__link:focus-visible {
	background-color: var(--demande-primary-soft);
	border-color: var(--demande-primary);
	box-shadow: var(--demande-shadow-button-focus);
	color: var(--demande-primary-hover);
}

.wp-block-button.is-style-demande-tertiary .wp-block-button__link {
	background-color: transparent;
	border-color: transparent;
	color: var(--demande-primary);
	min-height: 0;
	padding: 0.25rem 0;
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

.wp-block-button.is-style-demande-tertiary .wp-block-button__link:hover {
	background-color: transparent;
	box-shadow: none;
	color: var(--demande-primary-hover);
	transform: none;
}

.wp-block-button.is-style-demande-quiet .wp-block-button__link {
	background-color: var(--demande-lavender);
	border-color: transparent;
	color: var(--demande-primary);
}

.wp-block-button.is-style-demande-quiet .wp-block-button__link:hover {
	background-color: var(--demande-primary-soft);
	box-shadow: none;
	color: var(--demande-primary-hover);
	transform: translateY(-1px);
}

.wp-block-button.is-style-demande-quiet .wp-block-button__link:active {
	background-color: var(--demande-primary-soft);
	color: var(--demande-primary-active);
	transform: translateY(0);
}

.wp-block-button.is-style-demande-quiet .wp-block-button__link:focus-visible {
	background-color: var(--demande-primary-soft);
	box-shadow: var(--demande-shadow-button-focus);
	color: var(--demande-primary-hover);
}

.wp-block-button.is-style-large .wp-block-button__link {
	min-height: 48px;
	padding-inline: 2rem;
}

/* Loading state shared by buttons and form controls. */
.demande-is-loading {
	position: relative;
	color: transparent !important;
	pointer-events: none;
}

.demande-is-loading::after {
	animation: demande-spin 700ms linear infinite;
	border: 2px solid currentColor;
	border-radius: 50%;
	border-top-color: transparent;
	content: "";
	height: 1rem;
	inset-block-start: 50%;
	inset-inline-start: 50%;
	margin-block-start: -0.5rem;
	margin-inline-start: -0.5rem;
	position: absolute;
	width: 1rem;
	color: inherit;
}

.demande-is-loading[style*="background-color"]::after,
.wp-block-button__link.demande-is-loading::after,
.demande-button.demande-is-loading::after {
	color: var(--demande-surface);
}

/* Link-style submits (gift-list rows) sit on surface, not on a filled button. */
.demande-gl-link.demande-is-loading::after {
	color: var(--demande-primary);
}

@keyframes demande-spin {
	to {
		transform: rotate(360deg);
	}
}

/* 6. Text styles ----------------------------------------------------------- */

.is-style-demande-eyebrow,
.demande-eyebrow,
.demande-section__titles > p:first-child {
	color: var(--demande-muted);
	font-family: var(--wp--preset--font-family--inter, "Inter", sans-serif);
	font-size: 0.8125rem;
	font-weight: 600;
	letter-spacing: var(--demande-tracking-label);
	margin-block-end: 1rem;
	text-transform: uppercase;
}

.is-style-demande-lede,
.demande-lede {
	color: var(--demande-body);
	font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.25rem);
	line-height: 1.55;
	max-width: 46ch;
}

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

.demande-link-arrow {
	align-items: center;
	display: inline-flex;
	font-weight: 600;
	gap: 0.375rem;
	text-decoration: none;
	transition: color var(--demande-transition);
	white-space: nowrap;
}

.demande-link-arrow a {
	color: inherit;
	text-decoration: none;
}

.demande-link-arrow:hover,
.demande-link-arrow:hover a {
	color: var(--demande-primary-hover);
}

.demande-link-arrow .demande-icon {
	transition: transform var(--demande-transition);
}

.demande-link-arrow:hover .demande-icon {
	transform: translateX(3px);
}

/* 7. Surfaces and cards ---------------------------------------------------- */

.is-style-demande-card,
.demande-card {
	background-color: var(--demande-surface);
	border: var(--demande-border-thin);
	border-radius: var(--demande-radius);
	box-shadow: var(--demande-shadow-sm);
}

.is-style-demande-panel,
.demande-panel {
	background-color: var(--demande-lavender);
	border: var(--demande-border-thin);
	border-radius: var(--demande-radius);
}

.demande-card--interactive {
	transition:
		border-color var(--demande-transition),
		box-shadow var(--demande-transition),
		transform var(--demande-transition);
}

.demande-card--interactive:hover,
.demande-card--interactive:focus-within {
	border-color: var(--demande-border-strong);
	box-shadow: var(--demande-shadow-md);
	transform: translateY(-2px);
}

.wp-block-separator.is-style-demande-hairline {
	border-block-start: var(--demande-border-thin);
	opacity: 1;
}

/* 8. Media ----------------------------------------------------------------- */

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

.demande-media img {
	display: block;
	height: 100%;
	width: 100%;
	object-fit: cover;
	transition: transform 400ms ease;
}

.wp-block-image.is-style-demande-ratio-square img,
.wp-block-image.is-style-demande-ratio-4-3 img,
.wp-block-image.is-style-demande-ratio-3-2 img {
	aspect-ratio: 1 / 1;
	height: 100%;
	object-fit: cover;
	width: 100%;
}

.wp-block-image.is-style-demande-ratio-4-3 img {
	aspect-ratio: 4 / 3;
}

.wp-block-image.is-style-demande-ratio-3-2 img {
	aspect-ratio: 3 / 2;
}

.wp-block-image img {
	border-radius: var(--demande-radius);
}

/* 9. Forms ----------------------------------------------------------------- */

input[type="text"],
input[type="email"],
input[type="url"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="tel"],
input[type="date"],
select,
textarea {
	background-color: var(--demande-surface);
	border: 1px solid var(--demande-border-input);
	border-radius: var(--demande-radius);
	color: var(--demande-body);
	font-family: inherit;
	font-size: 1rem;
	line-height: 1.4;
	min-height: var(--demande-control-height);
	padding: 0.5rem 1rem;
	transition:
		border-color var(--demande-transition),
		box-shadow var(--demande-transition),
		background-color var(--demande-transition);
	width: 100%;
}

select:not([multiple]):not([size]) {
	--demande-field-padding-inline: 1rem 2.5rem;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23453d52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
	background-position: right 0.875rem center;
	background-repeat: no-repeat;
	background-size: 16px 16px;
	padding-inline-end: 2.5rem;
}

input[type="text"]:hover,
input[type="email"]:hover,
input[type="url"]:hover,
input[type="password"]:hover,
input[type="search"]:hover,
input[type="number"]:hover,
input[type="tel"]:hover,
input[type="date"]:hover,
select:hover,
textarea:hover {
	border-color: var(--demande-primary);
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="url"]:focus,
input[type="password"]:focus,
input[type="search"]:focus,
input[type="number"]:focus,
input[type="tel"]:focus,
input[type="date"]:focus,
select:focus,
textarea:focus {
	border-color: var(--demande-primary);
	box-shadow: var(--demande-shadow-input-focus);
	outline: var(--demande-focus-ring);
	outline-offset: 1px;
}

textarea {
	min-height: 8rem;
}

input[type="checkbox"],
input[type="radio"] {
	accent-color: var(--demande-primary);
	height: 1.125rem;
	width: 1.125rem;
}

::placeholder {
	color: var(--demande-muted);
	opacity: 1;
}

/* Legal and helper copy reads as fine print across the shop. */
.woocommerce-privacy-policy-text,
.woocommerce-privacy-policy-text p {
	color: var(--demande-muted-fine, #767082);
	font-size: 0.8125rem;
	line-height: 1.5;
}

.woocommerce-privacy-policy-text {
	margin-block: 0.25rem 1.25rem;
}

/* Notices share one shape so success, error and information read consistently. */
.demande-notice {
	align-items: flex-start;
	border: 0;
	border-inline-start: 3px solid var(--demande-border-strong);
	border-radius: var(--demande-radius);
	display: flex;
	font-size: 1rem;
	gap: 0.5rem;
	margin-block-end: 1rem;
	outline: none;
	padding: 1rem 1rem;
	transition: border-color var(--demande-transition);
}

.demande-notice:focus,
.demande-notice:focus-visible {
	outline: none;
}

.demande-notice--success {
	background-color: var(--demande-success-soft);
	border-inline-start-color: var(--demande-success);
	color: var(--demande-success);
}

.demande-notice--error {
	background-color: var(--demande-danger-soft);
	border-inline-start-color: var(--demande-danger);
	color: var(--demande-danger);
}

.demande-notice--info {
	background-color: var(--demande-lavender);
	border-inline-start-color: var(--demande-primary);
	color: var(--demande-heading);
}

.demande-notice--warning {
	background-color: var(--demande-warning-soft);
	border-inline-start-color: var(--demande-warning);
	color: var(--demande-warning);
}

/* 10. Storefront sign-in --------------------------------------------------- */

.demande-login-shell {
	align-items: stretch;
	display: grid;
	gap: clamp(1.25rem, 3vw, 2rem);
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	margin-inline: auto;
	max-width: 1080px;
	width: 100%;
}

.demande-login-shell:has(> .demande-login__card--signed-in) {
	grid-template-columns: minmax(0, 640px);
	justify-content: center;
}

.demande-login__card,
.demande-login__aside {
	border-radius: var(--demande-radius-lg, 12px);
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: clamp(1.5rem, 3.5vw, 2.5rem);
}

.demande-login__card {
	background-color: var(--demande-surface);
	border: 1px solid var(--demande-border);
	box-shadow: var(--demande-shadow-sm);
}

.demande-login__aside {
	background-color: var(--demande-lavender);
	border: 1px solid var(--demande-border);
}

.demande-login__card > .demande-eyebrow,
.demande-login__aside > .demande-eyebrow {
	align-items: center;
	color: var(--demande-primary);
	display: inline-flex;
	font-size: 0.8125rem;
	font-weight: 600;
	gap: 0.5rem;
	letter-spacing: 0.12em;
	margin-block: 0 0.75rem;
	text-transform: uppercase;
}

.demande-login__title {
	color: var(--demande-heading);
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem);
	font-weight: 400;
	line-height: 1.15;
	margin-block: 0 0.625rem;
}

.demande-login__intro,
.demande-login__aside-intro {
	color: var(--demande-muted);
	font-size: 1rem;
	margin-block: 0 1.5rem;
}

.demande-login__form {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
}

.demande-login__field {
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
}

.demande-login__label-row {
	align-items: baseline;
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	justify-content: space-between;
}

.demande-login__label {
	color: var(--demande-heading);
	font-size: 0.9375rem;
	font-weight: 600;
}

.demande-login__forgot {
	color: var(--demande-primary);
	font-size: 0.875rem;
	font-weight: 500;
	text-decoration: none;
}

.demande-login__forgot:hover {
	color: var(--demande-primary-hover);
	text-decoration: underline;
}

.demande-login__remember {
	align-items: center;
	color: var(--demande-body);
	cursor: pointer;
	display: inline-flex;
	font-size: 0.9375rem;
	gap: 0.625rem;
	min-height: 2.5rem;
}

.demande-login__submit {
	justify-content: center;
	margin-block-start: 0.25rem;
	width: 100%;
}

.demande-login__register-prompt,
.demande-login__meta-link {
	border-block-start: 1px solid var(--demande-border);
	color: var(--demande-muted);
	font-size: 0.9375rem;
	margin-block: 1.5rem 0;
	padding-block-start: 1.25rem;
}

.demande-login__register-prompt a,
.demande-login__meta-link a {
	color: var(--demande-primary);
	font-weight: 600;
	margin-inline-start: 0.25rem;
}

.demande-login__aside-title {
	color: var(--demande-heading);
	font-family: var(--wp--preset--font-family--dm-serif-display, "DM Serif Display", Georgia, serif);
	font-size: clamp(1.375rem, 1.15rem + 0.8vw, 1.75rem);
	font-weight: 400;
	line-height: 1.2;
	margin-block: 0 0.5rem;
}

.demande-login__features {
	display: flex;
	flex-direction: column;
	gap: 1.125rem;
	list-style: none;
	margin: 0 0 1.5rem;
	padding: 0;
}

.demande-login__features li {
	align-items: flex-start;
	display: flex;
	gap: 0.875rem;
}

.demande-login__feature-icon {
	align-items: center;
	background-color: var(--demande-surface);
	border: 1px solid var(--demande-border);
	border-radius: 50%;
	color: var(--demande-primary);
	display: inline-flex;
	flex: 0 0 42px;
	height: 42px;
	justify-content: center;
	width: 42px;
}

.demande-login__features h3 {
	color: var(--demande-heading);
	font-family: var(--demande-font-body);
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.35;
	margin-block: 0 0.1875rem;
}

.demande-login__features p {
	color: var(--demande-muted);
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0;
}

.demande-login__aside-footer {
	border-block-start: 1px solid var(--demande-border);
	margin-block-start: auto;
	padding-block-start: 1.25rem;
}

.demande-login__aside-link {
	align-items: center;
	color: var(--demande-primary);
	display: inline-flex;
	font-size: 0.9375rem;
	font-weight: 600;
	gap: 0.5rem;
	text-decoration: none;
}

.demande-login__aside-link:hover {
	color: var(--demande-primary-hover);
	text-decoration: underline;
}

.demande-login__signed-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem;
}

@media (max-width: 860px) {
	.demande-login-shell {
		grid-template-columns: minmax(0, 1fr);
	}
}

