/* Fix decentrage du form login */
#mon-compte-woo:has(#customer_login) #menu-gauche-compte > .et_pb_column {
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

/* ==========================================================
   WOOCOMMERCE — MON COMPTE > COMMANDES
   Statuts sous forme de pastilles  + script JS
   ========================================================== */

/* 1. Cellule de statut */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-status {
    text-align: center !important;
    vertical-align: middle !important;
}

/* 2. Style commun des pastilles */
body.woocommerce-account
.woocommerce-MyAccount-content
.order-status-badge {
    display: inline-block !important;
    box-sizing: border-box;
    margin: 3px 0;
    padding: 7px 12px !important;
    border: 0 !important;
    border-radius: 50px !important;
    font-family: inherit;
    font-size: 12px !important;
    font-weight: 700 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap;
    box-shadow: none !important;
}

/* 3. En cours */
body.woocommerce-account
.order-status-badge.status-processing {
    background-color: #4db786 !important;
    color: #ffffff !important;
}

/* 4. Terminée */
body.woocommerce-account
.order-status-badge.status-completed {
    background-color: #0e252a !important;
    color: #ffffff !important;
}

/* 5. En attente de paiement */
body.woocommerce-account
.order-status-badge.status-pending {
    background-color: #64748b !important;
    color: #ffffff !important;
}

/* 6. En attente */
body.woocommerce-account
.order-status-badge.status-on-hold {
    background-color: #e9a23b !important;
    color: #382400 !important;
}

/* 7. Annulée */
body.woocommerce-account
.order-status-badge.status-cancelled {
    background-color: #697f9f !important;
    color: #ffffff !important;
}

/* 8. Remboursée */
body.woocommerce-account
.order-status-badge.status-refunded {
    background-color: #0f766e !important;
    color: #ffffff !important;
}

/* 9. Échouée */
body.woocommerce-account
.order-status-badge.status-failed {
    background-color: #c62828 !important;
    color: #ffffff !important;
}

/* 10. Statut personnalisé ou non reconnu */
body.woocommerce-account
.order-status-badge.status-default {
    background-color: #e2e8f0 !important;
    color: #334155 !important;
}



/* ==========================================================
   WOOCOMMERCE — MON COMPTE > COMMANDES
   Colonne TOTAL : montant en gras, articles en dessous + script JS
   ========================================================== */

/* 1. Cellule du total */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-total {
    vertical-align: middle !important;
    line-height: 1.5;
}

/* 2. Montant et devise */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-total
.woocommerce-Price-amount {
    color: #173e50 !important;
    font-size: 15px !important;
    font-weight: 700 !important;
}

/* 3. Nombre d'articles : (X articles) */
body.woocommerce-account
.woocommerce-MyAccount-content
.woocommerce-orders-table__cell-order-total
.order-items-count {
    display: block !important;
    margin: 3px 0 0 !important;
    color: #718096 !important;
    font-size: 11px !important;
    font-weight: 400 !important;
    line-height: 1.4 !important;
}





/**************************************************************************************************************
**************************************************************************************************************************
***********************************************************************************************************************************/


/* ==========================================================
   MON COMPTE > DÉTAILS D'UNE COMMANDE (VIEW-ORDER)
   ========================================================== */

/* 1. Conteneur principal */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-MyAccount-content {
    float: none;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    color: #263746;
    font-size: 15px;
    line-height: 1.65;
}

/* 2. Message récapitulatif de la commande */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-MyAccount-content > p:first-of-type {
    margin: 0 0 28px;
    padding: 22px 24px;
    background: #f1f8fa;
    border: 1px solid #d7e9ed;
    border-left: 4px solid #017693;
    border-radius: 10px;
    line-height: 1.9;
}

/* Numéro et date */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-MyAccount-content mark {
    padding: 3px 7px;
    background: #e0f2f5;
    border-radius: 5px;
    color: #015a70;
    font-weight: 700;
}

