/* Contact Page Styles */

.contact-page {
    padding: 0;
    height: auto;
    min-height: calc(100vh - 120px);
    overflow: visible;
}

/* ========== Colonne gauche - FAQ + Calendly ========== */
.contact-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    height: auto;
    overflow-y: visible;
}

.contact-calendly {
    order: 1;
    margin-top: 0;
}

.contact-faq {
    order: 2;
}

/* FAQ Stack */
.contact-faq {
	display: flex;
	flex-direction: column;
	gap: 0;
	width: 100%;
	border-radius: 5px;
}

/* FAQ Item */
.faq-item {
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
    cursor: pointer;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    border-radius: 5px;
}

.faq-item:first-child {
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.faq-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* FAQ Header */
.faq-header {
    display: flex;
    align-items: center;
    padding: 0.8rem 1.2rem;
    position: relative;
    gap: 1rem;
}

/* Bande de couleur à gauche */
.faq-color {
    width: 4px;
    height: 100%;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 2px 0 0 2px;
}

.faq-color--primary { background: var(--primary); }
.faq-color--secondary { background: var(--secondary); }
.faq-color--danger { background: var(--danger); }
.faq-color--success { background: var(--success); }

.faq-title {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    line-height: 1.3;
    color: var(--text-color);
    margin: 0;
    flex: 1;
    padding-left: 0.5rem;
}

.faq-icon {
    font-size: 1.4rem;
    font-weight: 300;
    color: var(--primary);
    transition: transform 0.3s ease;
    flex-shrink: 0;
    line-height: 1;
}

/* FAQ Body - hidden by default */
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 1.2rem 0 1.7rem;
    font-size: 1.15rem;
    line-height: 1.55;
    color: var(--text-color);
}

.faq-body ul {
    padding-left: 1.2rem;
    margin: 0.5rem 0;
}

.faq-body ul li {
    margin-bottom: 0.25rem;
}

.faq-body p {
    margin-bottom: 0.5rem;
}

/* FAQ Item open state */
.faq-item--open {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.faq-item--open .faq-icon {
    transform: rotate(45deg);
}

.faq-item--open .faq-body {
    max-height: 300px;
    padding: 0 1.2rem 1rem 1.7rem;
}

/* ========== Calendly embed ========== */
.contact-calendly {
    display: flex;
    flex-direction: column;
    margin-top: 0;
}

.calendly-title {
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--primary);
    margin-bottom: 0.6rem;
}

.contact-calendly .calendly-inline-widget {
    width: 100%;
    height: 700px !important;
    min-height: 700px;
    overflow: hidden;
    flex: none;
    position: relative;
}

.contact-calendly .calendly-inline-widget iframe {
    width: 100% !important;
    height: calc(100% + 66px) !important;
    transform: translateY(-66px);
    transform-origin: top;
}

/* ========== Colonne droite - Sidebar sticky ========== */
.contact-sidebar {
    position: sticky;
    top: 60px;
    display: flex;
    align-items: center;
    height: calc(100vh - 120px);
    overflow: visible;
}

.contact-sidebar-wrapper {
    position: relative;
    top: auto;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100%;
    overflow: visible;
}

/* SVG Morph Background */
.contact-morph-wrap {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    z-index: 0;
    overflow: visible;
}

.contact-morph {
    width: 120%;
    height: auto;
    min-width: 500px;
    fill: #4e868a;
    opacity: 0.9;
}

/* Contenu du formulaire */
.contact-sidebar-inner {
	position: relative;
	z-index: 1;
	padding: 1.5rem;
	background: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
    box-shadow: 0 4px 12px rgb(128, 128, 128, 0.1);
	max-width: 460px;
	width: 100%;
	overflow: visible;
}

/* Coordonnées */
.contact-info {
    margin-bottom: 1rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.contact-info-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.4rem;
    font-weight: 700;
}

