/* ========== ADMIN CSS ========== */

/* Dialog */
.rh-dialog {
  max-width: 450px;
  border: none;
  border-radius: var(--radius-2xl);
  padding: 0;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
}

.rh-dialog::backdrop {
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(8px);
}

.dialog-content {
  padding: 2.5rem;
}

.dialog-content h2 {
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, var(--primary-600), var(--primary-400));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Forms */
.rh-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  transition: all var(--transition-base);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

/* App RH */
.rh-header {
  padding: 1.5rem 0;
  background: linear-gradient(135deg, var(--primary-50), #fff);
  border-bottom: 1px solid var(--gray-200);
}

.rh-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.rh-header h1 {
  margin-bottom: 0;
  font-size: 1.75rem;
}

.rh-header > .rh-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Navigation */
.rh-nav {
  background: #fff;
  border-bottom: 2px solid var(--gray-200);
  padding: 1rem 0;
}

.rh-nav .rh-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.rh-nav-item {
  padding: 0.75rem 1.5rem;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--gray-600);
  background: transparent;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-base);
}

.rh-nav-item:hover {
  background: var(--gray-50);
  color: var(--gray-900);
}

.rh-nav-item.active {
  background: var(--primary-600);
  color: #fff;
  border-color: var(--primary-600);
}

/* Main content */
.rh-main {
  padding: 2rem 0;
  min-height: calc(100vh - 300px);
}

.rh-section {
  display: block;
}

.rh-section.hidden {
  display: none;
}

.rh-section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.rh-section-header h2 {
  margin-bottom: 0;
}

/* Lists */
.rh-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.rh-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  transition: all var(--transition-base);
}

.rh-item:hover {
  border-color: var(--primary-200);
  box-shadow: var(--shadow-card);
}

.rh-item .title {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--gray-900);
}

.rh-actions {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.stat-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  text-align: center;
}

.stat-value {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-600);
  margin-bottom: 0.5rem;
}

.stat-label {
  font-size: 1rem;
  color: var(--gray-600);
}

/* Config */
.config-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.config-card {
  padding: 2rem;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  text-align: center;
}

.config-card h3 {
  margin-bottom: 1rem;
}

.config-card .small-note {
  margin-bottom: 1.5rem;
  color: var(--gray-600);
}

/* Field Row */
.field-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
}

/* Dialog Large */
.rh-dialog[style*="700px"] .dialog-content {
  max-height: 85vh;
  overflow-y: auto;
}

.close-dialog {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
  width: 36px;
  height: 36px;
  border: none;
  background: var(--gray-100);
  border-radius: 50%;
  font-size: 1.25rem;
  cursor: pointer;
  transition: all 0.3s;
}

.close-dialog:hover {
  background: var(--gray-200);
  transform: rotate(90deg);
}

/* Footer */
.rh-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  background: #fff;
  border-top: 1px solid var(--gray-200);
  text-align: center;
  color: var(--gray-600);
}

/* ========== TABLE STYLES ========== */
.rh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.rh-table thead {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.rh-table th {
  padding: 16px 12px;
  text-align: left;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.rh-table tbody tr {
  border-bottom: 1px solid var(--gray-200);
  transition: background 0.2s;
}

.rh-table tbody tr:hover {
  background: var(--gray-50);
}

.rh-table td {
  padding: 16px 12px;
  vertical-align: middle;
  color: var(--gray-900);
}

.rh-table td:first-child {
  font-weight: 500;
  color: var(--gray-600);
}

/* Badge styles */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.badge-job {
  background: #dbeafe;
  color: #1e40af;
}

.badge-new {
  background: #d1fae5;
  color: #065f46;
}

.badge-viewed {
  background: #e0e7ff;
  color: #4338ca;
}

.badge-shortlisted {
  background: #fef3c7;
  color: #92400e;
}

.badge-rejected {
  background: #fee2e2;
  color: #991b1b;
}

/* Table actions */
.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
}

.btn-action {
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition-base);
  text-decoration: none;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.btn-action:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

.btn-action.btn-view {
  color: var(--primary-600);
  border-color: var(--primary-300);
}

.btn-action.btn-view:hover {
  background: var(--primary-50);
  border-color: var(--primary-400);
}

.btn-action.btn-cv {
  color: var(--gray-700);
}

.btn-action.btn-delete {
  color: #dc2626;
  border-color: #fca5a5;
}

.btn-action.btn-delete:hover {
  background: #fef2f2;
  border-color: #f87171;
}

/* ========== FILTRES CVTHÈQUE ========== */
.cvtheque-filters {
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-xl);
  padding: 2rem;
  margin-bottom: 2rem;
  box-shadow: var(--shadow-sm);
}

