/* Fiche recette, piste C « Pas à pas » (Coq, 15/10/2026). Tout est sous body.rfc : rien ne touche aux autres pages. */
body.rfc {
	--rfc-fond: #fbf7f3;
	--rfc-encre: #191919;
	--rfc-texte: #2b2421;
	--rfc-doux: #5b4d47;
	--rfc-brun: #4b3028;
	--rfc-caramel: #8a5f48;
	--rfc-sable: #c99b7c;
	--rfc-rose: #fbf2ec;
	--rfc-peche: #f6e0cc;
	--rfc-filet: #f0e3d8;
	--rfc-serif: "Jomolhari", Georgia, "Times New Roman", serif;
	--rfc-sans: "Poppins", "Segoe UI", system-ui, sans-serif;
}
body.rfc #mainWoo { background: var(--rfc-fond); }
/* Le thème met la recette dans une grille à deux colonnes (la seconde pour une publicité, vide). */
body.rfc .single-content .grid.grid-single { display: block !important; }
body.rfc .single-content .grid_single_ad { display: none !important; }
body.rfc .single-content article.single-recette { width: 100%; max-width: none; margin: 0; padding: 0; }

.rfc-page { font-family: var(--rfc-sans); color: var(--rfc-texte); font-size: 15px; line-height: 1.55; padding-bottom: 24px; }
.rfc-page *, .rfc-page *::before, .rfc-page *::after { box-sizing: border-box; }
.rfc-page p { margin: 0; }
.rfc-page ul, .rfc-page ol { list-style: none; margin: 0; padding: 0; }
.rfc-page li { margin: 0; padding: 0; }
.rfc-page li::before, .rfc-page li::marker { content: none; display: none; }
.rfc-page a { color: var(--rfc-brun); }
.rfc-page :focus-visible { outline: 2px solid var(--rfc-brun); outline-offset: 2px; }
/* Sur les deux fonds bruns, un contour brun serait invisible. */
.rfc-cuisine :focus-visible, .rfc-ebook :focus-visible { outline-color: #fff; }

.rfc-etiq { display: block; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--rfc-caramel); }
.rfc-etiq--clair { color: var(--rfc-peche); }
.rfc-etiq--peche { color: var(--rfc-peche); }
.rfc-page .rfc-h1 { font-family: var(--rfc-serif); font-weight: 400; color: #fff; font-size: 29px; line-height: 1.12; margin: 6px 0 0; text-transform: none; letter-spacing: 0; }
.rfc-page .rfc-h2 { font-family: var(--rfc-serif); font-weight: 400; color: var(--rfc-encre); font-size: 26px; line-height: 1.15; margin: 0; text-transform: none; letter-spacing: 0; }

/* ---------- Photo titrée ---------- */
.rfc-heros { position: relative; margin-top: 8px; border-radius: 26px; overflow: hidden; height: 380px; background: #e9d9cc; }
.rfc-heros__image { display: block; width: 100%; height: 100% !important; object-fit: cover; }
.rfc-voile { position: absolute; inset: auto 0 0 0; padding: 70px 18px 18px; background: linear-gradient(180deg, rgba(30, 18, 14, 0) 0%, rgba(30, 18, 14, .84) 70%); }
.rfc-voile__titre { min-width: 0; flex: 1 1 420px; }

.rfc-chiffres { display: flex; margin: 12px 0 0; background: #fff; border-radius: 20px; padding: 12px 6px; text-align: center; }
.rfc-chiffres > div { flex: 1; min-width: 0; }
.rfc-chiffres > div + div { border-left: 1px solid var(--rfc-filet); }
.rfc-chiffres dt { order: 2; font-size: 12px; font-weight: 400; color: var(--rfc-doux); margin: 0; }
.rfc-chiffres dd { font-size: 15px; font-weight: 600; color: var(--rfc-encre); margin: 0; font-variant-numeric: tabular-nums; }
.rfc-chiffres > div { display: flex; flex-direction: column; }
.rfc-chiffres dd { order: 1; }
/* Temps total : une ligne entière sous les trois cases, « temps total · 1h15 (+3h de repos) ». */
.rfc-chiffres { flex-wrap: wrap; row-gap: 10px; }
.rfc-chiffres > .rfc-total { flex: 1 0 100%; flex-direction: row; justify-content: center; align-items: baseline; gap: 8px; border-left: 0 !important; border-top: 1px solid var(--rfc-filet); padding: 10px 8px 0; }
.rfc-chiffres > .rfc-total dt { order: 0; }
.rfc-chiffres > .rfc-total dd { order: 1; font-size: 14px; }
.rfc-page .rfc-note-ingr { margin-top: 8px; font-size: 13px; line-height: 1.5; color: var(--rfc-texte); }
.rfc-note-ingr a { color: var(--rfc-brun); text-decoration: underline; text-underline-offset: 2px; }

.rfc-intro { margin-top: 18px; font-size: 15px; color: var(--rfc-texte); }
.rfc-intro p + p { margin-top: 10px; }
.rfc-intro .rfc-auteur { margin-top: 10px; font-size: 13px; color: var(--rfc-doux); }

/* ---------- Corps ---------- */
.rfc-grille { display: flex; flex-direction: column; gap: 22px; margin-top: 22px; }
.rfc-ingredients, .rfc-etapes, .rfc-conservation { scroll-margin-top: 90px; }

.rfc-cuisine { display: flex; align-items: center; gap: 12px; background: var(--rfc-brun); color: #fff; border-radius: 20px; padding: 14px 16px; }
.rfc-cuisine > div { flex: 1; min-width: 0; }
.rfc-cuisine b { display: block; font-size: 15px; font-weight: 600; color: #fff; }
.rfc-cuisine small { display: block; font-size: 12px; line-height: 1.4; color: var(--rfc-peche); }
.rfc-page .rfc-interrupteur { flex: none; width: 54px; height: 32px; min-width: 0; border-radius: 99px; border: 0; padding: 0; background: #7b6258; position: relative; cursor: pointer; box-shadow: none; }
.rfc-page .rfc-interrupteur::after { content: ""; position: absolute; left: 4px; top: 4px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left .2s; }
.rfc-page .rfc-interrupteur[aria-checked="true"] { background: var(--rfc-sable); }
.rfc-page .rfc-interrupteur[aria-checked="true"]::after { left: 26px; }

.rfc-titre-bloc { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
.rfc-titre-bloc span { font-size: 13px; font-weight: 600; color: var(--rfc-brun); font-variant-numeric: tabular-nums; }
.rfc-page .rfc-sous-titre { font-family: var(--rfc-sans); font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--rfc-brun); margin: 16px 0 0; }

.rfc-tuiles { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px !important; }
.rfc-page .rfc-tuile { background: #fff; border-radius: 18px; padding: 12px 14px; min-width: 0; }
.rfc-tuile b { display: block; font-family: var(--rfc-serif); font-weight: 400; font-size: 24px; line-height: 1.1; color: var(--rfc-caramel); overflow-wrap: anywhere; }
.rfc-tuile span { display: block; font-size: 13px; line-height: 1.4; margin-top: 2px; color: var(--rfc-texte); overflow-wrap: anywhere; }
.rfc-page .rfc-aussi { margin-top: 8px; font-size: 13px; line-height: 1.5; }

.rfc-page .rfc-telecharger { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 12px; padding: 12px 18px; border: 1.5px solid var(--rfc-brun); border-radius: 99px; font-size: 14px; font-weight: 600; color: var(--rfc-brun); text-decoration: none; background: transparent; }
.rfc-page .rfc-telecharger:hover { background: var(--rfc-brun); color: #fff; }

.rfc-progres { height: 6px; border-radius: 99px; background: var(--rfc-filet); margin-top: 10px; overflow: hidden; }
.rfc-progres > div { width: 0; height: 6px; border-radius: 99px; background: var(--rfc-sable); transition: width .25s; }
.rfc-page .rfc-astuce-geste { margin-top: 8px; font-size: 12px; color: var(--rfc-doux); }

.rfc-cartes { display: flex !important; flex-direction: column; gap: 8px; margin-top: 12px !important; }
/* La carte est un <li> (cible de l'ancre #etape-N du balisage Recipe) ; seul le rond est un bouton, pour que
   les liens du texte restent des liens. Toucher la carte coche aussi (recette.js). */
.rfc-page .rfc-carte { display: block; background: #fff; border-radius: 18px; padding: 14px 16px; border: 1.5px solid transparent; cursor: pointer; scroll-margin-top: 90px; }
.rfc-page .rfc-carte.est-courante, .rfc-page .rfc-carte:target { border-color: var(--rfc-sable); }
.rfc-carte__tete { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.rfc-carte__texte { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; }
.rfc-carte__texte a { color: var(--rfc-brun); text-decoration: underline; text-underline-offset: 2px; }
.rfc-carte.est-courante .rfc-carte__texte { font-size: 16px; }
.rfc-carte.est-faite .rfc-carte__texte { color: var(--rfc-doux); text-decoration: line-through; text-decoration-color: rgba(91, 77, 71, .45); }
.rfc-page .rfc-rond { flex: none; width: 30px; height: 30px; min-width: 0; min-height: 0; padding: 0; margin: -2px; border-radius: 50%; border: 1.6px solid var(--rfc-sable); background: transparent; display: grid; place-items: center; color: #fff; cursor: pointer; box-shadow: none; }
.rfc-rond svg { width: 16px; height: 16px; opacity: 0; }
.rfc-carte.est-faite .rfc-rond { background: var(--rfc-sable); }
.rfc-carte.est-faite .rfc-rond svg { opacity: 1; }
.rfc-page .rfc-carte-note { font-size: 14px; line-height: 1.5; color: var(--rfc-texte); background: var(--rfc-rose); border-radius: 14px; padding: 10px 14px; }
.rfc-pastilles { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.rfc-pastille { display: inline-block; padding: 5px 10px; border-radius: 99px; background: var(--rfc-rose); font-size: 12px; font-weight: 600; color: var(--rfc-brun); }
.rfc-page .rfc-carte-titre { margin-top: 10px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--rfc-brun); }
.rfc-page .rfc-carte-titre:first-child { margin-top: 0; }

.rfc-secret { margin-top: 14px; background: var(--rfc-rose); border-radius: 18px; padding: 14px 16px; }
.rfc-secret p { margin-top: 4px !important; font-size: 15px; color: var(--rfc-brun); }
.rfc-conservation { margin-top: 10px; background: #fff; border-radius: 18px; padding: 14px 16px; }
.rfc-conservation p { margin-top: 4px !important; font-size: 14px; }
.rfc-page .rfc-conservation ul, .rfc-page .rfc-conservation ol { list-style: disc; margin: 6px 0 0; padding-left: 20px; font-size: 14px; }
.rfc-page .rfc-conservation li::marker { content: normal; }
.rfc-conservation a, .rfc-tuile span a, .rfc-aussi a { color: var(--rfc-brun); text-decoration: underline; text-underline-offset: 2px; }
/* Les blocs éditoriaux du thème (« Et pour les plus curieux », FAQ) suivent la fiche : un peu d'air. */
body.rfc .single-recette > .rfc-page + * { margin-top: 32px; }
.rfc-etapes > section, .rfc-etapes > .block-video-recette-roxane { margin-top: 18px; }

/* ---------- Encarts de la piste A ---------- */
.rfc-ebook { background: var(--rfc-brun); border-radius: 22px; padding: 18px; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: #fff; }
.rfc-ebook img { width: 140px !important; height: auto !important; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; flex: none; }
.rfc-ebook > div { flex: 1 1 180px; min-width: 0; }
.rfc-page .rfc-ebook__titre { font-family: var(--rfc-serif); color: #fff; font-size: 20px; line-height: 1.2; margin-top: 4px; }
.rfc-page .rfc-ebook__texte { margin-top: 6px; font-size: 13px; line-height: 1.5; color: #f4ece6; }
.rfc-page .rfc-ebook a { display: inline-block; margin-top: 12px; background: #fff; color: var(--rfc-brun); font-weight: 600; font-size: 14px; padding: 10px 16px; border-radius: 99px; text-decoration: none; }

.rfc-bientot { border: 1.5px dashed var(--rfc-sable); border-radius: 22px; padding: 18px; display: flex; gap: 14px; align-items: center; background: #fff; }
.rfc-bientot img { flex: none; width: 64px !important; height: 80px !important; object-fit: contain; }
.rfc-bientot > div { min-width: 0; }
.rfc-page .rfc-bientot__titre { font-family: var(--rfc-serif); font-size: 18px; line-height: 1.2; margin-top: 4px; color: var(--rfc-encre); }
.rfc-page .rfc-prevenir { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--rfc-brun); }

/* ---------- Barre d'onglets (téléphone) ---------- */
.rfc-onglets { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; background: #fff; border-top: 1px solid var(--rfc-filet); padding: 6px 6px calc(10px + env(safe-area-inset-bottom, 0px)); font-family: var(--rfc-sans); }
.rfc-onglets a { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; line-height: 1.2; color: var(--rfc-texte); text-decoration: none; padding: 6px 0; }
.rfc-onglets svg { color: var(--rfc-brun); }

@media (max-width: 899px) {
	.rfc-chiffres--ordi { display: none; }
	/* Photo un peu moins haute quand l'écran est court : titre ET chiffres restent visibles en arrivant. */
	.rfc-heros { height: clamp(300px, 52svh, 380px); }
	/* La barre d'onglets ne doit pas cacher le pied de page. Roxxie (46 px, à 20 px du bas et de la
	   droite) garde sa place : elle se pose dans la barre, dont la droite lui est laissée libre.
	   La remonter au-dessus de la barre la posait sur les chiffres de la recette. */
	body.rfc { padding-bottom: calc(68px + env(safe-area-inset-bottom, 0px)); }
	/* Téléphone : mode cuisine d'abord, puis ingrédients, ebook, étapes (canevas C). Le code suit l'ordre ordinateur. */
	.rfc-cuisine { order: 1; } .rfc-ingredients { order: 2; } .rfc-ebook { order: 3; } .rfc-etapes { order: 4; } .rfc-bientot { order: 5; }
	.rfc-onglets { padding-right: 76px; }
	/* Fil d'Ariane du thème sur une seule ligne (la photo redit déjà « Recettes › rubrique »). */
	body.rfc .single-breadcrumb .breadcrumb-list { display: flex !important; flex-wrap: nowrap !important; min-width: 0; overflow: hidden; white-space: nowrap; }
	body.rfc .single-breadcrumb .breadcrumb-list_item { flex: none; }
	body.rfc .single-breadcrumb .breadcrumb-list_item:last-child { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
}
/* Téléphone : le thème décale déjà « main » sous l'en-tête ET lui ajoute la hauteur de l'en-tête en
   marge ; on retire ce doublon. Dès 768 px, cette marge est la seule compensation de l'en-tête fixe. */
@media (max-width: 767px) {
	body.rfc #mainWoo { padding-top: 0 !important; }
}

@media (min-width: 900px) {
	.rfc-page { padding-bottom: 40px; }
	.rfc-onglets { display: none; }
	.rfc-chiffres--tel { display: none; }
	.rfc-heros { height: 440px; border-radius: 30px; margin-top: 16px; }
	.rfc-voile { padding: 120px 40px 34px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
	.rfc-page .rfc-h1 { font-size: 46px; }
	.rfc-voile .rfc-chiffres { margin: 0; flex: none; width: 340px; }
	.rfc-intro { max-width: 780px; font-size: 16px; }
	.rfc-ingredients, .rfc-etapes, .rfc-conservation, .rfc-page .rfc-carte { scroll-margin-top: 130px; }
	.rfc-grille {
		display: grid;
		grid-template-columns: minmax(0, 380px) minmax(0, 1fr) minmax(0, 300px);
		grid-template-areas:
			"ingr cuisine cuisine"
			"ingr etapes etapes"
			"ebook ebook ebook";
		gap: 22px 28px;
		align-items: start;
		margin-top: 28px;
	}
	.rfc-cuisine { grid-area: cuisine; }
	.rfc-ingredients { grid-area: ingr; }
	.rfc-etapes { grid-area: etapes; }
	.rfc-ebook { grid-area: ebook; flex-wrap: nowrap; padding: 22px; gap: 22px; }
	.rfc-ebook img { width: 220px !important; }
	.rfc-bientot { grid-area: bientot; align-self: stretch; }
	.rfc-carte__texte { font-size: 16px; }
	.rfc-carte.est-courante .rfc-carte__texte { font-size: 18px; }
}
