/* Shared strategy presentation (Lot 4A/4B): scenario context, card roles, allocation,
   engine-published alternatives, trust. Presentation only — every figure is a Hermes 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: clamp(1.2rem, 2.2vw, 1.5rem); 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: 999px; background: #f7f9fc; color: #0b2346; font-size: 0.8rem; font-weight: 700; }
.strategy-summary-facts__reason { flex-basis: 100%; border-color: #cfe9dc; border-radius: 12px; 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: 0.72rem; }

/* Scenario context: what the engine evaluated. */
.strategy-scenario { padding: clamp(1rem, 2.5vw, 1.5rem); border: 1px solid #dce4ef; border-radius: 16px; background: #fff; }
.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: 12px; background: #f7f9fc; }
.strategy-scenario__fact--monthly-spend { grid-column: 1 / -1; }
.strategy-scenario__fact dt { color: #52647a; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.strategy-scenario__fact dd { margin: 0.25rem 0 0; color: #0b2346; 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: 999px; background: #fff; font-size: 0.78rem; font-weight: 600; color: #344b66; }
.strategy-scenario__categories b { color: #0b2346; }

/* 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: 999px; background: #fff; border: 1px solid #c5dbf7; color: #0b2346; font-size: 0.72rem; font-weight: 800; box-shadow: 0 1px 4px rgb(20 38 63 / 12%); }
.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: #718499; font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.03em; }
.strategy-card__facts dd { margin: 0.1rem 0 0; color: #0b2346; font-size: 0.82rem; font-weight: 750; }
.strategy-card__facts dd small { color: #718499; font-weight: 600; }
.strategy-card__facts .quality-badge { font-size: 0.72rem; }
.strategy-card__note { margin: 0 0 0.6rem; color: #52647a; font-size: 0.76rem; 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: 12px; background: #f7f9fc; list-style: none; }
.strategy-sequence li { display: flex; align-items: center; gap: 0.6rem; color: #0b2346; 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: 999px; background: #0066e6; color: #fff; font-size: 0.72rem; font-weight: 800; }
.strategy-sequence__note { margin: 0.5rem 0 0; color: #52647a; font-size: 0.8rem; }

/* 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: 16px; 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: 12px; 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: #0b2346; font-size: 0.95rem; }
.strategy-frontier__badge { padding: 0.2rem 0.55rem; border-radius: 999px; background: #0066e6; color: #fff; font-size: 0.72rem; 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: 0.76rem; font-weight: 650; }
.strategy-frontier__facts dd { margin: 0; color: #0b2346; 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: 0.8rem; }
.strategy-frontier__cards li + li { margin-top: 0.2rem; }
.strategy-frontiers__note { margin: 0.9rem 0 0; color: #52647a; font-size: 0.8rem; }
.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: 14px; background: #fff; }
.strategy-trust__icon { display: inline-grid; flex: 0 0 auto; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 0.65rem; 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: 0.8rem !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(10rem, 16rem); 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: 1.25rem; 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: clamp(1.75rem, 3.4vw, 2.75rem); 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-finder__hero-visual .strategy-archetype-visual { width: 100%; height: auto; aspect-ratio: 120 / 84; }
.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; }
.strategy-finder__steps li { display: flex; gap: 0.6rem; align-items: flex-start; min-width: 0; padding: 0.7rem 0.85rem; border: 1px solid #dce4ef; border-radius: 12px; background: #fff; }
.strategy-finder__steps strong { display: block; color: #0b2346; font-size: 0.88rem; }
.strategy-finder__steps small { display: block; margin-top: 0.15rem; color: #52647a; font-size: 0.76rem; 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: 999px; background: #0066e6; color: #fff; font-size: 0.75rem; 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: 16px; background: #fff; box-shadow: 0 4px 16px rgb(20 38 63 / 5%); transition: transform 150ms ease, box-shadow 150ms ease, border-color 150ms ease; }
.strategy-archetype:hover, .strategy-archetype:focus-within { border-color: #aac6ea; box-shadow: 0 12px 28px rgb(20 38 63 / 10%); transform: translateY(-2px); }
.strategy-archetype__body { display: flex; flex: 1; flex-direction: column; gap: 0.55rem; padding: 0.9rem 1.1rem 1.1rem; }
.fintech-site .strategy-archetype h3 { margin: 0; font-size: 1.1rem; line-height: 1.3; }
.strategy-archetype__description { margin: 0; color: #344b66; font-size: 0.9rem; line-height: 1.5; }
.strategy-archetype__facts { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.strategy-archetype__facts li { padding: 0.25rem 0.6rem; border: 1px solid #dce4ef; border-radius: 999px; background: #f7f9fc; color: #0b2346; font-size: 0.74rem; font-weight: 700; }
.strategy-archetype__reference { border: 1px solid #dce4ef; border-radius: 10px; background: #f7faff; }
.strategy-archetype__reference > summary { padding: 0.6rem 0.8rem; color: #0052b8; cursor: pointer; font-size: 0.82rem; font-weight: 700; }
.strategy-archetype__reference[open] > summary { border-bottom: 1px solid #dce4ef; }
.strategy-archetype__reference .strategy-portfolio-summary { padding: 0.75rem 0.8rem 0.25rem; }
.strategy-archetype__reference-note { margin: 0; padding: 0 0.8rem 0.75rem; color: #52647a; font-size: 0.76rem; line-height: 1.45; }
.strategy-archetype__form { margin-top: auto; padding-top: 0.35rem; }
.strategy-archetype__cta { width: 100%; }
.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: 14px; background: #f7f9fc; }
.strategy-finder__scratch p { margin: 0; color: #344b66; font-size: 0.92rem; }
.strategy-finder__trust { margin-top: 1.5rem; }

/* Six decorative archetype illustrations sharing one style. */
.strategy-archetype-visual { display: block; width: 100%; aspect-ratio: 120 / 52; overflow: hidden; background: linear-gradient(145deg, #f2f7fd 0%, #f8fafd 100%); border-bottom: 1px solid #e6edf5; }
.strategy-archetype-visual svg { display: block; width: 100%; height: 100%; }
.strategy-archetype-visual .visual-card { fill: #fff; stroke: #b9c8da; stroke-width: 1.5; }
.strategy-archetype-visual .visual-card--second { fill: #edf5ff; stroke: #93bceb; }
.strategy-archetype-visual .visual-card--third { fill: var(--archetype-accent); stroke: var(--archetype-accent); opacity: 0.9; }
.strategy-archetype-visual .visual-card-stripe { fill: #dce4ef; }
.strategy-archetype-visual .visual-accent { fill: var(--archetype-accent); }
.strategy-archetype-visual .visual-accent-soft { fill: var(--archetype-accent); opacity: 0.35; }
.strategy-archetype-visual .visual-accent-line { fill: none; stroke: var(--archetype-accent); stroke-width: 3; }
.strategy-archetype-visual .visual-on-accent { stroke: #fff; stroke-width: 2.2; }
.strategy-archetype-visual .visual-orbit { fill: none; stroke: #93bceb; stroke-width: 1.5; }
.strategy-finder__hero-visual .strategy-archetype-visual { border: 0; border-radius: 1rem; background: transparent; }

/* Compact portfolio summary (finder reference strategies). */
.strategy-portfolio-summary__label { margin: 0 0 0.5rem; color: #52647a; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.strategy-portfolio-summary__facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; margin: 0 0 0.6rem; }
.strategy-portfolio-summary__facts dt { color: #718499; font-size: 0.72rem; font-weight: 750; text-transform: uppercase; letter-spacing: 0.03em; }
.strategy-portfolio-summary__facts dd { margin: 0.1rem 0 0; color: #0b2346; font-size: 0.84rem; font-weight: 750; }
.strategy-portfolio-summary__value { color: #167044; }
.strategy-portfolio-summary__cards { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; }
.strategy-portfolio-summary__cards li { display: flex; align-items: center; gap: 0.6rem; min-width: 0; }
.strategy-portfolio-summary__thumb { display: grid; flex: 0 0 3.25rem; width: 3.25rem; height: 2.1rem; place-items: center; border-radius: 0.35rem; background: #fff; border: 1px solid #dce4ef; overflow: hidden; }
.strategy-portfolio-summary__thumb .card-art__image, .strategy-portfolio-summary__thumb .card-art__placeholder, .strategy-portfolio-summary__thumb .card-image-frame { width: 100%; max-height: 2rem; object-fit: contain; }
.strategy-portfolio-summary__name { min-width: 0; color: #0b2346; font-size: 0.82rem; font-weight: 650; overflow-wrap: anywhere; }
.strategy-portfolio-summary__name small { display: block; color: #52647a; font-weight: 600; }

.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%; }
}
@media (max-width: 767px) {
  .strategy-archetype-visual { aspect-ratio: 120 / 40; }
}
