/*
 * Réviser Histoire — index du blog
 * Direction : bureau d'étude, papier ivoire, noyer et tableau vert.
 * Remplacement complet de /assets/css/rh-blog-static.css
 */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700;9..144,800&display=swap');

:root {
  --rh-ink: #29231d;
  --rh-muted: #6e6257;
  --rh-paper: #fffdf7;
  --rh-paper-deep: #f3ecdf;
  --rh-canvas: #e8dfcf;
  --rh-wood: #3c2418;
  --rh-wood-light: #72472d;
  --rh-green: #173f35;
  --rh-green-soft: #e4eee8;
  --rh-burgundy: #7d2f36;
  --rh-gold: #c5913f;
  --rh-blue: #315f78;
  --rh-border: #d9cdbd;
  --rh-shadow: 0 18px 48px rgba(49, 33, 21, .12);
  --rh-shadow-soft: 0 8px 24px rgba(49, 33, 21, .08);
  --rh-radius: 18px;
  --rh-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --rh-sans: 'DM Sans', Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  color: var(--rh-ink);
  font-family: var(--rh-sans);
  font-size: 1rem;
  line-height: 1.75;
  background:
    radial-gradient(circle at 18% 4%, rgba(255,255,255,.8), transparent 31rem),
    repeating-linear-gradient(0deg, rgba(79,53,33,.022) 0 1px, transparent 1px 5px),
    var(--rh-canvas);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .32;
  background-image: radial-gradient(rgba(65,45,28,.13) .55px, transparent .7px);
  background-size: 7px 7px;
}

a { color: var(--rh-green); text-underline-offset: .2em; }
a:hover { color: var(--rh-burgundy); }
img { max-width: 100%; height: auto; }
button, input { font: inherit; }

.screen-reader-text {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.rh-blog-page {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: clamp(1rem, 2.5vw, 2.5rem);
}

/* Hero — panneau en bois et feuille de cours */
.rh-blog-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 390px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  padding: clamp(3rem, 7vw, 6.5rem) clamp(1.25rem, 6vw, 6rem);
  color: #fffaf0;
  border: 1px solid rgba(67,37,22,.62);
  border-radius: 26px 26px 12px 12px;
  box-shadow: 0 24px 55px rgba(49,29,17,.22), inset 0 0 0 1px rgba(255,255,255,.08);
  background:
    linear-gradient(105deg, transparent 0 38%, rgba(255,255,255,.035) 39% 41%, transparent 42% 100%),
    repeating-linear-gradient(3deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px),
    linear-gradient(135deg, #2c1a12 0%, #57341f 48%, #3a2115 100%);
}

.rh-blog-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 18px;
  border: 1px solid rgba(225,188,125,.3);
  border-radius: 16px;
}

.rh-blog-hero::after {
  content: 'HISTOIRE';
  position: absolute;
  z-index: -1;
  right: clamp(-1rem, 1vw, 1rem);
  bottom: -2.3rem;
  color: rgba(255,255,255,.035);
  font-family: var(--rh-serif);
  font-size: clamp(5rem, 13vw, 11rem);
  font-weight: 800;
  letter-spacing: -.04em;
  line-height: 1;
}

.rh-blog-kicker {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  margin-bottom: 1.3rem;
  padding: .55rem 1rem;
  color: #f7ddb0;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.4;
  text-transform: uppercase;
  border: 1px solid rgba(236,201,144,.35);
  border-radius: 999px;
  background: rgba(23,13,8,.25);
  backdrop-filter: blur(5px);
}

.rh-blog-hero h1 {
  margin: 0;
  color: #fffaf0;
  font-family: var(--rh-serif);
  font-size: clamp(3.3rem, 9vw, 7rem);
  font-weight: 800;
  letter-spacing: -.045em;
  line-height: .94;
  text-shadow: 0 4px 20px rgba(0,0,0,.2);
}

