﻿


.bloc-form-cart {
    display: flex;
    flex-direction: column;
    /*align-items: flex-end;*/
    gap: 24px;
    align-self: stretch;
    border-radius: 10px;
    background: #FFF;
}

.contact-form {
    display: flex;
    flex-direction: column;
    /*align-items: flex-end;*/
    gap: 8px;
    align-self: stretch;
    border-radius: 10px;
    background: #FFF;
}

.container-form {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.wrap-form-cart {
   flex: 1;
   align-self: stretch;
}

.required-asterisk {
    color: red;
    margin-left: 5px;
    font-weight: bold;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    right: 10px;
}


form#contact-form .separator-barre {
    margin: 20px 0;
}

.wrap-2-blocs {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 8px;
    align-self: stretch;
}

form.contact-form input, form.contact-form textarea {
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    -webkit-appearance: none;
}

form.contact-form input:focus, form.contact-form textarea:focus, form.contact-form select:focus {
    outline: 1px solid var(--MAIN-COLOR);
    border: none;
}

.iti__selected-dial-code {
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

form.contact-form input::placeholder, form.contact-form textarea::placeholder {
    color: var(--BASIC-GRIS-2, #A8A8A8);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.wrap-2-blocs input {
    display: flex;
    width: 100%;
    height: 35px;
    padding: 0 10px;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    border-radius: 10px;
    border: 1px solid var(--HEB-LIGHT, #E1EAF8);
    align-self: stretch;
}

.bloc-telephone {
    display: flex;
    padding: 0;
    justify-content: space-between;
    align-items: center;
}

.iti.iti--allow-dropdown.iti--separate-dial-code {
    display: flex;
    width: 100%;
    gap: 8px;
}

/* Styles pour améliorer l'apparence de intl-tel-input */
.iti.iti--allow-dropdown.iti--separate-dial-code {
    display: flex;
    width: 100%;
}

/* Ajuster le conteneur du drapeau et de l'indicatif pour ressembler au figma */
.iti__flag-container {
    border-radius: 10px;
    position: static !important;
    padding: 0 !important;
}



.custom-select-country {
    position: relative;
    width: 100%;
}


/* Style pour l'élément select lui-même */
select#address-country {
    padding: 5px 10px;
}
    /* Cette règle CSS cache l'option par défaut lorsque le select est ouvert */
    select#address-country option.default-option {
        display: none;
    }

.bloc-telephone input {
    border: none;
}

.wrap-2-blocs .wrap-select-country {
    display: flex;
    height: 35px;
    justify-content: space-between;
    align-items: center;
    flex: 1;
    position: relative;
}

select#address-country {
    border: none;
    width: 100%;
    height: 35px;
}

input#phone {
    width: 100%;
    padding: 0;
    border: 1px solid var(--HEB-LIGHT, #E1EAF8);
    max-width: 100%;
    padding-left: 16px !important;
}

.wrap-2-blocs .wrap-select-country i {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 14px;
    color: #d3d3d3;
    font-weight: 200;
}

.select-dropdown-country .select-dropdown-country__button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 5px;
    align-self: stretch;
    cursor: pointer;
    width: 100%;
    background: #fff;
    border: none;
}

.select-dropdown-country .select-dropdown-country__list {
    top: 35px;
}

