/**
 * 2019-2025 Team Ever
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the Academic Free License (AFL 3.0)
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://opensource.org/licenses/afl-3.0.php
 * If you did not receive a copy of the license and are unable to
 * obtain it through the world-wide-web, please send an email
 * to license@prestashop.com so we can send you a copy immediately.
 *
 *  @author    Team Ever <https://www.team-ever.com/>
 *  @copyright 2019-2025 Team Ever
 *  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 */
/* Visibility helpers */
.everblocklight-visibility-none {
    display: none !important;
}

@media (min-width: 992px) {
    .everblocklight-visibility-mobile {
        display: none !important;
    }
}

@media (max-width: 991.98px) {
    .everblocklight-visibility-desktop {
        display: none !important;
    }
}

/* Obfuscation */
.obfme,
.obfme img {
    cursor: pointer;
}
[data-obflink] {
    cursor: pointer;
}

/* Link hover effect */
.everblocklight-link-hover--text {
    text-decoration-line: underline;
    text-decoration-color: transparent;
    text-decoration-thickness: 2px;
    text-underline-offset: 0.2em;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
}

.everblocklight-link-hover--text:hover,
.everblocklight-link-hover--text:focus {
    text-decoration-color: currentColor;
}

.everblocklight-link-hover--block {
    display: inline-flex;
    transition: opacity 0.2s ease, transform 0.2s ease;
    will-change: transform;
}

.everblocklight-link-hover--block:hover,
.everblocklight-link-hover--block:focus {
    opacity: 0.85;
    transform: scale(1.04);
}

/* LLM links */


/* Style pour le panier déroulant */
.ever-shopping-cart .dropdown-menu.cart-dropdown-content {
    padding: 15px;
    min-width: 200px;
    max-width: 300px;
    margin-top: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Ajoutez une ombre pour mettre en relief le panier */
    border: 1px solid #dee2e6; /* Ajoutez une bordure */
    border-radius: 5px; /* Ajoutez des coins arrondis */
    background-color: #fff; /* Changez la couleur de fond */
}

.ever-shopping-cart .cart-product {
    margin-bottom: 10px;
}

.ever-shopping-cart .product-name {
    font-weight: bold;
}

.ever-shopping-cart .cart-total {
    margin-top: 10px;
    text-align: right;
    font-weight: bold;
}

/* Position carousel navigation outside of slider */
.ever-featured-products .carousel {
    overflow: visible;
}

.ever-featured-products .carousel-control-prev,
.ever-featured-products .carousel-control-next {
    width: 3rem;
    height: 3rem;
    top: 50%;
    transform: translateY(-50%);
}

.ever-featured-products .carousel-control-prev {
    left: -1.5rem;
}

.ever-featured-products .carousel-control-next {
    right: -1.5rem;
}

.ever-featured-products.crosselling .thumbnail-container,
.ever-featured-products.crosselling .product-thumbnail {
    display: flex;
    align-items: center;
    justify-content: center;
}

.ever-featured-products.crosselling .product-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
/* Média query pour les écrans de taille moyenne (tablettes) */
@media (max-width: 768px) {
    .everblocklight-overlay .overlay {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}

/* Média query pour les petits écrans (smartphones) */
@media (max-width: 576px) {
    .everblocklight-overlay .overlay {
        top: 0;
        width: 100%;
        text-align: center;
        padding: 10px;
    }
}
.nav-tabs .nav-item {
    list-style-type: none;
}


#everblocklightModal button.close {
    float: right;
    padding: 0;
    cursor: pointer;
    background: transparent;
    border: 0;
    -webkit-appearance: none;
}

#everblocklightModal.modal {
    text-align: center;
}

#everblocklightModal .everblocklight-modal-dialog {
    display: inline-block;
    width: auto;
    max-width: 90vw;
    margin: 1.75rem auto;
}

#everblocklightModal .everblocklight-modal-dialog .modal-content {
    text-align: left;
}

#everblocklightModal .everblocklight-modal-media {
    display: flex;
    justify-content: center;
}

#everblocklightModal .everblocklight-modal-image {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 80vh;
}

.everblocklight-modal-button--image {
    background: transparent;
}

