/* La Fabrique — styles principaux */

:root {
	--color-text: #1a1a1a;
	--color-muted: #666;
	--color-accent: #c45a2a;
	--color-bg: #faf8f5;
	--color-surface: #ffffff;
	--font-sans: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--max-width: 72rem;
	--spacing: 1.5rem;
}

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

body {
	margin: 0;
	font-family: var(--font-sans);
	color: var(--color-text);
	background: var(--color-bg);
	line-height: 1.6;
}

a {
	color: var(--color-accent);
}

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

.site {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

.site-content {
	flex: 1;
	width: min(100% - 2rem, var(--max-width));
	margin: 0 auto;
	padding: var(--spacing) 0;
}

.site-header,
.site-footer {
	background: var(--color-surface);
	border-block: 1px solid #e8e4df;
	padding: var(--spacing);
}

.site-header {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--spacing);
}

.site-title {
	margin: 0;
	font-size: 1.5rem;
}

.site-title a {
	color: inherit;
	text-decoration: none;
}

.site-description {
	margin: 0.25rem 0 0;
	color: var(--color-muted);
	font-size: 0.95rem;
}

.main-navigation ul,
.footer-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation a,
.footer-navigation a {
	text-decoration: none;
	color: inherit;
}

.site-main {
	display: grid;
	gap: var(--spacing);
}

.entry-title {
	margin-top: 0;
}

.entry-meta {
	color: var(--color-muted);
	font-size: 0.9rem;
}

.site-footer {
	text-align: center;
}

.site-info {
	margin: 0.75rem 0 0;
	color: var(--color-muted);
	font-size: 0.9rem;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #f1f1f1;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #21759b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

/* Page d'accueil */

.home .site-content,
.front-page .site-content {
	display: block;
	width: min(100% - 2rem, var(--max-width));
}

.hero {
	text-align: center;
	padding: 3rem 1.5rem;
	margin-bottom: var(--spacing);
	background: linear-gradient(145deg, #fff8f2 0%, var(--color-surface) 55%, #f3ebe3 100%);
	border: 1px solid #e8e4df;
	border-radius: 1rem;
}

.hero__badge {
	display: inline-block;
	margin: 0 0 1rem;
	padding: 0.35rem 0.85rem;
	font-size: 0.8rem;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--color-accent);
	background: rgba(196, 90, 42, 0.1);
	border-radius: 999px;
}

.hero__title {
	margin: 0 0 0.75rem;
	font-size: clamp(2rem, 5vw, 3rem);
	line-height: 1.15;
}

.hero__lead {
	max-width: 36rem;
	margin: 0 auto;
	color: var(--color-muted);
	font-size: 1.1rem;
}

.front-page-content,
.latest-posts,
.welcome-note {
	margin-bottom: var(--spacing);
}

.latest-posts__title,
.welcome-note h2 {
	margin: 0 0 1rem;
	font-size: 1.35rem;
}

.latest-posts__grid {
	display: grid;
	gap: var(--spacing);
}

.latest-posts__card {
	padding: 1.25rem;
	background: var(--color-surface);
	border: 1px solid #e8e4df;
	border-radius: 0.75rem;
}

.latest-posts__card-title {
	margin: 0 0 0.5rem;
	font-size: 1.1rem;
}

.latest-posts__card-title a {
	color: inherit;
	text-decoration: none;
}

.latest-posts__card-title a:hover {
	color: var(--color-accent);
}

.latest-posts__date {
	display: block;
	margin-bottom: 0.75rem;
	color: var(--color-muted);
	font-size: 0.85rem;
}

.latest-posts__excerpt {
	margin: 0;
	color: var(--color-muted);
}

.welcome-note {
	padding: 1.5rem;
	text-align: center;
	background: var(--color-surface);
	border: 1px dashed #d4ccc4;
	border-radius: 0.75rem;
}

.welcome-note p {
	margin: 0;
	color: var(--color-muted);
}

@media (min-width: 768px) {
	body:not(.home):not(.front-page) .site-content {
		display: grid;
		grid-template-columns: 1fr 18rem;
		gap: var(--spacing);
		align-items: start;
	}

	body:not(.home):not(.front-page) .site-main {
		grid-column: 1;
	}

	body:not(.home):not(.front-page) .widget-area {
		grid-column: 2;
	}

	.latest-posts__grid {
		grid-template-columns: repeat(3, 1fr);
	}
}
