:root{
    --blue-950:#102b63;
    --blue-800:#1e4a96;
    --blue-700:#2f63be;
    --blue-100:#eaf1ff;
    --orange:#f89a1c;
    --orange-soft:#fff4e5;
    --green:#248a57;
    --green-soft:#eaf7f0;
    --red:#c73a3a;
    --red-soft:#fdeaea;
    --text:#24324a;
    --muted:#6c7890;
    --line:#dde4ef;
    --bg:#f5f7fb;
    --white:#fff;
    --shadow:0 12px 28px rgba(27,57,111,.08);
}

*{box-sizing:border-box}

html{background:var(--bg)}

body{
    margin:0;
    font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
    color:var(--text);
    background:
        radial-gradient(circle at top right,rgba(47,99,190,.08),transparent 30rem),
        var(--bg);
}

a{color:inherit;text-decoration:none}

.site-header{
    width:min(1180px,calc(100% - 28px));
    margin:0 auto;
    min-height:82px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:24px;
}

.brand{
    display:flex;
    align-items:center;
    gap:12px;
}

.brand strong{
    display:block;
    color:var(--blue-950);
    font-size:1.05rem;
}

.brand small{
    display:block;
    color:var(--muted);
    margin-top:2px;
    font-size:.74rem;
}

.brand-mark{
    width:50px;
    height:50px;
    position:relative;
    flex:0 0 auto;
}

.brand-mark::before{
    content:"";
    position:absolute;
    width:38px;
    height:22px;
    right:0;
    bottom:5px;
    border-radius:65% 20% 65% 20%;
    background:var(--blue-700);
    transform:rotate(-24deg);
}

.brand-mark::after{
    content:"";
    position:absolute;
    width:28px;
    height:14px;
    left:1px;
    top:5px;
    border-radius:70% 20% 70% 20%;
    background:var(--orange);
    transform:rotate(25deg);
}

.main-nav{
    display:flex;
    gap:6px;
}

.main-nav a{
    padding:9px 13px;
    border-radius:10px;
    color:var(--muted);
    font-size:.9rem;
    font-weight:700;
}

.main-nav a:hover,
.main-nav a.active{
    color:var(--blue-700);
    background:var(--blue-100);
}

.site-main{
    width:min(1180px,calc(100% - 28px));
    margin:0 auto;
    padding:36px 0 70px;
}

.site-footer{
    width:min(1180px,calc(100% - 28px));
    margin:0 auto;
    padding:24px 0 38px;
    border-top:1px solid var(--line);
    display:flex;
    justify-content:space-between;
    gap:20px;
    color:var(--muted);
    font-size:.82rem;
}

.eyebrow{
    display:inline-block;
    color:var(--orange);
    font-size:.78rem;
    font-weight:850;
    letter-spacing:.08em;
    text-transform:uppercase;
    margin-bottom:12px;
}

.hero-page{
    min-height:520px;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:55px;
    align-items:center;
}

.hero-copy h1{
    margin:0;
    max-width:720px;
    color:var(--blue-950);
    font-size:clamp(2.5rem,6vw,5rem);
    letter-spacing:-.045em;
    line-height:.98;
}

.hero-copy h1 em{
    color:var(--blue-700);
    font-style:normal;
}

.hero-copy p{
    max-width:650px;
    font-size:1.08rem;
    line-height:1.7;
    color:var(--muted);
    margin:25px 0;
}

.hero-actions{
    display:flex;
    gap:12px;
    margin:26px 0;
}

.button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    border:0;
    border-radius:12px;
    padding:12px 18px;
    font:inherit;
    font-weight:800;
    cursor:pointer;
}

.button-primary{
    color:#fff;
    background:linear-gradient(135deg,var(--blue-800),var(--blue-700));
    box-shadow:0 8px 22px rgba(47,99,190,.22);
}

.button-large{
    min-height:50px;
    width:100%;
}

