/* ==========================================================================
   Blouse Blanche — « La revue blanche »
   Magazine éditorial santé. Blanc clinique, encre aubergine, Spectral + Inter.
   ========================================================================== */

:root {
	--paper: #FBFAF7;
	--card: #FFFFFF;
	--ink: #1A1718;
	--ink-soft: #5E5661;
	--accent: #5A2A4A;
	--accent-deep: #3E1C33;
	--accent-wash: #F3ECF0;
	--rule: #E7E1DB;
	--rule-strong: #D6CDC6;

	--serif: 'Spectral', Georgia, 'Times New Roman', serif;
	--sans: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

	--wrap: 73rem;
	--read: 41rem;
	--radius: 10px;
	--radius-sm: 7px;
	--shadow: 0 18px 40px -24px rgba(62, 28, 51, .35);
	--shadow-sm: 0 8px 20px -14px rgba(62, 28, 51, .3);
	--sp-sec: clamp(3.5rem, 7vw, 6rem);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font-family: var(--sans);
	font-size: 1rem;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

::selection { background: var(--accent-wash); color: var(--accent-deep); }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

* { scrollbar-color: var(--rule-strong) transparent; }
::-webkit-scrollbar { height: 10px; width: 10px; }
::-webkit-scrollbar-thumb { background: var(--rule-strong); border-radius: 20px; border: 2px solid var(--paper); }

img { max-width: 100%; height: auto; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--accent-deep); }

.rb-wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 48rem) { .rb-wrap { padding-inline: 1.75rem; } }

.rb-sr, .screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.rb-skip {
	position: absolute; left: 1rem; top: -4rem; z-index: 100;
	background: var(--accent); color: #fff; padding: .6rem 1rem; border-radius: 0 0 var(--radius-sm) var(--radius-sm);
	font-family: var(--sans); font-weight: 600; text-decoration: none; transition: top .2s;
}
.rb-skip:focus { top: 0; color: #fff; }

/* ---------- Typographie ---------- */

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.12; letter-spacing: -.02em; color: var(--ink); margin: 0; }

.rb-ico { flex: none; }
.rb-ico--chev { transition: transform .25s ease; }

/* ---------- Sections ---------- */

.rb-section { padding-block: var(--sp-sec); }
.rb-section--tint { background: var(--card); border-block: 1px solid var(--rule); }

.rb-sec-head {
	display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem;
	margin-bottom: 2.25rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--rule);
}
.rb-sec-head__txt h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.rb-sec-head__txt p { margin: .55rem 0 0; color: var(--ink-soft); max-width: 46ch; font-size: .98rem; }

.rb-link {
	font-family: var(--sans); font-weight: 600; font-size: .9rem; white-space: nowrap;
	display: inline-flex; align-items: center; gap: .35rem; text-decoration: none;
}
.rb-link:hover { gap: .55rem; }
.rb-link .rb-ico { width: 16px; height: 16px; }

/* ---------- Boutons ---------- */

