body {
  font-family: Arial, sans-serif;
  margin: 0;
  background: #f6f6f6;
}
#layout {
  display: flex;
}
#sticky-header {
  display: flex;
  flex-direction: row;
  position: sticky;
  top: 0;
  width: 100vw;
  background: #03bb85;
  z-index: 99;
  text-align: center;
  box-shadow: 0 2px 8px #0001;
}
#sticky-header h1 {
  margin: 0;
  font-size: 2.3em;
  font-weight: bold;
  letter-spacing: 0.08em;
  color: white;
  padding: 0 5px;
}
#sticky-header h2 {
  margin: 0;
  font-size: 1em;
  color: white;
  font-weight: normal;
  letter-spacing: 0.05em;
}
#main {
  flex: 3;
  padding: 2em;
}
aside#classement-section {
  flex: 1;
  background: #fff;
  border-left: 1px solid #ddd;
  padding: 2em;
  min-width: 300px;
  height: 100vh;
  overflow: scroll;
}
h2 { margin-top: 0; }

.classement-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
#reset-btn {
  background: #ff6666;
  color: white;
  border: none;
  padding: 0.5em 1em;
  border-radius: 5px;
  font-weight: bold;
  cursor: pointer;
  margin-left: 1em;
}
#reset-btn:hover {
  background: #e94f4f;
}
#equipe-form input { margin-right: 0.5em; }
#equipe-form button:disabled {
  background: #ccc;
  color: #fff;
  cursor: not-allowed;
  opacity: 1;
}
.phase-block {
  background: #ececec;
  padding: 1em;
  margin: 1em 0;
  border-radius: 7px;
}
.phase-title {
  font-size: 1.15em;
  font-weight: bold;
  margin-bottom: 0.5em;
  display: flex;
  align-items: center;
  gap: 1em;
}
.match {
  padding: 0.6em 1em;
  margin: 0.5em 0;
  background: #f9f9f9;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.match input[type="number"] {
  width: 3em;
  margin-left: 0.4em;
  margin-right: 1em;
}
.match button {
  margin-left: 1em;
  padding: 0.2em 0.8em;
}
.match .auto-win {
  color: #03bb85;
  font-weight: bold;
}
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5em; border-bottom: 1px solid #eee; text-align: center; }
button[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.phase-block .gen-btn {
  margin-top: 0.6em;
  background: #4A90E2;
  color: white;
  border: none;
  padding: 0.4em 1.2em;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
}
.phase-block .gen-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.save {
  color: white;
  background: #03bb85;
  border: none;
  border-radius: 3px;

}
.save:hover, .addTeam:hover {
  background: #03bb85;
  opacity: 85%;
  cursor: pointer;
}
.quick13 {
  background: #e8e8e8;
  color: #111;
  border: none;
  border-radius: 1px;
  padding: 0.5em 0.5em;
  margin-left: 0.3em;
  margin-right: 0.7em;
  font-size: 0.9em;
  cursor: pointer;
  margin-left: 0;
}
.quick13:hover {
  background: #dedede;
}
.quick13.eq2 {
  margin-left: 0;
}
.addTeam, #import-btn {
  background: #03bb85;
  cursor: pointer;
  border-radius: 3px;
  border: none;
  padding: 0.6em 1em;
  color: white;
}
#equipe-input, #import-csv {
  height: 2em;
}