.trust-line{
    display:flex;
    flex-wrap:wrap;
    gap:14px;
    color:var(--muted);
    font-size:.82rem;
}

.hero-panel{
    display:flex;
    justify-content:center;
}

.dashboard-preview{
    width:min(100%,420px);
    background:var(--white);
    border:1px solid var(--line);
    border-radius:24px;
    box-shadow:var(--shadow);
    padding:24px;
}

.preview-label{
    color:var(--muted);
    font-size:.78rem;
    font-weight:800;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.preview-amount{
    margin:18px 0 22px;
    padding:22px;
    border-radius:18px;
    background:linear-gradient(135deg,var(--blue-950),var(--blue-700));
    color:#fff;
}

.preview-amount small{
    display:block;
    opacity:.82;
}

.preview-amount strong{
    display:block;
    margin-top:7px;
    font-size:2.5rem;
}

.preview-row{
    display:flex;
    justify-content:space-between;
    gap:18px;
    padding:13px 0;
    border-bottom:1px solid var(--line);
    font-size:.86rem;
}

.preview-row span{
    color:var(--muted);
}

.preview-row strong{
    color:var(--blue-950);
    text-align:right;
}

.preview-note{
    margin-top:18px;
    padding:13px;
    border-radius:13px;
    background:var(--orange-soft);
    color:#76501d;
    font-size:.82rem;
    line-height:1.45;
}

.features{
    display:grid;
    grid-template-columns:repeat(3,1fr);
    gap:16px;
    margin-top:35px;
}

.feature-card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:18px;
    box-shadow:var(--shadow);
    padding:20px;
}

.feature-number{
    color:var(--orange);
    font-weight:900;
    font-size:.8rem;
}

.feature-card h2{
    color:var(--blue-950);
    font-size:1.05rem;
    margin:9px 0 7px;
}

.feature-card p{
    color:var(--muted);
    line-height:1.5;
    margin:0;
    font-size:.88rem;
}

.page-heading{
    margin-bottom:25px;
}

.page-heading h1{
    color:var(--blue-950);
    margin:0;
    font-size:clamp(2rem,4vw,3rem);
}

.page-heading p{
    color:var(--muted);
    line-height:1.6;
    max-width:720px;
}

.simulation-layout{
    display:grid;
    grid-template-columns:minmax(0,1.25fr) minmax(340px,.75fr);
    gap:20px;
    align-items:start;
}

.panel,
.result-card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:var(--shadow);
}

.panel-heading{
    padding:19px 20px;
    border-bottom:1px solid var(--line);
}

.panel-heading h2{
    margin:0;
    color:var(--blue-950);
    font-size:1.05rem;
}

.panel-heading p{
    margin:5px 0 0;
    color:var(--muted);
    font-size:.86rem;
}

.form{
    padding:20px;
}

.form-section{
    margin-bottom:26px;
}

.form-section h3{
    margin:0 0 12px;
    color:var(--blue-700);
    text-transform:uppercase;
    letter-spacing:.055em;
    font-size:.8rem;
}

.form-grid{
    display:grid;
    gap:12px;
}

.form-grid.two{
    grid-template-columns:repeat(2,1fr);
}

.form-grid.three{
    grid-template-columns:repeat(3,1fr);
}

.form-grid + .form-grid{
    margin-top:12px;
}

.field>span{
    display:block;
    margin-bottom:6px;
    font-size:.83rem;
    font-weight:750;
}

.field small{
    color:var(--muted);
    font-weight:600;
}

.field input{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid var(--line);
    border-radius:11px;
    background:#fff;
    color:var(--text);
    font:inherit;
    outline:none;
}

.field input:focus{
    border-color:var(--blue-700);
    box-shadow:0 0 0 3px rgba(47,99,190,.1);
}

.money-field{
    position:relative;
}

.money-field input{
    padding-right:38px;
}

.money-field b{
    position:absolute;
    right:13px;
    top:50%;
    transform:translateY(-50%);
    color:var(--muted);
}

