/* Site de Tempo : mêmes jetons que l'app (style « Carnet », sombre « Encre bleu nuit », AgendaTheme.swift). */
:root {
  --window: #F2E9DC;
  --background: #FBF7F0;
  --card: #FFFEFB;
  --card-alt: #F8F3EA;
  --line: #E3D7C4;
  --line-soft: #F1EADF;
  --ink: #232842;
  --ink2: #4C5068;
  --ink3: #63667C;
  --accent: #3563D8;
  --accent-tint: #E4ECFD;
  --accent-deep: #2647A8;
  --honey: #F5B83D;
  --honey-deep: #5A3900;
  --honey-tint: #FDEFD0;
  --exam: #232842;
  --bubble: #FFFFFF;
  --shadow: 0 1px 2px rgba(35, 40, 66, 0.06), 0 8px 24px rgba(35, 40, 66, 0.08);
  --shadow-lg: 0 2px 4px rgba(35, 40, 66, 0.05), 0 24px 60px rgba(35, 40, 66, 0.13);
  --out: cubic-bezier(0.22, 1, 0.36, 1);
  --c-violet: #7C4DFF;
  color-scheme: light;
}
/* Sombre mis de côté : le site reste en clair (papier de Tempo). Remettre (prefers-color-scheme: dark) pour le réactiver. */
@media not all {
  :root {
    --window: #0B111D;
    --background: #0F1626;
    --card: #18223A;
    --card-alt: #212D4B;
    --line: #2B3857;
    --line-soft: #202B46;
    --ink: #E9EDF6;
    --ink2: #C3CBDC;
    --ink3: #9BA8C2;
    --accent: #8FB4FF;
    --accent-tint: rgba(143, 180, 255, 0.16);
    --accent-deep: #BCD2FF;
    --honey: #F7C66A;
    --honey-deep: #2B1D00;
    --honey-tint: rgba(247, 198, 106, 0.16);
    --exam: #0B111D;
    --bubble: #212D4B;
    --shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
    --shadow-lg: 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
}
h1, h2, h3 { font-family: ui-rounded, "SF Pro Rounded", -apple-system, system-ui, sans-serif; line-height: 1.15; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

header.top { display: flex; align-items: center; justify-content: space-between; padding: 20px 0; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--ink); text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.toplink { color: var(--ink2); text-decoration: none; font-size: 15px; }

.button {
  display: inline-block; padding: 13px 22px; border-radius: 12px; font-weight: 600;
  text-decoration: none; font-size: 16px; border: 0; cursor: pointer;
}
.button.primary { background: var(--honey); color: var(--honey-deep); }
.button.cta { min-height: 52px; padding: 15px 28px; font-size: 17px; transition: transform 100ms ease-out; }
.button.cta:active { transform: scale(0.97); }
.button[aria-disabled="true"] { opacity: 0.6; pointer-events: none; }
.note { color: var(--ink3); font-size: 14px; margin: 10px 0 0; }
.on-mobile { display: none; }

section { padding: 56px 0; }
section > h2 { font-size: 32px; text-align: center; margin: 0 0 32px; }
.card { background: var(--card); border-radius: 16px; padding: 22px; box-shadow: var(--shadow); }

/* ---------- Haut de page ---------- */
.hero { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: end; padding: 32px 0 28px; }
.hero h1 { font-size: clamp(40px, 6.2vw, 68px); letter-spacing: -0.025em; margin: 0; }
.hero .lead { font-size: 19px; color: var(--ink2); margin: 0 0 20px; max-width: 34em; }

/* ---------- Construction (copie de l'écran « On construit ton Tempo ») ---------- */
.build {
  position: relative; display: grid; grid-template-columns: 330px 1fr; gap: 22px;
  background: var(--card-alt); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-lg);
  margin-bottom: 24px;
}
.build-mascot { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 14px; }
.build-mascot img { width: 76px; height: auto; flex: none; }
.bubble {
  position: relative; margin: 0 0 18px; background: var(--bubble); color: var(--ink);
  border-radius: 16px; padding: 9px 13px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow);
}
.build-mascot .bubble::before {
  content: ""; position: absolute; left: -5px; bottom: 12px; width: 12px; height: 12px;
  background: var(--bubble); transform: rotate(45deg); border-radius: 2px;
}
.build-title { font-size: 28px; margin: 0 0 6px; text-align: left; }
.build-sub { margin: 0 0 18px; color: var(--ink2); font-size: 14px; }
.build-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.build-steps li {
  display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 14px;
  opacity: 0.6; transition: opacity 250ms ease-out, background-color 250ms ease-out, box-shadow 250ms ease-out;
}
.build-steps b { display: block; font-size: 15.5px; font-weight: 500; color: var(--ink3); }
.build-steps small { display: block; font-size: 13px; color: var(--ink2); opacity: 0; transform: translateY(-4px); transition: opacity 250ms ease-out, transform 250ms var(--out); }
.build-steps li.running, .build-steps li.done { opacity: 1; }
.build-steps li.running { background: var(--card); box-shadow: 0 4px 14px rgba(35, 40, 66, 0.06); }
.build-steps li.running b, .build-steps li.done b { font-weight: 600; color: var(--ink); }
.build-steps li.running small, .build-steps li.done small { opacity: 1; transform: none; }
.chk { flex: none; width: 22px; height: 22px; margin-top: 1px; }
.chk svg { width: 22px; height: 22px; overflow: visible; }
.chk .ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.chk .tick { fill: none; stroke: var(--accent-deep); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; }
li.running .ring { stroke: var(--accent); stroke-dasharray: 60; stroke-dashoffset: 60; transform: rotate(-90deg); transform-origin: center; animation: ringfill var(--dur, 3s) linear forwards; }
li.done .ring { fill: var(--accent-tint); stroke: var(--accent-tint); }
li.done .tick { stroke-dashoffset: 0; transition: stroke-dashoffset 220ms var(--out); }
@keyframes ringfill { to { stroke-dashoffset: 0; } }
.build .week-grid, .build .week-load, .build .load-caption { transition: opacity 400ms ease-out; }
.build.clearing .week-grid, .build.clearing .week-load, .build.clearing .load-caption { opacity: 0; }