.cvtheque-filters h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-group input,
.filter-group select {
  width: 100%;
  padding: 0.75rem 1rem;
  font-size: 0.9375rem;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: #fff;
  transition: all var(--transition-base);
}

.filter-group input:focus,
.filter-group select:focus {
  outline: none;
  border-color: var(--primary-500);
  box-shadow: 0 0 0 3px var(--primary-100);
}

.filter-group select {
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3E%3Cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3E%3C/svg%3E");
  background-position: right 0.5rem center;
  background-repeat: no-repeat;
  background-size: 1.5em 1.5em;
  padding-right: 2.5rem;
}

.filters-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}

.filter-result {
  font-size: 0.875rem;
  color: var(--gray-600);
  margin-right: auto;
  font-weight: 500;
}

/* ========== CORRECTION MODAL CANDIDATURE ========== */
#candidateModal {
  max-width: 800px;
  width: 90vw;
  max-height: 90vh;
  border: none;
  border-radius: 16px;
  padding: 0;
  box-shadow: 0 25px 50px rgba(0,0,0,0.3);
}

#candidateModal::backdrop {
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(4px);
}

#candidateDetails {
  max-height: 60vh;
  overflow-y: auto;
  padding: 2rem;
}

#btnCloseCandidateModal:hover,
#btnCloseCandidate:hover {
  background: #e5e7eb;
  transform: scale(1.1);
}

/* Responsive modal */
@media(max-width:768px) {
  #candidateModal {
    width: 95vw;
    max-height: 95vh;
  }
  #candidateDetails {
    max-height: 70vh;
    padding: 1rem;
  }
}

/* ========== ANIMATIONS ========== */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(100%);
    opacity: 0;
  }
}