/* Statut : badge turquoise */
body.woocommerce-account.woocommerce-view-order
#pages-compte mark.order-status {
    display: inline-block;
    margin: 3px 0;
    padding: 4px 12px;
    background: #dff5eb;
    border: 1px solid #bce8d4;
    border-radius: 30px;
    color: #176b4b;
    font-size: 13px;
    font-weight: 700;
}

/* 3. Sections sous forme de cartes */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-order-details,
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-customer-details {
    margin: 0 0 28px;
    padding: 26px;
    background: #ffffff;
    border: 1px solid #e0e8ed;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(25, 55, 75, 0.045);
    box-sizing: border-box;
}

/* Titres de section */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-order-details__title,
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-column__title {
    margin: 0 0 22px;
    padding: 0 0 14px;
    border-bottom: 1px solid #e5ecef;
    color: #173e50;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.4;
}

/* 4. Tableau des produits */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details {
    width: 100%;
    margin: 0;
    border: 0;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: auto;
    font-size: 14px;
}

/* En-tête */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details thead th {
   padding: 14px 16px;
  background: #edf5f7;
  border: 0;
  color: #000;
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Coins de l'en-tête */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details thead th:first-child {
    border-radius: 7px 0 0 0;
}

body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details thead th:last-child {
    border-radius: 0 7px 0 0;
    text-align: right;
}

/* Cellules du tableau */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tbody td {
    padding: 20px 16px;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #e8eef1;
    vertical-align: middle;
}

/* Nom du produit */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details .product-name a {
    color: #017693;
    font-weight: 600;
    text-decoration: none;
}

body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details .product-name a:hover {
    color: #11afb2;
    text-decoration: underline;
}

/* Quantité */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details .product-quantity {
    display: inline-block;
    margin-left: 5px;
    color: #607583;
    font-size: 13px;
    font-weight: 500;
}

/* Prix des produits */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tbody td.product-total {
    text-align: right;
    white-space: nowrap;
    font-weight: 600;
}

/* 5. Récapitulatif financier */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tfoot th,
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tfoot td {
    padding: 12px 16px;
    background: #ffffff;
    border: 0;
    border-bottom: 1px solid #edf1f3;
    font-size: 14px;
    vertical-align: top;
}

/* Libellés */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tfoot th {
    color: #526979;
    font-weight: 500;
    text-align: left;
}

/* Valeurs */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tfoot td {
    color: #263746;
    text-align: right;
}

/* Dernière ligne financière = total */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tfoot tr:has(.includes_tax) th,
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tfoot tr:has(.includes_tax) td {
    padding-top: 18px;
    padding-bottom: 18px;
    background: #f1f8fa;
    border-bottom: 0;
    color: #015f77;
    font-size: 16px;
    font-weight: 700;
}

/* Informations secondaires : TVA et livraison */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details small {
    color: #6a7e89;
    font-size: 12px;
    line-height: 1.6;
}

/* Notes et autres lignes */
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tfoot tr:not(:has(.includes_tax)) th,
body.woocommerce-account.woocommerce-view-order
#pages-compte table.woocommerce-table--order-details tfoot tr:not(:has(.includes_tax)) td {
    overflow-wrap: anywhere;
}

/* 6. Bouton de suivi du colis et actions */
/*body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-order-details .woocommerce-button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-height: 42px;
    margin: 5px 0 !important;
    padding: 10px 18px !important;
    border: 1px solid #017693 !important;
    border-radius: 7px !important;
    background: #017693 !important;
    color: #ffffff !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    text-align: center;
    text-decoration: none !important;
    white-space: normal;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}*/

body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-order-details .woocommerce-button:hover {
    background: #11afb2 !important;
    border-color: #11afb2 !important;
    color: #ffffff !important;
}

/* Neutraliser une éventuelle icône automatique Divi */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-order-details .woocommerce-button::after {
    display: none !important;
}

