/**
 * Plan de sortie — cartes `.liofo-w-card`, pastilles MH (socle `.liofo-market-health-page` + `.liofo-mh-inner`).
 * Charge après liofo-dashboard-widgets.css et liofo-style-personnalise (voir functions.php)
 */

/* Socle MH : lecture alignée à gauche (hors héros centrés volontairement dans leurs blocs) */
.liofo-exit-plan-surface .liofo-exit-plan-page,
.liofo-exit-plan-surface .liofo-exit-plan {
    text-align: left;
}

.exit-plan-page-intro-head {
    margin: 0 auto 1.15rem;
    max-width: 36rem;
}

.exit-plan-page-intro-head .patrimoine-chart-title {
    margin: 0;
}

.exit-plan-accent {
    color: #3db2ff;
    font-weight: 600;
}

.exit-plan-accent-soft {
    color: rgba(125, 211, 252, 0.95);
    font-weight: 600;
}

.liofo-exit-plan-page .exit-plan-card p,
.liofo-exit-plan-page .exit-plan-card .exit-plan-step-caption,
.liofo-exit-plan-page .exit-plan-card .exit-plan-rules-intro-text,
.liofo-exit-plan-page .exit-plan-card .liofo-mh-hero-hint {
    text-align: left;
}

.liofo-exit-plan-page .exit-plan-card--mode .liofo-mh-sub-intro {
    text-align: center;
}

.exit-plan-card--mode .liofo-mh-block-title {
    text-align: center;
    margin-top: 0;
}

.liofo-exit-plan.liofo-w-scope {
    margin: 0 0 2.25rem;
    padding: 0.5rem 0 1.6rem;
    border-radius: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    color: var(--liofo-w-text, rgba(255, 255, 255, 0.92));
}

.liofo-exit-plan .liofo-exit-plan-readme {
    margin-bottom: 1rem;
}

.liofo-exit-plan.ep-v2 .exit-plan-card {
    margin-bottom: 0;
    box-sizing: border-box;
}