.everblocklight-modal-button-image {
    display: block;
    max-width: 100%;
    height: auto;
}
.ever-model-product.card {
    border: 1px solid #dee2e6; /* même valeur que Bootstrap 4 */
    border-radius: 0.25rem;
    background-color: #fff;
}
.everblocklight-highlight {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.everblocklight-highlight:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}
/* Responsive width */
/* SM ≥576px */
@media (min-width: 576px) {
    .w-sm-25 {
        width: 25% !important;
    }
    .w-sm-50 {
        width: 50% !important;
    }
    .w-sm-75 {
        width: 75% !important;
    }
    .w-sm-100 {
        width: 100% !important;
    }
}

/* MD ≥768px */
@media (min-width: 768px) {
    .w-md-25 {
        width: 25% !important;
    }
    .w-md-50 {
        width: 50% !important;
    }
    .w-md-75 {
        width: 75% !important;
    }
    .w-md-100 {
        width: 100% !important;
    }
}

/* LG ≥992px */
@media (min-width: 992px) {
    .w-lg-25 {
        width: 25% !important;
    }
    .w-lg-50 {
        width: 50% !important;
    }
    .w-lg-75 {
        width: 75% !important;
    }
    .w-lg-100 {
        width: 100% !important;
    }
}

/* XL ≥1200px */
@media (min-width: 1200px) {
    .w-xl-25 {
        width: 25% !important;
    }
    .w-xl-50 {
        width: 50% !important;
    }
    .w-xl-75 {
        width: 75% !important;
    }
    .w-xl-100 {
        width: 100% !important;
    }
}

/* XXL ≥1400px */
@media (min-width: 1400px) {
    .w-xxl-25 {
        width: 25% !important;
    }
    .w-xxl-50 {
        width: 50% !important;
    }
    .w-xxl-75 {
        width: 75% !important;
    }
    .w-xxl-100 {
        width: 100% !important;
    }
}

/* Responsive height */
/* Height: 25%, 50%, 75%, 100% - Base (all sizes) */
.h-25 {
    height: 25% !important;
}
.h-50 {
    height: 50% !important;
}
.h-75 {
    height: 75% !important;
}
.h-100 {
    height: 100% !important;
}

/* SM ≥576px */
@media (min-width: 576px) {
    .h-sm-25 {
        height: 25% !important;
    }
    .h-sm-50 {
        height: 50% !important;
    }
    .h-sm-75 {
        height: 75% !important;
    }
    .h-sm-100 {
        height: 100% !important;
    }
}

/* MD ≥768px */
@media (min-width: 768px) {
    .h-md-25 {
        height: 25% !important;
    }
    .h-md-50 {
        height: 50% !important;
    }
    .h-md-75 {
        height: 75% !important;
    }
    .h-md-100 {
        height: 100% !important;
    }
}

/* LG ≥992px */
@media (min-width: 992px) {
    .h-lg-25 {
        height: 25% !important;
    }
    .h-lg-50 {
        height: 50% !important;
    }
    .h-lg-75 {
        height: 75% !important;
    }
    .h-lg-100 {
        height: 100% !important;
    }
}

/* XL ≥1200px */
@media (min-width: 1200px) {
    .h-xl-25 {
        height: 25% !important;
    }
    .h-xl-50 {
        height: 50% !important;
    }
    .h-xl-75 {
        height: 75% !important;
    }
    .h-xl-100 {
        height: 100% !important;
    }
}

/* XXL ≥1400px */
@media (min-width: 1400px) {
    .h-xxl-25 {
        height: 25% !important;
    }
    .h-xxl-50 {
        height: 50% !important;
    }
    .h-xxl-75 {
        height: 75% !important;
    }
    .h-xxl-100 {
        height: 100% !important;
    }
}

/* Cover block slider (Bootstrap carousel) */
.ever-bootstrap-carousel .carousel-item img{
    width: revert-layer;
}
.ever-bootstrap-carousel .carousel-indicators{
    display: none;
}
.ever-cover-carousel.carousel .carousel-item {
    opacity: 0.5;
    transition: opacity 0.3s ease-in-out;
}

.ever-cover-carousel.carousel .carousel-item.active {
    opacity: 1;
    position: relative;
    filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.25));
}

.ever-cover-carousel .carousel-control-prev,
.ever-cover-carousel .carousel-control-next {
    width: 8%;
}

.ever-cover-carousel .carousel-control-prev-icon,
.ever-cover-carousel .carousel-control-next-icon {
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
}

/* Store locator adjustments */
#store_search {
    max-width: 400px;
    background-color: #fff;
}

.gm-style .gm-style-iw-c {
    /* Remove default padding so the close button aligns with the popup content */
    padding: 0 !important;
}

