/* ==========================================================================
   Cocktail.fr — feuille de style principale
   Charte : noir, blanc, cuivre #CE7C2E, gris #F2F2F2 / #4F4F4F,
   Playfair Display (titres) + Lato (texte).
   ========================================================================== */

@font-face {
	font-family: "Playfair Display";
	font-style: normal;
	font-weight: 400 600;
	font-display: swap;
	src: url("../fonts/playfair-display-400-600-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Playfair Display";
	font-style: italic;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/playfair-display-400-italic.woff2") format("woff2");
}
@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 400;
	font-display: swap;
	src: url("../fonts/lato-400-normal.woff2") format("woff2");
}
@font-face {
	font-family: "Lato";
	font-style: normal;
	font-weight: 700;
	font-display: swap;
	src: url("../fonts/lato-700-normal.woff2") format("woff2");
}

:root {
	--cf-black: #000;
	--cf-ink: #111;
	--cf-text: #333;
	--cf-muted: #555;
	--cf-soft: #8a8a8a;
	--cf-line: #eaeaea;
	--cf-grey: #f2f2f2;
	--cf-grey-dark: #4f4f4f;
	--cf-white: #fff;
	--cf-copper: #ce7c2e;       /* fonds, contours, pastilles */
	--cf-copper-text: #a16024;  /* texte cuivre lisible sur blanc (contraste ≥ 4,5:1) */
	--cf-radius: 10px;
	--cf-wrap: 1170px;
	--cf-gutter: 24px;
	--cf-serif: "Playfair Display", Georgia, "Times New Roman", serif;
	--cf-sans: "Lato", system-ui, -apple-system, "Segoe UI", sans-serif;
	--cf-header-h: 76px;
}

/* --- Base ---------------------------------------------------------------- */

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--cf-header-h) + 16px); }

body {
	margin: 0;
	background: var(--cf-white);
	color: var(--cf-ink);
	font-family: var(--cf-sans);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--cf-copper); outline-offset: 3px; }

h1, h2, h3, h4 { font-family: var(--cf-serif); font-weight: 500; line-height: 1.15; margin: 0; }

button, input, select, textarea { font: inherit; color: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0; padding: 0; margin: -1px;
}
.skip-link:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0;
	position: fixed !important; top: 8px; left: 8px; z-index: 1000;
	padding: 10px 16px; background: var(--cf-white); color: var(--cf-ink); border-radius: var(--cf-radius);
}

/* --- Mise en page ---------------------------------------------------------- */

.cf-wrap { width: 100%; max-width: calc(var(--cf-wrap) + 2 * var(--cf-gutter)); margin-inline: auto; padding-inline: var(--cf-gutter); }
.cf-narrow { max-width: calc(780px + 2 * var(--cf-gutter)); }
.cf-section { padding-block: 48px 0; }
.cf-section--xl { padding-top: 88px; }
.cf-grey { background: var(--cf-grey); margin-top: 88px; }
.cf-grey > .cf-section,
.cf-grey > .cf-wrap { padding-block: 64px; }
.cf-main > :last-child:not(.cf-grey):not(.cf-band) { padding-bottom: 88px; }

.cf-h1 { font-size: clamp(34px, 4.6vw, 52px); letter-spacing: -0.01em; }
.cf-h2 { font-size: clamp(28px, 3.2vw, 36px); }
.cf-h3 { font-size: 24px; }
.cf-muted { color: var(--cf-muted); }
.cf-muted p { margin: 0 0 10px; }
.cf-lead { font-size: 19px; color: var(--cf-ink); }

.cf-kicker {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
	color: var(--cf-copper-text);
}

.cf-section-head {
	display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
	gap: 12px 32px; margin-bottom: 24px;
}
.cf-section-head p { margin: 8px 0 0; max-width: 680px; }
.cf-more { font-weight: 700; color: var(--cf-copper-text); }

/* --- Boutons, pilules ------------------------------------------------------ */

