/* Styles améliorés pour la section contact */

.contact {
    padding: 100px 0;
    background-color: var(--color-light);
    position: relative;
}

.contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(140, 122, 230, 0.1) 0%, rgba(255, 107, 107, 0.1) 100%);
    z-index: 1;
}

.contact .container {
    position: relative;
    z-index: 2;
}

.contact .section-header h2 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.contact .section-header p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto 30px;
}

.contact-content {
    display: flex;
    gap: 40px;
    align-items: stretch;
}

.contact-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.contact-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    transition: var(--transition);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.contact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    width: 60px;
    height: 60px;
    min-width: 60px;
    background-color: var(--color-bg);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
    margin-right: 20px;
    transition: var(--transition);
}

.contact-card:hover .contact-icon {
    background-color: var(--color-accent);
    transform: rotate(360deg);
    transition: transform 0.5s ease, background-color 0.3s ease;
}

.contact-card h3 {
    font-size: 1.3rem;
    color: var(--color-text);
    margin-bottom: 5px;
}

.contact-card p {
    font-size: 1rem;
    color: var(--color-text);
    opacity: 0.8;
}

.contact-card a {
    color: var(--color-bg);
    font-weight: 500;
}

.contact-card a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.contact-map {
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.contact-form-container {
    flex: 1;
    background-color: white;
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.contact-form-container h3 {
    font-size: 1.8rem;
    color: var(--color-text);
    margin-bottom: 30px;
    text-align: center;
    position: relative;
    padding-bottom: 15px;
}

.contact-form-container h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--color-accent);
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    position: relative;
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: var(--color-text);
    font-weight: 500;
    position: static;
}

.form-group input:focus ~ label,
.form-group input:valid ~ label,
.form-group select:focus ~ label,
.form-group select:valid ~ label {
    top: -10px;
    left: 10px;
    font-size: 0.8rem;
    background-color: white;
    padding: 0 5px;
    color: var(--color-bg);
    font-weight: 600;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 15px;
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-bg);
    box-shadow: 0 0 0 3px rgba(140, 122, 230, 0.2);
    outline: none;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    min-width: 20px;
    margin-top: 2px;
}

.checkbox-group label {
    position: static;
    font-size: 0.95rem;
    color: var(--color-text);
    opacity: 0.8;
    cursor: pointer;
    margin-bottom: 0;
}

.checkbox-group a {
    color: var(--color-bg);
    font-weight: 600;
    text-decoration: none;
}

.checkbox-group a:hover {
    color: var(--color-accent);
    text-decoration: underline;
}

.btn-full {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    margin-top: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.btn-full:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(255, 107, 107, 0.3);
}

.success-message {
    background-color: #d4edda;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border-left: 4px solid #155724;
    margin-top: 20px;
}

.error-message {
    background-color: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
    border-left: 4px solid #721c24;
    margin-top: 20px;
}

/* Animation */
.contact-card {
    opacity: 0;
    animation: fadeInUp 0.6s forwards;
}

.contact-card:nth-child(1) { animation-delay: 0.1s; }
.contact-card:nth-child(2) { animation-delay: 0.3s; }
.contact-card:nth-child(3) { animation-delay: 0.5s; }
.contact-map { animation-delay: 0.7s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Styles */
@media screen and (max-width: 992px) {
    .contact-content {
        flex-direction: column;
    }
    
    .contact-form-container {
        margin-top: 30px;
    }
}

@media screen and (max-width: 768px) {
    .contact .section-header h2 {
        font-size: 2.5rem;
    }
    
    .contact-card {
        padding: 20px;
    }
    
    .contact-form-container {
        padding: 30px;
    }
}

@media screen and (max-width: 576px) {
    .contact .section-header h2 {
        font-size: 2rem;
    }
    
    .contact-card {
        padding: 15px;
    }
    
    .contact-icon {
        width: 50px;
        height: 50px;
        min-width: 50px;
        font-size: 20px;
    }
    
    .contact-form-container {
        padding: 20px;
    }
    
    .contact-form-container h3 {
        font-size: 1.5rem;
    }
} 