.contact-section {
    padding: 80px 20px;
    background-color: #f5f5f5;
}

.contact-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: white;
    padding: 40px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.contact-container h2 {
    text-align: center;
    margin-bottom: 20px;
    color: #333;
    font-size: 2.5rem;
}

.contact-intro {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

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

.contact-header h1 {
    position: relative;
    display: inline-block;
}

.vertical-line {
    position: absolute;
    top: 0;
    right: -30px;
    width: 3px;
    height: 0;
    background-color: black;
    animation: drawLine 1s ease forwards;
    animation-delay: 0.5s;
}


.form-row {
    display: flex;
    gap: 20px;
}

.form-group {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #007bff;
}

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

.submit-btn {
    background-color: #007bff;
    color: white;
    padding: 15px 30px;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
    align-self: center;
    margin-top: 20px;
}

.submit-btn:hover {
    background-color: #0056b3;
}

.contact-hero {
    height: 600px; /* Hauteur par défaut pour desktop */
    background-image: url('medias/btp.jpg'); /* Image de fond */
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 670px;
    background: rgba(0, 0, 0, 0.6);
}

.contact-info {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-header h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.contact-header .subtitle {
    font-size: 1.5rem;
    opacity: 0.9;
}

.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.2rem;
}

.contact-item i {
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.contact-item a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-item:hover i {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.contact-item:hover a {
    color: #007bff;
}

@keyframes drawLine {
    from {
        height: 0;
    }
    to {
        height: 100%;
    }
}

/* Responsive */
@media screen and (max-width: 992px) {
    .contact-info {
        flex-direction: column;
        text-align: center;
        gap: 30px;
    }

    .contact-header h1 {
        font-size: 3rem;
    }

    .contact-header .subtitle {
        font-size: 1.3rem;
    }
}

/* Responsive */
@media screen and (max-width: 768px) {
    .contact-section {
        padding: 60px 15px;
    }

    .contact-container {
        padding: 30px 20px;
    }

    .contact-container h2 {
        font-size: 2rem;
    }

    .form-row {
        flex-direction: column;
        gap: 15px;
    }

    .submit-btn {
        width: 100%;
    }

    .contact-hero {
        height: 600px; /* Ajustez la hauteur pour mobile/tablette */
    }

    .contact-header h1 {
        font-size: 2.5rem;
    }

    .contact-header .subtitle {
        font-size: 1.1rem;
    }

    .contact-item {
        font-size: 1.1rem;
    }
}

@media screen and (max-width: 480px) {
    .contact-section {
        padding: 40px 10px;
    }

    .contact-container {
        padding: 20px 15px;
    }

    .contact-container h2 {
        font-size: 1.8rem;
    }

    .contact-hero {
        min-height: 250px;
    }

    .contact-header h1 {
        font-size: 2rem;
    }

    .contact-header .subtitle {
        font-size: 1rem;
    }

    .contact-item {
        font-size: 1rem;
    }

    .contact-item i {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }
}


/* S'assurer que le CAPTCHA est responsive */
@media screen and (max-width: 400px) {
    .g-recaptcha {
        transform-origin: left top;
        transform: scale(0.9);
    }
}

@media screen and (max-width: 320px) {
    .g-recaptcha {
        transform: scale(0.85);
    }
}