/* 7. Adresses : deux cartes */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-columns--addresses {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
    margin: 0;
}

/* Titres des adresses */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-columns--addresses .woocommerce-column__title {
    margin-bottom: 16px;
    padding-bottom: 12px;
    font-size: 16px;
}

/* Contenu des adresses */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-columns--addresses address {
    margin: 0;
    padding: 0;
    border: 0;
    color: #405866;
    font-size: 14px;
    font-style: normal;
    line-height: 1.9;
    overflow-wrap: anywhere;
}

/* Téléphone et e-mail */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-customer-details address p {
    margin: 10px 0 0;
}

/* Liens de contact */
body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-customer-details address a {
    color: #017693;
    overflow-wrap: anywhere;
}




/* ==========================================================
   VIEW-ORDER : ADRESSES DE FACTURATION ET DE LIVRAISON
   Desktop : côte à côte
   ========================================================== */

body.woocommerce-account.woocommerce-view-order
#pages-compte .woocommerce-customer-details .woocommerce-columns--addresses {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: stretch !important;
    gap: 20px !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}



















/*========================================================
  1. PAGE CONNEXION / INSCRIPTION WOOCOMMERCE sous forme d'onglets
========================================================*/

/* Bloc global */
#customer_login {
    display: block !important;
    width: 100%;
    margin-top: 50px;
}

/* Bordures des formulaires */
.woocommerce form.login,
.woocommerce form.register {
    margin: 0;
}

/* Titres des formulaires */
#customer_login h2 {
    font-size: 1.2em;
    margin: 20px 0 10px;
    text-align: center;
}

/* Onglets */
#customer_login .divi-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 30px;
}

#customer_login .divi-tabs button {
    flex: 1;
    padding: 12px;
    background: #002133;
    color: #fff;
    cursor: pointer;
    text-align: center;
    transition: filter 0.3s ease;
}

#customer_login .divi-tabs button.active {
    background: #0f969b;
}

/* Onglet inactif */
#customer_login .divi-tabs button:not(.active) {
    color: #ffffff70;
}

/* Survol de l'onglet inactif */
#customer_login .divi-tabs button:not(.active):hover {
    opacity: 0.8;
	color: #ffffff;
}


/* Contenu des formulaires */
#customer_login .u-column1,
#customer_login .u-column2 {
    display: none;
    width: 100%;
}

#customer_login .u-column1.active,
#customer_login .u-column2.active {
    display: block;
    width: 100%;
}

/* Neutralisation de la disposition WooCommerce */
#customer_login .u-columns {
    display: block !important;
    width: 100%;
}

/* Conteneur des formulaires */
#pages-compte {
    width: 100%;
    max-width: 900px;
	font-family: 'Outfit',Helvetica,Arial,Lucida,sans-serif;
  background-color: #f7f7f7;
  border-radius: 20px 20px 20px 20px;
  overflow: hidden;
  border-width: 1px;
  border-color: #d1d1d1;
  padding-top: 20px !important;
  padding-right: 30px !important;
  padding-bottom: 20px !important;
  padding-left: 30px !important;
}

/* WOO LOGIN > onglet inactif*/
.xoo-el-form-container ul.xoo-el-tabs li {
    background-color: #fff;
    border: 1px solid black;
}

/* WOO LOGIN > connection - mot de passe perdu */
#mon-compte-woo #pages-compte .woocommerce-form-login p.woocommerce-LostPassword {
    text-align: center !important;
    font-size: 14px;
}

/* WOO LOGIN > création de compte - phrase confidentialité*/
.woocommerce-privacy-policy-text p {
    font-size: 12px;
    padding: 5px 5px 10px 5px;
    line-height: 1.5em;
}




/*========================================================
  2. MON COMPTE - MENU LATÉRAL
========================================================*/

/* Couleur des liens */
#menu-gauche-compte .et_pb_menu_0_tb_body.et_pb_menu ul li a {
    width: 100%;
    padding: 20px 40px;
    color: #fff !important;
    background-color: #017693;
    box-sizing: border-box;
}

