/*
Theme Name: Astra Child
Theme URI: https://example.com
Description: Thème enfant Astra pour personnalisation Ultimate Member
Author: Philippe
Template: astra
Version: 1.0.0
Text Domain: astra-child
*/

/* =========================================================
   ULTIMATE MEMBER — BASE GLOBALE
   ========================================================= */

.um {
    font-size: 16px;
    color: inherit;
}

.um,
.um *,
.um-account,
.um-account *,
.um-profile,
.um-profile *,
.um-form,
.um-form * {
    font-family: inherit;
    box-sizing: border-box;
}

.um a {
    text-decoration: none;
}

.um a:hover {
    text-decoration: none;
}

/* =========================================================
   BOUTONS ULTIMATE MEMBER — FORCER LE STYLE ASTRA
   ========================================================= */

.um input[type="submit"].um-button,
.um input[type="submit"].um-button:focus,
.um input[type="submit"].um-button:hover,
.um a.um-button,
.um a.um-button:focus,
.um a.um-button:hover,
.um-button {
    background-color: var(--ast-global-color-0) !important;
    border: 1px solid var(--ast-global-color-0) !important;
    color: #ffffff !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
    box-shadow: none !important;
    transition: all 0.2s ease;
}

/* Hover / focus */
.um input[type="submit"].um-button:hover,
.um input[type="submit"].um-button:focus,
.um a.um-button:hover,
.um a.um-button:focus,
.um-button:hover,
.um-button:focus {
    background-color: var(--ast-global-color-1) !important;
    border-color: var(--ast-global-color-1) !important;
    color: #ffffff !important;
}

/* Boutons secondaires */
.um input[type="submit"].um-alt,
.um input[type="submit"].um-alt:focus,
.um input[type="submit"].um-alt:hover,
.um a.um-alt,
.um a.um-alt:focus,
.um a.um-alt:hover {
    background: transparent !important;
    border: 1px solid var(--ast-global-color-0) !important;
    color: var(--ast-global-color-0) !important;
    border-radius: 10px !important;
    padding: 12px 18px !important;
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    box-shadow: none !important;
}

.um input[type="submit"].um-alt:hover,
.um input[type="submit"].um-alt:focus,
.um a.um-alt:hover,
.um a.um-alt:focus {
    background-color: var(--ast-global-color-0) !important;
    color: #ffffff !important;
}
/* =========================================================
   CHAMPS DE FORMULAIRE
   ========================================================= */

.um-form input[type="text"],
.um-form input[type="email"],
.um-form input[type="password"],
.um-form input[type="number"],
.um-form input[type="tel"],
.um-form input[type="url"],
.um-form textarea,
.um-form select {
    border-radius: 8px;
    border: 1px solid #d7dce3;
    background: #ffffff;
    color: inherit;
    padding: 12px 14px;
    font-size: 15px;
    line-height: 1.4;
    box-shadow: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.um-form input[type="text"]:focus,
.um-form input[type="email"]:focus,
.um-form input[type="password"]:focus,
.um-form input[type="number"]:focus,
.um-form input[type="tel"]:focus,
.um-form input[type="url"]:focus,
.um-form textarea:focus,
.um-form select:focus {
    border-color: var(--ast-global-color-0);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.04);
}

.um-form label,
.um-field-label label {
    font-weight: 600;
    color: inherit;
    margin-bottom: 6px;
}

/* =========================================================
   BLOCS / CARTES
   ========================================================= */

