/* ========================================
 *  HUMIDIBOX CALCULATOR V1
 *  Palette du site
 * ======================================== */

:root{
    --hb-primary:#9b51e0;
    --hb-primary-dark:#6f42c1;
    --hb-indigo:#6610f2;
    --hb-orange:#ff6900;
    --hb-text:#64748b;
    --hb-heading:#2d2340;
}

.humidibox-card{
    max-width:900px;
    margin:40px auto;
    padding:40px;
    background:#ffffff;
    border-radius:24px;
    box-shadow:0 20px 60px rgba(111,66,193,.08);
    border:1px solid rgba(111,66,193,.08);
}

.humidibox-header{
    text-align:center;
    margin-bottom:35px;
}

.humidibox-header h2{
    margin:0 0 15px;
    font-size:38px;
    line-height:1.2;
    font-weight:800;
    color:var(--hb-heading);
}

.humidibox-subtitle{
    margin:0;
    font-size:17px;
    line-height:1.7;
    color:var(--hb-text);
}

/* ========================================
 *  FORMULAIRE
 * ======================================== */

#humidity-form{
display:grid;
grid-template-columns:repeat(2,1fr);
gap:20px;
}

.humidibox-field{
    display:flex;
    flex-direction:column;
}

.humidibox-field label{
    margin-bottom:8px;
    font-size:14px;
    font-weight:600;
    color:var(--hb-heading);
}

.humidibox-icon{
    display:inline-block;
    margin-right:8px;
}

.humidibox-field input[type="number"],
.humidibox-field select{
    width:100%;
    height:56px;
    padding:0 16px;
    border:1px solid #e2d9ef;
    border-radius:14px;
    background:#fff;
    font-size:16px;
    color:var(--hb-heading);
    transition:.25s ease;
    box-sizing:border-box;
}

.humidibox-field input[type="number"]:focus,
.humidibox-field select:focus{
    outline:none;
    border-color:var(--hb-primary);
    box-shadow:0 0 0 4px rgba(155,81,224,.15);
}

.humidibox-checkbox-field label{
    flex-direction:row;
    align-items:center;
    display:flex;
    gap:10px;
    margin-top:auto;
    margin-bottom:auto;
    font-weight:600;
    color:var(--hb-heading);
    cursor:pointer;
}

.humidibox-checkbox-field input[type="checkbox"]{
    width:20px;
    height:20px;
    accent-color:var(--hb-primary);
    cursor:pointer;
}

.humidibox-btn{
    grid-column:1 / -1;
    height:60px;
    border:2px solid var(--hb-primary);
    border-radius:16px;
    background:#fff;
    color:var(--hb-primary-dark);
    font-size:17px;
    font-weight:700;
    cursor:pointer;
    transition:.25s ease;
}

.humidibox-btn:hover{
    background:var(--hb-primary);
    color:#fff;
    transform:translateY(-2px);
    box-shadow:0 15px 35px rgba(155,81,224,.3);
}

/* ========================================
 *  RESULTATS
 * ======================================== */

.humidibox-result{
    margin-top:35px;
    padding:35px;
    border-radius:22px;
    background:#faf8fc;
    border:1px solid #ece5f4;
    animation:fadeUp .4s ease;
}

.humidibox-result-title{
    margin:0 0 25px;
    text-align:center;
    font-size:28px;
    font-weight:800;
    color:var(--hb-heading);
}

.humidibox-stats{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
    margin-bottom:25px;
}

.humidibox-stat-card{
    padding:25px;
    border-radius:18px;
    background:#fff;
    border:1px solid #e5e7eb;
    text-align:center;
}

.humidibox-stat-card .label{
    font-size:14px;
    text-transform:uppercase;
    letter-spacing:.8px;
    color:var(--hb-text);
    margin-bottom:10px;
}

.humidibox-stat-card .value{
    font-size:32px;
    font-weight:800;
    color:var(--hb-heading);
}

.humidity-card{
    background:linear-gradient(135deg,#f6effc,#ede0f9);
    border-color:#dcc9ef;
}

.humidity-card .value{
    color:var(--hb-primary-dark);
}

/* ========================================
 *  BADGES
 * ======================================== */

.humidibox-badge{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    padding:10px 18px;
    margin-bottom:20px;
    border-radius:999px;
    font-weight:700;
    font-size:14px;
}

.badge-humidificateur{
    background:#fff1e6;
    color:var(--hb-orange);
}

.badge-deshumidificateur{
    background:#f1e8fb;
    color:var(--hb-primary-dark);
}

.badge-optimal{
    background:#e2f7e5;
    color:#3a9a49;
}

/* ========================================
 *  DESCRIPTION / PRODUITS
 * ======================================== */

.humidibox-description{
    font-size:16px;
    line-height:1.8;
    color:var(--hb-text);
    margin-bottom:25px;
}

.humidibox-products{
    padding:25px;
    background:#ffffff;
    border:1px solid #ece5f4;
    border-radius:18px;
    margin-bottom:25px;
}

.humidibox-products h3{
    margin-top:0;
    margin-bottom:15px;
    font-size:20px;
    color:var(--hb-heading);
}

.humidibox-products ul{
    margin:0;
    padding-left:20px;
}

.humidibox-products li{
    margin-bottom:10px;
    color:var(--hb-text);
    font-weight:500;
}

/* ========================================
 *  CTA
 * ======================================== */

.humidibox-link{
    display:inline-block;
    padding:15px 24px;
    border-radius:14px;
    background:var(--hb-primary);
    color:#fff !important;
    text-decoration:none !important;
    font-weight:700;
    transition:.25s ease;
}

.humidibox-link:hover{
    background:var(--hb-primary-dark);
    transform:translateY(-2px);
    box-shadow:0 15px 35px rgba(155,81,224,.3);
}

/* ========================================
 *  ANIMATION
 * ======================================== */

@keyframes fadeUp{
    from{
        opacity:0;
        transform:translateY(20px);
    }
    to{
        opacity:1;
        transform:translateY(0);
    }
}

/* ========================================
 *  MOBILE
 * ======================================== */

@media (max-width:768px){

    .humidibox-card{
        padding:25px;
        border-radius:18px;
    }

    .humidibox-header h2{
        font-size:30px;
    }

    #humidity-form{
    grid-template-columns:1fr;
    }

    .humidibox-stats{
        grid-template-columns:1fr;
    }

    .humidibox-stat-card .value{
        font-size:28px;
    }

    .humidibox-btn{
        width:100%;
    }

}
