/* ============================================================
   MON GAIN RÉEL — CMG structure 2026 V1
   CSS corrigé — champ heures sans double contour
   ============================================================ */

.cmg-structure-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-structure-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-structure-intro strong,
.cmg-structure-info strong{
    color:var(--blue-950);
}

.cmg-structure-activity,
.cmg-structure-atypical{
    margin-top:14px;
}

/* Champ heures : le conteneur porte seul la bordure */
.cmg-structure-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;
    box-shadow:none;
    overflow:hidden;
}

.cmg-structure-unit-field input,
.cmg-structure-unit-field input[type="number"]{
    flex:1 1 auto;
    min-width:0;
    width:100%;
    height:auto;
    min-height:0;
    margin:0 !important;
    padding:12px 0 !important;
    border:0 !important;
    border-color:transparent !important;
    border-radius:0 !important;
    outline:0 !important;
    box-shadow:none !important;
    background:transparent !important;
    font:inherit;
}

.cmg-structure-unit-field input:hover,
.cmg-structure-unit-field input[type="number"]:hover,
.cmg-structure-unit-field input:focus,
.cmg-structure-unit-field input[type="number"]:focus,
.cmg-structure-unit-field input:focus-visible,
.cmg-structure-unit-field input[type="number"]:focus-visible{
    border:0 !important;
    border-color:transparent !important;
    outline:0 !important;
    box-shadow:none !important;
    background:transparent !important;
}

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

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

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

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

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

.cmg-structure-result-card .result-card-note{
    margin:14px 18px 18px !important;
    padding:0 !important;
    line-height:1.55;
}

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

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

.cmg-structure-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-structure-projection-note strong{
    color:var(--blue-950);
}

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

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