/*
 Theme Name:   Bootscore Child
 Description:  Bootscore Child Theme
 Author:       Bootscore
 Author URI:   https://bootscore.me
 Template:     bootscore
 Version:      6.0.0
 Requires at least: 5.0
 Tested up to: 6.6
 Requires PHP: 7.4
 License: MIT License
 License URI: https://github.com/bootscore/bootscore-child/blob/main/LICENSE
 Text Domain:  bootscore
*/

/*
All style editing is done via /assets/scss/_bootscore_custom.scss
*/

/* Masquer le bouton compte natif du masthead (remplacé par le lien Connexion/Mon compte de la topbar) */
.account-toggler { display: none !important; }

/* Preloader (plugin bs-preloader) : fond gris très foncé + spinner blanc */
#preloader { background-color: #242426 !important; }
#preloader #status { color: #fff !important; }

/* ── H2 décoré (deux barres horizontales centrées verticalement) ──
   Appliqué sur les blocs ACF : produit, marque, contenu */
.eivad-produits-block h2,
.eivad-marques h2,
.eivad-contenu-block h2 {
   display: flex;
   align-items: center;
   justify-content: center;
   text-align: center;
   gap: 1rem;
   margin-bottom: 2rem;
}
.eivad-produits-block h2::before,
.eivad-produits-block h2::after,
.eivad-marques h2::before,
.eivad-marques h2::after,
.eivad-contenu-block h2::before,
.eivad-contenu-block h2::after {
   content: "";
   flex: 1 1 0;
   height: 1px;
   background-color: currentColor;
   opacity: 0.5;
}

/* ── Pages boutique & catégories produit : border-radius uniformisé à 6px ── */
/* ── Border-radius uniformisé à 6px sur tout le site ── */
:root {
   --bs-border-radius: 6px;
   --bs-border-radius-sm: 6px;
   --bs-border-radius-lg: 6px;
   --bs-border-radius-xl: 6px;
   --bs-border-radius-2xl: 6px;
}
.card,
.cardproduit .card,
.btn,
.form-control,
.form-select,
.input-group-text,
.alert,
.badge,
.dropdown-menu,
.list-group-item,
.eivad-wc-panel,
.ltdc-shop-hero__text,
aside#secondary {
   border-radius: 6px !important;
}

/* Fake search bar : fond gris foncé + bord blanc fin, radius cohérent avec le bouton panier */
.uniweb-fakebar .uniweb-fakebar-inner {
   background: #3C3C3C !important;
   border: 1px solid #fff !important;
   border-radius: 6px !important;
}
.uniweb-fakebar:hover .uniweb-fakebar-inner {
   background: #4d4d4d !important;
   border-color: #fff !important;
}
.uniweb-fakebar:focus .uniweb-fakebar-inner {
   background: #4d4d4d !important;
   border-color: #fff !important;
   box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
}
.uniweb-fakebar .uniweb-fakebar-icon,
.uniweb-fakebar .uniweb-fakebar-placeholder {
   color: #fff !important;
}

/* Bouton panier : même fond gris foncé que la fake search bar */
.header-actions .cart-toggler {
   background-color: #3C3C3C !important;
   border-color: #fff !important;
   color: #fff !important;
}
.header-actions .cart-toggler:hover,
.header-actions .cart-toggler:focus {
   background-color: #4d4d4d !important;
   border-color: #fff !important;
   color: #fff !important;
   box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25) !important;
}

/* ── Bande supérieure (top bar) ── */
.eivad-topbar {
   background-color: #5D5D5D;
   color: #fff;
   font-size: 12px;
   line-height: 1.4;
   padding: 0.4rem 0;
   z-index: 1030; /* au-dessus du masthead non-sticky */
}
.eivad-topbar__burger {
   background: transparent;
   border: 0;
   color: #fff;
   font-size: 16px;
   line-height: 1;
   padding: 0.15rem 0.4rem;
   cursor: pointer;
   transition: opacity 0.15s ease;
}
.eivad-topbar__burger:hover,
.eivad-topbar__burger:focus {
   opacity: 0.85;
   color: #fff;
   outline: none;
}
/* Espacement entre l'icône et son label dans la topbar */
.eivad-topbar__label {
   margin-left: 0.4rem;
}

