/* TheGoodPace — calculateurs ([tpld_outil]). S'appuie sur les jetons d'app.css (.hbrp). */
.tpld-tool-page .tt-app { margin: 8px 0 24px; }
.tt-card { padding: 22px; margin-bottom: 16px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--ink2); }
.hbrp .tt-card h3 { margin: 0 0 12px; font-family: Aeonik, system-ui, sans-serif; font-weight: 400; font-size: 21px; color: var(--paper); }
.tt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 14px 16px; }
.tt-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.tt-field > span { font-size: 13px; color: var(--muted); }
.tt-field > small { font-size: 12px; color: var(--muted); line-height: 1.4; }
.tt-unit { position: relative; display: flex; align-items: center; }
.hbrp .tt-unit input, .hbrp .tt-field select { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-ctl); background: var(--ink); color: var(--paper); font: inherit; font-size: 16px; box-sizing: border-box; }
.hbrp .tt-unit input { padding-right: 78px; }
.tt-unit em { position: absolute; right: 14px; font-style: normal; font-size: 13px; color: var(--muted); pointer-events: none; }
.hbrp .tt-unit input:focus, .hbrp .tt-unit input:focus-visible, .hbrp .tt-field select:focus, .hbrp .tt-field select:focus-visible { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent); }
.tt-out { display: block; }
.tt-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; margin: 0 0 16px; }
.tt-stat { padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r-block); background: var(--ink2); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tt-stat b { font-family: Aeonik, system-ui, sans-serif; font-weight: 400; font-size: 26px; line-height: 1.1; color: var(--paper); overflow-wrap: anywhere; }
.tt-stat span { font-size: 13px; color: var(--muted); }
.tt-stat.is-accent { background: var(--accent-fill); border-color: var(--accent-fill); }
.tt-stat.is-accent b, .tt-stat.is-accent span { color: var(--on-accent); }
.tt-hint { margin: 0 0 16px; padding: 14px 18px; border-radius: var(--r-block); background: var(--ink2); border: 1px dashed var(--line); color: var(--muted); }
.tt-warn { margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-block); border: 1px solid var(--warn); color: var(--warn); }
.hbrp .tt-small { margin: 0 0 12px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.tt-table-wrap { overflow-x: auto; }
.tt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.tt-table th { padding: 8px 10px; text-align: left; font-weight: 400; font-size: 12px; color: var(--muted); border-bottom: 1px solid var(--line); white-space: nowrap; }
.tt-table td { padding: 10px; border-bottom: 1px solid var(--line); color: var(--paper); white-space: nowrap; }
.tt-table tr.on td { background: var(--accent-soft); }
.tt-table td strong { font-weight: 500; }
.tt-zones { display: grid; gap: 8px; }
.tt-zone { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; padding: 12px 14px; border-radius: var(--r-block); background: var(--ink); border: 1px solid var(--line); }
.tt-zone-k { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: #05060D; font-weight: 600; }
.tt-zone strong { display: block; font-weight: 400; color: var(--paper); }
.tt-zone small { color: var(--muted); font-size: 13px; }
.tt-zone b { font-weight: 400; font-size: 18px; color: var(--paper); white-space: nowrap; }
/* Sélecteur à options (règle 23) : options de même taille côte à côte, conteneur au même arrondi ; libellés courts sur téléphone pour rester sur une ligne. */
.tt-tabs { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; margin-bottom: 16px; border-radius: 16px; background: var(--ink); border: 1px solid var(--line); }
.hbrp .tt-tabs button { min-height: 44px; padding: 8px 14px; border: 0; border-radius: 12px; background: transparent; color: var(--muted); font: inherit; font-size: 15px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: clip; cursor: pointer; }
.tt-tabs .tt-s { display: none; }
@media (max-width: 620px) { .hbrp .tt-tabs button { padding: 8px 6px; font-size: 14px; } .tt-tabs .tt-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); } .tt-tabs .tt-s { display: inline; } }
.hbrp .tt-tabs button.on { background: var(--accent-fill); color: var(--on-accent); }
.tt-pane[hidden] { display: none; }
.hbrp .tt-month { margin: 28px 0 10px; font-family: Aeonik, system-ui, sans-serif; font-weight: 400; font-size: 24px; color: var(--paper); }
.tt-races { display: grid; gap: 8px; }
.hbrp .tt-race { display: grid; grid-template-columns: 64px 1fr auto; align-items: center; gap: 16px; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--r-block); background: var(--ink2); color: var(--paper); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .hbrp .tt-race:hover { border-color: var(--accent); } }
.tt-race-d { display: flex; flex-direction: column; align-items: center; color: var(--muted); font-size: 12px; text-transform: uppercase; }
.tt-race-d b { font-family: Aeonik, system-ui, sans-serif; font-weight: 400; font-size: 26px; color: var(--accent); line-height: 1; }
.tt-race-n { min-width: 0; }
.tt-race-n strong { display: block; font-weight: 400; overflow-wrap: anywhere; }
.tt-race-n small, .tt-race-k small { display: block; color: var(--muted); font-size: 13px; }
.tt-race-k { text-align: right; }
.tt-race-k b { font-weight: 400; }
.hbrp .tt-cta { margin: 32px 0 0; }
.hbrp .tt-btn { display: inline-flex; min-height: 48px; align-items: center; padding: 12px 22px; border-radius: 99px; background: var(--accent-fill); color: var(--on-accent); text-decoration: none; }
@media (max-width: 640px) {
	.tt-card { padding: 16px; }
	.hbrp .tt-race { grid-template-columns: 52px 1fr; }
	.tt-race-k { grid-column: 2; text-align: left; }
	.tt-zone { grid-template-columns: auto 1fr; }
	.tt-zone b { grid-column: 2; }
	.tt-table td, .tt-table th { padding: 8px 6px; font-size: 14px; }
}
/* Neutralise les styles de tableau du thème */
.hbrp .tt-table, .hbrp .tt-table th, .hbrp .tt-table td { border-left: 0; border-right: 0; border-top: 0; }
.hbrp .tt-table { border: 0; margin: 0; }
.hbrp .tt-table tbody tr, .hbrp .tt-table tbody tr:nth-child(odd), .hbrp .tt-table tbody tr:nth-child(even) { background: transparent; }
.hbrp .tt-table tbody tr:nth-child(odd) > td, .hbrp .tt-table tbody tr:nth-child(even) > td { background-color: transparent; }
.hbrp .tt-table tbody tr.on > td { background-color: var(--accent-soft); }
@media (max-width: 640px) { .tt-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tt-stat b { font-size: 21px; } .tt-stat.is-accent { grid-column: 1 / -1; } }
/* Page « Mes outils » */
.tpld-hub-g { margin: 36px 0 8px; }
.hbrp .tpld-hub-g h2 { margin: 8px 0 4px; font-family: Aeonik, system-ui, sans-serif; font-weight: 400; font-size: 26px; color: var(--paper); }
.tpld-hub-l { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 10px; }
.hbrp .tpld-hub-l a { position: relative; display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 18px 44px 18px 18px; border: 1px solid var(--line); border-radius: var(--r-block); background: var(--ink2); text-decoration: none; box-sizing: border-box; }
.tpld-hub-l strong { color: var(--paper); font-weight: 400; font-size: 18px; }
.tpld-hub-l span { color: var(--muted); font-size: 14px; line-height: 1.4; }
.tpld-hub-l i { position: absolute; right: 18px; top: 18px; font-style: normal; color: var(--accent); transition: transform .2s cubic-bezier(.2,.7,.2,1); }
@media (hover: hover) and (pointer: fine) { .hbrp .tpld-hub-l a:hover { border-color: var(--accent); } .hbrp .tpld-hub-l a:hover i { transform: translateX(3px); } }
@media (prefers-reduced-motion: reduce) { .tpld-hub-l i { transition: none; } }
/* Bouton « Préparer mon plan de course » : respire après une liste ou un paragraphe */
.hbrp .tpld-seo .tpld-cta-line, .hbrp .tpld-seo p.tpld-cta-line { margin: 40px 0 16px; }
/* Quiz « Trouve ta course » */
.tt-quiz { padding: 24px; }
.tt-quiz-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.tt-quiz-dots { display: flex; gap: 6px; }
.tt-quiz-dots i { width: 22px; height: 6px; border-radius: 3px; background: var(--line); transition: background .3s ease; }
.tt-quiz-dots i.done { background: color-mix(in srgb, var(--accent-fill) 55%, transparent); }
.tt-quiz-dots i.on { background: var(--accent-fill); }
.hbrp .tt-quiz-q { margin: 18px 0 4px; font-family: Aeonik, system-ui, sans-serif; font-weight: 400; font-size: 28px; line-height: 1.15; color: var(--paper); }
.tt-quiz-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 10px; margin-top: 16px; }
.hbrp .tt-quiz-o, .hbrp .tt-quiz-o:hover, .hbrp .tt-quiz-o:focus { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-height: 84px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-block); background: var(--ink); color: var(--paper); font: inherit; text-align: left; cursor: pointer; transition: border-color .2s ease, transform .15s ease; }
.tt-quiz-o strong { font-weight: 400; font-size: 17px; }
.tt-quiz-o span { font-size: 13px; color: var(--muted); }
@media (hover: hover) and (pointer: fine) { .hbrp .tt-quiz-o:hover { border-color: var(--accent); transform: translateY(-2px); } }
.hbrp .tt-quiz-o:active { transform: scale(.98); }
.hbrp .tt-quiz-o.on { border-color: var(--accent-fill); background: var(--accent-soft); }
.hbrp .tt-quiz-o:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.hbrp .tt-quiz-back, .hbrp .tt-quiz-back:hover, .hbrp .tt-quiz-back:focus { margin-top: 16px; padding: 6px 0; border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 14px; cursor: pointer; }
.tt-quiz-top .tt-quiz-back { margin: 0; }
.tt-quiz-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 10px; }
.tt-quiz-list li { display: grid; grid-template-columns: 84px 1fr; gap: 16px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-block); background: var(--ink); }
.tt-quiz-list li.is-top { border-color: var(--accent-fill); }
.tt-quiz-m { display: flex; flex-direction: column; align-items: center; justify-content: center; border-radius: 12px; background: var(--ink2); padding: 10px 4px; }
.tt-quiz-m b { font-family: Aeonik, system-ui, sans-serif; font-weight: 400; font-size: 24px; color: var(--accent); line-height: 1; }
.tt-quiz-m span { font-size: 11px; color: var(--muted); }
.tt-quiz-r { min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.tt-quiz-r strong { font-weight: 400; font-size: 17px; color: var(--paper); overflow-wrap: anywhere; }
.tt-quiz-r small { font-size: 13px; color: var(--muted); }
.tt-quiz-why { display: flex; flex-wrap: wrap; gap: 6px; }
.tt-quiz-why span { padding: 3px 10px; border-radius: 99px; background: var(--ink2); border: 1px solid var(--line); font-size: 12px; color: var(--paper); }
.tt-quiz-why .is-ok { border-color: color-mix(in srgb, #5BBF6A 50%, transparent); color: #7FD28C; }
.tt-quiz-why .is-defi { border-color: color-mix(in srgb, #F0913A 50%, transparent); color: #F5A961; }
.tt-quiz-why .is-warn { border-color: color-mix(in srgb, #E9C84A 50%, transparent); color: #EBD06A; }
.tt-quiz-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.hbrp .tt-quiz-acts .tt-btn { min-height: 42px; padding: 8px 18px; }
.hbrp .tt-quiz-link { color: var(--paper); font-size: 14px; }
@media (max-width: 640px) {
	.tt-quiz { padding: 18px; }
	.hbrp .tt-quiz-q { font-size: 23px; }
	.tt-quiz-list li { grid-template-columns: 1fr; gap: 10px; }
	.tt-quiz-m { flex-direction: row; gap: 6px; justify-content: flex-start; padding: 8px 12px; align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) { .hbrp .tt-quiz-o { transition: none; } }