/* Cartes : surface + bordure alignées sur .liofo-w-card, relief type dashboard */
.liofo-exit-plan.ep-v2 .exit-plan-card.liofo-w-card {
    position: relative;
    padding: 1.5rem clamp(1.1rem, 2.5vw, 1.45rem) 1.6rem;
    background: var(--liofo-w-surface, rgba(12, 16, 24, 0.65));
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    border-radius: var(--liofo-w-radius, 16px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
    transition:
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.liofo-exit-plan.ep-v2 .exit-plan-card.liofo-w-card:hover {
    border-color: rgba(61, 178, 255, 0.38);
    box-shadow: 0 16px 44px rgba(0, 0, 0, 0.28);
}

.liofo-exit-plan .exit-plan-card--result {
    margin-top: 0;
}

/* Kickers type MH au-dessus des titres de section */
.liofo-exit-plan.ep-v2 .ep-page-kicker,
.liofo-exit-plan.ep-v2 .ep-section-kicker {
    margin: 0 0 0.45rem;
}

.liofo-exit-plan.ep-v2 .ep-section-kicker {
    margin-top: 0.15rem;
}

/* CTA : reprend les pastilles MH, taille légèrement supérieure pour actions principales */
.liofo-exit-plan.ep-v2 .liofo-mh-history-pill.ep-exit-cta-primary {
    padding: 0.48rem 1.05rem;
    font-size: 0.82rem;
}

.liofo-exit-plan.ep-v2 .liofo-mh-history-pill.ep-exit-cta {
    padding: 0.42rem 0.85rem;
    font-size: 0.8rem;
}

.exit-plan-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.exit-plan-mode-pills {
    margin-bottom: 1.1rem;
}

.exit-plan-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}

.exit-plan-cta-row--end {
    justify-content: space-between;
    margin-top: 0.35rem;
    margin-bottom: 0.85rem;
}

.exit-plan-kicker-inline {
    margin: 0;
}

.exit-plan-rules-list-title {
    margin: 0 !important;
    align-self: center;
}

.liofo-exit-plan .liofo-exit-plan-pill--xs {
    padding: 0.22rem 0.48rem !important;
    font-size: 0.72rem !important;
    min-width: auto !important;
    line-height: 1.2;
}

.liofo-exit-plan .liofo-exit-plan-pill--danger {
    border-color: rgba(248, 113, 113, 0.35);
    color: #fecaca;
}

.liofo-exit-plan .liofo-exit-plan-pill--danger:hover {
    border-color: rgba(248, 113, 113, 0.55) !important;
    color: #fff !important;
}

.exit-plan-profiles--modal {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin-top: 0.65rem;
}

.exit-plan-roadmap {
    list-style: none;
    margin: 0 auto;
    padding: 0;
    max-width: 42rem;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.exit-plan-roadmap-item {
    display: flex;
    gap: 0.85rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: 12px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.exit-plan-roadmap-num {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0a1628;
    background: linear-gradient(145deg, #7dd3fc, #3DB2FF);
}

.exit-plan-roadmap-item:nth-child(2) .exit-plan-roadmap-num {
    background: linear-gradient(145deg, #a5f3fc, #22d3ee);
}

.exit-plan-roadmap-item:nth-child(3) .exit-plan-roadmap-num {
    background: linear-gradient(145deg, #c4b5fd, #8b5cf6);
}

.exit-plan-roadmap-body {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.exit-plan-roadmap-title {
    display: block;
    font-weight: 700;
    font-size: 0.95rem;
    color: #ffffff;
}

.exit-plan-roadmap-desc {
    display: block;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.72);
}

/* Repères visuels par bloc (étapes 1 et 3) */
.exit-plan-step-header {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.exit-plan-step-header--compact {
    margin-bottom: 0.65rem;
    padding-bottom: 0.65rem;
}

.exit-plan-step-badge {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-weight: 800;
    font-size: 1.1rem;
    color: #0a1628;
    background: linear-gradient(145deg, #7dd3fc, #3DB2FF);
}

.exit-plan-step-badge--result {
    background: linear-gradient(145deg, #c4b5fd, #8b5cf6);
}

.exit-plan-step-header-text {
    min-width: 0;
}

.exit-plan-step-heading {
    margin: 0 0 0.35rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.25;
}

.exit-plan-step-caption {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.72);
}

.exit-plan-step-actions-bar {
    margin-top: 0.25rem;
    margin-bottom: 0.5rem;
}

.exit-plan-step-actions-bar .patrimoine-chart-head {
    margin-bottom: 0.5rem;
}

.exit-plan-inline-actions-label {
    font-size: 0.88rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 600;
}

.exit-plan-after-actions-hint {
    margin: 0.85rem auto 0;
    max-width: 36rem;
    text-align: center;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.62);
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px dashed rgba(61, 178, 255, 0.25);
}

.exit-plan-rules-intro {
    margin-bottom: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 12px;
    background: rgba(61, 178, 255, 0.08);
    border: 1px solid rgba(61, 178, 255, 0.22);
}

.exit-plan-rules-intro-title {
    margin: 0 0 0.4rem;
    font-size: 0.98rem;
    font-weight: 700;
    color: #ffffff;
}

.exit-plan-rules-intro-text {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
}

.exit-plan-tech-details {
    margin-top: 0.5rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.18);
    font-size: 0.84rem;
    color: rgba(255, 255, 255, 0.75);
}

.exit-plan-tech-details.liofo-w-debug {
    padding-top: 0;
    border-top: none;
}

.exit-plan-tech-details summary {
    cursor: pointer;
    padding: 0.6rem 0.85rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    list-style: none;
}

.exit-plan-tech-details summary::-webkit-details-marker {
    display: none;
}

.exit-plan-tech-details-body {
    padding: 0 0.85rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.exit-plan-tech-details-body p {
    margin: 0.5rem 0 0;
    line-height: 1.5;
}

/* Pastilles profil (mode guidé) */
.exit-plan-profile-chips {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 1rem;
}

.exit-plan-profile-chip {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 10px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(12, 16, 24, 0.5);
    color: #fff;
    cursor: pointer;
    text-align: left;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease, background 0.2s ease;
    font: inherit;
}

.exit-plan-profile-chip:hover {
    border-color: rgba(61, 178, 255, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.exit-plan-profile-chip.is-selected {
    border-color: rgba(61, 178, 255, 0.75);
    background: rgba(61, 178, 255, 0.14);
    box-shadow: 0 0 0 1px rgba(61, 178, 255, 0.35);
}

.exit-plan-chip-mark {
    flex-shrink: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-weight: 800;
    font-size: 0.95rem;
    color: #0a1628;
    background: linear-gradient(145deg, #7dd3fc, #3DB2FF);
}

.exit-plan-profile-chip--mid .exit-plan-chip-mark {
    background: linear-gradient(145deg, #a5f3fc, #22d3ee);
}

.exit-plan-profile-chip--small .exit-plan-chip-mark {
    background: linear-gradient(145deg, #fde68a, #f59e0b);
}

.exit-plan-profile-chip--hype .exit-plan-chip-mark {
    background: linear-gradient(145deg, #fbcfe8, #ec4899);
}

.exit-plan-chip-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.exit-plan-chip-label {
    font-weight: 700;
    font-size: 0.88rem;
    line-height: 1.2;
}

.exit-plan-chip-hint {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 500;
}

.exit-plan-head-actions-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
}

.exit-plan-head-actions-row .patrimoine-chart-title {
    margin: 0;
}

.exit-plan-builder-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
}

.exit-plan-mode-content {
    margin-bottom: 0.25rem;
}

/* ============================================
   MODE SIMPLE
   ============================================ */
.exit-plan-simple-config {
    max-width: 720px;
    margin: 0 auto;
}

.exit-plan-profile-subsection {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.exit-plan-profile-select {
    width: 100%;
    max-width: 22rem;
    margin: 0 auto;
}

.exit-plan-profile-select select {
    width: 100%;
}

.exit-plan-moonbag-pill {
    background: rgba(61, 178, 255, 0.15);
    border-radius: 25px;
    padding: 20px 25px;
    border: 1px solid rgba(61, 178, 255, 0.3);
}

.exit-plan-moonbag-pill .exit-plan-input-group {
    margin: 0;
}

.exit-plan-simple-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
}

/* ============================================
   MODE AVANCÉ - Configuration
   ============================================ */
.exit-plan-strategy-config {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}

.exit-plan-strategy-name-pill {
    background: rgba(61, 178, 255, 0.15);
    border-radius: 25px;
    padding: 20px 25px;
    border: 1px solid rgba(61, 178, 255, 0.3);
}

.exit-plan-strategy-name-pill .exit-plan-input-group {
    margin: 0;
}

/* ============================================
   RÈGLES DE SORTIE
   ============================================ */
.exit-plan-rules-explanation,
.exit-plan-callout-info {
    background: rgba(61, 178, 255, 0.08);
    border: 1px solid rgba(61, 178, 255, 0.28);
    border-radius: 12px;
    padding: 14px 16px;
    margin-bottom: 1.25rem;
    color: rgba(255, 255, 255, 0.88);
    font-size: 0.92rem;
    line-height: 1.55;
}

.exit-plan-rules-explanation p,
.exit-plan-callout-info p {
    margin: 0;
}

.exit-plan-rules-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ============================================
   CARTE DE RÈGLE
   ============================================ */
.exit-plan-rule-card {
    background: var(--liofo-w-surface, rgba(12, 16, 24, 0.65));
    border-radius: var(--liofo-w-radius, 16px);
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    overflow: hidden;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: none;
}

.exit-plan-rule-card:hover {
    border-color: rgba(56, 189, 248, 0.42);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.22);
}

/* En-tête de la règle sur une seule ligne */
.exit-plan-rule-card-header {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 20px;
    background: rgba(0, 0, 0, 0.25);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
    justify-content: space-between;
}

.exit-plan-rule-priority-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.exit-plan-priority-label {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.7);
    margin-right: 5px;
}

.exit-plan-rule-priority-value {
    font-weight: bold;
    color: #3DB2FF;
    min-width: 20px;
    text-align: center;
}

.exit-plan-rule-title {
    flex: 1;
}

.rule-number-badge {
    display: inline-block;
    background: rgba(61, 178, 255, 0.2);
    padding: 5px 12px;
    border-radius: 15px;
    font-weight: bold;
    color: #3DB2FF;
}

.exit-plan-rule-card-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.exit-plan-toggle-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.toggle-label-text {
    font-size: 0.85em;
    color: rgba(255, 255, 255, 0.8);
}

.exit-plan-rule-card-body {
    padding: 25px;
}

/* ============================================
   FORMAT "SI ... ALORS ..."
   ============================================ */
.exit-plan-rule-if-then {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.exit-plan-rule-if,
.exit-plan-rule-then {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exit-plan-if-label,
.exit-plan-then-label {
    font-size: 1.3em;
    font-weight: bold;
    color: #3DB2FF;
    text-align: center;
    padding: 12px;
    background: rgba(61, 178, 255, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exit-plan-if-subtitle,
.exit-plan-then-subtitle {
    font-size: 0.7em;
    font-weight: normal;
    color: rgba(255, 255, 255, 0.7);
    font-style: italic;
}

.exit-plan-if-content,
.exit-plan-then-content {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* Séparateur visuel */
.exit-plan-rule-separator {
    height: 2px;
    background: linear-gradient(to right, transparent, rgba(61, 178, 255, 0.3), transparent);
    margin: 15px 0;
}

/* Bloc Palier Multiple (sous-bloc séparé) */
.exit-plan-rule-milestone-block {
    background: rgba(61, 178, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(61, 178, 255, 0.2);
}

.exit-plan-milestone-label {
    font-size: 1.1em;
    font-weight: bold;
    color: #3DB2FF;
    margin-bottom: 15px;
    text-align: center;
}

.exit-plan-multiples-group {
    margin-top: 10px;
}

/* ============================================
   INPUTS & FORMULAIRES
   ============================================ */
.exit-plan-input-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.exit-plan-input-group label {
    color: white;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
}

.exit-plan-input-group input,
.exit-plan-input-group select {
    padding: 10px 12px;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    font-size: 0.95rem;
    background-color: #1b1b1b;
    color: #f5f5f5;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.exit-plan-input-group input:focus,
.exit-plan-input-group select:focus {
    outline: none;
    border-color: #0cc0df;
    box-shadow: 0 0 0 2px rgba(12, 192, 223, 0.15);
}

.exit-plan-input-group.rule-category-field {
    display: none;
}

.exit-plan-rule-card[data-scope-type="CATEGORY"] .rule-category-field,
.exit-plan-rule-card[data-scope-type="ASSET"] .rule-category-field {
    display: flex;
}

/* Réduire la largeur des menus déroulants dans la section SI */
.exit-plan-if-content .exit-plan-input-group select {
    max-width: 50%;
}

/* ============================================
   CHECKBOXES MULTIPLES
   ============================================ */
.exit-plan-multiples-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
}

.exit-plan-checkbox-label {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.2s;
}

.exit-plan-checkbox-label:hover {
    background: rgba(61, 178, 255, 0.2);
    border-color: #3DB2FF;
}

.exit-plan-checkbox-label input[type="checkbox"] {
    margin: 0;
    cursor: pointer;
    width: 18px;
    height: 18px;
}

.exit-plan-checkbox-label input[type="checkbox"]:checked + span {
    color: #3DB2FF;
    font-weight: bold;
}

.exit-plan-checkbox-label:has(input[type="checkbox"]:checked) {
    background: rgba(61, 178, 255, 0.3);
    border-color: #3DB2FF;
}

/* ============================================
   ACTIONS (ALORS)
   ============================================ */
.exit-plan-action-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    background: rgba(61, 178, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid rgba(61, 178, 255, 0.2);
}

.exit-plan-action-summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(0, 0, 0, 0.3);
    padding: 10px;
    border-radius: 5px;
}

.exit-plan-action-summary-item .action-label {
    font-weight: 500;
    color: white;
    min-width: 60px;
}

.exit-plan-action-summary-item input {
    flex: 1;
    max-width: 80px;
}

.exit-plan-action-summary-item .action-unit {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   TOOLTIPS / HELP ICONS
   ============================================ */
.exit-plan-help-icon {
    display: inline-block;
    width: 18px;
    height: 18px;
    line-height: 18px;
    text-align: center;
    border-radius: 50%;
    background: rgba(61, 178, 255, 0.2);
    color: #3DB2FF;
    font-size: 12px;
    font-weight: bold;
    cursor: help;
    margin-left: 5px;
    position: relative;
}

.exit-plan-help-icon:hover {
    background: rgba(61, 178, 255, 0.4);
}

.exit-plan-help-icon[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.9);
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.85em;
    white-space: nowrap;
    z-index: 1000;
    margin-bottom: 5px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    border: 1px solid #3DB2FF;
    pointer-events: none;
}

.exit-plan-help-icon[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #3DB2FF transparent transparent transparent;
    margin-bottom: -1px;
    z-index: 1001;
}

/* ============================================
   TOGGLE SWITCH
   ============================================ */
.exit-plan-toggle {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.exit-plan-toggle input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.3);
    transition: 0.3s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.3s;
    border-radius: 50%;
}

.exit-plan-toggle input:checked + .toggle-slider {
    background-color: #3DB2FF;
}

.exit-plan-toggle input:checked + .toggle-slider:before {
    transform: translateX(26px);
}

/* ============================================
   PLAN PAR CRYPTO
   ============================================ */
.exit-plan-table-wrap {
    margin-top: 0.5rem;
    width: 100%;
    overflow-x: auto;
    border-radius: 12px;
}

.exit-plan-placeholder-msg {
    text-align: center;
    padding: 1.25rem 0.5rem;
}

.exit-plan-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 20px;
}

.exit-plan-table thead {
    background: linear-gradient(90deg, rgba(56, 189, 248, 0.45), rgba(129, 140, 248, 0.42));
    color: #f8fafc;
}

.exit-plan-table th {
    padding: 15px;
    text-align: center;
    font-weight: 600;
}

.exit-plan-table td {
    padding: 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    text-align: center;
    vertical-align: middle;
}

.exit-plan-table tbody tr:nth-child(even) {
    background-color: rgba(46, 46, 46, 0.5);
}

.exit-plan-table tbody tr:nth-child(odd) {
    background-color: rgba(31, 31, 31, 0.5);
}

.exit-plan-table tbody tr:hover {
    background-color: rgba(61, 178, 255, 0.12);
    color: #ffffff;
}

.exit-plan-asset-info {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
}

.exit-plan-asset-logo {
    width: 20px !important;
    height: 20px !important;
    object-fit: contain;
    vertical-align: middle;
    border-radius: 50%;
}

.exit-plan-asset-symbol {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9em;
}

.exit-plan-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.exit-plan-badge-top30 {
    background: rgba(212, 237, 218, 0.2);
    color: #d4edda;
}

.exit-plan-badge-mid {
    background: rgba(209, 236, 241, 0.2);
    color: #d1ecf1;
}

.exit-plan-badge-small {
    background: rgba(255, 243, 205, 0.2);
    color: #fff3cd;
}

.exit-plan-badge-hype {
    background: rgba(248, 215, 218, 0.2);
    color: #f8d7da;
}

.exit-plan-badge-not_reached {
    background: rgba(233, 236, 255, 0.2);
    color: #e9ecef;
}

.exit-plan-badge-reached {
    background: rgba(255, 243, 205, 0.3);
    color: #fff3cd;
}

.exit-plan-badge-executed {
    background: rgba(212, 237, 218, 0.3);
    color: #d4edda;
}

.exit-plan-badge-ignored {
    background: rgba(248, 215, 218, 0.3);
    color: #f8d7da;
}

.exit-plan-milestone-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.exit-plan-progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.exit-plan-progress-fill {
    height: 100%;
    background: #3DB2FF;
    transition: width 0.3s;
}

.exit-plan-asset-details {
    background: rgba(0, 0, 0, 0.2);
}

.exit-plan-plan-details {
    padding: 12px 0 0;
}

.exit-plan-plan-details-title {
    margin-bottom: 0.75rem;
}

.exit-plan-milestones {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.exit-plan-milestone {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 15px;
    border-left: 4px solid #3DB2FF;
}

.exit-plan-milestone.reached {
    border-left-color: #ffc107;
}

.exit-plan-milestone.executed {
    border-left-color: #28a745;
}

.exit-plan-milestone.ignored {
    border-left-color: #dc3545;
}

.exit-plan-milestone-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.exit-plan-milestone-body {
    display: flex;
    flex-direction: column;
    gap: 8px;
    color: rgba(255, 255, 255, 0.8);
}

.exit-plan-milestone-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.exit-plan-warning {
    color: #ffc107;
    font-size: 0.9em;
    font-style: italic;
}

/* ============================================
   BLOC "CHARGER UN PROFIL"
   ============================================ */
.exit-plan-profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
}

.exit-plan-profile-btn.chart-period-btn {
    min-height: 108px;
    padding: 16px 14px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    line-height: 1.35;
}

.exit-plan-profile-btn strong {
    font-size: 1.05rem;
    font-weight: 700;
    color: #ffffff;
}

.exit-plan-profile-btn span {
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.65);
    font-weight: 500;
}

/* ============================================
   UTILITAIRES
   ============================================ */
.exit-plan-loading,
.exit-plan-error,
.exit-plan-empty {
    text-align: center;
    padding: 2rem 1rem;
}

.exit-plan-plan-details-title {
    display: block;
    margin-bottom: 1rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 768px) {
    .exit-plan-rule-card-header {
        flex-direction: column;
        align-items: stretch;
    }
    
    .exit-plan-rule-priority-controls,
    .exit-plan-rule-card-actions {
        justify-content: center;
    }
    
    .exit-plan-strategy-config {
        grid-template-columns: 1fr;
    }
    
    .exit-plan-action-summary {
        grid-template-columns: 1fr;
    }
    
    .exit-plan-head-actions-row {
        flex-direction: column;
        align-items: stretch;
    }

    .exit-plan-builder-actions {
        justify-content: stretch;
    }

    .exit-plan-builder-actions .chart-period-btn {
        flex: 1 1 auto;
        text-align: center;
    }
    
    .exit-plan-table {
        font-size: 0.9em;
    }
    
    .exit-plan-table th,
    .exit-plan-table td {
        padding: 10px 5px;
    }
    
    .exit-plan-profile-select {
        width: 100%;
    }

    .exit-plan-profile-chips {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    
    .exit-plan-profiles-grid {
        grid-template-columns: 1fr;
    }

    .exit-plan-step-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .exit-plan-step-header-text {
        text-align: center;
    }
}

/* =============================================================================
   Refonte UX « Plan de sortie » (ep-*) — blocs, mode, paliers, tableau
   ============================================================================= */

.liofo-exit-plan-page .ep-v2 .exit-plan-card p,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-block-lead,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-hero-lead,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-panel-intro,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-paliers-lead,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-order-hint,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-toolbar-note,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-after-hint,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-moonbag-hint,
.liofo-exit-plan-page .ep-v2 .exit-plan-card .ep-mini-sim-hint {
    text-align: left;
}

.ep-block {
    margin-bottom: 1.75rem;
}

.ep-hero-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.35rem, 2.5vw, 1.65rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: 0.02em;
}

.ep-hero-lead {
    margin: 0 0 1.25rem;
    font-size: 0.95rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.78);
    max-width: 38rem;
}

.ep-intro-pillars {
    list-style: none;
    margin: 0 0 1.25rem;
    padding: 0;
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.ep-intro-pillar {
    display: flex;
    gap: 0.65rem;
    align-items: flex-start;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.86rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.88);
}

.ep-intro-pillar-icon {
    flex-shrink: 0;
    font-size: 1.1rem;
    opacity: 0.9;
}

.ep-honesty-strip {
    margin: 0 0 1.35rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(59, 130, 246, 0.28);
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(226, 232, 240, 0.95);
}

.ep-mini-sim {
    margin-top: 0.25rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-mini-sim-title {
    margin: 0 0 0.35rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.ep-mini-sim-hint {
    margin: 0 0 0.85rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.58);
}

.ep-mini-sim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 0.75rem 1rem;
    margin-bottom: 0.85rem;
}

.ep-mini-sim-out {
    margin-top: 0.85rem;
    padding: 0.75rem 1rem;
    border-radius: 12px;
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.88);
}

.ep-sim-result-list {
    margin: 0;
    padding-left: 1.1rem;
}

.ep-sim-error {
    margin: 0;
    color: #fecaca;
}

.ep-block-title {
    margin: 0 0 0.4rem;
    font-size: 1.12rem;
    font-weight: 700;
    color: #fff;
    text-align: left;
}

.liofo-exit-plan-page .ep-v2 h1,
.liofo-exit-plan-page .ep-v2 h2,
.liofo-exit-plan-page .ep-v2 h3,
.liofo-exit-plan-page .ep-v2 h4 {
    text-align: left;
}

.ep-block-lead {
    margin: 0 0 1.15rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.65);
    max-width: 40rem;
}

.ep-mode-switch {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.85rem;
    margin-bottom: 1.25rem;
}

.ep-mode-card {
    text-align: left;
    padding: 1rem 1.1rem;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(8, 12, 22, 0.45);
    color: rgba(255, 255, 255, 0.92);
    cursor: pointer;
    transition:
        border-color 0.2s,
        box-shadow 0.2s,
        transform 0.15s;
}

.ep-mode-card:hover {
    border-color: rgba(61, 178, 255, 0.45);
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.25);
}

.ep-mode-card--active {
    border-color: rgba(61, 178, 255, 0.65);
    box-shadow: 0 0 0 1px rgba(61, 178, 255, 0.25);
    background: rgba(30, 58, 95, 0.35);
}

.ep-mode-card-title {
    display: block;
    font-weight: 800;
    font-size: 1rem;
    margin-bottom: 0.35rem;
}

.ep-mode-card-desc {
    display: block;
    font-size: 0.82rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.62);
}

.ep-panel-title {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
}

.ep-panel-intro {
    margin: 0 0 1rem;
    font-size: 0.86rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

.ep-profile-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.5rem;
    margin-bottom: 1rem;
}

@media (max-width: 640px) {
    .ep-profile-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ep-profile-tile {
    padding: 0.55rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.22);
    color: #fff;
    cursor: pointer;
    transition: border-color 0.2s;
}

.ep-profile-tile.is-selected,
.ep-profile-tile:hover {
    border-color: rgba(61, 178, 255, 0.5);
}

.ep-profile-tile-name {
    display: block;
    font-weight: 700;
    font-size: 0.82rem;
}

.ep-profile-tile-tag {
    display: block;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.55);
}

.ep-field {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
}

.ep-field--inline {
    max-width: 22rem;
}

.ep-field-label {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.65);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ep-input,
.ep-select {
    padding: 0.55rem 0.75rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    font-size: 0.9rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.ep-input--moonbag {
    max-width: 8rem;
    font-weight: 700;
    font-size: 1rem;
    border-color: rgba(125, 211, 252, 0.35);
}

.ep-moonbag-block {
    margin: 1rem 0;
    padding: 1rem 1.1rem;
    border-radius: 14px;
    background: rgba(56, 189, 248, 0.08);
    border: 1px solid rgba(56, 189, 248, 0.22);
}

.ep-moonbag-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
}

.ep-moonbag-hint {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.58);
    line-height: 1.45;
}

.ep-expert-meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

@media (max-width: 720px) {
    .ep-expert-meta-grid {
        grid-template-columns: 1fr;
    }
}

.ep-actions-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 0.75rem;
}

.ep-actions-row--toolbar {
    margin-top: 1rem;
}

.ep-after-hint,
.ep-toolbar-note {
    margin: 0.75rem 0 0;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.45;
}

.ep-paliers-lead {
    margin: 0 0 0.65rem;
    font-size: 0.88rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.68);
}

.ep-order-hint {
    margin: 0 0 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.62);
}

.ep-paliers-toolbar {
    margin-bottom: 0.85rem;
}

.ep-tech-details {
    margin-bottom: 1rem;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.55);
}

