/*
* Contact Page Template Styles
* @package WebStudios
*
* Charte graphique WebStudios :
* - Couleurs : #242424 (noir), #3FB0E5 (bleu), #F8CA07 (jaune), #FFFFFF (blanc)
* - Polices : OS_ALT_Regular, OS_ALT_Regular_Italic, OS_Light, OS_Regular, OS_Medium, OS_Bold
* - Style : Arrondis 30px, ombres subtiles, transitions fluides
*/

/* =============================================
CONTACT PAGE MAIN STRUCTURE
============================================= */

.contact-template {
    padding: 140px 0 80px; /* Top padding accounts for fixed header */
    background: #FFFFFF;
}

.page_contact_sized {
    display: flex;
    width: calc(100% - 20px);
    max-width: 1280px;
    flex-direction: column;
    margin: 0 auto;
    box-sizing: border-box;
}

/* =============================================
PAGE HEADER
============================================= */

.page_contact_header {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 60px;
}

.page_contact_title {
    display: flex;
    width: 100%;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 20px;
}

.page_contact_title .tilde {
    display: flex;
    align-items: center;
    width: 36px;
    height: clamp(40px, 6vw, 60px);
    flex-shrink: 0;
}

.page_contact_title .tilde img {
    width: 100%;
    height: auto;
}

.page_contact_title .flex_title_text {
    display: flex;
    flex-wrap: wrap;
    width: calc(100% - 46px);
}

.page_contact_title .flex_title_text > div:nth-child(1) {
    width: 100%;
    color: #3FB0E5;
    font: 400 clamp(2rem, 5vw, 3.75rem) / 1.1 OS_ALT_Regular_Italic;
    text-align: left;
    letter-spacing: -0.84px;
}

.page_contact_title .flex_title_text > div:nth-child(2) {
    width: 100%;
    color: #242424;
    font: 400 clamp(1.5rem, 4vw, 2.5rem) / 1.1 OS_ALT_Regular_Italic;
    text-align: left;
    letter-spacing: -0.84px;
}

.page_contact_intro {
    width: 100%;
    text-align: left;
    max-width: unset;
    color: #242424;
    font: 400 clamp(1.125rem, 2vw, 1.375rem) / 1.5 OS_Regular;
}

/* =============================================
PAGE CONTENT LAYOUT
============================================= */

.page_contact_content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
    width: 100%;
}

/* =============================================
CONTACT FORM - GRAVITY FORMS STYLING
============================================= */

.page_contact_form {
    background: #FFFFFF;
}

/* Form Wrapper */
.page_contact_form .gform_wrapper {
    margin: 0;
    padding: 0;
}

.page_contact_form .gform_wrapper form {
    margin: 0;
}

