/* ============================================
   ESTIMATEUR DE CHARGES - CLEAN MODERN
   ============================================ */

/* Hero */
.estimateur-hero {
    background: #0f172a;
    padding: 90px 0 60px;
    text-align: center;
    color: white;
}
.estimateur-hero h1 {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 12px;
    letter-spacing: -.02em;
}
.estimateur-hero p {
    color: #94a3b8;
    font-size: 1.05rem;
    max-width: 540px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Section */
.estimateur-section {
    padding: 50px 0 60px;
    background: #f8fafc;
}

/* Card formulaire */
.estimateur-card {
    max-width: 720px;
    margin: 0 auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 30px rgba(0,0,0,.04);
    border: 1px solid #e2e8f0;
    padding: 40px;
}
.estimateur-card h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 28px;
}

/* Form */
.estimateur-form .form-group {
    margin-bottom: 22px;
}
.estimateur-form > label,
.estimateur-form .form-group > label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
    color: #334155;
}
.estimateur-form .label-hint {
    font-weight: 400;
    color: #94a3b8;
    font-size: 13px;
}
.estimateur-form input[type="text"],
.estimateur-form input[type="number"],
.estimateur-form select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    font-size: 15px;
    color: #1e293b;
    background: #fff;
    transition: border-color .2s, box-shadow .2s;
    box-sizing: border-box;
}
.estimateur-form input:focus,
.estimateur-form select:focus {
    outline: none;
    border-color: #0f172a;
    box-shadow: 0 0 0 3px rgba(15,23,42,.08);
}

/* Services section */
.services-section-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin: 6px 0 10px;
}
.services-checkboxes {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.service-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1.5px solid #e2e8f0;
    border-radius: 10px;
    cursor: pointer;
    transition: all .2s;
    font-size: 14px;
    color: #334155;
}
.service-checkbox:hover {
    border-color: #94a3b8;
    background: #f8fafc;
}
.service-checkbox:has(input:checked) {
    border-color: #0f172a;
    background: #f1f5f9;
}
.service-checkbox input[type="checkbox"] {
    accent-color: #0f172a;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.service-checkbox input[type="checkbox"]:checked + span {
    font-weight: 600;
    color: #0f172a;
}
.service-checkbox span {
    display: flex;
    align-items: center;
    gap: 6px;
}
.service-checkbox .srv-icon {
    color: #94a3b8;
    font-size: 13px;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}
.service-checkbox:has(input:checked) .srv-icon {
    color: #0f172a;
}

/* Submit */
.btn-estimer {
    width: 100%;
    padding: 14px;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s;
    margin-top: 10px;
}
.btn-estimer:hover { background: #1e293b; }

/* ============ Results ============ */
.estimateur-result {
    display: none;
    max-width: 720px;
    margin: 30px auto 0;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0,0,0,.06), 0 8px 30px rgba(0,0,0,.04);
    border: 1px solid #e2e8f0;
    padding: 40px;
    animation: fadeInUp .4s ease;
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(16px); }
    to { opacity: 1; transform: translateY(0); }
}

.result-header {
    text-align: center;
    margin-bottom: 28px;
}
.result-header .result-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #ecfdf5;
    color: #059669;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 12px;
}
.result-header h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 0;
}

/* Comparison — no bordered cards */
.result-comparison {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    padding-bottom: 28px;
    border-bottom: 1px solid #e2e8f0;
}
.result-box {
    flex: 1;
    text-align: center;
    padding: 0;
    border: none;
    border-radius: 0;
}
.result-box + .result-box {
    border-left: 1px solid #e2e8f0;
}
.result-box .box-label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .05em;
    color: #94a3b8;
    margin-bottom: 8px;
}
.result-box .box-value {
    font-size: 2.2rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -.02em;
}
.result-box.user .box-value {
    color: #0f172a;
}
.result-box .box-unit {
    font-size: 13px;
    color: #94a3b8;
    font-weight: 400;
}

