
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@600&family=Roboto:wght@400&display=swap');

:root {
  --button-width: 166px;
  --name-field-width: 80%;
  --delete-btn-width: 20%;
}

body {
  font-family: 'Roboto', sans-serif;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  margin: 0;
  padding: 0;
  width: 100vw;
  min-height: 100vh;
  overflow-y: auto;
}

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem 0.5rem;
    max-width: 520px;
    gap: 0.5rem;
}

.form-container {
  background-color: rgba(0, 0, 0, 0.425);
  padding: 12px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.4);
  width: 45%;
  display: flex;
  flex-direction: column;
}

.name-fields-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.name-field-wrapper {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.nameField {
  width: var(--name-field-width);
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  color: #333;
  box-sizing: border-box;
}

button.delete-name-btn {
  width: var(--delete-btn-width);
  padding: 8px;
  font-size: 0.85rem;
  background-color: #d12f2f;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

button.delete-name-btn:hover {
  background-color: #e74c3c;
}

input, select, textarea, button {
  width: 100%;
  padding: 8px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-family: 'Roboto', sans-serif;
  box-sizing: border-box;
}

textarea {
  height: 180px;
  resize: none;
  background: #222;
  color: white;
  font-family: 'Courier New', monospace;
  border: 1px solid #ff4500;
}

button {
  background-color: #b33939;
  color: white;
  border: 2px solid #ff4500;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  width: var(--button-width);
  align-self: center;
  padding: 8px;
}

button:hover {
  background-color: #e67e22;
  transform: scale(1.05);
}

@media (max-width: 600px) {
  .container {
    padding: 0.5rem;
  }

  .form-container {
    padding: 10px;
  }

  .nameField {
    width: 70%;
  }

  button.delete-name-btn {
    width: 30%;
    font-size: 0.8rem;
  }

  button {
    width: 100%;
  }
}


/* Suppression des marges automatiques entre les champs */
input, select, textarea {
  margin: 0 !important;
}