/* Survol des liens */
#menu-gauche-compte .et_pb_menu_0_tb_body.et_pb_menu ul li a:hover {
    background-color: #11afb2;
}

/* Élément actif */
#menu-gauche-compte .et_pb_menu_0_tb_body.et_pb_menu ul li.current-menu-item a {
    background-color: #11afb2;
}

/* Espacement des entrées */
#menu-gauche-compte .et_pb_menu .et-menu > li {
    padding: 0;
    margin: 1px;
}

/* Espacement vertical du menu sans logo */
#menu-gauche-compte .et_pb_menu--without-logo .et_pb_menu__menu > nav > ul > li > a {
    padding-bottom: 20px;
}


/*========================================================
  MON COMPTE : TABLETTE ET MOBILE
  Menu pleine largeur sur mobile
========================================================*/

@media screen and (max-width: 980px) {

    /* Conteneur du menu */
    #menu-gauche-compte {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0;
        margin-left: 0;
        flex: 0 0 100% !important;
        box-sizing: border-box;
    }

    /* Conteneurs internes du menu Divi */
    #menu-gauche-compte .et_pb_menu,
    #menu-gauche-compte .et_pb_menu_inner_container,
    #menu-gauche-compte .et_pb_menu__wrap,
    #menu-gauche-compte .et_pb_menu__menu,
    #menu-gauche-compte .et-menu-nav,
    #menu-gauche-compte .et-menu {
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
    }

    /* Liste verticale */
    #menu-gauche-compte .et-menu {
        display: block;
    }

    /* Entrées du menu */
    #menu-gauche-compte .et-menu > li {
        display: block;
        float: none;
        width: 100%;
        margin: 1px 0;
        box-sizing: border-box;
    }

    /* Liens pleine largeur */
    #menu-gauche-compte .et-menu > li > a {
        display: block;
        width: 100%;
        box-sizing: border-box;
    }

    /* Contenu principal sous le menu */
    #pages-compte {
        display: block !important;
        float: none;
        width: 100% !important;
        max-width: 100% !important;
        margin-right: 0;
        margin-left: 0;
        flex: 0 0 100% !important;
        box-sizing: border-box;
    }
}







/********************************************************************/
/******************* 1- MON COMPTE DIVERS  ****************************
/********************************************************************/

/* WOO MON COMPTE : ajuster le contenu des différentes pages */
.woocommerce-account .woocommerce-MyAccount-content {
    width: 100% !important;
}

/* WOO MON COMPTE : alignement du menu à gauche sur tablette et mobile*/
@media (max-width: 980px) {
    .et_pb_menu--style-left_aligned .et_pb_menu__wrap {
        -webkit-box-pack: end;
        -ms-flex-pack: end;
        justify-content: flex-start !important;
    }
}

/* WOO MON COMPTE : cacher colonne de liens*/
#mon-compte-woo .woocommerce-MyAccount-navigation {    
    display: none;
}

/* WOO MON COMPTE : cacher la fleche du menu si déconnecté*/
body:not(.logged-in) .menu-item-356789.menu-item-has-children>a::after {    
    display: none;
}



/*------------------- Style des boutons -----------------------------*/


/* WOO MON COMPTE : custom des bts de validation dans les pages internes */
#pages-compte:not(.bt-menu-compte) c.woocommerce a.button,
#pages-compte:not(.bt-menu-compte) .woocommerce .button.button,
#mon-compte-panier .woocommerce .button.button {
    margin: 0.5vh;
	width: 100%;
  text-align: center;
}

/* WOO MON COMPTE : custom bouton de la validation de commande*/
body .woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
    float: left;
}