.cf-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 24px;
	border-radius: 999px; border: 2px solid transparent;
	font-family: var(--cf-serif); font-size: 16px;
	cursor: pointer; text-decoration: none !important;
	transition: background-color .2s, color .2s, border-color .2s;
}
.cf-btn--accent { background: var(--cf-copper); color: var(--cf-white); font-family: var(--cf-sans); font-weight: 700; }
.cf-btn--accent:hover { background: var(--cf-copper-text); }
.cf-btn--outline { border-color: var(--cf-ink); }
.cf-btn--outline:hover { background: var(--cf-ink); color: var(--cf-white); }
.cf-btn--light { background: var(--cf-white); color: var(--cf-ink); }
.cf-btn--light:hover { background: var(--cf-grey); }

.cf-pills ul { list-style: none; margin: 0; padding: 0 0 6px; display: flex; flex-wrap: wrap; gap: 10px; }
.cf-pill {
	display: inline-flex; align-items: center; min-height: 42px; padding: 0 18px;
	border: 2px solid var(--cf-copper); border-radius: 999px;
	background: var(--cf-white); color: var(--cf-copper-text);
	font-size: 15px; white-space: nowrap; text-decoration: none !important;
	transition: background-color .2s, color .2s;
}
.cf-pill:hover, .cf-pill.is-active { background: var(--cf-copper); color: var(--cf-white); }

@media (max-width: 720px) {
	/* Sur téléphone, les pilules défilent sur une ligne. */
	.cf-pills ul { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(-1 * var(--cf-gutter)); padding-inline: var(--cf-gutter); }
	.cf-pills ul::-webkit-scrollbar { display: none; }
}

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

.cf-header { position: sticky; top: 0; z-index: 50; background: var(--cf-black); color: var(--cf-white); }
.admin-bar .cf-header { top: var(--wp-admin--admin-bar--height, 32px); }
.cf-header__bar { min-height: var(--cf-header-h); display: flex; align-items: center; gap: 16px 40px; }
.cf-header__logo img, .cf-header__logo .custom-logo { height: 34px; width: auto; }
.cf-header__nav { display: flex; align-items: center; gap: 24px; flex: 1; }

.cf-menu { flex: 1; }
.cf-menu ul { list-style: none; margin: 0; padding: 0; }
.cf-menu > ul { display: flex; flex-wrap: wrap; gap: 4px 32px; }
.cf-menu a {
	font-family: var(--cf-serif); font-size: 15px; font-weight: 500;
	letter-spacing: 0.06em; text-transform: uppercase;
}
.cf-menu .current-menu-item > a,
.cf-menu .current-menu-ancestor > a,
.cf-menu .current_page_parent > a { color: var(--cf-copper); }
.cf-menu li { position: relative; }
.cf-menu .sub-menu {
	position: absolute; top: 100%; left: -16px; min-width: 220px; padding: 12px 0;
	background: var(--cf-black); border-radius: 0 0 var(--cf-radius) var(--cf-radius);
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s;
}
.cf-menu .sub-menu a { display: block; padding: 6px 16px; text-transform: none; letter-spacing: 0; }
.cf-menu li:hover > .sub-menu,
.cf-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }

