/*
Theme Name: Webreed Guide
Theme URI: https://webreed.pet
Author: Webreed
Description: Thème léger du Guide de l'éleveur Webreed (guide.webreed.pet) pour les éleveurs de chats et de chiens. En-tête illustré, En bref, guide complet avec sommaire et encadré Webreed collants, FAQ structurée.
Version: 3.0.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: webreed-guide
License: Propriétaire
*/

/* Polices hébergées dans le thème (licence SIL OFL) : rien n'est chargé depuis Google. */
/* Variable fonts, latin subset: Fraunces (headings, roman only, opsz and wght axes), Nunito (text and interface).
   Fraunces is never set in italic: accents use a heavier weight instead. */
@font-face { font-family: "Fraunces"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2-variations"), url("assets/fonts/fraunces-latin-opsz-normal.woff2") format("woff2"); }
@font-face { font-family: "Nunito"; font-style: normal; font-weight: 200 1000; font-display: swap; src: url("assets/fonts/nunito-latin-wght-normal.woff2") format("woff2-variations"), url("assets/fonts/nunito-latin-wght-normal.woff2") format("woff2"); }
@font-face { font-family: "Fredoka"; font-style: normal; font-weight: 700; font-display: swap; src: url("assets/fonts/fredoka-latin-700-normal.woff2") format("woff2"); }

/* ------------------------------------------------------------------
   Charte « Guide de l'éleveur » (novembre 2026) : Fraunces pour les titres,
   Nunito pour le texte, palette tirée du rose Webreed. Le rose vif
   (--wr-logo) est réservé au logo ; texte et boutons passent par des tons
   plus profonds, tous au niveau WCAG AA. Chaque rubrique appartient à une
   famille de couleurs (teinte, moyen, texte).
   ------------------------------------------------------------------ */
:root {
	/* Action and accents: the vivid brand pink stays in the logo */
	--wr-rose: #AD2F68;        /* action, accents, icons: 6.2:1 with white */
	--wr-rose-dark: #AD2F68;   /* links and small text */
	--wr-rose-darker: #8C2453; /* button hover */
	--wr-rose-soft: #FBE3EA;
	--wr-rose-line: #EBDDE1;   /* hairlines */
	--wr-pink-wash: #FBE3EA;
	--wr-logo: #F8448F;        /* logo only: never for text or buttons */
	--wr-field: #8A5F73;       /* field and secondary button borders: 4.9:1 on --wr-bg */
	--wr-peach: #FCD5AE;
	--wr-peach-soft: #FFEEDF;
	--wr-green: #3F6B2A;

	/* Neutrals */
	--wr-ink: #3F2C36;
	--wr-ink-soft: #6E5863;
	--wr-bg: #FBF4F4;
	--wr-card: #FFFDFC;
	--wr-on-rose: #fff;        /* text on filled --wr-rose buttons and badges */
	--wr-on-dark: #fff;        /* footer, on --wr-ink */
	--wr-on-dark-soft: #ECE4E8;
	--wr-on-dark-muted: #C9BEC4;
	--wr-shadow: 0 2px 0 rgba(173, 47, 104, .10);

	/* Typography */
	--wr-font: "Nunito", system-ui, sans-serif;
	--wr-font-title: "Fraunces", Georgia, "Times New Roman", serif;
	--wr-font-display: var(--wr-font-title);
	--wr-font-logo: "Fredoka", var(--wr-font);

	/* Rubric families: tint, border, text */
	--wr-dragee: #FBE3EA;    --wr-dragee-mid: #F2B3C8;    --wr-dragee-ink: #A02A61;
	--wr-peche: #FFEEDF;     --wr-peche-mid: #FCD5AE;     --wr-peche-ink: #8A4A12;
	--wr-tilleul: #E9F3E0;   --wr-tilleul-mid: #BBD6A6;   --wr-tilleul-ink: #3F6B2A;
	--wr-pervenche: #E9ECFA; --wr-pervenche-mid: #B9C2EC; --wr-pervenche-ink: #434FA0;
	--wr-galet: #EFEAE6;     --wr-galet-mid: #CFC4BB;     --wr-galet-ink: #5C4F45;

	/* « Attention » callouts only (vet warnings): text 6.5:1 on the tint */
	--wr-ambre: #FFF4C7;     --wr-ambre-mid: #E0A200;     --wr-ambre-ink: #7A4E00;

	/* Layout */
	--wr-radius: 22px;
	--wr-radius-pill: 999px;
	--wr-max: 1120px;
	--wr-read: 680px;
	--wr-check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23fff' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--wr-font);
	font-size: 1.0625rem;
	font-weight: 500;
	line-height: 1.7;
	color: var(--wr-ink);
	background: var(--wr-card);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--wr-rose-dark); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--wr-rose-darker); text-decoration-thickness: 3px; }
/* Headings: Fraunces, page title 800, section title 650, card and sub-titles 600. */
h1, h2, h3, h4 { font-family: var(--wr-font-title); font-optical-sizing: auto; font-variant-numeric: lining-nums; font-weight: 600; line-height: 1.3; margin: 1.6em 0 .5em; letter-spacing: 0; text-wrap: balance; }
h1 { font-weight: 800; font-size: clamp(2.25rem, 1.6rem + 3vw, 3.5rem); line-height: 1.08; margin-top: 0; }
h2 { font-weight: 650; font-size: clamp(1.625rem, 1.4rem + 1vw, 2.125rem); line-height: 1.2; }
h3 { font-size: 1.3125rem; }
/* No Fraunces italic (no synthesised slant either): emphasis inside a title is heavier, not slanted. */
:is(h1, h2, h3, h4) :is(em, i) { font-style: normal; font-weight: 900; }
p, ul, ol { margin: 0 0 1em; }
strong { font-weight: 800; }
::selection { background: var(--wr-rose-soft); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 100; background: var(--wr-card); padding: 8px 12px; clip: auto; width: auto; height: auto; }
:focus-visible { outline: 3px solid var(--wr-ink); outline-offset: 3px; border-radius: 6px; }

.wr-wrap { max-width: var(--wr-max); margin: 0 auto; padding: 0 16px; }
.wr-read { max-width: var(--wr-read); margin: 0 auto; }
/* Accent inside a title (e.g. « en 3 minutes »): heavier than the title (900 in an 800 title), --wr-rose. */
.wr-accent { font-family: var(--wr-font-title); font-weight: 900; color: var(--wr-rose); }
.wr-hero .wr-accent { white-space: nowrap; }