/* Mobile : masquer le slogan (le slogan caché libère assez de place pour Connexion + téléphone) */
@media (max-width: 767.98px) {
   .eivad-topbar__slogan { display: none; }
   .eivad-topbar         { font-size: 11px; }
}
@media (max-width: 991.98px) {
   .eivad-topbar__menu   { display: none; }
}
.eivad-topbar a,
.eivad-topbar .eivad-topbar__link {
   color: #fff;
   text-decoration: none;
   transition: opacity 0.15s ease;
}
.eivad-topbar a:hover,
.eivad-topbar a:focus,
.eivad-topbar .eivad-topbar__link:hover,
.eivad-topbar .eivad-topbar__link:focus {
   color: #fff;
   text-decoration: underline;
   opacity: 0.85;
}
.eivad-topbar__menu {
   font-size: 12px;
}
.eivad-topbar__menu a {
   font-size: 12px;
}
 


@font-face {
   font-family: 'OpenSans';
   src: url('/wp-content/themes/bootscore-child/assets/fonts/OpenSans/OpenSans-VariableFont_wdth,wght.ttf') format('truetype');
}
@font-face {
   font-family: 'OpenSans';
   src: url('/wp-content/themes/bootscore-child/assets/fonts/OpenSans/OpenSans-Italic-VariableFont_wdth,wght.ttf') format('truetype');
   font-style: italic;
}

/* @font-face {
   font-family: 'Sketch';
   src: url('/wp-content/themes/bootscore-child/assets/fonts/sketch/sketchblock.eot');
   src: url('/wp-content/themes/bootscore-child/assets/fonts/sketch/sketchblock.eot?#iefix') format('embedded-opentype'),
        url('/wp-content/themes/bootscore-child/assets/fonts/sketch/sketchblock.woff2') format('woff2'),
        url('/wp-content/themes/bootscore-child/assets/fonts/sketch/sketchblock.woff') format('woff'),
        url('/wp-content/themes/bootscore-child/assets/fonts/sketch/sketchblock.ttf') format('truetype');
   font-weight: 400;
   font-style: normal;
   font-display: swap;
} */

* {
    font-family: 'OpenSans', sans-serif ;
}

 .font-sketch {
   font-weight: bold;
}










:root {
    /* ── Palette centralisée du site ─────────────────────────────── */
    --eivad-blue:   #0000cd;
    --eivad-red:    #B22222;
    --eivad-green:  #008000;
    --eivad-orange: #FFA500;
    --eivad-yellow: #FFFF00;

    /* Alias historiques (pointent désormais vers la palette unifiée) */
    --color-1: var(--eivad-blue);
    --color-2: #242426;
    --color-3: var(--eivad-green);

    /* Surcharge des variables Bootstrap natives */
    --bs-primary:   var(--eivad-blue)   !important;
    --bs-secondary: var(--color-2)      !important;
    --bs-danger:    var(--eivad-red)    !important;
    --bs-success:   var(--eivad-green)  !important;
    --bs-warning:   var(--eivad-orange) !important;
    --bs-info:      var(--eivad-yellow) !important;
}


.bg-color-2 {
   background-color: var(--color-2) !important;
}






#bootscore-navbar {
   margin-left: auto !important;
   margin-right: auto !important;
}






.cardproduit img {
   aspect-ratio: 1/1 !important;
   object-fit: contain !important;
}

/* Sidecart : images produit en contain (pas de crop), carré pour cohérence */
.woocommerce-mini-cart-item .item-image img,
#offcanvas-cart .item-image img {
   width: 100%;
   height: auto;
   max-height: 90px;
   aspect-ratio: 1 / 1;
   object-fit: contain;
   background: #fff;
}

/* Promo : prix soldé en gras + plus gros (le <ins> de WooCommerce) */
.cardproduit .price ins,
.cardproduit .price ins .woocommerce-Price-amount {
   font-weight: 700;
   font-size: 1.2rem;
   color: #000;
   text-decoration: none;
}
.cardproduit .price del,
.cardproduit .price del .woocommerce-Price-amount {
   font-size: 0.9rem;
   color: #888;
}

/* Badge de réduction (-XX % ou -XX €) : coin haut-droit de l'image, blanc sur rouge */
.eivad-discount-badge,
span.onsale.eivad-discount-badge {
   position: absolute;
   top: 10px;
   right: 10px;
   left: auto;
   z-index: 10;
   margin: 0;
   padding: 5px 10px;
   background: var(--eivad-red);
   color: #fff;
   font-weight: 700;
   font-size: 0.85rem;
   line-height: 1.2;
   border-radius: 6px;
   white-space: nowrap;
   text-transform: none;
   letter-spacing: 0;
   min-width: 0;
   min-height: 0;
}