.ep-tech-details summary {
    cursor: pointer;
    color: rgba(125, 211, 252, 0.95);
}

.ep-palier-card {
    margin-bottom: 1rem;
    padding: 1rem 1.1rem 1.15rem;
    border-radius: 16px;
    background: rgba(8, 12, 22, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.ep-palier-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    align-items: flex-start;
    margin-bottom: 1rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-palier-order {
    flex: 0 0 auto;
    min-width: 7rem;
}

.ep-palier-order-label {
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.45);
    margin-bottom: 0.35rem;
}

.ep-palier-order-actions {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ep-palier-heading {
    flex: 1 1 12rem;
    min-width: 0;
}

.ep-palier-badge {
    display: inline-block;
    margin-bottom: 0.35rem;
    padding: 0.2rem 0.55rem;
    border-radius: 8px;
    background: rgba(59, 130, 246, 0.2);
    font-size: 0.78rem;
    font-weight: 700;
}

.ep-palier-preview {
    margin: 0;
    font-size: 0.84rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.82);
}

.ep-palier-preview-sub {
    display: inline-block;
    margin-top: 0.35rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: rgba(186, 230, 253, 0.88);
}

.ep-zone-intro {
    margin: 0 0 0.65rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: rgba(255, 255, 255, 0.58);
}

.ep-zone-footnote {
    margin: 0.55rem 0 0;
    font-size: 0.76rem;
    line-height: 1.45;
    color: rgba(148, 163, 184, 0.95);
}

.ep-palier-toolbar-actions {
    flex: 1 1 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

@media (min-width: 900px) {
    .ep-palier-toolbar-actions {
        flex: 1 1 14rem;
        justify-content: flex-end;
    }
}

.ep-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    cursor: pointer;
    font-size: 0.82rem;
    color: rgba(255, 255, 255, 0.85);
}

.ep-toggle input {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.ep-toggle-ui {
    width: 2.25rem;
    height: 1.2rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    position: relative;
    flex-shrink: 0;
}

.ep-toggle-ui::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 0.85rem;
    height: 0.85rem;
    border-radius: 50%;
    background: #fff;
    transition: transform 0.2s;
}

.ep-toggle input:checked + .ep-toggle-ui {
    background: rgba(34, 197, 94, 0.35);
    border-color: rgba(34, 197, 94, 0.45);
}

.ep-toggle input:checked + .ep-toggle-ui::after {
    transform: translateX(1rem);
}

.ep-palier-zones {
    display: grid;
    gap: 0.85rem;
}

@media (min-width: 800px) {
    .ep-palier-zones {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.ep-zone {
    padding: 0.85rem 1rem;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.ep-zone-title {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: rgba(125, 211, 252, 0.95);
}

.ep-zone-note {
    margin: 0 0 0.65rem;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.55);
}

.ep-split-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.5rem;
}

@media (max-width: 640px) {
    .ep-split-grid {
        grid-template-columns: 1fr;
    }
}

.ep-unit {
    align-self: center;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.5);
    margin-left: 0.25rem;
}

.ep-plan-toolbar {
    margin-bottom: 1rem;
}

.ep-table-wrap {
    overflow-x: auto;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.ep-plan-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
}

.ep-plan-table th {
    text-align: left;
    padding: 0.65rem 0.75rem;
    background: rgba(0, 0, 0, 0.35);
    color: rgba(255, 255, 255, 0.65);
    font-weight: 700;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ep-plan-table td {
    padding: 0.65rem 0.75rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    vertical-align: middle;
    color: rgba(255, 255, 255, 0.88);
}

.ep-asset-cell {
    display: flex;
    align-items: center;
    gap: 0.55rem;
}

.ep-asset-thumb {
    width: 24px;
    height: 24px;
    border-radius: 6px;
    object-fit: contain;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.06);
}

.ep-asset-text {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    min-width: 0;
}

.ep-asset-name {
    font-weight: 700;
    font-size: 0.86rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ep-asset-symbol {
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.45);
}

.ep-cat-badge {
    display: inline-block;
    padding: 0.15rem 0.45rem;
    border-radius: 8px;
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.08);
}

