/* Styles spécifiques pour la page de contact */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* Bouton de contact actif */
.contact-btn.active {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    pointer-events: none;
    cursor: default;
}

.contact-btn.active:hover {
    transform: none;
    box-shadow: none;
}

/* Section de contact */
.contact-section {
   
    margin-bottom: 40px;
  
width: 100%;
    
    margin-bottom: 60px;
}

.contact-section h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 30px;
    color: white;
 
}



.contact-description {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
    margin-bottom: 40px;
  
}

/* Formulaire de contact */
.contact-form {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 16px;
    border-radius: 6px;
border: 0.5px solid rgba(255, 234, 255, 0.50);
background: #2A2930;
box-shadow: 0 4px 16px 0 rgba(0, 0, 0, 0.12);
padding: 24px;
    width: 100%;
    margin: 0 auto;
}

.form-group {
    display: flex;
    flex-direction: column;
    flex: 0 1 48%;
}

.contact-form input {
border-radius: 6px;
border: 0.5px solid #FFEAFF;
background: #363342;
    padding: 20px 20px;
    font-size: 16px;
    font-family: 'Inter', sans-serif;
    color: #333;
    transition: all 0.3s ease;
    width: 100%;
}

.contact-form input::placeholder {
    color: #999;
    font-weight: 400;
}

.contact-form input:focus {
    outline: none;
    border-color: rgba(139, 92, 246, 0.5);
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.1);
}

.contact-form input:hover {
    border-color: rgba(139, 92, 246, 0.3);
    background: rgba(255, 255, 255, 0.95);
}

/* Bouton d'envoi */
.submit-btn {

    color: #fff;
    border: none;
    padding: 14px 32px;
  border-radius: 6px;
border: 0.5px solid #FFEAFF;
background: linear-gradient(180deg, #8327C7 0%, #5E1FA6 100%);
    font-weight: 700;
    font-size: 18px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
    font-family: 'Inter', sans-serif;
    width: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(139, 92, 246, 0.4);
    background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%);
}

.submit-btn:active {
    transform: translateY(0);
    box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

/* Popup de remerciement */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.popup-overlay.show {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    background: linear-gradient(135deg, #1a1b47 0%, #2d1b69 100%);
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s ease;
}

.popup-overlay.show .popup-content {
    transform: scale(1) translateY(0);
}

.popup-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    margin: 0 auto 20px auto;
    font-weight: 700;
}

.popup-content h3 {
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 15px;
}

.popup-content p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.5;
    margin-bottom: 30px;
}

.popup-close-btn {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
}

.popup-close-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(139, 92, 246, 0.4);
}

/* États de chargement du formulaire */
.contact-form.loading .submit-btn {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.contact-form.loading .submit-btn:hover {
    transform: none;
    box-shadow: none;
}

.submit-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    display: inline-block;
    animation: spin 1s linear infinite;
    margin-left: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .contact-section {
        padding: 30px 20px;
        margin-bottom: 40px;
    }
    
    .contact-section h2 {
        font-size: 32px;
      
    }
    
    .contact-description {
       
        font-size: 14px;
    }

    .contact-form {
        flex-direction: column;
    }
    
    .contact-form input {
        padding: 14px 16px;
        font-size: 16px; /* Garde la même taille sur mobile pour éviter le zoom */
    }
    
    .submit-btn {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .popup-content {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .popup-content h3 {
        font-size: 20px;
    }
    
    .popup-content p {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .contact-section h2 {
        font-size: 28px;
    }
    
    .popup-icon {
        width: 60px;
        height: 60px;
        font-size: 24px;
        margin-bottom: 15px;
    }
}

/* Animation d'apparition pour le formulaire */
.contact-form {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.6s ease forwards;
}

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Validation en temps réel */
.contact-form input.valid {
    border-color: #22c55e;
    background: rgba(34, 197, 94, 0.1);
}

.contact-form input.invalid {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}

/* Messages d'erreur (optionnel pour plus tard) */
.error-message {
    color: #ef4444;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group.error .error-message {
    display: block;
}

.form-group.error input {
    border-color: #ef4444;
    background: rgba(239, 68, 68, 0.1);
}