/* Pastille « Nouveauté ! » : rose plein, texte blanc, étincelle */
.wr-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--wr-rose-dark); color: var(--wr-on-rose); font-family: var(--wr-font); font-weight: 700; font-size: .9375rem; padding: 6px 16px 6px 12px; border-radius: var(--wr-radius-pill); line-height: 1.2; }
.wr-badge::before { content: "✦"; font-size: .95em; }

/* En-tête -------------------------------------------------------- */
.wr-header { background: color-mix(in srgb, var(--wr-card) 94%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--wr-rose-line); position: sticky; top: 0; z-index: 50; }
.wr-header__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 0 16px; min-height: 68px; }
.wr-header.has-js .wr-header__inner { flex-wrap: nowrap; }
.wr-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--wr-ink); }
.wr-logo:hover { color: var(--wr-ink); }
.wr-logo img { max-height: 40px; width: auto; }
.wr-logo__word { font-family: var(--wr-font-logo); font-weight: 700; font-size: 1.5rem; letter-spacing: .01em; }
.wr-nav { margin-left: auto; }
.wr-header:not(.is-compact) .wr-search-toggle { margin-left: 4px; }
.wr-nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
.wr-header.has-js .wr-nav ul { flex-wrap: nowrap; }
.wr-nav a { display: block; white-space: nowrap; padding: 8px 6px; border-radius: var(--wr-radius-pill); text-decoration: none; color: var(--wr-ink); font-family: var(--wr-font); font-weight: 700; font-size: 1rem; }
.wr-nav a:hover, .wr-nav .current-menu-item > a, .wr-nav .current-cat > a, .wr-nav .current-category-ancestor > a { background: var(--wr-rose-soft); color: var(--wr-rose-dark); } /* 4.8:1 */
.wr-burger { display: none; min-height: 44px; margin-left: auto; background: var(--wr-card); border: 1px solid var(--wr-field); border-radius: var(--wr-radius-pill); padding: 7px 1.5rem; font: inherit; font-family: var(--wr-font); font-weight: 700; color: var(--wr-ink); cursor: pointer; }
.wr-burger:hover, .wr-burger[aria-expanded="true"] { background: var(--wr-rose-soft); }

/* Search: magnifier button (shown by header.php) opening a search field under the header. */
.wr-search-toggle { display: inline-grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 1px solid var(--wr-field); border-radius: var(--wr-radius-pill); background: var(--wr-card); color: var(--wr-ink); cursor: pointer; }
.wr-search-toggle:hover, .wr-search-toggle[aria-expanded="true"] { background: var(--wr-rose-soft); }
.wr-search-toggle[hidden] { display: none; }
.wr-search-toggle .wr-icon { width: 22px; height: 22px; color: currentColor; }
.wr-search-panel { border-top: 1px solid var(--wr-rose-line); padding: 14px 0 18px; }
.wr-search-panel[hidden] { display: none; }
/* Small desktops: a slightly tighter menu keeps the 8 rubrics and the search button on one line. */
@media (max-width: 1199px) {
	.wr-header:not(.is-compact) .wr-nav a { padding: 8px 5px; font-size: .9375rem; }
}
/* Set by header.php when the inline navigation does not fit on one line. */
.wr-header.is-compact .wr-burger { display: block; margin-left: auto; }
.wr-header.is-compact .wr-nav { display: none; position: absolute; top: 100%; left: 0; right: 0; max-height: calc(100vh - 70px); max-height: calc(100dvh - 70px); overflow-y: auto; overscroll-behavior: contain; margin: 0; background: var(--wr-card); border-bottom: 2px solid var(--wr-rose-line); padding: 8px 16px 16px; }
.wr-header.is-compact .wr-nav.is-open { display: block; }
.wr-header.is-compact .wr-nav ul { flex-direction: column; max-width: var(--wr-max); margin: 0 auto; }
.wr-header.is-compact .wr-nav a { padding: 12px 14px; font-size: 1rem; white-space: normal; }
/* Veil behind the open menu: dims the page, the tap on it is caught by header.php to close the menu. */
body.wr-menu-open { overflow: hidden; }
body.wr-menu-open::after { content: ""; position: fixed; inset: 0; z-index: 40; background: color-mix(in srgb, var(--wr-ink) 45%, transparent); }
/* Short screens (phone in landscape): the header scrolls away instead of taking a fifth of the height. */
@media (max-height: 500px) {
	.wr-header { position: relative; }
	.wr-guide h2[id], .wr-guide h3[id] { scroll-margin-top: 16px; }
}

/* Boutons ------------------------------------------------------- */
/* Pill buttons, 44px minimum height. Primary: --wr-rose fill. Secondary: card fill, --wr-field border. */
.wr-btn { display: inline-flex; align-items: center; justify-content: center; text-align: center; gap: 8px; min-height: 44px; padding: 10px 1.5rem; border-radius: var(--wr-radius-pill); background: var(--wr-rose); color: var(--wr-on-rose); text-decoration: none; border: 1px solid var(--wr-rose); cursor: pointer; font: inherit; font-family: var(--wr-font); font-weight: 700; font-size: 1rem; line-height: 1.2; transition: background .15s, border-color .15s, transform .15s; }
.wr-btn:hover { background: var(--wr-rose-darker); border-color: var(--wr-rose-darker); color: var(--wr-on-rose); }
.wr-btn--ghost { background: var(--wr-card); color: var(--wr-ink); border-color: var(--wr-field); }
.wr-btn--ghost:hover { background: var(--wr-rose-soft); color: var(--wr-ink); border-color: var(--wr-field); }

/* Accueil -------------------------------------------------------- */
.wr-hero { padding: 48px 0 32px; text-align: center; }
.wr-hero .wr-badge { margin-bottom: 18px; }
.wr-hero h1 { max-width: 17ch; margin: 0 auto 16px; }
.wr-hero p { color: var(--wr-ink-soft); font-size: 1.12rem; max-width: 620px; margin: 0 auto 24px; }
.wr-search { display: flex; max-width: 580px; margin: 0 auto; background: var(--wr-card); border: 1px solid var(--wr-field); border-radius: var(--wr-radius-pill); padding: 5px; }
/* The input has no outline of its own: the whole pill shows the charter focus ring. */
.wr-search:focus-within { outline: 3px solid var(--wr-ink); outline-offset: 3px; }
.wr-search input { flex: 1; border: 0; background: none; padding: 10px 16px; font: inherit; min-width: 0; outline: none; color: var(--wr-ink); }
.wr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 20px; }
.wr-chip { display: inline-block; padding: 7px 16px; border-radius: var(--wr-radius-pill); background: var(--wr-card); border: 2px solid var(--wr-rose-line); text-decoration: none; color: var(--wr-ink); font-family: var(--wr-font); font-weight: 700; font-size: 1rem; }
.wr-chip:hover, .wr-chip.is-active { border-color: var(--wr-rose); color: var(--wr-rose-dark); background: var(--wr-rose-soft); } /* 4.8:1 */