.gm-style-iw button.gm-ui-hover-effect {
    /* Position close cross flush with image and store name */
    position: absolute !important;
    top: 0 !important;
    right: 0 !important;
    transform: translate(0, 0) !important;
    margin: 0 !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
    margin-bottom: 1rem;
}

#everblocklight-storelocator {
    width: 100%;
    border-radius: 0.25rem;
    overflow: hidden;
    border: 1px solid #4d1e168a;
}

#everblocklight-storelocator-wrapper.map-hidden #pane-map {
    display: none !important;
}

#everblocklight-storelocator-wrapper.map-hidden #pane-list {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
}

#everblocklight-storelocator-wrapper.map-hidden .tab-content {
    display: block;
}

#everblocklight-storelocator-wrapper.map-hidden #everblocklight-storelist {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    max-height: none;
    overflow: visible;
    margin-left: 0;
    margin-right: 0;
    padding: 0;
}

#everblocklight-storelocator-wrapper.map-hidden #everblocklight-storelist .everblocklight-store-item {
    width: 100%;
    margin-top: 0;
}

#everblocklight-storelocator-wrapper.map-hidden #everblocklight-storelist .everblocklight-store-item .d-flex {
    height: 100%;
    background: #fff;
    border-radius: 0.5rem;
    padding: 1.25rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    gap: 1rem;
}

#everblocklight-storelocator-wrapper.map-hidden #storeLocatorTabs {
    display: none !important;
}

@media (min-width: 768px) {
    #everblocklight-storelocator {
        /*    width: 50%!important;*/
    }
    #everblocklight-storelocator-wrapper #pane-list {
        opacity: 1;
    }
}

@media (max-width: 767.98px) {
    #storeLocatorTabs .nav-item {
        width: 50%;
    }
    #storeLocatorTabs .nav-link {
        width: 100%;
        text-align: center;
    }
    #store_search {
        margin-left: auto;
        margin-right: auto;
    }
    #pane-map,
    #pane-list {
        position: static;
    }
}

/* Brand carousel arrows */
.featured-brands .carousel-control-prev {
    left: 1rem;
}

.featured-brands .carousel-control-next {
    right: 1rem;
}

/* =========================================================
   Everblocklight WP Section - Blog Grid Fix Height
   ========================================================= */

.everblocklight-wp-section {
  text-align: center;
  z-index: 2;
}

/* ---- TITRE ---- */
.everblocklight-wp-section .section-title {
  font-weight: 800;
  font-size: 1.6rem;
  position: relative;
  display: inline-block;
}
.everblocklight-wp-section .section-title span {
  padding: 0 1rem;
  position: relative;
  z-index: 2;
}
.everblocklight-wp-section .section-title::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 8px;
  background-color: #f28c3a;
  z-index: 1;
}

/* ---- CARD ---- */
.everblocklight-wp-section .blog-card {
  background-color: #fff;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.everblocklight-wp-section .blog-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.1);
}

/* ---- IMAGE ---- */
.everblocklight-wp-section .blog-image-wrapper {
  height: 220px;
  overflow: hidden;
  flex-shrink: 0;
}
.everblocklight-wp-section .blog-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.everblocklight-wp-section .blog-card:hover .blog-image-wrapper img {
  transform: scale(1.05);
}

/* ---- BODY ---- */
.everblocklight-wp-section .blog-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 240px; /* <<< Hauteur uniforme pour alignement */
}

/* ---- TITRE ---- */
.everblocklight-wp-section .blog-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3px;
  width: 0%;
  height: 2px;
  background-color: #f28c3a;
  transition: width 0.3s ease;
}
.everblocklight-wp-section .blog-card:hover .blog-title::after {
  width: 60%;
}

/* ---- DIVIDER ---- */
.everblocklight-wp-section .card-divider {
  width: 60%;
  height: 2px;
  background: #222;
  margin: 0.5rem 0;
}

/* ---- EXCERPT ---- */
.everblocklight-wp-section .line-clamp-5 {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---- BOUTON ---- */
.everblocklight-wp-section .btn-warning {
  background-color: #f28c3a;
  border: 0;
}

/* Google reviews */
.everblocklight-google-reviews__col {
  display: flex;
}

.everblocklight-google-reviews__card {
  flex: 1 1 auto;
}

.everblocklight-google-reviews__avatar {
  width: 56px;
  height: 56px;
  flex: 0 0 56px;
}

.everblocklight-google-reviews__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.everblocklight-google-reviews__text {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
