body {
  margin: 0;
  padding: 0;
  background-image: url('background.jpg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: 'Segoe UI', sans-serif;
  color: white;
}

.overlay {
  background-color: rgba(0, 0, 0, 0.7);
  min-height: 100vh;
  padding: 40px;
  backdrop-filter: blur(3px);
}

header {
  text-align: center;
  margin-bottom: 30px;
}

h1, h2 {
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

h1 {
  font-size: 2.5em;
  margin-bottom: 10px;
}

nav {
  margin-bottom: 20px;
}

nav a {
  color: #ffd700;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s;
}

nav a:hover {
    color: #fff;
}

button {
  padding: 10px 20px;
  font-size: 1em;
  background-color: #ffd700;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  color: black;
  font-weight: bold;
}

button#openFormBtn {
  animation: pulse 2s infinite;
}

#formContainer {
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  max-width: 400px;
  margin: 30px auto;
}

input {
  width: calc(100% - 22px);
  padding: 10px;
  margin-bottom: 10px;
  border: none;
  border-radius: 5px;
}

#matchList, #podium, #countdown, #adminTeams, #adminMatches, #adminHistory {
  max-width: 600px;
  margin: auto;
  background-color: rgba(0, 0, 0, 0.3);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 30px;
}

ul {
  list-style: none;
  padding: 0;
}

li {
  padding: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

li:last-child {
    border-bottom: none;
}

li input[type="number"] {
    width: 80px;
    padding: 5px;
    margin: 0 5px;
}

li button {
  margin-left: 10px;
  padding: 5px 10px;
  background-color: #00ffcc;
}

#podium div {
  font-size: 1.2em;
  margin: 10px 0;
  text-align: center;
}

#podium div:first-of-type {
    animation: bounce 1s infinite;
}

#toast {
  visibility: hidden;
  min-width: 250px;
  background-color: #28a745;
  color: #fff;
  text-align: center;
  border-radius: 5px;
  padding: 16px;
  position: fixed;
  z-index: 10;
  left: 50%;
  transform: translateX(-50%);
  bottom: 30px;
  opacity: 0;
  transition: visibility 0.5s, opacity 0.5s, bottom 0.5s;
}

#toast.show {
  visibility: visible;
  opacity: 1;
  bottom: 50px;
}

#toast.error {
    background-color: #dc3545;
}

.fade-in {
  animation: fadeInUp 0.8s ease-out;
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes bounce {
  0%, 100% { transform: translateY(0) scale(1.1); }
  50% { transform: translateY(-10px) scale(1.1); }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0.7); }
  70% { box-shadow: 0 0 0 10px rgba(255, 215, 0, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 215, 0, 0); }
}

.hidden {
  display: none;
}

/* --- Nouveaux styles pour les commentaires --- */

.match-score {
  width: 100%;
  text-align: center;
  font-size: 1.1em;
  padding-bottom: 10px;
}

.comments-section {
  width: 100%;
  margin-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding-top: 10px;
}

.comment {
  font-size: 0.9em;
  margin: 4px 0;
  padding-left: 10px;
  color: #f0f0f0;
  text-align: left;
}

.comment-author {
  font-weight: bold;
  color: #ffd700;
}

.comment-placeholder {
  font-size: 0.8em;
  text-align: center;
  opacity: 0.6;
}

.comment-form {
  width: 100%;
  margin-top: 15px;
  display: flex;
  gap: 10px;
}

.comment-form input {
    margin-bottom: 0;
}

.comment-form input:nth-child(1) { width: 25%; }
.comment-form input:nth-child(2) { flex-grow: 1; }
.comment-form button { padding: 10px; font-size: 0.9em; }

.comment-admin {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 5px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.delete-btn {
    background-color: #dc3545 !important;
    padding: 2px 8px !important;
    font-size: 0.8em !important;
}