.check-card{
    min-height:46px;
    padding:11px 13px;
    display:flex;
    gap:10px;
    align-items:center;
    border:1px solid var(--line);
    border-radius:11px;
    background:#fff;
    font-size:.88rem;
    font-weight:700;
}

.check-card input{
    width:18px;
    height:18px;
    accent-color:var(--blue-700);
}

.info-box{
    margin-top:11px;
    padding:12px 14px;
    border-radius:12px;
    color:var(--blue-950);
    background:var(--blue-100);
    font-size:.84rem;
    line-height:1.5;
}

.results-column{
    display:grid;
    gap:15px;
}

.empty-result{
    min-height:300px;
    display:grid;
    place-items:center;
    text-align:center;
    padding:25px;
}

.result-icon{
    display:grid;
    place-items:center;
    width:52px;
    height:52px;
    border-radius:16px;
    margin:0 auto 12px;
    background:var(--blue-100);
    color:var(--blue-700);
    font-weight:900;
    font-size:1.3rem;
}

.empty-result h2{
    color:var(--blue-950);
}

.empty-result p{
    color:var(--muted);
}

.result-card{
    overflow:hidden;
}

.result-title{
    padding:18px;
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:15px;
    border-bottom:1px solid var(--line);
}

.result-title span{
    color:var(--muted);
    font-size:.75rem;
    text-transform:uppercase;
    letter-spacing:.05em;
    font-weight:800;
}

.result-title h2{
    margin:3px 0 0;
    color:var(--blue-950);
    font-size:1.05rem;
}

.result-title>strong{
    color:var(--green);
    font-size:1.5rem;
    white-space:nowrap;
}

.result-card dl{
    margin:0;
    padding:16px 18px;
}

.result-card dl div{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:9px 0;
    border-bottom:1px dashed var(--line);
    font-size:.85rem;
}

.result-card dl div:last-child{
    border-bottom:0;
}

.result-card dt{
    color:var(--muted);
}

.result-card dd{
    margin:0;
    font-weight:750;
    text-align:right;
}

.alert{
    border-radius:14px;
    padding:14px 16px;
    font-size:.87rem;
    line-height:1.5;
}

.alert-warning{
    color:#76501d;
    background:var(--orange-soft);
    border:1px solid rgba(248,154,28,.28);
}

.alert-error{
    margin-bottom:20px;
    color:var(--red);
    background:var(--red-soft);
    border:1px solid rgba(199,58,58,.22);
}

.not-found{
    text-align:center;
    padding:90px 20px;
}

.not-found h1{
    color:var(--blue-950);
}

.not-found p{
    color:var(--muted);
    margin-bottom:24px;
}

.hidden{
    display:none!important;
}

@media(max-width:900px){
    .hero-page,
    .simulation-layout{
        grid-template-columns:1fr;
    }

    .features{
        grid-template-columns:1fr;
    }

    .form-grid.two,
    .form-grid.three{
        grid-template-columns:1fr;
    }
}

@media(max-width:640px){
    .site-header{
        min-height:72px;
    }

    .brand small{
        display:none;
    }

    .main-nav a{
        padding:8px 9px;
        font-size:.82rem;
    }

    .site-main{
        padding-top:20px;
    }

    .hero-page{
        min-height:auto;
        gap:30px;
    }

    .hero-copy h1{
        font-size:2.7rem;
    }

    .site-footer{
        flex-direction:column;
    }
}

/* ============================================================
   PAGE "ET SI..."
   ============================================================ */

.whatif-layout{
    display:grid;
    grid-template-columns:minmax(0,1fr) minmax(320px,.72fr);
    gap:20px;
    align-items:stretch;
    margin-bottom:22px;
}

.whatif-form{
    padding:20px;
}

.slider-value{
    display:flex;
    justify-content:space-between;
    align-items:flex-end;
    gap:15px;
    margin-bottom:18px;
}

.slider-value span{
    color:var(--muted);
    font-size:.84rem;
    font-weight:700;
}

