@font-face {
    font-family: "AlpineProto";
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/AlpineProto-Light.woff2") format("woff2")
}

@font-face {
    font-family: "AlpineProto";
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/AlpineProto-Bold.woff2") format("woff2")
}

@font-face {
    font-family: "AlpineNewAlps";
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/AlpineNewAlps-Regular.woff2") format("woff2")
}

body {
    font-family: "AlpineProto", sans-serif;
    padding: 0;
    margin: 0;
    color: #fff;
    font-size: 16px;
    font-weight: 300;
    background: #000
}

input,
textarea,
select,
button {
    font-size: 16px;
    color: #000;
    font-family: "AlpineProto";
    font-weight: 700
}

*,
*:after,
*:before {
    box-sizing: border-box
}

p,
h1 {
    margin: 0
}

img {
    display: block;
    max-width: 100%;
    height: auto
}

header {
    /* padding: 32px 32px 0px 32px; */
    /* position: relative */
}

header #lang {
    position: absolute;
    top: 32px;
    right: 17px;
    cursor: pointer;
    color: black;
    z-index: 5;
}

header #lang a {
    text-decoration: none;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 13px;
    color: inherit;
    transition: color .45s ease-in-out
}

header #lang a:hover {
    color: blue
}

footer {
    background: #000;
    color: #fff;
    text-align: justify;
    padding: 25px;
    font-size: 12px;
    line-height: 120%;
    font-family: "AlpineNewAlps";
    font-weight: 400;
    position: relative;
    z-index: 2;
}
#merci{
    z-index: 2;
}

footer a {
    color: inherit;
    text-decoration: underline;
    transition: color .45s ease-in-out
}

footer a:hover {
    color: blue
}

.desktop {
    display: none
}

main {
    display: flex;
    flex-direction: column;
    position: relative;
    max-width: 450px;
    margin: 0 auto;
    padding-bottom: 14px
}

main #illustration {
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
    /* padding: 20px 0 0 0; */
}

main #illustration .titre {
    font-size: 27px;
    padding-left: 30px;
    font-weight: 300;
    line-height: 100%;
    text-transform: uppercase;
    padding-bottom: 7px;
    position: relative
}

main #illustration .titre:after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 30px;
    width: 34px;
    height: 1px;
    background: blue
}

main #illustration p {
    font-size: 27px;
    font-weight: 700;
    line-height: 100%;
    text-transform: uppercase;
    padding-left: 30px
}

main #illustration img {
    /* margin-top: 20px */
}

main #formulaire {
    width: calc(100% - 20px);
    margin: -700px auto 0 auto;
    background: #0C1E2C;
    padding: 15px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    color: #fff;
    z-index: 2;
    position: relative
}

main #formulaire .intro {
    text-transform: uppercase;
    font-size: 16px;
    font-weight: 300;
    line-height: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px
}

main #formulaire .intro strong {
    font-size: 21px;
    font-weight: 700;
    line-height: 110%
}

main #formulaire .group {
    display: flex;
    flex-direction: column;
    gap: 20px
}

main #formulaire .form-cadre {
    width: 100%
}

main #formulaire .form-cadre>label {
    text-transform: uppercase;
    font-size: 16px;
    line-height: 120%;
    font-weight: 700
}

main #formulaire .form-cadre input {
    font-size: 16px
}

main #formulaire .form-cadre input::-moz-placeholder {
    color: #fff
}

main #formulaire .form-cadre input::placeholder {
    color: #fff
}

main #formulaire .text {
    font-size: 14px;
    line-height: 120%;
    font-weight: 300;
    text-transform: uppercase
}

main #formulaire .text a {
    color: inherit;
    text-decoration: underline;
    transition: color .45s ease-in-out
}

main #formulaire .text a:hover {
    color: blue
}

main #formulaire .champ {
    background: rgba(0, 0, 0, 0);
    border: none;
    border-bottom: 1px solid #fff;
    height: 27px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 0;
    line-height: 44px;
    display: block;
    width: 100%;
    padding: 0 0 5px 0;
    color: #fff;
    text-transform: uppercase;
    outline: none
}

main #formulaire .checkboxes {
    display: flex;
    flex-direction: column;
    gap: 14px
}

main #formulaire .checkboxes .checkbox {
    display: flex;
    flex-direction: row;
    gap: 14px;
    align-items: center
}

main #formulaire .checkboxes span {
    font-size: 14px;
    line-height: 120%;
    font-weight: 300;
    text-transform: uppercase;
    /* color: #fff; */
    min-width: 55px
}

main #formulaire .checkboxes label {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px
}

main #formulaire .checkboxes label p {
    font-size: 16px;
    line-height: 120%;
    font-weight: 700;
    text-transform: uppercase
}

main #formulaire .checkboxes input {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    min-width: 20px;
    width: 25px;
    height: 25px;
    border: 1px solid #fff;
    accent-color: #fff;
    border-radius: 100%;
    margin: 0;
    position: relative
}

main #formulaire .checkboxes input:before {
    position: absolute;
    top: 0;
    left: 0;
    display: block;
    content: "";
    width: 100%;
    height: 100%;
    scale: 0;
    background: #fff;
    border-radius: 100%
}

main #formulaire .checkboxes input:checked::before {
    scale: 1
}

