/* ==========================================================================
   Espace partenaire — hérite des variables de configurator.css (.wooly-ft)
   ========================================================================== */

.wooly-pt .pt-tier-intro { text-align: center; font-size: 1rem; font-weight: 700; margin: 30px 0 14px; }
.pt-tiers { display: grid; gap: 12px; grid-template-columns: 1fr; max-width: 720px; margin: 0 auto 10px; }
@media (min-width: 620px) { .pt-tiers { grid-template-columns: repeat(3, 1fr); } }
.pt-tier {
  background: #fff; border: 2px solid var(--ft-border); border-radius: 14px;
  padding: 18px 14px; text-align: center;
}
.pt-tier--mid { border-color: var(--ft-turquoise); }
.pt-tier--top { border-color: var(--ft-fuchsia-deep); }
.pt-tier__pct { display: block; font-size: 2rem; font-weight: 800; color: var(--ft-fuchsia-deep); line-height: 1.1; }
.pt-tier--mid .pt-tier__pct { color: var(--ft-turquoise); }
.pt-tier__lbl { display: block; font-size: .85rem; color: var(--ft-muted); margin-top: 4px; }

.pt-cta { display: block; text-align: center; text-decoration: none; }

/* ── Cases à cocher ─────────────────────────────────────────────────────── */
.pt-check { display: flex; gap: 10px; align-items: flex-start; margin: 14px 0 4px; cursor: pointer; }
.pt-check input { width: 20px; height: 20px; margin-top: 2px; flex-shrink: 0; accent-color: var(--ft-fuchsia-deep); }

/* ── Tableau de bord ────────────────────────────────────────────────────── */
.pt-head { margin-bottom: 18px; }
.pt-h3 { font-size: 1rem; font-weight: 700; margin: 26px 0 12px; }

.pt-kpis { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 16px; }
@media (min-width: 720px) { .pt-kpis { grid-template-columns: repeat(4, 1fr); } }
.pt-kpi {
  background: var(--ft-cream-light); border: 1px solid var(--ft-border);
  border-radius: 12px; padding: 14px 16px;
}
.pt-kpi--claim { background: #FFF5F9; border-color: var(--ft-fuchsia); }
.pt-kpi__lbl { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ft-muted); }
.pt-kpi__val { display: block; font-size: 1.35rem; font-weight: 800; margin-top: 5px; }
.pt-kpi__val--accent { color: var(--ft-fuchsia-deep); }

.pt-nexttier {
  background: var(--ft-cream); border-radius: 12px; padding: 14px 16px;
  font-size: .92rem; font-weight: 600; margin-bottom: 16px;
}
.pt-progress { height: 8px; background: #fff; border-radius: 4px; overflow: hidden; margin-top: 10px; }
.pt-progress span { display: block; height: 100%; background: var(--ft-fuchsia); border-radius: 4px; }

/* ── Onglets ────────────────────────────────────────────────────────────── */
.pt-tabs {
  display: flex; gap: 4px; margin: 26px 0 0; border-bottom: 2px solid var(--ft-border);
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.pt-tab {
  background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px;
  padding: 11px 14px; font: inherit; font-weight: 600; color: var(--ft-muted);
  cursor: pointer; white-space: nowrap;
}
.pt-tab.is-active { color: var(--ft-fuchsia-deep); border-bottom-color: var(--ft-fuchsia-deep); }
.pt-tab:focus-visible { outline: 3px solid var(--ft-turquoise); outline-offset: -3px; }
.pt-panel { display: none; padding-top: 18px; }
.pt-panel.is-active { display: block; }

/* ── Filtres de période ─────────────────────────────────────────────────── */
.pt-ranges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.pt-range {
  border: 1px solid var(--ft-border); border-radius: 999px; padding: 6px 14px;
  font-size: .85rem; font-weight: 600; text-decoration: none; color: var(--ft-muted); background: #fff;
}
.pt-range.is-active { background: var(--ft-fuchsia-deep); border-color: var(--ft-fuchsia-deep); color: #fff; }

/* ── Tableaux : défilement horizontal plutôt que débordement de page ────── */
.pt-tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.pt-table { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 420px; }
.pt-table th {
  text-align: left; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em;
  color: var(--ft-muted); padding: 8px 10px; border-bottom: 2px solid var(--ft-border); white-space: nowrap;
}
.pt-table td { padding: 9px 10px; border-bottom: 1px solid var(--ft-border); }
.pt-table .num { text-align: right; white-space: nowrap; }
.pt-table .pt-total td { font-weight: 700; border-top: 2px solid var(--ft-border); border-bottom: 0; }

.pt-chip { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .76rem; font-weight: 700; }
.pt-chip--ok { background: var(--ft-ok-bg); color: var(--ft-ok); }
.pt-chip--wait { background: var(--ft-warn-bg); color: var(--ft-warn); }

/* ── Graphique 12 mois : barres CSS, aucune bibliothèque externe ────────── */
.pt-chart {
  display: flex; align-items: flex-end; gap: 5px; height: 160px;
  padding: 10px 0 0; border-bottom: 1px solid var(--ft-border); margin-bottom: 6px;
}
.pt-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.pt-bar__fill {
  width: 100%; background: var(--ft-fuchsia); border-radius: 4px 4px 0 0; min-height: 2px;
  transition: height .3s;
}
.pt-bar__lbl { font-size: .66rem; color: var(--ft-muted); margin-top: 5px; white-space: nowrap; }

.pt-contact { text-align: center; margin-top: 28px; }

@media (prefers-reduced-motion: reduce) {
  .wooly-pt * { transition: none !important; }
}

/* Coordonnées client : cliquables, discrètes */
.pt-table a { color: var(--ft-fuchsia-deep); text-decoration: none; }
.pt-table a:hover { text-decoration: underline; }
.pt-mini { font-size: .82rem; color: var(--ft-muted) !important; }