.slider-value strong{
    color:var(--blue-950);
    font-size:1.85rem;
}

.income-slider{
    width:100%;
    accent-color:var(--blue-700);
    cursor:pointer;
}

.slider-scale{
    display:flex;
    justify-content:space-between;
    color:var(--muted);
    font-size:.75rem;
    margin-top:6px;
}

.whatif-number{
    margin:22px 0 16px;
}

.gain-card{
    border-radius:20px;
    padding:24px;
    color:#fff;
    background:
        radial-gradient(circle at top right,rgba(255,255,255,.15),transparent 14rem),
        linear-gradient(145deg,var(--blue-950),var(--blue-700));
    box-shadow:var(--shadow);
}

.gain-card-label{
    display:flex;
    justify-content:space-between;
    gap:12px;
    font-size:.78rem;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.06em;
    opacity:.9;
}

.gain-card-label span{
    padding:5px 8px;
    border-radius:999px;
    background:rgba(255,255,255,.12);
    font-size:.67rem;
}

.gain-rate{
    display:block;
    margin:28px 0 12px;
    font-size:clamp(3rem,7vw,5.4rem);
    line-height:.9;
    letter-spacing:-.05em;
}

.gain-rate.warning{
    color:#ffd28a;
}

.gain-rate.danger{
    color:#ffb2b2;
}

.gain-card p{
    line-height:1.55;
    margin:18px 0;
}

.gain-disclaimer{
    margin-top:22px;
    padding-top:16px;
    border-top:1px solid rgba(255,255,255,.18);
    font-size:.78rem;
    line-height:1.45;
    opacity:.78;
}

.compare-section{
    display:grid;
    grid-template-columns:1fr 48px 1fr;
    gap:12px;
    align-items:center;
    margin-bottom:22px;
}

.compare-card{
    background:var(--white);
    border:1px solid var(--line);
    border-radius:20px;
    box-shadow:var(--shadow);
    padding:20px;
}

.compare-card.target{
    border-color:rgba(47,99,190,.32);
}

.compare-kicker{
    color:var(--muted);
    font-size:.74rem;
    font-weight:850;
    text-transform:uppercase;
    letter-spacing:.06em;
}

.compare-card h2{
    margin:7px 0 0;
    color:var(--blue-950);
    font-size:2rem;
}

.compare-card>small{
    color:var(--muted);
}

.compare-card dl{
    margin:20px 0 0;
}

.compare-card dl div{
    display:flex;
    justify-content:space-between;
    gap:15px;
    padding:9px 0;
    border-bottom:1px dashed var(--line);
    font-size:.85rem;
}

.compare-card dl div:last-child{
    border-bottom:0;
}

.compare-card dt{
    color:var(--muted);
}

.compare-card dd{
    margin:0;
    font-weight:750;
    text-align:right;
}

.compare-card .total{
    margin-top:5px;
    padding-top:13px;
    border-top:2px solid var(--line);
    border-bottom:0;
    color:var(--blue-950);
    font-size:.92rem;
    font-weight:850;
}

.compare-card .total dt{
    color:var(--blue-950);
}

.compare-arrow{
    text-align:center;
    color:var(--orange);
    font-size:2rem;
    font-weight:900;
}

.chart-panel{
    overflow:hidden;
}

.chart-scroll{
    overflow-x:auto;
    padding:16px 18px 0;
}

.gain-chart{
    width:100%;
    min-width:720px;
    height:auto;
}

.axis{
    stroke:#9aa8bd;
    stroke-width:1.2;
}

.grid-line{
    stroke:#e5eaf2;
    stroke-width:1;
}

.axis-label{
    fill:#718099;
    font-size:12px;
    font-family:Inter,system-ui,sans-serif;
}

