/*======================================================
  🎨 1) LAYOUT PRINCIPAL ET RECHERCHE
  
  Cette section gère l'apparence générale de la page :
  - Le conteneur principal centré
  - Le formulaire de recherche avec son input et bouton
  - Les styles de base pour une interface propre
======================================================*/
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0rem;
  }
  
  .hidden {
    display: none !important;
  }
  
  .search-container {
    max-width: 600px;
    margin: 2rem auto;
    text-align: center;
  }
  
  .search-input {
    width: 100%;
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    margin-bottom: 1rem;
    transition: all 0.3s ease;
  }
  
  .search-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
  }
  
  .search-button {
    background-color: #3b82f6;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
  }
  
  .search-button:hover {
    background-color: #2563eb;
    transform: translateY(-1px);
  }
  
  /* 🗑️ BOUTON DE SUPPRESSION
     Styles pour le bouton rouge de suppression de dossier
     Avec effet hover pour une meilleure UX */
  .btn {
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;        /* Animation fluide sur tous les changements */
    text-decoration: none;
    display: inline-block;
    font-size: 0.9rem;
  }
  
  .btn-danger {
    background-color: #dc2626;        /* Rouge Bootstrap */
    color: white;
  }
  
  .btn-danger:hover {
    background-color: #b91c1c;        /* Rouge plus foncé au survol */
    transform: translateY(-1px);      /* Petit effet de "soulèvement" */
  }
  
  .btn-container {
    padding: 1rem;
    text-align: center;
    border-top: 1px solid #e2e8f0;
  }
  
 
     /*======================================================
     3) Styles "Infos principales" / "Infos détaillées"
   ======================================================*/
   .info-section {
     display: grid;
     grid-template-columns: 1fr 1fr;
     gap: 1.5rem;
     margin-bottom: 1.5rem;
   }
   
   .info-card {
     background: white;
     border-radius: 12px;
     box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
     overflow: hidden;
     margin-bottom: 0; /* Retiré car maintenant dans la grille */
   }
  
  .info-card-header {
    background: #f8fafc;
    padding: 1rem;
    font-weight: 600;
    color: #1e293b;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .info-card-body {
    padding: 1.5rem;
  }
  
  .info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e2e8f0;
  }
  
  .info-row:last-child {
    border-bottom: none;
  }
  
  .info-label {
    color: #64748b;
    font-weight: 500;
  }
  
  .info-value {
    color: #1e293b;
    font-weight: 500;
    max-width: 60%;
    text-align: right;
    word-break: break-word;
  }
  
  .error-message {
    background-color: #fee2e2;
    color: #dc2626;
    padding: 1rem;
    border-radius: 8px;
    margin: 1rem 0;
    text-align: center;
  }
  
    /* ─── Liste verticale de suivi ─── */
  .tracking-steps        { list-style:none; margin:0; padding:0; }
  .tracking-steps li     { display:flex; gap:.75rem; padding:.75rem 1rem; border-left:4px solid #ddd; }
  .tracking-steps li+li  { margin-top:.5rem; }
  .tracking-steps li::before {
    content:"";
    width:12px; height:12px; border-radius:50%;
    border:2px solid #bbb; background:#fff;
    margin-top:.35rem; flex-shrink:0;
  }
  .tracking-steps li.completed  { border-color:#28a745; }
  .tracking-steps li.completed::before { background:#28a745; border-color:#28a745; }
  .tracking-steps li.current    { border-color:#007bff; }
  .tracking-steps li.current::before   { background:#007bff; border-color:#007bff; }
  .tracking-steps li.future     { display:none; }         /* caché */

/* Styles pour la timeline verticale améliorée */
.timeline-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-left: 4px solid #ddd;
  margin-bottom: 0.5rem;
  background: #f8f9fa;
  border-radius: 0 8px 8px 0;
  transition: all 0.3s ease;
}

.timeline-item:hover {
  background: #e9ecef;
}

.timeline-item.current {
  border-color: #007bff;
  background: #e3f2fd;
}

.timeline-item .status-container {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.timeline-item .status-label {
  font-weight: 600;
  color: #495057;
}

.timeline-item .status-date {
  color: #6c757d;
  font-size: 0.9rem;
}

.timeline-item.current .status-label {
  color: #007bff;
}

.timeline-item .status-description {
  margin-top: 0.5rem;
  padding: 0.5rem;
  background: #e3f2fd;
  border-radius: 4px;
  font-size: 0.85rem;
  color: #1976d2;
  border-left: 3px solid #007bff;
  display: none; /* Caché par défaut */
}

.timeline-item.current .status-description {
  display: block; /* Visible uniquement pour le statut actuel */
}

.timeline-item.no-data {
  border-color: #6c757d;
  background: #f8f9fa;
  color: #6c757d;
  font-style: italic;
}

/* Styles pour les étapes complétées dans la timeline */
.timeline-item.completed {
  border-color: #28a745;
}

.timeline-item.completed::before {
  background: #28a745 !important;
  border-color: #28a745 !important;
}

/* Protection contre l'inspection ciblée */
.tracking-protection {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.tracking-protection * {
  -webkit-user-select: none !important;
  -moz-user-select: none !important;
  -ms-user-select: none !important;
  user-select: none !important;
}

/* Permettre la sélection pour les champs de saisie dans le tracking */
.tracking-protection input,
.tracking-protection textarea {
  -webkit-user-select: text !important;
  -moz-user-select: text !important;
  -ms-user-select: text !important;
  user-select: text !important;
}

  