/* CONTACT.CSS - Hero Section with Integrated Contact Form */

/* Hero Contact Section */
.hero-contact {
    background: linear-gradient(135deg, rgba(0,0,0,0.75), rgba(0,0,0,0.55));
    background-size: cover;
    background-position: center;
    background-attachment: scroll;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    position: relative;
    overflow: hidden;
    padding: 100px 20px 60px;
}

.hero-contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    z-index: 1;
}

.hero-contact-content {
    max-width: 1200px;
    width: 100%;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
    animation: fadeInUp 1.2s ease-out;
    margin-top: -80px;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Hero Text Section - Match About page style */
.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.hero-text h1 {
    font-size: clamp(2.5rem, 5vw, 4rem);
    font-weight: 500;
    margin-bottom: 20px;
    margin-top: -60px; /* Move title up by 60px on desktop */
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.9);
    color: white;
}

.hero-description {
    font-size: clamp(1.1rem, 2.5vw, 1.4rem);
    opacity: 0.95;
    line-height: 1.5;
    text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.8);
    font-weight: 400;
    margin-bottom: 0;
}

/* Hero Form Container */
.hero-form-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Form Styles */
.hero-contact-form .form-group {
    margin-bottom: 20px;
    text-align: left; /* NOUVEAU: Force l'alignement à gauche pour tout le groupe */
}

.hero-contact-form .form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #2c3e50;
    font-size: 0.95rem;
    text-align: left; /* NOUVEAU: Labels alignés à gauche */
}

.hero-contact-form .form-group input,
.hero-contact-form .form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e9ecef;
    border-radius: 10px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    background: #fff;
    box-sizing: border-box;
    font-family: inherit;
    color: #333;
    text-align: left; /* NOUVEAU: Texte des inputs aligné à gauche */
}

.hero-contact-form .form-group input:focus,
.hero-contact-form .form-group textarea:focus {
    outline: none;
    border-color: #7f9b4d;
    box-shadow: 0 0 0 3px rgba(127, 155, 77, 0.1);
}

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

.hero-contact-form .form-submit {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    margin-top: 15px;
    background: #7f9b4d;
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.hero-contact-form .form-submit:hover {
    background: #6d8540;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(127, 155, 77, 0.4);
}

/* Form Messages */
.form-success,
.form-error {
    padding: 12px 18px;
    border-radius: 10px;
    margin-bottom: 20px;
    display: none;
    font-weight: 500;
    text-align: left;
    font-size: 0.9rem;
}

.form-success {
    background: rgba(127, 155, 77, 0.1);
    border: 1px solid rgba(127, 155, 77, 0.3);
    color: #7f9b4d;
}

.form-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

/* Loading state for submit button */
.form-submit.loading {
    background: #999;
    cursor: not-allowed;
    transform: none;
}

.form-submit.loading:hover {
    background: #999;
    transform: none;
    box-shadow: none;
}

/* Field validation styles */
.field-error {
    color: #e74c3c;
    font-size: 0.8rem;
    margin-top: 5px;
    padding-left: 5px;
    text-align: left; /* NOUVEAU: Messages d'erreur alignés à gauche */
}

/* Mobile Contact Button */
.mobile-contact-button {
    display: none;
    margin-top: 30px;
}

.mobile-cta-btn {
    background: #7f9b4d;
    color: white;
    border: 2px solid #7f9b4d;
    padding: 15px 35px;
    border-radius: 30px;
    font-weight: 600;
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}

.mobile-cta-btn:hover {
    background: #6d8540;
    border-color: #6d8540;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}

/* Mobile Responsive */
@media (max-width: 968px) {
    .hero-contact-content {
        grid-template-columns: 1fr;
        gap: 0;
        text-align: center;
        margin-top: 0;
    }
    
    .hero-contact {
        padding: 80px 20px 40px;
    }
    
    .hero-text h1 {
        margin-top: 0; /* Reset the negative margin on mobile */
    }
    
    /* Show mobile button, hide desktop form initially */
    .mobile-contact-button {
        display: block;
    }
    
    .hero-form-container {
        display: none;
        margin-top: 30px;
        opacity: 0;
        transform: translateY(20px);
        transition: all 0.4s ease;
        text-align: left; /* NOUVEAU: Force l'alignement à gauche même quand le conteneur parent est centré */
    }
    
    .hero-form-container.show {
        display: block;
        opacity: 1;
        transform: translateY(0);
    }
    
    /* Hide button when form is shown */
    .mobile-contact-button.hide {
        display: none;
    }
    
    /* Ensure text section comes first on mobile */
    .hero-text {
        order: 1;
    }
    
    .hero-form-container {
        order: 2;
    }
}

@media (max-width: 768px) {
    .hero-contact {
        padding: 70px 15px 30px;
    }

    .hero-text h1 {
        font-size: clamp(2.2rem, 5vw, 3.5rem);
        margin-top: 0; /* Position normale - pas de décalage */
        margin-bottom: 20px;
    }

    .hero-description {
        font-size: clamp(1rem, 2.5vw, 1.3rem);
        margin-bottom: 30px;
    }

    .hero-form-container {
        padding: 30px 25px;
    }

    .hero-contact-content {
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .hero-contact {
        padding: 60px 10px 20px;
    }

    .hero-text h1 {
        font-size: 2.2rem;
        margin-top: 0; /* Position normale - pas de décalage */
        margin-bottom: 15px;
    }

    .hero-description {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .hero-form-container {
        padding: 25px 20px;
    }

    .hero-contact-content {
        gap: 30px;
    }
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}