/**
 * DisableAuth - Styles pour masquer les éléments d'authentification
 * Compatible avec les thèmes PrestaShop classiques et populaires
 */

/* === Éléments standards PrestaShop === */
.user-info,
#_desktop_user_info,
#_mobile_user_info,
.header-user-info,
.customer-signin,
[data-action="show-login"] {
    display: none !important;
    visibility: hidden !important;
}

/* === Liens d'authentification === */
a.account,
a.login,
a.logout,
a[href*="my-account"],
a[href*="authentication"],
a[href*="registration"],
a[href*="password"],
a[href*="identity"],
a[href*="addresses"],
a[href*="order-history"],
a[href*="guest-tracking"] {
    display: none !important;
    visibility: hidden !important;
}

/* === Titres de liens (multi-langues) === */
a[title="Identifiez-vous"],
a[title="Log in to your customer account"],
a[title="Mon compte"],
a[title="My account"],
a[title="Créer un compte"],
a[title="Create an account"],
a[title="Mein Konto"],
a[title="Anmelden"] {
    display: none !important;
    visibility: hidden !important;
}

/* === Blocs compte client === */
.blockcustomer,
#block_myaccount_infos,
#myaccount-link,
.myaccount-column,
.block-customer,
.customer-account-link {
    display: none !important;
    visibility: hidden !important;
}

/* === Icônes utilisateur === */
.material-icons.person,
.fa-user,
.icon-user,
[class*="user-icon"],
[class*="account-icon"] {
    /* Masquer uniquement dans le contexte header */
}

.header .material-icons.person,
.header .fa-user,
.header .icon-user,
header .material-icons.person,
header .fa-user,
header .icon-user {
    display: none !important;
}

/* === Formulaires d'authentification (si affichés en modal) === */
#authentication,
.authentication-page,
.login-form,
.registration-form,
#customer-form,
.customer-form-container {
    display: none !important;
}

/* === Footer - Liens Mon compte === */
.footer-container a[href*="my-account"],
.footer-container a[href*="authentication"],
#footer a[href*="my-account"],
#footer a[href*="authentication"],
footer a[href*="my-account"],
footer a[href*="authentication"] {
    display: none !important;
}

/* === Thème Classic spécifique === */
#header .user-info {
    display: none !important;
}

/* === Thèmes tiers populaires === */

/* Flavor / flavor-starter */
.flavor-header .user-info,
.flavor-header .account {
    display: none !important;
}

/* Warehouse theme */
.warehouse-header .user-info,
.warehouse-account-link {
    display: none !important;
}

/* Flavant themes */
.header-top-main .user-info,
.header-top-main .account-link {
    display: none !important;
}

/* Leo themes */
.leo-header .user-info,
.leo-account {
    display: none !important;
}

/* === Mobile menu === */
.mobile-menu a[href*="my-account"],
.mobile-menu a[href*="authentication"],
.mobile-nav a[href*="my-account"],
.mobile-nav a[href*="authentication"],
#mobile_top_menu_wrapper a[href*="my-account"],
#mobile_top_menu_wrapper a[href*="authentication"] {
    display: none !important;
}

/* === Sidebars === */
.sidebar a[href*="my-account"],
.sidebar a[href*="authentication"],
#left-column a[href*="my-account"],
#left-column a[href*="authentication"],
#right-column a[href*="my-account"],
#right-column a[href*="authentication"] {
    display: none !important;
}
