/*
Theme Name: Alalia Sweets Lab
Theme URI: https://example.com/
Author: Alalia Sweets Lab
Description: Thème WordPress de départ pour un laboratoire de pâtisserie et créations sucrées.
Version: 1.3.2
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
Text Domain: alalia-sweets-lab
*/

:root {
	--color-ink: #392b2d;
	--color-muted: #75696a;
	--color-cream: #fffaf4;
	--color-pink: #f6e2df;
	--color-berry: #8c3f59;
	--color-border: #eadeda;
	--content-width: 1120px;
	--radius: 1rem;
}

* {
	box-sizing: border-box;
}

html {
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background: var(--color-cream);
	color: var(--color-ink);
	font-family: Georgia, "Times New Roman", serif;
	font-size: 1rem;
	line-height: 1.65;
}

a {
	color: var(--color-berry);
}

a:hover,
a:focus-visible {
	color: var(--color-ink);
}

img {
	display: block;
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font: inherit;
}

.site-container {
	width: min(calc(100% - 2rem), var(--content-width));
	margin-inline: auto;
}

.site-header,
.site-footer {
	background: #fff;
}

.site-header {
	border-bottom: 1px solid var(--color-border);
}

.header-inner,
.footer-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	padding-block: 1rem;
}

.site-branding a {
	color: var(--color-ink);
	font-size: 1.3rem;
	font-weight: 700;
	text-decoration: none;
}

.site-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	margin: 0;
	padding: 0;
	list-style: none;
}

.site-navigation a {
	text-decoration: none;
}

.menu-toggle {
	display: none;
}

.site-main {
	min-height: 60vh;
	padding-block: 3rem 4rem;
}

.hero {
	padding: clamp(2rem, 7vw, 5rem);
	border-radius: var(--radius);
	background: var(--color-pink);
	text-align: center;
}

.hero h1,
.page-title {
	margin-top: 0;
	font-size: clamp(2rem, 5vw, 3.5rem);
	line-height: 1.1;
}

.hero p,
.lead {
	max-width: 42rem;
	margin-inline: auto;
	color: var(--color-muted);
	font-size: 1.15rem;
}

.button,
button,
input[type="submit"] {
	display: inline-block;
	padding: 0.75rem 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--color-berry);
	color: #fff;
	cursor: pointer;
	text-decoration: none;
}

.button:hover,
button:hover,
input[type="submit"]:hover {
	background: var(--color-ink);
	color: #fff;
}

.section-heading {
	margin-block: 3rem 1.25rem;
}

.product-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
	gap: 1.5rem;
}

.product-card {
	overflow: hidden;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
}

.product-card__image img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.product-card__body {
	padding: 1rem;
}

.product-card h2 {
	margin-top: 0;
	font-size: 1.25rem;
}

.product-card h2 a {
	text-decoration: none;
}

.product-card__price {
	font-weight: 700;
}

.content-card,
.form-card {
	padding: clamp(1.25rem, 4vw, 2rem);
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
}

.form-card {
	display: grid;
	gap: 1rem;
	max-width: 42rem;
}

.form-card label {
	display: grid;
	gap: 0.35rem;
	font-weight: 700;
}

.form-card input,
.form-card select,
.form-card textarea {
	width: 100%;
	padding: 0.7rem;
	border: 1px solid var(--color-border);
	border-radius: 0.5rem;
	background: #fff;
}

.site-footer {
	border-top: 1px solid var(--color-border);
	color: var(--color-muted);
}

.cookie-banner {
	position: fixed;
	z-index: 10;
	right: 1rem;
	bottom: 1rem;
	left: 1rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	max-width: 900px;
	margin-inline: auto;
	padding: 1rem;
	border: 1px solid var(--color-border);
	border-radius: var(--radius);
	background: #fff;
	box-shadow: 0 0.5rem 2rem #392b2d20;
}

.cookie-banner[hidden] {
	display: none;
}

.cookie-banner__actions {
	display: flex;
	flex-shrink: 0;
	gap: 0.5rem;
}

.cookie-banner__actions button:last-child {
	background: #eee6e3;
	color: var(--color-ink);
}

.screen-reader-text {
	position: absolute;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	width: 1px;
	height: 1px;
	padding: 0;
	border: 0;
	white-space: nowrap;
	clip-path: inset(50%);
}

@media (max-width: 700px) {
	.header-inner,
	.footer-inner {
		align-items: flex-start;
		flex-direction: column;
	}

	.menu-toggle {
		display: inline-block;
	}

	.site-navigation[hidden] {
		display: none;
	}

	.site-navigation ul {
		align-items: flex-start;
		flex-direction: column;
		padding-top: 0.75rem;
	}

	.cookie-banner {
		align-items: flex-start;
		flex-direction: column;
	}
}
