/* ============================================================================
   ecran-equipe.css - Activité de l'équipe.
   ========================================================================== */

.ecran-equipe {
  max-width: 760px;
}

.equipe-titre {
  margin: 0 0 var(--sp-4);
  font-size: var(--fs-meta);
  font-weight: var(--gras-titre);
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--encre-douce);
}

.equipe-periode {
  position: relative;
  margin: 0 0 var(--sp-4);
  z-index: 8;
}

.equipe-periode__tete {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  width: 100%;
  min-height: var(--cible);
  padding: var(--sp-2) var(--sp-4);
  border: 1px solid var(--ligne);
  border-radius: var(--r-2);
  background: var(--surface);
  color: var(--encre);
  font: inherit;
  cursor: pointer;
}
.equipe-periode__tete:focus-visible {
  outline: var(--focus-largeur) solid var(--focus);
  outline-offset: var(--focus-ecart);
}
.equipe-periode__label {
  color: var(--encre);
  font-weight: var(--gras-titre);
}
.equipe-periode__valeur {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--encre);
}
.equipe-periode__chevron {
  width: var(--icone);
  height: var(--icone);
  color: var(--encre-douce);
}

.equipe-periode__menu {
  position: absolute;
  left: auto;
  right: 0;
  top: calc(100% + var(--sp-1));
  min-width: 220px;
  padding: var(--sp-1);
  border: 1px solid var(--ligne);
  border-radius: var(--r-2);
  background: var(--surface-creuse);
  box-shadow: var(--ombre-1);
}
.equipe-periode__option {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  width: 100%;
  min-height: 36px;
  padding: var(--sp-2) var(--sp-3);
  border: 0;
  border-radius: var(--r-1);
  background: transparent;
  color: var(--encre);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.equipe-periode__option:hover,
.equipe-periode__option.est-actif {
  background: var(--surface);
}
.equipe-periode__coche {
  width: var(--icone);
  height: var(--icone);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--encre);
  flex: none;
}
.equipe-periode__coche .icone {
  width: var(--sp-4);
  height: var(--sp-4);
}

.equipe-carte {
  border: 1px solid var(--ligne);
  border-radius: var(--r-2);
  background: var(--surface);
  box-shadow: var(--ombre-1);
  overflow: hidden;
}

.equipe-table-wrap { overflow-x: auto; }

.equipe-table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-corps);
}
.equipe-table th,
.equipe-table td {
  padding: var(--sp-3) var(--sp-4);
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid var(--ligne);
}
.equipe-table thead th {
  font-size: var(--fs-meta);
  font-weight: var(--gras-corps);
  color: var(--encre-douce);
}
.equipe-table tbody th {
  font-weight: var(--gras-titre);
  color: var(--encre);
}
.equipe-table th:not(:first-child),
.equipe-table td:not(:first-child),
.equipe-table td.equipe-table__num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.equipe-table tbody tr:last-child th,
.equipe-table tbody tr:last-child td { border-bottom: 0; }
.equipe-table__total th,
.equipe-table__total td {
  background: var(--surface-creuse);
  font-weight: var(--gras-titre);
}

.equipe-note {
  margin: 0;
  padding: var(--sp-3) var(--sp-4) var(--sp-4);
  border-top: 1px solid var(--ligne);
  font-size: var(--fs-meta);
  line-height: var(--lh-meta);
  color: var(--encre-douce);
}

.equipe-etat {
  margin: var(--sp-4) 0 0;
  color: var(--encre-douce);
  font-size: var(--fs-corps);
}
