/* KL Prépa — page publique « Parents » (src/pages/parents.astro), sur les jetons de landing.css : le cercle de l'écusson
   (disques numérotés, pastilles rondes, interrupteur), des champs de couleur, et des pièces de l'espace parent en HTML. */
.pp {
  --sec: clamp(88px, 10vw, 144px);
  --pp-peach: #ffeedd; --pp-peach-ink: #a04f00;
  --pp-rose: #fde8ee; --pp-rose-ink: #a82c58;
  --pp-sky-ink: #1b56ad; --pp-mint-ink: #1a6e40;
  --pp-line: #dfe5f0;
}
.pp ul, .pp ol { margin: 0; padding: 0; list-style: none; }
.pp h2 { font-size: clamp(2rem, 1.1rem + 3.4vw, 3.75rem); letter-spacing: -0.035em; text-wrap: balance; }
.pp h3 { letter-spacing: -0.025em; }
.pp .ul { position: relative; display: inline-block; white-space: nowrap; }
.pp .ul svg { position: absolute; left: -2%; bottom: -.17em; width: 104%; height: auto; overflow: visible; }
.pp .ul path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .pp .ul path { transition: stroke-dashoffset .8s var(--ease) .45s; }
.js .pp :is(h1, h2):not(.in) .ul path { stroke-dashoffset: 1; }
.pp-head { display: grid; gap: 18px; max-width: 46rem; margin-bottom: clamp(32px, 4.4vw, 64px); }
.pp-head .sub { max-width: 34em; font-size: var(--step-lead); line-height: 1.38; color: var(--muted); text-wrap: pretty; }
.pp .pt { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pp .ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; }
.pp .ico.rose { background: var(--pp-rose); color: var(--pp-rose-ink); }
.pp .ico.peach { background: var(--pp-peach); color: var(--pp-peach-ink); }
.pp .ico.sky { background: var(--f-sky); color: var(--pp-sky-ink); }
.pp .btn-o .hi { flex: none; }

/* ---------- hero: the words on the left, a parent's notebook on a navy board on the right ---------- */
.pp-hero { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: center; gap: clamp(28px, 5vw, 88px); padding-top: clamp(24px, 4vw, 56px); }
.pp-eye { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 16px; border-radius: 999px; background: var(--paper); font-size: var(--step-small); font-weight: 600; }
.pp-eye .dot { width: 10px; height: 10px; }
.pp-hero h1 { margin-top: clamp(18px, 2.4vw, 28px); font-size: clamp(2.375rem, 1.1rem + 4.4vw, 5rem); letter-spacing: -0.04em; line-height: 1.02; text-wrap: balance; }
.pp-hero .lede { margin-top: clamp(20px, 2.6vw, 30px); max-width: 31em; font-size: var(--step-lead); line-height: 1.38; color: var(--muted); text-wrap: pretty; }
.pp-hero .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: clamp(24px, 3vw, 38px); }

