/* START PAGE MON COMPTE SE CONNECTER & S'ENREGISTRER */

#top form.login, #top form.register {
    height: 500px;
}

form.login p.form-row .button {
    float: unset;
    margin: 10px 0 0 0;
    width: 50%;
    font-size: 20px;
    transition: 0.3s ease;
}

form.login p.form-row .button:hover {
    background-color: #2E3F77;
}

form.login p.woocommerce-LostPassword.lost_password {
    position: unset !important;
}

form.register p.form-row .button {
    float: unset;
    margin: 10px 0 0 0;
    width: 50%;
    font-size: 20px;
    transition: 0.3s ease;
}

form.register p.form-row .button:hover {
    background-color: #2E3F77;
}

@media only screen and (max-width: 767px) {
    .responsive #top .col2-set .col-1, .responsive #top .col2-set .col-2 {
        width: 100%;
    }

    #top form.login, #top form.register {
        height: auto;
    }

    form.login p.form-row .button,
    form.register p.form-row .button {
        width: 100%;
    }
}

/* END PAGE MON COMPTE SE CONNECTER & S'ENREGISTRER */

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

/* START PAGE MON COMPTE REINITIALISER MOT DE PASSE */

button.show-password-input {
    /*width: 20px;*/
    height: 20px;
    margin-top: 10px;
    /* background: transparent; */
    border: none;
    cursor: pointer;
}

button.show-password-input::after {
    content: attr(aria-label);
    /*margin-left: 8px;*/
    font-size: 14px;
    color: black;
    min-width: auto;
}

form.lost_reset_password p.form-row .button {
    float: unset;
    margin: 10px 0 0 0;
    width: 250px;
    font-size: 20px;
    transition: 0.3s ease;
}

form.lost_reset_password p.form-row .button:hover {
    background-color: #2E3F77;
}

