

/** Css tableau de bord**/
.dashboard-home {
  padding: 0;
}

.page-header {
  text-align: center;
  padding-bottom: 24px;
  /* border-bottom: 1px solid #e2e8f0; */
}

.page-title {
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

/* Grid des statistiques */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  margin-top: 32px;
}

.stat-card {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.stat-card-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1;
}

.stat-label {
  color: #64748b;
  margin: 4px 0 0 0;
  font-size: 14px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, #0891D7, #0ea5e9);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.stat-trend {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
  gap: 4px;
}

.stat-trend.positive {
  color: #10b981;
}

.stat-trend.neutral {
  color: #f59e0b;
}

/* Grid du dashboard */
.dashboard-grid {
  display: grid;
  /* grid-template-columns: 2fr 1fr; */
  gap: 24px;
  margin-top: 32px;
}

.dashboard-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e2e8f0;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #e2e8f0;
}

.section-title {
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.view-all {
  color: #0891D7;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}

/* Styles pour les listes */
.properties-list,
.activity-list,
.messages-preview {
  space-y: 16px;
}

.property-item,
.activity-item,
.message-item {
  display: flex;
  gap: 12px;
  padding: 16px 0;
  border-bottom: 1px solid #f1f5f9;
  align-items: center;
}

.property-item:last-child,
.activity-item:last-child,
.message-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.property-item:first-child,
.activity-item:first-child,
.message-item:first-child {
  padding-top: 0;
}

/* Styles spécifiques pour chaque type de liste */
.property-image {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.property-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-status {
  position: absolute;
  top: 4px;
  left: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  color: white;
}
/**********************************/
.property-status.active {
  background: #10b981;
  color: white;
}

.property-status.pending {
  background: #f59e0b;
  color: white;
}
/**********************************/
/* Classes spécifiques pour chaque statut */
.property-status.draft { /* brouillon */
  background: #6b7280; /* Gray-500 */
}

.property-status.pending { /* en_attente */
  background: #f59e0b; /* Amber-500 */
}

.property-status.active { /* approuve */
  background: #10b981; /* Emerald-500 */
}

.property-status.rejected { /* rejete */
  background: #ef4444; /* Red-500 */
}

.property-status.sold { /* vendu */
  background: #6366f1; /* Indigo-500 */
}

.property-status.rented { /* loue */
  background: #8b5cf6; /* Violet-500 */
}

.property-status.suspended { /* suspendue */
  background: #f97316; /* Orange-500 */
}

.property-info {
  flex: 1;
}

.property-title {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 4px 0;
}

.property-location {
  font-size: 12px;
  color: #64748b;
  margin: 0 0 8px 0;
}

.property-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.property-price {
  font-size: 14px;
  font-weight: 600;
  color: #0891D7;
}

.property-date {
  font-size: 11px;
  color: #94a3b8;
}

/* Activity styles */
.activity-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.activity-icon.view {
  background: rgba(8, 145, 215, 0.1);
  color: #0891D7;
}

.activity-icon.message {
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
}

.activity-icon.favorite {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
}

.activity-icon.update {
  background: rgba(245, 158, 11, 0.1);
  color: #f59e0b;
}

.activity-content {
  flex: 1;
}

.activity-text {
  font-size: 13px;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.4;
}

.activity-time {
  font-size: 11px;
  color: #94a3b8;
}

/* Message styles */
.message-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.message-content {
  flex: 1;
}

.message-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 4px;
}

.message-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0;
}

.message-time {
  font-size: 11px;
  color: #94a3b8;
}

.message-preview {
  font-size: 13px;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Responsive */
@media (max-width: 1199px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
  
  .dashboard-section {
    padding: 20px;
  }
  
  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}



/** CSS Liste des annonces**/
.annonces-page {
  padding: 0;
}

/* En-tête de page */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.header-content {
  flex: 1;
}

.page-title {
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

.header-actions {
  flex-shrink: 0;
}

/* Filtres */
.filters-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}

.search-box {
  position: relative;
}

.search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  z-index: 2;
}

.search-input input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input input:focus {
  outline: none;
  border-color: #0891D7;
  box-shadow: 0 0 0 3px rgba(8, 145, 215, 0.1);
}

.filter-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-select {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  min-width: 150px;
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  color: #1e293b;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.annonces-count {
  color: #64748b;
  font-weight: 400;
  font-size: 16px;
}

.view-options {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  padding: 4px;
  border-radius: 8px;
}

.view-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-option.active {
  background: white;
  color: #0891D7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Grille des annonces */
.annonces-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.annonce-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.annonce-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-2px);
}

