/*
 Theme Name: Divi Child
 Theme URI: https://formationsenfance.ca/
 Description: Thème enfant pour Divi
 Author: Formations Enfance
 Author URI: https://formationsenfance.ca/
 Template: Divi
 Version: 1.0
*/

/* Tu peux ajouter ici ton CSS personnalisé */
/* === Personnalisations Tutor LMS === */
.tutor-tab-item .tutor-fs-5.tutor-fw-medium.tutor-color-black.tutor-mb-12 {
    display: none;
}

/* --- PANIER : STYLE HARMONISÉ (rose / menthe) --- */

/* Tableau du panier */
.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* En-têtes */
.woocommerce-cart table.shop_table th {
  background-color: #f9f5f8;
  color: #9c3379;
  font-weight: 600;
  padding: 15px;
  text-align: left;
  text-transform: uppercase;
  font-size: 14px;
}

/* Cellules */
.woocommerce-cart table.shop_table td {
  border-top: 1px solid #eee;
  padding: 18px 15px;
  vertical-align: middle;
  font-size: 16px;
  color: #333;
}

/* Colonne Sous-total plus large */
.woocommerce-cart table.shop_table td.product-subtotal {
  width: 180px;
  text-align: right;
}

/* Alignement des totaux */
.woocommerce-cart .cart_totals table {
  width: 100%;
  border: none;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  padding: 10px 0;
  border: none;
  text-align: left;
  font-size: 16px;
}

.woocommerce-cart .cart_totals tr.order-total th,
.woocommerce-cart .cart_totals tr.order-total td {
  font-size: 18px;
  font-weight: bold;
  color: #9c3379;
}

/* Espacement et présentation du bloc total */
.woocommerce-cart .cart_totals {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 40px;
}

/* Supprimer le bouton “Mettre à jour le panier” */
button[name="update_cart"],
.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] {
  display: none !important;
}

/* Bouton “Valider la commande” */
.wc-block-cart__submit-button,
.woocommerce a.button.checkout-button {
  background-color: #9c3379 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  text-transform: uppercase;
  font-weight: 600;
  width: 100%;
  transition: all 0.2s ease-in-out;
}

.wc-block-cart__submit-button:hover,
.woocommerce a.button.checkout-button:hover {
  background-color: #000 !important;
}

/* Espacement global */
.woocommerce-cart,
.wc-block-cart {
  margin-top: 30px;
  margin-bottom: 50px;
}

/* --- PANIER HARMONISÉ (version finale) --- */

/* Tableau principal */
.woocommerce-cart table.shop_table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* En-têtes */
.woocommerce-cart table.shop_table th {
  background-color: #f9f5f8;
  color: #9c3379;
  font-weight: 600;
  padding: 15px;
  text-transform: uppercase;
  font-size: 14px;
}

/* Cellules */
.woocommerce-cart table.shop_table td {
  border-top: 1px solid #eee;
  padding: 18px 15px;
  vertical-align: middle;
  font-size: 16px;
  color: #333;
}

/* Colonne sous-total plus large et alignée à droite */
.woocommerce-cart table.shop_table td.product-subtotal {
  width: 180px;
  text-align: right;
}

/* --- Bloc “Total du panier” --- */
.woocommerce-cart .cart_totals {
  background: #fff;
  padding: 25px 30px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  margin-top: 40px;
  max-width: 380px;
  margin-left: auto; /* ✅ Aligne à droite */
}

/* Supprime le titre “Total panier” */
.woocommerce-cart .cart_totals h2 {
  display: none !important;
}

/* Tableau des totaux internes */
.woocommerce-cart .cart_totals table {
  width: 100%;
  border: none;
}

.woocommerce-cart .cart_totals th,
.woocommerce-cart .cart_totals td {
  padding: 10px 0;
  border: none;
  text-align: right;
  font-size: 16px;
}

/* Renomme “Total” → “Total du panier” */
.woocommerce-cart .cart_totals tr.order-total th::after {
  content: " du panier";
}

/* Style du total */
.woocommerce-cart .cart_totals tr.order-total th,
.woocommerce-cart .cart_totals tr.order-total td {
  font-size: 18px;
  font-weight: bold;
  color: #9c3379;
}

/* Supprime le bouton “Mettre à jour le panier” */
button[name="update_cart"],
.woocommerce button[name="update_cart"],
.woocommerce input[name="update_cart"] {
  display: none !important;
}

/* Bouton “Valider la commande” aligné à droite */
.wc-block-cart__submit-button,
.woocommerce a.button.checkout-button {
  background-color: #9c3379 !important;
  color: #fff !important;
  border: none;
  border-radius: 8px;
  padding: 14px 28px;
  text-transform: uppercase;
  font-weight: 600;
  width: auto; /* ✅ Ajuste à sa taille */
  display: block;
  margin-left: auto; /* ✅ Aligne à droite */
  margin-top: 15px;
  transition: all 0.2s ease-in-out;
}

.wc-block-cart__submit-button:hover,
.woocommerce a.button.checkout-button:hover {
  background-color: #000 !important;
}

/* Espacement global */
.woocommerce-cart,
.wc-block-cart {
  margin-top: 30px;
  margin-bottom: 50px;
}