
/* public/assets/css/intervenant.css */
/* Complete extracted and organized CSS from inline styles in AnnoncePage component */
/* Global styles applied to all screen sizes (base styles) */
/* Then media queries ONLY for mobile (< 768px) and tablet (768px - 1023px) */
/* No desktop-specific media queries */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

body {
  font-family: 'Inter', sans-serif;
  overflow-x: hidden;
}

.rdt_TableWrapper {
  overflow: visible !important;
}

.rdt_Table {
  width: 100%;
  table-layout: fixed;
  background-color: #F9FAFB;
}

.rdt_TableHeadRow {
  background-color: #F9FAFB;
  border-bottom: 1px solid #E5E7EB;
  min-height: 48px;
}

.rdt_TableHeadRow .rdt_TableHead {
  padding-left: 12px;
  padding-right: 12px;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rdt_TableBody .rdt_TableRow {
  border-bottom: 1px solid #F3F4F6;
  min-height: 60px;
  transition: background-color 0.2s;
}

.rdt_TableBody .rdt_TableRow:not(:last-of-type) {
  border-bottom: 1px solid #F3F4F6;
}

.rdt_TableBody .rdt_TableRow:hover {
  background-color: #F9FAFB;
  cursor: pointer;
}

.rdt_TableBody .rdt_TableCell {
  padding-left: 12px;
  padding-right: 12px;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: 14px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rdt_Pagination {
  font-size: 14px;
  color: #6B7280;
  border: none;
  background-color: transparent;
  min-height: auto;
}

.pagination-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-top: 1px solid #E5E7EB;
  flex-wrap: nowrap;
  gap: 16px;
}

.page-container {
  width: 101%;
  padding: 16px;
  overflow-x: hidden;
}

.page-content {
  margin-right: 0;
  background-color: #fff;
  border-radius: 12px;
  margin-left: 127px;
  width: calc(100% - 115px);
  padding: 16px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  margin-top: 37px;
  overflow-x: hidden;
  max-width: 100%;
}

.header-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  row-gap: 12px;
  margin-bottom: 16px;
  overflow-x: hidden;
}

.page-title {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 600;
  color: #111827;
}

.add-button {
  font-size: 16px;
  padding: 12px 20px;
  height: 44px;
  background-color: #3B82F6;
  color: #fff;
  border: none;
  border-radius: 8px;
  width: auto;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: background-color 0.2s;
}

.add-button:hover {
  background-color: #2563EB;
}

.filters-container {
  background-color: #F9FAFB;
  padding: 20px;
  border-radius: 12px;
  margin-bottom: 20px;
  border: 1px solid #E5E7EB;
  overflow-x: hidden;
}

.filters-title {
  font-size: 15px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.filter-toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  cursor: pointer;
  padding: 8px 0;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 0.8fr 0.8fr auto;
  gap: 16px;
  align-items: end;
  overflow-x: hidden;
}

.filter-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #6B7280;
  margin-bottom: 6px;
}

.filter-input {
  height: 40px;
  font-size: 14px;
  padding: 8px 12px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  background-color: #fff;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
  color: #374151;
}

.filter-input:focus {
  border-color: #3B82F6;
}

.filter-select .react-select__control {
  min-height: 40px;
  font-size: 14px;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  box-shadow: none;
  transition: all 0.2s ease;
  background-color: #fff;
}

.filter-select .react-select__control--is-focused {
  border-color: #3B82F6;
}

.filter-select .react-select__control:hover {
  border-color: #3B82F6;
}

.filter-select .react-select__option {
  font-size: 14px;
  padding: 10px 14px;
  background-color: #fff;
  color: #374151;
  cursor: pointer;
}

.filter-select .react-select__option--is-focused {
  background-color: #EFF6FF;
}

.filter-select .react-select__option--is-selected {
  background-color: #3B82F6;
  color: white;
}

.filter-select .react-select__single-value {
  font-size: 14px;
  color: #374151;
}

