/* ===============================
LAYOUT GLOBAL
=============================== */
.my-account-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 15px;
    margin-bottom: 20px;
}

.my-account-content {
    margin-top: 10px;
}

/* ===============================
NAVIGATION
=============================== */
.my-account-navigation {
    width: 100%;
    border-bottom: 1px solid #e5e5e5;
}

.my-account-menu {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    list-style: none;
    padding: 20px 0;
    margin: 0;
    margin-top: 80px;
}

.my-account-item {
    position: relative;
}

.my-account-link {
    text-decoration: none;
    color: #111;
    font-size: 13px;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 10px;
    display: inline-block;
    transition: all 0.3s ease;
}

.my-account-link:hover {
    opacity: 0.6;
}

.my-account-item.is-active .my-account-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: #111;
}

/* ===============================
ICON + TITRE (VERSION PROPRE)
=============================== */
.account-divider {
    display: flex;
    flex-direction: column;   /* icône au-dessus, titre en dessous */
    justify-content: center;
    align-items: center;
    margin: 20px 0 20px;
    text-align: center;
    gap: 20px; /* 🔥 espace propre entre icône et titre */
}

/* Icône */
.account-divider__icon {
    width: 42px;
    height: auto;
    opacity: 0.6;
    display: block;
}

/* Titre */
.account-divider__title {
    font-size: 20px;
    font-weight: 500;
    margin: 0; /* on garde 0 car on utilise gap */
}

/* ===============================
TITRES
=============================== */
.account-title {
    font-size: 26px;
    margin-bottom: 10px;
}

.account-subtitle {
    font-size: 14px;
    color: #777;
    margin-bottom: 40px;
}

/* ===============================
GRID DASHBOARD
=============================== */
.account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

/* ===============================
CARDS (blocs principaux)
=============================== */
.account-card {
    background: #FBF9F6;
    padding: 30px;
    border-radius: 6px;
}

.card-title {
    font-size: 16px;
    margin-bottom: 20px;
    text-align: center;
}

/* ===============================
FORMULAIRE (WooCommerce)
=============================== */
/* Structure des lignes */
.woocommerce-EditAccountForm .form-row {
    width: 100%;
    margin-bottom: 15px;
}

/* Inputs */
.woocommerce-EditAccountForm input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    font-size: 14px;
    background: #fff;
    border-radius: 4px;
}

/* Labels */
.woocommerce-EditAccountForm label {
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
}

/* Bouton sauvegarder */
.woocommerce-EditAccountForm button {
    width: 100%;
    background: #111;
    color: #fff;
    padding: 12px;
    border: none;
    font-size: 12px;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 4px;
    transition: 0.3s;
    margin-top: 15px;
}

.woocommerce-EditAccountForm button:hover {
    background: #333;
}

/* Fieldset mot de passe */
.woocommerce-EditAccountForm fieldset {
    border: none;
    margin-top: 20px;
    padding: 0;
}

.woocommerce-EditAccountForm legend {
    font-size: 13px;
    margin-bottom: 10px;
    font-weight: bold;
}

/* ===============================
BOUTON SUPPRIMER
=============================== */
.delete-account-btn {
    margin-top: 20px;
    width: 100%;
    padding: 10px;
    background: transparent;
    border: 1px solid #ccc;
    cursor: pointer;
    font-size: 12px;
    text-transform: uppercase;
    transition: 0.3s;
    border-radius: 4px;
}

.delete-account-btn:hover {
    background: #eee;
}

/* ===============================
COMMANDES (colonne droite)
=============================== */
.empty-orders {
    text-align: center;
    color: #777;
    margin-top: 40px;
}

.save-section {
    display: none;
}
/* ===============================
RESPONSIVE
=============================== */
@media (max-width: 768px) {

    .my-account-menu {
        flex-wrap: wrap;
        gap: 20px;
    }

    .my-account-wrapper {
        padding: 40px 15px;
    }

    .account-grid {
        grid-template-columns: 1fr;
    }
}

/* ===============================
NOTIFICATION FLOTANTE MINIMALISTE
=============================== */

.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
    font-size: 13px;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 15px;
    opacity: 1;
    transition: opacity 0.4s ease;
}

/* Couleurs minimalistes selon le type */
.woocommerce-message {
    background: #111;    /* succès */
    color: #fff;
}

