/* Styles pour le système de code couple */

.couple-code-section {
    margin: 2rem 0;
    padding: 2rem;
    background: white;
    border-radius: 12px;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 20px -2px rgba(54, 94, 138, 0.1);
}

.couple-code-section h3 {
    margin: 0 0 1.5rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text-main);
}

.couple-code-display {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.code-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: linear-gradient(135deg, rgba(54, 94, 138, 0.05) 0%, rgba(244, 236, 108, 0.05) 100%);
    border: 2px solid var(--color-primary);
    border-radius: 8px;
}

.couple-code {
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Courier New', monospace;
    color: var(--color-primary);
    letter-spacing: 0.1em;
    padding: 0.5rem 1rem;
    background: white;
    border-radius: 6px;
    flex: 1;
}

.copy-code-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-code-btn:hover {
    background: #2A4A6E;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px 0 rgba(54, 94, 138, 0.3);
}

.copy-code-btn svg {
    width: 16px;
    height: 16px;
}

.help-text {
    font-size: 0.875rem;
    color: var(--color-text-muted);
    margin: 0;
    line-height: 1.6;
}

.partner-info {
    padding: 1rem;
    background: rgba(16, 185, 129, 0.05);
    border-left: 4px solid #10B981;
    border-radius: 6px;
    margin-top: 1rem;
}

.partner-info p {
    margin: 0.5rem 0;
    color: var(--color-text-main);
}

.partner-info p:first-child {
    font-weight: 600;
}

/* Champ d'inscription */
.woocommerce-form-row input[name="agam_partner_code"] {
    text-transform: uppercase;
    font-family: 'Courier New', monospace;
    letter-spacing: 0.05em;
}

.form-text.text-muted {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-text-muted);
    line-height: 1.5;
}

/* Responsive */
@media (max-width: 768px) {
    .couple-code-section {
        padding: 1.5rem;
    }
    
    .code-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .couple-code {
        font-size: 1.25rem;
        text-align: center;
    }
    
    .copy-code-btn {
        width: 100%;
        justify-content: center;
    }
}
