/**
* 2007-2022 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    PrestaShop SA <contact@prestashop.com>
*  @copyright 2007-2022 PrestaShop SA
*  @license   http://opensource.org/licenses/afl-3.0.php  Academic Free License (AFL 3.0)
*  International Registered Trademark & Property of PrestaShop SA
*
* Don't forget to prefix your containers with your own identifier
* to avoid any conflicts with others containers.
*/

:root{
  --swiper-navigation-size: 24px !important;
}
.swiper-button-next, .swiper-rtl .swiper-button-prev{
  right: 0;
}
.swiper-button-prev, .swiper-rtl .swiper-button-next{
  left: 0;
}
#page-feed-slider {
    margin-bottom: 32px;
}

#page-feed-slider-wrapper {
  width:100%;
  margin:0;
  left:auto; right:auto;
  overflow:hidden;
}

#page-feed-slider .swiper-initialized {
    padding: 16px;
}

#page-feed-slider .swiper-slide .pfs-card{
    display: block;
    aspect-ratio: 1 / 1.3;
    position: relative;
    overflow: hidden;
    transition: .2s transform;
    background: #fff;
    box-shadow: 0 5px 5px #00000011;
    margin-bottom: 16px;
}
#page-feed-slider .swiper-slide .pfs-card{
    position: relative;
    display: flex;
    user-select: none;
    flex-direction: column;
    font-family: "inherit";
}

#page-feed-slider .swiper-slide .pfs-card:hover {
    transform: scale(1.05);
}

#page-feed-slider .swiper-slide .pfs-card:active {
    transform: scale(1.025);
}

#page-feed-slider .swiper-slide .pfs-card a.cover {
    width: 100%;
    height: calc(100% - 64px);
    position: relative;
    object-fit: cover;
    transition: .2s opacity;
    overflow: hidden;
    flex-shrink: 0;
}

#page-feed-slider .swiper-slide .pfs-card a.cover img {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  object-fit: cover;
  transition: .2s opacity;
  pointer-events: none;
  user-select: none;
  overflow: hidden;
}
#page-feed-slider .swiper-slide .pfs-card .pfs-infos > a.user:after{
  width: 24px;
  height: 24px;
  margin-left: auto;
  content: "";
  display: block;
}

#page-feed-slider a:focus{
  text-decoration: none !important;
}
#page-feed-slider .swiper-slide .pfs-card .pfs-infos a.user{
  display: flex;
  padding: 0 12px;
  flex-shrink: 0;
  align-items: center;
  min-height:64px;
}
#page-feed-slider .swiper-slide .pfs-card .pfs-infos picture{
  border-radius:50%;
  height: 40px;
  width: 40px;
  overflow: hidden;
  margin-right: 8px;
}

#page-feed-slider .swiper-slide .pfs-card .pfs-infos .metadata{
  display: flex;
  flex-direction: column;
  flex-shrink: 0;
  justify-content: center;
  color: #050505;
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 5px;
}
#page-feed-slider .swiper-slide .pfs-card .pfs-infos .metadata .timestamp{
  font-size: 13px;
  color: #97999c;
  font-weight: normal;
}
#page-feed-slider .swiper-slide .pfs-card .pfs-infos .content{
  padding:0 12px;
  display: block;
  font-size: 15px;
  margin-top: -6px;
  color: #050505;
}
#page-feed-slider .swiper-slide .pfs-card.has-description a.cover {
    height: 20%;
}
#page-feed-slider .swiper-slide .pfs-card.has-description{
  position: relative;
}
#page-feed-slider .swiper-slide .pfs-card.has-description:after{
  background: linear-gradient(0deg, white 25%, transparent 100%);
  position: absolute;
  left: 0;
  bottom: 0;
  height: 50px;
  width: 100%;
  content: "";
}
#page-feed-slider .swiper-slide a:hover img {
  opacity:.8;
}

#page-feed-slider picture {
    display: block;
}


#page-feed-slider.pfs-corner_2 .swiper-slide,
#page-feed-slider.pfs-corner_2 .swiper-slide .pfs-card,
#page-feed-slider.pfs-corner_2 .swiper-slide a,
#page-feed-slider.pfs-corner_2 .swiper-slide picture,
#page-feed-slider.pfs-corner_2 .swiper-slide:before,
#page-feed-slider.pfs-corner_2 .swiper-slide:after {
    border-radius: 8px;
}
#page-feed-slider.pfs-corner_2 .swiper-slide .pfs-card a.cover{
  border-radius: 8px 8px 0 0;
}