.ep-num {
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.ep-num--strong {
    font-weight: 800;
    color: #7dd3fc;
}

.ep-next-cell {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.ep-progress {
    height: 4px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    overflow: hidden;
}

.ep-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #38bdf8, #6366f1);
}

.ep-detail-panel {
    padding: 1rem 1.1rem 1.2rem;
    background: rgba(0, 0, 0, 0.28);
}

.ep-detail-title {
    margin: 0 0 0.85rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.ep-milestone-stack {
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.ep-milestone {
    padding: 0.75rem 0.9rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(15, 23, 42, 0.45);
}

.ep-milestone-head {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.45rem;
}

.ep-milestone-tag {
    font-size: 0.68rem;
    padding: 0.12rem 0.4rem;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.1);
}

.ep-milestone-list {
    margin: 0;
    padding-left: 1.1rem;
    font-size: 0.82rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.ep-moonbag-note {
    color: #fde68a;
}

.ep-milestone-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-top: 0.55rem;
}

.ep-modal-profiles {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.ep-zone .ep-field {
    margin-bottom: 0.5rem;
}

.ep-zone .ep-field:last-child {
    margin-bottom: 0;
}

/* =============================================================================
   Plan de sortie — polish visuel (cohérence dashboard / santé des marchés)
   ============================================================================= */

.liofo-exit-plan.ep-v2 .ep-page-kicker {
    margin-top: 0;
}

.liofo-exit-plan.ep-v2 .ep-section-kicker {
    margin-top: 0;
}

.liofo-exit-plan.ep-v2 .ep-block {
    margin-bottom: 0;
}

.liofo-exit-plan.ep-v2 .ep-hero-title {
    font-size: clamp(1.35rem, 3.2vw, 1.5rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
    margin-bottom: 0.65rem;
}

.liofo-exit-plan.ep-v2 .ep-hero-lead {
    font-size: 0.95rem;
    line-height: 1.68;
    max-width: 34rem;
    margin-bottom: 1.65rem;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.58));
}

.liofo-exit-plan.ep-v2 .ep-intro-pillars {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    max-width: 36rem;
    margin-bottom: 1.5rem;
}

.liofo-exit-plan.ep-v2 .ep-intro-pillar {
    padding: 1rem 1.1rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    line-height: 1.65;
    font-size: 0.88rem;
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.09);
}

.liofo-exit-plan.ep-v2 .ep-honesty-strip {
    margin-bottom: 1.6rem;
    padding: 1rem 1.15rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    line-height: 1.65;
    font-size: 0.86rem;
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.32);
    color: #dbeafe;
}