/* WOO MON COMPTE : custom bouton désactivé dans chgmt de mdp*/
#mon-compte-woo button.button:disabled {    
	color: #FFF;
    cursor: none;
    pointer-events: none;
	font-size: 14px;
    background-color: #0f969b;
    border-color: #0f969b;
    border-radius: 30px;
}

#mon-compte-woo button.woocommerce-Button.button::after {
    font-weight: 300;
}

/*1. Les sélecteurs CSS des pages Mon compte


Tableau de bord
body.woocommerce-account.woocommerce-dashboard

Détails du compte
body.woocommerce-account.woocommerce-edit-account

Commandes
body.woocommerce-account.woocommerce-orders

Détails d'une commande
body.woocommerce-account.woocommerce-view-order

Téléchargements
body.woocommerce-account.woocommerce-downloads

Adresses  
body.woocommerce-account.woocommerce-edit-address

Moyens de paiement
body.woocommerce-account.woocommerce-payment-methods

Déconnexion
body.woocommerce-account.woocommerce-logout*/



/********************************************************************/
/******************* MON COMPTE -  GENERALITES  *********************
/********************************************************************/


/*=========== FORMULAIRES ===================*/

/* WOO MON COMPTE mes infos > formulaire */
#mon-compte-woo .woocommerce form .form-row input.input-text,
body #validation-commande form .form-row input.input-text {
    color: #017693;
}

#mon-compte-woo .woocommerce form .form-row label {
    line-height: 2;
    font-weight: 500;
    font-size: 14px;
}

#mon-compte-woo .woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
    width: 100%;
    padding: 12px;
}

/* Champs du formulaire */
body.woocommerce-account .woocommerce form .input-text,
body.woocommerce-account .woocommerce form input[type="text"],
body.woocommerce-account .woocommerce form input[type="email"],
body.woocommerce-account .woocommerce form input[type="password"],
body.woocommerce-account .woocommerce form input[type="tel"] {
	width: 100%;
	min-height: 48px;
	padding: 12px 14px;
	color: #263746;
	background-color: #ffffff;
	border: 1px solid #cbd8df;
	border-radius: 8px;
	box-sizing: border-box;
	box-shadow: none;
	font-size: 15px;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Focus : champ sélectionné */ 
body.woocommerce-account .woocommerce form .input-text:focus { 
	outline: none;
	border-color: #017693;
	box-shadow: 0 0 0 3px rgba(1, 118, 147, 0.12);
}


/********************************************************************/
/************* 01 MON COMPTE - DETAILS DU COMPTE  *******************
/********************************************************************/


/* ligne "indique comment votre nom....*/
#mon-compte-woo #pages-compte em {
    font-size: small;
}

/* WOO MON COMPTE mes infos > titre "changement de mot de passe*/
#mon-compte-woo #pages-compte .woocommerce-EditAccountForm fieldset legend {
    font-size: 1.2em;
    padding: 10px;
    font-weight: 700;
}


/* Séparation de la section mot de passe */
body.woocommerce-account .woocommerce-EditAccountForm fieldset {
	margin-top: 28px; margin-bottom: 24px;
	padding: 22px; border: 1px solid #dce5e9;
	border-radius: 10px; }




/********************************************************************/
/************* 02 MON COMPTE - COMMANDES + PAIEMENTS  *******************
/********************************************************************/


/*========================================================
  MON COMPTE WOOCOMMERCE : SÉPARATION DES COMMANDES
========================================================*/

/* Espacement entre les lignes de commandes */
.woocommerce-MyAccount-content table.woocommerce-orders-table {
    border-collapse: separate;
    border-spacing: 0 10px;
    border: none;
}

/* Chaque commande */
.woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr {
    background-color: #ffffff;
}

/* Cellules de chaque commande */
.woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr th,
.woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td {
    padding: 16px 12px;
    border-top: 1px solid #e0e5e9;
    border-bottom: 1px solid #e0e5e9;
}

/* Cellule de gauche */
.woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr th:first-child {
    border-radius: 6px 0 0 6px;
	border-left: 1px solid #e0e5e9;
}

