/* 
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme-child/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 2.0.0
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

/* Variables CSS pour la palette de couleurs */
:root {
  --primary-green: #2d5016;
  --secondary-green: #4a7c59;
  --light-green: #7fb069;
  --accent-green: #a7c957;
  --very-light-green: #f0f7ed;
  --white: #ffffff;
  --dark-text: #2c3e50;
  --light-text: #6c757d;
  --gold-accent: #d4af37;
}

/* Add your custom styles here */

.comments-area a,
.page-content a {
  text-decoration: none;
}
.elementor-widget-text-editor ul,
.elementor-widget-text-editor ol {
  margin-bottom: 1.5rem;
}
/***** header *****/

/* Sticky header */
#masthead.elementor-sticky-custom {
  position: fixed !important;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99;
  transition: transform 0.3s ease-in-out !important;
  will-change: transform;
}

/* Masqué quand on scroll down */
#masthead.elementor-sticky-custom.header-hidden {
  transform: translateY(-100%) !important;
}

/* Centrer le sous-menu sous le menu parent */
.header-menu .sub-menu {
  padding: 10px 15px 20px 15px !important;
  left: 50% !important;
  transform: translateX(-50%) !important;
  min-width: 230px !important;
  grid-template-columns: 1fr;
  width: auto !important;
}

@media (min-width: 768px) {
  .header-menu .sub-menu {
    /* Ajustement automatique des colonnes */
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 0;
  }

  /* Deux colonnes quand plus de 6 items */
  .header-menu .sub-menu:has(> li:nth-child(7)) {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Centrage du contenu */
  .header-menu .sub-menu li {
    display: flex;
    align-items: start;
    width: 230px;
  }
}

.header-menu .hfe-menu-item:after {
  content: "";
  position: absolute;
  bottom: 0px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--primary-green);
  transition: width 0.3s ease;
}

.header-menu .hfe-menu-item:hover:after {
  width: 100%;
}

/***** Newsletter *****/

.newsletter-form .ff-default .ff_btn_style:focus,
.newsletter-form .ff-default .ff_btn_style:hover {
  opacity: 1;
  outline: 0;
  text-decoration: none;
}

.newsletter-form .frm-fluent-form .ff-t-cell .ff_submit_btn_wrapper_custom {
  margin: 0;
}

/***** 404 *****/
body.error404 #content.site-main {
  text-align: center;
  margin-bottom: 120px;
  margin-top: 120px;
}

body.error404 #content .entry-title {
  font-size: 74px;
  font-weight: 700;
  margin-bottom: 40px;
}

/***** contact *****/

.ff-message-success {
  border: none !important;
  box-shadow: none !important;
}

/***** detail article *****/
.detail-post {
  padding: 80px 20px;
}

.detail-post .post-thumbnail img {
  max-height: 500px;
  -o-object-fit: cover;
  object-fit: cover;
  width: 100%;
  border-radius: 15px;
}

.detail-post .post-meta {
  margin: 0.5rem 0 2rem;
  font-size: 0.9rem;
  color: var(--light-text);
}

.detail-post .post-meta .post-sep {
  margin: 0 0.5rem;
}

.detail-post .post-meta .post-categories a {
  color: var(--light-green);
  text-decoration: none;
  font-weight: 500;
}

.post-meta .post-categories a:hover {
  color: var(--secondary-green);
}

.post-type-archive-product #main,
.archive #main,
.single-product #main {
  padding: 60px 20px;
}

@media (max-width: 1199px) {
  body:not([class*="elementor-page-"]) .site-main {
    max-width: 100% !important;
  }
}

.woocommerce-Address-title h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-top: 0;
  margin-bottom: 20px;
}
.woocommerce-account .addresses .title .edit {
  float: left;
}

.woocommerce-EditAccountForm fieldset {
  margin-bottom: 40px;
}
/* === BOUTIQUE === */

.woocommerce.archive ul.products.columns-4 {
  list-style: none;
  margin: 40px 0 !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
}

.woocommerce ul.products li.product {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  text-align: left;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 calc(25% - 30px) !important;
  max-width: calc(25% - 30px) !important;
  min-width: 200px !important;
  box-sizing: border-box !important;
  margin: 10px;
}

.woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

/* Le lien qui englobe image, titre et prix */
.woocommerce ul.products li.product .woocommerce-loop-product__link {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  text-decoration: none !important;
  color: inherit !important;
}

.woocommerce ul.products li.product img {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  color: var(--primary-green);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  min-height: 50px;
  line-height: 1.3;
}

.woocommerce ul.products li.product .price {
  color: var(--gold-accent);
  font-weight: 700;
  font-size: 1.1rem;
  margin-top: auto !important;
  margin-bottom: 0 !important;
  padding-top: 8px;
}

/* Le bouton est en dehors du lien */
.woocommerce ul.products li.product a.button {
  display: block !important;
  margin-top: 12px !important;
  background: var(--light-green);
  color: #fff;
  border-radius: 6px;
  padding: 10px 18px;
  font-weight: 600;
  text-align: center;
  border: none;
  transition: background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}

.woocommerce ul.products li.product a.button:hover {
  background: var(--primary-green);
  color: #fff;
}

.woocommerce ul.products li.product a.added_to_cart {
  display: block;
  text-align: center !important;
  margin-top: 12px;
}

.woocommerce .woocommerce-ordering select {
  border-radius: 6px;
  border: 1px solid #ddd;
  padding: 8px 12px;
}

.woocommerce ul.products li.product .button {
  margin-top: auto !important;
}

.woocommerce .woocommerce-ordering {
  display: none !important;
}

/* ============================================ */
/* RESPONSIVE TABLETTE (écrans entre 768px et 1024px) */
/* ============================================ */
@media (max-width: 1024px) {
  .woocommerce ul.products li.product {
    flex: 1 1 calc(50% - 20px) !important;
    max-width: calc(50% - 20px) !important;
    min-width: 150px !important;
  }
}

/* ============================================ */
/* RESPONSIVE MOBILE (écrans jusqu'à 767px) */
/* ============================================ */
@media (max-width: 767px) {
  .woocommerce ul.products li.product {
    flex: 1 1 100% !important;
    max-width: 100% !important;
    min-width: unset !important;
  }

  .woocommerce.archive ul.products.columns-4 {
    padding: 0 10px !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
    min-height: 40px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 1rem;
  }

  .woocommerce ul.products li.product a.button {
    padding: 12px 15px;
    font-size: 0.9rem;
  }
}

/* ============================================ */
/* RESPONSIVE PETITS MOBILES (jusqu'à 480px) */
/* ============================================ */
@media (max-width: 480px) {
  .woocommerce ul.products li.product {
    padding: 12px;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.9rem;
    min-height: 35px;
    margin: 10px 0 2px;
  }

  .woocommerce ul.products li.product .price {
    font-size: 0.95rem;
  }

  .woocommerce ul.products li.product a.button {
    padding: 10px 12px;
    font-size: 0.85rem;
  }
}

/* ============================================
   PAGE PRODUIT SINGULIER
   ============================================ */

/* --- Conteneur principal --- */
.single-product .product {
  display: flex;
  flex-wrap: wrap;
  gap: 40px 60px;
  background: #fff;
  border-radius: 16px;
  padding: 40px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin: 40px 0;
}

/* --- Colonne image --- */
.single-product .product .images {
  flex: 1 1 40%;
  min-width: 280px;
}

.single-product .product .images img {
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
  height: auto;
  transition: transform 0.3s ease;
}

.single-product .product .images img:hover {
  transform: scale(1.02);
}

/* --- Colonne résumé (infos produit) --- */
.single-product .product .summary {
  flex: 1 1 50%;
  min-width: 280px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* --- Titre produit --- */
.single-product .product .summary .product_title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary-green);
  margin: 0 0 4px;
  line-height: 1.2;
}

/* --- Prix --- */
.single-product .product .summary .price {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--gold-accent);
  margin: 4px 0 12px;
}

/* --- Description courte --- */
.single-product
  .product
  .summary
  .woocommerce-product-details__short-description {
  font-size: 1rem;
  color: var(--dark-text);
  line-height: 1.6;
  margin: 8px 0 12px;
  padding: 16px 20px;
  background: #f8fafc;
  border-left: 4px solid var(--light-green);
  border-radius: 6px;
}