.liofo-exit-plan.ep-v2 .ep-mini-sim {
    margin-top: 0.35rem;
    padding-top: 1.35rem;
}

.liofo-exit-plan.ep-v2 .ep-mini-sim-title {
    font-size: 1.02rem;
    margin-bottom: 0.45rem;
}

.liofo-exit-plan.ep-v2 .ep-mini-sim-hint {
    margin-bottom: 1.1rem;
    line-height: 1.6;
    max-width: 34rem;
}

.liofo-exit-plan.ep-v2 .ep-mini-sim-grid {
    max-width: 36rem;
    gap: 1rem 1.25rem;
    margin-bottom: 1rem;
}

.liofo-exit-plan.ep-v2 .ep-mini-sim-out {
    max-width: 36rem;
    padding: 1rem 1.15rem;
    line-height: 1.65;
}

.liofo-exit-plan.ep-v2 .ep-block-title {
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.25;
    margin-bottom: 0.55rem;
}

.liofo-exit-plan.ep-v2 .ep-block-lead {
    font-size: 0.9rem;
    line-height: 1.68;
    margin-bottom: 1.5rem;
    max-width: 34rem;
    color: var(--liofo-w-muted, rgba(255, 255, 255, 0.58));
}

.liofo-exit-plan.ep-v2 .ep-mode-switch {
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.liofo-exit-plan.ep-v2 .ep-mode-card {
    padding: 1.2rem 1.25rem;
    border-radius: var(--liofo-w-radius, 16px);
    background: var(--liofo-w-surface, rgba(12, 16, 24, 0.65));
    border: 1px solid var(--liofo-w-border, rgba(255, 255, 255, 0.1));
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.14);
}

