body {
  margin: 0;
  font-family: 'Comfortaa', sans-serif;
  background-color: #f2f2f2;
}
h1{
  align-items: center;
}
.filtres-container {
  display: flex;
  justify-content: center;
  margin: 20px auto;
  padding: 10px 20px;
  background: #f9f9f9;
  border-radius: 10px;
  max-width: 960px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.filtres-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: end;
  justify-content: center;
}

.filtre-bloc {
  display: flex;
  flex-direction: column;
  min-width: 130px;
}

.filtre-bloc label {
  font-size: 13px;
  margin-bottom: 4px;
  color: #444;
}

.filtre-bloc select,
.filtre-bloc input[type="date"] {
  padding: 6px 8px;
  font-size: 13px;
  border: 1px solid #ccc;
  border-radius: 5px;
  background-color: #fff;
}

.btn-filtrer {
  padding: 7px 14px;
  background-color: #0077cc;
  color: black;
  border: none;
  border-radius: 5px;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s ease-in-out;
}

.btn-filtrer:hover {
  background-color: #005fa3;
}
.toggle-filtres-btn {
  background-color: #e0e0e0;
  border: none;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  margin-bottom: 15px;
  transition: background-color 0.2s ease;
}

.toggle-filtres-btn:hover {
  background-color: #ccc;
}


/* Grille de 3 colonnes fixes */
.grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  width: 100%;
  min-height: 100vh;
}


/* Élément de la grille */
.grid-item {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  text-align: center;
  padding: 10px;
  opacity: 0;
  transition: opacity 0.3s ease;
  background-color: rgba(0, 0, 0, 0.9); /* sera écrasé dynamiquement */
  color: white; /* sera écrasé dynamiquement */
  z-index: 2;
}

.grid-item:hover .overlay {
  opacity: 0.8;
  transform: translateY(0);
}

/* Image */
.grid-item img {
  width: 100%;
  height: 400px;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
  position: relative;
  z-index: 1;
}

/* Formulaire d’ajout (si utilisé dans la page) */
form {
  max-width: 600px;
  background: #fff;
  padding: 20px;
  margin: 0 auto 30px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  border-radius: 8px;
}

form input,
form textarea,
form button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  font-size: 1rem;
  border: 1px solid #ccc;
  border-radius: 5px;
  box-sizing: border-box;
}

form button {
  background-color: #333;
  color: white;
  cursor: pointer;
  transition: background 0.3s ease;
  align-items: center;
}

form button:hover {
  background-color: #555;
}
.btn-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 40px 0 60px 0;
  width: 100%;
}

.btn-container button {
  display: inline-block; /* ou block si besoin */
  background-color: #333;
  color: white;
  font-size: 1rem;
  padding: 12px 24px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s ease;
  text-align: center;
}


/* Responsive : passe à 2 colonnes sur tablette */
@media screen and (max-width: 900px) {
  .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Responsive : passe à 1 colonne sur mobile */
@media screen and (max-width: 600px) {
  .grid-container {
    grid-template-columns: 1fr;
  }
}
/* Section admin (modification/suppression) */
.admin-actions {
  background: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 10px;
  margin-top: 8px;
}

.admin-actions form,
.admin-actions button {
  margin-top: 5px;
  width: 100%;
}

.admin-actions input,
.admin-actions textarea,
.admin-actions select {
  margin-top: 5px;
  padding: 8px;
  width: 100%;
  font-size: 1rem;
  border-radius: 4px;
  border: 1px solid #ccc;
  box-sizing: border-box;
}

.btn-delete {
  background-color: #c62828;
  color: white;
  border: none;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.3s ease;
}

.btn-delete:hover {
  background-color: #b71c1c;
}
.btn-cube {
  background-color: #ffffff;
  color: #000000;
  border: none;
  padding: 14px 28px;
  font-size: 16px;
  font-weight: bold;
  border-radius: 6px;
  box-shadow:
    -6px -6px 12px rgba(255, 255, 255, 0.6),
    6px 6px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  position: relative;
  z-index: 1;
}

.btn-cube:hover {
  transform: translateY(-6px);
  box-shadow:
    -8px -8px 16px rgba(255, 255, 255, 0.5),
    8px 8px 20px rgba(0, 0, 0, 0.4);
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 15px;
  margin: 30px 0;
  justify-content: center;
}

.inline-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.inline-form select {
  padding: 6px 8px;
  font-size: 14px;
}

.inline-form button {
  padding: 6px 10px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  border-radius: 4px;
  background: #eee;
  transition: background-color 0.2s ease;
}

.inline-form button:hover {
  background-color: #ccc;
}

.btn-cube {
  background-color: #0077cc;
  color: white;
  padding: 8px 16px;
  font-size: 14px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.btn-cube:hover {
  background-color: #005fa3;
}

.btn-delete {
  background-color: #e74c3c;
  color: white;
}

.btn-delete:hover {
  background-color: #c0392b;
}