/* Cellule de droite droite */
.woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td:last-child {
    border-radius: 0 6px 6px 0;
	border-right: 1px solid #e0e5e9;
}

/* Effet discret au survol */
.woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr:hover {
    background-color: #edf4f8;
}
/* supprimer l'arriere plan une cellule sur 2 */
.woocommerce table.shop_table_responsive tr:nth-child(2n) td, .woocommerce-page table.shop_table_responsive tr:nth-child(2n) td {
  background-color: rgba(0,0,0,0);
}


/*========================================================
  MON COMPTE : COMMANDES - ADAPTATION MOBILE
========================================================*/

@media screen and (max-width: 767px) {

    /* Supprime l'espacement propre au tableau desktop */
    .woocommerce-MyAccount-content table.woocommerce-orders-table {
        border-spacing: 0;
        border-collapse: separate;
        border: none;
    }

    /* Chaque commande devient une carte */
    .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr {
        display: block;
        width: 100%;
        margin-bottom: 16px;
        padding: 8px 14px;
        border: 1px solid #e0e5e9;
        border-radius: 8px;
        box-sizing: border-box;
    }

    /* Cellules empilées dans la carte */
    .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr th,
    .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        gap: 12px;
        width: 100%;
        padding: 10px 0;
        text-align: right;
        border: none;
        border-bottom: 1px solid #e5eaee;
        box-sizing: border-box;
    }

    /* Première cellule */
    .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr th:first-child {
        border-radius: 0;
    }

    /* Dernière cellule : pas de bordure inférieure */
    .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td:last-child {
        border-bottom: none;
        border-radius: 0;
    }

    /* Libellés générés par WooCommerce */
    .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td::before {
        flex: 0 0 auto;
        margin-right: auto;
        padding-right: 8px;
        color: #526779;
        font-weight: 600;
        text-align: left;
    }

    /* Actions alignées à droite */
    .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td:last-child {
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    /* Boutons d'action */
    .woocommerce-MyAccount-content table.woocommerce-orders-table tbody tr td .button {
        margin: 2px 0 2px 6px;
    }
}



/********************************************************************/
/**************** 03 MON COMPTE - adresses  *************************
/********************************************************************/

/*========================================================
  MON COMPTE > Adresses + CHECKOUT
  Cases de copie de la même adresse pour livraison/facturation
========================================================*/

/* Conteneurs */
.woocommerce-MyAccount-content .mc-copy-address-option,
.wc-block-checkout__use-address-for-billing {
    display: block;
    margin: 24px 0 20px;
    padding: 18px 20px;
    background-color: #f3f8fc;
    border: 1px solid #d4e3ef;
    border-left: 4px solid #3979a8;
    border-radius: 6px;
    box-sizing: border-box;
}

/* Cases à cocher */
.woocommerce-MyAccount-content .mc-copy-address-option input[type="checkbox"],
.wc-block-checkout__use-address-for-billing input[type="checkbox"] {
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 3px 0 0;
    accent-color: #3979a8;
    cursor: pointer;
}

/* Titre  dans Mes adresses */
.woocommerce-MyAccount-content .mc-copy-address-content strong {
    display: block;
    margin: 0;
    color: #244c6b;
    font-size: 15px;
    font-weight: 700;
}

/* Description  dans Mes adresses */
.woocommerce-MyAccount-content .mc-copy-address-content small {
    display: block;
    margin-top: 5px;
    color: #526779;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.6;
}

/* Adaptation mobile */
@media screen and (max-width: 767px) {
    .woocommerce-MyAccount-content .mc-copy-address-option,
    .wc-block-checkout__use-address-for-billing {
        margin: 20px 0;
        padding: 15px;
    }
}
/*===================== FIN ===========================*/