.available-line{
    fill:none;
    stroke:var(--blue-700);
    stroke-width:4;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.marker-line{
    stroke-width:1.5;
    stroke-dasharray:5 5;
}

.marker-line.current{
    stroke:#7a879b;
}

.marker-line.target{
    stroke:var(--orange);
}

.marker.current{
    fill:#fff;
    stroke:#7a879b;
    stroke-width:4;
}

.marker.target{
    fill:#fff;
    stroke:var(--orange);
    stroke-width:4;
}

.chart-legend{
    display:flex;
    flex-wrap:wrap;
    gap:16px;
    padding:10px 20px 20px;
    color:var(--muted);
    font-size:.78rem;
}

.chart-legend span{
    display:flex;
    align-items:center;
    gap:7px;
}

.legend-line{
    display:inline-block;
    width:24px;
    height:4px;
    border-radius:999px;
    background:var(--blue-700);
}

.legend-dot{
    display:inline-block;
    width:10px;
    height:10px;
    border-radius:50%;
}

.legend-dot.current{
    background:#7a879b;
}

.legend-dot.target{
    background:var(--orange);
}

.whatif-empty{
    min-height:380px;
}

@media(max-width:900px){
    .whatif-layout{
        grid-template-columns:1fr;
    }

    .compare-section{
        grid-template-columns:1fr;
    }

    .compare-arrow{
        transform:rotate(90deg);
    }
}

@media(max-width:640px){
    .gain-rate{
        font-size:3.8rem;
    }

    .slider-value{
        align-items:flex-start;
        flex-direction:column;
    }
}

/* ============================================================
   IMPÔT SUR LE REVENU 2026 - V1
   Ajouter à la fin de /public/assets/css/app.css
   ============================================================ */

.form-help{
    margin:-4px 0 13px;
    padding:10px 12px;
    border-radius:10px;
    background:#f7f9fc;
    color:var(--muted);
    font-size:.8rem;
    line-height:1.5;
}

.field select{
    width:100%;
    min-height:44px;
    padding:10px 12px;
    border:1px solid var(--line);
    border-radius:11px;
    background:#fff;
    color:var(--text);
    font:inherit;
    outline:none;
}

.field select:focus{
    border-color:var(--blue-700);
    box-shadow:0 0 0 3px rgba(47,99,190,.1);
}

.tax-section{
    padding:18px;
    border:1px solid rgba(248,154,28,.28);
    border-radius:16px;
    background:linear-gradient(
        180deg,
        rgba(255,244,229,.65),
        rgba(255,255,255,.85)
    );
}

.tax-section-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:18px;
    margin-bottom:14px;
}

.tax-section-head h3{
    margin-bottom:4px;
}

.tax-section-head p{
    margin:0;
    color:var(--muted);
    font-size:.78rem;
}

.tax-switch{
    flex:0 0 auto;
    display:flex;
    align-items:center;
    gap:8px;
    padding:9px 11px;
    border:1px solid rgba(248,154,28,.35);
    border-radius:999px;
    background:#fff;
    font-size:.8rem;
    font-weight:800;
    cursor:pointer;
}

.tax-switch input{
    width:17px;
    height:17px;
    accent-color:var(--orange);
}

.tax-info{
    margin-bottom:14px;
    padding:12px 14px;
    border-radius:12px;
    background:#fff;
    border:1px solid var(--line);
    color:var(--muted);
    font-size:.8rem;
    line-height:1.5;
}

.tax-tip{
    display:flex;
    align-items:center;
    padding:10px 12px;
    border-radius:11px;
    background:var(--blue-100);
    color:var(--blue-950);
    font-size:.78rem;
    line-height:1.4;
}

.tax-salary-grid{
    margin-top:12px;
}

.tax-result-card{
    border-color:rgba(248,154,28,.28);
}

.result-title .tax-amount{
    color:#c46a00;
}

.tax-inactive-note{
    color:var(--muted);
    background:#fff;
    border:1px solid var(--line);
}

.compare-card .tax-line{
    color:#b96100;
}

.compare-card .tax-line dt{
    color:#b96100;
}