.rb-btn {
	display: inline-flex; align-items: center; gap: .45rem;
	font-family: var(--sans); font-weight: 600; font-size: .92rem; line-height: 1;
	padding: .72rem 1.1rem; border-radius: 999px; text-decoration: none; cursor: pointer;
	border: 1px solid transparent; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.rb-btn .rb-ico { width: 16px; height: 16px; }
.rb-btn--solid { background: var(--accent); color: #fff; }
.rb-btn--solid:hover { background: var(--accent-deep); color: #fff; }
.rb-btn--line { background: transparent; color: var(--accent); border-color: var(--rule-strong); }
.rb-btn--line:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.rb-iconbtn {
	display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 999px;
	color: var(--ink); border: 1px solid var(--rule-strong); background: transparent; transition: border-color .2s, color .2s, background .2s;
}
.rb-iconbtn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

/* ---------- Masthead ---------- */

.rb-mast { background: var(--paper); border-top: 3px solid var(--accent); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 40; }
.rb-mast__in { display: flex; align-items: center; gap: 1.5rem; min-height: 4.75rem; }

.rb-logo { display: inline-flex; align-items: center; gap: .7rem; text-decoration: none; color: var(--ink); }
.rb-logo__mark { color: var(--accent); display: inline-flex; }
.rb-logo__mark .rb-mark { width: 40px; height: 40px; }
.rb-logo__name { font-family: var(--serif); font-weight: 600; font-size: 1.5rem; line-height: 1; letter-spacing: -.01em; display: block; }
.rb-logo__name b { color: var(--accent); font-weight: 600; }
.rb-logo__sub { font-family: var(--sans); font-weight: 500; font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: var(--ink-soft); display: block; margin-top: .22rem; }

/* menu (details) : bouton mobile, nav en ligne desktop */
.rb-mnav { margin-left: auto; }
.rb-mnav__btn {
	list-style: none; cursor: pointer; display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 999px; border: 1px solid var(--rule-strong); color: var(--ink);
	transition: border-color .2s, color .2s, background .2s;
}
.rb-mnav__btn::-webkit-details-marker { display: none; }
.rb-mnav__btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.rb-mnav__bars, .rb-mnav__bars::before, .rb-mnav__bars::after { content: ""; display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative; }
.rb-mnav__bars::before { position: absolute; top: -6px; }
.rb-mnav__bars::after { position: absolute; top: 6px; }
.rb-mnav[open] .rb-mnav__bars { background: transparent; }
.rb-mnav[open] .rb-mnav__bars::before { top: 0; transform: rotate(45deg); }
.rb-mnav[open] .rb-mnav__bars::after { top: 0; transform: rotate(-45deg); }

.rb-nav { display: flex; flex-direction: column; gap: .25rem; position: absolute; left: 1rem; right: 1rem; top: calc(100% + .5rem); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); box-shadow: var(--shadow); padding: .75rem; z-index: 50; }
.rb-nav a {
	font-family: var(--sans); font-weight: 500; font-size: 1rem; color: var(--ink); text-decoration: none;
	padding: .65rem .75rem; border-radius: var(--radius-sm); position: relative;
}
.rb-nav a[aria-current] { color: var(--accent); background: var(--accent-wash); }
.rb-nav a:hover { color: var(--accent); background: var(--accent-wash); }
.rb-mnav:not([open]) > .rb-nav { display: none; }

@media (min-width: 60rem) {
	.rb-mnav { margin-left: auto; }
	.rb-mnav__btn { display: none; }
	.rb-mnav::details-content { content-visibility: visible; }
	.rb-mnav > .rb-nav, .rb-mnav:not([open]) > .rb-nav { display: flex; }
	.rb-nav { position: static; flex-direction: row; align-items: center; gap: 1.7rem; background: none; border: 0; box-shadow: none; padding: 0; }
	.rb-nav a { padding: .3rem 0; border-radius: 0; }
	.rb-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: var(--accent); transition: right .25s ease; }
	.rb-nav a:hover { background: none; }
	.rb-nav a:hover::after, .rb-nav a[aria-current]::after { right: 0; }
	.rb-nav a[aria-current] { background: none; }
}

.rb-mast__actions { display: flex; align-items: center; gap: .6rem; }
@media (max-width: 59.99rem) { .rb-mnav { position: static; } .rb-mast { position: relative; } }
@media (max-width: 34rem) {
	.rb-mast__in { gap: .6rem; }
	.rb-logo__name { font-size: 1.22rem; white-space: nowrap; }
	.rb-logo__sub { display: none; }
	.rb-logo__mark .rb-mark { width: 34px; height: 34px; }
	.rb-iconbtn, .rb-mnav__btn { width: 38px; height: 38px; }
	.rb-btn--line { padding: .6rem .85rem; }
}
.rb-btn__long { display: none; }
@media (min-width: 48rem) { .rb-btn__long { display: inline; } }

/* ---------- Accueil : hero ---------- */

.rb-hero { padding-block: clamp(2.75rem, 6vw, 5rem); }
.rb-hero__grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
@media (min-width: 60rem) { .rb-hero__grid { grid-template-columns: 1.3fr .85fr; } }
.rb-hero__h1 { font-size: clamp(2.3rem, 5.2vw, 4rem); font-weight: 600; letter-spacing: -.025em; line-height: 1.04; max-width: 15ch; }
.rb-hero__chapo { font-family: var(--serif); font-size: clamp(1.12rem, 1.8vw, 1.3rem); color: var(--ink-soft); line-height: 1.5; margin: 1.3rem 0 1.8rem; max-width: 46ch; }

/* ---------- Recherche ---------- */

.rb-search { display: flex; gap: .5rem; max-width: 34rem; }
.rb-search__lab { flex: 1; display: flex; align-items: center; gap: .5rem; padding: 0 .9rem; background: var(--card); border: 1px solid var(--rule-strong); border-radius: 999px; color: var(--ink-soft); transition: border-color .2s; }
.rb-search__lab:focus-within { border-color: var(--accent); }
.rb-search input { flex: 1; border: 0; background: transparent; padding: .72rem 0; font-family: var(--sans); font-size: .95rem; color: var(--ink); min-width: 0; }
.rb-search input:focus { outline: none; }
.rb-search input::placeholder { color: var(--ink-soft); }
.rb-search button { font-family: var(--sans); font-weight: 600; font-size: .9rem; color: #fff; background: var(--accent); border: 0; border-radius: 999px; padding: 0 1.1rem; cursor: pointer; transition: background .2s; }
.rb-search button:hover { background: var(--accent-deep); }

/* ---------- Bloc à la une (feature) ---------- */

.rb-feature {
	display: flex; align-items: center; gap: 1rem; margin-top: 1.9rem; padding: 1.1rem 1.25rem;
	background: var(--accent-wash); border: 1px solid var(--rule); border-radius: var(--radius);
	text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s;
}
.rb-feature:hover { border-color: var(--accent); transform: translateY(-2px); }
.rb-feature__body { flex: 1; min-width: 0; }
.rb-feature__t { font-family: var(--serif); font-weight: 600; font-size: 1.12rem; line-height: 1.2; display: block; }
.rb-feature__m { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); display: block; margin-top: .3rem; }
.rb-feature__arr { flex: none; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 999px; background: var(--accent); color: #fff; }
.rb-feature__arr .rb-ico { width: 18px; height: 18px; }
.rb-feature:hover .rb-feature__arr { background: var(--accent-deep); }

/* ---------- Vitrine produit ---------- */

.rb-vitrine { text-decoration: none; color: var(--ink); display: block; }
.rb-vitrine--hero .rb-vitrine__img {
	background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius);
	padding: 1.5rem; display: grid; place-items: center; box-shadow: var(--shadow);
}
.rb-vitrine--hero .rb-vitrine__img img { width: auto; max-height: 24rem; mix-blend-mode: multiply; }
.rb-vitrine__body { display: block; margin-top: 1rem; }
.rb-vitrine__brand { font-family: var(--sans); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); display: block; }
.rb-vitrine__name { font-family: var(--serif); font-weight: 500; font-size: 1.05rem; line-height: 1.25; display: block; margin-top: .3rem; }
.rb-vitrine__foot { display: flex; align-items: center; justify-content: space-between; margin-top: .6rem; }