.cf-search {
	display: flex; align-items: center; gap: 10px;
	height: 42px; padding: 0 16px; border-radius: 999px;
	background: #1c1c1c; color: #bdbdbd; flex: 0 1 300px;
}
.cf-search input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--cf-white); font-size: 14px; }
.cf-search input::placeholder { color: #a8a8a8; }
.cf-search input:focus { outline: none; }
.cf-search:focus-within { outline: 2px solid var(--cf-copper); outline-offset: 2px; }

.cf-search--large {
	flex: none; width: 100%;
	height: auto; padding: 6px 6px 6px 22px; max-width: 540px;
	background: var(--cf-white); color: var(--cf-ink);
	box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 0 0 1px var(--cf-line);
}
.cf-search--large input { color: var(--cf-ink); font-size: 16px; }
.cf-search--large input::placeholder { color: #767676; }

.cf-header__toggle {
	display: none; margin-left: auto; width: 44px; height: 44px;
	border: 0; border-radius: 999px; background: transparent; color: var(--cf-white); cursor: pointer;
	align-items: center; justify-content: center;
}
.cf-header__toggle-close { display: none; }

@media (max-width: 1000px) {
	.cf-header__toggle { display: inline-flex; }
	.cf-header__nav {
		display: none; position: absolute; left: 0; right: 0; top: 100%;
		flex-direction: column; align-items: stretch; gap: 20px;
		padding: 20px var(--cf-gutter) 28px; background: var(--cf-black); border-top: 1px solid #222;
	}
	.cf-header.is-open .cf-header__nav { display: flex; }
	.cf-header.is-open .cf-header__toggle-open { display: none; }
	.cf-header.is-open .cf-header__toggle-close { display: inline; }
	.cf-menu > ul { flex-direction: column; gap: 0; }
	.cf-menu > ul > li > a { display: block; padding: 12px 0; font-size: 18px; border-bottom: 1px solid #222; }
	.cf-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; padding: 4px 0 8px 12px; }
	.cf-search { flex: none; height: 48px; }
}

/* --- Fil d'Ariane (SEOPress ou secours) ------------------------------------ */

.cf-crumbs { background: var(--cf-grey); font-family: var(--cf-serif); font-size: 15px; color: #333; }
.cf-crumbs .cf-wrap { padding-block: 12px; }
.cf-crumbs ol, .cf-crumbs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 8px; }
.cf-crumbs li { display: inline; }
.cf-crumbs .sep { color: var(--cf-soft); }
.cf-crumbs [aria-current], .cf-crumbs li:last-child { color: var(--cf-ink); }

/* --- Cartes --------------------------------------------------------------- */

.cf-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 32px 24px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.cf-grid--3 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 32px; }
.cf-grid--6 { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 28px 20px; }
.cf-grid--6 .cf-card__title { font-size: 18px; }
@media (max-width: 1100px) { .cf-grid--6 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cf-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.cf-grid, .cf-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 14px; }
	.cf-grid--3 { grid-template-columns: 1fr; }
}

