/* === Reset & base === */

.wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;   /* Espas a gòch ak a dwat */
  margin-bottom: 60px;
}

/* === Card === */
.card {
  background-color: #ffffff;
  border-radius: 12px;
  padding: 22px;
  box-shadow: 0 8px 30px rgba(11, 21, 61, 0.06);
}
h1 {
  font-size: 20px;
  margin-bottom: 8px;
}
p.lead {
  margin-bottom: 18px;
  color: #6b7280;
}

/* === Rating Stars === */
.rating {
  display: flex;
  flex-wrap: wrap;       /* Pèmèt eleman yo ale sou liy pwochen si pa gen plas */
  align-items: center;
  gap: 12px;             /* Espas ant étoiles ak valeur */
}

/* Fè valeur a rete nan liy ak adaptab */
.rating-value {
  font-weight: 700;
  font-size: 18px;
  color: #ddab23;
  flex-shrink: 0;        /* Pa kite li vin twò piti */
}
.stars {
  display: inline-flex;
  gap: 6px;
}
.star-btn {
  background: transparent;
  border: none;
  padding: 6px;
  border-radius: 8px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.star-svg {
  width: 40px;
  height: 40px;
  transition: transform 0.12s ease, filter 0.12s;
  fill: #e6e6e6;
}
.star-svg:hover {
  transform: scale(1.06);
}
.star-on {
  fill: #ffbf00 !important;
  filter: drop-shadow(0 2px 6px rgba(255, 191, 0, 0.25));
}
.meta {
  font-size: 13px;
  color: #6b7280;
  max-width: 100%;      /* Pa depase kontene */
  word-wrap: break-word; /* Fè tèks long kase liy otomatik */
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* === Form === */
form {
  margin-top: 18px;
  display: grid;
  gap: 12px;
}
label {
  font-size: 13px;
  color: #6b7280;
  display: block;
  margin-bottom: 6px;
}
input[type="text"],
textarea {
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid #e6e9f2;
  font-size: 14px;
}
textarea {
  min-height: 100px;
  resize: vertical;
}
.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}
.btn {
  background-color: #ddab23;
  color: #fff;
  padding: 10px 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}
.btn.secondary {
  background-color: #e6e6e6;
  color: #ddab23;
}

/* === Comments === */
.comments-wrap {
  margin-top: 20px;
}
.comment-card {
  background-color: #fbfdff;
  border: 1px solid #eef2ff;
  padding: 12px;
  border-radius: 10px;
  margin-bottom: 10px;
  display: flex;
  gap: 12px;
}
.comment-meta {
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}
.comment-body {
  font-size: 15px;
  color: #0b1220;
}
.stars-small {
  display: inline-flex;
  gap: 2px;
  margin-left: 6px;
}
.stars-small svg {
  width: 16px;
  height: 16px;
  fill: #e6e6e6;
}
.stars-small .on {
  fill: #ffbf00;
}
.empty {
  color: #6b7280;
  padding: 16px;
  text-align: center;
  border-radius: 8px;
  border: 1px dashed #e6e9f2;
}

/* === Responsive === */
@media (max-width: 600px) {
 .star-svg {
   width: 34px;
   height: 34px;
  }
 .wrap {
   padding: 0 12px; /* Ti espas sou mobil */
 }
}

@media (max-width: 480px) {
  .meta {
    font-size: 11px; /* pi piti sou mobil */
  }
    .rating {
    gap: 8px;
  }
  .rating-value {
    font-size: 16px;     /* Ti kras pi piti pou kenbe layout */
  }
  .stars {
    flex-wrap: wrap;     /* Si étoiles twò laj, kase liy */
  }
}