.build-week { background: var(--card); border-radius: 22px; padding: 20px 20px 16px; box-shadow: 0 8px 18px rgba(35, 40, 66, 0.06); min-width: 0; }
.week-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.overline { font-size: 13px; font-weight: 600; color: var(--ink3); }
.legend { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--ink3); }
.legend i { display: inline-block; width: 14px; height: 10px; border-radius: 3px; margin-left: 8px; }
.lg-course { background: var(--accent); }
.lg-free { background: var(--honey-tint); outline: 1px solid var(--honey); outline-offset: -1px; }
.lg-rev { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.week-days { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); margin-bottom: 6px; }
.week-days span { text-align: center; font-size: 12px; color: var(--ink3); font-weight: 600; line-height: 1.2; }
.week-days b { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; color: var(--ink); margin-top: 2px; }
.week-days .today b { background: var(--accent); color: #fff; }
.week-body { display: grid; grid-template-columns: 34px 1fr; }
.week-hours { position: relative; }
.week-hours span { position: absolute; right: 6px; font-size: 11px; color: var(--ink3); transform: translateY(-50%); }
.week-grid { position: relative; height: 470px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.week-grid > div { position: relative; border-left: 1px solid var(--line-soft); }
.week-grid .hline { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-soft); }

.blk { position: absolute; left: 3px; right: 3px; border-radius: 9px; overflow: hidden; opacity: 0; transition: opacity 200ms ease-out; }
.blk.in { opacity: 1; }
.blk .base { position: absolute; inset: 0; background: var(--line-soft); }
.blk .fill { position: absolute; inset: 0; opacity: 0; transition: opacity 400ms ease-out; }
.blk .txt { position: relative; display: block; padding: 4px 6px; font-size: 11px; font-weight: 600; line-height: 1.2; opacity: 0; transition: opacity 350ms ease-out; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.blk.colored .fill, .blk.colored .txt { opacity: 1; }
.blk.course .fill { background: var(--c); }
.blk.course .txt { color: #fff; }
.blk.rev .fill { background: color-mix(in srgb, var(--c) 24%, var(--card)); border-left: 5px solid var(--c); }
.blk.rev .txt { color: var(--ink); padding-left: 9px; }
.band { position: absolute; left: 2px; right: 2px; border-radius: 6px; background: var(--honey-tint); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--honey) 55%, transparent); opacity: 0; transition: opacity 250ms ease-out; }
.band.in { opacity: 1; }
.marquee { position: absolute; border-radius: 9px; transform-origin: 0 0; transform: scale(0.02); opacity: 0; pointer-events: none; z-index: 2; }
.marquee.band-m { border-radius: 6px; }

.week-load { display: grid; grid-template-columns: 34px repeat(7, minmax(0, 1fr)); margin-top: 12px; align-items: center; }
.week-load .bar { height: 6px; margin: 0 6px; border-radius: 3px; background: var(--line-soft); overflow: hidden; }
.week-load .bar span { display: block; height: 100%; background: var(--honey); border-radius: 3px; transform-origin: left; transform: scaleX(0); transition: transform 900ms var(--out); }
.week-load .min { text-align: center; font-size: 11px; color: var(--ink3); margin-top: 4px; opacity: 0; transition: opacity 300ms ease-out 500ms; }
.week-load.on .min { opacity: 1; }
.load-caption { margin: 8px 0 0 34px; font-size: 12px; color: var(--ink3); opacity: 0; transition: opacity 300ms ease-out; }
.week-load.on + .load-caption { opacity: 1; }

.cursors { position: absolute; inset: 0; pointer-events: none; z-index: 5; }
.cur { position: absolute; left: 0; top: 0; width: 20px; height: 26px; opacity: 0; transition: opacity 200ms ease-out; filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.25)); }
.cur.on { opacity: 1; }
.cur svg { width: 20px; height: 26px; transform-origin: 2px 2px; transition: transform 90ms ease-out; }
.cur.press svg { transform: scale(0.84); }

/* ---------- Fonctions : vrais écrans, rejoués en boucle (data-s = étape de la scène) ---------- */
.feature { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: center; padding: 64px 0; }
.feature.flip .feature-text { order: 2; }
.feature h2 { text-align: left; font-size: 34px; margin: 0 0 14px; }
.feature-text p { color: var(--ink2); margin: 0 0 12px; max-width: 30em; }
.feature-text .aside { color: var(--ink3); font-size: 15px; }
.shot { position: relative; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); overflow: hidden; min-width: 0; }
.shot > * { transition: opacity 320ms ease-out; }
.shot.out > * { opacity: 0; }
.shot.snap, .shot.snap * { transition: none !important; }
.scene-cur { position: absolute; left: 0; top: 0; width: 20px; height: 26px; z-index: 6; pointer-events: none; opacity: 0; filter: drop-shadow(0 1.5px 2.5px rgba(0, 0, 0, 0.25)); }
.scene-cur.on { opacity: 1; }
.scene-cur svg { width: 20px; height: 26px; transform-origin: 2px 2px; transition: transform 90ms ease-out; }
.scene-cur.press svg { transform: scale(0.84); }

