
#x-contact-trigger-box {
    z-index: 22;
    position: absolute;
}

#x-contact-trigger-box:before {
    display: block;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: black;
    opacity: .7;
}

#x-contact-trigger-box.step_on:before {
    content: '';
}

#x-contact {
    display: block;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--bleu_4);
    width: 55px;
    height: 55px;
    border-radius: 50%;
    box-shadow: 0 2px 3px var(--box_shadow);
    transition: all .2s ease-out;
    transition-delay: 0.15s;
    cursor: pointer;
    z-index: 4;
}

#x-contact .bar {
    content: '';
    display: block;
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    margin: auto;
    width: 22px;
    height: 4px;
    background: white;
    transition: 0.35s cubic-bezier(0.87, -0.71, 0.19, 1.44);
}

#x-trigger {
    display: none;

}

#x-trigger + #x-contact > .breadBars > .bar + .bar {
    transform: rotate(90deg);
}

#x-trigger:checked + #x-contact > .breadBars > .bar {

    width: 16px;
}

#x-trigger + #x-contact:active > .breadBars > .bar + .bar {
    transform: rotate(100deg);
}

#x-trigger:checked + #x-contact:active > .breadBars > .bar + .bar {
    transform: rotate(-15deg);
}

#x-trigger:checked + #x-contact {
    transform: scale(.72);
}

#x-trigger:checked + #x-contact > .breadBars > .bar + .bar {
    transform: none;
}

#x-trigger + #x-contact ~ button {
    display: block;
    position: fixed;
    right: 22px;
    bottom: 22px;
    margin: auto;
    width: 50px;
    height: 50px;
    transition: all .2s ease-out;
    border-radius: 50%;
    color: white;
    font-size: 20px;
    cursor: pointer;
    background: var(--bleu_4);
    box-shadow: 0 2px 3px var(--box_shadow);
    z-index: 1;
}

#x-trigger:checked + #x-contact ~ button {
    display: block;
    transform: scale(1);
    opacity: 1;
}

#x-trigger + #x-contact ~ [data-id="x-devis-o"] svg,
#x-trigger + #x-contact ~ [data-id="x-text-o"] svg {
    width: 20px;
    fill: white;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
}

#x-trigger + #x-contact ~ [data-id="x-text-o"] svg {
    animation: shake .95s ease-in-out infinite;
}


#x-trigger + #x-contact ~ [data-id="x-devis-o"] {
    animation: bumpDown_devis .2s ease-out forwards;

}

#x-trigger + #x-contact ~ [data-id="x-text-o"] {
    animation: bumpDown_text .2s ease-out forwards;

}

#x-trigger + #x-contact ~ [data-id="x-ticket-o"] {
    animation: bumpDown_ticket .2s ease-out forwards;

}

#x-trigger:checked + #x-contact ~ [data-id="x-devis-o"] {
    animation: bumpUp_devis .2s ease-out forwards;

}

#x-trigger:checked + #x-contact ~ [data-id="x-text-o"] {

    animation: bumpUp_text .2s ease-out forwards;
    animation-delay: .1s;
}

#x-trigger:checked + #x-contact ~ [data-id="x-ticket-o"] {

    animation: bumpUp_ticket .2s ease-out forwards;
    animation-delay: .2s;
}

#x-contact-trigger-box.preload #x-trigger:not(:checked) + #x-contact ~ button {
    display: none;
}

#contact_panel {
    display: none;
    position: fixed;
    border-radius: 7px;
    width: 100%;
    max-width: 960px;
    height: max-content;
    max-height: 80%;
    padding: 35px;
    font-family: 'Roboto', sans-serif;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    background: white;
    box-shadow: 0 15px 30px var(--box_shadow);
    overflow: hidden;
    overflow-y: auto;
}

#contact_panel input[type="number"] {
    appearance: textfield;
}

#contact_panel.open {
    display: block;
}

[data-xfo="titre"] {
    display: block;
    color: var(--bleu_4);
    font-size: clamp(24px, 4vw, 38px);
    text-align: center;
    font-weight: bold;
}

[data-xfo="ss_titre"] {
    display: block;
    text-align: center;
    font-size: clamp(16px, 2vw, 21px);
}


.choice_container {
    margin-top: 25px;
}

#data_collect {
    display: none;
}

.choice_container section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
    max-width: 460px;
    margin: auto;
}

.choice_container section[data-step]:not(.active) {
    display: none
}

