/* ================================
   DASHBOARD ACTEURS - BASE SIMPLE
   ================================ */

* {
  box-sizing: border-box;
}

/* Container */
.dashboard-container {
  padding: 40px 20px;
  background: #f5f5f5;
  min-height: 100vh;
}

.content-wrapper {
  max-width: 1400px;
  margin: 0 auto;
}

.dashboard-container h1 {
  font-size: 2.5rem;
  color: #333;
  margin-bottom: 30px;
  text-align: center;
}

/* Boutons du haut */
.dashboard-buttons-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
  flex-wrap: wrap;
}

.dashboard-buttons {
  display: flex;
  gap: 10px;
}

.custom-button {
  padding: 12px 24px;
  background: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.3s;
}

.custom-button:hover {
  background: #0056b3;
}

/* Séparateur */
.dashboard-separator {
  border: none;
  height: 2px;
  background: #ddd;
  margin: 30px 0;
}

/* Grille */
.creations-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 30px 0;
}

/* Card */
.creation-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid #ddd;
  display: flex;
  flex-direction: row;
  transition: box-shadow 0.3s;
}

.creation-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
}

.creation-card.card-valid {
  border-color: #28a745;
  border-width: 2px;
}

.creation-card.card-refused {
  border-color: #ffc107;
  border-width: 2px;
}

.creation-card.card-moderation {
  border-color: #17a2b8;
  border-width: 2px;
}

.creation-card.card-editing {
  border-color: #6c757d;
  border-width: 2px;
}

/* Image */
.card-left-image {
  width: 280px;
  height: 350px;
  overflow: hidden;
  flex-shrink: 0;
  order: 2;
}

.card-left-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.image-gradient-overlay {
  display: none;
}

/* Contenu */
.card-right-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  order: 1;
}

.card-header {
  margin-bottom: 12px;
}

.creation-title {
  font-size: 1.3rem;
  font-weight: bold;
  margin: 0;
  color: #222;
}

/* Badges */
.badge-etat-success,
.badge-etat-warning,
.badge-etat-mod {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
  margin: 8px 0;
}

.badge-etat-success {
  background: #d4edda;
  color: #155724;
}

.badge-etat-warning {
  background: #fff3cd;
  color: #856404;
}

.badge-etat-mod {
  background: #d1ecf1;
  color: #0c5460;
}

/* Texte */
.card-right-content p {
  margin: 8px 0;
  font-size: 0.9rem;
  color: #666;
}

.card-right-content p strong {
  color: #333;
}

/* BOUTONS - SIMPLE ET VISIBLE - RENFORCED */
.card-buttons-wrapper {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin-top: auto !important;
  padding: 15px 0 0 0 !important;
  border-top: 2px solid #ddd !important;
  margin-bottom: 0 !important;
}

.btn-form {
  display: inline-block !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: none !important;
}

.btn-action {
  display: inline-block !important;
  padding: 12px 20px !important;
  font-size: 0.9rem !important;
  font-weight: bold !important;
  border: none !important;
  border-radius: 4px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: all 0.2s !important;
  color: white !important;
  height: auto !important;
  line-height: 1.2 !important;
}

.btn-action:hover {
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2) !important;
}

.btn-action i {
  margin-right: 6px !important;
}

.btn-modifier {
  background: #007bff !important;
  color: white !important;
}

.btn-modifier:hover {
  background: #0056b3 !important;
}

.btn-valider {
  background: #28a745 !important;
  color: white !important;
}

.btn-valider:hover {
  background: #218838 !important;
}

.btn-supprimer {
  background: #dc3545 !important;
  color: white !important;
}

.btn-supprimer:hover {
  background: #c82333 !important;
}

/* Pagination */
.pagination {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  justify-content: center;
}

.pagination-link {
  padding: 10px 15px;
  background: #f0f0f0;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  transition: all 0.2s;
}

.pagination-link.active {
  background: #007bff;
  color: white;
}

.pagination-link:hover {
  background: #007bff;
  color: white;
}

/* ===== BOUTONS EXISTANTS (pour compatibilité) ===== */
.button-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  font-size: 0.9rem;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
}

.button-action i {
  font-size: 1rem;
}

.button-modifier {
  background: #007bff;
  color: white;
}

.button-modifier:hover {
  background: #0056b3;
  transform: translateY(-2px);
}

.button-valider {
  background: #28a745;
  color: white;
}

.button-valider:hover {
  background: #218838;
  transform: translateY(-2px);
}

.button-supprimer {
  background: #dc3545;
  color: white;
}

.button-supprimer:hover {
  background: #c82333;
  transform: translateY(-2px);
}

.inline-form {
  display: inline;
  margin: 0;
  padding: 0;
}

/* Responsive */
@media (max-width: 1024px) {
  .creations-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-container h1 {
    font-size: 1.8rem;
  }

  .dashboard-buttons-wrapper {
    flex-direction: column;
  }

  .card-actions.action-buttons {
    flex-direction: column;
  }

  .button-action {
    width: 100%;
    justify-content: center;
  }
}
