* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(30deg,#a7a1a1, #c1bdb9,#9b9491, #d8d6d6 );
    color: #333;
    line-height: 1.6;
}

header {
  background-color: #845D5E;
  padding: 20px 50px 0px 30px;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-left .logo {
  text-decoration: none;
  color: #ffffff;
  font-weight: bold;
  font-size: 1.25rem;
  padding-left: 20px;
}

.nav-right {
  display: flex;
}

.nav-right a {
  margin-left: 3rem;
  color: rgb(255, 255, 255);
  text-decoration: none;
  font-weight: bold;
  font-size: 1.25rem;
}

a.active-page, a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: white;
  color: inherit; 
  font-weight: bold;
  color: white;
  font-size: 1.25rem;
}

@media (max-width: 891px) {
  .nav-right a {
    font-size: 1.1rem;
  }

  .nav-left .logo {
    padding-left: 20px;
    font-size: 1rem;
  }

  header {
    padding: 20px;
  }

  a.active, a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: white;
  color: inherit; 
  font-weight: bold;
  color: white;
  font-size: 1.1rem;
}
}

.logo-min {
  text-transform: uppercase;
}

  h1{
    font-family: "Overlock SC";
    text-align: center;
    margin-bottom: 1rem;
    font-size: 1.7em;
    color: #0b0b0b;
}


/* classe de la balise div, parente direct du form */
.form{
    display: flex;
    justify-content: center;
    align-items: center;
}

form{
  position: relative;
  padding: 30px;
  width: 600px;
  border-radius: 20px;
  overflow: hidden; /* Pour cacher ce qui dépasse du form */
  z-index: index 1;
  color: #000000;
  border: 2px solid whitesmoke;
  margin-bottom: 40px;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.2);
}

/* Fond flouté dans le form */
form::before {
  content: ""; /* Pour faire exister le ::before */
  position: absolute;
  inset: 0; /* Pour remplir tout l'espace du form */ 
  background: linear-gradient(30deg,#cebfbf,#f0b49a, #e1bbab, #d8d6d6 );
  z-index: -1;
}

/* Champs avant les checkbox categories */
.premiere-etape {
  display: flex;
  flex-direction: column;
  gap: 9px; /* espace entre les champs */
  margin-left: 5px;
  margin-right: 5px;
  margin-bottom: 20px;
}

input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
}

/* Pour mettre les checkbox sur 2 colones */
.categorie-colone {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 colonnes */
  gap: 10px 20px; /* espace vertical et horizontal */
  margin-left: 10px;
  margin-bottom: 10px;
}

/* Décoller les checkbox du fieldset */
.checkbox{
  margin-left: 20px;
  margin-bottom: 5px;
}

fieldset{
  font-family: "Overlock SC";
}

fieldset p{
  padding: 10px 0 15px 20px;
  font-family: "Overlock SC";
}

/* Mentions spécifique relatives aux champs categorie et détail de l'origine */
.mention-specifique{
  padding: 8px 0 8px 20px;
  font-family: "Overlock SC";
  font-size: 0.9rem;
}

label{
    font-family: "Overlock SC";
}

/* Style du bouton Proposer */
button[type="submit"] {
  display: block; /* pour pouvoir centrer avec margin: auto */
  width: 60%; 
  padding: 0.75rem 1rem;
  background-color: #f2793c;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 1rem;
  border-radius: 20px;
  font-family: "Overlock SC", cursive;
  margin: 20px auto; /* centrage + marge */
  transition: background-color 0.1s ease, border 0.1s ease; 
}

button[type="submit"]:hover {
  background-color: #f06322;
  border: 1px solid black;
  box-shadow: 4px 4px 20px rgba(0,0,0,0.2);
}

.message-confirmation {
  background-color: #e6ffe6;
  border: 1px solid #32a852;
  color: #265c2b;
  padding: 10px;
  margin-bottom: 15px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
}

footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 1rem;
    font-size: 1rem;
}

footer a {
    color: #fff;
    text-decoration: underline;
}