.rh-blog-intro {
  width: min(100%, 760px);
  margin: 1.5rem auto 0;
  color: rgba(255,250,240,.88);
  font-size: clamp(1.04rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

.rh-blog-intro strong { color: #fff; }

.rh-blog-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: .65rem;
  margin-top: 1.7rem;
}

.rh-blog-meta span {
  padding: .58rem .82rem;
  color: #fff8e9;
  font-size: .83rem;
  font-weight: 600;
  line-height: 1.3;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 8px;
  background: rgba(19,11,7,.28);
}

/* Layout principal */
.rh-blog-layout {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  gap: clamp(1.3rem, 2.7vw, 2.7rem);
  align-items: start;
  margin-top: 2.2rem;
}

.rh-blog-content {
  min-width: 0;
  padding: clamp(1.2rem, 3.7vw, 3.7rem);
  border: 1px solid rgba(125,100,75,.3);
  border-radius: 10px 10px 24px 24px;
  background:
    linear-gradient(90deg, rgba(125,73,40,.035), transparent 8%, transparent 92%, rgba(125,73,40,.03)),
    var(--rh-paper);
  box-shadow: var(--rh-shadow);
}

.rh-blog-content > section,
.rh-blog-content > div { scroll-margin-top: 6rem; }

.rh-blog-content section:not(.rh-blog-index-title-section):not(.rh-photo-section):not(.rh-blog-index-section):not(.rh-related):not(.rh-faq-box) {
  margin: clamp(2.2rem, 5vw, 4.5rem) 0;
}

.rh-blog-content h2,
.rh-blog-content h3 { text-wrap: balance; }

.rh-blog-content h2 {
  position: relative;
  margin: 0 0 1rem;
  color: var(--rh-wood);
  font-family: var(--rh-serif);
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  line-height: 1.18;
  letter-spacing: -.025em;
}

.rh-blog-content h2::after {
  content: '';
  display: block;
  width: 68px;
  height: 3px;
  margin-top: .72rem;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--rh-burgundy), var(--rh-gold));
}