.liofo-exit-plan.ep-v2 .ep-mode-card--active {
    box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.35), 0 12px 32px rgba(0, 0, 0, 0.2);
}

.liofo-exit-plan.ep-v2 .ep-panel--guided,
.liofo-exit-plan.ep-v2 .ep-panel--expert {
    margin-top: 1.35rem;
    padding: 1.25rem 1.2rem 1.35rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(255, 255, 255, 0.07);
}

.liofo-exit-plan.ep-v2 .ep-panel-title {
    font-size: 1.02rem;
    margin-bottom: 0.55rem;
}

.liofo-exit-plan.ep-v2 .ep-panel-intro {
    line-height: 1.65;
    margin-bottom: 1.2rem;
    max-width: 34rem;
}

.liofo-exit-plan.ep-v2 .ep-profile-grid {
    gap: 0.65rem;
    margin-bottom: 1.15rem;
}

.liofo-exit-plan.ep-v2 .ep-profile-tile {
    padding: 0.65rem 0.55rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
}

.liofo-exit-plan.ep-v2 .ep-field {
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.liofo-exit-plan.ep-v2 .ep-field-label {
    letter-spacing: 0.08em;
    font-size: 0.72rem;
    color: rgba(255, 255, 255, 0.52);
}

.liofo-exit-plan.ep-v2 .ep-input,
.liofo-exit-plan.ep-v2 .ep-select {
    min-height: 2.55rem;
    padding: 0.55rem 0.95rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.05);
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease;
}

