#az-msp-configurateur {
    --msp-encre: #171d35;
    --msp-secondaire: #4a5570;
    --msp-accent: #4840a6;
    --msp-contour: #d5daea;
    --msp-fond: #f3f5fa;
    background: var(--msp-fond);
    color: var(--msp-encre);
    font-size: 1rem;
    line-height: 1.5;
    padding: clamp(1rem, 3vw, 2.5rem) clamp(1rem, 4vw, 4rem) 4rem;
}

#az-msp-configurateur [hidden] { display: none !important; }

.msp-shell :where(.msp-hero, .msp-layout) { margin-inline: auto; max-width: 76rem; }

.msp-shell .msp-hero {
    background: #22234b;
    background: linear-gradient(120deg, #191e3b 15%, #393174 100%);
    border-radius: 1.1rem;
    color: white;
    padding: clamp(1.75rem, 5vw, 4rem);
    margin-bottom: 1.5rem;
}

.msp-shell .msp-hero h1 {
    color: inherit;
    font-size: clamp(2.2rem, 4.7vw, 4.15rem);
    font-weight: 720;
    letter-spacing: -.045em;
    line-height: 1.06;
    margin: .55rem 0 1rem;
}

.msp-shell .msp-hero p { color: #ecebff; margin: 0; max-width: 36rem; }
.msp-shell .msp-brand { font-size: .9rem; font-weight: 700; }

.msp-shell .msp-layout {
    align-items: start;
    display: grid;
    gap: 1.25rem;
    grid-template-columns: minmax(0, 1.75fr) minmax(18rem, 1fr);
}

.msp-shell .msp-form { display: grid; gap: 1rem; min-width: 0; }

.msp-shell .msp-card {
    background: white;
    border: 1px solid var(--msp-contour);
    border-radius: 1rem;
    padding: clamp(1.15rem, 3vw, 1.8rem);
    min-width: 0;
    margin: 0;
}

.msp-shell .msp-card :where(h2, legend) {
    color: inherit;
    font-size: 1.24rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0 0 .75rem;
    padding: 0;
    width: auto;
}

.msp-shell .msp-card p { margin: .5rem 0 0; }

.msp-shell fieldset { border: 0; min-width: 0; margin: 0; padding: 0; }
.msp-shell fieldset + fieldset { border-top: 1px solid var(--msp-contour); margin-top: 1.45rem; padding-top: 1.15rem; }
.msp-shell fieldset + fieldset legend { float: left; width: 100%; }
.msp-shell fieldset + fieldset legend + * { clear: both; }

.msp-shell :where(.msp-choices, .msp-quantites, .msp-options) {
    display: grid;
    gap: .65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.msp-shell :where(.msp-choice, .msp-options label) {
    align-items: flex-start;
    border: 1px solid var(--msp-contour);
    border-radius: .65rem;
    cursor: pointer;
    display: flex;
    gap: .65rem;
    margin: 0;
    padding: .8rem;
}

.msp-shell label:has(:checked) { border-color: var(--msp-accent); background: #f1effe; }
.msp-shell :where(input[type=checkbox], input[type=radio]) { flex: 0 0 auto; margin: .24rem 0 0; accent-color: var(--msp-accent); }

.msp-shell :where(input[type=number], select) {
    display: block;
    margin: .3rem 0 0;
    padding: .55rem .65rem;
    width: 100%;
    max-width: 25rem;
    color: var(--msp-encre);
    background: white;
    border: 1px solid #8791ad;
    border-radius: .45rem;
}

.msp-shell input[aria-invalid=true] { border-color: #9c2828; }
.msp-shell :where(a, button, input, select):focus-visible { outline: 3px solid #6b5cda; outline-offset: 3px; }

.msp-shell small { color: var(--msp-secondaire); display: block; font-size: .82rem; margin-top: .13rem; }
.msp-shell .msp-muted { color: var(--msp-secondaire); font-size: .9rem; }
.msp-shell :where(.msp-quantites, .msp-options, .msp-select, #msp-heures label) { margin-top: .75rem; }
.msp-shell :where(.msp-select, #msp-heures label) { display: block; }

.msp-shell #msp-total { color: var(--msp-accent); font-size: clamp(1.7rem, 3vw, 2.45rem); font-weight: 750; line-height: 1.14; }
.msp-shell .msp-unite { color: var(--msp-secondaire); font-size: .87rem; }
.msp-shell .msp-lignes { list-style: none; margin: 1rem 0 0; padding: 0; }
.msp-shell .msp-lignes li { border-top: 1px solid var(--msp-contour); display: flex; gap: .7rem; justify-content: space-between; padding: .55rem 0; }
.msp-shell .msp-lignes strong { white-space: nowrap; font-size: .9rem; }
.msp-shell .msp-annuel { font-size: .9rem; font-weight: 700; }
.msp-shell .msp-info { background: #f3f2fa; border-radius: .45rem; font-size: .9rem; padding: .6rem .75rem; }
.msp-shell .msp-contact {
    background: var(--msp-accent);
    border-radius: .55rem;
    color: white;
    display: block;
    font-weight: 700;
    margin-top: 1.15rem;
    padding: .76rem 1rem;
    text-align: center;
    text-decoration: none;
}
.msp-shell .msp-telecharger {
    background: white;
    border: 1px solid var(--msp-accent);
    border-radius: .55rem;
    color: var(--msp-accent);
    cursor: pointer;
    font-weight: 700;
    margin-top: 1.15rem;
    padding: .76rem 1rem;
    width: 100%;
}
.msp-shell .msp-telecharger:hover:enabled { background: #f1effe; }
.msp-shell .msp-telecharger:disabled { border-color: var(--msp-contour); color: var(--msp-secondaire); cursor: default; }
.msp-shell .msp-telecharger + .msp-info + .msp-contact { margin-top: .55rem; }
.msp-shell .msp-contact:hover { background: #363084; color: white; }
.msp-shell .msp-mention { color: var(--msp-secondaire); font-size: .82rem; }

@media (max-width: 52rem) {
    .msp-shell .msp-layout { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 31rem) {
    .msp-shell :where(.msp-choices, .msp-options) { grid-template-columns: minmax(0, 1fr); }
}