/* WOO MES ADRESSES : ajustement des blocs adresses*/
#mon-compte-woo .woocommerce-Address {
    float: left;
    background-color: #ffffff;
    width: 48%;
    padding: 30px;
    margin: 5px;
}

/* WOO MES ADRESSES : alignement des liens "modifier adresse..." à gauche*/
.woocommerce-account .addresses .title .edit {
    float: left;
    margin-bottom: 10px;
}

@media (max-width: 980px) {
    #mon-compte-woo .woocommerce-Address {
        width: 100%;
    }
}

/* WOO MES ADRESSES : personnalisation des messages erreurs etc*/

/*-------LES ALERTES INFO --------------*/
#mon-compte-woo div.woocommerce-info,
#validation-commande div.woocommerce-info {
background: #e9e9e9 !important;
  border: none !important;
  color: #000 !important;
  font-size: 16px !important;
}

#mon-compte-woo .woocommerce-info li,
#mon-compte-woo .woocommerce .woocommerce-NoticeGroup-checkout .woocommerce-info li,
#mon-compte-woo .woocommerce .woocommerce-MyAccount-content .woocommerce-info li {
    background: none;
    font-size: 16px;
    color: grey;
    padding: 0px;
}






/*-------LES ALERTES MESSAGE --------------*/

#mon-compte-woo .woocommerce-message a {
    color: #017693;
    margin-left: 15px;
}

#mon-compte-woo .woocommerce div.woocommerce-MyAccount-content div.woocommerce-notices-wrapper div.woocommerce-message {
    /* message succes chgmt adresse*/
    background: #0176931f !important;
    color: #017693 !important;
    font-size: 16px !important;
}

#mon-compte-woo .woocommerce-message li,
#mon-compte-woo .woocommerce .woocommerce-NoticeGroup-checkout .woocommerce-message li,
#mon-compte-woo .woocommerce .woocommerce-MyAccount-content .woocommerce-message li {
    color: #004424;
    background: #1bc6b666;
    font-size: 16px;
}

/*-------LES ALERTES ERROR --------------*/

#mon-compte-woo ul.woocommerce-error {
    background: #a41b1b1f !important;
    color: #a41b1b !important;
    font-size: 16px;
}

#mon-compte-woo .woocommerce .woocommerce-NoticeGroup-checkout .woocommerce-error li,
#mon-compte-woo .woocommerce .woocommerce-MyAccount-content .woocommerce-error li,
#mon-compte-woo .woocommerce-error,
#validation-commande .woocommerce-error {
    background: #0000 !important;
    color: #a41b1b !important;
    font-size: 16px;
}



/* ==========================================================
   MON COMPTE > COMMANDES
   ========================================================== */


/* ==========================================================
   1. SÉLECTEURS COMMUNS  */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    vertical-align: middle !important;
    min-width: 190px;
}

/* ==========================================================
   2. STYLE GÉNÉRAL DES BOUTONS */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    box-sizing: border-box !important;

    width: 170px !important;
    min-width: 160px !important;
    height: 36px !important;
    min-height: 36px !important;

    margin: 4px 0 !important;
    padding: 6px 8px !important;

    border: 1px solid #017693 !important;
    border-radius: 4px !important;

    background-color: #017693 !important;
    color: #ffffff !important;

    font-size: 13px !important;
    font-weight: normal !important;
    line-height: 1.2 !important;
    text-align: center !important;
    text-decoration: none !important;
    white-space: nowrap !important;

    box-shadow: none !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease !important;
}

/* ==========================================================
   3. ICÔNES DIVI — STYLE COMMUN */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button::before {
    position: static !important;
    display: inline-block !important;
    flex-shrink: 0 !important;

    margin: 0 8px 0 0 !important;
    padding: 0 !important;

    color: #ffffff !important;
    font-family: "ETmodules" !important;
    font-size: 16px !important;
    font-weight: normal !important;
    line-height: 1 !important;

    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
}

/* ==========================================================
   4. ICÔNE DU BOUTON VOIR */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.view::before {
    content: "" !important;
}


