/*
 * L'écran partagé des formulaires de demande (Wilio 2.5, A-44), habillé à l'identité du front (A-45) : les polices et
 * les couleurs de front.css (variables --front-*) remplacent Work Sans et l'indigo de Wilio, dont le style.css reste
 * chargé tel quel pour la mise en page et le formulaire. Aucune couleur en dur (C6-R30).
 */
.wizard-page {
    font-family: var(--front-font-text);
    font-size: 1rem;
    line-height: 1.5;
    color: var(--front-moss);
}

.wizard-page h1,
.wizard-page h2,
.wizard-page h3,
.wizard-page label,
.wizard-page a {
    color: var(--front-ink);
}

.wizard-page :focus-visible {
    outline: 3px solid var(--front-ink);
    outline-offset: 3px;
}

/* Le bouton d'envoi de Wilio pose une icône de la police ElegantIcons, qui n'est pas reprise */
.wizard-page button.submit::before {
    content: none;
}

.wizard-page .main_question:focus {
    outline: none;
}

/* Le lien du compte, en haut à droite de l'écran (H8) */
.wizard-account {
    position: absolute;
    top: 15px;
    right: 20px;
    z-index: 2;
    font-weight: 700;
}

/* Le panneau de gauche, à plat sur l'Encre : logo texte, retour, besoin choisi, « Ensuite » */
.wizard-page .content-left,
.wizard-page .content-left-wrapper {
    background: var(--front-ink);
}

.wizard-page .content-left-wrapper {
    color: var(--front-on-ink);
    text-align: left;
}

.wizard-page .content-left-wrapper :focus-visible {
    outline-color: var(--front-marker);
}

.wizard-page a#logo.wizard-logo {
    color: var(--front-paper);
    font-family: var(--front-font-display);
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 35px;
    letter-spacing: -0.03em;
}

.wizard-aside {
    width: 100%;
    max-width: 420px;
}

.wizard-page .wizard-back {
    display: inline-block;
    margin-bottom: 15px;
    color: var(--front-on-ink);
    font-weight: 700;
}

.wizard-page .wizard-back:hover,
.wizard-page .wizard-back:focus {
    color: var(--front-paper);
}

.wizard-page .content-left-wrapper h1 {
    margin: 20px 0 15px;
    color: var(--front-paper);
    font-family: var(--front-font-display);
    font-size: clamp(2rem, 1.4rem + 1.6vw, 3rem);
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

/* Le Surligneur marque le besoin qu'on a choisi sur l'accueil */
.wizard-page .wizard-choice {
    padding: 0 0.12em;
    background-color: var(--front-marker);
    color: var(--front-ink);
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
}

.wizard-page .content-left-wrapper p,
.wizard-page .content-left-wrapper li {
    color: var(--front-on-ink);
    font-size: 1rem;
}

.wizard-next {
    text-align: left;
}

.wizard-next-title {
    margin-bottom: 10px;
    font-family: var(--front-font-display);
    font-size: 1.25rem;
    font-weight: 600;
}

.wizard-page .content-left-wrapper .wizard-next-title {
    margin: 30px 0 10px;
    color: var(--front-paper);
}

.wizard-page .wizard-next-list {
    margin: 0;
    padding-left: 1.25rem;
    list-style: decimal;
}

.wizard-next-list li {
    margin-bottom: 6px;
}

.wizard-next-mobile {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 2px solid var(--front-mist);
}

/* Les écrans du formulaire */
.wizard-main {
    width: 100%;
    max-width: 420px;
}

.wizard-page #wizard_container {
    width: 100%;
}