/* --- Formulaire d'ajout au panier --- */
.single-product .product .summary .cart {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.single-product .product .summary .cart .quantity {
  margin-right: 0;
}

.single-product .product .summary .cart .quantity .qty {
  width: 70px;
  height: 48px;
  padding: 0 8px;
  text-align: center;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  background: #fff;
  transition: border-color 0.2s ease;
}

.single-product .product .summary .cart .quantity .qty:focus {
  border-color: var(--light-green);
  outline: none;
}

.single-product .product .summary .cart .single_add_to_cart_button {
  background: var(--light-green);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0 28px;
  height: 48px;
  font-weight: 600;
  font-size: 1rem;
  transition:
    background 0.2s ease,
    transform 0.1s ease;
  cursor: pointer;
  flex: 1 1 auto;
  min-width: 160px;
}

.single-product .product .summary .cart .single_add_to_cart_button:hover {
  background: var(--primary-green);
  transform: translateY(-2px);
}

.single-product .product .summary .cart .single_add_to_cart_button:active {
  transform: translateY(0);
}

/* --- Catégories et tags --- */
.single-product .product .summary .product_meta {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid #edf2f7;
  font-size: 0.9rem;
  color: var(--dark-text);
  display: none;
}

.single-product .product .summary .product_meta span {
  display: inline-block;
  margin-right: 8px;
}

.single-product .product .summary .product_meta a {
  color: var(--primary-green);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
}

.single-product .product .summary .product_meta a:hover {
  color: var(--gold-accent);
  text-decoration: underline;
}

/* --- Onglets (Description / Avis) --- */
.woocommerce-tabs {
  margin-top: 40px;
  background: #fff;
  border-radius: 16px;
  padding: 24px 32px 32px;
  width: 100%;
}

.woocommerce-tabs ul.tabs {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0 0 24px 0;
  padding: 0;
}

.woocommerce-tabs ul.tabs li {
  margin: 0;
}

.woocommerce-tabs ul.tabs li a {
  display: block;
  padding: 10px 20px;
  font-weight: 600;
  color: #4a5568;
  text-decoration: none;
  border-radius: 8px 8px 0 0;
  transition: all 0.2s ease;
}

.woocommerce-tabs .panel {
  color: #4a5568;
  line-height: 1.7;
}

.woocommerce-tabs .panel h2 {
  font-size: 1.4rem;
  color: var(--primary-green);
  margin-top: 0;
}

/* --- Produits apparentés --- */
.related.products {
  display: none;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .single-product li.product {
    width: 100% !important;
    margin: 0px !important;
  }

  .single-product .product .summary .product_title {
    font-size: 1.6rem;
  }

  .single-product .product .summary .price {
    font-size: 1.4rem;
  }

  .single-product .product .summary .cart {
    flex-direction: column;
    align-items: stretch;
  }

  .single-product .product .summary .cart .quantity .qty {
    width: 100%;
  }

  .single-product .product .summary .cart .single_add_to_cart_button {
    min-width: unset;
    width: 100%;
  }

  .woocommerce-tabs {
    padding: 16px;
  }

  .woocommerce-tabs ul.tabs {
    flex-wrap: wrap;
  }

  .woocommerce-tabs ul.tabs li a {
    padding: 8px 14px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .single-product .product {
    padding: 14px;
    margin: 20px 0;
  }

  .single-product .product .summary .product_title {
    font-size: 1.3rem;
  }

  .single-product .product .summary .price {
    font-size: 1.2rem;
  }

  .single-product
    .product
    .summary
    .woocommerce-product-details__short-description {
    padding: 12px 14px;
    font-size: 0.95rem;
  }
}

/* ============================================
   PAGE PANIER MODERNE
   Shortcode: [woocommerce_cart]
   ============================================ */

/* --- Tableau du panier --- */

.woocommerce-cart .shop_table.cart thead th {
  padding: 16px 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #4a5568;
  border: none;
  text-align: left;
}

.woocommerce-cart .shop_table.cart thead th:first-child {
  border-radius: 12px 0 0 12px;
}

.woocommerce-cart .shop_table.cart thead th:last-child {
  border-radius: 0 12px 12px 0;
}

/* --- Lignes du panier --- */

.woocommerce-cart table.cart thead {
  background-color: #f1f1f1 !important;
}
.woocommerce-cart table.cart td {
  border-top: 1px solid #dddddd !important;
}

.woocommerce table.shop_table tbody tr td,
.woocommerce table.shop_table tbody tr th,
.woocommerce-cart table.shop_table tbody tr td,
.woocommerce-cart table.shop_table tbody tr th {
  background-color: #fff !important;
  transition: none !important;
}

.woocommerce-cart .cart-collaterals table.shop_table tbody tr td,
.woocommerce-cart .cart-collaterals table.shop_table tbody tr th {
  background-color: transparent !important;
  transition: none !important;
}

.woocommerce-cart .shop_table.cart tbody td {
  padding: 20px;
  border: none;
  vertical-align: middle;
}

/* --- Suppression produit --- */
.woocommerce-cart .shop_table.cart .product-remove {
  width: 40px;
  text-align: center;
}

.woocommerce-cart .shop_table.cart .product-remove a.remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #fee2e2;
  color: #efa97d !important;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.2s ease;
}

.woocommerce-cart .shop_table.cart .product-remove a.remove:hover {
  background: #efa97d;
  color: #fff !important;
  transform: rotate(90deg);
}

/* --- Image produit --- */
.woocommerce-cart .shop_table.cart .product-thumbnail {
  width: 80px;
}

.woocommerce-cart .shop_table.cart .product-thumbnail img {
  border-radius: 8px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 70px;
  height: 70px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

/* --- Nom produit --- */
.woocommerce-cart .shop_table.cart .product-name {
  font-weight: 600;
  color: var(--dark-text);
}

.woocommerce-cart .shop_table.cart .product-name a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.woocommerce-cart .shop_table.cart .product-name a:hover {
  color: var(--primary-green);
}

/* --- Quantité --- */
.woocommerce-cart .quantity .qty {
  width: 5em;
  text-align: center;
}
/* --- Prix et sous-total --- */
.woocommerce-cart .shop_table.cart .product-price,
.woocommerce-cart .shop_table.cart .product-subtotal {
  font-weight: 700;
  color: var(--dark-text);
}

.woocommerce-cart .shop_table.cart .product-price .amount,
.woocommerce-cart .shop_table.cart .product-subtotal .amount {
  color: var(--gold-accent);
}

/* --- Bouton mise à jour --- */
.woocommerce-cart .actions {
  padding: 20px 0 0;
  border-top: 1px solid #edf2f7;
}

.woocommerce-cart .actions .button {
  background: #f1f5f9;
  color: #4a5568;
  border: none;
  border-radius: 8px;
  padding: 10px 24px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.woocommerce-cart .actions .button:hover {
  background: #e2e8f0;
  color: var(--dark-text);
}

.woocommerce-cart .actions .button[name="update_cart"]:hover {
  background: #3a6b4a;
}

/* --- Code promo --- */
.woocommerce-cart .actions .coupon {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.woocommerce-cart .actions .coupon label {
  display: none;
}

.woocommerce-cart .actions .coupon input[type="text"] {
  padding: 10px 16px;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-size: 0.95rem;
  min-width: 200px;
  transition: border-color 0.2s ease;
}

.woocommerce-cart .actions .coupon input[type="text"]:focus {
  border-color: var(--light-green);
  outline: none;
}

.woocommerce-cart .actions .coupon .button {
  background: var(--light-green);
  color: #fff;
}

.woocommerce-cart .actions .coupon .button:hover {
  background: var(--primary-green);
}

/* --- Totaux du panier --- */
.cart-collaterals {
  margin-top: 40px;
}

.cart-collaterals .cart_totals {
  background: #f8fafc;
  border-radius: 16px;
  padding: 30px;
  max-width: 400px;
  margin-left: auto;
}

.cart-collaterals .cart_totals h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--dark-text);
  margin-top: 0;
  margin-bottom: 20px;
}

.cart-collaterals .cart_totals table.shop_table {
  width: 100%;
  border-collapse: collapse;
}

.cart-collaterals .cart_totals table.shop_table tr,
.woocommerce table.shop_table {
  border: none !important;
}

.woocommerce-cart
  .cart-collaterals
  .cart_totals
  table.shop_table
  tr:last-child {
  border-bottom: none;
}

.cart-collaterals .cart_totals table.shop_table th,
.cart-collaterals .cart_totals table.shop_table td {
  border: none;
  color: #4a5568;
}

.cart-collaterals .cart_totals table.shop_table th {
  font-weight: 600;
}

.cart-collaterals .cart_totals table.shop_table td {
  text-align: right;
  font-weight: 700;
}

.woocommerce-cart
  .cart-collaterals
  .cart_totals
  table.shop_table
  .order-total
  th,
.woocommerce-cart
  .cart-collaterals
  .cart_totals
  table.shop_table
  .order-total
  td {
  font-size: 1.2rem;
  color: var(--dark-text);
  padding-top: 16px;
}

.woocommerce-cart
  .cart-collaterals
  .cart_totals
  table.shop_table
  .order-total
  .amount {
  color: var(--gold-accent);
  font-size: 1.3rem;
}

/* --- Bouton passer à la caisse --- */
.cart-collaterals .cart_totals .wc-proceed-to-checkout {
  margin-top: 20px;
  text-align: center;
}

.woocommerce-cart
  .cart-collaterals
  .cart_totals
  .wc-proceed-to-checkout
  .checkout-button {
  display: block;
  background: var(--gold-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 24px;
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
}

.woocommerce-cart
  .cart-collaterals
  .cart_totals
  .wc-proceed-to-checkout
  .checkout-button:hover {
  background: #b8982e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.woocommerce-cart
  .cart-collaterals
  .cart_totals
  .wc-proceed-to-checkout
  .checkout-button:active {
  transform: translateY(0);
}

/* --- Panier vide --- */

.woocommerce-cart .return-to-shop .button {
  background: var(--light-green);
  color: #fff;
  border-radius: 8px;
  padding: 12px 30px;
  font-weight: 600;
  text-decoration: none;
  display: inline-block;
  transition: all 0.3s ease;
}

.woocommerce-cart .return-to-shop .button:hover {
  background: var(--primary-green);
  color: #fff;
  transform: translateY(-2px);
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .woocommerce-cart {
    padding: 16px;
    overflow-x: auto;
  }

  .woocommerce-cart .shop_table.cart thead th,
  .woocommerce-cart .shop_table.cart tbody td {
    padding: 12px 14px;
    font-size: 0.9rem;
  }

  .woocommerce-cart .shop_table.cart .product-thumbnail {
    width: 60px;
  }

  .woocommerce-cart .shop_table.cart .product-thumbnail img {
    width: 50px;
    height: 50px;
  }

  .woocommerce-cart .actions .coupon {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-bottom: 12px;
  }

  .woocommerce table.cart td.actions .coupon input,
  .woocommerce table.cart td.actions .coupon .button {
    width: 100% !important;
  }

  .woocommerce-cart .actions .coupon input[type="text"] {
    min-width: unset;
    width: 100%;
  }

  .woocommerce-cart .actions .button {
    width: 100%;
    text-align: center;
  }

  .cart-collaterals .cart_totals {
    max-width: 100%;
    margin: 0;
  }
}

@media (max-width: 480px) {
  .woocommerce-cart {
    padding: 12px;
    margin: 15px 0;
  }

  .woocommerce-cart .shop_table.cart {
    font-size: 0.85rem;
  }

  .woocommerce-cart .shop_table.cart tbody td {
    padding: 10px;
  }

  .woocommerce-cart .shop_table.cart .product-quantity .qty {
    height: 36px;
    font-size: 0.9rem;
  }

  .cart-collaterals .cart_totals {
    padding: 20px;
  }

  .woocommerce-cart
    .cart-collaterals
    .cart_totals
    .wc-proceed-to-checkout
    .checkout-button {
    font-size: 1rem;
    padding: 12px 18px;
  }
}

/* ============================================
   CHECKOUT 2 COLONNES - SOLUTION DÉFINITIVE
   ============================================ */

.woocommerce-checkout .woocommerce {
  margin: 30px 0;
}

/* --- Message client / code promo --- */
.woocommerce-checkout .woocommerce-info {
  background: #f8fafc;
  border: none;
  border-left: 4px solid var(--light-green);
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 20px;
  color: #4a5568;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.woocommerce-checkout .woocommerce-info::before {
  display: none;
}

.woocommerce-checkout .woocommerce-info a {
  color: var(--primary-green);
  font-weight: 700;
  text-decoration: underline;
}

/* ============================================
   GRILLE PRINCIPALE
   ============================================ */
.woocommerce-checkout form.checkout {
  display: grid !important;
  grid-template-columns: 1.2fr 1fr !important;
  grid-template-rows: auto auto !important;
  column-gap: 30px !important;
  row-gap: 0 !important;
  align-items: start !important;
}

/* ============================================
   COLONNE GAUCHE - Formulaire
   ============================================ */
.woocommerce-checkout form.checkout #customer_details {
  grid-column: 1 !important;
  grid-row: 1 / span 2 !important;
  align-self: start !important;
  background: #fff;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  width: 100% !important;
  float: none !important;
  margin: 0 !important;
  height: fit-content !important;
}

/* Reset col-1 / col-2 à l'intérieur */
.woocommerce-checkout form.checkout #customer_details .col-1,
.woocommerce-checkout form.checkout #customer_details .col-2 {
  width: 100% !important;
  float: none !important;
  max-width: 100% !important;
  margin: 0 0 24px !important;
}

.woocommerce-checkout form.checkout #customer_details .col-2:last-child {
  margin-bottom: 0 !important;
}

.woocommerce-checkout form.checkout #customer_details::after {
  display: none !important;
}

