/* 📷 Comportement global des images */
img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: auto;
  border-radius: 10px;
  object-fit: contain;
}

/* 🎨 Pochette dans tableau */
.thumb {
  display: block;
  max-width: 140px;
  max-height: 140px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  margin: auto;
  box-shadow: 0 0 6px #00f7ff;
  transition: all 0.3s ease;
}

.thumb:hover {
  box-shadow: 0 0 12px #00f7ff;
  transform: scale(1.05);
}

/* 🌌 Fond global */
body {
  margin: 0;
  padding: 0;
  font-family: 'Segoe UI', sans-serif;
  background-color: #0d0d1a;
  color: #e0f7ff;
}

/* 📦 Conteneur principal */
.form-wrapper,
.main-content {
  background-color: #141427;
  padding: 30px;
  border-radius: 14px;
  box-shadow: 0 0 20px #00f7ff;
  max-width: 1000px;
  width: 95%;
  margin: 30px auto;
}

/* 🧠 Titres */
h1, h2 {
  text-align: center;
  font-size: 1.8em;
  color: #00f7ff;
  margin-bottom: 25px;
  text-shadow: 0 0 8px #00f7ff;
}

/* 🏷️ Libellés */
label {
  font-weight: bold;
  display: block;
  margin-top: 15px;
  margin-bottom: 6px;
  color: #00d0ff;
}

/* ✏️ Champs */
input[type="text"],
input[type="file"],
textarea,
select {
  width: 100%;
  padding: 10px;
  border-radius: 6px;
  border: 1px solid #00f7ff;
  background-color: #0f0f2f;
  color: #00f7ff;
  box-shadow: 0 0 6px #00f7ff inset;
  font-size: 1em;
}

/* 📌 Placeholder */
input::placeholder,
textarea::placeholder {
  color: #66e0ff;
}

/* 🧱 Grille flexible */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.grid-item {
  background-color: #1f1f3b;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 0 10px #007acc;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.grid-item img {
  width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

/* 📱 Responsive mobile */
@media (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}

