/*
Theme Name: CarsDakar
Description: Thème personnalisé clair et premium pour le catalogue CarsDakar.
Version: 0.6.0
Requires at least: 6.8
Requires PHP: 8.3
Author: Mohamed Ndoye
Text Domain: carsdakar-theme
*/

:root {
	--cd-color-primary: #10233f;
	--cd-color-accent: #b99047;
	--cd-color-background: #f7f8fa;
	--cd-color-surface: #ffffff;
	--cd-color-text: #172033;
	--cd-color-muted: #667085;
	--cd-color-border: #e5e7eb;
	--cd-container-width: 1200px;
	--cd-radius: 16px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--cd-color-background);
	color: var(--cd-color-text);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	font-size: 16px;
	line-height: 1.6;
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

a {
	color: inherit;
}

.cd-container {
	width: min(100% - 40px, var(--cd-container-width));
	margin-inline: auto;
}

.site-header {
	background: var(--cd-color-surface);
	border-bottom: 1px solid var(--cd-color-border);
}

.site-header__inner {
	display: flex;
	min-height: 76px;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}

.site-brand {
	color: var(--cd-color-primary);
	font-size: 1.4rem;
	font-weight: 750;
	text-decoration: none;
}

.primary-navigation ul {
	display: flex;
	margin: 0;
	padding: 0;
	gap: 24px;
	list-style: none;
}

.primary-navigation a {
	text-decoration: none;
}

.site-main {
	min-height: calc(100vh - 152px);
}

.cd-placeholder {
	display: grid;
	min-height: 620px;
	align-items: center;
	background:
		linear-gradient(135deg, rgba(16, 35, 63, 0.97), rgba(16, 35, 63, 0.82));
	color: #ffffff;
}

.cd-placeholder__content {
	max-width: 760px;
	padding-block: 90px;
}

.cd-eyebrow {
	margin: 0 0 12px;
	color: #e3c98e;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.cd-placeholder h1 {
	max-width: 700px;
	margin: 0;
	font-size: clamp(2.5rem, 7vw, 5rem);
	line-height: 1.05;
}

.cd-placeholder p {
	max-width: 620px;
	margin: 24px 0 32px;
	color: rgba(255, 255, 255, 0.82);
	font-size: 1.1rem;
}

.cd-button {
	display: inline-flex;
	min-height: 48px;
	align-items: center;
	justify-content: center;
	padding: 12px 22px;
	border-radius: 999px;
	background: var(--cd-color-accent);
	color: #101828;
	font-weight: 700;
	text-decoration: none;
}

.cd-content-card {
	width: min(100% - 40px, 900px);
	margin: 60px auto;
	padding: 32px;
	border: 1px solid var(--cd-color-border);
	border-radius: var(--cd-radius);
	background: var(--cd-color-surface);
}

.site-footer {
	padding: 24px 0;
	background: var(--cd-color-primary);
	color: rgba(255, 255, 255, 0.76);
	text-align: center;
}

.site-footer p {
	margin: 0;
}

.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.screen-reader-text:focus {
	z-index: 100000;
	top: 10px;
	left: 10px;
	width: auto;
	height: auto;
	padding: 12px 16px;
	clip: auto;
	background: #ffffff;
	color: #000000;
}

@media (max-width: 700px) {
	.cd-container {
		width: min(100% - 28px, var(--cd-container-width));
	}

	.primary-navigation {
		display: none;
	}

	.cd-placeholder {
		min-height: 520px;
	}
}