.tax-projection-note{
    margin:-6px 0 22px;
    padding:13px 15px;
    border-radius:13px;
    color:#76501d;
    background:var(--orange-soft);
    border:1px solid rgba(248,154,28,.28);
    font-size:.82rem;
    line-height:1.5;
}

@media(max-width:640px){
    .tax-section-head{
        flex-direction:column;
    }

    .tax-switch{
        width:100%;
        justify-content:center;
    }
}

/* ============================================================
   IMPÔT V1.1 — SAISIE ANNUELLE + AIDES CONTEXTUELLES
   Ajouter à la FIN de /public/assets/css/app.css
   ============================================================ */

.field-label-with-help{
    display:flex!important;
    align-items:center;
    gap:6px;
}

.form-section h3 .help-button,
.tax-section h3 .help-button{
    vertical-align:middle;
    margin-left:4px;
}

.help-button{
    appearance:none;
    -webkit-appearance:none;
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:20px;
    height:20px;
    min-width:20px;
    padding:0;
    border:1px solid rgba(47,99,190,.32);
    border-radius:50%;
    background:#fff;
    color:var(--blue-700);
    font:700 12px/1 Inter,system-ui,sans-serif;
    cursor:pointer;
    box-shadow:none;
}

.help-button:hover,
.help-button:focus-visible,
.help-button[aria-expanded="true"]{
    color:#fff;
    background:var(--blue-700);
    border-color:var(--blue-700);
    outline:none;
}

.help-button:focus-visible{
    box-shadow:0 0 0 3px rgba(47,99,190,.14);
}

.help-popover{
    position:relative;
    display:block;
    margin:8px 0 13px;
    padding:12px 14px;
    border:1px solid rgba(47,99,190,.2);
    border-radius:12px;
    background:#fff;
    color:var(--text);
    box-shadow:0 8px 22px rgba(27,57,111,.08);
    font-size:.8rem;
    line-height:1.5;
}

.help-popover[hidden]{
    display:none!important;
}

.help-popover strong{
    display:block;
    margin-bottom:4px;
    color:var(--blue-950);
}

.help-popover p{
    margin:0;
    color:var(--muted);
}

.help-popover span{
    color:var(--muted);
}

.help-popover-field{
    margin:8px 0 0;
}

.annual-helper{
    margin:14px 0;
    padding:12px 14px;
    border-left:4px solid var(--orange);
    border-radius:0 11px 11px 0;
    background:var(--orange-soft);
    color:#76501d;
    font-size:.8rem;
    line-height:1.5;
}

.annual-helper strong{
    display:block;
    margin-bottom:3px;
}

.annual-helper code{
    padding:2px 5px;
    border-radius:5px;
    background:rgba(255,255,255,.72);
    color:#5c421d;
    font-family:ui-monospace,SFMono-Regular,Consolas,monospace;
    font-size:.78rem;
}

@media(max-width:640px){
    .help-button{
        width:22px;
        height:22px;
        min-width:22px;
    }

    .help-popover{
        font-size:.82rem;
    }
}

/* ============================================================
   AIDES CONTEXTUELLES NATIVES V1.2
   Plus aucune dépendance JavaScript pour les boutons "?"
   Ajouter à la FIN de /public/assets/css/app.css
   ============================================================ */

/*
 * La V1.1 donnait display:block à .help-popover.
 * Pour un élément [popover], il faut impérativement le masquer
 * lorsqu'il n'est pas dans l'état :popover-open.
 */
.help-popover[popover]:not(:popover-open){
    display:none!important;
}

.help-popover[popover]:popover-open{
    display:block;
    position:fixed;
    inset:0;
    width:min(430px,calc(100vw - 32px));
    max-height:min(70vh,520px);
    height:max-content;
    margin:auto;
    padding:18px 20px;
    overflow:auto;

    border:1px solid rgba(47,99,190,.22);
    border-radius:16px;
    background:#fff;
    color:var(--text);

    box-shadow:
        0 22px 60px rgba(16,43,99,.22),
        0 4px 14px rgba(16,43,99,.08);

    font-size:.88rem;
    line-height:1.55;

    z-index:1000;
}