.annonce-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.annonce-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.annonce-card:hover .annonce-image img {
  transform: scale(1.05);
}

.annonce-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.annonce-status,
.annonce-type {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
    color: white;
}

.annonce-status.active {
  background: #10b981;
  color: white;
} 
.annonce-status.draft {
  background: #6b7280;
}

.annonce-status.pending {
  background: #f59e0b;
  color: white;
}

.annonce-status.sold {
  background: #6366f1;
  color: white;
}

.annonce-status.rented {
  background: #8b5cf6;
}

.annonce-status.suspended {
  background: #f97316;
}
.annonce-status.rejected {
  background: #ef4444;
}


.annonce-status.expired {
  background: #ef4444;
  color: white;
}

.annonce-status.inactive {
  background: #64748b;
  color: white;
}

.annonce-type {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
}

.annonce-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.action-btn:hover {
  background: white;
  color: #0891D7;
}

.action-btn.favorite:hover,
.action-btn.favorite.active {
  background: #ef4444;
  color: white;
}

.action-btn.favorite.active {
  color: #ef4444;
}

.action-btn.favorite.active:hover {
  background: #ef4444;
  color: white;
}

.more-actions {
  position: relative;
}

.more-menu {
  position: absolute;
  top: 100%;
  right: 0;
  background: white;
  border-radius: 8px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  padding: 8px;
  min-width: 200px;
  z-index: 10;
  margin-top: 4px;
}

.menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: none;
  background: none;
  color: #64748b;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.menu-item:hover {
  background: #f8fafc;
  color: #0891D7;
}

.menu-item.delete:hover {
  background: #fef2f2;
  color: #ef4444;
}

.annonce-content {
  padding: 16px;
}

.annonce-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.annonce-adresse {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.annonce-caracteristiques {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.caracteristique {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 13px;
}

.caracteristique svg {
  font-size: 14px;
}

.annonce-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.annonce-prix {
  font-size: 18px;
  font-weight: 700;
  color: #0891D7;
}

.prix-period {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.annonce-date {
  font-size: 12px;
  color: #94a3b8;
}

/* Vue Liste */
.annonces-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.list-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.3s ease;
}

.list-item:hover {
  background: #f8fafc;
}

.list-cell {
  display: flex;
  align-items: center;
}

.annonce-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.annonce-image-small {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.annonce-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.annonce-details {
  min-width: 0;
}

.annonce-type-tag {
  background: #f1f5f9;
  color: #374151;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.active {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.pending {
  background: #fef3c7;
  color: #92400e;
}

.status-badge.sold {
  background: #e0e7ff;
  color: #3730a3;
}

.status-badge.expired {
  background: #fee2e2;
  color: #991b1b;
}

.status-badge.inactive {
  background: #f1f5f9;
  color: #374151;
}

.list-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Pagination */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
}

.pagination-info {
  color: #64748b;
  font-size: 14px;
}

.pagination {
  display: flex;
  gap: 4px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination-btn:hover:not(.disabled) {
  border-color: #0891D7;
  color: #0891D7;
}

.pagination-btn.active {
  background: #0891D7;
  border-color: #0891D7;
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

.page-size-selector select {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: white;
}

/* Responsive */
@media (max-width: 1024px) {
  .annonces-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .filter-group {
    flex-wrap: wrap;
  }
  
  .annonces-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination-section {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .annonces-list {
    overflow-x: auto;
  }
  
  .list-header,
  .list-item {
    grid-template-columns: 200px 100px 100px 100px 100px auto;
    min-width: 700px;
  }
}

@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .view-options {
    align-self: flex-start;
  }
  
  .more-menu {
    right: -100px;
    min-width: 180px;
  }
}

/**CSS List favorie**/
.favoris-page {
  padding: 0;
}

/* En-tête de page */
.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
}

.header-content {
  flex: 1;
}

.page-title {
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

.header-actions {
  flex-shrink: 0;
}

/* Filtres */
.filters-section {
  background: white;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.filters-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  margin-bottom: 20px;
}

.search-box {
  position: relative;
}

.search-input {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  z-index: 2;
}

.search-input input {
  width: 100%;
  padding: 12px 12px 12px 40px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
}

.search-input input:focus {
  outline: none;
  border-color: #0891D7;
  box-shadow: 0 0 0 3px rgba(8, 145, 215, 0.1);
}

.filter-group {
  display: flex;
  gap: 12px;
  align-items: center;
}

.filter-select {
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: white;
  cursor: pointer;
  min-width: 150px;
}

/* Actions groupées */
.bulk-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 20px;
  border-top: 1px solid #e2e8f0;
}

.bulk-actions-left,
.bulk-actions-right {
  display: flex;
  gap: 12px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  border-color: #0891D7;
  color: #0891D7;
}

.action-btn.danger {
  border-color: #fecaca;
  color: #dc2626;
}

.action-btn.danger:hover {
  border-color: #dc2626;
  background: #dc2626;
  color: white;
}

/* Section header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.section-title {
  color: #1e293b;
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}

.favoris-count {
  color: #64748b;
  font-weight: 400;
  font-size: 16px;
}

.view-options {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  padding: 4px;
  border-radius: 8px;
}

.view-option {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.view-option.active {
  background: white;
  color: #0891D7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Grille des favoris */
.favoris-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.favori-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  position: relative;
}

.favori-card.featured {
  border: 2px solid #f59e0b;
}

.featured-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f59e0b;
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 4px;
}

.favori-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  transform: translateY(-4px);
}

