/*
 * RunMotion v2 — blog, catégories, articles (chargé avec les blocs qui l'utilisent).
 * Mobile d'abord ; desktop ≥ 1100 px (même seuil que l'en-tête).
 */

/* ---------- Mise en page ---------- */
.rm-main { display: block; }
.rm-stack { display: flex; flex-direction: column; gap: 44px; padding-bottom: var(--rm-section); }
/* :root pour passer devant la marge des mises en page « flow » de WordPress (sinon elle s’ajoute au gap) */
:root .rm-stack > *, :root .rm-article-layout > *, :root .rm-article > *, :root .rm-article-end > * { margin-block: 0; }

/* ---------- Petits composants ---------- */
.rm-crumbs { font-size: 13px; line-height: 1.4; color: var(--rm-ink-subtle); }
.rm-crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 0; }
.rm-crumbs li + li::before { content: "›"; margin: 0 8px; color: var(--rm-ink-subtle); }
.rm-crumbs a { color: var(--rm-ink-subtle); text-decoration: none; }
.rm-crumbs a:hover { color: var(--rm-link); text-decoration: underline; }
.rm-crumbs [aria-current] { color: var(--rm-ink); }

.rm-tag {
	display: inline-block; align-self: flex-start; padding: 6px 12px; border-radius: var(--rm-r-sm);
	background: var(--rm-green); color: var(--rm-on-green); font-size: 13px; font-weight: 700; line-height: 1.3; text-decoration: none;
}
a.rm-tag:hover { color: var(--rm-on-green); filter: brightness(1.05); }

.rm-pills { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rm-pill {
	display: inline-flex; align-items: center; min-height: 40px; box-sizing: border-box; padding: 0 14px;
	border-radius: var(--rm-r-pill); font-size: 13px; font-weight: 700; text-decoration: none;
}
.rm-pill--outline { background: var(--rm-surface); color: var(--rm-ink); box-shadow: inset 0 0 0 1px var(--rm-line); }
.rm-pill--outline:hover { color: var(--rm-ink); box-shadow: inset 0 0 0 2px var(--rm-green); }

.rm-chips ul { list-style: none; margin: 0; padding: 2px 0; display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; }
.rm-chips ul::-webkit-scrollbar { display: none; }
.rm-chips li { flex-shrink: 0; scroll-snap-align: start; }
.rm-chip {
	display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; padding: 0 16px; white-space: nowrap;
	border-radius: var(--rm-r-pill); background: var(--rm-chip); color: var(--rm-ink); font-size: 14px; font-weight: 600; text-decoration: none;
}
.rm-chip:hover { color: var(--rm-ink); box-shadow: inset 0 0 0 2px var(--rm-green); }
.rm-chip[aria-current] { background: var(--rm-green); color: var(--rm-on-green); font-weight: 700; }

.rm-box { box-sizing: border-box; padding: 22px; border-radius: var(--rm-r-lg); background: var(--rm-surface); box-shadow: var(--rm-shadow-card); }
.rm-box__title { margin: 0 0 10px; font-size: 15px; font-weight: 800; }
.rm-tools ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.rm-tools a { display: inline-flex; gap: 5px; min-height: 36px; align-items: center; font-size: 15px; }

.rm-avatar { width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0; object-fit: cover; }
.rm-avatar--initials {
	width: var(--rm-avatar); height: var(--rm-avatar); display: inline-flex; align-items: center; justify-content: center;
	background: var(--rm-green-soft); color: var(--rm-link); font-weight: 800; font-size: calc(var(--rm-avatar) * .36); line-height: 1;
}

.rm-proof { margin: 0; font-size: 15px; line-height: 1.5; color: var(--rm-ink-muted); }
.rm-proof__stars { color: var(--rm-link); }

.rm-stores { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rm-stores__badge { display: inline-flex; min-height: 44px; align-items: center; }
.rm-stores img { display: block; }

/* Recherche */
.rm-search {
	display: flex; align-items: center; gap: 8px; width: 100%; max-width: 640px; box-sizing: border-box;
	padding: 6px 6px 6px 22px; border-radius: var(--rm-r-pill); background: var(--rm-surface); box-shadow: var(--rm-shadow-card);
}
.rm-search input {
	flex: 1; min-width: 0; min-height: 44px; border: 0; background: transparent; font: inherit; font-size: 16px; color: var(--rm-ink);
}
.rm-search input:focus { outline: none; }
.rm-search:focus-within { box-shadow: var(--rm-shadow-card), 0 0 0 2px var(--rm-focus); }
.rm-search button {
	width: 48px; height: 48px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
	border: 0; border-radius: 50%; background: var(--rm-green); color: var(--rm-on-green); cursor: pointer;
}

/* ---------- Cartes d'articles ---------- */
.rm-card { min-width: 0; }
.rm-card__link { display: flex; flex-direction: column; gap: 10px; color: var(--rm-ink); text-decoration: none; }
.rm-card__link:hover { color: var(--rm-ink); }
.rm-card__link:hover .rm-card__title { color: var(--rm-link); }
.rm-card__media { display: block; overflow: hidden; border-radius: var(--rm-r-md); background: var(--rm-chip); }
.rm-thumb { display: block; width: 100%; height: 100%; object-fit: cover; }
.rm-thumb--empty { min-height: 100%; }
.rm-card__body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.rm-card__kicker { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .02em; line-height: 1.3; text-transform: uppercase; color: var(--rm-link); }
.rm-card__title { margin: 0; font-size: 17px; font-weight: 700; line-height: 1.35; text-transform: none; color: inherit; }
.rm-card__excerpt { font-size: 16px; line-height: 1.6; color: var(--rm-ink-muted); }
.rm-card__meta { font-size: 13px; line-height: 1.4; color: var(--rm-ink-subtle); }

/* Mobile : vignettes en ligne (image 112 × 84). */
.rm-card--grid .rm-card__link, .rm-card--side .rm-card__link, .rm-card--row .rm-card__link { flex-direction: row; align-items: flex-start; gap: 14px; }
.rm-card--grid .rm-card__media, .rm-card--side .rm-card__media, .rm-card--row .rm-card__media { width: 112px; height: 84px; flex-shrink: 0; }
.rm-card--lead .rm-card__media { aspect-ratio: 16 / 10; border-radius: var(--rm-r-lg); }
.rm-card--lead .rm-card__title { font-size: 22px; font-weight: 900; line-height: 1.2; }
.rm-card--lead .rm-card__body { gap: 10px; }

/* Grilles */
.rm-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.rm-grid--cards > * { order: var(--o, 0); }
.rm-posts { display: flex; flex-direction: column; gap: 24px; }
.rm-posts__title { margin: 0; }
.rm-posts__empty { margin: 0; color: var(--rm-ink-muted); }

/* Encarts d'offre */
.rm-promo-card { box-sizing: border-box; height: 100%; display: flex; gap: 14px; border-radius: var(--rm-r-lg); }
.rm-promo-card--app { padding: 18px; background: var(--rm-green-soft); align-items: center; }
.rm-promo-card--race { padding: 20px; background: var(--rm-surface); box-shadow: var(--rm-shadow-card); align-items: center; }
.rm-promo-card__screen { flex: 0 0 84px; overflow: hidden; border-radius: var(--rm-r-md); box-shadow: var(--rm-shadow-card); line-height: 0; }
.rm-promo-card__screen img { width: 100%; height: auto; }
.rm-promo-card__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.rm-promo-card__title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.rm-promo-card__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--rm-ink-muted); }
.rm-promo-card .rm-btn { margin-top: 4px; }