.rb-prod__price { font-family: var(--sans); font-weight: 600; color: var(--accent); font-size: 1rem; }
.rb-prod__see { font-family: var(--sans); font-weight: 600; font-size: .82rem; color: var(--ink); display: inline-flex; align-items: center; gap: .3rem; }
.rb-prod__see .rb-ico { width: 14px; height: 14px; }

/* marge article */
.rb-marge__card .rb-vitrine__img { background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1rem; display: grid; place-items: center; }
.rb-marge__card .rb-vitrine__img img { width: auto; max-height: 15rem; mix-blend-mode: multiply; }

/* ---------- Dossiers (accueil / pilier) ---------- */

.rb-dossiers { display: grid; gap: clamp(1.5rem, 4vw, 3rem); }
@media (min-width: 52rem) { .rb-dossiers { grid-template-columns: 1fr 1fr; } }
.rb-dossier { }
.rb-dossier__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .9rem; border-bottom: 2px solid var(--accent); margin-bottom: 1.1rem; }
.rb-dossier__head h2, .rb-dossier__head h3 { font-size: clamp(1.4rem, 2.4vw, 1.75rem); }
.rb-dossier__head a { color: var(--ink); text-decoration: none; }
.rb-dossier__head a:hover { color: var(--accent); }
.rb-dossier__nb { font-family: var(--sans); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }

