/**
 * Public shell aligned with the consolidated design system.
 * Tokens live in theme.json; this file only maps them onto existing templates.
 */

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--wp--preset--color--mc-cream, #F8F5F0);
  color: var(--wp--preset--color--mc-text, #1A1A18);
  font-family: var(--wp--preset--font-family--body, "Manrope", system-ui, sans-serif);
}

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  flex: 1 0 auto;
  min-height: 100vh;
  width: 100%;
}

.wp-site-blocks > footer.wp-block-template-part,
.wp-site-blocks > .mc-footer {
  margin-top: auto;
}

h1,
h2,
.wp-block-post-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-stretch: 100%;
  letter-spacing: -0.025em;
  line-height: 0.92;
}

.site-header {
  background: rgba(248, 245, 240, 0.9) !important;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(232, 226, 217, 0.55);
  z-index: 40;
}

.site-header > .wp-block-group__inner-container,
.site-header.wp-block-group {
  max-width: 1280px;
  margin-inline: auto;
  padding: 0.75rem 1rem;
}

.site-header__inner,
.site-header__capsule {
  position: relative;
  min-height: 64px;
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  padding: 0.7rem 1rem;
  background: #FFFFFF;
  border: 1px solid #E8E2D9;
  border-radius: 20px;
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.04);
}

.mc-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  justify-self: start;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #1A1A18;
  text-decoration: none;
}

.mc-wordmark__mark {
  width: 2rem;
  height: 2rem;
  border-radius: 0.55rem;
  display: grid;
  place-items: center;
  background: #7A8A6E;
  color: #FFFFFF;
  flex-shrink: 0;
}

.mc-header-icon {
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 0;
  background: #F2EDE6 !important;
  color: #1A1A18;
  box-shadow: none;
  text-decoration: none;
  font-size: 0;
  position: relative;
  cursor: pointer;
}

.mc-header-icon--menu {
  background: #1A1A18 !important;
  color: #F8F5F0 !important;
  font-size: 0;
}

.mc-header-icon--menu::before {
  content: "";
  width: 1rem;
  height: 2px;
  background: currentColor;
  box-shadow: 0 -5px 0 currentColor, 0 5px 0 currentColor;
}

.mc-favorites-link [data-favorite-count]:not([hidden]) {
  position: absolute;
  top: -0.25rem;
  right: -0.25rem;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.2rem;
  border-radius: 999px;
  background: #FFF1A6;
  border: 1px solid #FFFFFF;
  color: #1A1A18;
  font-size: 0.625rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  font-style: normal;
}

.primary-nav--desktop {
  display: none;
  align-items: center;
  gap: 0.25rem;
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  background: #F2EDE6;
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: #1A1A18;
  text-decoration: none;
}

.nav-pill:hover,
.nav-pill.is-active {
  background: #1A1A18;
  color: #FFFFFF;
}

.primary-nav--drawer[hidden] { display: none; }

.primary-nav--drawer:not([hidden]) {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  right: 0;
  z-index: 40;
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border-radius: 20px;
  background: #FFFFFF;
  border: 1px solid #E8E2D9;
  box-shadow: 0 12px 40px rgba(28, 28, 20, 0.12);
}

.primary-nav--drawer a {
  padding: 0.55rem 0.35rem;
  color: #1A1A18;
  text-decoration: none;
  font-weight: 500;
}