.woocommerce-error {
    background: #c0392b; /* rouge pour erreur */
    color: #fff;
}

.woocommerce-info {
    background: #3498db; /* bleu pour info */
    color: #fff;
}




/* ==========================================================================
   ORDERS - STYLE GÉNÉRAL
   ========================================================================== */

/* Conteneur principal centré avec marges latérales */
.mileo-orders {
    max-width: 900px;        /* largeur bloc central */
    margin: 40px auto;       /* centré horizontalement */
    padding: 0 15px;         /* marges latérales */
}

/* =========================
   HEADER TITRE + ICÔNE
   ========================= */
.mileo-orders-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.mileo-orders-header__icon {
    width: 32px;
    height: auto;
    opacity: 0.6;
}

.mileo-orders-header__title {
    font-size: 20px;
    font-weight: 500;
}

/* =========================
   TABLEAU COMMANDES
   ========================= */
.mileo-orders-table {
    background: #fbf9f6; /* fond beige */
    padding: 20px;
    border-radius: 4px;
    width: 100%;
    box-sizing: border-box;
}

/* Header tableau */
.mileo-orders-table__head {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    font-size: 12px;
    text-transform: uppercase;
    color: #777;
    padding-bottom: 10px;
    border-bottom: 1px solid #ddd;
}

/* Ligne produit */
.mileo-orders-table__row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

/* Colonne produit : image + nom */
.mileo-orders-table__product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mileo-orders-table__product img {
    width: 50px;
    height: auto;
}


/* =========================
   ALIGNEMENT HEADER (FIX)
   ========================= */

.mileo-orders-header {
    display: flex;
    flex-direction: column; /* empile icône + titre */
    align-items: center;    /* centre horizontalement */
    justify-content: center;
    text-align: center;

    margin-bottom: 25px;    /* espace avec le tableau */
}

/* Icône au-dessus du titre */
.mileo-orders-header__icon {
    margin-bottom: 10px;
}

/* Ajustement titre */
.mileo-orders-header__title {
    margin: 0; /* supprime margin par défaut du h2 */
}

/* =========================
   EMPTY STATE
   ========================= */
.mileo-orders-empty {
    background: #fbf9f6;      
    padding: 60px 20px;
    text-align: center;
    border-radius: 4px;
}

.mileo-orders-empty__icon-img {
    width: 32px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 15px;
}

.mileo-orders-empty__title {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
}

.mileo-orders-empty__text {
    font-size: 14px;
    color: #777;
    margin-bottom: 25px;
}

