/* thegoodpace.app : pages légales, blog et articles, dans la DA de l'app (Aeonik 400/500, italique Crimson à 1,19 em, cartes 16 px). */
.tgp-legal, .tgp-art { box-sizing: border-box; max-width: 760px; margin: 0 auto; padding: 32px 20px 80px; color: var(--paper); }
.tgp-legal h1, .tgp-blog h1, .tgp-art h1 { margin: 0 0 12px; font-weight: 400; font-size: clamp(32px, 6vw, 48px); line-height: 1.08; letter-spacing: -.03em; text-wrap: balance; }
.tgp-legal h2, .tgp-art-body h2 { margin: 36px 0 10px; font-weight: 400; font-size: 24px; line-height: 1.2; letter-spacing: -.02em; }
.tgp-art-body h3 { margin: 24px 0 8px; font-weight: 500; font-size: 18px; }
.tgp-legal p, .tgp-legal li, .tgp-art-body p, .tgp-art-body li { font-size: 17px; line-height: 1.65; color: color-mix(in srgb, var(--paper) 88%, transparent); text-wrap: pretty; }
.tgp-legal a, .tgp-art-body a, .tgp-blog a { color: var(--accent); text-underline-offset: .2em; }
.tgp-legal-lead, .tgp-blog-lead, .tgp-art-meta { margin: 0 0 24px; color: var(--muted); }
.tgp-art-crumb { margin-bottom: 16px; font-size: 14px; }
.tgp-art-crumb a { color: var(--muted); text-decoration: none; }
.tgp-art-img { display: block; width: 100%; height: auto; margin: 0 0 28px; border-radius: 16px; }
.tgp-art-body img { max-width: 100%; height: auto; border-radius: 12px; }
.tgp-art-body table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.tgp-art-body th, .tgp-art-body td { padding: 10px 8px; border-bottom: 1px solid var(--line); text-align: left; }
.tpld-foot-legal { margin: 24px 0 0; font-size: 13px; color: var(--muted); }
.tpld-foot-legal a { color: inherit; }

/* Blog : mêmes bords que l'en-tête (1180 px), rubriques en cartes avec image, 6 articles puis « Voir les autres ». */
.hbrp.tgp-site > .tgp-blog { padding-top: 40px; padding-bottom: 96px; color: var(--paper); }
.hbrp.tgp-site .tgp-blog h1 { font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; margin: 0 0 12px; }
.hbrp.tgp-site .tgp-blog-lead { margin: 0; font-size: 17px; max-width: 60ch; }
.tgp-blog-sec { margin-top: 56px; }
.hbrp.tgp-site .tgp-blog-sec h2 { margin: 0 0 16px; font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.15; letter-spacing: -.02em; text-transform: none; }
.tgp-blog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.tgp-blog-grid li { display: flex; min-width: 0; }
.tgp-bcard { display: flex; flex-direction: column; width: 100%; border: 1px solid var(--line); border-radius: 16px; background: var(--ink2); overflow: hidden; color: var(--paper) !important; text-decoration: none; }
.tgp-bcard img, .tgp-bcard-ph { display: block; width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; background: var(--hover); }
.tgp-bcard-ph { display: grid; place-items: center; background: linear-gradient(135deg, var(--hover), color-mix(in srgb, var(--accent) 16%, var(--ink2))); }
.tgp-bcard-ph em { font-family: 'Crimson Pro', Georgia, serif; font-style: italic; font-size: 34px; color: var(--accent); opacity: .9; }
.tgp-bcard-t { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px 16px; }
.tgp-bcard-t strong { font-weight: 500; font-size: 17px; line-height: 1.3; text-wrap: balance; }
.tgp-bcard-t small { color: var(--muted); font-size: 14px; line-height: 1.4; text-wrap: pretty; }
@media (hover: hover) { .tgp-bcard:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); } }
.tgp-bcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tgp-blog-more { margin-top: 16px; }
.tgp-blog-more > summary { display: flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 1px solid var(--line); border-radius: 999px; background: var(--ink2); color: var(--paper); font-weight: 500; font-size: 16px; cursor: pointer; list-style: none; }
.tgp-blog-more > summary::-webkit-details-marker { display: none; }
.tgp-blog-more[open] > summary { display: none; }
@media (max-width: 900px) { .tgp-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) {
	.tgp-blog-grid { grid-template-columns: 1fr; gap: 12px; }
	.tgp-bcard { flex-direction: row; align-items: center; }
	.tgp-bcard img, .tgp-bcard-ph { width: 104px; flex: none; aspect-ratio: 1; align-self: stretch; min-height: 88px; }
	.tgp-bcard-t { padding: 12px 14px; }
	.tgp-bcard-t strong { font-size: 16px; }
	.tgp-bcard-ph em { font-size: 18px; }
	.tgp-blog-sec { margin-top: 40px; }
}

