/* ==========================================================================
   Recette Builder - styles de la page recette
   Structure : Image+titre / Calculateur nutritionnel / Preparation
   ========================================================================== */

.recette-page-wrapper {
	max-width: 900px;
	margin: 0 auto;
	padding: 0 20px 60px;
}

/* --------------------------------------------------------------------
   1. Image + titre en overlay
   -------------------------------------------------------------------- */

/* Astuce "full-bleed" : la section image sort de la colonne de contenu
   (souvent limitee en largeur par le theme) pour occuper toute la largeur
   de l'ecran, quel que soit le theme utilise. */
.recette-hero {
	position: relative;
	width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
	min-height: 55vh;
	background-color: #2b2b2b;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}

.recette-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.65) 0%,
		rgba(0, 0, 0, 0.25) 45%,
		rgba(0, 0, 0, 0.05) 100%
	);
}

.recette-hero-title {
	position: relative;
	z-index: 2;
	color: #ffffff;
	text-align: center;
	font-size: clamp(1.8rem, 4.5vw, 3.2rem);
	font-weight: 700;
	line-height: 1.2;
	letter-spacing: 0.3px;
	margin: 0;
	padding: 30px 20px 40px;
	text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
	max-width: 900px;
}

/* --------------------------------------------------------------------
   2. Calculateur nutritionnel
   -------------------------------------------------------------------- */
.recette-nutrition {
	margin: 40px 0;
	padding: 25px;
	background: #f9f8f6;
	border: 1px solid #ece9e4;
	border-radius: 12px;
}

/* --------------------------------------------------------------------
   3. Preparation
   -------------------------------------------------------------------- */
.recette-preparation {
	margin: 40px 0 0;
}

.recette-section-title {
	font-size: clamp(1.3rem, 2.5vw, 1.8rem);
	font-weight: 700;
	margin: 0 0 20px;
	padding-bottom: 10px;
	border-bottom: 2px solid #eee;
}

.recette-preparation-content {
	font-size: 1.05rem;
	line-height: 1.75;
	color: #2c2c2c;
}

.recette-preparation-content p {
	margin: 0 0 1.2em;
}

/* --------------------------------------------------------------------
   Nettoyage : on masque toute sidebar/widgets eventuellement injectes
   automatiquement par certains themes sur les pages de type CPT.
   -------------------------------------------------------------------- */
body.recette-builder-page #secondary,
body.recette-builder-page .sidebar,
body.recette-builder-page .widget-area {
	display: none !important;
}

body.recette-builder-page #primary,
body.recette-builder-page .site-main,
body.recette-builder-page .content-area {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
}

/* --------------------------------------------------------------------
   Responsive : tablette
   -------------------------------------------------------------------- */
@media (max-width: 782px) {
	.recette-hero {
		min-height: 45vh;
	}

	.recette-page-wrapper {
		padding: 0 16px 40px;
	}

	.recette-nutrition {
		padding: 18px;
	}
}

/* --------------------------------------------------------------------
   Responsive : mobile
   -------------------------------------------------------------------- */
@media (max-width: 480px) {
	.recette-hero {
		min-height: 38vh;
	}

	.recette-hero-title {
		padding: 20px 16px 28px;
	}

	.recette-preparation-content {
		font-size: 1rem;
	}
}
