/* assets/css/frontend.css - Version minimale */

.oacd-contact-wrapper {
    max-width: 800px;
    margin: 0 auto;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.oacd-contact-header {
    text-align: center;
    margin-bottom: 30px;
}

.oacd-contact-header h2 {
    color: #1d2327;
    font-size: 2em;
    margin-bottom: 10px;
}

/* Onglets */
.oacd-contact-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 10px;
    margin-bottom: 30px;
    border-bottom: 2px solid #e1e5e9;
}

.oacd-tab-button {
    background: #f6f7f7;
    border: 2px solid #e1e5e9;
    border-bottom: none;
    border-radius: 8px 8px 0 0;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    font-size: 14px;
    color: #646970;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.oacd-tab-button:hover,
.oacd-tab-button.active {
    background: #ffffff;
    border-color: #0073aa;
    color: #0073aa;
}

.oacd-tab-icon {
    font-size: 1.5em;
}

.oacd-tab-title {
    font-weight: 500;
    line-height: 1.2;
}

/* Contenu des onglets */
.oacd-tab-panel {
    display: none;
}

.oacd-tab-panel.active {
    display: block;
}

/* Formulaires */
.oacd-form {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.oacd-form-header {
    margin-bottom: 25px;
    text-align: center;
}

.oacd-form-header h3 {
    color: #1d2327;
    font-size: 1.5em;
    margin: 0 0 10px;
}

.oacd-form-header p {
    color: #646970;
    margin: 0;
}

.oacd-form-grid {
    display: grid;
    gap: 20px;
}

.oacd-form-group {
    display: flex;
    flex-direction: column;
}

@media (min-width: 768px) {
    .oacd-form-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .oacd-form-group:not(.oacd-form-group-half) {
        grid-column: span 2;
    }
}

.oacd-form-group label {
    font-weight: 600;
    color: #1d2327;
    margin-bottom: 8px;
    font-size: 14px;
}

.oacd-form input,
.oacd-form select,
.oacd-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 6px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #ffffff;
    box-sizing: border-box;
}

.oacd-form input:focus,
.oacd-form select:focus,
.oacd-form textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.1);
}

.oacd-form input.error,
.oacd-form select.error,
.oacd-form textarea.error {
    border-color: #d63638;
}

.oacd-form textarea {
    resize: vertical;
    min-height: 120px;
    font-family: inherit;
}

/* Boutons */
.oacd-form-actions {
    margin-top: 30px;
    text-align: center;
}

.oacd-submit-btn {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 200px;
}

.oacd-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 115, 170, 0.3);
}

.oacd-submit-btn.loading {
    opacity: 0.8;
    pointer-events: none;
}

.oacd-submit-btn .oacd-btn-loading {
    display: none;
}

.oacd-submit-btn.loading .oacd-btn-text {
    display: none;
}

.oacd-submit-btn.loading .oacd-btn-loading {
    display: inline;
}

.oacd-submit-urgent {
    background: linear-gradient(135deg, #d63638 0%, #b71c1c 100%);
}

/* Messages */
.oacd-form-message {
    margin-top: 20px;
    padding: 15px;
    border-radius: 6px;
    display: none;
    text-align: center;
    font-weight: 500;
}

.oacd-form-message.success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.oacd-form-message.error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.oacd-form-message.show {
    display: block;
}

/* Infos spéciales */
.oacd-urgence-info {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 6px;
    padding: 15px;
    margin: 15px 0;
    text-align: center;
}

.oacd-phone-number {
    font-size: 1.2em;
    font-weight: bold;
    color: #0073aa;
}

/* Responsive */
@media (max-width: 767px) {
    .oacd-contact-tabs {
        grid-template-columns: 1fr 1fr;
    }
    
    .oacd-form {
        padding: 20px;
    }
    
    .oacd-submit-btn {
        width: 100%;
    }
}