/*
Theme Name: MKForm3D Checkout
Description: Thème minimal WooCommerce pour le paiement MKForm3D
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: 3dfab-checkout
WC requires at least: 8.0
WC tested up to: 10.9
*/

:root {
	--fab-bg: #f5f7fb;
	--fab-navy: #0c1b33;
	--fab-text: #122033;
	--fab-muted: #5c6b82;
	--fab-line: #e5e7eb;
	--fab-blue: #1d4ed8;
	--fab-blue-dark: #1e40af;
	--fab-card: #ffffff;
	--fab-radius: 12px;
	--fab-max: 1100px;
	--fab-font: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--fab-bg);
	color: var(--fab-text);
	font-family: var(--fab-font);
	font-size: 16px;
	line-height: 1.5;
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--fab-blue);
}

a:hover {
	color: var(--fab-blue-dark);
}

:focus-visible {
	outline: 2px solid var(--fab-blue);
	outline-offset: 2px;
}

.skip-link {
	position: absolute;
	left: 16px;
	top: -48px;
	z-index: 100000;
	padding: 8px 12px;
	background: #fff;
	color: var(--fab-text);
	border-radius: 8px;
	text-decoration: none;
}

.skip-link:focus {
	top: 8px;
}

.site-header {
	background: var(--fab-navy);
	color: #fff;
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px 24px;
	width: min(var(--fab-max), calc(100% - 48px));
	margin: 0 auto;
	padding: 20px 0;
}

.brand {
	color: #fff;
	text-decoration: none;
}

.brand:hover {
	color: #fff;
}

.brand-name {
	display: block;
	font-size: 1.25rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	line-height: 1.1;
}

.brand-tag {
	display: block;
	margin-top: 4px;
	color: #c5d0e0;
	font-size: 0.68rem;
	font-weight: 600;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	line-height: 1.3;
}

.site-header-aside {
	text-align: right;
}

.secure-note {
	margin: 0;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.3;
}

.back-link {
	display: inline-block;
	margin-top: 4px;
	color: #c5d0e0;
	font-size: 0.82rem;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.back-link:hover,
.back-link:focus-visible {
	color: #fff;
}

.checkout-shell {
	width: 100%;
	max-width: var(--fab-max);
	margin: 0 auto;
	padding: 48px 32px 64px;
}

.checkout-main {
	min-width: 0;
}

.page-card {
	background: var(--fab-card);
	border: 1px solid var(--fab-line);
	border-radius: var(--fab-radius);
	padding: 28px 28px 32px;
}

.page-title {
	margin: 0 0 16px;
	font-size: 1.75rem;
	line-height: 1.2;
}

.entry-content > :first-child {
	margin-top: 0;
}

.entry-content > :last-child {
	margin-bottom: 0;
}

.site-footer {
	border-top: 1px solid var(--fab-line);
	color: var(--fab-muted);
	font-size: 0.875rem;
}

.site-footer-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	width: min(var(--fab-max), calc(100% - 48px));
	margin: 0 auto;
	padding: 22px 0 28px;
}

.site-footer p {
	margin: 0;
}

.footer-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.footer-links a {
	color: var(--fab-muted);
	text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
	color: var(--fab-text);
	text-decoration: underline;
	text-underline-offset: 3px;
}

@media (max-width: 900px) {
	.site-header-inner,
	.site-footer-inner {
		width: min(var(--fab-max), calc(100% - 40px));
	}

	.site-header-inner {
		flex-direction: column;
		align-items: flex-start;
		padding: 18px 0;
	}

	.site-header-aside {
		text-align: left;
	}

	.checkout-shell {
		padding: 24px 16px 40px;
	}

	.page-card {
		padding: 20px 18px 24px;
	}
}