.rb-dossier__lead { display: block; text-decoration: none; color: var(--ink); padding: 1rem 1.1rem; background: var(--accent-wash); border-radius: var(--radius); margin-bottom: 1rem; transition: transform .2s; }
.rb-dossier__lead:hover { transform: translateY(-2px); }
.rb-dossier__leadt { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; line-height: 1.22; display: block; }
.rb-dossier__leadx { font-family: var(--serif); color: var(--ink-soft); font-size: .95rem; line-height: 1.45; display: block; margin-top: .4rem; }
.rb-dossier__leadm { font-family: var(--sans); font-weight: 600; font-size: .82rem; color: var(--accent); display: inline-flex; align-items: center; gap: .35rem; margin-top: .65rem; }
.rb-dossier__leadm .rb-ico { width: 15px; height: 15px; }
.rb-dossier__lead:hover .rb-dossier__leadm { gap: .55rem; }

.rb-dossier__all { font-family: var(--sans); font-weight: 600; font-size: .88rem; display: inline-flex; align-items: center; gap: .4rem; text-decoration: none; margin-top: .4rem; }
.rb-dossier__all:hover { gap: .6rem; }
.rb-dossier__all .rb-ico { width: 16px; height: 16px; }

.rb-dossiers--mini { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); }
.rb-dossier--mini { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; border: 1px solid var(--rule); border-radius: var(--radius); background: var(--paper); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.rb-dossier--mini:hover { border-color: var(--accent); transform: translateY(-2px); }
.rb-dossier__minit { font-family: var(--serif); font-weight: 600; font-size: 1.05rem; flex: 1; }
.rb-dossier--mini .rb-ico { color: var(--accent); }

/* ---------- Listes sommaire (rows) ---------- */

.rb-rows { list-style: none; margin: 0; padding: 0; }
.rb-row { border-top: 1px solid var(--rule); }
.rb-row:last-child { border-bottom: 1px solid var(--rule); }
.rb-row a { display: flex; align-items: center; gap: 1rem; justify-content: space-between; padding: .8rem .25rem; text-decoration: none; color: var(--ink); transition: color .2s, padding .2s; }
.rb-row a:hover { color: var(--accent); padding-left: .5rem; }
.rb-row__t { font-family: var(--serif); font-size: 1.02rem; line-height: 1.3; }
.rb-row__m { font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap; }
.rb-row a:hover .rb-row__m { color: var(--accent); }
.rb-row__m .rb-ico { width: 15px; height: 15px; }

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

.rb-cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }
.rb-card { display: flex; flex-direction: column; gap: .55rem; padding: 1.4rem 1.4rem 1.2rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s, box-shadow .2s; }
.rb-card:hover { border-color: var(--rule-strong); transform: translateY(-3px); box-shadow: var(--shadow-sm); }
.rb-card__t { font-size: 1.22rem; font-weight: 600; line-height: 1.22; }
.rb-card__x { margin: 0; color: var(--ink-soft); font-family: var(--serif); font-size: .96rem; line-height: 1.5; flex: 1; }
.rb-card__meta { display: flex; align-items: center; gap: .5rem; margin-top: .3rem; padding-top: .8rem; border-top: 1px solid var(--rule); font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); }
.rb-card__meta .rb-ico { width: 16px; height: 16px; margin-left: auto; color: var(--accent); transition: transform .2s; }
.rb-card:hover .rb-card__meta .rb-ico { transform: translateX(3px); }
.rb-card__dot { color: var(--rule-strong); }

/* ---------- Figure / citation ---------- */