/* Pagination */
.rm-pager ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.rm-pager__n, .rm-pager__step {
	display: inline-flex; align-items: center; justify-content: center; height: 44px; box-sizing: border-box;
	background: var(--rm-surface); box-shadow: var(--rm-shadow-card); color: var(--rm-ink); font-weight: 700; text-decoration: none;
}
.rm-pager__n { min-width: 44px; border-radius: 50%; }
.rm-pager__step { gap: 6px; padding: 0 18px; border-radius: var(--rm-r-pill); }
a.rm-pager__n:hover, .rm-pager__step:hover { color: var(--rm-ink); box-shadow: inset 0 0 0 2px var(--rm-green); }
.rm-pager__n[aria-current] { background: var(--rm-green); color: var(--rm-on-green); box-shadow: none; font-weight: 800; }
.rm-pager__dots { display: inline-flex; align-items: center; height: 44px; padding: 0 4px; color: var(--rm-ink-subtle); }

/* ---------- Bandeau « Tu prépares une course ? » et encart de colonne ---------- */
.rm-plan-promo { box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--rm-r-lg); background: var(--rm-green-soft); border: 2px solid var(--rm-green); }
.rm-plan-promo__text { display: flex; flex-direction: column; gap: 6px; }
.rm-plan-promo__title { margin: 0; font-size: 18px; font-weight: 900; line-height: 1.25; }
.rm-plan-promo--band .rm-plan-promo__title { text-transform: uppercase; }
.rm-plan-promo__desc { margin: 0; font-size: 15px; line-height: 1.5; color: var(--rm-ink-muted); }
.rm-plan-promo--band .rm-btn { width: 100%; }
.rm-plan-promo__screen { width: 64px; overflow: hidden; border-radius: var(--rm-r-md); line-height: 0; box-shadow: var(--rm-shadow-card); }
.rm-plan-promo__screen img { width: 100%; height: auto; }
.rm-plan-promo.has-screen { display: grid; grid-template-columns: 64px minmax(0, 1fr); align-items: center; }
.rm-plan-promo.has-screen .rm-btn { grid-column: 1 / -1; }
.rm-plan-promo--sidebar { border: 0; padding: 22px; gap: 14px; }
.rm-plan-promo--sidebar .rm-plan-promo__title { font-size: 19px; font-weight: 800; }
.rm-plan-promo__rating { margin: 0; font-size: 13px; color: var(--rm-ink-subtle); }

/* ---------- Hero du blog ---------- */
/* Heros à fond (photo du blog et de l'accueil, courbes de niveau des plans et du guide organisateurs) : le fond touche le menu,
   sans l'espacement automatique de 20 px au-dessus du contenu (porté par main, ou par le contenu de la page sur les plans). */
