/* Espace parent: sunken header with nav, content up to 1216px. Responsive down to phone width. */
.parent { min-height: 100vh; display: flex; flex-direction: column; }
.parent__header {
  background: var(--surface-sunken);
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) var(--space-8);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  flex-wrap: wrap;
}
.parent__space { font-size: 14px; font-weight: 700; color: var(--ink-muted); margin-left: var(--space-1); letter-spacing: 0; }
.parent__nav { display: flex; gap: var(--space-1); flex-wrap: wrap; }
.parent__nav-link {
  height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  color: var(--ink-muted);
  font-size: 15px;
  font-weight: 700;
  display: flex;
  align-items: center;
  text-decoration: none;
}
.parent__nav-link:hover { color: var(--ink); }
.parent__nav-link[aria-current="page"] { background: var(--surface-raised); color: var(--ink); font-weight: 800; }
.parent__spacer { flex-grow: 1; }
.parent__back { font-size: 15px; font-weight: 700; text-decoration: none; color: var(--ink-muted); }
.parent__back:hover { color: var(--ink); }
.parent__main {
  flex-grow: 1;
  width: 100%;
  max-width: 1216px;
  margin: 0 auto;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.parent__title { font-size: 32px; line-height: 38px; font-weight: 800; }
.parent__lead { font-size: 16px; color: var(--ink-muted); margin-top: var(--space-1); }

.profile-header { display: flex; align-items: center; gap: var(--space-3); }
.profile-header__name { font-size: 20px; font-weight: 800; }
.profile-header__meta { font-size: 14px; font-weight: 600; color: var(--ink-muted); }
.profile-header__meta a { color: var(--ink-muted); }

.placeholder {
  background: var(--surface-raised);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  padding: var(--space-8);
  color: var(--ink-muted);
}

/* Profile list */
.profile-list { list-style: none; margin: 0; padding: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); }
.profile-list__item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  flex-wrap: wrap;
}
.profile-list__item + .profile-list__item { border-top: 1px solid var(--line); }
.profile-list__name { flex: 1 1 160px; font-weight: 700; }
.profile-list__item--archived .avatar, .profile-list__item--archived .profile-list__name { opacity: 0.55; }
.profile-list__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px var(--space-2);
  border-radius: var(--radius-sm);
  background: var(--surface-sunken);
  color: var(--ink-muted);
}

.parent-form { max-width: 560px; }

@media (max-width: 640px) {
  .parent__header { padding: var(--space-3) var(--space-4); gap: var(--space-3); }
  .parent__main { padding: var(--space-6) var(--space-4); }
  .parent__title { font-size: 26px; line-height: 32px; }
}
.parent__main > .auth-card { margin: var(--space-8) auto 0; }

/* Énoncés des problèmes (§7.3): the review list of « Générer des gabarits ». */
.template-generation { max-width: 640px; }
.template-section { display: flex; flex-direction: column; gap: var(--space-3); }
.template-section__count { font-family: var(--font-num); color: var(--ink-muted); font-weight: 700; margin-left: var(--space-1); }
.template-section__empty { color: var(--ink-muted); }
.template-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.template-item { background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); padding: var(--space-4); display: flex; flex-direction: column; gap: var(--space-2); }
.template-item__meta { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.chip--trap { background: var(--star-soft); color: var(--ink); }
.template-item__text { font-size: 16px; line-height: 24px; font-weight: 600; }
.template-item__answer, .template-item__example { color: var(--ink-muted); }
.template-item__var { font-family: var(--font-num); font-size: 0.92em; background: var(--info-soft); color: var(--info); border-radius: 4px; padding: 0 3px; }
.template-item__actions { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.template-bank { list-style: none; margin: 0; padding: 0; background: var(--surface-raised); border: 1px solid var(--line); border-radius: var(--radius-md); max-width: 640px; }
.template-bank li { display: flex; justify-content: space-between; gap: var(--space-4); padding: var(--space-2) var(--space-4); font-size: 15px; }
.template-bank li + li { border-top: 1px solid var(--line); }

/* « Compte »: one checkbox per profile for the weekly recap */
.check-row { display: flex; align-items: center; gap: var(--space-3); min-height: 44px; font-size: 16px; font-weight: 600; }
.check-row input { width: 20px; height: 20px; accent-color: var(--brand); }

/* Rappel de rentrée (§12.3): a banner at the top of the parent space, a word and an icon, two buttons. */
.rentree-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--info);
  border-radius: var(--radius-md);
  background: var(--info-soft);
  color: var(--ink);
}
.rentree-banner > .icon { color: var(--info); flex-shrink: 0; }
.rentree-banner__text { flex: 1 1 240px; margin: 0; font-size: 16px; line-height: 24px; }
.rentree-banner__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.rentree-banner__form { display: contents; }
