/* =========================================================
   Box 44 – Estimateur  |  box44-estimateur.css
   ========================================================= */

/* ---- Conteneur principal ---- */
.box44-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    max-width: 680px;
    margin: 0 auto;
    color: #1a1a2e;
}

.box44-titre {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

/* ---- Sections ---- */
.box44-section {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 1.5rem 1.75rem;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease;
}

.box44-section:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.box44-section-titre {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 1.25rem 0;
    color: #1a1a2e;
}

.box44-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: #B12112;
    color: #fff;
    border-radius: 50%;
    font-size: 0.85rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ---- Onglets méthode ---- */
.box44-tabs {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.box44-tab {
    padding: 0.45rem 0.9rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #4b5563;
    font-size: 0.88rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.18s ease;
    white-space: nowrap;
}

.box44-tab:hover {
    border-color: #B12112;
    color: #B12112;
    background: #fff5f0;
}

.box44-tab--active {
    border-color: #B12112;
    background: #B12112;
    color: #ffffff;
}

.box44-tab--active:hover {
    background: #8e1a0e;
    color: #ffffff;
}

/* ---- Panneaux ---- */
.box44-tab-panel {
    display: none;
}

.box44-tab-panel--active {
    display: block;
}

/* ---- Champs ---- */
.box44-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
}

.box44-input-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.5rem;
}

.box44-input {
    width: 120px;
    padding: 0.55rem 0.75rem;
    border: 2px solid #d1d5db;
    border-radius: 8px;
    font-size: 1rem;
    color: #1a1a2e;
    outline: none;
    transition: border-color 0.18s ease;
    -moz-appearance: textfield;
}

.box44-input::-webkit-outer-spin-button,
.box44-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
}

.box44-input:focus {
    border-color: #B12112;
    box-shadow: 0 0 0 3px rgba(232, 96, 28, 0.12);
}

.box44-unit {
    font-size: 0.95rem;
    color: #6b7280;
    font-weight: 500;
}

.box44-hint {
    font-size: 0.83rem;
    color: #6b7280;
    margin: 0.35rem 0 0 0;
    line-height: 1.4;
}

/* ---- Résultat volume ---- */
.box44-result {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    margin-top: 1rem;
    padding: 0.9rem 1.1rem;
    border-radius: 10px;
    font-size: 0.97rem;
    font-weight: 500;
    line-height: 1.5;
}

.box44-result--volume {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.box44-result-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
    margin-top: 1px;
}

/* ---- Options / fournitures ---- */
.box44-options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.55rem;
    margin-top: 0.5rem;
}

.box44-option-item {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fafafa;
    user-select: none;
}

.box44-option-item:hover {
    border-color: #B12112;
    background: #fff5f0;
}

.box44-option-item input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #B12112;
    cursor: pointer;
    flex-shrink: 0;
}

.box44-option-item input[type="checkbox"]:checked + .box44-option-text {
    color: #B12112;
    font-weight: 600;
}

.box44-option-item.box44-option--checked {
    border-color: #B12112;
    background: #fff5f0;
}

.box44-option-text {
    font-size: 0.85rem;
    color: #374151;
    flex: 1;
    line-height: 1.3;
}

.box44-option-price {
    font-size: 0.82rem;
    color: #6b7280;
    white-space: nowrap;
    font-weight: 500;
}

/* ---- Carte devis ---- */
.box44-devis-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 1.1rem 1.25rem;
    margin-bottom: 1.25rem;
}

.box44-devis-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.45rem 0;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.95rem;
}

.box44-devis-row:last-of-type {
    border-bottom: none;
}

.box44-devis-label {
    color: #4b5563;
}

.box44-devis-val {
    font-weight: 600;
    color: #1a1a2e;
}

.box44-devis-options {
    padding: 0.25rem 0;
}

.box44-devis-option-row {
    display: flex;
    justify-content: space-between;
    padding: 0.3rem 0;
    font-size: 0.88rem;
    color: #6b7280;
    border-bottom: 1px dashed #f0f0f0;
}

.box44-devis-option-row:last-child {
    border-bottom: none;
}

.box44-devis-total {
    margin-top: 0.5rem;
    padding-top: 0.7rem !important;
    border-top: 2px solid #B12112 !important;
    border-bottom: none !important;
}

.box44-devis-total .box44-devis-label {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
}

.box44-devis-total .box44-devis-val {
    font-size: 1.25rem;
    color: #B12112;
}

.box44-devis-mention {
    font-size: 0.78rem;
    color: #9ca3af;
    margin: 0.75rem 0 0 0;
    font-style: italic;
}

/* ---- Bouton CTA ---- */
.box44-btn-cta {
    display: inline-block;
    width: 100%;
    text-align: center;
    padding: 0.8rem 1.5rem;
    background: #B12112;
    color: #ffffff !important;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: background 0.18s ease, transform 0.1s ease;
    box-sizing: border-box;
}

.box44-btn-cta:hover {
    background: #8e1a0e;
    transform: translateY(-1px);
}

.box44-btn-cta:active {
    transform: translateY(0);
}

/* ---- Responsive ---- */
@media (max-width: 480px) {
    .box44-section {
        padding: 1.1rem 1rem;
    }
    .box44-tabs {
        flex-direction: column;
    }
    .box44-tab {
        text-align: center;
    }
    .box44-options-grid {
        grid-template-columns: 1fr;
    }
}
