/* 

    GLOBAL

*/

body {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
}

main {
    min-width: 568px;
    width: 50vw;
    max-width: 100vw;
}

#background {
    opacity: .75 !important;
}

section {
    padding-top: 0;
}

section.success {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-flow: column;
        -ms-flex-flow: column;
            flex-flow: column;
}

section.success > a {
    margin-top: 2rem;

}

.article-wrapper > *,
form > * {
    /* align-self: baseline; */
    -ms-grid-column: 5;
    -ms-grid-column-span: 4;
    grid-column: 5 / 9;
}

.success form {
    display: none;

}

.article-wrapper h1,
form h1 {
    -ms-grid-column: 1;
    -ms-grid-column-span: 4;
    grid-column: 1 / 5;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
}

.article-wrapper > *:not(:first-child, .list-wrapper) {
    margin-top: 0;
}

h1 {
    margin-top: 2rem !important;
    font-size: 2.25rem;
}

.article-wrapper .download-wrapper {
    margin-top: 1rem;
}

form {
    gap: 0 1rem;
}

.honeypot {
    position: absolute;
    left: -9999px;
}

fieldset {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    display: block;
    -webkit-margin-start: 0;
            margin-inline-start: 0;
    -webkit-margin-end: 0;
            margin-inline-end: 0;
    -webkit-padding-before: 0;
            padding-block-start: 0;
    -webkit-padding-start: 0;
            padding-inline-start: 0;
    -webkit-padding-end: 0;
            padding-inline-end: 0;
    -webkit-padding-after: 0;
            padding-block-end: 0;
    min-inline-size: -webkit-min-content;
    min-inline-size: -moz-min-content;
    min-inline-size: min-content;
    border-width: 0;
    border-style: none;
    margin-bottom: 3.5rem;
}
/* 

*   Inscriptions

*/

form.active {
    opacity: 1;
    pointer-events: all;
}
form.inactive {
    /* opacity: .5; */
    pointer-events: none;
}

form.inactive input::-webkit-input-placeholder {
    /* color: #000; */
}

form.inactive input::-moz-placeholder {
    /* color: #000; */
}

form.inactive input:-ms-input-placeholder {
    /* color: #000; */
}

form.inactive input::-ms-input-placeholder {
    /* color: #000; */
}

form.inactive input::placeholder {
    /* color: #000; */
}

.input-wrapper:first-child {
    border-top: solid .125rem #000;
}
.input-wrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1rem 1fr;
    grid-template-columns: 1fr 1fr;
    gap: .25rem 1rem;
    font-size: 1.5rem;
    padding: .75rem 0 .125rem;
    border-bottom: solid .125rem #000;
}

.file-input-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    padding: 2rem 0;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
    -webkit-transition: opacity 150ms linear, padding 300ms cubic-bezier(.3,1,.5,1), -webkit-transform 300ms cubic-bezier(.3,1,.5,1);
    transition: opacity 150ms linear, padding 300ms cubic-bezier(.3,1,.5,1), -webkit-transform 300ms cubic-bezier(.3,1,.5,1);
    -o-transition: opacity 150ms linear, padding 300ms cubic-bezier(.3,1,.5,1), transform 300ms cubic-bezier(.3,1,.5,1);
    transition: opacity 150ms linear, padding 300ms cubic-bezier(.3,1,.5,1), transform 300ms cubic-bezier(.3,1,.5,1);
    transition: opacity 150ms linear, padding 300ms cubic-bezier(.3,1,.5,1), transform 300ms cubic-bezier(.3,1,.5,1), -webkit-transform 300ms cubic-bezier(.3,1,.5,1);
}

.full .file-input-wrapper {
    opacity: .5;
    padding: .25rem 0;
    -webkit-transform: scale(.95);
        -ms-transform: scale(.95);
            transform: scale(.95);
    pointer-events: none;
}

.image-upload-wrapper {
    position: relative;
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    grid-column: 1/3;
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1em 1fr;
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: -webkit-min-content;
    grid-auto-rows: min-content;
    gap: 1em;
    -webkit-transition: height 300ms cubic-bezier(.3,1,.5,1);
    -o-transition: height 300ms cubic-bezier(.3,1,.5,1);
    transition: height 300ms cubic-bezier(.3,1,.5,1);
}

