/* prepare-fr: the 8-week plan as a table that reads as a chart (one hue, light to dark = more minutes, the number in every
   cell), a week card over a photo, and the 167-minute simulation to scale. Colours from site.css tokens only. */

.pg .intro{max-width:720px}
.pg-plan{padding-top:36px}

/* ---------------------------------------------------------------- the plan */
.plan .tool-t{margin:0}
.plan .tool-b{padding:12px 22px 18px}
.pt{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:3px;font-variant-numeric:tabular-nums;min-width:820px}
.pt .ph td:first-child{width:250px}
.pt th,.pt td{font-weight:500}
.pt .ph th{font-size:13px;line-height:1.3;color:var(--muted);text-align:left;padding:4px 10px 6px;border-bottom:2px solid var(--line-strong)}
.pt .wk th{white-space:nowrap;font-size:14px;color:var(--ink);font-weight:600;text-align:center;padding:8px 4px 6px}
.pt tbody th{text-align:left;font-size:15px;line-height:1.3;padding:0 14px 0 0;white-space:nowrap}
.pt tbody th .ic{color:var(--primary);margin-right:10px;vertical-align:-4px}
.pt tbody td{height:48px;text-align:center;font-size:16px;border-radius:6px;color:var(--ink)}
.pt .v1{background:color-mix(in srgb,var(--primary) 9%,var(--surface))}
.pt .v2{background:color-mix(in srgb,var(--primary) 22%,var(--surface))}
.pt .v3{background:color-mix(in srgb,var(--primary) 40%,var(--surface))}
.pt .v4{background:var(--primary);color:var(--on-primary);font-weight:600}
.plan .tool-f{color:var(--muted)}

/* ---------------------------------------------------------------- weeks 1-2: the checklist */
.todo{list-style:none;margin:0;padding:6px 22px 10px}
.todo li{display:grid;grid-template-columns:32px minmax(0,1fr);gap:12px;padding:16px 0;border-top:1px solid var(--line)}
.todo li:first-child{border-top:0}
.tk{width:28px;height:28px;border-radius:999px;background:var(--fix-tint);color:var(--fix);display:flex;align-items:center;justify-content:center;margin-top:1px}
.todo h3{font-size:17px;line-height:1.4;font-weight:600}
.todo p{font-size:15px;line-height:1.55;color:var(--muted);margin-top:4px}
.todo .tl{font-size:15px;min-height:44px}

/* ---------------------------------------------------------------- weeks 3-6: skills + the week card over a photo */
.skills{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:22px}
.skills li{display:grid;grid-template-columns:22px minmax(0,1fr);gap:14px}
.skills li>.ic{color:var(--primary);margin-top:3px}
.skills h3{font-size:20px;line-height:1.35;font-weight:600}
.skills p{font-size:16px;line-height:1.6;color:var(--muted);margin-top:4px;max-width:56ch}
.skills .tl,.todo .tl{font-size:15px;margin-top:2px}
.pw{position:relative;align-self:start}
.pw-pic{position:relative;aspect-ratio:520/400;border-radius:var(--r-frame);border:1px solid var(--line);overflow:hidden;overflow:clip;background:var(--field);
 background-image:repeating-linear-gradient(to bottom,transparent 0 39px,var(--rule) 39px 40px)}
.pw-pic .photo{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
/* the week card sits under the photo and overlaps its lower edge, so it never covers the person or the laptop (CHOICES.md) */
.pw-card{position:relative;margin:-56px 28px 0;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-card);
 box-shadow:var(--shadow);padding:16px 18px}
.pw-h{font-size:13px;font-weight:500;color:var(--muted);padding-bottom:10px;border-bottom:1px solid var(--line)}
.days{list-style:none;margin:6px 0 0;padding:0}
.days li{display:grid;grid-template-columns:44px 18px minmax(0,1fr) auto;gap:10px;align-items:center;font-size:15px;padding:7px 0}
.days .ic{color:var(--primary)}
.days .dn{font-weight:600}
.days .dm{color:var(--muted);font-size:14px}
.days li.off{grid-template-columns:auto minmax(0,1fr);color:var(--muted);border-top:1px dashed var(--line-strong);margin-top:4px;padding-top:10px}
.days li.off .dn{color:var(--muted);font-weight:500}