.filter-select .react-select__placeholder {
  font-size: 14px;
  color: #9CA3AF;
}

.filter-select .react-select__menu {
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border: 1px solid #E5E7EB;
  margin-top: 4px;
}

.reset-button {
  background-color: #F3F4F6;
  color: #6B7280;
  border: 1px solid #D1D5DB;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  height: 40px;
  white-space: nowrap;
  width: auto;
  margin-top: auto;
}

.reset-button:hover {
  background-color: #E5E7EB;
}

.error-message {



  border-radius: 8px;
  margin-bottom: 20px;

  font-size: 14px;
  overflow-x: hidden;
}

.progress-component {
  text-align: center;
  padding: 20px 0;
  color: #6B7280;
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.loader {
  width: 20px;
  height: 20px;
  border: 2px solid #E5E7EB;
  border-top: 2px solid #3B82F6;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.no-data-component {
  text-align: center;
  padding: 16px 0;
  font-size: 16px;
  color: #6B7280;
}

.mobile-card {
  background-color: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.mobile-card-image-container {
  display: flex;
  align-items: start;
  gap: 12px;
  margin-bottom: 12px;
}

.mobile-card-image {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 8px;
  position: relative;
}

.mobile-card-image-placeholder {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  background-color: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 12px;
}

.image-count-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5);
  color: white;
  padding: 2px 6px;
  border-radius: 50%;
  font-size: 10px;
}

.mobile-card-content {
  flex: 1;
}

.mobile-card-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 4px;
}

