/* =========================
   AVATAR
   ========================= */

.avatar {
  display: block;
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-bg-soft);
}

.avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
}

/* Taille */
.avatar-xxl {
  width: 96px;
  height: 96px;
}

/* (anciens styles landing / item-card retirés) */

/* =========================================
   ITEM LIST CARD (liste "top", image à gauche)
   Pattern :
   - Hauteur de carte variable (selon le contenu)
   - Colonne image grise sur toute la hauteur
   - Boîte image fixe (202x202 dès tablette), centrée
   - Image jamais rognée : proportions respectées, centrée, peut être plus petite
   ========================================= */

.itemListCard {
  --card-padding: var(--gutter);
  --card-leftWidth: 8.5rem;
  --img-box-size: 112px;

  position: relative; /* pour .stretched-link */
  background: #fff;
  border: 1px solid var(--color-border, #eff3f4);
  border-radius: 16px;
  overflow: hidden; /* le fond gris respecte les arrondis */
  margin-bottom: var(--gutter);
  box-shadow: none;
}

@media (min-width: 48em) {
  .itemListCard {
    --card-padding: var(--gutter);
    --card-leftWidth: 14.125rem;
    --img-box-size: 202px;
  }
}

/* 2 colonnes, hauteur auto */
.itemListCard-inner {
  display: flex;
  align-items: stretch; /* clé : colonne gauche = pleine hauteur */
}

/* Colonne gauche : fond gris pleine hauteur + centre la boîte */
.itemListCard-image {
  flex: 0 0 var(--card-leftWidth);
  background: #f4f6f8;
  padding: var(--card-padding);
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: stretch;
}

/* Boîte fixe */
.itemListCard-imageBox {
  width: var(--img-box-size);
  height: var(--img-box-size);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Frame : aucun padding, juste un centreur */
.itemListCard-imageFrame {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Wrappers Drupal (field -> a -> img) */
.itemListCard-imageFrame .field,
.itemListCard-imageFrame .field__item,
.itemListCard-imageFrame a {
  width: 100%;
  height: 100%;
  padding: 0 !important;
  margin: 0 !important;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Image : libre, jamais rognée */
.itemListCard-imageFrame img {
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center;
  display: block;
  padding: 0 !important;
  margin: 0 !important;
}

/* Body : padding uniquement ici */
.itemListCard-body {
  flex: 1 1 auto;
  min-width: 0;
  padding: var(--card-padding);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.itemListCard-title {
  margin: 0 0 6px;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.2;
}

.itemListCard-link {
  color: inherit;
  text-decoration: none;
}

.itemListCard-link:hover {
  text-decoration: underline;
}

.itemListCard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 10px;
  align-items: center;
  margin-bottom: 6px;
}

.itemListCard-chip {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border: 1px solid var(--color-border, #eff3f4);
  border-radius: 999px;
  font-size: 0.82rem;
  line-height: 1.2;
  background: #fff;
}

.itemListCard-score {
  font-size: 0.9rem;
}

.itemListCard-summary {
  color: var(--color-text-muted, rgba(0,0,0,.6));
  font-size: 0.92rem;
  line-height: 1.35;

  display: -webkit-box;
  -webkit-box-orient: vertical;
  overflow: hidden;
  -webkit-line-clamp: 3;
}

@media (max-width: 575.98px) {
  .itemListCard {
    border-radius: 14px;
  }
  .itemListCard-title {
    font-size: 0.98rem;
  }
  .itemListCard-summary {
    -webkit-line-clamp: 2;
  }
}

/* =========================================
   RATING (module) – style des pouces
   Classes fournies par les templates du module :
   .rating-widget, .rating-btn, .is-active
   ========================================= */

.rating-widget {
  border: 1px solid var(--color-border, #eff3f4);
  border-radius: 16px;
  padding: 0.85rem;
  background: #fff;
}

.rating-buttons {
  gap: 10px !important;
}

.rating-btn {
  min-width: 52px;
  height: 44px;
  border-radius: 12px;
  font-size: 18px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.rating-btn.is-active {
  border-color: rgba(0, 122, 255, 0.55) !important;
  background: rgba(0, 122, 255, 0.10) !important;
}

.rating-btn:focus-visible {
  outline: 3px solid rgba(0, 122, 255, 0.35);
  outline-offset: 2px;
}

/* =========================================
   BLOCK CARD (réutilisable)
   ========================================= */
.block-card{
  background:#fff;
  border:1px solid var(--color-border, #eff3f4);
  border-radius:18px;
  overflow:hidden;
}

/* =========================================
   REVIEWS SECTION (Views blocks)
   - 1 card englobante + rows à l'intérieur
   ========================================= */
.block-likster-views-block-reviews-item-block-1,
.block-likster-views-block-reviews-user-block-1{
  margin-top: var(--section-gap);
}

.reviewsSection{
  background:#fff;
  margin-top: var(--gutter);
  border:1px solid var(--color-border, #eff3f4);
  border-radius:18px;
  overflow:hidden;
}

.reviewsSection-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding: var(--gutter);
  border-bottom:1px solid var(--color-border, #eff3f4);
}

.reviewsSection-title{
  margin:0;
  font-size:1.1rem;
  font-weight:800;
}

.reviewsSection-tools{
  display:flex;
  align-items:center;
  gap:.5rem;
}

.reviewsSection-rows{
  display:block;
}

/* chaque avis = row, séparateurs */
.reviewsSection-rows > .views-row{
  padding: var(--gutter);
  border-bottom:1px solid var(--color-border, #eff3f4);
}
.reviewsSection-rows > .views-row:last-child{
  border-bottom:0;
}

/* =========================================
   REVIEW ROW (node--review--teaser)
   ========================================= */
.reviewRow{
  margin:0;
}

.reviewRow-header{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 1rem;
}

.reviewRow-author{
  display:flex;
  align-items:flex-start;
  gap: .85rem;
  min-width:0;
}

.reviewRow-avatar{
  width:44px;
  height:44px;
  flex: 0 0 44px;
  border-radius:999px;
  overflow:hidden;
  background:#f4f6f8;
  display:flex;
  align-items:center;
  justify-content:center;
}

@media (min-width: 1200px){
  .reviewRow-avatar{
    width:54px;
    height:54px;
    flex-basis:54px;
  }
}

/* image dans author_picture */
.reviewRow-avatar img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
}

/* fallback initiale */
.reviewRow-avatarFallback{
  font-weight:800;
  color: rgba(0,0,0,.55);
}

.reviewRow-authorInfo{
  min-width:0;
}

.reviewRow-authorName{
  font-weight:800;
  line-height:1.1;
}

.reviewRow-authorName a{
  color: inherit;
  text-decoration:none;
}
.reviewRow-authorName a:hover{
  text-decoration:underline;
}

.reviewRow-date{
  margin-top:.15rem;
  font-size:.875rem;
  color: rgba(0,0,0,.6);
}

.reviewRow-vote{
  flex: 0 0 auto;
  display:flex;
  align-items:center;
  gap:.4rem;
}

.reviewRow-body{
  margin-top: .75rem;
}

.reviewRow-footer{
  margin-top: .75rem;
  display:flex;
  gap:.75rem;
  flex-wrap:wrap;
}

.reviewRow-footer a{
  font-size:.9rem;
}

/* user profile card padding */
.user-profile-card{
  padding: 1.25rem;
}

/* =========================================
   ITEM LIST CARD – VOTE ROW (teaser)
   ========================================= */

.itemListCard-voteRow{
  /* On évite une colonne d'action "collée" à droite (déroutant en liste).
     Desktop & mobile : stats puis action, naturellement. */
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap: .6rem;
  margin: .6rem 0 .5rem;
}

.itemListCard-stats{
  min-width:0;
  display:flex;
  flex-direction:column;
  gap: .25rem;
}

.itemListCard-scoreLine{
  display:flex;
  align-items:baseline;
  gap: .5rem;
}

.itemListCard-label{
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}

.itemListCard-metaLine{
  display:flex;
  align-items:center;
  flex-wrap:wrap;
  gap: .5rem;
  color: rgba(0,0,0,.6);
  font-size: .92rem;
}

.itemListCard-sep{
  color: rgba(0,0,0,.35);
}

.itemListCard-buttons{
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap: .35rem;
}

.itemListCard-yourVoteLabel{
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  color: rgba(0,0,0,.55);
}

/* Dans les cards, on veut les pouces "inline" sans double bordure */
.itemListCard-buttons .rating-widget{
  border: 0;
  padding: 0;
  background: transparent;
}

@media (max-width: 575.98px){
  .itemListCard-voteRow{ gap: .75rem; }
}


/* =========================================
   ITEM LIST CARD – TITLE + BADGE
   ========================================= */

.itemListCard-titleRow{ display:flex; align-items:flex-start; justify-content:space-between; gap:.75rem; }
.itemListCard-badge{ flex:0 0 auto; margin-top:.15rem; }
@media (max-width: 575.98px){ .itemListCard-titleRow{ flex-wrap:wrap; } }