.wp-site-blocks > .rm-main:has(.rm-blog-hero, .rm-hero-home, .rm-plan-hero.is-style-topo, .rm-b2b-hero),
.rm-main > .rm-plan-content:has(> .rm-plan-hero:first-child) { margin-block-start: 0; }
.rm-blog-hero { position: relative; overflow: hidden; isolation: isolate; }
.rm-blog-hero__bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.rm-blog-hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1;
	background: linear-gradient(color-mix(in srgb, var(--rm-bg) 93%, transparent) 0%, color-mix(in srgb, var(--rm-bg) 86%, transparent) 55%, var(--rm-bg) 100%);
}
.rm-blog-hero__inner {
	box-sizing: border-box; max-width: calc(1280px + 2 * var(--rm-gutter)); margin-inline: auto;
	padding: 24px var(--rm-gutter) 20px; display: flex; flex-direction: column; gap: 14px;
}
.rm-blog-hero__title { margin: 0; max-width: 1040px; }
.rm-blog-hero__lead { margin: 0; max-width: 760px; font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: var(--rm-ink-muted); }
.rm-blog-hero .rm-search { margin-top: 6px; }

/* À la une */
.rm-featured--blog { display: flex; flex-direction: column; gap: 28px; }
.rm-featured__side { display: flex; flex-direction: column; gap: 18px; }
.rm-featured__title { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: .04em; line-height: 1.3; text-transform: uppercase; }

/* ---------- Catégorie ---------- */
.rm-cat-header { display: flex; flex-direction: column; gap: 16px; padding-top: 20px; }
.rm-cat-header__main { display: flex; flex-direction: column; gap: 12px; }
.rm-cat-header__title, .rm-arch-header__title { margin: 0; }
.rm-cat-header__lead, .rm-arch-header__lead { margin: 0; font-size: 17px; line-height: 1.6; color: var(--rm-ink-muted); max-width: 760px; }
.rm-cat-header .rm-chips { margin-right: calc(-1 * var(--rm-gutter)); }
.rm-cat-seo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; }
.rm-cat-seo h2, .rm-cat-seo .rm-prose h2 { margin: 0 0 14px; font-size: var(--wp--preset--font-size--h-2); line-height: 1.12; }

.rm-arch-header { display: flex; flex-direction: column; gap: 14px; padding-top: 24px; }

/* ---------- FAQ ---------- */
.rm-faq { display: flex; flex-direction: column; gap: 14px; }
.rm-faq__title { margin: 0; }
.rm-faq__list { display: flex; flex-direction: column; gap: 10px; }
.rm-faq__item { background: var(--rm-surface); border-radius: var(--rm-r-md); box-shadow: var(--rm-shadow-card); }
.rm-faq__item summary {
	list-style: none; cursor: pointer; min-height: 44px; box-sizing: border-box; padding: 14px 18px;
	display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 15px; font-weight: 700; line-height: 1.4;
	border-radius: var(--rm-r-md);
}
.rm-faq__item summary::-webkit-details-marker { display: none; }
.rm-faq__item summary::after { content: "+"; flex-shrink: 0; color: var(--rm-link); font-size: 20px; font-weight: 700; line-height: 1; }
.rm-faq__item[open] summary::after { content: "\2212"; }
.rm-faq__answer { padding: 0 18px 18px; font-size: 15px; line-height: 1.7; color: var(--rm-ink-muted); }
.rm-faq__answer > * { margin: 0 0 .8em; }
.rm-faq__answer > :last-child { margin-bottom: 0; }
.rm-faq__answer a { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Article ---------- */
.rm-ph { display: flex; flex-direction: column; }
.rm-ph__inner { box-sizing: border-box; width: 100%; max-width: calc(1100px + 2 * var(--rm-gutter)); margin-inline: auto; padding: 20px var(--rm-gutter) 20px; display: flex; flex-direction: column; gap: 14px; }
.rm-ph__title { margin: 0; }
.rm-ph__byline { display: flex; align-items: center; gap: 10px; }
.rm-ph__meta { margin: 0; font-size: 13px; line-height: 1.5; color: var(--rm-ink-muted); }
.rm-ph__meta a { color: var(--rm-ink); text-decoration: none; }
.rm-ph__meta a:hover { color: var(--rm-link); }
.rm-ph__meta--long { display: none; }
.rm-ph__image { margin: 0 auto; width: 100%; max-width: 1100px; }
.rm-ph__image img { display: block; width: 100%; height: auto; aspect-ratio: 390 / 240; object-fit: cover; }

.rm-article-layout { box-sizing: border-box; width: 100%; max-width: calc(1100px + 2 * var(--rm-gutter)); margin-inline: auto; padding: 24px var(--rm-gutter) 8px; display: flex; flex-direction: column; gap: 44px; }
.rm-article { display: flex; flex-direction: column; gap: 44px; min-width: 0; }
.rm-aside { display: flex; flex-direction: column; gap: 20px; }
.rm-aside__toc { display: none; }
.rm-aside__sticky { display: flex; flex-direction: column; gap: 20px; }

/* Contenu rédactionnel (articles, pages, textes SEO) */
.rm-prose { font-size: 17px; line-height: 1.7; color: var(--rm-ink); overflow-wrap: break-word; }
.rm-prose > * { margin-block: 0 1.1em; }
.rm-prose > :last-child { margin-bottom: 0; }
.rm-prose h2 { margin: 1.6em 0 .6em; font-size: clamp(22px, 1.4rem + .6vw, 28px); line-height: 1.2; scroll-margin-top: calc(var(--rm-header-h) + 24px); }
.rm-prose h3 { margin: 1.5em 0 .5em; font-size: 21px; line-height: 1.3; text-transform: none; }
.rm-prose h4 { margin: 1.3em 0 .4em; }
.rm-prose > h2:first-child, .rm-prose > h3:first-child { margin-top: 0; }
.rm-prose a { color: var(--rm-link); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.rm-prose a:hover { color: var(--rm-link-hover); }
.rm-prose a.rm-btn { color: var(--rm-on-green); text-decoration: none; }
.rm-prose ul, .rm-prose ol { padding-left: 22px; }
.rm-prose li + li { margin-top: .4em; }
.rm-prose img { border-radius: var(--rm-r-md); height: auto; }
.rm-prose figure { margin-inline: 0; }
.rm-prose figcaption { margin-top: 8px; font-size: 13px; line-height: 1.45; color: var(--rm-ink-subtle); }
.rm-prose blockquote { margin-inline: 0; padding-left: 20px; border-left: 2px solid var(--rm-green); color: var(--rm-ink-muted); }
.rm-prose .wp-block-table, .rm-prose .rm-table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.rm-prose table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; }
.rm-prose th, .rm-prose td { padding: 10px 12px; border-bottom: 1px solid var(--rm-line); text-align: left; vertical-align: top; }
.rm-prose th { font-weight: 800; background: var(--rm-surface-alt); }
.rm-prose iframe, .rm-prose video { max-width: 100%; }
.rm-prose .wp-block-embed__wrapper { position: relative; }
.rm-prose .wp-has-aspect-ratio .wp-block-embed__wrapper iframe { position: absolute; inset: 0; width: 100%; height: 100%; }
.rm-prose hr { border: 0; border-top: 1px solid var(--rm-line); }
.rm-legacy-row { display: grid; gap: 20px; }
@media (min-width: 768px) { .rm-legacy-row { grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); } }

