/* ============================================================
   Livre d'or - www.fionalequec.fr
   Styles du nouvel onglet "Livre d'or" (liste des messages +
   formulaire). Suit la palette sauge / terracotta / ocre / creme
   deja utilisee par theme-override.css, sans toucher au code de
   l'application ni aux fichiers existants.
   ============================================================ */

/* --- Liste des messages --- */
#livre-or-list {
  max-width: 48rem;
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.livre-or-loading,
.livre-or-empty,
.livre-or-error {
  text-align: center;
  color: #6b6862;
  font-size: 0.95rem;
}

.livre-or-card {
  background: #ffffff;
  border: 1px solid #e7ddc9;
  border-left: 4px solid #c1633b;
  border-radius: 0.75rem;
  padding: 1.25rem 1.5rem;
  box-shadow: 0 1px 3px rgba(47, 59, 46, 0.08), 0 1px 2px rgba(47, 59, 46, 0.05);
}

.livre-or-card-msg {
  color: #3a362e;
  font-size: 1rem;
  line-height: 1.6;
  margin: 0 0 0.6rem;
  white-space: pre-line;
}

.livre-or-card-meta {
  margin: 0;
  font-size: 0.85rem;
  color: #6b8e6f;
  font-weight: 600;
}

/* --- Formulaire --- */
.livre-or-form-wrap {
  max-width: 36rem;
  margin: 0 auto;
  background: #f7f0e4;
  border-radius: 0.75rem;
  padding: 2rem;
}

.livre-or-form-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: #2f3b2e;
  margin: 0 0 1.25rem;
  text-align: center;
}

.livre-or-field {
  margin-bottom: 1rem;
}

.livre-or-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #3a362e;
  margin-bottom: 0.35rem;
}

.livre-or-field input[type="text"],
.livre-or-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #e7ddc9;
  border-radius: 0.5rem;
  padding: 0.65rem 0.85rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: #2f3b2e;
  background: #ffffff;
  resize: vertical;
}

.livre-or-field input[type="text"]:focus,
.livre-or-field textarea:focus {
  outline: none;
  border-color: #6b8e6f;
  box-shadow: 0 0 0 3px rgba(107, 142, 111, 0.2);
}

/* Piege a robots : champ invisible pour les humains, visible pour les bots */
.livre-or-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.livre-or-submit {
  display: block;
  width: 100%;
  background-color: #c1633b;
  color: #ffffff;
  border: none;
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.livre-or-submit:hover {
  background-color: #a34f2d;
}

.livre-or-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.livre-or-note {
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
  color: #93908c;
  text-align: center;
}

.livre-or-status {
  margin-top: 0.9rem;
  font-size: 0.9rem;
  text-align: center;
  min-height: 1.2em;
}

.livre-or-status.is-success {
  color: #4a5c4a;
  font-weight: 600;
}

.livre-or-status.is-error {
  color: #a34f2d;
  font-weight: 600;
}