/* ========== RESPONSIVE ========== */
@media (max-width: 768px) {
  .rh-item {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .stats-grid,
  .config-grid {
    grid-template-columns: 1fr;
  }
  
  .rh-header > .rh-container {
    flex-direction: column;
    gap: 1rem;
  }

  .filters-grid {
    grid-template-columns: 1fr;
  }
  
  .filters-actions {
    flex-direction: column;
    align-items: stretch;
  }
  
  .filter-result {
    margin-right: 0;
    text-align: center;
  }
  
  .rh-table {
    font-size: 12px;
  }

  .rh-table th,
  .rh-table td {
    padding: 12px 8px;
  }
}

@media (max-width: 640px) {
  .field-row {
    grid-template-columns: 1fr;
  }

  .cvtheque-filters {
    padding: 1.5rem;
  }
  
  .table-actions {
    flex-direction: column;
    gap: 0.375rem;
  }
  
  .btn-action {
    width: 100%;
    justify-content: center;
  }

  .rh-table {
    display: block;
    overflow-x: auto;
  }
}
/* ========== BOUTONS DOUBLE ACTIONS ========== */
.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.table-actions .btn-action {
  white-space: nowrap;
  min-width: auto;
}

/* Bouton Modal */
.table-actions .btn-action[onclick*="Modal"] {
  background: var(--primary-50);
  color: var(--primary-600);
  border-color: var(--primary-300);
}

.table-actions .btn-action[onclick*="Modal"]:hover {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
}

/* Lien Détails (comme bouton) */
.table-actions a.btn-action.btn-view {
  background: white;
  color: var(--primary-600);
  border: 1px solid var(--primary-300);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all var(--transition-base);
  cursor: pointer;
}

.table-actions a.btn-action.btn-view:hover {
  background: var(--primary-600);
  color: white;
  border-color: var(--primary-600);
  transform: translateY(-1px);
}

/* Responsive - Empiler les boutons sur mobile */
@media (max-width: 640px) {
  .table-actions {
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
  }
  
  .table-actions .btn-action,
  .table-actions a.btn-action {
    width: 100%;
    justify-content: center;
  }
}
/* ========== BOUTONS DOUBLE ACTIONS CVTHÈQUE ========== */
.table-actions {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.table-actions .btn-action {
  white-space: nowrap;
  min-width: auto;
  padding: 0.5rem 1rem;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: white;
  cursor: pointer;
  font-size: 0.8125rem;
  font-weight: 500;
  transition: all 0.3s ease;
  text-decoration: none;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
}

.table-actions .btn-action:hover {
  background: var(--gray-50);
  border-color: var(--gray-400);
  transform: translateY(-1px);
}

/* Bouton Modal (aperçu rapide) */
.table-actions .btn-action[onclick*="Modal"] {
  background: #e0f2fe;
  color: #0369a1;
  border-color: #7dd3fc;
}

.table-actions .btn-action[onclick*="Modal"]:hover {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

/* Bouton Détails (page complète) */
.table-actions a.btn-action[href*="candidature.html"] {
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  border: none;
}

.table-actions a.btn-action[href*="candidature.html"]:hover {
  background: linear-gradient(135deg, #5568d3, #6941a7);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
  transform: translateY(-2px);
}

/* Bouton Supprimer */
.table-actions .btn-action.btn-delete {
  color: #dc2626;
  border-color: #fca5a5;
}

.table-actions .btn-action.btn-delete:hover {
  background: #fee2e2;
  border-color: #f87171;
}

/* Responsive - Empiler les boutons sur mobile */
@media (max-width: 768px) {
  .table-actions {
    flex-direction: column;
    gap: 0.375rem;
    width: 100%;
  }
  
  .table-actions .btn-action,
  .table-actions a.btn-action {
    width: 100%;
    justify-content: center;
  }
}

/* Animation au survol des lignes du tableau */
.rh-table tbody tr {
  transition: all 0.2s ease;
}

.rh-table tbody tr:hover {
  background: #f8fafc;
  transform: translateX(3px);
}

/* Badge CV dans le tableau */
.rh-table a.btn-action[href*=".pdf"] {
  background: #dbeafe;
  color: #1e40af;
  border-color: #93c5fd;
}

.rh-table a.btn-action[href*=".pdf"]:hover {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}
/* ========== HEADER - BOUTON DÉCONNEXION À DROITE ========== */
.rh-header > .rh-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.rh-header h1 {
  text-align: left;
  flex: 1;
}

/* Groupe header actions (userInfo + bouton déconnexion) */
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-left: auto; /* Pousse tout à droite */
}

/* Style du bouton de déconnexion */
.btn-logout,
#logoutBtn {
  padding: 0.75rem 1.5rem;
  background: linear-gradient(135deg, #ef4444, #dc2626);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2);
}

.btn-logout:hover,
#logoutBtn:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4);
}

.btn-logout:active,
#logoutBtn:active {
  transform: translateY(0);
  box-shadow: 0 2px 6px rgba(239, 68, 68, 0.3);
}

/* Badge utilisateur */
#userInfo {
  padding: 0.5rem 1rem;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .rh-header > .rh-container {
    flex-direction: column;
    gap: 1rem;
  }
  
  .header-actions {
    margin-left: 0;
    width: 100%;
    justify-content: center;
  }
}
/* ========== CENTRAGE DIALOG DE CONNEXION ========== */
.rh-dialog {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
  max-width: 450px;
  width: calc(100% - 32px);
  border: none;
  border-radius: var(--radius-2xl);
  padding: 0;
  box-shadow: 0 25px 50px rgba(0,0,0,.25);
}

.rh-dialog::backdrop {
  background: rgba(15,23,42,.7);
  backdrop-filter: blur(8px);
}