.um-form,
.um-account,
.um-profile {
    background: #ffffff;
    border: 1px solid #eceff3;
    border-radius: 14px;
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.um-form {
    padding: 28px;
}

.um-account {
    padding: 0;
    overflow: hidden;
}

.um-profile {
    overflow: hidden;
}

/* =========================================================
   ZONE COMPTE UTILISATEUR
   ========================================================= */

.page-id-2194 .um {
    max-width: 100%;
}

.page-id-2194 .um-account {
    display: flex;
    gap: 0;
    background: #ffffff;
}

.page-id-2194 .um-account-side {
    width: 280px;
    background: #f8f9fb;
    border-right: 1px solid #eceff3;
    padding: 22px 18px;
}

.page-id-2194 .um-account-main {
    flex: 1;
    min-width: 0;
    padding: 28px;
}

.page-id-2194 .um-account-name {
    font-size: 22px;
    line-height: 1.3;
    font-weight: 700;
    color: inherit;
    margin-bottom: 16px;
}

/* navigation du compte */
.page-id-2194 .um-account-nav a {
    display: block;
    padding: 12px 14px;
    margin-bottom: 8px;
    border-radius: 10px;
    color: inherit;
    background: transparent;
    font-weight: 600;
    transition: all 0.2s ease;
}

.page-id-2194 .um-account-nav a:hover {
    background: #eef2f7;
}

.page-id-2194 .um-account-nav a.current {
    background: var(--ast-global-color-0);
    color: #ffffff !important;
}

/* titres de sections compte */
.page-id-2194 .um-account-main h3,
.page-id-2194 .um-account-main h4 {
    margin-top: 0;
    margin-bottom: 18px;
    font-weight: 700;
    color: inherit;
}

/* =========================================================
   PROFIL UTILISATEUR
   ========================================================= */

/* boutons profil */
.um-profile-nav-item a {
    font-weight: 600;
}

.um-profile-header,
.um-header {
    background: #f8f9fb;
    border-bottom: 1px solid #eceff3;
    padding: 28px;
}

.um-profile-name,
.um-profile-name a {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: inherit;
}

.um-profile-meta {
    color: #6b7280;
}

.um-profile-nav {
    padding: 14px 20px;
    border-bottom: 1px solid #eceff3;
    background: #ffffff;
}

.um-profile-nav-item a {
    display: inline-block;
    padding: 10px 14px;
    border-radius: 10px;
    transition: all 0.2s ease;
}

.um-profile-nav-item a:hover {
    background: #eef2f7;
}

.um-profile-nav-item.active a,
.um-profile-nav-item.current a {
    background: var(--ast-global-color-0);
    color: #ffffff !important;
}

/* contenus profil */
.um-profile-body,
.um-profile .um-row,
.um-profile .um-col-1,
.um-profile .um-col-alt,
.um-profile .um-col-main {
    color: inherit;
}

/* =========================================================
   MESSAGES / ALERTES
   ========================================================= */

.um-notice {
    border-radius: 10px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    background: #f9fafb;
    color: inherit;
}

.um-error {
    border-radius: 10px;
    padding: 14px 16px;
    background: #fff5f5;
    border: 1px solid #f1c0c0;
    color: #8a1f1f;
}

.um-success {
    border-radius: 10px;
    padding: 14px 16px;
    background: #f3fbf5;
    border: 1px solid #b9e2c2;
    color: #1f6b35;
}

/* =========================================================
   TABLEAUX / LISTES MEMBRES
   ========================================================= */

.um-members-wrapper,
.um-members {
    color: inherit;
}

.um-members-wrapper .um-member {
    border: 1px solid #eceff3;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.03);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.um-members-wrapper .um-member:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.06);
}

/* =========================================================
   LIENS SECONDAIRES
   ========================================================= */

.um-link,
.um-field a,
.um-account a,
.um-profile a {
    color: var(--ast-global-color-0);
}

.um-link:hover,
.um-field a:hover,
.um-account a:hover,
.um-profile a:hover {
    color: var(--ast-global-color-1);
}

/* =========================================================
   RESPONSIVE
   ========================================================= */

@media (max-width: 1100px) {
    .page-id-2194 .um-account {
        display: block;
    }

    .page-id-2194 .um-account-side {
        width: 100%;
        border-right: 0;
        border-bottom: 1px solid #eceff3;
    }

    .page-id-2194 .um-account-main {
        padding: 22px;
    }
}

@media (max-width: 768px) {
    .um-form {
        padding: 20px;
    }

    .um-profile-header,
    .um-header {
        padding: 20px;
    }

    .um-profile-name,
    .um-profile-name a {
        font-size: 24px;
    }

    .page-id-2194 .um-account-side,
    .page-id-2194 .um-account-main {
        padding: 18px;
    }

    .page-id-2194 .um-account-nav a {
        margin-bottom: 6px;
    }

    .um-button,
    .um input[type="submit"].um-button,
    .um a.um-button,
    .um input[type="submit"].um-alt,
    .um a.um-alt {
        width: 100%;
        text-align: center;
    }
}