/* Blocs rédactionnels */
.rm-short { box-sizing: border-box; padding: 20px; border-radius: var(--rm-r-lg); background: var(--rm-green-soft); border: 2px solid var(--rm-green); display: flex; flex-direction: column; gap: 10px; }
.rm-short__title { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.rm-short ul, .rm-short ol { margin: 0; padding-left: 20px; font-size: 15px; line-height: 1.55; }
.rm-short li + li { margin-top: 6px; }

.rm-toc { box-sizing: border-box; border-radius: var(--rm-r-lg); background: var(--rm-surface); box-shadow: var(--rm-shadow-card); }
.rm-toc__list { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; }
.rm-toc__list li + li { margin: 0; }
.rm-toc__list a { color: var(--rm-ink-muted); text-decoration: none; }
.rm-toc__list a:hover { color: var(--rm-link); text-decoration: underline; }
.rm-toc__list a[aria-current] { color: var(--rm-link); font-weight: 700; }
.rm-toc--inline summary {
	list-style: none; cursor: pointer; min-height: 48px; box-sizing: border-box; padding: 0 18px;
	display: flex; align-items: center; justify-content: space-between;
	font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--rm-r-lg);
}
.rm-toc--inline summary::-webkit-details-marker { display: none; }
.rm-toc--inline summary::after { content: "+"; color: var(--rm-link); font-size: 20px; }
.rm-toc--inline[open] summary::after { content: "\2212"; }
.rm-toc--inline .rm-toc__list { padding: 0 18px 18px 38px; }
.rm-toc--aside { padding: 22px; }
.rm-toc__title { margin: 0 0 12px; font-size: 15px; font-weight: 800; }

