/* Module dureté de l'eau — données Hub'Eau */
.mdeau-hubeau {
    --mh-primary: var(--fs-color-primary, #062f57);
    --mh-secondary: var(--fs-color-secondary, #0198ad);
    background: #f7fafd;
    padding: 64px 20px;
    clear: both;
}
.mdeau-hubeau__inner {
    max-width: 820px;
    margin: 0 auto;
    text-align: center;
}
.mdeau-hubeau__kicker {
    margin: 0 0 8px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--mh-secondary);
}
.mdeau-hubeau__title {
    margin: 0 0 12px;
    color: var(--mh-primary);
    text-wrap: balance;
}
.mdeau-hubeau__lead {
    margin: 0 auto 28px;
    max-width: 600px;
    font-size: 17px;
    color: #555;
}
.mdeau-hubeau__form {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin: 0 0 8px;
}
.mdeau-hubeau__field {
    position: relative;
    flex: 1 1 300px;
    max-width: 440px;
}
.mdeau-hubeau .mdeau-hubeau__input {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    margin: 0;
    padding: 0 16px;
    font-size: 16px;
    border: 1px solid #c9d6e2;
    border-radius: 6px;
    background: #fff;
    box-shadow: none;
}
.mdeau-hubeau .mdeau-hubeau__input:focus {
    border-color: var(--mh-secondary);
    box-shadow: 0 0 0 3px rgba(1, 152, 173, .18);
    outline: none;
}
.mdeau-hubeau .mdeau-hubeau__btn {
    height: 48px;
    margin: 0;
    border-radius: 6px;
}
.mdeau-hubeau__list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 4px;
    list-style: none;
    text-align: left;
    background: #fff;
    border: 1px solid #dbe4ec;
    border-radius: 6px;
    box-shadow: 0 10px 28px rgba(6, 47, 87, .12);
}
.mdeau-hubeau__list .mdeau-hubeau__option {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    padding: 9px 12px;
    border-radius: 4px;
    cursor: pointer;
}
.mdeau-hubeau__option:hover,
.mdeau-hubeau__option.is-active {
    background: #eef5fa;
}
.mdeau-hubeau__option-name {
    color: var(--mh-primary);
    font-weight: 600;
}
.mdeau-hubeau__option-cp {
    color: #7a8794;
    font-variant-numeric: tabular-nums;
}
.mdeau-hubeau__result {
    margin-top: 28px;
}
.mdeau-hubeau__message {
    margin: 0 0 16px;
    color: #555;
}
.mdeau-hubeau__message--loading {
    color: var(--mh-secondary);
}
.mdeau-hubeau__card {
    --mh-level: #0198ad;
    margin: 0 0 20px;
    padding: 28px 28px 22px;
    text-align: left;
    background: #fff;
    border: 1px solid #e1e9f0;
    border-top: 4px solid var(--mh-level);
    border-radius: 8px;
    box-shadow: 0 8px 30px rgba(6, 47, 87, .07);
}
.mdeau-hubeau__card--douce { --mh-level: #2fb3a3; }
.mdeau-hubeau__card--dure { --mh-level: #e0a526; }
.mdeau-hubeau__card--tres-dure { --mh-level: #e07a2b; }
.mdeau-hubeau__card--extreme { --mh-level: #cf3f34; }
.mdeau-hubeau__card-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 6px 16px;
    margin-bottom: 18px;
}
.mdeau-hubeau__commune {
    flex: 1 1 100%;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #7a8794;
}
.mdeau-hubeau__value {
    margin: 0;
    line-height: 1;
    color: var(--mh-primary);
    font-variant-numeric: tabular-nums;
}
.mdeau-hubeau__value strong {
    font-size: 48px;
    font-weight: 700;
}
.mdeau-hubeau__value span {
    font-size: 20px;
    font-weight: 600;
}
.mdeau-hubeau__badge {
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 600;
    color: #fff;
    background: var(--mh-level);
    border-radius: 999px;
}
.mdeau-hubeau__gauge {
    position: relative;
    height: 10px;
    border-radius: 999px;
    /* paliers : 10, 20, 30 °f sur une échelle de 50 */
    background: linear-gradient(to right,
        #2fb3a3 0 20%, #e0a526 20% 40%, #e07a2b 40% 60%, #cf3f34 60% 100%);
}
.mdeau-hubeau__marker {
    position: absolute;
    top: 50%;
    width: 20px;
    height: 20px;
    background: #fff;
    border: 4px solid var(--mh-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
}
.mdeau-hubeau__ticks {
    display: grid;
    grid-template-columns: 20fr 20fr 20fr 40fr;
    margin: 8px 0 18px;
    font-size: 12px;
    color: #7a8794;
    text-align: center;
}
.mdeau-hubeau__advice {
    margin: 0 0 12px;
    font-size: 16px;
    color: #333;
}
.mdeau-hubeau__meta {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    color: #7a8794;
}
.mdeau-hubeau .mdeau-hubeau__cta {
    margin: 0;
    border-radius: 6px;
}
.mdeau-hubeau__source {
    margin: 24px 0 0;
    font-size: 12px;
    color: #8a96a3;
}
.mdeau-hubeau__source a {
    color: inherit;
    text-decoration: underline;
}

@media (max-width: 549px) {
    .mdeau-hubeau { padding: 44px 16px; }
    .mdeau-hubeau__field { flex-basis: 100%; max-width: none; }
    .mdeau-hubeau .mdeau-hubeau__btn { width: 100%; }
    .mdeau-hubeau__card { padding: 22px 18px 18px; }
    .mdeau-hubeau__value strong { font-size: 40px; }
    .mdeau-hubeau__ticks { font-size: 10px; }
}