.wr-section { padding: 32px 0; }
.wr-section__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.wr-section__head h2 { margin: 0; }
.wr-section__head a { font-weight: 700; }

/* Rubriques : pastilles arrondies à contour rose, comme les encarts de la charte */
.wr-rubriques { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
/* Rubric tiles: flat family tint, no visible border (a family-ink border on hover), as in the home mock-up. */
.wr-rubrique { display: block; padding: 1rem 1.1rem; background: var(--wr-fam, var(--wr-galet)); border: 1px solid transparent; border-radius: 18px; text-decoration: none; color: var(--wr-ink); transition: border-color .15s, transform .15s; }
.wr-rubrique:hover { border-color: var(--wr-fam-ink, var(--wr-field)); color: var(--wr-ink); }
.wr-rubrique strong { display: block; font-family: var(--wr-font-title); font-optical-sizing: auto; font-weight: 600; font-size: 1.125rem; line-height: 1.25; }
.wr-rubrique span { color: var(--wr-ink-soft); font-size: .9375rem; line-height: 1.45; }
.wr-rubrique em { font-style: normal; color: var(--wr-fam-ink, var(--wr-rose-dark)); font-weight: 600; font-size: .9375rem; }
@media (max-width: 600px) {
	.wr-rubriques { grid-template-columns: 1fr 1fr; gap: 10px; }
	.wr-rubrique { padding: 14px; }
	.wr-rubrique span, .wr-rubrique br { display: none; }
	.wr-rubrique strong { font-size: 1rem; }
	.wr-search .wr-btn { padding: 10px 14px; }
}
@media (max-width: 359px) {
	.wr-rubriques { grid-template-columns: 1fr; }
	.wr-search { flex-direction: column; gap: 4px; border-radius: 22px; }
	.wr-search input { padding: 10px 12px; }
}

/* Cartes d'articles ---------------------------------------------- */
.wr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.wr-card { position: relative; display: flex; flex-direction: column; background: var(--wr-card); border: 2px solid var(--wr-rose-line); border-radius: var(--wr-radius); overflow: hidden; transition: border-color .15s, transform .15s; }
.wr-card:hover { border-color: var(--wr-rose); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.wr-fiche:hover, .wr-rubrique:hover { transform: translateY(-2px); }
	.wr-fiche { transition: transform .15s; }
	.wr-btn:hover { transform: translateY(-1px); }
}
.wr-card__img { aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--wr-rose-soft), var(--wr-peach-soft)); object-fit: cover; width: 100%; }
.wr-card__body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.wr-card__title { font-size: 1.3125rem; font-weight: 600; margin: 0; line-height: 1.3; }
.wr-card__title a { color: var(--wr-ink); text-decoration: none; }
.wr-card__title a::after { content: ""; position: absolute; inset: 0; }
.wr-card__excerpt { color: var(--wr-ink-soft); font-size: 1rem; line-height: 1.6; margin: 0; }

.wr-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: .9375rem; font-weight: 600; color: var(--wr-ink-soft); }
.wr-tag { display: inline-flex; align-items: center; min-height: 32px; padding: 2px .85rem; border-radius: var(--wr-radius-pill); background: var(--wr-rose); color: var(--wr-on-rose); font-family: var(--wr-font); font-weight: 700; font-size: .9375rem; line-height: 1.3; text-decoration: none; position: relative; z-index: 1; }
.wr-tag:hover { color: var(--wr-on-rose); background: var(--wr-rose-dark); }

/* Article -------------------------------------------------------- */
.wr-article { padding: 0 0 48px; }
.wr-breadcrumb { font-size: .9375rem; color: var(--wr-ink-soft); margin-bottom: 12px; }
.wr-breadcrumb a { color: var(--wr-ink-soft); }
.wr-verified { display: inline-flex; align-items: center; gap: 6px; color: var(--wr-green); font-weight: 700; }