/* Bande "PROMOTION" : pleine largeur, en bas de l'image, blanc sur fond rouge */
.eivad-promo-banner {
   position: absolute;
   bottom: 0;
   left: 0;
   right: 0;
   width: 100%;
   z-index: 5;
   margin: 0;
   padding: 6px 8px;
   background: var(--eivad-red);
   color: #fff;
   font-weight: 700;
   font-size: 0.85rem;
   line-height: 1.2;
   text-align: center;
   text-transform: uppercase;
   letter-spacing: 0.1em;
   pointer-events: none;
}

/* Aperçu overlay on product cards */
.eivad-scope-wrap {
   position: relative;
   overflow: hidden;
   cursor: pointer;
}
/* Image produit floutée au hover (l'overlay apercu reste net par-dessus) */
.eivad-scope-wrap img:not(.eivad-scope-overlay__icon) {
   transition: filter 0.35s ease;
}
.cardproduit .card:hover .eivad-scope-wrap img:not(.eivad-scope-overlay__icon),
.eivad-scope-wrap:focus-visible img:not(.eivad-scope-overlay__icon) {
   filter: blur(2px);
}
.eivad-scope-wrap:focus-visible {
   outline: 2px solid var(--bs-primary, var(--eivad-blue));
   outline-offset: 2px;
}
/* Titre produit : lien stylé pour que la couleur ne change pas comme un lien classique */
.eivad-card-title-link {
   color: inherit;
   text-decoration: none;
}
.eivad-card-title-link:hover,
.eivad-card-title-link:focus {
   color: var(--bs-primary, var(--eivad-blue));
   text-decoration: none;
}
.eivad-scope-overlay {
   position: absolute;
   top: 50%;
   left: 50%;
   width: 60%;
   height: 60%;
   transform: translate(-50%, -50%) scale(0.5);
   opacity: 0;
   z-index: 2;
   cursor: pointer;
   pointer-events: auto;
   transition: opacity 0.35s ease, transform 0.35s ease;
}
.cardproduit .card:hover .eivad-scope-overlay,
.eivad-scope-overlay:focus-visible {
   opacity: 1;
   transform: translate(-50%, -50%) scale(1);
}
.eivad-scope-overlay__icon {
   position: absolute;
   inset: 0;
   width: 100%;
   height: 100%;
   object-fit: contain;
   aspect-ratio: auto !important;
}
.eivad-scope-overlay:focus-visible {
   outline: 2px solid var(--bs-primary, var(--eivad-blue));
   outline-offset: 4px;
   border-radius: 8px;
}

/* Description courte sur la card */
.eivad-card-desc {
   margin-top: .5rem;
   font-size: .85rem;
   line-height: 1.5;
   color: #555;
}
.eivad-card-desc p:last-child { margin-bottom: 0; }

/* Boutons Détail (gris) + Ajouter au panier (bleu) — empilés full width */
.eivad-card-actions {
   display: flex;
   flex-direction: column;
   gap: 0.5rem;
   padding-top: 0.75rem;
}
.eivad-card-actions > .btn,
.eivad-card-actions > .add_to_cart_button {
   width: 100%;
   border-radius: 50rem;
}
.eivad-detail-btn {
   background-color: #e0e0e0;
   border-color: #d0d0d0;
   color: #212529;
}
.eivad-detail-btn:hover,
.eivad-detail-btn:focus {
   background-color: #cfcfcf;
   border-color: #bdbdbd;
   color: #212529;
}