.rm-inline-cta {
	display: flex; gap: 16px; align-items: center; box-sizing: border-box; padding: 20px;
	border-radius: var(--rm-r-lg); background: var(--rm-surface); box-shadow: var(--rm-shadow-card);
}
.rm-inline-cta__screen { flex: 0 0 92px; overflow: hidden; border-radius: var(--rm-r-md); line-height: 0; box-shadow: var(--rm-shadow-card); }
.rm-inline-cta__screen img { width: 100%; height: auto; }
.rm-inline-cta__body { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.rm-inline-cta__title { margin: 0; font-size: 17px; font-weight: 800; line-height: 1.3; }
.rm-inline-cta__text { margin: 0; font-size: 15px; line-height: 1.5; color: var(--rm-ink-muted); }

.rm-checklist { list-style: none; margin: 0; padding: 18px; display: flex; flex-direction: column; gap: 4px; border-radius: var(--rm-r-lg); background: var(--rm-surface); box-shadow: var(--rm-shadow-card); }
.rm-prose .rm-checklist { padding-left: 18px; }
.rm-checklist li { display: flex; align-items: center; gap: 12px; min-height: 44px; margin: 0; }
.rm-checklist input { width: 22px; height: 22px; margin: 0; flex-shrink: 0; accent-color: var(--rm-link); cursor: pointer; }
.rm-checklist label { font-size: 15px; line-height: 1.45; cursor: pointer; }
.rm-checklist input:checked + label { color: var(--rm-ink-subtle); text-decoration: line-through; }

.rm-author { display: flex; align-items: center; gap: 14px; padding-top: 24px; border-top: 1px solid var(--rm-line); }
.rm-author .rm-avatar { width: 52px; height: 52px; }
.rm-author .rm-avatar--initials { --rm-avatar: 52px; }
.rm-author__text { display: flex; flex-direction: column; gap: 4px; }
.rm-author__name { color: var(--rm-ink); font-weight: 800; text-decoration: none; }
.rm-author__name:hover { color: var(--rm-link); }
.rm-author__bio { margin: 0; font-size: 14px; line-height: 1.5; color: var(--rm-ink-subtle); }

/* Fin d'article : sur mobile, « À lire aussi » passe avant le CTA de fin. */
.rm-article-end { display: flex; flex-direction: column; }
.rm-article-end > .rm-container { order: -1; }
.rm-related { display: flex; flex-direction: column; gap: 16px; padding: 32px 0 20px; }
.rm-related__title { margin: 0; }

.rm-cta-final { margin-top: 0; }
.rm-cta-final__inner {
	box-sizing: border-box; max-width: calc(1100px + 2 * var(--rm-gutter)); margin-inline: auto; padding: 36px var(--rm-gutter);
	display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center;
}
.rm-cta-final__title { margin: 0; max-width: 900px; }
.rm-cta-final__text { margin: 0; max-width: 680px; font-size: 17px; color: var(--rm-ink-muted); }
.rm-cta-final .rm-stores { justify-content: center; }
.rm-cta-final .rm-btn--lg { width: 100%; max-width: 420px; }

/* ---------- Tablette ---------- */
@media (min-width: 768px) {
	.rm-card--grid .rm-card__link { flex-direction: column; gap: 12px; }
	.rm-card--grid .rm-card__media { width: 100%; height: auto; aspect-ratio: 5 / 3; }
	.rm-card--grid .rm-card__title { font-size: 19px; font-weight: 800; line-height: 1.3; }
	.rm-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
	.rm-grid--cards > * { order: 0; }
	.rm-grid__promo:has(.rm-promo-card--race) { grid-column: span 2; }
	.rm-promo-card--app { flex-direction: column; align-items: flex-start; padding: 26px; border-radius: var(--rm-r-md); }
	.rm-promo-card--app .rm-promo-card__screen { flex: none; width: 100%; height: 190px; }
	.rm-promo-card--app .rm-promo-card__screen img { height: 100%; object-fit: cover; object-position: top; }
	.rm-promo-card--race { padding: 32px; }
	.rm-promo-card__title { font-size: 21px; }
	.rm-ph__meta--long { display: block; font-size: 14px; }
	.rm-ph__meta--short { display: none; }
	.rm-ph__image img { aspect-ratio: 1100 / 560; border-radius: var(--rm-r-lg); }
	.rm-ph__image { padding-inline: var(--rm-gutter); box-sizing: border-box; max-width: calc(1100px + 2 * var(--rm-gutter)); }
	.rm-plan-promo--band { flex-direction: row; align-items: center; gap: 28px; padding: 26px 32px; }
	.rm-plan-promo--band .rm-plan-promo__text { flex: 1; }
	.rm-plan-promo--band .rm-plan-promo__title { font-size: 22px; font-weight: 800; text-transform: none; }
	.rm-plan-promo--band .rm-plan-promo__desc { font-size: 16px; }
	.rm-plan-promo--band .rm-btn { width: auto; flex-shrink: 0; }
	.rm-plan-promo--band.has-screen { display: flex; }
	.rm-plan-promo--band .rm-plan-promo__screen { flex: 0 0 84px; width: 84px; }
	.rm-blog-hero__inner { padding-top: 48px; padding-bottom: 40px; gap: 20px; }
	.rm-inline-cta { padding: 30px; gap: 24px; }
	.rm-inline-cta__screen { flex-basis: 150px; border-radius: var(--rm-r-lg); }
	.rm-inline-cta__title { font-size: 20px; }
	.rm-short { padding: 26px 28px; }
	.rm-short ul, .rm-short ol { font-size: 16px; }
	.rm-short__title { font-size: 15px; }
	.rm-checklist { padding: 24px 28px; }
	.rm-checklist label { font-size: 16px; }
	.rm-faq__item summary { padding: 16px 22px; font-size: 17px; }
	.rm-faq__answer { padding: 0 22px 18px; font-size: 17px; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1100px) {
	.rm-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.rm-card--side .rm-card__media { width: 170px; height: 114px; }
	.rm-card--side .rm-card__title { font-size: 19px; font-weight: 800; line-height: 1.3; }
	.rm-card--lead .rm-card__media { aspect-ratio: auto; height: 400px; }
	.rm-card--lead .rm-card__title { font-size: 26px; }
	.rm-featured--blog { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 28px; align-items: start; }
	.rm-featured__lead { grid-column: span 7; }
	.rm-featured__side { grid-column: span 5; gap: 22px; }
	.rm-featured--category .rm-card--lead .rm-card__link { display: grid; grid-template-columns: 7fr 5fr; gap: 28px; align-items: center; }
	.rm-featured--category .rm-card--lead .rm-card__media { height: 380px; }

	.rm-blog-hero__inner { padding-top: 64px; padding-bottom: 48px; }
	.rm-stack { gap: 64px; }

	.rm-cat-header { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 48px; align-items: end; padding-top: 32px; }
	.rm-cat-header__main { grid-column: span 7; gap: 16px; }
	.rm-cat-header__filters { grid-column: span 5; }
	.rm-cat-header .rm-chips { margin-right: 0; }
	.rm-cat-header .rm-chips ul { flex-wrap: wrap; overflow: visible; justify-content: flex-end; }
	.rm-cat-header__lead, .rm-arch-header__lead { font-size: 20px; }
	.rm-crumbs { font-size: 14px; }
	.rm-cat-seo--two { grid-template-columns: 7fr 5fr; gap: 48px; }
	.rm-cat-seo .rm-prose { font-size: 18px; }
	.rm-arch-header { padding-top: 32px; }

	/* Article : en-tête 1100 px, corps 700 px + colonne 336 px. */
	.rm-ph__inner { padding-top: 32px; padding-bottom: 24px; gap: 18px; }
	.rm-ph__byline { gap: 14px; }
	.rm-article-layout { display: grid; grid-template-columns: minmax(0, 700px) 336px; justify-content: space-between; gap: 64px; padding-top: 40px; padding-bottom: 20px; }
	.rm-article { gap: 52px; }
	.rm-prose { font-size: 18px; line-height: 1.75; }
	.rm-prose h2 { font-size: 28px; }
	.rm-toc--inline { display: none; }
	.rm-aside__toc { display: block; }
	.rm-aside__sticky { position: sticky; top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--rm-header-h) + 24px); }
	.rm-article-end > .rm-container { order: 0; }
	.rm-related { padding: 48px 0; gap: 24px; }
	.rm-cta-final__inner { padding: 56px var(--rm-gutter); gap: 20px; }
	.rm-cta-final__text, .rm-cta-final .rm-proof { font-size: 18px; }
	.rm-cta-final .rm-btn--lg { width: auto; }
}

