:root {
  --font-family: 'Open Sans', sans-serif;
  --dark: #2c3e50;
  --background-light: rgba(245, 245, 230, 0.973); /* Naurnos a modern color format */
  --text-color: #444;
  --rouge: #e74c3c; /* Napasingked a modern red */

  --box-shadow: rgba(60, 64, 67, 0.3) 0px 1px 2px 0px,
                rgba(60, 64, 67, 0.15) 0px 2px 6px 2px;
  --border: 1px solid #ddd;
  --vert: #a8df9f;
  --bleu: #819DEB;
  --noir: #000;
  --marron: #d0ca10;
}

body {
  font-family: var(--font-family);
  color: var(--text-color);
  background-color: var(--background-light);
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.container {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  flex: 1;
}

.form-container {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 24rem;
  box-sizing: border-box;
}

.form-container h1 {
  margin-bottom: 2rem;
  font-size: 1.75rem;
  text-align: center;
}

.text-error {
  background-color: var(--rouge);
  color: white;
  margin-top: 5px;
  padding: 5px 10px;
  border-radius: 3px;
  font-size: 0.85rem;
}

.p-20 {
  padding: 20px;
}

.form-control {
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
}

.form-control label {
  margin-bottom: 0.5rem;
  font-weight: 600;
}

.form-control input,
.form-control select,
.form-control textarea {
  border: var(--border);
  border-radius: 4px;
  padding: 0.75rem 1rem;
  font-family: var(--font-family);
  font-size: 1rem;
  width: 100%;
  box-sizing: border-box;
}

.form-control select {
  background-color: #fff;
}

.form-control textarea {
  min-height: 15rem;
  resize: vertical;
}

.centre {
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
}

.centrecaptcha {
  margin-bottom: 3rem;
  display: flex;
  flex-direction: column;
  text-align: center;
  align-items: center;
}

#commentaireformulaire {
  background-color: white;
  margin: 1% auto;
  text-align: center;
  width: auto;
  border-radius: 15px;
  border: 2px solid white;
  color: black;
  padding: 10px;
  position: relative;
  box-shadow: var(--box-shadow);
}

.form-action {
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 1rem;
}

.btn {
  background: white;
  border: solid 1px #ccc;
  color: maroon;
  font-size: 1rem;
  padding: 10px 20px;
  cursor: pointer;
  border-radius: 3px;
  transition: background-color 0.2s ease;
}

.btn:hover {
  background: rgba(41, 129, 125, 0.2);
}

.btnheader a:hover {
  background-color: var(--marron);
  color: white;
}

.formulairecontent {
  display: flex;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 1rem;
  box-sizing: border-box;
}

.blockformulaire {
  background-color: rgb(180, 172, 172);
  margin: 20px 0;
  padding: 20px;
  border-radius: 8px;
  box-shadow: var(--box-shadow);
}

@media only screen and (max-width: 414px) {
  .form-container {
    width: 90%;
  }
  
  .form-container h1 {
    font-size: 1.25rem;
  }
}