.choice_container section[data-step] span[data-pick] {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
    align-items: center;
    justify-content: center;
    padding: 20px;
    cursor: pointer;
    box-shadow: 0 2px 3px var(--box_shadow);
    border-radius: 7px;
    height: 200px;
    max-width: 240px;
}

.choice_container section[data-step] span[data-src] {
    display: block;
    position: absolute;
    height: 80%;
    top: 0;
    left: 0;
    right: 0;
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;

}

.choice_container section[data-step] span[data-info] {
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 20%;

}

.choice_container section[data-step] span[data-info]:before {
    content: attr(data-info);
    display: block;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    text-align: center;
    text-transform: uppercase;
    height: max-content;
    margin: auto;
}


.choice_container section[data-step] span[data-pick]:hover,
.choice_container section[data-step] span[data-pick]:active,
.choice_container section[data-step] span[data-pick].picked {
    outline: 2px solid var(--bleu_4);
    box-shadow: 0 10px 20px var(--blue_shadow);
}

.choice_container section[data-step] span[data-pick]:hover span[data-info],
.choice_container section[data-step] span[data-pick]:active span[data-info],
.choice_container section[data-step] span[data-pick].picked span[data-info] {
    background: var(--bleu_4);
    color: white
}

#back_step {
    display: block;
    position: absolute;
    top: 15px;
    left: 15px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 10px;
}

.choice_container section[data-step]:first-of-type.active ~ #back_step {
    display: none !important
}

#flushBtn,
.btn_general {
    display: block;
    position: absolute;
    right: 25px;
    padding: 12px 28px;
    bottom: 25px;
    background: var(--bleu);
    color: white;
    font-size: 18px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 0 1px 2px var(--box_shadow);
    transition: all 0.08s ease-in-out;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}

#flushBtn:active,
.btn_general:active {
    bottom: 20px;
    background: var(--bleu_2);
}

.btn_general {
    margin-top: 0 !important;
}

#close_step {
    display: block;
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    padding: 10px;
    z-index: 3;
}

#back_step svg,
#close_step svg {
    height: 100%;
    width: 100%;
    fill: var(--grey_8)
}

#back_step:hover svg,
#close_step:hover svg {
    fill: var(--bleu)
}


#field_recap {
    display: block;
    position: absolute;
    background: white;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 35px;
}

#field_recap fieldset,
#field_recap input {
    display: block
}

.personal-infos-title {
    margin-bottom: 20px;
    color: var(--bleu);
    font-size: clamp(18px, 4vw, 38px);

}

#field_recap input {
    padding: 5px 10px 5px 15px;
    border: 1px solid var(--grey_8);
    border-radius: 4px;
    width: 100%;
    max-width: 520px;
    margin-bottom: 15px;
    height: 40px;
    line-height: 40px;
}

#nav.active + #x-contact-trigger-box * {
    visibility: hidden;
    pointer-events: none;
    transition: none;
    animation: none;
}

#iMailer {
    display: none;
    position: fixed;
    z-index: 250;
}

#iMailer .blurer {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--black);
    opacity: .7;
}

#iMailer .iMailer {
    display: block;
    position: fixed;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    margin: auto;
    padding: 35px 35px 50px 35px;
    width: 100%;
    max-width: 520px;
    max-height: 120vh;
    background: var(--bleu);
    border-radius: 4px;
    box-shadow: 0 2px 3px var(--box_shadow);
    height: max-content;
}

#iMailer_close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 34px;
    cursor: pointer;
    color: white

}

#iMailer input,
#iMailer select,
#iMailer textarea {
    display: block;
    width: 100%;
    appearance: none;
    padding: 15px;
    margin-bottom: 10px;
    font-weight: 700;
    background: rgba(0, 0, 0, 0.1);
    color: white;
}

#iMailer input::placeholder,
#iMailer select::placeholder,
#iMailer textarea::placeholder {
    color: white;
    opacity: .7;
}

#iMailer textarea {
    height: 120px;
    resize: none;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
}


#iMailer fieldset {
    margin-bottom: 10px;
    position: relative;
}

#iMailer fieldset > select {
    margin-bottom: 0
}

#iMailer fieldset > select + i {
    position: absolute;
    top: 0;
    bottom: 0;
    height: max-content;
    right: 10px;
    margin: auto;
    transition: all .2s ease-out;
    font-size: 20px;
    pointer-events: none;
    color: white
}

