/* ============================================
   blocContact.css — Bloc Contact
   ============================================ */

.block-contact {
    margin-left: auto;
    margin-right: auto;
}

/* --- Raccourcis (icônes) --- */
.block-contact__shortcuts {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 25px;
    list-style: none;
    margin: 0 0 30px;
    padding: 0;
    flex-wrap: wrap;
}

.block-contact__shortcut {
    margin: 0;
}

.block-contact__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #ffffff;
    color: var(--color-primary, #ea5b0c);
    transition: opacity 0.3s ease, background-color 0.3s ease;
}

.block-contact__link:hover,
.block-contact__link:focus {
    opacity: 0.85;
    color: var(--color-primary, #ea5b0c);
    text-decoration: none;
}

.block-contact__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
}


.block-contact__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* --- Carte formulaire --- */
.block-contact__card {
    max-width: 506px;
    margin: 0 auto;
    background-color: #ffffff;
    box-shadow: 0 0 7.5px rgba(0, 0, 0, 0.15);
    padding: 35px 25px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    text-align: center;
}

.block-contact__title {
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 600;
    font-size: 20px;
    line-height: 23px;
    color: var(--color-primary, #ea5b0c);
    margin: 0;
}

.block-contact__text {
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #706f6f;
    width: 100%;
}

.block-contact__text p {
    margin: 0;
}

/* --- Formulaire Gravity Forms --- */
.block-contact .gform_wrapper {
    width: 100%;
    margin: 0;
}

.block-contact .gform_heading {
    width: 100%;
}

.block-contact .gform_body,
.block-contact .gform_fields {
    width: 100%;
}

.block-contact .gform_fields {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    margin: 0;
    padding: 0;
}

.block-contact .gfield {
    flex: 0 0 100%;
    max-width: 100%;
    margin: 0;
    padding: 0;
}

/* Champs côte à côte (Prénom / Nom) */
@media (min-width: 768px) {
    .block-contact .gfield.gf_left_half,
    .block-contact .gfield.gf_right_half,
    .block-contact .gfield.gf_first_quarter,
    .block-contact .gfield.gf_second_quarter,
    .block-contact .gfield.gf_third_quarter,
    .block-contact .gfield.gf_fourth_quarter {
        flex: 0 0 calc(50% - 5px);
        max-width: calc(50% - 5px);
    }
}

.block-contact .gfield_label {
    display: block;
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #706f6f;
    margin: 0 0 5px;
    text-align: left;
}

.block-contact .gfield_label .gfield_required {
    font-size: inherit !important;
    line-height: inherit !important;
    font-weight: inherit;
    transition: font-size 0.2s ease-out, line-height 0.2s ease-out, color 0.2s ease-out;
}

.block-contact .gfield--type-address legend,
.block-contact .gfield_label_before_complex {
    display: none !important;
}

.block-contact .gfield_contains_required .ginput_complex label::after {
    content: ' (Nécessaire)';
    font-style: italic;
    font-size: inherit;
    line-height: inherit;
    color: #c12b0b !important;
}

/* Alignement côte à côte et réactivité des sous-champs d'adresse */
.block-contact .ginput_complex {
    display: flex !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
    gap: 15px 10px !important;
    width: 100% !important;
    margin-top: 10px !important;
}

.block-contact .ginput_complex .ginput_full {
    flex: 0 0 100% !important;
    width: 100% !important;
    max-width: 100% !important;
}

.block-contact .ginput_complex .ginput_left,
.block-contact .ginput_complex .ginput_right,
.block-contact .ginput_complex span[class*="ginput_address_"] {
    flex: 0 0 calc(50% - 5px) !important;
    width: calc(50% - 5px) !important;
    max-width: calc(50% - 5px) !important;
    box-sizing: border-box !important;
}

.block-contact .ginput_container {
    width: 100%;
}

.block-contact .gfield input[type="text"],
.block-contact .gfield input[type="email"],
.block-contact .gfield input[type="tel"],
.block-contact .gfield input[type="number"],
.block-contact .gfield input[type="url"],
.block-contact .gfield select {
    width: 100%;
    border: none;
    border-bottom: 1px solid #706f6f;
    border-radius: 0;
    background: transparent;
    height: 49px;
    padding: 0;
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #2d2d2d;
    box-shadow: none;
    outline: none;
    margin: 0;
}

.block-contact .gfield input:focus,
.block-contact .gfield select:focus {
    border-color: var(--color-primary, #ea5b0c);
    box-shadow: none;
}

.block-contact .gfield textarea {
    width: 100%;
    height: 91px;
    border: 1px solid #706f6f;
    border-radius: 2px;
    background: #ffffff;
    padding: 10px;
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #2d2d2d;
    box-shadow: none;
    outline: none;
    resize: vertical;
    margin: 0;
}

.block-contact .gfield textarea:focus {
    border-color: var(--color-primary, #ea5b0c);
    box-shadow: none;
}

.block-contact .gfield_error input,
.block-contact .gfield_error textarea {
    border-color: #c02b0a;
}

.block-contact .gfield_description {
    font-size: 14px;
    line-height: 18px;
    color: #706f6f;
    text-align: left;
}

.block-contact .gform_footer {
    width: 100%;
    display: flex;
    justify-content: flex-end;
    padding: 0;
    margin: 10px 0 0;
}

.block-contact .gform_button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 8px 10px 8px 20px;
    border: none;
    border-radius: 60px;
    background-color: var(--color-primary, #ea5b0c);
    color: #ffffff;
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 600;
    font-size: 18px;
    line-height: 28px;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background-color 0.3s ease;
    width: fit-content;
    margin: 0;
}

.block-contact .gform_button::after {
    content: '';
    display: inline-block;
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    background-image: url("data:image/svg+xml,%3Csvg width='24' height='24' viewBox='0 0 24 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='24' y='1.04907e-06' width='24' height='24' rx='12' transform='rotate(90 24 1.04907e-06)' fill='white'/%3E%3Cpath d='M19 12L5 12M13 6L19 12L13 18' stroke='%23EA5B0C' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.block-contact .gform_button:hover,
.block-contact .gform_button:focus {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.15);
    color: #ffffff;
}

.block-contact .gform_button:active {
    box-shadow: inset 0 0 0 9999px rgba(0, 0, 0, 0.25);
}

.block-contact .gform_confirmation_message {
    font-family: 'Momo Trust Sans', sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 19px;
    color: #2d2d2d;
}

/* --- Responsive --- */
@media (min-width: 768px) {
    .block-contact {
        padding: 50px 0;
    }

    .block-contact__shortcuts {
        gap: 50px;
        margin-bottom: 35px;
    }

    .block-contact__link {
        width: 65px;
        height: 65px;
    }

    .block-contact__card {
        padding: 50px;
        gap: 35px;
    }
}