@media only screen and (max-width: 767px) {
    div.container_mon_compte form.lost_reset_password {
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    div.container_mon_compte form.lost_reset_password .form-row-first, 
    div.container_mon_compte form.lost_reset_password .form-row-last {
        width: 100%;
    }

    div.container_mon_compte form.lost_reset_password p.woocommerce-form-row.form-row {
        width: 100%;
    }

    form.lost_reset_password p.form-row .button {
        width: 100%;
    }
}

/* END PAGE MON COMPTE REINITIALISER MOT DE PASSE */

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

/* START PAGE MON COMPTE ONGLET TABLEAU DE BORD */

div.container_mon_compte div.woocommerce-MyAccount-content p strong {
    color: #2E3F77;
}

div.container_mon_compte div.woocommerce-MyAccount-content p a {
    color: #e60c80;
    text-decoration: underline !important;
    text-decoration-color: #2E3F77 !important;
    text-decoration-thickness: 2px !important;
    text-underline-offset: 5px;
}

/* END PAGE MON COMPTE ONGLET TABLEAU DE BORD */


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


/* START PAGE MON COMPTE ONGLET COMMANDES */

div.container_mon_compte div.woocommerce-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

div.container_mon_compte div.woocommerce-info a.woocommerce-Button.wc-forward.button {
    margin: 20px 0;
    font-size: 20px;
    transition: 0.3s ease !important;
}

div.container_mon_compte div.woocommerce-info a.woocommerce-Button.wc-forward.button:hover {
    background-color: #2E3F77 !important;
}

    /* START TABLEAU COMMANDE */

    /* Par défaut : affichage en tableau */
    .woocommerce-orders-table {
        width: 100%;
        border-collapse: collapse;
    }
    
    .woocommerce-orders-table thead {
        display: table-header-group;
    }
    
    .woocommerce-orders-table tbody {
        display: table-row-group;
    }
    
    .woocommerce-orders-table tr {
        display: table-row;
    }

    #top .my_account_orders a.button {
        padding: 10px 20px;
        margin-bottom: 0;
    }
    /*
    .woocommerce-orders-table th, .woocommerce-orders-table td {
        padding: 10px;
        border: 1px solid #ddd;
    }
    */

    @media (max-width: 768px) {
        /* Enlever le header pour les petits écrans */
        .woocommerce-orders-table thead {
            display: none;
        }

        /* Afficher la première colonne de type `Commande` en mobile */
        .woocommerce-orders-table__header-order-number {
            display: block;
            font-weight: bold;
            margin-bottom: 10px;
        }

        /* Assurez-vous que le contenu de `th` est visible en mobile */
        .woocommerce-orders-table th {
            display: flex;
            flex-direction: row;
            /*justify-content: space-between;*/
            padding: 10px;
            border: none;
        }

        .responsive table.shop_table th {
            font-size: 16px;
            font-weight: bold;
            line-height: 25px;
            padding: 6px 12px;
            text-transform: none;
            border-left: none;
            border-top: none;
        }

        .woocommerce-orders-table th::before {
            content: attr(data-title);
            font-weight: bold;
            margin-right: 10px;
        }
    
        /* Afficher chaque ligne de tbody comme un bloc avec flexbox */
        .woocommerce-orders-table tr {
            display: flex;
            flex-direction: column;
            /*margin-bottom: 15px;*/
            border: 1px solid #ddd;
            padding: 10px;
        }
    
        /* Afficher chaque cellule avec son label */
        .woocommerce-orders-table td {
            display: flex;
            flex-direction: row;
            /*justify-content: space-between;*/
            padding: 10px;
            border: none;
            font-size: 16px;
        }
    
        /* Utiliser les attributs `data-title` pour ajouter les labels */
        .woocommerce-orders-table td::before {
            content: attr(data-title);
            font-weight: bold;
            margin-right: 10px;
        }

        td.woocommerce-orders-table__cell.woocommerce-orders-table__cell-order-actions {
            align-items: center;
        }

        #top .my_account_orders a.button {
            font-size: 14px;
        }
    }

    @media only screen and (max-width: 479px) {
        .responsive table.shop_table td {
            display: inherit;
        }
    }
    
    /* END TABLEAU COMMANDE */

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

    /* START TABLEAU DETAILS COMMANDE */

    th.woocommerce-table__product-table.product-total {
        display: none;
    }

    table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details td.woocommerce-table__product-total.product-total {
        display: none;
    }

    td.woocommerce-table__product-name.product-name ul.wc-item-meta li {
        display: flex;
        align-items: baseline;
    }

    td.woocommerce-table__product-name.product-name ul.wc-item-meta li strong {
        font-size: 14px;
    }

    td.woocommerce-table__product-name.product-name ul.wc-item-meta li p {
        font-size: 14px;
        font-weight: bold;
        margin: 0 0 0 10px ;
    }

    div.container_mon_compte div.woocommerce-MyAccount-content p.order-again a {
        color: #fff !important;
        text-decoration-color: #fff !important;
        font-size: 14px;
    }

    @media only screen and (max-width: 767px) {
        .responsive #top table .product-name {
            border-left-style: none;
            border-left-width: 0;
        }

        table.woocommerce-table--order-details.shop_table th {
            font-size: 14px;
        }

        /* Cacher le header en mobile */
        .woocommerce-table.woocommerce-table--order-details thead {
            display: none;
        }

        table.woocommerce-table.woocommerce-table--order-details.shop_table.order_details {
            padding: 10px !important;
        }

        td.woocommerce-table__product-name.product-name {
            display: initial !important;
        }

        td.woocommerce-table__product-name.product-name ul.wc-item-meta li {
            margin-top: 10px !important;
        }

        /* Transformer les lignes en colonnes pour mobile */
        .woocommerce-table.woocommerce-table--order-details tr {
            display: flex;
            flex-direction: column;
            border: 1px solid #ddd;
            margin-bottom: 10px;
            padding: 10px;
        }

        /* Ajuster les cellules */
        .woocommerce-table.woocommerce-table--order-details td,
        .woocommerce-table.woocommerce-table--order-details th {
            /*
            display: flex;
            justify-content: space-between;
            padding: 8px 10px;
            */
            border: none;
        }

        /* Utiliser `data-title` pour ajouter les labels avant chaque contenu */
        .woocommerce-table.woocommerce-table--order-details td::before,
        .woocommerce-table.woocommerce-table--order-details th::before {
            content: attr(data-title);
            font-weight: bold;
            /*margin-right: 10px;*/
        }

        /* Appliquer les labels dynamiques avec data-title pour chaque cellule */
        .woocommerce-table.woocommerce-table--order-details .product-name::before {
            content: "Produit";
        }

        .woocommerce-table.woocommerce-table--order-details .product-total::before {
            content: "Total";
        }

        /*
        .woocommerce-table.woocommerce-table--order-details tfoot th::before {
            content: attr(scope) ": ";
        }
        */
    }

    /* END TABLEAU DETAILS COMMANDE */

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

/* END PAGE MON COMPTE ONGLET COMMANDES */


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