.image-upload-wrapper > div {
    position: relative;
    line-height: 0;
    opacity: 0;
    -webkit-transform: translate3d(0, 0, 0);
            transform: translate3d(0, 0, 0);
    -webkit-animation: fade-in-upload 150ms linear 0ms 1 forwards;
            animation: fade-in-upload 150ms linear 0ms 1 forwards;
}

.image-upload-wrapper > div.moving {
    pointer-events: none;
    -webkit-transition: -webkit-transform 300ms cubic-bezier(.3,1,.5,1);
    transition: -webkit-transform 300ms cubic-bezier(.3,1,.5,1);
    -o-transition: transform 300ms cubic-bezier(.3,1,.5,1);
    transition: transform 300ms cubic-bezier(.3,1,.5,1);
    transition: transform 300ms cubic-bezier(.3,1,.5,1), -webkit-transform 300ms cubic-bezier(.3,1,.5,1);
}

.image-upload-wrapper > div.removing {
    pointer-events: none;
    -webkit-animation: fade-out-upload 150ms linear 0ms 1 forwards !important;
            animation: fade-out-upload 150ms linear 0ms 1 forwards !important;
}

@-webkit-keyframes fade-in-upload {
    from {opacity: 0;}
    to {opacity: 1;}
}

@keyframes fade-in-upload {
    from {opacity: 0;}
    to {opacity: 1;}
}
@-webkit-keyframes fade-out-upload {
    from {opacity: 1;}
    to {opacity: 0;}
}
@keyframes fade-out-upload {
    from {opacity: 1;}
    to {opacity: 0;}
}

.image-upload-wrapper .remove-cross {
    font-size: 1.5rem;
    position: absolute;
    width: 1.5rem;
    height: 1.5rem;
    top: 0;
    left: 0;
    padding: .25rem;
    background-color: #E7E7E7;
    line-height: 1em;
    cursor: pointer;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
}

.image-upload-wrapper .remove-cross svg {
    width: .75rem;
    height: .75rem;
    overflow: visible;
}

.image-upload-wrapper .remove-cross svg path {
    stroke: #000;
    stroke-width: .125rem;
}

.image-upload-wrapper > div:last-child img {
    padding-bottom: .5rem;
}

.input-wrapper label,
.input-wrapper input {
    height: auto;
    text-shadow: none;
    line-height: 100%;
}

input[type="file"] {
    display: none;
}

input:internal-autofill-selected {
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    background-color: transparent !important;
}

.file-button, #f_submit,
section.success > a {
    -webkit-box-sizing: content-box;
            box-sizing: content-box;
    font-size: 1rem;
    line-height: 100%;
    padding: .5rem .75rem .25rem;
    line-height: 100%;
    /* box-shadow: 0 0 4rem #E7E7E7; */
    cursor: pointer;
    background-color: #E7E7E7;
    -webkit-animation: color-shift-no-blur 10000ms linear infinite;
            animation: color-shift-no-blur 10000ms linear infinite;
}

#f_submit.inactive {
    color: #0008;
}

.submit-wrapper {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
        -ms-flex-pack: center;
            justify-content: center;
    border: none;
    padding-top: 1em;
}

.input-wrapper > *:first-child {
    -webkit-transition: color 150ms cubic-bezier(.3,1,.5,1);
    -o-transition: color 150ms cubic-bezier(.3,1,.5,1);
    transition: color 150ms cubic-bezier(.3,1,.5,1);
}

.input-wrapper.error > *:first-child {
    color: #d80000;
}

.input-wrapper.error .required > *:nth-of-type(even) .required ~ label {
    -webkit-animation: blinking-error 1800ms infinite;
            animation: blinking-error 1800ms infinite;
}
.input-wrapper.error .required > *:nth-of-type(odd) .required ~ label {
    -webkit-animation: blinking-error 1800ms 900ms infinite;
            animation: blinking-error 1800ms 900ms infinite;
}

