/* « Quelle carte utiliser? » — guide page and the strategy-result / profile entry points (docs/card_guide.md).
   Phone first: one column, large tap targets (≥ 44 px), the card to use as the strongest text of each row, and
   exceptions marked by a symbol and words, never by colour alone. */

.card-guide-page { padding: clamp(1.25rem, 4vw, 2.5rem) 0 3rem; background: #f6f8fc; }
.card-guide-shell { max-width: 46rem; }
.card-guide-header { margin-bottom: 1.1rem; }
.card-guide-header .eyebrow { margin: 0 0 0.35rem; }
.card-guide-header h1 { margin: 0; color: #0a2548; font-size: var(--type-h1); line-height: 1.1; }
.card-guide-header__dates { margin: 0.5rem 0 0; color: #4f6178; font-size: 0.86rem; }
.card-guide-header__lede { margin: 0.6rem 0 0; color: #33475e; font-size: 1.05rem; }

.card-guide-notice { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 1rem; margin: 0 0 1rem; padding: 0.8rem 1rem; border: 1px solid #d6e2f2; border-radius: var(--radius-md); background: #fff; color: #23384f; font-size: 0.92rem; }
.card-guide-notice p { margin: 0; flex: 1 1 18rem; }
.card-guide-notice--warning { border-color: #f0cf98; background: #fff8ec; color: #5c3a00; }
.card-guide-notice--progress { border-color: #bcd3f2; background: #f0f6ff; }
.card-guide-notice .button_to, .card-guide-notice form { margin: 0; }

.card-guide-list { display: grid; gap: 0.6rem; margin: 0 0 0.8rem; padding: 0; list-style: none; }
.card-guide-row { padding: 0.85rem 0.95rem; border: 1px solid #dfe7f1; border-radius: var(--radius-md); background: #fff; }
.card-guide-row--default { border: 2px solid #0a2548; background: #f1f6fd; }
.card-guide-row--obtain { border-style: dashed; }
.card-guide-row__category { display: flex; align-items: center; gap: 0.45rem; margin-bottom: 0.45rem; color: #4f6178; font-size: 0.82rem; font-weight: 800; letter-spacing: 0.02em; text-transform: uppercase; }
.card-guide-row--default .card-guide-row__category { color: #0a2548; }
.card-guide-row__choice { display: flex; align-items: center; gap: 0.75rem; }
.card-guide-row__art { flex: 0 0 3.6rem; width: 3.6rem; }
.card-guide-row__art .card-art__image, .card-guide-row__art .card-art__placeholder { display: block; width: 100%; height: auto; aspect-ratio: 1.586; border-radius: var(--radius-sm); }
.card-guide-row__card { display: flex; min-width: 0; flex-direction: column; gap: 0.15rem; }
.card-guide-row__card strong { color: #0a2548; font-size: 1.12rem; line-height: 1.25; overflow-wrap: anywhere; }
.card-guide-row--default .card-guide-row__card strong { font-size: 1.25rem; }
.card-guide-row__rate { color: #33475e; font-size: 0.88rem; }
.card-guide-row__fallback { color: #4f6178; font-size: 0.88rem; }
.card-guide-badge { align-self: flex-start; padding: 0.1rem 0.5rem; border-radius: var(--radius-pill); font-size: var(--text-xs); font-weight: 800; }
.card-guide-badge--obtain { border: 1px solid #c98a1c; background: #fff4e0; color: #6b3f00; }
.card-guide-row__exceptions { display: grid; gap: 0.35rem; margin: 0.6rem 0 0; padding: 0; list-style: none; }
.card-guide-row__exceptions li { display: flex; align-items: flex-start; gap: 0.5rem; padding: 0.45rem 0.6rem; border-radius: var(--radius-sm); background: #fff4e2; color: #5c3a00; font-size: 0.92rem; font-weight: 700; }
.card-guide-row__exception-mark { display: inline-grid; flex: 0 0 1.3rem; height: 1.3rem; place-items: center; border-radius: 50%; background: #6b3f00; color: #fff; font-size: var(--text-xs); font-weight: 900; }

.card-guide-muted { color: #4f6178; font-size: 0.88rem; }
.card-guide-state { padding: 1.2rem; border: 1px solid #dfe7f1; border-radius: var(--radius-md); background: #fff; }
.card-guide-state h1, .card-guide-state h2 { margin: 0 0 0.4rem; color: #0a2548; font-size: 1.3rem; }
.card-guide-state p { color: #33475e; }

.card-guide-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin: 1.2rem 0; }
.card-guide-actions .button, .card-guide-actions form .button { min-height: 2.9rem; }
.card-guide-actions form { margin: 0; }

.card-guide-footer { margin-top: 1.4rem; color: #4f6178; font-size: 0.86rem; }
.card-guide-footer form { margin: 0.4rem 0; }
.card-guide-delete { min-height: 2.75rem; padding: 0; border: 0; background: none; color: #a1271b; cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; }

/* Keep section on the guide page */
.card-guide-panel { margin: 0 0 1.2rem; padding: 1rem 1.1rem; border: 1px solid #dfe7f1; border-radius: var(--radius-md); background: #fff; }
.card-guide-panel h2 { margin: 0 0 0.6rem; font-size: 1.25rem; }
.card-guide-panel h2:focus { outline: none; }
.card-guide-panel__option { padding: 0.8rem 0; border-top: 1px solid #e7edf5; }
.card-guide-panel__option h3 { margin: 0 0 0.3rem; font-size: 1.05rem; }
.card-guide-panel__option p { margin: 0 0 0.6rem; color: #33475e; }
.card-guide-panel .button { min-height: 2.9rem; }
.card-guide-live { min-height: 1.4em; color: #23384f; font-weight: 600; }
.card-guide-image-preview { display: flex; flex-wrap: wrap; gap: 0.6rem; }
.card-guide-image-preview img { width: 9rem; height: auto; border: 1px solid #d6e2f2; border-radius: var(--radius-sm); }
.card-guide-help summary { display: flex; min-height: 2.75rem; align-items: center; color: #185fc4; cursor: pointer; font-weight: 700; }
.card-guide-help ul { margin: 0.2rem 0 0.4rem; padding-left: 1.1rem; color: #33475e; }
.card-guide-recap__form { display: grid; gap: 0.45rem; max-width: 26rem; }
.card-guide-recap__form label { font-weight: 700; }
.card-guide-recap__form input { min-height: 2.9rem; padding: 0.5rem 0.75rem; border: 1px solid #b9c7d8; border-radius: var(--radius-sm); font: inherit; }

/* Entry point on the strategy result, after the spending allocation */
.card-guide-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.8rem 1.5rem; margin: 1rem 0; padding: 1.1rem 1.25rem; border: 1px solid #cfe0f6; border-radius: var(--radius-md); background: linear-gradient(135deg, #f2f7ff, #ffffff); }
.card-guide-cta__text { flex: 1 1 18rem; }
.card-guide-cta h2 { margin: 0 0 0.2rem; color: #0a2548; font-size: 1.15rem; }
.card-guide-cta p { margin: 0; color: #33475e; }
.card-guide-cta form { margin: 0; }
.card-guide-cta__button { min-height: 2.9rem; }
/* Single-line link on a profile page, right after « Comment utiliser cette stratégie » */
.card-guide-cta--profile { margin: 0.75rem 0; padding: 0; border: 0; background: none; }
.card-guide-cta__form { margin: 0; }
.card-guide-cta__form .card-guide-cta__link { display: inline-flex; min-height: 44px; align-items: center; padding: 0; border: 0; background: none; color: var(--color-blue); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.card-guide-cta--awaited { border-width: 2px; border-color: #185fc4; box-shadow: 0 0 0 4px rgb(24 95 196 / 10%); }
.card-guide-awaited { margin-top: 1rem; }
.card-guide-awaited a { font-weight: 700; }

@media (max-width: 30rem) {
  .card-guide-row__art { flex-basis: 3rem; width: 3rem; }
}

@media print {
  .site-header, .site-footer, .card-guide-actions, .card-guide-panel, .card-guide-footer { display: none !important; }
  .card-guide-page { background: #fff; }
}
