/* ============================================================
   components.css — Tous les composants UI réutilisables
   ============================================================ */

/* ── Nom / titre principal ── */
.name {
  font-family: var(--font-mono);
  font-size: 2.4rem;
  color: #fff;
  letter-spacing: 2px;
  line-height: 1.1;
}

.name--accent {
  color: var(--accent);
}

.title-tag {
  display: inline-block;
  margin-top: var(--space-sm);
  background: var(--bg-3);
  border: 1px solid var(--accent);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  padding: 3px 10px;
  letter-spacing: 2px;
}

.tagline {
  margin-top: var(--space-sm);
  color: var(--muted);
  font-size: 14px;
  max-width: 400px;
}

/* ── Contact ── */
.contact-item {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: flex-end;
}

.contact-item a {
  color: var(--accent-2);
  text-decoration: none;
  transition: opacity 0.2s;
}

.contact-item a:hover {
  opacity: 0.75;
}

.dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

/* ── Titre de section ── */
.section-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 3px;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: var(--space-md);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Tags de compétences ── */
.skill-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.skill-tag {
  background: var(--bg-3);
  border: 1px solid var(--border);
  padding: 5px 12px;
  font-size: 13px;
  color: var(--text);
  font-family: var(--font-mono);
  letter-spacing: 0.5px;
  cursor: default;
  transition: border-color 0.2s, color 0.2s;
}

.skill-tag:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.skill-tag--accent {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

/* ── Cards ── */
.card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  padding: var(--space-md) 1.2rem;
  margin-bottom: var(--space-md);
  transition: border-color 0.2s;
}

.card:hover {
  border-left-color: var(--accent-2);
}

.card--alt {
  border-left-color: var(--accent-2);
}

.card--alt:hover {
  border-left-color: var(--accent);
}

.card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: var(--space-md);
  margin-bottom: 4px;
}

.card-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.card-sub {
  font-size: 13px;
  color: var(--muted);
}

.card-desc {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.5;
}

/* ── Badges ── */
.badge {
  background: var(--bg-3);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  padding: 2px 8px;
  white-space: nowrap;
  flex-shrink: 0;
}

.badge--green {
  border-color: var(--accent);
  color: var(--accent);
}

/* ── Barres de compétences ── */
.bar-wrap {
  margin-bottom: 10px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
  font-family: var(--font-mono);
}

.bar-track {
  height: 4px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  width: 0;                        /* départ à 0 → animé via JS */
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Statut pied de page ── */
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}
