/* ============================================================
   PADEL SAAS — styles des espaces Club & Services / Joueur
   + badges calendrier + thème par club (surcharge variables)
   ============================================================ */

/* ---------- Blocs génériques ---------- */
.padel-flash { margin: 10px 0 18px; }
.padel-flash-ok, .padel-flash-ko {
    padding: 10px 14px; border-radius: 10px; margin-bottom: 8px; font-weight: 600;
}
.padel-flash-ok { background: #e5f6ef; color: #14532d; border: 1px solid #bfe8d6; }
.padel-flash-ko { background: #fdeeee; color: #7f1d1d; border: 1px solid #f5c6c6; }

.padel-player, .padel-admin { max-width: 960px; margin: 0 auto; padding: 18px 16px 40px; }
.padel-player h1, .padel-admin h1 { margin: 0 0 16px; }
.padel-player h2, .padel-admin h2 { margin: 26px 0 10px; font-size: 1.15em; }
.padel-hint { color: #667; font-size: .92em; margin-top: -4px; }
.padel-note { color: #889; font-size: .82em; }
.padel-backlink { display: inline-block; margin-top: 22px; }

/* ---------- Cartes de badges joueur ---------- */
.padel-badges-row { display: flex; gap: 12px; flex-wrap: wrap; }
.padel-badge-card {
    flex: 1 1 150px; background: #fff; border: 2px solid #e4e2d8; border-radius: 16px;
    padding: 16px 12px; text-align: center; display: flex; flex-direction: column; gap: 4px;
}
.padel-badge-card small { color: #889; }
.padel-badge-card.is-vip { border-color: #d4af37; background: linear-gradient(180deg, #fffdf3, #fdf6dc); }
.padel-badge-card.is-level { border-color: #41b9a2; background: linear-gradient(180deg, #f2fbf8, #e2f6f0); }
.padel-badge-card.is-jeton { border-color: #7c5cbf; background: linear-gradient(180deg, #f7f4fd, #efe9fb); }
.padel-badge-card.is-off { opacity: .55; }
.padel-badge-ico { font-size: 1.7em; }

/* ---------- Analyse IA joueur ---------- */
.padel-analyse-box { background: #fff; border: 2px solid #e4e2d8; border-radius: 16px; padding: 18px; }
.padel-price-flag { margin-top: 0; }
.padel-price-flag.is-free { color: #14532d; font-weight: 700; }
.padel-upload-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 12px 0 6px; }
.padel-upload-form input[type="file"] { max-width: 100%; }
.padel-btn {
    display: inline-block; border: 0; border-radius: 10px; padding: 11px 20px; font-weight: 700;
    background: linear-gradient(180deg, #52cbb2, #41b9a2); color: #08312a; cursor: pointer;
    box-shadow: 0 2px 6px rgba(0,0,0,.15); text-decoration: none;
}
.padel-btn:hover { filter: brightness(1.05); }
.padel-btn.is-small { padding: 5px 10px; font-size: .85em; box-shadow: none; }
.padel-analyses { display: flex; flex-direction: column; gap: 10px; }
.padel-analysis { background: #fff; border: 1.5px solid #e4e2d8; border-radius: 12px; padding: 12px 14px; }
.padel-analysis.is-done { border-color: #41b9a2; }
.padel-analysis.is-failed { border-color: #f0b4b4; background: #fffafa; }
.padel-analysis.is-processing, .padel-analysis.is-queued { border-color: #e9d9a0; background: #fffcf2; }
.padel-analysis p { margin: 6px 0; }
.pa-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.pa-head small { color: #99a; }
.pa-confidence { color: #57806f; font-size: .88em; }
.pa-error { color: #8a1f1f; }

/* ---------- Abonnements joueur ---------- */
.padel-subs { display: flex; flex-direction: column; gap: 8px; }
.padel-sub { background: #fff; border: 1.5px solid #e4e2d8; border-radius: 12px; padding: 10px 14px; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.padel-sub-left { font-weight: 800; color: #41b9a2; }

/* ---------- Espace admin ---------- */
.padel-wallet-cards { display: flex; gap: 12px; flex-wrap: wrap; }
.padel-wallet-card {
    flex: 1 1 140px; background: linear-gradient(180deg, #f2fbf8, #fff); border: 2px solid #bfe8d6;
    border-radius: 16px; padding: 14px; text-align: center;
}
.pwc-num { display: block; font-size: 1.7em; font-weight: 800; color: #1f6f5e; }
.pwc-label { color: #668; font-size: .85em; }
.padel-admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 16px; }
@media (max-width: 860px) { .padel-admin-grid { grid-template-columns: 1fr; } }
.padel-card { background: #fff; border: 2px solid #e4e2d8; border-radius: 16px; padding: 16px 18px; }
.padel-card h2 { margin-top: 0; }
.padel-form label, .padel-inline-form label { display: block; margin: 8px 0; font-size: .93em; }
.padel-form input, .padel-inline-form input, .padel-form select {
    padding: 8px 10px; border: 1.5px solid #d8d5c8; border-radius: 8px; margin-left: 6px;
}
.padel-form fieldset { border: 1.5px dashed #d8d5c8; border-radius: 10px; margin: 10px 0; }
.padel-form legend { font-size: .88em; color: #668; padding: 0 6px; }
.padel-table { width: 100%; border-collapse: collapse; font-size: .88em; margin-top: 10px; }
.padel-table th, .padel-table td { border-bottom: 1px solid #eee; padding: 6px 8px; text-align: left; }
.padel-table th { color: #778; font-weight: 600; }
.is-plus { color: #177245; font-weight: 700; }
.is-minus { color: #b02a2a; font-weight: 700; }
.padel-sub-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; border-bottom: 1px solid #f1efe6; padding: 8px 0; }
.padel-sub-row form { margin: 0; }

/* ---------- Badges dans le calendrier ---------- */
.cell-vip .calendar-booking, td.cell-vip { box-shadow: inset 0 0 0 2.5px #d4af37; border-radius: 4px; }
.padel-mini-badge {
    display: inline-block; font-size: .78em; font-weight: 800; line-height: 1;
    padding: 2px 5px; border-radius: 8px; margin-right: 4px; vertical-align: middle;
}
.padel-mini-badge.is-vip { background: #f6e7b3; color: #6b4e00; }
.padel-mini-badge.is-level { background: #d2f1e8; color: #0c5b4b; }
