/*
 * Modèle de page « Recette » — thème enfant GeneratePress
 * Chargé uniquement par template-recette.php
 */

.rc-page {
	--rc-bg: #fbf6ee;
	--rc-surface: #ffffff;
	--rc-warm: #f6ecdc;
	--rc-border: #e8dcc8;
	--rc-text: #2b1d14;
	--rc-muted: #6d5a4b;
	--rc-primary: #b8461b;
	--rc-primary-dark: #8f3412;
	--rc-accent: #d99a1f;
	--rc-olive: #5b6b32;
	--rc-radius: 18px;
	--rc-serif: Georgia, "Iowan Old Style", "Palatino Linotype", serif;
}

body.rc-template {
	background: #fbf6ee;
}

.rc-page .site-main {
	margin: 0;
}

.rc-article {
	max-width: 1040px;
	margin: 0 auto;
	padding: 24px 20px 56px;
	color: var(--rc-text);
}

/* En-tête ---------------------------------------------------------------- */

.rc-hero {
	display: grid;
	grid-template-columns: 1fr;
	gap: 28px;
	align-items: center;
	padding: 28px 0 8px;
}

@media (min-width: 820px) {
	.rc-hero {
		grid-template-columns: 1.05fr 1fr;
		gap: 48px;
	}
}

.rc-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.rc-badge {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--rc-primary);
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	text-decoration: none;
}

.rc-badge:hover {
	background: var(--rc-primary-dark);
	color: #fff;
}

.rc-title {
	margin: 0 0 14px;
	font-family: var(--rc-serif);
	font-size: clamp(2rem, 4.6vw, 3.1rem);
	line-height: 1.1;
	font-weight: 700;
	color: var(--rc-text);
}

.rc-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	margin: 0 0 16px;
	font-size: 14px;
	color: var(--rc-muted);
}

.rc-lead {
	margin: 0 0 20px;
	font-size: 1.08rem;
	line-height: 1.7;
	color: var(--rc-muted);
}

.rc-print {
	appearance: none;
	border: 1px solid var(--rc-border);
	background: var(--rc-surface);
	color: var(--rc-text);
	padding: 10px 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: border-color 0.15s, color 0.15s;
}

.rc-print:hover,
.rc-print:focus-visible {
	border-color: var(--rc-primary);
	color: var(--rc-primary);
}

.rc-hero__media {
	position: relative;
}

.rc-hero__media::after {
	content: "";
	position: absolute;
	inset: 12px -12px -12px 12px;
	border-radius: var(--rc-radius);
	background: var(--rc-border);
	z-index: 0;
}

.rc-hero__img {
	position: relative;
	z-index: 1;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: var(--rc-radius);
	box-shadow: 0 18px 40px -18px rgba(43, 29, 20, 0.45);
}

/* Infos pratiques -------------------------------------------------------- */

.rc-tiles {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
	margin: 36px 0 0;
	padding: 0;
	list-style: none;
}

@media (min-width: 720px) {
	.rc-tiles {
		grid-template-columns: repeat(4, 1fr);
	}
}

.rc-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	margin: 0;
	padding: 18px 12px;
	text-align: center;
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: 14px;
}

.rc-tile__label {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--rc-muted);
}

.rc-tile__value {
	font-family: var(--rc-serif);
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--rc-primary);
}

/* Sommaire --------------------------------------------------------------- */

.rc-toc {
	margin: 32px 0 0;
	padding: 20px 24px;
	background: var(--rc-warm);
	border-radius: var(--rc-radius);
}

.rc-toc__title {
	margin: 0 0 12px;
	font-family: var(--rc-serif);
	font-size: 1.15rem;
	font-weight: 700;
}

.rc-toc ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.rc-toc li {
	margin: 0;
}

.rc-toc a {
	display: inline-block;
	padding: 7px 14px;
	border-radius: 999px;
	border: 1px solid var(--rc-border);
	background: var(--rc-surface);
	color: var(--rc-muted);
	font-size: 13px;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.15s, border-color 0.15s;
}

