/**
 * SnackArt Reseller - Styles
 */

/* ================================
   FORMULAIRE
   ================================ */

.reseller-form {
    max-width: 640px;
    margin: 0 auto;
}

.reseller-form h3 {
    margin-top: 2rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #eee;
    font-size: 1.1rem;
}

.reseller-form h3:first-child {
    margin-top: 0;
}

.reseller-form__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

@media (max-width: 600px) {
    .reseller-form__row {
        grid-template-columns: 1fr;
    }
}

.reseller-form__field {
    margin-bottom: 1rem;
}

.reseller-form__field label {
    display: block;
    margin-bottom: 0.4rem;
    font-weight: 500;
    font-size: 0.9rem;
}

.reseller-form__field .required {
    color: #c00;
}

.reseller-form__field input[type="text"],
.reseller-form__field input[type="email"],
.reseller-form__field input[type="tel"],
.reseller-form__field textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.reseller-form__field input:focus,
.reseller-form__field textarea:focus {
    outline: none;
    border-color: #333;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.05);
}

.reseller-form__field input[type="file"] {
    font-size: 0.9rem;
}

.reseller-form__submit {
    margin-top: 1.5rem;
}

.reseller-form__submit button {
    display: inline-block;
    padding: 0.9rem 2rem;
    background: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
}

.reseller-form__submit button:hover {
    background: #000;
}

.reseller-form__notice {
    margin-top: 1.5rem;
    color: #666;
}

.reseller-form__notice a {
    color: inherit;
    text-decoration: underline;
}

/* ================================
   NOTICES / MESSAGES
   ================================ */

.reseller-notice {
    padding: 1rem 1.2rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}

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

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

.reseller-notice--error ul {
    margin: 0;
    padding-left: 1.2rem;
}

.reseller-notice--info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* ================================
   BADGE PRIX PRO
   ================================ */

.reseller-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: #28a745;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-radius: 3px;
    vertical-align: middle;
    margin-left: 0.5rem;
}

/* Badge dans la liste produits */
.woocommerce ul.products li.product .reseller-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    margin: 0;
}

/* ================================
   ESPACE COMPTE - MESSAGE ATTENTE
   ================================ */

.woocommerce-account .reseller-pending-notice {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffc107;
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1.5rem;
}