.wizard-page .main_question {
    color: var(--front-ink);
    font-family: var(--front-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.015em;
}

.wizard-page .main_question strong {
    color: var(--front-moss);
    font-family: var(--front-font-text);
}

.wizard-page .ui-progressbar {
    height: 4px;
    overflow: hidden;
    border-radius: 999px;
    background-color: var(--front-mist);
}

.wizard-page .ui-widget-header {
    background: var(--front-ink);
}

.wizard-page .container_radio,
.wizard-page .container_check {
    color: var(--front-ink);
    font-size: 1rem;
}

.wizard-page .container_radio .checkmark,
.wizard-page .container_check .checkmark,
.wizard-page .form-control {
    border-color: color-mix(in srgb, var(--front-moss) 70%, var(--front-paper));
}

.wizard-page .container_radio .checkmark::after,
.wizard-page .container_check input:checked ~ .checkmark {
    background-color: var(--front-ink);
}

/* Les cases de Wilio cachent leur champ : le focus clavier se lit sur la case dessinée, au Surligneur */
.wizard-page .container_radio input:focus-visible ~ .checkmark,
.wizard-page .container_check input:focus-visible ~ .checkmark {
    border-color: var(--front-ink);
    box-shadow: 0 0 0 4px var(--front-marker);
}

/* 16 px dans les champs : un téléphone ne zoome pas à la saisie */
.wizard-page .form-control {
    height: calc(2.75rem + 2px);
    border-radius: 0.5rem;
    color: var(--front-ink);
    font-size: 1rem;
}

.wizard-page textarea.form-control {
    height: auto;
}

.wizard-page .form-control:focus {
    border-color: var(--front-ink);
    box-shadow: 0 0 0 4px var(--front-marker);
}

.wizard-page .error_message {
    margin-top: 5px;
    font-size: 0.875rem;
}

.wizard-page .alert-info {
    border-color: var(--front-mist);
    background-color: var(--front-mist);
    color: var(--front-ink);
}

.wizard-note {
    margin-top: 20px;
}

.wizard-page #bottom-wizard {
    border-top-color: var(--front-mist);
}

/* Les boutons, en pastilles comme sur l'accueil */
.wizard-page button.backward,
.wizard-page button.forward,
.wizard-page button.submit,
.wizard-page .btn_1 {
    padding: 14px 28px;
    border: 2px solid var(--front-ink);
    border-radius: 999px;
    background: var(--front-ink);
    color: var(--front-paper);
    font-size: 1rem;
    font-weight: 700;
}

.wizard-page button.forward:hover,
.wizard-page button.submit:hover,
.wizard-page .btn_1:hover {
    border-color: var(--front-ink-deep);
    background: var(--front-ink-deep);
    color: var(--front-paper);
}

.wizard-page button.backward {
    background: transparent;
    color: var(--front-ink);
}

.wizard-page button.backward:hover {
    background: var(--front-ink);
    color: var(--front-paper);
}

.wizard-page .summary ul li {
    border-bottom-color: var(--front-mist);
}

.wizard-page .summary ul li h5 {
    color: var(--front-ink);
    font-size: 1rem;
    font-weight: 700;
}

.wizard-page .summary ul li p {
    margin-bottom: 4px;
    overflow-wrap: anywhere;
}

.wizard-page .summary ul li .wizard-edit {
    margin-bottom: 15px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--front-ink);
    font-size: 0.875rem;
    font-weight: 700;
    text-decoration: underline;
}

/* La confirmation : la coche animée de Wilio, sans son placement absolu en plein écran */
.wizard-success {
    text-align: center;
}

.wizard-success h2 {
    margin: 20px 0 10px;
    font-family: var(--front-font-display);
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.2;
}

.wizard-success .btn_1 {
    margin: 10px 0 20px;
}

/* Sur téléphone, le panneau de gauche n'est qu'une bande : la première question se voit sans défiler (H7) */
@media (max-width: 991px) {
    .wizard-page .wizard-account {
        top: 10px;
        right: 15px;
        color: var(--front-paper);
    }

    .wizard-page .wizard-account:hover,
    .wizard-page .wizard-account:focus {
        color: var(--front-paper);
    }

    /* La bande s'aligne sur le formulaire, sous le logo, au lieu d'être centrée */
    .wizard-page .content-left-wrapper {
        justify-content: flex-start;
        padding: 55px 15px 20px;
    }

    .wizard-aside {
        max-width: none;
    }

    .wizard-page .wizard-back {
        margin-bottom: 0;
    }

    .wizard-page .content-left-wrapper h1 {
        margin: 8px 0;
        font-size: 1.75rem;
    }

    .wizard-page .content-left-wrapper p {
        margin-bottom: 0;
    }

    .wizard-main {
        max-width: none;
    }

    /* Wilio garde la barre de défilement du volet de droite, inutile quand la page défile d'un bloc */
    .wizard-page .content-right {
        overflow-y: visible;
    }
}