@-webkit-keyframes blinking-error {
    0% {color: #000;}
    25% {color: #d80000;}
    75% {color: #d80000;}
    100% {color: #000;}
}

@keyframes blinking-error {
    0% {color: #000;}
    25% {color: #d80000;}
    75% {color: #d80000;}
    100% {color: #000;}
}

.input-wrapper > span {
    line-height: 110%;
}
.input-wrapper.vertical > span {
    padding-bottom: .25rem;
}

.input-wrapper.vertical {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
    gap: .25rem;
    padding: .5rem 0 .75rem;
}

.checkbox-item {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1.25rem 1fr;
    grid-template-columns: 1.25rem 1fr;
    /* gap: 0 .5rem; */
    -webkit-box-align: top;
    -webkit-align-items: top;
        -ms-flex-align: top;
            align-items: top;
    font-size: 1rem;
}

.checkbox-item > *:nth-child(2) {
    width: 100%;
    padding: .25rem 0 .25rem .5rem;
}

.double-input {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 1rem 1fr;
    grid-template-columns: 1fr 1fr;
    gap: .25rem 1rem;
    -webkit-box-align: baseline;
    -webkit-align-items: baseline;
        -ms-flex-align: baseline;
            align-items: baseline;
}

.double-input.single-column {
    -ms-grid-columns: 1fr;
    grid-template-columns: 1fr;
}

.double-input > * {
    width: 100%;
}

.other-input {
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: baseline;
    -webkit-align-items: baseline;
        -ms-flex-align: baseline;
            align-items: baseline;
}

.other-input > input {
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
}

label {
    cursor: pointer;
    width: -webkit-fit-content;
    width: -moz-fit-content;
    width: fit-content;
}

textarea {
    resize: none;
    -webkit-box-flex: 1;
    -webkit-flex-grow: 1;
        -ms-flex-positive: 1;
            flex-grow: 1;
    height: 1rem;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    min-width: 1.25rem;
    display: inline-block;
    -moz-appearance: textfield;
}

.additional-field {
    font-size: 1rem;
    line-height: 110%;
    margin-top: 0;
    height: 0;
    opacity: 0;
    -webkit-transition: height 300ms cubic-bezier(.3,1,.5,1), margin-top 300ms cubic-bezier(.3,1,.5,1), opacity 75ms linear;
    -o-transition: height 300ms cubic-bezier(.3,1,.5,1), margin-top 300ms cubic-bezier(.3,1,.5,1), opacity 75ms linear;
    transition: height 300ms cubic-bezier(.3,1,.5,1), margin-top 300ms cubic-bezier(.3,1,.5,1), opacity 75ms linear;
    pointer-events: none;
}
.additional-field.active {
    margin-top: .5rem;
    height: auto;
    opacity: 1;
    -webkit-transition: height 300ms cubic-bezier(.3,1,.5,1), margin-top 300ms cubic-bezier(.3,1,.5,1), opacity 150ms linear;
    -o-transition: height 300ms cubic-bezier(.3,1,.5,1), margin-top 300ms cubic-bezier(.3,1,.5,1), opacity 150ms linear;
    transition: height 300ms cubic-bezier(.3,1,.5,1), margin-top 300ms cubic-bezier(.3,1,.5,1), opacity 150ms linear;
    pointer-events: all;
}

input[type="radio"],
input[type="checkbox"] {
    -webkit-align-self: baseline;
        -ms-flex-item-align: baseline;
            align-self: baseline;
    position: relative;
    /* top: -.3rem; */
    -webkit-appearance: none;
       -moz-appearance: none;
            appearance: none;
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: .125rem solid #000;
    margin: 0;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
    background-color: #E7E7E7;
    -webkit-transition: border-radius 300ms cubic-bezier(.3,1,.5,1), background-color 300ms cubic-bezier(.3,1,.5,1), -webkit-filter 300ms cubic-bezier(.3,1,.5,1);
    transition: border-radius 300ms cubic-bezier(.3,1,.5,1), background-color 300ms cubic-bezier(.3,1,.5,1), -webkit-filter 300ms cubic-bezier(.3,1,.5,1);
    -o-transition: border-radius 300ms cubic-bezier(.3,1,.5,1), background-color 300ms cubic-bezier(.3,1,.5,1), filter 300ms cubic-bezier(.3,1,.5,1);
    transition: border-radius 300ms cubic-bezier(.3,1,.5,1), background-color 300ms cubic-bezier(.3,1,.5,1), filter 300ms cubic-bezier(.3,1,.5,1);
    transition: border-radius 300ms cubic-bezier(.3,1,.5,1), background-color 300ms cubic-bezier(.3,1,.5,1), filter 300ms cubic-bezier(.3,1,.5,1), -webkit-filter 300ms cubic-bezier(.3,1,.5,1);
}
input[type="radio"]:checked,
input[type="checkbox"]:checked {
    /* background-color: #c7c7c7; */
    -webkit-animation: color-shift-input 10000ms 300ms linear infinite;
            animation: color-shift-input 10000ms 300ms linear infinite;
}
input[type="radio"]:focus,
input[type="radio"]:focus-within,
input[type="radio"]:focus-visible,
input[type="checkbox"]:focus,
input[type="checkbox"]:focus-within,
input[type="checkbox"]:focus-visible {
    -webkit-filter: drop-shadow(0 0 .125rem #898989) blur(1px);
            filter: drop-shadow(0 0 .125rem #898989) blur(1px);
}

.slider-wrapper {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 3ch 1em 1fr;
    grid-template-columns: 3ch 1fr;
    gap: 1em;
    -webkit-box-align: baseline;
    -webkit-align-items: baseline;
        -ms-flex-align: baseline;
            align-items: baseline;
    -webkit-box-align: center;
    -webkit-align-items: center;
        -ms-flex-align: center;
            align-items: center;
    /* font-size: 1rem; */
    margin-top: .5rem;
}

.slider-output {
    text-align: left;
}

input[type="range"] {
    position: relative;
    top: -.2rem;
    width: 100%;
    -webkit-appearance: none;
    -moz-appearance: none;
         appearance: none;
    background-color: #000;
    border: none;
    height: .125rem;
    cursor: pointer;
}

input[type="range"]::-moz-range-track {
    background-color: #000;
    border: none;
    height: .125rem;
}

input[type="range"]::-moz-range-thumb {
    border: none;
    border-radius: 50%;
    background-color: #E7E7E7;
    width: 1.25rem;
    height: 1.25rem;
    cursor: grab;
    border: solid .125rem #000;
}
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 1.25rem;
    height: 1.25rem;
    background-color: #E7E7E7;
    border: solid .125rem #000;
    border-radius: 50%;
    cursor: -webkit-grab;
    cursor: grab;
    -webkit-box-shadow: none;
            box-shadow: none;
}
input[type="range"]:active::-moz-range-thumb {
    cursor: grabbing;

}
input[type="range"]:active::-webkit-slider-thumb {
    cursor: -webkit-grabbing;
    cursor: grabbing;
}

.error-message {
    display: none;
    font-size: 1rem;
    line-height: 110%;
    color: #d80000;
    padding-bottom: .25rem;
    -ms-grid-column: 1;
    -ms-grid-column-span: 2;
    grid-column: 1/3;
    /* transition: display 300ms cubic-bezier(.3,1,.5,1); */
}

.vertical .error-message {
    padding-top: .5rem;
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-column: 1/2;
}

.error .error-message {
    display: block;
}

@media (max-width: 600px) {
    main {
        min-width: 100%;
        width: 100%;
        max-width: 100%;
    }

    h1 {
        margin-top: 2rem !important;
        font-size: 1.5rem;
    }
    
    .input-wrapper, .input-wrapper input:not(input[type="file"], input[type="checkbox"], input[type="radio"], label > input[type="number"]) {
        display: block;
        font-size: 1rem;
        width: 100%;
        margin-top: .125rem;
    }

    .input-wrapper {
        padding-top: .25rem;
        padding-bottom: .25rem;
        font-size: 1rem;
        line-height: 110%;
    }

    .input-wrapper.vertical {
        padding-top: .25rem;
        padding-bottom: .75rem;
    }

    .input-wrapper label,
    .input-wrapper > span {
        display: inline-block;
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
    }

    .other-input > input {
        width: -webkit-fit-content;
        width: -moz-fit-content;
        width: fit-content;
        max-width: 100%;
        font-size: 1rem !important;
    }

    .vertical .double-input:not(.double-mobile) {
        -ms-grid-columns: 1fr;
        grid-template-columns: 1fr;
    }
    
    .file-input-wrapper, .submit-wrapper {
        width: 100%;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
        -webkit-flex-flow: row nowrap;
            -ms-flex-flow: row nowrap;
                flex-flow: row nowrap;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
            -ms-flex-pack: center;
                justify-content: center;
        margin-bottom: .5rem;
    }

    .file-input-wrapper input, .submit-wrapper input {
        width: -webkit-fit-content !important;
        width: -moz-fit-content !important;
        width: fit-content !important;
    }

    .landing #background,
    #background {
        -webkit-transform: scale(1);
            -ms-transform: scale(1);
                transform: scale(1);
        padding: 1.5rem .75rem 1.5rem;
    }
}