/* Fiche athlète : le calendrier devient le contenu principal.
   Les anciens blocs coach répétés sous le calendrier sont retirés de cette vue. */
.ip-athlete-profile-v2 .ip-ac-coach-column {
  display: none !important;
}

.ip-athlete-profile-v2 .ip-ac-main-grid {
  grid-template-columns: minmax(0, 1fr) !important;
}

.ip-athlete-profile-v2 .ip-ac-calendar-card {
  width: 100% !important;
}

/* Séances planifiées chargées depuis le calendrier Nolio. */
.ip-athlete-profile-v2 .ip-ac-calendar-legend .is-planned {
  background: #6e9fff !important;
  box-shadow: 0 0 0 3px rgba(110, 159, 255, 0.12);
}

.ip-athlete-profile-v2 .ip-ac-calendar-day.has-planned {
  border-color: rgba(110, 159, 255, 0.68) !important;
}

.ip-athlete-profile-v2 .ip-ac-calendar-day.is-empty.has-planned {
  color: #eef5ff !important;
  background:
    radial-gradient(circle at 86% 8%, rgba(168, 198, 255, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(39, 80, 151, 0.86), rgba(63, 111, 198, 0.95)) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ip-athlete-profile-v2 .ip-ac-calendar-day.has-planned.is-selected {
  border-color: #ffd263 !important;
  box-shadow:
    0 0 0 2px rgba(255, 196, 71, 0.27),
    inset 0 0 0 1px #ffc447 !important;
}

.ip-ac-calendar-planned-marker {
  position: absolute;
  right: 5px;
  bottom: 5px;
  left: 5px;
  min-width: 0;
  height: 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 0 5px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #f3f7ff;
  background: rgba(7, 20, 49, 0.34);
  font-size: var(--ip-text-xs);
  font-weight: 850;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

.ip-ac-calendar-planned-marker i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #9bc0ff;
  box-shadow: 0 0 0 2px rgba(155, 192, 255, 0.13);
}

/* Sur un jour déjà réalisé, un simple point bleu suffit pour signaler qu'un
   plan existe aussi, sans recouvrir les indicateurs du réalisé. */
.ip-athlete-profile-v2 .ip-ac-calendar-day.has-planned:not(.is-empty) .ip-ac-calendar-planned-marker {
  right: auto;
  bottom: 6px;
  left: 7px;
  width: 7px;
  min-width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  background: #9bc0ff;
  box-shadow: 0 0 0 2px rgba(7, 20, 49, 0.28);
  font-size: 0;
}

.ip-athlete-profile-v2 .ip-ac-calendar-day.has-planned:not(.is-empty) .ip-ac-calendar-planned-marker i {
  display: none;
}

.ip-ac-calendar-planned-panel {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.ip-ac-calendar-planned-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ip-ac-calendar-planned-panel > header strong {
  color: #9bc0ff;
  font-size: var(--ip-text-xs);
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ip-ac-calendar-planned-panel > header span {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border-radius: 999px;
  color: #17325f;
  background: #dce9ff;
  font-size: var(--ip-text-xs);
  font-weight: 900;
}

.ip-ac-calendar-planned-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.ip-athlete-profile-v2 .ip-ac-calendar-session-planned {
  border-color: rgba(110, 159, 255, 0.26) !important;
  background: linear-gradient(145deg, #f8fbff, #e9f1ff) !important;
}

.ip-athlete-profile-v2 .ip-ac-calendar-session-planned:hover {
  border-color: rgba(81, 126, 214, 0.5) !important;
  transform: translateY(-1px);
}

.ip-athlete-profile-v2 .ip-ac-calendar-session-planned .ip-ac-calendar-session-icon {
  color: #315fae !important;
  background: #dce9ff !important;
}

.ip-athlete-profile-v2 .ip-ac-calendar-session-planned > b {
  color: #28559d !important;
  background: #dce9ff !important;
}

.ip-ac-calendar-planned-error {
  margin-top: 10px;
  padding: 9px 10px;
  border: 1px dashed rgba(255, 196, 71, 0.25);
  border-radius: 11px;
  color: rgba(255, 255, 255, 0.58);
  background: rgba(255, 196, 71, 0.06);
  font-size: var(--ip-text-xs);
  font-weight: 650;
  line-height: 1.4;
}

@media (max-width: 700px) {
  .ip-ac-calendar-planned-list {
    grid-template-columns: 1fr;
  }

  .ip-athlete-profile-v2 .ip-ac-calendar-day.is-empty.has-planned {
    min-height: 54px;
  }

  .ip-ac-calendar-planned-marker {
    height: 13px;
    padding-inline: 4px;
    font-size: var(--ip-text-xs);
  }
}