.liofo-exit-plan.ep-v2 .ep-input:hover,
.liofo-exit-plan.ep-v2 .ep-select:hover {
    border-color: rgba(56, 189, 248, 0.28);
}

.liofo-exit-plan.ep-v2 .ep-input:focus,
.liofo-exit-plan.ep-v2 .ep-select:focus {
    outline: none;
    border-color: rgba(56, 189, 248, 0.55);
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.15);
}

.liofo-exit-plan.ep-v2 .ep-moonbag-block {
    margin: 1.25rem 0;
    padding: 1.15rem 1.2rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
}

.liofo-exit-plan.ep-v2 .ep-moonbag-hint,
.liofo-exit-plan.ep-v2 .ep-after-hint,
.liofo-exit-plan.ep-v2 .ep-toolbar-note {
    line-height: 1.62;
    max-width: 36rem;
}

.liofo-exit-plan.ep-v2 .ep-actions-row {
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.liofo-exit-plan.ep-v2 .ep-paliers-lead,
.liofo-exit-plan.ep-v2 .ep-order-hint {
    line-height: 1.65;
    max-width: 36rem;
}

.liofo-exit-plan.ep-v2 .ep-paliers-toolbar {
    margin-bottom: 1.1rem;
}

.liofo-exit-plan.ep-v2 .ep-tech-details {
    margin-bottom: 1.25rem;
    padding: 0.65rem 0.85rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.06);
}

