/* style-matchs.css — mentions Compétition / Animation / UFOLEP sur les matchs (public.html + calendrier.html) */
.match-tag { display: inline-block; margin-left: 6px; padding: 2px 7px; border-radius: 10px; vertical-align: middle;
  font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase;
  background: var(--pub-soft); color: var(--pub-blue); }
.match-tag.anim   { background: #e3f3e8; color: #1e6b36; }
.match-tag.ufolep { background: #f0eaff; color: #6b3fa0; }
.match-tag.annule { margin-left: 0; background: #fde8e8; color: var(--red); }
.match-sub { margin-top: 4px; font-size: 11px; line-height: 1.4; color: var(--muted); }

/* Bandeau de couleur par type (liste du calendrier) */
.match-item.t-comp, .match-item.t-ufo, .match-item.t-anim { margin: 0 14px 10px; padding: 10px 14px 10px 16px; border: 0; border-left: 7px solid; border-radius: 10px; }
.match-item:first-child.t-comp, .match-item:first-child.t-ufo, .match-item:first-child.t-anim { margin-top: 14px; }
.match-item.t-comp { background: #eaf0f7; border-left-color: #14365a; }
.match-item.t-ufo  { background: #f0eaff; border-left-color: #6b3fa0; }
.match-item.t-anim { background: #e6f5ee; border-left-color: #1e7f55; }

/* ── Agenda du WE ── */
.ag-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 10px 20px; background: #f7fafc; border-bottom: 1px solid #dbe3ec; font-size: 11px; color: #3d4c5f; }
.ag-legend span { display: inline-flex; align-items: center; gap: 5px; }
.ag-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.ag-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; padding: 16px 20px 10px; }
.ag-day-head { display: flex; align-items: baseline; gap: 8px; padding-bottom: 5px; margin-bottom: 8px; border-bottom: 2px solid #45a4d4; }
.ag-day-title { font-family: 'Barlow Condensed', sans-serif; font-size: 20px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: #14365a; }
.ag-day-n { font-size: 11px; color: #5b6b7e; }
.ag-group { padding: 6px 0; border-bottom: 1px solid #e8eef4; }
.ag-group:last-child { border-bottom: 0; }
.ag-row { display: flex; align-items: stretch; gap: 8px; padding: 3px 0; }
.ag-time { width: 50px; flex-shrink: 0; font-family: 'Barlow Condensed', sans-serif; font-size: 21px; font-weight: 700; line-height: 1.1; color: #14365a; text-align: right; }
.ag-strip { width: 5px; border-radius: 3px; flex-shrink: 0; }
.ag-row.t-comp .ag-strip { background: #14365a; } .ag-row.t-ufo .ag-strip { background: #6b3fa0; } .ag-row.t-anim .ag-strip { background: #1e7f55; }
.ag-body { min-width: 0; flex: 1; }
.ag-top { display: flex; align-items: center; gap: 6px; }
.ag-chip { color: #fff; font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; padding: 1px 6px; border-radius: 3px; }
.ag-row.t-comp .ag-chip { background: #14365a; } .ag-row.t-ufo .ag-chip { background: #6b3fa0; } .ag-row.t-anim .ag-chip { background: #1e7f55; }
.ag-cat { font-size: 12px; font-weight: 700; }
.ag-row.t-comp .ag-cat { color: #14365a; } .ag-row.t-ufo .ag-cat { color: #6b3fa0; } .ag-row.t-anim .ag-cat { color: #1e7f55; }
.ag-line { font-size: 13px; font-weight: 700; color: #14365a; overflow-wrap: anywhere; }   /* 05/11/2026 : passe à la ligne au lieu d'être coupée par « … » */
.ag-sub { font-size: 11px; color: #5b6b7e; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ag-row.annule .ag-line { text-decoration: line-through; opacity: .65; }
.ag-sub.wrap { white-space: normal; overflow: visible; text-overflow: clip; }
.ag-part { font-size: 11px; color: #5b6b7e; margin-top: 2px; }
.ag-part summary { cursor: pointer; font-weight: 600; color: #1e6b36; }
.ag-part div { margin-top: 2px; line-height: 1.4; }
.ag-empty { padding: 10px 0; font-size: 12px; color: #5b6b7e; font-style: italic; }
.ag-none { padding: 18px 20px; text-align: center; font-size: 13px; color: #5b6b7e; }
@media (max-width: 760px) { .ag-cols { grid-template-columns: 1fr; gap: 20px; padding: 14px 14px 6px; } .ag-legend { padding: 10px 14px; } }

/* Agenda : bandeau teinté (remplace le trait fin) — même hauteur compacte */
.ag-row { padding: 2px 0; align-items: center; }
.ag-strip { display: none; }
.ag-time { align-self: center; }
.ag-body { padding: 5px 10px 5px 14px; border-left: 7px solid; border-radius: 8px; }
.ag-row.t-comp .ag-body { background: #eaf0f7; border-left-color: #14365a; }
.ag-row.t-ufo  .ag-body { background: #f0eaff; border-left-color: #6b3fa0; }
.ag-row.t-anim .ag-body { background: #e6f5ee; border-left-color: #1e7f55; }
.ag-group { padding: 5px 0; }

/* Tags du type : même couleur que le bandeau */
.match-item .match-tag { background: #14365a; color: #fff; }
.match-item .match-tag.ufolep { background: #6b3fa0; color: #fff; }
.match-item .match-tag.anim { background: #1e7f55; color: #fff; }
.match-item .match-tag.annule { background: #fde8e8; color: var(--red); }

/* Agenda de la semaine (08/11/2026) : au-delà de 2 jours, 3 colonnes au maximum (2 sur tablette, 1 sur mobile), jamais d'élargissement ; lundi→vendredi : filet doré */
.ag-cols.n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ag-cols.n3 .ag-day-head { flex-wrap: wrap; }
.ag-day.sem .ag-day-head { border-bottom-color: #e8a020; }
@media (max-width: 900px) { .ag-cols.n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .ag-cols.n3 { grid-template-columns: 1fr; } }
.ag-cols.n3 .ag-time { width: 56px; font-size: 19px; }