/* START PAGE MON COMPTE ONGLET TELECHARGEMENT */

li.woocommerce-MyAccount-navigation-link.woocommerce-MyAccount-navigation-link--downloads {
    display: none;
}

div.container_mon_compte div.woocommerce-info a.button.wc-forward {
    margin: 20px 0;
    font-size: 20px;
    transition: 0.3s ease !important;
}

div.container_mon_compte div.woocommerce-info a.button.wc-forward:hover {
    background-color: #2E3F77 !important;
}

/* END PAGE MON COMPTE ONGLET TELECHARGEMENT */


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


/* START PAGE MON COMPTE ONGLET ADRESSES */

    /* START ADRESSE FACTURATION & LIVRAISON */

    div.container_mon_compte div.woocommerce-Addresses a.edit {
        color: #e60c80;
        text-decoration: underline !important;
        text-decoration-color: #2E3F77 !important;
        text-decoration-thickness: 2px !important;
        text-underline-offset: 5px;
        margin: 15px 0;
    }

    div.container_mon_compte div.woocommerce-MyAccount-content form button.button {
        font-size: 20px;
        transition: 0.3s ease !important;
    }

    div.container_mon_compte div.woocommerce-MyAccount-content form button.button:hover {
        background-color: #2E3F77 !important;
    }

    @media only screen and (max-width: 992px) {
        ul.woocommerce-error li {
            flex-direction: row !important;
        }
        
        div.container_mon_compte div.woocommerce-MyAccount-content div.u-columns.woocommerce-Addresses.col2-set.addresses {
            display: flex;
            flex-direction: column;
            width: 100%;
            height: auto;
        }

        div.u-columns.woocommerce-Addresses.col2-set.addresses div.woocommerce-Address {
            width: 100%;
            margin: 20px 0;
        }
    }

    /* END ADRESSE FACTURATION */

/* END PAGE MON COMPTE ONGLET ADRESSES */


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


/* START PAGE MON COMPTE ONGLET DETAILS DU COMPTE */

#top div form .form-row input.input-text {
    font-size: 20px;
    color: #555555;
}

div.container_mon_compte form.woocommerce-EditAccountForm.edit-account button.woocommerce-Button.button {
    font-size: 20px;
    transition: 0.3s ease !important;
}

div.container_mon_compte form.woocommerce-EditAccountForm.edit-account button.woocommerce-Button.button:hover {
    background-color: #2E3F77 !important;
}

@media only screen and (max-width: 992px) {
    #top div form .form-row input.input-text {
        font-size: 18px;
    }
}

@media only screen and (max-width: 767px) {
    #top div form .form-row input.input-text {
        font-size: 16px;
    }
}

/* END PAGE MON COMPTE ONGLET DETAILS DU COMPTE */


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


/* START PAGE MON COMPTE SIDEBAR */

button#open_account_navigation,
button#close_account_navigation {
    display: none;
    font-size: 14px;
}

div.container_mon_compte .woocommerce-MyAccount-navigation ul li a {
    text-align: left;
}

@media only screen and (max-width: 767px) {
    button#open_account_navigation,
    button#close_account_navigation {
        display: block;
    }

    .hidden-navigation {
        transform: translateX(-105%); /* Cache la navigation en la déplaçant à gauche */
        transition: 0.3s ease;
        position: absolute; /* Pour pouvoir l'aligner facilement */
        top: 0;
        left: 0;
        width: 100%;
        background: #fff; /* Optionnel : style de la navigation */
    }
    
    /* Lorsque la navigation est visible, elle revient à sa place */
    .visible-navigation {
        transform: translateX(0);
        transition: 0.3s ease;
        z-index: 9998;
    }
    
    /* Style des boutons */
    .button_toggle_navigation {
        background-color: #000;
        color: white;
        padding: 10px 20px;
        border: none;
        cursor: pointer;
        margin-bottom: 20px;
        transition: 0.3s ease;
    }
    
    .button_toggle_navigation:hover {
        background-color: #2E3F77;
    }

    button#close_account_navigation {
        margin: 20px 0 20px 10px;
    }

    /* Effet de transparence */
    .transparent-background {
        opacity: 0.1; /* Ajuste ce niveau de transparence selon tes besoins */
        transition: opacity 0.3s ease; /* Transition fluide */
    }

    /* Retour à l'opacité normale */
    .woocommerce-MyAccount-content {
        transition: opacity 0.3s ease; /* Transition fluide */
    }
}