/**
 * 2007-2024 PrestaShop
 *
 * 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.
 *
 * DISCLAIMER
 *
 * Do not edit or add to this file if you wish to upgrade PrestaShop to newer
 * versions in the future. If you wish to customize PrestaShop for your
 * needs please refer to http://www.prestashop.com for more information.
 *
 *  @author Neptune Internet Services <contact@neptune-is.com>
 *  @copyright  2007-2024 Neptune Internet Services
 *  @license    http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
 *  International Registered Trademark & Property of PrestaShop SA
 */

/* ============================================= */
/* ================ NEPTUNE AVIS ============== */
/* ============================================= */
.neptune-avis-product-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.neptune-avis-stars {
  display: inline-flex;
  gap: 2px;
}

.neptune-avis-stars .star {
  font-size: 22px;
  line-height: 1;
  color: #ffc107; /* Jaune pour les étoiles pleines */
}

.neptune-avis-stars .star.star-full {
  color: #ffc107;
}

.neptune-avis-stars .star.star-half {
  position: relative;
  color: #ddd; /* Couleur de base (gris) pour la partie non colorée */
  display: inline-block;
}

.neptune-avis-stars .star.star-half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #ffc107; /* Jaune pour la moitié colorée */
}

.neptune-avis-stars .star.star-empty {
  color: #ddd; /* Gris pour les étoiles vides */
}

.neptune-avis-count {
  color: #0066cc;
  text-decoration: underline;
  font-size: 14px;
  cursor: pointer;
}

.neptune-avis-count:hover {
  color: #0052a3;
}

/* ============================================= */
/* ================ CARROUSEL AVIS ============ */
/* ============================================= */
.neptune-avis-carousel-wrapper {
  margin-top: 20px;
}

.neptune-avis-carousel {
  position: relative;
}

.neptune-avis-slide {
  padding: 20px;
}

.neptune-avis-item {
  background: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  min-height: 150px;
}

.neptune-avis-item .neptune-avis-rating {
  display: flex;
  gap: 2px;
  margin-bottom: 15px;
}

.neptune-avis-item .neptune-avis-rating .star {
  font-size: 18px;
  line-height: 1;
}

.neptune-avis-item .neptune-avis-rating .star.star-full {
  color: #ffc107;
}

.neptune-avis-item .neptune-avis-rating .star.star-half {
  position: relative;
  color: #ddd;
  display: inline-block;
}

.neptune-avis-item .neptune-avis-rating .star.star-half::before {
  content: '★';
  position: absolute;
  left: 0;
  top: 0;
  width: 50%;
  overflow: hidden;
  color: #ffc107;
}

.neptune-avis-item .neptune-avis-rating .star.star-empty {
  color: #ddd;
}

.neptune-avis-item .neptune-avis-message {
  font-size: 14px;
  line-height: 1.6;
  color: #333;
}

/* Styles Slick pour le carrousel - Navigation */
.neptune-avis-carousel-wrapper {
  position: relative;
  padding: 0 50px 50px 50px;
}

.neptune-avis-carousel .slick-prev,
.neptune-avis-carousel .slick-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 40px;
  height: 40px;
  background: #fff;
  border: 2px solid #ddd;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 0;
  line-height: 0;
}

.neptune-avis-carousel .slick-prev:hover,
.neptune-avis-carousel .slick-next:hover {
  background: black;
  border-color: black;
  transform: translateY(-50%) scale(1.1);
}

.neptune-avis-carousel .slick-prev {
  left: -50px;
}

.neptune-avis-carousel .slick-next {
  right: -50px;
}

.neptune-avis-carousel .slick-prev:before,
.neptune-avis-carousel .slick-next:before {
  content: '';
  display: block;
  width: 10px;
  height: 10px;
  border-top: 2px solid #333;
  border-right: 2px solid #333;
  transition: border-color 0.3s ease;
}

.neptune-avis-carousel .slick-prev:before {
  transform: rotate(-135deg);
  margin-left: 3px;
}

.neptune-avis-carousel .slick-next:before {
  transform: rotate(45deg);
  margin-right: 3px;
}

.neptune-avis-carousel .slick-prev:hover:before,
.neptune-avis-carousel .slick-next:hover:before {
  border-color: #fff;
}

.neptune-avis-carousel .slick-prev.slick-disabled,
.neptune-avis-carousel .slick-next.slick-disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* Styles pour les dots (bulles de navigation) */
.neptune-avis-carousel .slick-dots {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.neptune-avis-carousel .slick-dots li {
  margin: 0;
  width: auto;
  height: auto;
}

.neptune-avis-carousel .slick-dots li button {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #ddd;
  border-radius: 50%;
  background: transparent;
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: all 0.3s ease;
}

.neptune-avis-carousel .slick-dots li button:before {
  display: none;
}

.neptune-avis-carousel .slick-dots li.slick-active button {
  background: black;
  border-color: black;
  transform: scale(1.2);
}

.neptune-avis-carousel .slick-dots li button:hover {
  border-color: black;
  background: rgba(0, 0, 0, 0.3);
}

@media (max-width: 768px) {
  .neptune-avis-carousel-wrapper {
    padding: 0 20px 50px 20px;
    margin: 0 -20px;
  }
  
  .neptune-avis-carousel .slick-prev,
  .neptune-avis-carousel .slick-next {
    display: none !important;
  }
  
  .neptune-avis-carousel .slick-dots {
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: calc(100% - 40px);
    padding: 0 20px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
  }
  
  .neptune-avis-carousel .slick-dots li {
    margin: 0;
  }
  
  .neptune-avis-carousel .slick-dots li button {
    width: 10px;
    height: 10px;
  }
  
  .neptune-avis-slide {
    padding: 15px 10px;
  }
  
  .neptune-avis-item {
    padding: 15px;
  }
}

