.admin-container {
  padding: 40px 20px;
  max-width: 95%;
  margin: auto;
}
/* ===== Filtres admin ===== */
.admin-filters {
  margin: 20px auto;
  max-width: 900px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
}

.admin-filters input,
.admin-filters select {
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  flex: 1;
  min-width: 200px;
}

/* ===== Boutons / Actions ===== */
.admin-actions {
  margin-bottom: 20px;
}

.admin-actions a,
.admin-actions button {
  display: inline-block;
  padding: 10px 20px;
  margin-right: 10px;
  background: #e91e63;
  color: #fff;
  text-decoration: none;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* ===== Tableau admin ===== */
.admin-table {
  width: 100%;
  border-collapse: collapse;
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-top: 20px;
  font-size: 10px;
}

.admin-table thead {
  background-color: #2e8b57;
  color: white;
  text-transform: uppercase;
}

.admin-table thead th {
  padding: 12px;
  text-align: left;
  border-bottom: 2px solid #eaeaea;
  cursor: pointer;
  position: relative;
}



.admin-table tbody tr {
  transition: background-color 0.2s;
}

.admin-table tbody tr:nth-child(even) {
  background-color: #f9f9f9;
}

.admin-table tbody tr:hover {
  background-color: #f1f8f4;
}

.admin-table td {
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
  vertical-align: top;
  word-break: break-word;
}

/* ===== Cellule action ===== */
.actions-cell {
  text-align: center;
  white-space: nowrap;
}

.actions-cell a {
  margin: 0 5px;
  font-size: 16px;
  text-decoration: none;
  color: #2e8b57;
  transition: color 0.2s ease;
}

.actions-cell a:hover {
  color: #d9534f;
}

/* ===== Responsive Table ===== */
@media screen and (max-width: 768px) {
  .admin-table thead {
    display: none;
  }

  .admin-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 10px;
  }

  .admin-table td {
    display: block;
    padding: 8px;
    text-align: right;
    font-size: 13px;
  }

  .admin-table td::before {
    content: attr(data-label);
    float: left;
    font-weight: bold;
    text-transform: capitalize;
    color: #555;
  }

  .actions-cell {
    text-align: right;
  }
}

/* ===== Impression ===== */
@media print {
  body {
    font-size: 10px;
    background: white;
  }
  nav, .admin-actions, .burger {
    display: none !important;
  }
  table {
    width: 100%;
    table-layout: fixed;
  }
  th, td {
    padding: 4px;
    font-size: 9px;
  }
}


.admin-filters {
  display: flex;
  gap: 15px;
  margin: 30px auto;
  max-width: 1000px;
  padding: 20px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.admin-filters input#searchInput {
  padding: 12px 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  width: 100%;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
  justify-content: space-between;
}

.filter-form input,
.filter-form select {
  padding: 10px 14px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
  flex: 1;
  min-width: 150px;
}

.btn-filtrer {
  padding: 10px 20px;
  background-color: #2e8b57;
  color: white;
  border: none;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-filtrer:hover {
  background-color: #246d45;
}

.btn-reset {
  text-decoration: none;
  color: #6a1b9a;
  font-weight: bold;
  margin-left: 10px;
  transition: color 0.2s ease;
}

.btn-reset:hover {
  color: #ab47bc;
}

@media screen and (max-width: 768px) {
  .filter-form {
    flex-direction: column;
    align-items: stretch;
  }

  .btn-filtrer, .btn-reset {
    width: 100%;
    text-align: center;
  }
}



.photo-lock {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 0 8px rgba(0,0,0,0.1);
}

.photo-lock img {
  width: 100%;
  height: 150px;
  object-fit: cover;
  filter: blur(2px) brightness(0.7);
  transition: 0.3s;
}

.photo-lock .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: white;
  font-weight: bold;
  font-size: 1rem;
  background: rgba(0, 0, 0, 0.4);
}

.photo-lock button {
  background-color: #7e58a0;
  color: white;
  border: none;
  padding: 8px 15px;
  margin-top: 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.3s;
}

.photo-lock button:hover {
  background-color: #5a3b78;
}

.success-message {
  background-color: #dff0d8;
  color: #3a9d5d;
  padding: 12px 20px;
  margin: 20px auto;
  border: 1px solid #3a9d5d;
  border-radius: 5px;
  max-width: 800px;
  text-align: center;
}
