/* Intro */
#dbfi-budget-seo-intro{max-width:1200px;margin:0 auto 10px auto;padding:10px;font-family:sans-serif;color:#000}
#dbfi-budget-seo-intro h1{font-size:1.9rem;line-height:1.25;font-weight:800;margin:0 0 12px;color:#000}
#dbfi-budget-seo-intro h1 .accent{color:#b3bc00}
#dbfi-budget-seo-intro p{font-size:1.05rem;line-height:1.6;color:#333;margin:0}

/* Application */
#dbfi-budget-app .main-layout { display: flex; flex-wrap: wrap; gap: 20px; }
#dbfi-budget-app .form-section { flex: 2; min-width: 280px; border: 1px solid #e5e7eb; padding: 15px; border-radius: 8px; }
#dbfi-budget-app .sidebar-section { flex: 1; min-width: 280px; border: 2px solid #000000; padding: 20px; border-radius: 8px; height: fit-content; }

@media (min-width: 640px) {
    #dbfi-budget-app { padding: 20px; }
    #dbfi-budget-app .main-layout { gap: 30px; }
    #dbfi-budget-app .form-section { padding: 25px; }
}

#dbfi-budget-app .row-group { margin-bottom: 25px; }
#dbfi-budget-app .row-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #f3f4f6; padding-bottom: 8px; }
#dbfi-budget-app h3 { font-size: 1.1rem; font-weight: 700; margin: 0; }
#dbfi-budget-app .btn-add { font-size: 0.75rem; font-weight: 700; border: none; background: none; border-bottom: 2px solid #b3bc00; cursor: pointer; padding-bottom: 2px; text-transform: uppercase; color: #000000; white-space: nowrap; }

/* Version Mobile First pour les lignes de saisie */
#dbfi-budget-app .input-item { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 15px; align-items: center; border-bottom: 1px dashed #f3f4f6; padding-bottom: 10px; position: relative; }
#dbfi-budget-app select { flex: 1; min-width: 140px; background-color: #fff; height: 42px; padding: 10px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.9rem; }
#dbfi-budget-app .input-wrapper { flex: 1; min-width: 100px; display: flex; align-items: center; border: 1px solid #ccc; border-radius: 6px; padding-right: 10px; background: #fff; height: 42px; }
#dbfi-budget-app .input-wrapper input { border: none; width: 100%; padding: 10px 5px 10px 10px; height: 100%; text-align: left; font-size: 0.9rem; }
#dbfi-budget-app .input-wrapper input:focus { outline: none; }
#dbfi-budget-app .btn-delete { background: none; border: none; color: #ccc; cursor: pointer; font-size: 1.2rem; padding: 10px; margin-left: auto; }
#dbfi-budget-app .btn-delete:hover { color: #dc2626; }

/* Ajustement Desktop pour aligner proprement sur une seule ligne */
@media (min-width: 480px) {
    #dbfi-budget-app .input-item { flex-wrap: nowrap; border-bottom: none; padding-bottom: 0; margin-bottom: 10px; }
    #dbfi-budget-app .btn-delete { padding: 0 5px; margin-left: 0; }
}

#dbfi-budget-app .actions-area { display: flex; gap: 15px; margin-top: 30px; border-top: 1px solid #eee; padding-top: 20px; }
#dbfi-budget-app .btn-reset { flex: 1; padding: 12px; background: #f3f4f6; border: none; border-radius: 6px; font-weight: 600; cursor: pointer; font-size: 0.9rem; }
#dbfi-budget-app .btn-calc { flex: 2; padding: 12px; background: #000000; color: #fff; border: none; border-radius: 6px; font-weight: 700; cursor: pointer; border-bottom: 4px solid #b3bc00; font-size: 0.9rem; letter-spacing: 0.5px; }
#dbfi-budget-app .btn-demo { display: block; margin: 0 auto 30px auto; padding: 10px 20px; border: 2px solid #000000; background: #fff; font-weight: 600; cursor: pointer; border-radius: 6px; color: #000000; font-size: 0.9rem; }
#dbfi-budget-app .btn-demo:hover { background: #000000; color: #ffffff; }

#dbfi-budget-app .score-box { background: #000; color: #fff; padding: 20px; border-radius: 8px; text-align: center; margin-bottom: 20px; }
#dbfi-budget-app .score-val { font-size: 2.5rem; font-weight: 900; color: #b3bc00; }
#dbfi-budget-app .progress-container { background: #f3f4f6; height: 10px; border-radius: 10px; overflow: hidden; margin-bottom: 20px; }
#dbfi-budget-app .progress-bar { background: #b3bc00; height: 100%; width: 0%; transition: width 0.4s ease; }
#dbfi-budget-app .stat-box { display: flex; justify-content: space-between; padding: 10px; background: #f9fafb; border-radius: 6px; margin-bottom: 8px; font-size: 0.9rem; align-items: center; gap: 10px; }
#dbfi-budget-app .stat-box span:last-child { white-space: nowrap; font-weight: 700; }
#dbfi-budget-app .stat-box.highlight { border: 1px solid rgba(179,188,0,0.4); background: rgba(179,188,0,0.05); font-weight: 700; }
#dbfi-budget-app .advice-box { border-left: 4px solid #b3bc00; background: #f9fafb; padding: 15px; margin-top: 20px; font-size: 0.85rem; }
#dbfi-budget-app .hidden { display: none !important; }

/* Avertissement legal */
.dbfi-legal-disclaimer {
    background-color: #fcfcfc;
    color: #777777;
    padding: 40px;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 0.8rem;
    line-height: 1.6;
    border-top: 1px solid #eeeeee;
    max-width: 950px;
    margin: 50px auto;
    text-align: justify;
}
.dbfi-legal-disclaimer strong {
    color: #000000;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.5px;
}
.dbfi-legal-disclaimer .risk-highlight {
    color: #ff4444;
    font-weight: bold;
    display: block;
    margin-top: 15px;
    border-left: 3px solid #ff4444;
    padding-left: 15px;
}
.dbfi-legal-disclaimer .credit-warning {
    background: #fff0f0;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
    color: #333;
    font-weight: 500;
}