.header-search--mobile {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.header-search--mobile input {
  flex: 1;
  border: 1px solid #E8E2D9;
  background: #F8F5F0;
  border-radius: 999px;
  padding: 0.55rem 1rem;
  font: inherit;
}

.header-search--mobile button {
  border: 0;
  border-radius: 999px;
  background: #1A1A18;
  color: #FFFFFF;
  padding: 0.55rem 1.1rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.mc-header-cta,
.yellow-btn.mc-header-cta {
  display: none;
  border-radius: 999px !important;
  background: #FFF1A6 !important;
  color: #1A1A18 !important;
  padding: 0.6rem 1.1rem !important;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
}

@media (min-width: 768px) {
  .mc-header-cta,
  .yellow-btn.mc-header-cta { display: inline-flex; align-items: center; }
}

@media (min-width: 1024px) {
  .primary-nav--desktop { display: flex; }
  .mc-header-icon--menu,
  .primary-nav--drawer { display: none !important; }
  .mc-header-icon--search { display: grid; }
}

@media (max-width: 1023px) {
  .mc-header-icon--search { display: none; }
  .header-search--desktop { display: none; }
}

@keyframes mc-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (max-width: 1023px) {
  .site-header__inner { grid-template-columns: 1fr auto; }
  .mc-wordmark { justify-self: start; }
  .mc-header-icon--menu,
  .primary-nav--drawer { display: none !important; }
}

.mc-wordmark {
  width: auto;
  height: auto;
  font-family: "Manrope", system-ui, sans-serif;
  font-style: italic;
  font-weight: 500;
  font-size: 2rem;
  line-height: 1;
  color: var(--wp--preset--color--mc-green, #1A1A18) !important;
  text-decoration: none;
}

.mc-wordmark--footer {
  font-size: clamp(2.4rem, 5vw, 3.5rem);
  color: var(--wp--preset--color--mc-lime, #DCE8B5) !important;
}

.primary-nav a {
  color: #1A1A18 !important; /* olive preset was 3.7:1 on the white capsule */
  font-weight: 600;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav a[aria-current="page"] {
  color: var(--wp--preset--color--mc-berry, #7A8A6E) !important;
}

.mc-footer,
.site-footer {
  background: var(--wp--preset--color--mc-wine, #1A1A18) !important;
  color: var(--wp--preset--color--mc-cream, #F8F5F0) !important;
}

.mc-footer a:hover,
.site-footer a:hover {
  color: var(--wp--preset--color--mc-lime, #DCE8B5) !important;
}

.mc-wordmark--footer { color: var(--wp--preset--color--mc-lemon, #FFF1A6); }

.mc-filter-form {
  background: #DCE8B5;
  color: #1A1A18;
  border-radius: 32px;
  padding: 1.2rem;
}

.mc-clear-filters {
  border-radius: 999px;
}

.mc-footer-giant {
  margin: 0.5rem 0 0;
  overflow: hidden;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  font-stretch: 100%;
  font-size: clamp(3rem, 12vw, 8rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #F2EDE6;
}

.mc-articles-hero h1 {
  color: #1A1A18;
  font-family: "Manrope", system-ui, sans-serif;
  text-transform: none;
  letter-spacing: -0.03em;
}
.mc-static-page { background: #F8F5F0; color: #1A1A18; }
.mc-static-page h1 { color: #1A1A18; font-family: "Manrope", system-ui, sans-serif; text-transform: none; letter-spacing: -0.03em; }

.wp-element-button,
.wp-block-button__link {
  border-radius: 999px;
}

:focus-visible {
  outline: 3px solid var(--wp--preset--color--mc-berry, #7A8A6E);
  outline-offset: 2px;
}

.mc-recipes-hero h1,
.mc-articles-hero h1,
.mc-recipe-hero h1 {
  font-family: "Manrope", system-ui, sans-serif !important;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #1A1A18 !important;
}

.mc-recipes-hero h1 span,
.mc-articles-hero h1 span,
.mc-recipes-hero h1 span::after,
.mc-articles-hero h1 span::after {
  color: var(--wp--preset--color--mc-lime, #DCE8B5) !important;
  background: none !important;
}

.mc-recipes-hero h1 span::after,
.mc-articles-hero h1 span::after {
  display: none !important;
}

.mc-recipe-card{
  background: #F2EDE6 !important;
  border: 0 !important;
  border-radius: 28px !important;
  padding: 0.65rem !important;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  outline: 1px solid rgba(122, 138, 110, 0.1);
}

.mc-recipe-card:hover{
  transform: translateY(-4px);
  outline-color: rgba(122, 138, 110, 0.3);
}

.wp-element-button,
.wp-block-button__link,
button[type="submit"],
.mc-btn {
  border-radius: 999px !important;
  background: var(--wp--preset--color--mc-green, #1A1A18);
  color: var(--wp--preset--color--mc-cream, #F8F5F0);
}

.mc-recipe-card__badge,
.mc-catalog .mc-recipe-card__badge,
.mc-recipe-badge {
  background: var(--wp--preset--color--mc-lime, #DCE8B5) !important;
  color: var(--wp--preset--color--mc-green-dark, #1A1A18) !important;
}

.mc-recipe-card__media{
  border-radius: 22px;
  overflow: hidden;
}

.mc-home,
.mc-recipe-page,
.mc-articles-page,
.mc-recipes-page {
  background: var(--wp--preset--color--mc-cream, #F8F5F0) !important;
}

.mc-bottom-nav {
  background: var(--wp--preset--color--mc-paper, #F2EDE6);
  border-color: rgba(122, 138, 110, 0.12);
}

.mc-bottom-nav__item.is-active,
.home .mc-bottom-nav__item--home,
.post-type-archive-recette .mc-bottom-nav__item--recipes,
.tax-categorie_recette .mc-bottom-nav__item--recipes,
.tax-tendencia .mc-bottom-nav__item--recipes,
.single-recette .mc-bottom-nav__item--recipes,
.single-post .mc-bottom-nav__item--articles,
.category .mc-bottom-nav__item--articles,
.mc-articles-page .mc-bottom-nav__item--articles {
  color: var(--wp--preset--color--mc-berry, #7A8A6E);
}

.mc-home {
  background: var(--wp--preset--color--mc-cream, #F8F5F0);
}

.mc-mag {
  max-width: 52rem;
  margin: clamp(3rem, 6vw, 5rem) auto;
  padding: 0 1.25rem;
}

.mc-mag h2 {
  margin: 0.65rem 0 0;
  color: #1A1A18;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.04em;
  font-size: clamp(2.35rem, 6vw, 3.4rem);
  line-height: 0.95;
}

.error404 h1 {
  color: var(--wp--preset--color--mc-green, #1A1A18);
}

.mc-recipes-page,
.mc-articles-page,
.mc-recipe-page,
.search main,
.error404 main {
  background: #F8F5F0;
  color: #1A1A18;
}

.mc-recipes-hero h1,
.mc-articles-page h1,
.mc-recipe-page h1,
.search h1,
.error404 h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.03em;
  color: #1A1A18;
}

.mc-recipe-card,
.mc-home-recipe-card{
  background: #F2EDE6;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(122, 138, 110, 0.1);
}

.mc-week {
  max-width: 1180px;
  margin: 3rem auto;
  padding: 1.5rem;
  border-radius: 36px;
  background: #1A1A18;
  color: #F8F5F0;
}

.mc-week p { margin: 0; font-family: "Manrope", system-ui, sans-serif; font-style: italic; font-size: 1.5rem; color: #DCE8B5; }
.mc-week h2 { margin: 0; color: #F8F5F0; font-size: clamp(2.4rem, 5vw, 4rem); }

.mc-recipe-page { background: #F8F5F0; }
.mc-recipe-shell { max-width: 1120px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.mc-recipe-page h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  text-transform: none;
  letter-spacing: -0.03em;
  color: #1A1A18;
}
.mc-recipe-page .mc-recipe-aside--ingredients,
.mc-recipe-page .mc-recipe-ingredients {
  min-width: 0;
}
.mc-recipe-page .wp-block-button__link,
.mc-recipe-page button.mc-servings-btn {
  border-radius: 999px;
}

body,
.search,
.category,
.archive,
.error404,
.page,
.single-post,
.single-recette,
.post-type-archive-recette,
.tax-categorie_recette {
  background: #F8F5F0;
  color: #1A1A18;
  font-family: "Manrope", system-ui, sans-serif;
}

.wp-block-post-title,
.mc-article-title,
.mc-search-hero__title,
.mc-recipes-hero h1,
.mc-articles-hero h1,
.mc-static-page h1,
.error404 h1,
.mc-recipe-page h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-transform: none;
  color: #1A1A18;
}

.wp-block-button__link,
.mc-load-more,
.mc-search-box button,
.mc-search-filters__submit {
  border-radius: 999px;
  background: #1A1A18;
  color: #F8F5F0;
}

.is-style-outline .wp-block-button__link {
  background: transparent;
  color: #1A1A18;
}

.mc-article,
.mc-recipe-card {
  background: #F2EDE6;
}

.mc-article,
.mc-static-page {
  border-radius: 0;
}

a {
  text-underline-offset: 0.15em;
}

.mc-recipe-title,
.mc-static-page h1,
.mc-recipes-hero h1,
.mc-articles-hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  font-stretch: 100%;
  text-transform: none;
}

.mc-recipe-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  background: transparent;
}

.mc-recipe-meta li {
  display: inline-flex;
  align-items: center;
  min-height: 2.4rem;
  padding: 0.35rem 0.95rem;
  border-radius: 999px;
  background: #F2EDE6;
  color: #1A1A18;
  box-shadow: inset 0 0 0 1.5px #1A1A18;
  font-weight: 700;
}

.mc-recipe-hero__content > .mc-recipe-reels {
  display: flex;
  margin-top: 0.85rem;
}

.mc-recipe-page .mc-recipe-reels__trigger {
  background: #1A1A18;
  color: #DCE8B5;
  border: 0;
  border-radius: 999px;
}

.mc-recipe-meta small {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: none;
}

.mc-recipe-meta strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.35rem;
  text-transform: none;
}

.mc-search-hero {
  background: transparent;
}

.mc-search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  max-width: 40rem;
  background: #F2EDE6;
  border-radius: 999px;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  box-shadow: inset 0 0 0 1px rgba(122, 138, 110, 0.12);
}

.mc-search-box input {
  flex: 1;
  border: 0;
  background: transparent;
  font: inherit;
  color: #1A1A18;
}

.mc-search-hero__eyebrow {
  font-family: "Manrope", system-ui, sans-serif;
  font-style: italic;
  color: #1A1A18;
}

.mc-recipe-hero {
  align-items: center;
}

.mc-hero-image,
.mc-hero-image-wrap {
  border-radius: 32px;
  overflow: hidden;
}

.mc-recipe-badge{
  border-radius: 999px;
  background: #DCE8B5;
  color: #1A1A18;
}

.mc-articles-hero,
.mc-recipes-hero {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.25rem 0;
}

.mc-catalog-search {
  display: flex;
  align-items: center;
  background: #F2EDE6;
  border-radius: 999px;
  padding: 0.2rem 0.2rem 0.2rem 0.9rem;
  box-shadow: inset 0 0 0 1px rgba(122, 138, 110, 0.12);
}

.mc-catalog-search input {
  border: 0;
  background: transparent;
  font: inherit;
  min-height: 44px;
}

.article-card {
  background: #F2EDE6;
  border-radius: 28px;
  box-shadow: inset 0 0 0 1px rgba(122, 138, 110, 0.1);
  overflow: hidden;
}

.article-card img {
  border-radius: 22px;
}

.mc-article-page .mc-article-hero--overlay {
  display: grid !important;
  width: 100% !important;
  max-width: none !important;
  margin: 20px 0 0 !important;
  min-height: clamp(280px, 42vw, 460px);
  align-items: end;
  overflow: hidden;
  background: #1A1A18;
  border-radius: 0;
}

.mc-article-page .mc-article-hero__media {
  position: absolute;
  inset: 0;
  border-radius: 0;
  overflow: hidden;
}

.mc-article-page .mc-article-hero__image,
.mc-article-page .mc-article-hero__image img {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
}

.mc-article-page .mc-article-hero--overlay .mc-article-title {
  font-family: "Manrope", system-ui, sans-serif !important;
  font-weight: 800 !important;
  text-transform: none;
  letter-spacing: -0.04em;
  color: #fff !important;
  max-width: 18ch;
}

.mc-article-page .mc-article-eyebrow--pill,
.mc-article-page .mc-article-eyebrow--pill a {
  display: inline-flex !important;
  border-radius: 999px;
  background: #FFF1A6 !important;
  color: #1A1A18 !important;
  padding: 0.3rem 0.7rem !important;
  letter-spacing: 0.02em;
  text-transform: none;
}

.mc-article-page .mc-article-hero--overlay .mc-article-byline {
  color: rgba(255, 255, 255, 0.9);
}

.mc-article-page .mc-article-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px) !important;
  gap: 1.5rem !important;
  align-items: start !important;
  width: min(100%, 1240px) !important;
  margin-inline: auto !important;
}

.mc-article-page .mc-article-main { grid-column: 1; min-width: 0; }
.mc-article-page .mc-article-aside {
  grid-column: 2;
  position: static;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  min-width: 0;
}

.mc-article-page .mc-article-toc {
  background: #DCE8B5;
  border-radius: 16px;
  box-shadow: none;
  padding: 1rem 1.1rem;
}

.mc-article-page .mc-share-btn {
  width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 999px;
  border: 1px solid #E8E2D9;
  background: #fff;
  color: #1A1A18;
  font-weight: 800;
}

@media (max-width: 960px) {
  .mc-article-page .mc-article-layout {
    grid-template-columns: 1fr;
  }
  .mc-article-page .mc-article-aside { grid-column: 1; }
}

.mc-recipe-section-title,
.mc-related-recipes__title,
.mc-recipe-ingredients__header,
.mc-recipe-steps__header {
  font-family: "Manrope", system-ui, sans-serif !important;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: none;
  color: #1A1A18;
}

.mc-ingredient-checkbox {
  accent-color: #1A1A18;
  width: 1.15rem;
  height: 1.15rem;
}

.mc-recipe-page .mc-step {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0 0 1.75rem;
  margin: 0 0 1.75rem;
  border: 0;
  border-bottom: 1px solid #E8E2D9;
  border-radius: 0;
  background: none;
}
.mc-recipe-page .mc-step:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: 0;
}

.mc-recipe-page .mc-step-content {
  order: 1;
}

.mc-recipe-page .mc-step-title {
  margin: 0 0 0.35rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
  color: #1A1A18;
}

.mc-recipe-page .mc-step-title__num {
  margin-right: 0.35em;
  font-variant-numeric: tabular-nums;
}

.mc-recipe-page .mc-step-text {
  margin: 0;
  color: #1A1A18;
  line-height: 1.45;
}

.mc-recipe-page .mc-step-media {
  order: 2;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 16 / 10;
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
}

.mc-recipe-page .mc-step-img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mc-related-recipes__see-all,
.mc-recipe-share-btn {
  border-radius: 999px;
  background: #1A1A18;
  color: #DCE8B5;
}

/* ============================================================
   Consolidation index 4 : utilitaires, header, footer, formulaires.
   Couche finale : ces règles gagnent sur les couches précédentes.
   ============================================================ */

.mc-skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  z-index: 200;
  background: #1A1A18;
  color: #F8F5F0;
  padding: 12px 20px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.mc-skip-link:focus { top: 12px; }

.mc-eyebrow {
  font-size: 11px;
  line-height: 1.5;
  font-weight: 650;
  letter-spacing: 0.15em;
  text-transform: none;
  color: #1A1A18;
  margin: 0;
}

.mc-display {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  text-transform: none;
  line-height: 0.96;
  letter-spacing: -0.022em;
  color: #1A1A18;
}

.mc-lead {
  color: #6B675F;
  font-size: 18px;
  line-height: 1.7;
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid #1A1A18;
  outline-offset: 3px;
}

/* Boutons : primaire forest, secondaire transparent, lien souligné. */
.mc-btn .wp-block-button__link,
a.mc-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 12px 21px;
  border: 0;
  border-radius: 999px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}
.mc-btn--primary .wp-block-button__link,
a.mc-btn--primary {
  background: #FFF1A6;
  color: #1A1A18;
}
.mc-btn--primary .wp-block-button__link:hover,
a.mc-btn--primary:hover {
  background: #DCE8B5;
  color: #1A1A18;
  transform: translateY(-1px);
}
.mc-btn--secondary .wp-block-button__link,
a.mc-btn--secondary {
  background: #1A1A18;
  color: #FFFFFF;
}
.mc-btn--secondary .wp-block-button__link:hover,
a.mc-btn--secondary:hover {
  background: #DCE8B5;
  transform: translateY(-2px);
}

/* Tags : pastilles 40px, variantes lime/blush/lemon/contour. */
.mc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid transparent;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 550;
  line-height: 1.4;
  text-decoration: none;
  color: #1A1A18;
}

/* Header : fond cream uni, filet, wordmark serif italic. */
.site-header {
  background: #F8F5F0 !important;
  border-bottom: 1px solid rgba(26, 26, 24, 0.19);
}
.mc-wordmark {
  font-family: "Manrope", system-ui, sans-serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.02em;
  color: #1A1A18;
  text-decoration: none;
}

.primary-nav a {
  color: #6B675F;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  padding: 11px 0;
}
.primary-nav a:hover { color: #1A1A18; }

/* Recherche header : champ souligné, style index 4. */
.header-search {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  border-bottom: 1px solid rgba(26, 26, 24, 0.19);
}
.header-search input {
  border: 0;
  background: transparent;
  color: #1A1A18;
  font-size: 12px;
  padding: 8px 0;
  width: 100%;
}
.header-search input::placeholder { color: #6B675F; }

/* Footer: dark ink shell shared with static prototype. */
.mc-footer,
.site-footer {
  background: #1A1A18 !important;
  color: #F8F5F0 !important;
  padding: 3rem 1rem 1.25rem !important;
}
.mc-footer-inner {
  display: block !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}
.mc-footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.mc-footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  max-width: 22rem;
}
.mc-footer .mc-wordmark--footer,
.mc-wordmark--footer {
  display: inline-block !important;
  padding: 0 !important;
  margin: 0 !important;
  font-size: clamp(2rem, 4vw, 2.4rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  line-height: 1 !important;
  color: #FFF1A6 !important;
  text-decoration: none !important;
}
.mc-footer-brand p {
  max-width: 22rem;
  color: rgba(255, 255, 255, 0.68) !important;
  font-size: 0.9rem;
  line-height: 1.55;
  margin: 0 !important;
}
.mc-footer-nav {
  display: flex;
  align-items: center;
  gap: 0.85rem 1.35rem;
  font-size: 0.9rem;
  flex-wrap: wrap;
}
.mc-footer a.mc-footer-social,
.mc-footer-nav a,
.mc-footer-top-link,
.mc-footer-legal a {
  display: inline !important;
  margin: 0 !important;
  padding: 0 !important;
  color: rgba(255, 255, 255, 0.78) !important;
  text-decoration: none !important;
}
.mc-footer a.mc-footer-social {
  display: inline-flex !important;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
}
.mc-footer-nav a:hover,
.mc-footer-top-link:hover,
.mc-footer-legal a:hover,
.mc-footer a.mc-footer-social:hover {
  color: #FFF1A6 !important;
  text-decoration: underline !important;
  text-underline-offset: 4px;
}
.mc-footer-top-link { font-size: 0.85rem; white-space: nowrap; }
.mc-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1.1rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.82rem;
  flex-wrap: wrap;
}
.mc-footer-legal { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.mc-footer-cookies {
  border: 0;
  background: transparent;
  padding: 0;
  color: rgba(255, 255, 255, 0.55);
  font: inherit;
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.mc-footer-cookies:hover { color: #FFF1A6; }
.mc-footer-giant {
  margin: 1.5rem 0 0 !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-weight: 800 !important;
  text-transform: none !important;
  line-height: 0.85 !important;
  letter-spacing: -0.05em !important;
  font-size: clamp(3rem, 12vw, 8rem) !important;
  color: rgba(255, 255, 255, 0.08) !important;
  text-align: center;
  opacity: 1 !important;
  user-select: none;
}
@media (max-width: 800px) {
  .mc-footer-top { flex-direction: column; align-items: flex-start; gap: 1.25rem; }
  .mc-footer-brand { width: 100%; }
  .mc-footer-nav { flex-wrap: wrap; gap: 0.75rem 1rem; }
}

/* Component: pagination. Single source for the catalogue (.mc-pagination),
   /articles/ (paginate_links) and core query pagination (search, archives). */
.mc-pagination,
.mc-articles-pagination,
.fl-pagination,
.wp-block-query-pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 40px 0 8px;
}
.wp-block-query-pagination-numbers {
  display: contents;
}
.mc-pagination__btn,
.mc-articles-pagination .page-numbers,
.wp-block-query-pagination .page-numbers,
.wp-block-query-pagination-previous,
.wp-block-query-pagination-next {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding: 0 14px;
  box-sizing: border-box;
  border: 1px solid #E8E2D9;
  border-radius: 999px;
  background: #FFFFFF;
  color: #1A1A18;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease;
}
.mc-pagination__btn:hover,
.mc-articles-pagination a.page-numbers:hover,
.wp-block-query-pagination a.page-numbers:hover,
.wp-block-query-pagination-previous:hover,
.wp-block-query-pagination-next:hover {
  background: #FFF1A6;
  border-color: #FFF1A6;
}
.mc-pagination__btn.is-active,
.mc-articles-pagination .page-numbers.current,
.wp-block-query-pagination .page-numbers.current {
  background: #1A1A18;
  border-color: #1A1A18;
  color: #F8F5F0;
}
.mc-pagination__ellipsis,
.mc-articles-pagination .page-numbers.dots,
.wp-block-query-pagination .page-numbers.dots {
  min-width: auto;
  padding: 0 4px;
  border: 0;
  background: none;
  color: #6B675F;
}
@media (prefers-reduced-motion: reduce) {
  .mc-pagination__btn,
  .page-numbers {
    transition: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mc-btn .wp-block-button__link,
  a.mc-btn,
  .mc-tag {
    transition: none;
  }
}

/* Canonical buttons: lemon primary, ink secondary, outline. */
.yellow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--wp--preset--color--mc-lemon, #FFF1A6);
  color: var(--wp--preset--color--mc-ink, #1A1A18);
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.yellow-btn:hover {
  background: var(--wp--preset--color--mc-lime, #DCE8B5);
  color: var(--wp--preset--color--mc-ink, #1A1A18);
  transform: translateY(-1px);
}
.mc-btn-secondary{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--wp--preset--color--mc-charcoal, #1A1A18);
  color: #FFFFFF;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s, transform 0.15s;
}
.mc-btn-secondary:hover{
  background: #000000;
  color: #FFFFFF;
  transform: translateY(-1px);
}
.is-style-outline .wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.65rem 1.15rem;
  border: 1px solid var(--wp--preset--color--mc-border, #E8E2D9) !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--wp--preset--color--mc-text, #1A1A18) !important;
  font-size: 0.8125rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: none !important;
}
.is-style-outline .wp-block-button__link:hover {
  background: var(--wp--preset--color--mc-cream-2, #F2EDE6) !important;
}

/* Sections accueil : titres display + chapeaux éditoriaux. */
.mc-week{
  max-width: 1280px;
  margin: 0 auto;
  padding: 52px 24px;
}

/* Cartes recettes : bordure fine, radius 3px, label pastille. */
.mc-home-recipe-card{
  border: 1px solid rgba(26, 26, 24, 0.19);
  border-radius: 3px;
  background: #F2EDE6;
  transition: transform 0.25s, box-shadow 0.25s;
}
.mc-home-recipe-card:hover{ transform: translateY(-4px); box-shadow: 0 6px 0 rgba(26, 26, 24, 0.06); }

/* ============================================================
   Phase 4 : page recette, transposition index 4.
   Données et JSON-LD intacts, seule la présentation change.
   ============================================================ */

.mc-recipe-shell { max-width: 1280px; margin: 0 auto; padding: 40px 24px 72px; }
.mc-recipe-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: start; }
.mc-recipe-breadcrumb { font-size: 11px; font-weight: 550; letter-spacing: 0.08em; text-transform: none; color: #6B675F; margin-bottom: 16px; }
.mc-recipe-breadcrumb a { color: #1A1A18; text-decoration: none; }
.mc-recipe-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mc-recipe-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  text-transform: none;
  line-height: 0.96;
  letter-spacing: -0.022em;
  font-size: clamp(48px, 5.5vw, 84px);
  color: #1A1A18;
  margin: 0;
}
.mc-recipe-intro { font-family: "Manrope", system-ui, sans-serif; font-size: 24px; line-height: 1.35; font-style: italic; color: #1A1A18; margin-top: 16px; }
.mc-rating-row { display: flex; align-items: center; gap: 8px; margin-top: 16px; font-size: 13px; color: #1A1A18; }
.mc-recipe-meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 20px 0 0; padding: 0; list-style: none; }
.mc-recipe-meta li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 6px 12px;
  border: 1px solid rgba(26, 26, 24, 0.19);
  border-radius: 40px;
  font-size: 12px;
  color: #1A1A18;
  background: #F2EDE6;
}
.mc-action-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.mc-recipe-share-btn,
.mc-social-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 10px 14px;
  border: 1px solid #1A1A18;
  border-radius: 20px;
  background: transparent;
  color: #1A1A18;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
.mc-recipe-share-btn:hover,
.mc-social-btn:hover { background: #DCE8B5; }
/* Recipe toolbar hierarchy: one filled primary call to action, quiet
   secondary actions. Keeps a cook immediately oriented to "start cooking". */
.mc-recipe-page .mc-recipe-toolbar__actions .mc-btn-secondary {
  background: transparent;
  border: 1px solid var(--wp--preset--color--mc-charcoal, #1A1A18);
  color: var(--wp--preset--color--mc-charcoal, #1A1A18);
}
.mc-recipe-page .mc-recipe-toolbar__actions .mc-btn-secondary:hover {
  background: #F2EDE6;
  color: var(--wp--preset--color--mc-charcoal, #1A1A18);
}
.mc-recipe-page .mc-recipe-toolbar__actions .mc-recipe-jump-btn {
  background: var(--wp--preset--color--mc-charcoal, #1A1A18);
  border-color: var(--wp--preset--color--mc-charcoal, #1A1A18);
  color: #FFFFFF;
}
.mc-recipe-page .mc-recipe-toolbar__actions .mc-recipe-jump-btn:hover {
  background: #000000;
  color: #FFFFFF;
}
.mc-hero-image-wrap { margin: 0; }
.mc-hero-image-wrap img { width: 100%; border-radius: 3px; }

.mc-recipe-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(0, 1fr);
  gap: 28px;
  margin-top: 0;
  align-items: start;
}
.mc-recipe-page .mc-recipe-tabs,
.mc-recipe-tabs {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
  position: static;
  width: 100%;
  max-width: 100%;
  margin: 1.25rem 0 1.5rem;
  padding: 0.75rem 0 1rem;
  background: none;
  border-bottom: 1px solid #E8E2D9;
  overflow: visible !important;
  overflow-x: auto;
  overflow-y: visible !important;
  contain: none !important;
  box-sizing: border-box;
  scrollbar-width: none;
}
.mc-recipe-page .mc-recipe-tabs::-webkit-scrollbar,
.mc-recipe-tabs::-webkit-scrollbar {
  display: none;
}
.mc-recipe-page .mc-recipe-tabs a,
.mc-recipe-page .mc-recipe-tab,
.mc-recipe-tabs a,
.mc-recipe-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  box-sizing: border-box;
  min-height: 44px !important;
  height: 44px;
  padding: 0 1.15rem !important;
  border: 1px solid #E8E2D9 !important;
  border-radius: 999px !important;
  background: #FFFFFF !important;
  color: #1A1A18 !important;
  text-decoration: none;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip;
  transform: none !important;
}
.mc-recipe-page .mc-recipe-tabs a::after,
.mc-recipe-page .mc-recipe-tab::after,
.mc-recipe-page .mc-recipe-tabs a.is-active::after,
.mc-recipe-page .mc-recipe-tab.is-active::after,
.mc-recipe-page .mc-recipe-tab:first-child:not(.has-active-sibling)::after,
.mc-recipe-tabs a::after,
.mc-recipe-tab::after,
.mc-recipe-tabs a.is-active::after,
.mc-recipe-tab.is-active::after,
.mc-recipe-tab:first-child:not(.has-active-sibling)::after {
  content: none !important;
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  background: none !important;
  transform: none !important;
}
.mc-recipe-page .mc-recipe-tabs a.is-active,
.mc-recipe-page .mc-recipe-tab.is-active,
.mc-recipe-page .mc-recipe-tabs a:hover,
.mc-recipe-page .mc-recipe-tab:hover,
.mc-recipe-tabs a.is-active,
.mc-recipe-tab.is-active,
.mc-recipe-tabs a:hover,
.mc-recipe-tab:hover {
  background: #FFF1A6 !important;
  border-color: #1A1A18 !important;
  color: #1A1A18 !important;
}
.mc-recipe-page .mc-recipe-aside--ingredients {
  position: static;
  align-self: auto;
}
.mc-recipe-rail {
  margin-top: 1.75rem;
}
.mc-recipe-rail .mc-recipe-sidebar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  border: 0;
  background: transparent;
  padding: 0;
}

.mc-step-media--placeholder { display: none !important; }
.mc-step--text-only { grid-template-columns: minmax(0, 1fr) !important; }
.mc-recipe-page .mc-recipe-ingredients {
  min-width: 0;
}
.mc-recipe-section-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 30px;
  line-height: 1;
  color: #1A1A18;
  margin: 0 0 16px;
}
.mc-servings-control { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.mc-servings-label { font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: none; color: #1A1A18; }
.mc-servings-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid #1A1A18;
  border-radius: 999px;
  background: transparent;
  color: #1A1A18;
  cursor: pointer;
  font-size: 16px;
}
.mc-servings-btn:hover { background: #DCE8B5; }
.mc-servings-value { font-size: 14px; font-weight: 600; min-width: 2ch; text-align: center; }
.mc-ingredient-list { list-style: none; margin: 0; padding: 0; }
.mc-ingredient-item { border-bottom: 1px solid rgba(26, 26, 24, 0.19); }
.mc-ingredient-item:last-child { border-bottom: 0; }
.mc-ingredient-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; cursor: pointer; font-size: 14px; }
.mc-ingredient-checkbox { width: 20px; height: 20px; accent-color: #1A1A18; flex-shrink: 0; }
.mc-ingredient-image { width: 48px; height: 48px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.mc-ingredient-text { color: #1A1A18; }
.mc-ingredient-item:has(.mc-ingredient-checkbox:checked) .mc-ingredient-text { text-decoration: line-through; color: #6B675F; }

.mc-recipe-steps { margin: 0; padding: 0; }
.mc-recipe-steps > h2 { margin-top: 0; }
.mc-recipe-sidebar {
  border: 1px solid #E8E2D9;
  border-radius: 20px;
  background: #FFFFFF;
  padding: 25px 24px;
  color: #1A1A18;
}

@media (max-width: 1024px) {
  .mc-recipe-layout { grid-template-columns: minmax(200px, 240px) minmax(0, 1fr); }
  
}
@media (max-width: 800px) {
  .mc-recipe-hero { grid-template-columns: 1fr; gap: 28px; }
  .mc-recipe-title { font-size: clamp(48px, 14vw, 72px); }
  .mc-recipe-intro { font-size: 21px; }
  .mc-recipe-layout { grid-template-columns: 1fr; }
  .mc-recipe-aside--ingredients { position: static; }
  .mc-recipe-tabs { top: 72px; }
  
}

/* Article : hero overlay plein pot, prose + sidebar 2 colonnes. */
.mc-article { max-width: none; }
.mc-article-hero--overlay {
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  padding: 0;
  position: relative;
  width: 100%;
  min-height: clamp(280px, 42vw, 460px);
  overflow: hidden;
  background: #1A1A18;
}
.mc-article-eyebrow--pill,
.mc-article-eyebrow.mc-article-eyebrow--pill {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #1A1A18;
  background: #FFF1A6;
}
.mc-article-eyebrow--pill a { color: inherit; text-decoration: none; }
.mc-article-hero--overlay .mc-article-title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 800;
  text-transform: none;
  line-height: 1.08;
  letter-spacing: -0.03em;
  font-size: clamp(2rem, 5vw, 3.4rem);
  color: #fff;
  margin: 0 0 16px;
  max-width: 18ch;
}

.mc-article-hero--overlay .mc-article-byline {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}
.mc-article-hero__image,
.mc-article-hero__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}
.mc-article-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 300px) !important;
  gap: 32px !important;
  margin-top: 40px;
  align-items: start;
}
.mc-article-main { font-size: 17px; line-height: 1.8; color: #1A1A18; max-width: none; }
.mc-article-main h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 30px;
  line-height: 1.05;
  color: #1A1A18;
  margin: 40px 0 16px;
  scroll-margin-top: 110px;
}
.mc-article-main h3 { font-family: "Manrope", system-ui, sans-serif; font-size: 24px; font-style: italic; color: #1A1A18; margin: 32px 0 12px; }
.mc-article-main p { margin: 0 0 18px; }
.mc-article-main a { color: #1A1A18; text-underline-offset: 3px; }
.mc-article-main img { border-radius: 3px; }
/* Component: article table. Single source (single-post.css no longer styles tables). */
.mc-article-main .mc-article-table,
.mc-article-main figure.wp-block-table { margin: 32px 0; padding: 0; }
.mc-article-main .mc-article-table__scroll {
  overflow-x: auto;
  padding: 0;
  border: 1px solid #E8E2D9;
  border-radius: 16px;
  background: #FFFFFF;
}
.mc-article-main table { width: 100%; margin: 0; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.mc-article-main th,
.mc-article-main td {
  padding: 14px 18px;
  border: 0;
  border-bottom: 1px solid #E8E2D9;
  background: none;
  text-align: left;
  vertical-align: top;
}
.mc-article-main thead th {
  background: #F2EDE6;
  color: #1A1A18;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mc-article-main tbody tr:last-child td { border-bottom: 0; }
.mc-article-main tbody td:first-child { font-weight: 700; color: #1A1A18; }
.mc-article-main tbody td { color: #3A3A3A; }
@media (max-width: 640px) {
  .mc-article-main .mc-article-table__scroll table { min-width: 520px; font-size: 14px; }
  .mc-article-main th,
  .mc-article-main td { padding: 12px 14px; }
}
.mc-article-main ul, .mc-article-main ol { padding-left: 22px; margin: 0 0 18px; }
.mc-article-main li { margin-bottom: 8px; }
.mc-article-main li::marker { color: #1A1A18; font-weight: 700; }
.mc-article-main blockquote {
  margin: 24px 0;
  padding: 20px 22px;
  border: 1px solid #1A1A18;
  border-radius: 3px;
  background: #F2EDE6;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 21px;
  font-style: italic;
  line-height: 1.4;
  color: #1A1A18;
}
.mc-article-toc {
  border: 1px solid rgba(26, 26, 24, 0.19);
  border-radius: 16px;
  background: #DCE8B5;
  padding: 20px;
  font-size: 14px;
  position: relative;
  top: auto;
}
.mc-article-toc strong { display: block; font-size: 11px; font-weight: 650; letter-spacing: 0.12em; text-transform: none; color: #1A1A18; margin-bottom: 10px; }
.mc-article-toc a { color: #1A1A18; text-decoration: none; display: block; padding: 4px 0; }
.mc-article-toc a:hover { text-decoration: underline; text-underline-offset: 3px; }
.mc-article-related { margin-top: 56px; }
.mc-author-card, .mc-related-card{
  border: 1px solid rgba(26, 26, 24, 0.19);
  border-radius: 3px;
  background: #F2EDE6;
  padding: 20px;
  margin-bottom: 16px;
}
.mc-recipe-faq.mc-article-faq { margin-top: 40px; }

/* Archives : hero éditorial + catalogue. */
.mc-recipes-hero, .mc-articles-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding: 40px 0; }

.mc-recipes-hero h1, .mc-articles-hero h1, .mc-search-hero__title {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  text-transform: none;
  line-height: 0.96;
  letter-spacing: -0.022em;
  font-size: clamp(44px, 5vw, 76px);
  color: #1A1A18;
  margin: 0;
}
 .mc-search-hero__subtitle { color: #6B675F; font-size: 15px; line-height: 1.8; max-width: 420px; }
 .mc-articles-hero img { width: 100%; border-radius: 3px; }
.mc-catalog { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 24px; align-items: start; }
.mc-catalog-sidebar { border: 1px solid rgba(26, 26, 24, 0.19); border-radius: 3px; background: #F2EDE6; padding: 22px; }
.mc-catalog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.mc-catalog-search { display: flex; align-items: center; gap: 7px; min-width: 220px; border-bottom: 1px solid rgba(26, 26, 24, 0.19); }
.mc-catalog-search input { border: 0; background: transparent; color: #1A1A18; font-size: 13px; padding: 8px 0; width: 100%; }
.mc-catalog-search input::placeholder { color: #6B675F; }

.mc-results-count { color: #6B675F; font-size: 13px; margin: 0; }
.mc-sort { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #1A1A18; }
.mc-sort select { border: 1px solid #E8E2D9; border-radius: 999px; background: #F2EDE6; color: #1A1A18; font-size: 13px; padding: 8px 14px; }
.mc-recipe-grid { display: grid; gap: 22px; }

.mc-recipe-card { border: 1px solid rgba(26, 26, 24, 0.19); border-radius: 3px; background: #F2EDE6; transition: transform 0.25s, box-shadow 0.25s; }
.mc-recipe-card:hover { transform: translateY(-4px); box-shadow: 0 6px 0 rgba(26, 26, 24, 0.06); }
.mc-recipe-card__media { position: relative; overflow: hidden; border-radius: 20px 20px 0 0; }
.mc-recipe-card__media img { width: 100%; aspect-ratio: 1.37; object-fit: cover; display: block; }
.mc-recipe-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 12px;
  background: #F8F5F0;
  border-radius: 40px;
  font-size: 11px;
  font-weight: 550;
  color: #1A1A18;
}
.mc-recipe-card__body { padding: 20px 20px 18px; }
.mc-recipe-card__cat { font-size: 11px; font-weight: 650; letter-spacing: 0.12em; text-transform: none; color: #7A8A6E; }
.mc-recipe-card__title { margin: 8px 0 0; font-family: "Manrope", system-ui, sans-serif; font-weight: 500; font-size: 24px; line-height: 1.15; }
.mc-recipe-card__title a { color: #1A1A18; text-decoration: none; }
.mc-recipe-card__excerpt { color: #6B675F; font-size: 14px; margin: 8px 0 0; }
.mc-recipe-card__meta { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(26, 26, 24, 0.19); list-style: none; }
.mc-recipe-card__meta-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 550; letter-spacing: 0.06em; text-transform: none; color: #1A1A18; }
.mc-mobile-filters { display: none; }

/* Chips catégories d'articles. */
.fl-blog-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.fl-blog-chips a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 8px 14px;
  border: 1px solid rgba(26, 26, 24, 0.19);
  border-radius: 30px;
  font-size: 12px;
  color: #1A1A18;
  text-decoration: none;
  background: transparent;
}
.fl-blog-chips a:hover, .fl-blog-chips a.is-active { background: #1A1A18; border-color: #1A1A18; color: #F8F5F0; }

/* Recherche : hero, filtres, empty state, section mag. */
.mc-search-hero__eyebrow { font-size: 11px; font-weight: 650; letter-spacing: 0.15em; text-transform: none; color: #1A1A18; margin: 0 0 13px; }
.mc-search-box { display: flex; align-items: center; gap: 10px; max-width: 560px; margin-top: 24px; border-bottom: 1px solid rgba(26, 26, 24, 0.19); }
.mc-search-box input { flex: 1; border: 0; background: transparent; color: #1A1A18; font-size: 16px; padding: 10px 0; }
.mc-search-box input::placeholder { color: #6B675F; }
.mc-search-box button {
  min-height: 44px;
  padding: 10px 18px;
  border: 0;
  border-radius: 999px;
  background: #FFF1A6;
  color: #1A1A18;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.mc-search-box button:hover { background: #DCE8B5; }
.mc-search-filters { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; margin-top: 20px; }
.mc-search-filters label { display: grid; gap: 6px; font-size: 11px; font-weight: 650; letter-spacing: 0.1em; text-transform: none; color: #1A1A18; }
.mc-search-filters select { border: 1px solid #E8E2D9; border-radius: 999px; background: #F2EDE6; color: #1A1A18; font-size: 14px; padding: 10px 14px; min-height: 44px; }
.mc-search-filters__submit {
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid #E8E2D9;
  border-radius: 999px;
  background: transparent;
  color: #1A1A18;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}
.mc-search-filters__submit:hover { background: #DCE8B5; }
.mc-search-filters__reset { font-size: 13px; color: #1A1A18; }
.mc-search-results-query { margin-top: 32px; }

.mc-search-empty { padding: 55px 24px; border: 1px dashed rgba(26, 26, 24, 0.35); border-radius: 3px; text-align: center; max-width: 720px; margin: 32px auto 0; }
.mc-search-empty h2 { font-family: "Manrope", system-ui, sans-serif; font-weight: 500; font-size: 35px; color: #1A1A18; margin: 12px 0 0; }
.mc-search-empty p { color: #6B675F; margin: 12px 0 0; }
.mc-search-empty__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.mc-search-empty__button {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 12px 21px;
  border: 1px solid #1A1A1border-radius: 20px: 2px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.mc-search-empty__button--primary { background: #1A1A18; color: #F8F5F0; }
.mc-search-empty__button--primary:hover { background: #1A1A18; }
.mc-search-empty__button--secondary { background: transparent; color: #1A1A18; }
.mc-search-empty__button--secondary:hover { background: #DCE8B5; }
.mc-search-articles { max-width: 1280px; margin: 48px auto 0; }
.mc-search-articles__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.mc-search-articles__head h2 { font-family: "Manrope", system-ui, sans-serif; font-weight: 700; text-transform: none; font-size: clamp(30px, 3.4vw, 44px); line-height: 0.96; color: #1A1A18; margin: 0; }
.mc-search-articles__head a { color: #1A1A18; font-size: 13px; font-weight: 600; }
.mc-search-articles__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }

@media (max-width: 1024px) {
  .mc-article-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  
  
  .mc-catalog { grid-template-columns: 1fr; }
  .mc-catalog-sidebar { display: none; }
  .mc-mobile-filters { display: block; margin-bottom: 16px; }
  .mc-search-articles__grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .mc-article-hero, .mc-recipes-hero, .mc-articles-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .mc-article-title, .mc-recipes-hero h1, .mc-articles-hero h1, .mc-search-hero__title { font-size: clamp(32px, 8.5vw, 64px); }
  
  .mc-article-layout { grid-template-columns: 1fr; }
  
  
}

/* Centred reading column: max-width alone left the page stuck to the left edge. */
.mc-static-page { max-width: 760px; margin-inline: auto; box-sizing: content-box; }
.mc-static-page h1 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  text-transform: none;
  line-height: 0.96;
  letter-spacing: -0.022em;
  font-size: clamp(44px, 5vw, 72px);
  color: #1A1A18;
  margin: 0 0 24px;
}
.mc-static-page h2 {
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 700;
  text-transform: none;
  letter-spacing: -0.02em;
  font-size: 28px;
  color: #1A1A18;
  margin: 40px 0 12px;
  scroll-margin-top: 110px;
}
.mc-static-page p, .mc-static-page li { font-size: 17px; line-height: 1.8; color: #1A1A18; }
.mc-static-page p { margin: 0 0 16px; }
.mc-static-page ul { padding-left: 22px; }
.mc-static-page li { margin-bottom: 8px; }
.mc-static-page li::marker { color: #1A1A18; font-weight: 700; }
.mc-static-page a { color: #1A1A18; text-underline-offset: 3px; }

/* MyCuisine visual system — last layer, wins over earlier forest/Oswald rules. */
body,
button,
input,
select,
textarea {
  font-family: "Manrope", system-ui, sans-serif !important;
  font-stretch: 100% !important;
}
body {
  background: #F8F5F0 !important;
  color: #1A1A18 !important;
}
h1, h2, h3, h4,
.wp-block-post-title,
.display {
  font-family: "Manrope", system-ui, sans-serif !important;
  font-stretch: 100% !important;
  font-style: normal !important;
  letter-spacing: -0.04em !important;
  line-height: 0.95 !important;
  text-transform: none !important;
  color: #1A1A18;
}
.site-header {
  background: rgba(248, 245, 240, 0.92) !important;
  border-bottom: 1px solid rgba(232, 226, 217, 0.8) !important;
}
.mc-wordmark,
.mc-site-logo {
  font-family: "Manrope", system-ui, sans-serif !important;
  color: #1A1A18 !important;
}

/* Recipe pages keep the global display face while giving headings room to breathe. */
.mc-recipe-page h2,
.mc-recipe-page h3 {
  line-height: 1.3 !important;
}

.mc-recipe-page .mc-recipe-hero.mc-recipe-hero--banner .mc-recipe-intro {
  max-width: min(52ch, 100%) !important;
  height: auto;
  overflow: visible;
  clip: auto;
  white-space: normal;
}

.mc-recipe-page .mc-npc-header__text {
  font-size: 0.875rem;
  letter-spacing: 0.01em;
  line-height: 1.3;
  text-transform: none;
}

.mc-recipe-page .mc-faq-intro {
  font-size: 0.875rem;
  letter-spacing: normal;
  line-height: 1.5;
  text-transform: none;
}

.mc-recipe-page .mc-recipe-variation__tag {
  font-size: 0.875rem;
  letter-spacing: 0.02em;
  line-height: 1.3;
}

.primary-nav a,
.mc-bottom-nav {
  color: #1A1A18;
}
.wp-element-button,
.wp-block-button__link,
.yellow-btn,
.mc-search-empty__button--primary {
  background: #FFF1A6 !important;
  color: #1A1A18 !important;
  border: 0 !important;
  border-radius: 999px !important;
  font-weight: 600 !important;
}
.wp-block-post,
article{
  border-color: #E8E2D9;
}

/* Global link accent stays olive; footer owns its own link colors.
   :where() keeps this at zero specificity so any component-specific
   link color (buttons, pills, hero text, etc.) wins without needing
   !important overrides scattered across the codebase. */
a:where(:not(.mc-btn-primary):not(.mc-btn-secondary):not(.btn-primary):not(.btn-ink):not(.nav-pill)) { color: #7A8A6E; }
a:where(:not(.mc-btn-primary):not(.mc-btn-secondary):not(.btn-primary):not(.btn-ink):not(.nav-pill)):hover { color: #1A1A18; }

/* MyCuisine component polish */
.mc-header-icon {
  background: #F2EDE6 !important;
  color: #1A1A18 !important;
  box-shadow: inset 0 0 0 1px #E8E2D9 !important;
}
.mc-header-icon--menu {
  background: #1A1A18 !important;
  color: #F8F5F0 !important;
}
.mc-recipe-card{
  border: 1px solid #E8E2D9 !important;
  border-radius: 20px !important;
  background: #FFFFFF;
}
.mc-bottom-nav {
  background: rgba(248, 245, 240, 0.96) !important;
  border-top: 1px solid #E8E2D9 !important;
}
.mc-bottom-nav__item { color: #1A1A18 !important; }
.mc-bottom-nav__item.is-active,
.mc-bottom-nav__item[aria-current="page"] { color: #7A8A6E !important; }
.mc-filter.is-active,
.archive-filter.is-active {
  background: #1A1A18 !important;
  color: #FFFFFF !important;
  border-radius: 999px !important;
}
.nav-pill,
.mc-tag {
  background: #F2EDE6 !important;
  color: #1A1A18 !important;
  border-radius: 999px !important;
}
.nav-pill.is-active,
.nav-pill[aria-current="page"],
.mc-filter.is-active,
.archive-filter.is-active {
  background: #1A1A18 !important;
  color: #FFFFFF !important;
}

/* ============================================================
   Usability lock — last wins. Readable grids, no overlapping widgets.
   Prefer simple 2-col (main + one sidebar) and stacked mobile.
   ============================================================ */

body.wp-theme-mycuisine {
  background: #F8F5F0 !important;
  color: #1A1A18;
  font-family: "Manrope", system-ui, sans-serif !important;
  overflow-x: clip;
}

.site-header,
.site-header.wp-block-group {
  position: sticky;
  top: 0;
  z-index: 100;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.site-header__capsule,
.site-header__inner {
  position: relative;
  z-index: 2;
  display: flex !important;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0.75rem;
  pointer-events: auto;
}

.primary-nav--desktop {
  position: relative;
  z-index: 1;
}

.primary-nav--desktop .nav-pill {
  position: relative;
  z-index: 1;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0.5rem 1rem !important;
}

.primary-nav--desktop .nav-pill:hover {
  background: #F2EDE6 !important;
  color: #1A1A18 !important;
}

.primary-nav--desktop .nav-pill.is-active,
.primary-nav--desktop .nav-pill[aria-current="page"] {
  background: #1A1A18 !important;
  color: #FFFFFF !important;
}

.primary-nav a::after {
  display: none !important;
}

.header-actions {
  position: relative;
  z-index: 2;
  pointer-events: auto;
}

/* --- Single article: main + one sidebar, TOC in flow --- */
.single-post .mc-article-page,
.mc-article.mc-article-page {
  position: relative;
  isolation: isolate;
  overflow: visible;
}

.single-post .mc-article-hero--overlay,
.mc-article-page .mc-article-hero--overlay {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  width: var(--mc-shell-w, min(1248px, calc(100% - 2rem))) !important;
  max-width: none !important;
  margin: 1rem auto 0 !important;
  padding: 0 !important;
  /* Same frame as the /recettes/ and /articles/ listing hero. */
  min-height: clamp(220px, 28vw, 340px) !important;
  place-items: center !important;
  align-items: center !important;
  overflow: hidden;
  border-radius: 28px;
  background: #1A1A18;
}

.single-post .mc-article-hero--overlay .mc-article-hero__media,
.mc-article-page .mc-article-hero--overlay .mc-article-hero__media {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  min-height: 0 !important;
}

.single-post .mc-article-hero--overlay .mc-article-hero__copy,
.mc-article-page .mc-article-hero--overlay .mc-article-hero__copy {
  position: relative;
  z-index: 1;
  display: grid !important;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
  text-align: center;
  box-sizing: border-box;
}
.single-post .mc-article-hero--overlay .mc-article-hero__shade,
.mc-article-page .mc-article-hero--overlay .mc-article-hero__shade {
  background: linear-gradient(180deg, rgba(26, 26, 24, 0.35) 0%, rgba(26, 26, 24, 0.6) 100%) !important;
}
.single-post .mc-article-hero--overlay .mc-article-title,
.mc-article-page .mc-article-hero--overlay .mc-article-title {
  max-width: 26ch !important;
  margin: 0 auto !important;
  color: #FFFFFF !important;
  font-size: clamp(30px, 3.6vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.single-post .mc-article-hero--overlay .mc-article-eyebrow--pill,
.mc-article-page .mc-article-hero--overlay .mc-article-eyebrow--pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #FFF1A6;
  color: #1A1A18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
}
.single-post .mc-article-hero--overlay .mc-article-eyebrow--pill,
.mc-article-page .mc-article-hero--overlay .mc-article-eyebrow--pill {
  gap: 8px;
  margin: 0 !important;
  padding: 6px 16px !important;
  color: #1A1A18 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
}
/* Older .mc-article-eyebrow rules also target the links (pill + 18px margin). */
.single-post .mc-article-hero--overlay .mc-article-eyebrow--pill a,
.mc-article-page .mc-article-hero--overlay .mc-article-eyebrow--pill a {
  display: inline-flex !important;
  align-items: center;
  min-height: 44px;
  margin: -10px 0 !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: none !important;
  color: inherit !important;
  font-size: 11px !important;
  text-transform: uppercase !important;
  letter-spacing: 0.08em !important;
  text-decoration: none;
}
.single-post .mc-article-hero--overlay .mc-article-eyebrow--pill a:hover,
.mc-article-page .mc-article-hero--overlay .mc-article-eyebrow--pill a:hover {
  text-decoration: underline;
}
.single-post .mc-article-hero--overlay .mc-article-byline__date::before,
.mc-article-page .mc-article-hero--overlay .mc-article-byline__date::before {
  content: none !important;
  display: none !important;
}
.single-post .mc-article-hero--overlay .mc-article-byline,
.mc-article-page .mc-article-hero--overlay .mc-article-byline {
  justify-content: center;
  margin: 0;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px;
}
@media (max-width: 768px) {
  .single-post .mc-article-hero--overlay,
  .mc-article-page .mc-article-hero--overlay {
    min-height: 200px !important;
  }
  .single-post .mc-article-hero--overlay .mc-article-title,
  .mc-article-page .mc-article-hero--overlay .mc-article-title {
    font-size: clamp(26px, 7vw, 34px) !important;
  }
}

.single-post .mc-article-layout,
.mc-article-page .mc-article-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px) !important;
  gap: 1.75rem !important;
  align-items: start !important;
  width: min(100% - 2rem, 80rem) !important;
  max-width: 80rem !important;
  margin: 2rem auto 0 !important;
  padding-inline: 0 !important;
}

.single-post .mc-article-main,
.mc-article-page .mc-article-main {
  grid-column: 1 !important;
  grid-row: 1 !important;
  min-width: 0 !important;
  max-width: none !important;
  position: relative !important;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 1.25rem;
}

.single-post .mc-article-aside,
.mc-article-page .mc-article-aside {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: static !important;
  z-index: 1;
  display: flex !important;
  flex-direction: column !important;
  gap: 1rem;
  align-self: start;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  float: none !important;
}

.single-post .mc-article-toc,
.single-post .mc-article-jump,
.mc-article-page .mc-article-toc,
.mc-article-page .mc-article-jump {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  float: none !important;
  width: 100% !important;
  max-width: none !important;
  max-height: 14rem;
  overflow: auto;
  margin: 0 !important;
  z-index: 0 !important;
}

.single-post .mc-article-content-shell,
.mc-article-page .mc-article-content-shell {
  position: relative;
  z-index: 1;
  max-width: none;
  min-width: 0;
}

@media (min-width: 961px) {
  .single-post .mc-article-toc,
  .single-post .mc-article-jump,
  .mc-article-page .mc-article-toc,
  .mc-article-page .mc-article-jump {
    max-height: none;
    overflow: visible;
  }
}

.single-post .mc-article-content-shell img,
.single-post .mc-article-content-shell figure {
  position: relative;
  max-width: 100%;
  height: auto;
}

.single-post .mc-sidebar-card,
.single-post .mc-related-card,
.mc-article-page .mc-sidebar-card,
.mc-article-page .mc-related-card {
  position: relative !important;
  float: none !important;
  width: 100% !important;
  margin: 0 !important;
}

@media (max-width: 960px) {
  .single-post .mc-article-layout,
  .mc-article-page .mc-article-layout {
    grid-template-columns: 1fr !important;
  }

  .single-post .mc-article-main,
  .single-post .mc-article-aside,
  .mc-article-page .mc-article-main,
  .mc-article-page .mc-article-aside {
    grid-column: 1 !important;
    grid-row: auto !important;
    position: static !important;
    width: 100% !important;
  }
}

/* --- Recipe single: keep cook columns readable --- */
.single-recette .mc-recipe-shell,
.single-recette .mc-recipe-layout {
  position: relative;
  isolation: isolate;
}

.single-recette .mc-recipe-layout {
  display: grid !important;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr) !important;
  gap: 1.5rem !important;
  align-items: start;
}

.single-recette .mc-recipe-page .mc-recipe-layout {
  margin-block-start: clamp(32px, 4vw, 56px);
}

@media (max-width: 900px) {
  .single-recette .mc-recipe-layout {
    grid-template-columns: 1fr !important;
  }
}

/* --- Archives: prevent absolute widgets covering results --- */
.mc-recipes-page .mc-catalog,
.mc-articles-page .mc-articles-layout {
  position: relative;
  isolation: isolate;
  display: grid;
  gap: 1.5rem;
}

.mc-recipes-page .mc-catalog--shop {
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr);
  align-items: start;
}

.mc-recipes-page .mc-catalog-sidebar,
.mc-recipes-page .mc-catalog-main,
.mc-articles-page .mc-articles-main{
  position: relative !important;
  float: none !important;
  min-width: 0;
}

@media (max-width: 900px) {
  .mc-recipes-page .mc-catalog--shop,
  .mc-articles-page .mc-articles-layout {
    grid-template-columns: 1fr !important;
  }
}

/* Static / search / 404 readability */
.mc-static-page,
.mc-search-page,
.error-404 {
  position: relative;
  z-index: 1;
  color: #1A1A18;
}

.mc-static-page a,
.mc-search-page a,
.error-404 a,
.site-footer a,
.mc-footer a {
  pointer-events: auto;
}

/* Active pill: design-tokens.css forces dark text on the current section link
   via body-class + href selectors (0,3,1), which made the black pill look empty
   on /recettes/, recipe and article pages. body + a.nav-pill wins (0,3,2). */
body .primary-nav--desktop a.nav-pill.is-active,
body .primary-nav--desktop a.nav-pill[aria-current="page"] {
  background: #1A1A18 !important;
  color: #FFFFFF !important;
}

.site-header {
  background: transparent !important;
  border-bottom: 0 !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: none;
}

.site-header > .wp-block-group__inner-container,
.site-header.wp-block-group {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--mc-shell-max);
  margin-inline: auto;
  padding: 0.65rem var(--mc-shell-gutter) 0;
}

.site-header__inner,
.site-header__capsule {
  box-sizing: border-box;
  width: 100%;
  min-height: 52px;
  padding: 0.4rem 0.75rem 0.4rem 0.85rem;
  border-radius: 999px;
  box-shadow: 0 8px 28px rgba(26, 26, 24, 0.08);
}

.mc-wordmark {
  font-size: 0.98rem;
  font-weight: 700;
  font-style: normal;
  letter-spacing: -0.03em;
  color: #1A1A18;
}

.mc-wordmark__mark {
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 999px;
}

.primary-nav--desktop {
  gap: 0.15rem;
}

.mc-header-icon {
  width: 2rem;
  height: 2rem;
}

.mc-header-cta,
.yellow-btn.mc-header-cta {
  min-height: 36px;
  padding: 0.45rem 0.95rem;
  font-size: 0.82rem;
}

/* =========================================================
   Component: recipe hero banner + toolbar.
   Same frame as the listing and article heroes (340px, 28px,
   centred title, lemon breadcrumb pill, lede); facts and
   actions move to a full-width toolbar under the banner.
   ========================================================= */
.mc-recipe-page .mc-recipe-hero.mc-recipe-hero--banner {
  position: relative !important;
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center !important;
  /* Break out of the narrower recipe shell to the shared shell width. */
  width: min(1248px, calc(100vw - 2rem)) !important;
  max-width: none !important;
  min-height: clamp(220px, 28vw, 340px) !important;
  margin: 1rem 0 0 calc((100% - min(1248px, calc(100vw - 2rem))) / 2) !important;
  padding: 0 !important;
  overflow: hidden !important;
  border-radius: 28px !important;
  background: #1A1A18 !important;
  gap: 0 !important;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-hero__media {
  position: absolute !important;
  inset: 0 !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  aspect-ratio: auto !important;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-hero-image-wrap {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  aspect-ratio: auto !important;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-hero-image {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 0 !important;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-hero-image-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 24, 0.35) 0%, rgba(26, 26, 24, 0.6) 100%);
}
.mc-recipe-page .mc-recipe-hero--banner .mc-author-card { display: none !important; }
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-hero__content {
  position: relative !important;
  z-index: 1;
  display: grid !important;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 980px !important;
  margin: 0 auto !important;
  padding: 40px 24px !important;
  text-align: center;
  box-sizing: border-box;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-title {
  max-width: 26ch !important;
  margin: 0 auto !important;
  color: #FFFFFF !important;
  font-size: clamp(30px, 3.6vw, 48px) !important;
  line-height: 1.08 !important;
  letter-spacing: -0.03em;
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-breadcrumb {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  margin: 0 !important;
  padding: 6px 16px !important;
  border-radius: 999px;
  background: #FFF1A6 !important;
  color: #1A1A18 !important;
  font-size: 11px !important;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-breadcrumb a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -10px 0 !important;
  color: inherit !important;
  text-decoration: none;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-breadcrumb a:hover { text-decoration: underline; }
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro {
  max-width: min(52rem, 100%) !important;
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 16px !important;
  font-style: normal !important;
  line-height: 1.55 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.mc-recipe-page .mc-recipe-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin: 20px 0 0;
  padding: 0 0 20px;
  border-bottom: 1px solid #E8E2D9;
}
.mc-recipe-page .mc-recipe-toolbar__facts,
.mc-recipe-page .mc-recipe-toolbar__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.mc-recipe-page .mc-recipe-toolbar .mc-recipe-meta {
  display: flex !important;
  flex-wrap: wrap;
  gap: 8px !important;
  max-width: none !important;
  margin: 0 !important;
}
.mc-recipe-page .mc-recipe-toolbar .mc-action-row {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px !important;
  margin: 0 !important;
}
.mc-recipe-page .mc-recipe-toolbar .mc-recipe-reels { margin: 0 !important; width: auto !important; }
.mc-recipe-page .mc-recipe-toolbar .mc-recipe-reels__trigger { width: auto !important; }
@media (max-width: 768px) {
  .mc-recipe-page .mc-recipe-hero.mc-recipe-hero--banner { min-height: 200px !important; }
  .mc-recipe-page .mc-recipe-hero--banner .mc-recipe-title { font-size: clamp(26px, 7vw, 34px) !important; }
  .mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro { display: none; }
  .mc-recipe-page .mc-recipe-toolbar { justify-content: flex-start; }
}

/* =========================================================
   Component: page hero (static pages, search, 404).
   Same frame as the listing, article and recipe heroes.
   ========================================================= */
.mc-page-hero {
  position: relative;
  display: grid;
  place-items: center;
  width: var(--mc-shell-w, min(1248px, calc(100% - 2rem)));
  max-width: none;
  min-height: clamp(220px, 28vw, 340px);
  /* !important: WordPress block-gap resets the top margin between template blocks. */
  margin: 1rem auto 0 !important;
  padding: 0;
  overflow: hidden;
  border-radius: 28px;
  background: #1A1A18;
  box-sizing: border-box;
}
.mc-page-hero__media { position: absolute; inset: 0; }
.mc-page-hero__media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.mc-page-hero__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(26, 26, 24, 0.35) 0%, rgba(26, 26, 24, 0.6) 100%);
}
.mc-page-hero__copy {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 12px;
  width: 100%;
  max-width: 980px;
  padding: 40px 24px;
  text-align: center;
  box-sizing: border-box;
}
.mc-page-hero h1 {
  max-width: 22ch;
  margin: 0 !important;
  color: #FFFFFF !important;
  font-family: "Manrope", system-ui, sans-serif !important;
  font-size: clamp(36px, 5vw, 64px) !important;
  font-weight: 800;
  line-height: 1.02 !important;
  letter-spacing: -0.04em;
  text-transform: none;
  text-wrap: balance;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}
.mc-page-hero__crumbs {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 6px 16px;
  border-radius: 999px;
  background: #FFF1A6;
  color: #1A1A18;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mc-page-hero__crumbs a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: -10px 0;
  color: inherit !important;
  text-decoration: none;
}
.mc-page-hero__crumbs a:hover { text-decoration: underline; }
.mc-page-hero__lede {
  max-width: min(40rem, 100%);
  margin: 0 !important;
  color: rgba(255, 255, 255, 0.92) !important;
  font-size: 15px !important;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
@media (max-width: 768px) {
  .mc-page-hero { min-height: 200px; }
  .mc-page-hero h1 { font-size: clamp(30px, 9vw, 42px) !important; }
  .mc-page-hero__lede { display: none; }
}

.mc-recipe-page .mc-recipe-shell:has(> .mc-recipe-hero--banner:first-child) { padding-top: 0 !important; }
main.mc-recipe-page:has(.mc-recipe-hero--banner) { padding-top: 0 !important; }
/* A block-gap rule zeroes the top margin of direct .wp-site-blocks children. */
.wp-site-blocks > .mc-page-hero { margin-top: 1rem !important; }

/* WCAG 2.5.5: interactive icons and small text controls reach 44x44px. */
.site-header .mc-header-icon { width: 44px !important; height: 44px !important; }
.single-post .mc-share-btn { width: 44px !important; height: 44px !important; }
.mc-related-recipes__see-all {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px !important;
  border-radius: 999px;
  white-space: nowrap;
  width: auto !important;
}

/* Reels trigger: glass pill in the bottom-right corner of the recipe hero. */
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-reels {
  display: block !important;
  position: absolute !important;
  right: 20px;
  bottom: 20px;
  z-index: 2;
  width: auto !important;
  margin: 0 !important;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-reels__trigger {
  display: inline-flex !important;
  align-items: center;
  gap: 8px;
  width: auto !important;
  min-height: 44px;
  padding: 0.7rem 1.25rem !important;
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFFFFF !important;
  font-size: 0.875rem;
  font-weight: 700;
  box-shadow: none !important;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-reels__trigger:hover {
  background: #FFFFFF !important;
  color: #1A1A18 !important;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-reels__trigger span { color: inherit !important; }
@media (max-width: 768px) {
  .mc-recipe-page .mc-recipe-hero--banner .mc-recipe-reels { right: 12px; bottom: 12px; }
  .mc-recipe-page .mc-recipe-hero--banner .mc-recipe-reels__trigger { padding: 0.55rem 1rem !important; font-size: 0.8rem; }
}

/* Reels viewer: glass close and step arrows (the play/pause stays solid white). */
.mc-recipe-page .mc-recipe-reels__close,
.mc-recipe-page .mc-recipe-reels__controls .mc-recipe-reels__nav:not(.mc-recipe-reels__nav--primary) {
  border: 1px solid rgba(255, 255, 255, 0.28) !important;
  background: rgba(255, 255, 255, 0.14) !important;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #FFFFFF !important;
  box-shadow: none !important;
}
.mc-recipe-page .mc-recipe-reels__close::before { color: #FFFFFF; }
.mc-recipe-page .mc-recipe-reels__close:hover,
.mc-recipe-page .mc-recipe-reels__controls .mc-recipe-reels__nav:not(.mc-recipe-reels__nav--primary):hover {
  background: rgba(255, 255, 255, 0.28) !important;
}
.mc-recipe-page .mc-recipe-reels__controls {
  background: rgba(26, 26, 24, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Nutrition and substitutions side by side when both exist. */
.mc-recipe-page .mc-recipe-extras {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  margin-top: 2rem;
}
.mc-recipe-page .mc-recipe-extras > .mc-recipe-rail,
.mc-recipe-page .mc-recipe-extras > .mc-recipe-adaptations {
  margin: 0 !important;
  min-width: 0;
  order: 0;
}
.mc-recipe-page .mc-recipe-extras .mc-recipe-sidebar {
  height: auto;
  box-sizing: border-box;
  grid-template-columns: minmax(0, 1fr);
}
.mc-recipe-page .mc-recipe-extras > .mc-recipe-adaptations {
  padding: clamp(20px, 2.5vw, 32px);
}
.mc-recipe-page .mc-recipe-extras .mc-recipe-adaptations__header { margin-bottom: 20px; }
.mc-recipe-page .mc-recipe-extras .mc-recipe-adaptations h2 {
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
}
.mc-recipe-page .mc-recipe-extras .mc-recipe-adaptations h3 {
  font-size: 1.125rem;
  line-height: 1.35;
  margin-bottom: 12px;
}
/* Keep the shared adaptation grid responsive; only legacy notes stack. */
.mc-recipe-page .mc-recipe-extras .mc-recipe-adaptations__main {
  gap: 24px;
}
.mc-recipe-page .mc-recipe-extras .mc-recipe-practical-notes {
  grid-template-columns: minmax(0, 1fr);
  gap: 24px;
}
.mc-recipe-page .mc-recipe-extras .mc-npc-pills {
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}
/* Bottom blocks (conservation, tips, FAQ) share one vertical rhythm. */
.mc-recipe-page .mc-conservation-links,
.mc-recipe-page .mc-recipe-tips {
  margin-top: clamp(40px, 5vw, 56px);
  padding-top: 0;
  border-top: 0;
}
.mc-recipe-page .mc-conservation-links h2,
.mc-recipe-page .mc-recipe-tips h2 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 2.2vw, 2rem);
  line-height: 1.2;
}
/* Same row pattern as the substitution rows: hairline separators, no bullets,
   one body size, so every sub-section carries the same level of detail. */
.mc-recipe-page .mc-conservation-links ul,
.mc-recipe-page .mc-recipe-tips ul {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.92rem;
  line-height: 1.55;
  color: var(--mc-r-muted);
}
.mc-recipe-page .mc-conservation-links li,
.mc-recipe-page .mc-recipe-tips li {
  margin: 0;
  padding: 12px 0;
  border-top: 1px solid var(--mc-r-border);
}
.mc-recipe-page .mc-conservation-links li + li,
.mc-recipe-page .mc-recipe-tips li + li { margin-top: 0; }
.mc-recipe-page .mc-recipe-tips li strong { color: var(--mc-r-text); }
.mc-recipe-page .mc-conservation-links a { overflow-wrap: anywhere; font-weight: 700; }
/* Inside the card, the notes flow on from the variations without a second rule. */
.mc-recipe-page .mc-recipe-extras .mc-recipe-practical-notes {
  margin-top: 32px;
  padding-top: 0;
  border-top: 0;
}
.mc-recipe-page .mc-recipe-extras .mc-recipe-conservation dd,
.mc-recipe-page .mc-recipe-extras .mc-recipe-pairings dd { color: var(--mc-r-muted); }
@media (max-width: 900px) {
  .mc-recipe-page .mc-recipe-extras:has(> .mc-recipe-rail + .mc-recipe-adaptations) { grid-template-columns: minmax(0, 1fr); }
}

/* Empty editorial sections stay present for the public contract but drop the
   full card weight, so a cook is not drawn to sections that carry no verified
   information. The disclosure text remains fully readable. */
.mc-recipe-page .mc-recipe-faq[data-mc-faq-empty] {
  padding: clamp(16px, 2vw, 22px) clamp(18px, 2.4vw, 26px);
  background: transparent;
  border: 1px dashed var(--mc-r-border, #E8E2D9);
  border-radius: 18px;
}
.mc-recipe-page .mc-recipe-faq[data-mc-faq-empty] .mc-recipe-section-title {
  margin-bottom: 6px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: #6B675F;
}
.mc-recipe-page .mc-recipe-extras > .mc-recipe-adaptations--empty {
  padding: 0;
  border: 0;
  background: transparent;
}
.mc-recipe-page .mc-recipe-extras .mc-recipe-adaptations--empty .mc-recipe-adaptations__header {
  margin-bottom: 6px;
}
.mc-recipe-page .mc-recipe-extras .mc-recipe-adaptations--empty h2 {
  font-size: 1.05rem;
  line-height: 1.3;
  color: #6B675F;
}
.mc-recipe-page .mc-recipe-adaptations--empty .mc-recipe-adaptations__empty,
.mc-recipe-page .mc-recipe-adaptations--empty .mc-recipe-practical-notes__empty {
  border-top: 0;
  padding-top: 0;
}
/* Toolbar: the secondary recipe actions read as one quiet cluster next to the
   single filled primary call to action. */
.mc-recipe-page .mc-recipe-action-secondary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

/* Shared outer edges; inner prose columns keep their reading width.
   !important resets legacy WordPress inline padding and layout widths. */
.mc-recipes-page .mc-catalog--shop,
#main .mc-articles-page .mc-articles-layout,
.single-post .mc-article-page .mc-article-layout,
.mc-recipe-page .mc-recipe-shell,
.mc-article-page .mc-article-related__inner,
.mc-article-page > .mc-article-comments,
.mc-article-page > .mc-article-faq,
#main.mc-static-page,
#main.error-404,
#main.mc-search-page > .mc-search-results-query,
#main.mc-search-page > .mc-search-articles {
  width: var(--mc-shell-w, min(1248px, calc(100% - 2rem))) !important;
  max-width: none !important;
  margin-inline: auto !important;
  padding-inline: 0 !important;
  box-sizing: border-box;
}

/* The search hero and result lists each own the same shell gutter. */
#main.mc-search-page {
  padding-inline: 0 !important;
}

/* One category widget for editorial archives and individual articles. */
:is(.mc-sidebar-card, .mc-sidebar-widget):has(> .mc-sidebar-category-list) {
  padding: 20px;
  border: 1px solid var(--mc-border, #E8E2D9);
  border-radius: 16px;
  background: var(--mc-surface, #FFFFFF);
  box-shadow: 0 1px 2px rgba(26, 26, 24, 0.04);
}
:is(.mc-sidebar-card, .mc-sidebar-widget):has(> .mc-sidebar-category-list) h2 {
  margin: 0 0 14px;
  color: var(--mc-text-main, #1A1A18);
  font-size: 1.05rem;
  font-weight: 800;
}
.mc-sidebar-category-list .mc-sidebar-cats {
  display: flex;
  flex-direction: column;
  list-style: none;
  margin: 0;
  padding: 0;
}
.mc-sidebar-category-list .mc-sidebar-cats > li {
  margin: 0;
  padding: 0;
}
.mc-sidebar-category-list .mc-sidebar-cats > li + li {
  border-top: 1px solid rgba(26, 26, 24, 0.08);
}
.mc-sidebar-category-list a.mc-sidebar-category {
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 0;
  border: 0;
  color: var(--mc-text-main, #1A1A18);
  text-decoration: none;
}
.mc-sidebar-category-list .mc-sidebar-category__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--mc-cream-soft, #F2EDE6);
}
.mc-sidebar-category-list .mc-sidebar-category__icon img {
  width: 22px;
  height: 22px;
}
.mc-sidebar-category-list .mc-sidebar-category strong {
  min-width: 0;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.mc-sidebar-category-list .mc-sidebar-category small {
  color: var(--mc-text-muted, #6B675F);
  font-size: 0.8rem;
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.mc-sidebar-category-list a.mc-sidebar-category:hover strong,
.mc-sidebar-category-list a.mc-sidebar-category.is-active strong {
  color: var(--mc-olive, #7A8A6E);
}
.mc-sidebar-category-list a.mc-sidebar-category:focus-visible {
  outline: 2px solid var(--mc-olive, #7A8A6E);
  outline-offset: 3px;
}

@media (max-width: 768px) {
  .mc-recipe-page .mc-recipe-hero.mc-recipe-hero--banner {
    min-height: 0 !important;
  }

  .mc-recipe-page .mc-recipe-hero--banner .mc-recipe-hero__content {
    padding: 24px 18px 18px !important;
  }

  .mc-recipe-page .mc-recipe-hero.mc-recipe-hero--banner .mc-recipe-intro {
    display: -webkit-box !important;
    max-width: 32ch !important;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .mc-recipe-page .mc-recipe-hero--banner .mc-recipe-reels {
    position: static !important;
    align-self: end;
    justify-self: end;
    margin: 0 12px 12px !important;
  }
}
/* Keep the article breadcrumb as one compact pill with non-wrapping separators. */
.single-post .mc-article-page .mc-article-hero--split .mc-article-eyebrow--pill {
  display: inline-flex !important;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.65em;
  width: max-content;
  max-width: 100%;
  white-space: nowrap;
  font-size: clamp(10px, 1vw, 12px) !important;
  letter-spacing: 0.04em !important;
  line-height: 1.2;
}

.single-post .mc-article-page .mc-article-hero--split .mc-article-eyebrow--pill a {
  display: inline !important;
  flex: 0 0 auto;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 0;
  background: transparent !important;
  color: inherit !important;
  white-space: nowrap;
}

.single-post .mc-article-page .mc-article-hero--split .mc-article-eyebrow--pill > span[aria-hidden="true"] {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Keep the cooking sequence clear and give the ingredient rail a distinct rhythm. */
.single-recette .mc-recipe-page .mc-recipe-ingredients__header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 10px 16px;
  margin-bottom: 16px;
}

.single-recette .mc-recipe-page .mc-recipe-ingredients__header .mc-recipe-section-title {
  grid-column: 1;
  margin: 0;
}

.single-recette .mc-recipe-page .mc-servings-control,
.single-recette .mc-recipe-page .mc-ingredients-reset {
  grid-column: 1 / -1;
}

.single-recette .mc-recipe-page .mc-recipe-equipment {
  margin-top: clamp(28px, 3vw, 36px);
}

.single-recette .mc-recipe-page .mc-recipe-equipment .mc-recipe-section-title {
  margin-bottom: 12px;
}

.single-recette .mc-recipe-page .mc-recipe-equipment ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--mc-text-muted, #6B675F);
  font-size: 0.9rem;
  line-height: 1.5;
}

.single-recette .mc-recipe-page .mc-recipe-steps {
  padding: clamp(20px, 3vw, 32px);
}

.single-recette .mc-recipe-page .mc-recipe-steps__header {
  margin-bottom: clamp(20px, 2.5vw, 28px);
}

.single-recette .mc-recipe-page .mc-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "content" "media";
  align-items: start;
  column-gap: 0;
  row-gap: 10px;
  margin: 0;
  padding: clamp(18px, 2vw, 24px) 0;
}

.single-recette .mc-recipe-page .mc-step:first-child {
  padding-top: 0;
}

.single-recette .mc-recipe-page .mc-step:last-child {
  padding-bottom: 0;
}

.single-recette .mc-recipe-page .mc-step-title {
  margin-bottom: 6px;
  font-size: 1rem;
  line-height: 1.4;
}

.single-recette .mc-recipe-page .mc-step-text {
  max-width: 68ch;
  line-height: 1.6;
}

.single-recette .mc-recipe-page .mc-step-media {
  max-width: min(100%, 480px);
  aspect-ratio: 16 / 10;
  border-radius: 12px;
}

.single-recette .mc-recipe-page .mc-step-img {
  height: 100%;
  object-fit: cover;
}

@media (max-width: 520px) {
  .single-recette .mc-recipe-page .mc-recipe-steps {
    padding: 18px;
  }

  .single-recette .mc-recipe-page .mc-recipe-ingredients__header {
    gap: 8px 12px;
  }
}

/* Shared recipe template: keep step media compact and beside its instructions on desktop. */
.single-recette .mc-recipe-page .mc-step {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "content" "media";
  align-items: start;
  column-gap: 0;
  row-gap: 12px;
}

.single-recette .mc-recipe-page .mc-step-content {
  grid-area: content;
  min-width: 0;
  max-width: 68ch;
  order: 0;
}

.single-recette .mc-recipe-page .mc-step-media {
  grid-area: media;
  width: min(100%, 480px);
  max-width: 480px;
  aspect-ratio: 4 / 3;
  order: 0;
}

.single-recette .mc-recipe-page .mc-step-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-recette .mc-recipe-page .mc-step--text-only {
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "content";
}

.single-recette .mc-recipe-page .mc-recipe-tips {
  margin-top: clamp(20px, 2.5vw, 28px);
  padding: 18px 20px;
  border: 0;
  border-radius: 16px;
  background: #DCE9D9;
}

.single-recette .mc-recipe-page .mc-recipe-tips h2 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  line-height: 1.35;
}

.single-recette .mc-recipe-page .mc-recipe-tips ul {
  font-size: 0.9375rem;
}

.single-recette .mc-recipe-page .mc-recipe-tips li {
  border-top-color: rgba(30, 61, 43, 0.16);
}

.single-recette .mc-recipe-page .mc-recipe-foot-note {
  max-width: 1040px;
  margin: clamp(28px, 3vw, 40px) auto 0;
  padding: 18px 22px;
  border-radius: 16px;
  background: #DCE9D9;
  color: #1A1A18;
}

.single-recette .mc-recipe-page .mc-recipe-foot-note p {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.6;
}

@media (min-width: 801px) {
  .single-recette .mc-recipe-page .mc-step:not(.mc-step--text-only) {
    grid-template-columns: minmax(0, 1fr) minmax(180px, 240px);
    grid-template-areas: "content media";
    column-gap: clamp(20px, 2.5vw, 32px);
    row-gap: 0;
  }

  .single-recette .mc-recipe-page .mc-step-media {
    width: 100%;
    max-width: none;
  }

  .single-recette .mc-recipe-page .mc-step-content {
    max-width: 68ch;
  }
}

/* Let recipe readers scan the hero while keeping complete editorial copy available. */
.mc-recipe-page .mc-recipe-hero.mc-recipe-hero--banner .mc-recipe-intro-disclosure {
  max-width: min(52rem, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-size: 16px;
  line-height: 1.55;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro-disclosure summary {
  display: block;
  min-height: 44px;
  cursor: pointer;
  list-style: none;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro-disclosure summary::-webkit-details-marker { display: none; }
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro-disclosure summary:focus-visible {
  outline: 2px solid #FFF1A6;
  outline-offset: 4px;
  border-radius: 2px;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro-disclosure__toggle {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 8px;
  color: #FFF1A6;
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-shadow: none;
}
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro-disclosure__toggle--less,
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro-disclosure[open] .mc-recipe-intro-disclosure__toggle--more { display: none; }
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro-disclosure[open] .mc-recipe-intro-disclosure__toggle--less { display: inline-flex; }
.mc-recipe-page .mc-recipe-hero--banner .mc-recipe-intro-disclosure__rest {
  max-width: 52rem;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.92);
  font: inherit;
  text-shadow: inherit;
}

/* Give recipe guidance a clear sequence after the cooking steps. */
.single-recette .mc-recipe-page .mc-recipe-extras {
  margin-block: clamp(24px, 3vw, 36px) 0;
}

.single-recette .mc-recipe-page .mc-conservation-links {
  margin-top: clamp(28px, 3.5vw, 40px);
  padding-top: 0;
}

.single-recette .mc-recipe-page .mc-recipe-tips {
  margin-top: clamp(28px, 3.5vw, 40px);
  padding-top: 0;
  border-top: 0;
}

.single-recette .mc-recipe-page .mc-recipe-bottom {
  margin-top: clamp(28px, 3.5vw, 40px);
}

.single-recette .mc-recipe-page .mc-conservation-links h2,
.single-recette .mc-recipe-page .mc-recipe-tips h2 {
  margin-bottom: 10px;
}

.single-recette .mc-recipe-page .mc-conservation-links ul,
.single-recette .mc-recipe-page .mc-recipe-tips ul {
  line-height: 1.55;
}

.single-recette .mc-recipe-page .mc-conservation-links li + li,
.single-recette .mc-recipe-page .mc-recipe-tips li + li {
  margin-top: 6px;
}

@media (max-width: 520px) {
  .single-recette .mc-recipe-page .mc-conservation-links {
    margin-top: 28px;
    padding-top: 18px;
  }

  .single-recette .mc-recipe-page .mc-recipe-tips {
    margin-top: 20px;
  }

  .single-recette .mc-recipe-page .mc-recipe-bottom {
    margin-top: 28px;
  }
}

/* Articles connexes et commentaires : même largeur que la colonne de l'article (mc-article-layout). */
.mc-article-page .mc-article-related__inner,
.mc-article-page > .mc-article-comments {
  width: min(100%, 1240px) !important;
}