.favori-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.favori-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.favori-card:hover .favori-image img {
  transform: scale(1.05);
}

.favori-badges {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.favori-status,
.favori-type {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.favori-status.available {
  background: #10b981;
  color: white;
}

.favori-status.sold {
  background: #6366f1;
  color: white;
}

.favori-status.rented {
  background: #8b5cf6;
  color: white;
}

.favori-type {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
}

.favori-actions {
  position: absolute;
  top: 12px;
  right: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 2;
}

.action-btn {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.action-btn:hover {
  background: white;
  color: #0891D7;
}

.action-btn.favorite:hover,
.action-btn.favorite.active {
  background: #ec4899;
  color: white;
}

.action-btn.compare:hover {
  background: #f59e0b;
  color: white;
}

.action-btn.share:hover {
  background: #0891D7;
  color: white;
}

.action-btn.contact:hover {
  background: #10b981;
  color: white;
}

.favori-content {
  padding: 16px;
}

.favori-title {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 8px 0;
  line-height: 1.4;
}

.favori-adresse {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #64748b;
  font-size: 14px;
  margin: 0 0 12px 0;
}

.favori-caracteristiques {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid #f1f5f9;
}

.caracteristique {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #64748b;
  font-size: 13px;
}

.caracteristique svg {
  font-size: 14px;
}

.favori-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.favori-prix {
  font-size: 18px;
  font-weight: 700;
  color: #0891D7;
}

.prix-period {
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
}

.favori-ajout {
  font-size: 12px;
  color: #94a3b8;
}

.favori-contact {
  display: flex;
  gap: 8px;
}

.contact-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  background: white;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.contact-btn.primary {
  background: #0891D7;
  border-color: #0891D7;
  color: white;
}

.contact-btn.primary:hover:not(.disabled) {
  background: #0ea5e9;
  border-color: #0ea5e9;
}

.contact-btn.primary.urgent {
  background: #ef4444;
  border-color: #ef4444;
  animation: pulse 2s infinite;
}

.contact-btn.secondary:hover:not(.disabled) {
  border-color: #0891D7;
  color: #0891D7;
}

.contact-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(239, 68, 68, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(239, 68, 68, 0);
  }
}

/* Vue Liste */
.favoris-list {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.list-header {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  padding: 16px 20px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 600;
  color: #374151;
  font-size: 14px;
}

.list-item {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr auto;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  transition: background 0.3s ease;
}

.list-item:hover {
  background: #f8fafc;
}

.list-cell {
  display: flex;
  align-items: center;
}

.favori-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.favori-image-small {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
  position: relative;
}

.favori-image-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-indicator {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #f59e0b;
  color: white;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
}

.favori-details {
  min-width: 0;
}

.favori-type-tag {
  background: #f1f5f9;
  color: #374151;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 500;
}

.status-badge {
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.status-badge.available {
  background: #d1fae5;
  color: #065f46;
}

.status-badge.sold {
  background: #e0e7ff;
  color: #3730a3;
}

.status-badge.rented {
  background: #f3e8ff;
  color: #6b21a8;
}

.list-actions {
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Pagination */
.pagination-section {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 32px 0;
  padding: 20px 0;
  border-top: 1px solid #e2e8f0;
}

.pagination-info {
  color: #64748b;
  font-size: 14px;
}

.pagination {
  display: flex;
  gap: 4px;
}

.pagination-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: white;
  color: #64748b;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
}

.pagination-btn:hover:not(.disabled) {
  border-color: #0891D7;
  color: #0891D7;
}

.pagination-btn.active {
  background: #0891D7;
  border-color: #0891D7;
  color: white;
}

.pagination-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.page-size-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

.page-size-selector select {
  padding: 6px 8px;
  border: 1px solid #e2e8f0;
  border-radius: 4px;
  background: white;
}

/* Suggestions */
.suggestions-section {
  background: #f8fafc;
  border-radius: 12px;
  padding: 24px;
  margin-top: 40px;
}

.suggestions-title {
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 16px;
}

.suggestions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.suggestion-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.suggestion-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.suggestion-image {
  position: relative;
  height: 120px;
}

.suggestion-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.suggestion-image .action-btn {
  position: absolute;
  top: 8px;
  right: 8px;
}

.suggestion-content {
  padding: 12px;
}

.suggestion-content h5 {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin: 0 0 6px 0;
  line-height: 1.4;
}

.suggestion-prix {
  font-size: 14px;
  font-weight: 700;
  color: #0891D7;
  margin: 0 0 4px 0;
}

.suggestion-localisation {
  font-size: 12px;
  color: #64748b;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Responsive */
@media (max-width: 1024px) {
  .favoris-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
}

@media (max-width: 768px) {
  .page-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .filters-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .filter-group {
    flex-wrap: wrap;
  }
  
  .bulk-actions {
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
  }
  
  .bulk-actions-left,
  .bulk-actions-right {
    justify-content: center;
  }
  
  .favoris-grid {
    grid-template-columns: 1fr;
  }
  
  .pagination-section {
    flex-direction: column;
    gap: 16px;
    text-align: center;
  }
  
  .favori-contact {
    flex-direction: column;
  }
  
  .favoris-list {
    overflow-x: auto;
  }
  
  .list-header,
  .list-item {
    grid-template-columns: 200px 100px 100px 100px 100px auto;
    min-width: 700px;
  }
}

@media (max-width: 640px) {
  .section-header {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  
  .view-options {
    align-self: flex-start;
  }
  
  .suggestions-grid {
    grid-template-columns: 1fr;
  }
}

/** CSS Message interface**/

.messagerie-page {
  padding: 0;
}

/* En-tête de page */
.page-header {
  text-align: center;
}

.header-content {
 /*  margin-bottom: 32px; */
 /* border:1px solid red */
}

.page-title {
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

/* Layout principal */
.messagerie-container {
  max-width: 1400px;
  margin: 0 auto;
}

.messagerie-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  height: 70vh;
  background: white;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

/* Sidebar des conversations */
.conversations-sidebar {
  border-right: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

/* En-tête sidebar */
.sidebar-header {
  padding: 20px;
  border-bottom: 1px solid #e2e8f0;
  space-y: 12px;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: #64748b;
  font-size: 14px;
}

.search-input {
  width: 100%;
  /* padding: 12px 12px 12px 36px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  background: #f8fafc; */
}

.search-input:focus {
  outline: none;
  border-color: #0891D7;
  background: white;
}

.clear-search {
  position: absolute;
  right: 8px;
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.new-message-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px;
  background: #0891D7;
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.3s ease;
}

.new-message-btn:hover {
  background: #0679b9;
}

/* Filtres */
.conversation-filters {
  padding: 16px 20px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  gap: 4px;
}

.filter-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  background: #f8fafc;
  color: #64748b;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.filter-btn:hover {
  background: #e2e8f0;
  color: #374151;
}

.filter-btn.active {
  background: #0891D7;
  color: white;
}

.filter-count {
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  min-width: 18px;
  text-align: center;
}

/* Liste des conversations */
.conversations-list {
  flex: 1;
  overflow-y: auto;
}

.conversation-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 20px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
  transition: background 0.3s ease;
}

.conversation-item:hover {
  background: #f8fafc;
}

.conversation-item.active {
  background: rgba(8, 145, 215, 0.05);
  border-right: 3px solid #0891D7;
}

.conversation-item.unread {
  background: rgba(8, 145, 215, 0.02);
}

.conversation-avatar {
  position: relative;
  flex-shrink: 0;
}

.avatar-image {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 18px;
}

.online-indicator {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 12px;
  height: 12px;
  background: #10b981;
  border: 2px solid white;
  border-radius: 50%;
}

.conversation-content {
  flex: 1;
  min-width: 0;
}

.conversation-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 4px;
}

.conversation-name {
  color: #1e293b;
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.conversation-time {
  color: #64748b;
  font-size: 12px;
  flex-shrink: 0;
  margin-left: 8px;
}

.conversation-preview {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.preview-text {
  color: #64748b;
  font-size: 13px;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.unread-badge {
  background: #0891D7;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  text-align: center;
  flex-shrink: 0;
}

.conversation-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.property-reference {
  color: #0891D7;
  font-size: 11px;
  font-weight: 500;
  background: rgba(8, 145, 215, 0.1);
  padding: 2px 6px;
  border-radius: 4px;
}

.important-icon {
  color: #f59e0b;
  font-size: 12px;
}

.empty-conversations {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  color: #64748b;
  text-align: center;
}

.empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
  color: #cbd5e1;
}

/* Conversation principale */
.conversation-main {
  display: flex;
  flex-direction: column;
}

/* En-tête conversation */
.conversation-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid #e2e8f0;
  background: white;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.conversation-info h3 {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 4px 0;
}

.conversation-status {
  color: #64748b;
  font-size: 13px;
  margin: 0;
}

.online {
  color: #10b981;
}

.offline {
  color: #64748b;
}

.property-ref {
  color: #0891D7;
}

.header-actions {
  display: flex;
  gap: 8px;
}

.action-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: #f8fafc;
  color: #64748b;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.action-btn:hover {
  background: #e2e8f0;
  color: #374151;
}

/* Zone des messages */
.messages-container {
  flex: 1;
  background: #f8fafc;
  overflow: hidden;
}

.messages-scroll-area {
  height: 100%;
  overflow-y: auto;
  padding: 20px;
  space-y: 16px;
}

.date-separator {
  text-align: center;
  margin: 20px 0;
}

.date-separator span {
  background: white;
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
  padding: 6px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.message {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  max-width: 70%;
  margin-bottom: 10px;
}

.message.sent {
  margin-left: auto;
  flex-direction: row-reverse;
}

.message.received {
  margin-right: auto;
}

.message-content {
  background: white;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  position: relative;
}

.message.sent .message-content {
  background: #0891D7;
  color: white;
  border-color: #0891D7;
}

.message-text {
  margin: 0 0 4px 0;
  font-size: 14px;
  line-height: 1.4;
}

.message-time {
  font-size: 11px;
  color: #94a3b8;
}

.message.sent .message-time {
  color: rgba(255, 255, 255, 0.8);
}

.message-status {
  margin-bottom: 4px;
}

.status-unread {
  color: #94a3b8;
  font-size: 12px;
}

.status-read {
  color: #0891D7;
  font-size: 12px;
}

/* Zone de saisie */
.message-input-area {
  padding: 20px 24px;
  border-top: 1px solid #e2e8f0;
  background: white;
}

.input-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.message-input-wrapper {
  display: flex;
  align-items: flex-end;
  gap: 12px;
}

.message-input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  font-size: 14px;
  resize: none;
  max-height: 120px;
  font-family: inherit;
}

.message-input:focus {
  outline: none;
  border-color: #0891D7;
}

.send-btn {
  width: 40px;
  height: 40px;
  background: #0891D7;
  color: white;
  border: none;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
  flex-shrink: 0;
}

.send-btn:hover:not(:disabled) {
  background: #0679b9;
}

.send-btn:disabled {
  background: #cbd5e1;
  cursor: not-allowed;
}

/* État vide */
.empty-conversation {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
}

.empty-state {
  text-align: center;
  color: #64748b;
}

.empty-state h3 {
  color: #1e293b;
  margin: 16px 0 8px 0;
}

.empty-state p {
  margin: 0 0 24px 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.modal-content {
  background: white;
  border-radius: 12px;
  width: 100%;
  max-width: 500px;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
  color: #1e293b;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.close-btn {
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
  font-size: 18px;
}

.modal-body {
  padding: 24px;
  space-y: 20px;
}

.modal-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  padding: 24px;
  border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 1024px) {
  .messagerie-layout {
    grid-template-columns: 350px 1fr;
  }
}

@media (max-width: 768px) {
  .messagerie-layout {
    grid-template-columns: 1fr;
    height: 80vh;
  }
  
  .conversations-sidebar {
    display: none;
  }
  
  .message {
    max-width: 85%;
  }
  
  .modal-content {
    margin: 20px;
  }
}

@media (max-width: 640px) {
  .conversation-header-main {
    padding: 16px;
  }
  
  .messages-scroll-area {
    padding: 16px;
  }
  
  .message-input-area {
    padding: 16px;
  }
  
  .modal-body {
    padding: 20px;
  }
  
  .modal-actions {
    padding: 20px;
    flex-direction: column;
  }
  
  .modal-actions .tf-btn {
    width: 100%;
  }
}

/** CSS PROFILE utilisateur**/

.profile-page {
  padding: 0;
}

/* En-tête de page */
.page-header {
  text-align: center;
}

.header-content {
  /* margin-bottom: 32px; */
  /* background: #0ea5e9; */
}

.page-title {
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

/* Layout principal */
.profile-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* Section en-tête du profil */
.profile-header-section {
  margin-bottom: 32px;
}

/* Carte profil */
.profile-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 24px;
}

.user-summary {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 24px;
}

.avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.avatar-wrapper {
  position: relative;
  display: inline-block;
}

.avatar-image {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
}

.avatar-placeholder {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 24px;
}

.avatar-edit-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 28px;
  height: 28px;
  background: #0891D7;
  border: 3px solid white;
  border-radius: 50%;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 12px;
}

.avatar-edit-btn:hover {
  background: #0679b9;
  transform: scale(1.1);
}

.avatar-input {
  display: none;
}

.user-info {
  space-y: 8px;
}

.user-name {
  color: #1e293b;
  font-size: 24px;
  font-weight: 700;
  margin: 0;
}

.user-email {
  color: #64748b;
  font-size: 16px;
  margin: 0 0 12px 0;
}

.agency-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0891D7;
  color: white;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 8px;
}

.user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #f1f5f9;
  color: #64748b;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 500;
}

/* Statistiques */
.profile-stats {
  border-top: 1px solid #e2e8f0;
  padding-top: 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 20px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
}

.stat-icon.properties {
  background: #0891D7;
}

.stat-icon.favorites {
  background: #ec4899;
}

.stat-icon.views {
  background: #10b981;
}

.stat-number {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
}

.stat-label {
  font-size: 14px;
  color: #64748b;
}

/* Navigation par onglets */
.profile-nav-tabs {
  display: flex;
  background: white;
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  gap: 4px;
}

.nav-tab {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border: none;
  background: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
}

.nav-tab:hover {
  background: #f8fafc;
  color: #0891D7;
}

.nav-tab.active {
  background: #0891D7;
  color: white;
}

.tab-icon {
  width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Contenu principal */
.profile-content {
  space-y: 24px;
}

.content-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.card-header {
  margin-bottom: 24px;
}

.card-title {
  color: #1e293b;
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
}

.card-subtitle {
  color: #64748b;
  font-size: 14px;
  margin: 0;
}

/* Sélection du type d'utilisateur */
.user-type-section {
  margin-bottom: 24px;
}

.user-type-selection {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
}

.user-type-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.user-type-card:hover {
  border-color: #0891D7;
  transform: translateY(-2px);
}

.user-type-card.selected {
  border-color: #0891D7;
  background: rgba(8, 145, 215, 0.05);
}

.type-icon {
  width: 48px;
  height: 48px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #0891D7;
  font-size: 24px;
}

.user-type-card.selected .type-icon {
  background: #0891D7;
  color: white;
}

.type-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.type-description {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.type-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #0891D7;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.user-type-card.selected .type-check {
  opacity: 1;
  transform: scale(1);
}

/* Formulaires */
.form-section {
  space-y: 24px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0891D7;
  box-shadow: 0 0 0 3px rgba(8, 145, 215, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.character-count {
  text-align: right;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Groupe téléphone */
.phone-input-group {
  display: flex;
  gap: 8px;
}

.phone-code {
  min-width: 120px;
}

/* Groupes mot de passe */
.password-input-group {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #64748b;
  cursor: pointer;
  padding: 4px;
}

.password-strength {
  margin-top: 8px;
}

.strength-bar {
  height: 4px;
  border-radius: 2px;
  margin-bottom: 4px;
  transition: all 0.3s ease;
}

.strength-bar.very-weak {
  width: 20%;
  background: #ef4444;
}

.strength-bar.weak {
  width: 40%;
  background: #f59e0b;
}

.strength-bar.medium {
  width: 60%;
  background: #eab308;
}

.strength-bar.strong {
  width: 80%;
  background: #84cc16;
}

.strength-bar.very-strong {
  width: 100%;
  background: #10b981;
}

.strength-text {
  font-size: 12px;
  color: #64748b;
}

.error-message {
  color: #ef4444;
  font-size: 12px;
  margin-top: 4px;
}

/* Sections */
.security-sections {
  space-y: 32px;
}

.security-section {
  space-y: 20px;
}

.section-title {
  color: #1e293b;
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

/* Actions du formulaire */
.form-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
  .profile-card {
    padding: 20px;
  }
  
  .user-summary {
    flex-direction: column;
    text-align: center;
    gap: 16px;
  }
  
  .avatar-section {
    flex-direction: column;
    gap: 16px;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  .profile-nav-tabs {
    flex-direction: column;
  }
  
  .content-card {
    padding: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .user-type-selection {
    grid-template-columns: 1fr;
  }
  
  .phone-input-group {
    flex-direction: column;
  }
  
  .phone-code {
    min-width: auto;
  }
  
  .form-actions {
    flex-direction: column;
  }
  
  .form-actions .tf-btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .profile-card {
    padding: 16px;
  }
  
  .user-name {
    font-size: 20px;
  }
  
  .user-email {
    font-size: 14px;
  }
  
  .nav-tab {
    padding: 10px 12px;
    font-size: 13px;
  }
}


/** Page publication d'annonce **/

.publier-annonce-page {
  padding: 0;
}

/* En-tête de page */
.page-header {
  text-align: center;
}

.header-content {
  /* margin-bottom: 32px; */
  /* background: #3730a3; */
}

.page-title {
  color: #1e293b;
  font-size: 28px;
  font-weight: 700;
  margin-bottom: 8px;
}

.page-subtitle {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

/* Indicateur de progression */
.progress-indicator {
  max-width: 600px;
  margin: 0 auto;
}

.progress-steps {
  display: flex;
  justify-content: space-between;
  position: relative;
}

.progress-steps::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  height: 2px;
  background: #e2e8f0;
  z-index: 1;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 2;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #0891D7;
  color: white;
}

.step.completed .step-number {
  background: #10b981;
  color: white;
}

.step-check {
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-label {
  font-size: 14px;
  font-weight: 500;
  color: #64748b;
  text-align: center;
}

.step.active .step-label {
  color: #0891D7;
  font-weight: 600;
}

.step.completed .step-label {
  color: #10b981;
}

/* Conteneur du formulaire */
.form-container {
  max-width: 800px;
  margin: 0 auto;
}

.form-card {
  background: white;
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* Contenu des étapes */
.step-content {
  animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-header {
  text-align: center;
  margin-bottom: 32px;
}

.step-title {
  color: #1e293b;
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 8px;
}

.step-description {
  color: #64748b;
  font-size: 16px;
  margin: 0;
}

/* Sélection du type */
.type-selection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 16px;
  margin-bottom: 32px;
}

.type-card {
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  padding: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.type-card:hover {
  border-color: #0891D7;
  transform: translateY(-2px);
}

.type-card.selected {
  border-color: #0891D7;
  background: rgba(8, 145, 215, 0.05);
}

.type-icon {
  width: 48px;
  height: 48px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: #0891D7;
  font-size: 24px;
}

.type-card.selected .type-icon {
  background: #0891D7;
  color: white;
}

.type-name {
  font-size: 16px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.type-description {
  font-size: 14px;
  color: #64748b;
  margin: 0;
}

.type-check {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 24px;
  height: 24px;
  background: #0891D7;
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0);
  transition: all 0.3s ease;
}

.type-card.selected .type-check {
  opacity: 1;
  transform: scale(1);
}

/* Grille du formulaire */
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.form-group.full-width {
  grid-column: 1 / -1;
}

.form-label {
  display: block;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
  font-size: 14px;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 14px;
  transition: border-color 0.3s ease;
  background: white;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: #0891D7;
  box-shadow: 0 0 0 3px rgba(8, 145, 215, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

/* Sélection de statut */
.status-selection {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.status-card {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  text-align: center;
}

.status-card:hover {
  border-color: #0891D7;
}

.status-card.selected {
  border-color: #0891D7;
  background: rgba(8, 145, 215, 0.05);
}

.status-icon {
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
  color: #0891D7;
  font-size: 20px;
}

.status-card.selected .status-icon {
  background: #0891D7;
  color: white;
}

.status-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.status-description {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* Groupes d'input */
.surface-input-group,
.price-input-group {
  display: flex;
  gap: 8px;
}

.unit-select {
  min-width: 100px;
}

.price-currency {
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.price-period {
  padding: 12px 16px;
  color: #64748b;
  font-size: 14px;
  white-space: nowrap;
}

/* Sélecteur de nombre */
.number-selector {
  display: flex;
  align-items: center;
  gap: 12px;
}

.number-btn {
  width: 40px;
  height: 40px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.number-btn:hover:not(:disabled) {
  border-color: #0891D7;
  color: #0891D7;
}

.number-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.number-display {
  font-size: 18px;
  font-weight: 600;
  color: #1e293b;
  min-width: 40px;
  text-align: center;
}

/* Options légales */
.legal-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.legal-option {
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  padding: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.legal-option:hover {
  border-color: #0891D7;
}

.legal-option.selected {
  border-color: #0891D7;
  background: rgba(8, 145, 215, 0.05);
}

.legal-icon {
  width: 40px;
  height: 40px;
  background: #f8fafc;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
  color: #0891D7;
  font-size: 20px;
}

.legal-option.selected .legal-icon {
  background: #0891D7;
  color: white;
}

.legal-name {
  font-size: 14px;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 4px;
}

.legal-description {
  font-size: 12px;
  color: #64748b;
  margin: 0;
}

/* Compteur de caractères */
.character-count {
  text-align: right;
  font-size: 12px;
  color: #64748b;
  margin-top: 4px;
}

/* Section images */
.images-section {
  space-y: 24px;
}

.upload-main {
  margin-bottom: 24px;
}

.upload-area {
  border: 2px dashed #e2e8f0;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: #0891D7;
}

.upload-area.drag-over {
  border-color: #0891D7;
  background: rgba(8, 145, 215, 0.05);
}

.upload-area.has-images {
  padding: 0;
  border-style: solid;
}

.file-input {
  display: none;
}

.upload-placeholder .upload-icon {
  width: 64px;
  height: 64px;
  background: #f8fafc;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  color: #64748b;
  font-size: 32px;
}

.upload-placeholder h4 {
  color: #1e293b;
  margin-bottom: 8px;
}

.upload-placeholder p {
  color: #64748b;
  margin-bottom: 16px;
}

.upload-requirements {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12px;
  color: #94a3b8;
}

.upload-preview {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
}

.main-preview {
  position: relative;
  width: 200px;
  height: 150px;
  border-radius: 8px;
  overflow: hidden;
}

.main-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.main-preview:hover .preview-overlay {
  opacity: 1;
}

.preview-btn {
  background: white;
  border: none;
  padding: 8px 12px;
  border-radius: 6px;
  color: #1e293b;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.preview-count {
  color: #64748b;
  font-size: 14px;
}

/* Galerie d'images */
.gallery-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.gallery-header h4 {
  color: #1e293b;
  margin: 0;
}

.add-more-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid #e2e8f0;
  background: white;
  border-radius: 6px;
  color: #64748b;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.add-more-btn:hover {
  border-color: #0891D7;
  color: #0891D7;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: all 0.3s ease;
}

.gallery-item.main {
  border-color: #f59e0b;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-actions {
  position: absolute;
  top: 4px;
  right: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-actions {
  opacity: 1;
}

.gallery-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.9);
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 12px;
  transition: all 0.3s ease;
}

.gallery-btn.set-main:hover {
  background: #f59e0b;
  color: white;
}

.gallery-btn.delete:hover {
  background: #ef4444;
  color: white;
}

.gallery-btn.move:hover {
  background: #0891D7;
  color: white;
}

.gallery-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.main-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: #f59e0b;
  color: white;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 10px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 2px;
}

/* Conseils photos */
.photo-tips {
  background: #f8fafc;
  border-radius: 8px;
  padding: 20px;
}

.photo-tips h4 {
  color: #1e293b;
  margin-bottom: 12px;
}

.tips-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
}

.tip-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #64748b;
  font-size: 14px;
}

.tip-item i {
  color: #0891D7;
}

/* Actions du formulaire */
.form-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #e2e8f0;
}

/* Responsive */
@media (max-width: 768px) {
  .form-card {
    padding: 20px;
  }
  
  .form-grid {
    grid-template-columns: 1fr;
  }
  
  .type-selection-grid {
    grid-template-columns: 1fr;
  }
  
  .status-selection {
    grid-template-columns: 1fr;
  }
  
  .legal-options {
    grid-template-columns: 1fr;
  }
  
  .upload-preview {
    flex-direction: column;
    text-align: center;
  }
  
  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  }
  
  .progress-steps {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }
  
  .progress-steps::before {
    display: none;
  }
  
  .step {
    flex-direction: row;
    gap: 12px;
  }
  
  .step-label {
    text-align: left;
  }
}

@media (max-width: 640px) {
  .surface-input-group,
  .price-input-group {
    flex-direction: column;
  }
  
  .unit-select {
    min-width: auto;
  }
  
  .form-actions {
    flex-direction: column;
    gap: 12px;
  }
  
  .form-actions .tf-btn {
    width: 100%;
  }
}