/* Recettes Frontend Styles */

/* ===== Base ===== */
.site-content .ast-container{
	max-width: unset;
	padding:0;
}
.recette-single,
.recette-archive {
	color: inherit;
	line-height: 1.7;
	width:100%;
}
.recette-single h1,
.recette-archive h1 {
	font-size:3.25rem;
}
.recette-single h1,
.recette-single h2,
.recette-single h3,
.recette-archive h1,
.recette-card h3 {
	color: inherit;
	line-height: 1.3;
}

/* ===== Hero ===== */
.recette-hero, .recette-archive-header  {
	position: relative;
	min-height: 250px;
	background-size: cover;
	background-position: center;
	background-color: var(--ast-global-color-6);
	display: flex;
	align-items: center;
	justify-content:center;
}

.recette-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 60%, transparent 100%);
	display: flex;
	align-items: flex-end;
}

.recette-hero-content {
	width: 100%;
	max-width: 960px;
	margin: 0 auto;
	padding: 40px 24px;
}

.recette-hero-content h1 {
	color: #fff;
	margin: 0 0 12px;
	text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.recette-hero-categories {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.recette-hero-badge {
	display: inline-block;
	padding: 4px 14px;
	background: rgba(255, 255, 255, 0.2);
	color: #fff;
	border: 1px solid rgba(255, 255, 255, 0.4);
	border-radius: 20px;
	font-size: 13px;
}

/* ===== Content wrapper ===== */
.recette-content-wrapper {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 24px;
}

/* ===== Sections ===== */
.recette-section {
	padding: 40px 0;
}
.recette-section.recette-ingredients{
	display:grid;
	grid-template-columns: 2fr 1fr;
}

.recette-section + .recette-section {
	border-top: 1px solid #eee;
}

.recette-section h2 {
	font-size: 28px;
	margin: 0 0 20px;
}

.recette-section h3 {
	font-size: 20px;
	margin: 24px 0 12px;
}

/* ===== Accroche ===== */
.recette-accroche p {
	font-style: italic;
	font-size: 18px;
	border-left: 4px solid #008e42;
	padding-left: 20px;
	margin: 0;
	color: #555;
}

/* ===== Ingredients ===== */
.recette-ingredients ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.recette-ingredients ul li {
	padding: 8px 0 8px 24px;
	position: relative;
	border-bottom: 1px solid #f0f0f0;
}

.recette-ingredients ul li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 8px;
	height: 8px;
	background: #008e42;
	border-radius: 50%;
}

/* ===== Photo secondaire ===== */
.recette-photo-secondaire {
	text-align: center;
	padding-left: 2em;
}

.recette-photo-secondaire img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

.recette-photo-placeholder {
	width: 100%;
	min-height: 200px;
	background: #f5f5f5;
	border-radius: 8px;
}

/* ===== Temps de preparation ===== */
.recette-temps {
	text-align: center;
}

.recette-temps p {
	display: inline-block;
	background: #f8f8f8;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	padding: 16px 32px;
	font-size: 16px;
	font-weight: 500;
	color: #333;
	margin: 0;
}

/* ===== Preparation ===== */
.recette-preparation-intro {
	font-style: italic;
	color: #555;
	margin-bottom: 20px;
}

.recette-etape-temps {
	color: #888;
	font-size: 14px;
	margin: 4px 0 12px;
}

.recette-preparation ol {
	list-style: none;
	padding: 0;
	margin: 0 0 16px;
	counter-reset: etape-counter;
}

.recette-preparation ol li {
	padding: 8px 0 8px 36px;
	position: relative;
	counter-increment: etape-counter;
}

.recette-preparation ol li::before {
	content: counter(etape-counter);
	position: absolute;
	left: 0;
	top: 6px;
	width: 24px;
	height: 24px;
	background: #008e42;
	color: #fff;
	border-radius: 50%;
	font-size: 13px;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ===== Astuces ===== */
.recette-astuces {
	background: #f9fdf9;
	margin-left: -24px;
	margin-right: -24px;
	padding-left: 24px;
	padding-right: 24px;
	border-top: 3px solid #008e42;
}

.recette-astuces-intro {
	font-style: italic;
	color: #555;
	margin-bottom: 16px;
}

.recette-astuces ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.recette-astuces ul li {
	padding: 8px 0 8px 28px;
	position: relative;
}

.recette-astuces ul li::before {
	content: '\2714';
	position: absolute;
	left: 0;
	color: #008e42;
	font-weight: 700;
}

/* ===== Cards (archive) ===== */
.recette-archive-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 24px;
	max-width:1200px;
	margin:0 auto;
	padding: 2em 0;
}

.recette-card {
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: block;
}

.recette-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.recette-card-thumb img {
	width: 100%;
	height: 200px;
	object-fit: cover;
	display: block;
}

.recette-card-placeholder {
	width: 100%;
	height: 200px;
	background: #f0f0f0;
}

.recette-card-body {
	padding: 16px;
}

.recette-card-body h3 {
	font-size: 17px;
	margin: 0 0 8px;
}

.recette-card-categories {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
}

.recette-card-badge {
	display: inline-block;
	padding: 2px 10px;
	background: #e8f5ee;
	color: #008e42;
	border-radius: 12px;
	font-size: 12px;
	font-weight: 500;
}

/* ===== Suggestions ===== */
.recette-suggestions-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 24px;
}

.recette-suggestion-card {
	text-align: center;
	display: flex;
	flex-direction: column;
	justify-content:center;
	align-items:center;
}

.recette-suggestion-thumb img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 8px;
	display: block;
	padding:1em;
}

.recette-suggestion-card h3 {
	font-size: 17px;
	margin: 5px 0 16px;
}

.recette-suggestion-btn {
	display: inline-block;
	background: #008e42;
	color: #fff;
	padding: 10px 24px;
	border-radius: 24px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background 0.15s;
	max-width:200px;
	margin-bottom:1em;
}

.recette-suggestion-btn:hover {
	background: #006e33;
	color: #fff;
}

/* ===== Archive ===== */

.recette-archive-header {
	text-align: center;
	margin-bottom: 40px;
}

.recette-archive-pagination {
	margin-top: 40px;
	text-align: center;
}

.recette-archive-pagination .nav-links {
	display: flex;
	justify-content: center;
	gap: 6px;
	flex-wrap: wrap;
}

.recette-archive-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	background: #fff;
	border: 1px solid #ddd;
	border-radius: 4px;
	text-decoration: none;
	color: #333;
	font-size: 14px;
	transition: background 0.15s, color 0.15s;
}

.recette-archive-pagination .page-numbers:hover {
	background: #008e42;
	color: #fff;
	border-color: #008e42;
}

.recette-archive-pagination .page-numbers.current {
	background: #008e42;
	color: #fff;
	border-color: #008e42;
	font-weight: 600;
}

.recette-archive-empty {
	text-align: center;
	padding: 80px 20px;
	color: #999;
	font-size: 16px;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
	.recette-hero {
		min-height: 300px;
	}

	.recette-hero-content h1 {
		font-size: 28px;
	}

	.recette-section h2 {
		font-size: 22px;
	}

	.recette-accroche p {
		font-size: 16px;
	}

	.recette-suggestions-grid {
		grid-template-columns: 1fr;
	}

	.recette-archive-grid {
		grid-template-columns: 1fr;
	}

	.recette-archive-header h1 {
		font-size: 28px;
	}

	.recette-astuces {
		margin-left: -16px;
		margin-right: -16px;
		padding-left: 16px;
		padding-right: 16px;
	}
}