.rb-figure { max-width: 48rem; margin-inline: auto; text-align: center; }
.rb-figure blockquote { margin: 0; font-family: var(--serif); font-style: italic; font-weight: 500; font-size: clamp(1.4rem, 3vw, 2rem); line-height: 1.35; color: var(--ink); position: relative; padding-top: 2.5rem; }
.rb-figure blockquote::before { content: "\201C"; position: absolute; top: -.6rem; left: 50%; transform: translateX(-50%); font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--accent); opacity: .5; }
.rb-figure figcaption { margin-top: 1.4rem; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.rb-figure figcaption a { font-weight: 600; }

/* ---------- Produits : carrousel ---------- */

.rb-caro { overflow: hidden; margin-inline: -1rem; padding-inline: 1rem; }
.rb-caro__track { display: grid; grid-auto-flow: column; grid-auto-columns: 15rem; gap: 1.1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-left: 1rem; padding-bottom: .5rem; }
@media (min-width: 48rem) { .rb-caro__track { grid-auto-columns: 16rem; } }
.rb-caro__track:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.rb-caro__nav { display: none; gap: .5rem; }
@media (min-width: 48rem) { .rb-caro__nav { display: flex; } }
.rb-caro__nav button { width: 40px; height: 40px; border-radius: 999px; border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center; transition: border-color .2s, color .2s, background .2s; }
.rb-caro__nav button:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }

.rb-prod { scroll-snap-align: start; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); padding: .9rem; text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.rb-prod:hover { border-color: var(--rule-strong); transform: translateY(-3px); }
.rb-prod__img { background: var(--paper); border-radius: var(--radius-sm); aspect-ratio: 1; display: grid; place-items: center; overflow: hidden; margin-bottom: .8rem; }
.rb-prod__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.rb-prod__brand { font-family: var(--sans); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.rb-prod__name { font-family: var(--serif); font-weight: 500; font-size: .98rem; line-height: 1.25; margin: .2rem 0 .7rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; flex: 1; }
.rb-prod__foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }

.rb-note { font-family: var(--sans); font-size: .8rem; color: var(--ink-soft); margin: 1.1rem 0 0; }
.rb-note a { font-weight: 600; display: inline-flex; align-items: center; gap: .3rem; }
.rb-note a .rb-ico { width: 13px; height: 13px; }
.rb-note--count { margin: 0 0 1.5rem; letter-spacing: .04em; }

/* ---------- Encart produit (dans l'article) ---------- */

