/* KL Prépa — page d'accueil. Direction « One motif » : le cercle de l'écusson KL CENTER,
   à toutes les échelles (le cadran du héros, les masques d'images, les boutons, les puces, la bande). */
@font-face { font-family: "Roundo"; src: url("/fonts/roundo-400.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Roundo"; src: url("/fonts/roundo-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Roundo"; src: url("/fonts/roundo-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  /* brand: KL CENTER navy + orange; subject fields from the platform (maths blue, physique-chimie green) */
  --ground: #f4f6fb;
  --ink: #001a41;
  --muted: #3f4d6a;
  --accent: #f5820a;
  --on-accent: #001a41;
  --paper: #ffffff;
  --f-maths: #1f5fbf;
  --f-pc: #1f7a46;
  --f-sky: #dbe6fa;
  --f-mint: #d8efe1;
  --f-pink: #fcd9df;
  --f-step: #e8ecf5;
  --step-small: clamp(0.8125rem, 0.79rem + 0.1vw, 0.875rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-head: clamp(2rem, 1.3rem + 3.2vw, 4rem);
  --step-display: clamp(2.5rem, 0.6rem + 6vw, 6.75rem);
  --m: clamp(16px, 3vw, 40px);
  --gap: clamp(120px, 14vw, 200px);
  --ease: cubic-bezier(.2, .7, .2, 1);
  font-family: "Roundo", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body.landing { margin: 0; background: var(--ground); color: var(--ink); font-size: var(--step-body); line-height: 1.5; overflow-x: hidden; }
.landing a { color: inherit; }
.landing img { display: block; max-width: 100%; }
.landing h1, .landing h2, .landing h3 { font-weight: 500; letter-spacing: -0.025em; line-height: 1.05; margin: 0; }
.landing p { margin: 0; }
.landing :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--paper); padding: 8px 12px; z-index: 50; }
.skip:focus { left: 8px; }
.frame { padding-inline: var(--m); }
.grid12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 28px); }

/* buttons: fully round, one fill — the circle as a control */
.btn-o { display: inline-flex; align-items: center; justify-content: center; gap: .5em; min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--accent); color: var(--on-accent); font: 600 var(--step-body)/1 "Roundo", sans-serif; text-decoration: none; border: 0; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s; }
@media (hover: hover) and (pointer: fine) { .btn-o:hover { background: #ff9426; transform: translateY(-2px); } }
.btn-o:active { transform: translateY(0) scale(.98); }
.btn-o.ink { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .btn-o.ink:hover { background: #0d2c5e; } }
.btn-o.paper { background: var(--paper); color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .btn-o.paper:hover { background: var(--f-step); } }
.dot { display: inline-block; width: .62em; height: .62em; border-radius: 50%; background: var(--accent); flex: none; }
.link-u { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; text-decoration-color: transparent; transition: text-decoration-color .2s; }
@media (hover: hover) and (pointer: fine) { .link-u:hover { text-decoration-color: currentColor; } }

/* top bar */
.bar { display: flex; align-items: center; gap: clamp(12px, 2.5vw, 32px); height: 84px; position: relative; z-index: 3; }
.bar .mark { display: flex; align-items: center; gap: 12px; text-decoration: none; font-weight: 600; font-size: var(--step-body); }
.bar .mark img { width: 48px; height: 48px; }
.bar nav { display: flex; gap: clamp(14px, 2vw, 28px); margin-left: auto; font-size: var(--step-small); font-weight: 500; }
.bar nav a { text-decoration: none; padding: 8px 0; }
@media (hover: hover) and (pointer: fine) { .bar nav a:hover { color: var(--f-maths); } }
.bar .btn-o { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
@media (max-width: 860px) { .bar nav { display: none; } .bar .mark span { display: none; } .bar .btn-o { margin-left: auto; } }

/* hero: a navy board (the blackboard) with chalk formulas and orbits; a phone showing the student space rises
   from its lower edge, with tilted cards and round stickers around it. The badge's circle is the orange countdown
   disc; the exam calendar and the class switch sit in the white bar that straddles the board's lower edge. */
.hero { padding-top: 4px; padding-bottom: clamp(40px, 6vw, 72px); }
.board { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: clamp(28px, 3vw, 40px); padding: clamp(30px, 3.4vw, 38px) clamp(16px, 4vw, 56px) 0; text-align: center; }
.hero-copy { position: relative; z-index: 2; display: grid; justify-items: center; }
.motto { display: inline-flex; align-items: center; gap: 10px; padding: 5px 16px 5px 5px; border-radius: 999px; background: #0d2c5e; font-size: var(--step-small); font-weight: 500; color: #dbe3f3; }
.motto img { width: 28px; height: 28px; border-radius: 50%; }
.hero h1 { font-size: clamp(2.25rem, 1rem + 5vw, 4.75rem); line-height: 1.02; letter-spacing: -0.035em; margin-top: clamp(16px, 2vw, 22px); text-wrap: balance; }
.hero h1 .ul { position: relative; display: inline-block; white-space: nowrap; }
.hero h1 .ul svg { position: absolute; left: -2%; bottom: -.17em; width: 104%; height: auto; overflow: visible; }
.hero h1 .ul path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero .jr { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: .64em; line-height: 1; letter-spacing: 0; vertical-align: .14em; }
.hero .lede { font-size: clamp(1.0625rem, .95rem + .5vw, 1.3125rem); line-height: 1.45; color: #c9d4ea; max-width: 40em; margin-top: clamp(16px, 1.8vw, 22px); text-wrap: pretty; }
.hero .acts { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: clamp(22px, 2.4vw, 28px); }
.btn-g { display: inline-flex; align-items: center; justify-content: center; gap: .6em; min-height: 52px; padding: 0 26px; border-radius: 999px; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .55); color: var(--paper);
  font: 600 var(--step-body)/1 "Roundo", sans-serif; text-decoration: none; transition: background-color .18s, color .18s, box-shadow .18s, transform .18s var(--ease); }
.landing .btn-g { color: var(--paper); }
.landing .board .btn-o { color: var(--on-accent); }
.btn-g span { transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .landing .btn-g:hover { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 2px var(--paper); transform: translateY(-2px); } }
@media (hover: hover) and (pointer: fine) { .btn-g:hover span { transform: translateX(4px); } }
.btn-g:active { transform: translateY(0) scale(.98); }
.hero .sure { margin-top: 14px; font-size: var(--step-small); color: #a9b8d6; }

.chalk > span { position: absolute; z-index: 0; font-size: clamp(17px, 1.7vw, 26px); color: rgba(255, 255, 255, .22); white-space: nowrap; pointer-events: none; }
.chalk .c1 { left: 5%; top: 9%; rotate: -9deg; }
.chalk .c2 { right: 5.5%; top: 6%; rotate: 7deg; }
.chalk .c3 { right: 2.5%; top: 23.5%; rotate: -5deg; }
.chalk .c4 { left: calc(50% - 356px); top: 57.5%; rotate: 6deg; }

/* the scene: everything is placed from the centre line, so it holds at any width */
.scene { position: relative; z-index: 1; height: 380px; margin-top: 20px; --mx: 0; --my: 0; }
.orbits { position: absolute; left: 50%; top: 230px; translate: calc(var(--mx) * 6px) calc(var(--my) * 6px); transition: translate .8s var(--ease); }
.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, .11); animation: kl-spin var(--t) linear infinite; }
.orbits span::after { content: ""; position: absolute; left: 50%; top: -5px; width: 9px; height: 9px; margin-left: -5px; border-radius: 50%; background: var(--c); }
.orbits span:nth-child(1) { --s: 470px; --t: 38s; --c: var(--accent); }
.orbits span:nth-child(2) { --s: 790px; --t: 70s; --c: var(--f-mint); border-style: dashed; animation-direction: reverse; }
.orbits span:nth-child(3) { --s: 1140px; --t: 110s; --c: var(--f-pink); }
.orbits span:nth-child(4) { --s: 1540px; --t: 160s; --c: var(--f-sky); border-style: dashed; animation-direction: reverse; }
@keyframes kl-spin { to { transform: rotate(1turn); } }
@keyframes kl-bob { from { transform: translateY(-5px); } to { transform: translateY(6px); } }
@keyframes kl-pulse { 0% { box-shadow: 0 0 0 0 rgba(245, 130, 10, .55); } 70%, 100% { box-shadow: 0 0 0 7px rgba(245, 130, 10, 0); } }

.phone { position: absolute; z-index: 2; left: 50%; top: 12px; width: 300px; margin-left: -150px; padding: 10px; border-radius: 48px; background: #071630; box-shadow: inset 0 0 0 2px #2c4576, 0 40px 80px -24px rgba(0, 4, 16, .9);
  translate: calc(var(--mx) * -8px) calc(var(--my) * -6px); transition: translate .7s var(--ease), opacity .6s linear; }
.scr { height: 620px; overflow: hidden; border-radius: 38px; background: #f5f7fb; color: var(--ink); text-align: left; font-size: 13px; line-height: 1.35; padding: 0 16px; }
.ph-sb { display: flex; align-items: center; justify-content: space-between; height: 34px; font-size: 11.5px; font-weight: 600; }
.ph-sb i { width: 74px; height: 20px; border-radius: 999px; background: #071630; }
.ph-sb .sig { display: flex; align-items: flex-end; gap: 2px; }
.ph-sb .sig b { width: 3px; border-radius: 1px; background: var(--ink); }
.ph-sb .sig b:nth-child(1) { height: 5px; } .ph-sb .sig b:nth-child(2) { height: 8px; } .ph-sb .sig b:nth-child(3) { height: 11px; }
.ph-top { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-weight: 600; }
.ph-top img { width: 26px; height: 26px; border-radius: 50%; }
.ph-top .av { margin-left: auto; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--f-sky); font-size: 12px; }
.ph-hi { font-size: 21px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; margin-top: 14px; }
.ph-lv { color: var(--muted); font-size: 12px; margin-top: 2px; }
.ph-card { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 16px; border-radius: 22px; background: var(--ink); color: var(--paper); }
.ph-card > div { flex: 1; min-width: 0; }
.ph-card .k { font-size: 11.5px; color: #b4c2de; }
.ph-card .t { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; margin-top: 4px; }
.ph-card .k, .ph-card .go { white-space: nowrap; }
.ph-card .go { display: inline-block; margin-top: 12px; padding: 7px 14px; border-radius: 999px; background: var(--accent); color: var(--on-accent); font-size: 12px; font-weight: 600; }
.ph-card .ring { flex: none; width: 66px; height: 66px; }
.ph-card .ring circle { fill: none; stroke-width: 5; }
.ph-card .ring .trk { stroke: #18396f; }
.ph-card .ring .val { stroke: var(--accent); stroke-linecap: round; stroke-dasharray: 78 100; transform: rotate(-90deg); transform-origin: 30px 30px; }
.ph-card .ring text { fill: var(--paper); font: 600 12px "Roundo", sans-serif; }
.ph-chips { display: flex; gap: 6px; margin-top: 14px; white-space: nowrap; }
.ph-chips span { padding: 6px 11px; border-radius: 999px; background: var(--paper); border: 1px solid #e2e7f0; font-size: 11.5px; font-weight: 500; }
.ph-chips .on { background: var(--f-sky); border-color: var(--f-sky); }
.ph-row { margin-top: 14px; padding: 12px 14px; border-radius: 16px; background: var(--paper); border: 1px solid #e2e7f0; }
.ph-row p { display: flex; align-items: center; gap: 8px; }
.ph-row .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.ph-row .n { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; }
.ph-row .trk { height: 6px; border-radius: 3px; background: var(--f-step); margin-top: 8px; overflow: hidden; }
.ph-row .trk i { display: block; height: 100%; width: var(--w); border-radius: inherit; }
.scr .dot.ma, .scr i.ma { background: var(--f-maths); }
.scr .dot.pc, .scr i.pc { background: var(--f-pc); }

/* floating pieces: placed by --x (from the centre line) and --y, tilted by --r, moved by the pointer by --dp */
.fl { position: absolute; z-index: 3; left: calc(50% + var(--x)); top: var(--y); width: var(--w); rotate: var(--r, 0deg); color: var(--ink); text-align: left; font-size: 13px; line-height: 1.35;
  translate: calc(var(--mx) * var(--dp, 12) * 1px) calc(var(--my) * var(--dp, 12) * 1px); animation: kl-bob var(--bt, 6s) ease-in-out var(--bd, 0s) infinite alternate; }
.jday { --w: 196px; --x: max(-590px, -50vw + 62px); --y: -84px; --r: -6deg; --dp: -20; --bt: 7s; height: var(--w); border-radius: 50%; background: var(--accent); color: var(--on-accent);
  container-type: inline-size; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; box-shadow: 0 24px 44px -16px rgba(0, 4, 16, .7); }
.jday .arc { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; pointer-events: none; }
.jday .arc circle { fill: none; stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; transition: stroke-dasharray .9s var(--ease); }
.jday .arc .trk { stroke: rgba(0, 26, 65, .16); }
.jday .count { font-size: 31cqw; font-weight: 500; letter-spacing: -0.04em; line-height: .85; font-variant-numeric: tabular-nums; }
.jday .count small { display: block; font-size: .25em; font-weight: 600; letter-spacing: 0; line-height: 1; margin-top: .4em; }
.jday .what { font-size: clamp(11.5px, 6.4cqw, 14px); font-weight: 500; line-height: 1.2; max-width: 70cqw; margin-top: 5cqw; }
.jday .when { font-size: clamp(11px, 5.6cqw, 12.5px); line-height: 1.2; margin-top: 3px; }

.tutor, .live, .exo { padding: 14px; border-radius: 22px; box-shadow: 0 26px 50px -18px rgba(0, 4, 16, .75); }
.tutor { --w: 300px; --x: -448px; --y: 148px; --r: -4deg; --dp: 16; --bt: 6.5s; --bd: -2s; display: flex; flex-direction: column; gap: 8px; background: var(--paper); }
.tutor .th { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.tutor .th small { margin-left: auto; font-size: 11.5px; font-weight: 400; color: var(--muted); }
.tutor .q { align-self: flex-end; max-width: 88%; padding: 9px 13px; background: var(--ink); color: var(--paper); border-radius: 16px 16px 4px 16px; }
.tutor .a { align-self: flex-start; max-width: 94%; padding: 9px 13px; background: var(--f-step); border-radius: 16px 16px 16px 4px; }
.live { --w: 246px; --x: min(356px, 50vw - 334px); --y: -74px; --r: 5deg; --dp: 22; --bt: 7.5s; --bd: -3s; background: var(--f-mint); padding: 16px 18px; }
.fl .pt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; margin-bottom: 8px; }
.live .st { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.15; }
.live .sm { font-size: 12px; margin-top: 4px; }
.live .seats { display: flex; gap: 4px; margin-top: 12px; }
.live .seats span { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid rgba(0, 26, 65, .35); }
.live .seats .on { background: var(--ink); border-color: var(--ink); }
.live .pulse { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: kl-pulse 2.4s ease-out infinite; }
.exo { --w: 264px; --x: 142px; --y: 156px; --r: 3deg; --dp: -14; --bt: 6s; --bd: -4s; background: var(--paper); padding: 14px 16px 10px; }
.exo .pt { color: var(--muted); }
.exo .fx { font-size: 14px; margin: 0 0 2px; }
.exo .plot { display: block; width: 100%; height: 96px; }
.exo .ax { fill: none; stroke: #c3cde0; }
.exo .asy { fill: none; stroke: var(--f-pc); stroke-dasharray: 4 4; }
.exo text { font: 500 10px "Roundo", sans-serif; fill: var(--f-pc); }
.exo .curve { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.exo circle { fill: var(--accent); }

.stk { height: var(--w); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 11.5px; font-weight: 500; line-height: 1.12; padding: 0 14px; box-shadow: 0 18px 34px -14px rgba(0, 4, 16, .7); }
.stk b { font-size: 2.5em; font-weight: 500; letter-spacing: -0.03em; line-height: .95; font-variant-numeric: tabular-nums; }
.s1 { --w: 112px; --x: max(-604px, -50vw + 56px); --y: 232px; --r: -10deg; --dp: 28; --bt: 5.5s; --bd: -1s; background: var(--f-sky); }
.s2 { --w: 112px; --x: min(452px, 50vw - 176px); --y: 236px; --r: 9deg; --dp: -26; --bt: 6.8s; --bd: -5s; background: var(--f-pink); }
.s3 { --w: 98px; --x: 196px; --y: 16px; --r: 8deg; --dp: 18; --bt: 5.8s; --bd: -2.5s; background: var(--f-maths); color: var(--paper); }

/* 3D transparent illustrations replacing the previous flat circle stickers */
.illu-science, .illu-math {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  pointer-events: none;
  filter: drop-shadow(0 20px 32px rgba(0, 4, 16, .75)) drop-shadow(0 6px 12px rgba(0, 4, 16, .4));
  transition: transform .3s var(--ease);
}
.illu-science img, .illu-math img {
  display: block;
  width: 100%;
  height: auto;
  user-select: none;
}
.illu-science {
  --w: 102px;
  --x: 204px;
  --y: -44px;
  --r: 8deg;
  --dp: 18;
  --bt: 6.4s;
  --bd: -1.6s;
}
.illu-math {
  --w: 114px;
  --x: min(448px, 50vw - 160px);
  --y: 200px;
  --r: 6deg;
  --dp: -22;
  --bt: 7s;
  --bd: -3.2s;
}
.illu-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(7, 22, 48, 0.88);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #e2e8f5;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 8px 18px -4px rgba(0, 4, 16, 0.6);
}
.illu-tag b {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tutor .th .ai-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 4, 16, .3));
}

/* the calendar bar: exam dates (J-n) and the class switch */
.cal { position: relative; z-index: 4; display: flex; align-items: center; gap: clamp(16px, 2vw, 28px); margin: -42px clamp(12px, 3.4vw, 56px) 0; padding: 12px 12px 12px 28px; min-height: 84px;
  background: var(--paper); border-radius: 999px; box-shadow: 0 0 0 1px #e2e7f0, 0 24px 48px -28px rgba(0, 26, 65, .5); }
.cal-t { flex: none; font-weight: 600; font-size: var(--step-small); color: var(--muted); max-width: 7em; line-height: 1.2; }
.epreuves { flex: 1; min-width: 0; list-style: none; padding: 0; margin: 0; display: flex; gap: clamp(14px, 2vw, 28px); font-size: var(--step-small); line-height: 1.25; }
.epreuves li { display: flex; align-items: center; gap: 12px; min-width: 0; }
.epreuves li + li { padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid #dfe5f0; }
.epreuves b { flex: none; font-size: clamp(1.25rem, 1rem + .7vw, 1.625rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.epreuves span { min-width: 0; font-weight: 500; }
.epreuves i { display: block; font-style: normal; font-weight: 400; color: var(--muted); }
.classes { flex: none; display: inline-flex; gap: 4px; padding: 6px; background: var(--f-step); border-radius: 999px; }
.classes button { font: 600 var(--step-small)/1 "Roundo", sans-serif; color: var(--ink); background: transparent; border: 0; border-radius: 999px; padding: 12px 18px; min-height: 48px; cursor: pointer; transition: background-color .2s, color .2s; }
.classes button[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .classes button:hover:not([aria-pressed="true"]) { background: #d6dded; } }

/* the scene comes alive once: the phone rises, then the pieces pop in one after another */
.js .scene .fl { transition: opacity .4s linear var(--d, 0s), scale .7s cubic-bezier(.3, 1.5, .5, 1) var(--d, 0s), translate .7s var(--ease); }
.js .scene .jday { --d: .35s; } .js .scene .tutor { --d: .5s; } .js .scene .exo { --d: .62s; } .js .scene .live { --d: .74s; }
.js .scene .illu-science { --d: .86s; } .js .scene .illu-math { --d: .96s; }
.js .scene:not(.in) .fl { opacity: 0; scale: .6; }
.js .scene:not(.in) .phone { translate: 0 70px; opacity: 0; }
.js .scene .ring .val { transition: stroke-dasharray 1.3s var(--ease) .5s; }
.js .scene:not(.in) .ring .val { stroke-dasharray: 0 100; }
.js .scene .ph-row .trk i { transition: width 1.1s var(--ease) .7s; }
.js .scene:not(.in) .ph-row .trk i { width: 0; }
.js .scene .exo .curve { transition: stroke-dashoffset 1.5s var(--ease) 1s; }
.js .scene:not(.in) .exo .curve { stroke-dashoffset: 1; }
.js .scene .exo circle { transition: opacity .3s linear 2.3s; }
.js .scene:not(.in) .exo circle { opacity: 0; }
.js .scene .tutor .a { transition: opacity .45s linear 1.7s, translate .45s var(--ease) 1.7s; }
.js .scene:not(.in) .tutor .a { opacity: 0; translate: 0 6px; }
.js .hero h1 .ul path { transition: stroke-dashoffset .8s var(--ease) .55s; }
.js .hero h1:not(.in) .ul path { stroke-dashoffset: 1; }
@media (prefers-reduced-motion: reduce) { .fl, .orbits span, .live .pulse { animation: none; } }

@media (min-width: 700px) { .hero h1 .l2 { display: block; } }
@media (max-width: 1319px) { .cal-t { display: none; } .cal { padding-left: 24px; } }
@media (max-width: 1179px) {
  .scene { height: 436px; }
  .phone { width: 280px; margin-left: -140px; top: 30px; }
  .chalk .c3, .chalk .c4 { display: none; }
  .chalk .c1 { left: 3%; top: 26px; }
  .chalk .c2 { right: 3%; top: 14px; }
  .jday { --w: 168px; --x: max(-50vw + 34px, -372px); --y: -24px; }
  .tutor { --w: 252px; --x: max(-50vw + 30px, -366px); --y: 200px; }
  .exo { --w: 240px; --x: min(50vw - 280px, 118px); --y: 186px; }
  .live { --w: 226px; --x: min(50vw - 268px, 190px); --y: 8px; }
  .illu-science { display: none; }
  .illu-math { --w: 100px; --x: min(50vw - 120px, 300px); --y: 130px; }
  .cal { border-radius: 30px; padding: 16px 16px 16px 24px; }
}
@media (max-width: 959px) {
  .live { display: none; }
  .illu-math { --w: 92px; --x: min(50vw - 140px, 180px); --y: 36px; }
  .cal { flex-direction: column-reverse; align-items: stretch; gap: 16px; padding: 14px; margin-top: -30px; }
  .classes { display: grid; grid-template-columns: 1fr 1fr; }
  .epreuves { padding: 0 10px 4px; }
}
@media (max-width: 699px) {
  .hero .acts a { flex: 1 1 100%; }
  .chalk { display: none; }
  .illu-science { display: none; }
  .illu-math { --w: 84px; --x: 64px; --y: 8px; }
  .scene { height: 606px; margin-top: 34px; }
  .phone { width: 244px; margin-left: -122px; top: 92px; padding: 8px; border-radius: 40px; }
  .scr { border-radius: 32px; padding: 0 13px; }
  .ph-sb i { width: 62px; }
  .orbits { top: 250px; }
  .jday { --w: 142px; --x: -168px; --y: 0px; }
  .tutor { --w: 232px; --x: -72px; --y: 352px; --r: 3deg; }
  .exo { display: none; }
  .cal { margin-inline: 10px; border-radius: 26px; }
  .epreuves { flex-direction: column; gap: 12px; }
  .epreuves li + li { padding: 12px 0 0; border-left: 0; border-top: 1px solid #dfe5f0; }
  .epreuves b { min-width: 3.4em; }
}

/* sections */
section.s { margin-top: var(--gap); }
.s h2 { font-size: var(--step-head); }
.s .sub { font-size: var(--step-body); color: var(--muted); margin-top: 20px; max-width: 32ch; }

/* features: a bento of six colour fields, each holding a working piece of the platform built in HTML
   (a titration curve, a QCM you can answer, course cards, a shot you can aim, the oral's clock, a tutor exchange) */
.feat .head { display: grid; justify-items: center; text-align: center; }
.feat h2 { font-size: clamp(2.25rem, 1.1rem + 4.2vw, 4.5rem); letter-spacing: -0.035em; }
.feat h2 .ul { position: relative; display: inline-block; white-space: nowrap; }
.feat h2 .ul svg { position: absolute; left: -2%; bottom: -.17em; width: 104%; height: auto; overflow: visible; }
.feat h2 .ul path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.feat .sub { max-width: 30em; margin-top: clamp(18px, 2vw, 26px); font-size: var(--step-lead); line-height: 1.4; text-wrap: balance; }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); margin-top: clamp(40px, 5vw, 72px); }
.bx { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; min-width: 0; border-radius: clamp(24px, 2.6vw, 36px); padding: clamp(22px, 2.4vw, 34px); }
.bx h3 { font-size: clamp(1.5rem, 1.1rem + 1.3vw, 2.25rem); letter-spacing: -0.03em; line-height: 1.05; }
.bx .d { margin-top: 10px; max-width: 24em; font-size: var(--step-body); line-height: 1.4; }
.bx .pt { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.bx .pc { background: var(--paper); color: var(--ink); border-radius: 20px; padding: 14px 16px; font-size: 13px; line-height: 1.35; box-shadow: 0 26px 50px -22px rgba(0, 4, 16, .7); transition: rotate .5s var(--ease), translate .5s var(--ease); }
.bx .stk { position: absolute; z-index: 3; width: 104px; height: 104px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 11.5px; font-weight: 500; line-height: 1.12;
  background: var(--accent); color: var(--on-accent); rotate: 9deg; box-shadow: 0 18px 34px -14px rgba(0, 4, 16, .7); animation: kl-bob 6s ease-in-out infinite alternate; }
.bx .stk b { font-size: 2.6em; font-weight: 500; letter-spacing: -0.03em; line-height: .95; }
.bx .chalk2 { position: absolute; z-index: -1; font-size: clamp(15px, 1.35vw, 21px); color: rgba(255, 255, 255, .2); white-space: nowrap; pointer-events: none; }

/* 1. labo ECE */
.labo { grid-column: span 7; min-height: 520px; background: var(--ink); color: var(--paper); }
.labo .d { color: #c9d4ea; }
.labo .chalk2 { right: 172px; top: 30px; rotate: 4deg; }
.labo .steps { list-style: none; padding: 0; margin: 20px 0 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: var(--step-small); font-weight: 500; counter-reset: st; }
.labo .steps li { counter-increment: st; display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #0d2c5e; }
.labo .steps li::before { content: counter(st); width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-size: 12px; font-weight: 600; }
.labo .stk { right: clamp(18px, 2.4vw, 34px); top: clamp(18px, 2.4vw, 30px); }
.labo .plotc { position: absolute; z-index: 2; right: -14px; bottom: -22px; width: min(60%, 450px); rotate: -3deg; padding-bottom: 26px; }
.labo .tbl { position: absolute; z-index: 1; left: clamp(22px, 2.4vw, 34px); bottom: 30px; width: 168px; rotate: 4deg; }
.labo table { width: 100%; border-collapse: collapse; margin-top: 8px; font-variant-numeric: tabular-nums; }
.labo th { text-align: left; font-size: 11.5px; font-weight: 600; color: var(--muted); padding: 0 0 5px; border-bottom: 1px solid #e2e7f0; }
.labo td { padding: 5px 0; border-bottom: 1px solid #eef1f7; }
.labo tr:nth-child(4) td { font-weight: 600; color: #c25f00; }
.labo tr:last-child td { border-bottom: 0; }
.plotc svg { display: block; width: 100%; height: auto; margin-top: 6px; overflow: visible; }
.plotc .grid { fill: none; stroke: #eef1f7; }
.plotc .ax { fill: none; stroke: #b9c4da; stroke-width: 1.2; }
.plotc text { font: 500 9.5px "Roundo", sans-serif; fill: var(--muted); }
.plotc .eq { fill: none; stroke: var(--f-maths); stroke-dasharray: 4 4; }
.plotc .eqt { fill: var(--f-maths); font-weight: 600; }
.plotc .curve { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.plotc circle { fill: var(--ink); }
.plotc .eqp { fill: var(--paper); stroke: var(--f-maths); stroke-width: 2.4; }

/* 2. QCM */
.qcm { grid-column: span 5; background: var(--f-mint); }
.quiz { margin-top: auto; padding: 18px; border-radius: 24px; background: var(--paper); box-shadow: 0 26px 50px -26px rgba(0, 26, 65, .45); }
.qcm .d { margin-bottom: 28px; }
.quiz .qh { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-size: 12px; font-weight: 600; color: var(--muted); }
.quiz .qh span { margin-left: auto; display: flex; gap: 4px; }
.quiz .qh i { width: 9px; height: 9px; border-radius: 50%; background: var(--f-step); }
.quiz .qh i.on { background: var(--f-pc); } .quiz .qh i.cur { background: var(--accent); }
.quiz .qq { font-weight: 600; font-size: var(--step-body); }
.quiz .opts { display: grid; gap: 8px; margin-top: 14px; }
.quiz button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 6px 16px 6px 8px; border: 0; border-radius: 999px; background: var(--f-step); color: var(--ink); font: 500 var(--step-body)/1.2 "Roundo", sans-serif; text-align: left; cursor: pointer;
  transition: background-color .2s, color .2s, transform .18s var(--ease); }
.quiz button .l { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-size: 14px; font-weight: 600; transition: background-color .2s, color .2s; }
@media (hover: hover) and (pointer: fine) { .quiz button:hover { background: #d6dded; transform: translateX(4px); } }
.quiz button.good { background: var(--f-pc); color: var(--paper); }
.quiz button.bad { background: #b4332a; color: var(--paper); animation: kl-shake .4s var(--ease); }
.quiz button.good .l::before { content: "✓"; } .quiz button.bad .l::before { content: "✕"; }
.quiz button.good .l, .quiz button.bad .l { font-size: 0; }
.quiz button.good .l::before, .quiz button.bad .l::before { font-size: 16px; }
.quiz .fbs { margin-top: 14px; min-height: 3.2em; font-size: var(--step-small); line-height: 1.4; color: var(--muted); }
.quiz .fb.ok, .quiz .fb.no { color: var(--ink); }
@keyframes kl-shake { 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }

/* 3. cours */
.cours { grid-column: span 5; min-height: 416px; background: var(--f-sky); }
.fan { position: relative; flex: 1; min-height: 230px; margin: 24px calc(-1 * clamp(22px, 2.4vw, 34px)) calc(-1 * clamp(22px, 2.4vw, 34px)); }
.fiche { --u: clamp(64px, 6.9vw, 104px); position: absolute; left: 50%; top: 26px; width: 196px; min-height: 250px; margin-left: -98px; padding: 14px 16px; border-radius: 18px; background: var(--paper); font-size: 13px; line-height: 1.4;
  box-shadow: 0 20px 40px -20px rgba(0, 26, 65, .5); transform: translate(calc(var(--n) * var(--u)), calc(var(--a) * var(--a) * 4px)) rotate(calc(var(--a) * 4deg)); transition: transform .5s var(--ease); }
.fiche p + p { margin-top: 8px; }
.fiche .tab { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.fiche .ft { font-weight: 600; font-size: 14px; }
.f1 { --n: -1.5; --a: -1.5; } .f2 { --n: -.5; --a: -.5; z-index: 1; } .f3 { --n: .5; --a: .5; z-index: 2; } .f4 { --n: 1.5; --a: 1.5; z-index: 3; }
.f1 .tab { background: var(--f-mint); } .f2 .tab { background: var(--accent); } .f3 .tab { background: var(--f-sky); } .f4 .tab { background: var(--f-pink); }
@media (hover: hover) { .fan .fiche:hover { z-index: 5; transform: translate(calc(var(--n) * var(--u)), -22px) rotate(0deg); } }

/* 4. simulations */
.simc { grid-column: span 7; flex-direction: row; align-items: stretch; gap: clamp(16px, 2vw, 28px); background: var(--paper); box-shadow: inset 0 0 0 1px #e2e7f0; }
.simt { flex: 0 0 38%; display: flex; flex-direction: column; min-width: 0; }
.simc .d { color: var(--muted); }
.ctl { margin-top: auto; padding-top: 24px; }
.ctl label { display: flex; justify-content: space-between; align-items: baseline; font-size: var(--step-small); font-weight: 600; }
.ctl output { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.ctl input { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 6px 0 0; background: transparent; cursor: pointer; }
.ctl input::-webkit-slider-runnable-track { height: 8px; border-radius: 4px; background: var(--f-step); }
.ctl input::-moz-range-track { height: 8px; border-radius: 4px; background: var(--f-step); }
.ctl input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 50%; background: var(--accent); border: 4px solid var(--paper); box-shadow: 0 0 0 1px #e2e7f0, 0 6px 14px -4px rgba(0, 26, 65, .5); }
.ctl input::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--accent); border: 4px solid var(--paper); box-shadow: 0 0 0 1px #e2e7f0, 0 6px 14px -4px rgba(0, 26, 65, .5); }
.ctl .hint { margin-top: 8px; font-size: var(--step-small); color: var(--muted); }
.sim { flex: 1; min-width: 0; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; border-radius: 22px; background: var(--ink); color: var(--paper); padding: 18px 10px 8px; }
.sim .eqn { padding: 0 10px; font-size: clamp(13px, 1.15vw, 17px); color: rgba(255, 255, 255, .5); }
.sim .ro { display: flex; gap: 8px; padding: 0 10px; margin-top: 12px; font-size: var(--step-small); color: #b4c2de; }
.sim .ro span { padding: 8px 14px; border-radius: 999px; background: #0d2c5e; }
.sim .ro b { color: var(--paper); font-weight: 600; font-variant-numeric: tabular-nums; margin-left: 4px; }
.sim svg { display: block; width: 100%; height: auto; overflow: visible; }
.sim .grid { fill: none; stroke: rgba(255, 255, 255, .08); }
.sim .ground { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 1.5; stroke-linecap: round; }
.sim .traj { fill: none; stroke: var(--f-sky); stroke-width: 2; stroke-dasharray: 3 7; stroke-linecap: round; }
.sim .vec { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.sim .vt { font: 500 11px "Roundo", sans-serif; fill: var(--accent); }
.sim .ball { fill: var(--accent); }
.sim .fx { animation: kl-flyx 2.6s linear infinite; }
.sim .fy { animation: kl-flyy 2.6s linear infinite; }
@keyframes kl-flyx { 0%, 8% { transform: translateX(0); } 80%, 100% { transform: translateX(calc(var(--R) * 1px)); } }
@keyframes kl-flyy { 0% { transform: translateY(0); } 8% { transform: translateY(0); animation-timing-function: cubic-bezier(.333, .667, .667, 1); }
  44% { transform: translateY(calc(var(--H) * -1px)); animation-timing-function: cubic-bezier(.333, 0, .667, .333); } 80%, 100% { transform: translateY(0); } }

/* 5. grand oral */
.oral { grid-column: span 7; min-height: 400px; background: var(--accent); color: var(--on-accent); display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr auto; column-gap: clamp(16px, 2.4vw, 36px); }
.oral h3, .oral .d { grid-column: 1; }
.oral .big { grid-column: 1; grid-row: 3 / 5; align-self: end; display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 .12em; margin-top: 24px; font-size: clamp(4rem, 1.4rem + 7vw, 8.25rem); font-weight: 500; letter-spacing: -0.05em; line-height: .82; white-space: nowrap; font-variant-numeric: tabular-nums; }
.oral .big i { font-style: normal; font-size: .5em; letter-spacing: 0; translate: 0 -.3em; }
.oral .big small { flex-basis: 100%; white-space: normal; margin-top: 16px; font-size: var(--step-body); font-weight: 500; letter-spacing: 0; line-height: 1.3; }
.oral .clock { grid-column: 2; grid-row: 1 / 4; align-self: center; width: clamp(150px, 17vw, 236px); }
.oral .clock svg { display: block; width: 100%; height: auto; overflow: visible; }
.oral .clock circle { fill: none; stroke-width: 15; transform: rotate(-90deg); transform-origin: 60px 60px; }
.oral .clock .a1 { stroke: var(--ink); stroke-dasharray: 24 100; }
.oral .clock .a2 { stroke: var(--paper); stroke-dasharray: 49 100; stroke-dashoffset: -25.5; }
.oral .clock .a3 { stroke: var(--f-maths); stroke-dasharray: 24 100; stroke-dashoffset: -75.5; }
.oral .hand { transform-origin: 60px 60px; animation: kl-spin 20s linear infinite; }
.oral .hand line { stroke: var(--ink); stroke-width: 3.5; stroke-linecap: round; }
.oral .hand circle { fill: var(--ink); stroke: none; transform: none; }
.oral .leg { grid-column: 2; grid-row: 4; list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 6px; font-size: var(--step-small); font-weight: 500; }
.oral .leg li { display: flex; align-items: center; gap: 8px; }
.oral .leg .a1 { background: var(--ink); } .oral .leg .a2 { background: var(--paper); } .oral .leg .a3 { background: var(--f-maths); }

/* 6. assistant IA */
.ai { grid-column: span 5; background: var(--ink); color: var(--paper); }
.ai .d { color: #c9d4ea; }
.ai .chalk2 { right: 22px; top: 26px; rotate: 6deg; }
.chat { position: relative; margin-top: auto; padding-top: 28px; display: flex; flex-direction: column; gap: 8px; font-size: var(--step-body); line-height: 1.35; }
.chat p { max-width: 88%; padding: 11px 16px; }
.chat .q { align-self: flex-end; background: var(--paper); color: var(--ink); border-radius: 18px 18px 4px 18px; }
.chat .a { align-self: flex-start; background: #0d2c5e; border-radius: 18px 18px 18px 4px; }
.chat .typing { position: absolute; left: 0; bottom: 0; display: none; gap: 5px; padding: 14px 16px; background: #0d2c5e; border-radius: 18px 18px 18px 4px; }
.chat .typing i { width: 7px; height: 7px; border-radius: 50%; background: #9fb0d0; animation: kl-dot 1s ease-in-out infinite; }
.chat .typing i:nth-child(2) { animation-delay: .15s; } .chat .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes kl-dot { 0%, 60%, 100% { transform: none; opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
@keyframes kl-typing { 0% { opacity: 0; } 12%, 88% { opacity: 1; } 100% { opacity: 0; } }

/* each card comes alive once, when it has risen in */
.js .feat h2 .ul path { transition: stroke-dashoffset .8s var(--ease) .4s; }
.js .feat h2:not(.in) .ul path { stroke-dashoffset: 1; }
.js .bx .stk { transition: scale .7s cubic-bezier(.3, 1.5, .5, 1) .7s, opacity .4s linear .7s; }
.js .bx:not(.in) .stk { scale: .5; opacity: 0; }
.js .labo .plotc { transition: rotate .5s var(--ease), translate .8s var(--ease) .15s, opacity .5s linear .15s; }
.js .labo .tbl { transition: rotate .5s var(--ease), translate .8s var(--ease) .3s, opacity .5s linear .3s; }
.js .labo:not(.in) .plotc, .js .labo:not(.in) .tbl { translate: 0 40px; opacity: 0; }
.js .plotc .curve { transition: stroke-dashoffset 1.8s var(--ease) .5s; }
.js .labo:not(.in) .plotc .curve { stroke-dashoffset: 1; }
.js .plotc circle { transition: opacity .3s linear calc(.6s + var(--k, 12) * .1s), scale .4s cubic-bezier(.3, 1.5, .5, 1) calc(.6s + var(--k, 12) * .1s); transform-box: fill-box; transform-origin: center; }
.js .labo:not(.in) .plotc circle { opacity: 0; scale: 0; }
.js .plotc .eq, .js .plotc .eqt { transition: opacity .5s linear 2s; }
.js .labo:not(.in) .plotc .eq, .js .labo:not(.in) .plotc .eqt { opacity: 0; }
.js .qcm .quiz { transition: translate .8s var(--ease) .2s, opacity .5s linear .2s; }
.js .qcm:not(.in) .quiz { translate: 0 30px; opacity: 0; }
.js .fiche { transition: transform .9s var(--ease) calc(.15s + (var(--n) + 1.5) * .08s); }
.js .cours:not(.in) .fiche { transform: translate(0, 60px) rotate(0deg); }
.js .oral .clock circle { transition: stroke-dasharray 1s var(--ease) .3s; }
.js .oral .clock .a2 { transition-delay: .55s; } .js .oral .clock .a3 { transition-delay: .8s; }
.js .oral:not(.in) .clock circle { stroke-dasharray: 0 100; }
.js .chat .q, .js .chat .a { transition: opacity .4s linear var(--cd), translate .5s var(--ease) var(--cd); }
.js .chat p:nth-child(1) { --cd: .3s; } .js .chat p:nth-child(2) { --cd: 1.2s; } .js .chat p:nth-child(3) { --cd: 2.1s; } .js .chat p:nth-child(4) { --cd: 3.6s; }
.js .ai:not(.in) .chat .q, .js .ai:not(.in) .chat .a { opacity: 0; translate: 0 10px; }
.js .ai.in .chat .typing { display: flex; opacity: 0; animation: kl-typing 1.2s linear 2.4s 1 both; }
@media (hover: hover) {
  .labo:hover .plotc { rotate: 0deg; translate: -6px -8px; }
  .labo:hover .tbl { rotate: 0deg; translate: 4px -6px; }
}
@media (prefers-reduced-motion: reduce) {
  .bx .stk, .sim .fx, .sim .fy, .oral .hand, .chat .typing i, .quiz button.bad { animation: none; }
  .js .ai.in .chat .typing { display: none; }
}

@media (max-width: 1099px) {
  .fiche { width: 172px; margin-left: -86px; }
  .labo, .simc { grid-column: span 12; }
  .oral, .ai { grid-column: span 6; }
  .qcm, .cours { grid-column: span 6; }
  .labo { min-height: 500px; }
  .oral { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .oral .big { grid-row: auto; font-size: clamp(4.5rem, 14vw, 7rem); }
  .oral .clock { grid-column: 1; grid-row: auto; width: 150px; margin-top: 24px; justify-self: start; }
  .oral .leg { grid-column: 1; grid-row: auto; }
}
@media (max-width: 759px) {
  .bx { grid-column: 1 / -1 !important; }
  .labo { min-height: 0; padding-bottom: 0; }
  .labo h3, .labo .d { max-width: calc(100% - 92px); }
  .labo .stk { width: 88px; height: 88px; font-size: 10.5px; }
  .labo .chalk2, .labo .tbl { display: none; }
  .labo .plotc { position: relative; right: auto; bottom: auto; width: auto; margin: 28px -6px -14px; rotate: -2deg; }
  .cours { min-height: 420px; }
  .fiche { --u: 16.5vw; width: 160px; margin-left: -80px; }
  .simc { flex-direction: column; }
  .simt { flex: none; }
  .ctl { padding-top: 20px; }
  .oral { min-height: 0; }
  .oral .clock { position: absolute; right: 18px; top: 20px; width: 108px; margin: 0; }
  .oral h3, .oral .d { max-width: calc(100% - 116px); }
  .oral .d { min-height: 4.4em; }
}

/* shared by the sections below the bento: the hand-drawn stroke under one word of each heading */
.s h2 .ul { position: relative; display: inline-block; white-space: nowrap; }
.s h2 .ul svg { position: absolute; left: -2%; bottom: -.17em; width: 104%; height: auto; overflow: visible; }
.s h2 .ul path { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.js .s h2 .ul path { transition: stroke-dashoffset .8s var(--ease) .4s; }
.js .s h2:not(.in) .ul path { stroke-dashoffset: 1; }
.s h2 { font-size: clamp(2.25rem, 1.1rem + 4.2vw, 4.5rem); letter-spacing: -0.035em; }
/* Virtual lab and interactive titration */
.lab {
  --lab-line: #ffffff26;
  max-width: 1440px;
  margin-inline: auto;
  padding: clamp(22px, 4.6vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 6fr);
  grid-template-rows: auto 1fr auto;
  grid-template-areas: "intro demo" "art demo" "skills skills";
  gap: 28px clamp(28px, 5vw, 80px);
  border-radius: clamp(24px, 3.2vw, 46px);
  color: var(--paper);
  background: radial-gradient(ellipse at 14% 57%, #134079, transparent 54%), var(--ink);
}
.lab-intro { grid-area: intro; }
.lab .lab-subject {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: #d8e6fa;
  font-size: var(--step-small);
}
.lab h2 { font-size: clamp(2.3rem, 1.25rem + 3.7vw, 4.65rem); }
.lab h2 em { display: block; color: #ffaf56; font-style: normal; }
.lab .lab-desc { max-width: 36ch; margin-top: 20px; color: #e1eafa; }
.lab-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin-top: 22px; }
.lab-actions .btn-o { color: var(--ink); padding-inline: 20px; }
.lab-course {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  font-size: var(--step-small);
  text-underline-offset: 4px;
}
.lab-art {
  grid-area: art;
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: 235px;
  padding-block: 8px;
  overflow: hidden;
}
.lab-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: min(85%, 320px);
  aspect-ratio: 1;
  border: 1px solid var(--lab-line);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, transparent 0 31px, #ffffff1a 32px 33px);
  mask-image: linear-gradient(transparent, #000 23% 75%, transparent);
}
.lab-art img {
  width: auto;
  height: clamp(220px, 23vw, 340px);
  rotate: -8deg;
  filter: drop-shadow(12px 16px 18px #0007);
}
.lab-demo {
  grid-area: demo;
  align-self: center;
  min-width: 0;
  padding: clamp(14px, 3vw, 38px);
  border: 1px solid var(--lab-line);
  border-radius: clamp(18px, 2vw, 30px);
  color: var(--ink);
  background: #f0f5ff;
  box-shadow: 0 26px 55px -24px #0009;
}
.lab-demo-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.lab-demo .lab-demo-kind {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: var(--step-small);
}
.lab-demo h3 { font-size: clamp(1.25rem, .9rem + 1.4vw, 2rem); }
.lab-reading {
  display: grid;
  flex: none;
  justify-items: center;
  min-width: 66px;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--paper);
  font-size: .75rem;
  line-height: 1.25;
  font-variant-numeric: tabular-nums;
}
.lab-reading strong { color: #ffbc73; font-size: clamp(1.15rem, .9rem + 1vw, 1.65rem); }
.lab-graph { display: block; width: 100%; height: auto; margin-block: 14px; }
.lab-graph text { fill: var(--muted); font-size: 11px; }
.lab-gridline, .lab-equivalence { stroke: #aabbd6; fill: none; }
.lab-equivalence { stroke: #776142; stroke-dasharray: 3 4; }
.lab-trace { fill: none; stroke: var(--f-maths); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.lab-point { fill: var(--accent); stroke: var(--ink); stroke-width: 2; }
.lab-control {
  padding: 10px clamp(10px, 2vw, 20px) 4px;
  border: 1px solid #c4d3e9;
  border-radius: 12px;
  background: #fff;
  font-size: var(--step-small);
}
.lab-control div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 10px; }
.lab-control span { font-weight: 600; font-variant-numeric: tabular-nums; }
.lab-control input { width: 100%; min-height: 36px; margin: 0; accent-color: var(--f-maths); cursor: ew-resize; }
.lab-control input:disabled { cursor: default; }
.lab-skills {
  grid-area: skills;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px clamp(14px, 2vw, 28px);
  padding-top: 20px;
  border-top: 1px solid var(--lab-line);
}
.lab-skills h3 { font-size: var(--step-small); }
.lab-skills ul { display: flex; flex-wrap: wrap; gap: 8px 16px; padding: 0; margin: 0; list-style: none; }
.lab-skills li { display: flex; align-items: center; gap: 7px; color: #e1eafa; font-size: var(--step-small); }
.lab-skills b {
  min-width: 33px;
  padding: 5px 4px;
  border-radius: 6px;
  background: #ffffff17;
  color: #ffbc73;
  text-align: center;
  font-size: .65rem;
  letter-spacing: .05em;
}
@media (max-width: 899px) {
  .lab {
    grid-template-columns: minmax(0, 1fr) minmax(0, .45fr);
    grid-template-rows: auto;
    grid-template-areas: "intro art" "demo demo" "skills skills";
  }
  .lab-art { min-height: 0; }
  .lab-art img { max-height: 90%; height: min(31vw, 280px); }
}
@media (max-width: 479px) {
  .lab {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "intro" "art" "demo" "skills";
    gap: 18px;
  }
  .lab-art img { height: 175px; max-height: none; }
  .lab-art::before { width: 190px; }
}

/* how it works: the school year as a road from September to the J day, with today's pin on it */
.year { text-align: center; }
.year h2 { text-wrap: balance; }
.road { margin-top: clamp(40px, 5vw, 72px); padding: 0 clamp(0px, 2vw, 32px); text-align: left; }
.months { list-style: none; margin: 0 68px 12px; padding: 0; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); font-size: var(--step-small); font-weight: 500; color: var(--muted); }
.months li { padding-left: 8px; border-left: 1px solid #cdd5e4; }
.months .m1 { display: none; }
.track { display: flex; align-items: center; gap: 6px; }
.track .go, .track .jj { flex: none; width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font-weight: 600; font-size: 13px; line-height: 1; }
.track .jj { font-size: 26px; font-weight: 500; }
.bars { position: relative; flex: 1; display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; }
.bars i { grid-column: span var(--sp); height: 62px; border-radius: 999px; transform-origin: 0 50%; }
.bars .now { position: absolute; z-index: 2; left: calc(var(--at) * 100%); top: 50%; translate: -50% -50%; width: 96px; height: 96px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--paper); color: var(--ink); font-size: 12px; line-height: 1.15; box-shadow: 0 0 0 4px var(--accent), 0 18px 34px -12px rgba(0, 26, 65, .6); }
.bars .now b { font-size: 12.5px; font-weight: 600; }
.b1 { background: var(--accent); color: var(--on-accent); } .b2 { background: var(--f-maths); color: var(--paper); }
.b3 { background: var(--f-pc); color: var(--paper); } .b4 { background: var(--ink); color: var(--paper); }
.phases { list-style: none; padding: 0; margin: clamp(28px, 3.4vw, 48px) 0 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(12px, 1.4vw, 20px); text-align: left; }
.ph { position: relative; border-radius: clamp(24px, 2.4vw, 32px); padding: clamp(22px, 2.2vw, 30px); min-height: 250px; display: flex; flex-direction: column; }
.ph:nth-child(odd) { rotate: -1.4deg; } .ph:nth-child(even) { rotate: 1.4deg; translate: 0 14px; }
.ph .n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font-weight: 600; }
.ph h3 { margin-top: auto; padding-top: 28px; font-size: clamp(1.375rem, 1.1rem + .9vw, 1.875rem); letter-spacing: -0.025em; line-height: 1.08; }
.ph p { margin-top: 10px; font-size: var(--step-body); line-height: 1.4; }
.js .bars i { transition: transform .9s var(--ease) calc(.2s + var(--bi, 0) * .25s); }
.js .road:not(.in) .bars i { transform: scaleX(0); }
.js .bars .now { transition: scale .7s cubic-bezier(.3, 1.5, .5, 1) 1.1s, opacity .3s linear 1.1s; }
.js .road:not(.in) .bars .now { scale: .4; opacity: 0; }
@media (hover: hover) { .ph { transition: rotate .4s var(--ease), translate .4s var(--ease); } .ph:hover { rotate: 0deg; translate: 0 -6px; } }
@media (max-width: 999px) {
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
  .ph { min-height: 210px; }
}
@media (max-width: 699px) {
  .months { margin-inline: 48px; font-size: 11px; }
  .months li { padding-left: 4px; }
  .months .m3 { display: none; } .months .m1 { display: inline; }
  .track { gap: 4px; }
  .track .go, .track .jj { width: 44px; height: 44px; font-size: 10.5px; }
  .track .jj { font-size: 19px; }
  .bars { gap: 4px; }
  .bars i { height: 44px; }
  .bars .now { width: 70px; height: 70px; font-size: 9.5px; box-shadow: 0 0 0 3px var(--accent), 0 14px 26px -10px rgba(0, 26, 65, .6); }
  .bars .now b { font-size: 10px; }
  .road { margin-top: 48px; }
  .phases { grid-template-columns: minmax(0, 1fr); row-gap: 14px; }
  .ph, .ph:nth-child(even) { translate: none; min-height: 0; }
  .ph h3 { padding-top: 20px; }
}

/* stats: three planets on a navy board; the figures count up when they arrive */
.tally { position: relative; isolation: isolate; overflow: hidden; background: var(--ink); color: var(--paper); border-radius: clamp(28px, 3vw, 40px); padding: clamp(36px, 5vw, 72px) clamp(16px, 4vw, 56px) clamp(40px, 5vw, 72px); text-align: center; }
.tally::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 62%; width: 1500px; height: 1500px; margin: -750px 0 0 -750px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .13); box-shadow: 0 0 0 -1px transparent, inset 0 0 0 190px transparent; }
.tally::after { content: ""; position: absolute; z-index: -1; left: 50%; top: 62%; width: 1060px; height: 1060px; margin: -530px 0 0 -530px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .1); }
.chalk3 > span { position: absolute; z-index: -1; font-size: clamp(15px, 1.5vw, 23px); color: rgba(255, 255, 255, .2); white-space: nowrap; pointer-events: none; }
.chalk3 .c1 { left: 4%; top: 9%; rotate: -7deg; } .chalk3 .c2 { right: 5%; top: 12%; rotate: 6deg; }
.planets { display: flex; justify-content: center; align-items: center; margin-top: clamp(36px, 4.6vw, 64px); }
.pl { flex: none; width: var(--w); height: var(--w); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0 calc(var(--w) * .13); color: var(--ink); box-shadow: 0 40px 70px -30px rgba(0, 4, 16, .9); }
.pl b { font-size: calc(var(--w) * .3); font-weight: 500; letter-spacing: -0.045em; line-height: .9; font-variant-numeric: tabular-nums; }
.pl span { margin-top: calc(var(--w) * .035); font-size: clamp(.875rem, calc(var(--w) * .047), 1.1875rem); line-height: 1.25; font-weight: 500; text-wrap: balance; }
.p1 { --w: clamp(300px, 31vw, 440px); background: var(--accent); z-index: 2; rotate: -4deg; }
.p2 { --w: clamp(250px, 25vw, 350px); background: var(--f-sky); margin: 70px 0 0 -34px; z-index: 1; rotate: 3deg; }
.p3 { --w: clamp(220px, 21vw, 300px); background: var(--f-pink); margin: -80px 0 0 -30px; z-index: 3; rotate: 6deg; }
.pl .lv, .pl .seats { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-top: calc(var(--w) * .05); }
.pl .lv u { width: 14px; height: 14px; border-radius: 50%; background: var(--ink); }
.pl .lv u:nth-child(1) { opacity: .35; } .pl .lv u:nth-child(2) { opacity: .65; }
.pl .seats { max-width: 62%; }
.pl .seats u { width: 10px; height: 10px; border-radius: 50%; background: var(--ink); }
@media (hover: hover) { .pl { transition: scale .4s var(--ease); } .pl:hover { scale: 1.04; } }
@media (max-width: 759px) {
  .planets { flex-direction: column; }
  .p1 { --w: min(78vw, 340px); align-self: flex-start; }
  .p2 { --w: min(66vw, 290px); margin: -36px 0 0; align-self: flex-end; }
  .p3 { --w: min(58vw, 250px); margin: -40px 0 0 6%; align-self: flex-start; }
  .chalk3 { display: none; }
}

/* pricing: two cards, the free one on mint, Premium on navy with its sticker */
.plans .head { text-align: center; }
.deck { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: stretch; gap: clamp(12px, 1.6vw, 24px); margin-top: clamp(40px, 5vw, 72px); }
.plan { position: relative; display: flex; flex-direction: column; border-radius: clamp(28px, 3vw, 40px); padding: clamp(26px, 3.4vw, 48px); }
.plan.free { background: var(--f-mint); margin-block: clamp(0px, 2.4vw, 36px); rotate: -1.2deg; }
.plan.prem { background: var(--ink); color: var(--paper); }
.plan h3 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.5rem); letter-spacing: -0.035em; line-height: 1; }
.plan .for { font-size: var(--step-lead); line-height: 1.3; margin-top: 14px; max-width: 24ch; }
.plan .inc { list-style: none; padding: 0; margin: clamp(22px, 2.6vw, 34px) 0 0; display: grid; gap: 12px; max-width: 34em; }
.plan .inc li { position: relative; padding-left: 38px; line-height: 1.35; }
.plan .inc li::before { content: "✓"; position: absolute; left: 0; top: -.08em; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-size: 14px; font-weight: 600; }
.plan.prem .inc li::before { background: var(--accent); color: var(--on-accent); }
.plan .alt { margin-top: 22px; padding: 14px 18px; border-radius: 18px; background: #0d2c5e; font-size: var(--step-small); color: #dbe3f3; max-width: 34em; }
.plan .foot { margin-top: auto; padding-top: clamp(32px, 4vw, 52px); display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 24px; }
.plan .price { font-size: clamp(3.5rem, 1.8rem + 6vw, 7rem); font-weight: 500; letter-spacing: -0.045em; line-height: .86; }
.plan .price.word { font-size: clamp(2.25rem, 1.4rem + 3vw, 4rem); line-height: 1; }
.plan .price small { font-size: var(--step-body); letter-spacing: 0; margin-left: 8px; font-weight: 500; }
.plan .note { width: 100%; font-size: var(--step-small); color: #c9d4ea; }
.stk3 { position: absolute; right: clamp(18px, 3vw, 44px); top: clamp(-30px, -2vw, -18px); width: 124px; height: 124px; border-radius: 50%; display: grid; place-items: center; text-align: center; padding: 0 18px; background: var(--accent); color: var(--on-accent); font-size: 14px; font-weight: 600; line-height: 1.12; rotate: 10deg; box-shadow: 0 18px 34px -14px rgba(0, 4, 16, .7); animation: kl-bob 6s ease-in-out infinite alternate; }
@media (hover: hover) { .plan.free { transition: rotate .4s var(--ease); } .plan.free:hover { rotate: 0deg; } }
@media (max-width: 899px) {
  .deck { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .plan.prem { order: -1; }
  .plan.free { margin-block: 0; }
  .plan .foot .btn-o { flex: 1 1 100%; }
  .stk3 { width: 104px; height: 104px; font-size: 12.5px; right: 14px; top: -26px; }
  .plan.prem h3, .plan.prem .for { max-width: calc(100% - 96px); }
}

/* FAQ: numbered questions; the open one turns navy. A WhatsApp card for everything else */
.faq { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
.faq .side { position: sticky; top: 32px; display: grid; gap: clamp(24px, 3vw, 40px); justify-items: start; }
.ask { display: grid; gap: 6px; max-width: 320px; padding: clamp(20px, 2.2vw, 28px); border-radius: 28px; background: var(--f-mint); text-decoration: none; rotate: -2deg; transition: rotate .4s var(--ease), translate .4s var(--ease); }
.ask span { font-size: var(--step-small); font-weight: 500; }
.ask b { font-size: var(--step-lead); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.ask i { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding: 10px 10px 10px 18px; border-radius: 999px; background: var(--paper); font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.ask em { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font-style: normal; transition: transform .25s var(--ease); }
@media (hover: hover) and (pointer: fine) { .ask:hover { rotate: 0deg; translate: 0 -4px; } }
@media (hover: hover) and (pointer: fine) { .ask:hover em { transform: translateX(3px); } }
.faq .list { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: 30px; box-shadow: inset 0 0 0 1px #e2e7f0; transition: background-color .25s, color .25s, box-shadow .25s; }
.faq details[open] { background: var(--ink); color: var(--paper); box-shadow: none; }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: clamp(12px, 1.6vw, 20px); min-height: 76px; padding: 14px 20px 14px 16px; font-size: var(--step-lead); font-weight: 500; line-height: 1.25; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .n { flex: none; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--f-step); color: var(--ink); font-size: var(--step-small); font-weight: 600; transition: background-color .25s; }
.faq details[open] summary .n { background: var(--accent); }
.faq summary::after { content: "+"; flex: none; margin-left: auto; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--f-step); color: var(--ink); font-size: 26px; font-weight: 400; line-height: 1; transition: transform .3s var(--ease), background-color .25s; }
.faq details[open] summary::after { transform: rotate(45deg); background: var(--paper); }
@media (hover: hover) and (pointer: fine) { .faq summary:hover .n { background: var(--accent); } }
.faq summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 30px; }
.faq .ans { padding: 0 28px 28px calc(16px + 44px + clamp(12px, 1.6vw, 20px)); max-width: 62ch; color: #dbe3f3; }
@media (max-width: 899px) {
  .faq { grid-template-columns: minmax(0, 1fr); }
  .faq .side { position: static; }
  .faq summary { font-size: 1.125rem; min-height: 68px; padding: 12px 14px 12px 12px; }
  .faq summary .n { width: 38px; height: 38px; }
  .faq summary::after { width: 34px; height: 34px; font-size: 22px; }
  .faq .ans { padding: 0 20px 22px 20px; }
}

/* CTA: an orange board; the badge in its navy disc, the countdown, and the question */
.finale { position: relative; isolation: isolate; overflow: hidden; display: grid; place-items: center; min-height: clamp(460px, 44vw, 600px); background: var(--accent); color: var(--on-accent); border-radius: clamp(28px, 3vw, 40px); padding: clamp(40px, 6vw, 88px) clamp(16px, 4vw, 56px); text-align: center; }
.rings { position: absolute; z-index: -1; left: 50%; top: 50%; }
.rings 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(0, 26, 65, .2); animation: kl-spin var(--t) linear infinite; }
.rings span::after { content: ""; position: absolute; left: 50%; top: -6px; width: 11px; height: 11px; margin-left: -6px; border-radius: 50%; background: var(--ink); }
.rings span:nth-child(1) { --s: 620px; --t: 46s; } .rings span:nth-child(2) { --s: 980px; --t: 80s; border-style: dashed; animation-direction: reverse; } .rings span:nth-child(3) { --s: 1400px; --t: 120s; }
.close .txt { position: relative; z-index: 2; display: grid; justify-items: center; }
.close h2 { font-size: clamp(2.5rem, 1rem + 6vw, 6rem); letter-spacing: -0.04em; line-height: 1; }
.close h2 .nb { white-space: nowrap; }
.close .jr { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--ink); color: var(--paper); font-size: .64em; line-height: 1; letter-spacing: 0; vertical-align: .14em; }
.close .txt p { margin-top: clamp(18px, 2vw, 26px); max-width: 30em; font-size: var(--step-lead); line-height: 1.4; text-wrap: balance; }
.close .btn-o { margin-top: clamp(24px, 2.8vw, 36px); min-height: 60px; padding: 0 36px; font-size: var(--step-lead); }
.close .txt .fact { margin-top: 16px; font-size: var(--step-body); font-weight: 600; }
.close .big { position: absolute; z-index: 1; left: clamp(-70px, -2vw, 10px); bottom: clamp(-70px, -2vw, -10px); width: clamp(200px, 23vw, 330px); height: clamp(200px, 23vw, 330px); border-radius: 50%; background: var(--ink); display: grid; place-items: center; rotate: -10deg; box-shadow: 0 30px 60px -24px rgba(0, 26, 65, .8); animation: kl-bob 7s ease-in-out infinite alternate; }
.close .big img { width: 74%; height: 74%; border-radius: 50%; }
.close .left { position: absolute; z-index: 1; right: clamp(-10px, 3vw, 56px); top: clamp(-20px, 3vw, 48px); width: clamp(132px, 13vw, 184px); height: clamp(132px, 13vw, 184px); border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0 16px; background: var(--paper); color: var(--ink); font-size: 12.5px; font-weight: 500; line-height: 1.15; rotate: 8deg; box-shadow: 0 24px 44px -18px rgba(0, 26, 65, .7); animation: kl-bob 6s ease-in-out -3s infinite alternate; }
.close .left b { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.75rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
@media (max-width: 899px) {
  .finale { padding-bottom: 190px; min-height: 0; }
  .close .big { left: -30px; bottom: -40px; width: 200px; height: 200px; }
  .close .left { top: auto; right: 6px; bottom: 26px; width: 128px; height: 128px; }
  .close .btn-o { width: 100%; }
}

/* footer: a navy base; the mark built large from circles and blocks */
.base { margin-top: var(--gap); margin-bottom: clamp(16px, 3vw, 40px); background: var(--ink); color: var(--paper); border-radius: clamp(28px, 3vw, 40px); padding: clamp(28px, 4vw, 56px) clamp(20px, 4vw, 56px) clamp(20px, 2.6vw, 32px); }
.fmark { display: block; width: 100%; height: auto; max-height: 42svh; overflow: hidden; font-family: "Roundo", sans-serif; border-radius: 0 0 24px 24px; }
.fmark text { letter-spacing: -0.02em; }
.foot-g { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; row-gap: 32px; padding: clamp(36px, 4vw, 56px) 0 0; font-size: var(--step-small); }
.foot-g .col { grid-column: span 2; display: grid; gap: 10px; align-content: start; }
.foot-g .col b { font-size: var(--step-body); }
.foot-g .col a { text-decoration: none; color: #c9d4ea; }
@media (hover: hover) and (pointer: fine) { .foot-g .col a:hover, .foot-g .addr a:hover { color: var(--accent); } }
.foot-g .addr { grid-column: 9 / span 4; display: grid; gap: 10px; align-content: start; font-size: var(--step-body); }
.foot-g .addr span, .foot-g .addr a { color: #c9d4ea; }
.foot-g .last { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 24px; border-top: 1px solid #18396f; color: #a9b8d6; }
.foot-g .last .btn-o { min-height: 44px; padding: 0 20px; font-size: var(--step-small); }
.landing .base .btn-o, .landing .plan.prem .btn-o { color: var(--on-accent); }
@media (max-width: 860px) {
  .foot-g .col { grid-column: span 6; }
  .foot-g .addr { grid-column: 1 / -1; }
}

/* Floating WhatsApp contact */
.wa-contact {
  position: fixed;
  z-index: 15;
  inset-inline-end: max(clamp(16px, 2.8vw, 40px), calc(env(safe-area-inset-right) + 12px));
  inset-block-end: max(clamp(16px, 2.4vw, 32px), calc(env(safe-area-inset-bottom) + 12px));
  --wa-green: #76efab;
}
.wa-trigger {
  width: max-content;
  margin-inline-start: auto;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 5px 13px 5px 5px;
  border: 1px solid #ffffff3d;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 12px 30px #001a4140;
  font-size: .9375rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  transition: transform .18s var(--ease), background-color .18s;
}
.wa-trigger::-webkit-details-marker { display: none; }
@media (hover: hover) and (pointer: fine) { .wa-trigger:hover { background: #103060; transform: translateY(-2px); } }
.wa-trigger:active { transform: translateY(0) scale(.98); }
.wa-mark {
  display: grid;
  place-items: center;
  width: 46px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: var(--wa-green);
  color: #073b2b;
}
.wa-mark .wa-close, .wa-contact[open] .wa-mark .hi:first-child { display: none; }
.wa-contact[open] .wa-mark .wa-close { display: block; }
.wa-chevron { color: #b9cbe9; transition: transform .18s var(--ease); }
.wa-contact[open] .wa-chevron { transform: rotate(180deg); }
.wa-card {
  position: absolute;
  inset-inline-end: 0;
  inset-block-end: calc(100% + 12px);
  width: min(340px, calc(100vw - 36px - env(safe-area-inset-right)));
  max-height: calc(100dvh - 100px - env(safe-area-inset-bottom));
  overflow: auto;
  border: 1px solid #cdd9ed;
  border-radius: 23px;
  background: var(--paper);
  box-shadow: 0 18px 52px #001a4140;
}
.wa-contact[open] .wa-card { animation: wa-appear .2s var(--ease) both; }
@keyframes wa-appear {
  from { opacity: 0; transform: translateY(7px); }
  to { opacity: 1; transform: translateY(0); }
}
.wa-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 17px;
  background: radial-gradient(ellipse at top right, #145153, transparent 78%), var(--ink);
  color: var(--paper);
}
.wa-header img { border-radius: 50%; }
.wa-header p { display: grid; gap: 2px; line-height: 1.25; }
.wa-header span { color: #c9dfeb; font-size: var(--step-small); }
.wa-content { display: grid; gap: 8px; padding: 16px; }
.wa-content p { margin-bottom: 4px; color: var(--muted); font-size: .9375rem; }
.wa-content a {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 11px;
  text-decoration: none;
  font-size: .875rem;
  font-weight: 600;
  transition: background-color .18s;
}
.landing .wa-primary { background: #106344; color: #fff; }
@media (hover: hover) and (pointer: fine) { .wa-primary:hover { background: #0a5137; } }
.wa-secondary { background: #edf3fa; }
@media (hover: hover) and (pointer: fine) { .wa-secondary:hover { background: #dfe9f6; } }
.landing footer:has(+ .wa-contact) .base { padding-bottom: max(92px, calc(env(safe-area-inset-bottom) + 80px)); }
@media (max-width: 599px) {
  .wa-trigger { min-height: 56px; padding: 4px; }
  .wa-trigger-label, .wa-chevron { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .wa-contact[open] .wa-card { animation: none; }
  .wa-trigger:hover, .wa-trigger:active { transform: none; }
}

/* entrances (only when the script runs; content is visible without it) */
.js .rv { opacity: 0; transform: translateY(24px); transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 75ms); }
.js .rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .rv { opacity: 1; transform: none; transition: none; }
  .stk3, .rings span, .close .big, .close .left { animation: none; }
  * { transition-duration: .01s !important; }
}
