
:root {
  
  /*    MODE CLAIR */
  --list-image-width : 80px; 
  --list-image-height: 80px; 

  --list-gap: 10px;

  --list-container-padding: 0px;
  --list-container-background: transparent;

  --list-container-width: 100%; 
  --list-container-height: auto;
  --list-container-min-height: auto;
  --list-container-max-height: none;

  --list-title-font-size: 16px;
  --list-subtitle-font-size : 11px;
--list-subsubtitle-font-size: 14px;

  --list-container-overflow: visible;


  --list-item-margin: 2px;
  --list-item-padding: 10px;
  --list-item-background: transparent;

  --list-item-border-size: 0px;
  --list-item-border-color: transparent;
  --list-item-border-radius: 0px;

  --list-item-shadow: none;
  --list-item-width : 95%; 
  --list-item-hover-scale: 1;
  --list-item-hover-shadow: var(--list-item-shadow);
}



.list.gallery,
.list.airbnbLike,
.list.shoppingLike {

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.listContainer {
  width: 96%;
  /* overflow: scroll; */
  /* min-height: 80px; */
}

.listContainer.roundedVariant {

    background-color: var(--ChampEcriture);
    padding: 10px;
    gap: 10px;

}


.profilContainer, .productContainer, .item{
    /* Styles généraux pour la section du profil */
    position: relative;
    height: auto;
    
    width: 96%;
    display: flex;
    align-items: center;
    text-decoration:none;
    /* justify-content: space-between; */
    background-color:  var(--list-item-border-color); 

    /* border-bottom: 1px solid #dedede; */
    cursor: pointer;
  }

  .productContainer.roundedVariant{

    width: 100%;
    background-color: var(--background);
    border-radius: 2em;
  }

  

  /* .productContainer::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 96%;
    height: 1px;
    background-color: rgb(245, 245, 245);
  } */

  .profilContainer, .productsContainer {
    /* Styles généraux pour la section du profil */
    position: relative;
    height: auto;
    width: 100%;
    
  }


  .profilInfosContainer, .productInfosContainer {
    /* Styles pour le conteneur des informations du profil */
    position: relative;
    height: auto;
    /* width: 80%; */
    display: flex;
    align-items: center;
    text-decoration:none;
    min-height: 60px;
    width: 96%;

    /* justify-content: center; */
    /* background-color: rgb(0, 42, 255); */

  }

  .profilPictureContainer, .productImageContainer{
    /* Styles pour le conteneur de l'image de profil */
    position: relative;
    height: auto;
    width: auto;
    display: flex;
    align-items: center;
    text-decoration:none;
    justify-content: center;
    /* background-color: rgb(0, 255, 72); */
    margin: 16px;
    margin-top: 8px;
    margin-bottom: 8px; 

  }
  .productImageContainer {
    border-radius: 50%;
  }

  .profilPictureContainer img, .productImageContainer img, .listImage{
    /* Styles pour l'image de profil */
    position: relative;
    height:90px;
    width: 90px;
    display: flex;
    align-items: center;
    text-decoration:none;
    justify-content: center;
    /* background-color: rgb(242, 0, 255); */
    /* border-radius: 50%; */
    border-radius: 16px;
    object-fit: cover;
    /* animation: contentLoading 1.4s linear infinite;  */
  }


  .productNameContainer{
    position: relative;
    width: auto;
    /* min-width: 200px; */
    font-size: 20px;
    height: auto;
    /* font-weight: 400; */
  }
  /* .speudoContainer {

  
  }

  .registrationDateContainer {
    
  } */

  .editLogoContainer {
    /* Styles pour le conteneur du logo d'édition */
   


    position: relative;
    display: flex;
    align-items: center;
    text-decoration: none;
    justify-content: center;
    /* padding: 12px 14px 12px 14px; */
    /* background-color: var(--logo); */
    /* color: var(--ecritureOnLogoColor); */
    gap: 10px;
    /* border-radius: 2em; */
    /* margin: 18px; */
    margin: 5px;
    margin-left: auto;
    font-size: 12px;
    text-decoration: none;
    /* color: var(--ecriture); */
    font-weight: initial;

  }

  .editLogoContainer.roundedVariant{

    margin: 4px;
    margin-right: 20px;
  }

  .editLogoContainer .editLogo {
    /* Styles pour le logo d'édition */
    position: relative;
    height: 20px;
    width: 20px;
    display: flex;
    align-items: center;
    text-decoration:none;
    justify-content: center;
    /* background-color: rgb(0, 255, 72); */
    border-radius: 50%;
    padding: 4px;
    cursor: pointer;
    /* margin: 16px; */
  }
  .editLogoContainer .editLogo:hover {
    background-color: rgb(243, 243, 243);
  }

  .littleText{
      font-size:12px;
      font-style: italic;
      color:rgb(175, 175, 175);
  } 

  .noBorder{
    border-bottom: 0px;
  }


  @media(max-width: 700px) {

    .profilPictureContainer img, .productImageContainer img, .listImage{

        width: 70px;
        height: 70px;
    }

    .productNameContainer{
      position: relative;
      width: auto;
      /* min-width: 200px; */
      font-size: 15px;
      height: auto;
      font-weight: 400;
    }

    .profilContainer, .productContainer,.item {
      width: 100%;
  }
}




/* pour le swipe  */

/* conteneur swipeable */
.list-swipe {
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: pan-y; /* évite les conflits avec le scroll vertical */
}

/* rail qui bouge horizontalement */
.list-swipe-track {
  display: flex;
  position: relative;
  will-change: transform;
  transition: transform 180ms ease;
}

/* zone d’actions à droite (révélée au swipe) */
.list-actions-right {
  display: flex;
  gap: 8px;
  align-items: stretch;
  padding: 0 10px 0 12px;
  background: transparent; /* la couleur vient des boutons */
}

/* chaque bouton d'action */
.list-action-btn {
  min-width: 68px;
  padding: 0 10px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  height: 52px;   /* adapte à la hauteur de ton item */
  color: white;
  font-weight: 600;
  user-select: none;
}

.list-action-btn img {
  width: 18px;
  height: 18px;
}

/* contenu visuel de ton item (ce que tu avais déjà) */
.list-item-content {
  background: var(--Card, #fff);
  width: 100%;
}

/* état ouvert: on enlève la transition pendant le drag, on la remet au release via JS */
.list-swipe--dragging .list-swipe-track {
  transition: none !important;
}



.list .productContainer {
    width: var(--list-item-width, auto);
    height: var(--list-item-height, auto);
    background-color: var(--list-item-background, white);
    /* transition: all 0.3s; */
}

.list .listItemTitleContainer {
    font-size: var(--list-title-font-size);
}


.list .subTitleList {
    font-size: var(--list-subtitle-font-size);
}

.list .subTitleList:nth-of-type(1) {
    font-size: var(--list-subtitle-font-size);
}



.list .productImageContainer img {
    width: var(--list-image-width);
    height: var(--list-image-height);
    object-fit: cover;
}



.list .productImageContainer img .gallery {
    width: 100%;
    /* height: var(--list-image-height);
    object-fit: cover; */
}


.listActionBtn {
    width: var(--action-width, 32px);
    height: var(--action-height, 32px);

    min-width: var(--action-width, 32px);
    min-height: var(--action-height, 32px);

    display: flex;
    align-items: center;
    justify-content: center;
}



.list-no-data {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    text-align: center;
    opacity: 0.8;
}

.list-no-data img {
    max-width: 220px;
    margin-bottom: 1rem;
}

.list-no-data h3 {
    margin-bottom: 1rem;
}




/* container */
.list {
  gap: var(--list-gap);
  padding: var(--list-container-padding);
  background: var(--list-container-background);
  
  width: var(--list-container-width);
  height: var(--list-container-height);

  min-height: var(--list-container-min-height);
  max-height: var(--list-container-max-height);

  overflow: var(--list-container-overflow);
}

/* item */
.list .productContainer {
  margin: var(--list-item-margin);
  padding: var(--list-item-padding);

  border: var(--list-item-border-size) solid var(--list-item-border-color);
  border-radius: var(--list-item-border-radius);

  box-shadow: var(--list-item-shadow);
  background-color: var(--list-item-background, white);
}

/* hover */
.list .productContainer:hover {
  transform: scale(var(--list-item-hover-scale));
  box-shadow: var(--list-item-hover-shadow);
}


.list .selected {
    border-left: 4px solid black;
}




  .textContainer.gallery{
    WIDTH: 100%;
  }





.listContainer.gallery,
.listContainer.airbnbLike,
.listContainer.shoppingLike {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 20px;
}

.productContainer.gallery,
.productContainer.airbnbLike,
.productContainer.shoppingLike {
    flex-direction: column;
    border-radius: 12px;
    box-shadow: none;
   
    max-width: 280px;
}

.productContainer.shoppingLike {
    flex-direction: column;
    border-radius: 12px;
    box-shadow: none;
    justify-content: space-between;
    max-width:200px;

}

.productContainer.gallery:hover,
.productContainer.airbnbLike:hover,
.productContainer.shoppingLike:hover {
    transform: scale(1.02);
    transition: 0.2s;
}


.productImageContainer.gallery img,
.productImageContainer.airbnbLike img,
.productImageContainer.shoppingLike img {
   width: 100%;
height: 120px;
}

.productImageContainer.shoppingLike img {
   width: 100%;
height: 80px;
}

.productImageContainer.gallery ,
.productImageContainer.airbnbLike,
.productImageContainer.shoppingLike {
   width: 100%;
  border-radius: 16px;
  }

.editLogoContainer.shoppingLike {
      margin-left: initial }


      /* À partir de 420px et en dessous → on enlève la limite */
@media (max-width: 420px) {
    
    .productContainer.gallery {
        max-width: none;
    }
    
    .productContainer.airbnbLike {
        max-width: none;
    }


    .list.shoppingLike {
        gap: 0px;
    
    }


.productContainer.shoppingLike {
        max-width: 100px;
    }

    .listImage.shoppingLike {
       
        height: 60px;
    }

    .listItemTitleContainer.shoppingLike{
       
        font-size: 12px;
    }
 .subTitleList.shoppingLike{
       
        display: none;
    }

     .subsubTitleList.shoppingLike{
       
       font-size: 11px;
    }
    
}