.help-popover[popover]::backdrop{
    background:rgba(16,43,99,.22);
    backdrop-filter:blur(2px);
}

.help-popover[popover] strong{
    display:block;
    padding-right:24px;
    margin:0 0 7px;
    color:var(--blue-950);
    font-size:.95rem;
}

.help-popover[popover] p{
    margin:0;
    color:var(--muted);
}

.help-popover[popover] span{
    color:var(--muted);
}

/*
 * Le bouton reste volontairement petit mais a une zone cliquable
 * suffisante sur mobile.
 */
.help-button[popovertarget]{
    touch-action:manipulation;
}

.help-button[popovertarget]:active{
    transform:scale(.94);
}

@media(max-width:640px){
    .help-popover[popover]:popover-open{
        width:calc(100vw - 24px);
        max-height:75vh;
        padding:17px;
        border-radius:14px;
    }
}
/* ============================================================
   MON GAIN RÉEL EN EUROS — V1.3
   Ajouter à la FIN de /public/assets/css/app.css
   ============================================================ */

.gain-card-v13 .gain-main-amount{
    margin-top:26px;
    color:#fff;
    font-size:clamp(3.2rem,7vw,5.2rem);
    font-weight:900;
    line-height:.95;
    letter-spacing:-.055em;
}

.gain-card-v13 .gain-main-amount.negative{
    color:#ffd0d0;
}

.gain-main-caption{
    margin-top:13px;
    max-width:470px;
    color:rgba(255,255,255,.92);
    font-size:.95rem;
    line-height:1.55;
}

.gain-kpis{
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:10px;
    margin-top:22px;
}

.gain-kpi{
    padding:13px 14px;
    border:1px solid rgba(255,255,255,.16);
    border-radius:13px;
    background:rgba(255,255,255,.08);
}

.gain-kpi span,
.gain-kpi small{
    display:block;
    color:rgba(255,255,255,.72);
    font-size:.72rem;
}

.gain-kpi strong{
    display:block;
    margin:5px 0 2px;
    color:#fff;
    font-size:1.28rem;
}

.gain-breakdown-panel{
    margin-bottom:22px;
    overflow:hidden;
}

.gain-breakdown{
    padding:4px 20px 6px;
}

.gain-flow-row,
.gain-flow-total{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:14px 0;
    border-bottom:1px dashed var(--line);
}

.gain-flow-row>div,
.gain-flow-total>div{
    min-width:0;
}

.gain-flow-row span,
.gain-flow-total span{
    display:block;
    color:var(--text);
    font-size:.88rem;
    font-weight:750;
}

.gain-flow-row small,
.gain-flow-total small{
    display:block;
    margin-top:3px;
    color:var(--muted);
    font-size:.74rem;
}

.gain-flow-row>strong{
    flex:0 0 auto;
    color:var(--text);
    font-size:.95rem;
}

.gain-flow-row.positive>strong,
.gain-flow-row>strong.gain{
    color:var(--green);
}

.gain-flow-row>strong.loss{
    color:#c55d12;
}

.gain-flow-total{
    margin-top:4px;
    padding:17px 0;
    border-bottom:0;
}

.gain-flow-total span{
    color:var(--blue-950);
    font-size:.96rem;
}

.gain-flow-total strong{
    flex:0 0 auto;
    color:var(--green);
    font-size:1.35rem;
}

.gain-bar-summary{
    margin:5px 20px 20px;
    padding:16px;
    border-radius:14px;
    background:#f7f9fc;
    border:1px solid var(--line);
}

.gain-bar-labels,
.gain-bar-percentages{
    display:flex;
    justify-content:space-between;
    gap:16px;
}

.gain-bar-labels{
    color:var(--text);
    font-size:.8rem;
}