/* =====================================================================
 * Gabarit « Plan d'entraînement » (§7.2)
 * ===================================================================== */
.rm-plan-content > * { margin-block: 0; }
.rm-page-header { display: flex; flex-direction: column; gap: 14px; padding: 24px 0 32px; }
.rm-page-header__title { margin: 0; }
.rm-page-header__lead, .rm-lead { margin: 0; font-size: var(--wp--preset--font-size--lead); line-height: 1.55; color: var(--rm-ink-muted); }

/* Styles de groupes et de paragraphes (éditeur) */
.is-style-card { box-sizing: border-box; padding: 20px; border-radius: var(--rm-r-lg); background: var(--rm-surface); box-shadow: var(--rm-shadow-card); display: flex; flex-direction: column; gap: 8px; }
.is-style-card-featured { box-sizing: border-box; padding: 20px; border-radius: var(--rm-r-lg); background: var(--rm-green-soft); border: 2px solid var(--rm-green); display: flex; flex-direction: column; gap: 10px; }
.rm-main .is-style-card > *, .rm-main .is-style-card-featured > * { margin: 0; }
.is-style-section-alt { background: var(--rm-surface-alt); }
p.is-style-kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--rm-link); }
p.is-style-stat { margin: 0; font-size: var(--wp--preset--font-size--stat); font-weight: 900; line-height: 1; color: var(--rm-link); font-variant-numeric: tabular-nums; }
.rm-grid-2, .rm-grid-3 { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.rm-main .rm-grid-2 > *, .rm-main .rm-grid-3 > * { margin: 0; }

/* Hero */
.rm-plan-hero__grid { display: flex; flex-direction: column; gap: 24px; padding-top: 24px; padding-bottom: 32px; }
.rm-plan-hero__text { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.rm-main .rm-plan-hero__text > *, .rm-main .rm-plan-hero__grid > * { margin: 0; }
.rm-plan-hero .rm-proof { font-size: 13px; }
.rm-plan-hero__phone { display: flex; justify-content: center; max-height: 420px; overflow: hidden; }
.rm-plan-hero__phone > * { margin: 0; }

/* Cadre téléphone */
.rm-phone-frame {
	position: relative; box-sizing: border-box; width: 260px; max-width: 100%; aspect-ratio: 300 / 620; margin: 0;
	border-radius: var(--wp--custom--radius--phone); background: var(--wp--preset--color--phone-body);
	border: 9px solid var(--wp--preset--color--phone-bezel); overflow: hidden; box-shadow: var(--rm-shadow-raised);
}
.rm-phone-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.rm-phone-frame__notch { position: absolute; top: 10px; left: 50%; width: 90px; height: 26px; margin-left: -45px; border-radius: 14px; background: var(--wp--preset--color--phone-body); }

/* Sections */
.rm-plan-section { display: flex; flex-direction: column; gap: 18px; padding-top: 32px; padding-bottom: 32px; }
.rm-main .rm-plan-section > *, .rm-main .rm-plan-content > * { margin: 0; }
.rm-main .rm-plan-content > .rm-container { margin-inline: auto; }
/* Sections alternées : marges verticales seulement, pour garder le conteneur centré (margin-inline: auto). */
.rm-main .is-style-section-alt > * { margin-block: 0; }
.rm-plan-section h2 { margin: 0; }
.rm-phase h3 { font-size: 20px; }
.rm-phase p:not(.is-style-kicker) { font-size: 14px; line-height: 1.6; color: var(--rm-ink-muted); }
.rm-plan-reviews .is-style-card-featured p:not(.is-style-stat) { font-size: 15px; line-height: 1.5; }

/* Configurateur */
.rm-cfg { box-sizing: border-box; max-width: 1000px; padding: 20px; border-radius: var(--rm-r-lg); background: var(--rm-green-soft); display: flex; flex-direction: column; gap: 20px; }
.rm-cfg__choices { display: flex; flex-direction: column; gap: 20px; }
.rm-cfg__group { display: flex; flex-direction: column; gap: 10px; }
.rm-cfg__label { margin: 0; font-size: 13px; font-weight: 700; color: var(--rm-ink); }
.rm-cfg__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rm-cfg__chip {
	min-height: 44px; min-width: 44px; padding: 0 16px; border-radius: var(--rm-r-pill); cursor: pointer;
	border: 1px solid var(--rm-green-line); background: transparent; color: var(--rm-ink);
	font-family: inherit; font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums;
}
.rm-cfg__chip:hover { border-color: var(--rm-green); }
.rm-cfg__chip[aria-pressed="true"] { background: var(--rm-green); border: 2px solid var(--rm-green); color: var(--rm-on-green); font-weight: 800; }
.rm-cfg__note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--rm-ink-subtle); }
.rm-cfg__note--center { text-align: center; }
.rm-cfg__result { box-sizing: border-box; padding: 20px; border-radius: var(--rm-r-md); background: var(--rm-bg); display: flex; flex-direction: column; gap: 14px; }
.rm-cfg__result > div { display: flex; flex-direction: column; gap: 2px; }
.rm-cfg__pace { margin: 0; font-size: 36px; font-weight: 900; line-height: 1.1; font-variant-numeric: tabular-nums; }
.rm-cfg__summary { margin: 0; font-size: 19px; font-weight: 800; line-height: 1.3; }

