/* Shared strategy presentation (Lot 4A/4B): scenario context, card roles, allocation,
   engine-published alternatives, trust. Presentation only — every figure is a legacy-engine fact.
   Palette follows fintech_site.css (navy #0b2346, blue #0066e6, border #dce4ef, muted #52647a). */

.strategy-section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; gap: 0.5rem 1.25rem; margin-bottom: 1rem; }
.strategy-section-heading .eyebrow { margin: 0 0 0.25rem; }
.strategy-section-heading h2 { margin: 0; font-size: var(--type-h2); line-height: 1.25; }
.strategy-section-heading p:not(.eyebrow) { max-width: 62ch; margin: 0.35rem 0 0; color: #52647a; font-size: 0.92rem; }

/* Summary facts under the strategy label in the overview. */
.strategy-summary-facts { display: flex; flex-wrap: wrap; gap: 0.4rem 0.5rem; margin: 0.85rem 0 0; padding: 0; list-style: none; }
.strategy-summary-facts li { display: inline-flex; align-items: center; min-height: 2rem; padding: 0.3rem 0.7rem; border: 1px solid #dce4ef; border-radius: var(--radius-pill); background: #f7f9fc; color: var(--color-navy); font-size: var(--text-xs); font-weight: 700; }
.strategy-summary-facts__reason { flex-basis: 100%; border-color: #cfe9dc; border-radius: var(--radius-md); background: #f2fbf6; color: #234638; font-weight: 600; line-height: 1.4; }
.personalized-financial-card__range { display: block; margin-top: 0.2rem; color: #52647a; font-size: var(--text-xs); }

/* Scenario context: what the engine evaluated. */
.strategy-scenario { padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid #dce4ef; border-radius: var(--radius-md); background: #fff; }
.strategy-scenario--collapsible > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.strategy-scenario--collapsible > summary::-webkit-details-marker { display: none; }
.strategy-scenario--collapsible > summary h2 { margin: 0; font-size: clamp(1.05rem, 2vw, 1.25rem); line-height: 1.3; }
.strategy-scenario--collapsible > summary::after { content: ""; width: 0.55rem; height: 0.55rem; flex-shrink: 0; margin-right: 0.2rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); }
.strategy-scenario--collapsible[open] > summary::after { transform: rotate(225deg); }
.strategy-scenario--collapsible > summary:focus-visible { outline: 2px solid #0066e6; outline-offset: 6px; border-radius: 3px; }
.strategy-scenario--collapsible .strategy-scenario__edit { display: inline-block; margin-top: 1rem; }
.strategy-scenario--collapsible .strategy-scenario__facts { margin-top: 1rem; }
.strategy-scenario__edit { font-size: 0.85rem; font-weight: 700; }
.strategy-scenario__facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: 0.75rem; margin: 0; }
.strategy-scenario__fact { min-width: 0; padding: 0.75rem 0.9rem; border: 1px solid #e6edf5; border-radius: var(--radius-md); background: #f7f9fc; }
.strategy-scenario__fact--monthly-spend { grid-column: 1 / -1; }
.strategy-scenario__fact dt { color: #52647a; font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.strategy-scenario__fact dd { margin: 0.25rem 0 0; color: var(--color-navy); font-size: 0.92rem; font-weight: 650; overflow-wrap: anywhere; }
.strategy-scenario__categories { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin: 0.55rem 0 0; padding: 0; list-style: none; }
.strategy-scenario__categories li { display: inline-flex; align-items: baseline; gap: 0.35rem; padding: 0.25rem 0.6rem; border: 1px solid #dce4ef; border-radius: var(--radius-pill); background: #fff; font-size: var(--text-xs); font-weight: 600; color: #344b66; }
.strategy-scenario__categories b { color: var(--color-navy); }

/* Card roles and facts inside the shared card component. */
.strategy-card__visual { position: relative; }
.strategy-card__position { position: absolute; top: 0.5rem; left: 0.5rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: var(--radius-pill); background: #fff; border: 1px solid #c5dbf7; color: var(--color-navy); font-size: var(--text-xs); font-weight: 800; box-shadow: var(--elevation-1); }
.strategy-card--existing .strategy-card__role { color: #278958; }
.strategy-card__facts { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; margin: 0.35rem 0 0.6rem; }
.strategy-card__facts > div { min-width: 0; }
.strategy-card__facts dt { color: var(--color-muted); font-size: var(--text-xs); font-weight: 750; text-transform: uppercase; letter-spacing: 0.03em; }
.strategy-card__facts dd { margin: 0.1rem 0 0; color: var(--color-navy); font-size: 0.82rem; font-weight: 750; }
.strategy-card__facts dd small { color: var(--color-muted); font-weight: 600; }
.strategy-card__facts .quality-badge { font-size: var(--text-xs); }
.strategy-card__note { margin: 0 0 0.6rem; color: #52647a; font-size: var(--text-xs); line-height: 1.4; }

/* Progressive acquisition sequence published by the engine. */
.strategy-sequence { display: grid; gap: 0.45rem; margin: 1rem 0 0; padding: 0.9rem 1rem; border: 1px solid #dce4ef; border-radius: var(--radius-md); background: #f7f9fc; list-style: none; }
.strategy-sequence li { display: flex; align-items: center; gap: 0.6rem; color: var(--color-navy); font-size: 0.88rem; font-weight: 600; }
.strategy-sequence__phase { display: grid; flex: 0 0 auto; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: var(--radius-pill); background: #0066e6; color: #fff; font-size: var(--text-xs); font-weight: 800; }
.strategy-sequence__note { margin: 0.5rem 0 0; color: #52647a; font-size: var(--text-xs); }

/* Alternatives by card count (engine frontiers) and the apply-now alternative. */
.strategy-frontiers { padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid #dce4ef; border-radius: var(--radius-md); background: #fff; }
.strategy-frontiers__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: 0.85rem; margin: 0; padding: 0; list-style: none; }
.strategy-frontier { display: flex; flex-direction: column; gap: 0.6rem; min-width: 0; padding: 0.9rem 1rem; border: 1px solid #dce4ef; border-radius: var(--radius-md); background: #f7f9fc; }
.strategy-frontier--recommended { border-color: #93bceb; background: #edf5ff; box-shadow: 0 0 0 1px #93bceb; }
.strategy-frontier__heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.4rem; color: var(--color-navy); font-size: 0.95rem; }
.strategy-frontier__badge { padding: 0.2rem 0.55rem; border-radius: var(--radius-pill); background: #0066e6; color: #fff; font-size: var(--text-xs); font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; }
.strategy-frontier__facts { display: grid; gap: 0.4rem; margin: 0; }
.strategy-frontier__facts > div { display: flex; justify-content: space-between; gap: 0.75rem; align-items: baseline; }
.strategy-frontier__facts dt { color: #52647a; font-size: var(--text-xs); font-weight: 650; }
.strategy-frontier__facts dd { margin: 0; color: var(--color-navy); font-size: 0.86rem; font-weight: 750; text-align: right; }
.strategy-frontier__value { color: #167044; font-size: 1rem; }
.strategy-frontier__cards { margin: 0; padding: 0.6rem 0 0; border-top: 1px solid #dce4ef; list-style: none; color: #344b66; font-size: var(--text-xs); }
.strategy-frontier__cards li + li { margin-top: 0.2rem; }
.strategy-frontiers__note { margin: 0.9rem 0 0; color: #52647a; font-size: var(--text-xs); }
.strategy-apply-now__body { max-width: 34rem; }

/* Trust micro-copy. */
.strategy-trust { display: flex; gap: 0.85rem; align-items: flex-start; padding: 1rem 1.15rem; border: 1px solid #dce4ef; border-radius: var(--radius-md); background: #fff; }
.strategy-trust__icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-sm); background: #e5f1ff; color: #1567c6; }
.strategy-trust__icon .card-section-icon { width: 1.2rem; height: 1.2rem; }
.fintech-site .strategy-trust__title, .strategy-trust__title { margin: 0 0 0.3rem; font-size: 1.05rem; line-height: 1.3; }
.strategy-trust p { margin: 0; color: #344b66; font-size: 0.88rem; line-height: 1.5; }
.strategy-trust__meta { margin-top: 0.4rem !important; color: #52647a !important; font-size: var(--text-xs) !important; }

@media (max-width: 767px) {
  .strategy-section-heading { display: grid; }
  .strategy-scenario__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
  .strategy-scenario__fact { padding: 0.6rem 0.7rem; }
  .strategy-scenario__fact dd { font-size: 0.86rem; }
  /* Narrow screens: stack the visual above the facts so roles, fee and categories keep room. */
  .personalized-dashboard--compact .strategy-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .personalized-dashboard--compact .strategy-card__visual { min-height: 6.5rem; }
  .personalized-dashboard--compact .strategy-card__body { min-height: 0; }
  .strategy-card .strategy-category-chips { display: flex; flex-wrap: wrap; }
  .strategy-frontier__facts > div { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
  .strategy-frontier__facts dd { text-align: left; }
}

/* ---- « Trouver ma stratégie » (Lot 4B) ---- */
.strategy-finder { padding-block: clamp(1.25rem, 3vw, 3rem); }
.strategy-finder__hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(15rem, 22rem); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; margin-bottom: clamp(1.25rem, 3vw, 2rem); padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid #dce4ef; border-radius: var(--radius-md); background: linear-gradient(135deg, #f8fbfe 0%, #eef5fc 55%, #e7f0fb 100%); }
.strategy-finder__hero-copy { min-width: 0; }
.strategy-finder__hero h1 { margin: 0.35rem 0 0.75rem; font-size: var(--type-h1); line-height: 1.1; }
.strategy-finder__hero .page-intro { max-width: 60ch; margin: 0; color: #344b66; }
.strategy-finder__hero-visual { justify-self: end; width: 100%; }
.strategy-photograph { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius-md); }
.strategy-finder__steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); gap: 0.75rem; margin: 1.25rem 0 0; padding: 0; list-style: none; }
/* The three steps read on the navy hero itself: numbered lines, not white boxes inside the panel. */
.strategy-finder__steps li { display: flex; gap: 0.6rem; align-items: flex-start; min-width: 0; }
.strategy-finder__steps strong { display: block; color: #fff; font-size: var(--text-sm); }
.strategy-finder__steps small { display: block; margin-top: 0.15rem; color: #c9d6ea; font-size: var(--text-xs); line-height: 1.4; }
.strategy-finder__step-number { display: grid; flex: 0 0 auto; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: var(--radius-pill); background: #0066e6; color: #fff; font-size: var(--text-xs); font-weight: 800; }
.strategy-finder__notice { margin-bottom: 1rem; }

.strategy-archetype-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.strategy-archetype { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid #dce4ef; border-radius: var(--radius-md); background: #fff; transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease; }
.strategy-archetype:hover, .strategy-archetype:focus-within { border-color: #aac6ea; box-shadow: var(--elevation-2); transform: translateY(-2px); }
/* The whole profile card is the start button: name, one line of description, and a « Commencer » cue. */
.strategy-archetype__form { display: flex; flex: 1; margin: 0; }
.strategy-archetype__button { display: flex; flex: 1; flex-direction: column; align-items: stretch; gap: 0.6rem; min-height: 44px; padding: 1.1rem; border: 0; background: transparent; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.strategy-archetype__button:focus-visible { outline: 3px solid var(--futello-blue); outline-offset: -3px; border-radius: var(--radius-md); }
.strategy-archetype__name { color: var(--color-navy); font-size: var(--type-h3); font-weight: 700; line-height: 1.3; letter-spacing: -0.02em; }
.strategy-archetype__description { color: #344b66; font-size: var(--text-base); line-height: 1.5; }
/* The profile's settings read as one line of text, not as chips; the reference strategy is a quiet disclosure. */
.strategy-archetype__cta { margin-top: auto; padding-top: 0.25rem; color: var(--color-link); font-size: var(--text-sm); font-weight: 700; }
.strategy-archetype:hover .strategy-archetype__cta { text-decoration: underline; text-underline-offset: 3px; }
.strategy-finder__references { margin: 1rem 0 0; }
.strategy-finder__scratch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 1.25rem; padding: 1rem 1.25rem; border: 1px solid #dce4ef; border-radius: var(--radius-md); background: #f7f9fc; }
.strategy-finder__scratch p { margin: 0; color: #344b66; font-size: 0.92rem; }
.strategy-finder__trust { margin-top: 1.5rem; }

/* Small profile icons share the published selectors' visual language. */
.strategy-archetype__heading { display: flex; align-items: center; gap: 0.75rem; min-height: 3rem; }
.strategy-archetype-visual { display: grid; flex: 0 0 2.75rem; width: 2.75rem; height: 2.75rem; place-items: center; border: 1px solid #dce6f1; border-radius: var(--radius-md); background: #edf4fb; color: var(--color-blue, #3266cf); }
.strategy-archetype-visual .strategy-choice-icon,
.strategy-archetype-visual .wizard-choice-icon { display: grid; width: 100%; height: 100%; margin: 0; padding: 0; place-items: center; background: transparent; color: inherit; }
.strategy-archetype-visual svg { display: block; width: 1.5rem; height: 1.5rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* Compact portfolio summary (finder reference strategies). */

.wizard-archetype-note { margin-bottom: 1rem; }

@media (max-width: 767px) {
  .strategy-finder__hero { grid-template-columns: minmax(0, 1fr); padding: 1.1rem; }
  .strategy-finder__hero-visual { display: none; }
  .strategy-finder__scratch { flex-direction: column; align-items: stretch; }
  .strategy-finder__scratch .button { width: 100%; }
}

/* Welcome offers counted at the visitor's request (docs/personalization_welcome_offers.md): the recurring value stays
   the headline; the first-year line, the card offers and the comparison come after it, in quieter type. */
.personalized-financial-card__first-year { display: block; margin-top: 0.35rem; color: #147649; font-size: var(--text-xs); font-weight: 650; }
.strategy-card__welcome-offer { margin: 0 0 0.6rem; padding: 0.55rem 0.65rem; border: 1px solid #dfe8f2; border-radius: var(--radius-sm); background: #f7fafd; color: #2d3f55; font-size: var(--text-xs); line-height: 1.4; }
.strategy-card__welcome-offer p { margin: 0; }
.strategy-card__welcome-offer p + p { margin-top: 0.3rem; }
.strategy-card__welcome-badges { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.strategy-card__welcome-badge { display: inline-block; padding: 0.1rem 0.45rem; border-radius: var(--radius-pill); background: #e7eef8; color: #1d3557; font-size: var(--text-xs); font-weight: 700; }
.strategy-card__welcome-badge--offer { background: #e5faf0; color: #0f5c39; }
.strategy-card__welcome-end { color: #52647a; }
.strategy-card__welcome-end.is-ending { color: #8a4b00; font-weight: 650; }
.strategy-welcome-offers p { max-width: 70ch; }