/* Calendrier, pages de course et espace organisateur dans le cadre TheGoodPace : mêmes bords que l'en-tête, rien sous la barre. */
.hbrp.tgp-site > main.hbrp { max-width: 1180px; margin: 0 auto; padding: 40px var(--tgp-pad) 96px; min-height: 60vh; }
.hbrp.tgp-site main.hbrp h1 { font-weight: 400; font-size: clamp(34px, 5vw, 56px); line-height: 1.08; letter-spacing: -.03em; }
.hbrp.tgp-site main.hbrp h2, .hbrp.tgp-site main.hbrp h3 { font-weight: 400; }
.hbrp.tgp-site main.hbrp .tgp-lbl { font-size: 13px; font-weight: 500; line-height: 1.3; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.hbrp.tgp-site main.hbrp .tgp-h { font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.hbrp.tgp-site main.hbrp .tgp-h-l { font-size: 28px; }
.hbrp.tgp-site main.hbrp .tgp-fcard h2, .hbrp.tgp-site main.hbrp .tgp-fmt-h h2 { font-size: 28px; line-height: 1.15; letter-spacing: -.02em; }
.hbrp.tgp-site main.hbrp p.tgp-claim { margin: 40px 0 0; padding: 0; }
@media (min-width: 900px) {
	.tgp-site .tgp-cal-f { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
	.tgp-site .tgp-cal-f .tgp-cal-dist, .tgp-site .tgp-cal-f > .hbrp-seg { grid-column: 1 / -1; }
	.tgp-site .tgp-fcards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
	.tgp-site .tgp-fcards > .tgp-fcard { margin: 0; }
	/* Espace organisateur : le titre à gauche, la carte de connexion ou les réglages à droite. */
	.hbrp.tgp-site > main.tgp-org { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
	.tgp-site .tgp-org .tgp-org-head { position: sticky; top: 104px; }
	.tgp-site .tgp-org #tgp-org-app { margin-top: 0; }
}

/* Espaces : le titre d'un mois ou d'une rubrique est détaché du bloc précédent et proche du sien. */
.hbrp.tgp-site main.hbrp .tgp-lbl { margin: 0 0 10px; }
.hbrp.tgp-site main.hbrp .tgp-cal-m { margin: 32px 0 10px; }
.hbrp.tgp-site main.hbrp .tgp-blk { margin-top: 40px; }
.hbrp.tgp-site main.hbrp .tgp-cal-n { margin: 12px 0 0; }
/* Pied de page TheGoodPace : trois colonnes de liens qui vont jusqu'au bord droit. */
.tpld-foot-tgp .tpld-foot-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .tpld-foot-tgp .tpld-foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tpld-foot-tgp .tgp-brand { display: inline-flex; line-height: 0; }
.tpld-foot-tgp .tgp-brand svg { height: 28px; width: auto; }
/* Page (comparatif) dans le cadre TheGoodPace */
.hbrp.tgp-site > .tgp-pagewrap { padding-top: 32px; padding-bottom: 64px; }
.tgp-pagewrap > .hbrp { max-width: none; padding-left: 0; padding-right: 0; }

/* En-tête d'une page de course : titre qui passe à la ligne sans crier, pastille « Parcours officiel » lisible. */
.hbrp.tgp-site main.hbrp .tgp-head h1 { font-size: clamp(30px, 4.2vw, 48px); overflow-wrap: anywhere; }
.hbrp.tgp-site main.hbrp .tgp-head { align-items: flex-start; gap: 20px; }
.hbrp.tgp-site main.hbrp .tgp-meta { margin-top: 12px; }
.hbrp.tgp-site main.hbrp p.tgp-official { margin: 14px 0 0; padding: 5px 12px 5px 8px; color: var(--on-accent); font-size: 13px; line-height: 1.3; }
.hbrp.tgp-site main.hbrp p.tgp-official .hbrp-ic { width: 16px; height: 16px; color: var(--on-accent); }

/* Titres de bloc : toujours détachés de ce qui suit (le cadre du site remettait leurs marges à zéro). */
.hbrp.tgp-site main.hbrp .tgp-h { margin: 0 0 14px; }
.hbrp.tgp-site main.hbrp .tgp-h-l { margin-top: 8px; }
.hbrp.tgp-site main.hbrp .tgp-fmt-h h2 { margin: 0; }
.hbrp.tgp-site main.hbrp .tgp-fmt-h p { margin: 4px 0 0; }
.hbrp.tgp-site main.hbrp .tgp-fcard h2 { margin: 0; }
