/* === GLOBAL === */
body {
  margin: 0;
  background: #121212;
  font-family: 'Poppins', sans-serif;
  color: white;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 40px 20px;
}

.admin-container {
  width: 100%;
  max-width: 600px;
  background: #1e1e1e;
  padding: 30px;
  border-radius: 16px;
  box-shadow: 0 4px 12px rgba(90,200,250,0.2);
}

h1, h2, h3 {
  text-align: center;
  margin-bottom: 20px;
}

/* === FORMULAIRE D'AJOUT === */
.add-form input[type="text"],
.add-form input[type="file"] {
  width: 100%;
  margin-bottom: 15px;
  padding: 12px;
  background: #2c2c2c;
  border: 2px solid transparent;
  border-radius: 8px;
  color: white;
  transition: border-color 0.3s;
}

.add-form input:focus {
  border-color: #5ac8fa;
  outline: none;
}

.add-form button {
  width: 100%;
  padding: 12px;
  background: #5ac8fa;
  color: #121212;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.3s;
}

.add-form button:hover {
  background: #3eaee2;
}

/* === LISTE DES JEUX === */
.films-list {
  margin-top: 30px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.film-card {
  background: #1a1a1a;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(90,200,250,0.1);
}

.movie-title {
  font-size: 18px;
  margin: 10px 0;
}

.thumb {
  width: 100%;
  max-width: 200px;
  display: block;
  margin: 0 auto 10px;
  border-radius: 8px;
}

.film-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.film-buttons button {
  padding: 8px 16px;
  background: #5ac8fa;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  color: #121212;
  font-weight: bold;
  transition: background 0.3s;
}

.film-buttons .delete-btn {
  background: #f44336;
}

.film-buttons button:hover {
  background: #3eaee2;
}

.film-buttons .delete-btn:hover {
  background: #d32f2f;
}

/* === POP-UP (utilisee si besoin) === */
.popup {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,0.7);
  display: flex; justify-content: center; align-items: center;
}

.popup-content {
  background: #1e1e1e;
  padding: 30px;
  border-radius: 12px;
  max-width: 400px;
  text-align: center;
  position: relative;
}

.popup-content img {
  width: 100%;
  margin-bottom: 10px;
  border-radius: 8px;
}

.popup-content .close {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 28px;
  cursor: pointer;
}

/* === EFFETS GÉNÉRAUX === */
.hidden {
  display: none;
}

.fade {
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@media (max-width: 768px) {
  h1 {
    font-size: 34px;
}
}