@import url(https://fonts.googleapis.com/css2?family=Instrument+Sans:wght@400;500;600;700&display=swap);


/* Main Contact Container */
.contact-main {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 40px 80px;
    box-sizing: border-box;
    width: 100%;
}

/* Get in Touch Heading */
.contact-heading {
    font-size: 32px;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 40px 0;
    text-align: left;
    font-family: 'Instrument Sans', sans-serif;
    transform: translateX(-70px);
}

/* Profile Card */
.profile-card {
    background: linear-gradient(to bottom, #f5f5f5 0%, #e8e8e8 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 50px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    height: 350px;
    margin-left: auto;
    margin-right: auto;
}

.profile-content {
    display: flex;
    align-items: flex-start;
    gap: 28px;
    height: 100%;
}

.profile-avatar {
    flex-shrink: 0;
    width: 110px;
    height: 110px;
    border-radius: 50%;
    overflow: hidden;
    background-color: #ddd;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.12);
}

.profile-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.profile-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 7px;
    justify-content: space-between;
    min-width: 0;
}

.profile-name {
    font-size: 30px;
    font-weight: 700;
    color: #2a2a2a;
    margin: 0;
    padding: 0;
    line-height: 1;
    font-family: 'Instrument Sans', sans-serif;
    text-align: left;
}

.profile-title {
    font-size: 16px;
    font-weight: 400;
    color: #757575;
    margin: 0;
    padding-bottom: 8px;
    line-height: 1.1;
    font-family: 'Instrument Sans', sans-serif;
}

.profile-description {
    font-size: 14px;
    line-height: 1.2;
    color: #000000;
    margin: 0;
    padding-bottom : 10px;
    font-family: 'Instrument Sans', sans-serif;
    flex: 1;
    overflow: hidden;
}

.view-profile-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background-color: #2A64AA;
    color: #ffffff;
    text-decoration: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    font-family: 'Instrument Sans', sans-serif;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74, 144, 226, 0.3);
    width: fit-content;
    margin-top: 0;
}

.view-profile-btn:hover {
    background-color: #357abd;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.4);
}

.view-profile-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* Email Heading */
.email-heading {
    font-size: 28px;
    font-weight: 600;
    color: #ffffff;
    margin: 0 auto 40px;
    text-align: center;
    font-family: 'Instrument Sans', sans-serif;
}

/* Contact Form Card - Neumorphic Design */
.contact-form-card {
    background: linear-gradient(to bottom, #e8e8e8 0%, #d8d8d8 100%);
    border-radius: 24px;
    padding: 10px 40px 50px;
    box-sizing: border-box;
    max-width: 100%;
    position: relative;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    font-family: 'Instrument Sans', sans-serif;
    margin-bottom: 2px;
}

/* Neumorphic Input Fields - Pressed In Effect */
.form-input,
.form-textarea {
    padding: 14px 18px;
    font-size: 16px;
    font-family: 'Instrument Sans', sans-serif;
    color: #1a1a1a;
    background-color: #d0d0d0;
    border: none;
    border-radius: 12px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    /* Neumorphic pressed-in effect: darker shadow top/left, lighter highlight bottom/right */
    box-shadow: 
        inset 3px 3px 6px rgba(0, 0, 0, 0.2),
        inset -3px -3px 6px rgba(255, 255, 255, 0.5);
}

/* Name input - shorter width */
.form-group:first-of-type .form-input {
    width: 55%;
    max-width: 280px;
}

/* Mail input - wider width, almost full */
.form-group:nth-of-type(2) .form-input {
    width: 90%;
    max-width: 600px;
}

/* Message textarea - full width */
.form-textarea {
    width: 100%;
    resize: vertical;
    min-height: 140px;
    font-family: 'Instrument Sans', sans-serif;
    line-height: 1.6;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    /* Enhanced pressed-in effect on focus */
    box-shadow: 
        inset 4px 4px 8px rgba(0, 0, 0, 0.25),
        inset -4px -4px 8px rgba(255, 255, 255, 0.6);
    background-color: #d0d0d0;
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: #888;
    font-weight: 400;
    font-size: 16px;
    opacity: 1;
}

/* Submit Button Wrapper - centers button below form */
.submit-button-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 32px;
    width: 100%;
}

/* Submit Button */
.submit-btn {
    position: relative;
    display: inline-block;
    padding: 0;
    background: transparent;
    border: none;
    cursor: pointer;
    width: fit-content;
    height: auto;
    transform: scale(0.85);
    transform-origin: center;
}

/* Button Images - Stacked with absolute positioning */
.btn-image {
    display: block;
    width: auto;
    height: auto;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

/* Default state: white button visible, black button hidden */
.btn-image-default {
    opacity: 1;
    position: relative;
}

.btn-image-hover {
    opacity: 0;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Hover state: white button hidden, black button visible */
.submit-btn:hover .btn-image-default {
    opacity: 0;
}

.submit-btn:hover .btn-image-hover {
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-main {
        padding: 40px 20px 60px;
    }

    .contact-heading {
        font-size: 28px;
        margin-bottom: 30px;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .profile-card {
        width: 100%;
        max-width: 500px;
        height: auto;
        min-height: 300px;
    }

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

    .profile-info {
        align-items: center;
    }

    .view-profile-btn {
        align-self: center;
    }

    .email-heading {
        font-size: 24px;
    }

    .contact-form-card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .contact-main {
        padding: 30px 15px 50px;
    }

    .contact-heading {
        font-size: 24px;
        text-align: center !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .profile-card {
        width: 100%;
        max-width: 100%;
        height: auto;
        min-height: 280px;
        padding: 24px;
    }

    .profile-name {
        font-size: 24px;
    }

    .email-heading {
        font-size: 20px;
    }

    .contact-form-card {
        padding: 24px 16px;
    }
}

/* ============================================
   MOBILE TOUCH EVENT FIXES
   ============================================ */

/* Ensure all interactive elements are touchable */
.submit-btn,
.view-profile-btn,
.contact-form a,
.profile-card a {
    pointer-events: auto !important;
    touch-action: manipulation !important;
    -webkit-tap-highlight-color: rgba(255, 255, 255, 0.2);
}

/* Ensure form inputs are touchable */
.form-input,
.form-textarea {
    touch-action: manipulation;
}

@media (max-width: 768px) {
    .contact-form-card {
        padding-top: 0.5px; /* Même partout */
    }
}
@media (max-width: 480px) {
    .contact-form-card {
        padding-top: 0.5px; /* Légèrement moins */
    }
}

