body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 0;
}

header {
  background-color: #0096c7;
  color: #ffffff;
  padding: 40px 0;
  text-align: center;
  position: relative;
}

header h1 {
  margin: 0;
  font-size: 4vw;
}

header img {
  width: 10%;
  height: auto;
  position: absolute;
  top: 10px;
  left: 20px;
}

.header-buttons {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.btn {
  display: inline-block;
  background-color: #ffffff;
  color: #0096c7;
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.3s, color 0.3s;
  margin: 0 5px;
}

.btn:hover {
  background-color: #0096c7;
  color: #ffffff;
}

.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tabs {
  display: flex;
  justify-content: space-around;
  padding: 10px;
  cursor: pointer;
}

.tab {
  color: white;
  padding: 10px;
  text-align: center;
  flex: 1;
  border: 1px solid #ddd;
  background-color: #0096c7;
  border-radius: 5px;
  transition: background-color 0.3s;
}

.tab.active {
  background-color: #59b1ce;
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
  background-color: white;
  padding: 20px;
}

button {
  padding: 10px;
  background-color: #0096c7;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s;
}

button:hover {
  background-color: #005f73;
}

input[type="number"],
input[type="text"],
input[type="password"],
input[type="date"],
input[type="time"] {
  padding: 10px;
  width: 100%;
  margin: 10px 0;
  border-radius: 5px;
  border: 1px solid #ddd;
  box-sizing: border-box;
}
/* Élément de la colonne "nom_element" */
td input[name="nom_element"] ,
td input[name="type_cuisson"],
td input[name="type_refroidissement"]{
  min-width: 100px; /* Ajustez cette valeur selon vos besoins */
  max-width: 100%; /* Empêche les débordements */
  box-sizing: border-box; /* Gère les marges internes */
}

label {
  margin-top: 10px;
  display: block;
  font-weight: bold;
}

form {
  display: flex;
  flex-direction: column;
  background: #fff;
  padding: 20px;
  border-radius: 5px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 20px;
}

.nav-links {
  margin: 20px 0;
  text-align: center;
}

.nav-links a {
  text-decoration: none;
  font-size: 1.2em;
  color: #0096c7;
  font-weight: bold;
  margin: 0 10px;
  padding: 10px;
  border-radius: 5px;
}

.table-container {
  overflow-x: auto;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  padding-left: 15px;
  padding-right: 15px;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  table-layout: auto;
}

table,
th,
td {
  border: 1px solid #ddd;
  padding: 10px;
  text-align: center;
}

th {
  background-color: #0096c7;
  color: white;
}

.message {
    padding: 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    font-weight: bold;
    text-align: center;
}

.message.success {
    color: #155724;
    background-color: #d4edda;
    border: 1px solid #c3e6cb;
}

.message.error {
    color: #721c24;
    background-color: #f8d7da;
    border: 1px solid #f5c6cb;
}

p {
  color: red;
}

/* Media Queries pour la réactivité */
@media (max-width: 768px) {
  .header-buttons {
    flex-direction: column;
  }

  .tabs {
    flex-direction: column;
  }

  .tab {
    margin: 5px 0;
  }

  th,
  td {
    font-size: 14px;
  }
}

@media (max-width: 500px) {
  th,
  td {
    font-size: 12px;
  }
}
