/* Style médiéval joyeux pour corpus ludus tabularis */

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

:root {
  --main-color: #4a2e1e;
  --accent-color: #c49b66;
  --highlight-color: #8e44ad;
  --light-bg: #fffdf5;
  --bg-gradient: linear-gradient(120deg, #f6e6d5, #f3d3f2);
}

body {
  margin: 0;
  font-family: 'MedievalSharp', cursive;
  background: var(--bg-gradient);
  color: var(--main-color);
}

header {
  background-color: var(--main-color);
  text-align: center;
}

header img {
  max-width: 100%;
  max-height: 300px;
  height: auto;
  display: block;
  margin: 0 auto;
  object-fit: contain;
}

nav {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  background-color: #6c4c34;
}

nav a {
  color: #fffdf5;
  padding: 1rem;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  background-color: var(--highlight-color);
  color: white;
}

main {
  padding: 2rem;
  max-width: 1000px;
  margin: auto;
}

section {
  background-color: rgba(255, 255, 255, 0.9);
  padding: 2rem;
  border-radius: 12px;
  max-width: 600px;
  margin: auto;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

h1, h2 {
  color: var(--main-color);
  text-align: center;
}

label {
  display: block;
  margin-top: 1rem;
  font-weight: bold;
}

input, textarea {
  width: 100%;
  padding: 0.6rem;
  border: 2px solid var(--accent-color);
  border-radius: 8px;
  background-color: var(--light-bg);
  font-family: 'MedievalSharp', cursive;
}

button {
  margin-top: 1rem;
  padding: 0.7rem 1.5rem;
  background-color: var(--accent-color);
  color: white;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  font-family: 'MedievalSharp', cursive;
}

button:hover {
  background-color: var(--highlight-color);
}

footer {
  background-color: #6c4c34;
  color: white;
  text-align: center;
  padding: 1rem;
  margin-top: 2rem;
}

.confirmation-message {
  text-align: center;
  color: green;
  margin-top: 1rem;
}


@media (max-width: 768px) {
  header img {
    width: 100%;
    height: auto;
  }

  nav {
    flex-direction: column;
  }

  .menu {
    flex-direction: column;
    align-items: center;
  }

  .menu > li > a {
    padding: 0.5rem 1rem;
  }

  main {
    padding: 1rem;
  }

  body {
    font-size: 1rem;
  }
}
.parchment-button {
  display: inline-block;
  padding: 1rem 2rem;
  background: #f7f1d1 url('https://www.transparenttextures.com/patterns/paper-fibers.png');
  border: 4px solid #bfa46d;
  border-radius: 10px;
  color: #4b3621;
  text-decoration: none;
  font-family: 'MedievalSharp', cursive;
  font-size: 1.2rem;
  box-shadow: 4px 4px 10px rgba(0,0,0,0.2);
  transition: transform 0.2s ease-in-out;
}
.parchment-button:hover {
  transform: scale(1.05);
  background-color: #f0e6b8;
}
