/* Popup Contact - Styles */

/* Overlay */
.terreaux-contact-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 1 !important; /* Forcer l'opacité */
}

/* Container du popup */
.terreaux-contact-popup-container {
    background: #fff;
    border-radius: 12px;
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

/* Animation shake */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-10px); }
    20%, 40%, 60%, 80% { transform: translateX(10px); }
}

/* Bouton Contact */
.terreaux-contact-btn,
.open-contact-popup {
    display: inline-flex;
    align-items: center;
    background: none;
    color: #000;
    border: none;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.terreaux-contact-btn:hover,
.open-contact-popup:hover {
    transform: translateY(-2px);
	background:none!important;
}

.terreaux-contact-btn .dashicons,
.open-contact-popup .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
}

.terreaux-contact-popup-container.shake {
    animation: shake 0.5s;
}

/* Bouton Contact icône seule */
.open-contact-popup.icon-only {
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    color: #000;
    transition: all 0.3s ease;
}

.open-contact-popup.icon-only:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    transform: none;
    box-shadow: none;
}

.open-contact-popup.icon-only .bb-icon-l {
    font-size: 18px;
	color:#000;
}

/* Style pour le header */
.header-contact-button .open-contact-popup.icon-only {
    background: transparent;
}


/* Bouton fermer */
.terreaux-contact-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 32px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: all 0.3s;
    background: none;
    border: none;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.terreaux-contact-popup-close:hover {
    color: #333;
    transform: rotate(90deg); /* ✨ Rotation au survol */
	background:unset!important;
	background-color:unset!important;
}

/* Contenu du popup */
.terreaux-contact-popup-content {
    padding: 40px;
}

/* Header */
.terreaux-contact-popup-header {
    text-align: center;
    margin-bottom: 30px;
}

.terreaux-contact-popup-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.terreaux-contact-popup-icon .dashicons {
    font-size: 30px;
    width: 30px;
    height: 30px;
    color: #fff;
}

.terreaux-contact-popup-header h2 {
    margin: 0 0 10px;
    font-size: 28px;
    color: #333;
}

.terreaux-contact-popup-subtitle {
    margin: 0;
    color: #666;
    font-size: 16px;
}

/* Formulaire */
.terreaux-contact-form-group {
    margin-bottom: 20px;
}

.terreaux-contact-form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.terreaux-contact-form-group label .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    margin-right: 5px;
    vertical-align: middle;
    color: #667eea;
}

.terreaux-contact-form-group input[type="text"],
.terreaux-contact-form-group input[type="email"],
.terreaux-contact-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s ease;
    font-family: inherit;
}

.terreaux-contact-form-group input[type="text"]:focus,
.terreaux-contact-form-group input[type="email"]:focus,
.terreaux-contact-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

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

.terreaux-contact-field-description {
    margin: 5px 0 0;
    font-size: 13px;
    color: #666;
}

/* Messages */
.terreaux-contact-message {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
}

.terreaux-contact-message.success {
    background: #e8f5e9;
    color: #2e7d32;
    border-left: 4px solid #4caf50;
}

.terreaux-contact-message.error {
    background: #ffebee;
    color: #c62828;
    border-left: 4px solid #f44336;
}

/* Boutons */
.terreaux-contact-form-actions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 30px;
}

.terreaux-contact-btn-primary,
.terreaux-contact-btn-secondary {
    padding: 12px 24px;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.terreaux-contact-btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.terreaux-contact-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.terreaux-contact-btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.terreaux-contact-btn-secondary {
    background: #f5f5f5;
    color: #666;
}

.terreaux-contact-btn-secondary:hover {
    background: #e0e0e0;
}

.terreaux-contact-form-note {
    text-align: center;
    margin-top: 20px;
    font-size: 13px;
    color: #999;
}

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

.dashicons.spinning {
    animation: spin 1s linear infinite;
}

/* Responsive */
@media (max-width: 768px) {
    .terreaux-contact-popup-content {
        padding: 30px 20px;
    }
    
    .terreaux-contact-popup-header h2 {
        font-size: 24px;
    }
    
    .terreaux-contact-form-actions {
        flex-direction: column;
    }
    
    .terreaux-contact-btn-primary,
    .terreaux-contact-btn-secondary {
        width: 100%;
        justify-content: center;
    }
}