.guestbook-page h1,
.guestbook-page h2,
.guestbook-page h3 {
  font-family: var(--nanna-serif);
}
.guestbook-page {
  overflow: hidden;
}

.guestbook-hero {
  background: #2a180f;
}
.guestbook-hero > img {
  object-position: center 56%;
}
.guestbook-hero__overlay {
  background: linear-gradient(
    90deg,
    rgba(31, 12, 5, 0.86),
    rgba(45, 18, 7, 0.54) 42%,
    rgba(36, 13, 4, 0.05) 76%
  );
}
.guestbook-hero__eyebrow {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin: 0 0 0.8rem;
  color: var(--nanna-gold-soft);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.guestbook-hero__eyebrow::before,
.guestbook-hero__eyebrow::after {
  width: 48px;
  height: 2px;
  content: "";
  background: currentColor;
}
.guestbook-hero h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(3.35rem, 5.8vw, 5.3rem);
  font-weight: 500;
  line-height: 0.93;
}
.guestbook-hero__content p:last-child {
  margin: 0.95rem 0 0;
  color: #fff;
  font-size: clamp(1.3rem, 2vw, 1.9rem);
  font-style: italic;
  line-height: 1.2;
}
.guestbook-compose {
  position: relative;
  z-index: 2;
  margin-top: 2rem;
}
.guestbook-form-card {
  padding: clamp(2rem, 4vw, 3.25rem);
  border: 1px solid rgba(139, 95, 38, 0.16);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.97);
  box-shadow: var(--nanna-shadow);
}
/* Harmonisation des trois champs : Nom, E-mail et Date */
.guestbook-form__grid .guestbook-field {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Même espace entre le libellé et le champ */
.guestbook-form__grid .guestbook-field > span {
  display: flex;
  align-items: center;
  min-height: 24px;
  margin-bottom: 12px;
}

/* Dimensions identiques pour les trois champs */
.guestbook-form__grid .guestbook-field > input {
  display: block;
  width: 100%;
  min-width: 0;
  height: 50px;
  min-height: 50px;
  margin: 0;
  padding: 0 14px;
  box-sizing: border-box;
  font: inherit;
}

/* Texte d'aide conservé sous la date */
.guestbook-form__grid .guestbook-field > small {
  margin-top: 8px;
}
.guestbook-form-card .nanna-section-heading {
  margin-bottom: 1.65rem;
}
.guestbook-alert {
  margin-bottom: 1.2rem;
}
.guestbook-form {
  display: grid;
  gap: 1rem;
}
.guestbook-form__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.guestbook-field {
  display: grid;
  gap: 0.45rem;
  color: #44362e;
  font-size: 0.94rem;
  font-weight: 700;
}
.guestbook-field span i {
  width: 1.25rem;
  color: var(--nanna-gold-dark);
}
.guestbook-field span em {
  color: #7b6a5f;
  font-size: 0.82em;
  font-style: normal;
  font-weight: 500;
}
.guestbook-field input,
.guestbook-field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid #d9cabb;
  border-radius: 9px;
  padding: 0.75rem 0.85rem;
  color: var(--nanna-ink);
  background: #fffdfa;
  font: inherit;
  font-weight: 400;
}
.guestbook-field textarea {
  min-height: 118px;
  resize: vertical;
}
.guestbook-field input:focus,
.guestbook-field textarea:focus {
  border-color: var(--nanna-gold-dark);
  outline: 3px solid rgba(201, 145, 27, 0.18);
}
.guestbook-field input[aria-invalid="true"],
.guestbook-field textarea[aria-invalid="true"] {
  border-color: #ad3f32;
}
.guestbook-field__hint,
.guestbook-field__counter {
  color: #75675d;
  font-size: 0.8rem;
  font-weight: 500;
}
.guestbook-field__counter {
  margin-top: -0.15rem;
  text-align: right;
}
.guestbook-field__error {
  color: #a33127;
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.35;
}
.guestbook-score {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  margin: 0.2rem 0;
  border: 0;
  padding: 0;
}
.guestbook-score legend {
  float: left;
  width: auto;
  margin: 0;
  color: var(--nanna-ink);
  font-size: 1rem;
  font-weight: 800;
}
.guestbook-score__choices {
  display: flex;
  flex-direction: row-reverse;
  gap: 0.2rem;
}
.guestbook-score__choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
  color: var(--nanna-gold-dark);
  font-size: 1.7rem;
  line-height: 1;
}
.guestbook-score__choices input {
  position: absolute;
  opacity: 0;
}
.guestbook-score__choice.is-active {
  color: var(--nanna-gold);
}
.guestbook-score__choices input:focus-visible + .guestbook-score__star {
  outline: 2px solid var(--nanna-gold-dark);
  outline-offset: 3px;
  border-radius: 3px;
}
.guestbook-score .guestbook-field__error {
  align-self: center;
}
.guestbook-form > .btn {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.guestbook-reviews {
  padding: clamp(3.5rem, 5vw, 5rem) 0;
}
.guestbook-reviews__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}
.guestbook-review {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: center;
  padding: 1.65rem 1.35rem 1.35rem;
  border: 1px solid rgba(139, 95, 38, 0.12);
  border-radius: 18px;
  background: linear-gradient(
    145deg,
    rgba(255, 249, 239, 0.98),
    rgba(251, 241, 226, 0.88)
  );
  box-shadow: 0 8px 20px rgba(67, 37, 22, 0.08);
  text-align: center;
}
.guestbook-review__quote {
  position: absolute;
  top: 1rem;
  left: 1.2rem;
  color: var(--nanna-gold-dark);
  font-size: 1.65rem;
}
.guestbook-review__rating {
  margin: 0.1rem 0 0.9rem;
  padding: 0.35rem 0.9rem;
  border: 1px solid rgba(201, 145, 27, 0.3);
  border-radius: 999px;
  color: var(--nanna-gold);
  font-size: 0.95rem;
  letter-spacing: 0.12rem;
}
.guestbook-review h3 {
  margin: 0;
  color: #351b16;
  font-size: 1.5rem;
  font-weight: 700;
}
.guestbook-review__title {
  margin: 0.25rem 0 0.6rem;
  font-family: var(--nanna-serif);
  font-size: 1.08rem;
  font-style: italic;
  font-weight: 700;
}
.guestbook-review__content {
  margin: 0;
  color: #423a35;
  line-height: 1.5;
}
.guestbook-review__stay {
  margin: 1rem 0 0.25rem;
  color: #55443b;
  font-size: 0.92rem;
}
.guestbook-review__stay i {
  margin-right: 0.3rem;
  color: var(--nanna-gold-dark);
}
.guestbook-review__date {
  margin: 0;
  color: #8a786c;
  font-size: 0.78rem;
}
.guestbook-reply {
  width: 100%;
  margin-top: 1rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: #49362d;
  text-align: left;
}
.guestbook-reply strong {
  color: var(--nanna-gold-dark);
  font-size: 0.86rem;
}
.guestbook-reply p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
}
.guestbook-reply small {
  color: #8a786c;
}
.guestbook-empty {
  max-width: 600px;
  margin: 0 auto;
  padding: 1.25rem;
  border-radius: 14px;
  background: var(--nanna-sand);
  text-align: center;
}
.guestbook-cta {
  padding: 4.5rem 0;
  background:
    linear-gradient(rgba(255, 239, 221, 0.52), rgba(255, 244, 231, 0.68)),
    url("../../../images/Oasis-marocaine-et-panneau-parchemin.png") center /
      cover;
}
.guestbook-cta__card {
  max-width: 700px;
  margin: 0 auto;
  padding: 2.35rem 2rem;
  border: 1px solid rgba(139, 95, 38, 0.15);
  border-radius: 24px;
  background: rgba(255, 252, 247, 0.93);
  box-shadow: var(--nanna-shadow);
  text-align: center;
}
.guestbook-cta__card > img {
  display: block;
  width: 120px;
  height: 42px;
  margin: -0.4rem auto 0.1rem;
  object-fit: cover;
  object-position: center;
}
.guestbook-cta h2 {
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
}
.guestbook-cta p {
  max-width: 490px;
  margin: 0.65rem auto 1.35rem;
  line-height: 1.5;
}
.guestbook-cta .btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
@media (max-width: 991.98px) {
  .guestbook-reviews__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 767.98px) {
  .guestbook-form__grid {
    grid-template-columns: 1fr;
  }
  .guestbook-reviews__grid {
    grid-template-columns: 1fr;
  }
  .guestbook-score {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }
  .guestbook-score legend {
    float: none;
  }
  .guestbook-compose {
    margin-top: 0;
    padding-top: 1.5rem;
  }
}
@media (max-width: 575.98px) {
  .guestbook-hero h1 {
    font-size: 3.15rem;
  }
  .guestbook-hero__eyebrow {
    gap: 0.75rem;
    font-size: 0.75rem;
  }
  .guestbook-hero__eyebrow::before,
  .guestbook-hero__eyebrow::after {
    width: 32px;
  }
  .guestbook-form-card,
  .guestbook-cta__card {
    padding: 1.7rem 1rem;
    border-radius: 18px;
  }
  .guestbook-score__choice {
    font-size: 1.55rem;
  }
  .guestbook-cta {
    padding: 3.5rem 0;
  }
}