/* Témoignage */
.rm-testimonial { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.rm-testimonial__who { display: flex; align-items: center; gap: 12px; }
.rm-testimonial__who > span { display: flex; flex-direction: column; }
.rm-testimonial .rm-avatar { width: 48px; height: 48px; }
.rm-testimonial .rm-avatar--initials { --rm-avatar: 48px; }
.rm-testimonial__context { font-size: 13px; color: var(--rm-ink-subtle); }
.rm-testimonial__quote { margin: 0; padding: 0; border: 0; font-size: 15px; line-height: 1.6; color: var(--rm-ink-muted); }
.rm-testimonial__quote p { margin: 0; }

/* Outils, FAQ, conseils */
.rm-plan-tools { gap: 32px; padding-top: 24px; }
.rm-plan-tools__tools, .rm-plan-tools__advice { display: flex; flex-direction: column; gap: 12px; }
.rm-main .rm-plan-tools__tools > *, .rm-main .rm-plan-tools__advice > * { margin: 0; }
.rm-links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.rm-links--cards a {
	display: flex; flex-direction: column; gap: 4px; box-sizing: border-box; padding: 16px 20px;
	border-radius: var(--rm-r-md); background: var(--rm-surface); box-shadow: var(--rm-shadow-card); text-decoration: none;
}
.rm-links--cards strong { font-size: 15px; color: var(--rm-ink); }
.rm-links--cards a > span { font-size: 14px; font-weight: 700; color: var(--rm-link); }
.rm-links--cards a:hover { box-shadow: var(--rm-shadow-card), inset 0 0 0 2px var(--rm-green); }
.rm-links--list { gap: 4px; }
.rm-links--list a { display: inline-flex; gap: 5px; min-height: 36px; align-items: center; font-size: 15px; font-weight: 700; color: var(--rm-link); text-decoration: none; }
.rm-links--list a:hover { color: var(--rm-link-hover); text-decoration: underline; }

/* Guide existant : colonne de lecture 700 px */
.rm-plan-guide { box-sizing: border-box; max-width: calc(700px + 2 * var(--rm-gutter)); margin: 0 auto; padding: 28px var(--rm-gutter) 40px; border-top: 1px solid var(--rm-line); }

@media (min-width: 768px) {
	.rm-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
	.rm-cfg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; padding: 36px; }
	.rm-cfg__label { font-size: 14px; }
	.rm-cfg__chip { padding: 0 18px; font-size: 15px; }
	.rm-cfg__result { padding: 28px; gap: 18px; align-self: start; }
	.rm-cfg__pace { font-size: 46px; }
	.rm-cfg__summary { font-size: 26px; }
	.is-style-card, .is-style-card-featured { padding: 28px; gap: 12px; }
	.rm-phase p:not(.is-style-kicker) { font-size: 16px; }
	.rm-testimonial__quote { font-size: 16px; }
	.rm-plan-reviews .is-style-card-featured p:not(.is-style-stat) { font-size: 18px; }
}