/* ==========================================================
   5. ICÔNE DU BOUTON SUIVRE MON COLIS */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.mrwp::before {
    content: "\e081" !important;
}


/* ==========================================================
   6. ICÔNE DU BOUTON FACTURE */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.invoice::before {
    content: "\e059" !important;
}


/* ==========================================================
   7. STYLE INVERSÉ — FACTURE ET SUIVRE MON COLIS */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.invoice,
body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.mrwp {
    background-color: #ffffff !important;
    color: #017693 !important;
    border-color: #017693 !important;
    box-shadow: none !important;
}

/* ==========================================================
  Icônes des boutons inversés */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.invoice::before,
body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.mrwp::before {
    color: #017693 !important;
}


/* ==========================================================
   8. EFFET AU SURVOL — DESKTOP */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.invoice:hover,
body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.mrwp:hover {
    background-color: #ffffff !important;
    color: #11afb2 !important;
    border-color: #11afb2 !important;
}

/* ==========================================================
   Couleur des icônes au survol */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.invoice:hover::before,
body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.mrwp:hover::before {
    color: #11afb2 !important;
}


/* ==========================================================
   9. ORDRE DES BOUTONS
   Voir → Facture → Suivre mon colis  */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.view {
    order: 1 !important;
}

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.invoice {
    order: 2 !important;
}

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.mrwp {
    order: 3 !important;
}


/* ==========================================================
   10. TABLETTE — JUSQU'À 980 PX */

@media screen and (max-width: 980px) {

    body.woocommerce-account.woocommerce-orders
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions {
        min-width: 170px;
    }

    body.woocommerce-account.woocommerce-orders
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions
    a.woocommerce-button {
        width: 150px !important;
        min-width: 130px !important;
        height: 38px !important;
        min-height: 38px !important;

        font-size: 12px !important;
    }

}



/* ==========================================================
   11. MOBILE — BOUTONS EN PLEINE LARGEUR */

@media screen and (max-width: 767px) {

    body.woocommerce-account.woocommerce-orders
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;

        width: 100% !important;
        min-width: 0 !important;

        box-sizing: border-box !important;
        padding: 8px !important;
    }

    body.woocommerce-account.woocommerce-orders
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions
    a.woocommerce-button {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: 42px !important;
        min-height: 42px !important;

        margin: 0px 0 !important;
        padding: 8px 10px !important;

        box-sizing: border-box !important;

        font-size: 12px !important;
        white-space: nowrap !important;
    }

    body.woocommerce-account.woocommerce-orders
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions
    a.woocommerce-button::before {
        margin-right: 6px !important;
        font-size: 14px !important;
    }

}


/* ==========================================================
   12. PETITS MOBILES — JUSQU'À 380 PX */

@media screen and (max-width: 380px) {

    body.woocommerce-account.woocommerce-orders
    table.woocommerce-orders-table
    td.woocommerce-orders-table__cell-order-actions
    a.woocommerce-button {
        width: 100% !important;
        min-width: 0 !important;
        max-width: 100% !important;

        height: 40px !important;
        min-height: 40px !important;

        font-size: 12px !important;
    }

}


/* ==========================================================
   BOUTON VOIR : EFFET HOVER
   ========================================================== */

/* État normal */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.view {
    background-color: #017693 !important;
    color: #ffffff !important;
    border-color: #017693 !important;

    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        border-color 0.2s ease !important;
}

/* Icône à l'état normal */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.view::before {
    color: #ffffff !important;
}

/* Survol */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.view:hover {
    background-color: #11afb2 !important;
    color: #ffffff !important;
    border-color: #11afb2 !important;
}

/* Icône au survol */

body.woocommerce-account.woocommerce-orders
table.woocommerce-orders-table
td.woocommerce-orders-table__cell-order-actions
a.woocommerce-button.view:hover::before {
    color: #ffffff !important;
}




