main.refonte-formulaire {
    h1.title-refonte {
        font-size: 3rem;
        font-weight: bold;
    }

    h2.subtitle-refonte {
        font-size: 2.5rem;
        font-weight: bold;
        color: var(--pv-color-primary-orange);
    }

    h3.create {
        font-weight: unset;

        span {
            font-weight: bold;
        }
    }

    div.refonte-bloc {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        gap: 8rem;

        .form-container {
            width: 100%;
            height: max-content;

            div.form-bloc {
                display: flex;
                flex-direction: column;

                &.cgu-bloc {
                    margin-top: 20px;

                    &.is-hidden {
                        display: none;
                    }

                    .cgu-p {
                        font-size: 1.1rem;

                        a {
                            text-decoration: underline;
                        }
                    }
                }

                &.js-choice-two-button,
                &.js-step-container {
                    display: none;
                    margin-top: 30px;

                    .choice-p {
                        font-size: 1.5rem;

                        span {
                            font-weight: bold;
                        }

                        &.p-orange {
                            
                            a {
                                text-decoration: underline;
                                color: var(--pv-color-primary-orange);
                                font-weight: bold;
                            }
                        }
                    }

                    .choice {
                        display: flex;
                        flex-direction: row;
                        gap: 1rem;

                        .search-choice {
                            font-size: 1.4rem;
                            text-decoration: unset;
                            border: 1px solid var(--pv-color-primary-green);
                            border-radius: 30px;
                            background-color: white;
                            width: max-content;
                            font-weight: bold;
                            min-height: 50px;
                            min-width: 120px;

                            span {
                                font-weight: normal;
                            }

                            &:hover,
                            &.is-checked {
                                background-color: var(--pv-color-tertiary-blue);
                                color: white;
                                border-color: var(--pv-color-tertiary-blue);
                            }
                        }
                    }
                }
            }
        }

        div.bloc-container {
            display: flex;
            flex-direction: column;
            min-width: 400px;
            height: max-content;

            div.title {

                h3 {
                    font-weight: bold;

                    span {
                        color: var(--pv-color-primary-orange);
                    }
                }
            }

            div.sub-title {

                p {
                    font-size: 1.4rem;

                    span {
                        font-weight: bold;
                    }
                }
            }

            div.sub-bloc {

                p {
                    font-size: 1.4rem;
                }

                div.name-structure {
                    display: flex;
                    flex-direction: column;
                    gap: 1rem;

                    a.structure-link {
                        font-size: 1.4rem;
                        text-decoration: unset;
                        border: 1px solid var(--pv-color-primary-green);
                        border-radius: 20px;
                        background-color: white;
                        width: max-content;

                        &:hover {
                            background-color: var(--pv-color-tertiary-blue);
                            color: white;
                            font-weight: bold;
                            border-color: var(--pv-color-tertiary-blue);
                        }
                    }
                }
            }
        }

        button.validate {
            margin-top: 10px !important;

            &:disabled {
                cursor: not-allowed;
                opacity: 0.6;
                box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
            }
        }

        span.red-required {
            color: red;
            font-size: 1.5rem;
        }

        .mr-auto {
            margin-right: auto;
        }

        .ml-auto {
            margin-left: auto;
        }

        /* Enlever les focus bleu */
        input:focus,
        textarea:focus,
        select:focus,
        button:focus,
        a:focus {
            outline: none;
            box-shadow: none;
        }

        .input-green {
            border: 1px solid var(--pv-color-primary-green);
            border-radius: 10px;
        }


        label {
            font-size: 1.3rem;
        }

    }

    .background-greensuperlight {
        background-color: var(--pv-color-secondary-greensuperlight);
        border-radius: 20px;
    }


    @keyframes fadeIn {
        from {
            opacity: 0;
            transform: translateY(-10px);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Validation du formulaire */
    input.has-error,
    textarea.has-error,
    select.has-error {
        border-color: #dc3545 !important;
    }

    .error-message {
        color: #dc3545;
        font-size: 1.3rem;
        font-weight: bold;
        display: block;
        margin-top: 10px;
        padding-left: 1rem;
    }

    /* Checkbox personnalisée */
    .checkbox-custom {
        display: flex;
        align-items: center;
        gap: 1rem;
        cursor: pointer;
        font-size: 1.3rem;
        width: max-content;

        .checkbox-input {
            display: none;
        }

        .checkbox-box {
            width: 24px;
            height: 20px;
            border: 2px solid #000;
            border-radius: 4px;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-shrink: 0;
            background-color: white;
            transition: all 0.3s ease;
            position: relative;

            &::after {
                content: '✓';
                background-color: var(--pv-color-primary-orange);
                color: white;
                font-size: 1.5rem;
                font-weight: bold;
                opacity: 0;
                transition: opacity 0.3s ease;
                width: 20px;
                height: 22px;
                top: -3px;
                position: absolute;
                text-align: center;
            }
        }

        .checkbox-input:checked~.checkbox-box {
            border-color: var(--pv-color-primary-orange);
            position: relative;
            overflow: hidden;

            &::after {
                opacity: 1;
            }
        }

        &:hover .checkbox-box {
            border-color: var(--pv-color-primary-orange);
        }

        .checkbox-label {
            cursor: pointer;
            user-select: none;
            font-size: 1.5rem;
        }
    }

    .confirmation_formulaire {
        background: var(--pv-form-bg);
        border-radius: var(--pv-border-radius-4);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;

        &::before {
            -moz-osx-font-smoothing: grayscale;
            -webkit-font-smoothing: antialiased;
            align-items: center;
            background: var(--pv-confirmation-bg);
            border: 22px solid var(--pv-confirmation-border-color);
            border-radius: 50%;
            color: var(--pv-confirmation-color);
            content: var(--pv-confirmation-icon);
            display: inline-block;
            display: flex;
            font-family: fontagon, sans-serif;
            font-size: 2.8rem;
            font-style: normal;
            font-variant: normal;
            font-weight: 400;
            height: 101px;
            justify-content: center;
            line-height: 1;
            margin: var(--bs-spacer-7) auto var(--bs-spacer-5);
            text-transform: none;
            vertical-align: middle;
            width: 101px;
        }

        .contenu_confirmation {
            text-align: center;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;

            .first_p {
                font-weight: bold;
            }
        }
    }
}

.device-mobile,
.device-tablet {
    main.refonte-formulaire {
        h1.title-refonte {
            font-size: 2.8rem;
        }

        div.refonte-bloc {

            div.bloc-container {
                min-width: unset;
            }
        }
    }
}

@media (max-width: 991px) {
    .device-tablet {
        main.refonte-formulaire {
            div.refonte-bloc {
                flex-direction: column;
                gap: 4rem;

                div.bloc-container {
                    min-width: unset;
                }
            }
        }
    }
}

.device-mobile {

    .header-top #ajax-auth-wrapper-mobile,
    .header-menu {
        display: none !important;
    }

    main.refonte-formulaire {
        div.refonte-bloc {
            flex-direction: column;
            gap: 4rem;

            div.bloc-container {
                min-width: unset;
            }

            div.form-container {
                div.form-bloc {

                    &.js-choice-two-button,
                    &.js-step-container {
                        .choice {
                            &.flex-choice {
                                flex-direction: column;
                                gap: 2rem;

                                .search-choice {
                                    width: 100%;
                                }
                            }

                            &.center-choice {
                                justify-content: center;
                            }

                        }
                    }
                }
            }

            button.validate {
                width: 100%;
                max-width: 400px;
                margin-right: auto;
                margin-top: 30px !important;
            }
        }
    }
}