#iMailer fieldset > select:focus + i {
    color: var(--font);
    transform: rotate(180deg);
}

#iMailer input:focus,
#iMailer select:focus,
#iMailer textarea:focus {
    outline: 2px solid var(--bleu_5);
    background: white;
    color: var(--font)
}

#iMailer input:focus::placeholder,
#iMailer select:focus::placeholder,
#iMailer textarea:focus::placeholder {
    color: var(--font);
}

#iMailer input[type="number"] {
    appearance: textfield;
}

#iMailer button {
    display: block;
    position: relative;
    background-color: white;
    color: var(--bleu);
    border-radius: 4px;
    height: 60px;
    font-weight: bold;
    width: 100%;
    font-size: 16px;
    border: 0;
    box-shadow: 0 5px rgba(255, 255, 255, 0.5);
    text-transform: uppercase;
    transition: all 0.2s ease-out;
    cursor: pointer;
    top:0
}

#iMailer button:active {
    background-color: var(--bleu_2);
    color: white;
    box-shadow: none;
    top: 3px;
}

#iMailer select {
    cursor: pointer;
}

#iMailer h1,
#iMailer h3 {
    color: white;
}

#iMailer h3 {
    margin-bottom: 20px;
}

body.iMailer-open #iMailer {
    display: block;
}

.disabled {
    display: none !important;
}

@media screen and (max-width: 1028px) {
    #contact_panel {
        padding: 80px 25px 25px;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        height: unset;
        max-height: unset;
        max-width: unset;
        border-radius: 0;
        box-shadow: none
    }

    #flushBtn, .btn_general {
        right: 100px;
    }
}

@media screen and (max-width: 520px) {
    #iMailer .iMailer {
        width: 100%;
        height: 100%;
        max-width: unset;
        max-height: unset;
        border-radius: 0;
        box-shadow: none
    }
}

@media screen and (max-width: 480px) {
    .choice_container section[data-step] span[data-pick] {
        height: 150px;
    }

    #flushBtn, .btn_general {
        right: unset;
        bottom: unset;
        width: 100%;
        display: block;
        margin-top: 25px;
        position: relative;
        top: 0
    }

    #flushBtn:active, .btn_general:active {
        top: 5px
    }
}


@keyframes bumpUp_devis {
    0% {
        bottom: 14px;
        width: 40px;
        height: 40px;
        right: 25px;
        opacity: 1
    }
    40% {
        bottom: 14px;
        width: 40px;
        height: 40px;
        right: 25px;
    }
    100% {
        bottom: 184px;
    }
}

@keyframes bumpUp_text {
    0% {
        bottom: 14px;
        width: 40px;
        height: 40px;
        right: 25px;
        opacity: 1
    }
    40% {
        bottom: 14px;
        width: 40px;
        height: 40px;
        right: 25px;
    }
    100% {
        bottom: 128px;
    }
}

@keyframes bumpUp_ticket {
    0% {
        bottom: 14px;
        width: 40px;
        height: 40px;
        right: 25px;
        opacity: 1
    }
    40% {
        bottom: 14px;
        width: 40px;
        height: 40px;
        right: 25px;
    }
    100% {
        bottom: 72px;
    }
}

@keyframes bumpDown_devis {
    0% {
        bottom: 184px;
        opacity: 1;
    }
    40% {
        bottom: 194px;
    }
    100% {
        bottom: 22px;
    }
}

@keyframes bumpDown_text {
    0% {
        bottom: 128px;
        opacity: 1;
    }
    40% {
        bottom: 138px;
    }
    100% {
        bottom: 22px;
    }
}

@keyframes bumpDown_ticket {
    0% {
        bottom: 72px;
        opacity: 1;
    }
    40% {
        bottom: 82px;
    }
    100% {
        bottom: 22px;
    }
}

@keyframes shake {
    0% {
        transform: rotate(0deg);
    }
    5% {
        transform: rotate(-15deg);
    }
    10% {
        transform: rotate(15deg);
    }
    15% {
        transform: rotate(-15deg);
    }
    20% {
        transform: rotate(15deg);
    }
    25% {
        transform: rotate(-15deg);
    }
    30% {
        transform: rotate(15deg);
    }
    35% {
        transform: rotate(-15deg);
    }
    40% {
        transform: rotate(15deg);
    }
    45% {
        transform: rotate(0deg);
    }
    45%, 100% {
        transform: rotate(0deg);
    }
}