.liofo-exit-plan.ep-v2 .ep-tech-details-body {
    padding-top: 0.65rem;
}

.liofo-exit-plan.ep-v2 .ep-tech-details-body p {
    margin: 0;
    line-height: 1.65;
    max-width: 38rem;
}

.liofo-exit-plan.ep-v2 .ep-rules-list {
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
}

.liofo-exit-plan.ep-v2 .ep-palier-card {
    margin-bottom: 0;
    padding: 1.3rem 1.2rem 1.4rem;
    border-radius: var(--liofo-w-radius, 16px);
    background: rgba(8, 12, 22, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}

.liofo-exit-plan.ep-v2 .ep-palier-header {
    gap: 1rem 1.25rem;
    margin-bottom: 1.15rem;
    padding-bottom: 1.05rem;
}

.liofo-exit-plan.ep-v2 .ep-palier-preview {
    font-size: 0.88rem;
    line-height: 1.68;
    max-width: 40rem;
}

.liofo-exit-plan.ep-v2 .ep-palier-zones {
    gap: 1rem;
}

.liofo-exit-plan.ep-v2 .ep-zone {
    padding: 1rem 1.05rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.liofo-exit-plan.ep-v2 .ep-zone-title {
    margin-bottom: 0.75rem;
    letter-spacing: 0.08em;
}

.liofo-exit-plan.ep-v2 .ep-split-grid {
    gap: 0.65rem;
}

.liofo-exit-plan.ep-v2 .ep-plan-toolbar {
    margin-bottom: 1.25rem;
}

.liofo-exit-plan.ep-v2 .ep-table-wrap {
    border-radius: var(--liofo-w-radius-sm, 12px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
}

.liofo-exit-plan.ep-v2 .ep-plan-table {
    font-size: 0.86rem;
}

.liofo-exit-plan.ep-v2 .ep-plan-table th {
    padding: 0.85rem 1rem;
    font-size: 0.7rem;
    letter-spacing: 0.08em;
}

.liofo-exit-plan.ep-v2 .ep-plan-table td {
    padding: 0.85rem 1rem;
    border-top-color: rgba(255, 255, 255, 0.07);
}

.liofo-exit-plan.ep-v2 .ep-plan-row--main:hover td {
    background: rgba(255, 255, 255, 0.03);
}

.liofo-exit-plan.ep-v2 .ep-asset-thumb {
    width: 20px;
    height: 20px;
    border-radius: 5px;
}

.liofo-exit-plan.ep-v2 .ep-detail-panel {
    padding: 1.2rem 1.2rem 1.35rem;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.liofo-exit-plan.ep-v2 .ep-milestone-stack {
    gap: 0.85rem;
}

.liofo-exit-plan.ep-v2 .ep-milestone {
    padding: 0.95rem 1rem;
    border-radius: var(--liofo-w-radius-sm, 12px);
    background: rgba(15, 23, 42, 0.55);
}

.liofo-exit-plan.ep-v2 .ep-milestone-list {
    line-height: 1.65;
}

.liofo-exit-plan.ep-v2 .ep-modal-profiles {
    gap: 0.55rem;
}

/* =============================================================================
   Sous-cadres par zone (piles + largeur maîtrisée)
   ============================================================================= */

.ep-part-stack {
    display: flex;
    flex-direction: column;
    gap: 1.65rem;
    width: 100%;
    max-width: min(620px, 100%);
    margin-inline: auto;
}

.ep-part-stack--paliers,
.ep-part-stack--plan {
    max-width: min(700px, 100%);
}

.ep-guided-stack,
.ep-expert-stack {
    display: flex;
    flex-direction: column;
    gap: 1.35rem;
}

.liofo-exit-plan.ep-v2 .ep-subcard.liofo-w-card {
    padding: 1.12rem 1.05rem 1.22rem;
    box-shadow: 0 8px 26px rgba(0, 0, 0, 0.16);
}

.ep-subcard-kicker {
    margin-top: 0 !important;
    margin-bottom: 0.45rem;
}

.liofo-exit-plan.ep-v2 .ep-subcard--notice .ep-honesty-strip {
    margin-bottom: 0;
}

.liofo-exit-plan.ep-v2 .ep-subcard--sim .ep-mini-sim-hint {
    margin-bottom: 1rem;
}

.liofo-exit-plan.ep-v2 .ep-subcard--plan-table {
    padding-top: 1rem;
    padding-bottom: 1.15rem;
}

.liofo-exit-plan.ep-v2 .ep-subcard--expert-actions .ep-actions-row--toolbar {
    margin-top: 0.65rem;
}
