/* ===== Dossier de compétences techniques ===== */

.tsr-page .section__title {
  letter-spacing: -.3px;
}

/* ===== Hero ===== */

.tsr-hero{
  min-height: 50vh;
  background-image: url("../img/projects_wallpaper/network2.jpg");

  display: flex;
  align-items: center;      /* centre verticalement */
  justify-content: center;  /* centre horizontalement */

  padding: 0 24px;
}

.tsr-hero__content {
  width: 100%;
  max-width: 720px;

  margin: 0 auto;
  padding-top: 90px;

  text-align: center;
}

.tsr-kicker,
.tsr-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  margin: 0 0 10px;

  color: #2ea8ff;

  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 12px;
}

.tsr-kicker {
  color: rgba(255,255,255,.82);
}

.tsr-hero__actions,
.tsr-projects-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

  margin-top: 24px;
  margin-bottom: 40px;
}

.tsr-hero__actions {
  justify-content: center;
  margin-top: 34px;
}

.tsr-btn--ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  padding: 12px 18px;

  border-radius: 12px;
  border: 1px solid rgba(46,168,255,.32);

  color: inherit;
  text-decoration: none;
  font-weight: 700;

  background: rgba(255,255,255,.08);

  transition:
    transform .15s ease,
    border-color .15s ease,
    background .15s ease;
}

.tsr-btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(46,168,255,.58);
  background: rgba(46,168,255,.12);
}

/* ===== Summary ===== */

.tsr-summary {
  margin-top: 40px;
  position: relative;
}

/* ===== Sections ===== */

.tsr-section-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 28px;
  align-items: start;
}

.tsr-lead {
  font-size: 18px;
}

/* ===== Timeline ===== */

.tsr-timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.tsr-timeline__item {
  margin: 0;
  padding: 24px 22px 22px 30px;

  border-radius: 20px;

  background: #fff;
  border: 1px solid rgba(0,0,0,.075);
  box-shadow: 0 14px 34px rgba(0,0,0,.055);
}

.tsr-timeline__item p:last-child {
  color: rgba(0,0,0,.70);
  line-height: 1.65;
  margin-bottom: 0;
}

/* ===== Tableau compétences techniques ===== */

.tsr-tech-table {
  overflow: hidden;

  border-radius: 22px;
  border: 1px solid rgba(0,0,0,.08);

  background: #fff;
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.tsr-row {
  display: grid;
  grid-template-columns: 240px 1fr;

  min-height: 64px;

  border-bottom: 1px solid rgba(0,0,0,.075);
}

.tsr-row:last-child {
  border-bottom: 0;
}

.tsr-row strong {
  display: flex;
  align-items: center;
  justify-content: flex-end;

  padding: 18px 22px;

  background: linear-gradient(
    180deg,
    rgba(46,168,255,.10),
    rgba(46,168,255,.03)
  );

  border-right: 1px solid rgba(0,0,0,.075);
}

.tsr-row span {
  display: flex;
  align-items: center;

  padding: 18px 24px;

  color: rgba(0,0,0,.72);
  line-height: 1.6;
}

/* ===== Cartes compétences ===== */

.tsr-skill-grid.cards {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.tsr-skill-grid .skill-card {
  min-height: 285px;

  display: flex;
  flex-direction: column;
}

/* ===== CTA ===== */

.tsr-cta {
  max-width: 820px;
  text-align: center;
}

.tsr-cta .tsr-projects-cta {
  justify-content: center;
}

.tsr-cta .muted {
  margin-left: auto;
  margin-right: auto;
}

/* ===== Missions ===== */

.tsr-missions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.tsr-mission-card {
  position: relative;

  padding: 12px;

  border-radius: 22px;

  background: #fff;
  border: 1px solid rgba(47,27,233,.253);
  box-shadow: 0 14px 40px rgba(0,0,0,.06);
}

.tsr-mission-card__company {
  display: flex;
  align-items: center;
  justify-content: center;

  border-radius: 20px;

  color: #0a487e;

  font-size: 20px;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
}

.tsr-mission-pill {
  padding: 6px 12px;

  border-radius: 999px;

  background: rgba(10,59,94,.12);
  border: 1px solid rgba(12,69,109,.25);

  color: #2ea8ff;

  font-size: 12px;
  font-weight: 600;
}

/* ===== Chips ===== */

.tsr-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;

  margin-top: auto;
}

.tsr-chip {
  padding: 6px 10px;

  border-radius: 999px;

  background: rgba(46,168,255,.12);
  border: 1px solid rgba(46,168,255,.25);

  color: rgb(46,168,255);

  font-size: 12px;

  box-shadow: inset 0 1px 0 rgba(255,255,255,.85);
}

/* ===== Pills disponibilité ===== */

.tsr-pill--available {
  border-color: rgba(60,220,140,.28);
  background: rgba(60,220,140,.08);
}

.tsr-pill--not-available {
  border-color: rgba(220,84,60,.28);
  background: rgba(220,60,60,.08);
}

.tsr-pill--transition {
  border-color: rgba(220,196,60,.28);
  background: rgba(209,220,60,.08);
}

/* ===== Dots ===== */

.tsr-dot {
  width: 10px;
  height: 10px;

  border-radius: 999px;
}

.tsr-dot--ok {
  background: rgba(60,220,140,1);
  box-shadow: 0 0 0 6px rgba(7,180,93,.8);
}

.tsr-dot--not-available {
  background: #ff5c5c;
  box-shadow: 0 0 12px rgba(255,92,92,.8);
}

.tsr-dot--not-yet-available {
  background: #ff9f43;
  box-shadow: 0 0 12px rgba(255,159,67,.8);
}

/* ===== Responsive tablette ===== */

@media (max-width: 1100px) {
  .tsr-timeline,
  .tsr-skill-grid.cards {
    grid-template-columns: 1fr 1fr;
  }

  .tsr-missions {
    grid-template-columns: 1fr;
  }

  .tsr-mission-pill {
    position: static;
    display: inline-flex;
    margin-bottom: 12px;
  }

  .tsr-mission-card {
    padding-top: 24px;
  }
}

/* ===== Responsive mobile ===== */

@media (max-width: 780px) {
  .tsr-hero {
    min-height: 100vh;

    display: flex;
    align-items: center;      /* centre verticalement */
    justify-content: center;  /* centre horizontalement */
  }

  .tsr-hero__content {
    padding-top: 0;
    text-align: center;
  }

  .tsr-hero__actions {
    margin-top: 36px;
    flex-direction: column;
  }

  .tsr-hero__actions .btn,
  .tsr-hero__actions .tsr-btn--ghost {
    width: 100%;
  }

  .tsr-projects-cta {
    flex-direction: column;
  }

  .tsr-projects-cta .btn {
    width: 100%;
  }

  .tsr-section-grid,
  .tsr-row {
    grid-template-columns: 1fr;
  }

  .tsr-row strong {
    justify-content: flex-start;

    border-right: 0;
    border-bottom: 1px solid rgba(0,0,0,.06);
  }

  .tsr-timeline,
  .tsr-skill-grid.cards {
    grid-template-columns: 1fr;
  }

  .tsr-summary.stats-card {
    margin-top: 24px;
    padding: 18px;
    overflow: hidden;
  }

  .tsr-summary .stats-card__top {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tsr-summary .stats-pill {
    width: 100%;

    justify-content: center;

    text-align: center;
    white-space: normal;
  }

  .tsr-summary .stats-card__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tsr-summary .stat {
    min-width: 0;
  }

  .tsr-summary .stat__value,
  .tsr-summary .stat__hint {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}