.pp-board { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; width: 100%; max-width: 560px; min-height: clamp(420px, 40vw, 560px); margin-inline: auto; padding: 56px 20px; border-radius: clamp(28px, 3vw, 40px); background: var(--ink); }
.pp-orbits { position: absolute; z-index: -1; left: 50%; top: 50%; }
.pp-orbits span { position: absolute; left: 0; top: 0; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%; border: 1px solid rgba(255, 255, 255, .12); animation: kl-spin var(--t) linear infinite; }
.pp-orbits span::after { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -5px; border-radius: 50%; background: var(--c); }
.pp-orbits span:nth-child(1) { --s: 420px; --t: 46s; --c: var(--accent); }
.pp-orbits span:nth-child(2) { --s: 700px; --t: 80s; --c: var(--f-mint); border-style: dashed; animation-direction: reverse; }
.pp-note { position: relative; z-index: 1; width: min(100%, 360px); padding: 18px 18px 16px; border-radius: 24px; background: var(--paper); color: var(--ink); rotate: -2.5deg; box-shadow: 0 34px 60px -24px rgba(0, 4, 16, .85); }
.pp-note .hl { margin-top: 10px; font-size: 1.1875rem; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.pp-cal { display: grid; gap: 5px; margin-top: 14px; }
.pp-cal p { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 5px; }
.pp-cal .wd span { text-align: center; font-size: 11px; font-weight: 600; color: var(--muted); }
.pp-cal .wk span { display: grid; place-items: center; aspect-ratio: 1; border-radius: 9px; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-cal .l0 { background: #eef1f7; }
.pp-cal .l1 { background: #d8efe1; color: var(--pp-mint-ink); }
.pp-cal .l2 { background: #9fd9b6; color: #0d3d22; }
.pp-cal .l3 { background: var(--f-pc); color: var(--paper); }
.pp-cal .wk.now span { box-shadow: inset 0 0 0 1.5px rgba(0, 26, 65, .14); }
.pp-note .last { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pp-line); font-size: 13px; color: var(--muted); }
.pp-note .last b { color: var(--ink); font-weight: 600; }
.pp-stk { position: absolute; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: center; width: var(--w); height: var(--w); padding: 0 12px; border-radius: 50%; text-align: center; color: var(--ink); font-size: 11.5px; font-weight: 500; line-height: 1.12;
  box-shadow: 0 20px 38px -14px rgba(0, 4, 16, .7); animation: kl-bob 6.5s ease-in-out infinite alternate; }
.pp-stk b { font-size: 2.2em; font-weight: 500; letter-spacing: -0.03em; line-height: 1; margin-bottom: 3px; font-variant-numeric: tabular-nums; }
.pp-board .pp-stk.peach { --w: 118px; right: 5%; top: 6%; background: var(--accent); rotate: 8deg; }
.pp-board .pp-stk.mint { --w: 104px; left: 5%; bottom: 6%; background: var(--f-mint); rotate: -8deg; animation-delay: -3s; }

/* ---------- the four questions: the question on the left, the answer and a piece of the space on the right ---------- */
.pp-qs { margin-top: var(--sec); }
.pp-q { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px clamp(24px, 5vw, 88px); align-items: start; padding-block: clamp(28px, 3.6vw, 48px); border-top: 1px solid #d7deea; }
.pp-q:last-child { border-bottom: 1px solid #d7deea; }
.pp-q .q { display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px); }
.pp .n { flex: none; display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: 1.25rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.pp-q h3 { padding-top: 4px; font-size: clamp(1.625rem, 1.1rem + 1.7vw, 2.5rem); line-height: 1.08; text-wrap: balance; }
.pp-q .a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(18px, 2.4vw, 36px); align-items: start; }
.pp-q .a > p { font-size: var(--step-body); line-height: 1.5; color: var(--muted); text-wrap: pretty; }
.pp .pz { padding: 16px 18px; border-radius: 22px; background: var(--paper); color: var(--ink); font-size: 13.5px; line-height: 1.35; box-shadow: 0 1px 2px rgba(0, 26, 65, .04), 0 22px 44px -26px rgba(0, 26, 65, .4); }
.pp .pz.sky { background: var(--f-sky); box-shadow: none; }
.pp .pz .pt { margin-bottom: 12px; }
.pp .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.pp .days li { display: grid; justify-items: center; gap: 6px; }
.pp .days b { display: grid; place-items: center; width: 100%; max-width: 40px; aspect-ratio: 1; border-radius: 50%; background: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; }
.pp .days .l0 b { background: transparent; box-shadow: inset 0 0 0 1.5px rgba(0, 26, 65, .18); color: var(--muted); }
.pp .days .l2 b { background: #9fd9b6; color: #0d3d22; }
.pp .days .l3 b { background: var(--f-pc); color: var(--paper); }
.pp .days small { font-size: 11px; color: var(--muted); }
.pp .alerts { display: grid; gap: 4px; padding: 8px; }
.pp .alerts li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 16px; }
.pp .alerts li:first-child { background: #fdf1f4; }
.pp .alerts b { display: block; font-weight: 600; }
.pp .alerts small { display: block; margin-top: 1px; color: var(--muted); font-size: 12.5px; }
.pp .split { display: flex; gap: 4px; height: 52px; margin-bottom: 14px; }
.pp .split span { min-width: 0; display: flex; flex-direction: column; justify-content: center; padding: 0 10px; border-radius: 12px; font-size: 11.5px; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pp .split b { font-size: 1.125rem; font-weight: 600; }
.pp .split .mint { background: var(--f-mint); color: #0d3d22; }
.pp .split .sky { background: var(--f-sky); color: #123f80; }
.pp .split .peach { background: var(--pp-peach); color: #5a3206; }
.pp .row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--pp-line); }
.pp .row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.pp .row b { font-variant-numeric: tabular-nums; font-weight: 600; }
.pp .row .ok { color: var(--pp-mint-ink); }
.pp .row .low { color: var(--pp-peach-ink); }
.pp .dot.ma { background: var(--f-maths); } .pp .dot.pc { background: var(--f-pc); }
.pp .agenda { display: grid; gap: 10px; }
.pp .ev { display: flex; align-items: center; gap: 12px; }
.pp .ev b { display: block; font-weight: 600; }
.pp .ev small { display: block; color: var(--muted); font-size: 12.5px; }
.pp .date { flex: none; display: grid; justify-items: center; align-content: center; width: 54px; height: 54px; border-radius: 50%; background: var(--f-sky); color: #123f80; line-height: 1; }
.pp .date b { font-size: 1.125rem; margin: 1px 0; }
.pp .date small { font-size: 10px; color: inherit; }
.pp .ev.hw .date { background: var(--pp-peach); color: #5a3206; }
.pp .say { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 12px 14px; border-radius: 16px; background: var(--ground); }
.pp .say .hi { flex: none; color: var(--muted); }
.pp .say span { flex: 1; min-width: 0; font-style: italic; }
.pp .say b { flex: none; padding: 6px 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }

/* ---------- the AI assistant: a mint field, the one decision a parent takes, shown as its switch ---------- */
.pp-ai { margin-top: var(--sec); }
.pp-ai .field { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: clamp(28px, 4vw, 72px); padding: clamp(28px, 5vw, 80px); border-radius: clamp(28px, 3vw, 44px); background: var(--f-mint); }
.pp-ai .k { display: inline-flex; min-height: 36px; align-items: center; padding: 0 14px; border-radius: 999px; background: var(--paper); font-size: var(--step-small); font-weight: 600; }
.pp-ai h2 { margin-top: 18px; }
.pp-ai .d { margin-top: 18px; max-width: 36em; font-size: var(--step-body); line-height: 1.5; color: #24405a; text-wrap: pretty; }
.pp-ai .facts { display: grid; gap: 16px; margin-top: clamp(24px, 3vw, 36px); }
.pp-ai .facts li { display: flex; align-items: flex-start; gap: 14px; }
.pp-ai .facts .ico { width: 44px; height: 44px; background: var(--paper); color: var(--pp-mint-ink); }
.pp-ai .facts p { padding-top: 2px; line-height: 1.45; color: #24405a; }
.pp-ai .facts b { display: block; color: var(--ink); font-weight: 600; }
.pp-switch { position: relative; width: min(100%, 360px); margin-inline: auto; padding: 20px; border-radius: 28px; background: var(--paper); rotate: 2deg; box-shadow: 0 34px 60px -30px rgba(13, 61, 34, .55); }
.pp-switch .state { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; padding: 16px 18px; border-radius: 20px; background: var(--ground); }
.pp-switch .state small { display: block; color: var(--muted); font-size: 13px; }
.pp-switch .state b { display: block; font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.pp-switch .sw { position: relative; flex: none; width: 68px; height: 38px; border-radius: 999px; background: var(--ink); transition: background-color .4s var(--ease) .5s; }
.pp-switch .sw::after { content: ""; position: absolute; top: 4px; left: 34px; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); transition: left .45s cubic-bezier(.3, 1.4, .5, 1) .5s, background-color .4s .5s; }
.js .pp-ai .field:not(.in) .sw { background: #c5cee0; }
.js .pp-ai .field:not(.in) .sw::after { left: 4px; background: var(--paper); }
.pp-switch .since { margin-top: 14px; font-size: 13.5px; color: var(--muted); }
.pp-switch .adult { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--pp-line); font-size: 13.5px; }

/* ---------- what stays with the child ---------- */
.pp-sees { margin-top: var(--sec); }
.pp-sees .two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); }
.pp-sees .col { padding: clamp(24px, 3vw, 44px); border-radius: clamp(28px, 3vw, 40px); }
.pp-sees .see { background: var(--paper); }
.pp-sees .keep { background: var(--f-step); }
.pp-sees .st { display: flex; align-items: center; gap: 10px; font-size: clamp(1.25rem, 1rem + .8vw, 1.625rem); font-weight: 500; letter-spacing: -0.02em; }
.pp-sees ul { display: grid; gap: 14px; margin-top: clamp(18px, 2vw, 26px); }
.pp-sees li { display: flex; align-items: flex-start; gap: 12px; line-height: 1.4; }
.pp-sees li .hi { flex: none; width: 28px; height: 28px; padding: 5px; border-radius: 50%; margin-top: -2px; }
.pp-sees .see li .hi { background: var(--f-mint); color: var(--pp-mint-ink); }
.pp-sees .keep li .hi { background: var(--paper); color: var(--muted); }

/* ---------- how it starts: three numbered steps and the child's « Mes parents » form ---------- */
.pp-how { margin-top: var(--sec); }
.pp-how .grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 72px); align-items: center; }
.pp-how .steps { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.pp-how .steps li { display: flex; align-items: flex-start; gap: clamp(14px, 1.6vw, 22px); }
.pp-how .steps .n { background: var(--accent); color: var(--on-accent); }
.pp-how .steps h3 { padding-top: 10px; font-size: clamp(1.375rem, 1.05rem + 1vw, 1.875rem); line-height: 1.1; }
.pp-how .steps p { margin-top: 8px; max-width: 30em; color: var(--muted); line-height: 1.5; }
.pp-invite { position: relative; width: min(100%, 380px); margin-inline: auto; padding: 20px 20px 22px; border-radius: 28px; background: var(--paper); color: var(--ink); rotate: -2deg; box-shadow: 0 1px 2px rgba(0, 26, 65, .04), 0 30px 56px -30px rgba(0, 26, 65, .45); }
.pp-invite .lbl { margin-top: 18px; font-size: 14px; font-weight: 600; }
.pp-invite .fld { display: flex; align-items: center; gap: 10px; height: 50px; margin-top: 8px; padding: 0 16px; border-radius: 16px; box-shadow: inset 0 0 0 1.5px #d3dbea; color: var(--muted); font-size: 15px; }
.pp-invite .fld span { color: var(--ink); font-weight: 500; }
.pp-invite .send { display: grid; place-items: center; height: 48px; margin-top: 10px; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 15px; font-weight: 600; }
.pp-invite .note { margin-top: 12px; font-size: 13px; color: var(--muted); }
.pp-invite .pp-stk.small { --w: 108px; right: -26px; top: -40px; background: var(--f-sky); rotate: 9deg; }

/* ---------- the end: a sky band for the family whose child has no account yet ---------- */
.pp-end { margin-top: var(--sec); }
.pp-end .band { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px clamp(28px, 4vw, 64px); padding: clamp(28px, 4.4vw, 64px); border-radius: clamp(28px, 3vw, 40px); background: var(--f-sky); }
.pp-end h2 { font-size: clamp(1.75rem, 1.1rem + 2.2vw, 2.875rem); }
.pp-end .band > div > p { margin-top: 14px; max-width: 40em; color: #24405a; line-height: 1.5; text-wrap: pretty; }
.pp-end .band a:not(.btn-o) { color: var(--ink); font-weight: 600; text-underline-offset: 4px; }
@media (hover: hover) and (pointer: fine) { .pp-end .band a:not(.btn-o):hover { color: var(--f-maths); } }
.pp-end .acts { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- smaller screens ---------- */
@media (max-width: 1100px) {
  .pp-q { grid-template-columns: minmax(0, 1fr); }
  .pp-q .a { padding-left: calc(52px + clamp(14px, 1.6vw, 22px)); }
}
@media (max-width: 900px) {
  .pp-hero, .pp-ai .field, .pp-how .grid { grid-template-columns: minmax(0, 1fr); }
  .pp-end .band { grid-template-columns: minmax(0, 1fr); }
  .pp-how .pp-invite { margin-top: 32px; }
}
@media (max-width: 700px) {
  .pp-q .a { grid-template-columns: minmax(0, 1fr); padding-left: 0; }
  .pp-sees .two { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 520px) {
  .pp-board { min-height: 0; padding: 96px 14px 104px; }
  .pp-board .pp-stk.peach { --w: 100px; right: 4%; top: 3%; }
  .pp-board .pp-stk.mint { --w: 92px; left: 4%; bottom: 3%; }
  .pp .n { width: 44px; height: 44px; font-size: 1.0625rem; }
  .pp-invite .pp-stk.small { --w: 92px; right: -6px; top: -48px; }
  .pp-hero .acts .btn-o, .pp-end .acts .btn-o { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .pp-orbits span, .pp-stk { animation: none; }
  .js .pp-ai .field:not(.in) .sw { background: var(--ink); }
  .js .pp-ai .field:not(.in) .sw::after { left: 34px; background: var(--accent); }
}

/* phones: the tilted invitation card and its floating sticker must not widen the page */
@media (max-width: 640px) { .pp-how { overflow-x: clip; } }
