/* =========================
   RESET
========================= */

*,
*::before,
*::after {
	box-sizing: border-box;
}

/* =========================
   GLOBAL
========================= */

body {
	margin: 0;

	padding: 0;

	font-family:
		'Inter',
		'Segoe UI',
		sans-serif;

	background: #f4f4f5;

	color: #1f2937;

	overflow-x: hidden;

	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img {
	display: block;
	max-width: 100%;
}

/* =========================
   CONTENU
========================= */

.contenu {
	width: 100%;

	padding: 50px 0;
}

/* =========================
   SECTION
========================= */

.recettes-contenu {
	width: 100%;

	max-width: 1150px;

	margin: 0 auto;

	padding: 0 20px;
}

/* =========================
   INTRO
========================= */

.intro {
	margin-bottom: 40px;
}

.intro h1 {
	font-size: clamp(28px, 5vw, 30px);

	font-weight: 600;

	line-height: 1.2;

	margin-bottom: 8px;

	word-break: break-word;
}

.intro p {
	font-size: 15px;

	line-height: 1.6;

	color: #6b7280;
}

/* =========================
   GRID
========================= */

.liste {
	display: grid;

	grid-template-columns:
		repeat(
			auto-fill,
			minmax(280px, 1fr)
		);

	gap: 24px;

	width: 100%;
}

/* =========================
   CARTE
========================= */

.carte {
	display: flex;

	flex-direction: column;

	height: 100%;

	text-decoration: none;

	color: inherit;

	background: #fff;

	border-radius: 16px;

	overflow: hidden;

	box-shadow:
		0 8px 24px rgba(0, 0, 0, 0.05);

	transition:
		transform 0.25s,
		box-shadow 0.25s;
}

.carte:hover {
	transform: translateY(-6px);

	box-shadow:
		0 18px 40px rgba(0, 0, 0, 0.08);
}

/* =========================
   IMAGE
========================= */

.carte img {
	width: 100%;

	height: 200px;

	object-fit: cover;

	object-position: center;

	background: #e5e7eb;
}

.pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	margin-top: 32px;
}

.page-link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 44px;
	padding: 0 18px;
	border-radius: 999px;
	background: #d88fa4;
	color: #fff;
	text-decoration: none;
	font-weight: 700;
	transition: transform 0.2s, background-color 0.2s;
}

.page-link:hover,
.page-link:focus {
	background: #c76f8c;
	transform: translateY(-1px);
}

.page-info {
	color: #4b5563;
	font-weight: 600;
}

/* =========================
   CONTENU CARTE
========================= */

.carte-contenu {
	display: flex;

	flex-direction: column;

	flex: 1;

	padding: 16px;
}

.carte h3 {
	font-size: 16px;

	font-weight: 600;

	line-height: 1.4;

	margin-bottom: 12px;

	word-break: break-word;
}

/* =========================
   LIGNE BAS
========================= */

.ligne-bas {
	display: flex;

	align-items: center;

	justify-content: space-between;

	gap: 12px;

	margin-top: auto;
}

/* =========================
   AUTEUR
========================= */

.auteur {
	display: flex;

	align-items: center;

	gap: 8px;

	min-width: 0;

	font-size: 13px;

	color: #6b7280;
}

.auteur span:last-child,
.auteur {
	word-break: break-word;
}

/* =========================
   AVATAR
========================= */

.avatar {
	width: 28px;

	height: 28px;

	min-width: 28px;

	border-radius: 50%;

	background: #f3c2cd;

	color: #a85572;

	display: flex;

	align-items: center;

	justify-content: center;

	font-size: 11px;

	font-weight: 600;

	flex-shrink: 0;
}

/* =========================
   META
========================= */

.meta {
	display: flex;

	align-items: center;

	flex-wrap: wrap;

	justify-content: flex-end;

	gap: 10px;
}

/* =========================
   BADGE
========================= */

.badge {
	display: inline-flex;

	align-items: center;

	justify-content: center;

	padding: 4px 10px;

	border-radius: 999px;

	background: #d1fae5;

	color: #065f46;

	font-size: 12px;

	font-weight: 500;

	line-height: 1.4;

	text-align: center;

	word-break: break-word;
}

/* =========================
   TEMPS
========================= */

.temps {
	font-size: 12px;

	color: #6b7280;

	white-space: nowrap;
}

/* =========================
   VIDE
========================= */

.liste p {
	grid-column: 1 / -1;

	text-align: center;

	color: #6b7280;

	padding: 60px 0;

	font-size: 14px;

	line-height: 1.6;
}

/* =========================
   TABLET
========================= */

@media screen and (max-width: 900px) {

	.contenu {
		padding: 40px 0;
	}

	.recettes-contenu {
		padding: 0 16px;
	}

	.liste {
		grid-template-columns:
			repeat(
				auto-fill,
				minmax(240px, 1fr)
			);

		gap: 20px;
	}

	.carte img {
		height: 180px;
	}
}

/* =========================
   MOBILE
========================= */

@media screen and (max-width: 768px) {

	.contenu {
		padding: 28px 0;
	}

	.recettes-contenu {
		padding: 0 14px;
	}

	.intro {
		margin-bottom: 28px;
	}

	.intro p {
		font-size: 14px;
	}

	.liste {
		grid-template-columns: 1fr;

		gap: 18px;
	}

	.carte {
		border-radius: 14px;
	}

	.carte img {
		height: 220px;
	}

	.carte-contenu {
		padding: 14px;
	}

	.ligne-bas {
		flex-direction: column;

		align-items: flex-start;
	}

	.meta {
		width: 100%;

		justify-content: flex-start;
	}
}

/* =========================
   PETITS MOBILES
========================= */

@media screen and (max-width: 480px) {

	.recettes-contenu {
		padding: 0 10px;
	}

	.intro h1 {
		font-size: 24px;
	}

	.intro p {
		font-size: 13px;
	}

	.carte img {
		height: 190px;
	}

	.carte h3 {
		font-size: 15px;
	}

	.auteur {
		font-size: 12px;
	}

	.badge,
	.temps {
		font-size: 11px;
	}

	.liste p {
		padding: 40px 0;
	}
}

/* =========================
   TRES PETITS ECRANS
========================= */

@media screen and (max-width: 340px) {

	.recettes-contenu {
		padding: 0 6px;
	}

	.carte img {
		height: 160px;
	}

	.carte-contenu {
		padding: 12px;
	}
}