/* Page produit Backtest (gabarit B) — ce qui n'est qu'à cette page. */

/* B1 Hero centré */
.result-card { position: relative; width: 100%; max-width: 920px; margin-top: 24px; text-align: left; box-shadow: var(--float-shadow) }
.result-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 24px }

/* B2 Le déclic */

/* B3 Par où commencer ? */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px }
.door {
  display: flex; flex-direction: column; gap: 4px; text-align: left; padding: 18px 20px; border-radius: 18px; cursor: pointer;
  border: 1px solid rgba(11, 10, 16, .10); background: #FFFFFF; font: inherit; color: var(--ink-2);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease), color 200ms var(--ease);
}
.door .q { font-size: 16px; font-weight: 600; color: var(--ink) }
.door .m { font-family: var(--mono); font-size: 11.5px }
.door.on { border-color: var(--accent); background: rgba(124, 58, 237, .07) }
.door.on .m { color: var(--accent-ink) }

/* Mini-lecteur de replay (porte Replay) */
.mini { border-radius: 14px; border: 1px solid rgba(255, 255, 255, .16); background: #0C0C0E; color: #FFFFFF; overflow: hidden }
.mini-head { height: 36px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-bottom: 1px solid rgba(255, 255, 255, .09) }
.mini-chart { position: relative; height: 200px; background-image: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px); background-size: 100% 25% }
.mini-chart .plot { position: absolute; inset: 12px 12px }
.mini-chart .veil { position: absolute; top: 0; bottom: 0; right: 0; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, .025) 0 6px, transparent 6px 12px); border-left: 1px dashed rgba(255, 255, 255, .16) }
.mini-chart .veil span { position: absolute; top: 10px; left: 10px; font-family: var(--mono); font-size: 10px; color: #938F9D; white-space: nowrap }
.player { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 10px; border-top: 1px solid rgba(255, 255, 255, .09) }
.player button { width: 36px; height: 34px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .09); background: #121016; color: #A3A0AC; cursor: pointer }
.player button.main { background: #7C3AED; border-color: #7C3AED; color: #FFFFFF; width: 40px }
.player button:hover { color: #FFFFFF }
.player .clock { font-family: var(--mono); font-size: 11px; color: #A3A0AC; min-width: 92px; text-align: center }

/* B4 Comment ça marche */
.how { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px }
.how .lcard { gap: 14px }
.how .n { font-family: var(--mono); font-size: 12px; color: var(--accent-ink) }
.how h3 { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.02em }
.how p { margin: 0; font-size: 15px; line-height: 1.55; color: var(--ink-2) }
.how .ui { margin-top: auto; background: #0C0C0E; color: #FFFFFF; border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; font-size: 12px }

/* B5 Le rapport */
.report { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px }
.report-table { width: 100%; border-collapse: collapse; font-size: 14.5px }
.report-table th { text-align: left; font: 500 11px var(--mono); color: var(--ink-3); padding: 0 16px 10px; border-bottom: 1px solid var(--line) }
.report-table td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top }
.report-table td:nth-child(2) { font-family: var(--mono); font-weight: 700; white-space: nowrap }
.report-table td:nth-child(3) { color: var(--ink-2); line-height: 1.5 }

/* B6 Ce qui nous différencie : le curseur d'échantillon */
.sample { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: stretch }
.sample-control { gap: 18px }
.sample-control input[type=range] { width: 100%; accent-color: #7C3AED }
.sample-n { font-family: var(--mono); font-size: 44px; font-weight: 600; letter-spacing: -.04em; line-height: 1 }
.gates { display: flex; flex-direction: column; gap: 10px }
.gate { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; padding: 14px 16px; border-radius: 12px; background: #121016; border: 1px dashed #938F9D; transition: border-color 200ms, background-color 200ms }
.gate .t { font-size: 14px; font-weight: 600 }
.gate .s { font-family: var(--mono); font-size: 11px; color: #938F9D; text-align: right }
.gate .d { grid-column: 1 / -1; font-size: 12.5px; line-height: 1.5; color: #A3A0AC }
.gate.open { border-style: solid; border-color: rgba(124, 58, 237, .6); background: rgba(124, 58, 237, .1) }
.gate.open .s { color: #9A6BFF }

/* B7 Les quatre temps */

/* B8 La plateforme */
.platform-pane { display: flex; flex-direction: column; gap: 20px }
.platform-pane h3 { margin: 0; font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -.025em }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 14px }
.tile { background: #FFFFFF; border: 1px solid var(--line); border-radius: 22px; padding: 16px; display: flex; flex-direction: column; gap: 10px }
.tile .viz { height: 132px; border-radius: 14px; background: #0C0C0E; color: #FFFFFF; padding: 14px; display: flex; flex-direction: column; justify-content: center; gap: 8px; overflow: hidden; position: relative }
.tile .t { font-size: 17px; font-weight: 600; letter-spacing: -.015em; padding: 4px 6px 0 }
.tile .d { font-size: 14px; line-height: 1.5; color: var(--ink-2); padding: 0 6px 6px }

/* B9 Tableau comparatif */
.compare { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 640px }
.compare th, .compare td { padding: 15px 20px; border-bottom: 1px solid var(--line); text-align: center }
.compare th:first-child, .compare td:first-child { text-align: left }
.compare thead th { font-size: 14px; font-weight: 600 }
.compare .us { background: rgba(124, 58, 237, .06) }
.compare .info { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 6px; border-radius: 999px; border: 1px solid var(--line-strong); font: 600 10px var(--mono); color: var(--ink-3); cursor: help; vertical-align: 1px }
.compare .yes { color: var(--accent); font-weight: 700 }
.compare .no { color: var(--ink-3) }
.compare .txt { font-size: 13px; color: var(--ink-2) }
.compare-note { margin: 12px 0 0; font-size: 12.5px; line-height: 1.6; color: var(--ink-3); max-width: 900px }

/* B10 – B12 */
.soon .lcard { gap: 10px }
.soon .t { font-size: 18px; font-weight: 600; letter-spacing: -.015em }
.soon .d { font-size: 14.5px; line-height: 1.55; color: var(--ink-2); flex: 1 }

/* Mobile : chaque mesure du rapport devient un bloc (nom + valeur, puis le texte). */
@media (max-width: 699.98px) {
  .report-table thead { display: none }
  .report-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line) }
  .report-table td { padding: 0; border: 0 }
  .report-table td:nth-child(1) { font-weight: 600 }
  .report-table td:nth-child(3) { grid-column: 1 / -1; font-size: 14px }
  .result-grid { grid-template-columns: 1fr 1fr }
}
