/*
Theme Name: SAHA Theme
Template: blacks
Description: SAHA Theme
Version: 1.0
Tested up to: 6.7
Requires at least: 5.0
Requires PHP: 7.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: blog, e-commerce, portfolio, grid-layout, one-column, two-columns, three-columns, four-columns, left-sidebar, right-sidebar, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-image-header, featured-images, flexible-header, footer-widgets, full-width-template, microformats, post-formats, sticky-post, theme-options, threaded-comments, translation-ready, block-styles, wide-blocks
Text Domain: blacks
*/

/* Base du titre Hero */
.saha-hero-fit-text h1 {
  display: inline-block;
  white-space: nowrap;
  line-height: 1.1;
  transition: font-size 0.3s ease-out;
}
.saha-hero-fit-text.visible h1 {
  opacity: 1;
  transition: font-size 0.3s ease-out, opacity 0.3s ease-out;
}

/* Taille maximale (texte court) */
.saha-hero-fit-max h1 {
  font-size: var(--theme-font-h1_font-size); !important;
}

/* Taille minimale (texte long) */
.saha-hero-fit-min h1 {
  font-size: 2em !important;
}

/* Intermédiaires : classes progressives */
.saha-hero-fit-1 h1 { font-size: 3.2em !important; }
.saha-hero-fit-2 h1 { font-size: 2.9em !important; }
.saha-hero-fit-3 h1 { font-size: 2.6em !important; }
.saha-hero-fit-4 h1 { font-size: 2.3em !important; }

article.post_type_page .post_content.entry-content p {
	text-align: justify;
}
article.post_type_page .post_content.entry-content div.dt-container .dt-length label {
    display: flex;
    gap: 12px;
    line-height: 2em;
    select {
	text-align:center;
	padding-right:1.5em !important;
    }
}

.tp-dynamic-link{
  position: relative;
  text-decoration: none;
}


.tp-ext-arrow{
  opacity: 0;
  margin-left: 5px;
  transition: opacity 0.2s, transform 0.2s;
  display: inline-block;
}

.tp-dynamic-link:hover .tp-ext-arrow{
  opacity: 1;
  transform: translate(2px, -2px); /* léger mouvement diagonale */
  color: #0073e6; /* couleur optionnelle au survol */
}

.author_info.author.vcard {
  display:none;
}
.post_meta_item.post_author {
  display:none;
}
body.wp-singular.single-post .post_meta_item.post_date {
  font-size:2em;
}
.single_style_style-3 .page_content_wrap>.content_wrap {
  padding-top:0em !important;
}
body.page-id-331 {
	ul li h3 {
		min-height:2em;
	}
}
body .summary.entry-summary {
	nav.woocommerce-breadcrumb {
		display:none;
	}
}
body.home {
	.woocommerce-Price-amount.amount {
		display:none;
	}
	.post_thumb {
		background-position: top;
	}
	.sc_blogger_item_content .post_meta_item.post_date {
		font-size:1.2em;
	}
}
.menu_mobile_header_wrap a.sc_layouts_logo img {
	background-color: #fff;
}
.post_header_wrap_style_style-3 .post_header .content_wrap {
	padding: 55px 55px 0px 55px;
}

ul.products.products_style_creative li.product .post_featured.hover_shop {
  aspect-ratio: 210 / 297;   /* ratio portrait, cohérent avec vos couvertures */
  overflow: hidden;
}

ul.products.products_style_creative li.product .post_featured.hover_shop img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.archive.blog_mode_category .post_featured.with_thumb {
  aspect-ratio: 4 / 3;
  overflow: hidden;
}

.archive.blog_mode_category .post_featured.with_thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  object-position: top;
}
ul.products.products_style_creative li.product .post_featured.hover_shop img {
  object-position: top;
}


/* Menu WooCommerce - pleine largeur */
.menu-menu-woocommerce-container {
  width: 100%;
}

#menu-menu-woocommerce {
  list-style: none;
  margin: 0;
  padding: 0;           /* supprime le padding-left par défaut du ul */
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: left;
  width: 100%;
}

#menu-menu-woocommerce li {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
}

/* Séparateur entre les items */
#menu-menu-woocommerce li + li::before {
  content: "|";
  color: #ccc;
  padding: 0 10px;
  font-weight: 300;
  line-height: 1;       /* évite les décalages verticaux */
}

#menu-menu-woocommerce li a {
  text-decoration: none;
  color: #333;
  font-size: 0.95rem;
  white-space: nowrap;
  line-height: 1;       /* uniformise la hauteur de ligne */
  display: block;
  padding: 0;
  margin: 0;
  transition: color 0.2s ease;
}

#menu-menu-woocommerce li a:hover {
  color: #a00;
}

/* Item actif */
#menu-menu-woocommerce li.current-menu-item a {
  font-weight: bold;
  color: #a00;
}
/* Supprime les bullets injectées par le thème */
.menu-menu-woocommerce-container ul > li a:first-child:before {
  content: none !important;
  display: none !important;
}

.sc_layouts_cart .sc_layouts_cart_widget {
    background-color: var(--theme-color-extra_bg_color);
    color: var(--theme-color-extra_dark);
    .button.wc-forward {
        background-color: var(--theme-color-extra_bg_color);
	border-color: var(--theme-color-inverse_link);
    }
}
section.comments_wrap {
    display:none !important;
}
.sc_blogger_item_default { 
    min-height:445px;
}
.post_meta_item.post_meta_comments {
    display:none;
}
body.wp-singular .post_meta .post_meta_item:after {
    display:none;
}
.post_meta_item.post_categories {
    margin-right: 0.25em;
}
.sc_layouts_menu_nav > li > a, .sc_layouts_menu_nav > li.menu-item-has-children > a {
    padding: 0.9em 0.9em;
}
@media screen and (max-width: 1280px) {
	.saha-hero-fit-text.visible h1 {
		white-space: normal;
	}
}