/* ---------------------------------------------------------------- weeks 7-8: the simulation to scale */
.sim{margin:0;max-width:1000px}
.sim-bar{display:grid;grid-template-columns:35fr 60fr 60fr 12fr;gap:3px;height:44px}
.sb{display:block;border-radius:4px;background:var(--primary)}
.sb.b1{border-radius:10px 4px 4px 10px}
.sb.b3{background:var(--primary)}
.sb.b4{border-radius:4px 10px 10px 4px}
.sim-l{list-style:none;margin:10px 0 0;padding:0;display:grid;grid-template-columns:35fr 60fr 60fr 12fr;gap:3px}
.sim-l li{display:flex;flex-direction:column;min-width:0;padding-right:8px}
.sim-l b{font-size:15px;line-height:1.35;font-weight:600}
.sim-l span{font-size:14px;color:var(--muted)}
.sim-c{margin-top:16px;font-size:15px;line-height:1.55;color:var(--muted)}

/* ---------------------------------------------------------------- narrower screens */
@media (max-width:960px){.pw{max-width:560px}}
@media (max-width:860px){.pg-plan{padding-top:24px}}
@media (max-width:600px){
 .plan .tool-b{padding:10px 8px 14px}
 .pt{min-width:540px}
 .pt .ph td:first-child{width:118px}
 .pt .ph th{font-size:12px;padding:4px 6px 6px}
 .pt .wk th{font-size:13px}
 .pt tbody th{position:sticky;left:0;z-index:1;background:var(--surface);white-space:normal;font-size:13px;line-height:1.25;padding-right:8px}
 .pt tbody th .ic{display:block;margin:0 0 4px}
 .pt tbody td{height:52px;font-size:15px}
 .pw-card{margin:-48px 12px 0}
 /* no photo yet: the empty frame goes and the week card stands alone */
 .pw-pic:has(> .no-photo){display:none}
 .pw-pic:has(> .no-photo)+.pw-card{margin:0;box-shadow:none}
 .sim-bar{height:36px}
 .sim-l{grid-template-columns:1fr 1fr;gap:10px 12px}
 .sim-l li{position:relative;padding-left:18px}
 .sim-l li::before{content:"";position:absolute;left:0;top:5px;width:10px;height:10px;border-radius:2px;background:var(--primary)}
 .skills h3{font-size:18px}
}

/* ---------------------------------------------------------------- the plan scrolls sideways when the window is narrow */
.plan .tool-b{position:relative;overflow:visible}
.pt-sc{overflow-x:auto;border-radius:8px}
.pt-sc:focus-visible{outline:2px solid var(--primary);outline-offset:2px}
.plan .tool-b::after{content:"";position:absolute;top:12px;bottom:18px;right:22px;width:44px;pointer-events:none;opacity:0;transition:opacity .2s;
 background:linear-gradient(to right,color-mix(in srgb,var(--surface) 0%,transparent),var(--surface) 85%)}
.plan .tool-b[data-more]::after{opacity:1}
@media (max-width:600px){.plan .tool-b::after{top:10px;bottom:14px;right:8px;width:36px}}
@media (prefers-reduced-motion:reduce){.plan .tool-b::after{transition:none}}

/* ---------------------------------------------------------------- phones under 480 px: the plan as stacked week cards
   (weeks with the same plan share one card: 1-2, 3-6, 7-8); the heatmap above stays for wider screens */
.wk-list{display:none}
@media (max-width:480px){
 .pt-sc{display:none}
 .plan .tool-b::after{display:none}
 .plan .tool-b{padding:14px 12px 16px}
 .wk-list{display:flex;flex-direction:column;gap:12px}
 .wk-c{background:var(--band);border-radius:12px;padding:14px 14px 10px}
 .wk-c h3{font-size:17px;line-height:1.35;font-weight:600}
 .wk-c ul{list-style:none;margin:10px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
 .wk-c li{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:10px;align-items:center;font-size:15px;line-height:1.3;min-height:40px}
 .wk-c li .ic{color:var(--primary)}
 .wk-m{min-width:76px;text-align:center;padding:8px 8px;border-radius:6px;font-weight:500;font-variant-numeric:tabular-nums}
 .wk-m.v1{background:color-mix(in srgb,var(--primary) 9%,var(--surface))}
 .wk-m.v2{background:color-mix(in srgb,var(--primary) 22%,var(--surface))}
 .wk-m.v3{background:color-mix(in srgb,var(--primary) 40%,var(--surface))}
 .wk-m.v4{background:var(--primary);color:var(--on-primary);font-weight:600}
}