/* Form Heading */
.page_contact_form .gform_heading {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.page_contact_form .gform_title {
    color: #242424;
    font: 700 clamp(1.5rem, 3vw, 1.875rem) / 1.2 OS_Bold;
    margin-bottom: 10px;
}

.page_contact_form .gform_description {
    color: #666;
    font: 400 14px/1.5 OS_Regular;
}

/* Fields Container */
.page_contact_form .gform_wrapper .gform_fields {
    margin: 0;
}

/* Individual Field */
.page_contact_form .gform_wrapper .gfield {
    margin-bottom: 25px;
    padding: 0;
}

/* Field Labels */
.page_contact_form .gform_wrapper .gfield_label {
    display: block;
    color: #242424;
    font: 600 14px/1.4 OS_Medium;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Required Field Indicator */
.page_contact_form .gform_wrapper .gfield_required {
    color: #3FB0E5;
    margin-left: 3px;
}

.page_contact_form .gform_wrapper .gfield_required_text {
    font-size: 13px;
    font-style: italic;
    color: #666;
}

/* Input Fields Base Styles */
.page_contact_form .gform_wrapper input[type="text"],
.page_contact_form .gform_wrapper input[type="email"],
.page_contact_form .gform_wrapper input[type="tel"],
.page_contact_form .gform_wrapper input[type="url"],
.page_contact_form .gform_wrapper input[type="password"],
.page_contact_form .gform_wrapper input[type="search"],
.page_contact_form .gform_wrapper textarea,
.page_contact_form .gform_wrapper select {
    width: 100%;
    padding: 16px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 30px;
    font: 400 16px/1.4 OS_Regular;
    color: #242424;
    background: #FFFFFF;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

/* Focus State */
.page_contact_form .gform_wrapper input[type="text"]:focus,
.page_contact_form .gform_wrapper input[type="email"]:focus,
.page_contact_form .gform_wrapper input[type="tel"]:focus,
.page_contact_form .gform_wrapper input[type="url"]:focus,
.page_contact_form .gform_wrapper input[type="password"]:focus,
.page_contact_form .gform_wrapper input[type="search"]:focus,
.page_contact_form .gform_wrapper textarea:focus,
.page_contact_form .gform_wrapper select:focus {
    outline: none;
    border-color: #3FB0E5;
    box-shadow: 0 0 0 4px rgba(63, 176, 229, 0.15);
}

/* Hover State */
.page_contact_form .gform_wrapper input[type="text"]:hover,
.page_contact_form .gform_wrapper input[type="email"]:hover,
.page_contact_form .gform_wrapper input[type="tel"]:hover,
.page_contact_form .gform_wrapper input[type="url"]:hover,
.page_contact_form .gform_wrapper input[type="password"]:hover,
.page_contact_form .gform_wrapper input[type="search"]:hover,
.page_contact_form .gform_wrapper textarea:hover,
.page_contact_form .gform_wrapper select:hover {
    border-color: #3FB0E5;
}

/* Textarea Specific */
.page_contact_form .gform_wrapper textarea {
    min-height: 150px;
    resize: vertical;
    border-radius: 20px;
}

/* Select Dropdown */
.page_contact_form .gform_wrapper select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath fill-rule='evenodd' clip-rule='evenodd' d='M0.292893 0.292893C0.683417 -0.097631 1.31658 -0.097631 1.70711 0.292893L5 3.58579L8.29289 0.292893C8.68342 -0.0976311 9.31658 -0.0976311 9.70711 0.292893C10.0976 0.683417 10.0976 1.31658 9.70711 1.70711L5.70711 5.70711C5.31658 6.09763 4.68342 6.09763 4.29289 5.70711L0.292893 1.70711C-0.0976311 1.31658 -0.0976311 0.683418 0.292893 0.292893Z' fill='%23242424'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 20px center;
    background-size: 10px 6px;
    padding-right: 40px;
}

/* Name Field - Two Columns */
.page_contact_form .gform_wrapper .gfield--type-name .ginput_complex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.page_contact_form .gform_wrapper .gfield--type-name .gform-field-label--type-sub {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    margin-bottom: 5px;
    display: block;
}

/* Email Confirmation Field - Two Columns */
.page_contact_form .gform_wrapper .ginput_complex {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.page_contact_form .gform_wrapper .ginput_complex .gform-grid-col {
    display: flex;
    flex-direction: column;
}

/* Field Description */
.page_contact_form .gfield_description {
    color: #666;
    font: 400 13px/1.4 OS_Regular;
    margin-top: 8px;
    font-style: italic;
}

/* Validation Messages */
.page_contact_form .validation_message {
    color: #d32f2f;
    font-size: 13px;
    margin-top: 8px;
    font-style: italic;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page_contact_form .validation_message::before {
    content: '⚠';
    font-size: 14px;
}

/* Submit Button - Same style as header contact button */
.page_contact_form .gform_wrapper .gform_button.button,
.page_contact_form .gform_wrapper input.gform_button.button[type="submit"] {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 16px 40px !important;
    background: #242424 !important;
    color: #FFFFFF !important;
    border: none !important;
    border-radius: 30px !important;
    font: 600 16px/1 OS_Bold !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.page_contact_form .gform_wrapper .gform_button.button:hover,
.page_contact_form .gform_wrapper input.gform_button.button[type="submit"]:hover {
    background: #3FB0E5 !important;
    color: #FFFFFF !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 6px 20px rgba(63, 176, 229, 0.4) !important;
}

.page_contact_form .gform_wrapper .gbutton:active,
.page_contact_form .gform_wrapper input[type="submit"]:active,
.page_contact_form .gform_wrapper button[type="submit"]:active {
    transform: translateY(-1px);
}

/* Confirmation Message */
.page_contact_form .gform_confirmation_wrapper {
    padding: 40px;
    background: linear-gradient(135deg, #D8ECF9 0%, #FFFFFF 100%);
    border-radius: 30px;
    text-align: center;
}

.page_contact_form .gform_confirmation_message {
    color: #242424;
    font: 600 clamp(1.25rem, 3vw, 1.5rem) / 1.4 OS_Bold;
}

.page_contact_form .gform_confirmation_message + p {
    color: #666;
    font: 400 14px/1.5 OS_Regular;
    margin-top: 10px;
}

/* =============================================
CONTACT INFO SECTION
============================================= */

.page_contact_info {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.page_contact_info_bloc {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    padding: 30px;
    background: #F8F9FA;
    border-radius: 26px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.page_contact_info_bloc:hover {
    background: #3FB0E521;
    border-color: #3FB0E5;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(63, 176, 229, 0.15);
}

.page_contact_info_icon {
    display: flex;
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.page_contact_info_icon img {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.page_contact_info_txt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.page_contact_info_txt h3 {
    color: #242424;
    font: 600 14px/1.4 OS_Medium;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.7;
}

.page_contact_info_txt a {
    color: #242424;
    text-decoration: none;
    font: 600 clamp(1.125rem, 2vw, 1.25rem) / 1.4 OS_Bold;
    display: block;
    margin-bottom: 5px;
    transition: color 0.3s ease;
}

.page_contact_info_txt a:hover {
    color: #3FB0E5;
    text-decoration: underline;
}

.page_contact_info_txt address {
    font: 400 16px/1.6 OS_Regular;
    font-style: normal;
    color: #242424;
}

.page_contact_info_txt p {
    color: #666;
    font: 400 14px/1.4 OS_Regular;
    margin-top: 8px;
}

/* =============================================
MAP SECTION (OPTIONAL)
============================================= */
/* =============================================
GOOGLE MAP - UNDER ADDRESS
============================================= */

.page_contact_info_map {
    width: 100%;
    border-radius: 26px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid transparent;
    transition: all 0.3s ease;
    margin-top: 5px; /* léger écart sous le bloc adresse */
}

.page_contact_info_map:hover {
    border-color: #3FB0E5;
    box-shadow: 0 8px 25px rgba(63, 176, 229, 0.15);
    transform: translateY(-3px);
}

.page_contact_info_map iframe {
    display: block;
    width: 100%;
    height: 350px;
    border: 0;
}

/* Ajustement responsive */
@media (max-width: 992px) {
    .page_contact_info_map {
        flex: 0 0 calc(50% - 15px);
    }
}

@media (max-width: 768px) {
    .page_contact_info_map {
        flex: 0 0 100%;
    }

    .page_contact_info_map iframe {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .page_contact_info_map iframe {
        height: 250px;
    }
}

/* =============================================
RESPONSIVE DESIGN
============================================= */

/* Tablet Devices */
@media (max-width: 992px) {
    .page_contact_content {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .page_contact_info {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: center;
    }

    .page_contact_info_bloc {
        flex: 0 0 calc(50% - 15px);
    }
}

/* Mobile Devices */
@media (max-width: 768px) {
    .contact-template {
        padding: 120px 0 40px;
    }

    .page_contact_header {
        margin-bottom: 40px;
    }

    .page_contact_title {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .page_contact_title .flex_title_text {
        width: 100%;
        justify-content: center;
    }

    .page_contact_title .flex_title_text > div:nth-child(1),
    .page_contact_title .flex_title_text > div:nth-child(2) {
        text-align: center;
    }

    .page_contact_intro {
        font-size: 16px;
    }

    .page_contact_content {
        gap: 30px;
    }

    .page_contact_info {
        flex-direction: column;
    }

    .page_contact_info_bloc {
        flex: 0 0 100%;
    }

    .page_contact_map {
        margin-top: 40px;
        padding: 40px 0;
    }
}

/* Small Mobile Devices */
@media (max-width: 480px) {
    .page_contact_sized {
        width: calc(100% - 30px);
    }

    .page_contact_form .gform_wrapper .gfield--type-name .ginput_complex,
    .page_contact_form .gform_wrapper .ginput_complex {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .page_contact_form .gform_wrapper .gbutton,
    .page_contact_form .gform_wrapper input[type="submit"] {
        width: 100%;
        padding: 16px 24px;
    }

    .page_contact_info_bloc {
        padding: 20px;
    }

    .page_contact_info_icon {
        width: 50px;
        height: 50px;
    }

    .page_contact_info_icon img {
        width: 28px;
        height: 28px;
    }
}