.rb-encart { margin-block: 2rem; background: var(--accent-wash); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.25rem; }
.rb-encart__head { margin: 0 0 1rem; display: flex; flex-direction: column; gap: .3rem; }
.rb-encart__kick { font-family: var(--sans); font-weight: 600; font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.rb-encart__title { font-family: var(--serif); font-weight: 600; font-size: 1.1rem; color: var(--ink); }
.rb-encart__list { display: grid; gap: .75rem; }
@media (min-width: 34rem) { .rb-encart__list { grid-template-columns: 1fr 1fr; } }
.rb-encart__p { display: flex; gap: .8rem; align-items: center; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-sm); padding: .6rem; text-decoration: none; color: var(--ink); transition: border-color .2s; }
.rb-encart__p:hover { border-color: var(--accent); }
.rb-encart__p img { width: 64px; height: 64px; object-fit: contain; background: var(--paper); border-radius: 5px; mix-blend-mode: multiply; flex: none; }
.rb-encart__pt { display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.rb-encart__brand { font-family: var(--sans); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); }
.rb-encart__name { font-family: var(--serif); font-size: .9rem; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rb-encart__price { font-family: var(--sans); font-weight: 600; font-size: .88rem; color: var(--accent); }
.rb-encart__all { font-family: var(--sans); font-weight: 600; font-size: .85rem; display: inline-flex; align-items: center; gap: .35rem; margin-top: 1rem; text-decoration: none; }
.rb-encart__all:hover { gap: .55rem; }
.rb-encart__all .rb-ico { width: 14px; height: 14px; }

/* ---------- Rayons (grille boutique) ---------- */

.rb-rayons { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); }
.rb-rayons a { display: flex; align-items: center; gap: .9rem; padding: 1.05rem 1.1rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); text-decoration: none; color: var(--ink); transition: border-color .2s, transform .2s; }
.rb-rayons a:hover { border-color: var(--accent); transform: translateY(-2px); }
.rb-rayons__t { font-family: var(--serif); font-weight: 500; font-size: 1.02rem; line-height: 1.25; flex: 1; }
.rb-rayons__n { font-family: var(--sans); font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.rb-rayons .rb-ico { color: var(--accent); flex: none; }

/* ---------- Bandeau & in-band ---------- */

.rb-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem; padding: clamp(1.75rem, 4vw, 2.75rem); background: var(--accent); color: #fff; border-radius: var(--radius); }
.rb-band__txt h2 { color: #fff; font-size: clamp(1.4rem, 2.6vw, 1.9rem); }
.rb-band__txt p { margin: .55rem 0 0; color: rgba(255,255,255,.82); max-width: 44ch; }
.rb-band .rb-btn--solid { background: #fff; color: var(--accent); }
.rb-band .rb-btn--solid:hover { background: var(--accent-wash); color: var(--accent-deep); }

.rb-inband { display: grid; gap: 1.5rem; margin-block: 2.5rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius); }
@media (min-width: 52rem) { .rb-inband { grid-template-columns: .8fr 1.4fr; align-items: center; } }
.rb-inband__txt h2 { font-size: 1.4rem; }
.rb-inband__txt p { color: var(--ink-soft); margin: .5rem 0 1rem; }
.rb-inband__prod { display: grid; grid-template-columns: repeat(3, 1fr); gap: .9rem; }
@media (max-width: 34rem) { .rb-inband__prod { grid-template-columns: 1fr 1fr; } .rb-inband__prod a:last-child { display: none; } }

/* ---------- Fil d'Ariane ---------- */

.rb-crumbs { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-bottom: 1.1rem; }
.rb-crumbs a { color: var(--ink-soft); text-decoration: none; }
.rb-crumbs a:hover { color: var(--accent); text-decoration: underline; }
.rb-crumbs__sep { color: var(--rule-strong); }
.rb-crumbs [aria-current] { color: var(--ink); }

/* ---------- Page head ---------- */

.rb-pagehead { padding-block: clamp(2.25rem, 5vw, 3.75rem) 0; }
.rb-pagehead__h1 { font-size: clamp(2rem, 4.5vw, 3rem); max-width: 20ch; }
.rb-pagehead__chapo { font-family: var(--serif); font-size: 1.12rem; color: var(--ink-soft); margin: 1rem 0 1.6rem; max-width: 52ch; line-height: 1.5; }
.rb-404__code { font-family: var(--sans); font-weight: 600; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); margin: 0 0 .5rem; }

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

.rb-single { padding-block: clamp(2rem, 5vw, 3.25rem) 0; }
.rb-ahead { max-width: var(--wrap); }
.rb-ahead__h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); line-height: 1.08; max-width: 22ch; }
.rb-ahead__meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1rem; font-family: var(--sans); font-size: .85rem; color: var(--ink-soft); }
.rb-ahead__meta a { color: var(--accent); font-weight: 600; text-decoration: none; }
.rb-ahead__meta a:hover { text-decoration: underline; }

.rb-essentiel { margin-top: 1.75rem; background: var(--accent-wash); border: 1px solid var(--rule); border-radius: var(--radius); padding: 1.1rem 1.3rem; max-width: 42rem; }
.rb-essentiel__h { font-family: var(--sans); font-weight: 600; font-size: .7rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); margin: 0 0 .6rem; }
.rb-essentiel ul { margin: 0; padding-left: 1.1rem; }
.rb-essentiel li { font-family: var(--serif); font-size: 1rem; line-height: 1.5; margin-bottom: .3rem; }

.rb-acorps { display: grid; gap: 2.5rem; margin-top: 2.5rem; padding-bottom: var(--sp-sec); }
@media (min-width: 60rem) { .rb-acorps { grid-template-columns: 15rem minmax(0, var(--read)) 1fr; column-gap: 3rem; align-items: start; } }
.rb-acorps--page { grid-template-columns: minmax(0, var(--read)); justify-content: center; }

