/* =====================================================
 * Espace parent — branded screens (same visual language
 * as SkillsBook / prof dashboard).
 * ===================================================== */

.par-page { max-width: 1280px; margin: 0 auto; padding: 24px 28px; }

/* Hero */
.par-hero {
  background: linear-gradient(120deg, oklch(0.97 0.025 79.4) 0%, oklch(0.98 0.03 152.5) 100%);
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 22px 26px;
  display: flex;
  align-items: flex-end;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.par-hero__greeting { flex-grow: 1; min-width: 240px; }
.par-hero__greeting h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}
.par-hero__greeting .sub { color: #6b7280; font-size: 13px; margin: 6px 0 0; }
.par-chips { display: flex; gap: 12px; flex-wrap: wrap; }
.par-chip {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: center;
  min-width: 86px;
}
.par-chip__v { font-family: "Playfair Display", serif; font-size: 22px; line-height: 1; }
.par-chip__l { font-size: 10px; color: #6b7280; letter-spacing: 0.08em; text-transform: uppercase; margin-top: 4px; }

/* Layout */
.par-cols { display: grid; grid-template-columns: 1.4fr 1fr; gap: 18px; }
@media (max-width: 920px) { .par-cols { grid-template-columns: 1fr; } }

/* Enfant cards grid */
.par-enfants {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
.par-enfant {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 18px 18px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, transform 0.1s;
}
.par-enfant:hover { border-color: var(--hudayi-green-soft, oklch(0.62 0.10 152.5)); }
.par-enfant__head { display: flex; align-items: center; gap: 12px; }
.par-enfant__avatar {
  width: 48px; height: 48px;
  border-radius: 50%;
  background: oklch(0.95 0.04 152.5);
  color: var(--hudayi-green, oklch(0.467 0.131 152.5));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 17px;
}
.par-enfant__name {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 19px;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}
.par-enfant__sub { font-size: 11.5px; color: #6b7280; margin-top: 2px; }

.par-enfant__stat {
  background: #fafaf7;
  border-radius: 8px;
  padding: 8px 10px;
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 12px;
  color: #6b7280;
}
.par-enfant__stat strong {
  color: #2a2e2a;
  font-size: 13px;
  font-weight: 500;
}
.par-enfant__stat .ico {
  font-size: 16px;
  flex-shrink: 0;
}

.par-enfant__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.par-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  border: 1px solid #e5e7eb;
  background: #fff;
  color: #2a2e2a;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.par-btn:hover {
  border-color: var(--hudayi-green-soft, oklch(0.62 0.10 152.5));
  background: #fafaf7;
  transform: translateY(-1px);
  color: #2a2e2a;
  text-decoration: none;
}
.par-btn--primary {
  background: var(--hudayi-green, oklch(0.467 0.131 152.5));
  color: #fff;
  border-color: var(--hudayi-green, oklch(0.467 0.131 152.5));
}
.par-btn--primary:hover { background: oklch(0.42 0.13 152.5); color: #fff; }

/* Side card (reuse prof tokens) */
.par-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 14px;
}
.par-card__header {
  padding: 12px 18px;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  align-items: center;
  gap: 10px;
}
.par-card__header h2 {
  margin: 0;
  font-size: 14.5px;
  font-weight: 500;
}
.par-card__header .count {
  margin-left: auto;
  font-size: 12px;
  color: #6b7280;
}
.par-card__header .ico { font-size: 16px; }

.par-empty {
  padding: 14px 18px;
  color: #6b7280;
  font-size: 13px;
  text-align: center;
}

/* Next seance card body */
.par-next {
  padding: 16px 18px;
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 14px;
  align-items: center;
}
.par-next__date {
  text-align: center;
  background: oklch(0.95 0.04 152.5);
  border-radius: 8px;
  padding: 6px 0;
  color: var(--hudayi-green, oklch(0.467 0.131 152.5));
}
.par-next__date .d {
  display: block;
  font-family: "Playfair Display", serif;
  font-size: 22px;
  line-height: 1;
}
.par-next__date .m {
  display: block;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 2px;
  color: #6b7280;
}
.par-next__main .l1 { font-weight: 500; font-size: 14px; }
.par-next__main .l2 { font-size: 12px; color: #6b7280; margin-top: 2px; }

/* Payments list */
.par-pay {
  padding: 10px 18px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
}
.par-pay:first-of-type { border-top: 0; }
.par-pay__amount {
  font-family: "Playfair Display", serif;
  font-size: 16px;
  color: #2a2e2a;
  margin-left: auto;
  font-variant-numeric: tabular-nums;
}
.par-pay__date { font-size: 11px; color: #6b7280; }
.par-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 500;
}
.par-pill--paid { background: #dcfce7; color: #166534; }
.par-pill--pending { background: #fef3c7; color: #92400e; }
.par-pill--failed { background: #fee2e2; color: #991b1b; }

/* Sub-page back link */
.par-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: #6b7280;
  text-decoration: none;
  margin-bottom: 12px;
}
.par-back:hover { color: var(--hudayi-green, oklch(0.467 0.131 152.5)); text-decoration: none; }

/* Sub-page hero (lighter than dashboard hero) */
.par-sub-hero {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 18px;
}
.par-sub-hero__avatar {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: oklch(0.95 0.04 152.5);
  color: var(--hudayi-green, oklch(0.467 0.131 152.5));
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; font-size: 19px;
}
.par-sub-hero__main { flex-grow: 1; min-width: 0; }
.par-sub-hero__main h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 26px;
  font-weight: 400;
  margin: 0;
  line-height: 1.1;
}
.par-sub-hero__main .sub { color: #6b7280; font-size: 13px; margin: 4px 0 0; }
.par-sub-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.par-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 500;
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #2a2e2a;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.par-tab:hover {
  border-color: var(--hudayi-green-soft, oklch(0.62 0.10 152.5));
  background: #fafaf7;
  transform: translateY(-1px);
  color: #2a2e2a;
  text-decoration: none;
}
.par-tab--active {
  background: var(--hudayi-green, oklch(0.467 0.131 152.5));
  color: #fff;
  border-color: var(--hudayi-green, oklch(0.467 0.131 152.5));
}
.par-tab--active:hover { color: #fff; background: oklch(0.42 0.13 152.5); }
