/* ActiveFoot — Refonte 3 Lot 5a : planning public lisible + heure alignée haut */
.page-tournament.af-planning-easy-ready #tt-panel-planning .af-planning-easy-note,
.page-tournament.af-planning-easy-ready #tt-panel-sites .af-planning-easy-note{
  margin: 12px 0 14px;
}
.af-planning-easy-note{
  display:flex;
  align-items:flex-start;
  gap:10px;
  padding:12px 14px;
  border:1px solid rgba(34,197,94,.22);
  background:linear-gradient(135deg, rgba(34,197,94,.10), rgba(59,130,246,.06));
  border-radius:16px;
  color:var(--tm);
  font-size:13px;
  line-height:1.35;
}
.af-planning-easy-note strong{
  display:block;
  color:var(--tx);
  font-family:var(--fh);
  font-size:13px;
  margin-bottom:2px;
}
.af-planning-easy-note__icon{
  width:30px;
  height:30px;
  display:inline-grid;
  place-items:center;
  flex:0 0 auto;
  border-radius:999px;
  background:rgba(34,197,94,.14);
  border:1px solid rgba(34,197,94,.25);
}

.page-tournament.af-planning-easy-ready .timeline{
  display:flex;
  flex-direction:column;
  gap:12px;
}
.page-tournament.af-planning-easy-ready .time-slot{
  display:grid;
  grid-template-columns:92px minmax(0,1fr);
  gap:12px;
  align-items:start !important;
  border:1px solid var(--bd);
  background:linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  border-radius:18px;
  padding:12px;
}
.page-tournament.af-planning-easy-ready .time-label{
  position:sticky;
  top:74px;
  align-self:start !important;
  margin-top:0 !important;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  border-radius:14px;
  background:rgba(34,197,94,.12);
  border:1px solid rgba(34,197,94,.28);
  color:var(--green);
  font-family:var(--fh);
  font-size:18px;
  font-weight:900;
  letter-spacing:.2px;
}
.page-tournament.af-planning-easy-ready .slot-matches{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(260px, 1fr));
  gap:10px;
  min-width:0;
}
.page-tournament.af-planning-easy-ready .match-chip{
  position:relative;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:112px;
  padding:12px 12px 11px;
  border-radius:16px;
  border:1px solid rgba(148,163,184,.18);
  background:rgba(15,23,42,.62);
  box-shadow:0 8px 24px rgba(0,0,0,.12);
  overflow:hidden;
}
.page-tournament.af-planning-easy-ready .match-chip::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:4px;
  background:rgba(34,197,94,.55);
}
.page-tournament.af-planning-easy-ready .match-chip.af-planning-easy--done::before{
  background:rgba(59,130,246,.72);
}
.page-tournament.af-planning-easy-ready .match-chip.af-planning-easy--todo::before{
  background:rgba(250,204,21,.72);
}
.page-tournament.af-planning-easy-ready .chip-header{
  display:flex;
  justify-content:space-between;
  gap:8px;
  align-items:flex-start;
  color:var(--tm);
  font-size:11px;
  text-transform:none;
  letter-spacing:0;
}
.page-tournament.af-planning-easy-ready .chip-header span:first-child{
  display:inline-flex;
  align-items:center;
  gap:4px;
  max-width:52%;
  padding:4px 7px;
  border-radius:999px;
  background:rgba(15,23,42,.88);
  border:1px solid rgba(148,163,184,.18);
  color:var(--tx);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.page-tournament.af-planning-easy-ready .chip-header span:first-child:not(:empty)::before{
  content:"📍";
}
.page-tournament.af-planning-easy-ready .chip-header span:last-child{
  text-align:right;
  color:var(--tm);
  line-height:1.25;
}
.page-tournament.af-planning-easy-ready .chip-teams{
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:42px;
  padding:2px 4px;
  color:var(--tx);
  font-family:var(--fh);
  font-size:14px;
  font-weight:800;
  line-height:1.22;
  text-align:center;
}
.page-tournament.af-planning-easy-ready .chip-score{
  align-self:center;
  min-width:70px;
  padding:5px 12px;
  border-radius:999px;
  background:rgba(59,130,246,.14);
  border:1px solid rgba(59,130,246,.28);
  color:#bfdbfe;
  font-family:var(--fh);
  font-size:15px;
  font-weight:900;
  text-align:center;
}
.page-tournament.af-planning-easy-ready .match-chip.af-planning-easy--todo .chip-score{
  display:none;
}
.page-tournament.af-planning-easy-ready .af-planning-easy-state{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:4px;
  padding:4px 8px;
  border-radius:999px;
  background:rgba(250,204,21,.10);
  border:1px solid rgba(250,204,21,.24);
  color:#fde68a;
  font-size:11px;
  font-weight:700;
}
.page-tournament.af-planning-easy-ready .match-chip.af-planning-easy--done .af-planning-easy-state{
  background:rgba(59,130,246,.10);
  border-color:rgba(59,130,246,.22);
  color:#bfdbfe;
}

@media (max-width: 720px){
  .page-tournament.af-planning-easy-ready .time-slot{
    grid-template-columns:1fr;
    gap:8px;
    padding:10px;
  }
  .page-tournament.af-planning-easy-ready .time-label{
    position:relative;
    top:auto;
    justify-content:flex-start;
    min-height:auto;
    padding:9px 12px;
    font-size:17px;
  }
  .page-tournament.af-planning-easy-ready .slot-matches{
    grid-template-columns:1fr;
  }
  .page-tournament.af-planning-easy-ready .match-chip{
    min-height:0;
  }
  .page-tournament.af-planning-easy-ready .chip-header{
    flex-direction:column;
    align-items:stretch;
  }
  .page-tournament.af-planning-easy-ready .chip-header span:first-child{
    max-width:100%;
    width:max-content;
  }
  .page-tournament.af-planning-easy-ready .chip-header span:last-child{
    text-align:left;
  }
  .page-tournament.af-planning-easy-ready .chip-teams{
    justify-content:flex-start;
    text-align:left;
    font-size:14px;
  }
}


/* Lot 5a — correction demandée : l’heure se cale sur la limite haute du créneau. */
.page-tournament.af-planning-easy-ready .timeline .time-slot{
  align-items:start !important;
}
.page-tournament.af-planning-easy-ready .timeline .time-label{
  align-self:start !important;
  margin-top:0 !important;
}