.cf-card { position: relative; display: flex; flex-direction: column; gap: 8px; }
.cf-card__link { display: flex; flex-direction: column; gap: 12px; text-decoration: none !important; }
.cf-card__media { display: block; overflow: hidden; border-radius: var(--cf-radius); background: var(--cf-grey); }
.cf-card .cf-img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.cf-card__link:hover .cf-img { transform: scale(1.04); }
.cf-card__link:hover .cf-card__title { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.cf-card__title { font-family: var(--cf-serif); font-weight: 400; font-size: 21px; line-height: 1.25; color: var(--cf-ink); }
.cf-card__body { display: flex; flex-direction: column; gap: 6px; }
.cf-card__date { font-size: 14px; color: var(--cf-copper-text); }
.cf-card__excerpt { color: var(--cf-muted); font-size: 15px; }

.cf-card--cf-card .cf-card__media { aspect-ratio: 4 / 5; }
.cf-card--cf-square .cf-card__media { aspect-ratio: 1; }
.cf-card--cf-square .cf-card__title { font-size: 19px; }
.cf-card--cf-wide .cf-card__media,
.cf-card--article .cf-card__media,
.cf-card--page .cf-card__media { aspect-ratio: 3 / 2; }

.cf-card--feature .cf-card__media { aspect-ratio: 16 / 10; }
.cf-card--feature .cf-card__title { font-size: clamp(26px, 3vw, 34px); line-height: 1.15; }
.cf-card--feature .cf-card__excerpt { font-size: 17px; }

.cf-card--row .cf-card__link { flex-direction: row; gap: 16px; align-items: flex-start; }
.cf-card--row .cf-card__media { flex: 0 0 140px; aspect-ratio: 4 / 3; }
.cf-card--row .cf-card__title { font-size: 19px; }

.cf-img--empty { display: grid; place-items: center; width: 100%; height: 100%; color: #c4c4c4; }

.cf-rating { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; color: var(--cf-muted); }
.cf-rating strong { color: var(--cf-ink); }
.cf-stars { display: inline-flex; gap: 1px; color: var(--cf-copper); }
.cf-card .cf-rating { font-size: 13px; }

/* --- Accueil --------------------------------------------------------------- */

.cf-hero { background: var(--cf-grey); }
.cf-hero__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-block: 56px; }
.cf-hero__text { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.cf-hero__title { font-size: clamp(36px, 4.6vw, 58px); line-height: 1.08; letter-spacing: -0.01em; }
.cf-hero__lead { margin: 0; color: var(--cf-muted); font-size: 18px; max-width: 520px; }
.cf-hero__feature { flex: 1 1 420px; min-width: 0; position: relative; display: block; border-radius: var(--cf-radius); overflow: hidden; text-decoration: none !important; }
.cf-hero__feature .cf-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.cf-hero__feature:hover .cf-img { transform: scale(1.03); }
.cf-hero__badge {
	position: absolute; left: 16px; bottom: 16px;
	display: flex; flex-direction: column; gap: 2px; line-height: 1.25;
	padding: 12px 16px; border-radius: var(--cf-radius); background: var(--cf-white);
}
.cf-hero__badge-title { font-family: var(--cf-serif); font-size: 22px; }

.cf-mag { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 32px; }
.cf-mag__side { display: flex; flex-direction: column; justify-content: space-between; gap: 16px; }
.cf-mag__side .cf-card { padding-bottom: 20px; border-bottom: 1px solid var(--cf-line); }
.cf-mag__side .cf-card:last-child { padding-bottom: 0; border-bottom: 0; }
@media (max-width: 900px) { .cf-mag { grid-template-columns: 1fr; } }

.cf-band { background: var(--cf-grey-dark); color: var(--cf-white); margin-top: 96px; }
.cf-band > .cf-wrap { padding-block: 56px; }
.cf-band__frame {
	border: 1px solid rgba(255, 255, 255, .85);
	padding: clamp(28px, 4vw, 48px);
	display: flex; flex-wrap: wrap; align-items: center; gap: 32px 48px;
}
.cf-band__text { flex: 999 1 460px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.cf-band__text p { margin: 0; color: #e6e6e6; }
.cf-band__img { flex: 1 1 320px; min-width: 0; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cf-radius); }

.cf-split { display: flex; flex-wrap: wrap; gap: 48px; }
.cf-split__media { flex: 1 1 380px; min-width: 0; }
.cf-split__media .cf-img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--cf-radius); }
.cf-split__text { flex: 1 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

.cf-timeline { list-style: none; margin: 8px 0 0; padding: 0; border-left: 2px solid var(--cf-copper); }
.cf-timeline li { position: relative; padding: 0 0 18px 24px; }
.cf-timeline li::before {
	content: ""; position: absolute; left: -7px; top: 7px;
	width: 12px; height: 12px; border-radius: 50%; background: var(--cf-copper);
}
.cf-timeline__when { display: block; font-family: var(--cf-serif); font-size: 20px; }
.cf-timeline__what { display: block; color: var(--cf-muted); }

.cf-mixo { display: flex; flex-wrap: wrap; gap: 24px 64px; align-items: flex-start; }
.cf-mixo > .cf-h2 { flex: 1 1 300px; }
.cf-mixo__text { flex: 2 1 520px; min-width: 0; color: #444; }

/* --- En-têtes de listes --------------------------------------------------- */

.cf-page-head { padding-top: 40px; display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.cf-page-head__lead { margin: 0; max-width: 820px; color: var(--cf-muted); font-size: 17px; }
.cf-page-head__lead p { margin: 0 0 10px; }
.cf-page-head .cf-pills, .cf-page-head .cf-search--large { width: 100%; }
.cf-page-head .cf-pills { margin-top: 8px; }
.cf-section > .cf-h3 + .cf-pills { margin-top: 14px; }

.cf-mag-lead { margin-bottom: 48px; }
@media (min-width: 900px) {
	.cf-mag-lead .cf-card__link { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: center; gap: 40px; }
}
.cf-narrow > .cf-h2 + .cf-prose { margin-top: 16px; }

.cf-pagination { margin-top: 48px; }
.cf-pagination .nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.cf-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 44px; height: 44px; padding: 0 14px; border-radius: 999px;
	border: 1px solid var(--cf-line); text-decoration: none !important;
}
.cf-pagination .page-numbers.current { background: var(--cf-ink); border-color: var(--cf-ink); color: var(--cf-white); }
.cf-pagination a.page-numbers:hover { border-color: var(--cf-copper); color: var(--cf-copper-text); }

/* --- Contenu éditorial ---------------------------------------------------- */

.cf-prose { font-size: 17px; line-height: 1.7; color: var(--cf-text); }
.cf-prose > * { margin-block: 0 1em; }
.cf-prose h2 { font-size: clamp(26px, 2.8vw, 32px); margin: 1.6em 0 .5em; color: var(--cf-ink); }
.cf-prose h3 { font-size: 22px; margin: 1.4em 0 .4em; color: var(--cf-ink); }
.cf-prose h2:first-child, .cf-prose h3:first-child { margin-top: 0; }
.cf-prose a { color: var(--cf-copper-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.cf-prose strong { color: var(--cf-ink); }
.cf-prose ul, .cf-prose ol { padding-left: 1.3em; }
.cf-prose li { margin-bottom: .4em; }
.cf-prose li::marker { color: var(--cf-copper); }
.cf-prose blockquote { margin-inline: 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--cf-copper); font-family: var(--cf-serif); font-size: 20px; color: var(--cf-ink); }
.cf-prose img, .cf-prose figure img { border-radius: var(--cf-radius); height: auto; }
.cf-prose figure { margin-inline: 0; }
.cf-prose figcaption { font-size: 14px; color: var(--cf-soft); margin-top: 8px; }
.cf-prose table { width: 100%; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.cf-prose th, .cf-prose td { padding: 10px 12px; border-bottom: 1px solid var(--cf-line); text-align: left; }
.cf-prose .wp-block-image, .cf-prose .wp-block-gallery { margin-block: 1.5em; }
.cf-prose .gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.cf-prose .gallery-item { margin: 0; }
.cf-prose .gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.cf-prose .aligncenter { margin-inline: auto; }

/* Sommaire SEOPress */
.cf-prose .wp-block-seopress-table-of-contents,
.cf-prose .seopress-table-of-contents { background: var(--cf-grey); border-radius: var(--cf-radius); padding: 20px 24px; font-size: 15px; }

/* --- Fiche recette -------------------------------------------------------- */

.cf-recipe__head { display: flex; flex-wrap: wrap; align-items: center; gap: 40px; padding-top: 40px; }
.cf-recipe__media { flex: 1 1 460px; min-width: 0; }
.cf-recipe__media .cf-img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--cf-radius); }
.cf-recipe__intro { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.cf-recipe__intro .cf-pill { min-height: 32px; padding: 0 14px; font-size: 14px; }
.cf-recipe__title { font-size: clamp(44px, 6vw, 76px); line-height: 1; }
.cf-recipe__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: #444; }
.cf-recipe__meta > * + *::before { content: "|"; display: inline-block; color: #cbcbcb; margin-right: 16px; text-decoration: none; }
.cf-recipe__lead { margin: 0; color: #444; font-size: 17px; }

.cf-facts {
	margin: 4px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
	gap: 1px; background: var(--cf-line); border: 1px solid var(--cf-line); border-radius: var(--cf-radius); overflow: hidden;
}
.cf-facts__item { background: var(--cf-white); padding: 12px 16px; }
.cf-facts dt { display: flex; align-items: center; gap: 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: #666; }
.cf-facts dt .cf-icon { color: var(--cf-copper); }
.cf-facts dd { margin: 2px 0 0; font-family: var(--cf-serif); font-size: 20px; }

.cf-recipe__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 48px; align-items: start; margin-top: 56px; }
.cf-recipe__body { grid-column: 1; grid-row: 1; min-width: 0; display: flex; flex-direction: column; gap: 40px; }
.cf-ingredients {
	grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--cf-header-h) + 20px);
	padding: 24px; border: 1px solid var(--cf-line); border-radius: var(--cf-radius);
	background: var(--cf-white); box-shadow: 0 8px 24px rgba(0, 0, 0, .06);
}
.admin-bar .cf-ingredients { top: calc(var(--cf-header-h) + 52px); }
@media (max-width: 900px) {
	.cf-recipe__layout { grid-template-columns: 1fr; gap: 32px; margin-top: 32px; }
	.cf-ingredients, .cf-recipe__body { grid-column: 1; grid-row: auto; position: static; }
}
.cf-ingredients__title { font-size: 24px; margin-bottom: 8px; }
.cf-ingredients__note { font-size: 14px; color: var(--cf-muted); }
.cf-ingredients__note p { margin: 0 0 8px; }
.cf-ingredients__links { margin: 16px 0 0; font-size: 14px; color: var(--cf-muted); }
.cf-ingredients__links a { color: var(--cf-copper-text); }

.cf-checklist { list-style: none; margin: 0; padding: 0; }
.cf-checklist li { border-bottom: 1px solid var(--cf-line); }
.cf-checklist label, .cf-checklist--links a { display: flex; align-items: center; gap: 12px; min-height: 50px; padding-block: 8px; cursor: pointer; }
.cf-checklist input { width: 18px; height: 18px; margin: 0; flex-shrink: 0; accent-color: var(--cf-copper); }
.cf-checklist label:has(input:checked) span { color: var(--cf-soft); text-decoration: line-through; }
.cf-checklist a { color: inherit; }

/* Étapes : pastilles cuivre numérotées, cochables (voir main.js). */
.cf-prose ol.cf-steps { list-style: none; padding: 0; counter-reset: cf-step; display: flex; flex-direction: column; gap: 12px; }
.cf-prose ol.cf-steps > li {
	counter-increment: cf-step; position: relative; margin: 0;
	padding: 16px 18px 16px 66px; border: 1px solid var(--cf-line); border-radius: var(--cf-radius);
	cursor: pointer; transition: background-color .2s, color .2s;
}
.cf-prose ol.cf-steps > li::before {
	content: counter(cf-step); position: absolute; left: 18px; top: 14px;
	width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center;
	background: var(--cf-copper); color: var(--cf-white); font-weight: 700; font-size: 16px;
}
.cf-prose ol.cf-steps > li:hover { border-color: #d9d9d9; }
.cf-prose ol.cf-steps > li.is-done { background: #f7f7f7; color: var(--cf-soft); }
.cf-prose ol.cf-steps > li.is-done::before { content: "✓"; background: #9a9a9a; }

/* FAQ (champ ACF « cocktail_faq » : <details>/<summary>). */
.cf-faq h2 { font-size: clamp(26px, 2.8vw, 32px); margin-bottom: 16px; }
.cf-faq details { border-bottom: 1px solid var(--cf-line); }
.cf-faq details:first-of-type { border-top: 1px solid var(--cf-line); }
.cf-faq summary {
	list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
	min-height: 56px; padding: 12px 0; font-family: var(--cf-serif); font-size: 18px;
}
.cf-faq summary::-webkit-details-marker { display: none; }
.cf-faq summary::after {
	content: "+"; flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
	display: grid; place-items: center; border: 1px solid var(--cf-copper); color: var(--cf-copper-text);
	font-family: var(--cf-sans); font-size: 20px; line-height: 1; transition: transform .2s;
}
.cf-faq details[open] summary::after { content: "−"; }
.cf-faq details p { margin: 0 48px 18px 0; color: #444; }

/* Bloc de vote « Vous avez aimé ? » (inc/rating.php). */
.cf-vote { background: var(--cf-black); color: var(--cf-white); border-radius: var(--cf-radius); padding: 40px 24px; text-align: center; }
.cf-vote__title { font-size: clamp(28px, 3vw, 34px); }
.cf-vote__label { margin: 12px 0 8px; font-family: var(--cf-serif); font-size: 18px; }
.cf-vote__stars { display: inline-flex; gap: 2px; }
.cf-vote__star {
	width: 48px; height: 48px; padding: 4px; border: 0; border-radius: 8px; background: none; cursor: pointer;
	color: #cfcfcf; transition: color .15s, transform .15s;
}
.cf-vote__star svg { width: 100%; height: 100%; fill: currentColor; stroke: currentColor; stroke-width: 1; stroke-linejoin: round; }
.cf-vote__star.is-on { color: var(--cf-copper); }
.cf-vote__stars:hover .cf-vote__star { color: var(--cf-copper); }
.cf-vote__star:hover ~ .cf-vote__star { color: #cfcfcf; }
.cf-vote__star:hover { transform: scale(1.08); }
.cf-vote__star:focus-visible { outline-color: var(--cf-white); }
.cf-vote.is-done .cf-vote__star { cursor: default; transform: none; }
.cf-vote.is-done .cf-vote__stars:hover .cf-vote__star:not(.is-on) { color: #cfcfcf; }
.cf-vote.is-done .cf-vote__stars:hover .cf-vote__star.is-on { color: var(--cf-copper); }
.cf-vote__summary { margin: 12px 0 0; color: #bdbdbd; }
.cf-vote__msg { margin: 8px 0 0; color: var(--cf-copper); font-weight: 700; min-height: 1.6em; }

.cf-recipe__foot, .cf-article__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cf-recipe__foot a { color: var(--cf-copper-text); }
.cf-share { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-share a {
	display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
	background: var(--cf-black); color: var(--cf-white); font-size: 14px; text-decoration: none !important;
}
.cf-share a:hover { background: var(--cf-copper); }

/* --- Article / page ------------------------------------------------------- */

.cf-article__head { padding-top: 40px; display: flex; flex-direction: column; gap: 16px; }
.cf-article__head .cf-pill { min-height: 32px; padding: 0 14px; font-size: 14px; }
.cf-article__meta { margin: 0; font-size: 15px; color: var(--cf-muted); }
.cf-article__media { margin: 32px auto; }
.cf-article__media .cf-img { width: 100%; max-height: 620px; object-fit: cover; border-radius: var(--cf-radius); }
.cf-page .cf-article__head { padding-bottom: 32px; }
.cf-article__foot { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--cf-line); }

/* --- ABCdaire des ingrédients -------------------------------------------- */

/* L'ABCdaire sort de la colonne de lecture pour occuper toute la largeur utile. */
.cf-abc-block {
	--cf-abc-w: min(var(--cf-wrap), calc(100vw - 2 * var(--cf-gutter)));
	width: var(--cf-abc-w); margin: 32px 0 48px calc((100% - var(--cf-abc-w)) / 2);
}
.cf-prose .cf-abc-block ul { padding-left: 0; }
.cf-prose .cf-abc-block li { margin: 0; }
.cf-prose .cf-abc-block a { color: var(--cf-ink); text-decoration: none; }
.cf-prose .cf-abc-block .cf-abc__list a:hover { color: var(--cf-copper-text); text-decoration: underline; }
.cf-prose .cf-abc-block h2.cf-abc__letter { margin: 0 0 8px; font-size: 40px; color: var(--cf-copper-text); }
.cf-prose .cf-abc-block .cf-abc-nav a:hover { color: var(--cf-white); }

.cf-abc-nav {
	position: sticky; top: var(--cf-header-h); z-index: 20; margin-bottom: 32px;
	background: rgba(255, 255, 255, .96); border-block: 1px solid var(--cf-line); backdrop-filter: blur(6px);
}
.admin-bar .cf-abc-nav { top: calc(var(--cf-header-h) + var(--wp-admin--admin-bar--height, 32px)); }
.cf-abc-nav ul { list-style: none; margin: 0; display: flex; justify-content: space-between; gap: 2px; overflow-x: auto; padding: 8px 0; scrollbar-width: none; }
.cf-abc-nav a, .cf-abc-nav span {
	display: grid; place-items: center; min-width: 38px; height: 38px; border-radius: 999px;
	font-family: var(--cf-serif); font-size: 17px;
}
.cf-abc-nav a { color: var(--cf-ink); text-decoration: none !important; }
.cf-abc-nav a:hover { background: var(--cf-copper); color: var(--cf-white); }
.cf-abc-nav span { color: #c4c4c4; }

.cf-abc { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 40px 32px; }
.cf-abc__group { scroll-margin-top: calc(var(--cf-header-h) + 70px); }
.cf-abc__letter {
	font-size: 40px; color: var(--cf-copper-text); padding-bottom: 8px; margin-bottom: 8px; border-bottom: 2px solid var(--cf-copper);
}
.cf-abc__list { list-style: none; margin: 0; padding: 0; }
.cf-abc__list li { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--cf-line); }
.cf-abc__list a:hover { color: var(--cf-copper-text); }
.cf-abc__count { font-size: 13px; color: var(--cf-soft); }

/* --- Commentaires --------------------------------------------------------- */

.cf-comments { margin-top: 24px; }
.cf-comments__list { list-style: none; padding: 0; }
.cf-comments .comment-body { padding: 16px 0; border-bottom: 1px solid var(--cf-line); }
.cf-comments textarea, .cf-comments input[type="text"], .cf-comments input[type="email"], .cf-comments input[type="url"] {
	width: 100%; padding: 12px 14px; border: 1px solid #d0d0d0; border-radius: var(--cf-radius);
}

/* --- Pied de page --------------------------------------------------------- */

.cf-footer { background: var(--cf-black); color: var(--cf-white); }
.cf-grey + .cf-footer, .cf-band + .cf-footer { margin-top: 0; }
.cf-footer__inner { padding-block: 48px 32px; display: flex; flex-direction: column; align-items: center; gap: 24px; }
.cf-footer__logo img, .cf-footer__logo .custom-logo { height: 40px; width: auto; }
.cf-footer__menu ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.cf-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.cf-social__link {
	display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
	background: var(--cf-white); color: var(--cf-black); transition: background-color .2s, color .2s;
}
.cf-social__link:hover { background: var(--cf-copper); color: var(--cf-white); text-decoration: none; }
.cf-footer__legal {
	width: 100%; padding-top: 20px; border-top: 1px solid #333;
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px 24px;
	font-size: 14px; color: #cfcfcf;
}
.cf-footer__legal p { margin: 0; }
.cf-footer__legal strong { color: var(--cf-white); }
.cf-footer__heart { color: var(--cf-copper); }
.cf-footer__menu ul { gap: 8px 20px; }

/* --- Préférences ---------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
	.cf-header, .cf-footer, .cf-crumbs, .cf-share, .cf-vote, .cf-grey { display: none !important; }
	.cf-recipe__layout { display: block; }
	.cf-ingredients { position: static; box-shadow: none; }
}
