/* Ladder — Padelaris Ladder.dc.html (desktop 1280 / mobile 390) */

/* ---------- Héro ---------- */
.zp-ld-hero { --cut-h: 40px; --hero-pb: 80px; }
.zp-ld-hero__in { position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-top: 44px; }
.zp-ld-hero__l { display: flex; flex-direction: column; gap: 12px; }
.zp-ld-hero__eb { font-size: 12px; font-weight: 800; letter-spacing: .14em; color: var(--zp-accent); text-transform: uppercase; }
.zp-ld-hero__h1 { font-family: var(--zp-display); font-style: italic; font-weight: 800; font-size: 84px; line-height: .88; color: #fff; text-transform: uppercase; }
.zp-ld-hero__p { max-width: 520px; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, .82); }
.zp-ld-hero__count { display: flex; gap: 28px; margin-bottom: 6px; color: #fff; }
.zp-ld-hero__count > div { display: flex; flex-direction: column; align-items: flex-end; }
.zp-ld-hero__n { font-family: var(--zp-display); font-weight: 800; font-size: 44px; line-height: 1; }
.zp-ld-hero__n.is-accent { color: var(--zp-accent); }
.zp-ld-hero__nl { font-size: 12px; font-weight: 700; color: rgba(255, 255, 255, .8); }

/* ---------- Grille ---------- */
.zp-ld { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; margin-top: -28px; padding-bottom: 64px; }
.zp-ld-out { position: relative; margin-top: -28px; padding-bottom: 64px; }
.zp-ld-out .zp-empty { max-width: 560px; margin: 0 auto; box-shadow: var(--zp-shadow-card); }

/* ---------- Carte « Lancer un défi » ---------- */
.zp-ld-launch { background: var(--zp-surface); border: 1px solid var(--zp-line); box-shadow: var(--zp-shadow-card); display: flex; flex-direction: column; min-width: 0; }
.zp-ld-launch__h { padding: 22px 24px 6px; display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.zp-ld-launch__me { font-size: 13px; color: var(--zp-gray); }
.zp-ld-launch__me strong { color: var(--zp-primary); }
.zp-ld-sec { padding: 16px 24px 20px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--zp-line-soft); min-width: 0; }
.zp-ld-sec--sug { padding: 18px 24px 24px; border-bottom: 0; }
.zp-ld-step { font-size: 11px; font-weight: 800; letter-spacing: .12em; color: var(--zp-gray); text-transform: uppercase; }
.zp-ld-lab { font-size: 13px; font-weight: 700; }

/* Partenaires */
.zp-ld-partners { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.zp-app .zp-ld-pc { padding: 14px 10px 12px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; background: #fff; box-shadow: inset 0 0 0 1px var(--zp-line); min-width: 0; }
.zp-app .zp-ld-pc:hover { box-shadow: inset 0 0 0 1px var(--zp-primary); }
.zp-app .zp-ld-pc[aria-checked="true"] { background: var(--zp-select); box-shadow: inset 0 0 0 2px var(--zp-primary); }
.zp-ld-pc__n { font-size: 13px; font-weight: 800; line-height: 1.2; }
.zp-ld-pc__m { display: flex; align-items: center; gap: 6px; }
.zp-ld-pc__e { font-family: var(--zp-display); font-weight: 700; font-size: 16px; line-height: 1.2; }
.zp-ld-avg { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--zp-gray); flex-wrap: wrap; }
.zp-ld-avg__v { font-family: var(--zp-display); font-size: 22px; color: var(--zp-primary); line-height: 1.2; }
.zp-ld-mixed { font-size: 11.5px; font-weight: 800; color: var(--zp-primary); padding: 4px 8px; background: var(--zp-accent); line-height: 1.3; }
.zp-ld-mixed[hidden] { display: none; }

/* Lieu et créneau */
.zp-ld-slot { display: grid; grid-template-columns: minmax(0, 1fr) 186px 124px; gap: 12px; align-items: start; }
.zp-ld-slot__club { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.zp-ld-slot .zp-lieu__p { position: absolute; top: 100%; left: 0; right: 0; margin-top: 4px; z-index: 60; }

/* Suggestions */
.zp-ld-sugs { display: flex; flex-direction: column; gap: 12px; transition: opacity .15s; }
.zp-ld-sugs.is-loading { opacity: .45; pointer-events: none; }
.zp-ld-sg { display: grid; grid-template-columns: minmax(0, 1fr) 160px 140px 100px; grid-template-areas: "pair avg gain btn" "pair rail gain btn"; column-gap: 16px; row-gap: 8px; align-items: center; padding: 14px 16px; border: 1px solid var(--zp-line); background: #fff; }
.zp-ld-sg.is-hl { border-color: var(--zp-primary); box-shadow: inset 0 0 0 1px var(--zp-primary); }
.zp-ld-sg__pair { grid-area: pair; display: flex; align-items: center; gap: 12px; min-width: 0; }
.zp-ld-sg__names { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.zp-ld-sg__n { display: flex; align-items: center; gap: 6px; min-width: 0; }
.zp-app .zp-ld-sg__n a { font-size: 14px; font-weight: 800; color: var(--zp-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.5; }
.zp-ld-sg__avg { grid-area: avg; display: flex; flex-direction: column; gap: 3px; align-self: end; min-width: 0; }
.zp-ld-sg__avgv { display: flex; align-items: baseline; gap: 6px; }
.zp-ld-sg__elo { font-family: var(--zp-display); font-weight: 800; font-size: 24px; line-height: 1; }
.zp-ld-sg__moy { font-size: 11px; font-weight: 600; color: var(--zp-gray); }
.zp-ld-sg__lab { font-size: 12px; font-weight: 800; white-space: nowrap; line-height: 1.5; }
.zp-ld-sg__rail { grid-area: rail; align-self: start; padding-bottom: 5px; }
.zp-ld-sg__gain { grid-area: gain; }
.zp-ld-gt { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--zp-line-soft); background: var(--zp-thead); }
.zp-ld-gt > div { padding: 6px 8px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.zp-ld-gt > div + div { border-left: 1px solid var(--zp-line-soft); }
.zp-ld-gt span { font-size: 10px; font-weight: 800; letter-spacing: .08em; color: var(--zp-gray); text-transform: uppercase; line-height: 1.5; }
.zp-ld-gt strong { font-family: var(--zp-display); font-weight: 800; font-size: 24px; line-height: 1; }
.zp-ld-sg .is-w { color: var(--zp-win-text); }
.zp-ld-sg .is-l { color: var(--zp-loss-text); }
.zp-ld-gi { font-size: 12px; color: var(--zp-gray); }
.zp-ld-gi strong { font-family: var(--zp-display); font-size: 17px; }
.zp-app .zp-ld-sg__btn { grid-area: btn; font-size: 14px; padding: 12px 10px; --cut: 10px; width: 100%; }
.zp-app .zp-ld-sg__btn.is-sent { background: var(--zp-disabled-bg); color: var(--zp-gray) !important; box-shadow: none; cursor: default; }
.zp-ld-foot { font-size: 12px; color: var(--zp-gray); }
.zp-ld-none { font-size: 13px; color: var(--zp-gray); background: #fff; border: 1px solid var(--zp-line); padding: 14px 16px; }
.zp-ld-none[hidden] { display: none; }

/* ---------- Colonne droite ---------- */
.zp-ld-side { display: flex; flex-direction: column; gap: 24px; padding-top: 60px; min-width: 0; }
.zp-ld-block { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.zp-ld-bh { display: flex; align-items: center; gap: 10px; }
.zp-ld-bh--sb { justify-content: space-between; align-items: baseline; }
.zp-ld-h3 { font-family: var(--zp-display); font-weight: 800; font-size: 24px; text-transform: uppercase; line-height: 1; }
.zp-ld-pill { font-size: 10.5px; font-weight: 800; color: #fff; background: var(--zp-brand); padding: 1px 5px; line-height: 1.5; }
.zp-ld-pill--lg { font-size: 12px; padding: 2px 7px; }
.zp-ld-pill[hidden] { display: none; }

.zp-ld-replies { display: flex; flex-direction: column; gap: 10px; }
.zp-ld-rc { background: #fff; border: 1px solid var(--zp-line); padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.zp-ld-rc__k { font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.zp-ld-rc__k.is-ch { color: var(--zp-secondary); }
.zp-ld-rc__k.is-sc { color: var(--zp-brand); }
.zp-ld-rc__k.is-ok { color: var(--zp-win-text); }
.zp-ld-rc__who { display: flex; align-items: center; gap: 10px; }
.zp-ld-rc__t { font-size: 14px; font-weight: 700; line-height: 1.35; }
.zp-ld-rc__m { font-size: 13px; color: var(--zp-gray); }
.zp-ld-rc__acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.zp-ld-rc__acts--1 { grid-template-columns: 1fr; }
.zp-app .zp-ld-yes { font-size: 14px; padding: 11px; --cut: 10px; }
.zp-app .zp-ld-no { font-size: 14px; padding: 9px; white-space: normal; }
.zp-ld-prop { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--zp-line-soft); }
.zp-ld-prop[hidden] { display: none; }
.zp-ld-prop__g { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.zp-ld-prop__a { display: flex; align-items: center; gap: 16px; }
.zp-app .zp-ld-prop__x::after { content: none; }
.zp-app .zp-ld-prop__x { color: var(--zp-gray) !important; font-size: 13px; }

.zp-ld-pend { background: #fff; border: 1px solid var(--zp-line); }
.zp-ld-pend > .zp-ld-none { border: 0; }
.zp-ld-pr { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--zp-line-soft); }
.zp-ld-pr:last-of-type { border-bottom: 0; }
.zp-ld-pr__b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.zp-ld-pr__t { font-size: 13px; font-weight: 800; line-height: 1.4; }
.zp-ld-pr__m { font-size: 12px; color: var(--zp-gray); line-height: 1.4; }
.zp-ld-pr__tag { flex: none; font-size: 11px; font-weight: 700; color: var(--zp-gray); padding: 3px 7px; border: 1.5px dashed var(--zp-gray); white-space: nowrap; line-height: 1.3; }
.zp-ld-pr__go { flex: none; }
.zp-ld-played { display: flex; flex-direction: column; gap: 10px; }

/* Onglets mobiles */
.zp-ld-tabs { display: flex; background: #fff; border-bottom: 1px solid var(--zp-line); padding: 0 8px; overflow-x: auto; scrollbar-width: none; }
.zp-ld-tabs::-webkit-scrollbar { display: none; }
.zp-app .zp-ld-tab { flex: none; padding: 14px 10px 12px; display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--zp-gray); line-height: 1.5; min-height: 48px; }
.zp-app .zp-ld-tab[aria-selected="true"] { color: var(--zp-primary); box-shadow: inset 0 -3px 0 var(--zp-accent); }

/* ---------- Tablette ---------- */
@media (max-width: 1100px) and (min-width: 761px) {
	.zp-ld { grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; }
	.zp-ld-sg { grid-template-columns: minmax(0, 1fr) 140px 100px; grid-template-areas: "pair pair pair" "avg gain btn" "rail gain btn"; column-gap: 12px; }
	.zp-ld-slot { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
	.zp-ld-slot__club { grid-column: 1 / -1; }
	.zp-ld-partners { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Mobile ---------- */
@media (max-width: 760px) {
	.zp-ld-hero { clip-path: none; padding-bottom: 18px; }
	.zp-ld-hero__in { padding: 0 20px; margin-top: -2px; }
	.zp-ld-hero__h1 { font-size: 52px; line-height: .9; }
	.zp-ld-stripes-m { --st-w: 30px; --st-h: 400px; --st-r: 24px; }
	.zp-ld-stripes-m b { display: none; }

	.zp-ld { display: block; margin-top: 0; padding-top: 16px; padding-bottom: 24px; }
	.zp-ld-out { margin-top: 0; padding-top: 16px; }
	.zp-ld [data-panel] { display: none; }
	.zp-ld[data-tab="launch"] [data-panel="launch"],
	.zp-ld[data-tab="reply"] [data-panel="reply"],
	.zp-ld[data-tab="pending"] [data-panel="pending"],
	.zp-ld[data-tab="played"] [data-panel="played"] { display: flex; }
	.zp-ld-side { padding-top: 0; gap: 0; }

	.zp-ld-launch { background: none; border: 0; box-shadow: none; gap: 14px; }
	.zp-ld-sec { display: contents; }
	.zp-ld-partners { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 0 16px; scrollbar-width: none; }
	.zp-ld-partners::-webkit-scrollbar { display: none; }
	.zp-app .zp-ld-pc { flex: none; width: 84px; padding: 10px 6px; gap: 6px; }
	.zp-ld-pc .zp-av { width: 40px !important; height: 40px !important; }
	.zp-ld-pc__n { font-size: 12px; line-height: 1.15; }
	.zp-ld-pc__e { font-size: 15px; }
	.zp-ld-avg { justify-content: space-between; align-items: baseline; font-size: 12px; }
	.zp-ld-slot { grid-template-columns: minmax(0, 1fr) 128px; gap: 10px; }
	.zp-ld-slot__club { grid-column: 1 / -1; }

	.zp-ld-sg { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "pair avg" "rail rail" "gain btn"; column-gap: 10px; row-gap: 12px; padding: 14px; }
	.zp-ld-sg__pair { gap: 10px; }
	.zp-ld-sg__pair .zp-av { width: 34px !important; height: 34px !important; }
	.zp-ld-sg__names { gap: 1px; }
	.zp-app .zp-ld-sg__n a { font-size: 13.5px; line-height: 1.4; }
	.zp-ld-sg__avg { align-items: flex-end; gap: 0; align-self: center; }
	.zp-ld-sg__elo { font-size: 22px; }
	.zp-ld-sg__moy { display: none; }
	.zp-ld-sg__lab { font-size: 11px; }
	.zp-ld-sg__rail { padding-bottom: 0; }
	.zp-app .zp-ld-sg__btn { min-width: 120px; width: auto; padding: 13px 14px; }

	.zp-ld-rc__who .zp-avpair { display: none; }
	.zp-ld-replies { gap: 12px; }
	.zp-app .zp-ld-yes { padding: 14px; }
	.zp-app .zp-ld-no { padding: 12px; }
	.zp-ld-pr { padding: 14px; }
	.zp-ld-pr__tag { display: none; }
	.zp-ld-played { gap: 12px; }
}
.zp-ld-slot .zp-lieu__sm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Lieu et créneau : champs alignés (même hauteur, mêmes libellés) */
.zp-app .zp-ld-slot { --zp-ld-h: 48px; align-items: end; }
@media (min-width: 1101px) { .zp-app .zp-ld-slot { grid-template-columns: minmax(0, 1fr) 200px 148px; gap: 14px; } }
.zp-app .zp-ld-slot .zp-ld-lab,
.zp-app .zp-ld-slot .zp-datef__l,
.zp-app .zp-ld-slot .zp-stepper__l { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--zp-primary); }
.zp-app .zp-ld-slot .zp-datef,
.zp-app .zp-ld-slot .zp-stepper,
.zp-app .zp-ld-slot__club { gap: 6px; }
.zp-app .zp-ld-slot .zp-lieu__f { height: var(--zp-ld-h); padding: 0 14px 0 8px; gap: 10px; }
.zp-app .zp-ld-slot .zp-lieu__pic { width: 32px; height: 32px; }
.zp-app .zp-ld-slot .zp-lieu__pic::after { width: 10px; height: 10px; }
.zp-app .zp-ld-slot .zp-lieu__sn { font-size: 14px; }
.zp-app .zp-ld-slot .zp-datef__f { height: var(--zp-ld-h); padding: 0 14px; }
.zp-app .zp-ld-slot .zp-stepper__box { height: var(--zp-ld-h); }
.zp-app .zp-ld-slot .zp-stepper__dec,
.zp-app .zp-ld-slot .zp-stepper__inc { width: 44px; }
.zp-app .zp-ld-slot .zp-stepper__inc { box-shadow: none; }
.zp-app .zp-ld-slot .zp-lieu__f:hover,
.zp-app .zp-ld-slot .zp-datef__f:hover { box-shadow: inset 0 0 0 1.5px var(--zp-primary); }
/* Lien vers les matchs ouverts */
.zp-app .zp-ld-hero__om { display: inline-block; margin-top: 6px; font-size: 13px; font-weight: 800; color: var(--zp-accent); text-decoration: none; }
.zp-app .zp-ld-hero__om:hover { text-decoration: underline; }
