/* ============================================================
   MON GAIN RÉEL — CMG emploi direct rémunération 2026 V1
   ============================================================ */

.cmg-direct-section{
    padding:18px;
    border:1px solid rgba(47,99,190,.23);
    border-radius:16px;
    background:linear-gradient(
        180deg,
        rgba(234,241,255,.72),
        rgba(255,255,255,.92)
    );
}

.cmg-direct-intro{
    display:flex;
    flex-direction:column;
    gap:3px;
    margin-bottom:16px;
    padding:11px 13px;
    border-radius:11px;
    background:rgba(47,99,190,.07);
    color:var(--muted);
    font-size:.78rem;
    line-height:1.5;
}

.cmg-direct-intro strong,
.cmg-resource-note strong{
    color:var(--blue-950);
}

.cmg-activity-check{
    margin:14px 0;
}

.cmg-unit-field{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    min-height:52px;
    padding:0 14px;
    box-sizing:border-box;
    border:1px solid rgba(47,99,190,.18);
    border-radius:14px;
    background:#fff;
}

.cmg-unit-field input{
    flex:1 1 auto;
    min-width:0;
    width:auto;
    border:0 !important;
    outline:0;
    box-shadow:none;
    background:transparent;
    padding:12px 0;
}

.cmg-unit-field input:focus{
    outline:none;
    box-shadow:none;
}

.cmg-unit-field:focus-within{
    border-color:rgba(47,99,190,.45);
    box-shadow:0 0 0 3px rgba(47,99,190,.10);
}

.cmg-unit-field b{
    flex:0 0 auto;
    margin:0;
    color:var(--muted);
    font-size:.82rem;
    font-weight:700;
    line-height:1;
    white-space:nowrap;
}

.cmg-resource-note,
.cmg-v1-note{
    margin-top:14px;
    padding:11px 13px;
    border-radius:11px;
    font-size:.76rem;
    line-height:1.5;
}

.cmg-resource-note{
    border:1px solid rgba(47,99,190,.16);
    background:#fff;
    color:var(--muted);
}

.cmg-v1-note{
    border-left:4px solid var(--orange);
    border-radius:0 11px 11px 0;
    background:var(--orange-soft);
    color:#76501d;
}

.cmg-direct-result-card .result-card-note{
    display:block;
    width:auto;
    box-sizing:border-box;
    margin:14px 18px 16px !important;
    padding:0 !important;
    line-height:1.55;
}

.cmg-cotisations-note{
    margin-bottom:16px;
}

.cmg-overcap-note{
    background:var(--orange-soft);
    color:#76501d;
}

.cmg-projection-note{
    margin:0 0 18px;
    padding:13px 15px;
    border:1px solid rgba(47,99,190,.18);
    border-radius:12px;
    background:rgba(47,99,190,.06);
    color:var(--muted);
    font-size:.8rem;
    line-height:1.55;
}

.cmg-projection-note strong{
    color:var(--blue-950);
}

@media(max-width:640px){
    .cmg-direct-result-card .result-card-note{
        margin:12px 14px 14px !important;
    }

    .cmg-unit-field{
        min-height:48px;
        padding:0 12px;
    }
}


.cmg-direct-result-card .result-card-note:last-child{
    margin-bottom:18px !important;
}

.cmg-direct-result-card .result-card-note strong,
.cmg-cotisations-note strong{
    color:var(--blue-950);
}


/* ============================================================
   CMG cotisations — V1.2
   ============================================================ */

.cmg-contributions-field{
    margin-top:14px;
}

.cmg-result-highlight dt,
.cmg-result-highlight dd{
    font-weight:750;
}

.cmg-result-highlight dd{
    color:var(--green, #18864b);
}

.cmg-result-total{
    margin-top:4px;
    padding-top:10px;
    border-top:1px solid rgba(47,99,190,.20);
}

.cmg-result-total dt,
.cmg-result-total dd{
    font-weight:800;
    color:var(--blue-950);
}

.cmg-economic-row{
    opacity:.82;
}

.cmg-economic-row dd{
    font-weight:700;
}