/* Alternative si la première méthode ne fonctionne pas */
.rh-dialog[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Style du contenu */
.dialog-content {
  padding: 2.5rem;
  width: 100%;
}

.dialog-content h2 {
  text-align: center;
  margin-bottom: 2rem;
  background: linear-gradient(135deg, #5bc0be, #3a506b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-size: 1.75rem;
  font-weight: 700;
}

/* Icon en haut */
.login-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  background: linear-gradient(135deg, #5bc0be, #6fffe9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
}

/* Formulaire */
.rh-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 0.5rem;
  display: block;
}

.form-group input {
  width: 100%;
  padding: 1rem;
  font-size: 1rem;
  border: 2px solid var(--gray-200);
  border-radius: 8px;
  transition: all var(--transition-base);
}

.form-group input:focus {
  outline: none;
  border-color: #5bc0be;
  box-shadow: 0 0 0 3px rgba(91, 192, 190, 0.1);
}

/* Bouton de connexion */
.btn-primary,
button[type="submit"] {
  width: 100%;
  padding: 1rem 1.5rem;
  background: linear-gradient(135deg, #5bc0be, #3a506b);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 0.5rem;
}

.btn-primary:hover,
button[type="submit"]:hover {
  background: linear-gradient(135deg, #4aa9a7, #2d3e54);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(91, 192, 190, 0.3);
}

.btn-primary:active,
button[type="submit"]:active {
  transform: translateY(0);
}

/* Message d'erreur/succès */
.message-box,
.small-note {
  padding: 0.875rem 1rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.875rem;
  text-align: center;
  animation: slideDown 0.3s ease;
}

.message-box.success,
.small-note.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #10b981;
}

.message-box.error,
.small-note.error {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #ef4444;
}

/* Animation */
@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive */
@media (max-width: 640px) {
  .rh-dialog {
    width: calc(100% - 16px);
  }
  
  .dialog-content {
    padding: 2rem 1.5rem;
  }
}
/* ========== CORRECTION FINALE - BOUTON DÉCONNEXION À DROITE ========== */
.rh-header .rh-container {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  flex-direction: row !important;
}

.rh-header .rh-container > div:first-child {
  flex: 1;
}

.rh-header .rh-container > div:last-child {
  display: flex !important;
  align-items: center !important;
  gap: 1rem !important;
  margin-left: auto !important;
}

/* Force le style du bouton déconnexion */
#logoutBtn,
.btn-logout {
  padding: 0.75rem 1.5rem !important;
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  color: white !important;
  border: none !important;
  border-radius: 8px !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: all 0.3s ease !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2) !important;
  white-space: nowrap !important;
}

#logoutBtn:hover,
.btn-logout:hover {
  background: linear-gradient(135deg, #dc2626, #b91c1c) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.4) !important;
}

/* Badge utilisateur */
#userInfo {
  padding: 0.5rem 1rem !important;
  background: #f3f4f6 !important;
  border-radius: 20px !important;
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

/* Responsive */
@media (max-width: 768px) {
  .rh-header .rh-container {
    flex-direction: column !important;
    gap: 1rem !important;
  }
  
  .rh-header .rh-container > div:last-child {
    margin-left: 0 !important;
    width: 100%;
    justify-content: center !important;
  }
}
/* ========== UNIFORMISATION TAILLE DES BOUTONS ========== */
.rh-item .rh-actions {
  display: flex;
  gap: 0.5rem;
  align-items: stretch; /* Force la même hauteur */
}

.rh-item .rh-actions button,
.rh-item .rh-actions .btn {
  min-width: 140px; /* Largeur minimale identique */
  padding: 0.75rem 1.5rem !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.5rem !important;
  white-space: nowrap !important;
  border-radius: 8px !important;
  transition: all 0.3s ease !important;
  border: 1px solid !important;
  cursor: pointer !important;
}

/* Bouton Publié (vert) */
.rh-item .rh-actions button[style*="background"],
.rh-item .rh-actions .btn-success {
  background: #d1fae5 !important;
  color: #065f46 !important;
  border-color: #10b981 !important;
}

.rh-item .rh-actions button[style*="background"]:hover {
  background: #a7f3d0 !important;
}