main #formulaire button {
    background: blue;
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 360px;
    height: 60px;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid blue;
    font-weight: bold;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    transition: background .45s ease-in-out;
    text-transform: uppercase;
    margin: 0 auto;
    outline: none;
    position: relative;
    overflow: hidden
}

main #formulaire button:before {
    content: "";
    opacity: 0;
    position: absolute;
    top: 16px;
    right: 0;
    height: 2px;
    width: 245px;
    background: linear-gradient(to right, transparent, #ED2939, transparent);
    pointer-events: none
}

main #formulaire button:after {
    content: "";
    opacity: 0;
    position: absolute;
    bottom: 16px;
    left: 0;
    height: 2px;
    width: 245px;
    background: linear-gradient(to right, transparent, #ED2939, transparent);
    pointer-events: none
}

main #formulaire button:hover {
    background: #fff;
    color: blue
}

main #formulaire button:hover:before {
    animation: buttonBefore 1s linear
}

main #formulaire button:hover:after {
    animation: buttonAfter 1s linear
}

main #formulaire .legend {
    font-size: 14px;
    font-weight: 300;
    text-transform: uppercase;
    text-align: center;
    margin-top: -8px
}

@keyframes buttonBefore {
    0% {
        opacity: 1;
        right: 0
    }

    100% {
        opacity: 1;
        right: 100%
    }
}

@keyframes buttonAfter {
    0% {
        opacity: 1;
        left: 0
    }

    100% {
        opacity: 1;
        left: 100%
    }
}

#merci {
    text-align: center;
    font-size: 19px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    background: #0C1E2C;
    padding: 35px 25px;
    color: #fff;
    text-align: center;
    margin: 0 10px
}

#merci .infos {
    flex-direction: column;
    gap: 35px;
    display: flex
}

#merci .infos p {
    font-size: 18px;
    text-transform: uppercase;
    font-weight: 300
}

test {
    position: absolute;

    background: black;
    z-index: 2;
    width: 100%;
    height: 350px;
}

#merci .infos p strong {
    font-size: 20px;
    font-weight: 700
}

#merci .infos a {
    background: blue;
    color: #fff;
    text-align: center;
    width: 100%;
    max-width: 360px;
    height: 60px;
    font-size: 20px;
    font-weight: 700;
    border: 1px solid blue;
    font-weight: bold;
    border-radius: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    padding: 0;
    transition: background .45s ease-in-out;
    text-transform: uppercase;
    margin: 10px auto 0 auto;
    outline: none;
    text-decoration: none
}

#merci .infos a:hover {
    background: #fff;
    color: #0000FE;
}

#merci .rs {
    display: flex;
    flex-direction: row;
    gap: 30px;
    justify-content: center;
    align-items: center
}

#merci .rs a {
    text-decoration: none
}

#merci .rs a img {
    transition: transform .45s ease-in-out
}

#merci .rs a img:hover {
    transform: scale(1.1)
}

@media(min-width: 1280px) {
    .desktop {
        display: block
    }

    .mobile {
        display: none
    }

    main {
        max-width: 100%;
        padding-bottom: 0
    }

    main #illustration {
        width: 100%;
        /* padding-top: 42px */
    }

    main #illustration .titre {
        font-size: 52px;
        padding-left: 93px;
        padding-bottom: 15px
    }

    main #illustration .titre:after {
        left: 93px;
        height: 2px;
        width: 68px
    }

    main #illustration p {
        font-size: 52px;
        padding-left: 93px
    }

    main #illustration img {
        /* width: min(78%, 1324px); */
        /* margin-left: 122px; */
    }

    main #formulaire {
        width: min(40%, 675px);
        padding: 60px 40px 40px 40px;
        position: absolute;
        right: 92px;
        top: 50%;
        transform: translateY(-50%);
        gap: 32px;
        margin: -48px 0 0 0
    }

    main #formulaire .intro strong {
        font-size: 24px
    }

    main #formulaire .group {
        flex-direction: row;
        gap: 35px
    }

    main #formulaire .checkboxes {
        flex-direction: row;
        justify-content: space-between;
        margin-top: -18px
    }

    main #formulaire .checkboxes .checkbox {
        gap: 20px
    }

    main #formulaire .legend {
        margin-top: -18px
    }

    main #merci {
        width: min(40%, 675px);
        padding: 60px 40px;
        position: absolute;
        right: 92px;
        top: 50%;
        transform: translateY(-50%);
        margin: -48px 0 0 0
    }

    footer, #merci {
        top: -200px;
        min-height: 200px;
    }
}

@media(min-width: 1600px) {
    main #formulaire .checkboxes .checkbox {
        gap: 50px
    }

    main #illustration img {
        /* width: min(78%, 1324px);
        margin-left: 205px; */
    }
}

@media(min-width:320px) {
    main #formulaire, #merci {
        margin-top: -770px;
    }
}

@media(min-width:340px) {
    main #formulaire, #merci {
        margin-top: -850px;
    }
}

@media(min-width:380px) {
    main #formulaire, #merci {
        margin-top: -950px;
    }
}

@media(min-width:400px) {
    main #formulaire, #merci {
        margin-top: -1060px;
    }
}

@media(min-width:1280px) {
    main #formulaire, #merci {
        margin-top: -48px;
    }
}