/* ---------- Conteneur global ---------- */
.fpap-plan-container {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 20px;
}

/* ---------- Onglets catégories ---------- */
.fpap-tabs {
  display: flex;
  list-style: none;
  margin: 20px 0;
  padding: 0;
}
.fpap-tabs li {
  margin-right: 8px;
  padding: 8px 16px;
  background: #f0f4f8;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.fpap-tabs li:hover,
.fpap-tabs li.active {
  background: #0073aa;
  color: #fff;
}

/* ---------- Bloc objectif / tâche ---------- */
.fpap-objective-front {
  margin-bottom: 30px;
}
.fpap-objective-title {
  margin-top: 0;
  font-size: 1.25em;
}
.fpap-obj-desc,
.fpap-cat-desc,
.fpap-intro {
  color: #555;
  line-height: 1.4;
}

/* ---------- Tâche block ---------- */
.fpap-task-block {
  margin-bottom: 24px;
  position: relative;
}
.fpap-task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.fpap-task-title {
  margin: 0;
  font-size: 1.1em;
  font-weight: 600;
}
.fpap-edit-task {
  font-size: .9em;
  text-decoration: none;
  color: #0073aa;
  transition: color .2s;
}
.fpap-edit-task:hover {
  color: #005177;
}

/* ---------- Récap tableau ---------- */
.fpap-task-meta {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 8px;
}
.fpap-task-meta th,
.fpap-task-meta td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}

/* ---------- Formulaire inline ---------- */
.fpap-task-form {
  display: none;
  margin-top: 12px;
}
.fpap-task-form table {
  width: 100%;
  border-collapse: collapse;
}
.fpap-task-form th,
.fpap-task-form td {
  border: 1px solid #ddd;
  padding: 8px;
  text-align: left;
  vertical-align: middle;
}
.fpap-task-form thead {
  background: #f9f9f9;
}
.fpap-task-form thead th {
  font-weight: 600;
}
.fpap-task-form input[type="text"],
.fpap-task-form input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 8px;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1em;
}

/* ---------- Actions du formulaire ---------- */
.fpap-form-actions {
  margin-top: 8px;
}
.fpap-form-actions .button {
  background: #0073aa;
  color: #fff;
  border: none;
  padding: 8px 16px;
  margin-right: 8px;
  border-radius: 4px;
  cursor: pointer;
  transition: background .2s;
}
.fpap-form-actions .button:hover {
  background: #005177;
}
.fpap-form-actions .button-link {
  background: transparent;
  color: #e67e22;
  border: none;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
}
.fpap-form-actions .button-link:hover {
  color: #bf6200;
}

/* ---------- Cercle de progression ---------- */
.fpap-circle {
  width: 60px;
  height: 60px;
  display: inline-block;
  vertical-align: middle;
  margin-left: 20px;
}
.fpap-circle svg {
  width: 100%;
  height: 100%;
}
.fpap-circle .circle-bg {
  fill: none;
  stroke: #eee;
  stroke-width: 4;
}
.fpap-circle .circle-bar {
  fill: none;
  /* la couleur (stroke) est injectée par le JS en fonction du % */
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dasharray .3s, stroke .3s;
}
.fpap-circle .circle-text {
  fill: #333;
  font-size: 0.8em;
  text-anchor: middle;
  dominant-baseline: middle;
}

/* ---------- Onglet contenu ---------- */
.fpap-tab-content {
  display: none;
  margin-top: 16px;
}
.fpap-tab-content.active {
  display: block;
}
.woocommerce-MyAccount-navigation-link--fpap_plan a::before {
   	content: "\ee27";
    font-family: "bb-icons";
}


/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .fpap-tabs {
    flex-wrap: wrap;
  }
  .fpap-task-meta th,
  .fpap-task-meta td,
  .fpap-task-form th,
  .fpap-task-form td {
    font-size: .9em;
    padding: 6px;
  }
  .fpap-circle {
    width: 48px;
    height: 48px;
    margin-left: 10px;
  }
}