@media (min-width: 1100px) {
	.rm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
	.rm-plan-hero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 40px; align-items: center; padding-top: 40px; padding-bottom: 56px; }
	.rm-plan-hero__text { grid-column: span 7; gap: 24px; }
	.rm-plan-hero__phone { grid-column: span 5; max-height: none; }
	.rm-plan-hero .rm-proof { font-size: 14px; }
	.rm-phone-frame { width: 300px; }
	.rm-plan-section { gap: 28px; padding-top: 56px; padding-bottom: 56px; }
	.rm-phase h3 { font-size: var(--wp--preset--font-size--h-3); }
	.rm-plan-tools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-template-rows: auto 1fr; gap: 32px 40px; align-items: start; padding-top: 0; }
	.rm-plan-tools__tools { grid-column: 1; grid-row: 1; gap: 14px; }
	.rm-plan-tools__advice { grid-column: 1; grid-row: 2; }
	.rm-plan-tools__faq { grid-column: 2 / 4; grid-row: 1 / 3; }
	.rm-plan-guide { padding-top: 40px; padding-bottom: 56px; }
}
.rm-plan-guide--solo { border-top: 0; padding-top: 8px; }

/* =====================================================================
 * Formulaires des calculateurs (HTML saisi dans les contenus migrés) —
 * alignés sur le design system : carte, champs 44 px rayon 12, bouton principal en pilule.
 * ===================================================================== */
.rm-prose form { margin-block: 0 1.2em; }
.rm-prose fieldset {
	min-width: 0; margin: 0 0 1.2em; padding: 22px 20px; border: 0;
	border-radius: var(--rm-r-lg); background: var(--rm-surface); box-shadow: var(--rm-shadow-card);
}
.rm-prose legend { float: left; width: 100%; margin: 0 0 14px; padding: 0; font-size: 20px; font-weight: 800; line-height: 1.3; color: var(--rm-ink); }
.rm-prose legend + * { clear: both; }
.rm-prose fieldset > :last-child { margin-bottom: 0; }
.rm-prose form label { font-weight: 700; }
.rm-prose :is(input[type="text"], input[type="number"], input[type="email"], input[type="tel"], input[type="date"], input:not([type]), select, textarea) {
	box-sizing: border-box; min-height: 44px; max-width: 100%; padding: 0 14px; vertical-align: middle;
	border: 1px solid var(--rm-line-strong); border-radius: var(--rm-r-md); background-color: var(--rm-surface);
	font: inherit; font-size: 16px; color: var(--rm-ink); font-variant-numeric: tabular-nums;
}
.rm-prose :is(input[type="text"], input[type="number"], input[type="email"], input:not([type])) { min-width: 96px; }
.rm-prose textarea { padding: 12px 14px; min-height: 96px; }
.rm-prose select:not([multiple]) {
	-webkit-appearance: none; appearance: none; padding-right: 38px; cursor: pointer;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12' fill='none' stroke='%230A7A52' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5 6 8l3.5-3.5'/%3E%3C/svg%3E");
	background-repeat: no-repeat; background-position: right 14px center;
}
.rm-prose :is(input, select, textarea):focus { border-color: var(--rm-link); }
.rm-prose :is(input[type="text"], input[type="number"], input[type="email"], input:not([type]), select, textarea):focus-visible { outline: 2px solid var(--rm-focus); outline-offset: 2px; }
.rm-prose input[type="checkbox"], .rm-prose input[type="radio"] { width: 20px; height: 20px; accent-color: var(--rm-link); vertical-align: middle; cursor: pointer; }
.rm-prose :is(input[type="button"], input[type="submit"], input[type="reset"], button:not([class]), button.validate) {
	-webkit-appearance: none; appearance: none; display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; margin: 8px 0; padding: 11px 22px; border: 0; border-radius: var(--rm-r-pill);
	background: var(--rm-green); color: var(--rm-on-green); font: inherit; font-size: 15px; font-weight: 800; line-height: 1.2;
	cursor: pointer; transition: filter .15s ease;
}
.rm-prose :is(input[type="button"], input[type="submit"], button:not([class]), button.validate):hover { filter: brightness(1.06); }
.rm-prose .form-row button.validate { margin: 0; max-width: none; } /* Formulaires « lead magnet » : alignés sur les champs (ligne, colonne en mobile). */
.rm-prose input[type="reset"] { background: transparent; color: var(--rm-ink); box-shadow: inset 0 0 0 2px var(--rm-green-line); }
.rm-prose :is(input[type="button"], input[type="submit"], input[type="reset"], button:not([class]), button.validate):focus-visible { outline: 2px solid var(--rm-focus); outline-offset: 2px; }
@media (min-width: 768px) {
	.rm-prose fieldset { padding: 28px 32px; }
}