.select-dropdown-country__list {
    position: absolute;
    display: block;
    left: 0;
    right: 0;
    max-height: 300px;
    overflow: auto;
    margin: 0;
    padding: 0;
    list-style-type: none;
    opacity: 0;
    pointer-events: none;
    transform-origin: top left;
    transform: scale(1, 0);
    transition: all ease-in-out 0.3s;
    z-index: 9999;
}

    .select-dropdown-country__list.active {
        opacity: 1;
        pointer-events: auto;
        transform: scale(1, 1);
        border-radius: 5px;
        border: 1px solid var(--Colors-BE-GRIS-D, #BFBFBF);
    }

.select-dropdown-country__list-item {
    display: block;
    list-style-type: none;
    padding: 5px;
    text-align: center;
    background: #fff;
    border-top: 1px solid #e6e6e6;
    color: var(--color-black);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
    cursor: pointer;
    transition: all ease-in-out 0.3s;
}

.select-dropdown-country__list-item:hover {
    color: var(--MAIN-COLOR);
    background: var(--MAIN-COLOR-LIGHT);
}

.default-value {
    color: var(--BASIC-GRIS-2, #A8A8A8);
}

.country-value, form.contact-form select option {
    color: var(--color-black);
}

select#address-country.country-selected {
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
    -webkit-appearance: none;
    border-radius: 10px;
    border: 1px solid var(--HEB-LIGHT, #E1EAF8);
    text-indent: 5px;
    background: none;
}

.select-dropdown-country.country-selected.form-select {
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}


textarea.commentaires-textarea {
    display: flex;
    height: 80px;
    padding: 10px 16px;
    align-items: flex-start;
    gap: 16px;
    align-self: stretch;
    border-radius: 10px;
    border: 1px solid var(--HEB-LIGHT, #E1EAF8);
    resize: vertical;
}

.bloc-title-participant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.form-participant.collapsed {
    display: none;
}

.title-participant {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-participant h2, .title-participant i {
   color: var(--Colors-BE-NOIR, #000);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.bloc-title-society {
    display: flex;
    justify-content: space-between;
    align-items: center;
    align-self: stretch;
}

.title-society {
    display: flex;
    align-items: center;
    gap: 10px;
}

.title-society h2 {
   color: var(--Colors-BE-NOIR, #000);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.title-terms {
    display: flex;
    height: 20px;
    align-items: flex-start;
    gap: 20px;
    align-self: stretch;
}

.title-terms h2 {
   color: var(--Colors-BE-NOIR, #000);
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.content-terms {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 5px;
    align-self: stretch;
}

.first-terms.accept-infos, .second-terms.accept-conditions {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    align-self: stretch;
}

.first-terms.accept-infos input, .second-terms.accept-conditions input {
    width: 15px;
    height: 15px;
    border-radius: 3px;
    background: #FFF;
    border: 1px solid var(--Colors-BE-GRIS, #EAEAEA);

}

    .second-terms.accept-conditions a {
        font-weight: bold;
        color: var(--MAIN-COLOR);
        text-decoration: none;
        cursor: pointer;
    }

/* Créer un style personnalisé pour la case à cocher */
.first-terms.accept-infos input {
    width: 15px;
    height: 15px;
    background-color: #fff;
    border-radius: 3px;
    cursor: pointer;
    outline: none;

}

/* Style pour la coche */
.first-terms.accept-infos input:checked, .second-terms.accept-conditions input:checked {
    background-image: url(../../../img/icons/check-white.svg);
    background-size: cover;
    background-position: center;
    background-color: var(--MAIN-COLOR);
    outline: none;
}


.first-terms.accept-infos span, .second-terms.accept-conditions span {
   color: var(--Colors-BE-NOIR, #000);
    font-family: Inter;
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: normal;
}

.text-security {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 6px;
}

.text-security span {
    color: var(--Colors-BE-NOIR, #000);
    font-family: Inter;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 140%; /* 16.8px */
}

.contact-form .bloc-btn {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 15px;
    align-self: stretch;
}

.contact-form .bloc-btn button:disabled {
    background: var(--color-black-lighter)
}

.contact-form .bloc-btn button {
    display: flex;
    padding: 10px 50px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    background: var(--MAIN-COLOR);
    border: none;
    border-width: initial;
    cursor: pointer;
}

.contact-form .bloc-btn button span {
    color: #FFF;
    text-align: center;
    font-family: Inter;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.bloc-btn#passToPay {
    text-transform: uppercase;
}

.form-societe {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    gap: 15px;
    align-self: stretch;
}

.form-societe input {
    display: flex;
    height: 35px;
    padding: 0 16px;
    justify-content: space-between;
    align-items: center;
    flex: 1 0 0;
    border-radius: 10px;
    border: 1px solid var(--Colors-BE-GRIS-D, #BFBFBF);
    width: 100%;
}

.separator-barre.mobile {
    display: none;
}

.contact-form .bloc-btn button.disabled {
    background: rgb(170, 170, 170);
}

#passToPay.disabled {
    pointer-events: none;
    opacity: 0.5;
    opacity: 0.5;
}

#passToPay {
    pointer-events: all;
    opacity: 1;
}

/* Tooltip pour la validation des erreurs de dsaisies dans le formulaire */

input.input-validation-error {
    border: 1px solid #f44336;
}

/* Cacher le tooltip par défaut */
.tooltiptext {
    display: none;
    position: absolute;
    background-color: #f44336;
    color: white;
    padding: 5px;
    border-radius: 4px;
    white-space: nowrap;
    z-index: 1;
}

/* Afficher le tooltip uniquement lorsque l'input a la classe input-validation-error et est survolé */
.tooltip-validation .form-input.input-validation-error:hover + .tooltiptext {
    display: inline-block;
}

/* Position relative pour que le tooltip soit positionné correctement par rapport à son parent */
.tooltip-validation {
    position: relative;
    flex: 1;
    align-self: stretch;
}

.tooltiptext {
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 5px;
    z-index: 999;
}


/* MEDIA QUERIES */

@media (max-width: 1024px) {

    .container-form {
        display: block;
        margin: 0 auto;
        width: 100%;
    }

    .wrap-flexbox-cart.formPart {
        flex-direction: column-reverse;
    }

}

@media (max-width: 768px) {

    .container-form {
        width: 100%;
        display: flex;
        gap: 24px;
    }

    form#contact-form .separator-barre {
        margin: 0;
    }

    .title-society h2, .title-terms h2 {
        font-size: 14px;
    }

    .first-terms.accept-infos label, .second-terms.accept-conditions label {
        display: flex;
        gap: 10px;
        align-items: flex-start;
    }

    /* Bouton de validation sticky */
    .contact-form .bloc-btn {
        position: fixed;
        left: 0;
        bottom: 0;
        z-index: 250;
        height: 50px;
        width: 100%;
        background: rgb(170, 170, 170);
    }

    .contact-form .bloc-btn button {
        display: flex;
        margin: 0;
        padding: 0;
        height: 50px;
        width: 100%;
        flex-direction: column;
    }

    .select-dropdown-country.country-selected.form-select {
        display: flex;
        flex: 1 0 0;
        align-self: stretch;
        padding: 0 10px;
        border-radius: 10px;
    }

    .select-dropdown-country__button span {
        height: 35px;
        display: flex;
        align-items: center;
    }

    .bloc-telephone {
        align-self: stretch;
        max-width: 100%;
    }

    .wrap-2-blocs .wrap-select-country {
        max-width: 100%;
        width:100%;
        padding: 0;
    }

    input#phone {
        display: flex;
        padding: 0 5px;
    }

    .form-societe {
        flex-direction: column;
    }

    .form-societe input {
        width:100%;
        padding: 10px;
    }

    .first-terms.accept-infos input, .second-terms.accept-conditions input {
        min-width: 15px;
    }

    .separator-barre.mobile {
        display: block;
    }

    .bloc-form-cart, .contact-form {
        padding:0;
        gap: 16px;
    }

    form#contact-form {
        width: 100%;
    }

    .wrap-2-blocs {
        flex-direction: column;
    }

    .wrap-2-blocs input {
        max-width: 100%;
        width: 100%;
        display: flex;
        height: 35px;
        padding: 16px;
        justify-content: space-between;
        align-items: center;
        flex: 1 0 0;
    }

    .first-terms.accept-infos span, .second-terms.accept-conditions span, .text-security span {
        font-size: 14px;
    }

}