/* sommaire */
.rb-toc { font-family: var(--sans); }
@media (min-width: 60rem) { .rb-toc { position: sticky; top: 6rem; } }
.rb-toc details { border-top: 2px solid var(--accent); }
.rb-toc summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 0; cursor: pointer; font-weight: 600; font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink); list-style: none; }
.rb-toc summary::-webkit-details-marker { display: none; }
.rb-toc details[open] summary .rb-ico--chev { transform: rotate(180deg); }
.rb-toc ol { list-style: none; counter-reset: toc; margin: 0; padding: 0 0 .5rem; }
.rb-toc li { counter-increment: toc; border-top: 1px solid var(--rule); }
.rb-toc li a { display: flex; gap: .6rem; padding: .55rem 0; text-decoration: none; color: var(--ink-soft); font-size: .88rem; line-height: 1.35; transition: color .2s; }
.rb-toc li a::before { content: counter(toc, decimal-leading-zero); color: var(--accent); font-weight: 600; font-variant-numeric: tabular-nums; flex: none; }
.rb-toc li a:hover { color: var(--accent); }
.rb-up { display: inline-flex; align-items: center; gap: .4rem; margin-top: 1rem; font-size: .82rem; font-weight: 600; text-decoration: none; }
.rb-up .rb-ico { width: 15px; height: 15px; }
.rb-up:hover { gap: .6rem; }

/* corps de lecture */
.rb-article { font-family: var(--serif); font-size: 1.14rem; line-height: 1.72; color: var(--ink); max-width: var(--read); }
.rb-article > p:first-of-type::first-letter { font-weight: 600; font-size: 3.6em; line-height: .8; float: left; margin: .05em .12em 0 0; color: var(--accent); }
.rb-article p { margin: 0 0 1.3rem; }
.rb-article h2 { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin: 2.6rem 0 1rem; padding-top: 1.4rem; border-top: 1px solid var(--rule); scroll-margin-top: 6rem; }
.rb-article h3 { font-size: 1.3rem; margin: 2rem 0 .8rem; }
.rb-article a { color: var(--accent); }
.rb-article ul, .rb-article ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.rb-article li { margin-bottom: .55rem; }
.rb-article strong { font-weight: 600; }
.rb-article blockquote { margin: 1.8rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 1px solid var(--accent); font-style: italic; color: var(--ink-soft); font-size: 1.2rem; }
.rb-article img, .rb-article figure { border-radius: var(--radius-sm); margin-block: 1.6rem; height: auto; }
.rb-article figure { margin-inline: 0; }
.rb-article figcaption { font-family: var(--sans); font-size: .82rem; color: var(--ink-soft); margin-top: .5rem; text-align: center; }
.rb-article table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-family: var(--sans); font-size: .92rem; }
.rb-article th, .rb-article td { text-align: left; padding: .6rem .75rem; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rb-article th { font-weight: 600; background: var(--accent-wash); }

.rb-marge { }
@media (min-width: 60rem) { .rb-marge { position: sticky; top: 6rem; } }

/* arbre dans ce dossier */
.rb-tree-wrap { max-width: 48rem; }
.rb-tree, .rb-tree ul { list-style: none; margin: 0; padding: 0; }
.rb-tree > li { border-top: 1px solid var(--rule); }
.rb-tree > li:last-child { border-bottom: 1px solid var(--rule); }
.rb-tree a { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: .7rem .25rem; text-decoration: none; color: var(--ink); font-family: var(--serif); transition: color .2s, padding .2s; }
.rb-tree a:hover { color: var(--accent); padding-left: .4rem; }
.rb-tree ul { padding-left: 1.25rem; border-left: 1px solid var(--rule); margin-left: .25rem; }
.rb-tree ul a { font-size: .96rem; color: var(--ink-soft); }
.rb-tree .rb-row__m { font-family: var(--sans); font-size: .76rem; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Carte du site (guide) ---------- */

.rb-map { display: grid; gap: clamp(2rem, 5vw, 3.5rem); }
@media (min-width: 52rem) { .rb-map { grid-template-columns: 1fr 1fr; } }
.rb-map__head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding-bottom: .8rem; border-bottom: 2px solid var(--accent); margin-bottom: 1rem; }
.rb-map__head h2 { font-size: 1.5rem; }
.rb-map__lead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; background: var(--accent-wash); border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); font-family: var(--serif); font-weight: 600; margin-bottom: 1rem; }
.rb-map__lead:hover { color: var(--accent); }
.rb-map__lead .rb-ico { color: var(--accent); }
.rb-map__tree, .rb-map__tree ul { list-style: none; margin: 0; padding: 0; }
.rb-map__tree ul { padding-left: 1.1rem; border-left: 1px solid var(--rule); margin: .2rem 0 .2rem .3rem; }
.rb-map__n a { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; padding: .5rem .25rem; text-decoration: none; color: var(--ink); border-top: 1px solid var(--rule); font-family: var(--serif); transition: color .2s; }
.rb-map__n--1 > a { font-weight: 500; }
.rb-map__n a:hover { color: var(--accent); }
.rb-map__n .rb-row__m { font-family: var(--sans); font-size: .76rem; color: var(--ink-soft); white-space: nowrap; }

