/* Modal notes/avis float */
.notes-modal-bg {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(34,34,44,0.18);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
}
.notes-modal-float {
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 8px 32px rgba(67,20,156,0.13);
  padding: 32px 18px 18px 18px;
  min-width: 320px;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: floatInDesc .22s cubic-bezier(.71,.3,.71,.49);
}
.notes-modal-close {
  position: absolute;
  top: 12px;
  right: 18px;
  background: none;
  border: none;
  font-size: 22px;
  color: #43149c;
  cursor: pointer;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: color 0.18s;
  z-index: 2;
}
.notes-modal-close:hover {
  color: #e11d48;
}
/* Modal sélection étoiles */
.rating-modal-bg {
	position: fixed;
	top: 0; left: 0; right: 0; bottom: 0;
	background: rgba(34,34,44,0.18);
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rating-modal-float {
	background: #fffbe6;
	border-radius: 18px;
	box-shadow: 0 8px 32px rgba(191,161,0,0.13);
	padding: 32px 22px 22px 22px;
	min-width: 220px;
	max-width: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
	animation: floatInDesc .22s cubic-bezier(.71,.3,.71,.49);
}
.rating-modal-title {
	color: #bfa100;
	font-size: 1.2rem;
	font-weight: 700;
	margin-bottom: 8px;
}
.rating-modal-stars {
	display: flex;
	flex-direction: row;
	gap: 10px;
}
.rating-modal-star-btn {
	background: none;
	border: none;
	cursor: pointer;
	padding: 0;
	transition: transform 0.13s;
}
.rating-modal-star-btn:hover {
	transform: scale(1.18);
}
.rating-modal-star-btn svg path {
	transition: fill 0.18s;
}
@keyframes floatInDesc {
	from { transform: translateY(40px) scale(0.97); opacity: 0; }
	to { transform: translateY(0) scale(1); opacity: 1; }
}

/* Message de remerciement */
.rating-thanks-msg {
	position: fixed;
	top: 32px;
	left: 50%;
	transform: translateX(-50%);
	background: linear-gradient(90deg,#fffbe6 60%,#ffe066 100%);
	color: #bfa100;
	font-size: 1.1rem;
	font-weight: 700;
	border-radius: 12px;
	padding: 10px 28px;
	box-shadow: 0 2px 12px rgba(191,161,0,0.13);
	z-index: 10000;
	animation: floatInDesc .22s cubic-bezier(.71,.3,.71,.49);
}
/* Card principal */
.rating-card-main {
	background: linear-gradient(120deg, #fff 80%, #fffbe6 100%, #ffe066 120%);
	border-radius: 12px;
	padding: 8px 18px;
	box-shadow: 0 2px 12px rgba(191,161,0,0.07);
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 2px;
  width: 100%;
	/* min-width: 260px; */
	/* max-width: 340px; */
	margin: 0 auto;
}
.rating-card-row { width: 100%; display: flex; }
.rating-card-row-top {
	align-items: center;
	justify-content: space-between;
	font-weight: 700;
	font-size: 14px;
	color: #bfa100;
	/* margin-bottom: 2px; */
}
.rating-card-title { color: #bfa100; }
.rating-card-total { color: gray; font-weight: 600; font-size: 12px; margin-left: 2px; }
.rating-card-btn-more {
	background: none;
	border: none;
	color: #bfa100;
	font-weight: 600;
	font-size: 14px;
	display: flex;
	align-items: center;
	gap: 2px;
	cursor: pointer;
	border-radius: 8px;
	padding: 2px 4px;
	transition: background 0.18s;
}
.rating-card-btn-more:hover { background: #fffbe6; }
.rating-card-row-note {
	align-items: center;
	justify-content: center;
	gap: 2px;
	/* font-size: 54px; */
	font-weight: 700;
	color: #bfa100;
}
.rating-card-avg { font-size: 4.1rem; font-weight: 800; color: #bfa100; margin: 0 2px; }
.rating-card-breakdown {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	margin-left: 4px;
}
.rating-break-row {
	display: flex;
	align-items: center;
	gap: 2px;
	font-size: 10px;
	/* width: 170px; */
}
.star-label { display: flex; align-items: center; gap: 2px; color: #bfa100; min-width: 38px; }
.rating-bar {
	flex: 1 1 0;
	height: 6px;
	background: linear-gradient(90deg, #eee 60%, #ffe066 100%);
	border-radius: 6px;
	overflow: hidden;
	margin: 0%;
	min-width: 60px;
	max-width: 100px;
	position: relative;
}
.rating-bar-active {
	height: 100%;
	background: linear-gradient(90deg, #ffe066 60%, #bfa100 100%);
	border-radius: 6px;
	transition: width 0.22s;
}
.rating-bar-count { color: #bfa100; font-size: 8px; text-align: right; }
.rating-card-row-input {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}
.rating-input-row {
	display: flex;
	align-items: center;
	background: #f3f0ff;
	border-radius: 8px;
	padding: 4px 8px;
	gap: 4px;
	width: 100%;
	max-width: 260px;
	box-shadow: 0 1px 4px rgba(67,20,156,0.06);
  border: #bfa100 1.5px solid;
}
.input-prefix {
	display: flex;
	align-items: center;
	color: #bfa100;
	margin-right: 2px;
}
.rating-input {
	border: none;
	background: none;
	color: hsl(51, 100%, 37%);
	font-size: 0.6rem;
	flex: 1 1 0;
	outline: none;
	padding: 2px 4px;
}
.input-suffix {
	background: none;
	border: none;
	color: #bfa100;
	cursor: pointer;
	display: flex;
	align-items: center;
	border-radius: 6px;
	padding: 2px 4px;
	transition: background 0.18s, color 0.18s;
}
.input-suffix:hover {
	background: #ede9fe;
	color: #bfa100;
}
.input-add svg, .input-send svg { stroke: #bfa100; }









.notes-avis-section {
  display: none;
  flex-direction: column;
  align-items: center;
  max-width: 500px;
  margin: 0%;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 3px 13px rgba(16,24,40,0.08);
  padding: 8px 8px 8px 8px;
  font-family:'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

@media (max-width: 768px) {
  .notes-avis-section {
    max-width: 100%;
    padding: 14px 12px;
  }
}

.notes-title {
  font-size: 2.1em;
  font-weight: 700;
  color: #181228;
  margin-bottom: 4px;
  text-align: center;
}
.notes-count { font-size: 1em; color: #535; opacity: .78; font-weight: 600; }

.notes-row-average {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  margin-bottom: 7px;
}
.notes-average {
  font-size: 84px;
  font-weight: 700;
  color: #e89325;
  margin-bottom: -2px;
}
.notes-over {
  font-size: 22px;
  color: #464252;
  font-weight: 600;
  margin-bottom: 5px;
}

.notes-bars-list {
  width: 100%;
  margin-bottom: 1px;
}
.notes-bar-item { margin: 0 0 4px 0; }
.notes-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.star-icon { color: #ffc107; font-size: 20px; }
.bar-label { font-size: 15px; font-weight: 600; color: #191256; width: 18px; }
.bar-progress {
  flex: 1 1 120px;
  height: 8px;
  background: #eee8fa;
  border-radius: 6px;
  margin: 0 8px;
  overflow: hidden;
}
.bar-progress .bar {
  background: linear-gradient(90deg,#e89325 65%, #e5c895 100%);
  height: 100%;
  border-radius: 6px;
  transition: width .31s;
}
.bar-count { font-size: 14px; color: #444; font-weight: 600; min-width: 22px}

.notes-row-center {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2px;
  margin: 2px 0 5px 0;
}
.star-btn {
  background: none;
  padding: 3px;
  font-size: 40px;
  color: #e89325;
  border: none;
  cursor: pointer;
  transition: border .16s, box-shadow .13s;
}
.star-btn:hover { border-color: #e89325; box-shadow: 0 0 8px #e8932522; }

.notes-form {
  width: 100%;
  margin: 0 0 2px 0;
  display: flex;
  justify-content: center;
}
.notes-input-row {
  width: 95%;
  display: flex;
  align-items: center;
  background: #f4f1fc;
  
  border: 1px solid blueviolet;
  border-radius: 13px;
  padding: 8px 13px;
  margin-top: 0;
  box-shadow: 0 1.5px 8px rgba(180,148,234,0.10);
}
.input-prefix, .input-suffix { font-size: 18px; color: #a08be5; }
.input-prefix { margin-right: 7px; }
.input-suffix {
  display: flex;
  gap: 8px;
  margin-left: 6px;
}
.icon-btn { background: none; border: none; color: #8a5eeb; font-size: 19px; cursor:pointer; }
.notes-input {
  flex: 1 1 0%;
  border: none;
  background: transparent;
  font-size: 1em;
  outline: none;
  padding: 5px 0;
  color: #16161f;
}

.notes-relevant {
  text-align: center;
  margin: 23px 0 16px 0;
  font-size: 1.08em;
  font-weight: 600;
  color: #35317d;
}
.notes-relevant-count { color: #e89325; font-weight: 500; }

.notes-avis-list {
  width: 100%;
  margin: 0 auto;
}

.notes-avis-item {
  display: flex;
  gap: 15px;
  margin-bottom: 22px;
  align-items: flex-start;
  
}

.notes-avis-avatar .avatar-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #dddcf4;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  border: 1.5px solid #e0d3fc;
  overflow: hidden;
}
.notes-avis-avatar img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
}
.notes-avis-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 0%;
}
.notes-avis-username {
  font-size: 1.07em;
  font-weight: 700;
  color: #212058;
  margin-bottom: 3px;
}
.notes-avis-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 2px;
}
.notes-avis-date {
  font-size: 14px;
  color: #878185;
  font-weight: 500;
}
.notes-avis-rating i.filled { color: #e89325; }
.notes-avis-rating i { font-size: 18px; color: #c1c1c1; }
.notes-avis-message {
  font-size: 1.09em;
  color: #352d5e;
  margin: 4px 0 7px 0;
}
.notes-avis-actions-row {
  display: flex;
  gap: 10px;
}
.notes-action-btn {
  border: 1.3px solid #d7d1ef;
  background: none;
  padding: 4px 10px;
  border-radius: 7px;
  color: #5253c8;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor:pointer;
  transition: border .14s;
}
.notes-action-btn.outline:hover {
  border-color: #e89325;
  background: #fbecc6;
  color: #ae8105;
}

@media(max-width:680px){
  .notes-avis-section { padding: 14px 4px;}
  .notes-form {width: 99%;}
}