/* Notation par étoiles + commentaires — Les Cuistos de Royan */

.rating .stars {
  letter-spacing: 2px;
  color: #d4a017;
  font-size: 1.1rem;
}

.rating.unset .stars {
  color: #c9c9c9;
}

.rating {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.rating .rating-label {
  color: #d4a017;
  font-weight: 600;
  font-size: 1rem;
}

.rating.unset .rating-label {
  color: #c9c9c9;
  font-weight: 400;
  font-style: italic;
}

.rating-form {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  max-width: 340px;
}

.star-picker {
  font-size: 1.6rem;
  letter-spacing: 4px;
  cursor: pointer;
  color: #d4a017;
  user-select: none;
}

.star-pick {
  display: inline-block;
  transition: transform 0.1s ease;
}

.star-pick:hover,
.star-pick:focus {
  transform: scale(1.15);
  outline: none;
}

.avis-prenom,
.avis-commentaire {
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid #d8d8d8;
  border-radius: 8px;
  background: #fff;
  color: #333;
}

.avis-commentaire {
  resize: vertical;
  min-height: 120px;
}

.avis-submit {
  align-self: flex-start;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 0.5rem 1.1rem;
  border: none;
  border-radius: 20px;
  background: #1a4f63;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s ease;
}

.avis-submit:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.avis-submit:not(:disabled):hover {
  opacity: 0.85;
}

.avis-feedback {
  margin: 0;
  font-size: 0.85rem;
  color: #1a4f63;
  min-height: 1.1em;
}

.avis-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.avis-item:last-child {
  border-bottom: none;
}

.avis-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
  flex-wrap: wrap;
}

.avis-stars {
  color: #d4a017;
  letter-spacing: 1px;
}

.avis-dish {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #777;
  background: rgba(0, 0, 0, 0.05);
  padding: 0.1rem 0.5rem;
  border-radius: 10px;
}

.avis-author {
  font-size: 0.85rem;
  color: #999;
}

.avis-delete {
  margin-left: auto;
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 0.95rem;
  opacity: 0.5;
  transition: opacity 0.15s ease;
  padding: 0.1rem 0.3rem;
}

.avis-delete:hover {
  opacity: 1;
}

.avis-text {
  margin: 0;
  line-height: 1.6;
  color: #333;
}

.day-title-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

.day-rating-stars {
  font-size: 1.5rem;
  letter-spacing: 3px;
  color: #d4a017;
  cursor: default;
}

.day-rating-stars.unset {
  opacity: 0.45;
}

.day-rating-text {
  font-size: 1.05rem;
  font-weight: 600;
  color: #d4a017;
  opacity: 0.9;
}

.day-rating-stars.unset + .day-rating-text {
  color: #cfd8dc;
  font-weight: 400;
  font-style: italic;
  opacity: 0.75;
}

.reset-ratings {
  border: none;
  background: transparent;
  cursor: pointer;
  font-size: 1.1rem;
  opacity: 0.4;
  margin-left: 0.3rem;
  transition: opacity 0.15s ease, transform 0.15s ease;
  color: inherit;
}

.reset-ratings:hover {
  opacity: 0.85;
  transform: rotate(-45deg);
}

.scroll-to-comments {
  position: fixed;
  left: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: #1a4f63;
  color: #fff;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 1000;
  opacity: 0.92;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.scroll-to-comments:hover {
  transform: translateY(-4px);
  opacity: 1;
}

@media (max-width: 768px) {
  .scroll-to-comments {
    width: 46px;
    height: 46px;
    left: 16px;
    bottom: 16px;
    font-size: 1.25rem;
  }
}

/* Navigation bas de page : jour précédent et jour suivant proches l'un de l'autre,
   « Toute la semaine » centré en dessous */
.day-page-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
}

.day-page-footer-nav a:nth-child(1) {
  order: 1;
}

.day-page-footer-nav a:nth-child(3) {
  order: 2;
}

.day-page-footer-nav::after {
  content: "";
  flex-basis: 100%;
  height: 0;
  order: 3;
}

.day-page-footer-nav a:nth-child(2) {
  order: 4;
}