.contact-info p {
    margin-bottom: 0.2rem;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-info a {
    color: var(--danger);
    word-break: break-word;
    font-size: 0.95rem;
}

.contact-info a:hover {
    color: var(--primary);
}

/* Formulaire */
.contact-form-title {
    font-size: 1.2rem;
    color: var(--primary);
    margin-bottom: 0.8rem;
    font-weight: 700;
}

.contact-form .form-group {
    margin-bottom: 0.6rem;
}

.contact-form .col-form-label {
    font-weight: 600;
    font-size: 0.9rem;
    padding-top: 0.35rem;
    padding-bottom: 0.35rem;
}

.contact-form .form-control {
    padding: 0.4rem 0.7rem;
    font-size: 0.9rem;
}

.contact-form textarea.form-control {
    min-height: 60px;
}

.contact-form .input-group-text {
    padding: 0.4rem 0.7rem;
}

.contact-form .input-group-text i {
    font-size: 0.9rem;
}

.contact-form .btn-danger {
    padding: 0.6rem 1.8rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-top: 0.5rem;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

/* reCAPTCHA responsive */
.contact-form .g-recaptcha {
    transform: scale(0.78);
    transform-origin: 0 0;
}

/* ========== Responsive ========== */
@media screen and (max-width: 991px) {
    .contact-page {
        height: auto;
        overflow: visible;
        padding: 1rem;
    }
    
    .contact-content {
        padding: 1rem;
        height: auto;
        overflow: visible;
        order: 2;
    }
    
    .contact-sidebar {
        position: relative;
        top: auto;
        order: 1;
        margin-bottom: 2rem;
        height: auto;
        overflow: visible;
    }
    
    .contact-sidebar-wrapper {
        position: relative;
        min-height: 450px;
    }
    
    .contact-morph {
        min-width: 400px;
    }
    
    .contact-sidebar-inner {
        max-width: 100%;
    }

    .contact-calendly .calendly-inline-widget {
        min-height: 400px;
    }
}

@media screen and (max-width: 767px) {
    .faq-header {
        padding: 0.7rem 1rem;
    }

    .faq-title {
        font-size: 1.1rem;
    }

    .faq-body {
        font-size: 1rem;
    }

    .faq-item--open .faq_body {
        max-height: 350px;
    }
    
    .contact-sidebar-inner {
        padding: 1.2rem;
        max-width: 100%;
    }
    
    .contact-sidebar-wrapper {
        min-height: 400px;
    }
    
    .contact-morph {
        min-width: 350px;
        width: 140%;
    }
    
    .contact-form .g-recaptcha {
        transform: scale(0.72);
    }

    .contact-calendly .calendly-inline-widget {
        min-height: 350px;
    }

    .contact-info-title,
    .contact-form-title {
        font-size: 1.3rem;
    }

    .contact-info p {
        font-size: 1rem;
    }

    .contact-info a {
        font-size: 1rem;
    }

    .contact-form .col-form-label {
        font-size: 1rem;
    }

    .contact-form .form-control {
        font-size: 1rem;
        padding: 0.5rem 0.75rem;
    }

    .contact-form .btn-danger {
        font-size: 1rem;
        padding: 0.7rem 1.5rem;
    }

    .calendly-title {
        font-size: 1.2rem;
    }
}

@media screen and (max-width: 576px) {
    .faq-title {
        font-size: 1rem;
    }

    .faq-body {
        font-size: 0.95rem;
    }

    .contact-form .col-form-label {
        text-align: left !important;
        font-size: 0.95rem;
    }
    
    .contact-form .form-group.row {
        flex-direction: column;
    }
    
    .contact-form .form-group .col-4,
    .contact-form .form-group .col-8 {
        max-width: 100%;
        flex: 0 0 100%;
    }
    
    .contact-form .form-group .col-4 {
        margin-bottom: 0.2rem;
    }
    
    .contact-morph-wrap {
        display: none;
    }
    
    .contact-sidebar-inner {
        background: rgba(255, 255, 255, 0.98);
        border: 2px solid var(--primary);
    }

    .contact-form .form-control {
        font-size: 0.95rem;
    }
}

@media screen and (min-width: 992px) {
    .contact-content {
        min-height: auto;
        justify-content: flex-start;
    }

    .contact-calendly {
        margin-top: 0;
    }
}

@media screen and (max-width: 991px) {
    .contact-calendly {
        margin-top: 1.2rem;
    }
}
