/* style.css */

/* Couleur primaire Bootstrap */
:root {
  --bs-primary: #1a10e0;
  --bs-primary-rgb: 79, 70, 229;
}

/* 2. Effet de survol */
.card, .list-group-item {
  transition: background-color 0.2s ease;
}

.card:hover, .list-group-item:hover {
  background-color: #e7f1ff;
}

/* MOBILE */
@media (max-width: 40rem) {
  :root {
  --bs-primary: #548fcb;
  --bs-primary-rgb: 16, 120, 224;
  }
  .card {
    background-color: #f3f8fa;
  }
  .card-body, .list-group-item {
    color: #3f4142;
  }
  .card:hover, .list-group-item:hover {
  background-color: #ffffe7;
  }
}

/* CV List Styles */

#cvList {
  display: grid;
  gap: 0.7rem;
}

#cvList .cv-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.75rem;
  background: #f8f9fa;
}

#cvList .cv-file-name {
  flex: 1;
  min-width: 0;
  font-weight: 500;
  color: #1f2937;
  overflow-wrap: anywhere;
  word-break: break-word;
}

#cvList .cv-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

#cvList .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.8rem;
  border-radius: 0.6rem;
  white-space: nowrap;
}

#cvList .btn:hover {
  transform: translateY(-1px);
  transition: 0.2s ease;
}

#cvModal .modal-content {
  border-radius: 1rem;
  border: none;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.18);
}

#cvModal .modal-body {
  padding: 1rem;
}

@media (max-width: 767.98px) {
  #cvList .cv-item {
    flex-direction: column;
    align-items: stretch;
  }

  #cvList .cv-file-name {
    width: 100%;
  }

  #cvList .cv-actions {
    width: 100%;
    justify-content: flex-end;
  }
}

/* text orcid deco Green */

.text-orcid {
  color: #A6CE39;
}

/* Certification badge logos */

.badge-logo {
  width: clamp(32px, 8vw, 48px);
  height: clamp(32px, 8vw, 48px);
  object-fit: contain;
  flex-shrink: 0;
}

@media (max-width: 40rem) {
  .badge-logo {
    width: 32px;
    height: 32px;
  }
}
