/* Livre d'or — fenêtre « Laisser un avis » */
.gb-dialog {
  width: min(92vw, 32rem);
  max-width: none;
  max-height: min(92dvh, 46rem);
  margin: auto;
  padding: 0;
  overflow: auto;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background: #0b0d0e;
  color: #fff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6);
  font-family: Inter, Arial, sans-serif;
}
.gb-dialog[open] {
  animation: gb-in 0.2s ease-out;
}
.gb-dialog::backdrop {
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
}
.gb-dialog__panel {
  position: relative;
  padding: clamp(1.4rem, 4vw, 2rem);
  background: radial-gradient(circle at 100% 0, rgba(0, 210, 255, 0.12), transparent 45%);
}
.gb-dialog__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.gb-dialog__title {
  margin: 0;
  font-family: Anton, Impact, sans-serif;
  font-size: clamp(1.6rem, 5vw, 2rem);
  font-weight: 400;
  line-height: 1.05;
  text-transform: uppercase;
}
.gb-dialog__title span {
  color: #00d2ff;
}
.gb-dialog__sub {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.gb-dialog__close {
  display: grid;
  flex: none;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
}
.gb-dialog__close svg {
  width: 1.2rem;
  height: 1.2rem;
}
.gb-dialog__close:hover {
  background: rgba(255, 255, 255, 0.07);
  color: #fff;
}
.gb-dialog__close:focus-visible {
  outline: 2px solid #00d2ff;
  outline-offset: 2px;
}

.gb-form {
  display: grid;
  gap: 1rem;
}
.gb-field {
  display: grid;
  gap: 0.4rem;
}
.gb-field .ui-label {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.6);
}
.gb-counter {
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}
.gb-field input,
.gb-field textarea {
  width: 100%;
  padding: 0.8rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 0.15s, background-color 0.15s;
}
.gb-field textarea {
  min-height: 7.5rem;
  resize: vertical;
}
.gb-field input::placeholder {
  color: rgba(255, 255, 255, 0.25);
}
.gb-field input:focus,
.gb-field textarea:focus {
  border-color: rgba(0, 210, 255, 0.6);
  background: rgba(0, 210, 255, 0.05);
  outline: none;
}
.gb-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.gb-note {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  line-height: 1.5;
}
.gb-error {
  margin: 0;
  padding: 0.7rem 0.9rem;
  border: 1px solid rgba(255, 107, 120, 0.45);
  border-radius: 10px;
  background: rgba(255, 107, 120, 0.08);
  color: #ffb3ba;
  font-size: 0.82rem;
}
.gb-form [data-review-submit][disabled] {
  opacity: 0.6;
  cursor: wait;
}

.gb-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding: 1rem 0 0.5rem;
  text-align: center;
}
.gb-success[hidden],
.gb-form[hidden] {
  display: none;
}
.gb-success__icon {
  display: grid;
  place-items: center;
  width: 3.5rem;
  height: 3.5rem;
  border: 1px solid rgba(0, 210, 255, 0.4);
  border-radius: 999px;
  background: rgba(0, 210, 255, 0.1);
  color: #00d2ff;
}
.gb-success__icon svg {
  width: 1.6rem;
  height: 1.6rem;
}
.gb-success h3 {
  margin: 0.3rem 0 0;
  font-family: Anton, Impact, sans-serif;
  font-size: 1.6rem;
  font-weight: 400;
  text-transform: uppercase;
}
.gb-success p {
  max-width: 22rem;
  margin: 0 0 0.6rem;
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.9rem;
  line-height: 1.55;
}

@keyframes gb-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.98);
  }
}
@media (prefers-reduced-motion: reduce) {
  .gb-dialog[open] {
    animation: none;
  }
}