#page-feed-slider.pfs-corner_3 .swiper-slide,
#page-feed-slider.pfs-corner_3 .swiper-slide .pfs-card,
#page-feed-slider.pfs-corner_3 .swiper-slide a,
#page-feed-slider.pfs-corner_3 .swiper-slide picture,
#page-feed-slider.pfs-corner_3 .swiper-slide:before,
#page-feed-slider.pfs-corner_3 .swiper-slide:after {
    border-radius: 16px;
}
#page-feed-slider.pfs-corner_3 .swiper-slide .pfs-card a.cover{
  border-radius: 16px 16px 0 0;
}
.instagram-section-title{
    text-align: center;
}
#page-feed-slider, #page-feed-slider-wrapper, #page-feed-slider-wrapper .swiper {
  box-sizing: border-box;
}
#page-feed-slider.pfs-navigation_both .swiper,
#page-feed-slider.pfs-navigation_navigation .swiper{
  padding-bottom: 40px;
}
#page-feed-slider .swiper-pagination-bullet{
  transition: all .2s;
}
#page-feed-slider .swiper-pagination-bullet:hover{
  transform:scale(2)
}

#page-feed-slider[class*="_tail"] .swiper,
#page-feed-slider[class*="_tail"] .swiper-wrapper {
      overflow: visible;
}

#page-feed-slider[class*="_stack"] .swiper-slide:after,
#page-feed-slider[class*="_stack"] .swiper-slide:before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background: #ffffff;
  box-shadow: 0 2px 5px rgb(0 0 0 / 5%);
  transform: scale(0.925) translateY(1.2%);
}
#page-feed-slider[class*="_stack"] .swiper-slide:before {
  transform: scale(0.8) translateY(11.5%);
}
#page-feed-slider[class*="_stack"] .swiper-slide .pfs-card{
  box-shadow: 0 2px 3px #00000017;
}
/* START SQUARE/WIDE */
#page-feed-slider[class*="_square"] .swiper-slide .pfs-card.has-description,
#page-feed-slider[class*="_wide"] .swiper-slide .pfs-card.has-description{
  flex-direction: row;
}
#page-feed-slider[class*="_square"] .swiper-slide .pfs-card{
  aspect-ratio: 1.2 / 1;
}
#page-feed-slider[class*="_wide"] .swiper-slide .pfs-card{
  aspect-ratio: 1.8 / 1;
}
#page-feed-slider[class*="_tall"] .swiper-slide .pfs-card{
  aspect-ratio: 1 / 1.75;
}
#page-feed-slider[class*="_square"] .swiper-slide .pfs-card.has-description a.cover,
#page-feed-slider[class*="_wide"] .swiper-slide .pfs-card.has-description a.cover{
  height: 100%;
  width: 64px;
}
#page-feed-slider[class*="_square"].pfs-corner_2 .swiper-slide .pfs-card.has-description a.cover,
#page-feed-slider[class*="_wide"].pfs-corner_2 .swiper-slide .pfs-card.has-description a.cover{
  border-radius:8px 0 0 8px ;
}
#page-feed-slider[class*="_square"].pfs-corner_3 .swiper-slide .pfs-card.has-description a.cover,
#page-feed-slider[class*="_wide"].pfs-corner_3 .swiper-slide .pfs-card.has-description a.cover{
  border-radius:16px 0 0 16px ;
}
#page-feed-slider[class*="_square"] .swiper-slide .pfs-card .pfs-infos,
#page-feed-slider[class*="_wide"] .swiper-slide .pfs-card .pfs-infos{
  width: 100%;
}
#page-feed-slider[class*="_square"] .swiper-slide .pfs-card.has-description.has-image:after,
#page-feed-slider[class*="_wide"] .swiper-slide .pfs-card.has-description.has-image:after{
  left: 64px;
}
/* END SQUARE/WIDE */
/* START CARD */
  #page-feed-slider[class*="_card"] .swiper-slide .pfs-card{
    aspect-ratio:2.5 / 1;
  }
  #page-feed-slider[class*="_card"] .swiper-slide .pfs-card.has-description.has-image{
    flex-direction: row;
  }
  #page-feed-slider[class*="_card"] .swiper-slide .pfs-card.has-description a.cover{
    top: 12px;
    left: 12px;
    aspect-ratio: 1 / 1;
    height: calc(100% - 24px);
    border-radius:12px !important;
    width: auto;
    margin-right: 12px;
  }
  #page-feed-slider[class*="_card"] .swiper-slide .pfs-card.has-description.has-image:after{
    left: 38%;
  }
  /* END CARD */

