/* Parcours scolaire styles */

.timeline { padding-top: 96px; }

.tl {
  list-style: none;
  position: relative;
  padding-left: clamp(80px, 12vw, 160px);
}
.tl::before {
  content: '';
  position: absolute;
  left: clamp(56px, 8vw, 116px);
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: var(--line);
}

.tl-item {
  position: relative;
  padding-bottom: 56px;
}
.tl-item:last-child { padding-bottom: 0; }

.tl-year {
  position: absolute;
  left: calc(-1 * clamp(80px, 12vw, 160px));
  top: 18px;
  width: clamp(80px, 12vw, 160px);
  text-align: left;
  padding-right: 24px;
}
.tl-year span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  line-height: 1.3;
  display: inline-block;
}

.tl-item::before {
  content: '';
  position: absolute;
  left: calc(-1 * (clamp(80px, 12vw, 160px) - clamp(56px, 8vw, 116px)) - 5px);
  top: 22px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 2px solid var(--accent);
  z-index: 1;
}

.tl-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 32px;
  background: var(--bg-elev);
  transition: border-color 320ms ease, transform 320ms ease;
}
.tl-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.tl-card.highlight {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.tl-card.highlight .tl-tag { color: var(--accent-2); }
.tl-card.highlight .tl-title { color: var(--bg); }
.tl-card.highlight p { color: rgba(255,255,255,0.78); }
.tl-card.highlight .tl-stack li {
  border-color: rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.78);
}

.tl-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.tl-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 14px;
}
.tl-card p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.6;
  max-width: 60ch;
}
.tl-stack {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}
.tl-stack li {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-soft);
}

/* ============================================================
   Skills
   ============================================================ */
.skills { padding-top: 120px; }

.skill-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.skill-cell {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 20px;
  background: var(--bg-elev);
  transition: border-color 320ms ease;
}
.skill-cell:hover { border-color: var(--accent); }
.skill-cell h4 {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 400;
  letter-spacing: -0.01em;
  margin-bottom: 14px;
}
.skill-bar {
  height: 4px;
  background: var(--bg-soft);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 12px;
}
.skill-bar span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 2px;
  width: 0;
  animation: skill-fill 1.4s cubic-bezier(.25,.8,.3,1) forwards;
  animation-play-state: paused;
}
.skill-cell.in .skill-bar span { animation-play-state: running; }
@keyframes skill-fill {
  from { width: 0; }
}
.skill-cell .mono {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-mute);
  text-transform: uppercase;
}

@media (max-width: 820px) {
  .skill-grid { grid-template-columns: 1fr 1fr; }
  .tl { padding-left: 64px; }
  .tl::before { left: 28px; }
  .tl-year { position: static; width: auto; padding-right: 0; margin-bottom: 8px; }
  .tl-item::before { left: -42px; top: 8px; }
  .tl-card { padding: 22px 24px; }
}
@media (max-width: 540px) {
  .skill-grid { grid-template-columns: 1fr; }
}
