/* Conteneur général de la page d'inscription */
.page-id-XXX .affwp-form,
.affwp-affiliate-dashboard .affwp-form {
    max-width: 520px;
    margin: 40px auto;
    background: #ffffff;
    padding: 32px 28px;
    border-radius: 16px;
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(148, 163, 184, 0.35);
}

/* Titre principal (si tu en mets un au-dessus du formulaire) */
.page-id-XXX h1,
.page-id-XXX .entry-title {
    text-align: center;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-id-XXX .affwp-form::before {
    content: "Devenir affilié";
    display: block;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 4px;
    text-align: left;
}

/* Petit texte d’intro dans la carte (optionnel, en pseudo-élément) */
.page-id-XXX .affwp-form::after {
    content: "Rejoignez notre programme d’affiliation et gagnez des commissions sur chaque vente générée.";
    display: block;
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 18px;
    line-height: 1.5;
}

/* Layout des champs */
.affwp-form p {
    margin-bottom: 16px;
}

/* Labels */
.affwp-form label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #111827;
}

/* Champs de formulaire */
.affwp-form input[type="text"],
.affwp-form input[type="email"],
.affwp-form input[type="password"],
.affwp-form input[type="url"],
.affwp-form textarea,
.affwp-form select {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #d1d5db;
    padding: 10px 12px;
    font-size: 14px;
    background: #f9fafb;
    transition: all 0.18s ease;
    box-sizing: border-box;
}

/* Focus joli sur les champs */
.affwp-form input[type="text"]:focus,
.affwp-form input[type="email"]:focus,
.affwp-form input[type="password"]:focus,
.affwp-form input[type="url"]:focus,
.affwp-form textarea:focus,
.affwp-form select:focus {
    outline: none;
    border-color: #2563eb;
    background: #ffffff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.20);
}

/* Cases à cocher */
.affwp-form input[type="checkbox"] {
    margin-right: 6px;
}

/* Messages d’erreur */
.affwp-errors,
.affwp-notices {
    max-width: 520px;
    margin: 15px auto 0;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 14px;
    box-sizing: border-box;
}

.affwp-errors {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
}

.affwp-notice,
.affwp-notices {
    background: #ecfdf3;
    border: 1px solid #bbf7d0;
    color: #166534;
}

/* Bouton d’envoi */
.affwp-form input[type="submit"],
.affwp-form button[type="submit"] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    width: 100%;
    border-radius: 999px;
    padding: 11px 18px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    background: linear-gradient(135deg, #2563eb, #4f46e5);
    color: #ffffff;
    box-shadow: 0 12px 25px rgba(37, 99, 235, 0.40);
    transition: transform 0.12s ease, box-shadow 0.12s ease, opacity 0.12s ease;
}

/* Hover bouton */
.affwp-form input[type="submit"]:hover,
.affwp-form button[type="submit"]:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 35px rgba(37, 99, 235, 0.55);
    opacity: 0.96;
}

/* État disabled */
.affwp-form input[type="submit"]:disabled,
.affwp-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    box-shadow: none;
}

/* Texte type "Déjà affilié ? Connectez-vous" */
.affwp-login-link,
.affwp-register-link {
    font-size: 13px;
    text-align: center;
    margin-top: 14px;
    display: block;
    color: #6b7280;
}
.affwp-login-link a,
.affwp-register-link a {
    color: #2563eb;
    text-decoration: none;
    font-weight: 500;
}
.affwp-login-link a:hover,
.affwp-register-link a:hover {
    text-decoration: underline;
}

/* Responsif mobile */
@media (max-width: 640px) {
    .page-id-XXX .affwp-form,
    .affwp-affiliate-dashboard .affwp-form {
        margin: 20px 16px;
        padding: 22px 18px;
        border-radius: 14px;
    }
}



/************************************
  RESET DE BASE POUR LES TABS
*************************************/
#affwp-affiliate-dashboard-tabs {
    list-style: none;
    margin: 0;
    padding: 0;
}

/************************************
  LAYOUT DESKTOP : MENU À GAUCHE
*************************************/
#affwp-affiliate-dashboard {
    display: flex;
    gap: 24px;
    margin: 20px 0;
    align-items: flex-start;
}

/* Menu vertical à gauche */
#affwp-affiliate-dashboard-tabs {
    display: flex;
    flex-direction: column;
    min-width: 220px;
    max-width: 260px;
    background: #f8fafc;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    padding: 10px 0;
    box-sizing: border-box;
}

/* Zone contenu à droite */
#affwp-affiliate-dashboard > *:not(#affwp-affiliate-dashboard-tabs) {
    flex: 1;
    background: #ffffff;
    padding: 20px 18px;
    border-radius: 16px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
    box-sizing: border-box;
}

/************************************
  STYLE DES LIENS D’ONGLETS
*************************************/
#affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab {
    margin: 0;
    padding: 0;
}

#affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab a {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    color: #374151;
    border-left: 3px solid transparent;
    transition: all 0.15s ease;
}

/* Hover */
#affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab a:hover {
    background: #e5e7eb;
    color: #111827;
}

/* Actif */
#affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab.active a {
    background: #e0e7ff;
    color: #1d4ed8;
    border-left-color: #2563eb;
    font-weight: 600;
}

/* Petit point "favicon" */
#affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab a::before {
    content: "";
    width: 7px;
    height: 7px;
    margin-right: 10px;
    border-radius: 50%;
    background: #d1d5db;
    display: inline-block;
}

#affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab.active a::before {
    background: #2563eb;
}

/************************************
  RESPONSIVE : MOBILE = MENU EN HAUT
*************************************/
@media (max-width: 768px) {

    /* le dashboard repasse en colonne */
    #affwp-affiliate-dashboard {
        display: block;
    }

    /* menu au-dessus, plein largeur */
    #affwp-affiliate-dashboard-tabs {
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
        border-radius: 12px;
        padding: 6px;
        margin-bottom: 14px;
    }

    #affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab {
        flex: 1 1 auto;
    }

    #affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab a {
        border-left: none;
        border-radius: 999px;
        justify-content: center;
        font-size: 13px;
        padding: 8px 10px;
    }

    #affwp-affiliate-dashboard-tabs li.affwp-affiliate-dashboard-tab.active a {
        border-left: none;
        background: #e0e7ff;
    }

    /* contenu prend toute la largeur */
    #affwp-affiliate-dashboard > *:not(#affwp-affiliate-dashboard-tabs) {
        margin-top: 0;
        box-shadow: none;
        border-radius: 10px;
    }
}



/* ===== Accordéon Catégories WooCommerce Blocks ===== */

.wc-block-product-categories-list-item {
    position: relative;
    padding: 6px 0;
}

/* Ajouter un + sur les catégories parents */
.wc-block-product-categories-list-item.has-children > a {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Icône + */
.wc-block-product-categories-list-item.has-children > a::after {
    content: "+";
    font-size: 18px;
    color: #000;
    margin-left: 10px;
    transition: transform 0.2s ease;
}

/* Icône - lorsque ouvert */
.wc-block-product-categories-list-item.open > a::after {
    content: "-";
    transform: rotate(0deg);
}

/* Sous-catégories masquées par défaut */
.wc-block-product-categories-list-item ul {
    display: none;
    margin-left: 15px;
    padding-left: 10px;
    border-left: 1px solid #e5e5e5;
}

/* Sous-catégories affichées quand parent est open */
.wc-block-product-categories-list-item.open > ul {
    display: block;
}

/* Style des liens */
.wc-block-product-categories-list-item a {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #000;
}


