/* =========================
   SKILLS
========================= */

.job-skills {
  display: flex;
  flex-direction: column;
  justify-content: space-between;

  /* 🔥 déplacement réel vers la gauche pour alignement parfait */
  transform: translateX(-155px);

  /* structure */
  height: 100%;
  padding-left: 14px;
  gap: 4px;

  position: relative;
}

/* Barre verticale parfaitement alignée */
.job-skills::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: #b88917;
  opacity: 0.6;
}

/* Bulles */
.job-skills span {
  align-self: flex-start;
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
  background-color: #f0e7d8;
  white-space: nowrap;
  text-align: center;
  min-width: 50px;
  position: relative; /* nécessaire pour la carte hover */
  cursor: default;
}

/* Répartition verticale propre */
.job-skills span:nth-child(1),
.job-skills span:nth-child(2) {
  margin-top: auto;
  margin-bottom: auto;
}

.job-skills span:last-child {
  margin-top: auto;
}

/* ===== CARTE HOVER ===== */
.job-skills span .skill-card {
  position: absolute;
  left: calc(100% + 10px); /* juste à droite de la bulle */
  top: 50%;
  transform: translateY(-50%);
  min-width: 180px;
  max-width: 220px;

  /* ⚡ Texte adaptatif et retour à la ligne */
  white-space: normal;
  word-wrap: break-word;
  word-break: break-word;

  background: #fff;
  border: 1px solid #b88917;
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 11.5px;
  line-height: 1.35;
  color: #111;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  z-index: 50;
}

/* Apparition de la carte */
.job-skills span:hover .skill-card {
  opacity: 1;
  transform: translateY(-50%) translateX(0);
}

/* Flèche de la carte */
.job-skills span .skill-card::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 6px;
  border-style: solid;
  border-color: transparent #b88917 transparent transparent;
}

/* PRINT */
@media print {
  .job-skills span .skill-card {
    display: none;
  }
}

/* Barre verticale glassed + gradient léger */
.job-skills::before {
  background: linear-gradient(180deg, rgba(184, 137, 23, 0.8), rgba(240, 231, 216, 0.5));
  box-shadow: 0 0 8px rgba(184, 137, 23, 0.3);
}

/* Bulles skill glassed + gradient léger */
.skill {
  background: linear-gradient(135deg, rgba(240, 231, 216, 0.85), rgba(184, 137, 23, 0.15));
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* Effet hover plus visible */
.skill:hover {
  transform: scale(1.08);
  box-shadow: 0 4px 18px rgba(0,0,0,0.2);
}
