/* Recettes healthy · direction B « Typo géante » (1.2) : blanc cassé, noir, citron vert, titres XXL. */
@font-face { font-family: "RH Display"; src: url("fonts/bricolage-grotesque-latin-standard-normal.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "RH Texte"; src: url("fonts/dm-sans-latin-standard-normal.woff2") format("woff2"); font-weight: 100 1000; font-style: normal; font-display: swap; }
@font-face { font-family: "RH Texte"; src: url("fonts/dm-sans-latin-standard-italic.woff2") format("woff2"); font-weight: 100 1000; font-style: italic; font-display: swap; }

body.rh-body { margin: 0; background: #fbfaf7; }
.rh-site {
  --rh-paper: #fbfaf7;
  --rh-ink: #121212;
  --rh-muted: #5f5f5a;
  --rh-line: #121212;
  --rh-soft-line: #dedbd3;
  --rh-lime: #c6f432;
  --rh-lime-soft: #eefbc4;
  --rh-display: "RH Display", "Bricolage Grotesque", system-ui, sans-serif;
  --rh-sans: "RH Texte", "DM Sans", system-ui, sans-serif;
  --rh-pad: clamp(1rem, 3vw, 2.5rem);
  background: var(--rh-paper);
  color: var(--rh-ink);
  font: 400 1.0625rem/1.6 var(--rh-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
.rh-site *, .rh-site *::before, .rh-site *::after { box-sizing: border-box; }
.rh-site [hidden] { display: none !important; }
.rh-site a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
.rh-site :focus-visible { outline: 2px solid var(--rh-ink); outline-offset: 3px; }
.rh-site :target { scroll-margin-top: 2rem; }
.rh-site h1, .rh-site h2, .rh-site h3 { margin: 0; color: var(--rh-ink); font-family: var(--rh-display); font-weight: 800; }
.rh-site p { margin-block: 0 1em; }
.rh-site img { display: block; width: 100%; height: 100%; object-fit: cover; }
.rh-wrap { width: calc(100% - 2 * var(--rh-pad)); max-width: 100rem; margin-inline: auto; }
.rh-skip { position: absolute; inset: 1rem auto auto 1rem; transform: translateY(-300%); background: #fff; padding: .65rem 1rem; z-index: 100000; }
.rh-skip:focus { transform: translateY(0); }
.rh-preview { padding: .35rem 1rem; background: var(--rh-ink); color: var(--rh-lime); text-align: center; font-size: .75rem; font-weight: 600; letter-spacing: .02em; }

/* En-tête : sobre, texte seul */
.rh-header-inner { display: flex; align-items: center; justify-content: space-between; gap: .5rem 2rem; flex-wrap: wrap; min-height: 4.25rem; }
.rh-brand { display: inline-flex; align-items: center; gap: .45rem; margin: 0; font: 800 1.15rem/1 var(--rh-display); letter-spacing: -.03em; text-transform: lowercase; text-decoration: none; color: var(--rh-ink); }
.rh-brand-mark { width: .7rem; aspect-ratio: 1; border-radius: 50%; background: var(--rh-lime); box-shadow: inset 0 0 0 2px var(--rh-ink); }
.rh-header nav { display: flex; flex-wrap: wrap; gap: .2rem 1.8rem; }
.rh-header nav a { padding-block: .3rem; font-size: .95rem; font-weight: 500; text-decoration: none; background: linear-gradient(var(--rh-ink), var(--rh-ink)) no-repeat 0 100% / 0 1px; transition: background-size .25s ease; }
.rh-header nav a:hover, .rh-header nav a[aria-current] { background-size: 100% 1px; }

/* Ouverture : titre XXL, ligne d’infos, grande photo */
.rh-hero { padding-top: clamp(.5rem, 2vw, 1.5rem); }
.rh-hero-head { display: grid; gap: clamp(.75rem, 2vw, 1.25rem); }
.rh-kicker { justify-self: start; display: inline-flex; align-items: center; gap: .45rem; margin: 0; padding: .3rem .8rem; border: 1px solid var(--rh-ink); border-radius: 999px; font-size: .8rem; font-weight: 600; }
.rh-kicker::before { content: ""; width: .5rem; aspect-ratio: 1; border-radius: 50%; background: var(--rh-lime); box-shadow: inset 0 0 0 1px var(--rh-ink); }
.rh-hero-head h1 { font-size: clamp(2.9rem, 9.6vw, 10.5rem); line-height: .88; letter-spacing: -.05em; text-wrap: balance; overflow-wrap: break-word; hyphens: manual; }
.rh-recette .rh-hero-head h1, .rh-guide .rh-hero-head h1 { font-size: clamp(2.6rem, 7.4vw, 8rem); }
.rh-info .rh-hero-head h1 { font-size: clamp(2.6rem, 6.5vw, 6.5rem); }
.rh-home .rh-hero-head h1 { font-size: clamp(3rem, 11.4vw, 12.5rem); }
.rh-pill { display: inline-block; width: 1.05em; height: .66em; margin-inline: .02em; vertical-align: .04em; overflow: hidden; border-radius: 999px; transition: width .5s cubic-bezier(.2, .7, .2, 1); }
.rh-pill:hover { width: 1.6em; }
.rh-pill img { width: 100%; height: 100%; }
.rh-hero-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 1rem 2.5rem; align-items: start; margin-top: clamp(1.5rem, 3vw, 2.5rem); padding-block: 1.25rem; border-top: 1px solid var(--rh-line); border-bottom: 1px solid var(--rh-line); }
.rh-hero-intro p { max-width: 52ch; margin: 0; font-size: 1.05rem; }
.rh-hero-meta:empty { display: none; }
.rh-facts { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0; }
.rh-facts span { padding: .45rem .9rem; border-radius: 999px; background: var(--rh-lime-soft); font-weight: 600; font-size: .92rem; }
.rh-byline { margin: .7rem 0 0; color: var(--rh-muted); font-size: .92rem; }
.rh-hero-actions { display: grid; justify-items: end; gap: .55rem; }
.rh-jumps p { display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; margin: 0; font-size: 0; }
.rh-jumps a, .rh-button { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.9rem; padding: .6rem 1.3rem; border: 1px solid var(--rh-ink); border-radius: 999px; background: transparent; color: var(--rh-ink); font: 600 .95rem/1.1 var(--rh-sans); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.rh-jumps a:first-child { background: var(--rh-lime); border-color: var(--rh-lime); }
.rh-jumps a:first-child::after { content: "→"; }
.rh-jumps a:hover, .rh-button:hover { background: var(--rh-ink); border-color: var(--rh-ink); color: #fff; }
.rh-hero-media { margin-top: clamp(1rem, 2.5vw, 2rem); aspect-ratio: 21 / 9; overflow: hidden; border-radius: .5rem; }
.rh-recette .rh-hero-media { aspect-ratio: 2 / 1; }

/* Accueil : quatre entrées en colonnes éditoriales */
.rh-shortcuts { margin-top: clamp(2.5rem, 6vw, 5rem); }
.rh-home .rh-hero-row { border-bottom: 0; }
.rh-shortcuts-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--rh-line); counter-reset: rh-entree; }
.rh-shortcut { position: relative; display: grid; align-content: start; gap: .4rem; padding: 1.25rem 1.5rem 2rem 0; text-decoration: none; counter-increment: rh-entree; }
.rh-shortcut + .rh-shortcut { padding-left: 1.5rem; border-left: 1px solid var(--rh-line); }
.rh-shortcut::before { content: "0" counter(rh-entree); font-size: .8rem; font-weight: 600; color: var(--rh-muted); }
.rh-shortcut svg { display: none; }
.rh-shortcut strong { font: 800 clamp(1.8rem, 3vw, 2.8rem)/.95 var(--rh-display); letter-spacing: -.045em; }
.rh-shortcut strong::after { content: " ↗"; font-weight: 400; opacity: 0; transition: opacity .2s ease; }
.rh-shortcut:hover strong::after { opacity: 1; }
.rh-shortcut span { max-width: 26ch; color: var(--rh-muted); font-size: .95rem; }
.rh-shortcut:hover { background: linear-gradient(var(--rh-lime), var(--rh-lime)) no-repeat 0 0 / 100% 4px; }

/* Catalogue */
.rh-catalogue { padding-block: clamp(3rem, 7vw, 6rem) clamp(2rem, 5vw, 4rem); }
.rh-section-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); align-items: end; gap: 1rem 2rem; margin-bottom: 1.5rem; }
.rh-section-head .rh-kicker { grid-column: 1 / -1; }
.rh-section-head h2 { font-size: clamp(2.3rem, 5vw, 4.6rem); line-height: .9; letter-spacing: -.05em; }
.rh-section-head > p { margin: 0; color: var(--rh-muted); }
.rh-filters { display: grid; grid-template-columns: minmax(12rem, 2fr) repeat(2, minmax(9rem, 1fr)) auto; align-items: end; gap: 1rem; padding-block: 1rem; border-top: 1px solid var(--rh-line); border-bottom: 1px solid var(--rh-line); }
.rh-filters label { display: grid; gap: .3rem; min-width: 0; font-size: .78rem; font-weight: 600; color: var(--rh-muted); }
.rh-filters input, .rh-filters select { width: 100%; min-width: 0; min-height: 2.9rem; padding: .5rem 1.1rem; border: 1px solid var(--rh-soft-line); border-radius: 999px; background: #fff; color: var(--rh-ink); font: 500 1rem var(--rh-sans); }
.rh-filters input:focus, .rh-filters select:focus { border-color: var(--rh-ink); outline: none; }
.rh-count { min-height: 1.5rem; margin: 0; padding-block: .9rem; color: var(--rh-muted); font-size: .88rem; }
.rh-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.25rem 1rem; }
.rh-home .rh-grid { display: flex; gap: 1rem; margin-inline: calc(-1 * var(--rh-pad)); padding-inline: var(--rh-pad); overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--rh-pad); scrollbar-width: thin; scrollbar-color: var(--rh-ink) transparent; padding-bottom: 1rem; }
.rh-home .rh-card { flex: 0 0 clamp(15rem, 23vw, 21rem); scroll-snap-align: start; }
.rh-card { min-width: 0; }
.rh-card a { display: block; text-decoration: none; }
.rh-card-media { aspect-ratio: 3 / 4; overflow: hidden; border-radius: .5rem; background: #ebe8e1; }
.rh-card-media img { transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
.rh-card a:hover .rh-card-media img { transform: scale(1.05); }
.rh-card-copy { display: grid; grid-template-columns: 1fr auto; gap: .2rem .75rem; padding-top: .8rem; }
.rh-card-tag { font-size: .82rem; font-weight: 500; color: var(--rh-muted); }
.rh-card p { grid-column: 2; grid-row: 1; margin: 0; color: var(--rh-muted); font-size: .82rem; text-align: right; }
.rh-card h3 { grid-column: 1 / -1; font-size: 1.4rem; line-height: 1.02; letter-spacing: -.035em; }
.rh-card a:hover h3 { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--rh-lime); text-underline-offset: .15em; }

/* Texte éditorial */
.rh-prose { max-width: 50rem; margin: clamp(3rem, 7vw, 5.5rem) auto clamp(3.5rem, 8vw, 6rem); overflow-wrap: anywhere; }
.rh-catalogue + .rh-wrap .rh-prose { margin-top: 0; }
.rh-prose > :first-child { margin-top: 0; }
.rh-prose h2 { margin: 2em 0 .55em; padding-top: 1rem; border-top: 1px solid var(--rh-line); font-size: clamp(2rem, 4.2vw, 3.3rem); line-height: .95; letter-spacing: -.045em; }
.rh-prose h3 { margin: 1.6em 0 .5em; font-size: 1.45rem; letter-spacing: -.03em; }
.rh-prose ul, .rh-prose ol { padding-inline-start: 1.2rem; }
.rh-prose li { margin-block: .35rem; padding-inline-start: .3rem; }
.rh-prose ul li::marker { content: "— "; }
.rh-prose figure { margin: 2rem 0; }
.rh-prose figure img { height: auto; border-radius: .5rem; }
.rh-prose figcaption { margin-top: .6rem; color: var(--rh-muted); font-size: .86rem; }
.rh-prose .wp-block-table { margin: 1.5rem 0; overflow-x: auto; }
.rh-prose table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: .95rem; }
.rh-prose th, .rh-prose td { padding: .8em .7em .8em 0; border-bottom: 1px solid var(--rh-soft-line); text-align: left; vertical-align: top; }
.rh-prose th { border-bottom: 1px solid var(--rh-line); font-size: .8rem; font-weight: 600; color: var(--rh-muted); }
.rh-prose td:first-child { font-weight: 600; }

/* Fiche recette : ingrédients à gauche, étapes à droite */
.rh-fiche { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.55fr); grid-auto-flow: row dense; align-items: start; column-gap: clamp(1.5rem, 4vw, 3.5rem); margin: 0 calc(50% - min(50vw - var(--rh-pad), 38rem)) 3rem; padding: clamp(1.5rem, 3vw, 2.5rem); border-radius: .75rem; background: #fff; }
.rh-fiche > * { grid-column: 1 / -1; }
.rh-fiche > h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.rh-fiche > h2 + p { margin-bottom: 1.5rem; color: var(--rh-muted); }
.rh-fiche > h3:first-of-type, .rh-fiche > ul { grid-column: 1; }
.rh-fiche > h3:nth-of-type(2), .rh-fiche > ol, .rh-fiche > figure { grid-column: 2; }
.rh-fiche h3 { margin: .5rem 0 .9rem; padding-bottom: .6rem; border-bottom: 1px solid var(--rh-line); font-size: 1.25rem; }
.rh-fiche > ul { position: sticky; top: 1.5rem; margin: 0; padding: 0; list-style: none; }
.rh-fiche > ul li { position: relative; margin: 0; padding: .6rem 0 .6rem 2rem; border-bottom: 1px solid var(--rh-soft-line); }
.rh-fiche > ul li::marker { content: none; }
.rh-fiche > ul li::before { content: ""; position: absolute; left: 0; top: .9rem; width: 1rem; height: 1rem; border: 1.5px solid var(--rh-ink); border-radius: 50%; }
.rh-fiche > ol { counter-reset: rh-etape; margin: 0; padding: 0; list-style: none; }
.rh-fiche > ol > li { counter-increment: rh-etape; display: grid; grid-template-columns: 3.4rem 1fr; margin: 0 0 1.4rem; padding: 0; }
.rh-fiche > ol > li::before { content: counter(rh-etape, decimal-leading-zero); font: 800 2rem/1 var(--rh-display); letter-spacing: -.05em; }
.rh-fiche > figure { margin: .5rem 0 0 3.4rem; }

/* Pied de page : grand logotype */
.rh-footer { margin-top: 2rem; padding: clamp(2.5rem, 6vw, 4rem) 0 1.5rem; background: var(--rh-ink); color: #cfcfc8; }
.rh-footer .rh-wrap { display: grid; gap: 2rem; }
.rh-footer .rh-brand { order: 2; display: block; color: var(--rh-paper); font-size: clamp(3rem, 13.5vw, 14rem); line-height: .8; letter-spacing: -.06em; }
.rh-footer .rh-brand-mark { display: none; }
.rh-footer nav { display: flex; flex-wrap: wrap; gap: .4rem 1.8rem; font-size: .95rem; }
.rh-footer nav a { color: var(--rh-paper); text-decoration: none; }
.rh-footer nav a:hover { color: var(--rh-lime); }
.rh-print-source { display: none; }

@media (max-width: 75rem) { .rh-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 62rem) {
  .rh-hero-row { grid-template-columns: minmax(0, 1fr) auto; }
  .rh-hero-meta { grid-row: 2; }
  .rh-shortcuts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-shortcut:nth-child(3) { padding-left: 0; border-left: 0; }
  .rh-shortcut:nth-child(n+3) { border-top: 1px solid var(--rh-line); }
  .rh-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rh-section-head { grid-template-columns: 1fr; }
}
@media (max-width: 48rem) {
  .rh-header-inner { padding-block: .8rem; }
  .rh-header nav { gap: .1rem 1.1rem; }
  .rh-header nav a { font-size: .88rem; }
  .rh-hero-row { grid-template-columns: 1fr; }
  .rh-hero-meta { grid-row: auto; }
  .rh-hero-actions { justify-items: start; }
  .rh-jumps p { align-items: flex-start; }
  .rh-hero-media, .rh-recette .rh-hero-media { aspect-ratio: 4 / 3; }
  .rh-pill:hover { width: 1.05em; }
  .rh-shortcut { padding: 1rem 1rem 1.4rem 0; }
  .rh-shortcut + .rh-shortcut { padding-left: 1rem; }
  .rh-shortcut:nth-child(3) { padding-left: 0; }
  .rh-shortcut span { display: none; }
  .rh-grid { gap: 1.75rem .75rem; }
  .rh-card h3 { font-size: 1.12rem; }
  .rh-card p { grid-column: 1; grid-row: auto; text-align: left; }
  .rh-fiche { display: block; margin-inline: calc(-1 * var(--rh-pad)); border-radius: 0; }
  .rh-fiche > ul { position: static; margin-bottom: 1.5rem; }
  .rh-fiche > ol > li { grid-template-columns: 2.6rem 1fr; }
  .rh-fiche > ol > li::before { font-size: 1.5rem; }
  .rh-fiche > figure { margin-left: 0; }
  .rh-prose th, .rh-prose td { padding: .55em .4em .55em 0; font-size: .86rem; }
}
@media (max-width: 26rem) { .rh-grid, .rh-filters { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .rh-site *, .rh-site *::before, .rh-site *::after { transition: none !important; } }
@media print {
  body.rh-body { margin: 0 !important; background: #fff; }
  .rh-site { background: #fff; color: #111; font: 11pt/1.4 var(--rh-sans); }
  #wpadminbar, .rh-header, .rh-preview, .rh-footer, .rh-skip, .rh-hero-media, .rh-shortcuts,
  .rh-hero-row, .rh-catalogue, .rh-kicker, .rh-pill { display: none !important; }
  .rh-wrap { width: auto; margin: 0; padding: 0; }
  .rh-hero-head h1 { font-size: 26pt !important; line-height: 1; margin-bottom: .6rem; }
  .rh-prose { max-width: none; margin: 0; }
  .rh-prose h2 { font-size: 16pt; border: 0; padding: 0; }
  .rh-prose h3 { font-size: 13pt; }
  .rh-fiche { display: block; margin: 0; padding: 0; }
  .rh-fiche > ul { position: static; }
  .rh-recette .rh-prose > :not(.rh-fiche) { display: none; }
  .rh-site h2, .rh-site h3 { break-after: avoid; }
  .rh-site tr, .rh-site li { break-inside: avoid; }
  .rh-site thead { display: table-header-group; }
  .rh-print-source { display: block; margin-top: 1rem; font-size: 9pt; }
}