/* Sheet text: Nunito 500, 1.125rem, 1.7 line height, 680px measure (set by .wr-layout__main). */
.wr-content { font-size: 1.125rem; line-height: 1.7; }
.wr-content > *:first-child { margin-top: 0; }
.wr-content ol, .wr-content ul { padding-left: 1.3em; }
.wr-content li { margin-bottom: .35em; }
.wr-content ol { list-style: none; counter-reset: wr-step; padding-left: 0; }
.wr-content ol > li { counter-increment: wr-step; position: relative; padding-left: 42px; margin-bottom: .7em; }
.wr-content ol > li::before { content: counter(wr-step); position: absolute; left: 0; top: -.05em; width: 30px; height: 30px; border-radius: 50%; background: var(--wr-rose-soft); color: var(--wr-rose-dark); font-weight: 700; display: grid; place-items: center; font-size: .9375rem; }
.wr-content ul > li::marker { color: var(--wr-rose); }
.wr-content blockquote { margin: 1.5em 0; padding: 14px 20px; border: 2px solid var(--wr-rose-line); background: var(--wr-card); border-radius: var(--wr-radius); }
.wr-content table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; margin: 1.5em 0; border: 2px solid var(--wr-rose-line); border-radius: 14px; background: var(--wr-card); overflow: hidden; }
.wr-content .wp-block-table { margin: 1.5em 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.wr-content .wp-block-table table { margin: 0; width: max-content; min-width: 100%; }
/* Columns take their natural width up to 16em (52vw on phones, so a two-column table fits): a wide table scrolls instead of squeezing its columns into tall rows. */
.wr-content th, .wr-content td { border: 0; border-bottom: 1px solid var(--wr-rose-line); padding: 9px 12px; text-align: left; vertical-align: top; max-width: min(16em, 52vw); }
.wr-content .wp-block-table.is-scrollable { border-radius: 14px; }
.wr-content .wp-block-table.is-scrollable:focus-visible { outline-offset: 3px; }
.wr-table-hint { display: flex; align-items: center; gap: 6px; margin: 1.5em 0 -1em; font-size: .9375rem; font-weight: 600; color: var(--wr-ink-soft); }
.wr-table-hint + .wp-block-table { margin-top: 1.5em; }
.wr-content th { background: var(--wr-rose-soft); font-weight: 700; }
.wr-content tr:last-child td { border-bottom: 0; }

/* ------------------------------------------------------------------
   Fiche : en-tête illustré
   ------------------------------------------------------------------ */
.wr-hero-article { background: var(--wr-bg); }
.wr-hero-article__inner { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: center; padding-top: 18px; padding-bottom: 22px; }
.wr-hero-article h1 { font-size: clamp(2rem, 1.6rem + 1.6vw, 2.75rem); line-height: 1.12; margin: 12px 0 0; }
.wr-hero-article__pic { display: block; min-width: 0; }
.wr-hero-article__img { width: 100%; height: auto; max-height: 240px; object-fit: contain; }
.wr-meta--hero { gap: 8px 16px; font-size: .9375rem; margin-top: 14px; color: var(--wr-ink); }
.wr-meta__item { display: inline-flex; align-items: center; gap: 6px; }
.wr-meta__item::before { content: ""; width: 17px; height: 17px; flex: none; background-color: var(--wr-rose); -webkit-mask: var(--wr-mask) center / contain no-repeat; mask: var(--wr-mask) center / contain no-repeat; }
.wr-meta__item--date { --wr-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='3'/%3E%3Cpath d='M3 10h18M8 3v4M16 3v4'/%3E%3C/svg%3E"); }
.wr-meta__item--time { --wr-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E"); }
.wr-meta__item--level { --wr-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 20v-5M12 20V10M19 20V4'/%3E%3C/svg%3E"); }
@media (max-width: 760px) {
	.wr-hero-article__inner { grid-template-columns: 1fr; }
	.wr-hero-article__pic { display: none; }
}

/* ------------------------------------------------------------------
   Fiche : deux colonnes (contenu + sommaire / Webreed collants)
   ------------------------------------------------------------------ */
.wr-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; align-items: start; padding-top: 34px; }
.wr-layout__main { min-width: 0; max-width: var(--wr-read); }
.wr-layout__side { align-self: stretch; display: flex; flex-direction: column; gap: 18px; }
/* The top part takes the free height, so the sticky table of contents never slides over the Webreed box below it. */
.wr-side-top { flex: 1 0 auto; }
.wr-side-sticky { position: sticky; top: 88px; max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; }
@media (max-width: 999px) {
	.wr-layout { grid-template-columns: 1fr; gap: 0; }
	.wr-layout__main { max-width: var(--wr-read); margin: 0; width: 100%; }
	.wr-layout__side { max-width: var(--wr-read); margin: 0 0 8px; width: 100%; }
	.wr-side-sticky { position: static; }
	.wr-toc--side { display: none; }
}
@media (min-width: 1000px) {
	.wr-toc--mobile { display: none; }
}

/* Sommaire */
.wr-toc { background: var(--wr-card); border: 2px solid var(--wr-rose-line); border-radius: var(--wr-radius); padding: 18px 16px 12px; }
.wr-toc__title, .wr-toc--mobile > summary { display: flex; align-items: center; gap: 10px; margin: 0 0 10px; font-family: var(--wr-font-display); font-weight: 600; font-size: 1.2rem; }
.wr-toc__title::before, .wr-toc--mobile > summary::before { content: ""; width: 20px; height: 16px; background: linear-gradient(var(--wr-rose) 0 0) 0 0 / 4px 3px no-repeat, linear-gradient(var(--wr-rose) 0 0) 7px 0 / 13px 3px no-repeat, linear-gradient(var(--wr-rose) 0 0) 0 6.5px / 4px 3px no-repeat, linear-gradient(var(--wr-rose) 0 0) 7px 6.5px / 13px 3px no-repeat, linear-gradient(var(--wr-rose) 0 0) 0 13px / 4px 3px no-repeat, linear-gradient(var(--wr-rose) 0 0) 7px 13px / 13px 3px no-repeat; }
/* Scroll area: at least 120px tall on short screens, but a short table of contents keeps its natural height. */
.wr-toc__list { list-style: none; margin: 0; padding: 0; max-height: max(120px, calc(100vh - 200px)); overflow-y: auto; }
.wr-toc__list a { display: block; padding: 10px; border-left: 3px solid transparent; border-radius: 0 10px 10px 0; color: var(--wr-ink); text-decoration: none; font-size: .93rem; line-height: 1.35; }
.wr-toc__list a:hover { color: var(--wr-rose-dark); background: var(--wr-bg); }
.wr-toc__list a.is-active { border-left-color: var(--wr-rose); background: var(--wr-rose-soft); color: var(--wr-rose-dark); font-weight: 800; }
.wr-toc__num { color: var(--wr-rose-dark); font-weight: 800; }
.wr-toc--mobile { margin: 0 0 28px; padding: 14px 16px; }
.wr-toc--mobile > summary { margin: 0; min-height: 44px; cursor: pointer; list-style: none; font-size: 1.1rem; -webkit-tap-highlight-color: transparent; }
.wr-toc--mobile > summary::-webkit-details-marker { display: none; }
.wr-toc--mobile > summary span { font-family: var(--wr-font); font-weight: 600; font-size: .9375rem; color: var(--wr-ink-soft); margin-left: auto; }
.wr-toc--mobile[open] > summary { margin-bottom: 8px; }
.wr-toc--mobile .wr-toc__list { max-height: none; }

/* Encadré Webreed de la colonne */
.wr-side-cta { position: relative; background: var(--wr-peche); border-radius: var(--wr-radius); padding: 20px; overflow: hidden; }
.wr-side-cta__title { margin: 0 0 8px; padding-right: 26px; font-family: var(--wr-font-display); font-weight: 600; font-size: 1.25rem; line-height: 1.2; }
.wr-side-cta__title span { display: block; color: var(--wr-rose); font-weight: 850; font-size: 1.7rem; }
.wr-side-cta__text { font-size: .92rem; color: var(--wr-ink-soft); margin-bottom: 14px; }
.wr-side-cta .wr-btn { width: 100%; }
@media (min-width: 1000px) {
	.wr-cta--inline { display: none; }
}
@media (max-width: 999px) {
	.wr-side-cta { display: none; }
}

/* FAQ en tête : titre plus discret */
.wr-faq__title { display: flex; align-items: center; gap: 10px; }

/* ------------------------------------------------------------------
   Guide complet : intertitres numérotés, encadrés, cartes
   ------------------------------------------------------------------ */
.wr-guide { counter-reset: wr-h2; border-top: 2px solid var(--wr-rose-line); padding-top: 8px; }
.wr-guide h2 { counter-increment: wr-h2; counter-reset: wr-h3; position: relative; padding-left: 20px; margin-top: 1.8em; }
.wr-guide h2::before { content: counter(wr-h2) ". "; }
.wr-guide h2::after { content: ""; position: absolute; left: 0; top: .18em; bottom: .18em; width: 6px; border-radius: 6px; background: var(--wr-rose); }
.wr-guide h3 { counter-increment: wr-h3; }
.wr-guide h3::before { content: counter(wr-h2) "." counter(wr-h3) " "; color: var(--wr-ink); }
.wr-guide h2[id], .wr-guide h3[id] { scroll-margin-top: 90px; }

.wp-block-group.is-style-wr-conseil, .wp-block-group.is-style-wr-attention { position: relative; margin: 1.6em 0; padding: 14px 18px 14px 58px; border-radius: 16px; }
.wp-block-group.is-style-wr-conseil { background: var(--wr-rose-soft); border: 2px solid var(--wr-rose-line); }
.wp-block-group.is-style-wr-conseil::before, .wp-block-group.is-style-wr-attention::before { content: ""; position: absolute; left: 18px; top: 15px; width: 26px; height: 26px; -webkit-mask: var(--wr-mask) center / contain no-repeat; mask: var(--wr-mask) center / contain no-repeat; }
.wp-block-group.is-style-wr-conseil::before { --wr-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 18h6M10 21h4M12 3a6 6 0 0 0-3.6 10.8c.6.5 1 1.2 1 2V16h5.2v-.2c0-.8.4-1.5 1-2A6 6 0 0 0 12 3z'/%3E%3C/svg%3E"); background-color: var(--wr-rose); }
.wp-block-group.is-style-wr-attention::before { --wr-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3 2 20h20L12 3z'/%3E%3Cpath d='M12 10v4M12 17h.01'/%3E%3C/svg%3E"); background-color: var(--wr-ambre-ink); }
.wp-block-group.is-style-wr-conseil > :first-child::before { content: "Conseil : "; color: var(--wr-rose-dark); font-weight: 800; }
.wp-block-group.is-style-wr-attention > :first-child::before { content: "Attention : "; color: var(--wr-ambre-ink); font-weight: 800; }
.wp-block-group.is-style-wr-conseil > *:last-child, .wp-block-group.is-style-wr-attention > *:last-child { margin-bottom: 0; }

.wp-block-columns.is-style-wr-cartes { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 1.6em 0; }
.wp-block-columns.is-style-wr-cartes > .wp-block-column { position: relative; background: var(--wr-card); border: 2px solid var(--wr-rose-line); border-radius: 16px; padding: 16px 16px 14px 16px; margin: 0; }
.wr-guide .wp-block-columns.is-style-wr-cartes h3 { counter-increment: none; }
.wr-guide .wp-block-columns.is-style-wr-cartes h3::before { content: none; }
.wp-block-columns.is-style-wr-cartes :is(h3, h4) { margin: 0 0 4px; font-weight: 600; font-size: 1.125rem; }
.wp-block-columns.is-style-wr-cartes p { margin: 0; font-size: .9rem; color: var(--wr-ink-soft); line-height: 1.45; }

/* Cartes de la liste : illustration de rubrique quand il n'y a pas d'image */
.wr-card__img--illus { object-fit: contain; padding: 14px; }

.wr-faq { margin: 36px 0; }
.wr-faq details { background: var(--wr-card); border: 2px solid var(--wr-rose-line); border-radius: 18px; padding: 0 20px; margin-bottom: 10px; }
.wr-faq details[open] { border-color: var(--wr-rose); }
.wr-faq summary { cursor: pointer; padding: 14px 0; font-weight: 700; list-style: none; position: relative; padding-right: 32px; }
.wr-faq summary::-webkit-details-marker { display: none; }
.wr-faq summary::after { content: "+"; position: absolute; right: 0; top: 11px; width: 24px; height: 24px; border-radius: 50%; background: var(--wr-rose); color: var(--wr-on-rose); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.wr-faq details[open] summary::after { content: "–"; }
.wr-faq details > div { padding: 0 0 16px; color: var(--wr-ink-soft); }

/* Encadré Webreed : bulle rose */
.wr-cta { position: relative; background: var(--wr-peche); border-radius: var(--wr-radius); padding: 26px 24px 24px; margin: 40px 0 36px; }
.wr-cta .wr-badge { position: absolute; top: -17px; left: 20px; }
.wr-cta h2 { margin: 6px 0 8px; font-size: 1.5rem; }
.wr-cta p { color: var(--wr-ink-soft); }

.wr-sources { font-size: .92rem; color: var(--wr-ink-soft); border-top: 2px solid var(--wr-rose-line); padding-top: 16px; margin-top: 36px; }
.wr-sources h2 { font-size: 1.3125rem; margin: 0 0 8px; color: var(--wr-ink); }
.wr-sources ul { padding-left: 1.2em; }
.wr-sources li::marker { color: var(--wr-rose); }
.wr-disclaimer { font-size: .9375rem; color: var(--wr-ink-soft); background: var(--wr-rose-soft); border-radius: 14px; padding: 10px 14px; }

.wr-related { border-top: 2px solid var(--wr-rose-line); padding-top: 32px; }

/* Archives ------------------------------------------------------- */
.wr-archive-head { padding: 36px 0 8px; }
.wr-archive-head p { color: var(--wr-ink-soft); max-width: 720px; }
.wr-archive-search { margin: 4px 0 14px; }
.wr-archive-search .wr-search { margin: 0; }
/* Rubric page: heading panel in the family tint (ink-soft stays at 5.3:1 or more on every tint). */
.wr-archive-head--fam { margin-top: 28px; padding: clamp(22px, 4vw, 36px) clamp(18px, 4vw, 40px); background: var(--wr-fam); border-radius: var(--wr-radius); }
.wr-archive-head--fam .wr-chips { margin-top: 16px; }
.wr-pagination { display: flex; gap: 6px; justify-content: center; margin: 32px 0; flex-wrap: wrap; }
.wr-pagination .page-numbers { padding: 8px 15px; border-radius: var(--wr-radius-pill); background: var(--wr-card); border: 2px solid var(--wr-rose-line); text-decoration: none; color: var(--wr-ink); font-weight: 700; }
.wr-pagination .current { background: var(--wr-rose-dark); border-color: var(--wr-rose-dark); color: var(--wr-on-rose); }
.wr-empty { padding: 32px; text-align: center; background: var(--wr-card); border-radius: var(--wr-radius); border: 2px solid var(--wr-rose-line); }

/* Pied de page --------------------------------------------------- */
.wr-footer { background: var(--wr-ink); color: var(--wr-on-dark-soft); margin-top: 48px; padding: 44px 0 24px; font-size: .95rem; }
.wr-footer a { color: var(--wr-on-dark); }
.wr-footer a:hover { color: var(--wr-dragee-mid); }
.wr-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 24px; }
.wr-footer h2 { font-size: 1.125rem; font-weight: 600; color: var(--wr-on-dark); margin: 0 0 10px; }
.wr-footer h2.wr-footer__brand { font-weight: 800; font-size: 1.5rem; }
.wr-footer ul { list-style: none; padding: 0; margin: 0; }
.wr-footer li { margin-bottom: 2px; }
.wr-footer li a { display: inline-block; padding: 6px 0; }
.wr-footer .wr-btn { color: var(--wr-on-rose); }
/* On the dark footer the darker rose hover would melt into the background: light dragee instead (5.8:1). */
.wr-footer .wr-btn:hover { background: var(--wr-dragee); border-color: var(--wr-dragee); color: var(--wr-dragee-ink); }
.wr-footer__actions { display: flex; flex-wrap: wrap; gap: 10px; }
/* Secondary button on the dark footer: light outline instead of a card fill. */
.wr-footer .wr-btn--ghost { background: transparent; color: var(--wr-on-dark); border-color: var(--wr-on-dark-muted); }
.wr-footer .wr-btn--ghost:hover { background: color-mix(in srgb, var(--wr-on-dark) 12%, transparent); color: var(--wr-on-dark); border-color: var(--wr-on-dark); }
/* Keyboard focus on the dark footer: the ink outline would be invisible there. */
.wr-footer :focus-visible { outline-color: var(--wr-on-dark); }
.wr-footer__bottom { border-top: 1px solid color-mix(in srgb, var(--wr-on-dark) 18%, transparent); margin-top: 24px; padding-top: 16px; font-size: .9375rem; color: var(--wr-on-dark-muted); }
@media (max-width: 760px) { .wr-footer__grid { grid-template-columns: 1fr; } }

/* Contenu des pages --------------------------------------------- */
.wr-page { padding: 32px 0 48px; }


/* ------------------------------------------------------------------
   Allègement : le rose devient un accent (boutons, liens, puces,
   repères actifs). Contours et fonds restent neutres pour la lecture.
   ------------------------------------------------------------------ */
body { line-height: 1.7; }
.wr-nav a { font-weight: 700; }

/* Fond de page blanc ; seul le haut de page a un dégradé crème rosé qui se fond dans le blanc */
.wr-hero { background: var(--wr-bg); }

/* Pastilles de rubrique : contour au lieu d'aplat rose */
.wr-tag { background: var(--wr-card); color: var(--wr-rose-dark); border: 1px solid var(--wr-rose-line); }
.wr-tag:hover { background: var(--wr-rose-soft); color: var(--wr-rose-dark); }
.wr-tag--quiet { background: transparent; color: var(--wr-ink); border-color: var(--wr-field); }
.wr-tag--quiet:hover { background: var(--wr-rose-soft); color: var(--wr-ink); }

/* ------------------------------------------------------------------
   Familles de rubriques : chaque rubrique a une teinte (fond), un « moyen »
   (bordure) et une couleur de texte (5,5:1 à 6,6:1 sur la teinte). La couleur
   accompagne toujours le nom écrit de la rubrique, jamais seule.
   Class set by wr_rubric_family() / wr_post_family() in functions.php.
   ------------------------------------------------------------------ */
.wr-fam--dragee    { --wr-fam: var(--wr-dragee);    --wr-fam-mid: var(--wr-dragee-mid);    --wr-fam-ink: var(--wr-dragee-ink); }
.wr-fam--peche     { --wr-fam: var(--wr-peche);     --wr-fam-mid: var(--wr-peche-mid);     --wr-fam-ink: var(--wr-peche-ink); }
.wr-fam--tilleul   { --wr-fam: var(--wr-tilleul);   --wr-fam-mid: var(--wr-tilleul-mid);   --wr-fam-ink: var(--wr-tilleul-ink); }
.wr-fam--pervenche { --wr-fam: var(--wr-pervenche); --wr-fam-mid: var(--wr-pervenche-mid); --wr-fam-ink: var(--wr-pervenche-ink); }
.wr-fam--galet     { --wr-fam: var(--wr-galet);     --wr-fam-mid: var(--wr-galet-mid);     --wr-fam-ink: var(--wr-galet-ink); }

/* Rubric tag (sheet header): family tint and text colour; underline on hover, the tint stays readable. */
.wr-tag[class*="wr-fam--"] { background: var(--wr-fam); color: var(--wr-fam-ink); border-color: var(--wr-fam); }
a.wr-tag[class*="wr-fam--"]:hover { background: var(--wr-fam); color: var(--wr-fam-ink); text-decoration: underline; text-decoration-thickness: 2px; }

/* Tabbed sheet (lists): a tab with the rubric name above the card, the card border in the family "mid". */
.wr-fiche { position: relative; display: flex; flex-direction: column; min-width: 0; }
/* The title link's overlay (.wr-card__title a::after) covers the whole sheet, tab included. */
.wr-fiche > .wr-card { position: static; }
.wr-tag--tab { align-self: flex-start; min-height: 0; margin-bottom: -1px; padding: .3rem 1rem; border: 1px solid var(--wr-fam-mid); border-bottom: 0; border-radius: 12px 12px 0 0; background: var(--wr-fam); color: var(--wr-fam-ink); }
.wr-fiche > .wr-card { flex: 1; border: 1px solid var(--wr-fam-mid); border-radius: 0 var(--wr-radius) var(--wr-radius) var(--wr-radius); box-shadow: var(--wr-shadow); }
.wr-fiche > .wr-card:first-child { border-radius: var(--wr-radius); } /* no tab (archive of the same rubric) */
.wr-fiche:hover > .wr-card { border-color: var(--wr-fam-ink); }
.wr-fiche:hover > .wr-tag--tab { border-color: var(--wr-fam-ink); }

/* FAQ : lignes simples */
.wr-faq details { border: 1.5px solid var(--wr-rose-line); border-radius: 14px; }
.wr-faq details[open] { border-color: var(--wr-rose-line); }
.wr-faq summary { font-weight: 700; }
.wr-faq summary::after { background: none; color: var(--wr-rose); font-size: 1.4rem; font-weight: 400; }

/* Guide : intertitres sans barre, numéro rose discret */
.wr-guide { border-top: 1.5px solid var(--wr-rose-line); }
.wr-guide h2 { padding-left: 0; }
.wr-guide h2::after { display: none; }
.wr-guide h2::before { color: var(--wr-rose); }
.wr-content ol > li::before { background: var(--wr-bg); border: 1.5px solid var(--wr-rose-line); }

/* Encadrés : fonds très légers, sans contour */
.wp-block-columns.is-style-wr-cartes > .wp-block-column { border-width: 1.5px; }
.wp-block-columns.is-style-wr-cartes :is(h3, h4) { color: var(--wr-ink); }

/* Colonne de droite */
.wr-toc, .wr-side-cta { border-width: 1.5px; }
.wr-toc__title::before, .wr-toc--mobile > summary::before { opacity: .85; }
.wr-toc__list a.is-active { background: none; font-weight: 700; }
.wr-toc__num { color: var(--wr-ink-soft); font-weight: 700; }
.wr-toc__list a.is-active .wr-toc__num { color: var(--wr-rose-dark); }
.wr-side-cta__title span { font-size: 1.5rem; }

/* Cartes, rubriques, champ de recherche */
.wr-card, .wr-chip { border-width: 1.5px; }
.wr-card:hover { border-color: var(--wr-field); }


/* ------------------------------------------------------------------
   Version validée (maquette de Vincent) : aplats rose clair sans contour,
   icônes au trait rose, numéros de partie en pastille.
   ------------------------------------------------------------------ */
.wr-icon { width: 1.15em; height: 1.15em; flex: none; color: var(--wr-rose); }

/* Titre de fiche : petit trait rose dessous */
.wr-hero-article h1::after { content: ""; display: block; width: 64px; height: 5px; border-radius: 5px; background: var(--wr-rose); margin-top: 16px; }

/* En bref : aplat rose clair, titre et icône à gauche, points à droite */
.wr-enbref { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 0 28px; background: var(--wr-dragee); border-radius: var(--wr-radius); padding: 22px 26px; margin: 18px 0 34px; }
.wr-enbref__title { display: flex; align-items: center; gap: 12px; margin: 0; font-family: var(--wr-font-display); font-weight: 600; font-size: 2rem; white-space: nowrap; }
.wr-enbref__title .wr-icon { width: 46px; height: 46px; stroke-width: 2.2; }
.wr-enbref__list { list-style: none; margin: 0; padding: 2px 0 2px 28px; border-left: 1px solid var(--wr-dragee-mid); }
.wr-enbref__list li { position: relative; padding-left: 30px; margin-bottom: .45em; font-size: .97rem; line-height: 1.5; }
.wr-enbref__list li:last-child { margin-bottom: 0; }
.wr-enbref__list li::before { content: ""; position: absolute; left: 0; top: .2em; width: 20px; height: 20px; background-color: var(--wr-dragee-ink); --wr-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cmask id='m'%3E%3Crect width='24' height='24' fill='%23fff'/%3E%3Cpath d='M7 12.5l3.2 3.2L17 9' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/mask%3E%3Ccircle cx='12' cy='12' r='11' fill='%23000' mask='url(%23m)'/%3E%3C/svg%3E"); -webkit-mask: var(--wr-mask) center / contain no-repeat; mask: var(--wr-mask) center / contain no-repeat; }
@media (max-width: 640px) {
	.wr-enbref { grid-template-columns: 1fr; padding: 18px; }
	.wr-enbref__title { font-size: 1.6rem; margin-bottom: 12px; }
	.wr-enbref__title .wr-icon { width: 38px; height: 38px; }
	.wr-enbref__list { border-left: 0; border-top: 1px solid var(--wr-dragee-mid); padding: 14px 0 0; }
}

/* Titres de section avec icône */
.wr-faq__title, .wr-sources h2, .wr-related__title { display: flex; align-items: center; gap: 12px; }
.wr-faq__title .wr-icon { width: 36px; height: 36px; }
.wr-sources h2 .wr-icon, .wr-related__title .wr-icon { width: 26px; height: 26px; }

/* FAQ : lignes fines, chevron rose */
.wr-faq details { border: 1px solid var(--wr-rose-line); border-radius: 12px; padding: 0 18px; margin-bottom: 8px; }
.wr-faq summary { padding: 11px 32px 11px 0; font-weight: 700; }
.wr-faq summary::after { content: ""; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; background: var(--wr-rose); --wr-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); -webkit-mask: var(--wr-mask) center / contain no-repeat; mask: var(--wr-mask) center / contain no-repeat; transition: transform .15s; }
.wr-faq details[open] summary::after { content: ""; transform: translateY(-50%) rotate(180deg); }

/* Parties numérotées : numéro dans une pastille rose */
.wr-guide { border-top: 1px solid var(--wr-dragee-mid); }
.wr-guide h2 { position: relative; padding-left: calc(1.38em + 14px); }
.wr-guide h2::before { content: counter(wr-h2); position: absolute; left: 0; top: -.09em; display: grid; place-items: center; width: 1.45em; height: 1.45em; border-radius: 9px; background: var(--wr-rose); color: var(--wr-on-rose); font-size: .95em; line-height: 1; }

/* Encadrés et cartes : aplats rose clair, sans contour */
.wp-block-group.is-style-wr-conseil { background: var(--wr-dragee); border: 0; border-radius: 16px; }
/* Attention: its own amber (peach is reserved for the Webreed boxes), thick left border, so a vet warning never looks like an ad. */
.wp-block-group.is-style-wr-attention { background: var(--wr-ambre); border: 0; border-left: 6px solid var(--wr-ambre-mid); border-radius: 6px 16px 16px 6px; }
.wp-block-columns.is-style-wr-cartes > .wp-block-column { background: var(--wr-dragee); border: 0; }

/* Colonne de droite */
.wr-toc { border: 1px solid var(--wr-rose-line); }
.wr-toc__list a.is-active { background: var(--wr-pink-wash); border-left-color: var(--wr-rose); color: var(--wr-rose-dark); font-weight: 700; }
.wr-side-cta__title { font-size: 1.35rem; }
.wr-side-cta__title span { font-size: 1.9rem; }
.wr-side-cta__img { display: block; width: 100%; height: auto; margin: 4px 0 10px; }
.wr-cta__img { display: block; width: min(100%, 300px); height: auto; margin: 6px auto 4px; }


/* Titres en Fraunces (charte de novembre 2026) : la Fredoka reste réservée au logo. */
.wr-toc__title, .wr-toc--mobile > summary, .wr-side-cta__title, .wr-enbref__title { font-family: var(--wr-font-title); font-optical-sizing: auto; font-weight: 650; }


/* Bannières Webreed au-dessus du pied de page */
.wr-promo { background: var(--wr-bg); padding: 40px 0; margin-top: 40px; }
.wr-promo + .wr-footer { margin-top: 0; }
.wr-promo__item { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; align-items: center; gap: 28px; background: var(--wr-peche); border-radius: 24px; padding: 22px 32px 22px 22px; }
.wr-promo__img { width: 100%; height: auto; }
.wr-promo__kicker { margin: 0 0 4px; font-weight: 700; font-size: .9375rem; color: var(--wr-rose-dark); }
.wr-promo__title { margin: 0 0 12px; font-family: var(--wr-font-title); font-optical-sizing: auto; font-weight: 650; font-size: clamp(1.5rem, 1.3rem + 1vw, 2rem); line-height: 1.15; }
.wr-promo__title span { color: var(--wr-rose); font-weight: 850; }
.wr-promo__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, max-content)); gap: 8px 26px; }
.wr-promo__list li { display: flex; align-items: flex-start; gap: 8px; font-weight: 700; font-size: .95rem; line-height: 1.4; }
.wr-promo__check { margin-top: .05em; width: 20px; height: 20px; flex: none; color: var(--wr-rose); }
.wr-promo__btn { white-space: nowrap; padding: 14px 26px; font-size: 1.05rem; }
@media (max-width: 900px) {
	.wr-promo__item { grid-template-columns: 1fr; text-align: center; padding: 22px 20px 26px; gap: 14px; }
	.wr-promo__img { max-width: 260px; margin: 0 auto; }
	.wr-promo__list { display: inline-flex; flex-direction: column; align-items: flex-start; text-align: left; gap: 6px; }
	.wr-promo__text { display: flex; flex-direction: column; align-items: center; }
	.wr-promo__btn { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

@media print {
	.wr-content .wp-block-table { overflow: visible; }
	.wr-content .wp-block-table table { width: 100%; }
	.wr-content th, .wr-content td { max-width: none; }
	.wr-table-hint, .wr-toc-fab { display: none !important; }
	.wr-header, .wr-footer, .wr-cta, .wr-related, .wr-promo { display: none; }
	.wr-layout__side, .wr-toc--mobile { display: none !important; }
	body { background: #fff; } /* paper */
}


/* ------------------------------------------------------------------
   Mobile : bouton flottant « Sommaire », étiquettes non cliquables des cartes
   ------------------------------------------------------------------ */
.wr-toc-fab { position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 30; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 10px 18px 10px 14px; border-radius: var(--wr-radius-pill); background: var(--wr-card); color: var(--wr-ink); border: 1.5px solid var(--wr-rose-line); box-shadow: 0 6px 20px color-mix(in srgb, var(--wr-ink) 16%, transparent); font-family: var(--wr-font); font-weight: 700; text-decoration: none; }
.wr-toc-fab:hover { color: var(--wr-rose-dark); }
.wr-toc-fab .wr-icon { width: 20px; height: 20px; }
.wr-toc-fab[hidden] { display: none; }
@media (min-width: 1000px) {
	.wr-toc-fab { display: none; }
}
#sommaire { scroll-margin-top: 84px; }
@media (max-height: 500px) {
	#sommaire { scroll-margin-top: 12px; }
}
/* Card labels are plain text: the tap goes to the card link underneath. */
span.wr-tag { pointer-events: none; }
/* Without JavaScript the navigation wraps on several lines: the header then scrolls away on small screens. */
@media (max-width: 999px) {
	.wr-header:not(.has-js) { position: relative; }
}

/* ------------------------------------------------------------------
   Relecture : encadré en fin de fiche (avant les sources) et page du relecteur
   ------------------------------------------------------------------ */
.wr-reviewer { background: var(--wr-pink-wash); border-radius: 20px; padding: 20px 22px; margin: 36px 0 0; }
.wr-reviewer__title { display: flex; align-items: center; gap: 12px; font-size: 1.2rem; margin: 0 0 6px; }
.wr-reviewer__title .wr-icon { width: 26px; height: 26px; }
.wr-reviewer__intro { margin: 0 0 14px; font-size: .92rem; color: var(--wr-ink-soft); }
.wr-reviewer__person { display: flex; align-items: flex-start; gap: 16px; }
.wr-reviewer__person + .wr-reviewer__person { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--wr-dragee-mid); }
.wr-reviewer__photo { flex: none; width: 72px; height: 72px; border-radius: 50%; object-fit: cover; background: var(--wr-card); }
.wr-reviewer__body { min-width: 0; }
.wr-reviewer__body > p { margin: 0 0 4px; }
.wr-reviewer__name { font-family: var(--wr-font-title); font-optical-sizing: auto; font-weight: 600; font-size: 1.125rem; }
.wr-reviewer__name a { color: var(--wr-ink); text-decoration-color: var(--wr-rose); text-underline-offset: 3px; }
.wr-reviewer__name a:hover { color: var(--wr-rose-dark); }
.wr-reviewer__role { font-weight: 700; color: var(--wr-rose-dark); font-size: .92rem; }
.wr-reviewer__bio { color: var(--wr-ink-soft); font-size: .92rem; line-height: 1.5; }
.wr-reviewer__links { display: flex; flex-wrap: wrap; gap: 6px 14px; list-style: none; margin: 8px 0 0; padding: 0; font-size: .88rem; }
.wr-reviewer__links a { display: inline-block; padding: 4px 0; color: var(--wr-rose-dark); overflow-wrap: anywhere; }
.wr-reviewer + .wr-sources { margin-top: 24px; }
.wr-reviewer--profile { margin: 12px 0 20px; max-width: 720px; }
.wr-reviewer--profile .wr-reviewer__photo { width: 96px; height: 96px; }
@media (max-width: 480px) {
	.wr-reviewer { padding: 18px 16px; }
	.wr-reviewer__photo { width: 56px; height: 56px; }
}
