/* ---- Espace pro TheraCoach ---- */

.pro-page { min-height: 70vh; }
.pro-inner { max-width: 640px; }
.pro-page h1 { margin-bottom: 1rem; }
.pro-pill {
  display: inline-block; background: var(--accent); color: var(--white);
  font-family: Arial, sans-serif; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 1px; text-transform: uppercase;
  padding: 0.35rem 1rem; border-radius: 50px; margin-bottom: 1.2rem;
}

.pro-card {
  background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 2rem; margin-top: 1.5rem; text-align: left;
}
.pro-card h2 { font-size: 1.3rem; margin-bottom: 0.8rem; color: var(--text); }
.pro-card p { line-height: 1.8; margin-bottom: 1rem; }
.pro-card a:not(.btn) { color: var(--primary); text-decoration: underline; }

/* Onglets inscription / connexion */
.pro-tabs { display: flex; gap: 0.5rem; margin-top: 2rem; }
.pro-tab {
  flex: 1; padding: 0.8rem 1rem; border: 2px solid var(--primary); background: transparent;
  color: var(--primary); border-radius: 50px; font-family: Arial, sans-serif;
  font-weight: 700; font-size: 0.92rem; cursor: pointer; transition: all 0.2s;
}
.pro-tab[aria-selected="true"] { background: var(--primary); color: var(--white); }
.pro-panel[hidden] { display: none; }

/* Formulaires */
.pro-form { display: grid; gap: 1.1rem; }
.pro-form .pro-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pro-form label {
  display: grid; gap: 0.4rem; font-family: Arial, sans-serif;
  font-size: 0.88rem; font-weight: 700; color: var(--text);
}
.pro-form input[type="text"], .pro-form input[type="email"], .pro-form input[type="password"], .pro-form select {
  width: 100%; padding: 0.8rem 1rem; border: 1.5px solid #D6E4E4; border-radius: 10px;
  font-family: Arial, sans-serif; font-size: 1rem; font-weight: 400; color: var(--text);
  background: var(--bg); transition: border-color 0.2s;
}
.pro-form input:focus, .pro-form select:focus { outline: none; border-color: var(--primary); background: var(--white); }
.pro-form .pro-check {
  display: flex; gap: 0.7rem; align-items: flex-start; font-weight: 400; line-height: 1.5;
}
.pro-form .pro-check input { margin-top: 0.25rem; width: 18px; height: 18px; accent-color: var(--primary); flex-shrink: 0; }
.pro-form .btn { justify-self: start; }
.pro-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pro-small { font-family: Arial, sans-serif; font-size: 0.85rem; color: var(--text-light); margin-top: 0.5rem; }
.pro-small a { color: var(--text-light); }
.pro-errors { color: #A33A3A; font-family: Arial, sans-serif; font-size: 0.92rem; margin: 0 0 1rem 1.2rem; line-height: 1.7; }
p.pro-errors { margin-left: 0; }
.pro-success {
  background: var(--light); color: var(--primary-dark); border-radius: var(--radius);
  padding: 0.8rem 1.2rem; font-family: Arial, sans-serif; font-size: 0.92rem; margin-bottom: 1.2rem;
}

/* Tableau admin */
.pro-page:has(.pro-table) .pro-inner { max-width: 1100px; }
.pro-table-wrap { overflow-x: auto; margin-top: 1.5rem; background: var(--white); border-radius: var(--radius); box-shadow: var(--shadow); }
.pro-table { width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; font-size: 0.88rem; text-align: left; }
.pro-table th, .pro-table td { padding: 0.75rem 0.9rem; border-bottom: 1px solid var(--light); vertical-align: top; }
.pro-table th { background: var(--light); color: var(--primary-dark); white-space: nowrap; }
.pro-ok { color: var(--primary); font-weight: 700; }
.pro-wait { color: var(--accent); font-weight: 700; }
.pro-del { background: none; border: none; color: #A33A3A; cursor: pointer; font-size: 0.82rem; text-decoration: underline; }

@media (max-width: 640px) {
  .pro-form .pro-row { grid-template-columns: 1fr; }
  .pro-card { padding: 1.4rem; }
  .pro-tabs { flex-direction: column; }
}
