@import url('https://fonts.googleapis.com/css2?family=Amiri&family=Noto+Sans&display=swap');

body {
  font-family: 'Noto Sans', sans-serif;
  margin: 2rem;
  background: #f2ede4; /* crème légèrement cassé, papier ancien */
  color: #264653; /* vert forêt foncé */
}

h1, h2, h3, h4 {
  font-family: 'Amiri', serif; /* calligraphie style manuscrit ancien */
  color: #1a3b4c; /* bleu nuit profond */
  text-shadow: 1px 1px 2px #d7c8a1aa; /* léger éclat or vieilli */
  margin-bottom: 0.5em;
}

.book-card {
  background: #e8e1d3; /* beige ancien doux */
  padding: 1rem;
  margin: 1rem 0;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(38, 70, 83, 0.1);
  border: 2px solid #a78c58; /* or mat, vieilli */
  transition: box-shadow 0.3s ease;
}

.book-card:hover {
  box-shadow: 0 6px 15px rgba(38, 70, 83, 0.3);
}

button {
  margin-top: 1rem;
  background-color: #2a6f7f; /* bleu canard profond */
  border: none;
  color: #f2ede4; /* crème clair */
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(42, 111, 127, 0.7);
  transition: background-color 0.3s ease;
}

button:hover {
  background-color: #1b4a56; /* bleu très foncé au hover */
  box-shadow: 0 3px 10px rgba(27, 74, 86, 0.9);
}

#onlineLibraries h3 {
  margin-top: 1em;
  color: #58704c; /* vert forêt plus clair */
  border-bottom: 3px solid #a78c58; /* or mat */
  padding-bottom: 0.4rem;
  font-weight: 700;
}

#onlineLibraries .lib-books > div {
  background: #e8e1d3;
  border-radius: 10px;
  border: 1.5px solid #58704c; /* vert doux */
  box-shadow: 0 3px 8px rgba(88, 112, 76, 0.3);
}

/* Inputs */
input, textarea {
  font-family: 'Noto Sans', sans-serif;
  border: 2px solid #a78c58;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  background-color: #f2ede4;
  color: #264653;
  font-size: 1rem;
  margin-bottom: 0.5rem;
  transition: border-color 0.3s ease;
}

input:focus, textarea:focus {
  border-color: #2a6f7f;
  outline: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-track {
  background: #f2ede4;
}

::-webkit-scrollbar-thumb {
  background-color: #a78c58;
  border-radius: 6px;
  border: 3px solid #f2ede4;
}

/* Responsive */
@media (max-width: 600px) {
  body {
    margin: 1rem;
  }
  .book-card {
    font-size: 1rem;
  }
}

.flex-card {
  display: flex;
  gap: 1em;
  align-items: flex-start;
}

@media (max-width: 600px) {
  .flex-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .book-card img {
    width: 100%;
    max-width: 200px;
    height: auto;
  }
}

@media (max-width: 600px) {
  input, textarea, button {
    width: 100%;
    box-sizing: border-box;
    font-size: 1rem;
  }

  #newLibUrl {
    width: 100% !important;
  }

  button {
    margin-top: 0.5rem;
  }
}

.book-card img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
}

.container {
  max-width: 900px;
  margin: auto;
  padding: 1rem;
}

.btn {
  display: inline-block;
  margin-top: 1rem;
  background-color: #2a6f7f; /* bleu canard */
  border: none;
  color: #f2ede4; /* crème */
  font-weight: 700;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(42, 111, 127, 0.7);
  transition: background-color 0.3s ease;
  text-align: center;
  text-decoration: none;
  font-size: 1rem;
}

.btn:hover {
  background-color: #1b4a56;
  box-shadow: 0 3px 10px rgba(27, 74, 86, 0.9);
}

.library-info {
  font-style: italic;
  font-size: 0.9em;
  color: #004a99;
  background-color: #f0f4f8;
  padding: 0.5em 1em;
  margin: 0.5em 0;
  border-left: 4px solid #007acc;
}
