/* Contact Section */
.contact {
    padding: 80px 0;
    background-color: var(--light-color);
    position: relative;
    overflow: hidden;
    min-height: 600px;
}

.contact__content {
    display: flex;
    gap: 88px;
}

.contact__text {
    flex: 1;
    margin-left: 32px;
    margin-bottom: 40px;
}

.contact__text h2 {
    font-family: var(--typo-title);
    font-size: 2.4rem;
    font-weight: 500;
    margin-bottom: 16px;
    color: var(--title-color);
    position: relative;
    padding-bottom: 20px;
    display: inline-block;
    line-height: 1.2;
    text-align: justify;
}

.contact__text p {
    font-family: var(--typo-text);
    font-size: 1.05rem;
    line-height: 1.85;
    color: var(--text-color);
    text-align: justify;
}

.contact__form {
    flex: 1;
    background-color: var(--white-color);
    padding: 40px;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

@media (max-width: 1024px) {
    .contact__form {
        margin-left: 32px;
    }

    .contact__text {
        margin-right: 32px;
    }
}
@media (max-width: 768px) {
    .contact__text {
        margin-right: 24px;
    }
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-family: var(--typo-text);
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    height: 150px;
    resize: vertical;
}


/* — Ligne verticale — */
.contact__animation-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 2px;
    height: 0;
    background: linear-gradient(180deg, var(--primary-color), var(--secondary-color));
    transform: translateX(-50%) translateY(-50%);
    transform-origin: center;
    opacity: 0;
    z-index: 1;
    transition:
        height 0.8s cubic-bezier(0.25, 0.1, 0.25, 1) 0s,
        opacity 0.3s ease 0s,
        left 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s,
        transform 1.4s cubic-bezier(0.4, 0, 0.2, 1) 0.4s;
}

.contact.animate-line .contact__animation-line {
    height: 80%;
    opacity: 1;
}

@media (max-width: 1024px) {
    .contact.animate-line .contact__animation-line {
        height: 85%;
    }
}

@media (max-width: 768px) {
    .contact.animate-line .contact__animation-line {
        height: 87%;
    }
}


.contact.animate-line-final .contact__animation-line {
    left: calc((100% - min(1400px, 100%)) / 2 + 20px);
    transform: translateX(0) translateY(-50%);
}

/* Contenu masqué par défaut */
.contact__content>* {
    opacity: 0;
    transform: translateX(-36px);
    filter: blur(4px);
    transition:
        opacity 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
        transform 0.7s cubic-bezier(0.25, 0.1, 0.25, 1),
        filter 0.7s ease;
}

/* Le form apparaît en premier */
.contact.animate-content .contact__form {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
    transition-delay: 0s;
}

/* Le texte apparaît ensuite */
.contact.animate-content .contact__text {
    opacity: 1;
    transform: translateX(0);
    filter: blur(0);
    transition-delay: 1s;
}


/* Politique de confidentialité */
.form-consent {
    margin-bottom: 24px;
}

.consent-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    user-select: none;
}

.consent-label input {
    position: absolute;
    opacity: 0;
}

.consent-checkbox {
    width: 20px;
    height: 20px;
    flex-shrink: 0;

    border: 1px solid var(--primary-color);
    position: relative;
    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-top: 2px;

    transition: all 0.4s ease;

}

.consent-checkbox::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--primary-color);
    opacity: 0;
    transition: opacity 0.4s ease;
    z-index: 0;
    pointer-events: none;
}

.consent-checkmark {
    width: 10px;
    height: 10px;
    color: var(--white-color);
    position: relative;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

/* État coché */
.consent-label input:checked+.consent-checkbox::after {
    opacity: 1;
}

.consent-label input:checked+.consent-checkbox .consent-checkmark {
    opacity: 1;
}

.consent-text {
    font-family: var(--typo-text);
    font-size: 0.85rem;
    line-height: 1.6;
    color: var(--text-color);
}

.consent-text a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid var(--primary-color);
    transition: all 0.4s ease;
}

.consent-text a:hover {
    opacity: 0.7;
}