/* Gauge */
.gauge-container {
    margin: 0 0 28px;
    padding: 0 0 28px;
    border-bottom: 1px solid #e2e8f0;
}
.gauge-labels {
    display: flex;
    justify-content: space-between;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #94a3b8;
    margin-bottom: 10px;
}
.gauge-bar {
    position: relative;
    height: 8px;
    background: linear-gradient(90deg, #22c55e 0%, #fbbf24 50%, #ef4444 100%);
    border-radius: 4px;
    overflow: visible;
}
.gauge-marker {
    position: absolute;
    top: -8px;
    width: 24px;
    height: 24px;
    background: #0f172a;
    border: 3px solid #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,.25);
    transform: translateX(-50%);
    transition: left .8s cubic-bezier(.4,.2,.2,1);
}
.gauge-marker-label {
    position: absolute;
    top: 28px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
    font-size: 12px;
    font-weight: 700;
    color: #0f172a;
}
.gauge-avg-line {
    position: absolute;
    top: -4px;
    width: 2px;
    height: 16px;
    background: #475569;
    transform: translateX(-50%);
}
.gauge-avg-label {
    position: absolute;
    bottom: -20px;
    transform: translateX(-50%);
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
    font-weight: 500;
}

/* Verdict — flat style */
.verdict {
    padding: 0 0 28px;
    margin: 0 0 28px;
    border-bottom: 1px solid #e2e8f0;
    text-align: left;
    background: none;
    border-radius: 0;
}
.verdict.normal,
.verdict.above,
.verdict.high {
    background: none;
    border-left: none;
    border-right: none;
    border-top: none;
}
.verdict-icon {
    font-size: 1.4rem;
    margin-bottom: 6px;
}
.verdict-text {
    font-size: 1.1rem;
    font-weight: 800;
    margin-bottom: 4px;
    color: #0f172a;
}
.verdict-detail {
    font-size: 14px;
    color: #64748b;
    line-height: 1.6;
}

/* Detail breakdown */
.result-detail {
    padding: 0 0 28px;
    margin: 0 0 28px;
    border-bottom: 1px solid #e2e8f0;
}
.detail-title {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin-bottom: 14px;
}
.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    font-size: 14px;
    color: #475569;
}
.detail-row + .detail-row {
    border-top: 1px solid #f1f5f9;
}
.detail-row span:last-child {
    font-weight: 600;
    color: #1e293b;
    font-variant-numeric: tabular-nums;
}
.detail-row.muted span {
    color: #94a3b8;
    font-weight: 400;
}
.detail-row.total {
    font-weight: 700;
    color: #0f172a;
    border-top: 1px solid #e2e8f0;
    padding-top: 10px;
}
.detail-row.total span:last-child {
    font-weight: 800;
    font-size: 15px;
}
.detail-row.ecart {
    margin-top: 4px;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-weight: 700;
    color: #0f172a;
}
.detail-row.ecart span:last-child {
    font-weight: 800;
    font-size: 15px;
}
.detail-row.highlight span:last-child {
    font-size: 16px;
}
.detail-subtitle {
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #94a3b8;
    margin: 14px 0 6px;
}
.detail-row.service-row {
    padding: 6px 0;
}
.detail-hint {
    display: block;
    font-size: 12px;
    color: #94a3b8;
    font-weight: 400;
    margin-top: 1px;
}
.detail-divider {
    height: 1px;
    background: #e2e8f0;
    margin: 14px 0;
}
.detail-green {
    color: #16a34a !important;
}
.detail-red {
    color: #dc2626 !important;
}
.detail-methodology {
    margin-top: 20px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    font-size: 12px;
    color: #64748b;
    line-height: 1.7;
}
.detail-methodology strong {
    color: #475569;
}

/* Inputs éditables dans le détail */
.est-edit-val {
    width: 72px;
    text-align: right;
    border: 1.5px solid #e2e8f0;
    border-radius: 6px;
    padding: 4px 8px;
    font-size: 13px;
    font-weight: 700;
    color: #0f172a;
    background: #fff;
    transition: border-color .2s;
    -moz-appearance: textfield;
}
.est-edit-val::-webkit-outer-spin-button,
.est-edit-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.est-edit-val:focus { outline: none; border-color: #fbbf24; box-shadow: 0 0 0 3px rgba(251,191,36,.15); }
.est-edit-val:hover { border-color: #94a3b8; }

/* CTA */
.result-cta {
    text-align: center;
    padding: 0;
    border: none;
    margin: 0;
}
.result-cta p {
    color: #94a3b8;
    margin-bottom: 14px;
    font-size: 14px;
}
.result-cta a {
    display: inline-block;
    background: #0f172a;
    color: #fff;
    padding: 13px 28px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    transition: background .2s;
}
.result-cta a:hover { background: #1e293b; }

/* ============ Responsive ============ */
@media (max-width: 768px) {
    .estimateur-hero { padding: 70px 0 40px; }
    .estimateur-hero h1 { font-size: 1.6rem; }
    .estimateur-card,
    .estimateur-result {
        margin: 0 12px;
        padding: 28px 20px;
        border-radius: 14px;
    }
    .services-checkboxes { grid-template-columns: 1fr; }
    .result-comparison { flex-direction: column; gap: 20px; }
    .result-box + .result-box { border-left: none; border-top: 1px solid #e2e8f0; padding-top: 20px; }
}
@media (max-width: 480px) {
    .estimateur-hero h1 { font-size: 1.4rem; }
    .result-box .box-value { font-size: 1.8rem; }
}