/* Aujourd'hui : l'après-midi passe au soir, la séance se fait, la suivante arrive */
.sky {
  position: relative; display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: end;
  padding: 26px 24px 22px; color: #fff; min-height: 230px; overflow: hidden;
  background: radial-gradient(120% 90% at 0% 110%, rgba(255, 168, 122, 0.62), transparent 55%), linear-gradient(180deg, #262A5C, #38357E 60%, #54468F);
}
.sky > * { position: relative; z-index: 1; }
.sky > .sky-day { position: absolute; inset: 0; z-index: 0; background: radial-gradient(90% 80% at 90% 0%, rgba(255, 236, 190, 0.55), transparent 60%), linear-gradient(180deg, #4F86D9, #77A6E8 60%, #A9C6EE); transition: opacity 1800ms ease-in-out; }
.moon { position: absolute; right: 26px; top: 20px; width: 26px; height: 26px; border-radius: 50%; background: #FFE2AE; box-shadow: 0 0 24px rgba(255, 226, 174, 0.5); }
.sky > .moon, .sky > .star { position: absolute; z-index: 0; }
.star { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: #fff; opacity: 0.8; }
.s1 { left: 40%; top: 22px; } .s2 { left: 62%; top: 44px; } .s3 { left: 78%; top: 70px; } .s4 { left: 30%; top: 58px; }
.sky > .moon { opacity: 0; transform: translateY(40px); transition: opacity 900ms ease-out, transform 1600ms var(--out); }
.sky > .star { opacity: 0; transition: opacity 600ms ease-out; }
.sky-clock { position: absolute !important; left: 24px; top: 18px; font-size: 13px; font-weight: 600; opacity: 0.85; font-variant-numeric: tabular-nums; }
[data-s]:not([data-s="0"]) .sky > .sky-day { opacity: 0; }
[data-s]:not([data-s="0"]) .sky > .moon { opacity: 1; transform: none; }
[data-s]:not([data-s="0"]) .sky > .star { opacity: 0.8; }
[data-s]:not([data-s="0"]) .sky > .s2 { opacity: 0.5; transition-delay: 400ms; }
[data-s]:not([data-s="0"]) .sky > .s3 { transition-delay: 700ms; }
[data-s]:not([data-s="0"]) .sky > .s4 { opacity: 0.6; transition-delay: 1000ms; }
.sky-mascot { display: flex; flex-direction: column; align-items: flex-start; }
.sky-pose { position: relative; width: 96px; height: 96px; }
.sky-pose img { position: absolute; inset: 0; width: 96px; height: auto; transition: opacity 300ms ease-out, transform 400ms var(--out); }
.sky-pose .p2 { opacity: 0; transform: scale(0.9); }
.sky-bubble { max-width: 210px; margin: 0 0 6px; font-size: 13px; opacity: 0; transform: translateY(6px) scale(0.97); transform-origin: bottom left; transition: opacity 300ms ease-out, transform 400ms var(--out); }
.sky-bubble::after { content: ""; position: absolute; left: 22px; bottom: -5px; width: 12px; height: 12px; background: var(--bubble); transform: rotate(45deg); border-radius: 2px; }
[data-s="2"] .sky-bubble, [data-s="3"] .sky-bubble, [data-s="4"] .sky-bubble { opacity: 1; transform: none; }
.sky-next { position: relative; display: grid; }
.nx { grid-area: 1 / 1; transition: opacity 300ms ease-out, transform 450ms var(--out); }
.nx small { display: block; opacity: 0.8; font-size: 13px; }
.nx b { display: block; font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 24px; line-height: 1.15; }
.nx span { display: block; opacity: 0.85; font-size: 14px; margin-bottom: 12px; }
.nx2 { opacity: 0; transform: translateY(10px); }
.sky-actions { grid-area: 2 / 1; display: flex; align-items: center; gap: 14px; }
.mini-honey { background: #F5B83D; color: #5A3900; font-weight: 600; font-size: 13px; padding: 7px 12px; border-radius: 9px; transition: transform 100ms ease-out; }
.mini-honey.press { transform: scale(0.95); }
.sky-later { font-size: 13px; opacity: 0.85; }
[data-s="4"] .nx1 { opacity: 0; transform: translateY(-10px); }
[data-s="4"] .nx2 { opacity: 1; transform: none; transition-delay: 250ms; }
[data-s="4"] .sky-pose .p1 { opacity: 0; transform: scale(0.9); }
[data-s="4"] .sky-pose .p2 { opacity: 1; transform: none; }
.sky-ring { position: relative; width: 74px; height: 74px; display: grid; place-items: center; text-align: center; align-self: center; }
.sky-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.sky-ring circle { fill: none; stroke-width: 6; }
.sky-ring .track { stroke: rgba(255, 255, 255, 0.25); }
.sky-ring .fill { stroke: #F5B83D; stroke-linecap: round; stroke-dasharray: 170; stroke-dashoffset: 85; transition: stroke-dashoffset 1000ms var(--out); }
[data-s="4"] .sky-ring .fill { stroke-dashoffset: 0; }
.sky-ring b { position: relative; display: grid; font-size: 13px; line-height: 1; }
.sky-ring b span { grid-area: 1 / 1; transition: opacity 250ms ease-out; }
.sky-ring .r2, [data-s="4"] .sky-ring .r1 { opacity: 0; }
[data-s="4"] .sky-ring .r2 { opacity: 1; }
.sky-ring small { font-size: 10px; opacity: 0.8; position: relative; display: block; margin-top: -14px; }
.today-lists { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 18px 24px 22px; }
.list-title { margin: 0 0 6px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.row { margin: 0; padding: 7px 0; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink); display: flex; align-items: center; gap: 9px; transition: color 300ms ease-out; }
.row i { width: 4px; height: 16px; border-radius: 2px; background: var(--c); flex: none; transition: transform 300ms var(--out); }
[data-s="4"] .row.due { color: var(--ink3); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--ink3) 60%, transparent); }

/* Planning : la soirée ratée se replace */
.plan { padding: 0 20px 20px; }
.plan-top { position: relative; display: flex; align-items: center; gap: 12px; margin: 0 -20px 14px; padding: 12px 20px; border-bottom: 1px solid var(--line-soft); font-size: 13px; overflow: hidden; }
.plan-top > b { font-weight: 600; }
.plan-clock { color: var(--ink3); margin-right: auto; font-variant-numeric: tabular-nums; }
.plan-btn { background: var(--card-alt); box-shadow: inset 0 0 0 1px var(--line); border-radius: 8px; padding: 5px 11px; font-weight: 600; transition: transform 100ms ease-out, background-color 200ms ease-out; }
.plan-btn.press { transform: scale(0.95); background: var(--accent-tint); }
.plan-banner {
  position: absolute; inset: 0; display: flex; gap: 14px; align-items: center; padding: 0 20px;
  background: var(--accent-tint); color: var(--accent-deep); transform: translateY(-100%); transition: transform 450ms var(--out);
}
.plan-banner b { color: var(--ink); font-weight: 600; margin-right: auto; }
.plan-banner span { font-weight: 600; border-radius: 6px; padding: 2px 4px; transition: background-color 200ms ease-out; }
[data-s="3"] .plan-banner, [data-s="4"] .plan-banner { transform: none; }
[data-s="4"] .plan-banner .see { background: color-mix(in srgb, var(--accent) 16%, transparent); }
.plan-head { display: grid; grid-template-columns: 38px repeat(5, minmax(0, 1fr)); font-size: 12px; font-weight: 600; color: var(--ink3); margin-bottom: 6px; }
.plan-head span { padding-left: 6px; }
.plan-head .wed { color: var(--accent); }
.plan-body { display: grid; grid-template-columns: 38px 1fr; }
.plan-hours { position: relative; }
.plan-hours span { position: absolute; font-size: 11px; color: var(--ink3); transform: translateY(-50%); }
.plan-cols { position: relative; height: 260px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); }
.plan-cols > div { position: relative; border-left: 1px solid var(--line-soft); }
.plan-cols .wed-col { background: color-mix(in srgb, var(--accent) 5%, transparent); }
.pb { position: absolute; left: 4px; right: 4px; border-radius: 9px; font-style: normal; font-size: 11.5px; font-weight: 600; padding: 5px 7px; line-height: 1.2; overflow: hidden; }
.pb.course { background: var(--c); color: #fff; }
.pb.exam { background: var(--exam); color: #fff; }
.pb.rev { background: color-mix(in srgb, var(--c) 22%, var(--card)); color: var(--ink); border-left: 5px solid var(--c); }
.pb.done { opacity: 0.55; }
.pb.done::after { content: "✓"; position: absolute; right: 6px; bottom: 3px; font-size: 11px; color: var(--ink2); }
.pb.was { transition: background-color 400ms ease-out, color 400ms ease-out, border-color 400ms ease-out, box-shadow 400ms ease-out; border: 1.5px solid transparent; border-left-width: 5px; border-left-color: var(--c); }
[data-s="3"] .pb.was, [data-s="4"] .pb.was { background: repeating-linear-gradient(-45deg, transparent 0 5px, color-mix(in srgb, var(--ink3) 18%, transparent) 5px 6px); color: var(--ink3); border: 1.5px dashed var(--ink3); }
.pb-note { position: absolute; left: 6px; right: 4px; top: 62%; font-size: 10.5px; color: var(--ink3); opacity: 0; transform: translateY(-4px); transition: opacity 300ms ease-out, transform 300ms var(--out); }
[data-s="1"] .pb-note, [data-s="2"] .pb-note { opacity: 1; transform: none; }
.pb.now { opacity: 0; transform: translateX(-104%); transition: opacity 250ms ease-out, transform 800ms var(--out), box-shadow 300ms ease-out; }
[data-s="3"] .pb.now, [data-s="4"] .pb.now { opacity: 1; transform: none; box-shadow: 0 0 0 2px var(--accent); }
.move-arrow { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.move-arrow path { fill: none; stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 200; stroke-dashoffset: 200; transition: stroke-dashoffset 700ms var(--out); }
[data-s="4"] .move-arrow path { stroke-dashoffset: 0; }

/* Atelier puis fiche */
.sheetshot { min-height: 480px; }
.atelier { position: absolute; inset: 0; padding: 30px 30px; transition: opacity 400ms ease-out, transform 400ms var(--out); }
.atelier-top { display: flex; gap: 14px; align-items: center; }
.atelier-top img { width: 64px; height: auto; }
.atelier-top b { display: block; font-size: 17px; }
.atelier-top small { color: var(--ink3); font-size: 13px; }
.atelier-bar { height: 6px; border-radius: 3px; background: var(--line-soft); margin: 18px 0 18px; overflow: hidden; }
.atelier-bar span { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(0.04); transition: transform 3000ms cubic-bezier(0.4, 0.1, 0.3, 1); }
.atelier-parts { list-style: none; padding: 0; margin: 0; }
.atelier-parts li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line-soft); font-size: 14px; color: var(--ink3); transition: color 200ms ease-out; }
.atelier-parts li::before { content: ""; position: absolute; left: 0; top: 10px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--line); transition: background-color 200ms ease-out, border-color 200ms ease-out; }
.atelier-parts li::after { content: ""; position: absolute; left: 6px; top: 13px; width: 5px; height: 9px; border: solid var(--accent-deep); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform 220ms var(--out); }
[data-s="1"] .atelier-bar span { transform: scaleX(0.96); }
[data-s="1"] .atelier-parts li { color: var(--ink); }
[data-s="1"] .atelier-parts li::before { background: var(--accent-tint); border-color: var(--accent-tint); }
[data-s="1"] .atelier-parts li::after { transform: rotate(45deg) scale(1); }
[data-s="1"] .atelier-parts li:nth-child(1), [data-s="1"] .atelier-parts li:nth-child(1)::before, [data-s="1"] .atelier-parts li:nth-child(1)::after { transition-delay: 600ms; }
[data-s="1"] .atelier-parts li:nth-child(2), [data-s="1"] .atelier-parts li:nth-child(2)::before, [data-s="1"] .atelier-parts li:nth-child(2)::after { transition-delay: 1300ms; }
[data-s="1"] .atelier-parts li:nth-child(3), [data-s="1"] .atelier-parts li:nth-child(3)::before, [data-s="1"] .atelier-parts li:nth-child(3)::after { transition-delay: 2000ms; }
[data-s="1"] .atelier-parts li:nth-child(4), [data-s="1"] .atelier-parts li:nth-child(4)::before, [data-s="1"] .atelier-parts li:nth-child(4)::after { transition-delay: 2700ms; }
.page { position: relative; padding: 28px 32px 26px; font-size: 14px; color: var(--ink2); }
.page > * { opacity: 0; transform: translateY(8px); transition: opacity 350ms ease-out, transform 450ms var(--out); }
[data-s="2"] .atelier { opacity: 0; transform: scale(0.98); }
[data-s="2"] .page > * { opacity: 1; transform: none; }
[data-s="2"] .page > :nth-child(2) { transition-delay: 120ms; }
[data-s="2"] .page > :nth-child(3) { transition-delay: 450ms; }
[data-s="2"] .page > :nth-child(4) { transition-delay: 900ms; }
[data-s="2"] .page > :nth-child(5) { transition-delay: 1150ms; }
[data-s="2"] .page > :nth-child(6) { transition-delay: 1700ms; }
[data-s="2"] .page > :nth-child(7) { transition-delay: 1950ms; }
[data-s="2"] .page > :nth-child(8) { transition-delay: 2600ms; }
.page-meta { margin: 0 0 6px; font-size: 12.5px; color: var(--ink3); display: flex; align-items: center; gap: 10px; }
.subject-chip { background: color-mix(in srgb, var(--c-violet) 16%, var(--card)); color: #5B2FD6; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.page-title { font-size: 28px; margin: 0 0 14px; color: var(--ink); }
.idea { background: var(--card-alt); border-radius: 12px; padding: 10px 14px; margin-bottom: 14px; }
.idea b { font-size: 12.5px; color: var(--ink3); } .idea p { margin: 2px 0 0; color: var(--ink); }
.page-h { margin: 14px 0 6px; font-weight: 700; font-size: 15.5px; color: #5B2FD6; }
.page ul { margin: 0; padding-left: 18px; } .page li { margin: 3px 0; } .page li b, .page td:first-child { color: var(--ink); }
.page table { width: 100%; border-collapse: collapse; margin: 6px 0 12px; font-size: 13px; border-radius: 8px; overflow: hidden; }
.page th { background: #5B2FD6; color: #fff; text-align: left; padding: 6px 10px; font-weight: 600; }
.page td { padding: 6px 10px; border-bottom: 1px solid var(--line-soft); }
.page tr:nth-child(odd) td { background: color-mix(in srgb, var(--c-violet) 6%, var(--card)); }
.page td:first-child { font-weight: 600; }
.vigil { background: #FFF4E0; color: #5A3900; border-radius: 12px; padding: 10px 14px; }
.vigil p { margin: 2px 0 0; }

/* Flashcards jouables */
.cardshot { background: none; box-shadow: none; overflow: visible; outline-offset: 8px; }
.deck-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; font-size: 13px; font-weight: 600; color: var(--ink3); }
.deck-bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.deck-bar span { display: block; height: 100%; background: var(--honey); transform-origin: left; transform: scaleX(0); transition: transform 500ms var(--out); }
.deck { position: relative; height: 250px; }
.fc { position: absolute; inset: 0; perspective: 1200px; transition: transform 450ms var(--out), opacity 300ms ease-out; transform: translateY(calc(var(--i) * 12px)) scale(calc(1 - var(--i) * 0.045)); z-index: calc(10 - var(--i)); cursor: pointer; }
.fc.gone-r { transform: translateX(115%) rotate(10deg); opacity: 0; transition: transform 500ms cubic-bezier(0.4, 0, 0.7, 0.4), opacity 400ms ease-in 100ms; }
.fc.gone-l { transform: translateX(-115%) rotate(-10deg); opacity: 0; transition: transform 500ms cubic-bezier(0.4, 0, 0.7, 0.4), opacity 400ms ease-in 100ms; }
.fc-in { position: absolute; inset: 0; transform-style: preserve-3d; transition: transform 550ms var(--out); }
.fc.flipped .fc-in { transform: rotateY(180deg); }
.face {
  position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; text-align: center;
  background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); padding: 24px 28px; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-top: 6px solid var(--c);
}
.face small { color: var(--ink3); font-weight: 600; font-size: 13px; }
.face small i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--c); margin-right: 6px; font-style: normal; }
.face > span { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 24px; font-weight: 600; color: var(--ink); max-width: 18em; }
.face em { font-style: normal; font-size: 13px; color: var(--ink3); }
.face.back { transform: rotateY(180deg); background: color-mix(in srgb, var(--c) 7%, var(--card)); }
.face.back > span { font-size: 19px; font-weight: 500; }
.deck-end { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; background: var(--card); border-radius: 22px; box-shadow: var(--shadow-lg); opacity: 0; transform: scale(0.96); transition: opacity 350ms ease-out, transform 450ms var(--out); pointer-events: none; }
.deck-end.on { opacity: 1; transform: none; pointer-events: auto; }
.deck-end img { width: 92px; height: auto; }
.deck-end b { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 22px; }
.deck-end span { color: var(--ink2); font-size: 15px; }
.deck-end button { margin-top: 8px; font: inherit; font-size: 14px; font-weight: 600; border: 0; border-radius: 10px; padding: 8px 14px; background: var(--card-alt); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink); cursor: pointer; transition: transform 100ms ease-out; }
.deck-end button:active { transform: scale(0.97); }
.grades { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 30px; }
.grades button {
  font: inherit; border: 0; cursor: pointer; background: var(--card); color: var(--ink); border-radius: 12px; box-shadow: var(--shadow);
  padding: 10px 4px; text-align: center; font-size: 14px; font-weight: 600; border-bottom: 3px solid var(--g);
  transition: transform 100ms ease-out, opacity 250ms ease-out, background-color 200ms ease-out;
}
.grades button[data-g="0"] { --g: #E26D5A; } .grades button[data-g="1"] { --g: #E0A23C; } .grades button[data-g="2"] { --g: #3FA56F; } .grades button[data-g="3"] { --g: #3563D8; }
.grades button:disabled { opacity: 0.4; cursor: default; }
.grades button:not(:disabled):active { transform: scale(0.96); }
.grades small { display: block; font-weight: 500; color: var(--ink3); font-size: 11.5px; min-height: 1.3em; }
@media (hover: hover) and (pointer: fine) {
  .grades button:not(:disabled):hover { background: color-mix(in srgb, var(--g) 10%, var(--card)); }
}
.grades.hint button:not(:disabled) { animation: nudge 1.6s ease-in-out 2; }
@keyframes nudge { 50% { transform: translateY(-3px); } }
.deck-toast { min-height: 1.5em; margin: 12px 0 0; text-align: center; font-size: 14px; color: var(--ink2); transition: opacity 250ms ease-out; }

/* Compagnons : une couleur par compagnon, un clic pour l'entendre */
.companions { text-align: center; }
.companions .sub { max-width: 640px; margin: -16px auto 30px; color: var(--ink2); }
.mascots { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
.mascots button {
  position: relative; width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 16px 6px 14px;
  border: 0; border-radius: 20px; font: inherit; color: var(--ink); cursor: pointer;
  background: linear-gradient(180deg, color-mix(in srgb, var(--m) 26%, var(--card)), color-mix(in srgb, var(--m) 10%, var(--card)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--m) 30%, transparent);
  transition: transform 160ms var(--out);
}
.mascots button:active { transform: scale(0.97); }
.mascots img { width: 100%; max-width: 92px; height: auto; aspect-ratio: 1; object-fit: contain; transition: transform 200ms var(--out); }
.mascots b { font-size: 15px; } .mascots small { font-size: 12px; color: color-mix(in srgb, var(--m) 55%, var(--ink)); line-height: 1.3; font-weight: 500; }
.mascots .hop img { animation: hop 520ms var(--out); }
@keyframes hop { 30% { transform: translateY(-14px) rotate(-4deg); } 60% { transform: translateY(0) scale(1.04, 0.96); } }
.m-bubble {
  position: absolute; left: 50%; bottom: calc(100% + 6px); width: max-content; max-width: 210px; z-index: 3;
  background: var(--bubble); color: var(--ink); border-radius: 14px; padding: 8px 12px; font-size: 13.5px; font-weight: 500; line-height: 1.35;
  box-shadow: var(--shadow); text-align: left; opacity: 0; transform: translate(-50%, 6px) scale(0.96); transform-origin: bottom center;
  transition: opacity 200ms ease-out, transform 300ms var(--out); pointer-events: none;
}
.m-bubble::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; background: var(--bubble); transform: rotate(45deg); border-radius: 2px; }
.mascots .talk .m-bubble { opacity: 1; transform: translate(-50%, 0); }
.mascots li:first-child .m-bubble { left: 0; transform: translate(0, 6px) scale(0.96); transform-origin: bottom left; }
.mascots li:first-child .talk .m-bubble { transform: none; }
.mascots li:first-child .m-bubble::after { left: 40px; }
.mascots li:last-child .m-bubble { left: auto; right: 0; transform: translate(0, 6px) scale(0.96); transform-origin: bottom right; }
.mascots li:last-child .talk .m-bubble { transform: none; }
.mascots li:last-child .m-bubble::after { left: auto; right: 34px; }
@media (hover: hover) and (pointer: fine) {
  .mascots button:hover img { transform: translateY(-4px) rotate(-3deg); }
}

/* Avant / avec Tempo */
.vs { display: grid; grid-template-columns: 1fr 1.1fr; gap: 0; align-items: stretch; }
.vs-col { border-radius: 24px; padding: 30px 30px 26px; }
.vs-col h3 { margin: 0 0 16px; font-size: 22px; }
.vs-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.vs-col li { display: grid; gap: 4px; font-size: 16px; line-height: 1.45; }
.tag { justify-self: start; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 2px 10px; }
.before { background: var(--card-alt); box-shadow: inset 0 0 0 1px var(--line); color: var(--ink3); margin: 26px -24px 26px 0; padding-right: 54px; border-radius: 24px 0 0 24px; }
.before h3 { color: var(--ink2); }
.before .tag { background: var(--line-soft); color: var(--ink3); box-shadow: inset 0 0 0 1px var(--line); }
.after { position: relative; z-index: 1; overflow: hidden; color: #E9EDF6; box-shadow: var(--shadow-lg);
  background: radial-gradient(90% 70% at 100% 0%, rgba(143, 180, 255, 0.28), transparent 60%), radial-gradient(70% 60% at 0% 110%, rgba(255, 168, 122, 0.35), transparent 60%), linear-gradient(160deg, #1B2350, #2C2D6E 60%, #42387F); }
.after h3 { color: #fff; }
.after .tag { background: color-mix(in srgb, var(--c) 22%, transparent); color: var(--c); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent); }
.after li { color: #fff; font-weight: 500; }
.vs-brume { position: absolute; right: 18px; top: 14px; width: 84px; height: auto; }
.v1 { right: 130px; top: 26px; } .v2 { right: 40%; top: 14px; opacity: 0.5; } .v3 { right: 22px; bottom: 30px; opacity: 0.6; }

/* Prix */
.sub.center, .note.center { text-align: center; }
#prix .sub { margin: -20px auto 30px; color: var(--ink2); }
.pricing { display: grid; grid-template-columns: 1fr 1.15fr; gap: 18px; max-width: 820px; margin: 0 auto; align-items: stretch; }
.tier { border-radius: 24px; padding: 28px; display: flex; flex-direction: column; }
.tier h3 { margin: 0 0 8px; font-size: 20px; }
.tier .price { font-family: ui-rounded, "SF Pro Rounded", system-ui, sans-serif; font-size: 44px; font-weight: 700; line-height: 1.1; margin: 6px 0 2px; }
.tier .price small { font-size: 16px; font-weight: 500; }
.tier-note { margin: 0 0 14px; font-size: 14px; }
.checks { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 9px; flex: 1; align-content: start; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { content: ""; position: absolute; left: 0; top: 3px; width: 19px; height: 19px; border-radius: 50%; background: var(--ck-bg); }
.checks li::after { content: ""; position: absolute; left: 7px; top: 7px; width: 4px; height: 8px; border: solid var(--ck); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.free { background: var(--card); box-shadow: var(--shadow); --ck: var(--accent-deep); --ck-bg: var(--accent-tint); }
.free .tier-note, .free .price small { color: var(--ink3); }
.plus { position: relative; overflow: hidden; color: #fff; --ck: #5A3900; --ck-bg: #F5B83D; box-shadow: var(--shadow-lg);
  background: radial-gradient(120% 90% at 0% 110%, rgba(255, 168, 122, 0.55), transparent 55%), linear-gradient(180deg, #262A5C, #38357E 60%, #54468F); }
.plus > *:not(.star):not(.plus-brume) { position: relative; z-index: 1; }
.plus .tier-note, .plus .price small { color: rgba(255, 255, 255, 0.8); }
.plus-brume { position: absolute; right: 14px; top: 10px; width: 96px; height: auto; }
.p1 { right: 140px; top: 22px; } .p2 { right: 46%; top: 50px; opacity: 0.5; } .p3 { right: 30px; top: 120px; opacity: 0.6; }
.billing { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-self: flex-start; margin: 4px 0 12px; padding: 4px; border-radius: 12px; background: rgba(255, 255, 255, 0.12); }
.billing button { position: relative; z-index: 1; font: inherit; font-size: 14px; font-weight: 600; color: #fff; background: none; border: 0; padding: 7px 14px; cursor: pointer; border-radius: 9px; white-space: nowrap; }
.billing button[aria-checked="true"] { color: var(--ink); }
.billing em { font-style: normal; font-size: 12px; margin-left: 6px; color: #2E7D4F; }
.billing button[aria-checked="false"] em { color: #9FE0B9; }
.billing-pill { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 9px; background: #fff; transition: transform 350ms var(--out); }
.billing[data-b="month"] .billing-pill { transform: translateX(100%); }
#plus-price, #plus-note { display: inline-block; transition: opacity 150ms ease-out, transform 250ms var(--out); }
.swap #plus-price, .swap #plus-note { opacity: 0; transform: translateY(-6px); }
.button.light { background: #fff; color: var(--ink); text-align: center; transition: transform 100ms ease-out; }
.button.light:active { transform: scale(0.97); }

/* Questions */
.faq-wrap { display: grid; grid-template-columns: 260px 1fr; gap: 40px; align-items: start; max-width: 980px; margin: 0 auto; }
.faq-side { position: sticky; top: 24px; }
.faq-side img { width: 130px; height: auto; }
.faq-side h2 { font-size: 32px; margin: 6px 0 6px; text-align: left; }
.faq-side p { margin: 0; color: var(--ink2); }
.faq details { background: var(--card); border-radius: 16px; box-shadow: var(--shadow); margin-bottom: 10px; overflow: hidden; }
.faq summary { list-style: none; position: relative; padding: 17px 52px 17px 20px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 12px; height: 2px; margin-top: -1px; border-radius: 1px; background: var(--accent); transition: transform 250ms var(--out); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0deg); }
.faq details p { margin: 0; padding: 0 20px 18px; color: var(--ink2); }
.faq details { interpolate-size: allow-keywords; }
.faq details::details-content { height: 0; overflow: hidden; transition: height 300ms var(--out), content-visibility 300ms allow-discrete; }
.faq details[open]::details-content { height: auto; }

/* Qui fait Tempo */
.about { max-width: 720px; margin: 0 auto; background: var(--honey-tint); border-radius: 22px; padding: 28px 30px; }
.about h2 { text-align: left; font-size: 24px; margin: 0 0 10px; }
.about p { margin: 0; color: var(--ink2); }
.about .sign { margin-top: 14px; font-family: "Bradley Hand", "Segoe Print", cursive; font-size: 22px; color: var(--honey-deep); }

/* Fin : le ciel du soir */
.final { position: relative; overflow: hidden; text-align: center; padding: 48px 20px 52px; margin: 40px 0 56px; border-radius: 30px; color: #fff;
  background: radial-gradient(120% 90% at 50% 120%, rgba(255, 168, 122, 0.6), transparent 55%), linear-gradient(180deg, #262A5C, #38357E 60%, #54468F); }
.final > * { position: relative; }
.final > .star, .final > .moon { position: absolute; }
.final .moon { right: 12%; top: 34px; }
.f1 { left: 12%; top: 40px; } .f2 { left: 30%; top: 90px; opacity: 0.5; } .f3 { right: 26%; top: 60px; } .f4 { right: 8%; top: 150px; opacity: 0.6; }
.final img { width: 150px; height: auto; }
.final h2 { margin: 8px 0 22px; font-size: clamp(26px, 4vw, 40px); color: #fff; }
.final .note { color: rgba(255, 255, 255, 0.8); }
.final .button[aria-disabled="true"] { opacity: 0.9; }
.final-mobile { color: #fff; }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink3); font-size: 14px; }
footer a { color: var(--ink3); margin-right: 16px; }

/* Avec « Réduire les animations » : tout est déjà à sa place, sans mouvement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation: none !important; }
}

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 18px; }
  .build { grid-template-columns: 1fr; }
  .feature, .feature.flip { grid-template-columns: 1fr; gap: 24px; padding: 44px 0; }
  .feature.flip .feature-text { order: 0; }
  .mascots { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 56px; margin-top: 50px; }
  .mascots li:nth-child(4n+1) .m-bubble { left: 0; transform: translate(0, 6px) scale(0.96); transform-origin: bottom left; }
  .mascots li:nth-child(4n+1) .talk .m-bubble { transform: none; }
  .mascots li:nth-child(4n+1) .m-bubble::after { left: 34px; }
  .mascots li:nth-child(4n) .m-bubble { left: auto; right: 0; transform: translate(0, 6px) scale(0.96); transform-origin: bottom right; }
  .mascots li:nth-child(4n) .talk .m-bubble { transform: none; }
  .mascots li:nth-child(4n) .m-bubble::after { left: auto; right: 34px; }
  .vs { grid-template-columns: 1fr; }
  .before { margin: 0 14px -20px; padding: 26px 24px 46px; border-radius: 24px 24px 0 0; }
  .pricing { grid-template-columns: 1fr; }
  .faq-wrap { grid-template-columns: 1fr; gap: 16px; }
  .faq-side { position: static; display: flex; align-items: center; gap: 14px; }
  .faq-side img { width: 84px; }
  .faq-side p { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 18px; }
  .hero { padding-top: 12px; }
  .hero .lead { font-size: 18px; }
  .on-desktop { display: none !important; }
  .on-mobile { display: inline; }
  p.on-mobile { display: block; }
  .button.cta { width: 100%; min-height: 56px; text-align: center; }
  .build { padding: 14px; border-radius: 20px; }
  .build-week { padding: 14px 10px 12px; }
  .week-grid { height: 300px; }
  .blk .txt { display: none; }
  .legend { display: none; }
  .feature h2 { font-size: 27px; }
  .sky { grid-template-columns: 1fr auto; }
  .sky-mascot { display: none; }
  .today-lists { grid-template-columns: 1fr; }
  .plan-banner span { display: none; }
  .pb { font-size: 10px; padding: 4px; }
  .page { padding: 22px 18px; }
  .plan-clock { display: none; }
  .vs-col { padding: 24px 20px; }
  .vs-brume { width: 64px; }
  .tier { padding: 24px 20px; }
  .plus-brume { width: 72px; }
  .grades button { font-size: 13px; padding: 9px 2px; }
  .face > span { font-size: 21px; }
  .final { border-radius: 24px; margin: 24px 0 40px; }
  .final img { width: 116px; }
}

/* Pages légales */
.legal { max-width: 720px; padding-bottom: 64px; }
.legal h1 { font-size: 32px; }
.legal h2 { font-size: 21px; margin-top: 32px; text-align: left; }
.draft { background: var(--card-alt); border-radius: 12px; padding: 12px 16px; color: var(--ink2); font-size: 15px; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14px; margin: 12px 0 20px; }
.legal th, .legal td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line, #e6e0d4); vertical-align: top; }
.legal th { font-weight: 600; color: var(--ink2); }
