/* Styles spécifiques pour la page contact */

/* Hero section spécifique pour la page contact */
.contact-hero {
    background: linear-gradient(135deg, #4facfe 0%, #43cbff 100%);
    color: #fff;
    padding: 6rem 2rem;
    text-align: center;
    border-radius: 0 0 50px 50px;
    margin-bottom: 5rem;
    position: relative;
    overflow: hidden;
}

.contact-hero::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0) 70%);
    opacity: 0.8;
    animation: pulse 15s infinite linear;
}

/* Container pour les informations de contact et le formulaire */
.contact-container {
    display: flex;
    flex-wrap: wrap;
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

/* Cartes d'informations de contact */
.contact-info {
    flex: 1;
    min-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.contact-card {
    background: #fff;
    border-radius: 20px;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.contact-card:nth-child(1) {
    background: linear-gradient(135deg, #ff61a6 0%, #ff4d79 100%);
    color: #fff;
}

.contact-card:nth-child(2) {
    background: linear-gradient(135deg, #43cbff 0%, #4facfe 100%);
    color: #fff;
}

.contact-card:nth-child(3) {
    background: linear-gradient(135deg, #a9f5b3 0%, #58e8b8 100%);
    color: #fff;
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.contact-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    display: inline-block;
}

.contact-card h3 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
    font-weight: 700;
}

.contact-card p {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* Container pour le formulaire de contact */
.contact-form-container {
    flex: 2;
    min-width: 320px;
    background: #fff;
    border-radius: 20px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.contact-form-container h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(to right, #ff4d79, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff4d79;
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-row {
    display: flex;
    gap: 1rem;
}

.form-row .form-group {
    flex: 1;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: #444;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 1rem;
    border: 2px solid #eee;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background-color: #f9f9f9;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #ff4d79;
    box-shadow: 0 0 0 4px rgba(255, 77, 121, 0.1);
    background-color: #fff;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkbox-group input {
    width: auto;
}

.checkbox-group label {
    margin-bottom: 0;
    font-size: 0.9rem;
}

/* Section carte */
.map-section {
    max-width: 1200px;
    margin: 0 auto 5rem;
    padding: 0 2rem;
}

.map-section h2 {
    font-size: 2rem;
    margin-bottom: 2rem;
    font-weight: 700;
    text-align: center;
    background: linear-gradient(to right, #ff4d79, #ff6b6b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    color: #ff4d79;
}

.map-container {
    width: 100%;
    height: 400px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.map-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #555;
}

.map-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
}

/* Messages de feedback du formulaire */
.form-message {
    padding: 1rem;
    margin-bottom: 1rem;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
    animation: slideIn 0.3s ease-out;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

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

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Note pour les champs obligatoires */
.form-note {
    font-size: 0.9rem;
    color: #666;
    margin-top: 1rem;
    text-align: center;
    font-style: italic;
}

/* États du bouton de soumission */
.submit-btn {
    background: linear-gradient(135deg, #ff4d79 0%, #ff6b6b 100%);
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 5px 15px rgba(255, 77, 121, 0.3);
    position: relative;
    overflow: hidden;
}

.submit-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 77, 121, 0.4);
}

.submit-btn:active:not(:disabled) {
    transform: translateY(0);
}

.submit-btn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
    transform: none;
}

/* Animation pour le bouton pendant l'envoi */
.submit-btn:disabled::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid transparent;
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Améliorations responsive */
@media (max-width: 768px) {
    .contact-container {
        flex-direction: column;
    }
    
    .form-row {
        flex-direction: column;
    }
    
    .contact-form-container {
        padding: 2rem;
    }
    
    .contact-card {
        padding: 1.5rem;
    }
    
    .map-container {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .contact-hero {
        padding: 4rem 1rem;
    }
    
    .contact-form-container {
        padding: 1.5rem;
    }
    
    .contact-card {
        padding: 1rem;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 0.8rem;
    }
}