.mobile-card-title {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin: 0;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-card-description {
  font-size: 13px;
  color: #6B7280;
  margin: 0;
  line-height: 1.4;
  cursor: pointer;
}

.mobile-card-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-label {
  font-size: 12px;
  color: #6B7280;
  font-weight: 500;
}

.detail-value {
  font-size: 13px;
  color: #374151;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.detail-price {
  font-size: 14px;
  color: #111827;
  font-weight: 600;
}

.mobile-card-date {
  color: #9CA3AF;
  font-size: 12px;
  margin-top: 8px;
  display: block;
}

.mobile-card-actions {
  display: flex;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid #F3F4F6;
}

.action-edit {
  flex: 1;
  background-color: #DBEAFE;
  border: none;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: #1E40AF;
}

.action-delete {
  background-color: #FEE2E2;
  border: none;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.status-badge {
  background-color: #D1FAE5;
  color: #065F46;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.status-inactive {
  background-color: #F3F4F6;
  color: #374151;
}

.sortable-header {
  cursor: pointer;
  display: flex;
  align-items: center;
  font-weight: 400;
  color: #6B7280;
  font-size: 13px;
  text-transform: uppercase;
}

.sort-icon {
  margin-left: 5px;
  color: #ccc;
}

.sort-asc {
  margin-left: 5px;
}

.sort-desc {
  margin-left: 5px;
}

.table-image {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
  position: relative;
}

.table-image-placeholder {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background-color: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6B7280;
  font-size: 10px;
}

.table-image-count {
  position: absolute;
  bottom: 0;
  right: 0;
  background-color: rgba(0,0,0,0.5);
  color: white;
  border-radius: 50%;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
}

.table-title {
  font-weight: 500;
  color: #111827;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.table-description,
.table-service,
.table-category,
.table-city {
  color: #6B7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.table-price {
  font-weight: 500;
  color: #111827;
}

.table-status {
  background-color: #D1FAE5;
  color: #065F46;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 500;
  display: inline-block;
  min-width: 60px;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.table-status-inactive {
  background-color: #F3F4F6;
  color: #374151;
}

.action-buttons {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.action-edit-btn {
  background-color: #DBEAFE;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.action-edit-btn:hover {
  background-color: #BFDBFE;
}

.action-delete-btn {
  background-color: #FEE2E2;
  padding: 6px;
  border-radius: 6px;
  display: inline-flex;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.action-delete-btn:hover {
  background-color: #FECACA;
}

.pagination-rows-selector {
  min-width: auto;
  width: 70px;
  font-size: 14px;
  border: 1px solid #D1D5DB;
  border-radius: 6px;
}

.pagination-info {
  font-size: 14px;
  color: #6B7280;
  white-space: nowrap;
}

.pagination-buttons {
  display: flex;
  gap: 4px;
}

.pagination-btn {
  border: 1px solid #D1D5DB;
  background-color: white;
  color: #6B7280;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 14px;
}

.pagination-btn-active {
  border: 1px solid #3B82F6;
  background-color: #3B82F6;
  color: white;
  padding: 4px 12px;
  border-radius: 6px;
  font-weight: 500;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.mobile-price-range {
  display: flex;
  gap: 8px;
}

.mobile-price-input {
  width: 50%;
}

.mobile-rows-selector {
  width: 100%;
}

.mobile-pagination {
  flex-wrap: wrap;
  padding: 12px;
  justify-content: space-between;
  width: 100%;
}

.mobile-pagination-info {
  width: 100%;
  justify-content: space-between;
}

.filters-mobile {
  grid-template-columns: 1fr;
  gap: 12px;
}

.filters-tablet {
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.add-button-mobile {
  width: 100%;
}

.tooltip-style {
  max-width: 500px;
  background: rgba(59, 130, 246, 0.95);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 9999;
  color: #ffffff;
  white-space: normal;
  word-break: break-word;
}

/* Modal Styles (from provided CSS, integrated) */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 9999; /* Augmentez de 1000 à 9999 */
  padding: 1rem;
}


/* .modal-container {
  background: white;
  border-radius: 24px 0 0 24px;
  width: 100%;
  max-width: 500px;
  height: 96vh;
  max-height: 100vh;
  z-index: 1001 ;
  overflow: hidden;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
} */
 .modal-container {
  background: white;
  border-radius: 24px 0 0 24px;
  width: 100%;
  max-width: 500px;
  height: 95vh;

  z-index: 10000; /* Augmentez de 1001 à 10000 */
  overflow: hidden;
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.modal-container.slide-in-right {
  transform: translateX(0);
}
/* Ajoutez cette classe à votre div */

.modal-header {
  padding: 1.5rem 2rem 1.5rem;
  border-bottom: 2px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  background: white;
  z-index: 10;
}

.modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
}

.close-btn {
  background: #f1f5f9;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #64748b;
}

.close-btn:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.wizard-steps {
  display: flex;
  padding: 1rem 2rem;
  background: #f8fafc;
  gap: 1rem;
  overflow-x: auto;
}

.step {
  flex: 1;
  min-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 60%;
  right: -40%;
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
}

.step.active:not(:last-child)::after {
  background: linear-gradient(90deg, #3b82f6 0%, #e2e8f0 100%);
}

.step.completed:not(:last-child)::after {
  background: #3b82f6;
}

.step-number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #94a3b8;
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.step.active .step-number {
  background: #3b82f6;
  color: white;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.4);
}

.step.completed .step-number {
  background: #22c55e;
  color: white;
}

.step-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #94a3b8;
  text-align: center;
}

.step.active .step-label {
  color: #3b82f6;
}

.step.completed .step-label {
  color: #0f172a;
}

.modal-body {
  flex: 1;
  overflow-y: auto;
  padding: 2rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-label {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.form-label .required {
  color: #ef4444;
  margin-left: 0.25rem;
}

.form-input,
.form-textarea,
.form-select {
  width: 100%;
  padding: 0.875rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.95rem;
  transition: all 0.3s ease;
  font-family: inherit;
  color: #000;
}

.form-select option {
  color: #000;
}

.form-input:focus,
.form-textarea:focus,
.form-select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
}

.form-textarea {
  resize: vertical;
  min-height: 120px;
}


.radio-group {
  display: flex;
  gap: 1rem;
  flex-direction: column;
}

.radio-option {
  position: relative;
}

.radio-option input {
  position: absolute;
  opacity: 0;
}

.radio-label {
  display: block;
  padding: 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  color: #64748b;
}

.radio-option input:checked + .radio-label {
  border-color: #3b82f6;
  background: #eff6ff;
  color: #3b82f6;
}

.checkbox-wrapper {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem;
  background: #f8fafc;
  border-radius: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
}

.checkbox-label {
  font-size: 0.95rem;
  color: #475569;
  cursor: pointer;
}

.modal-footer {
  padding: 1.5rem 2rem;
  border-top: 2px solid #f1f5f9;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.btn {
  color: #111827;
  padding: 0.875rem 1.5rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;

  align-items: center;
  gap: 0.5rem;
  border: none;
}

.btn-secondary {
  background: #f1f5f9;
  color: #475569;
}

.btn-secondary:hover {
  background: #e2e8f0;
}

.btn-primary {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  color: white;
}



.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.upload-zone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #f8fafc;
}

.upload-zone:hover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.upload-zone.dragover {
  border-color: #3b82f6;
  background: #eff6ff;
}

.upload-icon {
  width: 50px;
  height: 50px;
  margin: 0 auto 1rem;
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.upload-title {
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.5rem;
}

.upload-subtitle {
  color: #64748b;
  font-size: 0.75rem;
}

.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.preview-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 8px;
  overflow: hidden;
  background: #f1f5f9;
}

.preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.preview-remove {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  background: rgba(239, 68, 68, 0.9);
  color: white;
  border: none;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
}

.preview-remove:hover {
  background: #dc2626;
}

/* Tooltip Styles */
.react-tooltip {
  background: rgba(59, 130, 246, 0.95) !important;
  backdrop-filter: blur(12px);
  border-radius: 12px !important;
  padding: 12px 16px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.3), 0 10px 10px -5px rgba(0, 0, 0, 0.2) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  z-index: 9999 !important;
  color: #ffffff !important;
  white-space: normal !important;
  word-break: break-word !important;
  font-family: 'Inter', sans-serif;
  max-width: 500px !important;
}

.react-tooltip__arrow {
  fill: rgba(59, 130, 246, 0.95) !important;
}

.react-tooltip__content {
  margin: 0;
}

/* ========================================
   MEDIA QUERIES - MOBILE (< 768px)
======================================== */
@media (max-width: 767px) {
  .page-container {
    width: 100%;
    padding: 12px;
    
  }

  .page-content {
    margin-right: 0;
    border-radius: 8px;
    margin-left: 0;
    width: 100%;
    padding: 16px;
    margin-top: 23px;
  }

  .header-section {
    flex-wrap: wrap;
    row-gap: 12px;
  }

  .page-title {
    font-size: 20px;
  }

  .add-button {
    width: 100%;
  }

  .filters-container {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 16px;
  }

  .filters-title {
    font-size: 15px;
    margin-bottom: 16px;
    display: none; /* Hidden on mobile as toggle is used */
  }

  .filter-toggle {
    display: flex;
  }

  .filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .reset-button {
    width: 100%;
    margin-top: 0;
  }

  .mobile-price-range {
    display: flex;
    gap: 8px;
  }

  .mobile-price-input {
    width: 50%;
  }

  /* Hide table columns on mobile */
  .rdt_TableHeadRow {
    display: none !important;
  }

  .rdt_Table {
    overflow-x: hidden !important;
  }

  body {
    overflow-x: hidden !important;
  }

  /* Mobile card overrides if needed */
  .mobile-card {
    margin-bottom: 12px;
  }

  .mobile-card-title {
    font-size: 16px;
  }

  /* Pagination on mobile */
  .pagination-container {
    flex-wrap: wrap;
    padding: 12px;
    gap: 12px;
  }

  .mobile-rows-selector {
    width: 100%;
  }

  .mobile-pagination {
    width: 100%;
    justify-content: space-between;
  }

  .mobile-pagination-info {
    width: 100%;
    justify-content: space-between;
  }

  /* Tooltip on mobile */
  .react-tooltip {
    max-width: 280px !important;
    font-size: 12px !important;
    padding: 10px 14px !important;
  }

  /* Modal on mobile */
  .modal-overlay {
    padding: 0;
  }

  .modal-container {
    border-radius: 0;

    width: 100%;
  }

  .wizard-steps {
    padding: 1rem;
  }

  .step-label {
    font-size: 0.7rem;
  }

  .step-number {
    width: 32px !important;
    height: 32px !important;
    font-size: 14px !important;
  }

  .step-label {
    font-size: 12px !important;
  }

  /* Landscape mobile modal */
  @media (max-width: 767px) and (orientation: landscape) {
    .modal-container {
      max-height: 95vh !important;
    }

    .modal-body {
      max-height: 50vh !important;
    }

    .wizard-steps {
      padding: 12px 16px !important;
    }

    .step {
      flex-direction: row !important;
      gap: 6px !important;
    }

    .step-label {
      display: none !important;
    }
  }
}

/* ========================================
   MEDIA QUERIES - TABLET (768px - 1023px)
======================================== */
@media (min-width: 768px) and (max-width: 1187px) {
  body {
    overflow-x: hidden !important;
  }
  .respo-tablette {
    width: 100% !important;
  }

  .rdt_Table {
    overflow-x: auto !important;
  }

  .page-content {
    margin-left: 0; /* Adjust if sidebar changes */
    width: 100%;
  }

  .filters-title {
    display: flex;
  }

  .filter-toggle {
    display: none; /* No toggle needed on tablet */
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }

  .reset-button {
    width: auto;
    margin-top: auto;
  }

  /* Hide description column on tablet */
  [data-column-id="description"] {
    display: none !important;
  }

  /* Tooltip on tablet */
  .react-tooltip {
    max-width: 400px !important;
  }

  /* Modal on tablet */
  .modal-container {
            height: 89vh  !important;
    max-width: 700px !important;
  }

  /* Pagination on tablet */
  .pagination-container {
    flex-wrap: nowrap;
    padding: 16px 20px;
  }
}













.header-annonces {
  overflow-x: hidden;
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .header-annonces {
    padding-left: 12px;
    padding-right: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
  }
  
  .header-annonces h2 {
    flex: 0 0 auto;
    font-size: 16px !important;
    margin: 0 !important;
    white-space: nowrap;
  }
  
  .header-annonces button {
    flex: 0 0 auto;
    padding: 8px 12px !important;
    font-size: 13px !important;
    height: 36px !important;
    white-space: nowrap;
  }
  
  .header-annonces button svg {
    width: 16px;
    height: 16px;
  }
  
  .header-annonces button .me-2 {
    margin-right: 4px !important;
  }
}


























































/* Dans votre fichier CSS global */
/* body, html {
  overflow-x: hidden;
  max-width: 100vw;
}

* {
  box-sizing: border-box;
}

.modal-container,
.wizard-steps,
.header-annonces {

  overflow-x: hidden;
} */

@media (max-width: 768px) {
  body {
    overflow-x: hidden !important;
  }
  
  .wizard-steps {
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box;
  }
}.wizard-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  overflow-x: hidden;
  padding: 8px 8px;
}

@media (max-width: 768px) {
  .wizard-steps {
    max-width: 100%;
    overflow-x: hidden;
    padding: 8px 12px;
    gap: 8px;
  }
  
  .step {
    flex: 1;
    min-width: 0; /* Important pour éviter le débordement */
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  
  .step-number {
    flex-shrink: 0;
    font-size: 14px;
    width: 32px;
    height: 32px;
  }
  
  .step-label {
    font-size: 11px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center;
  }
}

@media (max-width: 480px) {
  .wizard-steps {
    padding: 8px 8px;
    gap: 4px;
  }
  
  .step-label {
    font-size: 10px;
  }
  
  .step-number {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }
}








































/* 1. Correction du modal sur iOS */
@supports (-webkit-touch-callout: none) {
  /* Styles spécifiques iOS */
  
  .modal-container {
    /* Ajuster la hauteur pour iOS */
    height: 100vh;
    height: -webkit-fill-available;
    max-height: 100vh;
    max-height: -webkit-fill-available;
    padding-bottom: env(safe-area-inset-bottom, 20px);
  }
  
  .modal-body {
    /* Assurer le scroll sur iOS */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }
  
  .modal-footer {
    /* Fixer le footer en bas sur iOS */
    position: sticky;
    bottom: 0;
    background: white;
    padding: 1.5rem 2rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
  }
  
  /* 2. Correction des inputs sur iOS */
  .form-input,
  .form-textarea,
  .form-select {
    -webkit-appearance: none;
    appearance: none;
    font-size: 16px; /* Empêche le zoom automatique sur iOS */
  }
  
  /* 3. Correction du wizard steps sur iOS */
  .wizard-steps {
    display: flex;
    padding: 1rem 2rem;
    background: #f8fafc;
    gap: 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  
  .wizard-steps::-webkit-scrollbar {
    display: none;
  }
  
  /* 4. Correction des boutons sur iOS */
  .btn {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }
}

/* ========================================
   MEDIA QUERIES MOBILE SPÉCIFIQUES iOS
======================================== */
@media (max-width: 768px) {
  @supports (-webkit-touch-callout: none) {
    /* Modal en plein écran sur iOS mobile */
    .modal-overlay {
      padding: 0;
    }
    
    .modal-container {
      border-radius: 0;
      width: 100%;
      height: 100vh;
      height: -webkit-fill-available;
      max-height: 100vh;
      max-height: -webkit-fill-available;
      display: flex;
      flex-direction: column;
    }
    
    /* Header fixe */
    .modal-header {
      flex-shrink: 0;
      position: sticky;
      top: 0;
      z-index: 10;
      padding-top: max(1.5rem, env(safe-area-inset-top));
    }
    
    /* Steps fixe */
    .wizard-steps {
      flex-shrink: 0;
      position: sticky;
      top: 0;
      z-index: 9;
      padding: 0.75rem 1rem;
      gap: 0.5rem;
    }
    
    .step {
      min-width: 80px;
    }
    
    .step-number {
      width: 32px !important;
      height: 32px !important;
      font-size: 14px !important;
    }
    
    .step-label {
      font-size: 11px !important;
      white-space: nowrap;
    }
    
    /* Body scrollable */
    .modal-body {
      flex: 1;
      overflow-y: auto;
      -webkit-overflow-scrolling: touch;
      padding: 1.5rem 1rem;
      padding-bottom: calc(100px + env(safe-area-inset-bottom, 0px));
      min-height: 0;
    }
    
    /* Footer fixe en bas */
    .modal-footer {
      flex-shrink: 0;
      position: sticky;
      bottom: 0;
      left: 0;
      right: 0;
      background: white;
      padding: 1rem;
      padding-bottom: calc(1rem + env(safe-area-inset-bottom, 20px));
      border-top: 2px solid #f1f5f9;
      box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1);
      display: flex;
      gap: 0.75rem;
      z-index: 11;
    }
    
    .modal-footer .btn {
      flex: 1;
      padding: 0.875rem 1rem;
      font-size: 15px;
      min-height: 44px; /* Taille minimale recommandée par Apple */
    }
    
    /* Supprimer le spacer sur mobile iOS */
    .modal-footer > div[style*="flex: 1"] {
      display: none !important;
    }
  }
}

/* ========================================
   CORRECTIONS POUR LANDSCAPE iOS
======================================== */
/* ========================================
   CORRECTIONS POUR LANDSCAPE iOS
======================================== */
@media (max-width: 768px) and (orientation: landscape) {
  @supports (-webkit-touch-callout: none) {
    .modal-container {
      max-height: 100vh !important;
      height: 100vh !important;
      display: flex !important;
      flex-direction: column !important;
    }
    
    .modal-body {
      flex: 1 1 auto !important;
      min-height: 0 !important;
      overflow-y: auto !important;
      -webkit-overflow-scrolling: touch !important;
    }
    
    .modal-footer {
      flex-shrink: 0 !important;
      margin-top: auto !important;
    }
    
    .wizard-steps {
      padding: 8px 16px !important;
      flex-shrink: 0 !important;
    }
    
    .step-label {
      font-size: 10px !important;
    }
  }
}
/* ========================================
   CORRECTIONS GÉNÉRALES POUR TOUS MOBILES
======================================== */
@media (max-width: 768px) {
  /* Assurer que le body ne scroll pas quand le modal est ouvert */
  body.modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100vh;
  }
  
  /* Empêcher le bounce effect sur iOS */
  .modal-body {
    overscroll-behavior: contain;
  }
  
  /* Ajuster les champs de formulaire */
  .form-group {
    margin-bottom: 1.25rem;
  }
  
  .form-input,
  .form-textarea,
  .form-select {
    font-size: 16px; /* Empêche le zoom automatique */
    padding: 0.75rem 1rem;
  }
  
  /* Boutons plus accessibles */
  .btn {
    min-height: 44px;
    padding: 0.75rem 1.25rem;
    font-size: 15px;
  }
  
  /* Améliorer l'espacement */
  .modal-header {
    padding: 1.25rem 1rem;
  }
  
  .modal-body {
    padding: 1.5rem 1rem;
  }
}

/* ========================================
   CORRECTION POUR LES PETITS ÉCRANS iOS
======================================== */
@media (max-width: 375px) {
  @supports (-webkit-touch-callout: none) {
    .wizard-steps {
      padding: 0.5rem 0.75rem;
      gap: 0.25rem;
    }
    
    .step {
      min-width: 70px;
    }
    
    .step-number {
      width: 28px !important;
      height: 28px !important;
      font-size: 13px !important;
    }
    
    .step-label {
      font-size: 10px !important;
    }
    
    .modal-footer {
      padding: 0.75rem;
      padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 20px));
      gap: 0.5rem;
    }
    
    .modal-footer .btn {
      font-size: 14px;
      padding: 0.75rem 0.75rem;
    }
  }
}













/* Correction spécifique pour iOS */
@supports (-webkit-touch-callout: none) {
  @media (max-width: 768px) {
    .modal-overlay {
      position: fixed;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      width: 100vw;
      height: 100vh;
      z-index: 9999;
      padding: 0;
    }
    
    .modal-container {
      border-radius: 0;
      width: 100%;
      max-width: 100%;
      height: 100vh;
      height: -webkit-fill-available;
      max-height: 100vh;
      max-height: -webkit-fill-available;
      z-index: 10000;
    }
     /* CORRECTION IMPORTANTE: Modal footer visible sur iPhone 12 */
    .modal-footer {
      position: fixed !important;
      bottom: 0 !important;
      left: 0 !important;
      right: 0 !important;
      background: white !important;
      padding: 1rem !important;
      padding-bottom: max(1rem, env(safe-area-inset-bottom, 20px)) !important;
      border-top: 2px solid #f1f5f9 !important;
      box-shadow: 0 -4px 6px -1px rgba(0, 0, 0, 0.1) !important;
      z-index: 10001 !important;
      width: 100% !important;
    }
    
    /* Augmenter le padding-bottom du modal-body pour compenser le footer fixe */
    .modal-body {
      padding-bottom: calc(120px + env(safe-area-inset-bottom, 20px)) !important;
    }
    /* Assurer que le body ne scroll pas */
    body.modal-open {
      position: fixed;
      width: 100%;
      height: 100%;
      overflow: hidden;
      -webkit-overflow-scrolling: auto;
    }
  }
}

/* Navbar doit avoir un z-index inférieur au modal */
nav, header, .navbar {
  z-index: 100 !important; /* Au lieu de 1000 ou plus */
}

/* Quand le modal est ouvert, forcer la navbar encore plus bas */
body.modal-open nav,
body.modal-open header,
body.modal-open .navbar {
  z-index: 1 !important;
}