/* ================================================
   WooCommerce Product Collection - Personnalisation
   ================================================ */

/* Boutons sur 1 ligne : réduction du padding horizontal */
.wc-block-components-product-button .wp-block-button__link {
  padding-left: 12px !important;
  padding-right: 12px !important;
  white-space: nowrap !important;
}

/* Titres : hauteur fixe à 3 lignes pour homogénéiser les rangées */
li.product .wp-block-post-title {
  display: -webkit-box !important;
  -webkit-line-clamp: 3 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  height: 84px !important;
}

.product_meta .sku_wrapper, .product_meta .product_id {display:none !important;}



/* =============================================
   TUNNEL DE COMMANDE — Panier / Checkout / Confirmation
   Fond beige #f4eee0, encadrement vert #3D5A4C, alternance tableau
   ============================================= */

/* --- 1. Fond beige sur la zone .content du tunnel --- */
.woocommerce-cart .content,
.woocommerce-checkout .content,
.woocommerce-order-received .content {
  background-color: #f4eee0 !important;
}

/* --- 2. Fond beige sur la zone page_content_wrap --- */
.woocommerce-cart .page_content_wrap,
.woocommerce-checkout .page_content_wrap,
.woocommerce-order-received .page_content_wrap {
  background-color: #f4eee0;
}

/* --- 3. Espacement de la zone woocommerce --- */
.woocommerce-cart .woocommerce,
.woocommerce-checkout .woocommerce,
.woocommerce-order-received .woocommerce {
  padding: 2em 1em 3em;
}

/* --- 4. Encadrement du tableau articles --- */
.woocommerce-cart-form {
  background: #fff;
  border: 1.5px solid #3D5A4C;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 2px 12px rgba(61, 90, 76, 0.08);
  margin-bottom: 2em;
}

/* --- 5. En-têtes du tableau --- */
.woocommerce-cart table.shop_table thead th,
.woocommerce-cart table.shop_table th,
.woocommerce-checkout table.shop_table thead th,
.woocommerce-checkout table.shop_table th {
  background-color: #edf2ef !important;
  color: #3D5A4C !important;
  border-bottom: 2px solid #3D5A4C !important;
  padding: 0.9em 0.8em;
}

/* --- 6. Lignes zébrées discrètes --- */
table.shop_table.cart tbody tr.cart_item:nth-child(odd) {
  background-color: #f4eee0;
}
table.shop_table.cart tbody tr.cart_item:nth-child(even) {
  background-color: #ffffff;
}

/* --- 7. Cellules du tableau --- */
table.shop_table td {
  padding: 1em 0.8em;
  border-bottom: 1px solid #e8e1d1;
  vertical-align: middle;
}

/* --- 8. Zone Total panier --- */
.cart_totals {
  background: #fff;
  border: 1.5px solid #3D5A4C;
  border-radius: 8px;
  padding: 1.5em;
  box-shadow: 0 2px 12px rgba(61, 90, 76, 0.08);
}

.cart_totals h2 {
  color: #3D5A4C;
  margin-bottom: 0.8em;
}

/* --- 9. Tableau des totaux --- */
.cart_totals table.shop_table th,
.cart_totals table.shop_table td {
  border-bottom: 1px solid #e8e1d1;
  padding: 0.8em 0.6em;
}
.cart_totals table.shop_table tr:last-child th,
.cart_totals table.shop_table tr:last-child td {
  border-bottom: none;
  font-weight: 700;
  font-size: 1.05em;
}

/* --- 10. Champ code de réduction --- */
.coupon input#coupon_code {
  background: #f4eee0;
  border: 1px solid #b5ccc2;
  border-radius: 6px 0 0 6px;
  padding: 0.6em 1em;
}

/* --- 11. Bouton Appliquer --- */
.woocommerce-cart .cart-coupon-inner button.apply_coupon,
.woocommerce-cart button.apply_coupon {
  background-color: #3D5A4C !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 6px 6px 0 !important;
  padding: 0.6em 1.2em !important;
  cursor: pointer;
  transition: background 0.2s;
}
.woocommerce-cart button.apply_coupon:hover {
  background-color: #2e4439 !important;
}


/* =====================================================
   Fix produit ADABO (post-30) — centrage vertical
   dans la liste "Vous aimerez également"
   ===================================================== */

/* Le conteneur de l'image passe en flexbox et adopte
   la même hauteur que les autres vignettes (293px) */
li.product.post-30 .post_featured.hover_shop {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 293px !important;
  background-color: #f8f6f0 !important; /* beige = couleur entête */
}

/* Le lien wrappant l'image remplit tout l'espace dispo */
li.product.post-30 .post_featured.hover_shop a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
}

/* L'image garde ses proportions et ne dépasse pas */
li.product.post-30 .post_featured.hover_shop img {
  width: auto !important;
  height: auto !important;
  max-width: 80% !important;
  max-height: 240px !important;
  object-fit: contain !important;
}
.sc_layouts_menu_item_description {
  display:none;
}



/* test home */
body.home { 
  .elementor-38189 .elementor-element.elementor-element-06aa198:not(.elementor-motion-effects-element-type-background), .elementor-38189 .elementor-element.elementor-element-06aa198 > .elementor-motion-effects-container > .elementor-motion-effects-layer, .elementor-element-577775c  {
background-color: #F4EEE0;
    background-image: url(https://node205.epnb.net/wp-content/uploads/papier.webp);
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
	&:before{
		opacity: 0.9;
		    content: ' ';
    display: block !important;
    background-color: inherit;
    position: absolute;
    z-index: 0;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
	}
  }
}