.cardproduit .card{
   border: 1px solid rgba(0, 0, 0, 0.08);
   border-radius: 20px;
   box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
   transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.cardproduit .card:hover{
   transform: scale(1.03);
   box-shadow: 0 0.75rem 1.5rem rgba(0, 0, 0, 0.12);
}




.single-product .woocommerce-product-gallery__image
{aspect-ratio:1/1;object-fit:contain}


.single-product .woocommerce-product-gallery__image>a,.single-product .woocommerce-product-gallery__image>img,.single-product .woocommerce-product-gallery__image>a>img
{aspect-ratio: 1/1;object-fit:contain}



.navbar {
       --bs-navbar-color: var(--color-2) !important;
}

/* Hero slider */
.ltdc-hero-slider{width:100vw;margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw)}
.ltdc-hero-slider .swiper{width:100%;height:auto}
.ltdc-hero-slider .swiper-wrapper,.ltdc-hero-slider .swiper-slide{height:auto}
.ltdc-hero-slide{position:relative;width:100%;min-height:clamp(300px,42vw,790px);display:flex;align-items:center;overflow:hidden}
.ltdc-hero-slide--image{width:100%;height:100%}
.ltdc-hero-media{position:absolute;inset:0;z-index:0}
.ltdc-hero-img{width:100%;height:100%;object-fit:cover;display:block}
.ltdc-hero-slide--content{background-position:center}
.ltdc-hero-overlay{position:absolute;inset:0;pointer-events:none;z-index:1}
.ltdc-hero-content{position:relative;z-index:2;color:#fff;padding:clamp(2rem,6vw,4rem) 0;}
.ltdc-hero-content h1,.ltdc-hero-content h2,.ltdc-hero-content h3,.ltdc-hero-content h4,.ltdc-hero-content p{color:#fff}
.ltdc-hero-slider .swiper-button-next,.ltdc-hero-slider .swiper-button-prev{color:#fff}
.ltdc-hero-slider .swiper-pagination-bullet{background:#fff;opacity:.7}
.ltdc-hero-slider .swiper-pagination-bullet-active{opacity:1}

/* Product selection swiper */
.ltdc-products-swiper{overflow:hidden}
.ltdc-products-swiper .swiper-slide{height:auto}
.ltdc-products-swiper .swiper-slide > .col-12{width:100%;max-width:100%;padding-left:0;padding-right:0}
.ltdc-products-swiper .card{height:100%}
.ltdc-products-swiper a{text-decoration:none}
.ltdc-products-swiper .swiper-button-next,.ltdc-products-swiper .swiper-button-prev{color:var(--bs-primary)}
/* WooCommerce archive header */
.ltdc-shop-hero{background-size:cover;background-position:center}
.ltdc-shop-hero.has-bg{color:#fff;text-shadow:0 2px 12px rgba(0,0,0,.35)}








.hover-scale{
     transform: scale(1);
    transition: transform 0.3s ease;
}
.hover-scale:hover {
    transform: scale(1.05);
    transition: transform 0.3s ease;
}





div.woocommerce form .form-row input[type=checkbox]{
   position: absolute !important;
}


.woocommerce-form__label.woocommerce-form__label-for-checkbox.checkbox{
   position: relative !important;
   padding-left: 25px !important;
}



 .woocommerce-loop-product__title{
   font-size: 16px !important;
}


.btn-primary{
   padding : 10px 20px;
   border-radius: 100px;
   color: white;
}

.btn-secondary{
   padding: 10px 20px;
   border-radius: 100px;
   background-color: #e9ecef !important;
   border-color: #e9ecef !important;
   color: #212529 !important;
}
.btn-secondary:hover{
   background-color: #dee2e6 !important;
   border-color: #dee2e6 !important;
   color: #212529 !important;
}



.ltdc-footer-menu .nav-link {
  font-size: 0.95rem;
}

.ltdc-post-card {
  border-radius: 18px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ltdc-post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.12);
}

.ltdc-post-thumb {
  display: block;
  background: #f4f4f4;
}

.ltdc-post-card .card-body {
  padding: 1.25rem 1.5rem;
}

.ltdc-post-card .badge {
  background-color: var(--bs-primary) !important;
}

.ltdc-single-article {
  max-width: 900px;
  margin: 0 auto;
}

.ltdc-article-content {
  font-size: 1.05rem;
  line-height: 1.8;
}

.ltdc-attr-icons {
  margin-top: 1rem;
}

.ltdc-attr-icon {
  width: 48px;
  height: 48px;
  object-fit: contain;
}

.single-product .ltdc-attr-icon {
  width: 96px;
  height: 96px;
}

.ltdc-attr-icon-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.ltdc-woo-cat-nav {
  border: 1px solid #e9ecef;
  border-radius: 16px;
  padding: 1rem;
  background: #ffffff;
}

.ltdc-woo-cat-item + .ltdc-woo-cat-item {
  margin-top: 0.75rem;
}

.ltdc-woo-cat-head {
  gap: 0.75rem;
}

.ltdc-woo-cat-link {
  color: #212529;
  font-weight: 500;
}

.ltdc-woo-cat-link:hover {
  color: var(--bs-primary);
}

.ltdc-woo-cat-toggle {
  color: var(--bs-primary);
}



.btn.btn-outline-secondary:hover{
   color: white !important;
}



/* Header outline buttons → white */
#masthead .btn-outline-secondary,
#masthead .btn-outline-primary {
   color: #fff !important;
   border-color: #fff !important;
}
#masthead .btn-outline-secondary:hover,
#masthead .btn-outline-primary:hover {
   background: #fff !important;
   color: var(--color-2) !important;
}

/* Marques */
.eivad-marques__grid {
  gap: 1rem;
}
.eivad-marque-card {
  background: #fff;
  border-radius: 16px;
  padding: 0.75rem 1rem;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.3s ease;
}
.eivad-marque-card:hover {
  transform: scale(1.03);
}
.eivad-marque-logo {
  height: 60px;
  max-height: 60px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.eivad-marque-name {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 60px;
  padding: 0 1rem;
  font-weight: 700;
  font-size: 1.1rem;
  color: #212529;
}

/* Hero des archives de marque : logo en contain (pas de crop) */
body.tax-product_brand .ltdc-shop-hero__img {
  object-fit: contain !important;
}

/* ── Single produit : titre H1 réduit + meta custom (Référence + logo marque) ── */
.single-product .summary .product_title,
.single-product .summary h1.entry-title {
  font-size: 1.5rem;
  line-height: 1.25;
  margin-bottom: 0.5rem;
}
.single-product .summary p.price,
.single-product .summary .price {
  font-size: 2rem !important;
  font-weight: 700;
  margin-top: 20px  ;
  margin-bottom: 40px;;
  color: #000;
  line-height: 1.2;
  margin-bottom: 0.5rem;
}
.single-product .summary .price ins,
.single-product .summary .price ins .woocommerce-Price-amount {
  font-size: 2.6rem;
  font-weight: 700;
  color: #000;
  text-decoration: none;
}
.single-product .summary .price del,
.single-product .summary .price del .woocommerce-Price-amount {
  font-size: 1.25rem;
  font-weight: 400;
  color: #888;
}
.eivad-product-meta {
  margin-top: 0.75rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.eivad-product-meta__sku {
  font-size: 0.9rem;
  color: #555;
}
.eivad-product-meta__brand-logo {
  max-height: 50px;
  max-width: 140px;
  width: auto;
  height: auto;
  object-fit: contain;
  aspect-ratio: auto !important;
}
.eivad-product-meta__brand-link {
  display: inline-flex;
  text-decoration: none;
  transition: opacity 0.15s ease;
}
.eivad-product-meta__brand-link:hover {
  opacity: 0.85;
}

/* ── Single produit : sections empilées (remplacent les onglets WC) ── */
.eivad-product-sections {
  margin-top: 2rem;
  width: 100%;
  clear: both;
  grid-column: 1 / -1;
  flex-basis: 100%;
}
.eivad-product-section {
  margin-bottom: 1.75rem;
}
.eivad-product-section__title {
  background: var(--bs-primary, var(--eivad-blue));
  color: #fff;
  padding: 0.7rem 1rem;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin: 0 0 0.75rem;
  border-radius: 6px;
}
.eivad-product-section__body {
  padding: 0;
}
.eivad-product-section--additional_information .shop_attributes {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0 6px;
}
.eivad-product-section--additional_information .shop_attributes th,
.eivad-product-section--additional_information .shop_attributes td {
  width: 50%;
  background: #f3f3f3;
  padding: 0.6rem 1rem;
  border: 0;
  font-weight: 400;
  word-wrap: break-word;
}
.eivad-product-section--additional_information .shop_attributes th {
  color: #555;
}

/* Sidebar : section MARQUES (sous les filtres) — titre décoré + 1 logo par ligne */
.eivad-sidebar-brands__title {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin: 0 0 0.75rem;
}
.eivad-sidebar-brands__title::before,
.eivad-sidebar-brands__title::after {
  content: "";
  flex: 1 1 0;
  height: 1px;
  background-color: currentColor;
  opacity: 0.35;
}
.eivad-sidebar-brands__list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.eivad-sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 8px;
  background: #fff;
  border: 0;
  text-decoration: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}
.eivad-sidebar-brand:hover {
  opacity: 0.85;
  transform: translateY(-1px);
}
.eivad-sidebar-brand img {
  max-height: 40px;
  max-width: 100%;
  width: auto;
  height: auto;
  aspect-ratio: auto !important;
  object-fit: contain;
}
.eivad-sidebar-brand span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #212529;
}

/* Hero des pages catégorie & marque : fond gris + radius 6px */
body.tax-product_cat .ltdc-shop-hero,
body.tax-product_brand .ltdc-shop-hero {
  background: #464646 !important;
  border-radius: 6px !important;
}

/* Masquer le compteur natif WC sur catégorie & marque (le hero l'affiche déjà) */
body.tax-product_cat .woocommerce-result-count,
body.tax-product_brand .woocommerce-result-count {
  display: none !important;
}


/* (Anciens styles .eivad-sidebar-brand* supprimés — voir nouveau bloc plus haut, sans aspect-ratio ni bordure) */

.product_meta{
   margin-top : 30px;
}