/* Thème CRM Tharel Lefebvre — sobre, basé sur l'identité du Groupe Lefebvre
   Automobile (rouge #E1001A sur blanc, bleu marine secondaire). */
:root {
  --tl-red: #e1001a;
  --tl-red-dark: #b80016;
  --tl-navy: #1f356f;
  --bs-link-color: var(--tl-navy);
  --bs-link-hover-color: var(--tl-red);
}

/* Barre de navigation claire avec liseré rouge de marque */
.tl-navbar {
  background: #fff;
  border-bottom: 3px solid var(--tl-red);
}
.navbar-brand img {
  height: 40px;
  width: auto;
}

/* Boutons primaires aux couleurs de la marque */
.btn-primary {
  --bs-btn-bg: var(--tl-red);
  --bs-btn-border-color: var(--tl-red);
  --bs-btn-hover-bg: var(--tl-red-dark);
  --bs-btn-hover-border-color: var(--tl-red-dark);
  --bs-btn-active-bg: var(--tl-red-dark);
  --bs-btn-active-border-color: var(--tl-red-dark);
  --bs-btn-disabled-bg: var(--tl-red);
  --bs-btn-disabled-border-color: var(--tl-red);
}

/* Focus de champ au rouge de marque */
.form-control:focus,
.form-select:focus {
  border-color: var(--tl-red);
  box-shadow: 0 0 0 0.2rem rgba(225, 0, 26, 0.15);
}

a {
  color: var(--tl-navy);
}
a:hover {
  color: var(--tl-red);
}

.clickable-row {
  cursor: pointer;
}

/* Zone reprise : fond gris-rouge léger pour la distinguer visuellement */
.tl-reprise {
  background: #fbf3f4;
  border-color: rgba(225, 0, 26, 0.25);
}

/* Vignettes de la galerie photos / carte grise */
.tl-thumb {
  width: 110px;
  height: 80px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  cursor: pointer;
}
.tl-thumb-file {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 110px;
  height: 80px;
  border-radius: 6px;
  border: 1px solid #dee2e6;
  background: #f1f3f5;
  font-size: 0.8rem;
  text-align: center;
  padding: 4px;
}

/* Visionneuse d'images (lightbox) plein écran, au-dessus des modals Bootstrap */
.tl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(0, 0, 0, 0.85);
  display: none;
  align-items: center;
  justify-content: center;
}
.tl-lightbox.tl-open {
  display: flex;
}
.tl-lb-img {
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}
.tl-lb-close,
.tl-lb-prev,
.tl-lb-next {
  position: absolute;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  padding: 0.1em 0.45em;
  border-radius: 8px;
}
.tl-lb-close:hover,
.tl-lb-prev:hover,
.tl-lb-next:hover {
  background: rgba(255, 255, 255, 0.3);
}
.tl-lb-close {
  top: 16px;
  right: 16px;
}
.tl-lb-prev {
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.tl-lb-next {
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
}
.tl-lb-cap {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  text-align: center;
  color: #fff;
  font-size: 0.9rem;
}

/* Zone de dépôt de fichiers (glisser-déposer) — bordure pointillée discrète */
.tl-dropzone {
  border: 1px dashed #c9ccd1;
  border-radius: 8px;
  padding: 12px;
}
.tl-dropzone.tl-drag {
  border-color: var(--tl-red);
  border-style: dashed;
  background: #fff6f7;
}