/* ============================================
   COLONNE DROITE - Titre "Votre commande"
   ============================================ */
.woocommerce-checkout form.checkout #order_review_heading {
  display: none;
}

/* ============================================
   COLONNE DROITE - Contenu commande + paiement
   ============================================ */
.woocommerce-checkout form.checkout #order_review {
  background: #fff;
  border-radius: 0 0 16px 16px;
  padding: 0 24px 24px !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  margin: 0px 0 0 0 !important;
}

/* ============================================
   TABLEAU DE COMMANDE
   ============================================ */
.woocommerce-checkout table.woocommerce-checkout-review-order-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 16px !important;
  background: #fff;
  border: 1px solid #edf2f7;
  border-radius: 8px;
  overflow: hidden;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table thead th {
  padding: 12px 14px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #94a3b8;
  text-align: left;
  border-bottom: 2px solid #e2e8f0;
  background: #f8fafc;
}

.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  thead
  th.product-total {
  text-align: right;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tbody td {
  padding: 12px 14px;
  border-bottom: 1px solid #edf2f7;
  color: #4a5568;
  font-size: 0.9rem;
  vertical-align: middle;
  background: #fff;
}

.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  tbody
  td.product-total {
  text-align: right;
  font-weight: 600;
  color: var(--dark-text);
}

.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  tbody
  td
  .product-quantity {
  color: var(--gold-accent);
  font-weight: 700;
}

.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  tbody
  tr:hover,
.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  tbody
  tr:hover
  > td,
.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  tbody
  tr:hover
  > th {
  background: #fff !important;
  transition: none !important;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th,
.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
  padding: 10px 14px;
  border-bottom: 1px solid #edf2f7;
  color: #4a5568;
  background: #fff;
  font-size: 0.9rem;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot th {
  font-weight: 600;
  text-align: left;
}

.woocommerce-checkout table.woocommerce-checkout-review-order-table tfoot td {
  text-align: right;
  font-weight: 700;
  color: var(--dark-text);
}

.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  tfoot
  tr.order-total
  th,
.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  tfoot
  tr.order-total
  td {
  font-size: 1.1rem;
  padding: 14px;
  border-bottom: none;
  border-top: 2px solid #e2e8f0;
  color: var(--dark-text);
  background: #f8fdf0;
}

.woocommerce-checkout
  table.woocommerce-checkout-review-order-table
  tfoot
  tr.order-total
  .amount {
  color: var(--gold-accent);
  font-size: 1.2rem;
}

/* ============================================
   PAIEMENT
   ============================================ */
.woocommerce-checkout #payment {
  background: transparent !important;
  border-radius: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
}

.woocommerce-checkout #payment ul.payment_methods {
  list-style: none;
  margin: 0 0 16px !important;
  padding: 0 !important;
  border: none !important;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method {
  background: #fff;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 0;
  margin-bottom: 10px;
  transition: border-color 0.2s ease;
  cursor: pointer;
  position: relative;
  list-style: none;
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method:hover {
  border-color: var(--light-green);
}

.woocommerce-checkout #payment ul.payment_methods li.wc_payment_method > label {
  display: block;
  padding: 14px 18px 14px 46px;
  font-weight: 600;
  color: var(--dark-text);
  cursor: pointer;
  margin: 0;
  position: relative;
  font-size: 0.95rem;
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method
  > label::before {
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  transition: all 0.2s ease;
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method
  > label::after {
  content: "";
  position: absolute;
  left: 23px;
  top: 50%;
  transform: translateY(-50%) scale(0);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--light-green);
  transition: transform 0.2s ease;
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method:has(input:checked) {
  border-color: var(--light-green);
  background: #f8fdf0;
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method:has(input:checked)
  > label::before {
  border-color: var(--light-green);
}

.woocommerce-checkout
  #payment
  ul.payment_methods
  li.wc_payment_method:has(input:checked)
  > label::after {
  transform: translateY(-50%) scale(1);
}

.woocommerce-checkout #payment div.payment_box {
  background: #f8fafc;
  border-radius: 6px;
  padding: 12px 16px;
  margin: 0 16px 14px;
  color: #4a5568;
  font-size: 0.85rem;
}

.woocommerce-checkout #payment div.payment_box::before {
  display: none;
}

.woocommerce-checkout #payment div.payment_box p {
  margin: 0;
}

.woocommerce-checkout #payment .form-row.place-order {
  margin: 0 !important;
  padding: 0 !important;
  background: transparent;
  border: none;
}