.rh-blog-content p { margin: .75rem 0; }
.rh-blog-content strong { color: #31251d; }

.breadcrumbs { margin: 0 0 1.6rem; }
.breadcrumbs-list {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  align-items: center;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--rh-muted);
  font-size: .88rem;
}
.breadcrumbs-item + .breadcrumbs-item::before { content: '›'; margin-right: .45rem; color: #ab9a87; }
.breadcrumbs a { text-decoration: none; font-weight: 600; }
.breadcrumbs .active { color: var(--rh-muted); }

/* Sommaire */
.rh-blog-sidebar { position: sticky; top: 1.25rem; }
.rh-toc-toggle { display: none; }
.rh-toc {
  position: relative;
  overflow: hidden;
  padding: 1rem;
  border: 1px solid rgba(72,42,25,.5);
  border-radius: 12px;
  color: #fff8ec;
  box-shadow: var(--rh-shadow-soft);
  background:
    repeating-linear-gradient(2deg, rgba(255,255,255,.025) 0 1px, transparent 1px 6px),
    linear-gradient(145deg, #4e2e1c, #2e1a11);
}
.rh-toc::before {
  content: '';
  position: absolute;
  inset: 7px;
  pointer-events: none;
  border: 1px solid rgba(219,180,116,.2);
  border-radius: 8px;
}
.rh-toc-head { position: relative; display: flex; justify-content: space-between; align-items: center; padding: .35rem .55rem .65rem; }
.rh-toc-title { margin: 0; color: #f2d6a4; font-family: var(--rh-serif); font-size: 1.2rem; font-weight: 700; }
.rh-toc-close { display: none; }
.rh-toc a {
  position: relative;
  display: block;
  padding: .62rem .7rem;
  color: rgba(255,250,241,.8);
  font-size: .88rem;
  line-height: 1.25;
  text-decoration: none;
  border-radius: 7px;
  transition: color .18s ease, background .18s ease, transform .18s ease;
}
.rh-toc a:hover,
.rh-toc a:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.09);
  transform: translateX(3px);
  outline: none;
}
.rh-toc-backdrop { display: none; }

/* Titre éditorial */
.rh-blog-index-title-section {
  margin: 0 0 2rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  text-align: center;
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  background: linear-gradient(135deg, #f7f0e4, #fffdf8 55%, #efe5d6);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.55);
}
.super-h1 { display: grid; gap: .2rem; }
.super-h1 .main-line {
  color: var(--rh-wood);
  font-family: var(--rh-serif);
  font-size: clamp(2rem, 5vw, 4.1rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.04em;
}
.super-h1 .secondary-line {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: .55rem;
  font-family: var(--rh-serif);
  font-size: clamp(1.55rem, 3.5vw, 2.75rem);
  font-weight: 700;
}
.gradient-text.college { color: var(--rh-burgundy); }
.gradient-text.lycee { color: var(--rh-green); }
.ampersand { color: var(--rh-gold); font-style: italic; }
.super-h1 .tagline { margin-top: .5rem; color: var(--rh-muted); font-size: clamp(.98rem, 1.6vw, 1.1rem); }
.super-h1 .highlight {
  color: var(--rh-ink);
  background: linear-gradient(transparent 62%, rgba(208,167,89,.38) 62%);
}

/* Citation */
.history-quote-card {
  position: relative;
  overflow: hidden;
  margin: 2rem 0;
  padding: clamp(2rem, 5vw, 3.7rem);
  color: #eef5ef;
  border: 8px solid #53331f;
  border-radius: 10px;
  background:
    radial-gradient(circle at 24% 30%, rgba(255,255,255,.05), transparent 20rem),
    repeating-linear-gradient(0deg, rgba(255,255,255,.015) 0 1px, transparent 1px 4px),
    #173f35;
  box-shadow: var(--rh-shadow-soft), inset 0 0 30px rgba(0,0,0,.16);
}
.history-quote-badge {
  display: inline-block;
  padding: .38rem .72rem;
  color: #f3deb4;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  border: 1px solid rgba(243,222,180,.28);
  border-radius: 999px;
}
.history-quote-mark {
  position: absolute;
  top: .2rem;
  right: 1.5rem;
  color: rgba(255,255,255,.09);
  font-family: var(--rh-serif);
  font-size: 10rem;
  line-height: 1;
}
.history-quote-text {
  position: relative;
  max-width: 790px;
  margin: 1.4rem 0 1rem !important;
  font-family: var(--rh-serif);
  font-size: clamp(1.5rem, 3.3vw, 2.55rem);
  font-weight: 600;
  line-height: 1.35;
}
.history-quote-text span { color: #f0d49f; }
.history-quote-line { width: 54px; height: 2px; margin: 1.3rem 0 .8rem; background: var(--rh-gold); }
.history-quote-author { display: grid; margin: 0 !important; color: rgba(255,255,255,.72); line-height: 1.45; }
.history-quote-author strong { color: #fff !important; }
.history-quote-author span { font-size: .87rem; }

/* Photo */
.rh-photo-section { margin: 2rem 0 3rem; }
.rh-photo-figure { position: relative; margin: 0; padding: .7rem .7rem 1.15rem; border: 1px solid var(--rh-border); border-radius: 6px; background: #fff; box-shadow: 0 12px 30px rgba(55,38,25,.13); transform: rotate(-.25deg); }
.rh-photo-figure::before,
.rh-photo-figure::after {
  content: '';
  position: absolute;
  top: -9px;
  width: 72px;
  height: 22px;
  opacity: .72;
  background: rgba(220,199,159,.72);
}
.rh-photo-figure::before { left: 11%; transform: rotate(-4deg); }
.rh-photo-figure::after { right: 11%; transform: rotate(4deg); }
.rh-photo-figure img { display: block; width: 100%; border-radius: 3px; object-fit: cover; }
.rh-photo-figure figcaption { padding: .9rem .7rem .1rem; color: var(--rh-muted); font-family: var(--rh-serif); font-size: .95rem; font-style: italic; line-height: 1.55; text-align: center; }

/* Listes éditoriales */
.rh-blog-content > section > ul:not(.rh-blog-index-card ul) { padding-left: 0; list-style: none; }
.rh-blog-content > section > ul:not(.rh-blog-index-card ul) li {
  position: relative;
  margin: .6rem 0;
  padding: .8rem 1rem .8rem 2.6rem;
  border-left: 3px solid var(--rh-green);
  border-radius: 0 9px 9px 0;
  background: #f7f3eb;
}

/* Bloc Commence ici */
.rh-retain-box {
  position: relative;
  margin: 3rem 0 !important;
  padding: clamp(1.25rem, 3vw, 2rem);
  border: 1px solid #bca989;
  border-top: 6px solid var(--rh-green);
  border-radius: 7px 7px var(--rh-radius) var(--rh-radius);
  background: linear-gradient(145deg, #f5efe2, #fffdf7);
  box-shadow: var(--rh-shadow-soft);
}
.rh-index-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin: 1.4rem 0; }
.rh-index-action-card {
  display: grid;
  align-content: start;
  gap: .4rem;
  min-height: 125px;
  padding: 1.1rem;
  color: var(--rh-ink);
  text-decoration: none;
  border: 1px solid var(--rh-border);
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.rh-index-action-card:hover { color: var(--rh-ink); transform: translateY(-3px); border-color: #b89b6c; box-shadow: var(--rh-shadow-soft); }
.rh-index-action-card span { color: var(--rh-burgundy); font-size: .78rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rh-index-action-card strong { font-family: var(--rh-serif); font-size: 1.05rem; line-height: 1.35; }
.rh-index-tools { margin-top: 1.5rem; padding-top: 1.4rem; border-top: 1px dashed #c9bba6; }
.rh-index-filter-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .8rem; }
.rh-index-filter-btn {
  cursor: pointer;
  min-height: 42px;
  padding: .58rem .9rem;
  color: #5b4d41;
  font-weight: 700;
  border: 1px solid #cdbda7;
  border-radius: 999px;
  background: #fffdf8;
  transition: .18s ease;
}
.rh-index-filter-btn:hover,
.rh-index-filter-btn:focus-visible { border-color: var(--rh-green); color: var(--rh-green); outline: none; }
.rh-index-filter-btn.is-active { color: #fff; border-color: var(--rh-green); background: var(--rh-green); box-shadow: 0 5px 13px rgba(23,63,53,.2); }
.rh-index-search {
  width: 100%;
  min-height: 54px;
  padding: .85rem 1rem .85rem 2.9rem;
  color: var(--rh-ink);
  border: 1px solid #bba991;
  border-radius: 11px;
  outline: none;
  background:
    linear-gradient(90deg, transparent 0 2.7rem, rgba(125,47,54,.16) 2.7rem 2.77rem, transparent 2.77rem),
    repeating-linear-gradient(#fffdf9 0 31px, rgba(49,95,120,.1) 31px 32px);
  box-shadow: inset 0 1px 3px rgba(55,38,25,.07);
}
.rh-index-search:focus { border-color: var(--rh-green); box-shadow: 0 0 0 4px rgba(23,63,53,.12); }
.rh-index-search::placeholder { color: #8b7d70; }
.rh-index-count { margin: .55rem 0 0 !important; color: var(--rh-muted); font-size: .88rem; font-weight: 600; }
.rh-no-result { display: none; margin-top: 1rem !important; padding: 1rem; color: #712b31; border: 1px solid #ddb9bb; border-radius: 9px; background: #fbefef; }
.rh-no-result.is-visible { display: block; }

/* Sections d'index */
.rh-blog-index-section { margin: clamp(3.5rem, 7vw, 6rem) 0; }
.rh-blog-index-section > h2 { padding-top: .1rem; }
.rh-blog-index-section > p { max-width: 820px; color: var(--rh-muted); font-size: 1.03rem; }
.rh-blog-index-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1.5rem; }

.rh-blog-index-card {
  --card-accent: var(--rh-green);
  position: relative;
  overflow: hidden;
  min-width: 0;
  padding: 1.25rem 1.25rem 1.2rem;
  border: 1px solid var(--rh-border);
  border-radius: 14px 14px 14px 5px;
  background:
    linear-gradient(90deg, rgba(125,47,54,.055) 0 38px, transparent 38px),
    repeating-linear-gradient(#fffefb 0 31px, rgba(49,95,120,.075) 31px 32px);
  box-shadow: 0 5px 16px rgba(55,38,25,.065);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.rh-blog-index-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 5px; background: var(--card-accent); }
.rh-blog-index-card:hover { transform: translateY(-3px); border-color: #bca88d; box-shadow: 0 15px 30px rgba(55,38,25,.11); }
.rh-blog-index-card[data-level='college'] { --card-accent: var(--rh-burgundy); }
.rh-blog-index-card[data-level='lycee'] { --card-accent: var(--rh-green); }
.rh-blog-index-card[data-level='transversal'] { --card-accent: var(--rh-blue); }
.rh-blog-index-card[data-level='dossiers'] { --card-accent: #9a6a24; }
.rh-blog-index-card[data-level='dictatures'] { --card-accent: #443f48; }
.rh-index-card-badge {
  display: inline-block;
  margin: 0 0 .65rem !important;
  padding: .26rem .55rem;
  color: #fff;
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .09em;
  line-height: 1.35;
  text-transform: uppercase;
  border-radius: 4px;
  background: var(--card-accent);
}
.rh-blog-index-card h3 {
  margin: 0 0 .8rem;
  color: #34281f;
  font-family: var(--rh-serif);
  font-size: clamp(1.12rem, 2vw, 1.35rem);
  line-height: 1.3;
}
.rh-main-course {
  display: block;
  margin: 0 -.2rem .8rem;
  padding: .67rem .75rem;
  color: var(--card-accent);
  font-size: .91rem;
  font-weight: 800;
  line-height: 1.42;
  text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--card-accent) 20%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--card-accent) 7%, #fff);
}
.rh-main-course:hover { color: #fff; background: var(--card-accent); }
.rh-blog-index-card ul { display: grid; gap: .12rem; margin: 0; padding: 0; list-style: none; }
.rh-blog-index-card li { position: relative; padding-left: 1.1rem; color: #65594e; font-size: .9rem; line-height: 1.48; }
.rh-blog-index-card li::before { content: '—'; position: absolute; left: 0; color: #b29b7d; }
.rh-blog-index-card li a { color: #51473e; text-decoration-color: rgba(23,63,53,.22); }
.rh-blog-index-card li a:hover { color: var(--card-accent); text-decoration-color: currentColor; }
.rh-blog-index-card li > span { color: #887d72; }
.rh-blog-index-card[hidden],
.rh-blog-index-card.is-hidden,
.rh-blog-index-section[hidden],
.rh-blog-index-section.is-hidden { display: none !important; }

/* CTA */
.rh-blog-cta {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  margin: clamp(3.5rem, 7vw, 6rem) 0;
  padding: clamp(1.6rem, 4vw, 3.1rem);
  color: #fff9ef;
  border: 1px solid #281a11;
  border-radius: 18px;
  background:
    repeating-linear-gradient(3deg, rgba(255,255,255,.02) 0 1px, transparent 1px 7px),
    linear-gradient(135deg, #342016, #65402a);
  box-shadow: var(--rh-shadow);
}
.rh-blog-cta::after { content: '→'; position: absolute; right: 1.1rem; bottom: -2.3rem; color: rgba(255,255,255,.055); font-family: var(--rh-serif); font-size: 11rem; line-height: 1; }
.rh-blog-cta h2 { margin: .2rem 0 .6rem; color: #fffaf1; }
.rh-blog-cta h2::after { background: #d2a35a; }
.rh-blog-cta p { color: rgba(255,250,241,.78); }
.rh-cta-small { margin: 0 !important; color: #edcf9f !important; font-size: .78rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.rh-cta-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: .8rem 1.2rem;
  color: #372115;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  border: 1px solid #f1d29d;
  border-radius: 9px;
  background: #f1d29d;
  box-shadow: 0 7px 18px rgba(0,0,0,.18);
}
.rh-cta-button:hover { color: #25150d; background: #fff0ce; transform: translateY(-2px); }

/* Articles liés */
.rh-related { margin: 4rem 0; }
.rh-related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.rh-related-card {
  display: grid;
  align-content: start;
  gap: .65rem;
  min-height: 150px;
  padding: 1.2rem;
  color: var(--rh-ink);
  text-decoration: none;
  border: 1px solid var(--rh-border);
  border-top: 4px solid var(--rh-burgundy);
  border-radius: 7px 7px 13px 13px;
  background: #fffdfa;
  box-shadow: var(--rh-shadow-soft);
  transition: .18s ease;
}
.rh-related-card:nth-child(2) { border-top-color: var(--rh-green); }
.rh-related-card:nth-child(3) { border-top-color: var(--rh-gold); }
.rh-related-card:hover { color: var(--rh-ink); transform: translateY(-3px); box-shadow: var(--rh-shadow); }
.rh-related-card span { color: var(--rh-burgundy); font-size: .75rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.rh-related-card strong { font-family: var(--rh-serif); font-size: 1.08rem; line-height: 1.4; }

/* FAQ */
.rh-faq-box {
  margin: 4rem 0 1rem;
  padding: clamp(1.3rem, 3vw, 2.2rem);
  border: 1px solid var(--rh-border);
  border-radius: var(--rh-radius);
  background: #f5efe4;
}
.rh-faq-box h3 {
  margin: 1.4rem 0 .35rem;
  padding-left: 1rem;
  color: var(--rh-green);
  font-family: var(--rh-serif);
  font-size: 1.13rem;
  line-height: 1.4;
  border-left: 3px solid var(--rh-gold);
}
.rh-faq-box p { margin: 0 0 1rem; color: #5f544a; }

/* Accessibilité et mouvements */
:focus-visible { outline: 3px solid rgba(49,95,120,.45); outline-offset: 3px; }
::selection { color: #fff; background: var(--rh-burgundy); }

@media (max-width: 1080px) {
  .rh-blog-layout { grid-template-columns: 1fr; }
  .rh-blog-sidebar { position: sticky; top: .6rem; z-index: 40; }
  .rh-toc-toggle {
    display: inline-flex;
    align-items: center;
    gap: .7rem;
    min-height: 46px;
    padding: .7rem 1rem;
    color: #fff;
    font-weight: 800;
    border: 1px solid #25150d;
    border-radius: 9px;
    background: var(--rh-wood);
    box-shadow: var(--rh-shadow-soft);
  }
  .rh-toc-toggle-icon { display: grid; gap: 3px; }
  .rh-toc-toggle-icon span { display: block; width: 17px; height: 2px; background: #f0d39f; }
  .rh-toc {
    position: fixed;
    z-index: 1002;
    top: 0;
    left: 0;
    width: min(88vw, 330px);
    height: 100dvh;
    padding: 1rem;
    border-radius: 0 14px 14px 0;
    overflow-y: auto;
    transform: translateX(-105%);
    visibility: hidden;
    transition: transform .24s ease, visibility .24s;
  }
  .rh-toc.is-open,
  .rh-blog-sidebar.is-open .rh-toc,
  body.rh-toc-open .rh-toc { transform: translateX(0); visibility: visible; }
  .rh-toc-close { display: grid; place-items: center; width: 38px; height: 38px; color: #fff; font-size: 1.7rem; border: 0; border-radius: 6px; background: rgba(255,255,255,.08); }
  .rh-toc-backdrop { position: fixed; z-index: 1001; inset: 0; background: rgba(27,18,12,.6); backdrop-filter: blur(2px); }
  .rh-toc-backdrop.is-open,
  .rh-blog-sidebar.is-open .rh-toc-backdrop,
  body.rh-toc-open .rh-toc-backdrop { display: block; }
}

@media (max-width: 780px) {
  html { scroll-padding-top: 4.5rem; }
  body { line-height: 1.68; }
  .rh-blog-page { padding: .65rem; }
  .rh-blog-hero { min-height: 0; padding: 3.4rem 1.15rem; border-radius: 18px 18px 8px 8px; }
  .rh-blog-hero::before { inset: 10px; }
  .rh-blog-kicker { font-size: .7rem; letter-spacing: .08em; }
  .rh-blog-intro { font-size: 1rem; }
  .rh-blog-meta { display: grid; width: 100%; }
  .rh-blog-meta span { text-align: left; }
  .rh-blog-layout { margin-top: 1rem; gap: .8rem; }
  .rh-blog-content { padding: 1.15rem; border-radius: 8px 8px 16px 16px; }
  .rh-blog-index-grid,
  .rh-index-actions,
  .rh-related-grid { grid-template-columns: 1fr; }
  .rh-index-action-card { min-height: 0; }
  .rh-blog-index-card { padding: 1.1rem; }
  .rh-blog-cta { grid-template-columns: 1fr; gap: 1.2rem; }
  .rh-cta-button { width: 100%; }
  .rh-photo-figure { transform: none; }
  .history-quote-card { border-width: 5px; }
  .history-quote-mark { font-size: 7rem; }
}

@media (max-width: 450px) {
  .rh-blog-content { padding: 1rem .85rem; }
  .rh-blog-kicker { border-radius: 8px; }
  .rh-blog-index-title-section { padding: 1.4rem .8rem; }
  .super-h1 .secondary-line { display: grid; gap: 0; }
  .ampersand { display: none; }
  .rh-index-filter-btn { flex: 1 1 calc(50% - .5rem); }
  .rh-index-search { padding-left: .85rem; background: repeating-linear-gradient(#fffdf9 0 31px, rgba(49,95,120,.1) 31px 32px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
}

@media print {
  body { background: #fff; }
  body::before,
  .rh-blog-sidebar,
  .rh-index-tools,
  .rh-blog-cta,
  .rh-blog-meta { display: none !important; }
  .rh-blog-page { width: 100%; padding: 0; }
  .rh-blog-hero { min-height: 0; color: #000; border: 0; box-shadow: none; background: #fff; }
  .rh-blog-hero h1,
  .rh-blog-intro,
  .rh-blog-kicker { color: #000; }
  .rh-blog-layout { display: block; }
  .rh-blog-content { padding: 0; border: 0; box-shadow: none; }
  .rh-blog-index-grid { display: block; }
  .rh-blog-index-card { break-inside: avoid; margin: 0 0 1rem; box-shadow: none; }
}
.rh-index-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  width: fit-content;
  margin: 0 0 0.72rem !important;
  padding: 0 0 0.34rem;
  color: var(--card-accent) !important;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border: 0;
  border-bottom: 1px solid color-mix(
    in srgb,
    var(--card-accent) 42%,
    transparent
  );
  border-radius: 0;
  background: transparent !important;
  box-shadow: none;
}

.rh-index-card-badge::before {
  content: "";
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--card-accent);
  box-shadow: 0 0 0 3px color-mix(
    in srgb,
    var(--card-accent) 10%,
    transparent
  );
}