.mileo-orders-empty__btn {
    display: inline-block;
    background: #2f2f2f;
    color: #fff!important;
    padding: 12px 24px;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mileo-orders-empty__btn:hover {
    background: #000;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .mileo-orders-table__head { display: none; }
    .mileo-orders-table__row { grid-template-columns: 1fr; gap: 10px; }
    .mileo-orders { padding: 0 10px; }
}






/* ==========================================================================
   MY ACCOUNT - ADDRESSES
   ========================================================================== */

/* =========================
   WRAPPER GLOBAL
   ========================= */
.my-address-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

/* =========================
   HEADER (on garde ton style)
   ========================= */
.my-account-header {
    text-align: center;
    margin-bottom: 25px;
}

.my-account-header__icon {
    width: 32px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 10px;
}

/* Titre principal */
.my-account-title {
    text-align: center;
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}

/* =========================
   CARD PRINCIPALE
   ========================= */
.my-address-card {
    background: #fbf9f6;
    padding: 60px 20px;
    border-radius: 4px;
}

/* =========================
   GRID 2 COLONNES
   ========================= */
.my-address-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/* =========================
   BLOC ADRESSE
   ========================= */
.address-block {
    text-align: center;
    padding: 15px 10px;
}

/* Titre adresse */
.address-block h3 {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #777;
    margin-bottom: 10px;
}

/* Contenu adresse */
.address-content {
    font-size: 14px;
    color: #111;
    margin-bottom: 15px;
    line-height: 1.6;
}

/* =========================
   BOUTON MODIFIER
   ========================= */
.btn-edit-address {
    display: inline-block;
    background: #2f2f2f;
    color: #fff;
    padding: 10px 18px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-edit-address:hover {
    background: #000;
}

/* =========================
   BOUTON AJOUTER
   ========================= */
.add-address {
    text-align: center;
    margin-top: 25px;
}

.btn-add-address {
    display: inline-block;
    background: transparent;
    border: 1px solid #ccc;
    padding: 10px 20px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-decoration: none;
    color: #111;
    border-radius: 2px;
    transition: all 0.3s ease;
}

.btn-add-address:hover {
    background: #eee;
}



/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {

    .my-address-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .my-address-wrapper {
        padding: 0 10px;
    }
}



/* ========================================================================== 
   MY ACCOUNT - EDIT ADDRESS FORM
   ========================================================================== */

/* Wrapper global pour le formulaire (comme orders) */
.mileo-address-form {
    max-width: 900px;       /* aligné avec orders */
    margin: 40px auto;      /* centré horizontalement */
    padding: 0 15px;        /* marges latérales */
}

/* =========================
   HEADER AVEC ICÔNE
   ========================= */
.mileo-address-header {
    display: flex;
    flex-direction: column; /* empile icône + titre */
    align-items: center;
    justify-content: center;
    text-align: center;
    margin-bottom: 25px;    /* espace avec la card */
}

.mileo-address-header__icon {
    width: 32px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 10px;    /* espace icône / titre */
}

.mileo-address-header__title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;              /* supprime margin par défaut du h2 */
}

/* =========================
   CARD PRINCIPALE FORMULAIRE
   ========================= */
.mileo-address-card {
    background: #fbf9f6;     /* fond beige comme prototype */
    padding: 40px;           /* espace intérieur */
    border-radius: 6px;
}

/* =========================
   FIELDS WOOCOMMERCE
   ========================= */
.woocommerce-address-fields__field-wrapper .form-row {
    width: 100%;
    margin-bottom: 15px;
}

.woocommerce-address-fields__field-wrapper input,
.woocommerce-address-fields__field-wrapper select {
    width: 100%;
    padding: 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background: #fff;
    box-sizing: border-box;
}

.woocommerce-address-fields__field-wrapper label {
    font-size: 12px;
    margin-bottom: 5px;
    display: block;
    font-weight: 500;
}

/* =========================
   BOUTON ENREGISTRER
   ========================= */
.mileo-address-form__actions {
    margin-top: 20px;
}

.mileo-btn-primary {
    display: block;
    width: 100%;
    background: #2f2f2f;
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 12px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.mileo-btn-primary:hover {
    background: #000;
}

/* =========================
   RESPONSIVE
   ========================= */
@media (max-width: 768px) {
    .mileo-address-form {
        padding: 0 10px;
    }
}




/* ===============================
NOTIFICATIONS CUSTOM FINAL FIX
=============================== */

/* 🔥 Wrapper global WooCommerce */
.woocommerce-notices-wrapper {
    margin-bottom: 20px;
}

/* 🔥 Reset complet WooCommerce (ul/li) */
.woocommerce-error,
.woocommerce-message,
.woocommerce-info {
    list-style: none !important;
    padding: 12px 15px !important;
    margin: 0 0 15px 0 !important;
    border-radius: 4px !important;
    border: none !important;

    font-size: 13px;
    color: #fff !important;

    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

/* 🔥 WooCommerce met souvent les messages dans des <li> */
.woocommerce-error li,
.woocommerce-message li,
.woocommerce-info li {
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ❌ Supprime les icônes WooCommerce (très important) */
.woocommerce-message::before,
.woocommerce-error::before,
.woocommerce-info::before {
    display: none !important;
}

/* ===============================
COULEURS
=============================== */

/* ✅ SUCCÈS → NOIR */
.woocommerce-message {
    background: #111 !important;
}

/* ✅ ERREUR → ROUGE */
.woocommerce-error {
    background: #000000 !important;
}

/* ✅ INFO → BLEU */
.woocommerce-info {
    background: #000000 !important;
}

/* ===============================
ANIMATION
=============================== */

.woocommerce-message.fade-out,
.woocommerce-error.fade-out,
.woocommerce-info.fade-out {
    opacity: 0;
    transition: opacity 0.4s ease;
}

/* =========================
   BOUTONS MODIFIER - ALIGNEMENT VERTICAL CORRIGÉ
   ========================= */
.address-block {
    display: flex;
    flex-direction: column;
    justify-content: flex-end; /* pousse le bouton vers le bas */
    min-height: 200px;         /* ajuste selon le contenu le plus long */
}

.address-content {
    flex-grow: 1;              /* prend l’espace restant au-dessus du bouton */
}

.btn-edit-address {
    display: inline-block;     /* conserve sa largeur naturelle */
    width: auto;               /* supprime le 100% implicite */
    align-self: center;        /* centre horizontalement si tu veux */
}









/* ==========================================
WISHLIST MILEO (VERSION PROPRE + ORDERS STYLE)
========================================== */

/* WRAPPER GLOBAL (comme orders) */
.mileo-wishlist-wrapper {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 15px;
}

/* =========================
HEADER (ICÔNE + TITRE)
========================= */
.mileo-wishlist-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
}

.mileo-wishlist-header__icon {
    width: 32px;
    height: auto;
    opacity: 0.6;
    margin-bottom: 10px;
}

.mileo-wishlist-header__title {
    font-size: 20px;
    font-weight: 500;
    margin: 0;
}


/* =========================
TABLE RESET (IMPORTANT)
========================= */
.mileo-wishlist-table {
    width: 100%;
    border-collapse: collapse; /* IMPORTANT pour ligne continue */
    border-spacing: 0;
}

/* =========================
LIGNE PRODUIT
========================= */
.mileo-wishlist-row {
    background: #fbf9f6; /* même couleur que le fond */
    border-bottom: 1px solid #e5e5e5; /* ✅ ligne grise fine */
}

/* ❌ supprime la ligne sur le dernier élément */
.mileo-wishlist-row:last-child {
    border-bottom: none;
}

/* =========================
CELLULES
========================= */
.mileo-wishlist-row td {
    padding: 15px;
    vertical-align: middle;
}

/* =========================
IMAGE PRODUIT
========================= */
.mileo-wishlist .product-thumbnail img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 4px;
}

/* =========================
NOM PRODUIT
========================= */
.mileo-wishlist .product-name a {
    font-size: 14px;
    color: #111;
    text-decoration: none;
}

/* =========================
PRIX & STOCK
========================= */
.mileo-wishlist .product-price,
.mileo-wishlist .product-stock {
    font-size: 13px;
    color: #555;
}

/* =========================
BOUTON REMOVE
========================= */
.mileo-wishlist .product-remove button {
    background: transparent;
    border: none;
    font-size: 18px;
    cursor: pointer;
}

/* =========================
BOUTON ADD TO CART
========================= */
.mileo-wishlist .product-action .button {
    background: #2f2f2f;
    color: #fff;
    padding: 8px 12px;
    font-size: 11px;
    text-transform: uppercase;
    border-radius: 2px;
    border: none;
    white-space: nowrap;
}

.mileo-wishlist .product-action .button:hover {
    background: #000;
}

/* =========================
UX : CACHE "VOIR PANIER"
========================= */
.mileo-wishlist .added_to_cart {
    display: none !important;
}

/* =========================
RESPONSIVE
========================= */
@media (max-width: 768px) {

    .mileo-wishlist-row {
        display: block;
    }

    .mileo-wishlist-row td {
        display: block;
        text-align: center;
        padding: 10px 0;
    }

}




/* ===============================
SUBHEADER MINIMAL MILEO
=============================== */

.mileo-account-subheader {
    position: sticky;
    top: 90px;
    z-index: 999;

    background: #fff;

    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;

    gap: 60px;

    padding: 8px 0;
    margin-top: 0; /* ❌ IMPORTANT: enlever ça */
    border-bottom: 1px solid #eee;

    font-size: 14px;
    letter-spacing: 0.9px;
}


.mileo-account-content {
    padding-top: 90px; /* ajuste selon la hauteur réelle du subheader */
}


/* TOUS LES LIENS (y compris logout) */
.mileo-account-subheader a {
    position: relative;
    text-decoration: none;
    color: #888;

    padding: 5px 0;
    margin: 0 10px;


    transition: color 0.25s ease;
}

/* hover identique pour tous */
.mileo-account-subheader a:hover {
    color: #111;
}

/* actif */
.mileo-account-subheader a.active {
    color: #111;
}

/* underline fine */
.mileo-account-subheader a.active::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -0.1px;

    width: 100%;
    height: 1px;
    background: #111;
}



/* MOBILE */
@media (max-width: 768px) {
    .mileo-account-subheader {
        gap: 18px;
        font-size: 12px;
    }
}