@media screen and (max-width:1200px){
  #page-feed-slider[class*="_square"] .swiper-slide .pfs-card .pfs-infos .timestamp,
  #page-feed-slider[class*="_wide"] .swiper-slide .pfs-card .pfs-infos .timestamp{
    display: none;
  }
  #page-feed-slider[class*="_square"] .swiper-slide .pfs-card .pfs-infos picture,
  #page-feed-slider[class*="_square"] .swiper-slide .pfs-card .pfs-infos picture img,
  #page-feed-slider[class*="_wide"] .swiper-slide .pfs-card .pfs-infos picture,
  #page-feed-slider[class*="_wide"] .swiper-slide .pfs-card .pfs-infos picture img{
    display: block;
    width: 24px;
    height: 24px;
  }
  #page-feed-slider[class*="_square"] .swiper-slide .pfs-card a.cover,
  #page-feed-slider[class*="_wide"] .swiper-slide .pfs-card a.cover {
    width: 100%;
    height: calc(100% - 48px);
  }
  #page-feed-slider[class*="_square"] .swiper-slide .pfs-card .pfs-infos a.user,
  #page-feed-slider[class*="_wide"] .swiper-slide .pfs-card .pfs-infos a.user{
    min-height:48px;
  }
  #page-feed-slider[class*="_square"] .swiper-slide .pfs-card .pfs-infos > a.user:after,
  #page-feed-slider[class*="_wide"] .swiper-slide .pfs-card .pfs-infos > a.user:after,
  #page-feed-slider[class*="_card"] .swiper-slide .pfs-card .pfs-infos > a.user:after{
    display: block;
  }
  #page-feed-slider .swiper-slide .pfs-card .pfs-infos .metadata .timestamp .ldlabel{
    display: none;
  }
}
@media screen and (max-width:600px){
  #page-feed-slider[class*="_stack"] .swiper-slide:after {
    transform: scale(0.925) translateY(-1%);
  }
  #page-feed-slider[class*="_stack"] .swiper-slide:before {
    transform: scale(0.8) translateY(11.5%);
  }
}
@media screen and (max-width:400px){
  #page-feed-slider[class*="_stack"] .pfs-card:after {
    transform: scale(0.925) translateY(-1%);
  }
  #page-feed-slider[class*="_stack"] .pfs-card:before {
    transform: scale(0.8) translateY(9.5%);
  }
}






/* Style vertical pour stack */
#page-feed-stack.pfs-stack_vertical {
    display: flex;
    flex-direction: column; /* Organisation verticale */
    gap: 16px; /* Espacement entre les articles */
    align-items: center; /* Centre les articles horizontalement */
    padding: 16px; /* Espacement intérieur */
}

#page-feed-stack .pfs-card {
    width: 100%;
    max-width: inherit; /* Largeur maximale */
    background-color: #f0f1ec;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}


/* --- Lightbox Swiper --- */
.pfs-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: pfs-fade-in 0.3s ease;
}
.pfs-lightbox-overlay.pfs-fade-out {
    animation: pfs-fade-out 0.3s ease forwards;
}
.pfs-lightbox-swiper {
    width: 90%;
    height: 90%;
}
.pfs-lightbox-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}
.pfs-lightbox-swiper .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.pfs-lightbox-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: transparent;
    border: none;
    color: white;
    font-size: 2.5rem;
    cursor: pointer;
    line-height: 1;
}
.pfs-lightbox-overlay .swiper-button-next,
.pfs-lightbox-overlay .swiper-button-prev {
    color: white;
}

@keyframes pfs-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes pfs-fade-out {
    from { opacity: 1; }
    to { opacity: 0; }
}

/* --- Statistiques (Réactions, Commentaires, Partages) --- */
.pfs-meta-wrap {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 8px 16px;
    margin-top: 32px;
}
.pfs-reactions, .pfs-comments, .pfs-shares {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    color: #65676b;
}
.pfs-meta-wrap img {
    height: 20px;
    width: auto;
}