.gain-bar-labels strong{
    color:var(--blue-950);
}

.gain-bar{
    position:relative;
    height:14px;
    margin:12px 0 8px;
    overflow:hidden;
    border-radius:999px;
    background:var(--orange-soft);
    box-shadow:inset 0 0 0 1px rgba(248,154,28,.15);
}

.gain-bar-kept{
    position:absolute;
    inset:0 auto 0 0;
    display:block;
    border-radius:inherit;
    background:linear-gradient(
        90deg,
        var(--blue-800),
        var(--blue-700)
    );
}

.gain-bar-percentages{
    color:var(--muted);
    font-size:.74rem;
}

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

    .gain-flow-row,
    .gain-flow-total{
        align-items:flex-start;
    }

    .gain-bar-labels,
    .gain-bar-percentages{
        flex-direction:column;
        gap:4px;
    }
}
/* ============================================================
   AIDE AU LOGEMENT V1
   Ajouter à la FIN de /public/assets/css/app.css
   ============================================================ */

.housing-aid-section{
    padding:18px;
    border:1px solid rgba(47,99,190,.23);
    border-radius:16px;
    background:
        linear-gradient(
            180deg,
            rgba(234,241,255,.7),
            rgba(255,255,255,.9)
        );
}

.housing-aid-info{
    margin-bottom:14px;
    padding:11px 13px;
    border-radius:11px;
    background:#fff;
    border:1px solid var(--line);
    color:var(--muted);
    font-size:.8rem;
    line-height:1.5;
}

.housing-rls-field{
    margin-top:12px;
    max-width:calc(50% - 6px);
}

.housing-result-card{
    border-color:rgba(47,99,190,.26);
}

@media(max-width:640px){
    .housing-rls-field{
        max-width:none;
    }
}
/* ============================================================
   AIDE AU LOGEMENT — RESSOURCES V1.1
   Ajouter à la FIN de /public/assets/css/app.css
   ============================================================ */

.housing-reference-period{
    margin:0 0 14px;
    padding:11px 13px;
    border-radius:11px;
    background:rgba(47,99,190,.07);
    border:1px solid rgba(47,99,190,.16);
    color:var(--muted);
    font-size:.8rem;
    line-height:1.5;
}

.housing-reference-period strong{
    color:var(--blue-950);
}

#housing-salary2-row{
    margin-top:12px;
}

.housing-aid-section > #housing-aid-fields > .field{
    margin-top:12px;
}
/* ============================================================
   ALLOCATIONS FAMILIALES 2026 — V1
   Ajouter à la FIN de /public/assets/css/app.css
   ============================================================ */

.children-birthdates{
    margin-top:14px;
    padding:14px;
    border:1px solid var(--line);
    border-radius:13px;
    background:#fafbfd;
}

.children-birthdates-head{
    display:flex;
    align-items:flex-start;
    justify-content:space-between;
    gap:12px;
    margin-bottom:12px;
}

.children-birthdates-head>span{
    display:flex;
    align-items:center;
    gap:6px;
    color:var(--blue-950);
    font-size:.84rem;
    font-weight:750;
}

.children-birthdates-head small{
    color:var(--muted);
    font-size:.72rem;
}

.family-allowance-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)
        );
}

.family-allowance-info,
.family-age-rule{
    margin-bottom:14px;
    padding:11px 13px;
    border-radius:11px;
    font-size:.8rem;
    line-height:1.5;
}

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

.family-age-rule{
    margin-top:14px;
    margin-bottom:0;
    border-left:4px solid var(--orange);
    border-radius:0 11px 11px 0;
    background:var(--orange-soft);
    color:#76501d;
}

.family-allowance-info strong,
.family-age-rule strong{
    color:var(--blue-950);
}

.family-result-card{
    border-color:rgba(47,99,190,.26);
}

.family-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;
}

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

@media(max-width:640px){
    .children-birthdates-head{
        flex-direction:column;
        gap:4px;
    }
}
