@tailwind base;
@tailwind components;
@tailwind utilities;

/* ===== Menu Burger ===== */
.menu-toggle {
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 1000;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.bar {
  width: 24px;
  height: 3px;
  background-color: #374151; /* gray-800 */
  border-radius: 2px;
  transition: all 0.3s ease;
}

.menu {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  background: white;
  box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease-in-out;
  z-index: 999;
  padding: 60px 0 20px;
}

.menu.active {
  transform: translateX(0);
}

.menu-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.menu-list li {
  padding: 12px 20px;
  border-bottom: 1px solid #e5e7eb; /* gray-200 */
}

.menu-list a {
  display: block;
  text-decoration: none;
  color: #374151; /* gray-800 */
  font-size: 1.1rem;
  transition: background 0.2s;
}

.menu-list a:hover {
  background: #f3f4f6; /* gray-100 */
}

/* Conteneur principal */
.mainBloc {
  align-items: center;
  justify-content: center;
  display: grid;
  margin: 60px 0 0 0;
  padding: 0;
}

/* Zone des inputs */
.inputArea {
  width: auto;
  margin: 0;
  display: grid;
  gap: 10px; /* Espacement entre les lignes */
}

.inputArea-row {
  display: flex;
  align-items: center;
  justify-content: center;
}

.inputLabel {
  width: 100px;
  display: inline-block;
}

.inputUnit {
  width: 95px;
  display: inline-block;
  padding-left: 5px;
}

.input-field {
  width: 250px;
  height: 60px;
  display: inline-block;
  text-align: center;
  border: 2px solid #d1d5db;
  border-radius: 0.5rem;
  font-size: 1.25rem;
}

/* Tableau */
#chronos {
  align-items: center;
  justify-content: center;
  display: grid;
  margin: 30px 0 0 0;
}

.chrono-table {
  display: table;
  width: 400px;
  margin: 0;
  padding: 0;
}

.chrono-row {
  display: table-row;
  padding: 0;
  margin: 0;
}

.chronoLabel, .chronoValue {
  display: table-cell;
  border: 1px solid #717171;
  margin: 0;
  padding-top: 10px;
  padding-bottom: 10px;
  padding-left: 20px;
  width: 200px;
}