/* ---------- Résultats de recherche ---------- */

.rb-results { list-style: none; margin: 0; padding: 0; max-width: 48rem; }
.rb-result { display: block; padding: 1.25rem 0; border-top: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.rb-results li:last-child .rb-result { border-bottom: 1px solid var(--rule); }
.rb-result__t { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; line-height: 1.25; display: block; }
.rb-result:hover .rb-result__t { color: var(--accent); }
.rb-result__x { display: block; color: var(--ink-soft); font-family: var(--serif); margin: .4rem 0 .5rem; font-size: .98rem; }
.rb-result__m { font-family: var(--sans); font-size: .78rem; color: var(--ink-soft); display: inline-flex; align-items: center; gap: .5rem; }
mark { background: var(--accent-wash); color: var(--accent-deep); padding: 0 .15em; border-radius: 2px; }

/* ---------- Pagination ---------- */

.rb-pagination { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 2.5rem; justify-content: center; }
.rb-pagination .page-numbers { display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 .6rem; border: 1px solid var(--rule); border-radius: var(--radius-sm); font-family: var(--sans); font-weight: 600; font-size: .88rem; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s, background .2s; }
.rb-pagination a.page-numbers:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-wash); }
.rb-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.rb-pagination .page-numbers.dots { border-color: transparent; }

.rb-empty { font-family: var(--serif); font-size: 1.15rem; color: var(--ink-soft); }

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

.rb-foot { background: var(--paper); border-top: 3px solid var(--accent); margin-top: 0; }
.rb-foot > .rb-wrap { padding-block: clamp(2.5rem, 5vw, 4rem) 2rem; }
.rb-foot__grid { display: grid; gap: 2rem; }
@media (min-width: 48rem) { .rb-foot__grid { grid-template-columns: 1.6fr 1fr 1fr; } }
.rb-logo--footer .rb-logo__mark .rb-mark { width: 36px; height: 36px; }
.rb-logo--footer .rb-logo__name { font-size: 1.3rem; }
.rb-foot__intro { color: var(--ink-soft); font-size: .92rem; line-height: 1.6; margin: 1rem 0 0; max-width: 42ch; }
.rb-foot__col h2 { font-family: var(--sans); font-weight: 600; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 1rem; }
.rb-foot__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.rb-foot__col a { color: var(--ink); text-decoration: none; font-size: .94rem; }
.rb-foot__col a:hover { color: var(--accent); text-decoration: underline; }
.rb-foot__bas { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--rule); display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; align-items: center; }
.rb-foot__bas p { margin: 0; font-size: .82rem; color: var(--ink-soft); }
.rb-foot__menu { list-style: none; display: flex; gap: 1.25rem; margin: 0; padding: 0; }
.rb-foot__menu a { font-size: .82rem; color: var(--ink-soft); text-decoration: none; }
.rb-foot__menu a:hover { color: var(--accent); }

/* ---------- Réduction de mouvement ---------- */

@media (prefers-reduced-motion: reduce) {
	* { animation-duration: .001ms !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