.rc-toc a:hover,
.rc-toc a:focus-visible {
	color: var(--rc-primary);
	border-color: var(--rc-primary);
}

/* Contenu ---------------------------------------------------------------- */

.rc-content {
	max-width: 760px;
	margin: 40px auto 0;
	font-size: 1.05rem;
	line-height: 1.85;
	color: var(--rc-text);
}

.rc-content > :first-child {
	margin-top: 0;
}

.rc-page .rc-content h2 {
	text-transform: none;
	letter-spacing: normal;
	font-weight: 700;
	position: relative;
	margin: 2.4em 0 0.8em;
	padding-bottom: 10px;
	font-family: var(--rc-serif);
	font-size: clamp(1.5rem, 3vw, 1.9rem);
	line-height: 1.2;
	color: var(--rc-text);
	border-bottom: 2px solid var(--rc-border);
	scroll-margin-top: 90px;
}

.rc-content h2::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -2px;
	width: 64px;
	height: 2px;
	background: var(--rc-primary);
}

.rc-content h3 {
	margin: 1.8em 0 0.5em;
	font-family: var(--rc-serif);
	font-size: 1.25rem;
	color: var(--rc-primary-dark);
}

.rc-content a {
	color: var(--rc-primary);
	text-decoration-thickness: 1px;
	text-underline-offset: 3px;
}

.rc-content img {
	max-width: 100%;
	height: auto;
	border-radius: 14px;
}

/* Sommaire automatique d'une extension (Easy Table of Contents) : masqué,
   le modèle a son propre sommaire. */
.rc-content #ez-toc-container,
.rc-content .ez-toc-v2_0_17,
.rc-content div[id^="ez-toc-container"] {
	display: none !important;
}

/* Ingrédients : liste à puces ------------------------------------------- */

.rc-content ul {
	margin: 0 0 1.4em;
	padding: 18px 22px 18px 22px;
	list-style: none;
	background: var(--rc-surface);
	border: 1px solid var(--rc-border);
	border-radius: 14px;
}

.rc-content ul li {
	position: relative;
	margin: 0;
	padding: 7px 0 7px 26px;
	line-height: 1.6;
}

.rc-content ul li + li {
	border-top: 1px dashed var(--rc-border);
}

.rc-content ul li::before {
	content: "";
	position: absolute;
	left: 4px;
	top: 1.05em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--rc-accent);
}

/* Étapes : liste numérotée ---------------------------------------------- */

.rc-content ol {
	counter-reset: rc-step;
	margin: 0 0 1.6em;
	padding: 0;
	list-style: none;
}

.rc-content ol li {
	position: relative;
	counter-increment: rc-step;
	margin: 0 0 1.2em;
	padding: 4px 0 0 56px;
	min-height: 40px;
}

.rc-content ol li::before {
	content: counter(rc-step);
	position: absolute;
	left: 0;
	top: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: var(--rc-primary);
	color: #fff;
	font-size: 15px;
	font-weight: 700;
}

/* Astuces / citations ---------------------------------------------------- */

.rc-content blockquote {
	margin: 1.8em 0;
	padding: 18px 22px;
	background: var(--rc-warm);
	border-left: 4px solid var(--rc-olive);
	border-radius: 0 14px 14px 0;
	font-style: normal;
	color: var(--rc-text);
}

.rc-content blockquote p {
	margin: 0;
}

.rc-content blockquote p + p {
	margin-top: 0.8em;
}

/* Impression ------------------------------------------------------------- */

@media print {
	.rc-print,
	.rc-toc,
	.site-header,
	.site-footer,
	.main-navigation {
		display: none !important;
	}

	body.rc-template {
		background: #fff;
	}

	.rc-hero__media::after {
		display: none;
	}

	.rc-hero__img {
		box-shadow: none;
	}
}