.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper {
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #f8fafc;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
}

.woocommerce-checkout #payment button#place_order {
  display: block;
  width: 100%;
  background: var(--gold-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 14px 20px;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin: 0 !important;
  height: auto;
}

.woocommerce-checkout #payment button#place_order:hover {
  background: #b8982e;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.35);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 992px) {
  .woocommerce-checkout form.checkout {
    grid-template-columns: 1fr !important;
    row-gap: 20px !important;
  }

  .woocommerce-checkout form.checkout #customer_details,
  .woocommerce-checkout form.checkout #order_review_heading,
  .woocommerce-checkout form.checkout #order_review {
    grid-column: 1 !important;
    grid-row: auto !important;
  }

  .woocommerce-checkout form.checkout #order_review_heading {
    border-radius: 16px 16px 0 0;
    padding: 18px 20px !important;
    clip-path: none;
  }

  .woocommerce-checkout form.checkout #order_review {
    border-radius: 0 0 16px 16px;
    padding: 0 20px 20px;
    margin: 0 !important;
  }
}

@media (max-width: 767px) {
  .woocommerce-checkout form.checkout #customer_details,
  .woocommerce-checkout form.checkout #order_review {
    padding: 16px !important;
    border-radius: 12px;
  }

  .woocommerce-checkout form.checkout #order_review_heading {
    padding: 14px 16px !important;
    font-size: 1.1rem;
  }
}

.woocommerce-checkout table td,
.woocommerce-checkout table th {
  border: none !important;
}
.woocommerce-checkout table thead:first-child tr:first-child th {
  border-block-start: none;
}
.woocommerce-checkout #payment div.payment_box {
  width: 90%;
}

.woocommerce-checkout h3 {
  font-size: 1.3rem;
}

.woocommerce-order h2 {
  font-size: 1.6rem;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  box-shadow: none;
  outline: none;
  outline-offset: 0;
}

.woocommerce-privacy-policy-text {
  font-size: 14px;
}
