/* 5s-styles.css */

* {
  box-sizing: border-box;
}

body {
  font-family: Arial, sans-serif;
  margin: 5px;
  padding: 1rem;
  background-color: #f4f4f4;
}

.header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.header button {
  flex: 1;
  min-width: 150px;
  padding: 0.5rem;
  font-weight: bold;
  background-color: #e0e0e0;
  border: none;
  cursor: pointer;
  border-radius: 3px;
  box-shadow: 0px 4px 4px 0px rgba(0,0,0,0.1);
}

.header button:hover {
  background-color: #c9c9c9;
}

.header button:active {
  background-color: #c9c9c9;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

.section {
  background-color: white;
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 5px solid #007700;
  box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

.section h2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0;
}

.pourcentage {
  font-weight: bold;
  padding: 0.3rem 0.6rem;
  border-radius: 5px;
}

.question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.question select {
  padding: 0.2rem;
}

.question span {
  flex: 1;
  margin-right: 1rem;
}

select.status {
  width: 50%;
  max-width: 90px;
  padding: 0.25rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.result-bar {
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.zone-resultat {
  padding: 0.5rem;
  border-radius: 5px;
  font-weight: bold;
}

.form-container {
  background-color: white;
  padding: 1rem;
  margin-top: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #007700;
}

.form-container form {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  flex-wrap: wrap;
}

.commentaires-champs {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
}

.champ-commentaire {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.champ-commentaire label {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.champ-commentaire textarea {
  min-height: 100px;
  padding: 0.5rem;
  border: 1px solid #ccc;
  resize: vertical;
}

label {
  margin-right: 1rem;
  flex: 0 0 15%;
  text-align: right;
}

input[type="date"],
input[type="text"],
select {
  flex: 1;
  margin-right: 1rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

button {
  padding: 0.75rem;
  background-color: #28a745;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 0 0 auto;
}

button:hover {
  background-color: #218838;
}

button:active {
  background-color: #1e7e34;
  box-shadow: 0 5px #666;
  transform: translateY(4px);
}

@media (max-width: 768px) {
  /* Pour les questions */
  .question {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Pour tout le formulaire */
  .form-container form {
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
  }

  /* Labels */
  label {
    margin-right: 0;
    margin-bottom: 0.5rem;
    text-align: left;
  }

  /* Champs de formulaire */
  input[type="date"],
  input[type="text"],
  select {
    margin-right: 0;
    margin-bottom: 1rem;
    width: 100%;
  }

  /* Groupe de formulaire (Date, Zone, Auditeur, Champion) */
  .form-group {
    display: flex;
    flex-direction: column;
  }

  .form-group label {
    margin-top: 0.5rem;
  }

  .form-group input,
  .form-group select {
    width: 100%;
    margin-top: 0.25rem;
  }
  .legende {
    display: flex;
    flex-direction: column;
	align-items: flex-start;
	font-size: 1rem;
	margin-top; 1rem;
  }
  
  .legende span {
	margin-bottom: 0.5rem;
  }
}


.Developpement {
  background-color: #ff453a;
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
}

.Basic {
  background-color: #ff8c00;
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
}

.Advanced {
  background-color: #d8c33a;
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
}

.Showcase {
  background-color: #28a745;
  color: white;
  padding: 0.5rem;
  border-radius: 5px;
}

.legende {
  margin-top: 2rem;
  margin-bottom: 1rem;
}


.comment-container {
  background-color: white;
  padding: 15px;
  border-left: 5px solid #007700;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
}

.comment-container textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #aaa;
  border-radius: 4px;
  resize: vertical;
}

.comment-container label {
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 5px;
  display: block;
  text-align: left;
}

.photo-upload {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
}

.photo-filename {
  margin-left: 10px;
  font-size: 0.9rem;
  color: #999;
}

.photo-button {
  background-color: #007bff;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-right: 1rem;
}

.photo-button:hover {
  background-color: #0056b3;
}
